hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
193a27accb67ada2ef2082cde1c43616cca5b262
1,331
js
JavaScript
lib/strategies/google_token.js
Nucleus-Inc/passport-mock-strategies
5c2c4ee56567c692e25f9cbfc539c1a394470cf8
[ "MIT" ]
null
null
null
lib/strategies/google_token.js
Nucleus-Inc/passport-mock-strategies
5c2c4ee56567c692e25f9cbfc539c1a394470cf8
[ "MIT" ]
null
null
null
lib/strategies/google_token.js
Nucleus-Inc/passport-mock-strategies
5c2c4ee56567c692e25f9cbfc539c1a394470cf8
[ "MIT" ]
null
null
null
"use strict"; var passport = require("passport"), util = require("util"), Strategy = require("passport-strategy"); function StrategyMock(options, verify) { if (!verify) { throw new TypeError("Verify callback is required"); } this.name = options.name || "mock-google-token"; this._passAuthentication = options.passAuthentication || false; this._passReqToCallback = options.passReqToCallback || false; this.verify = verify; Strategy.call(this); } util.inherits(StrategyMock, Strategy); StrategyMock.prototype._verifyUser = function(user, done) { done(null, { id: 1 }); }; StrategyMock.prototype.authenticate = function authenticate(req, options) { var self = this; var _parsedToken = self._parsedToken || {}; var _googleId = self._googleId || "abc"; var _user = { id: 1 }; function verified(err, user, info) { if (err) return self.error(err); if (!user) return self.fail(info); self.success(user, info); } if (self._passAuthentication) { self._verifyUser(_user, function(err, user, info) { if (self._passReqToCallback) { self.verify(req, _parsedToken, _googleId, verified); } else { self.verify(_parsedToken, _googleId, verified); } }); } else { self.fail("Unauthorized"); } }; module.exports = StrategyMock;
22.948276
75
0.663411
193b3aab1993b9ab54961e44d0ad833193e41d17
270
js
JavaScript
public/editor/bundles/common/tantaman.web/Utils.js
shirshendu/kine_type
aaf2fc4e46d28b756e6bc23273b9c8f1a1fd6eb3
[ "MIT" ]
1
2015-03-05T14:59:54.000Z
2015-03-05T14:59:54.000Z
public/editor/bundles/common/tantaman.web/Utils.js
shirshendu/kine_type
aaf2fc4e46d28b756e6bc23273b9c8f1a1fd6eb3
[ "MIT" ]
null
null
null
public/editor/bundles/common/tantaman.web/Utils.js
shirshendu/kine_type
aaf2fc4e46d28b756e6bc23273b9c8f1a1fd6eb3
[ "MIT" ]
null
null
null
define(function() { return { dispose: function(arg) { if (arg.dispose != null) { arg.dispose(); } else if (arg.forEach != null) { arg.forEach(function(e) { e.dispose(); }); } }, stopProp: function(e) { e.stopPropagation(); } } });
15.882353
36
0.533333
193b82826788a2c14a646a96b1da577858f49cf8
644
js
JavaScript
frontend/src/stores/dashboardStore.js
venanen/loginForm
ad6375e68725171ca8bb03ea67bca796b229e1b2
[ "MIT" ]
null
null
null
frontend/src/stores/dashboardStore.js
venanen/loginForm
ad6375e68725171ca8bb03ea67bca796b229e1b2
[ "MIT" ]
2
2020-05-15T00:40:45.000Z
2020-05-15T12:06:33.000Z
frontend/src/stores/dashboardStore.js
venanen/loginForm
ad6375e68725171ca8bb03ea67bca796b229e1b2
[ "MIT" ]
null
null
null
import {dashboardCore} from "../core/exportCore"; import {action, decorate, observable} from "mobx"; class DashboardStore{ constructor(){ this._this = this; this.loading = true; this.userData = ''; this.getData(); } async getData(){ this.loading = true; let data = await dashboardCore.getUserData(); this.loading = false; if(data !== false){ this.userData = data; }else{ //window.location.href = '/'; } } setLoading(value){ this.loading = !!value; } } decorate(DashboardStore, { loading: observable, userData: observable, setLoading: action, getData: action, }) export default new DashboardStore();
16.947368
50
0.669255
193c6520869bcc6389d7ded83040896a4db6739d
489
js
JavaScript
redux/storeManager.js
ImHappie/Unqork-Exercise
aa6cc5058c9df12ff7f1f80231248b0a017463dd
[ "MIT" ]
null
null
null
redux/storeManager.js
ImHappie/Unqork-Exercise
aa6cc5058c9df12ff7f1f80231248b0a017463dd
[ "MIT" ]
null
null
null
redux/storeManager.js
ImHappie/Unqork-Exercise
aa6cc5058c9df12ff7f1f80231248b0a017463dd
[ "MIT" ]
null
null
null
import store from './store'; const getStore = ()=> store; // get store const getState = (reducer, state) => store.getState()[reducer][state]; // get global state of store const subscribe = subs => store.subscribe(subs); // subscribe to store and lsiten to every state changes const dispatch = ({ type, payload = null }) => { // dispatch action type and payload data to store store.dispatch({ type, payload }); }; export default { getStore, dispatch, subscribe, getState, };
27.166667
105
0.683027
193ed2b530d15fa4ea122f0fb923107d5d9dd7aa
471
js
JavaScript
src/Filter.js
ecvdbdx/ewe_HearthstonAPI
d36fefa72673b7589482e2d93690c570718a6ce6
[ "Apache-2.0" ]
null
null
null
src/Filter.js
ecvdbdx/ewe_HearthstonAPI
d36fefa72673b7589482e2d93690c570718a6ce6
[ "Apache-2.0" ]
null
null
null
src/Filter.js
ecvdbdx/ewe_HearthstonAPI
d36fefa72673b7589482e2d93690c570718a6ce6
[ "Apache-2.0" ]
1
2021-02-15T09:39:18.000Z
2021-02-15T09:39:18.000Z
import React from "react"; import "./Filter.css"; function Filter(props) { const { cardSets, checked, check } = props; const filters = cardSets.map((cardSet) => ( <li className="filter-container"> <p>{cardSet}</p> <input type="checkbox" name={cardSet} checked={checked === cardSet} onChange={() => check(cardSet)} key={cardSet} /> </li> )); return <ul>{filters}</ul>; } export default Filter;
19.625
45
0.564756
194054ebba9aac7bab743c77f5ae93967f4ed85e
924
js
JavaScript
app/components/Card.js
Sacha-lb/sachaReact
77ff5e8659d727c8f98e36b1fa3f2f10b6188cef
[ "MIT" ]
null
null
null
app/components/Card.js
Sacha-lb/sachaReact
77ff5e8659d727c8f98e36b1fa3f2f10b6188cef
[ "MIT" ]
null
null
null
app/components/Card.js
Sacha-lb/sachaReact
77ff5e8659d727c8f98e36b1fa3f2f10b6188cef
[ "MIT" ]
null
null
null
import React, {useEffect, useState} from "react"; import styles from '../styles/Card.module.css'; import Image from 'next/image'; import Router from 'next/router'; export default function Marketplace(props){ const [selected, setSelected] = useState(null); useEffect(() => { console.log(selected) }, [selected]); const gotoproductpage = (name) => { Router.push('/[productname]', `/${props.title}`) } return ( <div className={styles.cardcontainer}> <p className={styles.cardtitle}>{props.title}</p> <Image className={styles.cardimg} width="100%" height="100%" src={props.img} alt=""/> <p>{props.desc}</p> <p>{props.price} euros</p> <button onClick={() => {gotoproductpage(props.title), localStorage.setItem("selected_product", JSON.stringify(props))}} className={styles.cardbtn}>BUY</button> </div> ) }
35.538462
171
0.615801
19410471f334330e75aaefc3fa7451a927aee16c
2,715
js
JavaScript
Tutorials/Custom Controls/Custom Controls in Win32 API Encapsulation of Customized Controls - CodeProject_files/MemberProfilePopup.js
alexdesign001/UX
1709446a82a8f2c01c0e6d95a29ac512439df1b2
[ "MS-PL" ]
2
2020-10-19T12:20:50.000Z
2020-12-05T08:10:08.000Z
Tutorials/Custom Controls/Custom Controls in Win32 API Visual Styles - CodeProject_files/MemberProfilePopup.js
alexdesign001/UX
1709446a82a8f2c01c0e6d95a29ac512439df1b2
[ "MS-PL" ]
null
null
null
Tutorials/Custom Controls/Custom Controls in Win32 API Visual Styles - CodeProject_files/MemberProfilePopup.js
alexdesign001/UX
1709446a82a8f2c01c0e6d95a29ac512439df1b2
[ "MS-PL" ]
null
null
null
function setPopupHeight(n){var t=$("#MemberProfilePopupDiv"),r=t.height(),i=n.contentWindow.document.body.scrollHeight;n.height=i;t.css({top:t.offset().top+(r-i)})}(function(n){var i=!0,r="/members/Flair/",t="/script/Membership/View.aspx";n.fn.MemberProfilePopup=function(t){function o(n){var r=",",t=Math.max(0,n).toFixed(0),u=t.length,i=/^\d{4,}$/.test(t)?u%3:0;return(i?t.slice(0,i)+r:"")+t.slice(i).replace(/(\d{3})(?=\d)/g,"$1"+r)}function s(n,t){var r,u,i;return(n.charAt(n.length-1)!="="&&(n=n+"="),r=t.toLowerCase().indexOf(n),r<0||r+n.length==t.length)?"":(u=t.indexOf("&",r),u<0&&(u=t.length),i=t.substring(r+n.length,u),i=i.replace(/%20/gi," "),i=i.replace(/\+/gi," "),i=i.replace(/%22/gi,""),i.replace(/\"/gi,""))}var f={memberSummariesUrl:"/script/Membership/WebServices/MemberServices.aspx/GetMemberSummary",missingMemberImageUrl:"/script/Membership/Images/member_unknown.gif"},u,e;return t&&n.extend(f,t),n("<div id=\"MemberProfilePopupDiv\" class='raised box'><\/div>").css({display:"none",position:"absolute"}).appendTo("body"),u=n("#MemberProfilePopupDiv"),e={sensitivity:7,interval:250,timeout:250,over:function(){var e,t,h,c,l;$target=n(this);e=$target.attr("href");t=s("mid",e);i?(u.empty(),n("<iFrame src='"+r+t+"?Display=Embedded' frameborder='0' width='300' scrolling='no' height='150' onload='setPopupHeight(this)'><\/iFrame>").appendTo("#MemberProfilePopupDiv"),h=u.height(),u.css({left:Math.min($target.offset().left+20,window.innerWidth-u.width()-25),top:$target.offset().top-(h+16)}).show()):(c=f.memberSummariesUrl,l="{ 'memberId' : "+t+" }",n.ajax({url:c,data:l,type:"POST",dataType:"json",contentType:"application/json; charset=utf-8"}).done(function(t){var i=t,r;i.ImageUrl&&i.ImageUrl.length!=0||(i.ImageUrl=f.missingMemberImageUrl);u.empty();n("<table class='member-popup'><tr valign='top'><td><img /><\/td><td><div class='name'>"+i.Name+"<\/div><div class='title'>"+i.Title+(i.Title&&i.Company?" at ":"")+i.Company+"<\/div><div class='location'>"+i.Country+"<\/div><div class='rep'>"+o(i.RepPoints)+" points<\/div><\/td><\/tr><\/table>").appendTo("#MemberProfilePopupDiv");n("#MemberProfilePopupDiv img").error(function(){$this=n(this);$this.off("error");$this.attr("src",f.missingMemberImageUrl);var t=u.height();u.css({left:$target.offset().left+20,top:$target.offset().top-(t+16)})}).attr("src",i.ImageUrl);r=u.height();u.css({left:$target.offset().left+20,top:$target.offset().top-(r+16)}).show()}))},out:function(){u.hide()}},this.hoverIntent?this.hoverIntent(e):this.hover(e.over,e.out),this};n(function(){n(".qa-info a[href*='"+t+"']").MemberProfilePopup();n(".qa-list a[href*='"+t+"']").MemberProfilePopup();n(".author a[href*='"+t+"']").MemberProfilePopup()})})(jQuery);
2,715
2,715
0.671455
194125c2909a9c03dd66c7b1ab5576e37b33c9ee
10,395
js
JavaScript
docs/static/js/4259.eca9a76dc8ebdd267239.js
alcedo-ui/alcedo-ui
61d0870bc9bcf3af770ba1431ddbd32925b0fb10
[ "MIT" ]
34
2017-04-06T09:13:20.000Z
2021-12-27T15:26:57.000Z
docs/static/js/4259.eca9a76dc8ebdd267239.js
alcedo-ui/alcedo-ui
61d0870bc9bcf3af770ba1431ddbd32925b0fb10
[ "MIT" ]
17
2017-07-11T02:15:20.000Z
2018-08-20T08:52:23.000Z
docs/static/js/4259.eca9a76dc8ebdd267239.js
alcedo-ui/alcedo-ui
61d0870bc9bcf3af770ba1431ddbd32925b0fb10
[ "MIT" ]
4
2017-04-18T09:38:16.000Z
2020-11-25T07:51:23.000Z
"use strict";(self.webpackChunkalcedo_ui=self.webpackChunkalcedo_ui||[]).push([[4259],{74259:(e,n,t)=>{t.d(n,{Z:()=>F});var c=t(87462),o=t(71002),l=t(15671),i=t(43144),r=t(97326),s=t(60136),a=t(82963),d=t(61120),u=t(4942),h=t(37699),m=t(45697),p=t.n(m),f=t(41844),C=t.n(f),k=t(45580),b=t(8628),I=t(65059),Z=t(88787),g=t(81207),v=t(87712),y=t(81540),E=t(65248),x=t(59448);var T=function(e){(0,s.Z)(o,e);var n,t,c=(n=o,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,c=(0,d.Z)(n);if(t){var o=(0,d.Z)(this).constructor;e=Reflect.construct(c,arguments,o)}else e=c.apply(this,arguments);return(0,a.Z)(this,e)});function o(e){var n;(0,l.Z)(this,o);for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];return n=c.call.apply(c,[this,e].concat(i)),(0,u.Z)((0,r.Z)(n),"handleCheckboxChange",(function(e){var t=n.props,c=t.onSelect,o=t.onDeselect;e?c&&c():o&&o()})),(0,u.Z)((0,r.Z)(n),"handleRadioChange",(function(){if(!n.props.checked){var e=n.props.onSelect;e&&e()}})),(0,u.Z)((0,r.Z)(n),"handleClick",(function(e){var t=n.props,c=t.disabled,o=t.isLoading,l=t.readOnly;if(!(c||o||l)){var i=n.props.onClick;switch(i&&i(e),n.props.selectMode){case x.Z.MULTI_SELECT:return void n.handleCheckboxChange(!n.props.checked);case x.Z.SINGLE_SELECT:return void n.handleRadioChange()}}})),n}return(0,i.Z)(o,[{key:"render",value:function(){var e,n=this.props,t=n.index,c=n.className,o=n.style,l=n.theme,i=n.data,r=n.text,s=n.desc,a=n.iconCls,d=n.rightIconCls,m=n.tip,p=n.tipPosition,f=n.disabled,v=n.isLoading,y=n.disableTouchRipple,E=n.rippleDisplayCenter,T=n.renderer,L=n.itemRenderer,S=n.readOnly,M=n.col,U=n.parentEl,N=n.checked,O=n.selectTheme,P=n.selectMode,F=n.radioUncheckedIconCls,R=n.radioCheckedIconCls,D=n.checkboxUncheckedIconCls,V=n.checkboxCheckedIconCls,_=n.checkboxIndeterminateIconCls,B=n.onMouseEnter,H=n.onMouseLeave,j=d&&!a?"right":"left";return h.createElement("div",{className:"grid-item-wrapper",style:M?{width:"".concat(100/M,"%")}:null},h.createElement(Z.Z,{tipContent:m,parentEl:U,position:p},h.createElement("div",{className:C()("grid-item",(e={},(0,u.Z)(e,"theme-".concat(l),l),(0,u.Z)(e,"activated",N),(0,u.Z)(e,c,c),e)),style:o,disabled:f||v,readOnly:S,onClick:this.handleClick,onMouseEnter:B,onMouseLeave:H},P===x.Z.SINGLE_SELECT&&(F||R)?h.createElement(b.Z,{className:"grid-item-select",theme:O,checked:N,disabled:f||v,uncheckedIconCls:F,checkedIconCls:R,disableTouchRipple:!0}):null,P===x.Z.MULTI_SELECT?h.createElement(k.Z,{className:"grid-item-select",theme:O,checked:N,disabled:f||v,uncheckedIconCls:D,checkedIconCls:V,indeterminateIconCls:_,disableTouchRipple:!0}):null,v&&"left"===j?h.createElement("div",{className:"button-icon button-icon-left"},h.createElement(I.Z,{className:"button-loading-icon",size:"small"})):a?h.createElement("i",{className:"button-icon button-icon-left ".concat(a),"aria-hidden":"true"}):null,L&&"function"==typeof L?L(i,t):T&&"function"==typeof T?T(i,t):s?h.createElement("div",{className:"grid-item-content"},h.createElement("div",{className:"grid-item-content-value"},r),h.createElement("div",{className:"grid-item-content-desc"},s)):h.createElement("div",{className:"grid-item-content"},r),v&&"right"===j?h.createElement(I.Z,{className:"button-icon button-icon-right button-loading-icon",size:"small"}):d?h.createElement("i",{className:"button-icon button-icon-right ".concat(d),"aria-hidden":"true"}):null,y||S?null:h.createElement(g.Z,{className:f||v?"hidden":"",displayCenter:E}))))}}]),o}(h.Component);(0,u.Z)(T,"SelectMode",x.Z),(0,u.Z)(T,"Theme",v.Z),T.propTypes={index:p().number,className:p().string,style:p().object,theme:p().oneOf(y.ZP.enumerateValue(v.Z)),selectTheme:p().oneOf(y.ZP.enumerateValue(v.Z)),selectMode:p().oneOf(y.ZP.enumerateValue(x.Z)),data:p().oneOfType([p().string,p().number,p().object]),value:p().oneOfType([p().string,p().number]),text:p().any,desc:p().string,disabled:p().bool,isLoading:p().bool,disableTouchRipple:p().bool,rippleDisplayCenter:p().bool,checked:p().bool,readOnly:p().bool,parentEl:p().object,iconCls:p().string,rightIconCls:p().string,tip:p().string,tipPosition:p().oneOf(y.ZP.enumerateValue(E.Z)),radioUncheckedIconCls:p().string,radioCheckedIconCls:p().string,checkboxUncheckedIconCls:p().string,checkboxCheckedIconCls:p().string,checkboxIndeterminateIconCls:p().string,col:p().number,itemRenderer:p().func,renderer:p().func,onClick:p().func,onSelect:p().func,onDeselect:p().func,onMouseEnter:p().func,onMouseLeave:p().func},T.defaultProps={index:0,theme:v.Z.DEFAULT,selectTheme:v.Z.DEFAULT,selectMode:x.Z.SINGLE_SELECT,disabled:!1,isLoading:!1,disableTouchRipple:!1,rippleDisplayCenter:!1,checked:!1,readOnly:!1,tipPosition:E.Z.BOTTOM,checkboxUncheckedIconCls:"far fa-square",checkboxCheckedIconCls:"fas fa-check-square",checkboxIndeterminateIconCls:"fas fa-minus-square",col:3};const L=T;var S=t(96509),M=t(1469),U=t.n(M),N=t(57949),O=t(19605);var P=function(e){(0,s.Z)(p,e);var n,t,m=(n=p,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,c=(0,d.Z)(n);if(t){var o=(0,d.Z)(this).constructor;e=Reflect.construct(c,arguments,o)}else e=c.apply(this,arguments);return(0,a.Z)(this,e)});function p(e){var n;(0,l.Z)(this,p);for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];return n=m.call.apply(m,[this,e].concat(i)),(0,u.Z)((0,r.Z)(n),"listItemSelectHandler",(function(e,t){var c=n.props.selectMode,o=n.state.value;c===x.Z.MULTI_SELECT?(o&&U()(o)||(o=[]),o.push(e)):c===x.Z.SINGLE_SELECT&&(o=e),n.setState({value:o},(function(){var c=n.props,l=c.onItemSelect,i=c.onChange;l&&l(e,t),i&&i(o,t)}))})),(0,u.Z)((0,r.Z)(n),"listItemDeselectHandler",(function(e,t){if(n.props.selectMode===x.Z.MULTI_SELECT){var c=n.props,o=c.valueField,l=c.displayField,i=n.state.value;i=i&&U()(i)?i.filter((function(n){return y.ZP.getValueByValueField(n,o,l)!=y.ZP.getValueByValueField(e,o,l)})):[],n.setState({value:i},(function(){var c=n.props,o=c.onItemDeselect,l=c.onChange;o&&o(e,t),l&&l(i,t)}))}})),(0,u.Z)((0,r.Z)(n),"renderGridItem",(function(e,t){if(e){var l=n.props,i=l.theme,r=l.itemHeight,s=l.col,a=l.selectTheme,d=l.selectMode,u=l.radioUncheckedIconCls,m=l.radioCheckedIconCls,p=l.checkboxUncheckedIconCls,f=l.checkboxCheckedIconCls,C=l.checkboxIndeterminateIconCls,k=l.idField,b=l.valueField,I=l.displayField,Z=l.descriptionField,g=l.disabled,v=l.isLoading,E=l.renderer,x=l.parentEl,T=l.onItemClick,S=n.state.value;return"object"===(0,o.Z)(e)?h.createElement(L,(0,c.Z)({key:k in e&&e[k]||t},e,{index:t,style:{height:r},theme:e.theme||i,parentEl:x,col:s,selectTheme:e.selectTheme||a,radioUncheckedIconCls:e.radioUncheckedIconCls||u,radioCheckedIconCls:e.radioCheckedIconCls||m,checkboxUncheckedIconCls:e.checkboxUncheckedIconCls||p,checkboxCheckedIconCls:e.checkboxCheckedIconCls||f,checkboxIndeterminateIconCls:e.checkboxIndeterminateIconCls||C,data:e,checked:N.Z.isItemChecked(e,S,n.props),value:y.ZP.getValueByValueField(e,b,I),text:y.ZP.getTextByDisplayField(e,I,b),desc:e[Z]||null,disabled:g||e.disabled,isLoading:v||e.isLoading,selectMode:d,renderer:E,onClick:function(n){T&&T(e,t,n),e.onClick&&e.onClick(n)},onSelect:function(){return n.listItemSelectHandler(e,t)},onDeselect:function(){return n.listItemDeselectHandler(e,t)}})):h.createElement(L,{key:t,index:t,style:{height:r},theme:e.theme||i,parentEl:x,col:s,selectTheme:e.selectTheme||a,radioUncheckedIconCls:e.radioUncheckedIconCls||u,radioCheckedIconCls:e.radioCheckedIconCls||m,checkboxUncheckedIconCls:e.checkboxUncheckedIconCls||p,checkboxCheckedIconCls:e.checkboxCheckedIconCls||f,checkboxIndeterminateIconCls:e.checkboxIndeterminateIconCls||C,data:e,checked:N.Z.isItemChecked(e,S,n.props),value:e,text:e,disabled:g,isLoading:v,selectMode:d,renderer:E,onClick:function(n){return T&&T(e,t,n)},onSelect:function(){return n.listItemSelectHandler(e,t)},onDeselect:function(){return n.listItemDeselectHandler(e,t)}})}})),n.state={value:N.Z.getInitValue(e)},n}return(0,i.Z)(p,[{key:"render",value:function(){var e=this,n=this.props,t=n.children,c=n.className,o=n.style,l=n.data,i=n.disabled;return h.createElement("div",{className:C()("grid",(0,u.Z)({},c,c)),disabled:i,style:o},l&&l.map((function(n,t){return e.renderGridItem(n,t)})),t)}}],[{key:"getDerivedStateFromProps",value:function(e,n){return{prevProps:e,value:N.Z.getInitValue({value:O.Z.getDerivedState(e,n,"value"),selectMode:e.selectMode})}}}]),p}(h.Component);(0,u.Z)(P,"SelectMode",x.Z),(0,u.Z)(P,"Theme",v.Z),P.propTypes={children:p().any,className:p().string,style:p().object,theme:p().oneOf(y.ZP.enumerateValue(v.Z)),selectTheme:p().oneOf(y.ZP.enumerateValue(v.Z)),selectMode:p().oneOf(y.ZP.enumerateValue(x.Z)),data:p().arrayOf(p().oneOfType([p().shape({className:p().string,style:p().object,theme:p().oneOf(y.ZP.enumerateValue(v.Z)),value:p().oneOfType([p().string,p().number]),text:p().oneOfType([p().string,p().number]),desc:p().oneOfType([p().string,p().number]),disabled:p().bool,isLoading:p().bool,disableTouchRipple:p().bool,iconCls:p().string,rightIconCls:p().string,tip:p().string,tipPosition:p().oneOf(y.ZP.enumerateValue(S.Z.Position)),rippleDisplayCenter:p().bool,itemRenderer:p().func,onClick:p().func}),p().string,p().number,p().symbol])),value:p().any,idField:p().string,valueField:p().string,displayField:p().string,descriptionField:p().string,disabled:p().bool,isLoading:p().bool,radioUncheckedIconCls:p().string,radioCheckedIconCls:p().string,checkboxUncheckedIconCls:p().string,checkboxCheckedIconCls:p().string,checkboxIndeterminateIconCls:p().string,col:p().number,itemHeight:p().number,parentEl:p().object,renderer:p().func,onItemClick:p().func,onItemSelect:p().func,onItemDeselect:p().func,onChange:p().func},P.defaultProps={theme:v.Z.DEFAULT,selectTheme:v.Z.DEFAULT,selectMode:x.Z.SINGLE_SELECT,idField:"id",valueField:"value",displayField:"text",descriptionField:"desc",disabled:!1,checkboxUncheckedIconCls:"far fa-square",checkboxCheckedIconCls:"fas fa-check-square",checkboxIndeterminateIconCls:"fas fa-minus-square",col:3};const F=P}}]);
10,395
10,395
0.736893
1942787ff7b77e21ad4f93ce833c5a6fa9331053
2,403
js
JavaScript
test/alarms.reducers.test.js
platinum-smarthome/frontend
0d9448cc18548657dd553b3116742274ffaf56af
[ "Apache-2.0" ]
null
null
null
test/alarms.reducers.test.js
platinum-smarthome/frontend
0d9448cc18548657dd553b3116742274ffaf56af
[ "Apache-2.0" ]
null
null
null
test/alarms.reducers.test.js
platinum-smarthome/frontend
0d9448cc18548657dd553b3116742274ffaf56af
[ "Apache-2.0" ]
1
2019-06-20T17:32:51.000Z
2019-06-20T17:32:51.000Z
import Enzyme, { configure, shallow } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import { GET_ALARMS_STATUS_SUCCESS, GET_ALARMS_STATUS_LOADING, GET_ALARMS_STATUS_ERROR } from '../store/alarms/alarms.actionType'; import reducer from '../store/alarms/alarms.reducers'; let mockAction = { type: '', payload: {} } let mockAlarms = { door: 1, garage: 1, gas: 1, } let mockState = { alarms: mockAlarms, loading: false, error: false } let result describe('alarms.reducers Test', () => { it('Test reducers should run dan return initalState', () => { mockAction.type = '' result = reducer(mockState, mockAction) expect(result).toEqual(mockState) expect(result.loading).toEqual(false) expect(result.error).toEqual(false) expect(result.alarms.door).toEqual(1) expect(result.alarms.garage).toEqual(1) expect(result.alarms.gas).toEqual(1) }) it('Test GET_ALARMS_STATUS_SUCCESS', () => { mockAction.type = GET_ALARMS_STATUS_SUCCESS mockAction.payload = { door: 1, garage: 0, gas: 0, } result = reducer(mockState, mockAction) expect(result).toEqual({ ...mockState, alarms: { ...mockAction.payload } }) expect(result.loading).toEqual(false) expect(result.error).toEqual(false) expect(result.alarms.door).toEqual(1) expect(result.alarms.garage).toEqual(0) expect(result.alarms.gas).toEqual(0) }) it('Test GET_ALARMS_STATUS_SUCCESS should return loading: true', () => { mockAction.type = GET_ALARMS_STATUS_LOADING result = reducer(mockState, mockAction) expect(result).toEqual({ ...mockState, loading: true }) expect(result.loading).toEqual(true) }) it('Test GET_ALARMS_STATUS_LOADING should return error: true & loading: false', () => { mockAction.type = GET_ALARMS_STATUS_LOADING result = reducer(mockState, mockAction) expect(result).toEqual({ ...mockState, loading: true, }) expect(result.loading).toEqual(true) }) it('Test GET_ALARMS_STATUS_ERROR should return error: true & loading: false', () => { mockAction.type = GET_ALARMS_STATUS_ERROR result = reducer(mockState, mockAction) expect(result).toEqual({ ...mockState, loading: false, error: true }) expect(result.loading).toEqual(false) expect(result.error).toEqual(true) }) })
25.56383
89
0.668747
19429ae90c9199614fc471293fe90c413d82d042
947
js
JavaScript
B2G/gecko/toolkit/components/places/tests/inline/test_zero_frecency.js
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
B2G/gecko/toolkit/components/places/tests/inline/test_zero_frecency.js
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
null
null
null
B2G/gecko/toolkit/components/places/tests/inline/test_zero_frecency.js
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-07-29T07:17:15.000Z
2020-11-04T06:55:37.000Z
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ // Ensure inline autocomplete doesn't return zero frecency pages. add_autocomplete_test([ "Searching for zero frecency domain should not autoFill it", "moz", "moz", function () { Services.prefs.setBoolPref("browser.urlbar.autoFill.typed", false); addVisits({ uri: NetUtil.newURI("http://mozilla.org/framed_link/"), transition: TRANSITION_FRAMED_LINK }); } ]); add_autocomplete_test([ "Searching for zero frecency url should not autoFill it", "mozilla.org/f", "mozilla.org/f", function () { Services.prefs.setBoolPref("browser.urlbar.autoFill.typed", false); addVisits({ uri: NetUtil.newURI("http://mozilla.org/framed_link/"), transition: TRANSITION_FRAMED_LINK }); } ]);
33.821429
76
0.689546
19439ce4f8c63e11b2b5c11011b816a3bf7eeeb0
549
js
JavaScript
sandbox/product-server-version-001/index.js
shannonjohnstone/javascript-fullstack-learning
7f58eed0f129e3ee47edf856805bd51e6bd36212
[ "MIT" ]
null
null
null
sandbox/product-server-version-001/index.js
shannonjohnstone/javascript-fullstack-learning
7f58eed0f129e3ee47edf856805bd51e6bd36212
[ "MIT" ]
null
null
null
sandbox/product-server-version-001/index.js
shannonjohnstone/javascript-fullstack-learning
7f58eed0f129e3ee47edf856805bd51e6bd36212
[ "MIT" ]
null
null
null
import express from "express"; import bodyParser from "body-parser"; import { requestHandler, addProductRoute, productRoute } from "./routes.js"; const app = express(); app.set("view engine", 'pug') app.use(bodyParser.urlencoded({ extended: false })) app.post("/product", productRoute); app.get("/add-product", addProductRoute); app.use("/", requestHandler); const PORT = process.env.PORT ?? 8000; app.listen(PORT , () => { console.log("Server running"); console.log(`If running locally it can be found at http://www.localhost:${PORT}`); })
28.894737
84
0.703097
1944e3fcbc5290b4ddf9bd6a89bc38bf4cc2c2e0
4,514
js
JavaScript
AppRR/containers/validation/index.js
Hug0Albert0/Restaurant-Roulette
cca5466ce5dbd04418e106974a40bbbaa41fc4fc
[ "MIT" ]
null
null
null
AppRR/containers/validation/index.js
Hug0Albert0/Restaurant-Roulette
cca5466ce5dbd04418e106974a40bbbaa41fc4fc
[ "MIT" ]
11
2020-07-19T04:42:06.000Z
2022-03-08T22:30:30.000Z
AppRR/containers/validation/index.js
Hug0Albert0/Restaurant-Roulette
cca5466ce5dbd04418e106974a40bbbaa41fc4fc
[ "MIT" ]
null
null
null
import React, {Component} from 'react'; import { ScrollView, Text, Button, TextInput, CheckBox, StyleSheet, Keyboard, View, Platform } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import {CheckBoxIOS,ButtonIOS} from '../../components' export default class Validation extends Component { constructor(props) { super (props); this.state= {checkState: false}; } render () { return ( <ScrollView scrollEnabled={false} contentContainerStyle={styles.mainView} onPress={Keyboard.dismiss}> <View style={{flex: 1, width: '100%'}}> <View style={{padding: 15}}> <Text style={{fontSize: 16}}>Ingresa tu Numero de Control</Text> </View> <View style={{flexDirection:'row', padding: 10, justifyContent: 'flex-start'}}> <TextInput style={{width: '65%', fontSize: 20, borderBottomWidth: Platform.OS === 'ios' ? 2 : 0, borderColor: Platform.OS === 'ios' ? 'lightgray': 'transparent'}} maxLength={8} keyboardType='phone-pad' placeholder="Numero de Control"/> <View style= {{paddingLeft:20, width: '35%', justifyContent: 'center'}}> <ButtonIOS onPress= { () => {}} value="Buscar"/> </View> </View> </View> <View style={{flex: 3, width:'100%', alignItems: 'center'}}> <View style={{padding: 5, marginBottom: 10,marginTop: 0, backgroundColor: 'white', flex:1, width: '95%', borderWidth: 3, borderColor: 'green', borderRadius: 10}}> <View style={{width: '100%', flex: 1, flexDirection:'row'}}> <View style={{flex:1, alignItems: 'center', justifyContent: 'center'}}> <Icon name="user-circle" size={30} color="#40464D" /> </View> <View style={{flex: 3, justifyContent: 'center',paddingLeft:10}}> <Text style={{fontSize:18}}>Hugo Alberto Rivera Diaz</Text> <Text style={{fontWeight:'bold'}}>Nombre</Text> </View> </View> <View style={{width: '100%', flex: 1, flexDirection:'row'}}> <View style={{flex:1, alignItems: 'center', justifyContent: 'center'}}> <Icon name="book" size={30} color="#40464D" /> </View> <View style={{flex: 3, justifyContent: 'center',paddingLeft:10}}> <Text style={{fontSize:18}}>Ing. en Sitemas Computacionales</Text> <Text style={{fontWeight:'bold'}}>Carrera</Text> </View> </View> <View style={{width: '100%', flex: 1, flexDirection:'row'}}> <View style={{flex:1, alignItems: 'center', justifyContent: 'center'}}> <Icon name="hourglass-half" size={30} color="#40464D" /> </View> <View style={{flex: 3, justifyContent: 'center',paddingLeft:10}}> <Text style={{fontSize:18}}>10</Text> <Text style={{fontWeight:'bold'}}>Semestre</Text> </View> </View> <View style={{width: '100%', flex: 1, flexDirection:'row'}}> <View style={{flex:1, alignItems: 'center', justifyContent: 'center'}}> <Icon name="hashtag" size={30} color="#40464D" /> </View> <View style={{flex: 3, justifyContent: 'center',paddingLeft:10}}> <Text style={{fontSize:18}}>13301053</Text> <Text style={{fontWeight:'bold'}}>No. de Control</Text> </View> </View> </View> </View> <View style={{flexDirection: 'row',alignItems: 'center', flex: 0.7 ,width:'95%',justifyContent:'space-between'}}> <View style={{flexDirection: 'row',alignItems: 'center'}}> { this.renderCheckBox() } </View> <ButtonIOS onPress={()=> this.props.navigation.navigate("CreatingAccount")} disabled={!this.state.checkState} value="Continuar" color='#048E03'/> </View> </ScrollView> ); } renderCheckBox () { if (Platform.OS === 'ios') { return <CheckBoxIOS title="Mis datos son correctos" value={this.state.checkState} onPress={() => {this.setState({checkState:!this.state.checkState})}}/> } else { return ( <View style={{flexDirection: 'row', alignItems: 'center'}}> <CheckBox value={this.state.checkState} onChange={() => {this.setState({checkState:!this.state.checkState})}}/> <Text onPress={() => {this.setState({checkState:!this.state.checkState})}} style={{fontSize:15, fontWeight:'bold'}} >Mis Datos son correctos</Text> </View> ) } } } const styles = StyleSheet.create({ mainView: { flex: 1, justifyContent:'center', alignItems: 'center', } });
39.596491
173
0.59681
19450f42f55b0d9f302b1dafa60d1d9e0ad9b256
2,887
js
JavaScript
src/distributer/input.js
stephan-dum/irrigable
10ebd1a4f6e9e57ad6bee84d1494762ed78c472b
[ "ISC" ]
null
null
null
src/distributer/input.js
stephan-dum/irrigable
10ebd1a4f6e9e57ad6bee84d1494762ed78c472b
[ "ISC" ]
null
null
null
src/distributer/input.js
stephan-dum/irrigable
10ebd1a4f6e9e57ad6bee84d1494762ed78c472b
[ "ISC" ]
null
null
null
let VinylStream /*circular see bottom*/; const ChokidarStream = require("../provider/chokidar.js"); const Irrigable = require("./irrigable.js"); const Invocable = require("@aboutweb/irrigable-invoc"); const objectToString = Object.prototype.toString; const path = require("path"); const crypto = require("crypto"); const { inspect } = require('util'); class InputStream extends Irrigable { constructor(options, distributer, callback) { if(!("last" in options)) { options.last = false; } super(options, distributer); let { config = {}, glob = [], complete, sync, hash, task } = options; if(!Array.isArray(glob)) { glob = [glob]; } this.hash = hash; this.config = Object.freeze({ ...config }); this.glob = glob; let stack; if(this.last) { stack = [[]]; } else { stack = ( task ?distributer.findTask(task) :distributer ); stack = stack.trace(this); } this.streams = stack.map((stream) => this.pipe(new VinylStream(this, stream))); if(sync) { this.on("sync", sync); } if(this.watch) { this.watcher = new ChokidarStream({ cwd : path.join(this.cwd, this.base), glob : glob, initial : false, persistent : true, }); this.watcher.pipe(this); this.watcher.on("unlink", () => this.emit("unlink")); } this.on("error", this.error); this.write(glob, (error) => { if(complete) { complete(error, this); } if(!error) { if(this.watch) { this.on("sync", () => { distributer.emit("sync"); }); } distributer.emit("sync"); this.emit("complete"); } if(callback) { callback(error, this); } }); } _write(file, encoding, callback) { Promise.all( this.streams.map( (stream) => new Promise( (resolve, reject) => { stream.write(file, resolve) } ) ) ).then(() => callback(), callback); } _destroy(error, callback) { if(this.watcher) { this.watcher.destroy(); } this.streams.forEach((stream) => { stream.destroy(); }); super._destroy(error, callback); } static cast(input) { switch(objectToString.call(input)) { case "[object String]": input = { glob : [input] }; break; case "[object Array]": input = { glob : input }; break; } if(!input.hash) { input.hash = InputStream.hashJSON(input); } return input; } static hashJSON(input) { return crypto.createHash('sha256') .update(inspect(input)) .digest('hex') ; } } module.exports = InputStream; /*resolve circular reference*/ VinylStream = require("../vinyl/index.js");
20.330986
83
0.53585
1945a72f062d9dae79607925242a88dcf8d2bb8b
14,926
js
JavaScript
public/js/chat.js
JasonJiang335/ifurtheone
0fdd1eabcc5d13fc2b23bc36d2a4869a7ab03af7
[ "MIT" ]
null
null
null
public/js/chat.js
JasonJiang335/ifurtheone
0fdd1eabcc5d13fc2b23bc36d2a4869a7ab03af7
[ "MIT" ]
null
null
null
public/js/chat.js
JasonJiang335/ifurtheone
0fdd1eabcc5d13fc2b23bc36d2a4869a7ab03af7
[ "MIT" ]
null
null
null
window.onload = function() { $('#selectRole').modal('show'); var messages = []; //var socket = io.connect('http://192.168.0.11:3700/'); var socket = io.connect(window.location.hostname); /*var field = document.getElementById("field"); var sendButton = document.getElementById("send"); var content = document.getElementById("content");*/ var num1 = document.getElementById("num1"); var num2 = document.getElementById("num2"); var num3 = document.getElementById("num3"); var num4 = document.getElementById("num4"); var num5 = document.getElementById("num5"); var num6 = document.getElementById("num6"); var num7 = document.getElementById("num7"); var num8 = document.getElementById("num8"); var num9 = document.getElementById("num9"); var num10 = document.getElementById("num10"); var num11 = document.getElementById("num11"); var num12 = document.getElementById("num12"); var num13 = document.getElementById("num13"); var num14 = document.getElementById("num14"); var num15 = document.getElementById("num15"); var num16 = document.getElementById("num16"); var num17 = document.getElementById("num17"); var shutBtn = document.getElementById("shut"); var blowBtn = document.getElementById("blow"); var lightBtn = document.getElementById("light"); var quitBtn = document.getElementById("quit"); var allightBtn = document.getElementById("allight"); var last; var shutsound = document.getElementById("shutsound"); audiojs.events.ready(function() { var as = audiojs.createAll(); }); $("#num1").hide(); $("#num2").hide(); $("#num3").hide(); $("#num4").hide(); $("#num5").hide(); $("#num6").hide(); $("#num7").hide(); $("#num8").hide(); $("#num9").hide(); $("#num10").hide(); $("#num11").hide(); $("#num12").hide(); $("#num13").hide(); $("#num14").hide(); $("#num15").hide(); $("#num16").hide(); $("#allight").hide(); $("#audgroup").hide(); $("#adminpass").hide(); $("#shutlight").hide(); $("#blowlight").hide(); var selectRole; var submitRole = document.getElementById("submitRole"); $(document).on('change','#roleNum',function(){ selectRole = document.getElementById("roleNum").value; if(selectRole == "17") { $("#adminpass").show(); } }); submitRole.onclick = function(){ selectRole = document.getElementById("roleNum").value; console.log(selectRole); switch(selectRole) { case "1": $("#num1").show(); $("#wxscreen").hide(); break; case "2": $("#num2").show(); $("#wxscreen").hide(); break; case "3": $("#num3").show(); $("#wxscreen").hide(); break; case "4": $("#num4").show(); $("#wxscreen").hide(); break; case "5": $("#num5").show(); $("#wxscreen").hide(); break; case "6": $("#num6").show(); $("#wxscreen").hide(); break; case "7": $("#num7").show(); $("#wxscreen").hide(); break; case "8": $("#num8").show(); $("#wxscreen").hide(); break; case "9": $("#num9").show(); $("#wxscreen").hide(); break; case "10": $("#num10").show(); $("#wxscreen").hide(); break; case "11": $("#num11").show(); $("#wxscreen").hide(); break; case "12": $("#num12").show(); $("#wxscreen").hide(); break; case "13": $("#num13").show(); $("#wxscreen").hide(); break; case "14": $("#num14").show(); $("#wxscreen").hide(); break; case "15": $("#num15").show(); $("#wxscreen").hide(); break; case "16": $("#num16").show(); $("#wxscreen").hide(); break; case "17": var adminpass = document.getElementById("pass").value; if(adminpass == "cu2015") { $("#num1").show(); $("#num2").show(); $("#num3").show(); $("#num4").show(); $("#num5").show(); $("#num6").show(); $("#num7").show(); $("#num8").show(); $("#num9").show(); $("#num10").show(); $("#num11").show(); $("#num12").show(); $("#num13").show(); $("#num14").show(); $("#num15").show(); $("#num16").show(); $("#allight").show(); $("#audgroup").show(); $("#shutlight").show(); $("#blowlight").show(); } break; } }; /*socket.on('message', function (data) { if(data.message) { messages.push(data.message); var html = ''; for(var i=0; i<messages.length; i++) { html += messages[i] + '<br />'; } content.innerHTML = html; } else { console.log("There is a problem:", data); } });*/ socket.on('allightGirl', function (data) { if(data.allightGirl) { $("#num1").css("background-color", 'none'); $("#num2").css("background-color", 'none'); $("#num3").css("background-color", 'none'); $("#num4").css("background-color", 'none'); $("#num5").css("background-color", 'none'); $("#num6").css("background-color", 'none'); $("#num7").css("background-color", 'none'); $("#num8").css("background-color", 'none'); $("#num9").css("background-color", 'none'); $("#num10").css("background-color", 'none'); $("#num11").css("background-color", 'none'); $("#num12").css("background-color", 'none'); $("#num13").css("background-color", 'none'); $("#num14").css("background-color", 'none'); $("#num15").css("background-color", 'none'); $("#num16").css("background-color", 'none'); } }); socket.on('shutGirl', function (data) { switch(data.shutGirl) { case 1: $("#num1").css("background-color", 'd9534f'); break; case 2: $("#num2").css("background-color", 'd9534f'); break; case 3: $("#num3").css("background-color", 'd9534f'); break; case 4: $("#num4").css("background-color", 'd9534f'); break; case 5: $("#num5").css("background-color", 'd9534f'); break; case 6: $("#num6").css("background-color", 'd9534f'); break; case 7: $("#num7").css("background-color", 'd9534f'); break; case 8: $("#num8").css("background-color", 'd9534f'); break; case 9: $("#num9").css("background-color", 'd9534f'); break; case 10: $("#num10").css("background-color", 'd9534f'); break; case 11: $("#num11").css("background-color", 'd9534f'); break; case 12: $("#num12").css("background-color", 'd9534f'); break; case 13: $("#num13").css("background-color", 'd9534f'); break; case 14: $("#num14").css("background-color", 'd9534f'); break; case 15: $("#num15").css("background-color", 'd9534f'); break; case 16: $("#num16").css("background-color", 'd9534f'); break; } }); socket.on('lightGirl', function (data) { switch(data.lightGirl) { case 1: $("#num1").css("background-color", 'none'); break; case 2: $("#num2").css("background-color", 'none'); break; case 3: $("#num3").css("background-color", 'none'); break; case 4: $("#num4").css("background-color", 'none'); break; case 5: $("#num5").css("background-color", 'none'); break; case 6: $("#num6").css("background-color", 'none'); break; case 7: $("#num7").css("background-color", 'none'); break; case 8: $("#num8").css("background-color", 'none'); break; case 9: $("#num9").css("background-color", 'none'); break; case 10: $("#num10").css("background-color", 'none'); break; case 11: $("#num11").css("background-color", 'none'); break; case 12: $("#num12").css("background-color", 'none'); break; case 13: $("#num13").css("background-color", 'none'); break; case 14: $("#num14").css("background-color", 'none'); break; case 15: $("#num15").css("background-color", 'none'); break; case 16: $("#num16").css("background-color", 'none'); break; } }); socket.on('blowGirl', function (data) { switch(data.blowGirl) { case 1: $("#num1").css("background-color", '5cb85c'); break; case 2: $("#num2").css("background-color", '5cb85c'); break; case 3: $("#num3").css("background-color", '5cb85c'); break; case 4: $("#num4").css("background-color", '5cb85c'); break; case 5: $("#num5").css("background-color", '5cb85c'); break; case 6: $("#num6").css("background-color", '5cb85c'); break; case 7: $("#num7").css("background-color", '5cb85c'); break; case 8: $("#num8").css("background-color", '5cb85c'); break; case 9: $("#num9").css("background-color", '5cb85c'); break; case 10: $("#num10").css("background-color", '5cb85c'); break; case 11: $("#num11").css("background-color", '5cb85c'); break; case 12: $("#num12").css("background-color", '5cb85c'); break; case 13: $("#num13").css("background-color", '5cb85c'); break; case 14: $("#num14").css("background-color", '5cb85c'); break; case 15: $("#num15").css("background-color", '5cb85c'); break; case 16: $("#num16").css("background-color", '5cb85c'); break; } }); socket.on('quitGirl', function (data) { switch(data.quitGirl) { case 1: $("#num1").fadeOut("slow"); break; case 2: $("#num2").fadeOut("slow"); break; case 3: $("#num3").fadeOut("slow"); break; case 4: $("#num4").fadeOut("slow"); break; case 5: $("#num5").fadeOut("slow"); break; case 6: $("#num6").fadeOut("slow"); break; case 7: $("#num7").fadeOut("slow"); break; case 8: $("#num8").fadeOut("slow"); break; case 9: $("#num9").fadeOut("slow"); break; case 10: $("#num10").fadeOut("slow"); break; case 11: $("#num11").fadeOut("slow"); break; case 12: $("#num12").fadeOut("slow"); break; case 13: $("#num13").fadeOut("slow"); break; case 14: $("#num14").fadeOut("slow"); break; case 15: $("#num15").fadeOut("slow"); break; case 16: $("#num16").fadeOut("slow"); break; } }); /*sendButton.onclick = function() { var text = field.value; socket.emit('send', { message: text }); };*/ shutBtn.onclick = function(){ sound = document.getElementById('shut-sound'); sound.loop = false; sound.play(); socket.emit('shut', { shutGirl: last }); }; lightBtn.onclick = function(){ socket.emit('light', { lightGirl: last }); }; blowBtn.onclick = function() { sound = document.getElementById('blow-sound'); sound.loop = false; sound.play(); socket.emit('blow', { blowGirl: last }); }; quitBtn.onclick = function() { socket.emit('quit', { quitGirl: last }); }; allightBtn.onclick = function() { sound = document.getElementById('light-sound'); sound.loop = false; sound.play(); socket.emit('allight', { allightGirl: last }); }; shutlight.onclick = function(){ sound = document.getElementById('shut-sound'); sound.loop = false; sound.play(); }; blowlight.onclick = function(){ sound = document.getElementById('blow-sound'); sound.loop = false; sound.play(); }; $("#num1").click(function(){ last = 1; }); $("#num2").click(function(){ last = 2; }); $("#num3").click(function(){ last = 3; }); $("#num4").click(function(){ last = 4; }); $("#num5").click(function(){ last = 5; }); $("#num6").click(function(){ last = 6; }); $("#num7").click(function(){ last = 7; }); $("#num8").click(function(){ last = 8; }); $("#num9").click(function(){ last = 9; }); $("#num10").click(function(){ last = 10; }); $("#num11").click(function(){ last = 11; }); $("#num12").click(function(){ last = 12; }); $("#num13").click(function(){ last = 13; }); $("#num14").click(function(){ last = 14; }); $("#num15").click(function(){ last = 15; }); $("#num16").click(function(){ last = 16; }); }
27.692022
70
0.429251
1945bfbef17b9c512b3df71479e93f78cffb67b0
2,428
js
JavaScript
src/components/OneEmotionChart.js
v1ctoriale1gh/emotion-tracker-front-end
9e5b480da502c58ad373a42a727fb1bc025b550f
[ "MIT" ]
1
2020-09-24T18:50:36.000Z
2020-09-24T18:50:36.000Z
src/components/OneEmotionChart.js
v1ctoriale1gh/emotion-tracker-front-end
9e5b480da502c58ad373a42a727fb1bc025b550f
[ "MIT" ]
null
null
null
src/components/OneEmotionChart.js
v1ctoriale1gh/emotion-tracker-front-end
9e5b480da502c58ad373a42a727fb1bc025b550f
[ "MIT" ]
null
null
null
import React, { Component } from "react"; import { Chart } from "react-google-charts"; import Container from 'react-bootstrap/Container'; import { connect } from 'react-redux'; import { getOneEmotionChartData } from '../actions'; import UserLogin from './UserLogin.js'; class OneEmotionChart extends Component { //set the title, axis titles, and min max for google API chart constructor(props) { super(); this.options = { title: props.name, hAxis: { title: "Dates" }, vAxis: { title: "Intensity", viewWindow: { min: 0, max: 15 } }, } } //when the component mounts, action creator to get all the data componentDidMount() { !!this.props.user.id && this.props.getOneEmotionChartData(this.props.user.id, this.props.name) } composeData(){ if (this.props.chartData.length > 0 ) { let data = [['Date', 'Intensity']] this.props.chartData.forEach(log => { let logArray = [] logArray.push(log.created_at.split("T")[0]) logArray.push(parseInt(log.intensity)) data.push(logArray) }) //console.log(data) return data } else { return [['Date', 'Intensity'], ["MAKE AN EMOTION LOG TO DISPLAY DATA", 0]] } } //if there is a user id render the component if there is not redirect to sign in render() { return ( <div> {this.props.user.id ? <Container className={"all-emotion-chart"}> <Chart loader={<div>Loading Chart</div>} chartType="LineChart" options={this.options} data={this.composeData()} width="100%" height="400px" legendToggle /> </Container> : <UserLogin /> } </div> ); } } //get the chart data, and get the user from redux store function mapStateToProps(state) { return { chartData: state.emotionCharts, user: state.user } } //function mapDispatchToProps(dispatch) { // return { // boundGetOneEmotionChartData: (id, name) => dispatch(getOneEmotionChartData(id,name)) //} // //pass in mapstate to props and map dispatch to props, and connect the component to redux store export default connect(mapStateToProps, { getOneEmotionChartData })(OneEmotionChart);
27.590909
102
0.580725
1945d969d9d10d5a3f4fe33eb359c80f5697fd08
1,841
js
JavaScript
frontend/app/experiment-import/experiment-import.controller.js
human-nature-lab/breadboard
93507b4072c3e896336855df536eb43e6378c664
[ "MIT" ]
46
2016-05-03T09:23:10.000Z
2022-02-16T01:41:49.000Z
frontend/app/experiment-import/experiment-import.controller.js
human-nature-lab/breadboard
93507b4072c3e896336855df536eb43e6378c664
[ "MIT" ]
99
2016-06-28T21:45:52.000Z
2022-02-26T11:30:48.000Z
frontend/app/experiment-import/experiment-import.controller.js
human-nature-lab/breadboard
93507b4072c3e896336855df536eb43e6378c664
[ "MIT" ]
11
2016-05-18T19:11:16.000Z
2020-02-28T20:25:06.000Z
ExperimentImportCtrl.$inject = ['$scope', 'Upload', '$timeout']; export default function ExperimentImportCtrl($scope, Upload, $timeout){ $scope.import = { path: '/experiment/import', file: null, name: '', importedName: '', error: '', success: false, selectExperiment: true }; $scope.$watch('import.file.name', function() { if ($scope.import.file !== null && $scope.import.name === "") { let fileName = $scope.import.file.name; let indexOfZip = fileName.indexOf('.zip'); fileName = fileName.substring(0, indexOfZip); $scope.import.name = fileName; } }, true); $scope.importExperiment = function(){ if(!$scope.import.file) return; let name = $scope.import.name.length ? $scope.import.name : $scope.import.file.name; name = name.replace('.zip', ''); Upload.upload({ url: $scope.import.path + `/${name}`, data: { file: $scope.import.file } }).then(function(resp){ if (resp.status < 400) { //Success $scope.import.file = null; $scope.import.importedName = $scope.import.name; $scope.import.name = ''; $scope.import.success = true; if ($scope.import.selectExperiment) { $scope.selectExperiment()(resp.data.id); } $timeout(function() { $scope.import.importedName = ''; $scope.import.success = false; $('#importExperimentDialog').dialog('close'); }, 1500); } else { errorOnUpload(resp); } }, function(err){ errorOnUpload(err) }, function(evt){ console.log('import upload progress', evt); }); }; function errorOnUpload(err) { console.error(err); $scope.import.error = (err.data) ? err.data : err; $scope.import.file = null; $scope.import.name = ''; } }
28.765625
88
0.577947
1946569ba037fdc2e59b0589720e89987561ed68
137,163
js
JavaScript
docs/notes/css-podcast-020-functions/f034c4b2.js
ianwith/tanhauhau.github.io
4c6e4abea7e63b328e2e6d6b174dc7bd75c247de
[ "MIT" ]
19
2019-09-30T14:45:22.000Z
2022-03-27T14:32:02.000Z
docs/notes/css-podcast-020-functions/f034c4b2.js
ianwith/tanhauhau.github.io
4c6e4abea7e63b328e2e6d6b174dc7bd75c247de
[ "MIT" ]
26
2019-11-08T14:10:09.000Z
2022-03-23T15:15:30.000Z
docs/notes/css-podcast-020-functions/f034c4b2.js
ianwith/tanhauhau.github.io
4c6e4abea7e63b328e2e6d6b174dc7bd75c247de
[ "MIT" ]
10
2019-11-01T14:42:45.000Z
2021-08-19T12:50:28.000Z
function noop() { } function assign(tar, src) { // @ts-ignore for (const k in src) tar[k] = src[k]; return tar; } function run(fn) { return fn(); } function blank_object() { return Object.create(null); } function run_all(fns) { fns.forEach(run); } function is_function(thing) { return typeof thing === 'function'; } function safe_not_equal(a, b) { return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); } function create_slot(definition, ctx, $$scope, fn) { if (definition) { const slot_ctx = get_slot_context(definition, ctx, $$scope, fn); return definition[0](slot_ctx); } } function get_slot_context(definition, ctx, $$scope, fn) { return definition[1] && fn ? assign($$scope.ctx.slice(), definition[1](fn(ctx))) : $$scope.ctx; } function get_slot_changes(definition, $$scope, dirty, fn) { if (definition[2] && fn) { const lets = definition[2](fn(dirty)); if ($$scope.dirty === undefined) { return lets; } if (typeof lets === 'object') { const merged = []; const len = Math.max($$scope.dirty.length, lets.length); for (let i = 0; i < len; i += 1) { merged[i] = $$scope.dirty[i] | lets[i]; } return merged; } return $$scope.dirty | lets; } return $$scope.dirty; } function update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) { const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn); if (slot_changes) { const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn); slot.p(slot_context, slot_changes); } } function append(target, node) { target.appendChild(node); } function insert(target, node, anchor) { target.insertBefore(node, anchor || null); } function detach(node) { node.parentNode.removeChild(node); } function destroy_each(iterations, detaching) { for (let i = 0; i < iterations.length; i += 1) { if (iterations[i]) iterations[i].d(detaching); } } function element(name) { return document.createElement(name); } function svg_element(name) { return document.createElementNS('http://www.w3.org/2000/svg', name); } function text(data) { return document.createTextNode(data); } function space() { return text(' '); } function attr(node, attribute, value) { if (value == null) node.removeAttribute(attribute); else if (node.getAttribute(attribute) !== value) node.setAttribute(attribute, value); } function children(element) { return Array.from(element.childNodes); } function claim_element(nodes, name, attributes, svg) { for (let i = 0; i < nodes.length; i += 1) { const node = nodes[i]; if (node.nodeName === name) { let j = 0; const remove = []; while (j < node.attributes.length) { const attribute = node.attributes[j++]; if (!attributes[attribute.name]) { remove.push(attribute.name); } } for (let k = 0; k < remove.length; k++) { node.removeAttribute(remove[k]); } return nodes.splice(i, 1)[0]; } } return svg ? svg_element(name) : element(name); } function claim_text(nodes, data) { for (let i = 0; i < nodes.length; i += 1) { const node = nodes[i]; if (node.nodeType === 3) { node.data = '' + data; return nodes.splice(i, 1)[0]; } } return text(data); } function claim_space(nodes) { return claim_text(nodes, ' '); } function set_data(text, data) { data = '' + data; if (text.wholeText !== data) text.data = data; } function query_selector_all(selector, parent = document.body) { return Array.from(parent.querySelectorAll(selector)); } let current_component; function set_current_component(component) { current_component = component; } const dirty_components = []; const binding_callbacks = []; const render_callbacks = []; const flush_callbacks = []; const resolved_promise = Promise.resolve(); let update_scheduled = false; function schedule_update() { if (!update_scheduled) { update_scheduled = true; resolved_promise.then(flush); } } function add_render_callback(fn) { render_callbacks.push(fn); } let flushing = false; const seen_callbacks = new Set(); function flush() { if (flushing) return; flushing = true; do { // first, call beforeUpdate functions // and update components for (let i = 0; i < dirty_components.length; i += 1) { const component = dirty_components[i]; set_current_component(component); update(component.$$); } dirty_components.length = 0; while (binding_callbacks.length) binding_callbacks.pop()(); // then, once components are updated, call // afterUpdate functions. This may cause // subsequent updates... for (let i = 0; i < render_callbacks.length; i += 1) { const callback = render_callbacks[i]; if (!seen_callbacks.has(callback)) { // ...so guard against infinite loops seen_callbacks.add(callback); callback(); } } render_callbacks.length = 0; } while (dirty_components.length); while (flush_callbacks.length) { flush_callbacks.pop()(); } update_scheduled = false; flushing = false; seen_callbacks.clear(); } function update($$) { if ($$.fragment !== null) { $$.update(); run_all($$.before_update); const dirty = $$.dirty; $$.dirty = [-1]; $$.fragment && $$.fragment.p($$.ctx, dirty); $$.after_update.forEach(add_render_callback); } } const outroing = new Set(); let outros; function transition_in(block, local) { if (block && block.i) { outroing.delete(block); block.i(local); } } function transition_out(block, local, detach, callback) { if (block && block.o) { if (outroing.has(block)) return; outroing.add(block); outros.c.push(() => { outroing.delete(block); if (callback) { if (detach) block.d(1); callback(); } }); block.o(local); } } function get_spread_update(levels, updates) { const update = {}; const to_null_out = {}; const accounted_for = { $$scope: 1 }; let i = levels.length; while (i--) { const o = levels[i]; const n = updates[i]; if (n) { for (const key in o) { if (!(key in n)) to_null_out[key] = 1; } for (const key in n) { if (!accounted_for[key]) { update[key] = n[key]; accounted_for[key] = 1; } } levels[i] = n; } else { for (const key in o) { accounted_for[key] = 1; } } } for (const key in to_null_out) { if (!(key in update)) update[key] = undefined; } return update; } function get_spread_object(spread_props) { return typeof spread_props === 'object' && spread_props !== null ? spread_props : {}; } function create_component(block) { block && block.c(); } function claim_component(block, parent_nodes) { block && block.l(parent_nodes); } function mount_component(component, target, anchor) { const { fragment, on_mount, on_destroy, after_update } = component.$$; fragment && fragment.m(target, anchor); // onMount happens before the initial afterUpdate add_render_callback(() => { const new_on_destroy = on_mount.map(run).filter(is_function); if (on_destroy) { on_destroy.push(...new_on_destroy); } else { // Edge case - component was destroyed immediately, // most likely as a result of a binding initialising run_all(new_on_destroy); } component.$$.on_mount = []; }); after_update.forEach(add_render_callback); } function destroy_component(component, detaching) { const $$ = component.$$; if ($$.fragment !== null) { run_all($$.on_destroy); $$.fragment && $$.fragment.d(detaching); // TODO null out other refs, including component.$$ (but need to // preserve final state?) $$.on_destroy = $$.fragment = null; $$.ctx = []; } } function make_dirty(component, i) { if (component.$$.dirty[0] === -1) { dirty_components.push(component); schedule_update(); component.$$.dirty.fill(0); } component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31)); } function init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) { const parent_component = current_component; set_current_component(component); const prop_values = options.props || {}; const $$ = component.$$ = { fragment: null, ctx: null, // state props, update: noop, not_equal, bound: blank_object(), // lifecycle on_mount: [], on_destroy: [], before_update: [], after_update: [], context: new Map(parent_component ? parent_component.$$.context : []), // everything else callbacks: blank_object(), dirty }; let ready = false; $$.ctx = instance ? instance(component, prop_values, (i, ret, ...rest) => { const value = rest.length ? rest[0] : ret; if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) { if ($$.bound[i]) $$.bound[i](value); if (ready) make_dirty(component, i); } return ret; }) : []; $$.update(); ready = true; run_all($$.before_update); // `false` as a special case of no DOM component $$.fragment = create_fragment ? create_fragment($$.ctx) : false; if (options.target) { if (options.hydrate) { const nodes = children(options.target); // eslint-disable-next-line @typescript-eslint/no-non-null-assertion $$.fragment && $$.fragment.l(nodes); nodes.forEach(detach); } else { // eslint-disable-next-line @typescript-eslint/no-non-null-assertion $$.fragment && $$.fragment.c(); } if (options.intro) transition_in(component.$$.fragment); mount_component(component, options.target, options.anchor); flush(); } set_current_component(parent_component); } class SvelteComponent { $destroy() { destroy_component(this, 1); this.$destroy = noop; } $on(type, callback) { const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = [])); callbacks.push(callback); return () => { const index = callbacks.indexOf(callback); if (index !== -1) callbacks.splice(index, 1); }; } $set() { // overridden by instance, if it has props } } /* src/layout/Header.svelte generated by Svelte v3.24.0 */ function create_fragment(ctx) { let header; let nav; let ul; let li0; let a0; let t0; let t1; let li1; let a1; let t2; let t3; let li2; let a2; let t4; let t5; let li3; let a3; let t6; let t7; let li4; let a4; let t8; let t9; let li5; let a5; let t10; let t11; let li6; let a6; let t12; let t13; let li7; let a7; let svg0; let path0; let t14; let a8; let svg1; let path1; return { c() { header = element("header"); nav = element("nav"); ul = element("ul"); li0 = element("li"); a0 = element("a"); t0 = text("Tan Li Hau"); t1 = space(); li1 = element("li"); a1 = element("a"); t2 = text("About"); t3 = space(); li2 = element("li"); a2 = element("a"); t4 = text("Writings"); t5 = space(); li3 = element("li"); a3 = element("a"); t6 = text("Videos"); t7 = space(); li4 = element("li"); a4 = element("a"); t8 = text("Talks"); t9 = space(); li5 = element("li"); a5 = element("a"); t10 = text("Notes"); t11 = space(); li6 = element("li"); a6 = element("a"); t12 = text("Newsletter"); t13 = space(); li7 = element("li"); a7 = element("a"); svg0 = svg_element("svg"); path0 = svg_element("path"); t14 = space(); a8 = element("a"); svg1 = svg_element("svg"); path1 = svg_element("path"); this.h(); }, l(nodes) { header = claim_element(nodes, "HEADER", { class: true }); var header_nodes = children(header); nav = claim_element(header_nodes, "NAV", {}); var nav_nodes = children(nav); ul = claim_element(nav_nodes, "UL", { class: true }); var ul_nodes = children(ul); li0 = claim_element(ul_nodes, "LI", { class: true }); var li0_nodes = children(li0); a0 = claim_element(li0_nodes, "A", { href: true, class: true }); var a0_nodes = children(a0); t0 = claim_text(a0_nodes, "Tan Li Hau"); a0_nodes.forEach(detach); li0_nodes.forEach(detach); t1 = claim_space(ul_nodes); li1 = claim_element(ul_nodes, "LI", { class: true }); var li1_nodes = children(li1); a1 = claim_element(li1_nodes, "A", { href: true, class: true }); var a1_nodes = children(a1); t2 = claim_text(a1_nodes, "About"); a1_nodes.forEach(detach); li1_nodes.forEach(detach); t3 = claim_space(ul_nodes); li2 = claim_element(ul_nodes, "LI", { class: true }); var li2_nodes = children(li2); a2 = claim_element(li2_nodes, "A", { href: true, class: true }); var a2_nodes = children(a2); t4 = claim_text(a2_nodes, "Writings"); a2_nodes.forEach(detach); li2_nodes.forEach(detach); t5 = claim_space(ul_nodes); li3 = claim_element(ul_nodes, "LI", { class: true }); var li3_nodes = children(li3); a3 = claim_element(li3_nodes, "A", { href: true, class: true }); var a3_nodes = children(a3); t6 = claim_text(a3_nodes, "Videos"); a3_nodes.forEach(detach); li3_nodes.forEach(detach); t7 = claim_space(ul_nodes); li4 = claim_element(ul_nodes, "LI", { class: true }); var li4_nodes = children(li4); a4 = claim_element(li4_nodes, "A", { href: true, class: true }); var a4_nodes = children(a4); t8 = claim_text(a4_nodes, "Talks"); a4_nodes.forEach(detach); li4_nodes.forEach(detach); t9 = claim_space(ul_nodes); li5 = claim_element(ul_nodes, "LI", { class: true }); var li5_nodes = children(li5); a5 = claim_element(li5_nodes, "A", { href: true, class: true }); var a5_nodes = children(a5); t10 = claim_text(a5_nodes, "Notes"); a5_nodes.forEach(detach); li5_nodes.forEach(detach); t11 = claim_space(ul_nodes); li6 = claim_element(ul_nodes, "LI", { class: true }); var li6_nodes = children(li6); a6 = claim_element(li6_nodes, "A", { href: true, class: true }); var a6_nodes = children(a6); t12 = claim_text(a6_nodes, "Newsletter"); a6_nodes.forEach(detach); li6_nodes.forEach(detach); t13 = claim_space(ul_nodes); li7 = claim_element(ul_nodes, "LI", { class: true }); var li7_nodes = children(li7); a7 = claim_element(li7_nodes, "A", { "aria-label": true, href: true, class: true }); var a7_nodes = children(a7); svg0 = claim_element( a7_nodes, "svg", { viewBox: true, width: true, height: true, class: true }, 1 ); var svg0_nodes = children(svg0); path0 = claim_element(svg0_nodes, "path", { d: true }, 1); children(path0).forEach(detach); svg0_nodes.forEach(detach); a7_nodes.forEach(detach); t14 = claim_space(li7_nodes); a8 = claim_element(li7_nodes, "A", { "aria-label": true, href: true, class: true }); var a8_nodes = children(a8); svg1 = claim_element( a8_nodes, "svg", { viewBox: true, width: true, height: true, class: true }, 1 ); var svg1_nodes = children(svg1); path1 = claim_element(svg1_nodes, "path", { d: true }, 1); children(path1).forEach(detach); svg1_nodes.forEach(detach); a8_nodes.forEach(detach); li7_nodes.forEach(detach); ul_nodes.forEach(detach); nav_nodes.forEach(detach); header_nodes.forEach(detach); this.h(); }, h() { attr(a0, "href", "/"); attr(a0, "class", "svelte-1axnxyd"); attr(li0, "class", "svelte-1axnxyd"); attr(a1, "href", "/about"); attr(a1, "class", "svelte-1axnxyd"); attr(li1, "class", "svelte-1axnxyd"); attr(a2, "href", "/blogs"); attr(a2, "class", "svelte-1axnxyd"); attr(li2, "class", "svelte-1axnxyd"); attr(a3, "href", "/videos"); attr(a3, "class", "svelte-1axnxyd"); attr(li3, "class", "svelte-1axnxyd"); attr(a4, "href", "/talks"); attr(a4, "class", "svelte-1axnxyd"); attr(li4, "class", "svelte-1axnxyd"); attr(a5, "href", "/notes"); attr(a5, "class", "svelte-1axnxyd"); attr(li5, "class", "svelte-1axnxyd"); attr(a6, "href", "/newsletter"); attr(a6, "class", "svelte-1axnxyd"); attr(li6, "class", "svelte-1axnxyd"); attr(path0, "d", "M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66\n 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5\n 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"); attr(svg0, "viewBox", "0 0 24 24"); attr(svg0, "width", "1em"); attr(svg0, "height", "1em"); attr(svg0, "class", "svelte-1axnxyd"); attr(a7, "aria-label", "Twitter account"); attr(a7, "href", "https://twitter.com/lihautan"); attr(a7, "class", "svelte-1axnxyd"); attr(path1, "d", "M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0\n 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07\n 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65\n 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42\n 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"); attr(svg1, "viewBox", "0 0 24 24"); attr(svg1, "width", "1em"); attr(svg1, "height", "1em"); attr(svg1, "class", "svelte-1axnxyd"); attr(a8, "aria-label", "Github account"); attr(a8, "href", "https://github.com/tanhauhau"); attr(a8, "class", "svelte-1axnxyd"); attr(li7, "class", "social svelte-1axnxyd"); attr(ul, "class", "svelte-1axnxyd"); attr(header, "class", "svelte-1axnxyd"); }, m(target, anchor) { insert(target, header, anchor); append(header, nav); append(nav, ul); append(ul, li0); append(li0, a0); append(a0, t0); append(ul, t1); append(ul, li1); append(li1, a1); append(a1, t2); append(ul, t3); append(ul, li2); append(li2, a2); append(a2, t4); append(ul, t5); append(ul, li3); append(li3, a3); append(a3, t6); append(ul, t7); append(ul, li4); append(li4, a4); append(a4, t8); append(ul, t9); append(ul, li5); append(li5, a5); append(a5, t10); append(ul, t11); append(ul, li6); append(li6, a6); append(a6, t12); append(ul, t13); append(ul, li7); append(li7, a7); append(a7, svg0); append(svg0, path0); append(li7, t14); append(li7, a8); append(a8, svg1); append(svg1, path1); }, p: noop, i: noop, o: noop, d(detaching) { if (detaching) detach(header); } }; } class Header extends SvelteComponent { constructor(options) { super(); init(this, options, null, create_fragment, safe_not_equal, {}); } } var baseCss = "https://lihautan.com/notes/css-podcast-020-functions/assets/blog-base-248115e4.css"; var image = null; /* src/layout/note.svelte generated by Svelte v3.24.0 */ function get_each_context(ctx, list, i) { const child_ctx = ctx.slice(); child_ctx[6] = list[i]; return child_ctx; } function get_each_context_1(ctx, list, i) { const child_ctx = ctx.slice(); child_ctx[6] = list[i]; return child_ctx; } // (25:2) {#each tags as tag} function create_each_block_1(ctx) { let meta; let meta_content_value; return { c() { meta = element("meta"); this.h(); }, l(nodes) { meta = claim_element(nodes, "META", { name: true, content: true }); this.h(); }, h() { attr(meta, "name", "keywords"); attr(meta, "content", meta_content_value = /*tag*/ ctx[6]); }, m(target, anchor) { insert(target, meta, anchor); }, p(ctx, dirty) { if (dirty & /*tags*/ 4 && meta_content_value !== (meta_content_value = /*tag*/ ctx[6])) { attr(meta, "content", meta_content_value); } }, d(detaching) { if (detaching) detach(meta); } }; } // (43:2) {#each tags as tag} function create_each_block(ctx) { let span; let t_value = /*tag*/ ctx[6] + ""; let t; return { c() { span = element("span"); t = text(t_value); this.h(); }, l(nodes) { span = claim_element(nodes, "SPAN", { class: true }); var span_nodes = children(span); t = claim_text(span_nodes, t_value); span_nodes.forEach(detach); this.h(); }, h() { attr(span, "class", "svelte-8ynu44"); }, m(target, anchor) { insert(target, span, anchor); append(span, t); }, p(ctx, dirty) { if (dirty & /*tags*/ 4 && t_value !== (t_value = /*tag*/ ctx[6] + "")) set_data(t, t_value); }, d(detaching) { if (detaching) detach(span); } }; } function create_fragment$1(ctx) { let title_value; let link; let meta0; let meta1; let meta2; let meta3; let meta4; let meta5; let meta6; let meta7; let meta8; let t0; let a; let t1; let t2; let header; let t3; let main; let h1; let t4; let t5; let t6; let article; let current; document.title = title_value = "Note: " + /*title*/ ctx[1] + " | Tan Li Hau"; let each_value_1 = /*tags*/ ctx[2]; let each_blocks_1 = []; for (let i = 0; i < each_value_1.length; i += 1) { each_blocks_1[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i)); } header = new Header({}); let each_value = /*tags*/ ctx[2]; let each_blocks = []; for (let i = 0; i < each_value.length; i += 1) { each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i)); } const default_slot_template = /*$$slots*/ ctx[4].default; const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[3], null); return { c() { link = element("link"); meta0 = element("meta"); meta1 = element("meta"); meta2 = element("meta"); meta3 = element("meta"); for (let i = 0; i < each_blocks_1.length; i += 1) { each_blocks_1[i].c(); } meta4 = element("meta"); meta5 = element("meta"); meta6 = element("meta"); meta7 = element("meta"); meta8 = element("meta"); t0 = space(); a = element("a"); t1 = text("Skip to content"); t2 = space(); create_component(header.$$.fragment); t3 = space(); main = element("main"); h1 = element("h1"); t4 = text(/*title*/ ctx[1]); t5 = space(); for (let i = 0; i < each_blocks.length; i += 1) { each_blocks[i].c(); } t6 = space(); article = element("article"); if (default_slot) default_slot.c(); this.h(); }, l(nodes) { const head_nodes = query_selector_all("[data-svelte=\"svelte-179iwio\"]", document.head); link = claim_element(head_nodes, "LINK", { href: true, rel: true }); meta0 = claim_element(head_nodes, "META", { name: true, content: true }); meta1 = claim_element(head_nodes, "META", { name: true, content: true }); meta2 = claim_element(head_nodes, "META", { name: true, content: true }); meta3 = claim_element(head_nodes, "META", { name: true, content: true }); for (let i = 0; i < each_blocks_1.length; i += 1) { each_blocks_1[i].l(head_nodes); } meta4 = claim_element(head_nodes, "META", { name: true, content: true }); meta5 = claim_element(head_nodes, "META", { name: true, content: true }); meta6 = claim_element(head_nodes, "META", { name: true, content: true }); meta7 = claim_element(head_nodes, "META", { name: true, content: true }); meta8 = claim_element(head_nodes, "META", { itemprop: true, content: true }); head_nodes.forEach(detach); t0 = claim_space(nodes); a = claim_element(nodes, "A", { href: true, class: true }); var a_nodes = children(a); t1 = claim_text(a_nodes, "Skip to content"); a_nodes.forEach(detach); t2 = claim_space(nodes); claim_component(header.$$.fragment, nodes); t3 = claim_space(nodes); main = claim_element(nodes, "MAIN", { id: true, class: true }); var main_nodes = children(main); h1 = claim_element(main_nodes, "H1", {}); var h1_nodes = children(h1); t4 = claim_text(h1_nodes, /*title*/ ctx[1]); h1_nodes.forEach(detach); t5 = claim_space(main_nodes); for (let i = 0; i < each_blocks.length; i += 1) { each_blocks[i].l(main_nodes); } t6 = claim_space(main_nodes); article = claim_element(main_nodes, "ARTICLE", { class: true }); var article_nodes = children(article); if (default_slot) default_slot.l(article_nodes); article_nodes.forEach(detach); main_nodes.forEach(detach); this.h(); }, h() { attr(link, "href", baseCss); attr(link, "rel", "stylesheet"); attr(meta0, "name", "image"); attr(meta0, "content", image); attr(meta1, "name", "og:image"); attr(meta1, "content", image); attr(meta2, "name", "og:title"); attr(meta2, "content", /*name*/ ctx[0]); attr(meta3, "name", "og:type"); attr(meta3, "content", "website"); attr(meta4, "name", "twitter:card"); attr(meta4, "content", "summary_large_image"); attr(meta5, "name", "twitter:creator"); attr(meta5, "content", "@lihautan"); attr(meta6, "name", "twitter:title"); attr(meta6, "content", /*title*/ ctx[1]); attr(meta7, "name", "twitter:image"); attr(meta7, "content", image); attr(meta8, "itemprop", "url"); attr(meta8, "content", "https%3A%2F%2Flihautan.com%2Fnotes%2Fcss-podcast-020-functions"); attr(a, "href", "#content"); attr(a, "class", "skip svelte-8ynu44"); attr(article, "class", "svelte-8ynu44"); attr(main, "id", "content"); attr(main, "class", "blog svelte-8ynu44"); }, m(target, anchor) { append(document.head, link); append(document.head, meta0); append(document.head, meta1); append(document.head, meta2); append(document.head, meta3); for (let i = 0; i < each_blocks_1.length; i += 1) { each_blocks_1[i].m(document.head, null); } append(document.head, meta4); append(document.head, meta5); append(document.head, meta6); append(document.head, meta7); append(document.head, meta8); insert(target, t0, anchor); insert(target, a, anchor); append(a, t1); insert(target, t2, anchor); mount_component(header, target, anchor); insert(target, t3, anchor); insert(target, main, anchor); append(main, h1); append(h1, t4); append(main, t5); for (let i = 0; i < each_blocks.length; i += 1) { each_blocks[i].m(main, null); } append(main, t6); append(main, article); if (default_slot) { default_slot.m(article, null); } current = true; }, p(ctx, [dirty]) { if ((!current || dirty & /*title*/ 2) && title_value !== (title_value = "Note: " + /*title*/ ctx[1] + " | Tan Li Hau")) { document.title = title_value; } if (!current || dirty & /*name*/ 1) { attr(meta2, "content", /*name*/ ctx[0]); } if (dirty & /*tags*/ 4) { each_value_1 = /*tags*/ ctx[2]; let i; for (i = 0; i < each_value_1.length; i += 1) { const child_ctx = get_each_context_1(ctx, each_value_1, i); if (each_blocks_1[i]) { each_blocks_1[i].p(child_ctx, dirty); } else { each_blocks_1[i] = create_each_block_1(child_ctx); each_blocks_1[i].c(); each_blocks_1[i].m(meta4.parentNode, meta4); } } for (; i < each_blocks_1.length; i += 1) { each_blocks_1[i].d(1); } each_blocks_1.length = each_value_1.length; } if (!current || dirty & /*title*/ 2) { attr(meta6, "content", /*title*/ ctx[1]); } if (!current || dirty & /*title*/ 2) set_data(t4, /*title*/ ctx[1]); if (dirty & /*tags*/ 4) { each_value = /*tags*/ ctx[2]; let i; for (i = 0; i < each_value.length; i += 1) { const child_ctx = get_each_context(ctx, each_value, i); if (each_blocks[i]) { each_blocks[i].p(child_ctx, dirty); } else { each_blocks[i] = create_each_block(child_ctx); each_blocks[i].c(); each_blocks[i].m(main, t6); } } for (; i < each_blocks.length; i += 1) { each_blocks[i].d(1); } each_blocks.length = each_value.length; } if (default_slot) { if (default_slot.p && dirty & /*$$scope*/ 8) { update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[3], dirty, null, null); } } }, i(local) { if (current) return; transition_in(header.$$.fragment, local); transition_in(default_slot, local); current = true; }, o(local) { transition_out(header.$$.fragment, local); transition_out(default_slot, local); current = false; }, d(detaching) { detach(link); detach(meta0); detach(meta1); detach(meta2); detach(meta3); destroy_each(each_blocks_1, detaching); detach(meta4); detach(meta5); detach(meta6); detach(meta7); detach(meta8); if (detaching) detach(t0); if (detaching) detach(a); if (detaching) detach(t2); destroy_component(header, detaching); if (detaching) detach(t3); if (detaching) detach(main); destroy_each(each_blocks, detaching); if (default_slot) default_slot.d(detaching); } }; } function instance($$self, $$props, $$invalidate) { let { name } = $$props; let { title } = $$props; let { tags = [] } = $$props; let { $$slots = {}, $$scope } = $$props; $$self.$set = $$props => { if ("name" in $$props) $$invalidate(0, name = $$props.name); if ("title" in $$props) $$invalidate(1, title = $$props.title); if ("tags" in $$props) $$invalidate(2, tags = $$props.tags); if ("$$scope" in $$props) $$invalidate(3, $$scope = $$props.$$scope); }; return [name, title, tags, $$scope, $$slots]; } class Note extends SvelteComponent { constructor(options) { super(); init(this, options, instance, create_fragment$1, safe_not_equal, { name: 0, title: 1, tags: 2 }); } } /* content/notes/@@page-markup.svelte generated by Svelte v3.24.0 */ function create_default_slot(ctx) { let section0; let ul0; let li0; let a0; let t0; let li1; let a1; let t1; let li2; let a2; let t2; let li3; let a3; let t3; let li4; let a4; let t4; let li5; let a5; let t5; let li6; let a6; let t6; let li7; let a7; let t7; let li8; let a8; let t8; let li9; let a9; let t9; let li10; let a10; let t10; let li11; let a11; let t11; let li12; let a12; let t12; let li13; let a13; let t13; let li14; let a14; let t14; let li15; let a15; let t15; let li16; let a16; let t16; let li17; let a17; let t17; let t18; let section1; let h20; let a18; let t19; let t20; let p; let t21; let t22; let ul1; let li18; let t23; let t24; let li19; let t25; let t26; let li20; let t27; let code0; let t28; let t29; let t30; let li21; let t31; let code1; let t32; let t33; let li22; let t34; let t35; let li23; let t36; let code2; let t37; let t38; let section2; let h21; let a19; let t39; let t40; let ul2; let li24; let code3; let t41; let t42; let code4; let t43; let t44; let code5; let t45; let t46; let code6; let t47; let t48; let code7; let t49; let t50; let code8; let t51; let t52; let li25; let a20; let code9; let t53; let t54; let ul3; let li26; let a21; let t55; let t56; let pre0; let raw0_value = `<code class="language-css"><span class="token selector">.element</span> <span class="token punctuation">&#123;</span> <span class="token property">color</span><span class="token punctuation">:</span> <span class="token function">rgb</span><span class="token punctuation">(</span>255<span class="token punctuation">,</span> 0<span class="token punctuation">,</span> 0<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">color</span><span class="token punctuation">:</span> <span class="token function">rgba</span><span class="token punctuation">(</span>255<span class="token punctuation">,</span> 0<span class="token punctuation">,</span> 0<span class="token punctuation">,</span> 1<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">color</span><span class="token punctuation">:</span> <span class="token function">hsl</span><span class="token punctuation">(</span>0deg<span class="token punctuation">,</span> 100%<span class="token punctuation">,</span> 50%<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">color</span><span class="token punctuation">:</span> <span class="token function">hsla</span><span class="token punctuation">(</span>0deg<span class="token punctuation">,</span> 100%<span class="token punctuation">,</span> 50%<span class="token punctuation">,</span> 100%<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">color</span><span class="token punctuation">:</span> <span class="token function">lab</span><span class="token punctuation">(</span>53.23% 80.11 67.22<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">color</span><span class="token punctuation">:</span> <span class="token function">lch</span><span class="token punctuation">(</span>53.23% 104.58 40<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">&#125;</span></code>` + ""; let t57; let section3; let h22; let a22; let t58; let t59; let ul4; let li27; let code10; let t60; let t61; let code11; let t62; let t63; let t64; let li28; let code12; let t65; let t66; let code13; let t67; let t68; let t69; let li29; let code14; let t70; let t71; let code15; let t72; let t73; let t74; let pre1; let raw1_value = `<code class="language-css"><span class="token selector">.element</span> <span class="token punctuation">&#123;</span> <span class="token property">background</span><span class="token punctuation">:</span> <span class="token function">linear-gradient</span><span class="token punctuation">(</span>45deg<span class="token punctuation">,</span> lightcoral<span class="token punctuation">,</span> beige<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">background</span><span class="token punctuation">:</span> <span class="token function">repeating-linear-gradient</span><span class="token punctuation">(</span>45deg<span class="token punctuation">,</span> lightcoral 25px<span class="token punctuation">,</span> beige 50px<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">background</span><span class="token punctuation">:</span> <span class="token function">radial-gradient</span><span class="token punctuation">(</span>lightcoral 25px<span class="token punctuation">,</span> beige 50px<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">background</span><span class="token punctuation">:</span> <span class="token function">repeating-radial-gradient</span><span class="token punctuation">(</span>lightcoral 25px<span class="token punctuation">,</span> beige 50px<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">background</span><span class="token punctuation">:</span> <span class="token function">conic-gradient</span><span class="token punctuation">(</span>lightcoral 25deg<span class="token punctuation">,</span> beige 50deg<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">background</span><span class="token punctuation">:</span> <span class="token function">repeating-conic-gradient</span><span class="token punctuation">(</span>lightcoral 25deg<span class="token punctuation">,</span> beige 50deg<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">&#125;</span></code>` + ""; let t75; let section4; let h23; let a23; let t76; let code16; let t77; let t78; let ul5; let li30; let t79; let t80; let pre2; let raw2_value = `<code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>element<span class="token punctuation">"</span></span> <span class="token attr-name">data-color</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>red<span class="token punctuation">"</span></span> <span class="token attr-name">data-title</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>hello<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>style</span><span class="token punctuation">></span></span><span class="token style"><span class="token language-css"> <span class="token selector">.element::before</span> <span class="token punctuation">&#123;</span> <span class="token property">content</span><span class="token punctuation">:</span> <span class="token function">attr</span><span class="token punctuation">(</span>data-title<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">/* Providing type-or-unit and fallback to &#96;attr()&#96; is still experimental */</span> <span class="token property">color</span><span class="token punctuation">:</span> <span class="token function">attr</span><span class="token punctuation">(</span>data-color color<span class="token punctuation">,</span> blue<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">&#125;</span> </span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>style</span><span class="token punctuation">></span></span></code>` + ""; let t81; let section5; let h24; let a24; let t82; let code17; let t83; let t84; let ul6; let li31; let t85; let t86; let pre3; let raw3_value = `<code class="language-css"><span class="token selector">:root</span> <span class="token punctuation">&#123;</span> <span class="token property">--item-height</span><span class="token punctuation">:</span> 42px<span class="token punctuation">;</span> <span class="token punctuation">&#125;</span> <span class="token selector">.element</span> <span class="token punctuation">&#123;</span> <span class="token property">height</span><span class="token punctuation">:</span> <span class="token function">var</span><span class="token punctuation">(</span>--item-height<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">/* with fallback value */</span> <span class="token property">width</span><span class="token punctuation">:</span> <span class="token function">var</span><span class="token punctuation">(</span>--item-width<span class="token punctuation">,</span> 50px<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">&#125;</span></code>` + ""; let t87; let section6; let h25; let a25; let t88; let code18; let t89; let t90; let ul7; let li32; let t91; let t92; let pre4; let raw4_value = `<code class="language-css"><span class="token selector">.element</span> <span class="token punctuation">&#123;</span> <span class="token comment">/* absolute url */</span> <span class="token property">background-image</span><span class="token punctuation">:</span> <span class="token url"><span class="token function">url</span><span class="token punctuation">(</span>https://example.com/image.jpg<span class="token punctuation">)</span></span><span class="token punctuation">;</span> <span class="token comment">/* relative url */</span> <span class="token property">background-image</span><span class="token punctuation">:</span> <span class="token url"><span class="token function">url</span><span class="token punctuation">(</span>image.jpg<span class="token punctuation">)</span></span><span class="token punctuation">;</span> <span class="token comment">/* base 64 data uri */</span> <span class="token property">background-image</span><span class="token punctuation">:</span> <span class="token url"><span class="token function">url</span><span class="token punctuation">(</span>data:image/png;base64,iRxVB0…<span class="token punctuation">)</span></span><span class="token punctuation">;</span> <span class="token comment">/* reference to ID of an SVG shape */</span> <span class="token property">offset-path</span><span class="token punctuation">:</span> <span class="token url"><span class="token function">url</span><span class="token punctuation">(</span>#mask<span class="token punctuation">)</span></span><span class="token punctuation">;</span> <span class="token punctuation">&#125;</span></code>` + ""; let t93; let section7; let h26; let a26; let t94; let code19; let t95; let t96; let ul8; let li33; let t97; let t98; let pre5; let raw5_value = `<code class="language-css"><span class="token selector">.element</span> <span class="token punctuation">&#123;</span> <span class="token property">background-image</span><span class="token punctuation">:</span> <span class="token function">image-set</span><span class="token punctuation">(</span> <span class="token string">'cat.png'</span> 1x<span class="token punctuation">,</span> <span class="token string">'cat-2x.png'</span> 2x<span class="token punctuation">,</span> <span class="token string">'cat-print.png'</span> 600dpi <span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">&#125;</span></code>` + ""; let t99; let section8; let h27; let a27; let t100; let t101; let ul9; let li34; let code20; let t102; let t103; let code21; let t104; let t105; let code22; let t106; let t107; let code23; let t108; let t109; let code24; let t110; let t111; let t112; let li35; let code25; let t113; let t114; let code26; let t115; let t116; let code27; let t117; let t118; let code28; let t119; let t120; let li36; let a28; let t121; let t122; let section9; let h28; let a29; let t123; let t124; let ul10; let li37; let code29; let t125; let t126; let code30; let t127; let t128; let code31; let t129; let t130; let code32; let t131; let t132; let pre6; let raw6_value = `<code class="language-css"><span class="token selector">.element</span> <span class="token punctuation">&#123;</span> <span class="token property">height</span><span class="token punctuation">:</span> <span class="token function">calc</span><span class="token punctuation">(</span>100vh - 42px<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">/* set to smallest value between 8vw and 200px */</span> <span class="token property">width</span><span class="token punctuation">:</span> <span class="token function">min</span><span class="token punctuation">(</span>8vw<span class="token punctuation">,</span> 200px<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">/* set to biggest value between 8vw and 16px */</span> <span class="token property">margin-top</span><span class="token punctuation">:</span> <span class="token function">max</span><span class="token punctuation">(</span>8vw<span class="token punctuation">,</span> 16px<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">/* set to 2.5vw, but wont go smaller than 1rem and not larget than 2rem */</span> <span class="token comment">/* clamp(MIN, VAL, MAX) === max(MIN, min(VAL, MAX)) */</span> <span class="token property">font-size</span><span class="token punctuation">:</span> <span class="token function">clamp</span><span class="token punctuation">(</span>1rem<span class="token punctuation">,</span> 2.5vw<span class="token punctuation">,</span> 2rem<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">&#125;</span></code>` + ""; let t133; let section10; let h29; let a30; let t134; let t135; let ul11; let li38; let code33; let t136; let t137; let code34; let t138; let t139; let code35; let t140; let t141; let code36; let t142; let t143; let code37; let t144; let t145; let code38; let t146; let t147; let code39; let t148; let t149; let code40; let t150; let t151; let code41; let t152; let t153; let section11; let h210; let a31; let t154; let code42; let t155; let t156; let ul12; let li39; let t157; let a32; let t158; let t159; let a33; let t160; let t161; let t162; let pre7; let raw7_value = `<code class="language-css"><span class="token selector">.element</span> <span class="token punctuation">&#123;</span> <span class="token property">animation</span><span class="token punctuation">:</span> swing 1s <span class="token function">cubic-bezier</span><span class="token punctuation">(</span>0.6<span class="token punctuation">,</span> 0<span class="token punctuation">,</span> 1<span class="token punctuation">,</span> 1<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">&#125;</span></code>` + ""; let t163; let section12; let h211; let a34; let t164; let code43; let t165; let t166; let ul13; let li40; let t167; let t168; let li41; let t169; let t170; let pre8; let raw8_value = `<code class="language-css"><span class="token selector">.element</span> <span class="token punctuation">&#123;</span> <span class="token property">animation</span><span class="token punctuation">:</span> drive 10s <span class="token function">steps</span><span class="token punctuation">(</span>5<span class="token punctuation">,</span> end<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">&#125;</span></code>` + ""; let t171; let section13; let h212; let a35; let t172; let t173; let ul14; let li42; let code44; let t174; let t175; let code45; let t176; let t177; let code46; let t178; let t179; let code47; let t180; let t181; let code48; let t182; let t183; let pre9; let raw9_value = `<code class="language-css"><span class="token selector">.element</span> <span class="token punctuation">&#123;</span> <span class="token property">offset-path</span><span class="token punctuation">:</span> <span class="token function">path</span><span class="token punctuation">(</span><span class="token string">'m5 0 l 300 300 l 0 300 l 5 0'</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">clip-path</span><span class="token punctuation">:</span> <span class="token function">ellipse</span><span class="token punctuation">(</span>5px 8px<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">shape-outside</span><span class="token punctuation">:</span> <span class="token function">circle</span><span class="token punctuation">(</span>10px<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">offset-path</span><span class="token punctuation">:</span> <span class="token function">inset</span><span class="token punctuation">(</span>4px 16px<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">clip-path</span><span class="token punctuation">:</span> <span class="token function">polygon</span><span class="token punctuation">(</span>5px 0px<span class="token punctuation">,</span> 300px 300px<span class="token punctuation">,</span> 0 300px<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">&#125;</span></code>` + ""; let t184; let section14; let h213; let a36; let t185; let t186; let ul15; let li43; let t187; let t188; let li44; let t189; let t190; let li45; let t191; let t192; let li46; let t193; let t194; let li47; let t195; let t196; let section15; let h214; let a37; let t197; let t198; let ul16; let li48; let t199; let t200; let pre10; let raw10_value = `<code class="language-css"><span class="token selector">.element</span> <span class="token punctuation">&#123;</span> <span class="token property">filter</span><span class="token punctuation">:</span> <span class="token function">blur</span><span class="token punctuation">(</span>1px<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">filter</span><span class="token punctuation">:</span> <span class="token function">brightness</span><span class="token punctuation">(</span>1.3<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">filter</span><span class="token punctuation">:</span> <span class="token function">contrast</span><span class="token punctuation">(</span>0.5<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">filter</span><span class="token punctuation">:</span> <span class="token function">grayscale</span><span class="token punctuation">(</span>0.4<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">filter</span><span class="token punctuation">:</span> <span class="token function">sepia</span><span class="token punctuation">(</span>1<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">filter</span><span class="token punctuation">:</span> <span class="token function">invert</span><span class="token punctuation">(</span>1<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">filter</span><span class="token punctuation">:</span> <span class="token function">hue-rotate</span><span class="token punctuation">(</span>45deg<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">filter</span><span class="token punctuation">:</span> <span class="token function">opacity</span><span class="token punctuation">(</span>0.5<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">filter</span><span class="token punctuation">:</span> <span class="token function">drop-shadow</span><span class="token punctuation">(</span>2px 4px 6px black<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">&#125;</span></code>` + ""; let t201; let section16; let h215; let a38; let t202; let t203; let ul17; let li49; let code49; let t204; let t205; let code50; let t206; let t207; let code51; let t208; let t209; let section17; let h216; let a39; let t210; let t211; let ul18; let li50; let t212; let t213; let li51; let t214; let t215; let pre11; let raw11_value = `<code class="language-css"><span class="token atrule"><span class="token rule">@media</span> <span class="token punctuation">(</span><span class="token property">min-width</span><span class="token punctuation">:</span> 600px<span class="token punctuation">)</span></span> <span class="token punctuation">&#123;</span> <span class="token selector">.element</span> <span class="token punctuation">&#123;</span> <span class="token property">background</span><span class="token punctuation">:</span> blue<span class="token punctuation">;</span> <span class="token punctuation">&#125;</span> <span class="token punctuation">&#125;</span> <span class="token comment">/* Display-P3 color, when supported. */</span> <span class="token atrule"><span class="token rule">@supports</span> <span class="token punctuation">(</span><span class="token property">color</span><span class="token punctuation">:</span> <span class="token function">color</span><span class="token punctuation">(</span>display-p3 1 1 1<span class="token punctuation">)</span><span class="token punctuation">)</span></span> <span class="token punctuation">&#123;</span> <span class="token selector">.element</span> <span class="token punctuation">&#123;</span> <span class="token property">color</span><span class="token punctuation">:</span> <span class="token function">color</span><span class="token punctuation">(</span>display-p3 0 1 0<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">&#125;</span> <span class="token punctuation">&#125;</span></code>` + ""; let t216; let section18; let h217; let a40; let t217; let t218; let ul19; let li52; let t219; let a41; let t220; let t221; let t222; let li53; let t223; let code52; let t224; let t225; let code53; let t226; let t227; let li54; let a42; let t228; let t229; let pre12; let raw12_value = `<code class="language-css"><span class="token comment">/* Billion Laughs Attack */</span> <span class="token comment">/* create a value in custom property so big that it runs out of memory */</span> <span class="token selector">:root</span> <span class="token punctuation">&#123;</span> <span class="token property">--v1</span><span class="token punctuation">:</span> <span class="token string">"lol"</span><span class="token punctuation">;</span> <span class="token property">--v2</span><span class="token punctuation">:</span> <span class="token function">var</span><span class="token punctuation">(</span>--v1<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v1<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v1<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v1<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v1<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v1<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v1<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v1<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v1<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v1<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">--v3</span><span class="token punctuation">:</span> <span class="token function">var</span><span class="token punctuation">(</span>--v2<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v2<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v2<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v2<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v2<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v2<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v2<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v2<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v2<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v2<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">--v4</span><span class="token punctuation">:</span> <span class="token function">var</span><span class="token punctuation">(</span>--v3<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v3<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v3<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v3<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v3<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v3<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v3<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v3<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v3<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v3<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">--v5</span><span class="token punctuation">:</span> <span class="token function">var</span><span class="token punctuation">(</span>--v4<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v4<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v4<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v4<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v4<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v4<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v4<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v4<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v4<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v4<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">--v6</span><span class="token punctuation">:</span> <span class="token function">var</span><span class="token punctuation">(</span>--v5<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v5<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v5<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v5<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v5<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v5<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v5<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v5<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v5<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v5<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">--v7</span><span class="token punctuation">:</span> <span class="token function">var</span><span class="token punctuation">(</span>--v6<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v6<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v6<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v6<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v6<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v6<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v6<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v6<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v6<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v6<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">--v8</span><span class="token punctuation">:</span> <span class="token function">var</span><span class="token punctuation">(</span>--v7<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v7<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v7<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v7<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v7<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v7<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v7<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v7<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v7<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v7<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">--v9</span><span class="token punctuation">:</span> <span class="token function">var</span><span class="token punctuation">(</span>--v8<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v8<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v8<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v8<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v8<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v8<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v8<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v8<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v8<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v8<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token property">--v10</span><span class="token punctuation">:</span> <span class="token function">var</span><span class="token punctuation">(</span>--v9<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v9<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v9<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v9<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v9<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v9<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v9<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v9<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v9<span class="token punctuation">)</span> <span class="token function">var</span><span class="token punctuation">(</span>--v9<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">&#125;</span></code>` + ""; return { c() { section0 = element("section"); ul0 = element("ul"); li0 = element("li"); a0 = element("a"); t0 = text("CSS Functions"); li1 = element("li"); a1 = element("a"); t1 = text("1️⃣Color functions"); li2 = element("li"); a2 = element("a"); t2 = text("2️⃣Gradient functions"); li3 = element("li"); a3 = element("a"); t3 = text("3️⃣ attr()"); li4 = element("li"); a4 = element("a"); t4 = text("4️⃣ var()"); li5 = element("li"); a5 = element("a"); t5 = text("5️⃣ url()"); li6 = element("li"); a6 = element("a"); t6 = text("6️⃣ image-set()"); li7 = element("li"); a7 = element("a"); t7 = text("7️⃣ Functional Selectors"); li8 = element("li"); a8 = element("a"); t8 = text("8️⃣ Mathematical Functions"); li9 = element("li"); a9 = element("a"); t9 = text("9️⃣ Trigonometry Functions"); li10 = element("li"); a10 = element("a"); t10 = text("1️⃣0️⃣ cubic-bezier()"); li11 = element("li"); a11 = element("a"); t11 = text("1️⃣1️⃣ steps()"); li12 = element("li"); a12 = element("a"); t12 = text("1️⃣2️⃣ Shape Functions"); li13 = element("li"); a13 = element("a"); t13 = text("1️⃣3️⃣ Transform Functions"); li14 = element("li"); a14 = element("a"); t14 = text("1️⃣4️⃣ Filter Functions"); li15 = element("li"); a15 = element("a"); t15 = text("1️⃣5️⃣ Grid Template Functions"); li16 = element("li"); a16 = element("a"); t16 = text("1️⃣6️⃣ Media Queries"); li17 = element("li"); a17 = element("a"); t17 = text("1️⃣7️⃣ Vulnerabilities"); t18 = space(); section1 = element("section"); h20 = element("h2"); a18 = element("a"); t19 = text("CSS Functions"); t20 = space(); p = element("p"); t21 = text("Runtime contextual expressions that return dynamic real-time value per the state of the browser in that moment"); t22 = space(); ul1 = element("ul"); li18 = element("li"); t23 = text("within global space, no need to import"); t24 = space(); li19 = element("li"); t25 = text("can be nested, calc(var(--v))"); t26 = space(); li20 = element("li"); t27 = text("typed, wrong type may fail, eg: "); code0 = element("code"); t28 = text("rotate(45px)"); t29 = text(" will not work"); t30 = space(); li21 = element("li"); t31 = text("type cast, eg: "); code1 = element("code"); t32 = text("calc(5 * 60 * 60s)"); t33 = space(); li22 = element("li"); t34 = text("keep the function live, recompute on value changes and updates"); t35 = space(); li23 = element("li"); t36 = text("many of them are pure functions, counter-example: "); code2 = element("code"); t37 = text("counter()"); t38 = space(); section2 = element("section"); h21 = element("h2"); a19 = element("a"); t39 = text("1️⃣Color functions"); t40 = space(); ul2 = element("ul"); li24 = element("li"); code3 = element("code"); t41 = text("rgb()"); t42 = text(", "); code4 = element("code"); t43 = text("rgba()"); t44 = text(", "); code5 = element("code"); t45 = text("hsl()"); t46 = text(", "); code6 = element("code"); t47 = text("hsla()"); t48 = text(", "); code7 = element("code"); t49 = text("lab()"); t50 = text(", "); code8 = element("code"); t51 = text("lch()"); t52 = space(); li25 = element("li"); a20 = element("a"); code9 = element("code"); t53 = text("color()"); t54 = space(); ul3 = element("ul"); li26 = element("li"); a21 = element("a"); t55 = text("newer browser supports comma-less notation"); t56 = space(); pre0 = element("pre"); t57 = space(); section3 = element("section"); h22 = element("h2"); a22 = element("a"); t58 = text("2️⃣Gradient functions"); t59 = space(); ul4 = element("ul"); li27 = element("li"); code10 = element("code"); t60 = text("linear-gradient()"); t61 = text(", "); code11 = element("code"); t62 = text("repeating-linear-gradient()"); t63 = text("\ntop -> bottom"); t64 = space(); li28 = element("li"); code12 = element("code"); t65 = text("radiant-gradient()"); t66 = text(", "); code13 = element("code"); t67 = text("repeating-radiant-gradient()"); t68 = text("\ncenter -> outer"); t69 = space(); li29 = element("li"); code14 = element("code"); t70 = text("conic-gradient()"); t71 = text(" and "); code15 = element("code"); t72 = text("repeating-conical-gradient()"); t73 = text("\nclockwise"); t74 = space(); pre1 = element("pre"); t75 = space(); section4 = element("section"); h23 = element("h2"); a23 = element("a"); t76 = text("3️⃣ "); code16 = element("code"); t77 = text("attr()"); t78 = space(); ul5 = element("ul"); li30 = element("li"); t79 = text("allow you to read value from attribute of the element you are targeting"); t80 = space(); pre2 = element("pre"); t81 = space(); section5 = element("section"); h24 = element("h2"); a24 = element("a"); t82 = text("4️⃣ "); code17 = element("code"); t83 = text("var()"); t84 = space(); ul6 = element("ul"); li31 = element("li"); t85 = text("allow you to insert value of the CSS Custom Property"); t86 = space(); pre3 = element("pre"); t87 = space(); section6 = element("section"); h25 = element("h2"); a25 = element("a"); t88 = text("5️⃣ "); code18 = element("code"); t89 = text("url()"); t90 = space(); ul7 = element("ul"); li32 = element("li"); t91 = text("use for fetching assets"); t92 = space(); pre4 = element("pre"); t93 = space(); section7 = element("section"); h26 = element("h2"); a26 = element("a"); t94 = text("6️⃣ "); code19 = element("code"); t95 = text("image-set()"); t96 = space(); ul8 = element("ul"); li33 = element("li"); t97 = text("grab image based on resolution"); t98 = space(); pre5 = element("pre"); t99 = space(); section8 = element("section"); h27 = element("h2"); a27 = element("a"); t100 = text("7️⃣ Functional Selectors"); t101 = space(); ul9 = element("ul"); li34 = element("li"); code20 = element("code"); t102 = text(":is()"); t103 = text(", "); code21 = element("code"); t104 = text(":where()"); t105 = space(); code22 = element("code"); t106 = text(":not()"); t107 = text(", "); code23 = element("code"); t108 = text(":lang()"); t109 = text(", "); code24 = element("code"); t110 = text(":dir()"); t111 = text(","); t112 = space(); li35 = element("li"); code25 = element("code"); t113 = text("nth-child()"); t114 = text(", "); code26 = element("code"); t115 = text("nth-last-child()"); t116 = text(", "); code27 = element("code"); t117 = text("nth-of-type()"); t118 = text(", "); code28 = element("code"); t119 = text("nth-last-of-type()"); t120 = space(); li36 = element("li"); a28 = element("a"); t121 = text("see pseudo selectors"); t122 = space(); section9 = element("section"); h28 = element("h2"); a29 = element("a"); t123 = text("8️⃣ Mathematical Functions"); t124 = space(); ul10 = element("ul"); li37 = element("li"); code29 = element("code"); t125 = text("calc()"); t126 = text(", "); code30 = element("code"); t127 = text("min()"); t128 = text(", "); code31 = element("code"); t129 = text("max()"); t130 = text(", "); code32 = element("code"); t131 = text("clamp()"); t132 = space(); pre6 = element("pre"); t133 = space(); section10 = element("section"); h29 = element("h2"); a30 = element("a"); t134 = text("9️⃣ Trigonometry Functions"); t135 = space(); ul11 = element("ul"); li38 = element("li"); code33 = element("code"); t136 = text("sin()"); t137 = text(", "); code34 = element("code"); t138 = text("cos()"); t139 = text(", "); code35 = element("code"); t140 = text("acos()"); t141 = text(", "); code36 = element("code"); t142 = text("asin()"); t143 = text(", "); code37 = element("code"); t144 = text("atan()"); t145 = text(", "); code38 = element("code"); t146 = text("atan2()"); t147 = text(", "); code39 = element("code"); t148 = text("sqrt()"); t149 = text(", "); code40 = element("code"); t150 = text("hypot()"); t151 = text(", "); code41 = element("code"); t152 = text("pow()"); t153 = space(); section11 = element("section"); h210 = element("h2"); a31 = element("a"); t154 = text("1️⃣0️⃣ "); code42 = element("code"); t155 = text("cubic-bezier()"); t156 = space(); ul12 = element("ul"); li39 = element("li"); t157 = text("@wgao19's "); a32 = element("a"); t158 = text("article"); t159 = text(" and "); a33 = element("a"); t160 = text("talk"); t161 = text(" on bezier curves"); t162 = space(); pre7 = element("pre"); t163 = space(); section12 = element("section"); h211 = element("h2"); a34 = element("a"); t164 = text("1️⃣1️⃣ "); code43 = element("code"); t165 = text("steps()"); t166 = space(); ul13 = element("ul"); li40 = element("li"); t167 = text("divide the output value into equal distance steps."); t168 = space(); li41 = element("li"); t169 = text("useful for animating sprites"); t170 = space(); pre8 = element("pre"); t171 = space(); section13 = element("section"); h212 = element("h2"); a35 = element("a"); t172 = text("1️⃣2️⃣ Shape Functions"); t173 = space(); ul14 = element("ul"); li42 = element("li"); code44 = element("code"); t174 = text("path()"); t175 = text(", "); code45 = element("code"); t176 = text("circle()"); t177 = text(", "); code46 = element("code"); t178 = text("ellipse()"); t179 = text(", "); code47 = element("code"); t180 = text("polygon()"); t181 = text(", "); code48 = element("code"); t182 = text("inset()"); t183 = space(); pre9 = element("pre"); t184 = space(); section14 = element("section"); h213 = element("h2"); a36 = element("a"); t185 = text("1️⃣3️⃣ Transform Functions"); t186 = space(); ul15 = element("ul"); li43 = element("li"); t187 = text("scaleX(), scaleY(), scaleZ(), scale(), scale3d()"); t188 = space(); li44 = element("li"); t189 = text("perspective()"); t190 = space(); li45 = element("li"); t191 = text("translateX(), translateY(), translateZ(), translate(), translate3d()"); t192 = space(); li46 = element("li"); t193 = text("rotateX(), rotateY(), rotateZ(), rotate(), rotate3d()"); t194 = space(); li47 = element("li"); t195 = text("skewX(), skewY(), skew()"); t196 = space(); section15 = element("section"); h214 = element("h2"); a37 = element("a"); t197 = text("1️⃣4️⃣ Filter Functions"); t198 = space(); ul16 = element("ul"); li48 = element("li"); t199 = text("blur(), brightness(), contrast(), grayscale(), hue-rotate(), invert(), opacity(), saturate(), sepia(), drop-shadow(), url()"); t200 = space(); pre10 = element("pre"); t201 = space(); section16 = element("section"); h215 = element("h2"); a38 = element("a"); t202 = text("1️⃣5️⃣ Grid Template Functions"); t203 = space(); ul17 = element("ul"); li49 = element("li"); code49 = element("code"); t204 = text("fit-content()"); t205 = text(", "); code50 = element("code"); t206 = text("min-max()"); t207 = text(", "); code51 = element("code"); t208 = text("repeat()"); t209 = space(); section17 = element("section"); h216 = element("h2"); a39 = element("a"); t210 = text("1️⃣6️⃣ Media Queries"); t211 = space(); ul18 = element("ul"); li50 = element("li"); t212 = text("@media"); t213 = space(); li51 = element("li"); t214 = text("@support"); t215 = space(); pre11 = element("pre"); t216 = space(); section18 = element("section"); h217 = element("h2"); a40 = element("a"); t217 = text("1️⃣7️⃣ Vulnerabilities"); t218 = space(); ul19 = element("ul"); li52 = element("li"); t219 = text("Billion Laughs Attack ("); a41 = element("a"); t220 = text("https://drafts.csswg.org/css-variables/#long-variables"); t221 = text(")"); t222 = space(); li53 = element("li"); t223 = text("XSS through "); code52 = element("code"); t224 = text("url()"); t225 = text(" + "); code53 = element("code"); t226 = text("attr()"); t227 = space(); li54 = element("li"); a42 = element("a"); t228 = text("Third party CSS is not safe"); t229 = space(); pre12 = element("pre"); this.h(); }, l(nodes) { section0 = claim_element(nodes, "SECTION", {}); var section0_nodes = children(section0); ul0 = claim_element(section0_nodes, "UL", { class: true, id: true, role: true, "aria-label": true }); var ul0_nodes = children(ul0); li0 = claim_element(ul0_nodes, "LI", {}); var li0_nodes = children(li0); a0 = claim_element(li0_nodes, "A", { href: true }); var a0_nodes = children(a0); t0 = claim_text(a0_nodes, "CSS Functions"); a0_nodes.forEach(detach); li0_nodes.forEach(detach); li1 = claim_element(ul0_nodes, "LI", {}); var li1_nodes = children(li1); a1 = claim_element(li1_nodes, "A", { href: true }); var a1_nodes = children(a1); t1 = claim_text(a1_nodes, "1️⃣Color functions"); a1_nodes.forEach(detach); li1_nodes.forEach(detach); li2 = claim_element(ul0_nodes, "LI", {}); var li2_nodes = children(li2); a2 = claim_element(li2_nodes, "A", { href: true }); var a2_nodes = children(a2); t2 = claim_text(a2_nodes, "2️⃣Gradient functions"); a2_nodes.forEach(detach); li2_nodes.forEach(detach); li3 = claim_element(ul0_nodes, "LI", {}); var li3_nodes = children(li3); a3 = claim_element(li3_nodes, "A", { href: true }); var a3_nodes = children(a3); t3 = claim_text(a3_nodes, "3️⃣ attr()"); a3_nodes.forEach(detach); li3_nodes.forEach(detach); li4 = claim_element(ul0_nodes, "LI", {}); var li4_nodes = children(li4); a4 = claim_element(li4_nodes, "A", { href: true }); var a4_nodes = children(a4); t4 = claim_text(a4_nodes, "4️⃣ var()"); a4_nodes.forEach(detach); li4_nodes.forEach(detach); li5 = claim_element(ul0_nodes, "LI", {}); var li5_nodes = children(li5); a5 = claim_element(li5_nodes, "A", { href: true }); var a5_nodes = children(a5); t5 = claim_text(a5_nodes, "5️⃣ url()"); a5_nodes.forEach(detach); li5_nodes.forEach(detach); li6 = claim_element(ul0_nodes, "LI", {}); var li6_nodes = children(li6); a6 = claim_element(li6_nodes, "A", { href: true }); var a6_nodes = children(a6); t6 = claim_text(a6_nodes, "6️⃣ image-set()"); a6_nodes.forEach(detach); li6_nodes.forEach(detach); li7 = claim_element(ul0_nodes, "LI", {}); var li7_nodes = children(li7); a7 = claim_element(li7_nodes, "A", { href: true }); var a7_nodes = children(a7); t7 = claim_text(a7_nodes, "7️⃣ Functional Selectors"); a7_nodes.forEach(detach); li7_nodes.forEach(detach); li8 = claim_element(ul0_nodes, "LI", {}); var li8_nodes = children(li8); a8 = claim_element(li8_nodes, "A", { href: true }); var a8_nodes = children(a8); t8 = claim_text(a8_nodes, "8️⃣ Mathematical Functions"); a8_nodes.forEach(detach); li8_nodes.forEach(detach); li9 = claim_element(ul0_nodes, "LI", {}); var li9_nodes = children(li9); a9 = claim_element(li9_nodes, "A", { href: true }); var a9_nodes = children(a9); t9 = claim_text(a9_nodes, "9️⃣ Trigonometry Functions"); a9_nodes.forEach(detach); li9_nodes.forEach(detach); li10 = claim_element(ul0_nodes, "LI", {}); var li10_nodes = children(li10); a10 = claim_element(li10_nodes, "A", { href: true }); var a10_nodes = children(a10); t10 = claim_text(a10_nodes, "1️⃣0️⃣ cubic-bezier()"); a10_nodes.forEach(detach); li10_nodes.forEach(detach); li11 = claim_element(ul0_nodes, "LI", {}); var li11_nodes = children(li11); a11 = claim_element(li11_nodes, "A", { href: true }); var a11_nodes = children(a11); t11 = claim_text(a11_nodes, "1️⃣1️⃣ steps()"); a11_nodes.forEach(detach); li11_nodes.forEach(detach); li12 = claim_element(ul0_nodes, "LI", {}); var li12_nodes = children(li12); a12 = claim_element(li12_nodes, "A", { href: true }); var a12_nodes = children(a12); t12 = claim_text(a12_nodes, "1️⃣2️⃣ Shape Functions"); a12_nodes.forEach(detach); li12_nodes.forEach(detach); li13 = claim_element(ul0_nodes, "LI", {}); var li13_nodes = children(li13); a13 = claim_element(li13_nodes, "A", { href: true }); var a13_nodes = children(a13); t13 = claim_text(a13_nodes, "1️⃣3️⃣ Transform Functions"); a13_nodes.forEach(detach); li13_nodes.forEach(detach); li14 = claim_element(ul0_nodes, "LI", {}); var li14_nodes = children(li14); a14 = claim_element(li14_nodes, "A", { href: true }); var a14_nodes = children(a14); t14 = claim_text(a14_nodes, "1️⃣4️⃣ Filter Functions"); a14_nodes.forEach(detach); li14_nodes.forEach(detach); li15 = claim_element(ul0_nodes, "LI", {}); var li15_nodes = children(li15); a15 = claim_element(li15_nodes, "A", { href: true }); var a15_nodes = children(a15); t15 = claim_text(a15_nodes, "1️⃣5️⃣ Grid Template Functions"); a15_nodes.forEach(detach); li15_nodes.forEach(detach); li16 = claim_element(ul0_nodes, "LI", {}); var li16_nodes = children(li16); a16 = claim_element(li16_nodes, "A", { href: true }); var a16_nodes = children(a16); t16 = claim_text(a16_nodes, "1️⃣6️⃣ Media Queries"); a16_nodes.forEach(detach); li16_nodes.forEach(detach); li17 = claim_element(ul0_nodes, "LI", {}); var li17_nodes = children(li17); a17 = claim_element(li17_nodes, "A", { href: true }); var a17_nodes = children(a17); t17 = claim_text(a17_nodes, "1️⃣7️⃣ Vulnerabilities"); a17_nodes.forEach(detach); li17_nodes.forEach(detach); ul0_nodes.forEach(detach); section0_nodes.forEach(detach); t18 = claim_space(nodes); section1 = claim_element(nodes, "SECTION", {}); var section1_nodes = children(section1); h20 = claim_element(section1_nodes, "H2", {}); var h20_nodes = children(h20); a18 = claim_element(h20_nodes, "A", { href: true, id: true }); var a18_nodes = children(a18); t19 = claim_text(a18_nodes, "CSS Functions"); a18_nodes.forEach(detach); h20_nodes.forEach(detach); t20 = claim_space(section1_nodes); p = claim_element(section1_nodes, "P", {}); var p_nodes = children(p); t21 = claim_text(p_nodes, "Runtime contextual expressions that return dynamic real-time value per the state of the browser in that moment"); p_nodes.forEach(detach); t22 = claim_space(section1_nodes); ul1 = claim_element(section1_nodes, "UL", {}); var ul1_nodes = children(ul1); li18 = claim_element(ul1_nodes, "LI", {}); var li18_nodes = children(li18); t23 = claim_text(li18_nodes, "within global space, no need to import"); li18_nodes.forEach(detach); t24 = claim_space(ul1_nodes); li19 = claim_element(ul1_nodes, "LI", {}); var li19_nodes = children(li19); t25 = claim_text(li19_nodes, "can be nested, calc(var(--v))"); li19_nodes.forEach(detach); t26 = claim_space(ul1_nodes); li20 = claim_element(ul1_nodes, "LI", {}); var li20_nodes = children(li20); t27 = claim_text(li20_nodes, "typed, wrong type may fail, eg: "); code0 = claim_element(li20_nodes, "CODE", {}); var code0_nodes = children(code0); t28 = claim_text(code0_nodes, "rotate(45px)"); code0_nodes.forEach(detach); t29 = claim_text(li20_nodes, " will not work"); li20_nodes.forEach(detach); t30 = claim_space(ul1_nodes); li21 = claim_element(ul1_nodes, "LI", {}); var li21_nodes = children(li21); t31 = claim_text(li21_nodes, "type cast, eg: "); code1 = claim_element(li21_nodes, "CODE", {}); var code1_nodes = children(code1); t32 = claim_text(code1_nodes, "calc(5 * 60 * 60s)"); code1_nodes.forEach(detach); li21_nodes.forEach(detach); t33 = claim_space(ul1_nodes); li22 = claim_element(ul1_nodes, "LI", {}); var li22_nodes = children(li22); t34 = claim_text(li22_nodes, "keep the function live, recompute on value changes and updates"); li22_nodes.forEach(detach); t35 = claim_space(ul1_nodes); li23 = claim_element(ul1_nodes, "LI", {}); var li23_nodes = children(li23); t36 = claim_text(li23_nodes, "many of them are pure functions, counter-example: "); code2 = claim_element(li23_nodes, "CODE", {}); var code2_nodes = children(code2); t37 = claim_text(code2_nodes, "counter()"); code2_nodes.forEach(detach); li23_nodes.forEach(detach); ul1_nodes.forEach(detach); section1_nodes.forEach(detach); t38 = claim_space(nodes); section2 = claim_element(nodes, "SECTION", {}); var section2_nodes = children(section2); h21 = claim_element(section2_nodes, "H2", {}); var h21_nodes = children(h21); a19 = claim_element(h21_nodes, "A", { href: true, id: true }); var a19_nodes = children(a19); t39 = claim_text(a19_nodes, "1️⃣Color functions"); a19_nodes.forEach(detach); h21_nodes.forEach(detach); t40 = claim_space(section2_nodes); ul2 = claim_element(section2_nodes, "UL", {}); var ul2_nodes = children(ul2); li24 = claim_element(ul2_nodes, "LI", {}); var li24_nodes = children(li24); code3 = claim_element(li24_nodes, "CODE", {}); var code3_nodes = children(code3); t41 = claim_text(code3_nodes, "rgb()"); code3_nodes.forEach(detach); t42 = claim_text(li24_nodes, ", "); code4 = claim_element(li24_nodes, "CODE", {}); var code4_nodes = children(code4); t43 = claim_text(code4_nodes, "rgba()"); code4_nodes.forEach(detach); t44 = claim_text(li24_nodes, ", "); code5 = claim_element(li24_nodes, "CODE", {}); var code5_nodes = children(code5); t45 = claim_text(code5_nodes, "hsl()"); code5_nodes.forEach(detach); t46 = claim_text(li24_nodes, ", "); code6 = claim_element(li24_nodes, "CODE", {}); var code6_nodes = children(code6); t47 = claim_text(code6_nodes, "hsla()"); code6_nodes.forEach(detach); t48 = claim_text(li24_nodes, ", "); code7 = claim_element(li24_nodes, "CODE", {}); var code7_nodes = children(code7); t49 = claim_text(code7_nodes, "lab()"); code7_nodes.forEach(detach); t50 = claim_text(li24_nodes, ", "); code8 = claim_element(li24_nodes, "CODE", {}); var code8_nodes = children(code8); t51 = claim_text(code8_nodes, "lch()"); code8_nodes.forEach(detach); li24_nodes.forEach(detach); t52 = claim_space(ul2_nodes); li25 = claim_element(ul2_nodes, "LI", {}); var li25_nodes = children(li25); a20 = claim_element(li25_nodes, "A", { href: true, rel: true }); var a20_nodes = children(a20); code9 = claim_element(a20_nodes, "CODE", {}); var code9_nodes = children(code9); t53 = claim_text(code9_nodes, "color()"); code9_nodes.forEach(detach); a20_nodes.forEach(detach); li25_nodes.forEach(detach); ul2_nodes.forEach(detach); t54 = claim_space(section2_nodes); ul3 = claim_element(section2_nodes, "UL", {}); var ul3_nodes = children(ul3); li26 = claim_element(ul3_nodes, "LI", {}); var li26_nodes = children(li26); a21 = claim_element(li26_nodes, "A", { href: true, rel: true }); var a21_nodes = children(a21); t55 = claim_text(a21_nodes, "newer browser supports comma-less notation"); a21_nodes.forEach(detach); li26_nodes.forEach(detach); ul3_nodes.forEach(detach); t56 = claim_space(section2_nodes); pre0 = claim_element(section2_nodes, "PRE", { class: true }); var pre0_nodes = children(pre0); pre0_nodes.forEach(detach); section2_nodes.forEach(detach); t57 = claim_space(nodes); section3 = claim_element(nodes, "SECTION", {}); var section3_nodes = children(section3); h22 = claim_element(section3_nodes, "H2", {}); var h22_nodes = children(h22); a22 = claim_element(h22_nodes, "A", { href: true, id: true }); var a22_nodes = children(a22); t58 = claim_text(a22_nodes, "2️⃣Gradient functions"); a22_nodes.forEach(detach); h22_nodes.forEach(detach); t59 = claim_space(section3_nodes); ul4 = claim_element(section3_nodes, "UL", {}); var ul4_nodes = children(ul4); li27 = claim_element(ul4_nodes, "LI", {}); var li27_nodes = children(li27); code10 = claim_element(li27_nodes, "CODE", {}); var code10_nodes = children(code10); t60 = claim_text(code10_nodes, "linear-gradient()"); code10_nodes.forEach(detach); t61 = claim_text(li27_nodes, ", "); code11 = claim_element(li27_nodes, "CODE", {}); var code11_nodes = children(code11); t62 = claim_text(code11_nodes, "repeating-linear-gradient()"); code11_nodes.forEach(detach); t63 = claim_text(li27_nodes, "\ntop -> bottom"); li27_nodes.forEach(detach); t64 = claim_space(ul4_nodes); li28 = claim_element(ul4_nodes, "LI", {}); var li28_nodes = children(li28); code12 = claim_element(li28_nodes, "CODE", {}); var code12_nodes = children(code12); t65 = claim_text(code12_nodes, "radiant-gradient()"); code12_nodes.forEach(detach); t66 = claim_text(li28_nodes, ", "); code13 = claim_element(li28_nodes, "CODE", {}); var code13_nodes = children(code13); t67 = claim_text(code13_nodes, "repeating-radiant-gradient()"); code13_nodes.forEach(detach); t68 = claim_text(li28_nodes, "\ncenter -> outer"); li28_nodes.forEach(detach); t69 = claim_space(ul4_nodes); li29 = claim_element(ul4_nodes, "LI", {}); var li29_nodes = children(li29); code14 = claim_element(li29_nodes, "CODE", {}); var code14_nodes = children(code14); t70 = claim_text(code14_nodes, "conic-gradient()"); code14_nodes.forEach(detach); t71 = claim_text(li29_nodes, " and "); code15 = claim_element(li29_nodes, "CODE", {}); var code15_nodes = children(code15); t72 = claim_text(code15_nodes, "repeating-conical-gradient()"); code15_nodes.forEach(detach); t73 = claim_text(li29_nodes, "\nclockwise"); li29_nodes.forEach(detach); ul4_nodes.forEach(detach); t74 = claim_space(section3_nodes); pre1 = claim_element(section3_nodes, "PRE", { class: true }); var pre1_nodes = children(pre1); pre1_nodes.forEach(detach); section3_nodes.forEach(detach); t75 = claim_space(nodes); section4 = claim_element(nodes, "SECTION", {}); var section4_nodes = children(section4); h23 = claim_element(section4_nodes, "H2", {}); var h23_nodes = children(h23); a23 = claim_element(h23_nodes, "A", { href: true, id: true }); var a23_nodes = children(a23); t76 = claim_text(a23_nodes, "3️⃣ "); code16 = claim_element(a23_nodes, "CODE", {}); var code16_nodes = children(code16); t77 = claim_text(code16_nodes, "attr()"); code16_nodes.forEach(detach); a23_nodes.forEach(detach); h23_nodes.forEach(detach); t78 = claim_space(section4_nodes); ul5 = claim_element(section4_nodes, "UL", {}); var ul5_nodes = children(ul5); li30 = claim_element(ul5_nodes, "LI", {}); var li30_nodes = children(li30); t79 = claim_text(li30_nodes, "allow you to read value from attribute of the element you are targeting"); li30_nodes.forEach(detach); ul5_nodes.forEach(detach); t80 = claim_space(section4_nodes); pre2 = claim_element(section4_nodes, "PRE", { class: true }); var pre2_nodes = children(pre2); pre2_nodes.forEach(detach); section4_nodes.forEach(detach); t81 = claim_space(nodes); section5 = claim_element(nodes, "SECTION", {}); var section5_nodes = children(section5); h24 = claim_element(section5_nodes, "H2", {}); var h24_nodes = children(h24); a24 = claim_element(h24_nodes, "A", { href: true, id: true }); var a24_nodes = children(a24); t82 = claim_text(a24_nodes, "4️⃣ "); code17 = claim_element(a24_nodes, "CODE", {}); var code17_nodes = children(code17); t83 = claim_text(code17_nodes, "var()"); code17_nodes.forEach(detach); a24_nodes.forEach(detach); h24_nodes.forEach(detach); t84 = claim_space(section5_nodes); ul6 = claim_element(section5_nodes, "UL", {}); var ul6_nodes = children(ul6); li31 = claim_element(ul6_nodes, "LI", {}); var li31_nodes = children(li31); t85 = claim_text(li31_nodes, "allow you to insert value of the CSS Custom Property"); li31_nodes.forEach(detach); ul6_nodes.forEach(detach); t86 = claim_space(section5_nodes); pre3 = claim_element(section5_nodes, "PRE", { class: true }); var pre3_nodes = children(pre3); pre3_nodes.forEach(detach); section5_nodes.forEach(detach); t87 = claim_space(nodes); section6 = claim_element(nodes, "SECTION", {}); var section6_nodes = children(section6); h25 = claim_element(section6_nodes, "H2", {}); var h25_nodes = children(h25); a25 = claim_element(h25_nodes, "A", { href: true, id: true }); var a25_nodes = children(a25); t88 = claim_text(a25_nodes, "5️⃣ "); code18 = claim_element(a25_nodes, "CODE", {}); var code18_nodes = children(code18); t89 = claim_text(code18_nodes, "url()"); code18_nodes.forEach(detach); a25_nodes.forEach(detach); h25_nodes.forEach(detach); t90 = claim_space(section6_nodes); ul7 = claim_element(section6_nodes, "UL", {}); var ul7_nodes = children(ul7); li32 = claim_element(ul7_nodes, "LI", {}); var li32_nodes = children(li32); t91 = claim_text(li32_nodes, "use for fetching assets"); li32_nodes.forEach(detach); ul7_nodes.forEach(detach); t92 = claim_space(section6_nodes); pre4 = claim_element(section6_nodes, "PRE", { class: true }); var pre4_nodes = children(pre4); pre4_nodes.forEach(detach); section6_nodes.forEach(detach); t93 = claim_space(nodes); section7 = claim_element(nodes, "SECTION", {}); var section7_nodes = children(section7); h26 = claim_element(section7_nodes, "H2", {}); var h26_nodes = children(h26); a26 = claim_element(h26_nodes, "A", { href: true, id: true }); var a26_nodes = children(a26); t94 = claim_text(a26_nodes, "6️⃣ "); code19 = claim_element(a26_nodes, "CODE", {}); var code19_nodes = children(code19); t95 = claim_text(code19_nodes, "image-set()"); code19_nodes.forEach(detach); a26_nodes.forEach(detach); h26_nodes.forEach(detach); t96 = claim_space(section7_nodes); ul8 = claim_element(section7_nodes, "UL", {}); var ul8_nodes = children(ul8); li33 = claim_element(ul8_nodes, "LI", {}); var li33_nodes = children(li33); t97 = claim_text(li33_nodes, "grab image based on resolution"); li33_nodes.forEach(detach); ul8_nodes.forEach(detach); t98 = claim_space(section7_nodes); pre5 = claim_element(section7_nodes, "PRE", { class: true }); var pre5_nodes = children(pre5); pre5_nodes.forEach(detach); section7_nodes.forEach(detach); t99 = claim_space(nodes); section8 = claim_element(nodes, "SECTION", {}); var section8_nodes = children(section8); h27 = claim_element(section8_nodes, "H2", {}); var h27_nodes = children(h27); a27 = claim_element(h27_nodes, "A", { href: true, id: true }); var a27_nodes = children(a27); t100 = claim_text(a27_nodes, "7️⃣ Functional Selectors"); a27_nodes.forEach(detach); h27_nodes.forEach(detach); t101 = claim_space(section8_nodes); ul9 = claim_element(section8_nodes, "UL", {}); var ul9_nodes = children(ul9); li34 = claim_element(ul9_nodes, "LI", {}); var li34_nodes = children(li34); code20 = claim_element(li34_nodes, "CODE", {}); var code20_nodes = children(code20); t102 = claim_text(code20_nodes, ":is()"); code20_nodes.forEach(detach); t103 = claim_text(li34_nodes, ", "); code21 = claim_element(li34_nodes, "CODE", {}); var code21_nodes = children(code21); t104 = claim_text(code21_nodes, ":where()"); code21_nodes.forEach(detach); t105 = claim_space(li34_nodes); code22 = claim_element(li34_nodes, "CODE", {}); var code22_nodes = children(code22); t106 = claim_text(code22_nodes, ":not()"); code22_nodes.forEach(detach); t107 = claim_text(li34_nodes, ", "); code23 = claim_element(li34_nodes, "CODE", {}); var code23_nodes = children(code23); t108 = claim_text(code23_nodes, ":lang()"); code23_nodes.forEach(detach); t109 = claim_text(li34_nodes, ", "); code24 = claim_element(li34_nodes, "CODE", {}); var code24_nodes = children(code24); t110 = claim_text(code24_nodes, ":dir()"); code24_nodes.forEach(detach); t111 = claim_text(li34_nodes, ","); li34_nodes.forEach(detach); t112 = claim_space(ul9_nodes); li35 = claim_element(ul9_nodes, "LI", {}); var li35_nodes = children(li35); code25 = claim_element(li35_nodes, "CODE", {}); var code25_nodes = children(code25); t113 = claim_text(code25_nodes, "nth-child()"); code25_nodes.forEach(detach); t114 = claim_text(li35_nodes, ", "); code26 = claim_element(li35_nodes, "CODE", {}); var code26_nodes = children(code26); t115 = claim_text(code26_nodes, "nth-last-child()"); code26_nodes.forEach(detach); t116 = claim_text(li35_nodes, ", "); code27 = claim_element(li35_nodes, "CODE", {}); var code27_nodes = children(code27); t117 = claim_text(code27_nodes, "nth-of-type()"); code27_nodes.forEach(detach); t118 = claim_text(li35_nodes, ", "); code28 = claim_element(li35_nodes, "CODE", {}); var code28_nodes = children(code28); t119 = claim_text(code28_nodes, "nth-last-of-type()"); code28_nodes.forEach(detach); li35_nodes.forEach(detach); t120 = claim_space(ul9_nodes); li36 = claim_element(ul9_nodes, "LI", {}); var li36_nodes = children(li36); a28 = claim_element(li36_nodes, "A", { href: true, rel: true }); var a28_nodes = children(a28); t121 = claim_text(a28_nodes, "see pseudo selectors"); a28_nodes.forEach(detach); li36_nodes.forEach(detach); ul9_nodes.forEach(detach); section8_nodes.forEach(detach); t122 = claim_space(nodes); section9 = claim_element(nodes, "SECTION", {}); var section9_nodes = children(section9); h28 = claim_element(section9_nodes, "H2", {}); var h28_nodes = children(h28); a29 = claim_element(h28_nodes, "A", { href: true, id: true }); var a29_nodes = children(a29); t123 = claim_text(a29_nodes, "8️⃣ Mathematical Functions"); a29_nodes.forEach(detach); h28_nodes.forEach(detach); t124 = claim_space(section9_nodes); ul10 = claim_element(section9_nodes, "UL", {}); var ul10_nodes = children(ul10); li37 = claim_element(ul10_nodes, "LI", {}); var li37_nodes = children(li37); code29 = claim_element(li37_nodes, "CODE", {}); var code29_nodes = children(code29); t125 = claim_text(code29_nodes, "calc()"); code29_nodes.forEach(detach); t126 = claim_text(li37_nodes, ", "); code30 = claim_element(li37_nodes, "CODE", {}); var code30_nodes = children(code30); t127 = claim_text(code30_nodes, "min()"); code30_nodes.forEach(detach); t128 = claim_text(li37_nodes, ", "); code31 = claim_element(li37_nodes, "CODE", {}); var code31_nodes = children(code31); t129 = claim_text(code31_nodes, "max()"); code31_nodes.forEach(detach); t130 = claim_text(li37_nodes, ", "); code32 = claim_element(li37_nodes, "CODE", {}); var code32_nodes = children(code32); t131 = claim_text(code32_nodes, "clamp()"); code32_nodes.forEach(detach); li37_nodes.forEach(detach); ul10_nodes.forEach(detach); t132 = claim_space(section9_nodes); pre6 = claim_element(section9_nodes, "PRE", { class: true }); var pre6_nodes = children(pre6); pre6_nodes.forEach(detach); section9_nodes.forEach(detach); t133 = claim_space(nodes); section10 = claim_element(nodes, "SECTION", {}); var section10_nodes = children(section10); h29 = claim_element(section10_nodes, "H2", {}); var h29_nodes = children(h29); a30 = claim_element(h29_nodes, "A", { href: true, id: true }); var a30_nodes = children(a30); t134 = claim_text(a30_nodes, "9️⃣ Trigonometry Functions"); a30_nodes.forEach(detach); h29_nodes.forEach(detach); t135 = claim_space(section10_nodes); ul11 = claim_element(section10_nodes, "UL", {}); var ul11_nodes = children(ul11); li38 = claim_element(ul11_nodes, "LI", {}); var li38_nodes = children(li38); code33 = claim_element(li38_nodes, "CODE", {}); var code33_nodes = children(code33); t136 = claim_text(code33_nodes, "sin()"); code33_nodes.forEach(detach); t137 = claim_text(li38_nodes, ", "); code34 = claim_element(li38_nodes, "CODE", {}); var code34_nodes = children(code34); t138 = claim_text(code34_nodes, "cos()"); code34_nodes.forEach(detach); t139 = claim_text(li38_nodes, ", "); code35 = claim_element(li38_nodes, "CODE", {}); var code35_nodes = children(code35); t140 = claim_text(code35_nodes, "acos()"); code35_nodes.forEach(detach); t141 = claim_text(li38_nodes, ", "); code36 = claim_element(li38_nodes, "CODE", {}); var code36_nodes = children(code36); t142 = claim_text(code36_nodes, "asin()"); code36_nodes.forEach(detach); t143 = claim_text(li38_nodes, ", "); code37 = claim_element(li38_nodes, "CODE", {}); var code37_nodes = children(code37); t144 = claim_text(code37_nodes, "atan()"); code37_nodes.forEach(detach); t145 = claim_text(li38_nodes, ", "); code38 = claim_element(li38_nodes, "CODE", {}); var code38_nodes = children(code38); t146 = claim_text(code38_nodes, "atan2()"); code38_nodes.forEach(detach); t147 = claim_text(li38_nodes, ", "); code39 = claim_element(li38_nodes, "CODE", {}); var code39_nodes = children(code39); t148 = claim_text(code39_nodes, "sqrt()"); code39_nodes.forEach(detach); t149 = claim_text(li38_nodes, ", "); code40 = claim_element(li38_nodes, "CODE", {}); var code40_nodes = children(code40); t150 = claim_text(code40_nodes, "hypot()"); code40_nodes.forEach(detach); t151 = claim_text(li38_nodes, ", "); code41 = claim_element(li38_nodes, "CODE", {}); var code41_nodes = children(code41); t152 = claim_text(code41_nodes, "pow()"); code41_nodes.forEach(detach); li38_nodes.forEach(detach); ul11_nodes.forEach(detach); section10_nodes.forEach(detach); t153 = claim_space(nodes); section11 = claim_element(nodes, "SECTION", {}); var section11_nodes = children(section11); h210 = claim_element(section11_nodes, "H2", {}); var h210_nodes = children(h210); a31 = claim_element(h210_nodes, "A", { href: true, id: true }); var a31_nodes = children(a31); t154 = claim_text(a31_nodes, "1️⃣0️⃣ "); code42 = claim_element(a31_nodes, "CODE", {}); var code42_nodes = children(code42); t155 = claim_text(code42_nodes, "cubic-bezier()"); code42_nodes.forEach(detach); a31_nodes.forEach(detach); h210_nodes.forEach(detach); t156 = claim_space(section11_nodes); ul12 = claim_element(section11_nodes, "UL", {}); var ul12_nodes = children(ul12); li39 = claim_element(ul12_nodes, "LI", {}); var li39_nodes = children(li39); t157 = claim_text(li39_nodes, "@wgao19's "); a32 = claim_element(li39_nodes, "A", { href: true, rel: true }); var a32_nodes = children(a32); t158 = claim_text(a32_nodes, "article"); a32_nodes.forEach(detach); t159 = claim_text(li39_nodes, " and "); a33 = claim_element(li39_nodes, "A", { href: true, rel: true }); var a33_nodes = children(a33); t160 = claim_text(a33_nodes, "talk"); a33_nodes.forEach(detach); t161 = claim_text(li39_nodes, " on bezier curves"); li39_nodes.forEach(detach); ul12_nodes.forEach(detach); t162 = claim_space(section11_nodes); pre7 = claim_element(section11_nodes, "PRE", { class: true }); var pre7_nodes = children(pre7); pre7_nodes.forEach(detach); section11_nodes.forEach(detach); t163 = claim_space(nodes); section12 = claim_element(nodes, "SECTION", {}); var section12_nodes = children(section12); h211 = claim_element(section12_nodes, "H2", {}); var h211_nodes = children(h211); a34 = claim_element(h211_nodes, "A", { href: true, id: true }); var a34_nodes = children(a34); t164 = claim_text(a34_nodes, "1️⃣1️⃣ "); code43 = claim_element(a34_nodes, "CODE", {}); var code43_nodes = children(code43); t165 = claim_text(code43_nodes, "steps()"); code43_nodes.forEach(detach); a34_nodes.forEach(detach); h211_nodes.forEach(detach); t166 = claim_space(section12_nodes); ul13 = claim_element(section12_nodes, "UL", {}); var ul13_nodes = children(ul13); li40 = claim_element(ul13_nodes, "LI", {}); var li40_nodes = children(li40); t167 = claim_text(li40_nodes, "divide the output value into equal distance steps."); li40_nodes.forEach(detach); t168 = claim_space(ul13_nodes); li41 = claim_element(ul13_nodes, "LI", {}); var li41_nodes = children(li41); t169 = claim_text(li41_nodes, "useful for animating sprites"); li41_nodes.forEach(detach); ul13_nodes.forEach(detach); t170 = claim_space(section12_nodes); pre8 = claim_element(section12_nodes, "PRE", { class: true }); var pre8_nodes = children(pre8); pre8_nodes.forEach(detach); section12_nodes.forEach(detach); t171 = claim_space(nodes); section13 = claim_element(nodes, "SECTION", {}); var section13_nodes = children(section13); h212 = claim_element(section13_nodes, "H2", {}); var h212_nodes = children(h212); a35 = claim_element(h212_nodes, "A", { href: true, id: true }); var a35_nodes = children(a35); t172 = claim_text(a35_nodes, "1️⃣2️⃣ Shape Functions"); a35_nodes.forEach(detach); h212_nodes.forEach(detach); t173 = claim_space(section13_nodes); ul14 = claim_element(section13_nodes, "UL", {}); var ul14_nodes = children(ul14); li42 = claim_element(ul14_nodes, "LI", {}); var li42_nodes = children(li42); code44 = claim_element(li42_nodes, "CODE", {}); var code44_nodes = children(code44); t174 = claim_text(code44_nodes, "path()"); code44_nodes.forEach(detach); t175 = claim_text(li42_nodes, ", "); code45 = claim_element(li42_nodes, "CODE", {}); var code45_nodes = children(code45); t176 = claim_text(code45_nodes, "circle()"); code45_nodes.forEach(detach); t177 = claim_text(li42_nodes, ", "); code46 = claim_element(li42_nodes, "CODE", {}); var code46_nodes = children(code46); t178 = claim_text(code46_nodes, "ellipse()"); code46_nodes.forEach(detach); t179 = claim_text(li42_nodes, ", "); code47 = claim_element(li42_nodes, "CODE", {}); var code47_nodes = children(code47); t180 = claim_text(code47_nodes, "polygon()"); code47_nodes.forEach(detach); t181 = claim_text(li42_nodes, ", "); code48 = claim_element(li42_nodes, "CODE", {}); var code48_nodes = children(code48); t182 = claim_text(code48_nodes, "inset()"); code48_nodes.forEach(detach); li42_nodes.forEach(detach); ul14_nodes.forEach(detach); t183 = claim_space(section13_nodes); pre9 = claim_element(section13_nodes, "PRE", { class: true }); var pre9_nodes = children(pre9); pre9_nodes.forEach(detach); section13_nodes.forEach(detach); t184 = claim_space(nodes); section14 = claim_element(nodes, "SECTION", {}); var section14_nodes = children(section14); h213 = claim_element(section14_nodes, "H2", {}); var h213_nodes = children(h213); a36 = claim_element(h213_nodes, "A", { href: true, id: true }); var a36_nodes = children(a36); t185 = claim_text(a36_nodes, "1️⃣3️⃣ Transform Functions"); a36_nodes.forEach(detach); h213_nodes.forEach(detach); t186 = claim_space(section14_nodes); ul15 = claim_element(section14_nodes, "UL", {}); var ul15_nodes = children(ul15); li43 = claim_element(ul15_nodes, "LI", {}); var li43_nodes = children(li43); t187 = claim_text(li43_nodes, "scaleX(), scaleY(), scaleZ(), scale(), scale3d()"); li43_nodes.forEach(detach); t188 = claim_space(ul15_nodes); li44 = claim_element(ul15_nodes, "LI", {}); var li44_nodes = children(li44); t189 = claim_text(li44_nodes, "perspective()"); li44_nodes.forEach(detach); t190 = claim_space(ul15_nodes); li45 = claim_element(ul15_nodes, "LI", {}); var li45_nodes = children(li45); t191 = claim_text(li45_nodes, "translateX(), translateY(), translateZ(), translate(), translate3d()"); li45_nodes.forEach(detach); t192 = claim_space(ul15_nodes); li46 = claim_element(ul15_nodes, "LI", {}); var li46_nodes = children(li46); t193 = claim_text(li46_nodes, "rotateX(), rotateY(), rotateZ(), rotate(), rotate3d()"); li46_nodes.forEach(detach); t194 = claim_space(ul15_nodes); li47 = claim_element(ul15_nodes, "LI", {}); var li47_nodes = children(li47); t195 = claim_text(li47_nodes, "skewX(), skewY(), skew()"); li47_nodes.forEach(detach); ul15_nodes.forEach(detach); section14_nodes.forEach(detach); t196 = claim_space(nodes); section15 = claim_element(nodes, "SECTION", {}); var section15_nodes = children(section15); h214 = claim_element(section15_nodes, "H2", {}); var h214_nodes = children(h214); a37 = claim_element(h214_nodes, "A", { href: true, id: true }); var a37_nodes = children(a37); t197 = claim_text(a37_nodes, "1️⃣4️⃣ Filter Functions"); a37_nodes.forEach(detach); h214_nodes.forEach(detach); t198 = claim_space(section15_nodes); ul16 = claim_element(section15_nodes, "UL", {}); var ul16_nodes = children(ul16); li48 = claim_element(ul16_nodes, "LI", {}); var li48_nodes = children(li48); t199 = claim_text(li48_nodes, "blur(), brightness(), contrast(), grayscale(), hue-rotate(), invert(), opacity(), saturate(), sepia(), drop-shadow(), url()"); li48_nodes.forEach(detach); ul16_nodes.forEach(detach); t200 = claim_space(section15_nodes); pre10 = claim_element(section15_nodes, "PRE", { class: true }); var pre10_nodes = children(pre10); pre10_nodes.forEach(detach); section15_nodes.forEach(detach); t201 = claim_space(nodes); section16 = claim_element(nodes, "SECTION", {}); var section16_nodes = children(section16); h215 = claim_element(section16_nodes, "H2", {}); var h215_nodes = children(h215); a38 = claim_element(h215_nodes, "A", { href: true, id: true }); var a38_nodes = children(a38); t202 = claim_text(a38_nodes, "1️⃣5️⃣ Grid Template Functions"); a38_nodes.forEach(detach); h215_nodes.forEach(detach); t203 = claim_space(section16_nodes); ul17 = claim_element(section16_nodes, "UL", {}); var ul17_nodes = children(ul17); li49 = claim_element(ul17_nodes, "LI", {}); var li49_nodes = children(li49); code49 = claim_element(li49_nodes, "CODE", {}); var code49_nodes = children(code49); t204 = claim_text(code49_nodes, "fit-content()"); code49_nodes.forEach(detach); t205 = claim_text(li49_nodes, ", "); code50 = claim_element(li49_nodes, "CODE", {}); var code50_nodes = children(code50); t206 = claim_text(code50_nodes, "min-max()"); code50_nodes.forEach(detach); t207 = claim_text(li49_nodes, ", "); code51 = claim_element(li49_nodes, "CODE", {}); var code51_nodes = children(code51); t208 = claim_text(code51_nodes, "repeat()"); code51_nodes.forEach(detach); li49_nodes.forEach(detach); ul17_nodes.forEach(detach); section16_nodes.forEach(detach); t209 = claim_space(nodes); section17 = claim_element(nodes, "SECTION", {}); var section17_nodes = children(section17); h216 = claim_element(section17_nodes, "H2", {}); var h216_nodes = children(h216); a39 = claim_element(h216_nodes, "A", { href: true, id: true }); var a39_nodes = children(a39); t210 = claim_text(a39_nodes, "1️⃣6️⃣ Media Queries"); a39_nodes.forEach(detach); h216_nodes.forEach(detach); t211 = claim_space(section17_nodes); ul18 = claim_element(section17_nodes, "UL", {}); var ul18_nodes = children(ul18); li50 = claim_element(ul18_nodes, "LI", {}); var li50_nodes = children(li50); t212 = claim_text(li50_nodes, "@media"); li50_nodes.forEach(detach); t213 = claim_space(ul18_nodes); li51 = claim_element(ul18_nodes, "LI", {}); var li51_nodes = children(li51); t214 = claim_text(li51_nodes, "@support"); li51_nodes.forEach(detach); ul18_nodes.forEach(detach); t215 = claim_space(section17_nodes); pre11 = claim_element(section17_nodes, "PRE", { class: true }); var pre11_nodes = children(pre11); pre11_nodes.forEach(detach); section17_nodes.forEach(detach); t216 = claim_space(nodes); section18 = claim_element(nodes, "SECTION", {}); var section18_nodes = children(section18); h217 = claim_element(section18_nodes, "H2", {}); var h217_nodes = children(h217); a40 = claim_element(h217_nodes, "A", { href: true, id: true }); var a40_nodes = children(a40); t217 = claim_text(a40_nodes, "1️⃣7️⃣ Vulnerabilities"); a40_nodes.forEach(detach); h217_nodes.forEach(detach); t218 = claim_space(section18_nodes); ul19 = claim_element(section18_nodes, "UL", {}); var ul19_nodes = children(ul19); li52 = claim_element(ul19_nodes, "LI", {}); var li52_nodes = children(li52); t219 = claim_text(li52_nodes, "Billion Laughs Attack ("); a41 = claim_element(li52_nodes, "A", { href: true, rel: true }); var a41_nodes = children(a41); t220 = claim_text(a41_nodes, "https://drafts.csswg.org/css-variables/#long-variables"); a41_nodes.forEach(detach); t221 = claim_text(li52_nodes, ")"); li52_nodes.forEach(detach); t222 = claim_space(ul19_nodes); li53 = claim_element(ul19_nodes, "LI", {}); var li53_nodes = children(li53); t223 = claim_text(li53_nodes, "XSS through "); code52 = claim_element(li53_nodes, "CODE", {}); var code52_nodes = children(code52); t224 = claim_text(code52_nodes, "url()"); code52_nodes.forEach(detach); t225 = claim_text(li53_nodes, " + "); code53 = claim_element(li53_nodes, "CODE", {}); var code53_nodes = children(code53); t226 = claim_text(code53_nodes, "attr()"); code53_nodes.forEach(detach); li53_nodes.forEach(detach); t227 = claim_space(ul19_nodes); li54 = claim_element(ul19_nodes, "LI", {}); var li54_nodes = children(li54); a42 = claim_element(li54_nodes, "A", { href: true, rel: true }); var a42_nodes = children(a42); t228 = claim_text(a42_nodes, "Third party CSS is not safe"); a42_nodes.forEach(detach); li54_nodes.forEach(detach); ul19_nodes.forEach(detach); t229 = claim_space(section18_nodes); pre12 = claim_element(section18_nodes, "PRE", { class: true }); var pre12_nodes = children(pre12); pre12_nodes.forEach(detach); section18_nodes.forEach(detach); this.h(); }, h() { attr(a0, "href", "#css-functions"); attr(a1, "href", "#color-functions"); attr(a2, "href", "#gradient-functions"); attr(a3, "href", "#attr"); attr(a4, "href", "#var"); attr(a5, "href", "#url"); attr(a6, "href", "#image-set"); attr(a7, "href", "#functional-selectors"); attr(a8, "href", "#mathematical-functions"); attr(a9, "href", "#trigonometry-functions"); attr(a10, "href", "#cubic-bezier"); attr(a11, "href", "#steps"); attr(a12, "href", "#shape-functions"); attr(a13, "href", "#transform-functions"); attr(a14, "href", "#filter-functions"); attr(a15, "href", "#grid-template-functions"); attr(a16, "href", "#media-queries"); attr(a17, "href", "#vulnerabilities"); attr(ul0, "class", "sitemap"); attr(ul0, "id", "sitemap"); attr(ul0, "role", "navigation"); attr(ul0, "aria-label", "Table of Contents"); attr(a18, "href", "#css-functions"); attr(a18, "id", "css-functions"); attr(a19, "href", "#color-functions"); attr(a19, "id", "color-functions"); attr(a20, "href", "https://www.w3.org/TR/css-color-4/#icc-colors"); attr(a20, "rel", "nofollow"); attr(a21, "href", "https://css-tricks.com/no-comma-color-functions-in-css/"); attr(a21, "rel", "nofollow"); attr(pre0, "class", "language-css"); attr(a22, "href", "#gradient-functions"); attr(a22, "id", "gradient-functions"); attr(pre1, "class", "language-css"); attr(a23, "href", "#attr"); attr(a23, "id", "attr"); attr(pre2, "class", "language-html"); attr(a24, "href", "#var"); attr(a24, "id", "var"); attr(pre3, "class", "language-css"); attr(a25, "href", "#url"); attr(a25, "id", "url"); attr(pre4, "class", "language-css"); attr(a26, "href", "#image-set"); attr(a26, "id", "image-set"); attr(pre5, "class", "language-css"); attr(a27, "href", "#functional-selectors"); attr(a27, "id", "functional-selectors"); attr(a28, "href", "https://twitter.com/lihautan/status/1278189274114842624?s=20"); attr(a28, "rel", "nofollow"); attr(a29, "href", "#mathematical-functions"); attr(a29, "id", "mathematical-functions"); attr(pre6, "class", "language-css"); attr(a30, "href", "#trigonometry-functions"); attr(a30, "id", "trigonometry-functions"); attr(a31, "href", "#cubic-bezier"); attr(a31, "id", "cubic-bezier"); attr(a32, "href", "https://dev.wgao19.cc/cubic-bezier/"); attr(a32, "rel", "nofollow"); attr(a33, "href", "https://engineers.sg/video/the-obscurities-of-bezier-curves-explained-to-my-computer-engineer-friends-talk-css-52--4057"); attr(a33, "rel", "nofollow"); attr(pre7, "class", "language-css"); attr(a34, "href", "#steps"); attr(a34, "id", "steps"); attr(pre8, "class", "language-css"); attr(a35, "href", "#shape-functions"); attr(a35, "id", "shape-functions"); attr(pre9, "class", "language-css"); attr(a36, "href", "#transform-functions"); attr(a36, "id", "transform-functions"); attr(a37, "href", "#filter-functions"); attr(a37, "id", "filter-functions"); attr(pre10, "class", "language-css"); attr(a38, "href", "#grid-template-functions"); attr(a38, "id", "grid-template-functions"); attr(a39, "href", "#media-queries"); attr(a39, "id", "media-queries"); attr(pre11, "class", "language-css"); attr(a40, "href", "#vulnerabilities"); attr(a40, "id", "vulnerabilities"); attr(a41, "href", "https://drafts.csswg.org/css-variables/#long-variables"); attr(a41, "rel", "nofollow"); attr(a42, "href", "https://jakearchibald.com/2018/third-party-css-is-not-safe/"); attr(a42, "rel", "nofollow"); attr(pre12, "class", "language-css"); }, m(target, anchor) { insert(target, section0, anchor); append(section0, ul0); append(ul0, li0); append(li0, a0); append(a0, t0); append(ul0, li1); append(li1, a1); append(a1, t1); append(ul0, li2); append(li2, a2); append(a2, t2); append(ul0, li3); append(li3, a3); append(a3, t3); append(ul0, li4); append(li4, a4); append(a4, t4); append(ul0, li5); append(li5, a5); append(a5, t5); append(ul0, li6); append(li6, a6); append(a6, t6); append(ul0, li7); append(li7, a7); append(a7, t7); append(ul0, li8); append(li8, a8); append(a8, t8); append(ul0, li9); append(li9, a9); append(a9, t9); append(ul0, li10); append(li10, a10); append(a10, t10); append(ul0, li11); append(li11, a11); append(a11, t11); append(ul0, li12); append(li12, a12); append(a12, t12); append(ul0, li13); append(li13, a13); append(a13, t13); append(ul0, li14); append(li14, a14); append(a14, t14); append(ul0, li15); append(li15, a15); append(a15, t15); append(ul0, li16); append(li16, a16); append(a16, t16); append(ul0, li17); append(li17, a17); append(a17, t17); insert(target, t18, anchor); insert(target, section1, anchor); append(section1, h20); append(h20, a18); append(a18, t19); append(section1, t20); append(section1, p); append(p, t21); append(section1, t22); append(section1, ul1); append(ul1, li18); append(li18, t23); append(ul1, t24); append(ul1, li19); append(li19, t25); append(ul1, t26); append(ul1, li20); append(li20, t27); append(li20, code0); append(code0, t28); append(li20, t29); append(ul1, t30); append(ul1, li21); append(li21, t31); append(li21, code1); append(code1, t32); append(ul1, t33); append(ul1, li22); append(li22, t34); append(ul1, t35); append(ul1, li23); append(li23, t36); append(li23, code2); append(code2, t37); insert(target, t38, anchor); insert(target, section2, anchor); append(section2, h21); append(h21, a19); append(a19, t39); append(section2, t40); append(section2, ul2); append(ul2, li24); append(li24, code3); append(code3, t41); append(li24, t42); append(li24, code4); append(code4, t43); append(li24, t44); append(li24, code5); append(code5, t45); append(li24, t46); append(li24, code6); append(code6, t47); append(li24, t48); append(li24, code7); append(code7, t49); append(li24, t50); append(li24, code8); append(code8, t51); append(ul2, t52); append(ul2, li25); append(li25, a20); append(a20, code9); append(code9, t53); append(section2, t54); append(section2, ul3); append(ul3, li26); append(li26, a21); append(a21, t55); append(section2, t56); append(section2, pre0); pre0.innerHTML = raw0_value; insert(target, t57, anchor); insert(target, section3, anchor); append(section3, h22); append(h22, a22); append(a22, t58); append(section3, t59); append(section3, ul4); append(ul4, li27); append(li27, code10); append(code10, t60); append(li27, t61); append(li27, code11); append(code11, t62); append(li27, t63); append(ul4, t64); append(ul4, li28); append(li28, code12); append(code12, t65); append(li28, t66); append(li28, code13); append(code13, t67); append(li28, t68); append(ul4, t69); append(ul4, li29); append(li29, code14); append(code14, t70); append(li29, t71); append(li29, code15); append(code15, t72); append(li29, t73); append(section3, t74); append(section3, pre1); pre1.innerHTML = raw1_value; insert(target, t75, anchor); insert(target, section4, anchor); append(section4, h23); append(h23, a23); append(a23, t76); append(a23, code16); append(code16, t77); append(section4, t78); append(section4, ul5); append(ul5, li30); append(li30, t79); append(section4, t80); append(section4, pre2); pre2.innerHTML = raw2_value; insert(target, t81, anchor); insert(target, section5, anchor); append(section5, h24); append(h24, a24); append(a24, t82); append(a24, code17); append(code17, t83); append(section5, t84); append(section5, ul6); append(ul6, li31); append(li31, t85); append(section5, t86); append(section5, pre3); pre3.innerHTML = raw3_value; insert(target, t87, anchor); insert(target, section6, anchor); append(section6, h25); append(h25, a25); append(a25, t88); append(a25, code18); append(code18, t89); append(section6, t90); append(section6, ul7); append(ul7, li32); append(li32, t91); append(section6, t92); append(section6, pre4); pre4.innerHTML = raw4_value; insert(target, t93, anchor); insert(target, section7, anchor); append(section7, h26); append(h26, a26); append(a26, t94); append(a26, code19); append(code19, t95); append(section7, t96); append(section7, ul8); append(ul8, li33); append(li33, t97); append(section7, t98); append(section7, pre5); pre5.innerHTML = raw5_value; insert(target, t99, anchor); insert(target, section8, anchor); append(section8, h27); append(h27, a27); append(a27, t100); append(section8, t101); append(section8, ul9); append(ul9, li34); append(li34, code20); append(code20, t102); append(li34, t103); append(li34, code21); append(code21, t104); append(li34, t105); append(li34, code22); append(code22, t106); append(li34, t107); append(li34, code23); append(code23, t108); append(li34, t109); append(li34, code24); append(code24, t110); append(li34, t111); append(ul9, t112); append(ul9, li35); append(li35, code25); append(code25, t113); append(li35, t114); append(li35, code26); append(code26, t115); append(li35, t116); append(li35, code27); append(code27, t117); append(li35, t118); append(li35, code28); append(code28, t119); append(ul9, t120); append(ul9, li36); append(li36, a28); append(a28, t121); insert(target, t122, anchor); insert(target, section9, anchor); append(section9, h28); append(h28, a29); append(a29, t123); append(section9, t124); append(section9, ul10); append(ul10, li37); append(li37, code29); append(code29, t125); append(li37, t126); append(li37, code30); append(code30, t127); append(li37, t128); append(li37, code31); append(code31, t129); append(li37, t130); append(li37, code32); append(code32, t131); append(section9, t132); append(section9, pre6); pre6.innerHTML = raw6_value; insert(target, t133, anchor); insert(target, section10, anchor); append(section10, h29); append(h29, a30); append(a30, t134); append(section10, t135); append(section10, ul11); append(ul11, li38); append(li38, code33); append(code33, t136); append(li38, t137); append(li38, code34); append(code34, t138); append(li38, t139); append(li38, code35); append(code35, t140); append(li38, t141); append(li38, code36); append(code36, t142); append(li38, t143); append(li38, code37); append(code37, t144); append(li38, t145); append(li38, code38); append(code38, t146); append(li38, t147); append(li38, code39); append(code39, t148); append(li38, t149); append(li38, code40); append(code40, t150); append(li38, t151); append(li38, code41); append(code41, t152); insert(target, t153, anchor); insert(target, section11, anchor); append(section11, h210); append(h210, a31); append(a31, t154); append(a31, code42); append(code42, t155); append(section11, t156); append(section11, ul12); append(ul12, li39); append(li39, t157); append(li39, a32); append(a32, t158); append(li39, t159); append(li39, a33); append(a33, t160); append(li39, t161); append(section11, t162); append(section11, pre7); pre7.innerHTML = raw7_value; insert(target, t163, anchor); insert(target, section12, anchor); append(section12, h211); append(h211, a34); append(a34, t164); append(a34, code43); append(code43, t165); append(section12, t166); append(section12, ul13); append(ul13, li40); append(li40, t167); append(ul13, t168); append(ul13, li41); append(li41, t169); append(section12, t170); append(section12, pre8); pre8.innerHTML = raw8_value; insert(target, t171, anchor); insert(target, section13, anchor); append(section13, h212); append(h212, a35); append(a35, t172); append(section13, t173); append(section13, ul14); append(ul14, li42); append(li42, code44); append(code44, t174); append(li42, t175); append(li42, code45); append(code45, t176); append(li42, t177); append(li42, code46); append(code46, t178); append(li42, t179); append(li42, code47); append(code47, t180); append(li42, t181); append(li42, code48); append(code48, t182); append(section13, t183); append(section13, pre9); pre9.innerHTML = raw9_value; insert(target, t184, anchor); insert(target, section14, anchor); append(section14, h213); append(h213, a36); append(a36, t185); append(section14, t186); append(section14, ul15); append(ul15, li43); append(li43, t187); append(ul15, t188); append(ul15, li44); append(li44, t189); append(ul15, t190); append(ul15, li45); append(li45, t191); append(ul15, t192); append(ul15, li46); append(li46, t193); append(ul15, t194); append(ul15, li47); append(li47, t195); insert(target, t196, anchor); insert(target, section15, anchor); append(section15, h214); append(h214, a37); append(a37, t197); append(section15, t198); append(section15, ul16); append(ul16, li48); append(li48, t199); append(section15, t200); append(section15, pre10); pre10.innerHTML = raw10_value; insert(target, t201, anchor); insert(target, section16, anchor); append(section16, h215); append(h215, a38); append(a38, t202); append(section16, t203); append(section16, ul17); append(ul17, li49); append(li49, code49); append(code49, t204); append(li49, t205); append(li49, code50); append(code50, t206); append(li49, t207); append(li49, code51); append(code51, t208); insert(target, t209, anchor); insert(target, section17, anchor); append(section17, h216); append(h216, a39); append(a39, t210); append(section17, t211); append(section17, ul18); append(ul18, li50); append(li50, t212); append(ul18, t213); append(ul18, li51); append(li51, t214); append(section17, t215); append(section17, pre11); pre11.innerHTML = raw11_value; insert(target, t216, anchor); insert(target, section18, anchor); append(section18, h217); append(h217, a40); append(a40, t217); append(section18, t218); append(section18, ul19); append(ul19, li52); append(li52, t219); append(li52, a41); append(a41, t220); append(li52, t221); append(ul19, t222); append(ul19, li53); append(li53, t223); append(li53, code52); append(code52, t224); append(li53, t225); append(li53, code53); append(code53, t226); append(ul19, t227); append(ul19, li54); append(li54, a42); append(a42, t228); append(section18, t229); append(section18, pre12); pre12.innerHTML = raw12_value; }, p: noop, d(detaching) { if (detaching) detach(section0); if (detaching) detach(t18); if (detaching) detach(section1); if (detaching) detach(t38); if (detaching) detach(section2); if (detaching) detach(t57); if (detaching) detach(section3); if (detaching) detach(t75); if (detaching) detach(section4); if (detaching) detach(t81); if (detaching) detach(section5); if (detaching) detach(t87); if (detaching) detach(section6); if (detaching) detach(t93); if (detaching) detach(section7); if (detaching) detach(t99); if (detaching) detach(section8); if (detaching) detach(t122); if (detaching) detach(section9); if (detaching) detach(t133); if (detaching) detach(section10); if (detaching) detach(t153); if (detaching) detach(section11); if (detaching) detach(t163); if (detaching) detach(section12); if (detaching) detach(t171); if (detaching) detach(section13); if (detaching) detach(t184); if (detaching) detach(section14); if (detaching) detach(t196); if (detaching) detach(section15); if (detaching) detach(t201); if (detaching) detach(section16); if (detaching) detach(t209); if (detaching) detach(section17); if (detaching) detach(t216); if (detaching) detach(section18); } }; } function create_fragment$2(ctx) { let layout_mdsvex_default; let current; const layout_mdsvex_default_spread_levels = [metadata]; let layout_mdsvex_default_props = { $$slots: { default: [create_default_slot] }, $$scope: { ctx } }; for (let i = 0; i < layout_mdsvex_default_spread_levels.length; i += 1) { layout_mdsvex_default_props = assign(layout_mdsvex_default_props, layout_mdsvex_default_spread_levels[i]); } layout_mdsvex_default = new Note({ props: layout_mdsvex_default_props }); return { c() { create_component(layout_mdsvex_default.$$.fragment); }, l(nodes) { claim_component(layout_mdsvex_default.$$.fragment, nodes); }, m(target, anchor) { mount_component(layout_mdsvex_default, target, anchor); current = true; }, p(ctx, [dirty]) { const layout_mdsvex_default_changes = (dirty & /*metadata*/ 0) ? get_spread_update(layout_mdsvex_default_spread_levels, [get_spread_object(metadata)]) : {}; if (dirty & /*$$scope*/ 1) { layout_mdsvex_default_changes.$$scope = { dirty, ctx }; } layout_mdsvex_default.$set(layout_mdsvex_default_changes); }, i(local) { if (current) return; transition_in(layout_mdsvex_default.$$.fragment, local); current = true; }, o(local) { transition_out(layout_mdsvex_default.$$.fragment, local); current = false; }, d(detaching) { destroy_component(layout_mdsvex_default, detaching); } }; } const metadata = { "title": "The CSS Podcast: 020: Functions", "tags": ["css functions", "The CSS Podcast"], "slug": "notes/css-podcast-020-functions", "type": "notes", "name": "css-podcast-020-functions", "layout": "note" }; class Page_markup extends SvelteComponent { constructor(options) { super(); init(this, options, null, create_fragment$2, safe_not_equal, {}); } } setTimeout(() => { const app = new Page_markup({ target: document.querySelector('#app'), hydrate: true, }); if (document.querySelector('.twitter-tweet')) { const script = document.createElement('script'); script.async = true; script.src = 'https://platform.twitter.com/widgets.js'; script.charset = 'utf-8'; document.body.appendChild(script); } // TODO if ('loading' in HTMLImageElement.prototype) { const images = document.querySelectorAll('img[loading="lazy"]'); images.forEach(img => { img.src = img.dataset.src; }); } else { const script = document.createElement('script'); script.src = 'https://cdnjs.cloudflare.com/ajax/libs/lazysizes/5.1.2/lazysizes.min.js'; document.body.appendChild(script); } }, 3000);
36.5768
1,363
0.645094
19477667e0dce9968502826dd7020fce562eed85
488
js
JavaScript
frontend/src/router/index.js
vodanh1369/spring-vue-rest-oauth2
63f2d1ddb19950d83bbc869ae8aedb42e01ac7c8
[ "MIT" ]
36
2019-02-06T09:05:25.000Z
2022-03-18T14:09:35.000Z
frontend/src/router/index.js
bmstefanski/spring-web-oauth-example
de67c2dd8f85baed2698e40a0d537dccdba5b84e
[ "MIT" ]
null
null
null
frontend/src/router/index.js
bmstefanski/spring-web-oauth-example
de67c2dd8f85baed2698e40a0d537dccdba5b84e
[ "MIT" ]
20
2019-06-11T04:02:43.000Z
2021-12-07T02:55:19.000Z
import Vue from "vue"; import VueRouter from "vue-router"; import {routes} from "./routes"; Vue.use(VueRouter); const router = new VueRouter({ routes: routes }); router.beforeEach((to, from, next) => { let requiresAuth = to.matched.some(value => value.meta.requiresAuth); let currentUser = localStorage.getItem("currentUser"); if (requiresAuth && !currentUser || requiresAuth && currentUser === {}) { next("/login"); } else { next(); } }); export default router;
21.217391
75
0.663934
19477e48d39ba28b3a5e2a028e16818f84ab230e
1,140
js
JavaScript
generate.js
emoji-king/areacode-king
7251f177476aeb53dc636fe53842870227271702
[ "MIT" ]
null
null
null
generate.js
emoji-king/areacode-king
7251f177476aeb53dc636fe53842870227271702
[ "MIT" ]
null
null
null
generate.js
emoji-king/areacode-king
7251f177476aeb53dc636fe53842870227271702
[ "MIT" ]
null
null
null
import Promise from 'bluebird' import fs from 'mz/fs' import agent from 'superagent' import geocode from './geocode' // Install unhandled rejection handler. process.on('unhandledRejection', (reason, p) => { console.log('Unhandled Rejection at: Promise ', p, ' reason: ', reason) }) async function generate(url) { if (!url) url = 'https://raw.githubusercontent.com/googlei18n/libphonenumber/master/resources/geocoding/en/1.txt' const list = (await agent.get(url)).text const short = {} const long = {} await Promise.map(list.split('\n'), async (l) => { const m = l.match(/^1([0-9]+)[^0-9](.*)/) if (m) { const code = m[1] const region = m[2] const location = await geocode(region) delete location.result if (code.length <= 4) { short[code] = {r: region, l: location} } else { long[code] = {r: region, l: location} } } }, {concurrency: 20}) console.log('module.exports = {') console.log('short:') console.log(JSON.stringify(short)) console.log(',') console.log('long:') console.log(JSON.stringify(long)) console.log('}') } generate()
24.255319
115
0.621053
194788b71735cf92d627a83961df31fa6bd18d56
34
js
JavaScript
data/2381.js
stas-vilchik/bdd-ml
2a254419a7c40c2e9b48625be8ca78721f786d2b
[ "MIT" ]
null
null
null
data/2381.js
stas-vilchik/bdd-ml
2a254419a7c40c2e9b48625be8ca78721f786d2b
[ "MIT" ]
null
null
null
data/2381.js
stas-vilchik/bdd-ml
2a254419a7c40c2e9b48625be8ca78721f786d2b
[ "MIT" ]
null
null
null
{ assert.equal(this, global); }
8.5
29
0.617647
19478f5c85259f72982cd5a188ac1324ee30ab55
146
js
JavaScript
src/components/Dashboard/Rates/Rates.js
mtahon/rooms
b1ea15a7018b091027533db55c4697958fc016bc
[ "MIT" ]
null
null
null
src/components/Dashboard/Rates/Rates.js
mtahon/rooms
b1ea15a7018b091027533db55c4697958fc016bc
[ "MIT" ]
2
2022-02-14T20:58:44.000Z
2022-02-27T21:10:02.000Z
src/components/Dashboard/Rates/Rates.js
tomashq/rooms
29839a796c54df4fd7603c413c5008854941c281
[ "MIT" ]
null
null
null
import React from 'react' class Rates extends React.Component { render() { return ( <h1>Rates</h1> ) } } export default Rates
12.166667
37
0.616438
19489f0798907c1d3e5c07caea553f41d04a3215
2,652
js
JavaScript
vuepress-test/node_modules/shopee-ui/packages/steps/test/steps.spec.js
Luoyangs/mavonEditor
1d57d0575ca8381143d2f8dafbe3c625588d3758
[ "MIT" ]
null
null
null
vuepress-test/node_modules/shopee-ui/packages/steps/test/steps.spec.js
Luoyangs/mavonEditor
1d57d0575ca8381143d2f8dafbe3c625588d3758
[ "MIT" ]
null
null
null
vuepress-test/node_modules/shopee-ui/packages/steps/test/steps.spec.js
Luoyangs/mavonEditor
1d57d0575ca8381143d2f8dafbe3c625588d3758
[ "MIT" ]
null
null
null
import Vue from 'vue'; import ShopeeSteps from '../index'; import { createElement, destroyInstance } from '@/test/utils'; import shopIcon from '@shopee-ui/icon/svg/shop.svg'; import walletIcon from '@shopee-ui/icon/svg/wallet.svg'; import shippingIcon from '@shopee-ui/icon/svg/shipping.svg'; import approvedIcon from '@shopee-ui/icon/svg/success.svg'; Vue.use(ShopeeSteps); describe('steps.vue', () => { let vm; afterEach(() => { destroyInstance(vm); }); it('should render correct', () => { vm = new Vue({ template: `<shopee-steps> <shopee-step title="Step1"></shopee-step> <shopee-step title="Step2"></shopee-step> <shopee-step title="Step3"></shopee-step> </shopee-steps>` }).$mount(createElement()); expect(vm.$el.classList.contains('shopee-steps')).to.be.true; expect(vm.$el.querySelectorAll('.shopee-step').length).to.equal(3); }); it('should render correct: vertical label', () => { vm = new Vue({ template: `<shopee-steps label-placement="vertical"> <shopee-step title="Edit Name of Webchat in ShenZhen"></shopee-step> <shopee-step title="Add Members in ShenZhen"></shopee-step> <shopee-step title="Check Source"></shopee-step> </shopee-steps>` }).$mount(createElement()); expect(vm.$el.classList.contains('shopee-steps-label-vertical')).to.be.true; }); it('should render correct: progress dot', () => { vm = new Vue({ template: `<shopee-steps progress-dot> <shopee-step title="Edit Name"></shopee-step> <shopee-step title="Add Members"></shopee-step> <shopee-step title="Check Source"></shopee-step> <shopee-step title="Finish"></shopee-step> </shopee-steps>` }).$mount(createElement()); expect(vm.$el.classList.contains('shopee-steps-dot')).to.be.true; expect(vm.$el.classList.contains('shopee-steps-label-vertical')).to.be.true; }); it('should render correct: with icon', () => { vm = new Vue({ template: `<shopee-steps progress-dot> <shopee-step title="Edit Name" :icon="shopIcon"></shopee-step> <shopee-step title="Add Members" :icon="walletIcon"></shopee-step> <shopee-step title="Check Source" :icon="shippingIcon"></shopee-step> <shopee-step title="Finish" :icon="approvedIcon"></shopee-step> </shopee-steps>`, data: { shopIcon, walletIcon, shippingIcon, approvedIcon } }).$mount(createElement()); expect(vm.$el.classList.contains('shopee-steps-dot')).to.be.true; expect(vm.$el.querySelectorAll('.shopee-icon').length).to.equal(4); }); });
36.833333
80
0.631599
1948e76a54fbf3a318d3eaee553f6067023fdc44
2,558
js
JavaScript
src/extend-nodes.js
tuespetre/html-mvc
9c93c976208e16e23a7ebec4c72e8454d7739b6e
[ "MIT" ]
null
null
null
src/extend-nodes.js
tuespetre/html-mvc
9c93c976208e16e23a7ebec4c72e8454d7739b6e
[ "MIT" ]
15
2015-08-12T08:35:51.000Z
2017-09-23T16:35:54.000Z
src/extend-nodes.js
tuespetre/html-mvc
9c93c976208e16e23a7ebec4c72e8454d7739b6e
[ "MIT" ]
null
null
null
function booleanAttributeDescriptor (name) { return { get: function () { return this.hasAttribute(name); }, set: function (value) { if (value === true) { this.setAttribute(name, ''); } else if (value === false || typeof value === 'undefined') { this.removeAttribute(name); } } }; }; function stringAttributeDescriptor (name) { return { get: function () { return this.getAttribute(name); }, set: function (value) { if (typeof value === 'undefined') { this.removeAttribute(name); } else { this.setAttribute(name, value); } } }; }; function createNodeDescriptors () { return { anchor_area_form: { 'view': stringAttributeDescriptor('view'), 'model': stringAttributeDescriptor('model') }, input_button: { 'formview': stringAttributeDescriptor('formview'), 'formmodel': stringAttributeDescriptor('formmodel') }, script: { 'model': stringAttributeDescriptor('model'), 'persistent': booleanAttributeDescriptor('persistent') }, element: { 'bindText': stringAttributeDescriptor('bindtext'), 'bindHtml': stringAttributeDescriptor('bindhtml'), 'bindCount': stringAttributeDescriptor('bindcount'), 'bindSome': stringAttributeDescriptor('bindsome'), 'bindNone': stringAttributeDescriptor('bindnone'), 'bindSkip': booleanAttributeDescriptor('bindskip'), 'bindChildren': { get: function () { var bindChildren = parseInt(this.getAttribute('bindchildren')); return isNaN(bindChildren) || bindChildren < 0 ? Infinity : bindChildren; }, set: function (value) { if (isNaN(value)) { throw new TypeError('bindChildren must be a number'); } this.setAttribute('bindchildren', value); } } }, view: { 'name': stringAttributeDescriptor('name'), 'outer': stringAttributeDescriptor('outer'), 'model': stringAttributeDescriptor('model'), 'scope': stringAttributeDescriptor('scope') }, document: { 'currentView': { get: function () { var child = this.body.firstChild; if (!child) return; do { if (child.nodeType === Node.ELEMENT_NODE && child.tagName === 'VIEW') { return child; } } while (child = child.nextSibling); } } } }; };
21.316667
83
0.564894
19491a1915236f3ed1a61604d754d2ebdead0736
1,007
js
JavaScript
routes/web/settings.js
openiod/fiware-idm
65473f68a023336094af71df3467ebb15f74df7a
[ "MIT" ]
null
null
null
routes/web/settings.js
openiod/fiware-idm
65473f68a023336094af71df3467ebb15f74df7a
[ "MIT" ]
null
null
null
routes/web/settings.js
openiod/fiware-idm
65473f68a023336094af71df3467ebb15f74df7a
[ "MIT" ]
1
2018-12-04T11:09:35.000Z
2018-12-04T11:09:35.000Z
var express = require('express'); var router = express.Router(); var csrf = require('csurf') var bodyParser = require('body-parser'); var csrfProtection = csrf({ cookie: true }) // Home web Controller var web_setting_controller = require('../../controllers/web/index').settings; var web_session_controller = require('../../controllers/web/index').sessions; // Routes for settings router.get('/', web_session_controller.password_check_date, csrfProtection, web_setting_controller.settings); router.post('/password', csrfProtection, web_setting_controller.password); router.post('/email', web_session_controller.password_check_date, csrfProtection, web_setting_controller.email); router.get('/email/verify', web_session_controller.password_check_date, csrfProtection, web_setting_controller.email_verify); router.delete('/cancel', web_session_controller.password_check_date, csrfProtection, web_setting_controller.cancel_account); module.exports = router;
55.944444
132
0.762661
194a4df34d03982fc864a1c8077f278e53fcd97a
42
js
JavaScript
webapp/src/components/StringProc/index.js
ProtoTechnical/web-homework
6af78e283cd91a9fa3ecd0ac82494a12bd28a57e
[ "MIT" ]
null
null
null
webapp/src/components/StringProc/index.js
ProtoTechnical/web-homework
6af78e283cd91a9fa3ecd0ac82494a12bd28a57e
[ "MIT" ]
null
null
null
webapp/src/components/StringProc/index.js
ProtoTechnical/web-homework
6af78e283cd91a9fa3ecd0ac82494a12bd28a57e
[ "MIT" ]
null
null
null
export { StringProc } from './StringProc'
21
41
0.714286
194b38bf0a97dda5af4318e1c21767005c68eb28
670
js
JavaScript
src/controllers/auth.controller.js
infamous55/school-api
1ecd2144523dd06797a69bf29b4cef31757c3c33
[ "MIT" ]
null
null
null
src/controllers/auth.controller.js
infamous55/school-api
1ecd2144523dd06797a69bf29b4cef31757c3c33
[ "MIT" ]
null
null
null
src/controllers/auth.controller.js
infamous55/school-api
1ecd2144523dd06797a69bf29b4cef31757c3c33
[ "MIT" ]
null
null
null
const auth = require('../services/auth.service'); const createError = require('http-errors'); class authController { static async login(req, res, next) { try { const { accessToken, refreshToken } = await auth.login(req.body); res.status(200).json({ accessToken, refreshToken, }); } catch (e) { next(createError(e.statusCode, e.message)); } } static async refresh(req, res, next) { try { const { accessToken } = await auth.refresh(req.body); res.status(200).json({ accessToken }); } catch (e) { next(createError(e.statusCode, e.message)); } } } module.exports = authController;
23.928571
71
0.608955
194bf22cdf7e6a28e21d2e07f98b332d6c6d1635
1,196
js
JavaScript
test/update_test.js
devamaz/mongodb
70d69300146c579dc6769970196521f99ead23fa
[ "MIT" ]
null
null
null
test/update_test.js
devamaz/mongodb
70d69300146c579dc6769970196521f99ead23fa
[ "MIT" ]
null
null
null
test/update_test.js
devamaz/mongodb
70d69300146c579dc6769970196521f99ead23fa
[ "MIT" ]
null
null
null
const assert = require('assert'); const User = require('../src/user'); describe('Updating User for database', () => { let joe; beforeEach((done) => { joe = new User({ name: 'joe' }) joe.save() .then(() => done()) }) function assertName(operation, done) { operation .then(()=> User.find({})) .then((users)=>{ assert(users.length === 1); assert(users[0].name === 'jane'); done(); }); } it('model instance using set n save', (done) => { joe.set({name:'jane'}) assertName(joe.save(), done) }) it('model instance can update', (done)=>{ assertName(joe.update({name:'jane'}), done) }) it('model class can update', (done)=>{ assertName(User.update({name:'joe'}, {name:'jane'}), done) }) it('model class can findOnrAndUpdate', (done)=>{ assertName(User.findOneAndUpdate({name: 'joe'}, {name:'jane'}), done) }) it('model class can findByIdAndUpdate', (done)=>{ assertName(User.findByIdAndUpdate(joe._id, {name:'jane'}), done) }) })
26
77
0.494983
194c27b3ebad9f5b999a3a81ef46e1b7c6746e5e
1,957
js
JavaScript
src/common/form/fields/SelectField.js
zilahir/varaamo
eb11ac43145f294a2d795f84415b5977e25547ba
[ "MIT" ]
15
2017-05-29T17:46:21.000Z
2022-01-14T09:37:41.000Z
src/common/form/fields/SelectField.js
zilahir/varaamo
eb11ac43145f294a2d795f84415b5977e25547ba
[ "MIT" ]
554
2016-12-27T09:47:03.000Z
2021-05-08T06:39:30.000Z
src/common/form/fields/SelectField.js
zilahir/varaamo
eb11ac43145f294a2d795f84415b5977e25547ba
[ "MIT" ]
24
2017-02-20T07:28:34.000Z
2020-11-12T06:58:22.000Z
import * as React from 'react'; import PropTypes from 'prop-types'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import Select from 'react-select'; import injectT from '../../../../app/i18n/injectT'; export const getOption = (value, options) => { if (!value) { return null; } if (Array.isArray(value)) { return value.map(item => options.find(option => option.value === item)); } return options.find(option => option.value === value); }; const SelectField = ({ t, id, label, isClearable, isMulti, isSearchable, onChange, placeholder = t('common.select'), options, value, }) => { return ( <div className="app-SelectField"> <FormGroup controlId={id}> {label && <ControlLabel>{label}</ControlLabel>} <Select className="app-Select" classNamePrefix="app-Select" id={id} isClearable={isClearable} isMulti={isMulti} isSearchable={isSearchable} noOptionsMessage={() => t('SelectFilter.noOptionsMessage')} onChange={(selected, { action }) => { if (action === 'clear') { onChange(isMulti ? [] : {}, action); return; } onChange(selected, action); }} options={options} placeholder={placeholder} value={getOption(value, options)} /> </FormGroup> </div> ); }; SelectField.propTypes = { id: PropTypes.string.isRequired, isClearable: PropTypes.bool, isSearchable: PropTypes.bool, isMulti: PropTypes.bool, label: PropTypes.string, placeholder: PropTypes.string, onChange: PropTypes.func.isRequired, options: PropTypes.array.isRequired, t: PropTypes.func.isRequired, value: PropTypes.oneOfType([ PropTypes.string, PropTypes.array, PropTypes.number, ]), }; export default injectT(SelectField);
24.4625
76
0.616249
194d045bb47f3aef15dfca09755c94e0be3e3308
1,371
js
JavaScript
browserstack/browserstack_local.conf.js
ThomasHandwerker/angular2-image-gallery
419e90f270c7095dc035f80234812da4a6b97fd8
[ "MIT" ]
1
2020-09-12T09:55:09.000Z
2020-09-12T09:55:09.000Z
browserstack/browserstack_local.conf.js
ThomasHandwerker/angular2-image-gallery
419e90f270c7095dc035f80234812da4a6b97fd8
[ "MIT" ]
null
null
null
browserstack/browserstack_local.conf.js
ThomasHandwerker/angular2-image-gallery
419e90f270c7095dc035f80234812da4a6b97fd8
[ "MIT" ]
null
null
null
var browserstack = require('browserstack-local'); exports.config = { 'seleniumAddress': 'https://' + process.env.BROWSERSTACK_USERNAME + ':' + process.env.BROWSERSTACK_KEY + '@hub-cloud.browserstack.com/wd/hub', allScriptsTimeout: 11000, specs: [ '../e2e/**/*.e2e-spec.ts' ], 'capabilities': { 'browserstack.user': process.env.BROWSERSTACK_USERNAME, 'browserstack.key': process.env.BROWSERSTACK_KEY, 'os': 'Windows', 'os_version': '7', 'browserName': 'Chrome', 'browser_version': '57.0', 'resolution': '1920x1080', 'browserstack.local': true }, baseUrl: 'http://localhost:4200/', // Code to start browserstack local before start of test beforeLaunch: function () { require('ts-node').register({ project: 'e2e/tsconfig.e2e.json' }); console.log("Connecting local"); return new Promise(function (resolve, reject) { exports.bs_local = new browserstack.Local(); exports.bs_local.start({'key': exports.config.capabilities['browserstack.key']}, function (error) { if (error) return reject(error); console.log('Connected. Now testing...'); resolve(); }); }); }, // Code to stop browserstack local after end of test afterLaunch: function () { return new Promise(function (resolve, reject) { exports.bs_local.stop(resolve); }); } };
31.159091
144
0.643326
194d3469b4ae8b20518ee4076429dc4e612da31c
18,375
js
JavaScript
html/visualizer/src/lib/biojs-1.0/src/main/javascript/Biojs.Tooltip.js
cheminfo/nucleotide-website
87d48fca686650d48292a5972253b06551dfd0d0
[ "MIT" ]
31
2015-02-19T12:00:40.000Z
2022-03-13T18:36:11.000Z
html/visualizer/src/lib/biojs-1.0/src/main/javascript/Biojs.Tooltip.js
cheminfo/nucleotide-website
87d48fca686650d48292a5972253b06551dfd0d0
[ "MIT" ]
870
2015-01-05T07:34:10.000Z
2021-11-27T12:17:51.000Z
html/visualizer/src/lib/biojs-1.0/src/main/javascript/Biojs.Tooltip.js
cheminfo/nucleotide-website
87d48fca686650d48292a5972253b06551dfd0d0
[ "MIT" ]
23
2015-05-19T10:57:37.000Z
2021-12-29T09:09:32.000Z
/** * Tooltip for general purpose. * * @class * @extends Biojs * * @author <a href="mailto:johncar@gmail.com">John Gomez</a> * @version 1.0.0 * @category 1 * * @requires <a href="../biojs/css/biojs.Tooltip.css">Tooltip CSS</a> * @dependency <link href="../biojs/css/biojs.Tooltip.css" rel="stylesheet" type="text/css"></link> * * @requires <a href='http://blog.jquery.com/2011/09/12/jquery-1-6-4-released/'>jQuery Core 1.6.4</a> * @dependency <script language="JavaScript" type="text/javascript" src="../biojs/dependencies/jquery/jquery-1.6.4.js"></script> * * @param {Object} options * An object with the options for Article component. * * @param {string} targetSelector * A selector string to match the elements in the document. For more * information on it, see jQuery <a href="http://api.jquery.com/category/selectors/">selectors</a>. * * <pre class="brush: js" title="Examples:"> * // Select all the links * targetSelector: "a" * * // Select the element with the id 'target' * targetSelector: "#target" * * // Select all elements whose belong to the class 'here' * targetSelector: ".here" * * // Select all list elements whose belong to the class 'here' * targetSelector: "li.here" * </pre> * * @param {function} [cbRender] * By default, BiojsTooltip uses the 'title' attribute to render the content. * Set this option to customize the content rendering instead of using the default value. * * <pre class="brush:js" title:"Example"> * cbRender: function( element ) { * return "This is my personalized content for element " + element.tagName; * } * </pre> * * @param {static} [arrowType=Biojs.Tooltip.ARROW_LEFT_TOP] * Automatic positioning of the tooltip depends on the arrow direction. * Possible arrow types are: * <ul> * <li>Biojs.Tooltip.ARROW_LEFT_TOP</li> * <li>Biojs.Tooltip.ARROW_LEFT_MIDDLE</li> * <li>Biojs.Tooltip.ARROW_LEFT_BOTTOM</li> * <li>Biojs.Tooltip.ARROW_TOP_LEFT</li> * <li>Biojs.Tooltip.ARROW_TOP_MIDDLE</li> * <li>Biojs.Tooltip.ARROW_TOP_RIGHT</li> * <li>Biojs.Tooltip.ARROW_RIGHT_TOP</li> * <li>Biojs.Tooltip.ARROW_RIGHT_MIDDLE</li> * <li>Biojs.Tooltip.ARROW_RIGHT_BOTTOM</li> * <li>Biojs.Tooltip.ARROW_BOTTOM_LEFT</li> * <li>Biojs.Tooltip.ARROW_BOTTOM_MIDDLE</li> * <li>Biojs.Tooltip.ARROW_BOTTOM_RIGHT</li> * <ul> * * @param {static} [position=Biojs.Tooltip.ELEMENT_POSITION] * Position is calculated through either mouse position or element position. * Allowed values are: Biojs.Tooltip.ELEMENT_POSITION or Biojs.Tooltip.MOUSE_POSITION * * @param {int} [delay=200] * Time interval in milliseconds starting on mouse exiting from element/Tooltip until the Tooltip hides itself. * * @example * // These examples use the component's example div 'YourOwnDivId' to draw the links only. * jQuery('#YourOwnDivId') * .append('<a class="example" href="#" title="Simple example of Tooltip showing the title attribute">Pass the mouse over here.<a>') * .css({ * 'display': 'table-cell', * 'vertical-align': 'middle', * 'text-align': 'center', * 'width': '730px', * 'height': '400px' * }); * * // Tooltip will come out whenever mouse enter to any anchor 'a' with class 'example' * var simpleTip = new Biojs.Tooltip({ * targetSelector: "a.example" * }); * * // * // Another example using rendering function instead of 'title' attribute * // * jQuery('#YourOwnDivId') * .append('<br/><br/><br/><br/><a class="example render" href="#">This example change the tooltip direction <br/> for each mouse entry.<a>'); * * // Tooltip will come out whenever mouse enter to any anchor 'a' with class 'example' * var tipRendered = new Biojs.Tooltip({ * targetSelector: "a.example.render", * cbRender: function( element ) { * return "Tooltip type <strong>Biojs.Tooltip.ARROW_" + this.getArrowType().toUpperCase() + "</strong> using rendering function to build up content dynamically" * } * }); * * // Changes the tooltip's direction * var counter = 0; * var arrowTypes = [ * Biojs.Tooltip.ARROW_LEFT_TOP, * Biojs.Tooltip.ARROW_LEFT_MIDDLE, * Biojs.Tooltip.ARROW_LEFT_BOTTOM, * Biojs.Tooltip.ARROW_TOP_LEFT, * Biojs.Tooltip.ARROW_TOP_MIDDLE, * Biojs.Tooltip.ARROW_TOP_RIGHT, * Biojs.Tooltip.ARROW_RIGHT_TOP, * Biojs.Tooltip.ARROW_RIGHT_MIDDLE, * Biojs.Tooltip.ARROW_RIGHT_BOTTOM, * Biojs.Tooltip.ARROW_BOTTOM_LEFT, * Biojs.Tooltip.ARROW_BOTTOM_MIDDLE, * Biojs.Tooltip.ARROW_BOTTOM_RIGHT * ]; * * // Changes the Tooltip arrow type dynamically * jQuery('#YourOwnDivId a.example.render').mouseover( function() { * var arrowType = arrowTypes[ counter++ % 12 ]; * tipRendered.setArrowType( arrowType ); * }); * * // * // Another example using rich content * // * jQuery('#YourOwnDivId') * .append('<br/><br/><br/><br/><a class="example rich" href="#">Rich content<a>'); * * var richContent = * '<div style="display: table-cell; width: 400px">'+ * '<h3>Santiago de Cali</h3>' + * '<img src="http://www.ebi.ac.uk/~jgomez/cali.jpg" style="position:relative;float:left; padding:10px; margin:0px;"/>'+ * '<p style="font-family:\'Bookman Old Style\', serif; font-size:1em; font-smooth:always;" > '+ * 'Simply referred to as Cali, is a city located in western <a href="http://en.wikipedia.org/wiki/Colombia">Colombia</a> '+ * 'It is the capital of the Valle del Cauca Department. With a population of 2.5 million, '+ * 'Cali is the third largest city in the country, after Bogota and Medellin. The city '+ * 'was founded on 25 July 1536.</p></div>'; * * var tipRich = new Biojs.Tooltip({ * targetSelector: "a.example.rich", * cbRender: function( element ) { * return richContent; * }, * arrowType: Biojs.Tooltip.ARROW_BOTTOM_MIDDLE * }); * * // * // Last example using mouse position instead of element's * // * jQuery('#YourOwnDivId') * .append('<br/><br/><br/><br/><a class="example position" href="#" title="I am a cat.">Tooltip changes with mouse positioning.<a>'); * * var tipPosition = new Biojs.Tooltip({ * targetSelector: "a.example.position", * position: Biojs.Tooltip.MOUSE_POSITION * }); * **/ Biojs.Tooltip = Biojs.extend ( /** @lends Biojs.Tooltip# */ { constructor: function (options) { var self = this; var arrowType = this.opt.arrowType; this._container = jQuery('<div id="biojsTooltip' + self.getId() + '"></div>').addClass("Tooltip"); this._arrow = jQuery('<div class="arrow"></div>').appendTo( self._container ); this._body = jQuery('<div class="body"></div>').appendTo( self._container ); this._container.appendTo('body'); this._initialize(); }, /** * Default values for the options * @name Biojs.Tooltip-opt */ opt: { targetSelector: "a", cbRender: undefined, arrowType: "left_top", position: 2, // ELEMENT_POSITION delay: 200 }, /** * Array containing the supported event names * @name Biojs.Tooltip-eventTypes */ eventTypes: [ /** * @name Biojs.Tooltip#onShowUp * @event * @param {function} actionPerformed A function which receives an {@link Biojs.Event} object as argument. * @eventData {Object} source The component which did triggered the event. * @eventData {string} type The name of the event. * @eventData {string} target Target element. * * @example * simpleTip.onShowUp( * function( e ) { * alert("Mouse has passed over the first example."); * } * ); * */ "onShowUp" ], _initialize: function( ) { var self = this; var timer = 0; var targetSelector = this.opt.targetSelector; var cbRender = this.opt.cbRender; var refPos = this.opt.position; var target; // Get the text from the title attribute by default if ( "function" != typeof cbRender ) { cbRender = function( element ) { return jQuery( element ).attr('title'); } } // Add the class to the arrow //arrow.addClass( self.opt.arrowType.match(/^(left|top|right|bottom)/g)[0] ); this.setArrowType( this.opt.arrowType ); // Positioning this._arrow.css({ "position": "absolute", "z-index": "99999" }); this._body.css({ 'position': 'absolute', 'z-index': '99998', 'margin': '0px' }); if ( refPos == Biojs.Tooltip.MOUSE_POSITION ) { jQuery( targetSelector ).mousemove( function (e) { target = jQuery(e.target); if (timer) { clearTimeout(timer); } timer = 0; // Set the content content = cbRender.call( self, e.target ); self._body.html( content ); // Show up self._show(); // Positioning self._setPosition( { left: e.pageX - 10, top: e.pageY - 10 }, { width: 20, height: 20 } ); // Event triggering self.raiseEvent( Biojs.Tooltip.EVT_ON_SHOW_UP, { 'target': target }); }).mouseout( function() { timer = setTimeout( 'Biojs.getInstance(' + self.getId() + ')._hide()' , self.opt.delay ); }); } else { jQuery( targetSelector ).mouseover( function (e) { target = jQuery(e.target); if (timer) { clearTimeout(timer); } timer = 0; // Set the content content = cbRender.call( self, e.target ); self._body.html( content ); // Show up self._show(); // Positioning self._setPosition( target.offset(), { width: target.width(), height: target.height() } ); // Event triggering self.raiseEvent( Biojs.Tooltip.EVT_ON_SHOW_UP, { 'target': target }); }).mouseout( function() { timer = setTimeout( 'Biojs.getInstance(' + self.getId() + ')._hide()' , self.opt.delay ); }); } self._container.mouseover( function(){ clearTimeout(timer); timer = 0; self._show(); }).mouseout( function() { timer = setTimeout( 'Biojs.getInstance(' + self.getId() + ')._hide()' , self.opt.delay ); }); this._hide(); }, _hide: function() { this._container.hide(); }, _show: function() { this._container.show(); }, _setPosition: function ( offset, dim ) { var arrow = this._arrow; var arrowType = this.opt.arrowType; var arrowPos = { top: offset.top, left: offset.left }; var body = this._body; var bodyPos = {}; arrow.removeClass(); arrow.addClass( 'arrow ' + arrowType.match(/^(left|top|right|bottom)/g)[0] ); if ( arrowType == Biojs.Tooltip.ARROW_LEFT_TOP ) { arrowPos.top += Math.floor(dim.height/2) - Math.floor(arrow.height()/2); arrowPos.left += arrow.width() + dim.width ; bodyPos.left = arrowPos.left + arrow.width() - 1; bodyPos.top = arrowPos.top + Math.floor(arrow.height()/2) - Math.floor(body.height()/4); } else if ( arrowType == Biojs.Tooltip.ARROW_LEFT_MIDDLE ) { arrowPos.top += Math.floor(dim.height/2) - Math.floor(arrow.height()/2); arrowPos.left += arrow.width() + dim.width ; bodyPos.left = arrowPos.left + arrow.width() - 1; bodyPos.top = arrowPos.top + Math.floor(arrow.height()/2) - Math.floor(body.height()/2); } else if ( arrowType == Biojs.Tooltip.ARROW_LEFT_BOTTOM ) { arrowPos.top += Math.floor(dim.height/2) - Math.floor(arrow.height()/2); arrowPos.left += arrow.width() + dim.width ; bodyPos.left = arrowPos.left + arrow.width() - 1; bodyPos.top = arrowPos.top + Math.floor(arrow.height()/2) - Math.floor(body.height()*(3/4)); } else if ( arrowType == Biojs.Tooltip.ARROW_TOP_LEFT ) { arrowPos.top += dim.height; arrowPos.left += Math.floor(dim.width/2) - Math.floor(arrow.width()/2); bodyPos.left = arrowPos.left + Math.floor(arrow.height()/2) - Math.floor(body.width()/4); bodyPos.top = arrowPos.top + arrow.height() -1; } else if ( arrowType == Biojs.Tooltip.ARROW_TOP_MIDDLE ) { arrowPos.top += dim.height; arrowPos.left += Math.floor(dim.width/2) - Math.floor(arrow.width()/2); bodyPos.left = arrowPos.left + Math.floor(arrow.height()/2) - Math.floor(body.width()/2); bodyPos.top = arrowPos.top + arrow.height() -1; } else if ( arrowType == Biojs.Tooltip.ARROW_TOP_RIGHT ) { arrowPos.top += dim.height; arrowPos.left += Math.floor(dim.width/2) - Math.floor(arrow.width()/2); bodyPos.left = arrowPos.left + Math.floor(arrow.height()/2) - Math.floor( body.width()*(3/4) ); bodyPos.top = arrowPos.top + arrow.height() -1; } else if ( arrowType == Biojs.Tooltip.ARROW_RIGHT_TOP ) { arrowPos.top += Math.floor(dim.height/2) - Math.floor(arrow.height()/2); arrowPos.left -= arrow.width(); bodyPos.left = arrowPos.left - body.outerWidth() +1; bodyPos.top = arrowPos.top + Math.floor(arrow.height()/2) - Math.floor(body.height()/4); } else if ( arrowType == Biojs.Tooltip.ARROW_RIGHT_MIDDLE ) { arrowPos.top += Math.floor(dim.height/2) - Math.floor(arrow.height()/2); arrowPos.left -= arrow.width(); bodyPos.left = arrowPos.left - body.outerWidth() +1; bodyPos.top = arrowPos.top + Math.floor(arrow.height()/2) - Math.floor(body.height()/2); } else if ( arrowType == Biojs.Tooltip.ARROW_RIGHT_BOTTOM ) { arrowPos.top += Math.floor(dim.height/2) - Math.floor(arrow.height()/2); arrowPos.left -= arrow.width(); bodyPos.left = arrowPos.left - body.outerWidth() +1; bodyPos.top = arrowPos.top + Math.floor(arrow.height()/2) - Math.floor(body.height()*(3/4)); } else if ( arrowType == Biojs.Tooltip.ARROW_BOTTOM_LEFT ) { arrowPos.top -= arrow.height(); arrowPos.left += Math.floor(dim.width/2) + Math.floor(arrow.width()/2); bodyPos.left = arrowPos.left + Math.floor(arrow.width()/2) - Math.floor(body.width()/4); bodyPos.top = arrowPos.top - body.outerHeight() +1; } else if ( arrowType == Biojs.Tooltip.ARROW_BOTTOM_MIDDLE ) { arrowPos.top -= arrow.height(); arrowPos.left += Math.floor(dim.width/2) - Math.floor(arrow.width()/2); bodyPos.left = arrowPos.left + Math.floor(arrow.width()/2) - Math.floor(body.width()/2); bodyPos.top = arrowPos.top - body.outerHeight() +1; } else if ( arrowType == Biojs.Tooltip.ARROW_BOTTOM_RIGHT ) { arrowPos.top -= arrow.height(); arrowPos.left += Math.floor(dim.width/2) - Math.floor(arrow.width()/2); bodyPos.left = arrowPos.left + Math.floor(arrow.width()/2) - Math.floor(body.width()*(3/4)); bodyPos.top = arrowPos.top - body.outerHeight() +1; } this._arrow.css( arrowPos ); this._body.css( bodyPos ); }, /** * Changes the Tooltip direction. The point of reference is the arrow's type. * Choose one of the following available types: * <ul> * <li>Biojs.Tooltip.ARROW_LEFT_TOP</li> * <li>Biojs.Tooltip.ARROW_LEFT_MIDDLE</li> * <li>Biojs.Tooltip.ARROW_LEFT_BOTTOM</li> * <li>Biojs.Tooltip.ARROW_TOP_LEFT</li> * <li>Biojs.Tooltip.ARROW_TOP_MIDDLE</li> * <li>Biojs.Tooltip.ARROW_TOP_RIGHT</li> * <li>Biojs.Tooltip.ARROW_RIGHT_TOP</li> * <li>Biojs.Tooltip.ARROW_RIGHT_MIDDLE</li> * <li>Biojs.Tooltip.ARROW_RIGHT_BOTTOM</li> * <li>Biojs.Tooltip.ARROW_BOTTOM_LEFT</li> * <li>Biojs.Tooltip.ARROW_BOTTOM_MIDDLE</li> * <li>Biojs.Tooltip.ARROW_BOTTOM_RIGHT</li> * <ul> * * @param {static} arrowType Static Biojs.Tooltip.ARROW_[TYPE] value. * * @example * simpleTip.setArrowType(Biojs.Tooltip.ARROW_BOTTOM_RIGHT); * */ setArrowType: function( arrowType ) { var newClass = arrowType.match(/^(left|top|right|bottom)/g)[0]; if ( newClass !== undefined ) { this.opt.arrowType = arrowType; } }, /** * Returns the actual arrow type. * @returns {static} Static Biojs.Tooltip.ARROW_[TYPE] value. * * @example * alert ( "First example is using " + simpleTip.getArrowType() + " arrow." ); * */ getArrowType: function( arrowType ) { return this.opt.arrowType; }, /** * Returns the actual id attribute value. * @returns {string} DOM element identifier of this component. * * @example * alert ( "Identifier of the second example is " + tipRendered.getIdentifier() + "." ); * */ getIdentifier: function( ) { return this._container.attr('id'); }, /** * Sets the id attribute value. * @param {string} DOM element identifier for this component. * * @example * tipRendered.setIdentifier("MyIdentifier"); * */ setIdentifier: function( value ) { return this._container.attr( 'id', value ); } },{ // Arrows height: 12px width: 7px; ARROW_LEFT_TOP: "left_top", ARROW_LEFT_MIDDLE: "left_middle", ARROW_LEFT_BOTTOM: "left_bottom", ARROW_TOP_LEFT: "top_left", ARROW_TOP_MIDDLE: "top_middle", ARROW_TOP_RIGHT: "top_right", ARROW_RIGHT_TOP: "right_top", ARROW_RIGHT_MIDDLE: "right_middle", ARROW_RIGHT_BOTTOM: "right_bottom", ARROW_BOTTOM_LEFT: "bottom_left", ARROW_BOTTOM_MIDDLE: "bottom_middle", ARROW_BOTTOM_RIGHT: "bottom_right", // Events EVT_ON_SHOW_UP: "onShowUp", MOUSE_POSITION: 1, ELEMENT_POSITION: 2 });
34.345794
167
0.597224
194d67c842a2e6e0667686ca918d52e6e3e049c0
506
js
JavaScript
client/src/App.js
RichDobrz/wowclassicbis
058a75fa67d203b77e5de546257be84cc3faee95
[ "MIT" ]
null
null
null
client/src/App.js
RichDobrz/wowclassicbis
058a75fa67d203b77e5de546257be84cc3faee95
[ "MIT" ]
null
null
null
client/src/App.js
RichDobrz/wowclassicbis
058a75fa67d203b77e5de546257be84cc3faee95
[ "MIT" ]
null
null
null
import React, { useState, useEffect } from 'react'; import './App.css'; import Header from "./components/Header/Header" import Selection from "./components/Selection/Selection" import GearDisplay from "./components/GearDisplay/GearDisplay" import { BrowserRouter, Route, Link } from "react-router-dom"; import MainSelector from "./components/MainSelector/MainSelector" const App = () => { return ( <div className="App"> <Header/> <MainSelector/> </div> ); } export default App;
26.631579
65
0.701581
194dab2c4ff62d20f1494aaa3052179849c36623
717
js
JavaScript
app/src/Modules/Notify.js
ciao-chung/cron-service
96685265bc6e45e6e60b678d279f35b2e5595b39
[ "MIT" ]
1
2018-11-26T14:16:38.000Z
2018-11-26T14:16:38.000Z
app/src/Modules/Notify.js
ciao-chung/cron-service
96685265bc6e45e6e60b678d279f35b2e5595b39
[ "MIT" ]
null
null
null
app/src/Modules/Notify.js
ciao-chung/cron-service
96685265bc6e45e6e60b678d279f35b2e5595b39
[ "MIT" ]
null
null
null
import LineNotify from 'Modules/NotifyDrivers/LineNotify.js' import EmailNotify from 'Modules/NotifyDrivers/EmailNotify.js' class Notify { constructor(config) { this.config = config this.init() } async init() { this.drivers = { line: LineNotify(this.config.notifyDrivers.line), email: EmailNotify(this.config.notifyDrivers.email), } } async send(jobConfig, result) { for(const driverName of jobConfig.notify) { const driver = this.drivers[driverName] if(!driver) { log(`Notify driver ${driverName} config not found`, 'red') return } await driver.send(jobConfig.name, result) } } } export default config => new Notify(config)
23.9
66
0.666667
194dbb39242ba4cfc9b8682aa1439abbfcbbbe85
8,942
js
JavaScript
scripts/28-hanziyuan.js
srghma/anki-cards-from-pdf
381c68500bfb8f57194d1d4b8f784b5a96789200
[ "MIT" ]
1
2021-05-05T06:54:55.000Z
2021-05-05T06:54:55.000Z
scripts/28-hanziyuan.js
srghma/anki-cards-from-pdf
381c68500bfb8f57194d1d4b8f784b5a96789200
[ "MIT" ]
4
2020-12-27T18:54:29.000Z
2021-11-08T18:01:24.000Z
scripts/28-hanziyuan.js
srghma/anki-cards-from-pdf
381c68500bfb8f57194d1d4b8f784b5a96789200
[ "MIT" ]
null
null
null
const readStreamArray = require('./scripts/lib/readStreamArray').readStreamArray const checkDuplicateKeys = require('./scripts/lib/checkDuplicateKeys').checkDuplicateKeys const isHanzi = require('./scripts/lib/isHanzi').isHanzi const mkQueue = require('./scripts/lib/mkQueue').mkQueue const mapWithForEachToArray = require('./scripts/lib/mapWithForEachToArray').mapWithForEachToArray const csv = require('csv-parser') const fs = require('fs') const R = require('ramda') const RA = require('ramda-adjunct') const jsdom = require("jsdom"); const { JSDOM } = jsdom; const dom = new JSDOM(``); const {Translate} = require('@google-cloud/translate').v2; const translate = new Translate({projectId: "annular-form-299211"}); input = await readStreamArray(fs.createReadStream('/home/srghma/Downloads/All Kanji.txt').pipe(csv({ separator: "\t", headers: [ "kanji", "freq" ] }))) input = input.filter(x => !x._88) unprocessed_kanji = input.map(x => x.kanji).join('') // ;(function(input){ // const header = Object.keys(input[0]).map(x => ({ id: x, title: x })) // const s = require('csv-writer').createObjectCsvStringifier({ header }).stringifyRecords(input) // fs.writeFileSync('/home/srghma/Downloads/Chinese Grammar Wiki2.txt', s) // })(input.map(x => ({ old: x.kanji, new: x.kanji.trim() }))); console.log("\nfullinput = JSON.parse('" + JSON.stringify(unprocessed_kanji) + "').split('')") // input_ = input.filter(x => x.length > 1).map(x => x.trim()) // https://stackoverflow.com/questions/11849562/how-to-save-the-output-of-a-console-logobject-to-a-file (function(console){ console.save = function(data, filename){ if(!data) { console.error('Console.save: No data') return; } if(!filename) filename = 'console.json' if(typeof data === "object"){ data = JSON.stringify(data, undefined, 4) } var blob = new Blob([data], {type: 'text/json'}), e = document.createEvent('MouseEvents'), a = document.createElement('a') a.download = filename a.href = window.URL.createObjectURL(blob) a.dataset.downloadurl = ['text/json', a.download, a.href].join(':') e.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null) a.dispatchEvent(e) } })(console) console.save(JSON.stringify(output, null, 2)) function splitEvery(n, list) { if (n <= 0) { throw new Error('First argument to splitEvery must be a positive integer'); } var result = []; var idx = 0; while (idx < list.length) { result.push(list.slice(idx, idx += n)); } return result; } input = splitEvery(1000, fullinput) output = {} stop_ = false // // breakpoint on // ().get("Bronze"); // // to find function d // req = d input.forEach(async currentInput => { for (let i = 0; i < currentInput.length; i++) { const kanji = currentInput[i].trim() if (stop_) { console.log({ m: "stopping", kanji, i }) break } if (output.hasOwnProperty(kanji)) { console.log({ m: "already processed", kanji, i, ret: output[kanji] }) continue } let res = null try { res = await req(kanji) } catch (e) { console.error({ kanji, i, e }) output[kanji] = null continue } console.log({ kanji, res, i, l: currentInput.length }) output[kanji] = res } }) ///////////////////// // mv /home/srghma/Downloads/console.json /home/srghma/projects/anki-cards-from-pdf/.hanziyan-output.json ( r = R.toPairs(require('/home/srghma/projects/anki-cards-from-pdf/.hanziyan-output.json')).map(x => ({ i: x[0], o: x[1] })), undefined ) r_ = RA.compact(R.map( ({ i, o }) => { if (o.includes('Found <strong>0</strong> etymologies')) { return null } o = o.replace(/<strong>[^<]+<\/strong>: Found <strong>[^<]+<\/strong> etymologies and <strong>[^<]+<\/strong> characters in <strong>[^<]+<\/strong> seconds./g, '') o = o.replace(/<span class="label label-success">E[^<]+<\/span>/g, '') o = o.replace(/\s+/g, ' ') o = o.replace(/data-\w+="[^"]+"/g, "") o = o.replace(/<button type="button" class="btn btn-default btn-xs"\s*><span class="glyphicon glyphicon-search" aria-hidden="true"><\/span>[^<]+<\/button>/g, "") const images = Array.from(o.matchAll(/#(\w+), #\w+ { background-image: url\('(data:image[^']+)'\) }/g)).map(x => ({ name: x[1], data: x[2] })) return { i, o, images } }, r.filter(x => x.o) )) images = r_.map(x => x.images).flat() images = R.groupBy(R.prop('name'), images) images = R.map(R.map(R.prop('data')), images) images = R.map(R.uniq, images) images = R.map((x) => { if (x.length !== 1) { throw new Error('asdf') } return x[0] }, images) function svg2img_promised(svgString) { return new Promise(function(resolve, reject) { svg2img(svgString, function(error, buffer) { if (error) { reject(error) } resolve(buffer) }) }) } // cd /home/srghma/Downloads/output-images/ // for f in *; do "cp" --force "$f" "/home/srghma/.local/share/Anki2/User 1/collection.media/hanziyan-$f"; done output_dir_path = '/home/srghma/Downloads/output-images' await mkdirp(output_dir_path) promises = R.toPairs(images).map(([ name, data ]) => async jobIndex => { try { const buffer = await svg2img_promised(data) const path = `${output_dir_path}/${name}.png` await require('fs').promises.writeFile(path, buffer) console.log('Saved to ', path) } catch (e) { console.log({ name, data, e }) } }) await mkQueue(30).addAll(promises) invalid = r_.map(x => ({ i: x.i, o: x.o })).filter(x => x.o >= 131072) if (invalid.length > 0) { throw new Error('asdf') } r_.find(x => x.i == '嗀') r__.find(x => x.i == '嗀') r__ = r_.map(x => { let hanziyan = x.o // if (!hanziyan) { return null } hanziyan = hanziyan.replace(/#\w+, #\w+ { background-image: url\('data:image[^']+'\) }/g, '') function escapeRegExp(string) { return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string } const array = [ '甲骨文', '甲骨文', '没有已知的甲骨文', '金文', '没有已知的金文', '说文解字的篆字', '没有已知的说文解字的篆字', '六书通的字', '没有已知的六书通的字', '有已知的', '应用规则', '异体规则说明', '异体规则', '简化规则说明', 'Oracle characters (0)', 'Bronze characters (0)', 'Seal characters (0)', 'Liushutong characters (0)', 'There is no known oracle characters found. 没.', 'There is no known bronze characters found. 没.', 'There is no known seal characters found. 没.', 'There is no known Liushutong characters found. 没.', 'There is no known Liushutong characters found. 没.', 'aria-hidden="true"', 'glyphicon-edit', 'glyphicon-modal-window', 'glyphicon-book', 'glyphicon-list-alt', 'glyphicon-share-alt', 'glyphicon ', 'Not applicable.', '留言', '报错', '异体规则说明', '简化规则', '异体规则', '应用规则', '简化规则说明', '新字形规则', 'Report issue /', 'Help: Simplification of Chinese character', 'https://dixin.github.io/Etymology/simplification-of-chinese-character', 'https://github.com/Dixin/Etymology/issues/new', 'btn btn-warning btn-xs ladda-button', '[?]', `<a target="_blank"></a>`, `<p class="pre-inline"><b>Simplification rule explained </p>`, `<p class="pre-inline"><br></p>`, `<span class="glyphicon-ok"></span>`, ] array.forEach(x => { hanziyan = hanziyan.replace(new RegExp(escapeRegExp(x), 'g'), '') }) hanziyan = hanziyan.replace(/>\s+</g, '><') hanziyan = hanziyan.replace(/>\s+</g, '><') hanziyan = hanziyan.replace(/" >/g, '">') hanziyan = hanziyan.replace(/\s+\/>/g, '/>') hanziyan = hanziyan.replace(/\s+>/g, '>') hanziyan = hanziyan.replace(/<style type="text\/css">\s*<\/style>/g, '') hanziyan = hanziyan.replace(/href="[^"]*"/g, '') hanziyan = hanziyan.replace(/title="[^"]*"/g, '') hanziyan = hanziyan.replace(/class="[^"]*"/g, '') hanziyan = hanziyan.replace(/role="[^"]*"/g, '') hanziyan = hanziyan.replace(/\s+/g, ' ') array.forEach(x => { hanziyan = hanziyan.replace(new RegExp(escapeRegExp(x), 'g'), '') }) hanziyan = hanziyan.replace(/<div id="etymology(\w+)">\w+<\/div>/g, '<img src="hanziyan-$1.png"/>') hanziyan = hanziyan.trim() hanziyan = hanziyan.replace(/id="[^"]+"/g, '') hanziyan = hanziyan.replace(/>\s+</g, '><') hanziyan = hanziyan.replace(/>\s+</g, '><') hanziyan = hanziyan.replace(/" >/g, '">') hanziyan = hanziyan.replace(/\s+\/>/g, '/>') hanziyan = hanziyan.replace(/\s+>/g, '>') hanziyan = hanziyan.replace(/<(\w+)><\/\1>/g, '') hanziyan = hanziyan.replace(/<(\w+)><\/\1>/g, '') hanziyan = hanziyan.replace(/<a target="_blank"><\/a>/g, '') return { kanji: x.i, hanziyan } }).filter(R.identity) ;(function(input){ const header = Object.keys(input[0]).map(x => ({ id: x, title: x })) const s = require('csv-writer').createObjectCsvStringifier({ header }).stringifyRecords(input) fs.writeFileSync('/home/srghma/Downloads/Chinese Grammar Wiki2.txt', s) })(r__);
33.490637
167
0.60926
194e8bf7ce0aff4548f5a5148264125ae698a79c
2,072
js
JavaScript
backend/api/workers/worker-abstract.js
arpad1337/zendeck
fdef6337ac93d9f1bd21b45bb97a0096bd7c7106
[ "PostgreSQL" ]
null
null
null
backend/api/workers/worker-abstract.js
arpad1337/zendeck
fdef6337ac93d9f1bd21b45bb97a0096bd7c7106
[ "PostgreSQL" ]
null
null
null
backend/api/workers/worker-abstract.js
arpad1337/zendeck
fdef6337ac93d9f1bd21b45bb97a0096bd7c7106
[ "PostgreSQL" ]
null
null
null
/* * @rpi1337 */ const WORKER_COMMANDS = require('../config/worker-commands'); class WorkerAbstract { static get WORKER_COMMANDS() { return WORKER_COMMANDS; } constructor( workerId, queueProvider, params ) { this.workerId; this.queueProvider = queueProvider; this.requestQueue = this.queueProvider.createQueueWithId( [ workerId, 'REQUEST' ].join(':') ); this.responseQueue = this.queueProvider.createQueueWithId( [ workerId, 'RESPONSE' ].join(':') ); this.params = params; this._isTerminated = false; this.onFinished = this.onFinished.bind( this ); this.onError = this.onError.bind( this ); } listen() { this.requestQueue.on( 'message', this.onMessage.bind( this ) ); this.requestQueue.listen(); this.sendMessage( WORKER_COMMANDS.LAUNCHED ); } onMessage( message ) { console.log('WorkerAbstract->onMessage got message:', message); switch( message.type ) { case WORKER_COMMANDS.START: { try { this.process(); } catch( e ) { this.onError( e ); } break; } case WORKER_COMMANDS.TERMINATE: { this.terminate(); break; } } } process() { throw new Error('WorkerAbstract->process must override'); } sendComplete( payload ) { this.onFinished( payload ); } onFinished( payload ) { this.responseQueue.sendMessage( WORKER_COMMANDS.FINISHED, payload ); } onError( e ) { this.sendMessage( WORKER_COMMANDS.ERROR, { error: { message: e.message, stack: e.stack ? e.stack: null } }); this._exit(1); } sendMessage( type, payload ) { console.log('WorkerAbstract->sendMessage', type, payload); this.responseQueue.sendMessage( type, payload ); } terminate() { this._isTerminated = true; this._exit(); } _exit( code ) { code = isNaN( code ) ? 0 : code; process.exit( code ); } static launchWorker( workerId, queueProvider ) { throw new Error('WorkerAbstract::launchWorker must override'); /* const worker = new WorkerAbstract( workerId, queueProvider ); worker.listen(); return worker; */ } } module.exports = WorkerAbstract;
21.583333
98
0.667954
194eed18d9453b1d461d127bc6fb753e82b44eaf
1,761
js
JavaScript
test1.js
Paragibibo/puppetRecordNew
24772e516695301e0ff665db63bdd4b5fabb0296
[ "Apache-2.0" ]
null
null
null
test1.js
Paragibibo/puppetRecordNew
24772e516695301e0ff665db63bdd4b5fabb0296
[ "Apache-2.0" ]
5
2020-09-05T02:05:26.000Z
2021-05-09T08:23:33.000Z
test1.js
Paragibibo/puppetRecordNew
24772e516695301e0ff665db63bdd4b5fabb0296
[ "Apache-2.0" ]
null
null
null
const puppeteer = require('puppeteer'); const sleep = require('sleep'); (async () => { const browser = await puppeteer.launch() const page = await browser.newPage() await page.goto('https://www.goibibo.com/hotels/') await sleep.sleep(5); await page.setViewport({ width: 1301, height: 623 }) await page.waitForSelector('#content #Home') await page.click('#content #Home') await page.waitForSelector('.blueBg #gosuggest_inputL') await page.click('.blueBg #gosuggest_inputL') console.log('reached'); await page.waitForSelector('#react-autosuggest-1 > #react-autosuggest-1-suggestion--3 > div > .dib > .mainTxt') await page.click('#react-autosuggest-1 > #react-autosuggest-1-suggestion--3 > div > .dib > .mainTxt') console.log('reached1'); await page.waitForSelector('.shCalenderBox > .col-md-6:nth-child(1) > div > .col-md-12 > .form-control') await page.click('.shCalenderBox > .col-md-6:nth-child(1) > div > .col-md-12 > .form-control') await page.waitForSelector('.DayPicker > .DayPicker-Month > .DayPicker-Body > .DayPicker-Week:nth-child(4) > .DayPicker-Day:nth-child(5)') await page.click('.DayPicker > .DayPicker-Month > .DayPicker-Body > .DayPicker-Week:nth-child(4) > .DayPicker-Day:nth-child(5)') await page.waitForSelector('.DayPicker > .DayPicker-Month > .DayPicker-Body > .DayPicker-Week:nth-child(5) > .DayPicker-Day:nth-child(6)') await page.click('.DayPicker > .DayPicker-Month > .DayPicker-Body > .DayPicker-Week:nth-child(5) > .DayPicker-Day:nth-child(6)') await page.waitForSelector('.col-md-12 > .width100 > div > .col-md-3 > .width100') await page.click('.col-md-12 > .width100 > div > .col-md-3 > .width100') await page.screenshot({path: 'budds.png'}); await browser.close() })()
51.794118
140
0.691085
194f509f29b5d5091a63ae344b36d01d685c89ef
3,476
js
JavaScript
public/external/pydio/plugins/gui.ajax/res/js/lib/prototype/cssfx.js
WooDzu/PhalconEye
71294f6a8400ce128cd1507027818db675efc326
[ "BSD-3-Clause" ]
119
2015-01-04T00:02:21.000Z
2016-10-14T11:15:26.000Z
public/external/pydio/plugins/gui.ajax/res/js/lib/prototype/cssfx.js
WooDzu/PhalconEye
71294f6a8400ce128cd1507027818db675efc326
[ "BSD-3-Clause" ]
38
2016-10-24T13:09:28.000Z
2019-09-03T13:45:10.000Z
public/external/pydio/plugins/gui.ajax/res/js/lib/prototype/cssfx.js
WooDzu/PhalconEye
71294f6a8400ce128cd1507027818db675efc326
[ "BSD-3-Clause" ]
64
2015-01-06T11:22:51.000Z
2016-10-21T10:22:51.000Z
/* * Copyright 2007-2013 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Pydio is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Pydio. If not, see <http://www.gnu.org/licenses/>. * * The latest code can be found at <http://pyd.io/>. */ Effect.CSS_SUPPORTED = Modernizr.csstransitions && Modernizr.cssanimations; Effect.CSS_ANIMATE = function(effectName, element, options){ var className; var originalMethod; var endStyle = {}; if(!options) options = {}; switch (effectName){ case "RowFade": className = 'quick bounceOutLeft'; originalMethod = 'Fade'; break; case "RowAppear": className = 'quick fadeInLeft'; originalMethod = 'Appear'; break; case "MessageAppear": className = 'fadeInUpBig'; endStyle = {opacity: 1}; originalMethod ='Appear'; element.setOpacity(0); element.show(); break; case "MessageFade": className = 'long fadeOutDownBig'; endStyle = {opacity: 0}; originalMethod ='Appear'; if(!options.afterFinish){ options.afterFinish = function(){ element.hide(); }; } break; case "MenuAppear": className = 'super-quick fadeIn'; endStyle = {opacity: 1}; originalMethod ='Appear'; break; } if(Effect.CSS_SUPPORTED){ ["webkitAnimationEnd", "mozAnimationEnd", "oAnimationEnd", "animationEnd", "transitionend", "animationend", "oanimationend", "mozanimationend"].map( function(event){ element.observeOnce(event, function(){ ('animated ' + className).split(" ").map(function(cName){ element.removeClassName(cName); }); if(endStyle) element.setStyle(endStyle); if(options && options.afterFinish) options.afterFinish(); }); } ); element.addClassName('animated ' + className); }else{ new Effect[originalMethod](element, options); } }; /** * Migrating original Scriptaculous effects to CSS3-based effects when possible * @param element * @param options Same options * @constructor */ Effect.RowFade = function(element, options){ Effect.CSS_ANIMATE("RowFade", element, options);}; Effect.RowAppear = function(element, options){ Effect.CSS_ANIMATE("RowAppear", element, options); }; Effect.MessageFade = function(element, options){ Effect.CSS_ANIMATE("MessageFade", element, options);}; Effect.MessageAppear = function(element, options){ Effect.CSS_ANIMATE("MessageAppear", element, options); }; Effect.MenuAppear = function(element, options){ Effect.CSS_ANIMATE("MenuAppear", element, options); };
34.76
156
0.613924
1950cd36e711cf6dd6d5fd8abc023999df98fa71
693
js
JavaScript
examples/properties_json_schema_validation.js
FernandoKGA/JAJV-E
50891dfb37b64c0b3f5b0093c32bac6d58e244f7
[ "MIT" ]
null
null
null
examples/properties_json_schema_validation.js
FernandoKGA/JAJV-E
50891dfb37b64c0b3f5b0093c32bac6d58e244f7
[ "MIT" ]
null
null
null
examples/properties_json_schema_validation.js
FernandoKGA/JAJV-E
50891dfb37b64c0b3f5b0093c32bac6d58e244f7
[ "MIT" ]
null
null
null
const Ajv = require('ajv'); const properties_json_schema = require('../schemas/properties_json_schema.json'); //Create ajv validator var ajv = new Ajv({allErrors: true, jsonPointers: true}); //Add your desired meta schema ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json')); //Add ajv errors to custom error messages require('ajv-errors')(ajv); // Get the schema you want to verify var validate = ajv.compile(properties_json_schema); let json = { user: {} }; var valid = validate(json); //false if(!valid) console.log(validate.errors[0].message); //Output: Username must be a string. /** * Checks if the user property, if present, it's type is a string. */
27.72
81
0.712843
195320e4a2ebedb044f2cf5aa8c067f9f4abfc8e
2,999
js
JavaScript
wordpress/wp-content/plugins/maxbuttons/js/min/maxtabs.js
AdelineDumont/vccw
9d90f75d9d70f4450f97c3285e89696c858af6e0
[ "MIT" ]
6
2018-07-28T23:39:02.000Z
2022-03-05T14:12:08.000Z
wordpress/wp-content/plugins/maxbuttons/js/min/maxtabs.js
AdelineDumont/vccw
9d90f75d9d70f4450f97c3285e89696c858af6e0
[ "MIT" ]
null
null
null
wordpress/wp-content/plugins/maxbuttons/js/min/maxtabs.js
AdelineDumont/vccw
9d90f75d9d70f4450f97c3285e89696c858af6e0
[ "MIT" ]
3
2018-07-28T11:49:46.000Z
2021-02-15T01:35:15.000Z
function maxTabs(){}maxTabs.prototype.init=function(){this.tabs(),this.previewTab()},maxTabs.prototype.tabs=function(){var a=".mb_tab";if(0!==$(a).length){var t=$("#maxbuttons").data("view");if(void 0===t&&(t="list"),"list"!=t){$("#maxbuttons").addClass("mb_tabs_active"),0===$(".sub-tabs").length?($tabslocation=$('<h2 class="nav-tab-wrapper sub-tabs"></h2>'),$tabslocation.insertBefore($(a).first()),$tabslocation=$(".sub-tabs")):$tabslocation=$(".sub-tabs"),$(a).hide(),$.each($(a),function(){var a=$(this).children("div.title").first(),t=a.clone(),e=t.children("span:first").clone().wrap("<p>").parent().html(),i=t.children("span.title").text();$(t).children("span").remove(),$(t).children("input,button").remove(),a.children("span:first").remove(),a.children(".title").remove(),tab_title=void 0!==e?e+i:i;var s=$('<a class="nav-tab" href="javascript:void(0);">'+tab_title+"</a>");i=(i=i.trim()).replace(/ /g,"-"),$(s).attr("data-tab",i.toLowerCase()),$(".sub-tabs").append(s),$(this).attr("data-tab",i.toLowerCase())});var e=$('input[name="tab"]').val();void 0===e&&(e=""),""==e?($tabslocation.children(".nav-tab").first().addClass("nav-tab-active"),$(a).first().show()):($tabslocation.children('[data-tab="'+e+'"]').addClass("nav-tab-active"),$(a+'[data-tab="'+e+'"]').show()),$tabslocation.children("a").on("click",this.toggleTabs),this.addSaveTab($tabslocation)}}},maxTabs.prototype.addSaveTab=function(a){a.append('<div class="save-indicator dashicons dashicons-warning"></div>')},maxTabs.prototype.toggleTabs=function(a){a.preventDefault();$(".sub-tabs").children("a").removeClass("nav-tab-active"),$(this).addClass("nav-tab-active"),$(".mb_tab").hide();var t=$(this).data("tab");$('.mb_tab[data-tab="'+t+'"]').show(),$('input[name="tab"]').val(t),$(document).trigger("maxTabChange",[t])},maxTabs.prototype.previewTab=function(){$(".mb-preview-window").is(":visible");var a='.sub-tabs a[data-tab="preview"]';this.togglePreview(),$(a).off("click"),$(document).on("click",a,$.proxy(function(a){a.preventDefault(),a.stopPropagation();return $(".mb-preview-window").is(":visible")?this.togglePreview(!1):this.togglePreview(!0),$(document).trigger("updatePreviewWindow"),!1},this)),$(".mb-preview-window .close").on("click",{tab:a},function(a){$(a.data.tab).trigger("click")})},maxTabs.prototype.togglePreview=function(a){var t='.sub-tabs a[data-tab="preview"]';if(void 0===a)if(localStorage.getItem("mb-col-preview")){var e=localStorage.getItem("mb-col-preview");"string"==typeof e&&(e="true"==e),"boolean"==typeof e&&this.togglePreview(e)}else this.togglePreview(!0);else a?($(".mb-preview-window").show(),$(t).addClass(" preview-on"),$(t+" .dashicons").addClass("dashicons-yes").removeClass("dashicons-no"),$(t).removeClass("preview-off"),localStorage.setItem("mb-col-preview",!0)):($(".mb-preview-window").hide(),$(t).removeClass("preview-on"),$(t+" .dashicons").removeClass("dashicons-yes").addClass("dashicons-no"),$(t).addClass("preview-off"),localStorage.setItem("mb-col-preview",!1))};
2,999
2,999
0.668223
1954f0435a57cedc34e88768bccd30650df09e05
799,857
js
JavaScript
lib/gibber.lib.min.js
automata/workshop-encun
23a576d92afa2b0bfb185602809565afff9d1b7f
[ "MIT" ]
1
2015-10-14T22:59:14.000Z
2015-10-14T22:59:14.000Z
lib/gibber.lib.min.js
automata/workshop-encun
23a576d92afa2b0bfb185602809565afff9d1b7f
[ "MIT" ]
null
null
null
lib/gibber.lib.min.js
automata/workshop-encun
23a576d92afa2b0bfb185602809565afff9d1b7f
[ "MIT" ]
null
null
null
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.Gibber=e()}}(function(){var define,module,exports;return function e(t,i,n){function r(a,s){if(!i[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);throw new Error("Cannot find module '"+a+"'")}var h=i[a]={exports:{}};t[a][0].call(h.exports,function(e){var i=t[a][1][e];return r(i?i:e)},h,h.exports,e,t,i,n)}return i[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(_dereq_,module,exports){!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.Gibberish=t()}(this,function(){function createInput(){console.log("connecting audio input..."),navigator.getUserMedia({audio:!0},function(e){console.log("audio input connected"),Gibberish.mediaStreamSource=Gibberish.context.createMediaStreamSource(e),Gibberish.mediaStreamSource.connect(Gibberish.node),_hasInput=!0},function(){console.log("error opening audio input")})}var Gibberish={memo:{},codeblock:[],analysisCodeblock:[],analysisUgens:[],dirtied:[],id:0,isDirty:!1,out:null,debug:!1,callback:"",audioFiles:{},sequencers:[],callbackArgs:["input"],callbackObjects:[],analysisCallbackArgs:[],analysisCallbackObjects:[],createCallback:function(){this.memo={},this.codeblock.length=0,this.callbackArgs.length=0,this.callbackObjects.length=0,this.analysisCallbackArgs.length=0,this.dirtied.length=0,this.codestring="",this.args=["input"],this.memo={},this.out.codegen();var e=this.codeblock.slice(0);if(this.analysisUgens.length>0){this.analysisCodeblock.length=0;for(var t=0;t<this.analysisUgens.length;t++)this.analysisCallbackArgs.push(this.analysisUgens[t].analysisSymbol)}if(this.args=this.args.concat(this.callbackArgs),this.args=this.args.concat(this.analysisCallbackArgs),this.codestring+=e.join(" "),this.codestring+="\n ",this.analysisUgens.length>0){this.analysisCodeblock.length=0;for(var t=0;t<this.analysisUgens.length;t++)this.codeblock.length=0,this.analysisUgens[t].analysisCodegen();this.codestring+=this.analysisCodeblock.join("\n "),this.codestring+="\n "}return this.codestring+="return "+this.out.variable+";\n",this.callbackString=this.codestring,this.debug&&console.log(this.callbackString),[this.args,this.codestring]},audioProcess:function(e){var t,i,n=e.outputBuffer.getChannelData(0),r=e.outputBuffer.getChannelData(1),o=e.inputBuffer.getChannelData(0),a=Gibberish,s=a.callback,l=a.sequencers,h=(Gibberish.out.callback,a.callbackObjects.slice(0));h.unshift(0);for(var c=0,u=e.outputBuffer.length;u>c;c++){for(var p=0;p<l.length;p++)l[p].tick();if(a.isDirty){t=a.createCallback();try{s=a.callback=new Function(t[0],t[1])}catch(e){console.error("ERROR WITH CALLBACK : \n\n",t)}a.isDirty=!1,h=a.callbackObjects.slice(0),h.unshift(0)}h[0]=o[c],i=s.apply(null,h),n[c]=i[0],r[c]=i[1]}},audioProcessFirefox:function(e){var t,i=Gibberish,n=i.callback,r=i.sequencers,o=i.callbackObjects.slice(0);o.unshift(0);for(var a=0,s=e.length;s>a;a+=2){for(var l=0;l<r.length;l++)r[l].tick();if(i.isDirty){t=i.createCallback();try{n=i.callback=new Function(t[0],t[1])}catch(h){console.error("ERROR WITH CALLBACK : \n\n",n)}i.isDirty=!1,o=i.callbackObjects.slice(0),o.unshift(0)}var c=n.apply(null,o);e[a]=c[0],e[a+1]=c[1]}},clear:function(){this.out.inputs.length=0,this.analysisUgens.length=0,this.sequencers.length=0,this.callbackArgs.length=2,this.callbackObjects.length=1,Gibberish.dirty(this.out)},dirty:function(e){if("undefined"!=typeof e){for(var t=!1,i=0;i<this.dirtied.length;i++)this.dirtied[i].variable===e.variable&&(t=!0);t||(this.isDirty=!0,this.dirtied.push(e))}else this.isDirty=!0},generateSymbol:function(e){return e+"_"+this.id++},AudioDataDestination:function(e,t){var i=new Audio;i.mozSetup(2,e);var n,r=0,o=e/2,a=null;setInterval(function(){var e;if(a){if(e=i.mozWriteAudio(a.subarray(n)),r+=e,n+=e,n<a.length)return;a=null}var s=i.mozCurrentSampleOffset(),l=s+o-r;if(l>0){var h=new Float32Array(l);t(h),e=i.mozWriteAudio(h),s=i.mozCurrentSampleOffset(),e<h.length&&(a=h,n=e),r+=e}},100)},init:function(){var e,t,i="undefined"==typeof arguments[0]?1024:arguments[0];return"undefined"!=typeof webkitAudioContext?e=webkitAudioContext:"undefined"!=typeof AudioContext&&(e=AudioContext),t=function(){if("undefined"!=typeof e){if(document&&document.documentElement&&"ontouchstart"in document.documentElement&&(window.removeEventListener("touchstart",t),"ontouchstart"in document.documentElement)){var i=Gibberish.context.createBufferSource();i.connect(Gibberish.context.destination),i.noteOn(0)}}else alert("Your browser does not support javascript audio synthesis. Please download a modern web browser that is not Internet Explorer.");Gibberish.onstart&&Gibberish.onstart()},Gibberish.context=new e,Gibberish.node=Gibberish.context.createScriptProcessor(i,2,2,Gibberish.context.sampleRate),Gibberish.node.onaudioprocess=Gibberish.audioProcess,Gibberish.node.connect(Gibberish.context.destination),Gibberish.out=new Gibberish.Bus2,Gibberish.out.codegen(),Gibberish.dirty(Gibberish.out),document&&document.documentElement&&"ontouchstart"in document.documentElement?window.addEventListener("touchstart",t):t(),this},makePanner:function(){for(var e=[],t=[],i=Math.sqrt(2)/2,n=0;1024>n;n++){var r=-1+n/1024*2;e[n]=i*(Math.cos(r)-Math.sin(r)),t[n]=i*(Math.cos(r)+Math.sin(r))}return function(i,n,r){var o,a,s,l,h,c,u="object"==typeof i,p=u?i[0]:i,f=u?i[1]:i;return o=1023*(n+1)/2,a=0|o,s=o-a,a=1023&a,l=1023===a?0:a+1,h=e[a],c=e[l],r[0]=(h+s*(c-h))*p,h=t[a],c=t[l],r[1]=(h+s*(c-h))*f,r}},defineUgenProperty:function(e,t,i){var n=i.properties[e]={value:t,binops:[],parent:i,name:e};Object.defineProperty(i,e,{configurable:!0,get:function(){return n.value},set:function(e){n.value=e,Gibberish.dirty(i)}})},polyInit:function(e){e.mod=e.polyMod,e.removeMod=e.removePolyMod,e.voicesClear=function(){if(e.children.length>0){for(var t=0;t<e.children.length;t++)e.children[t].disconnect();e.children.length=0,e.voiceCount=0}};for(var t in e.polyProperties)!function(t){var i=e.polyProperties[t];Object.defineProperty(e,t,{configurable:!0,get:function(){return i},set:function(n){i=n;for(var r=0;r<e.children.length;r++)e.children[r][t]=i}})}(t);var i=e.maxVoices;Object.defineProperty(e,"maxVoices",{get:function(){return i},set:function(e){i=e,this.voicesClear(),this.initVoices()}})},interpolate:function(e,t){var i=0|t,n=i+1>e.length-1?0:i+1;return frac=t-i,e[i]+frac*(e[n]-e[i])},pushUnique:function(e,t){for(var i=e,n=!0,r=0;r<t.length;r++)if(i===t[r]){n=!1;break}n&&t.push(i)},"export":function(e,t){for(var i in Gibberish[e])t[i]=Gibberish[e][i]},ugen:function(){Gibberish.extend(this,{processProperties:function(){if("object"!=typeof arguments[0][0]||"undefined"!=typeof arguments[0][0].type||Array.isArray(arguments[0][0])||"op"===arguments[0][0].name){var e=0;for(var t in this.properties)"object"==typeof this.properties[t]&&"undefined"!=typeof this.properties[t].binops?"undefined"!=typeof arguments[0][e]&&(this.properties[t].value=arguments[0][e++]):"undefined"!=typeof arguments[0][e]&&(this.properties[t]=arguments[0][e++])}else{var i=arguments[0][0];for(var t in i)"undefined"!=typeof i[t]&&("object"==typeof this.properties[t]&&"undefined"!=typeof this.properties[t].binops?this.properties[t].value=i[t]:this[t]=i[t])}return this},valueOf:function(){return this.codegen(),this.variable},codegen:function(){var e="",t=null;if(Gibberish.memo[this.symbol])return Gibberish.memo[this.symbol];t=this.variable?this.variable:Gibberish.generateSymbol("v"),Gibberish.memo[this.symbol]=t,this.variable=t,e+="var "+t+" = "+this.symbol+"(";for(var i in this.properties){var n=this.properties[i],r="";if(Array.isArray(n.value)){0===n.value.length&&(r=0);for(var o=0;o<n.value.length;o++){var a=n.value[o];r+="object"==typeof a?null!==a?a.valueOf():"null":"function"==typeof n.value?n.value():n.value,r+=o<n.value.length-1?", ":""}}else"object"==typeof n.value?null!==n.value&&(r=n.value.codegen?n.value.valueOf():n.value):"undefined"!==n.name&&(r="function"==typeof n.value?n.value():n.value);if(0!=n.binops.length){for(var s=0;s<n.binops.length;s++)e+="(";for(var l=0;l<n.binops.length;l++){var h,c=n.binops[l];h="number"==typeof c.ugen?c.ugen:null!==c.ugen?c.ugen.valueOf():"null","="===c.binop?(e=e.replace(r,""),e+=h):"++"===c.binop?e+=" + Math.abs("+h+")":(0===l&&(e+=r),e+=" "+c.binop+" "+h+")")}}else e+=r;e+=", "}return" "===e.charAt(e.length-1)&&(e=e.slice(0,-2)),e+=");\n",this.codeblock=e,-1===Gibberish.codeblock.indexOf(this.codeblock)&&Gibberish.codeblock.push(this.codeblock),-1===Gibberish.callbackArgs.indexOf(this.symbol)&&"op"!==this.name&&Gibberish.callbackArgs.push(this.symbol),-1===Gibberish.callbackObjects.indexOf(this.callback)&&"op"!==this.name&&Gibberish.callbackObjects.push(this.callback),this.dirty=!1,t},init:function(){if(this.initalized||(this.symbol=Gibberish.generateSymbol(this.name),this.codeblock=null,this.variable=null),"undefined"==typeof this.properties&&(this.properties={}),!this.initialized){this.destinations=[];for(var e in this.properties)Gibberish.defineUgenProperty(e,this.properties[e],this)}if(arguments.length>0&&"object"==typeof arguments[0][0]&&"undefined"===arguments[0][0].type){var t=arguments[0][0];for(var e in t)this[e]=t[e]}return this.initialized=!0,this},mod:function(e,t,i){var n=this.properties[e],r={ugen:t,binop:i};n.binops.push(r),Gibberish.dirty(this)},removeMod:function(e,t){if("undefined"==typeof t)this.properties[e].binops.length=0;else if("number"==typeof t)this.properties[e].binops.splice(t,1);else if("object"==typeof t)for(var i=0,n=this.properties[e].binops.length;n>i;i++)this.properties[e].binops[i].ugen===t&&this.properties[e].binops.splice(i,1);Gibberish.dirty(this)},polyMod:function(e,t,i){for(var n=0;n<this.children.length;n++)this.children[n].mod(e,t,i);Gibberish.dirty(this)},removePolyMod:function(){var e=Array.prototype.slice.call(arguments,0);if("amp"!==arguments[0]&&"pan"!==arguments[0])for(var t=0;t<this.children.length;t++)this.children[t].removeMod.apply(this.children[t],e);else this.removeMod.apply(this,e);Gibberish.dirty(this)},smooth:function(e){var t=new Gibberish.OnePole;this.mod(e,t,"=")},connect:function(e,t){return"undefined"==typeof e&&(e=Gibberish.out),-1===this.destinations.indexOf(e)&&(e.addConnection(this,1,t),this.destinations.push(e)),this},send:function(e,t){return-1===this.destinations.indexOf(e)?(e.addConnection(this,t),this.destinations.push(e)):e.adjustSendAmount(this,t),this},disconnect:function(e){var t;if(e)t=this.destinations.indexOf(e),t>-1&&this.destinations.splice(t,1),e.removeConnection(this);else{for(var i=0;i<this.destinations.length;i++)this.destinations[i].removeConnection(this);this.destinations=[]}return Gibberish.dirty(this),this}})}};Array2=function(){this.length=0},Array2.prototype=[],Array2.prototype.remove=function(e,t){if(t="undefined"==typeof t?!0:t,"undefined"==typeof e){for(var i=0;i<this.length;i++)delete this[i];this.length=0}else if("number"==typeof e)this.splice(e,1);else if("string"==typeof e){for(var n=[],i=0;i<this.length;i++){var r=this[i];if(r.type===e||r.name===e){if(!t)return void this.splice(i,1);n.push(i)}}for(var i=0;i<n.length;i++)this.splice(n[i],1)}else if("object"==typeof e)for(var o=this.indexOf(e);o>-1;)this.splice(o,1),o=this.indexOf(e);this.parent&&Gibberish.dirty(this.parent)},Array2.prototype.get=function(e){if("number"==typeof e)return this[e];if("string"==typeof e)for(var t=0;t<this.length;t++){var i=this[t];if(i.name===e)return i}else if("object"==typeof e){var n=this.indexOf(e);if(n>-1)return this[n]}return null},Array2.prototype.replace=function(e,t){if(t.parent=this,t.input=e.input,"number"!=typeof e){var i=this.indexOf(e);i>-1&&this.splice(i,1,t)}else this.splice(e,1,t);this.parent&&Gibberish.dirty(this.parent)},Array2.prototype.insert=function(e,t){if(e.parent=this,this.input=this.parent,Array.isArray(e))for(var i=0;i<e.length;i++)this.splice(t+i,0,e[i]);else this.splice(t,0,e);this.parent&&Gibberish.dirty(this.parent)},Array2.prototype.add=function(){for(var e=0;e<arguments.length;e++)arguments[e].parent=this,arguments[e].input=this.parent,this.push(arguments[e]);this.parent&&(console.log("DIRTYING"),Gibberish.dirty(this.parent))};var rnd=Math.random;Gibberish.rndf=function(e,t,i,n){if(n="undefined"==typeof n?!0:n,"undefined"==typeof i&&"object"!=typeof e){1==arguments.length?(t=arguments[0],e=0):2==arguments.length?(e=arguments[0],t=arguments[1]):(e=0,t=1);var r=t-e,o=Math.random(),a=r*o;return e+a}var s=[],l=[];"undefined"==typeof i&&(i=t||e.length);for(var h=0;i>h;h++){var c;if("object"==typeof arguments[0])c=arguments[0][rndi(0,arguments[0].length-1)];else if(n)c=Gibberish.rndf(e,t);else{for(c=Gibberish.rndf(e,t);l.indexOf(c)>-1;)c=Gibberish.rndf(e,t);l.push(c)}s.push(c)}return s},Gibberish.Rndf=function(){var e,t,i,n;return Math.random,0===arguments.length?(e=0,t=1):1===arguments.length?(t=arguments[0],e=0):2===arguments.length?(e=arguments[0],t=arguments[1]):3===arguments.length?(e=arguments[0],t=arguments[1],i=arguments[2]):(e=arguments[0],t=arguments[1],i=arguments[2],n=arguments[3]),function(){var r,o,a;return o="function"==typeof e?e():e,a="function"==typeof t?t():t,r="undefined"==typeof i?Gibberish.rndf(o,a):Gibberish.rndf(o,a,i,n)}},Gibberish.rndi=function(e,t,i,n){var r;if(0===arguments.length?(e=0,t=1):1===arguments.length?(t=arguments[0],e=0):2===arguments.length?(e=arguments[0],t=arguments[1]):(e=arguments[0],t=arguments[1],i=arguments[2],n=arguments[3]),r=t-e,i>r&&(n=!0),"undefined"==typeof i)return r=t-e,Math.round(e+Math.random()*r);for(var o=[],a=[],s=0;i>s;s++){var l;if(n)l=Gibberish.rndi(e,t);else{for(l=Gibberish.rndi(e,t);a.indexOf(l)>-1;)l=Gibberish.rndi(e,t);a.push(l)}o.push(l)}return o},Gibberish.Rndi=function(){var e,t,i,n,r;return Math.random,Math.round,0===arguments.length?(e=0,t=1):1===arguments.length?(t=arguments[0],e=0):2===arguments.length?(e=arguments[0],t=arguments[1]):3===arguments.length?(e=arguments[0],t=arguments[1],i=arguments[2]):(e=arguments[0],t=arguments[1],i=arguments[2],n=arguments[3]),r=t-e,"number"==typeof i&&i>r&&(n=!0),function(){var r,o,a;return o="function"==typeof e?e():e,a="function"==typeof t?t():t,r="undefined"==typeof i?Gibberish.rndi(o,a):Gibberish.rndi(o,a,i,n)}},Gibberish.extend=function(e,t){for(var i in t)i.split("."),t[i]instanceof Array&&t[i].length<100?(e[i]=t[i].slice(0),"fx"===i&&(e[i].parent=t[i].parent)):"object"!=typeof t[i]||null===t[i]||t[i]instanceof Float32Array?e[i]=t[i]:(e[i]=e[i]||{},arguments.callee(e[i],t[i]));return e},Function.prototype.clone=function(){return eval("["+this.toString()+"]")[0]},String.prototype.format=function(e,t,i){function n(){var n=this,r=arguments.length+1;for(e=0;r>e;i=arguments[e++])t=i,n=n.replace(RegExp("\\{"+(e-1)+"\\}","g"),t);return n}return n.native=String.prototype.format,n}(),Gibberish.future=function(e,t){var i=new Gibberish.Sequencer({values:[function(){},function(){e(),i.stop(),i.disconnect()}],durations:[t]}).start();return i.cancel=function(){i.stop(),i.disconnect()},i},Gibberish.Proxy=function(){var e=0;Gibberish.extend(this,{name:"proxy",type:"effect",properties:{},callback:function(){return e}}).init(),this.input=arguments[0],e=this.input.parent[this.input.name],delete this.input.parent[this.input.name],this.input.parent.properties[this.input.name].value=this,Object.defineProperty(this.input.parent,this.input.name,{get:function(){return e},set:function(t){e=t}}),Gibberish.dirty(this.input.parent)},Gibberish.Proxy.prototype=new Gibberish.ugen,Gibberish.Proxy2=function(){var e=arguments[0],t=arguments[1];Gibberish.extend(this,{name:"proxy2",type:"effect",properties:{},callback:function(){var i=e[t];return Array.isArray(i)?(i[0]+i[1]+i[2])/3:i}}).init(),this.getInput=function(){return e},this.setInput=function(t){e=t},this.getName=function(){return t},this.setName=function(e){t=e}},Gibberish.Proxy2.prototype=new Gibberish.ugen,Gibberish.Proxy3=function(){var e=arguments[0],t=arguments[1];Gibberish.extend(this,{name:"proxy3",type:"effect",properties:{},callback:function(){var i=e[t];return i||0}}),this.init(),this.codegen=function(){console.log(" CALLED "),this.variable||(this.variable=Gibberish.generateSymbol("v")),Gibberish.callbackArgs.push(this.symbol),Gibberish.callbackObjects.push(this.callback),this.codeblock="var "+this.variable+" = "+this.symbol+"("+e.properties[t].codegen()+");\n"}},Gibberish.Proxy3.prototype=new Gibberish.ugen,Gibberish.oscillator=function(){this.type="oscillator",this.oscillatorInit=function(){return this.fx=new Array2,this.fx.parent=this,this}},Gibberish.oscillator.prototype=new Gibberish.ugen,Gibberish._oscillator=new Gibberish.oscillator,Gibberish.Wavetable=function(){var e=0,t=null,i=Gibberish.context.sampleRate/1024,n=0;this.properties={frequency:440,amp:.25,sync:0},this.getTable=function(){return t},this.setTable=function(e){t=e,i=Gibberish.context.sampleRate/t.length},this.getTableFreq=function(){return i},this.setTableFreq=function(e){i=e},this.getPhase=function(){return e},this.setPhase=function(t){e=t},this.callback=function(r,o){var a,s,l,h,c,u;for(e+=r/i;e>=1024;)e-=1024;return a=0|e,s=e-a,a=1023&a,l=1023===a?0:a+1,h=t[a],c=t[l],0!==u&&(n=u),(h+s*(c-h))*o}},Gibberish.Wavetable.prototype=Gibberish._oscillator,Gibberish.Table=function(e){this.__proto__=new Gibberish.Wavetable,this.name="table";var t=2*Math.PI;if("undefined"==typeof e){e=new Float32Array(1024);for(var i=1024;i--;)e[i]=Math.sin(i/1024*t)}this.setTable(e),this.init(),this.oscillatorInit()},Gibberish.asmSine=function(e,t,i){"use asm";function n(){for(var e=1024,t=1024;e=e-1|0;)t-=1,l[e>>2]=+a(+(t/1024)*6.2848);c=44100/1024}function r(e,t,i){e=+e,t=+t,i=+i;var n=0,r=0,o=0,a=0,u=0,p=0;return s=+(s+e/c),s>=1024&&(s=+(s-1024)),n=+h(s),a=s-n,r=~~n,o=(r|0)==1024?0:r+1|0,u=+l[r>>2],p=+l[o>>2],+((u+a*(p-u))*t)}function o(e){return e|=0,+l[e>>2]}var a=e.Math.sin,s=0,l=new e.Float32Array(i),h=e.Math.floor,c=0;return{init:n,gen:r,get:o}},Gibberish.asmSine2=function(){this.properties={frequency:440,amp:.5,sr:Gibberish.context.sampleRate},this.name="sine";var e=new ArrayBuffer(4096),t=Gibberish.asmSine(window,null,e);return t.init(),this.getTable=function(){return e},this.get=t.get,this.callback=t.gen,this.init(),this.oscillatorInit(),this.processProperties(arguments),this},Gibberish.asmSine2.prototype=Gibberish._oscillator,Gibberish.Sine=function(){this.__proto__=new Gibberish.Wavetable,this.name="sine";for(var e=2*Math.PI,t=new Float32Array(1024),i=1024;i--;)t[i]=Math.sin(i/1024*e);this.setTable(t),this.init(arguments),this.oscillatorInit(),this.processProperties(arguments)},Gibberish.Sine2=function(){this.__proto__=new Gibberish.Sine,this.name="sine2";var e=this.__proto__.callback,t=Gibberish.makePanner(),i=[0,0];this.callback=function(n,r,o){var a=e(n,r);return i=t(a,o,i)},this.init(),this.oscillatorInit(),Gibberish.defineUgenProperty("pan",0,this),this.processProperties(arguments)},Gibberish.Square=function(){this.__proto__=new Gibberish.Wavetable,this.name="square";for(var e=(2*Math.PI,new Float32Array(1024)),t=1024;t--;)e[t]=t/1024>.5?1:-1;this.setTable(e),this.init(arguments),this.oscillatorInit(),this.processProperties(arguments)},Gibberish.Saw=function(){this.__proto__=new Gibberish.Wavetable,this.name="saw";for(var e=new Float32Array(1024),t=1024;t--;)e[t]=4*((t/1024/2+.25)%.5-.25);this.setTable(e),this.init(arguments),this.oscillatorInit(),this.processProperties(arguments)},Gibberish.Saw2=function(){this.__proto__=new Gibberish.Saw,this.name="saw2";var e=this.__proto__.callback,t=Gibberish.makePanner(),i=[0,0];this.callback=function(n,r,o){var a=e(n,r);return i=t(a,o,i)},this.init(),Gibberish.defineUgenProperty("pan",0,this)},Gibberish.Triangle=function(){this.__proto__=new Gibberish.Wavetable,this.name="triangle";for(var e=new Float32Array(1024),t=Math.abs,i=1024;i--;)e[i]=1-4*t((i/1024+.25)%1-.5);this.setTable(e),this.init(arguments),this.oscillatorInit(),this.processProperties(arguments)},Gibberish.Triangle2=function(){this.__proto__=new Gibberish.Triangle,this.name="triangle2";var e=this.__proto__.callback,t=Gibberish.makePanner(),i=[0,0];this.callback=function(n,r,o){var a=e(n,r);return t(a,o,i)},this.init(),this.oscillatorInit(),Gibberish.defineUgenProperty("pan",0,this),this.processProperties(arguments)},Gibberish.Saw3=function(){var e=0,t=0,i=2.5,n=-1.5,r=0,o=Math.sin,a=11;pi_2=2*Math.PI,flip=0,signHistory=0,ignore=!1,sr=Gibberish.context.sampleRate,Gibberish.extend(this,{name:"saw",properties:{frequency:440,amp:.15,sync:0,sr:Gibberish.context.sampleRate},callback:function(s){var l=s/sr,h=.5-l,c=a*h*h*h*h,u=.376-.752*l,p=1-2*l,f=0;return t+=l,t-=t>1?2:0,e=.5*(e+o(pi_2*(t+e*c))),f=i*e+n*r,r=e,f+=u,f*=p}}),Object.defineProperty(this,"scale",{get:function(){return a},set:function(e){a=e}}),this.init(),this.oscillatorInit(),this.processProperties(arguments)},Gibberish.Saw3.prototype=Gibberish._oscillator,Gibberish.PWM=function(){var e=0,t=0,i=0,n=0,r=0,o=2.5,a=-1.5,s=Math.sin,l=11;pi_2=2*Math.PI,test=0,sr=Gibberish.context.sampleRate,Gibberish.extend(this,{name:"pwm",properties:{frequency:440,amp:.15,pulsewidth:.05,sr:Gibberish.context.sampleRate},callback:function(h,c,u){var p=h/sr,f=.5-p,d=l*f*f*f*f,m=1-2*p,g=0;return r+=p,r-=r>1?2:0,e=.5*(e+s(pi_2*(r+e*d))),t=.5*(t+s(pi_2*(r+t*d+u))),g=t-e,g=o*g+a*(i-n),i=e,n=t,g*m*c}}),Object.defineProperty(this,"scale",{get:function(){return l},set:function(e){l=e}}),this.init(),this.oscillatorInit(),this.processProperties(arguments)},Gibberish.PWM.prototype=Gibberish._oscillator,Gibberish.Noise=function(){var e=Math.random;Gibberish.extend(this,{name:"noise",properties:{amp:1},callback:function(t){return(2*e()-1)*t}}),this.init(),this.oscillatorInit(),this.processProperties(arguments)},Gibberish.Noise.prototype=Gibberish._oscillator,Gibberish.KarplusStrong=function(){var e=[0],t=0,i=Math.random,n=Gibberish.makePanner(),r=Gibberish.context.sampleRate,o=[0,0];Gibberish.extend(this,{name:"karplus_strong",frequency:0,properties:{blend:1,damping:0,amp:1,channels:2,pan:0},note:function(t){var n=Math.floor(r/t);e.length=0;for(var o=0;n>o;o++)e[o]=2*i()-1;this.frequency=t},callback:function(r,a,s,l,h){var c=e.shift(),u=i()>r?-1:1;a=a>0?a:0;var p=u*(c+t)*(.5-a/100);return t=p,e.push(p),p*=s,1===l?p:n(p,h,o)}}).init().oscillatorInit().processProperties(arguments)},Gibberish.KarplusStrong.prototype=Gibberish._oscillator,Gibberish.PolyKarplusStrong=function(){this.__proto__=new Gibberish.Bus2,Gibberish.extend(this,{name:"poly_karplus_strong",maxVoices:5,voiceCount:0,_frequency:0,polyProperties:{blend:1,damping:0},note:function(e,t){var i=this.children[this.voiceCount++];this.voiceCount>=this.maxVoices&&(this.voiceCount=0),i.note(e,t),this._frequency=e},initVoices:function(){for(var e=0;e<this.maxVoices;e++){var t={blend:this.blend,damping:this.damping,channels:2,amp:1},i=new Gibberish.KarplusStrong(t).connect(this);this.children.push(i)}}}),this.amp=1/this.maxVoices,this.children=[],"object"==typeof arguments[0]&&(this.maxVoices=arguments[0].maxVoices?arguments[0].maxVoices:this.maxVoices),Gibberish.polyInit(this),this.initVoices(),this.processProperties(arguments),this.initialized=!1,Gibberish._synth.oscillatorInit.call(this),Gibberish.dirty(this)},Gibberish.bus=function(){this.type="bus",this.inputCodegen=function(){var e,t=this.value.valueOf();return e=t+", "+this.amp,this.codeblock=e,e},this.addConnection=function(){var e=arguments[2],t={value:arguments[0],amp:arguments[1],codegen:this.inputCodegen,valueOf:function(){return this.codegen()}};"undefined"!=typeof e?this.inputs.splice(e,0,t):this.inputs.push(t),Gibberish.dirty(this)},this.removeConnection=function(e){for(var t=0;t<this.inputs.length;t++)if(this.inputs[t].value===e){this.inputs.splice(t,1),Gibberish.dirty(this);break}},this.adjustSendAmount=function(e,t){for(var i=0;i<this.inputs.length;i++)if(this.inputs[i].value===e){this.inputs[i].amp=t,Gibberish.dirty(this);break}},this.callback=function(){var e=arguments[arguments.length-2],t=arguments[arguments.length-1];output[0]=output[1]=0;for(var i=0;i<arguments.length-2;i+=2){var n="object"==typeof arguments[i],r=arguments[i+1];output[0]+=n?arguments[i][0]*r:arguments[i]*r,output[1]+=n?arguments[i][1]*r:arguments[i]*r}return output[0]*=e,output[1]*=e,panner(output,t,output)}},Gibberish.bus.prototype=new Gibberish.ugen,Gibberish._bus=new Gibberish.bus,Gibberish.Bus=function(){return Gibberish.extend(this,{name:"bus",properties:{inputs:[],amp:1},callback:function(){for(var e=0,t=arguments.length-1,i=arguments[t],n=0;t>n;n++)e+=arguments[n];return e*=i}}),this.init(),this.processProperties(arguments),this},Gibberish.Bus.prototype=Gibberish._bus,Gibberish.Bus2=function(){this.name="bus2",this.type="bus",this.properties={inputs:[],amp:1,pan:0};var e=[0,0],t=Gibberish.makePanner();this.callback=function(){var i=arguments,n=i.length,r=i[n-2],o=i[n-1];e[0]=e[1]=0;for(var a=0,s=n-2;s>a;a+=2){var l="object"==typeof i[a],h=i[a+1];e[0]+=l?i[a][0]*h||0:i[a]*h||0,e[1]+=l?i[a][1]*h||0:i[a]*h||0}return e[0]*=r,e[1]*=r,t(e,o,e)},this.show=function(){console.log(e,args)},this.getOutput=function(){return e},this.getArgs=function(){return args},this.init(arguments),this.processProperties(arguments)},Gibberish.Bus2.prototype=Gibberish._bus,Gibberish.envelope=function(){this.type="envelope"},Gibberish.envelope.prototype=new Gibberish.ugen,Gibberish._envelope=new Gibberish.envelope,Gibberish.ExponentialDecay=function(){var e=Math.pow,t=0,i=0;Gibberish.extend(this,{name:"ExponentialDecay",properties:{decay:.5,length:11050},callback:function(n,r){return t=e(n,i),i+=1/r,t},trigger:function(){i="number"==typeof arguments[0]?arguments[0]:0}}).init()},Gibberish.ExponentialDecay.prototype=Gibberish._envelope,Gibberish.Line=function(e,t,i,n){var r,o={name:"line",properties:{start:e||0,end:isNaN(t)?1:t,time:i||Gibberish.context.sampleRate,loops:n||!1},retrigger:function(e,t){a=0,this.start=r,this.end=e,this.time=t,s=(e-r)/t}},a=0,s=(t-e)/i;return this.callback=function(e,t,i,n){return r=i>a?e+a++*s:t,a=r>=t&&n?0:a,r},Gibberish.extend(this,o),this.init(),this},Gibberish.Line.prototype=Gibberish._envelope,Gibberish.AD=function(e,t){var i=0,n=0;Gibberish.extend(this,{name:"AD",properties:{attack:e||1e4,decay:t||1e4},run:function(){return n=0,i=0,this},callback:function(e,t){if(e=0>e?22050:e,t=0>t?22050:t,0===n){var r=1/e;i+=r,i>=1&&n++}else if(1===n){var r=1/t;i-=r,0>=i&&(i=0,n++)}return i},getState:function(){return n}}).init().processProperties(arguments)},Gibberish.AD.prototype=Gibberish._envelope,Gibberish.ADSR=function(e,t,i,n,r,o,a){var s={name:"adsr",type:"envelope",requireReleaseTrigger:"undefined"!=typeof a?a:!1,properties:{attack:isNaN(e)?1e4:e,decay:isNaN(t)?1e4:t,sustain:isNaN(i)?22050:i,release:isNaN(n)?1e4:n,attackLevel:r||1,sustainLevel:o||.5,releaseTrigger:0},run:function(){this.setPhase(0),this.setState(0)},stop:function(){this.releaseTrigger=1}};Gibberish.extend(this,s);var l=0,h=0,c=0,u=this;return this.callback=function(e,t,i,n,r,o,a){var s=0;return c=1===c?1:a,0===h?(s=l/e*r,++l/e>=1&&(h++,l=t)):1===h?(s=l/t*(r-o)+o,--l<=0&&(null!==i?(h+=1,l=i):(h+=2,l=n))):2===h?(s=o,u.requireReleaseTrigger&&c?(h++,l=n,u.releaseTrigger=0,c=0):l--<=0&&!u.requireReleaseTrigger&&(h++,l=n)):3===h&&(l--,s=l/n*o,0>=l&&h++),s},this.call=function(){return this.callback(this.attack,this.decay,this.sustain,this.release,this.attackLevel,this.sustainLevel,this.releaseTrigger)},this.setPhase=function(e){l=e},this.setState=function(e){h=e,l=0},this.getState=function(){return h},this.init(),this},Gibberish.ADSR.prototype=Gibberish._envelope,Gibberish.ADR=function(e,t,i,n,r){var o={name:"adr",type:"envelope",properties:{attack:isNaN(e)?11025:e,decay:isNaN(t)?11025:t,release:isNaN(i)?22050:i,attackLevel:n||1,releaseLevel:r||.2},run:function(){this.setPhase(0),this.setState(0)}};Gibberish.extend(this,o);var a=0,s=0;return this.callback=function(e,t,i,n,r){var o=0;return 0===s?(o=a/e*n,++a/e===1&&(s++,a=t)):1===s?(o=a/t*(n-r)+r,--a<=0&&(s+=1,a=i)):2===s&&(a--,o=a/i*r,0>=a&&s++),o},this.setPhase=function(e){a=e},this.setState=function(e){s=e,a=0},this.getState=function(){return s},this.init(),this},Gibberish.ADR.prototype=Gibberish._envelope,Gibberish.analysis=function(){this.type="analysis",this.codegen=function(){if(Gibberish.memo[this.symbol])return Gibberish.memo[this.symbol];var e=this.variable?this.variable:Gibberish.generateSymbol("v");return Gibberish.memo[this.symbol]=e,this.variable=e,Gibberish.callbackArgs.push(this.symbol),Gibberish.callbackObjects.push(this.callback),this.codeblock="var "+this.variable+" = "+this.symbol+"();\n",-1===Gibberish.codeblock.indexOf(this.codeblock)&&Gibberish.codeblock.push(this.codeblock),this.variable},this.analysisCodegen=function(){var e=0;this.input.codegen?(e=this.input.codegen(),e.indexOf("op")>-1&&console.log("ANALYSIS BUG")):e=this.input.value?"undefined"!=typeof this.input.value.codegen?this.input.value.codegen():this.input.value:"null";var t=this.analysisSymbol+"("+e+",";for(var i in this.properties)"input"!==i&&(t+=this[i]+",");return t=t.slice(0,-1),t+=");",this.analysisCodeblock=t,-1===Gibberish.analysisCodeblock.indexOf(this.analysisCodeblock)&&Gibberish.analysisCodeblock.push(this.analysisCodeblock),-1===Gibberish.callbackObjects.indexOf(this.analysisCallback)&&Gibberish.callbackObjects.push(this.analysisCallback),t},this.remove=function(){Gibberish.analysisUgens.splice(Gibberish.analysisUgens.indexOf(this),1)},this.analysisInit=function(){this.analysisSymbol=Gibberish.generateSymbol(this.name),Gibberish.analysisUgens.push(this),Gibberish.dirty()}},Gibberish.analysis.prototype=new Gibberish.ugen,Gibberish._analysis=new Gibberish.analysis,Gibberish.Follow=function(){this.name="follow",this.properties={input:0,bufferSize:4410,mult:1,useAbsoluteValue:!0};var e=Math.abs,t=[0],i=0,n=0,r=0;this.analysisCallback=function(o,a,s,l){"object"==typeof o&&(o=o[0]+o[1]),i+=l?e(o):o,i-=t[n],t[n]=l?e(o):o,n=(n+1)%a,t[n]=t[n]?t[n]:0,r=i/a*s},this.callback=this.getValue=function(){return r},this.init(),this.analysisInit(),this.processProperties(arguments);var o=(this.__lookupSetter__("bufferSize"),this.bufferSize);Object.defineProperty(this,"bufferSize",{get:function(){return o},set:function(e){o=e,i=0,t=[0],n=0}})},Gibberish.Follow.prototype=Gibberish._analysis,Gibberish.SingleSampleDelay=function(){this.name="single_sample_delay",this.properties={input:arguments[0]||0,amp:arguments[1]||1};var e=0;this.analysisCallback=function(t){e=t},this.callback=function(){return e},this.getValue=function(){return e},this.init(),this.analysisInit(),this.processProperties(arguments)},Gibberish.SingleSampleDelay.prototype=Gibberish._analysis,Gibberish.Record=function(e,t,i){var n=new Float32Array(t),r=0,o=!1,a=this;Gibberish.extend(this,{name:"record",oncomplete:i,properties:{input:0,size:t||0},analysisCallback:function(e,t){o&&(n[r++]="object"==typeof e?e[0]+e[1]:e,r>=t&&(o=!1,a.remove()))},record:function(){return r=0,o=!0,this},getBuffer:function(){return n},getPhase:function(){return r},remove:function(){"undefined"!=typeof this.oncomplete&&this.oncomplete();for(var e=0;e<Gibberish.analysisUgens.length;e++){var t=Gibberish.analysisUgens[e];if(t===this)return Gibberish.callbackArgs.indexOf(this.analysisSymbol)>-1&&Gibberish.callbackArgs.splice(Gibberish.callbackArgs.indexOf(this.analysisSymbol),1),Gibberish.callbackObjects.indexOf(this.analysisCallback)>-1&&Gibberish.callbackObjects.splice(Gibberish.callbackObjects.indexOf(this.analysisCallback),1),void Gibberish.analysisUgens.splice(e,1)}}}),this.properties.input=e,this.init(),this.analysisInit(),Gibberish.dirty()},Gibberish.Record.prototype=Gibberish._analysis,Gibberish.effect=function(){this.type="effect"},Gibberish.effect.prototype=new Gibberish.ugen,Gibberish._effect=new Gibberish.effect,Gibberish.Distortion=function(){var e=Math.abs,t=Math.log,i=Math.LN2; Gibberish.extend(this,{name:"distortion",properties:{input:0,amount:50},callback:function(n,r){var o;return r=r>2?r:2,"number"==typeof n?(o=n*r,n=o/(1+e(o))/(t(r)/i)):(o=n[0]*r,n[0]=o/(1+e(o))/(t(r)/i),o=n[1]*r,n[1]=o/(1+e(o))/(t(r)/i)),n}}).init().processProperties(arguments)},Gibberish.Distortion.prototype=Gibberish._effect,Gibberish.Gain=function(){Gibberish.extend(this,{name:"gain",properties:{input:0,amount:1},callback:function(e,t){return"number"==typeof e?e*=t:(e[0]*=t,e[1]*=t),e}}).init().processProperties(arguments)},Gibberish.Gain.prototype=Gibberish._effect,Gibberish.Delay=function(){var e=[],t=0;e.push(new Float32Array(2*Gibberish.context.sampleRate)),e.push(new Float32Array(2*Gibberish.context.sampleRate)),Gibberish.extend(this,{name:"delay",properties:{input:0,time:22050,feedback:.5,wet:1,dry:1},callback:function(i,n,r,o,a){var s="number"==typeof i?1:2,l=t++%88200,h=(l+(0|n))%88200;return 1===s?(e[0][h]=(i+e[0][l])*r,i=i*a+e[0][l]*o):(e[0][h]=(i[0]+e[0][l])*r,i[0]=i[0]*a+e[0][l]*o,e[1][h]=(i[1]+e[1][l])*r,i[1]=i[1]*a+e[1][l]*o),i}});var i=Math.round(this.properties.time);Object.defineProperty(this,"time",{configurable:!0,get:function(){return i},set:function(e){i=Math.round(e),Gibberish.dirty(this)}}),this.init(),this.processProperties(arguments)},Gibberish.Delay.prototype=Gibberish._effect,Gibberish.Decimator=function(){var e=0,t=[],i=Math.pow,n=Math.floor;Gibberish.extend(this,{name:"decimator",properties:{input:0,bitDepth:16,sampleRate:1},callback:function(r,o,a){e+=a;var s="number"==typeof r?1:2;if(1===s){if(e>=1){var l=i(o,2);t[0]=n(r*l)/l,e-=1}r=t[0]}else{if(e>=1){var l=i(o,2);t[0]=n(r[0]*l)/l,t[1]=n(r[1]*l)/l,e-=1}r=t}return r}}).init().processProperties(arguments)},Gibberish.Decimator.prototype=Gibberish._effect,Gibberish.RingModulation=function(){var e=(new Gibberish.Sine).callback,t=[0,0];Gibberish.extend(this,{name:"ringmod",properties:{input:0,frequency:440,amp:.5,mix:.5},callback:function(i,n,r,o){var a="number"==typeof i?1:2,s=1===a?i:i[0],l=e(n,r);if(s=s*(1-o)+s*l*o,2===a){var h=i[1];return h=h*(1-o)+h*l*o,t[0]=s,t[1]=h,t}return s}}).init().processProperties(arguments)},Gibberish.RingModulation.prototype=Gibberish._effect,Gibberish.DCBlock=function(){var e=0,t=0;Gibberish.extend(this,{name:"dcblock",type:"effect",properties:{input:0},reset:function(){e=0,t=0},callback:function(i){var n=i-e+.9997*t;return e=i,t=n,n}}).init().processProperties(arguments)},Gibberish.DCBlock.prototype=Gibberish._effect,Gibberish.Tremolo=function(){var e=(new Gibberish.Sine).callback;Gibberish.extend(this,{name:"tremolo",type:"effect",properties:{input:0,frequency:2.5,amp:.5},callback:function(t,i,n){var r="number"==typeof t?1:2,o=e(i,n);return 1===r?t*=o:(t[0]*=o,t[1]*=o),t}}).init().processProperties(arguments)},Gibberish.Tremolo.prototype=Gibberish._effect,Gibberish.OnePole=function(){var e=0;Gibberish.extend(this,{name:"onepole",type:"effect",properties:{input:0,a0:.15,b1:.85},callback:function(t,i,n){var r=t*i+e*n;return e=r,r},smooth:function(t,i){this.input=i[t],e=this.input,i[t]=this,this.obj=i,this.property=t,this.oldSetter=i.__lookupSetter__(t),this.oldGetter=i.__lookupGetter__(t);var n=this;Object.defineProperty(i,t,{get:function(){return n.input},set:function(e){n.input=e}})},remove:function(){Object.defineProperty(this.obj,this.property,{get:this.oldGetter,set:this.oldSetter}),this.obj[this.property]=this.input}}).init().processProperties(arguments)},Gibberish.OnePole.prototype=Gibberish._effect,Gibberish.Filter24=function(){var e=[0,0,0,0],t=[0,0,0,0],i=[0,0],n=isNaN(arguments[0])?.1:arguments[0],r=isNaN(arguments[1])?3:arguments[1];_isLowPass="undefined"!=typeof arguments[2]?arguments[2]:!0,Gibberish.extend(this,{name:"filter24",properties:{input:0,cutoff:n,resonance:r,isLowPass:_isLowPass},callback:function(n,r,o,a){var s="number"==typeof n?1:2,l=1===s?n:n[0],h=e[3]*o;if(h=h>1?1:h,r=0>r?0:r,r=r>1?1:r,l-=h,e[0]=e[0]+(-e[0]+l)*r,e[1]=e[1]+(-e[1]+e[0])*r,e[2]=e[2]+(-e[2]+e[1])*r,e[3]=e[3]+(-e[3]+e[2])*r,l=a?e[3]:l-e[3],2===s){var c=n[1];return h=t[3]*o,h=h>1?1:h,c-=h,t[0]=t[0]+(-t[0]+c)*r,t[1]=t[1]+(-t[1]+t[0])*r,t[2]=t[2]+(-t[2]+t[1])*r,t[3]=t[3]+(-t[3]+t[2])*r,c=a?t[3]:c-t[3],i[0]=l,i[1]=c,i}return l}}).init().processProperties(arguments)},Gibberish.Filter24.prototype=Gibberish._effect,Gibberish.SVF=function(){var e=[0,0],t=[0,0],i=Math.PI,n=[0,0];Gibberish.extend(this,{name:"SVF",properties:{input:0,cutoff:440,Q:2,mode:0,sr:Gibberish.context.sampleRate},callback:function(r,o,a,s,l){var h="number"==typeof r?1:2,c=1===h?r:r[0],u=2*i*o/l;a=1/a;var p=t[0]+u*e[0],f=c-p-a*e[0],d=u*f+e[0],m=f+p;if(e[0]=d,t[0]=p,c=0===s?p:1===s?f:2===s?d:m,2===h){var g=r[1],p=t[1]+u*e[1],f=g-p-a*e[1],d=u*f+e[1],m=f+p;e[1]=d,t[1]=p,g=0===s?p:1===s?f:2===s?d:m,n[0]=c,n[1]=g}else n=c;return n}}).init().processProperties(arguments)},Gibberish.SVF.prototype=Gibberish._effect,Gibberish.Biquad=function(){var e=x2=y1=y2=0,t=[0,0],i=.001639,n=.003278,r=.001639,o=-1.955777,a=.960601,s="LP",l=2e3,h=.5,c=Gibberish.context.sampleRate;Gibberish.extend(this,{name:"biquad",properties:{input:null},calculateCoefficients:function(){switch(s){case"LP":var e=2*Math.PI*l/c,t=Math.sin(e),u=Math.cos(e),p=t/(2*h);i=(1-u)/2,n=1-u,r=i,a0=1+p,o=-2*u,a=1-p;break;case"HP":var e=2*Math.PI*l/c,t=Math.sin(e),u=Math.cos(e),p=t/(2*h);i=(1+u)/2,n=-(1+u),r=i,a0=1+p,o=-2*u,a=1-p;break;case"BP":var e=2*Math.PI*l/c,t=Math.sin(e),u=Math.cos(e),f=Math.log(2)/2*h*e/t,p=t*(Math.exp(f)-Math.exp(-f))/2;i=p,n=0,r=-p,a0=1+p,o=-2*u,a=1-p;break;default:return}i/=a0,n/=a0,r/=a0,o/=a0,a/=a0},callback:function(s){var l="number"==typeof s?1:2,h=0,c=0,u=1===l?s:s[0];return h=i*u+n*e+r*x2-o*y1-a*y2,x2=e,e=s,y2=y1,y1=h,2===l&&(inR=s[1],c=i*inR+n*e[1]+r*x2[1]-o*y1[1]-a*y2[1],x2[1]=e[1],e[1]=s[1],y2[1]=y1[1],y1[1]=c,t[0]=h,t[1]=c),1===l?h:t}}).init(),Object.defineProperties(this,{mode:{get:function(){return s},set:function(e){s=e,this.calculateCoefficients()}},cutoff:{get:function(){return l},set:function(e){l=e,this.calculateCoefficients()}},Q:{get:function(){return h},set:function(e){h=e,this.calculateCoefficients()}}}),this.processProperties(arguments),this.calculateCoefficients()},Gibberish.Biquad.prototype=Gibberish._effect,Gibberish.Flanger=function(){var e=[new Float32Array(88200),new Float32Array(88200)],t=88200,i=(new Gibberish.Sine).callback,n=Gibberish.interpolate,r=-100,o=0;Gibberish.extend(this,{name:"flanger",properties:{input:0,rate:.25,feedback:0,amount:125,offset:125},callback:function(a,s,l,h){var c="number"==typeof a?1:2,u=r+i(s,.95*h);u>t?u-=t:0>u&&(u+=t);var p=n(e[0],u);return e[0][o]=1===c?a+p*l:a[0]+p*l,2===c?(a[0]+=p,p=n(e[1],u),e[1][o]=a[1]+p*l,a[1]+=p):a+=p,++o>=t&&(o=0),++r>=t&&(r=0),a}}).init().processProperties(arguments),r=-1*this.offset},Gibberish.Flanger.prototype=Gibberish._effect,Gibberish.Vibrato=function(){var e=[new Float32Array(88200),new Float32Array(88200)],t=88200,i=(new Gibberish.Sine).callback,n=Gibberish.interpolate,r=-100,o=0;Gibberish.extend(this,{name:"vibrato",properties:{input:0,rate:5,amount:.5,offset:125},callback:function(a,s,l,h){var c="number"==typeof a?1:2,u=r+i(s,l*h-1);u>t?u-=t:0>u&&(u+=t);var p=n(e[0],u);return e[0][o]=1===c?a:a[0],2===c?(a[0]=p,p=n(e[1],u),e[1][o]=a[1],a[1]=p):a=p,++o>=t&&(o=0),++r>=t&&(r=0),a}}).init().processProperties(arguments),r=-1*this.offset},Gibberish.Vibrato.prototype=Gibberish._effect,Gibberish.BufferShuffler=function(){var e=[new Float32Array(88200),new Float32Array(88200)],t=88200,i=0,n=0,r=0,o=0,a=0,s=Math.random,l=1,h=!1,c=!1,u=!1,p=Gibberish.interpolate,f=!1,d=1,m=!1,g=Gibberish.rndf,v=[0,0];Gibberish.extend(this,{name:"buffer_shuffler",properties:{input:0,chance:.25,rate:11025,length:22050,reverseChange:.5,pitchChance:.5,pitchMin:.25,pitchMax:2,wet:1,dry:0},callback:function(y,b,x,w,_,S,M,T,C,A){var E="number"==typeof y?1:2;a?++o%(w-400)===0&&(h=!1,c=!0,l=1,o=0):(e[0][n]=1===E?y:y[0],e[1][n]=1===E?y:y[1],n++,n%=t,m=0===n?1:m,r++,r%x==0&&s()<b&&(u=s()<_,a=!0,u||(i=n-w,0>i&&(i=t+i)),f=s()<S,f&&(d=g(M,T)),l=1,h=!0,c=!1)),i+=u?-1*d:d,0>i?i+=t:i>=t&&(i-=t);var P,k,R,L,D=p(e[0],i);return h?(l-=.0025,R=D*(1-l),P=1===E?R+y*l:R+y[0]*l,2===E&&(L=p(e[1],i),R=L*(1-l),k=1===E?P:R+y[1]*l),.0025>=l&&(h=!1)):c?(l-=.0025,R=D*l,P=1===E?R+y*l:R+y[0]*(1-l),2===E&&(L=p(e[1],i),R=L*l,k=R+y[1]*(1-l)),.0025>=l&&(c=!1,a=!1,u=!1,d=1,f=0)):1===E?P=a&&m?D*C+y*A:y:(L=p(e[1],i),P=a&&m?D*C+y[0]*A:y[0],k=a&&m?L*C+y[1]*A:y[1]),v=[P,k],1===E?P:v}}).init().processProperties(arguments)},Gibberish.BufferShuffler.prototype=Gibberish._effect,Gibberish.AllPass=function(e){var t=-1,i=new Float32Array(e||500),n=i.length;Gibberish.extend(this,{name:"allpass",properties:{input:0},callback:function(e){t=++t%n;var r=i[t],o=-1*e+r;return i[t]=e+.5*r,o}})},Gibberish.Comb=function(e){var t=new Float32Array(e||1200),i=t.length,n=0,r=0;Gibberish.extend(this,{name:"comb",properties:{input:0,feedback:.84,damping:.2},callback:function(e,o,a){var s=++n%i,l=t[s];return r=l*(1-a)+r*a,t[s]=e+r*o,l}})},Gibberish.Reverb=function(){var e={combCount:8,combTuning:[1116,1188,1277,1356,1422,1491,1557,1617],allPassCount:4,allPassTuning:[556,441,341,225],allPassFeedback:.5,fixedGain:.015,scaleDamping:.4,scaleRoom:.28,offsetRoom:.7,stereoSpread:23},t=.84,i=[],n=[],r=[0,0];Gibberish.extend(this,{name:"reverb",roomSize:.5,properties:{input:0,wet:.5,dry:.55,roomSize:.84,damping:.5},callback:function(e,t,o,a,s){for(var l="object"==typeof e?2:1,h=1===l?e:e[0]+e[1],c=.015*h,u=c,p=0;8>p;p++){var f=i[p](c,.98*a,.4*s);u+=f}for(var p=0;4>p;p++)u=n[p](u);return r[0]=r[1]=h*o+u*t,r}}).init().processProperties(arguments),this.setFeedback=function(e){t=e};for(var o=0;8>o;o++)i.push(new Gibberish.Comb(e.combTuning[o]).callback);for(var o=0;4>o;o++)n.push(new Gibberish.AllPass(e.allPassTuning[o],e.allPassFeedback).callback)},Gibberish.Reverb.prototype=Gibberish._effect,Gibberish.Granulator=function(e){var t=[];buffer=null,interpolate=Gibberish.interpolate,panner=Gibberish.makePanner(),bufferLength=0,debug=0,write=0,self=this,out=[0,0],_out=[0,0],rndf=Gibberish.rndf,numberOfGrains=e.numberOfGrains||20,Gibberish.extend(this,{name:"granulator",bufferLength:88200,reverse:!0,spread:.5,properties:{speed:1,speedMin:-0,speedMax:0,grainSize:1e3,position:.5,positionMin:0,positionMax:0,amp:.2,fade:.1,pan:0,shouldWrite:!1},setBuffer:function(e){buffer=e,bufferLength=e.length},callback:function(e,i,n,r,o,a,s,l,h,c){for(var u=0;numberOfGrains>u;u++){var p=t[u];if(p._speed>0){p.pos>p.end&&(p.pos=(s+rndf(o,a))*buffer.length,p.start=p.pos,p.end=p.start+r,p._speed=e+rndf(i,n),p._speed=p._speed<.1?.1:p._speed,p._speed=p._speed<.1&&p._speed>0?.1:p._speed,p._speed=p._speed>-.1&&p._speed<0?-.1:p._speed,p.fadeAmount=p._speed*h*r,p.pan=rndf(-1*self.spread,self.spread));for(var f=p.pos;f>buffer.length;)f-=buffer.length;for(;0>f;)f+=buffer.length;var d=interpolate(buffer,f);d*=p.pos<p.fadeAmount+p.start?(p.pos-p.start)/p.fadeAmount:1,d*=p.pos>p.end-p.fadeAmount?(p.end-p.pos)/p.fadeAmount:1}else{p.pos<p.end&&(p.pos=(s+rndf(o,a))*buffer.length,p.start=p.pos,p.end=p.start-r,p._speed=e+rndf(i,n),p._speed=p._speed<.1&&p._speed>0?.1:p._speed,p._speed=p._speed>-.1&&p._speed<0?-.1:p._speed,p.fadeAmount=p._speed*h*r);for(var f=p.pos;f>buffer.length;)f-=buffer.length;for(;0>f;)f+=buffer.length;var d=interpolate(buffer,f);d*=p.pos>p.start-p.fadeAmount?(p.start-p.pos)/p.fadeAmount:1,d*=p.pos<p.end+p.fadeAmount?(p.end-p.pos)/p.fadeAmount:1}_out=panner(d*l,p.pan,_out),out[0]+=_out[0],out[1]+=_out[1],p.pos+=p._speed}return panner(out,c,out)}}).init().processProperties(arguments);for(var i=0;numberOfGrains>i;i++)t[i]={pos:self.position+Gibberish.rndf(self.positionMin,self.positionMax),_speed:self.speed+Gibberish.rndf(self.speedMin,self.speedMax)},t[i].start=t[i].pos,t[i].end=t[i].pos+self.grainSize,t[i].fadeAmount=t[i]._speed*self.fade*self.grainSize,t[i].pan=Gibberish.rndf(-1*self.spread,self.spread);"undefined"!=typeof e.buffer&&(buffer=e.buffer,bufferLength=buffer.length)},Gibberish.Granulator.prototype=Gibberish._effect,Gibberish.synth=function(){this.type="oscillator",this.oscillatorInit=function(){this.fx=new Array2,this.fx.parent=this}},Gibberish.synth.prototype=new Gibberish.ugen,Gibberish._synth=new Gibberish.synth,Gibberish.Synth=function(e){this.name="synth",this.properties={frequency:0,pulsewidth:.5,attack:22050,decay:22050,sustain:22050,release:22050,attackLevel:1,sustainLevel:.5,releaseTrigger:0,glide:.15,amp:.25,channels:2,pan:0,sr:Gibberish.context.sampleRate},this.note=function(n,r){if(0!==r){if("object"!=typeof this.frequency){if(t&&n===c&&e.requireReleaseTrigger)return this.releaseTrigger=1,void(c=null);this.frequency=c=n,this.releaseTrigger=0}else this.frequency[0]=c=n,this.releaseTrigger=0,Gibberish.dirty(this);"undefined"!=typeof r&&(this.amp=r),i.run()}else this.releaseTrigger=1},e=e||{};var t="undefined"==typeof e.useADSR?!1:e.useADSR,i=t?new Gibberish.ADSR:new Gibberish.AD,n=i.getState,r=i.callback,o=new Gibberish.PWM,a=o.callback,s=(new Gibberish.OnePole).callback,l=Gibberish.makePanner(),h=this,c=0,u=[0,0];i.requireReleaseTrigger=e.requireReleaseTrigger||!1,this.callback=function(e,i,o,c,p,f,d,m,g,v,y,b,x,w){v=v>=1?.99999:v,e=s(e,1-v,v);var _,S;return t?(_=r(o,c,p,f,d,m,g),g&&(h.releaseTrigger=0),n()<4?(S=a(e,1,i,w)*_*y,1===b?S:l(S,x,u)):(S=u[0]=u[1]=0,1===b?S:u)):n()<2?(_=r(o,c),S=a(e,1,i,w)*_*y,1===b?S:l(S,x,u)):(S=u[0]=u[1]=0,1===b?S:u)},this.getEnv=function(){return i},this.getOsc=function(){return o},this.setOsc=function(e){o=e,a=o.callback};var p="PWM";Object.defineProperty(this,"waveform",{get:function(){return p},set:function(e){this.setOsc(new Gibberish[e])}}),this.init(),this.oscillatorInit(),this.processProperties(arguments)},Gibberish.Synth.prototype=Gibberish._synth,Gibberish.PolySynth=function(){this.__proto__=new Gibberish.Bus2,Gibberish.extend(this,{name:"polysynth",maxVoices:5,voiceCount:0,frequencies:[],_frequency:0,polyProperties:{frequency:0,glide:0,attack:22050,decay:22050,sustain:22050,release:22050,attackLevel:1,sustainLevel:.5,pulsewidth:.5,waveform:"PWM"},note:function(e,t){var i=this.frequencies.indexOf(e),n=i>-1?i:this.voiceCount++,r=this.children[n];r.note(e,t),-1===i?(this.frequencies[n]=e,this._frequency=e,this.voiceCount>=this.maxVoices&&(this.voiceCount=0)):delete this.frequencies[n]},initVoices:function(){for(var e=0;e<this.maxVoices;e++){var t={waveform:this.waveform,attack:this.attack,decay:this.decay,sustain:this.sustain,release:this.release,attackLevel:this.attackLevel,sustainLevel:this.sustainLevel,pulsewidth:this.pulsewidth,channels:2,amp:1,useADSR:this.useADSR||!1,requireReleaseTrigger:this.requireReleaseTrigger||!1},i=new Gibberish.Synth(t).connect(this);this.children.push(i)}}}),this.amp=1/this.maxVoices,this.children=[],"object"==typeof arguments[0]&&(this.maxVoices=arguments[0].maxVoices?arguments[0].maxVoices:this.maxVoices,this.useADSR="undefined"!=typeof arguments[0].useADSR?arguments[0].useADSR:!1,this.requireReleaseTrigger="undefined"!=typeof arguments[0].requireReleaseTrigger?arguments[0].requireReleaseTrigger:!1),Gibberish.polyInit(this),this.initVoices(),this.processProperties(arguments),Gibberish._synth.oscillatorInit.call(this)},Gibberish.Synth2=function(e){this.name="synth2",this.properties={frequency:0,pulsewidth:.5,attack:22050,decay:22050,sustain:22050,release:22050,attackLevel:1,sustainLevel:.5,releaseTrigger:0,cutoff:.25,resonance:3.5,useLowPassFilter:!0,glide:.15,amp:.25,channels:1,pan:0,sr:Gibberish.context.sampleRate},this.note=function(n,r){if(0!==r){if("object"!=typeof this.frequency){if(t&&n===u&&e.requireReleaseTrigger)return this.releaseTrigger=1,void(u=null);this.frequency=u=n,this.releaseTrigger=0}else this.frequency[0]=u=n,this.releaseTrigger=0,Gibberish.dirty(this);"undefined"!=typeof r&&(this.amp=r),i.run()}else this.releaseTrigger=1},e=e||{};var t="undefined"==typeof e.useADSR?!1:e.useADSR,i=t?new Gibberish.ADSR:new Gibberish.AD,n=i.getState,r=i.callback,o=new Gibberish.PWM,a=o.callback,s=new Gibberish.Filter24,l=s.callback,h=(new Gibberish.OnePole).callback,c=Gibberish.makePanner(),u=0,p=this,f=[0,0];i.requireReleaseTrigger=e.requireReleaseTrigger||!1,this.callback=function(e,i,o,s,u,d,m,g,v,y,b,x,w,_,S,M,T){w=w>=1?.99999:w,e=h(e,1-w,w);var C,A;return t?(C=r(o,s,u,d,m,g,v),v&&(p.releaseTrigger=0),n()<4?(A=l(a(e,.15,i,T),y*C,b,x)*C*_,1===S?A:c(A,M,f)):(A=f[0]=f[1]=0,1===S?A:f)):n()<2?(C=r(o,s),A=l(a(e,.15,i,T),y*C,b,x)*C*_,1===S?A:c(A,M,f)):(A=f[0]=f[1]=0,1===S?A:f)},this.getUseADSR=function(){return t},this.getEnv=function(){return i},this.getOsc=function(){return o},this.setOsc=function(e){o=e,a=o.callback};var d="PWM";Object.defineProperty(this,"waveform",{get:function(){return d},set:function(e){this.setOsc(new Gibberish[e])}}),this.init(),this.oscillatorInit(),this.processProperties(arguments)},Gibberish.Synth2.prototype=Gibberish._synth,Gibberish.PolySynth2=function(){this.__proto__=new Gibberish.Bus2,Gibberish.extend(this,{name:"polysynth2",maxVoices:5,voiceCount:0,frequencies:[],_frequency:0,polyProperties:{frequency:0,glide:0,attack:22050,decay:22050,sustain:22050,release:22050,attackLevel:1,sustainLevel:.5,pulsewidth:.5,resonance:3.5,cutoff:.25,useLowPassFilter:!0,waveform:"PWM"},note:function(e,t){var i=this.frequencies.indexOf(e),n=i>-1?i:this.voiceCount++,r=this.children[n];r.note(e,t),-1===i?(this.frequencies[n]=e,this._frequency=e,this.voiceCount>=this.maxVoices&&(this.voiceCount=0)):delete this.frequencies[n]},initVoices:function(){this.dirty=!0;for(var e=0;e<this.maxVoices;e++){var t={attack:this.attack,decay:this.decay,sustain:this.sustain,release:this.release,attackLevel:this.attackLevel,sustainLevel:this.sustainLevel,pulsewidth:this.pulsewidth,channels:2,amp:1,useADSR:this.useADSR||!1,requireReleaseTrigger:this.requireReleaseTrigger||!1},i=new Gibberish.Synth2(t).connect(this);this.children.push(i)}}}),this.amp=1/this.maxVoices,this.children=[],"object"==typeof arguments[0]&&(this.maxVoices=arguments[0].maxVoices?arguments[0].maxVoices:this.maxVoices,this.useADSR="undefined"!=typeof arguments[0].useADSR?arguments[0].useADSR:!1,this.requireReleaseTrigger="undefined"!=typeof arguments[0].requireReleaseTrigger?arguments[0].requireReleaseTrigger:!1),Gibberish.polyInit(this),this.initVoices(),this.processProperties(arguments),Gibberish._synth.oscillatorInit.call(this)},Gibberish.FMSynth=function(e){this.name="fmSynth",this.properties={frequency:0,cmRatio:2,index:5,attack:22050,decay:22050,sustain:22050,release:22050,attackLevel:1,sustainLevel:.5,releaseTrigger:0,glide:.15,amp:.25,channels:2,pan:0},this.note=function(n,r){if(0!==r){if("object"!=typeof this.frequency){if(t&&n===u&&e.requireReleaseTrigger)return this.releaseTrigger=1,void(u=null);this.frequency=u=n,this.releaseTrigger=0}else this.frequency[0]=u=n,this.releaseTrigger=0,Gibberish.dirty(this);"undefined"!=typeof r&&(this.amp=r),i.run()}else this.releaseTrigger=1},e=e||{};var t="undefined"==typeof e.useADSR?!1:e.useADSR,i=t?new Gibberish.ADSR:new Gibberish.AD,n=i.getState,r=i.callback,o=(new Gibberish.Sine).callback,a=(new Gibberish.Sine).callback,s=(new Gibberish.OnePole).callback,l=Gibberish.makePanner(),h=[0,0],c=this,u=0;i.requireReleaseTrigger=e.requireReleaseTrigger||!1,this.callback=function(e,i,u,p,f,d,m,g,v,y,b,x,w,_){var S,M,T;return b>=1&&(b=.9999),e=s(e,1-b,b),t?(S=r(p,f,d,m,g,v,y),y&&(c.releaseTrigger=0),n()<4?(T=a(e*i,e*u)*S,M=o(e+T,1)*S*x,1===w?M:l(M,_,h)):(M=h[0]=h[1]=0,1===w?M:h)):n()<2?(S=r(p,f),T=a(e*i,e*u)*S,M=o(e+T,1)*S*x,1===w?M:l(M,_,h)):(M=h[0]=h[1]=0,1===w?M:h)},this.init(),this.oscillatorInit(),this.processProperties(arguments)},Gibberish.FMSynth.prototype=Gibberish._synth,Gibberish.PolyFM=function(){this.__proto__=new Gibberish.Bus2,Gibberish.extend(this,{name:"polyfm",maxVoices:5,voiceCount:0,children:[],frequencies:[],_frequency:0,polyProperties:{glide:0,attack:22050,decay:22050,sustain:22050,release:22050,attackLevel:1,sustainLevel:.5,index:5,cmRatio:2},note:function(e,t){var i=this.frequencies.indexOf(e),n=i>-1?i:this.voiceCount++,r=this.children[n];r.note(e,t),-1===i?(this.frequencies[n]=e,this._frequency=e,this.voiceCount>=this.maxVoices&&(this.voiceCount=0)):delete this.frequencies[n]},initVoices:function(){for(var e=0;e<this.maxVoices;e++){var t={attack:this.attack,decay:this.decay,sustain:this.sustain,release:this.release,attackLevel:this.attackLevel,sustainLevel:this.sustainLevel,cmRatio:this.cmRatio,index:this.index,channels:2,useADSR:this.useADSR||!1,requireReleaseTrigger:this.requireReleaseTrigger||!1,amp:1},i=new Gibberish.FMSynth(t);i.connect(this),this.children.push(i)}}}),this.amp=1/this.maxVoices,this.children=[],"object"==typeof arguments[0]&&(this.maxVoices=arguments[0].maxVoices?arguments[0].maxVoices:this.maxVoices,this.useADSR="undefined"!=typeof arguments[0].useADSR?arguments[0].useADSR:!1,this.requireReleaseTrigger="undefined"!=typeof arguments[0].requireReleaseTrigger?arguments[0].requireReleaseTrigger:!1),Gibberish.polyInit(this),this.initVoices(),this.processProperties(arguments),Gibberish._synth.oscillatorInit.call(this)},Gibberish.Sampler=function(){function e(e){Gibberish.context.decodeAudioData(e,function(e){o=e.getChannelData(0),s.length=t=s.end=a=o.length,s.isPlaying=!0,s.buffers[s.file]=o,Gibberish.audioFiles[s.file]=o,s.onload&&s.onload(),0!==s.playOnLoad&&s.note(s.playOnLoad),s.isLoaded=!0},function(e){console.log("Error decoding file",e)})}var t=1,i=Gibberish.interpolate,n=Gibberish.makePanner(),r=[0,0],o=null,a=1,s=this;if(Gibberish.extend(this,{name:"sampler",file:null,isLoaded:!1,playOnLoad:0,buffers:{},properties:{pitch:1,amp:1,isRecording:!1,isPlaying:!0,input:0,length:0,start:0,end:1,loops:0,pan:0},_onload:function(e){o=e.channels[0],a=e.length,s.end=a,s.length=t=a,s.isPlaying=!0,Gibberish.audioFiles[s.file]=o,s.buffers[s.file]=o,s.onload&&s.onload(),0!==s.playOnLoad&&s.note(s.playOnLoad),s.isLoaded=!0},switchBuffer:function(e){if("string"==typeof e)"undefined"!=typeof s.buffers[e]&&(o=s.buffers[e],a=s.end=s.length=o.length);else if("number"==typeof e){var t=Object.keys(s.buffers);if(0===t.length)return;o=s.buffers[t[e]],a=s.end=s.length=o.length}},floatTo16BitPCM:function(e,t,i){for(var n=0;n<i.length-1;n++,t+=2){var r=Math.max(-1,Math.min(1,i[n]));e.setInt16(t,0>r?32768*r:32767*r,!0)}},encodeWAV:function(){function e(e,t,i){for(var n=0;n<i.length;n++)e.setUint8(t+n,i.charCodeAt(n))}var t=this.getBuffer(),i=new ArrayBuffer(44+2*t.length),n=new DataView(i),r=Gibberish.context.sampleRate;return e(n,0,"RIFF"),n.setUint32(4,32+2*t.length,!0),e(n,8,"WAVE"),e(n,12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,r,!0),n.setUint32(28,4*r,!0),n.setUint16(32,2,!0),n.setUint16(34,16,!0),e(n,36,"data"),n.setUint32(40,2*t.length,!0),this.floatTo16BitPCM(n,44,t),n},download:function(){var e=this.encodeWAV(),t=new Blob([e]),i=window.webkitURL.createObjectURL(t),n=window.document.createElement("a");n.href=i,n.download="output.wav";var r=document.createEvent("Event");r.initEvent("click",!0,!0),n.dispatchEvent(r)},note:function(e,i){switch(typeof e){case"number":this.pitch=e;break;case"function":this.pitch=e();break;case"object":this.pitch=Array.isArray(e)?e[0]:e}if("number"==typeof i&&(this.amp=i),null!==this.function){this.isPlaying=!0;var n;switch(typeof this.pitch){case"number":n=this.pitch;break;case"function":n=this.pitch.getValue?this.pitch.getValue():this.pitch();break;case"object":n=Array.isArray(this.pitch)?this.pitch[0]:this.pitch.getValue?this.pitch.getValue():this.pitch.input.getValue(),"function"==typeof n&&(n=n())}t=n>0?this.start:this.end,Gibberish.dirty(this)}},getBuffer:function(){return o},setBuffer:function(e){o=e},getPhase:function(){return t},setPhase:function(e){t=e},getNumberOfBuffers:function(){return Object.keys(s.buffers).length-1},callback:function(e,a,s,l,h,c,u,p,f,d){var m=0;return t+=e,p>t&&t>0?(e>0?m=null!==o&&l?i(o,t):0:t>u?m=null!==o&&l?i(o,t):0:t=f?p:t,n(m*a,d,r)):(t=f&&e>0?u:t,t=f&&0>e?p:t,r[0]=r[1]=m,r)}}).init().oscillatorInit().processProperties(arguments),"undefined"!=typeof arguments[0]&&("string"==typeof arguments[0]?(this.file=arguments[0],this.pitch=0):"object"==typeof arguments[0]&&arguments[0].file&&(this.file=arguments[0].file)),"undefined"!=typeof Gibberish.audioFiles[this.file])o=Gibberish.audioFiles[this.file],this.end=this.bufferLength=o.length,this.buffers[this.file]=o,t=this.bufferLength,Gibberish.dirty(this),this.onload&&this.onload();else if(null!==this.file){var e,l=new XMLHttpRequest;l.open("GET",this.file,!0),l.responseType="arraybuffer",l.onload=function(){e(this.response)},l.send()}else"undefined"!=typeof this.buffer&&(this.isLoaded=!0,o=this.buffer,this.end=this.bufferLength=o.length||88200,t=this.bufferLength,arguments[0]&&arguments[0].loops&&(this.loops=1),Gibberish.dirty(this),this.onload&&this.onload())},Gibberish.Sampler.prototype=Gibberish._oscillator,Gibberish.Sampler.prototype.record=function(e,t){this.isRecording=!0;var i=this;return this.recorder=new Gibberish.Record(e,t,function(){i.setBuffer(this.getBuffer()),i.end=bufferLength=i.getBuffer().length,i.setPhase(i.end),i.isRecording=!1}).record(),this},Gibberish.MonoSynth=function(){Gibberish.extend(this,{name:"monosynth",properties:{attack:1e4,decay:1e4,cutoff:.2,resonance:2.5,amp1:1,amp2:1,amp3:1,filterMult:.3,isLowPass:!0,pulsewidth:.5,amp:.6,detune2:.01,detune3:-.01,octave2:1,octave3:-1,glide:0,pan:0,frequency:0,channels:2},waveform:"Saw3",note:function(e,n){"undefined"!=typeof n&&0!==n&&(this.amp=n),0!==n&&("object"!=typeof this.frequency?this.frequency=e:(this.frequency[0]=e,Gibberish.dirty(this)),i()>0&&t.run())},_note:function(e,i){if("object"!=typeof this.frequency){if(useADSR&&e===lastFrequency&&0===i)return this.releaseTrigger=1,void(lastFrequency=null);0!==i&&(this.frequency=lastFrequency=e),this.releaseTrigger=0}else 0!==i&&(this.frequency[0]=lastFrequency=e),this.releaseTrigger=0,Gibberish.dirty(this);"undefined"!=typeof i&&0!==i&&(this.amp=i),0!==i&&t.run()}});var e=this.waveform;Object.defineProperty(this,"waveform",{get:function(){return e},set:function(t){e!==t&&(e=t,o=(new Gibberish[t]).callback,a=(new Gibberish[t]).callback,s=(new Gibberish[t]).callback)}});var t=new Gibberish.AD(this.attack,this.decay),i=t.getState,n=t.callback,r=(new Gibberish.Filter24).callback,o=new Gibberish[this.waveform](this.frequency,this.amp1).callback,a=new Gibberish[this.waveform](this.frequency2,this.amp2).callback,s=new Gibberish[this.waveform](this.frequency3,this.amp3).callback,l=(new Gibberish.OnePole).callback,h=Gibberish.makePanner(),c=[0,0];this.envelope=t,this.callback=function(e,t,u,p,f,d,m,g,v,y,b,x,w,_,S,M,T,C,A){if(i()<2){M>=1&&(M=.9999),C=l(C,1-M,M);var E=C;if(_>0)for(var P=0;_>P;P++)E*=2;else if(0>_)for(var P=0;P>_;P--)E/=2;var k=C;if(S>0)for(var P=0;S>P;P++)k*=2;else if(0>S)for(var P=0;P>S;P--)k/=2;E+=x>0?(2*C-C)*x:(C-C/2)*x,k+=w>0?(2*C-C)*w:(C-C/2)*w;var R=o(C,f,y)+a(E,d,y)+s(k,m,y),L=n(e,t),D=r(R,u+g*L,p,v,1)*L;return D*=b,c[0]=c[1]=D,1===A?c:h(D,T,c)}return c[0]=c[1]=0,c},this.init(),this.oscillatorInit(),this.processProperties(arguments)},Gibberish.MonoSynth.prototype=Gibberish._synth,Gibberish.Binops={"export":function(e){Gibberish.export("Binops",e||window)},operator:function(){var e=new Gibberish.ugen,t=arguments[0],i=Array.prototype.slice.call(arguments,1);e.name="op",e.properties={};for(var n=0;n<i.length;n++)e.properties[n]=i[n];return e.init.apply(e,i),e.codegen=function(){var e,i="( ";e=Object.keys(this.properties);for(var n=0;n<e.length;n++){var r="object"==typeof this[n];i+=r?this[n].codegen():this[n],n<e.length-1&&(i+=" "+t+" ")}return i+=" )",this.codeblock=i,i},e.valueOf=function(){return e.codegen()},e},Add:function(){var e=Array.prototype.slice.call(arguments,0);return e.unshift("+"),Gibberish.Binops.operator.apply(null,e)},Sub:function(){var e=Array.prototype.slice.call(arguments,0);return e.unshift("-"),Gibberish.Binops.operator.apply(null,e)},Mul:function(){var e=Array.prototype.slice.call(arguments,0);return e.unshift("*"),Gibberish.Binops.operator.apply(null,e)},Div:function(){var e=Array.prototype.slice.call(arguments,0);return e.unshift("/"),Gibberish.Binops.operator.apply(null,e)},Mod:function(){var e=Array.prototype.slice.call(arguments,0);return e.unshift("%"),Gibberish.Binops.operator.apply(null,e)},Abs:function(){var e=Array.prototype.slice.call(arguments,0),t={name:"abs",properties:{},callback:Math.abs.bind(t)};return t.__proto__=new Gibberish.ugen,t.properties[0]=e[0],t.init(),t},Sqrt:function(){var e=(Array.prototype.slice.call(arguments,0),{name:"sqrt",properties:{},callback:Math.sqrt.bind(e)});return e.__proto__=new Gibberish.ugen,e.properties[i]=arguments[0],e.init(),e},Pow:function(){var e=Array.prototype.slice.call(arguments,0),t={name:"pow",properties:{},callback:Math.pow.bind(t)};t.__proto__=new Gibberish.ugen;for(var i=0;i<e.length;i++)t.properties[i]=e[i];return t.init(),console.log(t.callback),t},Clamp:function(){var e=Array.prototype.slice.call(arguments,0),t={name:"clamp",properties:{input:0,min:0,max:1},callback:function(e,t,i){return t>e?e=t:e>i&&(e=i),e}};return t.__proto__=new Gibberish.ugen,t.init(),t.processProperties(e),t},Merge:function(){var e=Array.prototype.slice.call(arguments,0),t={name:"merge",properties:{},callback:function(e){return e[0]+e[1]}};t.__proto__=new Gibberish.ugen;for(var i=0;i<e.length;i++)t.properties[i]=e[i];return t.init(),t},Map:function(e,t,i,n,r,o,a){var s=Math.pow,l=0,h=0,c={name:"map",properties:{input:e,outputMin:t,outputMax:i,inputMin:n,inputMax:r,curve:o||l,wrap:a||!1},callback:function(e,t,i,n,r,o,a){var l,c=i-t,u=r-n,p=(e-n)/u;return p>1?p=a?p%1:1:0>p&&(p=a?1+p%1:0),l=0===o?t+p*c:t+s(p,1.5)*c,h=l,l},getValue:function(){return h},invert:function(){var e=c.outputMin;c.outputMin=c.outputMax,c.outputMax=e}};return c.__proto__=new Gibberish.ugen,c.init(),c}},Gibberish.Time={bpm:120,"export":function(e){Gibberish.export("Time",e||window)},ms:function(e){return e*Gibberish.context.sampleRate/1e3},seconds:function(e){return e*Gibberish.context.sampleRate},beats:function(e){return function(){var t=Gibberish.context.sampleRate/(Gibberish.Time.bpm/60);return t*e}}},Gibberish.Sequencer2=function(){var e=this,t=0;Gibberish.extend(this,{target:null,key:null,values:null,valuesIndex:0,durations:null,durationsIndex:0,nextTime:0,playOnce:!1,repeatCount:0,repeatTarget:null,isConnected:!0,keysAndValues:null,counts:{},properties:{rate:1,isRunning:!1,nextTime:0},offset:0,name:"seq",callback:function(i,n,r){if(n){if(t>=r){if(null!==e.values){if(e.target){var o=e.values[e.valuesIndex++];"function"==typeof o&&(o=o()),"function"==typeof e.target[e.key]?e.target[e.key](o):e.target[e.key]=o}else"function"==typeof e.values[e.valuesIndex]&&e.values[e.valuesIndex++]();e.valuesIndex>=e.values.length&&(e.valuesIndex=0)}else if(null!==e.keysAndValues)for(var a in e.keysAndValues){var s=e.counts[a]++,o=e.keysAndValues[a][s];"function"==typeof o&&(o=o()),"function"==typeof e.target[a]?e.target[a](o):e.target[a]=o,e.counts[a]>=e.keysAndValues[a].length&&(e.counts[a]=0),e.chose&&e.chose(a,s)}else"function"==typeof e.target[e.key]&&e.target[e.key]();if(t-=r,Array.isArray(e.durations)){var l=e.durations[e.durationsIndex++];e.nextTime="function"==typeof l?l():l,e.chose&&e.chose("durations",e.durationsIndex-1),e.durationsIndex>=e.durations.length&&(e.durationsIndex=0)}else{var l=e.durations;e.nextTime="function"==typeof l?l():l}return e.repeatTarget&&(e.repeatCount++,e.repeatCount===e.repeatTarget&&(e.isRunning=!1,e.repeatCount=0)),0}t+=i}return 0},start:function(e){return e||(t=0),this.isRunning=!0,this},stop:function(){return this.isRunning=!1,this},repeat:function(e){return this.repeatTarget=e,this},shuffle:function(){for(i in this.keysAndValues)this.shuffleArray(this.keysAndValues[i])},shuffleArray:function(e){for(var t,i,n=e.length;n;t=parseInt(Math.random()*n),i=e[--n],e[n]=e[t],e[t]=i);}}),this.init(arguments),this.processProperties(arguments);for(var i in this.keysAndValues)this.counts[i]=0;this.oscillatorInit(),t+=this.offset,this.connect()},Gibberish.Sequencer2.prototype=Gibberish._oscillator,Gibberish.Sequencer=function(){Gibberish.extend(this,{target:null,key:null,values:null,valuesIndex:0,durations:null,durationsIndex:0,nextTime:0,phase:0,isRunning:!1,playOnce:!1,repeatCount:0,repeatTarget:null,isConnected:!0,keysAndValues:null,counts:{},offset:0,name:"seq",tick:function(){if(this.isRunning){if(this.phase>=this.nextTime){if(null!==this.values){if(this.target){var e=this.values[this.valuesIndex++]; if("function"==typeof e)try{e=e()}catch(t){console.error("ERROR: Can't execute function triggered by Sequencer:\n"+e.toString()),this.values.splice(this.valuesIndex-1,1),this.valuesIndex--}"function"==typeof this.target[this.key]?this.target[this.key](e):this.target[this.key]=e}else if("function"==typeof this.values[this.valuesIndex])try{this.values[this.valuesIndex++]()}catch(t){console.error("ERROR: Can't execute function triggered by Sequencer:\n"+this.values[this.valuesIndex-1].toString()),this.values.splice(this.valuesIndex-1,1),this.valuesIndex--}this.valuesIndex>=this.values.length&&(this.valuesIndex=0)}else if(null!==this.keysAndValues)for(var i in this.keysAndValues){var n="function"==typeof this.keysAndValues[i].pick?this.keysAndValues[i].pick():this.counts[i]++,e=this.keysAndValues[i][n];if("function"==typeof e)try{e=e()}catch(t){console.error("ERROR: Can't execute function triggered by Sequencer:\n"+e.toString()),this.keysAndValues[i].splice(n,1),"function"!=typeof this.keysAndValues[i].pick&&this.counts[i]--}"function"==typeof this.target[i]?this.target[i](e):this.target[i]=e,this.counts[i]>=this.keysAndValues[i].length&&(this.counts[i]=0)}else"function"==typeof this.target[this.key]&&this.target[this.key]();if(this.phase-=this.nextTime,Array.isArray(this.durations)){var r="function"==typeof this.durations.pick?this.durations[this.durations.pick()]:this.durations[this.durationsIndex++];this.nextTime="function"==typeof r?r():r,this.durationsIndex>=this.durations.length&&(this.durationsIndex=0)}else{var r=this.durations;this.nextTime="function"==typeof r?r():r}return void(this.repeatTarget&&(this.repeatCount++,this.repeatCount===this.repeatTarget&&(this.isRunning=!1,this.repeatCount=0)))}this.phase++}},start:function(e){return e||(this.phase=this.offset),this.isRunning=!0,this},stop:function(){return this.isRunning=!1,this},repeat:function(e){return this.repeatTarget=e,this},shuffle:function(){for(e in this.keysAndValues)this.shuffleArray(this.keysAndValues[e])},shuffleArray:function(e){for(var t,i,n=e.length;n;t=parseInt(Math.random()*n),i=e[--n],e[n]=e[t],e[t]=i);},disconnect:function(){var e=Gibberish.sequencers.indexOf(this);Gibberish.sequencers.splice(e,1),this.isConnected=!1},connect:function(){return-1===Gibberish.sequencers.indexOf(this)&&Gibberish.sequencers.push(this),this.isConnected=!0,this}});for(var e in arguments[0])this[e]=arguments[0][e];for(var e in this.keysAndValues)this.counts[e]=0;this.connect(),this.phase+=this.offset},Gibberish.Sequencer.prototype=Gibberish._oscillator,Gibberish.PolySeq=function(){var e=this,t=0,i=function(e,t){return t>e?-1:e>t?1:0};Gibberish.extend(this,{seqs:[],timeline:{},playOnce:!1,repeatCount:0,repeatTarget:null,isConnected:!1,properties:{rate:1,isRunning:!1,nextTime:0},offset:0,autofire:[],name:"polyseq",getPhase:function(){return t},timeModifier:null,add:function(i){i.valuesIndex=i.durationsIndex=0,e.seqs.push(i),null===i.durations&&e.autofire.push(i),"undefined"!=typeof e.timeline[t]?i.priority?e.timeline[t].unshift(i):e.timeline[t].push(i):e.timeline[t]=[i],!e.scale||"frequency"!==i.key&&"note"!==i.key||e.applyScale&&e.applyScale(),e.nextTime=t,i.shouldStop=!1},callback:function(n,r,o){var a;if(r){if(t>=o){var s=e.timeline[o],l=t-o;if("undefined"==typeof s)return;e.autofire.length&&(s=s.concat(e.autofire));for(var h=0;h<s.length;h++){var c=s[h];if(!c.shouldStop){var u=c.values.pick?c.values.pick():c.valuesIndex++%c.values.length,p=c.values[u];if("function"==typeof p&&(p=p()),c.target&&("function"==typeof c.target[c.key]?c.target[c.key](p):c.target[c.key]=p),e.chose&&e.chose(c.key,u),null!==c.durations){if(Array.isArray(c.durations)){var u=c.durations.pick?c.durations.pick():c.durationsIndex++,f=c.durations[u];a="function"==typeof f?f():f,c.durationsIndex>=c.durations.length&&(c.durationsIndex=0),e.chose&&e.chose("durations",u)}else{var f=c.durations;a="function"==typeof f?f():f}var d;d=null!==e.timeModifier?e.timeModifier(a)+t:a+t,d-=l,a-=l,"undefined"==typeof e.timeline[d]?e.timeline[d]=[c]:c.priority?e.timeline[d].unshift(c):e.timeline[d].push(c)}}}delete e.timeline[o];var m=Object.keys(e.timeline),g=m.length;if(g>1){for(var v=0;g>v;v++)m[v]=parseFloat(m[v]);m=m.sort(i),e.nextTime=m[0]}else e.nextTime=parseFloat(m[0])}t+=n}return 0},start:function(e,i){if(e&&this.offset){t=0,this.nextTime=this.offset;var n=""+this.offset;this.timeline={},this.timeline[n]=[];for(var r=0;r<this.seqs.length;r++){var o=this.seqs[r];o.valuesIndex=o.durationsIndex=o.shouldStop=0,this.timeline[n].push(o)}}else{t=0,this.nextTime=0,this.timeline={0:[]};for(var r=0;r<this.seqs.length;r++){var o=this.seqs[r];o.valuesIndex=o.durationsIndex=o.shouldStop=0,this.timeline[0].push(o)}}return this.isConnected||(this.connect(Gibberish.Master,i),this.isConnected=!0),this.isRunning=!0,this},stop:function(){return this.isRunning=!1,this.isConnected&&(this.disconnect(),this.isConnected=!1),this},repeat:function(e){return this.repeatTarget=e,this},shuffle:function(e){if("undefined"!=typeof e)for(var t=0;t<this.seqs.length;t++)this.seqs[t].key===e&&this.shuffleArray(this.seqs[t].values);else for(var t=0;t<this.seqs.length;t++)this.shuffleArray(this.seqs[t].values)},shuffleArray:function(e){for(var t,i,n=e.length;n;t=parseInt(Math.random()*n),i=e[--n],e[n]=e[t],e[t]=i);}}),this.init(arguments),this.processProperties(arguments),this.oscillatorInit()},Gibberish.PolySeq.prototype=Gibberish._oscillator;var _hasInput=!1;return"object"==typeof navigator&&(navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia),Gibberish.Input=function(){var e=[];_hasInput||createInput(),this.type=this.name="input",this.fx=new Array2,this.fx.parent=this,this.properties={input:"input",amp:.5,channels:1},this.callback=function(t,i,n){return 1===n?e=t*i:(e[0]=t[0]*i,e[1]=t[1]*i),e},this.init(arguments),this.processProperties(arguments)},Gibberish.Input.prototype=new Gibberish.ugen,Gibberish.Kick=function(){var e=!1,t=(new Gibberish.SVF).callback,i=(new Gibberish.SVF).callback,n=.2,r=.8;Gibberish.extend(this,{name:"kick",properties:{pitch:50,__decay:20,__tone:1e3,amp:2,sr:Gibberish.context.sampleRate},callback:function(n,r,o,a,s){var l=e?60:0;return l=t(l,n,r,2,s),l=i(l,o,.5,0,s),l*=a,e=!1,l},note:function(t,i,n,r){"number"==typeof t&&(this.pitch=t),"number"==typeof i&&(this.decay=i),"number"==typeof n&&(this.tone=n),"number"==typeof r&&(this.amp=r),e=!0}}).init().oscillatorInit(),Object.defineProperties(this,{decay:{get:function(){return n},set:function(e){n=e>1?1:e,this.__decay=100*n}},tone:{get:function(){return r},set:function(e){r=e>1?1:e,this.__tone=220+1400*e}}}),this.processProperties(arguments)},Gibberish.Kick.prototype=Gibberish._oscillator,Gibberish.Conga=function(){var e=!1,t=(new Gibberish.SVF).callback;Gibberish.extend(this,{name:"conga",properties:{pitch:190,amp:2,sr:Gibberish.context.sampleRate},callback:function(i,n,r){var o=e?60:0;return o=t(o,i,50,2,r),o*=n,e=!1,o},note:function(t,i){"number"==typeof t&&(this.pitch=t),"number"==typeof i&&(this.amp=i),e=!0}}).init().oscillatorInit(),this.processProperties(arguments)},Gibberish.Conga.prototype=Gibberish._oscillator,Gibberish.Clave=function(){var e=!1,t=new Gibberish.SVF,i=t.callback;Gibberish.extend(this,{name:"clave",properties:{pitch:2500,amp:1,sr:Gibberish.context.sampleRate},callback:function(t,n,r){var o=e?2:0;return o=i(o,t,5,2,r),o*=n,e=!1,o},note:function(t,i){"number"==typeof t&&(this.pitch=t),"number"==typeof i&&(this.amp=i),e=!0}}).init().oscillatorInit(),this.bpf=t,this.processProperties(arguments)},Gibberish.Clave.prototype=Gibberish._oscillator,Gibberish.Tom=function(){var e=!1,t=(new Gibberish.SVF).callback,i=(new Gibberish.SVF).callback,n=new Gibberish.ExponentialDecay,r=n.callback,o=Math.random;Gibberish.extend(this,{name:"tom",properties:{pitch:80,amp:.5,sr:Gibberish.context.sampleRate},callback:function(n,a,s){var l,h=e?60:0;return h=t(h,n,30,2,s),l=16*o()-8,l=l>0?l:0,l*=r(.05,11025),l=i(l,120,.5,0,s),h+=l,h*=a,e=!1,h},note:function(t,i){"number"==typeof t&&(this.pitch=t),"number"==typeof i&&(this.amp=i),n.trigger(),e=!0}}).init().oscillatorInit(),n.trigger(1),this.processProperties(arguments)},Gibberish.Tom.prototype=Gibberish._oscillator,Gibberish.Cowbell=function(){var e=new Gibberish.Square,t=new Gibberish.Square,i=e.callback,n=t.callback,r=new Gibberish.SVF({mode:2}),o=r.callback,a=new Gibberish.ExponentialDecay(.0025,10500),s=a.callback;Gibberish.extend(this,{name:"cowbell",properties:{amp:1,pitch:560,bpfFreq:1e3,bpfRez:3,decay:22050,decayCoeff:1e-4,sr:Gibberish.context.sampleRate},callback:function(e,t,r,a,l,h,c){var u;return u=i(t,1,1,0),u+=n(845,1,1,0),u=o(u,r,a,2,c),u*=s(h,l),u*=e},note:function(e){a.trigger(),e&&(this.decay=e)}}).init().oscillatorInit().processProperties(arguments),this.bpf=r,this.eg=a,a.trigger(1)},Gibberish.Cowbell.prototype=Gibberish._oscillator,Gibberish.Snare=function(){var e=(new Gibberish.SVF).callback,t=(new Gibberish.SVF).callback,i=(new Gibberish.SVF).callback,n=new Gibberish.ExponentialDecay(.0025,11025),r=n.callback,o=Math.random,a=0;Gibberish.extend(this,{name:"snare",properties:{cutoff:1e3,decay:11025,tune:0,snappy:.5,amp:1,sr:Gibberish.context.sampleRate},callback:function(n,s,l,h,c,u){var p,f,d=0,m=0;return d=r(.0025,s),d>.005&&(m=(2*o()-1)*d,m=i(m,n+1e3*l,.5,1,u),m*=h,m=m>0?m:0,a=d,p=e(a,180*(l+1),15,2,u),f=t(a,330*(l+1),15,2,u),m+=p,m+=.8*f,m*=c),m},note:function(e,t,i,r){"number"==typeof e&&(this.tune=e),"number"==typeof r&&(this.cutoff=r),"number"==typeof i&&(this.snappy=i),"number"==typeof t&&(this.amp=t),n.trigger()}}).init().oscillatorInit().processProperties(arguments),n.trigger(1)},Gibberish.Snare.prototype=Gibberish._oscillator,Gibberish.Hat=function(){var e=new Gibberish.Square,t=new Gibberish.Square,i=new Gibberish.Square,n=new Gibberish.Square,r=new Gibberish.Square,o=new Gibberish.Square,a=e.callback,s=t.callback,l=i.callback,h=n.callback,c=r.callback,u=o.callback,p=new Gibberish.SVF({mode:2}),f=p.callback,d=new Gibberish.Filter24,m=d.callback,g=new Gibberish.ExponentialDecay(.0025,10500),v=g.callback,y=new Gibberish.ExponentialDecay(.1,7500);y.callback,Gibberish.extend(this,{name:"hat",properties:{amp:1,pitch:325,bpfFreq:7e3,bpfRez:2,hpfFreq:.975,hpfRez:0,decay:3500,decay2:3e3,sr:Gibberish.context.sampleRate},callback:function(e,t,i,n,r,o,p,d,g){var y;return y=a(t,1,.5,0),y+=s(1.4471*t,.75,1,0),y+=l(1.617*t,1,1,0),y+=h(1.9265*t,1,1,0),y+=c(2.5028*t,1,1,0),y+=u(2.6637*t,.75,1,0),y=f(y,i,n,2,g),y*=v(.001,p),y=m(y,r,o,0,1),y*=e},note:function(e,t){g.trigger(),y.trigger(),e&&(this.decay=e),t&&(this.decay2=t)}}).init().oscillatorInit().processProperties(arguments),this.bpf=p,this.hpf=d,g.trigger(1),y.trigger(1)},Gibberish.Hat.prototype=Gibberish._oscillator,Gibberish})},{}],2:[function(_dereq_,module,exports){!function(){var freesound=module.exports={BASE_URI:"http://www.freesound.org/api",apiKey:"",debug:!1,_URI_SOUND:"/sounds/<sound_id>/",_URI_SOUND_ANALYSIS:"/sounds/<sound_id>/analysis/",_URI_SOUND_ANALYSIS_FILTER:"/sounds/<sound_id>/analysis/<filter>",_URI_SIMILAR_SOUNDS:"/sounds/<sound_id>/similar/",_URI_SEARCH:"/sounds/search/",_URI_CONTENT_SEARCH:"/sounds/content_search/",_URI_GEOTAG:"/sounds/geotag",_URI_USER:"/people/<user_name>/",_URI_USER_SOUNDS:"/people/<user_name>/sounds/",_URI_USER_PACKS:"/people/<user_name>/packs/",_URI_USER_BOOKMARKS:"/people/<username>/bookmark_categories",_URI_BOOKMARK_CATEGORY_SOUNDS:"/people/<username>/bookmark_categories/<category_id>/sounds",_URI_PACK:"/packs/<pack_id>/",_URI_PACK_SOUNDS:"/packs/<pack_id>/sounds/",_make_uri:function(e,t){for(var i in t)e=e.replace(/<[\w_]+>/,t[i]);return this.BASE_URI+e},_make_request:function(uri,success,error,params,wrapper){var fs=this;-1==uri.indexOf("?")&&(uri+="?"),uri=uri+"&api_key="+this.apiKey;for(var p in params)uri=uri+"&"+p+"="+params[p];var xhr;try{xhr=new XMLHttpRequest}catch(e){xhr=new ActiveXObject("Microsoft.XMLHTTP")}xhr.onreadystatechange=function(){if(4==xhr.readyState&&200==xhr.status){var data=eval("("+xhr.responseText+")");success(wrapper?wrapper(data):data)}else 4==xhr.readyState&&200!=xhr.status&&error()},freesound.debug&&console.log(uri),xhr.open("GET",uri),xhr.send(null)},_make_sound_object:function(e){return e.get_analysis=function(t,i,n,r){var o=i?freesound._URI_SOUND_ANALYSIS_FILTER:freesound._URI_SOUND_ANALYSIS;freesound._make_request(freesound._make_uri(o,[e.id,i?i:""]),n,r)},e.get_similar_sounds=function(t,i){freesound._make_request(freesound._make_uri(freesound._URI_SIMILAR_SOUNDS,[e.id]),t,i,{},this._make_sound_collection_object)},e},_make_sound_collection_object:function(e){var t=function(e,t,i){freesound._make_request(e,t,i,{},this._make_sound_collection_object)};return e.next_page=function(e,i){t(this.next,e,i)},e.previous_page=function(e,i){t(this.previous,e,i)},e},_make_user_object:function(e){return e.get_sounds=function(t,i){freesound._make_request(freesound._make_uri(freesound._URI_USER_SOUNDS,[e.username]),t,i,{},this._make_sound_collection_object)},e.get_packs=function(t,i){freesound._make_request(freesound._make_uri(freesound._URI_USER_PACKS,[e.username]),t,i,{},this._make_pack_collection_object)},e.get_bookmark_categories=function(t,i){freesound._make_request(freesound._make_uri(freesound._URI_USER_BOOKMARKS,[e.username]),t,i)},e.get_bookmark_category_sounds=function(e,t,i){freesound._make_request(e,t,i)},e},_make_pack_object:function(e){return e.get_sounds=function(t,i){freesound._make_request(freesound._make_uri(freesound._URI_PACK_SOUNDS,[e.id]),t,i,{},this._make_sound_collection_object)},e},_make_pack_collection_object:function(e){var t=function(e,t,i){freesound._make_request(e,t,i,{},this._make_pack_collection_object)};return e.next_page=function(e,i){t(this.next,e,i)},e.previous_page=function(e,i){t(this.previous,e,i)},e},get_from_ref:function(e,t,i){this._make_request(e,t,i,{})},get_sound:function(e,t,i){this._make_request(this._make_uri(this._URI_SOUND,[e]),t,i,{},this._make_sound_object)},get_user:function(e,t,i){this._make_request(this._make_uri(this._URI_USER,[e]),t,i,{},this._make_user_object)},get_pack:function(e,t,i){this._make_request(this._make_uri(this._URI_PACK,[e]),t,i,{},this._make_pack_object)},quick_search:function(e,t,i){this.search(e,0,null,null,t,i)},search:function(e,t,i,n,r,o,a,s,l){var h={q:e?e:" "};t&&(h.p=t),i&&(h.f=i),n&&(h.s=n),r&&(h.num_results=r),a&&(h.sounds_per_page=a),o&&(h.fields=o),this._make_request(this._make_uri(this._URI_SEARCH),s,l,h,this._make_sound_collection_object)},content_based_search:function(e,t,i,n,r,o,a,s){var l={};r&&(l.p=r),t&&(l.f=t),e&&(l.t=e),i&&(l.max_results=i),o&&(l.sounds_per_page=o),n&&(l.fields=n),this._make_request(this._make_uri(this._URI_CONTENT_SEARCH),a,s,l,this._make_sound_collection_object)},geotag:function(e,t,i,n,r,o,a,s,l){var h={};e&&(h.min_lat=e),t&&(h.max_lat=t),i&&(h.min_lon=i),n&&(h.max_lon=n),r&&(h.p=r),a&&(h.sounds_per_page=a),o&&(h.fields=o),this._make_request(this._make_uri(this._URI_GEOTAG),s,l,h,this._make_sound_collection_object)}}}()},{}],3:[function(e,t){!function(){function e(e,t){return e=a[e],t=a[t],e.distance>t.distance?t.distance+12-e.distance:t.distance-e.distance}function i(e,t,i){for(;i>0;i--)e+=t;return e}function n(e,t){if("string"!=typeof e)return null;this.name=e,this.duration=t||4,this.accidental={value:0,sign:""};var i=e.match(/^([abcdefgh])(x|#|bb|b?)(-?\d*)/i);if(i&&e===i[0]&&0!==i[3].length)this.name=i[1].toLowerCase(),this.octave=parseFloat(i[3]),0!==i[2].length&&(this.accidental.sign=i[2].toLowerCase(),this.accidental.value=y[i[2]]);else{e=e.replace(/\u2032/g,"'").replace(/\u0375/g,",");var n=e.match(/^(,*)([abcdefgh])(x|#|bb|b?)([,\']*)$/i);if(!n||5!==n.length||e!==n[0])throw Error("Invalid note format");if(""===n[1]&&""===n[4])this.octave=n[2]===n[2].toLowerCase()?3:2;else if(""!==n[1]&&""===n[4]){if(n[2]===n[2].toLowerCase())throw Error("Invalid note format. Format must respect the Helmholtz notation.");this.octave=2-n[1].length}else{if(""!==n[1]||""===n[4])throw Error("Invalid note format");if(n[4].match(/^'+$/)){if(n[2]===n[2].toUpperCase())throw Error("Invalid note format. Format must respect the Helmholtz notation");this.octave=3+n[4].length}else{if(!n[4].match(/^,+$/))throw Error("Invalid characters after note name.");if(n[2]===n[2].toLowerCase())throw Error("Invalid note format. Format must respect the Helmholtz notation");this.octave=2-n[4].length}}this.name=n[2].toLowerCase(),0!==n[3].length&&(this.accidental.sign=n[3].toLowerCase(),this.accidental.value=y[n[3]])}}function r(e,t){if(!(e instanceof n))return null;t=t||"",this.name=e.name.toUpperCase()+e.accidental.sign+t,this.root=e,this.notes=[e],this.quality="major",this.type="major";var i,r,a,s,l,h=[],c=!1,p="quality",f=!1,d=!1,g=null;for(s=0,l=t.length;l>s;s++){for(i=t[s];" "===i||"("===i||")"===i;)i=t[++s];if(!i)break;if(r=i.charCodeAt(0),a=l>=s+3?t.substr(s,3):"","quality"===p)"M"===i||("maj"===a||916===r?(this.type="major",h.push("M7"),c=!0,(t[s+3]&&"7"===t[s+3]||916===r&&"7"===t[s+1])&&s++):"m"===i||"-"===i||"min"===a?this.quality=this.type="minor":111===r||176===r||"dim"===a?(this.quality="minor",this.type="diminished"):"+"===i||"aug"===a?(this.quality="major",this.type="augmented"):216===r||248===r?(this.quality="minor",this.type="diminished",h.push("m7"),c=!0):"sus"===a?(this.quality="sus",this.type=t[s+3]&&"2"===t[s+3]?"sus2":"sus4"):"5"===i?(this.quality="power",this.type="power"):s-=1),a in u&&(s+=2),p="";else if("#"===i)f=!0;else if("b"===i)d=!0;else if("5"===i)f?(g="A5","major"===this.quality&&(this.type="augmented")):d&&(g="d5","minor"===this.quality&&(this.type="diminished")),d=f=!1;else if("6"===i)h.push("M6"),d=f=!1;else if("7"===i)h.push("diminished"===this.type?"d7":"m7"),c=!0,d=f=!1;else if("9"===i)c||h.push("m7"),h.push(d?"m9":f?"A9":"M9"),d=f=!1;else{if("1"!==i)throw Error("Unexpected character: '"+i+"' in chord name");i=t[++s],"1"===i?h.push(d?"d11":f?"A11":"P11"):"3"===i&&h.push(d?"m13":f?"A13":"M13"),d=f=!1}}for(var v=0,y=m[this.type].length;y>v;v++)this.notes.push("5"===m[this.type][v][1]&&g?o.interval(this.root,g):o.interval(this.root,m[this.type][v]));for(v=0,y=h.length;y>v;v++)this.notes.push(o.interval(this.root,h[v]))}var o={},a={c:{name:"c",distance:0,index:0},d:{name:"d",distance:2,index:1},e:{name:"e",distance:4,index:2},f:{name:"f",distance:5,index:3},g:{name:"g",distance:7,index:4},a:{name:"a",distance:9,index:5},b:{name:"b",distance:11,index:6},h:{name:"h",distance:11,index:6}},s=["c","d","e","f","g","a","b"],l={.25:"longa",.5:"breve",1:"whole",2:"half",4:"quarter",8:"eighth",16:"sixteenth",32:"thirty-second",64:"sixty-fourth",128:"hundred-twenty-eighth"},h=[{name:"unison",quality:"perfect",size:0},{name:"second",quality:"minor",size:1},{name:"third",quality:"minor",size:3},{name:"fourth",quality:"perfect",size:5},{name:"fifth",quality:"perfect",size:7},{name:"sixth",quality:"minor",size:8},{name:"seventh",quality:"minor",size:10},{name:"octave",quality:"perfect",size:12},{name:"ninth",quality:"minor",size:13},{name:"tenth",quality:"minor",size:15},{name:"eleventh",quality:"perfect",size:17},{name:"twelfth",quality:"perfect",size:19},{name:"thirteenth",quality:"minor",size:20},{name:"fourteenth",quality:"minor",size:22},{name:"fifteenth",quality:"perfect",size:24}],c={unison:0,second:1,third:2,fourth:3,fifth:4,sixth:5,seventh:6,octave:7,ninth:8,tenth:9,eleventh:10,twelfth:11,thirteenth:12,fourteenth:13,fifteenth:14},u={P:"perfect",M:"major",m:"minor",A:"augmented",d:"diminished",perf:"perfect",maj:"major",min:"minor",aug:"augmented",dim:"diminished"},p={perfect:"P",major:"M",minor:"m",augmented:"A",diminished:"d"},f={P:"P",M:"m",m:"M",A:"d",d:"A"},d={perfect:["diminished","perfect","augmented"],minor:["diminished","minor","major","augmented"]},m={major:["M3","P5"],minor:["m3","P5"],augmented:["M3","A5"],diminished:["m3","d5"],sus2:["M2","P5"],sus4:["P4","P5"],power:["P5"]},g={major:"M",minor:"m",augmented:"aug",diminished:"dim",power:"5"},v={"-2":"bb","-1":"b",0:"",1:"#",2:"x"},y={bb:-2,b:-1,"#":1,x:2};n.prototype={key:function(e){return e?7*(this.octave-1)+3+Math.ceil(a[this.name].distance/2):12*(this.octave-1)+4+a[this.name].distance+this.accidental.value},fq:function(e){return e=e||440,e*Math.pow(2,(this.key()-49)/12)},scale:function(e,t){return o.scale.list(this,e,t)},interval:function(e,t){return o.interval(this,e,t)},chord:function(e){return e=e||"major",e in g&&(e=g[e]),new r(this,e)},helmholtz:function(){var e,t=3>this.octave?this.name.toUpperCase():this.name.toLowerCase();return 2>=this.octave?(e=i("",",",2-this.octave),e+t+this.accidental.sign):(e=i("","'",this.octave-3),t+this.accidental.sign+e)},scientific:function(){return this.name.toUpperCase()+this.accidental.sign+("number"==typeof this.octave?this.octave:"")},enharmonics:function(){var e=[],t=this.key(),i=this.interval("m2","up"),n=this.interval("m2","down"),r=i.key()-i.accidental.value,o=n.key()-n.accidental.value,a=t-r;return 3>a&&a>-3&&(i.accidental={value:a,sign:v[a]},e.push(i)),a=t-o,3>a&&a>-3&&(n.accidental={value:a,sign:v[a]},e.push(n)),e},valueName:function(){return l[this.duration]},toString:function(e){return e="boolean"==typeof e?e:"number"==typeof this.octave?!1:!0,this.name.toLowerCase()+this.accidental.sign+(e?"":this.octave)}},r.prototype.dominant=function(e){return e=e||"",new r(this.root.interval("P5"),e)},r.prototype.subdominant=function(e){return e=e||"",new r(this.root.interval("P4"),e)},r.prototype.parallel=function(e){if(e=e||"","triad"!==this.chordType()||"diminished"===this.quality||"augmented"===this.quality)throw Error("Only major/minor triads have parallel chords");return"major"===this.quality?new r(this.root.interval("m3","down"),"m"):new r(this.root.interval("m3","up"))},r.prototype.chordType=function(){var e,t,i;if(2===this.notes.length)return"dyad";if(3===this.notes.length){t={unison:!1,third:!1,fifth:!1};for(var n=0,r=this.notes.length;r>n;n++)e=this.root.interval(this.notes[n]),i=h[parseFloat(o.interval.invert(e.simple)[1])-1],e.name in t?t[e.name]=!0:i.name in t&&(t[i.name]=!0);return t.unison&&t.third&&t.fifth?"triad":"trichord"}if(4===this.notes.length){t={unison:!1,third:!1,fifth:!1,seventh:!1};for(var n=0,r=this.notes.length;r>n;n++)e=this.root.interval(this.notes[n]),i=h[parseFloat(o.interval.invert(e.simple)[1])-1],e.name in t?t[e.name]=!0:i.name in t&&(t[i.name]=!0);if(t.unison&&t.third&&t.fifth&&t.seventh)return"tetrad"}return"unknown"},r.prototype.toString=function(){return this.name},o.note=function(e,t){return new n(e,t)},o.note.fromKey=function(e){var t=440*Math.pow(2,(e-49)/12);return o.frequency.note(t).note},o.chord=function(e){var t;if(t=e.match(/^([abcdefgh])(x|#|bb|b?)/i),t&&t[0])return new r(new n(t[0].toLowerCase()),e.substr(t[0].length));throw Error("Invalid Chord. Couldn't find note name")},o.frequency={note:function(e,t){t=t||440;var i,r,o,l,h,c,u;return i=Math.round(49+12*((Math.log(e)-Math.log(t))/Math.log(2))),u=t*Math.pow(2,(i-49)/12),c=1200*(Math.log(e/u)/Math.log(2)),r=Math.floor((i-4)/12),o=i-12*r-4,l=a[s[Math.round(o/2)]],h=l.name,o>l.distance?h+="#":l.distance>o&&(h+="b"),{note:new n(h+(r+1)),cents:c}}},o.interval=function(e,t,i){if("string"==typeof t){"down"===i&&(t=o.interval.invert(t));var r=u[t[0]],a=parseFloat(t.substr(1));if(!r||isNaN(a)||1>a)throw Error("Invalid string-interval format");return o.interval.from(e,{quality:r,interval:h[a-1].name},i)}if(t instanceof n&&e instanceof n)return o.interval.between(e,t);throw Error("Invalid parameters")},o.interval.from=function(t,i,r){i.direction=r||i.direction||"up";var o,l,u,p,f,m;if(f=c[i.interval],m=h[f],f>7&&(f-=7),f=a[t.name].index+f,f>s.length-1&&(f-=s.length),o=s[f],-1===d[m.quality].indexOf(i.quality)||-1===d[m.quality].indexOf(m.quality))throw Error("Invalid interval quality");return l=d[m.quality].indexOf(i.quality)-d[m.quality].indexOf(m.quality),u=m.size+l-e(t.name,o),t.octave&&(p=Math.floor((t.key()-t.accidental.value+e(t.name,o)-4)/12)+1+Math.floor(c[i.interval]/7)),u+=t.accidental.value,u>=11&&(u-=12),u>-3&&3>u&&(o+=v[u]),"down"===r&&p--,new n(o+(p||""))},o.interval.between=function(e,t){var i,n,r,o,s,l,c=e.key(),u=t.key();if(i=u-c,i>24||-25>i)throw Error("Too big interval. Highest interval is a augmented fifteenth (25 semitones)");return 0>i&&(o=e,e=t,t=o),r=a[t.name].index-a[e.name].index+7*(t.octave-e.octave),n=h[r],l=d[n.quality][Math.abs(i)-n.size+1],s=p[l]+(""+Number(r+1)),{name:n.name,quality:l,direction:i>0?"up":"down",simple:s}},o.interval.invert=function(e){if(2!==e.length&&3!==e.length)return!1;var t=f[e[0]],i=parseFloat(2===e.length?e[1]:e.substr(1));return i>8&&(i-=7),8!==i&&1!==i&&(i=9-i),t+(""+i)},o.scale={list:function(e,t,i){var r,a,s=[],l=[];if(!(e instanceof n))return!1;if("string"==typeof t&&(t=o.scale.scales[t],!t))return!1;for(s.push(e),i&&l.push(e.name+(e.accidental.sign||"")),r=0,a=t.length;a>r;r++)s.push(o.interval(e,t[r])),i&&l.push(s[r+1].name+(s[r+1].accidental.sign||""));return i?l:s},scales:{major:["M2","M3","P4","P5","M6","M7"],ionian:["M2","M3","P4","P5","M6","M7"],dorian:["M2","m3","P4","P5","M6","m7"],phrygian:["m2","m3","P4","P5","m6","m7"],lydian:["M2","M3","A4","P5","M6","M7"],mixolydian:["M2","M3","P4","P5","M6","m7"],minor:["M2","m3","P4","P5","m6","m7"],aeolian:["M2","m3","P4","P5","m6","m7"],locrian:["m2","m3","P4","d5","m6","m7"],majorpentatonic:["M2","M3","P5","M6"],minorpentatonic:["m3","P4","P5","m7"],chromatic:["m2","M2","m3","M3","P4","A4","P5","m6","M6","m7","M7"],harmonicchromatic:["m2","M2","m3","M3","P4","A4","P5","m6","M6","m7","M7"]}},t.exports=o}()},{}],4:[function(e,t){t.exports=function(t){"use strict";{var i,n=t.dollar;e("gibberish-dsp")}return i={"export":function(e){n.extend(e,i.Busses),n.extend(e,i.Oscillators),n.extend(e,i.Synths),n.extend(e,i.Percussion),n.extend(e,i.Envelopes),n.extend(e,i.FX),n.extend(e,i.Seqs),n.extend(e,i.Samplers),n.extend(e,i.PostProcessing),e.Theory=i.Theory,n.extend(e,i.Analysis),e.Clock=i.Clock,e.Seq=i.Seqs.Seq,e.Arp=i.Arp,e.ScaleSeq=i.Seqs.ScaleSeq,e.Rndi=i.Core.Rndi,e.Rndf=i.Core.Rndf,e.rndi=i.Core.rndi,e.rndf=i.Core.rndf,e.Input=i.Input,e.Freesound=i.Freesound,e.Scale=i.Theory.Scale,e.module=t.import,i.Core.Time.export(e),e.sec=e.seconds,i.Core.Binops.export(e)},init:function(){var e=null;i.onstart&&(e=i.onstart),i.context||(i.context={sampleRate:44100}),i.Core.onstart=function(){i.Clock.start(!0),null!==e&&e()},t.Clock=i.Clock,t.Theory=i.Theory,t.Theory.scale=t.scale=t.Audio.Theory.Scale("c4","Minor"),i.Core._init(),n.extend(t.Binops,i.Binops),i.Master=i.Busses.Bus().connect(i.Core.out),i.Master.type="Bus",i.Master.name="Master",n.extend(!0,i.Master,i.ugenTemplate),i.Master.fx.ugen=i.Master,i.ugenTemplate.connect=i.Core._oscillator.connect=i.Core._synth.connect=i.Core._effect.connect=i.Core._bus.connect=i.connect,i.Core.defineUgenProperty=i.defineUgenProperty,n.extend(t.Presets,i.Synths.Presets),n.extend(t.Presets,i.Percussion.Presets),n.extend(t.Presets,i.FX.Presets)},defineUgenProperty:function(e,t,n){var r=i.Clock.timeProperties.indexOf(e)>-1,o=n.properties[e]={value:r?i.Clock.time(t):t,binops:[],parent:n,name:e},a=e.charAt(0).toUpperCase()+e.slice(1);Object.defineProperty(n,e,{configurable:!0,get:function(){return o.value},set:function(e){return n[a]&&n[a].mapping&&n[a].mapping.remove&&n[a].mapping.remove(!0),o.value=r?i.Clock.time(e):e,i.Core.dirty(n),o.value}}),n[e]=o.value},polyInit:function(e){e.mod=e.polyMod,e.removeMod=e.removePolyMod;for(var t in e.polyProperties)!function(t){var n=e.polyProperties[t],r=i.Clock.timeProperties.indexOf(t)>-1;Object.defineProperty(e,t,{get:function(){return n},set:function(n){for(var o=0;o<e.children.length;o++)e.children[o][t]=r?i.Clock.time(n):n}})}(t)},connect:function(e,t){return"undefined"==typeof e&&(e=i.Master),-1===this.destinations.indexOf(e)&&(e.addConnection(this,1,t),0!==t&&this.destinations.push(e)),this},clear:function(){for(var e=0;e<i.Master.inputs.length;e++)i.Master.inputs[e].value.disconnect();i.Master.inputs.length=0,i.Clock.reset(),i.Master.fx.remove(),i.Master.amp=1,i.Core.clear(),i.Core.out.addConnection(i.Master,1),i.Master.destinations.push(i.Core.out),console.log("Audio stopped.")},ugenTemplate:{sequencers:[],mappings:[],fx:n.extend([],{add:function(){var e=0===this.length?this.ugen:this[this.length-1];e.disconnect();for(var t=0;t<arguments.length;t++){var n=arguments[t];n.input=e,e=n,this.push(n)}return this.ugen!==i.Master?e.connect():e.connect(i.Core.out),this.ugen},remove:function(){if(arguments.length>0)for(var e=0;e<arguments.length;e++){var t=arguments[e];if("string"!=typeof t){if("number"==typeof t){var n=this[t];if(n.disconnect(),this.splice(t,1),"undefined"!=typeof this[t]){var r=t-1;this[t].input=-1!==r?this[r]:this.ugen,"undefined"!=typeof this[t+1]?this[t+1].input=0===t?this.ugen:this[t]:this.ugen.connect(this.ugen!==i.Master?i.Master:i.Core.out)}else this.length>0?this[t-1].connect(i.Master):this.ugen.connect(this.ugen!==i.Master?i.Master:i.Core.out)}}else for(var o=0;o<this.length;o++)this[o].name===t&&this.remove(o)}else this.length>0?(this[this.length-1].disconnect(),this.ugen.connect(this.ugen!==i.Master?i.Master:i.Core.out),this.ugen.codegen(),this.length=0):console.log(this.ugen.name+" does not have any fx to remove. ")}}),replaceWith:function(e){for(var t=0;t<this.destinations.length;t++)e.connect(this.destinations[t]);for(var t=0;t<this.sequencers.length;t++)this.sequencers[t].target=e,e.sequencers.push(this.sequencers[t]);for(var t=0;t<this.mappingObjects.length;t++){var i=this.mappingObjects[t];if(console.log(i),i.targets.length>0)for(var n=0;n<i.targets.length;n++){var r=i.targets[n];e.mappingProperties[i.name]?r[0].mapping.replace(e,i.name,i.Name):r[0].mapping.remove()}}this.kill()},kill:function(){var e=0!==this.fx.length?this.fx[this.fx.length-1]:this;this.seq.isRunning&&this.seq.disconnect(),e.disconnect();for(var t=0;t<this.fx.length;t++){var i=this.fx[t];i.seq.isRunning&&i.seq.disconnect()}this.disconnect();for(var t=0;t<this.mappings.length;t++)this.mappings[t].remove();this.clearMarks&&this.clearMarks(),console.log(this.name+" has been terminated.")},play:function(e,t){return this.note?this.note.seq(e,t):this.frequency&&this.frequency.seq(e,t),this},fadeIn:function(e,t){isNaN(t)&&(t=1);var n=i.Clock.time(e),r=(new i.Core.ExponentialDecay({decayCoefficient:.05,length:n}),new i.Core.Line(0,t,n));return this.amp=r,future(function(){this.amp=t}.bind(this),n),this},fadeOut:function(e){var t=i.Clock.time(e),n=(new i.Core.ExponentialDecay({decayCoefficient:5e-5,length:t}),new i.Core.Line(this.amp.value,0,i.Clock.time(t)));return this.amp(n),future(function(){this.amp=0}.bind(this),t),this}}},i.Core=e("gibberish-dsp"),i.Core._init=i.Core.init.bind(i.Core),delete i.Core.init,i.Clock=e("./audio/clock")(t),i.Freesoundjs=e("../external/freesound"),i.Freesound=e("./audio/gibber_freesound")(i.Freesoundjs),i.Seqs=e("./audio/seq")(t),i.Theory=e("./audio/theory")(t),i.FX=e("./audio/fx")(t),i.Oscillators=e("./audio/oscillators")(t),i.Synths=e("./audio/synths")(t),i.Busses=e("./audio/bus")(t),i.Analysis=e("./audio/analysis")(t),i.Envelopes=e("./audio/envelopes")(t),i.Percussion=e("./audio/drums")(t),i.Input=e("./audio/audio_input")(t),i.Samplers=e("./audio/sampler")(t),i.PostProcessing=e("./audio/postprocessing")(t),i.Arp=e("./audio/arp")(t),i}},{"../external/freesound":2,"./audio/analysis":5,"./audio/arp":6,"./audio/audio_input":7,"./audio/bus":8,"./audio/clock":9,"./audio/drums":10,"./audio/envelopes":11,"./audio/fx":12,"./audio/gibber_freesound":13,"./audio/oscillators":14,"./audio/postprocessing":15,"./audio/sampler":16,"./audio/seq":17,"./audio/synths":18,"./audio/theory":19,"gibberish-dsp":1}],5:[function(e,t){t.exports=function(t){"use strict";var i,n={value:{min:0,max:255,output:s,wrap:!1,timescale:"graphics"}},r=e("gibberish-dsp"),o=t.dollar,a=t.outputCurves,s=(a.LINEAR,a.LOGARITHMIC),l={FFT:function(e,a){if("undefined"==typeof i){i=r.context.createAnalyser(),r.node.connect(i),i.fftSize=e||32,i.updateRate=a||40,i.values=new Uint8Array(i.frequencyBinCount),i.children=[];for(var s=0;s<i.frequencyBinCount;s++)!function(){var e=s,r={},a=0; Object.defineProperties(r,{value:{configurable:!0,get:function(){return a},set:function(e){a=e}}}),t.createProxyProperties(r,o.extend({},n),!1),i[e]=r,i.children.push(r),r.type="mapping",r.index=e,r.min=0,r.max=255,r.valueOf=function(){return this.value.value}}();setInterval(function(){i.getByteFrequencyData(i.values);for(var e=0;e<i.values.length;e++)i[e].value=i.values[e]},i.updateRate)}else e&&(i.fftSize=e),a&&(i.updateRate=a);return i},Follow:function(e,i){var n=new r.Follow(e,i),o={value:{min:0,max:1,output:s,timescale:"audio"}};return t.createProxyProperties(n,o),n}};return l}},{"gibberish-dsp":1}],6:[function(e,t){t.exports=function(t){var i,n=e("../../external/teoria.min"),r=t.dollar,o=(t.outputCurves,e("./seq"));return i=function(e,i,a,s,l){var h=o();r.extend(h,{name:"Arp",notes:[],pattern:a||"up",notation:e||"C4m7",mult:s||1,init:!1,speed:isNaN(i)?_4:i,scale:l||null,chord:function(e){var t=[];if(this.notation=e,"undefined"==typeof this.scale||null===this.scale&&"string"==typeof e){console.log("redoing notes...");for(var i=0;i<this.mult;i++){var r,o,a=[],s=this.notation.slice(0,1);isNaN(this.notation.charAt(1))?(s+=this.notation.charAt(1),r=parseInt(this.notation.slice(2,3)),o=this.notation.slice(3)):(r=parseInt(this.notation.slice(1,2)),o=this.notation.slice(2)),r+=i;for(var e=n.note(s+r).chord(o),l=0;l<e.notes.length;l++){var h=e.notes[l].fq();a[l]=h}t=t.concat(a)}}else for(var i=0;i<this.mult;i++){for(var a=[],l=0;l<this.notation.length;l++)a[l]=this.notation[l]+7*i;t=t.concat(a)}this.notes=this.patterns[this.pattern](t),this.seqs[0]&&(this.seqs[0].values=this.notes)},set:function(e,t,i,n,r){this.speed=t||this.speed,this.pattern=i||this.pattern,this.mult=n||this.mult,this.chord(e,r)},patterns:{up:function(e){return e},down:function(e){return e.reverse()},updown:function(e){var t=e.slice(0);return t.reverse(),e.concat(t)},updown2:function(e){var t=e.slice(0);return t.pop(),t.reverse(),t.pop(),e.concat(t)}}}),h.seq=h,h.__shuffle=h.shuffle,h.shuffle=function(){h.__shuffle()},t.createProxyMethods(h,["shuffle","reset","chord"]),h.chord(h.notation);var c=null;Object.defineProperty(h,"target",{get:function(){return c},set:function(e){c=e;var n={key:"note",target:c,values:h.notes,durations:t.Clock.time(i)};h.add(n),h.start()}});var u=i;return Object.defineProperty(h,"speed",{get:function(){return u},set:function(e){u=e;for(var i=0;i<h.seqs.length;i++)h.seqs[0].durations=t.Clock.time(u)}}),h}}},{"../../external/teoria.min":3,"./seq":17}],7:[function(e,t){t.exports=function(t){"use strict";var i={},n=e("gibberish-dsp"),r=t.outputCurves,o=r.LINEAR,a=r.LOGARITHMIC,s={amp:{min:0,max:1,hardMax:2,output:a,timescale:"audio",dimensions:1},out:{min:0,max:1,output:o,timescale:"audio",dimensions:1}},l="Input";return i=function(){var e=(new n.Input).connect(t.Master),i=Array.prototype.slice.call(arguments,0);return e.type="Gen",$.extend(!0,e,t.Audio.ugenTemplate),e.fx.ugen=e,Object.defineProperty(e,"_",{get:function(){return e.kill(),e},set:function(){}}),t.createProxyProperties(e,s),t.processArguments2(e,i,l),e.toString=function(){return"> "+l},e}}},{"gibberish-dsp":1}],8:[function(e,t){t.exports=function(t){"use strict";for(var i=t.dollar,n=e("gibberish-dsp"),r=t.outputCurves,o=r.LINEAR,a=(r.LOGARITHMIC,[["Bus2","Bus"]]),s={amp:{min:0,max:1,output:o,timescale:"audio"},pan:{min:-.75,max:.75,output:o,timescale:"audio"},out:{min:0,max:1,output:o,timescale:"audio",dimensions:1}},l=!1,h={mappingProperties:s,Presets:{}},c=0;c<a.length;c++)!function(){var e=Array.isArray(a[c])?a[c][0]:a[c],r=Array.isArray(a[c])?a[c][1]:a[c];h[r]=function(){var o=t.processArguments(arguments,r);return Array.isArray(o)?(o.unshift(0),o=t.construct(n[e],o)):o=new n[e](o),l?o.connect(Master):l=!0,o.type="Gen",Object.defineProperty(o,"_",{get:function(){return o.kill(),o},set:function(){}}),i.extend(!0,o,t.Audio.ugenTemplate),o.fx.ugen=o,t.createProxyProperties(o,s),o}}();return h.Group=function(){var e=t.processArguments(arguments,"Bus2");e=new n.Bus2,l?e.connect(Master):l=!0,e.type="FX",i.extend(!0,e,t.Audio.ugenTemplate),e.fx.ugen=e,t.createProxyProperties(e,s),i.extend(e,{add:function(){for(var t=0;t<arguments.length;t++)arguments[t].disconnect(),arguments[t].connect(e)},remove:function(){for(var t=0;t<arguments.length;t++)arguments[t].disconnect(e)},free:function(){for(var t=0;t<arguments.length;t++)arguments[t].disconnect(e),arguments[t].connect()}});for(var r=0;r<arguments.length;r++)e.add(arguments[r]);return e},h}},{"gibberish-dsp":1}],9:[function(e,t){t.exports=function(t){"use strict";var i=[],n=t.dollar,r=t.outputCurves,o=r.LINEAR,a=(r.LOGARITHMIC,e("gibberish-dsp")),s={seq:null,bpm:null,maxMeasures:44,baseBPM:120,metronome:null,currentBeat:0,beatsPerMeasure:4,codeToExecute:[],signature:{lower:4,upper:4},sequencers:[],timeProperties:["attack","decay","sustain","release","offset","time"],phase:0,processBeat:function(){if(s.currentBeat=s.currentBeat>=s.signature.upper?1:s.currentBeat+1,1===s.currentBeat&&s.codeToExecute.length>0){for(var e=0;e<s.codeToExecute.length;e++)try{"function"==typeof s.codeToExecute[e].function?s.codeToExecute[e].function():t.Environment?t.Environment.modes[s.codeToExecute[e].cm.doc.mode.name]._run(s.codeToExecute[e].code,s.codeToExecute[e].pos,s.codeToExecute[e].cm):t.run(s.codeToExecute[e].code,s.codeToExecute[e].pos,s.codeToExecute[e].cm)}catch(i){console.error("FAILED TO EXECUTE CODE:",s.codeToExecute[e].code,i)}s.codeToExecute.length=0}null!==s.metronome&&s.metronome.draw(s.currentBeat,s.signature.upper),s.phase+=s.beats(1)},getTimeSinceStart:function(){return s.phase+s.seq.phase},reset:function(){this.phase=0,this.currentBeat=0,this.rate=1,this.start()},tap:function(){var e=t.Clock.getTimeSinceStart();for(i[2]&&e-i[2]>88200&&(i.length=0),i.unshift(e);i.length>3;)i.pop();if(3===i.length){var n=(i[0]+i[1]-2*i[2])/3,r=44100/n,o=60*r;t.Clock.bpm=o}},start:function(e){if(e){n.extend(this,{properties:{rate:1},name:"master_clock",callback:function(e){return e}}),this.__proto__=new a.ugen,this.__proto__.init.call(this);var i=this.baseBPM;Object.defineProperty(s,"bpm",{get:function(){return i},set:function(e){i=e,s.rate=i/s.baseBPM}}),Object.defineProperty(this,"timeSignature",{get:function(){return s.signature.upper+"/"+s.signature.lower},set:function(e){var t=e.split("/");2!==t.length||t[0]===s.signature.upper&&t[1]===s.signature.lower||(s.signature.upper=parseInt(t[0]),s.signature.lower=parseInt(t[1]),s.currentBeat=1!=s.currentBeat?0:1)}}),t.createProxyProperties(this,{rate:{min:.1,max:2,output:o,timescale:"audio"},bpm:{min:20,max:200,output:o,timescale:"audio"}})}s.seq=new a.PolySeq({seqs:[{target:s,values:[s.processBeat.bind(s)],durations:[.25]}],rate:s}),s.seq.connect().start(),s.seq.timeModifier=s.time.bind(s)},addMetronome:function(e){this.metronome=e,this.metronome.init()},time:function(e){var t;return t=e<this.maxMeasures?s.beats(e*s.signature.lower):e},Time:function(e){var t;return t=s.Beats(e<this.maxMeasures?e*s.signature.lower:e)},beats:function(e){var t="undefined"!=typeof a.context?a.context.sampleRate:44100,i=t/(s.baseBPM/60);return i*e*(4/s.signature.lower)},Beats:function(e){return function(){return t.Clock.beats(e)}}};return s}},{"gibberish-dsp":1}],10:[function(_dereq_,module,exports){module.exports=function(Gibber){"use strict";for(var Percussion={Presets:{}},Gibberish=_dereq_("gibberish-dsp"),$=Gibber.dollar,Clock=_dereq_("./clock")(Gibber),curves=Gibber.outputCurves,LINEAR=curves.LINEAR,LOGARITHMIC=curves.LOGARITHMIC,types=["Kick","Snare","Hat","Conga","Cowbell","Clave","Tom"],_mappingProperties={Drums:{pitch:{min:.25,max:4,output:LINEAR,timescale:"audio"},amp:{min:0,max:1,output:LOGARITHMIC,timescale:"audio"},pan:{min:0,max:1,output:LINEAR,timescale:"audio"},out:{min:0,max:1,output:LINEAR,timescale:"audio",dimensions:1}},XOX:{amp:{min:0,max:1,output:LOGARITHMIC,timescale:"audio"},pan:{min:0,max:1,output:LINEAR,timescale:"audio"},out:{min:0,max:1,output:LINEAR,timescale:"audio",dimensions:1}},Kick:{amp:{min:0,max:1,output:LOGARITHMIC,timescale:"audio"},out:{min:0,max:1,output:LINEAR,timescale:"audio",dimensions:1}},Snare:{amp:{min:0,max:1,output:LOGARITHMIC,timescale:"audio"},snappy:{min:.25,max:1.5,output:LOGARITHMIC,timescale:"audio"},tune:{min:0,max:2,output:LOGARITHMIC,timescale:"audio"},out:{min:0,max:1,output:LINEAR,timescale:"audio",dimensions:1}},Hat:{amp:{min:0,max:1,output:LOGARITHMIC,timescale:"audio"},out:{min:0,max:1,output:LINEAR,timescale:"audio",dimensions:1}},Conga:{amp:{min:0,max:1,output:LOGARITHMIC,timescale:"audio"},out:{min:0,max:1,output:LINEAR,timescale:"audio",dimensions:1}},Cowbell:{out:{min:0,max:1,output:LINEAR,timescale:"audio",dimensions:1},amp:{min:0,max:1,output:LOGARITHMIC,timescale:"audio"}},Clave:{out:{min:0,max:1,output:LINEAR,timescale:"audio",dimensions:1},amp:{min:0,max:1,output:LOGARITHMIC,timescale:"audio"}},Tom:{out:{min:0,max:1,output:LINEAR,timescale:"audio",dimensions:1},amp:{min:0,max:1,output:LOGARITHMIC,timescale:"audio"}}},i=0;i<types.length;i++)!function(){var e=Array.isArray(types[i])?types[i][0]:types[i],t=Array.isArray(types[i])?types[i][1]:types[i];Percussion[t]=function(){var i,n=Array.prototype.slice.call(arguments);return"object"==typeof n[0]&&"undefined"==typeof n[0].maxVoices?n[0].maxVoices=1:"undefined"==typeof n[0]&&(n[0]={maxVoices:1}),i=Gibber.processArguments(n,t),i=Array.isArray(i)?Gibber.construct(Gibberish[e],i).connect(Gibber.Master):new Gibberish[e](i).connect(Gibber.Master),i.type="Gen",$.extend(!0,i,Gibber.Audio.ugenTemplate),i.fx.ugen=i,i._note=i.note.bind(i),i.note=function(){var e=Array.prototype.splice.call(arguments,0);"string"==typeof e[0]&&(e[0]=Gibber.Theory.Teoria.note(e[0]).fq()),this._note.apply(this,e)},Gibber.createProxyProperties(i,_mappingProperties[t]),Gibber.createProxyMethods(i,["note","send"]),i.toString=function(){return"> "+t},Object.defineProperty(i,"_",{get:function(){return i.kill(),i},set:function(){}}),i}}();return Percussion.Drums=function(_sequence,_timeValue,_amp,_freq){var args=Array.prototype.slice.call(arguments),obj={},props=Gibber.processArguments(args,"Drums");$.extend(!0,obj,props),obj=Array.isArray(obj)?Gibber.construct(Gibberish.Bus2,obj).connect(Gibber.Master):new Gibberish.Bus2(obj).connect(Gibber.Master),obj.name="Drums",obj.type="Gen",obj.children=[],$.extend(!0,obj,Gibber.Audio.ugenTemplate),obj.fx.ugen=obj,Object.defineProperty(obj,"_",{get:function(){return obj.kill(),obj},set:function(){}}),obj.kit=Percussion.Drums.kits["default"],"object"==typeof arguments[0]&&arguments[0].kit&&(obj.kit=Percussion.Drums.kits[arguments[0].kit],arguments[0].kit=obj.kit);for(var key in obj.kit){var drum=obj.kit[key];obj[key]={sampler:new Gibberish.Sampler({file:drum.file,pitch:1,amp:drum.amp}),pitch:drum.pitch,amp:drum.amp},obj[key].sampler.pan=drum.pan,obj[key].sampler.connect(obj),obj[key].fx=obj[key].sampler.fx,obj.children.push(obj[key].sampler)}if(obj.mod=obj.polyMod,obj.removeMod=obj.removePolyMod,obj.connect(),Gibber.createProxyProperties(obj,_mappingProperties.Drums),obj.pitch=1,"undefined"!=typeof props)switch($.type(props[0])){case"string":for(var notes=props[0],_seqs=[],_durations=[],__durations=[],seqs=notes.split("|"),timeline={},i=0;i<seqs.length;i++){var seq=seqs[i],duration,hasTime=!1,idx=seq.indexOf(",");if(idx>-1){var _value=seq.substr(0,idx),duration=seq.substr(idx+1);duration=eval(duration),hasTime=!0,seq=_value.trim().split("")}else seq=seq.trim().split(""),duration=1/seq.length;seq.indexOf(".rnd(")>-1&&(seq=seq.split(".rnd")[0],seq=seq.split("").rnd()),"undefined"!=typeof props[1]&&(duration=props[1]),obj.seq.add({key:"note",values:seq,durations:duration,target:obj})}break;case"object":"string"==typeof props[0].note&&(props[0].note=props[0].note.split("")),props[0].target=obj,props[0].durations=Gibber.Clock.Time(props[0].durations?props[0].durations:1/props[0].note.length),props[0].offset=props[0].offset?Gibber.Clock.time(props[0].offset):0;break;case"function":case"array":var length=props[0].length||props[0].values.length,durations="undefined"!=typeof arguments[1]?arguments[1]:Gibber.Clock.Time(1/length);"function"!=typeof durations&&(durations=Gibber.Clock.Time(durations)),obj.seq.add({key:"note",values:[props[0]],durations:durations,target:obj}),obj.pattern=obj.seq.seqs[obj.seq.seqs.length-1].values[0]}return"undefined"==typeof props&&(props={}),props.pitch&&(obj.pitch=props.pitch),"undefined"!=typeof props.snare&&($.extend(obj.snare.sampler,props.snare),$.extend(obj.snare,props.snare)),"undefined"!=typeof props.kick&&($.extend(obj.kick.sampler,props.kick),$.extend(obj.kick,props.kick)),"undefined"!=typeof props.hat&&($.extend(obj.hat.sampler,props.hat),$.extend(obj.hat,props.hat)),"undefined"!=typeof props.openHat&&($.extend(obj.openHat.sampler,props.openHat),$.extend(obj.openHat,props.openHat)),obj.amp=isNaN(_amp)?1:_amp,obj.seq&&obj.seq.tick&&Gibberish.future(obj.seq.tick,1),obj.note=function(e){var t=obj.pitch.value;if($.isArray(e))for(var i=0;i<e.length;i++){var n=e[i];if("string"==typeof n){for(var r in this.kit)if(n===this.kit[r].symbol){console.log(t),this[r].sampler.note(t,this[r].amp);break}}else{var o=obj[Object.keys(obj.kit)[n]];o.sampler.note(t.value,o.sampler.amp)}}else if("string"==typeof e){for(var r in this.kit)if(e===this.kit[r].symbol){this[r].sampler.note(t,this[r].amp),this[r].sampler.pitch=t;break}}else{var a=Object.keys(obj.kit),s=Math.abs(e),r=a[s%a.length],o=obj[r];o.sampler.note(t,o.sampler.amp)}},obj.start=function(){obj.seq.start(!0)},obj.stop=function(){obj.seq.stop()},obj.shuffle=function(){obj.seq.shuffle()},obj.reset=function(){obj.seq.reset()},Gibber.createProxyMethods(obj,["play","stop","shuffle","reset","start","send","note"]),obj.seq.start(!0),Object.defineProperties(obj,{offset:{get:function(){return obj.seq.offset},set:function(e){obj.seq.offset=Gibber.Clock.time(e)}}}),obj.toString=function(){return"Drums : "+obj.seq.seqs[0].values.join("")},obj},Percussion.EDrums=function(_sequence,_timeValue,_amp,_freq){var args=Array.prototype.slice.call(arguments),obj={},props=Gibber.processArguments(args,"Drums");if($.extend(!0,obj,props),obj=Array.isArray(obj)?Gibber.construct(Gibberish.Bus2,obj).connect(Gibber.Master):new Gibberish.Bus2(obj).connect(Gibber.Master),obj.name="XOX",obj.type="Gen",obj.children=[],$.extend(!0,obj,Gibber.Audio.ugenTemplate),obj.fx.ugen=obj,Object.defineProperty(obj,"_",{get:function(){return obj.kill(),obj},set:function(){}}),obj.pitch=1,obj.kick=Gibber.Audio.Percussion.Kick().disconnect(),obj.snare=Gibber.Audio.Percussion.Snare().disconnect(),obj.hat=Gibber.Audio.Percussion.Hat().disconnect(),obj.kick.connect(obj),obj.snare.connect(obj),obj.hat.connect(obj),obj.children.push(obj.kick,obj.snare,obj.hat),obj.mod=obj.polyMod,obj.removeMod=obj.removePolyMod,obj.set=function(e){obj.seq.note=e.split("")},Gibber.createProxyProperties(obj,_mappingProperties.XOX),obj.start=function(){obj.seq.start(!0)},obj.stop=function(){obj.seq.stop()},obj.shuffle=function(){obj.seq.shuffle()},obj.reset=function(){obj.seq.reset()},Gibber.createProxyMethods(obj,["play","stop","shuffle","reset","start","send"]),"undefined"!=typeof props)switch($.type(props[0])){case"string":for(var notes=props[0],_seqs=[],_durations=[],__durations=[],seqs=notes.split("|"),timeline={},i=0;i<seqs.length;i++){var seq=seqs[i],duration,hasTime=!1,idx=seq.indexOf(",");if(idx>-1){var _value=seq.substr(0,idx),duration=seq.substr(idx+1);duration=eval(duration),hasTime=!0,seq=_value.trim().split("")}else seq=seq.trim().split(""),duration=1/seq.length;seq.indexOf(".rnd(")>-1?(seq=seq.split(".rnd")[0],seq=seq.split("").rnd()):seq.indexOf(".random(")>-1&&(seq=seq.split(".random")[0],seq=seq.split("").rnd()),"undefined"!=typeof props[1]&&(duration=props[1]),obj.seq.add({key:"note",values:seq,durations:duration,target:obj})}break;case"object":"string"==typeof props[0].note&&(props[0].note=props[0].note.split("")),props[0].target=obj,props[0].durations=Gibber.Clock.Time(props[0].durations?props[0].durations:1/props[0].note.length),props[0].offset=props[0].offset?Gibber.Clock.time(props[0].offset):0,obj.seq=Seq(props[0])}"undefined"==typeof props&&(props={}),props.pitch&&(obj.pitch=props.pitch),"undefined"!=typeof props.snare&&($.extend(obj.snare.sampler,props.snare),$.extend(obj.snare,props.snare)),"undefined"!=typeof props.kick&&($.extend(obj.kick.sampler,props.kick),$.extend(obj.kick,props.kick)),"undefined"!=typeof props.hat&&($.extend(obj.hat.sampler,props.hat),$.extend(obj.hat,props.hat)),"undefined"!=typeof props.openHat&&($.extend(obj.openHat.sampler,props.openHat),$.extend(obj.openHat,props.openHat)),obj.amp=isNaN(_amp)?1:_amp,obj.seq.tick&&Gibberish.future(obj.seq.tick,1);var kcd=1,scd=1,hcd=1,kf=null,sf=null,hf=null;return obj.note=function(e){switch(e){case"x":1===kcd&&(kcd=0),obj.kick.note(),null!==kf&&(kf(),kf=null),kf=Gibber.Utilities.future(function(){kcd=1,kf=null},11e4*obj.kick.decay);break;case"o":1===scd&&(scd=0),obj.snare.note(),null!==sf&&(sf(),sf=null),sf=Gibber.Utilities.future(function(){scd=1,sf=null},obj.snare.decay);break;case"*":1===hcd&&(hcd=0),obj.hat.note(5e3),null!==hf&&(hf(),hf=null),hf=Gibber.Utilities.future(function(){hcd=1,hf=null},5500);break;case"-":1===hcd&&(hcd=0),obj.hat.note(3e4),null!==hf&&(hf(),hf=null),hf=Gibber.Utilities.future(function(){hcd=1,hf=null},30500)}},obj.seq.start(!0),obj.toString=function(){return"EDrums : "+obj.seq.seqs[0].values.join("")},obj},Percussion.XOX=Percussion.EDrums,Percussion.Drums.kits={original:{kick:{file:"resources/audiofiles/kick.wav",symbol:"x",amp:1,pitch:1,pan:0},snare:{file:"resources/audiofiles/snare.wav",symbol:"o",amp:1,pitch:1,pan:.15},hat:{file:"resources/audiofiles/hat.wav",symbol:"*",amp:1,pitch:1,pan:-.1},openHat:{file:"resources/audiofiles/openHat.wav",symbol:"-",amp:1,pitch:1,pan:-.2}},electronic:{kick:{file:"resources/audiofiles/electronic/kick.wav",symbol:"x",amp:1.5,pitch:1,pan:0},snare:{file:"resources/audiofiles/electronic/snare.wav",symbol:"o",amp:1.5,pitch:1,pan:.15},hat:{file:"resources/audiofiles/electronic/hat.wav",symbol:"*",amp:1.5,pitch:1,pan:-.1},openHat:{file:"resources/audiofiles/electronic/openhat.wav",symbol:"-",amp:1.5,pitch:1,pan:-.2}},beatbox:{in_tss:{file:"resources/audiofiles/beatbox/^tss.wav",symbol:"T",amp:1,pitch:1,pan:.1},f:{file:"resources/audiofiles/beatbox/f.wav",symbol:"f",amp:1,pitch:1,pan:-.1},h:{file:"resources/audiofiles/beatbox/h.wav",symbol:"h",amp:1,pitch:1,pan:.1},s:{file:"resources/audiofiles/beatbox/s.wav",symbol:"s",amp:1,pitch:1,pan:-.1},d:{file:"resources/audiofiles/beatbox/d.wav",symbol:"d",amp:1,pitch:1,pan:.8},t:{file:"resources/audiofiles/beatbox/t.wav",symbol:"t",amp:1,pitch:1,pan:.4},k:{file:"resources/audiofiles/beatbox/k.wav",symbol:"k",amp:1,pitch:1,pan:-.1},in_k:{file:"resources/audiofiles/beatbox/^k.wav",symbol:"K",amp:1,pitch:1,pan:-.4},eight:{file:"resources/audiofiles/beatbox/8.wav",symbol:"8",amp:1,pitch:1,pan:-.8},psh:{file:"resources/audiofiles/beatbox/psh.wav",symbol:"p",amp:1,pitch:1,pan:.1},in_p:{file:"resources/audiofiles/beatbox/^p.wav",symbol:"P",amp:1,pitch:1,pan:-.1},pf:{file:"resources/audiofiles/beatbox/pf.wav",symbol:"F",amp:1,pitch:1,pan:.2},phs:{file:"resources/audiofiles/beatbox/phs.wav",symbol:"H",amp:1,pitch:1,pan:-.2},b:{file:"resources/audiofiles/beatbox/b.wav",symbol:"b",amp:1,pitch:1,pan:.3},dot:{file:"resources/audiofiles/beatbox/dot.wav",symbol:".",amp:1,pitch:1,pan:0},duf:{file:"resources/audiofiles/beatbox/duf.wav",symbol:"D",amp:1,pitch:1,pan:-.3},o:{file:"resources/audiofiles/beatbox/o.wav",symbol:"o",amp:1,pitch:1,pan:.6},a:{file:"resources/audiofiles/beatbox/a.wav",symbol:"a",amp:1,pitch:1,pan:.8},u:{file:"resources/audiofiles/beatbox/u.wav",symbol:"u",amp:1,pitch:1,pan:-.8},m:{file:"resources/audiofiles/beatbox/m.wav",symbol:"m",amp:1,pitch:1,pan:-.6},n:{file:"resources/audiofiles/beatbox/n.wav",symbol:"n",amp:1,pitch:1,pan:0}}},Percussion.Drums.kits.default=Percussion.Drums.kits.electronic,Percussion}},{"./clock":9,"gibberish-dsp":1}],11:[function(e,t){t.exports=function(t){"use strict";for(var i={},n=e("gibberish-dsp"),r=t.dollar,o=e("./clock")(t),a=t.outputCurves,s=a.LINEAR,l=(a.LOGARITHMIC,["Line"]),h={Line:{start:{min:0,max:1,output:s,timescale:"audio"},end:{min:0,max:1,output:s,timescale:"audio"},time:{min:0,max:8,output:s,timescale:"audio"}}},c=0;c<l.length;c++)!function(){var e=Array.isArray(l[c])?l[c][0]:l[c],a=Array.isArray(l[c])?l[c][1]:l[c];i[a]=function(){var i,s=Array.prototype.slice.call(arguments,0);return i=new n[e](s[0],s[1],o.time(s[2]),s[3]),i.name=a,r.extend(!0,i,t.Audio.ugenTemplate),t.createProxyProperties(i,h[a]),t.processArguments2(i,s,i.name),console.log(a+" is created."),i}}();return i}},{"./clock":9,"gibberish-dsp":1}],12:[function(e,t){t.exports=function(t){"use strict";var i={Presets:{}},n=e("gibberish-dsp"),r=t.dollar,o=t.outputCurves,a=o.LINEAR,s=o.LOGARITHMIC;n.Gain=function(){n.extend(this,{name:"gain",type:"effect",properties:{input:0,amount:1},callback:function(e,t){return"object"==typeof e?(e[0]*=t,e[1]*=t):e*=t,e}}).init().processProperties(arguments)},n.Gain.prototype=n._effect;for(var l=["Reverb","Delay","Flanger","Vibrato","Distortion","Biquad","Gain","Filter24",["RingModulation","RingMod"],["BufferShuffler","Schizo"],["Decimator","Crush"],"Tremolo"],h={Reverb:{roomSize:{min:.5,max:.995,output:a,timescale:"audio"},damping:{min:0,max:1,output:a,timescale:"audio"},out:{min:0,max:1,output:a,timescale:"audio",dimensions:1}},Delay:{feedback:{min:0,max:1,output:a,timescale:"audio"},time:{min:50,max:88200,output:a,timescale:"audio"},out:{min:0,max:1,output:a,timescale:"audio",dimensions:1}},RingMod:{frequency:{min:20,max:3e3,output:a,timescale:"audio"},amp:{min:0,max:1,output:a,timescale:"audio"},mix:{min:0,max:1,output:a,timescale:"audio"},out:{min:0,max:1,output:a,timescale:"audio",dimensions:1}},Flanger:{rate:{min:.01,max:20,output:s,timescale:"audio"},feedback:{min:0,max:.99,output:a,timescale:"audio"},amount:{min:25,max:300,output:a,timescale:"audio"},out:{min:0,max:1,output:a,timescale:"audio",dimensions:1}},Gain:{amount:{min:0,max:1,output:a,timescale:"audio"}},Vibrato:{rate:{min:.2,max:8,output:s,timescale:"audio"},amount:{min:25,max:300,output:a,timescale:"audio"},feedback:{min:.45,max:.55,output:a,timescale:"audio"},out:{min:0,max:1,output:a,timescale:"audio",dimensions:1}},Filter24:{cutoff:{min:0,max:.7,output:a,timescale:"audio"},resonance:{min:0,max:5.5,output:a,timescale:"audio"},out:{min:0,max:1,output:a,timescale:"audio",dimensions:1}},LPF:{cutoff:{min:.05,max:.7,output:a,timescale:"audio"},resonance:{min:0,max:5.5,output:a,timescale:"audio"},out:{min:0,max:1,output:a,timescale:"audio",dimensions:1}},HPF:{cutoff:{min:0,max:.7,output:a,timescale:"audio"},resonance:{min:0,max:5.5,output:a,timescale:"audio"},out:{min:0,max:1,output:a,timescale:"audio",dimensions:1}},Crush:{bitDepth:{min:1,max:16,output:a,timescale:"audio"},sampleRate:{min:0,max:1,output:a,timescale:"audio"},amp:{min:0,max:1,output:s,timescale:"audio"},out:{min:0,max:1,output:a,timescale:"audio",dimensions:1}},Schizo:{amp:{min:0,max:1,output:s,timescale:"audio"},out:{min:0,max:1,output:a,timescale:"audio",dimensions:1}},Tremolo:{amp:{min:0,max:1,output:s,timescale:"audio"},frequency:{min:.05,max:20,output:s,timescale:"audio"},out:{min:0,max:1,output:a,timescale:"audio",dimensions:1}}},c=0;c<l.length;c++)!function(){var e=Array.isArray(l[c])?l[c][0]:l[c],o=Array.isArray(l[c])?l[c][1]:l[c];i[o]=function(){var i,a=Array.prototype.slice.call(arguments,0);return i=new n[e],i.type="FX",i.name=o,r.extend(!0,i,t.Audio.ugenTemplate),t.createProxyProperties(i,h[o]),t.createProxyMethods(i,["send"]),t.processArguments2(i,a,i.name),a.input=0,i.toString=function(){return"> "+o},i}}();return i.Chorus=function(e,t,i){var n=e||1,r=i||ms(1),o=t||0,a=Flanger(n,o,r,30*ms(1));return a.name="Chorus",a.type="FX",a},i.LPF=function(e,t){var i=isNaN(e)?.2:e,n=isNaN(t)?3.5:t,r=Filter24(i,n,!0);return r.name="LPF",r.type="FX",r},i.HPF=function(e,t){var i=isNaN(e)?.25:e,n=isNaN(t)?3.5:t,r=Filter24(i,n,!0);return r.isLowPass=!1,r.name="HPF",r.type="FX",r},i.Presets.Schizo={sane:{chance:.1,reverseChance:0,pitchChance:.5,mix:.5},borderline:{chance:.1,pitchChance:.25,reverseChance:.5,mix:1},paranoid:{chance:.2,reverseChance:.5,pitchChance:.5,mix:1}},i.Presets.Reverb={space:{roomSize:.99,damping:.23,wet:.75,dry:.25},small:{roomSize:.6,damping:.75,wet:.15,dry:.85},medium:{roomSize:.8,damping:.5,wet:.35,dry:.65},large:{roomSize:.85,damping:.3,wet:.55,dry:.45}},i}},{"gibberish-dsp":1}],13:[function(e,t){t.exports=function(e){e.apiKey="4287s0onpqpp492n8snr27sp3o228nns".replace(/[a-zA-Z]/g,function(e){return String.fromCharCode(("Z">=e?90:122)>=(e=e.charCodeAt(0)+13)?e:e-26)});var t=function(){var i,n,r=Sampler(),o=arguments[0]||96541,a=null;r.done=function(e){a=e};var s=function(e){Gibber.log(i+" loaded."),Gibber.Audio.Core.context.decodeAudioData(e.response,function(e){t.loaded[i]=e.getChannelData(0),r.buffer=t.loaded[i],r.bufferLength=r.buffer.length,r.isLoaded=!0,r.end=r.bufferLength,r.setBuffer(r.buffer),r.setPhase(r.bufferLength),r.filename=i,r.send(Master,1),a&&a()},function(e){console.log("Error with decoding audio data"+e.err)})};if("string"==typeof o){var l=o;Gibber.log("searching freesound for "+l),e.search(l,0,"duration:[0.0 TO 10.0]","rating_desc",null,null,null,function(n){if(i=n.sounds[0].original_filename,"undefined"==typeof t.loaded[i]){var o=new XMLHttpRequest;Gibber.log("now downloading "+i+", "+n.sounds[0].duration+" seconds in length"),o.open("GET",n.sounds[0].serve+"?&api_key="+e.apiKey,!0),o.responseType="arraybuffer",o.onload=function(){s(o)},o.send()}else r.buffer=t.loaded[i],r.filename=i,r.bufferLength=r.buffer.length,r.isLoaded=!0,r.end=r.bufferLength,r.setBuffer(r.buffer),r.setPhase(r.bufferLength),r.send(Master,1),a&&a()},function(){displayError("Error while searching...")})}else if("object"==typeof o){var l=o.query,h=o.filter||"",c=o.sort||"rating_desc",u=o.page||0;pick=o.pick||0,Gibber.log("searching freesound for "+l),h+=" duration:[0.0 TO 10.0]",e.search(l,u,h,c,null,null,null,function(l){if(l.num_results>0){var h=0;"number"==typeof o.pick?h=o.pick:"function"==typeof o.pick?h=o.pick():"random"===o.pick&&(h=rndi(0,l.sounds.length)),i=l.sounds[h].original_filename,"undefined"==typeof t.loaded[i]?(n=new XMLHttpRequest,Gibber.log("now downloading "+i+", "+l.sounds[h].duration+" seconds in length"),n.open("GET",l.sounds[h].serve+"?&api_key="+e.apiKey,!0),n.responseType="arraybuffer",n.onload=function(){s(n)},n.send()):(Gibber.log("using exising loaded sample "+i),r.buffer=t.loaded[i],r.bufferLength=r.buffer.length,r.isLoaded=!0,r.end=r.bufferLength,r.setBuffer(r.buffer),r.setPhase(r.bufferLength),r.send(Master,1),a&&a())}else Gibber.log("No Freesound files matched your query.")},function(){console.log("Error while searching...")})}else"number"==typeof o&&(Gibber.log("downloading sound #"+o+" from freesound.org"),e.get_sound(o,function(t){n=new XMLHttpRequest,i=t.original_filename,n.open("GET",t.serve+"?api_key="+e.apiKey,!0),n.responseType="arraybuffer",n.onload=function(){s(n)},n.send()}));return r};return t.loaded={},t}},{}],14:[function(e,t){t.exports=function(t){"use strict";for(var i=t.dollar,n={Presets:{}},r=e("gibberish-dsp"),o=t.outputCurves,a=o.LINEAR,s=o.LOGARITHMIC,l=["Sine","Triangle","Saw","Square","Noise","PWM"],h={frequency:{min:50,max:3200,hardMin:.01,hardMax:22050,output:s,timescale:"audio",dimensions:1},amp:{min:0,max:1,hardMax:2,output:s,timescale:"audio",dimensions:1},pulsewidth:{min:.01,max:.99,output:a,timescale:"audio",dimensions:1},out:{min:0,max:1,output:a,timescale:"audio",dimensions:1},pan:{min:-1,max:1,output:s,timescale:"audio"},note:{min:50,max:3200,hardMin:.01,hardMax:22050,output:s,timescale:"audio",doNotProxy:!0}},c=0;c<l.length;c++)!function(){var e=Array.isArray(l[c])?l[c][0]:l[c],o=Array.isArray(l[c])?l[c][1]:l[c];n[o]=function(){var n=(new r[e]).connect(t.Master),a=Array.prototype.slice.call(arguments,0);n.type="Gen",i.extend(!0,n,t.Audio.ugenTemplate),n.fx.ugen=n,Object.defineProperty(n,"_",{get:function(){return n.kill(),n},set:function(){}}),"undefined"==typeof n.note&&(n.note=function(e){var t=this.frequency();"number"==typeof t||"function"==typeof t?this.frequency="function"==typeof e?e():e:t[0]=e}),n.name=o,t.createProxyProperties(n,h);var s=["note","send"];return"Sampler"===o&&s.push("pickBuffer"),t.createProxyMethods(n,s),t.processArguments2(n,a,o),n.toString=function(){return"> "+o},n}}();return n.Wavetable=function(e){var n=(new r.Table).connect(t.Master);return e&&n.setTable(e),n.type="Gen",i.extend(!0,n,t.Audio.ugenTemplate),n.fx.ugen=n,Object.defineProperty(n,"_",{get:function(){return n.kill(),n},set:function(){}}),"undefined"==typeof n.note&&(n.note=function(e){var t=this.frequency();"number"==typeof t||"function"==typeof t?this.frequency="function"==typeof e?e():e:t[0]=e}),t.createProxyProperties(n,{frequency:{min:50,max:3200,output:s,timescale:"audio",dimensions:1},amp:{min:0,max:1,output:s,timescale:"audio",dimensions:1},out:{min:0,max:1,output:a,timescale:"audio",dimensions:1}}),t.createProxyMethods(n,["note"]),obj.toString=function(){return"> Wavetable"},n},n.Grains=function(){var e,n="object"==typeof arguments[0]?arguments[0]:arguments[1],o=n.bufferLength||88200,a=Sampler().record(n.input,o);if("string"==typeof arguments[0]){var s=t.Presets.Grains[arguments[0]];"undefined"!=typeof n&&i.extend(s,n),e=new r.Granulator(s)}else e=new r.Granulator(n);return e.loop=function(e,i,n,o){var a=this.position;e=isNaN(e)?.25:e,i=isNaN(i)?.75:i,n=t.Clock.time(isNaN(n)?1:n),o="undefined"==typeof o?!0:o,this.position=new r.Line(e,i,n,o);var s=this;o===!1&&future(function(){s.position=a},t.Clock.time(n))},future(function(){e.setBuffer(a.getBuffer()),e.connect(),e.loop(0,1,o),a.disconnect()},o+1),e.type="Gen",i.extend(!0,e,t.Audio.ugenTemplate),e.fx.ugen=e,Object.defineProperty(e,"_",{get:function(){return e.disconnect(),e},set:function(){}}),e.toString=function(){return"Grains"},e},n.Presets.Grains={tight:{numberOfGrains:10,grainSize:1100,positionMin:-.05,positionMax:.05,speedMin:-.1,speedMax:.1,shouldReverse:!1},cloudy:{numberOfGrains:20,positionMin:-.25,positionMax:.25,speedMin:-.1,speedMax:4,grainSize:4400,shouldReverse:!0},flurry:{speed:2,speedMin:-2,speedMax:2,position:0,positionMin:0,positionMax:0,numberOfGrains:20,grainSize:1100}},n}},{"gibberish-dsp":1}],15:[function(e,t){t.exports=function(){"use strict";var t,i=e("gibberish-dsp"),n=null,r=null,o=null,a=t={Compressor:function(e){if(null===n){n=i.context.createDynamicsCompressor();var t=n.threshold,r=n.ratio,o=n.attack,s=n.release;Object.defineProperties(n,{threshold:{get:function(){return t.value},set:function(e){t.value=e}},ratio:{get:function(){return r.value},set:function(e){r.value=e}},attack:{get:function(){return o.value},set:function(e){o.value=e}},release:{get:function(){return s.value},set:function(e){s.value=e}}}),a.insert(n,e)}return n},LowShelf:function(e){if(null===o){o=i.context.createBiquadFilter(),o.type=3,o.frequency.value=220,o.Q.value=0,o.gain.value=6;var t=o.gain,n=o.frequency,r=o.Q;Object.defineProperties(o,{frequency:{get:function(){return n.value},set:function(e){n.value=e}},gain:{get:function(){return t.value},set:function(e){t.value=e}},Q:{get:function(){return r.value},set:function(e){r.value=e}}}),a.insert(o,e)}return o},HiShelf:function(e){if(null===r){r=i.context.createBiquadFilter(),r.type=4,r.frequency.value=880,r.Q.value=0,r.gain.value=6;var t=r.gain,n=r.frequency,o=r.Q;Object.defineProperties(r,{frequency:{get:function(){return n.value},set:function(e){n.value=e}},gain:{get:function(){return t.value},set:function(e){t.value=e}},Q:{get:function(){return o.value},set:function(e){o.value=e}}}),a.insert(r,e)}return r}};return t}},{"gibberish-dsp":1}],16:[function(e,t){t.exports=function(t){"use strict";var i={Presets:{}},n=e("gibberish-dsp"),r=t.dollar,o=e("./clock")(t),a=t.outputCurves,s=a.LINEAR,l=a.LOGARITHMIC,h={amp:{min:0,max:1,hardMax:2,output:l,timescale:"audio",dimensions:1},start:{min:0,max:1,output:s,timescale:"audio",dimensions:1},end:{min:0,max:1,output:s,timescale:"audio",dimensions:1},pitch:{min:1,max:4,hardMin:.01,hardMax:20,output:l,timescale:"audio"},out:{min:0,max:1,output:s,timescale:"audio",dimensions:1},pan:{min:-1,max:1,output:l,timescale:"audio"},note:{min:.1,max:4,output:l,timescale:"audio",doNotProxy:!0}}; return i.Sampler=function(){var e=(new n.Sampler).connect(t.Master),i=Array.prototype.slice.call(arguments,0),o="Sampler";e.type="Gen",r.extend(!0,e,t.Audio.ugenTemplate),e.fx.ugen=e,Object.defineProperty(e,"_",{get:function(){return e.kill(),e},set:function(){}}),"undefined"==typeof e.note&&(e.note=function(e){var t=this.frequency();"number"==typeof t||"function"==typeof t?this.frequency="object"==typeof e?e.value:e:t[0]=e});var a=e.__lookupSetter__("start").bind(e),s=0;Object.defineProperty(e,"start",{configurable:!0,get:function(){return s},set:function(t){return s=1>=t?t*e.bufferLength:t,a(s),s}});var l=e.__lookupSetter__("end").bind(e),c=1;Object.defineProperty(e,"end",{configurable:!0,get:function(){return c},set:function(t){return c=1>=t?t*e.bufferLength:t,l(c),c}}),t.createProxyProperties(e,h);var u=["note","pickBuffer"];return t.createProxyMethods(e,u),t.processArguments2(e,i,o),e.toString=function(){return o},e},n.Sampler.prototype.readFile=function(e){var t=this;if(e.isFile)return void e.file(function(e){t.readFile(e)});var i=new FileReader;i.readAsArrayBuffer(e),i.onload=function(){n.context.decodeAudioData(i.result,function(i){var r=i.getChannelData(0);t.setBuffer(r),t.length=t.end=r.length,t.buffers[e.name]=r,t.isPlaying=!0,console.log("LOADED",e.name,r.length),n.audioFiles[e.name]=r,t.onload&&t.onload(),0!==t.playOnLoad&&t.note(t.playOnLoad),t.isLoaded=!0})}},n.Sampler.prototype.ondrop=function(e){for(var t=0;t<e.length;t++)!function(i){{var n,r=e[t];new FileReader}if(n=r.webkitGetAsEntry(),n.isDirectory){var o=n.createReader();o.readEntries(function(e){for(var t=e.length;t--;)i.readFile(e[t])})}else i.readFile(n)}(this)},n.Sampler.prototype.pickBuffer=function(){this.switchBuffer(rndi(0,this.getNumberOfBuffers()))},n.Sampler.prototype.record=function(e,i){this.isRecording=!0,console.log("starting recording");var r=this;return this.recorder=new n.Record(e,t.Clock.time(i),function(){console.log("recording finished"),r.setBuffer(this.getBuffer()),r.length=r.end=r.getBuffer().length,r.setPhase(r.length),r.isRecording=!1}).record(),this},i.Looper=function(e,i,n){var a=Bus();r.extend(a,{children:[],input:e,length:o.time(i),numberOfLoops:n,pitch:1,currentLoop:0,loop:function(){a.children[a.currentLoop].record(a.input,a.length);var e={target:a.children[a.currentLoop],durations:a.length,key:"note",values:[null]};return a.seq.add(e),a.seq.start(),future(a.nextLoop,i),a},nextLoop:function(){a.children[++a.currentLoop].record(a.input,a.length),a.currentLoop<a.numberOfLoops-1&&future(a.nextLoop,i);var e={target:a.children[a.currentLoop],durations:a.length,key:"note",values:[null]};a.seq.add(e)}});var s=1;Object.defineProperty(a,"pitch",{configurable:!0,get:function(){return s},set:function(e){s=e;for(var t=0;t<a.children.length;t++)a.children[t].pitch=s}});for(var l=0;n>l;l++)a.children.push(Sampler({pitch:a.pitch})._),a.children[l].send(a,1);return t.createProxyProperties(a,{pitch:h.pitch}),a.stop=function(){a.seq.stop()},a.play=function(){a.seq.play()},a},i}},{"./clock":9,"gibberish-dsp":1}],17:[function(e,t){t.exports=function(t){var i=e("gibberish-dsp"),n=t.dollar,r=["durations","target","scale","offset","doNotStart","priority"],o=function(e,t){var i=n.extend([],e),r=0;return[function(){var e,n;if(e="function"==typeof i.pick?i[i.pick()]:"function"==typeof i[r]?i[r]():i[r++],"number"==typeof t.scale.notes[e])n=t.scale.notes[e];else try{n=t.scale.notes[e].fq()}catch(o){console.error("The frequency could not be obtained from the current scale. Did you specify an invalid mode or root note?"),t.stop()}return r>=i.length&&(r=0),n}]},a=function(){var e,a={},s=[];if("object"!=typeof arguments[0]||Array.isArray(arguments[0]))("function"==typeof arguments[0]||Array.isArray(arguments[0]))&&(a.seqs=[{key:"functions",values:Array.isArray(arguments[0])?arguments[0]:[arguments[0]],durations:t.Clock.time(arguments[1])}],s.push("functions"));else{{var l=arguments[0],h=typeof l.durations;typeof l.target,l.priority}a.target=l.target,"object"==typeof l.scale&&(a.scale=l.scale),"number"==typeof l.offset&&(a.offset=t.Clock.time(l.offset)),"array"===h?a.durations=l.durations:"undefined"!==h&&(a.durations=[l.durations]),a.keysAndValues={},a.seqs=[],a.autofire=[];for(var c in l)if(-1===r.indexOf(c)){var u=n.type(l[c]),p={key:c,target:a.target,durations:a.durations};"array"===u||"number"==typeof l.length?p.values=l[c]:"undefined"!==u&&(p.values=[l[c]]),a.seqs.push(p),s.push(c)}if("scale"in a){var f=s.indexOf("note"),d=s.indexOf("chord");if(f>-1&&(a.seqs[f].values=o(a.seqs[f].values,a)),d>-1){var m=n.extend([],a.seqs[d]),g=0;a.seqs[d]=[function(){var e,t=[];return e="function"==typeof m.pick?m[m.pick()]:"function"==typeof m[g]?m[g]():m[g++],t=a.scale.chord(e),g>=m.length&&(g=0),t}]}}}e=new i.PolySeq(a),e.timeModifier=t.Clock.time.bind(t.Clock),e.name="Seq",e.save={},e.oldShuffle=e.shuffle,delete e.shuffle,e.rate=t.Clock;var v=e.__lookupSetter__("rate"),y=e.rate;Object.defineProperty(e,"rate",{get:function(){return y},set:function(i){y=Mul(t.Clock,i),v.call(e,y)}});var b=e.nextTime,x=e.__lookupSetter__("nextTime");Object.defineProperty(e,"nextTime",{get:function(){return b},set:function(e){b=t.Clock.time(e),x(b)}});var w=e.offset;Object.defineProperty(e,"offset",{get:function(){return w},set:function(t){w=t,e.nextTime+=w}}),e.nextTime+=e.offset;for(var _=0;_<s.length;_++)!function(e){var t=s[_],i=_;Object.defineProperty(e,t,{get:function(){return e.seqs[i].values},set:function(n){"note"===t&&e.scale&&(n=o(n,e)),e.seqs[i].values=n}})}(e);var S=null;return Object.defineProperty(e,"durations",{get:function(){return S},set:function(t){S=t;for(var i=0;i<e.seqs.length;i++){var n=e.seqs[i];n.durations=S}}}),arguments[0]&&!arguments[0].doNotStart&&e.start(!0),e.toString=function(){return"> Seq"},e.gibber=!0,e};n.extend(i.PolySeq.prototype,{constructor:a,replaceWith:function(){this.kill()},kill:function(){this.target&&this.target.sequencers&&this.target.sequencers.splice(this.target.sequencers.indexOf(this),1),this.stop().disconnect()},applyScale:function(){for(var e=0;e<this.seqs.length;e++){var t=this.seqs[e];("note"===t.key||"frequency"===t.key)&&(t.values=o(t.values,this))}},once:function(){return this.repeat(1),this},reset:function(){if(0!==Object.keys(this.save).length)for(var e in this.save)for(var t=this.save[e],i=0;i<this.seqs.length;i++)if(this.seqs[i].key===e){this.seqs[i].values=Array.isArray(t)?this.save[e].slice(0):this.save[e];break}},shuffle:function(){if(0===Object.keys(this.save).length)for(var e=0;e<this.seqs.length;e++){var t=this.seqs[e].values;this.save[this.seqs[e].key]=Array.isArray(t)?t.slice(0):t}var i=Array.prototype.slice.call(arguments,0);this.oldShuffle.apply(this,i)}});var s=function(){var e,i=arguments[0];return i.root=i.root||"c4",i.mode=i.mode||"aeolian",console.log(i),e=t.Theory.Scale(i.root,i.mode),delete i.root,delete i.mode,i.scale=e,a(i)},l={Seq:a,ScaleSeq:s};return l}},{"gibberish-dsp":1}],18:[function(e,t){t.exports=function(t){"use strict";for(var i={Presets:{}},n=e("gibberish-dsp"),r=t.dollar,o=e("./clock")(t),a=t.outputCurves,s=a.LINEAR,l=a.LOGARITHMIC,h=[["PolySynth","Synth"],["PolyFM","FM"],["PolySynth2","Synth2"],["MonoSynth","Mono"],["PolyKarplusStrong","Pluck"]],c={Synth:{note:{min:50,max:3200,output:l,timescale:"audio",doNotProxy:!0},frequency:{min:50,max:3200,output:l,timescale:"audio"},amp:{min:0,max:1,output:l,timescale:"audio"},pulsewidth:{min:.01,max:.99,output:s,timescale:"audio"},attack:{min:o.maxMeasures+1,max:176400,output:s,timescale:"audio"},decay:{min:o.maxMeasures+1,max:176400,output:s,timescale:"audio"},sustain:{min:o.maxMeasures+1,max:176400,output:s,timescale:"audio"},release:{min:o.maxMeasures+1,max:176400,output:s,timescale:"audio"},pan:{min:-1,max:1,output:l,timescale:"audio"},sustainLevel:{min:.01,max:1,output:l,timescale:"audio"},out:{min:0,max:1,output:s,timescale:"audio",dimensions:1}},Synth2:{note:{min:50,max:3200,output:l,timescale:"audio",doNotProxy:!0},frequency:{min:50,max:3200,output:s,timescale:"audio"},amp:{min:0,max:1,output:l,timescale:"audio"},pulsewidth:{min:.01,max:.99,output:s,timescale:"audio"},attack:{min:o.maxMeasures+1,max:176400,output:s,timescale:"audio"},decay:{min:o.maxMeasures+1,max:176400,output:s,timescale:"audio"},sustain:{min:o.maxMeasures+1,max:176400,output:s,timescale:"audio"},release:{min:o.maxMeasures+1,max:176400,output:s,timescale:"audio"},sustainLevel:{min:.01,max:1,output:l,timescale:"audio"},cutoff:{min:0,max:.7,output:s,timescale:"audio"},resonance:{min:0,max:5.5,output:s,timescale:"audio"},pan:{min:-1,max:1,output:l,timescale:"audio"},out:{min:0,max:1,output:s,timescale:"audio",dimensions:1}},Mono:{note:{min:50,max:3200,output:l,timescale:"audio",doNotProxy:!0},frequency:{min:50,max:3200,output:s,timescale:"audio"},amp:{min:0,max:1,output:l,timescale:"audio"},pulsewidth:{min:.01,max:.99,output:s,timescale:"audio"},attack:{min:o.maxMeasures+1,max:176400,output:l,timescale:"audio"},decay:{min:o.maxMeasures+1,max:176400,output:l,timescale:"audio"},cutoff:{min:0,max:.7,output:s,timescale:"audio"},detune2:{min:0,max:.15,output:s,timescale:"audio"},detune3:{min:0,max:.15,output:s,timescale:"audio"},glide:{min:.99,max:.999995,output:s,timescale:"audio"},resonance:{min:0,max:5.5,output:s,timescale:"audio"},pan:{min:-1,max:1,output:l,timescale:"audio"},out:{min:0,max:1,output:s,timescale:"audio",dimensions:1}},FM:{note:{min:50,max:3200,output:l,timescale:"audio",doNotProxy:!0},frequency:{min:50,max:3200,output:s,timescale:"audio"},amp:{min:0,max:1,output:l,timescale:"audio"},attack:{min:o.maxMeasures+1,max:176400,output:s,timescale:"audio"},decay:{min:o.maxMeasures+1,max:176400,output:s,timescale:"audio"},sustain:{min:o.maxMeasures+1,max:176400,output:s,timescale:"audio"},release:{min:o.maxMeasures+1,max:176400,output:s,timescale:"audio"},sustainLevel:{min:.01,max:1,output:l,timescale:"audio"},cmRatio:{min:.1,max:50,output:s,timescale:"audio"},index:{min:.1,max:50,output:s,timescale:"audio"},pan:{min:-1,max:1,output:l,timescale:"audio"},out:{min:0,max:1,output:s,timescale:"audio",dimensions:1}},Pluck:{note:{min:50,max:3200,output:l,timescale:"audio",doNotProxy:!0},frequency:{min:50,max:3200,output:s,timescale:"audio"},amp:{min:0,max:1,output:l,timescale:"audio"},blend:{min:0,max:1,output:s,timescale:"audio"},damping:{min:0,max:1,output:s,timescale:"audio"},pan:{min:-1,max:1,output:l,timescale:"audio"},out:{min:0,max:1,output:s,timescale:"audio",dimensions:1}}},u=0;u<h.length;u++)!function(){var e=Array.isArray(h[u])?h[u][0]:h[u],o=Array.isArray(h[u])?h[u][1]:h[u];i[o]=function(){var i,a,s=Array.prototype.slice.call(arguments),l=1,h=!1,u=!1;if("object"==typeof s[0]&&("undefined"!=typeof s[0].maxVoices&&s[0].maxVoices&&(l=s[0].maxVoices),"undefined"!=typeof s[0].useADSR?(h=s[0].useADSR,"undefined"!=typeof s[0].requireReleaseTrigger&&(u=s[0].requireReleaseTrigger)):u=!1,"undefined"!=typeof s[0].useADSR&&(h=s[0].useADSR),"undefined"!=typeof s[0].scale&&(a=s[0].scale)),i=new n[e]({maxVoices:l,useADSR:h,requireReleaseTrigger:u,scale:a}).connect(t.Master),i.type="Gen",r.extend(!0,i,t.Audio.ugenTemplate),i.fx.ugen=i,"Mono"===o&&(i.note=function(e,t){"undefined"!=typeof t&&0!==t&&(this.amp=t),0!==t&&("object"!=typeof this.frequency?this.frequency=e:"property"!==this.frequency.type?(this.frequency[0]=e,n.dirty(this)):this.frequency=e,i.envelope.getState()>0&&i.envelope.run())}),i._note=i.note.bind(i),i.note=function(){var e=Array.prototype.splice.call(arguments,0);if("string"==typeof e[0])e[0]=t.Theory.Teoria.note(e[0]).fq();else if("object"==typeof e[0]&&(e[0]=e[0].valueOf()),e[0]<t.minNoteFrequency){var n=i.scale||t.scale,r=n.notes[e[0]];if(i.octave&&0!==i.octave)for(var o=i.octave>0?1:0,a=Math.abs(i.octave),s=0;a>s;s++)r*=o?2:.5;e[0]=r}return this._note.apply(this,e),this},i.chord=t.Theory.chord,Object.defineProperty(i,"_",{get:function(){return i.kill(),i},set:function(){}}),t.createProxyProperties(i,c[o]),t.createProxyMethods(i,["note","chord","send"]),i.name=o,t.processArguments2(i,s,i.name),i.toString=function(){return o},"Mono"!==o){var p=i._frequency;Object.defineProperty(i,"frequency",{configurable:!0,get:function(){return this._frequency},set:function(e){if(p=e,this.children)for(var t=0;t<this.children.length;t++)"number"==typeof this.children[t].frequency?this.children[t].frequency=p:this.children[t].frequency[0]=p}})}var f=i.scale;return i.scale&&(i.seq.scale=f),Object.defineProperty(i,"scale",{get:function(){return f},set:function(e){f=e,i.seq.scale=f}}),i}}();return i.Presets.Synth={"short":{attack:44,decay:1/16},bleep:{waveform:"Sine",attack:44,decay:1/16},rhodes:{waveform:"Sine",maxVoices:4,presetInit:function(){this.fx.add(t.Audio.FX.Tremolo(2,.2))},attack:44,decay:1},calvin:{waveform:"PWM",maxVoices:4,amp:.075,presetInit:function(){this.fx.add(t.Audio.FX.Delay(1/6,.5),t.Audio.FX.Vibrato())},attack:44,decay:.25}},i.Presets.Synth2={pad2:{waveform:"Saw",maxVoices:4,attack:1.5,decay:.5,cutoff:.3,filterMult:.35,resonance:4.5,amp:1.25},pad4:{waveform:"Saw",maxVoices:4,attack:2,decay:2,cutoff:.3,filterMult:.35,resonance:4.5,amp:1.25}},i.Presets.Mono={"short":{attack:44,decay:1/16},lead:{presetInit:function(){this.fx.add(t.Audio.FX.Delay(.25,.35),t.Audio.FX.Reverb())},attack:1/8,decay:.5,octave3:0,cutoff:.2,filterMult:.5,resonance:5,isLowPass:!1},winsome:{presetInit:function(){this.lfo=t.Audio.Oscillators.Sine(.234375)._,this.lfo.amp=.075,this.lfo.frequency=2,this.cutoff=this.lfo,this.detune2=this.lfo},attack:o.maxMeasures,decay:1,cutoff:.2},bass:{attack:o.maxMeasures,decay:1/8-o.maxMeasures,octave:-2,octave2:-1,cutoff:.5,filterMult:.2,resonance:1},bass2:{attack:o.maxMeasures,decay:1/6,octave:-2,octave2:0,octave3:0,cutoff:.5,filterMult:.2,resonance:1,amp:.65},easy:{attack:o.maxMeasures,decay:2,octave2:0,octave3:0,cutoff:.3,glide:.9995},easyfx:{attack:o.maxMeasures,decay:2,presetInit:function(){this.fx.add(t.Audio.FX.Delay(o.time(1/6),.3))},amp:.3,octave2:0,octave3:0,cutoff:.3,glide:.9995},dark:{resonance:0,attack:44,cutoff:.075,amp:.35,filterMult:0},dark2:{filterMult:.1,attack:o.maxMeasures,octave2:0,octave3:0,decay:.25,amp:.45},noise:{resonance:20,decay:.5,cutoff:.3,glide:.99995,detune3:0,detune2:0,filterMult:0,presetInit:function(){this.fx.add(t.Audio.FX.Gain(.1),t.Audio.FX.Delay(1/6,.35))}}},i.Presets.FM={stabs:{maxVoices:4,cmRatio:1/1.0007,index:5,attack:o.maxMeasures,decay:1/8,amp:.1,presetInit:function(){this.bus=t.Audio.Busses.Bus().fx.add(t.Audio.FX.Delay(1/8,.75),t.Audio.FX.LPF({resonance:4})),this.bus.fx[1].cutoff=t.Audio.Core.Binops.Add(.25,t.Audio.Oscillators.Sine(.1,.2)._),this.send(this.bus,.65)}},bass:{cmRatio:1,index:3,presetInit:function(){this.attack=ms(1)},decay:1/16,octave:-2},glockenspiel:{cmRatio:3.5307,index:1,attack:44,decay:44100},radio:{cmRatio:1,index:40,attack:13230,decay:22050},noise:{cmRatio:.04,index:1e3,attack:44.1,decay:4410},frog:{cmRatio:.1,index:2,attack:13230,decay:220.5},gong:{cmRatio:1.4,index:.95,attack:44.1,decay:220500},drum:{cmRatio:1.40007,index:2,attack:44,decay:44100},drum2:{cmRatio:1+Math.sqrt(2),index:.2,attack:44,decay:882},brass:{maxVoices:4,cmRatio:1/1.0007,index:5,attack:4100,decay:1},clarinet:{cmRatio:1.5,index:1.5,attack:2205,decay:8820}},i}},{"./clock":9,"gibberish-dsp":1}],19:[function(e,t){t.exports=function(t){"use strict";var i=e("../../external/teoria.min"),n=t.dollar,r={Teoria:i,Scale:function(e,o){var a={root:"string"==typeof e?i.note(e):e,notes:[],degree:1,chord:function(e,t){var i=[];t=t||0;for(var n=0;n<e.length;n++)i.push(this.notes[e[n]+t]);return i},create:function(e){var n="number"!=typeof e?i.note(e).fq():e,r=a.mode.value||s;if(this.notes.length=0,t.Theory.Scales[r]){var o=t.Theory.Scales[r](n);o.create(1,n),this.notes=o.notes}},set:function(e,t){Array.isArray(arguments[0])?(this.root=arguments[0][0],this.mode=arguments[0][1]):(this.root=e,this.mode=t)}},s=o||"aeolian";Object.defineProperty(a,"mode",{configurable:!0,get:function(){return s},set:function(t){s=t,a.create(e)}});var e=arguments[0]||440;return Object.defineProperty(a,"root",{get:function(){return e},set:function(t){"number"==typeof t?e=t:"string"==typeof t?e=r.Teoria.note(t).fq():"object"==typeof t&&(e=t.accidental?t.fq():r.Teoria.note(t.value).fq()),a.create(e)}}),t.createProxyProperty(a,"root",!0,!1,null,!1,1),t.createProxyProperty(a,"mode",!0,!1,null,!1,1),n.subscribe("/gibber/clear",function(){a.seq.isConnected=!1,a.seq.isRunning=!1,a.seq.destinations.length=0}),a.root=e,a},CustomScale:function(e){var t={notes:[],degree:e||1,ratios:arguments[1]||[1,1.1,1.25,1.3333,1.5,1.666,1.75],create:function(e,t){this.notes=[];for(var i=t,n=0;8>n;n++){for(var r=0;r<this.ratios.length;r++){var o=r+e-1,a=i*(1+Math.floor(o/this.ratios.length));this.notes.push(a*this.ratios[o%this.ratios.length])}i*=2}i=t;for(var n=-1;n>=-8;n--){i/=2;for(var r=0;r<this.ratios.length;r++){var s=n*this.ratios.length+r,o=r+e-1,a=i*(1+Math.floor(o/this.ratios.length));this.notes[s]=a*this.ratios[o%this.ratios.length]}}},chord:function(e,t){var i=[];t=t||0;for(var n=0;n<e.length;n++)i.push(this.notes[e[n]+t]);return i}};return t},Scales:{Major:function(e){return r.CustomScale(e,[1,9/8,5/4,4/3,1.5,5/3,15/8])},Ionian:function(e){return r.CustomScale(e,[1,9/8,5/4,4/3,1.5,5/3,15/8])},Dorian:function(e){return r.CustomScale(e,[1,9/8,1.2,4/3,1.5,5/3,1.8])},Phrygian:function(e){return r.CustomScale(e,[1,16/15,1.2,4/3,1.5,1.6,1.8])},Lydian:function(e){return r.CustomScale(e,[1,9/8,5/4,45/32,1.5,5/3,15/8])},Mixolydian:function(e){return r.CustomScale(e,[1,9/8,5/4,4/3,1.5,1.6,1.8])},Minor:function(e){return r.CustomScale(e,[1,9/8,1.2,4/3,1.5,1.6,1.8])},Aeolian:function(e){return r.CustomScale(e,[1,9/8,1.2,4/3,1.5,1.6,1.8])},Locrian:function(e){return r.CustomScale(e,[1,16/15,1.2,4/3,62/45,1.6,15/8])},MajorPentatonic:function(e){return r.CustomScale(e,[1,9/8,5/4,1.5,5/3])},MinorPentatonic:function(e){return r.CustomScale(e,[1,1.2,4/3,1.5,15/8])},Chromatic:function(e){return r.CustomScale(e,[1,16/15,9/8,1.2,5/4,4/3,45/32,1.5,1.6,5/3,15/8,1.8])},HalfWhole:function(e){return r.CustomScale(e,[1,1.059463,1.189207,1.259921,1.414214,1.498307,1.681793,1.781797])},WholeHalf:function(e){return r.CustomScale(e,[1,1.122462,1.189207,1.33484,1.414214,1.587401,1.681793,1.887749])},Pythagorean:function(e){return r.CustomScale(e,[1,256/243,9/8,32/27,81/64,4/3,729/512,1.5,128/81,27/16,16/9,243/128])},PythagoreanMajor:function(e){return r.CustomScale(e,[1,9/8,81/64,4/3,1.5,27/16,243/128])},PythagoreanMinor:function(e){return r.CustomScale(e,[1,9/8,32/27,4/3,1.5,128/81,16/9])},Limit5:function(e){return r.CustomScale(e,[1,16/15,9/8,1.2,5/4,4/3,45/32,1.5,1.6,5/3,1.8,15/8])},Limit5Major:function(e){return r.CustomScale(e,[1,9/8,5/4,4/3,1.5,5/3,15/8])},Limit5Minor:function(e){return r.CustomScale(e,[1,9/8,1.2,4/3,1.5,1.6,1.8])},Mess3:function(e){return r.CustomScale(e,[1,1.122462,1.189207,1.259921,1.414214,1.498307,1.587401,1.781797,1.887749])},Mess4:function(e){return r.CustomScale(e,[1,1.059463,1.122462,1.33484,1.414214,1.498307,1.587401,1.887749])},Mess5:function(e){return r.CustomScale(e,[1,1.059463,1.33484,1.414214,1.498307,1.887749])},Mess6:function(e){return r.CustomScale(e,[1,1.122462,1.259921,1.33484,1.414214,1.587401,1.781797,1.887749])},Mess7:function(e){return r.CustomScale(e,[1,1.059463,1.122462,1.189207,1.33484,1.414214,1.498307,1.587401,1.681793,1.887749])},Adams:function(e){return r.CustomScale(e,[1,1.122462,1.259921,1.414214,1.498307,1.681793,1.781797])},Equal5Tone:function(e){return r.CustomScale(e,[1,1.15,1.32,1.35,1.52,1.74])},Equal7Tone:function(e){return r.CustomScale(e,[1,1.1,1.22,1.35,1.49,1.64,1.81])},Just:function(e){return r.CustomScale(e,[1,1.0417,1.125,1.2,1.25,1.3333,1.4063,1.5,1.6,1.6667,1.8,1.875])},Shruti:function(e){return r.CustomScale(e,[1,256/243,16/15,10/9,9/8,32/27,1.2,5/4,81/64,4/3,1.35,45/32,729/512,1.5,128/81,1.6,5/3,27/16,16/9,1.8,15/8,243/128,2])}},chord:function(e){if(this.notation=e,"string"==typeof this.notation){var t,n,o=this.notation.slice(0,1);isNaN(this.notation.charAt(1))?(o+=this.notation.charAt(1),t=parseInt(this.notation.slice(2,3)),n=this.notation.slice(3)):(t=parseInt(this.notation.slice(1,2)),n=this.notation.slice(2));for(var a=i.note(o+t).chord(n),s=0;s<a.notes.length;s++){var l=a.notes[s];this.note("number"==typeof c?c:l.fq())}}else for(var h=0;h<this.notation.length;h++){var c,u=this.scale?this.scale.notes[this.notation[h]]:this.notation[h];switch(typeof u){case"number":c=u;break;case"object":c=u.fq();break;case"string":c=r.Teoria.note(u).fq()}this.note(c)}return"undefined"!=typeof arguments[1]&&(this.amp=arguments[1]),this}};return r}},{"../../external/teoria.min":3}],20:[function(e,t){(function(e){!function(){"use strict";function i(e,t,n){for(var r in t)n&&(c(t[r])||l(t[r]))?(c(t[r])&&!c(e[r])&&(e[r]={}),l(t[r])&&!l(e[r])&&(e[r]=[]),i(e[r],t[r],n)):void 0!==t[r]&&(e[r]=t[r])}var n="function"==typeof Zepto,r="function"==typeof jQuery,o="object"==typeof e.$||"function"==typeof e.$,a=null,s=n||r||o,l=Array.isArray,h=function(e){return"object"==typeof e},c=function(e){return h(e)&&Object.getPrototypeOf(e)==Object.prototype};a=s?r?jQuery:n?Zepto:o?e.$:{}:{},s||(a.extend=function(e){var t,n=Array.prototype.slice.call(arguments,1);return"boolean"==typeof e&&(t=e,e=n.shift()),n.forEach(function(n){i(e,n,t)}),e},a.isArray=Array.isArray,a.isPlainObject=c,a.type=function(e){return typeof e});var u={};a.subscribe=function(e,t){"undefined"==typeof u[e]&&(u[e]=[]),u[e].push(t)},a.unsubscribe=function(e,t){if("undefined"!=typeof u[e]){var i=u[e];i.splice(i.indexOf(t),1)}},a.publish=function(e,t){if("undefined"!=typeof u[e])for(var i=u[e],n=0;n<i.length;n++)i[n](t)},t.exports=a}()}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],21:[function(_dereq_,module,exports){!function(){var $=_dereq_("./dollar"),Gibber={dollar:$,Presets:{},GraphicsLib:{},Binops:{},scale:null,minNoteFrequency:50,started:!1,outputCurves:{LINEAR:0,LOGARITHMIC:1},"export":function(e){Gibber.Utilities.export(e),Gibber.Audio&&Gibber.Audio.export(e),Gibber.Graphics&&Gibber.Graphics.export(e),Gibber.Interface&&Gibber.Interface.export(e)},init:function(e){"undefined"==typeof window?(window=GLOBAL,document=GLOBAL.document=!1):"undefined"!=typeof GLOBAL&&(GLOBAL.document||(document=GLOBAL.document=!1));var t={globalize:!0,canvas:null,target:window,graphicsMode:"3d"};"object"==typeof e&&$.extend(t,e),Gibber.Audio&&(Gibber.Audio.init(),t.globalize?t.target.Master=Gibber.Audio.Master:$.extend(Gibber,Gibber.Audio)),Gibber.Graphics,Gibber.Interface,t.globalize&&Gibber.export(t.target),t.target.$=$,Gibber.Utilities.init()},Modules:{},"import":function(e,t){var i=null;if(console.log("Loading module "+e+"..."),-1===e.indexOf("http:"))console.log("loading via post",e),$.post(Gibber.Environment.SERVER_URL+"/gibber/"+e,{},function(n){n=JSON.parse(n);var r=new Function("return "+n.text);return Gibber.Modules[e]=r(),t&&Gibber.Modules[e]&&$.extend(t,Gibber.Modules[e]),Gibber.Modules[e]?("function"==typeof Gibber.Modules[e].init&&Gibber.Modules[e].init(),console.log("Module "+e+" is now loaded.")):console.log("Publication "+e+" is loaded. It may not be a valid module."),null!==i&&i(Gibber.Modules[e]),!1});else{var n=document.createElement("script");n.src=e,n.onload=function(){console.log("Module "+e+" is now loaded."),null!==i&&i()},document.head.appendChild(n)}return{done:function(e){i=e}}},scriptCallbacks:[],run:function(script,pos,cm){var _start=pos.start?pos.start.line:pos.line,tree;try{tree=Gibber.Esprima.parse(script,{loc:!0,range:!0})}catch(e){return void console.error("Parse error on line "+(_start+e.lineNumber)+" : "+e.message.split(":")[1])}for(var __i__=0;__i__<tree.body.length;__i__++){var obj=tree.body[__i__],start={line:_start+obj.loc.start.line-1,ch:obj.loc.start.column},end={line:_start+obj.loc.end.line-1,ch:obj.loc.end.column},src=cm.getRange(start,end),result=null;try{result=eval(src),log("function"!=typeof result?result:"Function")}catch(e){console.error("Error evaluating expression beginning on line "+(start.line+1)+"\n"+e.message)}if(this.scriptCallbacks.length>0)for(var ___i___=0;___i___<this.scriptCallbacks.length;___i___++)this.scriptCallbacks[___i___](obj,cm,pos,start,end,src,_start)}},processArguments:function(e,t){var i;return e.length?"string"==typeof e[0]&&"Drums"!==t&&"XOX"!==t?(i=Gibber.getPreset(e[0],t),"object"==typeof e[1]&&$.extend(i,e[1]),i):Array.prototype.slice.call(e,0):i},processArguments2:function(e,t,i){if(t.length){var n=t[0];if("string"==typeof n&&"Drums"!==i&&"XOX"!==i&&"Shader"!==i)preset=Gibber.getPreset(t[0],i),"object"==typeof t[1]&&$.extend(preset,t[1]),$.extend(e,preset),e.presetInit&&e.presetInit();else if($.isPlainObject(n)&&"undefined"==typeof n.type)$.extend(e,n);else{var r=Object.keys(e.properties);if("FX"===e.type)for(var o=0;o<t.length;o++)e[r[o+1]]=t[o];else for(var o=0;o<t.length;o++)e[r[o]]=t[o]}}},getPreset:function(e,t){var i={};return Gibber.Presets[t]&&Gibber.Presets[t][e]?i=Gibber.Presets[t][e]:Gibber.log(t+" does not have a preset named "+e+"."),i},clear:function(){Gibber.Audio&&Gibber.Audio.clear(),Gibber.Graphics&&Gibber.Graphics.clear(),Gibber.proxy(window),$.publish("/gibber/clear",{}),console.log("Gibber has been cleared.")},proxy:function(e){for(var t="abcdefghijklmnopqrstuvwxyz",i=0;i<t.length;i++){var n=t.charAt(i);"undefined"!=typeof window[n]&&(delete window[n],delete window["___"+n]),function(){var t=n;Object.defineProperty(e,t,{configurable:!0,get:function(){return e["___"+t]},set:function(i){if(i)e["___"+t]&&"function"==typeof e["___"+t].replaceWith&&(e["___"+t].replaceWith(i),console.log(e["___"+t].name+" was replaced with "+i.name)),e["___"+t]=i;else if(e["___"+t]){var n=e["___"+t];n&&"function"==typeof n.kill&&n.kill()}}})}()}},construct:function(e,t){function i(){return e.apply(this,t)}return i.prototype=e.prototype,new i},createMappingObject:function(e,t){var i="function"==typeof e.min?e.min():e.min,n="function"==typeof e.max?e.max():e.max,r="function"==typeof t.min?t.min():t.min,o="function"==typeof t.max?t.max():t.max;if("undefined"==typeof t.object&&t.Value&&(t=t.Value),"undefined"!=typeof e.object[e.Name].mapping)return void e.object[e.Name].mapping.replace(t.object,t.propertyName,t.Name);"undefined"!=typeof t.targets&&-1===t.targets.indexOf(e)&&t.targets.push([e,e.Name]);var a="Out"!==t.Name?t.timescale:"audioOut";return mapping=Gibber.mappings[e.timescale][a](e,t),Object.defineProperties(e.object[e.Name],{min:{configurable:!0,get:function(){return i},set:function(t){i=t,e.object[e.Name].mapping.outputMin=i}},max:{configurable:!0,get:function(){return n},set:function(t){n=t,e.object[e.Name].mapping.outputMax=n}}}),e.object[e.Name].mappingObjects=[],Gibber.createProxyProperty(e.object[e.Name],"min",1,0,{min:i,max:n,output:e.output,timescale:e.timescale,dimensions:1}),Gibber.createProxyProperty(e.object[e.Name],"max",1,0,{min:i,max:n,output:e.output,timescale:e.timescale,dimensions:1}),Object.defineProperties(t.object[t.Name],{min:{configurable:!0,get:function(){return r},set:function(t){r=t,e.object[e.Name].mapping.inputMin=r}},max:{configurable:!0,get:function(){return o},set:function(t){o=t,e.object[e.Name].mapping.inputMax=o}}}),e.object[e.Name].invert=function(){e.object[e.Name].mapping.invert()},"undefined"==typeof e.object.mappings&&(e.object.mappings=[]),e.object.mappings.push(mapping),"undefined"==typeof t.object.mappings&&(t.object.mappings=[]),t.object.mappings.push(mapping),Gibber.defineSequencedProperty(e.object[e.Name],"invert"),mapping},defineSequencedProperty:function(e,t,i){var n,r,o=e[t];!e.seq&&Gibber.Audio&&(e.seq=Gibber.Audio.Seqs.Seq({doNotStart:!0,scale:e.scale,priority:i,target:e})),o.seq=function(a,s){var l={key:t,values:$.isArray(a)||null!==a&&"function"!=typeof a&&"number"==typeof a.length?a:[a],durations:$.isArray(s)?s:"undefined"!=typeof s?[s]:null,target:e,priority:i};return"undefined"!=typeof n&&(n.shouldStop=!0,e.seq.seqs.splice(r,1)),e.seq.add(l),r=e.seq.seqs.length-1,n=e.seq.seqs[r],null===l.durations&&e.seq.autofire.push(n),Object.defineProperties(o.seq,{values:{configurable:!0,get:function(){return e.seq.seqs[r].values},set:function(i){Array.isArray(i)||(i=[i]),"note"===t&&e.seq.scale&&(i=makeNoteFunction(i,e.seq)),e.seq.seqs[r].values=i}},durations:{configurable:!0,get:function(){return e.seq.seqs[r].durations},set:function(t){Array.isArray(t)||(t=[t]),e.seq.seqs[r].durations=t}}}),e.seq.isRunning||(e.seq.offset=Gibber.Clock.time(e.offset),e.seq.start(!0,i)),e},o.seq.stop=function(){n.shouldStop=!0},o.seq.start=function(){n.shouldStop=!1,e.seq.timeline[0]=[n],e.seq.nextTime=0,e.seq.isRunning||e.seq.start(!1,i)}},defineRampedProperty:function(e,t){var i,n=e[t],r=t.slice(1);n.ramp=function(t,n,o){return arguments.length<2?void console.err("ramp requires at least two arguments: target and time."):("undefined"==typeof o&&(o=n,n=t,t=e[r]()),i&&i(),"object"!=typeof t?e[r]=Line(t,n,o):t.retrigger(n,Gibber.Clock.time(o)),i=future(function(){e[r]=n},o),e)}},createProxyMethods:function(e,t){for(var i=0;i<t.length;i++)Gibber.defineSequencedProperty(e,t[i])},defineProperty:function(e,t,i,n,r,o,a){var s="object"==typeof e[t]?e[t].valueOf():e[t],l=t.charAt(0).toUpperCase()+t.slice(1),h=function(i){var n=h;return i&&(e[t]=i,n=e),n};r=o?r||e.mappingProperties[t]:null,$.extend(h,r),$.extend(h,{propertyName:t,Name:l,value:s,type:"property",object:e,targets:[],valueOf:function(){return h.value},toString:function(){var e="";return e="object"==typeof h.value?h.value.toString():h.value},oldSetter:e.__lookupSetter__(t),oldGetter:e.__lookupGetter__(t),oldMappingObjectGetter:e.__lookupGetter__(l),oldMappingObjectSetter:e.__lookupSetter__(l)}),Object.defineProperty(e,t,{configurable:!0,get:function(){return h},set:function(t){if("function"!=typeof t&&("object"!=typeof t||"mapping"!==t.type)||"property"!==t.type&&"mapping"!==t.type){o&&e[h.Name]&&"undefined"!=typeof e[h.Name].mapping&&e[h.Name].mapping.remove&&e[h.Name].mapping.remove(!0);var i=t;if(h.oldSetter){var n=h.oldSetter.call(e,t);"undefined"!=typeof n&&(i=n)}h.value=i}else Gibber.createMappingObject(h,t);return e}}),i&&Gibber.defineSequencedProperty(e,t,a),n&&Gibber.defineRampedProperty(e,t),o&&Object.defineProperty(e,h.Name,{configurable:!0,get:function(){return"function"==typeof h.oldMappingObjectGetter&&h.oldMappingObjectGetter(),h},set:function(t){e[h.Name]=t,"function"==typeof mapping.oldMappingObjectSetter&&mapping.oldMappingObjectSetter(t)}})},createProxyProperty:function(e,t,i,n,r,o,a){o=o===!1?!1:!0,Gibber.defineProperty(e,t,i,n,r,o,a)},createProxyProperties:function(e,t,i,n){var r="undefined"==typeof i?!0:i,o="undefined"==typeof n?!0:n;e.gibber=!0,e.mappingProperties=t,e.mappingObjects=[],"Mouse"===e.name&&console.log(t);for(var a in t)t[a].doNotProxy||Gibber.createProxyProperty(e,a,r,o,t[a])}};Gibber.Utilities=_dereq_("./utilities")(Gibber),Gibber.mappings=_dereq_("./mappings")(Gibber),module.exports=Gibber}()},{"./dollar":20,"./mappings":22,"./utilities":23}],22:[function(e,t){t.exports=function(e){var t={audio:{graphics:function(t,i){"undefined"==typeof i.object.track&&(i.object.track={});var n,r="undefined"!=typeof i.object.track[i.propertyName]?i.object.track[i.propertyName]:new e.Audio.Core.Proxy2(i.object,i.propertyName),o=new e.Audio.Core.OnePole({a0:.005,b1:.995});return i.object.track=r,n=t.object[t.Name].mapping=e.Audio.Core.Binops.Map(r,t.min,t.max,i.min,i.max,t.output,i.wrap),o.input=n,t.object[t.propertyName]=o,n.proxy=r,n.op=o,n.remove=function(e){e||(t.object[t.propertyName]=t.object[t.Name].mapping.getValue()),delete t.object[t.Name].mapping},n},"interface":function(t,i){var n,r="undefined"!=typeof i.track?i.track:new e.Audio.Core.Proxy2(i.object,i.propertyName),o=new e.Audio.Core.OnePole({a0:.005,b1:.995}),a=t.max-t.min,s=(t.object[t.propertyName]-t.min)/a,l=i.min+(i.max-i.min)*s;if(i.object.setValue&&i.object.setValue(l),i.track=r,n=t.object[t.Name].mapping=e.Audio.Core.Binops.Map(r,t.min,t.max,i.min,i.max,t.output,i.wrap),o.input=n,t.object[t.propertyName]=o,n.proxy=r,n.op=o,n.remove=function(e){e||(t.object[t.propertyName]=n.getValue()),delete n },"undefined"!=typeof i.object.label){for(var h="",c=0;c<i.targets.length;c++){var u=i.targets[c];h+=u[0].object.name+"."+u[1],c!==i.targets.length-1&&(h+=" & ")}i.object.label=h}return n.replace=function(e,i,n){r.setInput(e),-1===e[n].targets.indexOf(t)&&e[n].targets.push([t,t.Name])},n},audio:function(t,i){var n,r;return"undefined"!=typeof i.object.track?(n=i.object.track,n.count++):(n=new e.Audio.Core.Proxy2(i.object,i.propertyName),n.count=1),i.object.track=n,t.object[t.propertyName]=e.Audio.Core.Binops.Map(n,t.min,t.max,i.min,i.max),r=t.object[t.Name].mapping=t.object[t.propertyName],r.remove=function(e){e||(t.object[t.propertyName]=r.getValue()),r.op&&r.op.remove(),delete t.object[t.Name].mapping},r.replace=function(i,n,o){var a=new e.Audio.Core.Proxy2(i,n);r.input=a,i[o].targets&&-1===i[o].targets.indexOf(t)&&i[o].targets.push([t,t.Name])},r},audioOut:function(t,i){var n;n=e.Audio.Core.Binops.Map(null,t.min,t.max,0,1,0),t.object[t.propertyName]=t.object[t.Name].mapping=n,"undefined"!=typeof i.object.track?(n.follow=i.object.track,n.follow.count++):(n.follow=new e.Audio.Analysis.Follow({input:i.object,useAbsoluteValue:!0}),n.follow.count=1),i.object.track=n.input=n.follow,n.remove=function(e){e||(t.object[t.propertyName]=t.object[t.Name].mapping.getValue()),n.bus&&n.bus.disconnect(),n.follow&&(n.follow.count--,0===n.follow.count&&(delete i.object.track,n.follow.remove())),delete t.object[t.Name].mapping},n.replace=function(e,i,r){n.follow.input=e,-1===e[r].targets.indexOf(t)&&e[r].targets.push([t,t.Name])};var r=n.follow.bufferSize;return Object.defineProperty(t.object[t.Name],"env",{configurable:!0,get:function(){return r},set:function(t){r=e.Clock.time(t),n.follow.bufferSize=r}}),n}},graphics:{graphics:function(t,i){var n,r=e.Audio.Core.Binops.Map(i.object[i.propertyName],t.min,t.max,i.min,i.max,t.output,i.wrap),o=r.getValue.bind(r);return r.getValue=function(){return r.callback(i.object[i.propertyName],t.min,t.max,i.min,i.max,t.output,i.wrap),o()},n=t.object[t.Name].mapping=r,t.object.mod?t.object.mod(t.propertyName,n,"="):t.modObject.mod(t.modName,n,"="),n.remove=function(){t.object.mod?t.object.removeMod(t.propertyName):t.modObject.removeMod(t.modName),t.object[t.propertyName]=t.object[t.Name].mapping.getValue(),delete t.object[t.Name].mapping},n.replace=function(e){n.input=e},n},"interface":function(t,i){var n,r=e.Audio.Core.Binops.Map(i.object[i.propertyName],t.min,t.max,i.min,i.max,t.output,i.wrap);"undefined"==typeof i.object.functions&&(i.object.functions={},i.object.onvaluechange=function(){for(var e in i.object.functions)i.object.functions[e]()}),n=t.object[t.Name].mapping=r,t.mapping.from=i;var o=t.propertyName+" <- "+i.object.propertyName+"."+i.Name;if(i.object.functions[o]=function(){var e=n.callback(i.object[i.propertyName],t.min,t.max,i.min,i.max,t.output,i.wrap);t.object[t.Name].oldSetter.call(t.object[t.Name],e)},n.replace=function(){},n.remove=function(){console.log("mapping removed"),delete i.object.functions[o]},i.object.setValue&&i.object.setValue(t.object[t.propertyName]),"undefined"!=typeof i.object.label){for(var a="",s=0;s<i.targets.length;s++){var l=i.targets[s];a+=l[0].object.propertyName+"."+l[1],s!==i.targets.length-1&&(a+=" & ")}i.object.label=a}return n},audio:function(t,i){var n;n=t.object[t.Name].mapping=e.Audio.Core.Binops.Map(null,t.min,t.max,i.min,i.max,t.output,i.wrap),n.follow="undefined"!=typeof i.object.track?i.object.track:new e.Audio.Core.Follow({input:i.object[i.propertyName],useAbsoluteValue:!1}),i.object.track=t.object[t.Name].mapping.follow,n.input=n.follow,n.bus=new e.Audio.Core.Bus2({amp:0}).connect(),n.connect(n.bus),n.replace=function(e,i,r){n.follow.input=e,-1===e[r].targets.indexOf(t)&&e[r].targets.push([t,t.Name])};var r=n.follow.bufferSize;return Object.defineProperty(t.object[t.Name],"env",{get:function(){return r},set:function(t){r=e.Clock.time(t),n.follow.bufferSize=r}}),t.object.mod?t.object.mod(t.propertyName,n,"="):t.modObject.mod(t.modName,n,"="),n.remove=function(){this.bus.disconnect(),this.follow&&(this.follow.count--,0===this.follow.count&&(delete i.object.track,this.follow.remove())),t.object.mod?t.object.removeMod(t.propertyName):t.modObject.removeMod(t.modName),delete t.object[t.Name].mapping},n},audioOut:function(i,n){if("undefined"!=typeof i.object[i.Name].mapping)return r.replace(n.object,n.propertyName,n.Name),r;var r=i.object[i.Name].mapping=e.Audio.Core.Binops.Map(null,i.min,i.max,0,1,0);"undefined"!=typeof n.object.track?(r.follow=n.object.track,r.follow.count++):(r.follow=new e.Audio.Core.Follow({input:n.object}),r.follow.count=1),n.object.track=r.follow;var o=r.follow.bufferSize;return Object.defineProperty(i.object[i.Name],"env",{configurable:!0,get:function(){return o},set:function(t){o=e.Clock.time(t),r.follow.bufferSize=o}}),r.input=r.follow,r.bus=new e.Audio.Core.Bus2({amp:0}).connect(),r.connect(r.bus),r.replace=function(t,o,a){if(t[a].timescale===n.timescale){var s=r.follow.input[n.Name].targets.indexOf(i);s>=-1&&r.follow.input[n.Name].targets.splice(s,1),r.follow.input=t,-1===t[a].targets.indexOf(i)&&t[a].targets.push([i,i.Name])}else r.bus.disconnect(),r.follow.remove(),e.createMappingObject(i,t)},i.object.mod?i.object.mod(i.propertyName,r,"="):i.modObject?i.modObject.mod(i.modName,r,"="):!function(){var e=r;i.object.update=function(){i.object[i.propertyName](e.getValue())}}(),r.remove=function(){this.bus.disconnect(),this.follow&&(this.follow.count--,0===this.follow.count&&(delete n.object.track,this.follow.remove())),i.object.mod?i.object.removeMod(i.propertyName):i.modObject&&i.modObject.removeMod(i.modName),i.object.mappings.splice(i.object.mappings.indexOf(r),1),n.object.mappings.splice(n.object.mappings.indexOf(r),1);var e=i.object[i.Name].targets,o=e.indexOf(t);-1!==o&&e.splice(o,1),delete i.object[i.Name].mapping},r}},notation:{graphics:function(t,i){var n,r=e.Audio.Core.Binops.Map(i.object[i.propertyName],t.min,t.max,i.min,i.max,t.output,i.wrap),o=r.getValue.bind(r);return r.getValue=function(){return r.callback(i.object[i.propertyName],t.min,t.max,i.min,i.max,t.output,i.wrap),o()},n=t.object[t.Name].mapping=r,t.object.mod?t.object.mod(t.propertyName,n,"="):t.modObject.mod(t.modName,n,"="),n.remove=function(){t.object.mod?t.object.removeMod(t.propertyName):t.modObject.removeMod(t.modName),t.object[t.propertyName]=t.object[t.Name].mapping.getValue(),delete t.object[t.Name].mapping},n.replace=function(e){n.input=e},n},"interface":function(t,i){var n,r=e.Audio.Core.Binops.Map(i.object[i.propertyName],t.min,t.max,i.min,i.max,t.output,i.wrap);"undefined"==typeof i.object.functions&&(i.object.functions={},i.object.onvaluechange=function(){for(var e in i.object.functions)i.object.functions[e]()}),n=t.object[t.Name].mapping=r,t.mapping.from=i;var o=t.propertyName+" <- "+i.object.propertyName+"."+i.Name;if(i.object.functions[o]=function(){var e=n.callback(i.object[i.propertyName],t.min,t.max,i.min,i.max,t.output,i.wrap);t.object[t.Name].oldSetter.call(t.object[t.Name],e)},n.replace=function(){},n.remove=function(){console.log("mapping removed"),delete i.object.functions[o]},i.object.setValue&&i.object.setValue(t.object[t.propertyName]),"undefined"!=typeof i.object.label){for(var a="",s=0;s<i.targets.length;s++){var l=i.targets[s];a+=l[0].object.propertyName+"."+l[1],s!==i.targets.length-1&&(a+=" & ")}i.object.label=a}return n},audio:function(t,i){var n;n=t.object[t.Name].mapping=e.Audio.Core.Binops.Map(null,t.min,t.max,i.min,i.max,t.output,i.wrap),"undefined"!=typeof i.object.track&&i.object.track.input===i.object.properties[i.propertyName]?(n.follow=i.object.track,n.follow.count++):(n.follow=new e.Audio.Core.Follow({input:i.object.properties[i.propertyName],useAbsoluteValue:!1}),n.follow.count=1),i.object.track=t.object[t.Name].mapping.follow,n.input=n.follow,n.bus=new e.Audio.Core.Bus2({amp:0}).connect(),n.connect(n.bus),n.replace=function(e,i,r){n.follow.input=e,-1===e[r].targets.indexOf(t)&&e[r].targets.push([t,t.Name])};var r=n.follow.bufferSize;return Object.defineProperty(t.object[t.Name],"env",{get:function(){return r},set:function(t){r=e.Clock.time(t),n.follow.bufferSize=r}}),n.update=function(){t.object[t.propertyName](n.getValue())},n.text=t.object,e.Environment.Notation.add(n),n.remove=function(){this.bus.disconnect(),this.follow&&(this.follow.count--,0===this.follow.count&&(delete i.object.track,this.follow.remove())),e.Environment.Notation.remove(n),delete t.object[t.Name].mapping},n},audioOut:function(t,i){if("undefined"!=typeof t.object[t.Name].mapping)return n.replace(i.object,i.propertyName,i.Name),n;var n=t.object[t.Name].mapping=e.Audio.Core.Binops.Map(null,t.min,t.max,0,1,0);"undefined"!=typeof i.object.track&&i.object.track.input===i.object.properties[i.propertyName]?(n.follow=i.object.track,n.follow.count++):(n.follow=new e.Audio.Core.Follow({input:i.object,useAbsoluteValue:!0}),n.follow.count=1),i.object.track=n.follow;var r=n.follow.bufferSize;return Object.defineProperty(t.object[t.Name],"env",{configurable:!0,get:function(){return r},set:function(t){r=e.Clock.time(t),n.follow.bufferSize=r}}),n.input=n.follow,n.bus=new e.Audio.Core.Bus2({amp:0}).connect(),n.connect(n.bus),n.replace=function(r,o,a){if(r[a].timescale===i.timescale){var s=n.follow.input[i.Name].targets.indexOf(t);s>=-1&&n.follow.input[i.Name].targets.splice(s,1),n.follow.input=r,-1===r[a].targets.indexOf(t)&&r[a].targets.push([t,t.Name])}else n.bus.disconnect(),n.follow.remove(),e.createMappingObject(t,r)},n.update=function(){t.object[t.propertyName](n.getValue())},n.text=t.object,e.Environment.Notation.add(n),n.remove=function(){this.bus.disconnect(),this.follow&&(this.follow.count--,0===this.follow.count&&(delete i.object.track,this.follow.remove())),e.Environment.Notation.remove(n),delete t.object[t.Name].mapping},n}}};return t},t.exports.outputCurves={LINEAR:0,LOGARITHMIC:1}},{}],23:[function(e,t){t.exports=function(e){"use strict";var t=[],i=!1,n=(e.dollar,e.Audio?e.Audio.Core:null,e.Clock,Math.random,{seq:function(){var e=arguments[0],t=typeof e,i=null;return"object"===t&&Array.isArray(e)&&(t="array"),i},random:function(){for(var e={},t=null,i=0;i<arguments.length;i+=2)e[""+arguments[i]]={repeat:arguments[i+1],count:0};return this.pick=function(){var i,r,o=0;return this[t]&&(r=this[t]),null!==t&&e[r].count++<=e[r].repeat?(i=t,e[r].count>=e[r].repeat&&(e[r].count=0,t=null)):(i=n.rndi(0,this.length-1),o=this[i],"undefined"!=typeof e[""+o]?(e[""+o].count=1,t=i):t=null),i},this},random2:function(){for(var e={},t=null,i=this,r=0;r<arguments.length;r+=2)e[""+arguments[r]]={repeat:arguments[r+1],count:0};return this.pick=function(){var r,o,a=0;return i[t]&&(o=i[t]),null!==t&&e[o].count++<=e[o].repeat?(r=t,e[o].count>=e[o].repeat&&(e[o].count=0,t=null)):(r=n.rndi(0,i.length-1),a=i[r],"undefined"!=typeof e[""+a]?(e[""+a].count=1,t=r):t=null),i[r]},this.pick},choose:function(e){var t=null;if(isNaN(e)&&(e=1),1!==e){for(var i=[],r=0;e>r;r++)i[r]=this[n.rndi(0,this.length-1)];t=i}else t=this[n.rndi(0,this.length-1)];return t},future:function(t,i){var n=0,r=e.Audio.Seqs.Seq(function(){1===n&&(t(),r.stop(),r.disconnect()),n++},e.Audio.Clock.time(i));return function(){r.stop(),r.disconnect()}},shuffle:function(e){for(var t,i,n=e.length;n;t=parseInt(Math.random()*n),i=e[--n],e[n]=e[t],e[t]=i);},solo:function(e){var r=Array.prototype.slice.call(arguments,0);if(e){i&&n.solo();for(var o=0;o<r.length;o++){var a=r[o];a.fx.length>0&&(r[o]=a.fx[a.fx.length-1])}for(var s=0;s<Master.inputs.length;s++){var l=r.indexOf(Master.inputs[s].value),h=Master.inputs[s].value,c=h.name;-1===l&&"polyseq"!==c&&"Seq"!==c&&(Master.inputs[s]._amp=Master.inputs[s].amp,Master.inputs[s].amp=0,t.push(Master.inputs[s]))}i=!0}else{for(var s=0;s<t.length;s++)t[s].amp=t[s]._amp;t.length=0,i=!1}},fill:function(e,t){isNaN(e)&&(e=16),"function"!=typeof t&&(t=Rndf()),t=t.bind(this);for(var i=0;e>i;i++)this[i]=t();return this},merge:function(){for(var e=[],t=0;t<this.length;t++){var i=this[t];if(Array.isArray(i))for(var n=0;n<i.length;n++)e.push(i[n]);else e.push(i)}return e},weight:function(){var e=Array.prototype.slice.call(arguments,0);return this.pick=function(){for(var t=this[0],i=0,r=n.rndf(),o=0;o<e.length;o++)if(i+=e[o],i>r){t=o;break}return t},this},gibberArray:function(){},rndf:function(e,t,i,r){if(r="undefined"==typeof r?!0:r,"undefined"==typeof i&&"object"!=typeof e){1==arguments.length?(t=arguments[0],e=0):2==arguments.length?(e=arguments[0],t=arguments[1]):(e=0,t=1);var o=t-e,a=Math.random(),s=o*a;return e+s}var l=[],h=[];"undefined"==typeof i&&(i=t||e.length);for(var c=0;i>c;c++){var u;if("object"==typeof arguments[0])u=arguments[0][rndi(0,arguments[0].length-1)];else if(r)u=n.rndf(e,t);else{for(u=n.rndf(e,t);h.indexOf(u)>-1;)u=n.rndf(e,t);h.push(u)}l.push(u)}return l},Rndf:function(){{var e,t,i,r;Math.random}return 0===arguments.length?(e=0,t=1):1===arguments.length?(t=arguments[0],e=0):2===arguments.length?(e=arguments[0],t=arguments[1]):3===arguments.length?(e=arguments[0],t=arguments[1],i=arguments[2]):(e=arguments[0],t=arguments[1],i=arguments[2],r=arguments[3]),function(){var o,a,s;return a="function"==typeof e?e():e,s="function"==typeof t?t():t,o="undefined"==typeof i?n.rndf(a,s):n.rndf(a,s,i,r)}},rndi:function(e,t,i,r){var o;if(0===arguments.length?(e=0,t=1):1===arguments.length?(t=arguments[0],e=0):2===arguments.length?(e=arguments[0],t=arguments[1]):(e=arguments[0],t=arguments[1],i=arguments[2],r=arguments[3]),o=t-e,i>o&&(r=!0),"undefined"==typeof i)return o=t-e,Math.round(e+Math.random()*o);for(var a=[],s=[],l=0;i>l;l++){var h;if(r)h=n.rndi(e,t);else{for(h=n.rndi(e,t);s.indexOf(h)>-1;)h=n.rndi(e,t);s.push(h)}a.push(h)}return a},Rndi:function(){{var e,t,i,r,o;Math.random,Math.round}return 0===arguments.length?(e=0,t=1):1===arguments.length?(t=arguments[0],e=0):2===arguments.length?(e=arguments[0],t=arguments[1]):3===arguments.length?(e=arguments[0],t=arguments[1],i=arguments[2]):(e=arguments[0],t=arguments[1],i=arguments[2],r=arguments[3]),o=t-e,"number"==typeof i&&i>o&&(r=!0),function(){var o,a,s;return a="function"==typeof e?e():e,s="function"==typeof t?t():t,o="undefined"==typeof i?n.rndi(a,s):n.rndi(a,s,i,r)}},"export":function(e){e.rndi=n.rndi,e.rndf=n.rndf,e.Rndi=n.Rndi,e.Rndf=n.Rndf,e.future=n.future,e.solo=n.solo},init:function(){Array.prototype.random=Array.prototype.rnd=n.random,Array.prototype.weight=n.weight,Array.prototype.fill=n.fill,Array.prototype.choose=n.choose,Array.prototype.merge=n.merge}});return n}},{}],24:[function(e,t){var i=e("color-convert"),n=e("color-string");t.exports=function(e){return new r(e)};var r=function(e){if(this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},"string"==typeof e){var t=n.getRgba(e);if(t)this.setValues("rgb",t);else if(t=n.getHsla(e))this.setValues("hsl",t);else{if(!(t=n.getHwb(e)))throw new Error("Unable to parse color from string "+e);this.setValues("hwb",t)}}else if("object"==typeof e){var t=e;if(void 0!==t.r||void 0!==t.red)this.setValues("rgb",t);else if(void 0!==t.l||void 0!==t.lightness)this.setValues("hsl",t);else if(void 0!==t.v||void 0!==t.value)this.setValues("hsv",t);else if(void 0!==t.w||void 0!==t.whiteness)this.setValues("hwb",t);else{if(void 0===t.c&&void 0===t.cyan)throw new Error("Unable to parse color from object "+JSON.stringify(e));this.setValues("cmyk",t)}}};r.prototype={rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){return 1!==this.values.alpha?this.values.hwb.concat([this.values.alpha]):this.values.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values.rgb;return e.concat([this.values.alpha])},hslaArray:function(){var e=this.values.hsl;return e.concat([this.values.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return n.hexString(this.values.rgb)},rgbString:function(){return n.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return n.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return n.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return n.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return n.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return n.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return n.keyword(this.values.rgb,this.values.alpha)},luminosity:function(){for(var e=this.values.rgb,t=[],i=0;i<e.length;i++){var n=e[i]/255;t[i]=.03928>=n?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),i=e.luminosity();return t>i?(t+.05)/(i+.05):(i+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb,t=(299*e[0]+587*e[1]+114*e[2])/1e3;return 128>t},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;3>t;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){return this.values.hsl[2]+=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},darken:function(e){return this.values.hsl[2]-=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},saturate:function(e){return this.values.hsl[1]+=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},desaturate:function(e){return this.values.hsl[1]-=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},whiten:function(e){return this.values.hwb[1]+=this.values.hwb[1]*e,this.setValues("hwb",this.values.hwb),this},blacken:function(e){return this.values.hwb[2]+=this.values.hwb[2]*e,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){return this.setValues("alpha",this.values.alpha-this.values.alpha*e),this},opaquer:function(e){return this.setValues("alpha",this.values.alpha+this.values.alpha*e),this},rotate:function(e){var t=this.values.hsl[0];return t=(t+e)%360,t=0>t?360+t:t,this.values.hsl[0]=t,this.setValues("hsl",this.values.hsl),this},mix:function(e,t){t=1-(null==t?.5:t);for(var i=2*t-1,n=this.alpha()-e.alpha(),r=((i*n==-1?i:(i+n)/(1+i*n))+1)/2,o=1-r,a=this.rgbArray(),s=e.rgbArray(),l=0;l<a.length;l++)a[l]=a[l]*r+s[l]*o;this.setValues("rgb",a);var h=this.alpha()*t+e.alpha()*(1-t);return this.setValues("alpha",h),this},toJSON:function(){return this.rgb()},clone:function(){return new r(this.rgb())}},r.prototype.getValues=function(e){for(var t={},i=0;i<e.length;i++)t[e[i]]=this.values[e][i];return 1!=this.values.alpha&&(t.a=this.values.alpha),t},r.prototype.setValues=function(e,t){var n={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},r={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o=1;if("alpha"==e)o=t;else if(t.length)this.values[e]=t.slice(0,e.length),o=t[e.length];else if(void 0!==t[e[0]]){for(var a=0;a<e.length;a++)this.values[e][a]=t[e[a]];o=t.a}else if(void 0!==t[n[e][0]]){for(var s=n[e],a=0;a<e.length;a++)this.values[e][a]=t[s[a]];o=t.alpha}if(this.values.alpha=Math.max(0,Math.min(1,void 0!==o?o:this.values.alpha)),"alpha"!=e){for(var a=0;a<e.length;a++){var l=Math.max(0,Math.min(r[e][a],this.values[e][a]));this.values[e][a]=Math.round(l)}for(var h in n){h!=e&&(this.values[h]=i[e][h](this.values[e]));for(var a=0;a<h.length;a++){var l=Math.max(0,Math.min(r[h][a],this.values[h][a]));this.values[h][a]=Math.round(l)}}return!0}},r.prototype.setSpace=function(e,t){var i=t[0];return void 0===i?this.getValues(e):("number"==typeof i&&(i=Array.prototype.slice.call(t)),this.setValues(e,i),this)},r.prototype.setChannel=function(e,t,i){return void 0===i?this.values[e][t]:(this.values[e][t]=i,this.setValues(e,this.values[e]),this)}},{"color-convert":26,"color-string":27}],25:[function(e,t){function i(e){var t,i,n,r=e[0]/255,o=e[1]/255,a=e[2]/255,s=Math.min(r,o,a),l=Math.max(r,o,a),h=l-s;return l==s?t=0:r==l?t=(o-a)/h:o==l?t=2+(a-r)/h:a==l&&(t=4+(r-o)/h),t=Math.min(60*t,360),0>t&&(t+=360),n=(s+l)/2,i=l==s?0:.5>=n?h/(l+s):h/(2-l-s),[t,100*i,100*n]}function n(e){var t,i,n,r=e[0],o=e[1],a=e[2],s=Math.min(r,o,a),l=Math.max(r,o,a),h=l-s;return i=0==l?0:h/l*1e3/10,l==s?t=0:r==l?t=(o-a)/h:o==l?t=2+(a-r)/h:a==l&&(t=4+(r-o)/h),t=Math.min(60*t,360),0>t&&(t+=360),n=l/255*1e3/10,[t,i,n]}function o(e){var t=e[0],n=e[1],r=e[2],o=i(e)[0];return w=1/255*Math.min(t,Math.min(n,r)),r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*w,100*r]}function a(e){var t,i,n,r,o=e[0]/255,a=e[1]/255,s=e[2]/255;return r=Math.min(1-o,1-a,1-s),t=(1-o-r)/(1-r),i=(1-a-r)/(1-r),n=(1-s-r)/(1-r),[100*t,100*i,100*n,100*r]}function s(e){return Q[JSON.stringify(e)]}function l(e){var t=e[0]/255,i=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var r=.4124*t+.3576*i+.1805*n,o=.2126*t+.7152*i+.0722*n,a=.0193*t+.1192*i+.9505*n;return[100*r,100*o,100*a]}function h(e){var t,i,n,r=l(e),o=r[0],a=r[1],s=r[2];return o/=95.047,a/=100,s/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,t=116*a-16,i=500*(o-a),n=200*(a-s),[t,i,n]}function c(e){return O(h(e))}function u(e){var t,i,n,r,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0==s)return o=255*l,[o,o,o];i=.5>l?l*(1+s):l+s-l*s,t=2*l-i,r=[0,0,0];for(var h=0;3>h;h++)n=a+1/3*-(h-1),0>n&&n++,n>1&&n--,o=1>6*n?t+6*(i-t)*n:1>2*n?i:2>3*n?t+(i-t)*(2/3-n)*6:t,r[h]=255*o;return r}function p(e){var t,i,n=e[0],r=e[1]/100,o=e[2]/100;return o*=2,r*=1>=o?o:2-o,i=(o+r)/2,t=2*r/(o+r),[n,100*t,100*i]}function f(e){return o(u(e))}function d(e){return a(u(e))}function m(e){return s(u(e))}function v(e){var t=e[0]/60,i=e[1]/100,n=e[2]/100,r=Math.floor(t)%6,o=t-Math.floor(t),a=255*n*(1-i),s=255*n*(1-i*o),l=255*n*(1-i*(1-o)),n=255*n;switch(r){case 0:return[n,l,a];case 1:return[s,n,a];case 2:return[a,n,l];case 3:return[a,s,n];case 4:return[l,a,n];case 5:return[n,a,s]}}function y(e){var t,i,n=e[0],r=e[1]/100,o=e[2]/100;return i=(2-r)*o,t=r*o,t/=1>=i?i:2-i,i/=2,[n,100*t,100*i]}function x(e){return o(v(e))}function _(e){return a(v(e))}function S(e){return s(v(e))}function M(e){var t,i,n,o,a=e[0]/360,s=e[1]/100,l=e[2]/100,h=s+l;switch(h>1&&(s/=h,l/=h),t=Math.floor(6*a),i=1-l,n=6*a-t,0!=(1&t)&&(n=1-n),o=s+n*(i-s),t){default:case 6:case 0:r=i,g=o,b=s;break;case 1:r=o,g=i,b=s;break;case 2:r=s,g=i,b=o;break;case 3:r=s,g=o,b=i;break;case 4:r=o,g=s,b=i;break;case 5:r=i,g=s,b=o}return[255*r,255*g,255*b]}function T(e){return i(M(e))}function C(e){return n(M(e))}function A(e){return a(M(e))}function E(e){return s(M(e))}function P(e){var t,i,n,r=e[0]/100,o=e[1]/100,a=e[2]/100,s=e[3]/100;return t=1-Math.min(1,r*(1-s)+s),i=1-Math.min(1,o*(1-s)+s),n=1-Math.min(1,a*(1-s)+s),[255*t,255*i,255*n]}function k(e){return i(P(e))}function R(e){return n(P(e))}function L(e){return o(P(e))}function D(e){return s(P(e))}function F(e){var t,i,n,r=e[0]/100,o=e[1]/100,a=e[2]/100;return t=3.2406*r+-1.5372*o+a*-.4986,i=r*-.9689+1.8758*o+.0415*a,n=.0557*r+o*-.204+1.057*a,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:t=12.92*t,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i=12.92*i,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n=12.92*n,t=Math.min(Math.max(0,t),1),i=Math.min(Math.max(0,i),1),n=Math.min(Math.max(0,n),1),[255*t,255*i,255*n]}function N(e){var t,i,n,r=e[0],o=e[1],a=e[2];return r/=95.047,o/=100,a/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,t=116*o-16,i=500*(r-o),n=200*(o-a),[t,i,n]}function G(e){return O(N(e))}function V(e){var t,i,n,r,o=e[0],a=e[1],s=e[2];return 8>=o?(i=100*o/903.3,r=7.787*(i/100)+16/116):(i=100*Math.pow((o+16)/116,3),r=Math.pow(i/100,1/3)),t=.008856>=t/95.047?t=95.047*(a/500+r-16/116)/7.787:95.047*Math.pow(a/500+r,3),n=.008859>=n/108.883?n=108.883*(r-s/200-16/116)/7.787:108.883*Math.pow(r-s/200,3),[t,i,n]}function O(e){var t,i,n,r=e[0],o=e[1],a=e[2];return t=Math.atan2(a,o),i=360*t/2/Math.PI,0>i&&(i+=360),n=Math.sqrt(o*o+a*a),[r,n,i]}function j(e){return F(V(e))}function U(e){var t,i,n,r=e[0],o=e[1],a=e[2];return n=a/360*2*Math.PI,t=o*Math.cos(n),i=o*Math.sin(n),[r,t,i]}function I(e){return V(U(e))}function z(e){return j(U(e))}function B(e){return $[e]}function H(e){return i(B(e))}function q(e){return n(B(e))}function W(e){return o(B(e))}function X(e){return a(B(e))}function Y(e){return h(B(e))}function K(e){return l(B(e))}t.exports={rgb2hsl:i,rgb2hsv:n,rgb2hwb:o,rgb2cmyk:a,rgb2keyword:s,rgb2xyz:l,rgb2lab:h,rgb2lch:c,hsl2rgb:u,hsl2hsv:p,hsl2hwb:f,hsl2cmyk:d,hsl2keyword:m,hsv2rgb:v,hsv2hsl:y,hsv2hwb:x,hsv2cmyk:_,hsv2keyword:S,hwb2rgb:M,hwb2hsl:T,hwb2hsv:C,hwb2cmyk:A,hwb2keyword:E,cmyk2rgb:P,cmyk2hsl:k,cmyk2hsv:R,cmyk2hwb:L,cmyk2keyword:D,keyword2rgb:B,keyword2hsl:H,keyword2hsv:q,keyword2hwb:W,keyword2cmyk:X,keyword2lab:Y,keyword2xyz:K,xyz2rgb:F,xyz2lab:N,xyz2lch:G,lab2xyz:V,lab2rgb:j,lab2lch:O,lch2lab:U,lch2xyz:I,lch2rgb:z};var $={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Q={};for(var Z in $)Q[JSON.stringify($[Z])]=Z},{}],26:[function(e,t){var i=e("./conversions"),n=function(){return new l};for(var r in i){n[r+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),i[e](t)}}(r);var o=/(\w+)2(\w+)/.exec(r),a=o[1],s=o[2];n[a]=n[a]||{},n[a][s]=n[r]=function(e){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var n=i[e](t);if("string"==typeof n||void 0===n)return n;for(var r=0;r<n.length;r++)n[r]=Math.round(n[r]);return n}}(r)}var l=function(){this.convs={}};l.prototype.routeSpace=function(e,t){var i=t[0];return void 0===i?this.getValues(e):("number"==typeof i&&(i=Array.prototype.slice.call(t)),this.setValues(e,i))},l.prototype.setValues=function(e,t){return this.space=e,this.convs={},this.convs[e]=t,this},l.prototype.getValues=function(e){var t=this.convs[e];if(!t){var i=this.space,r=this.convs[i];t=n[i][e](r),this.convs[e]=t}return t},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){l.prototype[e]=function(){return this.routeSpace(e,arguments)}}),t.exports=n},{"./conversions":25}],27:[function(e,t){function i(e){if(e){var t=/^#([a-fA-F0-9]{3})$/,i=/^#([a-fA-F0-9]{6})$/,n=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d\.]+)\s*)?\)$/,r=/^rgba?\(\s*([\d\.]+)\%\s*,\s*([\d\.]+)\%\s*,\s*([\d\.]+)\%\s*(?:,\s*([\d\.]+)\s*)?\)$/,o=/(\D+)/,a=[0,0,0],s=1,l=e.match(t);if(l){l=l[1];for(var h=0;h<a.length;h++)a[h]=parseInt(l[h]+l[h],16)}else if(l=e.match(i)){l=l[1];for(var h=0;h<a.length;h++)a[h]=parseInt(l.slice(2*h,2*h+2),16)}else if(l=e.match(n)){for(var h=0;h<a.length;h++)a[h]=parseInt(l[h+1]);s=parseFloat(l[4])}else if(l=e.match(r)){for(var h=0;h<a.length;h++)a[h]=Math.round(2.55*parseFloat(l[h+1]));s=parseFloat(l[4])}else if(l=e.match(o)){if("transparent"==l[1])return[0,0,0,0];if(a=b.keyword2rgb(l[1]),!a)return}for(var h=0;h<a.length;h++)a[h]=v(a[h],0,255);return s=s||0==s?v(s,0,1):1,a.push(s),a}}function n(e){if(e){var t=/^hsla?\(\s*(\d+)\s*,\s*([\d\.]+)%\s*,\s*([\d\.]+)%\s*(?:,\s*([\d\.]+)\s*)?\)/,i=e.match(t);if(i){var n=v(parseInt(i[1]),0,360),r=v(parseFloat(i[2]),0,100),o=v(parseFloat(i[3]),0,100),a=v(parseFloat(i[4])||1,0,1);return[n,r,o,a]}}}function r(e){if(e){var t=/^hwb\(\s*(\d+)\s*,\s*([\d\.]+)%\s*,\s*([\d\.]+)%\s*(?:,\s*([\d\.]+)\s*)?\)/,i=e.match(t);if(i){var n=v(parseInt(i[1]),0,360),r=v(parseFloat(i[2]),0,100),o=v(parseFloat(i[3]),0,100),a=v(parseFloat(i[4])||1,0,1); return[n,r,o,a]}}}function o(e){var t=i(e);return t&&t.slice(0,3)}function a(e){var t=n(e);return t&&t.slice(0,3)}function s(e){var t=i(e);return t?t[3]:(t=n(e))?t[3]:(t=r(e))?t[3]:void 0}function l(e){return"#"+y(e[0])+y(e[1])+y(e[2])}function h(e,t){return 1>t||e[3]&&e[3]<1?c(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}function c(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function u(e,t){if(1>t||e[3]&&e[3]<1)return p(e,t);var i=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return"rgb("+i+"%, "+n+"%, "+r+"%)"}function p(e,t){var i=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return"rgba("+i+"%, "+n+"%, "+r+"%, "+(t||e[3]||1)+")"}function f(e,t){return 1>t||e[3]&&e[3]<1?d(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"}function d(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function m(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"}function g(e){return b.rgb2keyword(e.slice(0,3))}function v(e,t,i){return Math.min(Math.max(t,e),i)}function y(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var b=e("color-convert");t.exports={getRgba:i,getHsla:n,getRgb:o,getHsl:a,getHwb:r,getAlpha:s,hexString:l,rgbString:h,rgbaString:c,percentString:u,percentaString:p,hslString:f,hslaString:d,hwbString:m,keyword:g}},{"color-convert":26}],28:[function(){THREE.CopyShader={uniforms:{tDiffuse:{type:"t",value:null},opacity:{type:"f",value:1}},vertexShader:["varying vec2 vUv;","void main() {","vUv = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform float opacity;","uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","vec4 texel = texture2D( tDiffuse, vUv );","gl_FragColor = opacity * texel;","}"].join("\n")}},{}],29:[function(){THREE.DotScreenPass=function(e,t,i,n){void 0===THREE.DotScreenShader&&console.error("THREE.DotScreenPass relies on THREE.DotScreenShader");var r=THREE.DotScreenShader;this.uniforms=THREE.UniformsUtils.clone(r.uniforms),void 0!==e&&this.uniforms.center.value.copy(e),void 0!==t&&(this.uniforms.angle.value=t),void 0!==i&&(this.uniforms.scale.value=i),void 0!==n&&(this.uniforms.mix.value=n),this.material=new THREE.ShaderMaterial({uniforms:this.uniforms,vertexShader:r.vertexShader,fragmentShader:r.fragmentShader}),this.enabled=!0,this.renderToScreen=!1,this.needsSwap=!0},THREE.DotScreenPass.prototype={render:function(e,t,i){this.uniforms.tDiffuse.value=i,this.uniforms.tSize.value.set(i.width,i.height),THREE.EffectComposer.quad.material=this.material,this.renderToScreen?e.render(THREE.EffectComposer.scene,THREE.EffectComposer.camera):e.render(THREE.EffectComposer.scene,THREE.EffectComposer.camera,t,!1)}}},{}],30:[function(){THREE.EffectComposer=function(e,t){if(this.renderer=e,void 0===t){var i=window.innerWidth||1,n=window.innerHeight||1,r={minFilter:THREE.LinearFilter,magFilter:THREE.LinearFilter,format:THREE.RGBFormat,stencilBuffer:!1};t=new THREE.WebGLRenderTarget(i,n,r)}this.renderTarget1=t,this.renderTarget2=t.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.passes=[],void 0===THREE.CopyShader&&console.error("THREE.EffectComposer relies on THREE.CopyShader"),this.copyPass=new THREE.ShaderPass(THREE.CopyShader)},THREE.EffectComposer.prototype={swapBuffers:function(){var e=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=e},addPass:function(e){this.passes.push(e)},insertPass:function(e,t){this.passes.splice(t,0,e)},render:function(e){this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2;var t,i,n=!1,r=this.passes.length;for(i=0;r>i;i++)if(t=this.passes[i],t.enabled){if(t.render(this.renderer,this.writeBuffer,this.readBuffer,e,n),t.needsSwap){if(n){var o=this.renderer.context;o.stencilFunc(o.NOTEQUAL,1,4294967295),this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,e),o.stencilFunc(o.EQUAL,1,4294967295)}this.swapBuffers()}t instanceof THREE.MaskPass?n=!0:t instanceof THREE.ClearMaskPass&&(n=!1)}},reset:function(e){void 0===e&&(e=this.renderTarget1.clone(),e.width=window.innerWidth,e.height=window.innerHeight),this.renderTarget1=e,this.renderTarget2=e.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2},setSize:function(e,t){var i=this.renderTarget1.clone();i.width=e,i.height=t,this.reset(i)}},THREE.EffectComposer.camera=new THREE.OrthographicCamera(-1,1,1,-1,0,1),THREE.EffectComposer.quad=new THREE.Mesh(new THREE.PlaneGeometry(2,2),null),THREE.EffectComposer.scene=new THREE.Scene,THREE.EffectComposer.scene.add(THREE.EffectComposer.quad)},{}],31:[function(){THREE.FilmPass=function(e,t,i,n){void 0===THREE.FilmShader&&console.error("THREE.FilmPass relies on THREE.FilmShader");var r=THREE.FilmShader;this.uniforms=THREE.UniformsUtils.clone(r.uniforms),this.material=new THREE.ShaderMaterial({uniforms:this.uniforms,vertexShader:r.vertexShader,fragmentShader:r.fragmentShader}),void 0!==n&&(this.uniforms.grayscale.value=n),void 0!==e&&(this.uniforms.nIntensity.value=e),void 0!==t&&(this.uniforms.sIntensity.value=t),void 0!==i&&(this.uniforms.sCount.value=i),this.enabled=!0,this.renderToScreen=!1,this.needsSwap=!0},THREE.FilmPass.prototype={render:function(e,t,i,n){this.uniforms.tDiffuse.value=i,this.uniforms.time.value+=n,THREE.EffectComposer.quad.material=this.material,this.renderToScreen?e.render(THREE.EffectComposer.scene,THREE.EffectComposer.camera):e.render(THREE.EffectComposer.scene,THREE.EffectComposer.camera,t,!1)}}},{}],32:[function(){THREE.MaskPass=function(e,t){this.scene=e,this.camera=t,this.enabled=!0,this.clear=!0,this.needsSwap=!1,this.inverse=!1},THREE.MaskPass.prototype={render:function(e,t,i){var n=e.context;n.colorMask(!1,!1,!1,!1),n.depthMask(!1);var r,o;this.inverse?(r=0,o=1):(r=1,o=0),n.enable(n.STENCIL_TEST),n.stencilOp(n.REPLACE,n.REPLACE,n.REPLACE),n.stencilFunc(n.ALWAYS,r,4294967295),n.clearStencil(o),e.render(this.scene,this.camera,i,this.clear),e.render(this.scene,this.camera,t,this.clear),n.colorMask(!0,!0,!0,!0),n.depthMask(!0),n.stencilFunc(n.EQUAL,1,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.KEEP)}},THREE.ClearMaskPass=function(){this.enabled=!0},THREE.ClearMaskPass.prototype={render:function(e){var t=e.context;t.disable(t.STENCIL_TEST)}}},{}],33:[function(){THREE.RenderPass=function(e,t,i,n,r){this.scene=e,this.camera=t,this.overrideMaterial=i,this.clearColor=n,this.clearAlpha=void 0!==r?r:1,this.oldClearColor=new THREE.Color,this.oldClearAlpha=1,this.enabled=!0,this.clear=!0,this.needsSwap=!1},THREE.RenderPass.prototype={render:function(e,t,i){this.scene.overrideMaterial=this.overrideMaterial,this.clearColor&&(this.oldClearColor.copy(e.getClearColor()),this.oldClearAlpha=e.getClearAlpha(),e.setClearColor(this.clearColor,this.clearAlpha)),e.render(this.scene,this.camera,i,this.clear),this.clearColor&&e.setClearColor(this.oldClearColor,this.oldClearAlpha),this.scene.overrideMaterial=null}}},{}],34:[function(){THREE.ShaderPass=function(e,t){this.textureID=void 0!==t?t:"tDiffuse",this.uniforms=THREE.UniformsUtils.clone(e.uniforms),this.material=new THREE.ShaderMaterial({uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader}),this.renderToScreen=!1,this.enabled=!0,this.needsSwap=!0,this.clear=!1},THREE.ShaderPass.prototype={render:function(e,t,i){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=i),THREE.EffectComposer.quad.material=this.material,this.renderToScreen?e.render(THREE.EffectComposer.scene,THREE.EffectComposer.camera):e.render(THREE.EffectComposer.scene,THREE.EffectComposer.camera,t,this.clear)}}},{}],35:[function(){THREE.BleachBypassShader={uniforms:{tDiffuse:{type:"t",value:null},opacity:{type:"f",value:1}},vertexShader:["varying vec2 vUv;","void main() {","vUv = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform float opacity;","uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","vec4 base = texture2D( tDiffuse, vUv );","vec3 lumCoeff = vec3( 0.25, 0.65, 0.1 );","float lum = dot( lumCoeff, base.rgb );","vec3 blend = vec3( lum );","float L = min( 1.0, max( 0.0, 10.0 * ( lum - 0.45 ) ) );","vec3 result1 = 2.0 * base.rgb * blend;","vec3 result2 = 1.0 - 2.0 * ( 1.0 - blend ) * ( 1.0 - base.rgb );","vec3 newColor = mix( result1, result2, L );","float A2 = opacity * base.a;","vec3 mixRGB = A2 * newColor.rgb;","mixRGB += ( ( 1.0 - A2 ) * base.rgb );","gl_FragColor = vec4( mixRGB, base.a );","}"].join("\n")}},{}],36:[function(){THREE.ColorifyShader={uniforms:{tDiffuse:{type:"t",value:null},color:{type:"c",value:new THREE.Color(16777215)}},vertexShader:["varying vec2 vUv;","void main() {","vUv = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform vec3 color;","uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","vec4 texel = texture2D( tDiffuse, vUv );","vec3 luma = vec3( 0.299, 0.587, 0.114 );","float v = dot( texel.xyz, luma );","gl_FragColor = vec4( v * color, texel.w );","}"].join("\n")}},{}],37:[function(){THREE.DotScreenShader={uniforms:{tDiffuse:{type:"t",value:null},tSize:{type:"v2",value:new THREE.Vector2(256,256)},center:{type:"v2",value:new THREE.Vector2(.5,.5)},angle:{type:"f",value:1.57},scale:{type:"f",value:1}},vertexShader:["varying vec2 vUv;","void main() {","vUv = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform vec2 center;","uniform float angle;","uniform float scale;","uniform vec2 tSize;","uniform sampler2D tDiffuse;","varying vec2 vUv;","float pattern() {","float s = sin( angle ), c = cos( angle );","vec2 tex = vUv * tSize - center;","vec2 point = vec2( c * tex.x - s * tex.y, s * tex.x + c * tex.y ) * scale;","return ( sin( point.x ) * sin( point.y ) ) * 4.0;","}","void main() {","vec4 color = texture2D( tDiffuse, vUv );","float average = ( color.r + color.g + color.b ) / 3.0;","gl_FragColor = vec4( vec3( average * 10.0 - 5.0 + pattern() ), color.a );","}"].join("\n")}},{}],38:[function(){THREE.EdgeShader={uniforms:{tDiffuse:{type:"t",value:null},aspect:{type:"v2",value:new THREE.Vector2(512,512)}},vertexShader:["varying vec2 vUv;","void main() {","vUv = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform sampler2D tDiffuse;","varying vec2 vUv;","uniform vec2 aspect;","vec2 texel = vec2(1.0 / aspect.x, 1.0 / aspect.y);","mat3 G[9];","const mat3 g0 = mat3( 0.3535533845424652, 0, -0.3535533845424652, 0.5, 0, -0.5, 0.3535533845424652, 0, -0.3535533845424652 );","const mat3 g1 = mat3( 0.3535533845424652, 0.5, 0.3535533845424652, 0, 0, 0, -0.3535533845424652, -0.5, -0.3535533845424652 );","const mat3 g2 = mat3( 0, 0.3535533845424652, -0.5, -0.3535533845424652, 0, 0.3535533845424652, 0.5, -0.3535533845424652, 0 );","const mat3 g3 = mat3( 0.5, -0.3535533845424652, 0, -0.3535533845424652, 0, 0.3535533845424652, 0, 0.3535533845424652, -0.5 );","const mat3 g4 = mat3( 0, -0.5, 0, 0.5, 0, 0.5, 0, -0.5, 0 );","const mat3 g5 = mat3( -0.5, 0, 0.5, 0, 0, 0, 0.5, 0, -0.5 );","const mat3 g6 = mat3( 0.1666666716337204, -0.3333333432674408, 0.1666666716337204, -0.3333333432674408, 0.6666666865348816, -0.3333333432674408, 0.1666666716337204, -0.3333333432674408, 0.1666666716337204 );","const mat3 g7 = mat3( -0.3333333432674408, 0.1666666716337204, -0.3333333432674408, 0.1666666716337204, 0.6666666865348816, 0.1666666716337204, -0.3333333432674408, 0.1666666716337204, -0.3333333432674408 );","const mat3 g8 = mat3( 0.3333333432674408, 0.3333333432674408, 0.3333333432674408, 0.3333333432674408, 0.3333333432674408, 0.3333333432674408, 0.3333333432674408, 0.3333333432674408, 0.3333333432674408 );","void main(void)","{","G[0] = g0,","G[1] = g1,","G[2] = g2,","G[3] = g3,","G[4] = g4,","G[5] = g5,","G[6] = g6,","G[7] = g7,","G[8] = g8;","mat3 I;","float cnv[9];","vec3 sample;","for (float i=0.0; i<3.0; i++) {","for (float j=0.0; j<3.0; j++) {","sample = texture2D(tDiffuse, vUv + texel * vec2(i-1.0,j-1.0) ).rgb;","I[int(i)][int(j)] = length(sample);","}","}","for (int i=0; i<9; i++) {","float dp3 = dot(G[i][0], I[0]) + dot(G[i][1], I[1]) + dot(G[i][2], I[2]);","cnv[i] = dp3 * dp3;","}","float M = (cnv[0] + cnv[1]) + (cnv[2] + cnv[3]);","float S = (cnv[4] + cnv[5]) + (cnv[6] + cnv[7]) + (cnv[8] + M);","gl_FragColor = vec4(vec3(sqrt(M/S)), 1.0);","}"].join("\n")}},{}],39:[function(){THREE.FilmShader={uniforms:{tDiffuse:{type:"t",value:null},time:{type:"f",value:0},nIntensity:{type:"f",value:.5},sIntensity:{type:"f",value:.05},sCount:{type:"f",value:4096},grayscale:{type:"i",value:1}},vertexShader:["varying vec2 vUv;","void main() {","vUv = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform float time;","uniform bool grayscale;","uniform float nIntensity;","uniform float sIntensity;","uniform float sCount;","uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","vec4 cTextureScreen = texture2D( tDiffuse, vUv );","float x = vUv.x * vUv.y * time * 1000.0;","x = mod( x, 13.0 ) * mod( x, 123.0 );","float dx = mod( x, 0.01 );","vec3 cResult = cTextureScreen.rgb + cTextureScreen.rgb * clamp( 0.1 + dx * 100.0, 0.0, 1.0 );","vec2 sc = vec2( sin( vUv.y * sCount ), cos( vUv.y * sCount ) );","cResult += cTextureScreen.rgb * vec3( sc.x, sc.y, sc.x ) * sIntensity;","cResult = cTextureScreen.rgb + clamp( nIntensity, 0.0,1.0 ) * ( cResult - cTextureScreen.rgb );","if( grayscale ) {","cResult = vec3( cResult.r * 0.3 + cResult.g * 0.59 + cResult.b * 0.11 );","}","gl_FragColor = vec4( cResult, cTextureScreen.a );","}"].join("\n")}},{}],40:[function(){THREE.FocusShader={uniforms:{tDiffuse:{type:"t",value:null},screenWidth:{type:"f",value:1024},screenHeight:{type:"f",value:1024},sampleDistance:{type:"f",value:.94},waveFactor:{type:"f",value:.00125}},vertexShader:["varying vec2 vUv;","void main() {","vUv = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform float screenWidth;","uniform float screenHeight;","uniform float sampleDistance;","uniform float waveFactor;","uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","vec4 color, org, tmp, add;","float sample_dist, f;","vec2 vin;","vec2 uv = vUv;","add = color = org = texture2D( tDiffuse, uv );","vin = ( uv - vec2( 0.5 ) ) * vec2( 1.4 );","sample_dist = dot( vin, vin ) * 2.0;","f = ( waveFactor * 100.0 + sample_dist ) * sampleDistance * 4.0;","vec2 sampleSize = vec2( 1.0 / screenWidth, 1.0 / screenHeight ) * vec2( f );","add += tmp = texture2D( tDiffuse, uv + vec2( 0.111964, 0.993712 ) * sampleSize );","if( tmp.b < color.b ) color = tmp;","add += tmp = texture2D( tDiffuse, uv + vec2( 0.846724, 0.532032 ) * sampleSize );","if( tmp.b < color.b ) color = tmp;","add += tmp = texture2D( tDiffuse, uv + vec2( 0.943883, -0.330279 ) * sampleSize );","if( tmp.b < color.b ) color = tmp;","add += tmp = texture2D( tDiffuse, uv + vec2( 0.330279, -0.943883 ) * sampleSize );","if( tmp.b < color.b ) color = tmp;","add += tmp = texture2D( tDiffuse, uv + vec2( -0.532032, -0.846724 ) * sampleSize );","if( tmp.b < color.b ) color = tmp;","add += tmp = texture2D( tDiffuse, uv + vec2( -0.993712, -0.111964 ) * sampleSize );","if( tmp.b < color.b ) color = tmp;","add += tmp = texture2D( tDiffuse, uv + vec2( -0.707107, 0.707107 ) * sampleSize );","if( tmp.b < color.b ) color = tmp;","color = color * vec4( 2.0 ) - ( add / vec4( 8.0 ) );","color = color + ( add / vec4( 8.0 ) - color ) * ( vec4( 1.0 ) - vec4( sample_dist * 0.5 ) );","gl_FragColor = vec4( color.rgb * color.rgb * vec3( 0.95 ) + color.rgb, 1.0 );","}"].join("\n")}},{}],41:[function(){THREE.KaleidoShader={uniforms:{tDiffuse:{type:"t",value:null},sides:{type:"f",value:6},angle:{type:"f",value:0}},vertexShader:["varying vec2 vUv;","void main() {","vUv = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform sampler2D tDiffuse;","uniform float sides;","uniform float angle;","varying vec2 vUv;","void main() {","vec2 p = vUv - 0.5;","float r = length(p);","float a = atan(p.y, p.x) + angle;","float tau = 2. * 3.1416 ;","a = mod(a, tau/sides);","a = abs(a - tau/sides/2.) ;","p = r * vec2(cos(a), sin(a));","vec4 color = texture2D(tDiffuse, p + 0.5);","gl_FragColor = color;","}"].join("\n")}},{}],42:[function(){THREE.ShaderGodRays={godrays_generate:{uniforms:{tInput:{type:"t",value:null},fStepSize:{type:"f",value:1},vSunPositionScreenSpace:{type:"v2",value:new THREE.Vector2(.5,.5)}},vertexShader:["varying vec2 vUv;","void main() {","vUv = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["#define TAPS_PER_PASS 6.0","varying vec2 vUv;","uniform sampler2D tInput;","uniform vec2 vSunPositionScreenSpace;","uniform float fStepSize;","void main() {","vec2 delta = vSunPositionScreenSpace - vUv;","float dist = length( delta );","vec2 stepv = fStepSize * delta / dist;","float iters = dist/fStepSize;","vec2 uv = vUv.xy;","float col = 0.0;","if ( 0.0 <= iters && uv.y < 1.0 ) col += texture2D( tInput, uv ).r;","uv += stepv;","if ( 1.0 <= iters && uv.y < 1.0 ) col += texture2D( tInput, uv ).r;","uv += stepv;","if ( 2.0 <= iters && uv.y < 1.0 ) col += texture2D( tInput, uv ).r;","uv += stepv;","if ( 3.0 <= iters && uv.y < 1.0 ) col += texture2D( tInput, uv ).r;","uv += stepv;","if ( 4.0 <= iters && uv.y < 1.0 ) col += texture2D( tInput, uv ).r;","uv += stepv;","if ( 5.0 <= iters && uv.y < 1.0 ) col += texture2D( tInput, uv ).r;","uv += stepv;","gl_FragColor = vec4( col/TAPS_PER_PASS );","gl_FragColor.a = 1.0;","}"].join("\n")},godrays_combine:{uniforms:{tColors:{type:"t",value:null},tGodRays:{type:"t",value:null},fGodRayIntensity:{type:"f",value:.69},vSunPositionScreenSpace:{type:"v2",value:new THREE.Vector2(.5,.5)}},vertexShader:["varying vec2 vUv;","void main() {","vUv = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["varying vec2 vUv;","uniform sampler2D tColors;","uniform sampler2D tGodRays;","uniform vec2 vSunPositionScreenSpace;","uniform float fGodRayIntensity;","void main() {","gl_FragColor = texture2D( tColors, vUv ) + fGodRayIntensity * vec4( 1.0 - texture2D( tGodRays, vUv ).r );","gl_FragColor.a = 1.0;","}"].join("\n")},godrays_fake_sun:{uniforms:{vSunPositionScreenSpace:{type:"v2",value:new THREE.Vector2(.5,.5)},fAspect:{type:"f",value:1},sunColor:{type:"c",value:new THREE.Color(16772608)},bgColor:{type:"c",value:new THREE.Color(0)}},vertexShader:["varying vec2 vUv;","void main() {","vUv = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["varying vec2 vUv;","uniform vec2 vSunPositionScreenSpace;","uniform float fAspect;","uniform vec3 sunColor;","uniform vec3 bgColor;","void main() {","vec2 diff = vUv - vSunPositionScreenSpace;","diff.x *= fAspect;","float prop = clamp( length( diff ) / 0.5, 0.0, 1.0 );","prop = 0.35 * pow( 1.0 - prop, 3.0 );","gl_FragColor.xyz = mix( sunColor, bgColor, 1.0 - prop );","gl_FragColor.w = 1.0;","}"].join("\n")}}},{}],43:[function(e,t){!function(){"use strict";var e=window.THREE=e||{REVISION:"58"};self.console=self.console||{info:function(){},log:function(){},debug:function(){},warn:function(){},error:function(){}},self.Int32Array=self.Int32Array||Array,self.Float32Array=self.Float32Array||Array,String.prototype.trim=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},e.extend=function(e,t){if(Object.keys)for(var i=Object.keys(t),n=0,r=i.length;r>n;n++){var o=i[n];Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))}else for(o in i={}.hasOwnProperty,t)i.call(t,o)&&(e[o]=t[o]);return e},function(){for(var e=0,t=["ms","moz","webkit","o"],i=0;i<t.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[t[i]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[i]+"CancelAnimationFrame"]||window[t[i]+"CancelRequestAnimationFrame"];void 0===window.requestAnimationFrame&&(window.requestAnimationFrame=function(t){var i=Date.now(),n=Math.max(0,16-(i-e)),r=window.setTimeout(function(){t(i+n)},n);return e=i+n,r}),window.cancelAnimationFrame=window.cancelAnimationFrame||function(e){window.clearTimeout(e)}}(),e.CullFaceNone=0,e.CullFaceBack=1,e.CullFaceFront=2,e.CullFaceFrontBack=3,e.FrontFaceDirectionCW=0,e.FrontFaceDirectionCCW=1,e.BasicShadowMap=0,e.PCFShadowMap=1,e.PCFSoftShadowMap=2,e.FrontSide=0,e.BackSide=1,e.DoubleSide=2,e.NoShading=0,e.FlatShading=1,e.SmoothShading=2,e.NoColors=0,e.FaceColors=1,e.VertexColors=2,e.NoBlending=0,e.NormalBlending=1,e.AdditiveBlending=2,e.SubtractiveBlending=3,e.MultiplyBlending=4,e.CustomBlending=5,e.AddEquation=100,e.SubtractEquation=101,e.ReverseSubtractEquation=102,e.ZeroFactor=200,e.OneFactor=201,e.SrcColorFactor=202,e.OneMinusSrcColorFactor=203,e.SrcAlphaFactor=204,e.OneMinusSrcAlphaFactor=205,e.DstAlphaFactor=206,e.OneMinusDstAlphaFactor=207,e.DstColorFactor=208,e.OneMinusDstColorFactor=209,e.SrcAlphaSaturateFactor=210,e.MultiplyOperation=0,e.MixOperation=1,e.AddOperation=2,e.UVMapping=function(){},e.CubeReflectionMapping=function(){},e.CubeRefractionMapping=function(){},e.SphericalReflectionMapping=function(){},e.SphericalRefractionMapping=function(){},e.RepeatWrapping=1e3,e.ClampToEdgeWrapping=1001,e.MirroredRepeatWrapping=1002,e.NearestFilter=1003,e.NearestMipMapNearestFilter=1004,e.NearestMipMapLinearFilter=1005,e.LinearFilter=1006,e.LinearMipMapNearestFilter=1007,e.LinearMipMapLinearFilter=1008,e.UnsignedByteType=1009,e.ByteType=1010,e.ShortType=1011,e.UnsignedShortType=1012,e.IntType=1013,e.UnsignedIntType=1014,e.FloatType=1015,e.UnsignedShort4444Type=1016,e.UnsignedShort5551Type=1017,e.UnsignedShort565Type=1018,e.AlphaFormat=1019,e.RGBFormat=1020,e.RGBAFormat=1021,e.LuminanceFormat=1022,e.LuminanceAlphaFormat=1023,e.RGB_S3TC_DXT1_Format=2001,e.RGBA_S3TC_DXT1_Format=2002,e.RGBA_S3TC_DXT3_Format=2003,e.RGBA_S3TC_DXT5_Format=2004,e.Color=function(e){return void 0!==e&&this.set(e),this},e.Color.prototype={constructor:e.Color,r:1,g:1,b:1,set:function(t){return t instanceof e.Color?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t),this},setHex:function(e){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,this},setRGB:function(e,t,i){return this.r=e,this.g=t,this.b=i,this},setHSL:function(e,t,i){if(0===t)this.r=this.g=this.b=i;else{var n=function(e,t,i){return 0>i&&(i+=1),i>1&&(i-=1),1/6>i?e+6*(t-e)*i:.5>i?t:2/3>i?e+6*(t-e)*(2/3-i):e},t=.5>=i?i*(1+t):i+t-i*t,i=2*i-t;this.r=n(i,t,e+1/3),this.g=n(i,t,e),this.b=n(i,t,e-1/3)}return this},setStyle:function(t){return/^rgb\((\d+),(\d+),(\d+)\)$/i.test(t)?(t=/^rgb\((\d+),(\d+),(\d+)\)$/i.exec(t),this.r=Math.min(255,parseInt(t[1],10))/255,this.g=Math.min(255,parseInt(t[2],10))/255,this.b=Math.min(255,parseInt(t[3],10))/255,this):/^rgb\((\d+)\%,(\d+)\%,(\d+)\%\)$/i.test(t)?(t=/^rgb\((\d+)\%,(\d+)\%,(\d+)\%\)$/i.exec(t),this.r=Math.min(100,parseInt(t[1],10))/100,this.g=Math.min(100,parseInt(t[2],10))/100,this.b=Math.min(100,parseInt(t[3],10))/100,this):/^\#([0-9a-f]{6})$/i.test(t)?(t=/^\#([0-9a-f]{6})$/i.exec(t),this.setHex(parseInt(t[1],16)),this):/^\#([0-9a-f])([0-9a-f])([0-9a-f])$/i.test(t)?(t=/^\#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(t),this.setHex(parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],16)),this):/^(\w+)$/i.test(t)?(this.setHex(e.ColorKeywords[t]),this):void 0},copy:function(e){return this.r=e.r,this.g=e.g,this.b=e.b,this},copyGammaToLinear:function(e){return this.r=e.r*e.r,this.g=e.g*e.g,this.b=e.b*e.b,this},copyLinearToGamma:function(e){return this.r=Math.sqrt(e.r),this.g=Math.sqrt(e.g),this.b=Math.sqrt(e.b),this},convertGammaToLinear:function(){var e=this.r,t=this.g,i=this.b;return this.r=e*e,this.g=t*t,this.b=i*i,this},convertLinearToGamma:function(){return this.r=Math.sqrt(this.r),this.g=Math.sqrt(this.g),this.b=Math.sqrt(this.b),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(){var e={h:0,s:0,l:0};return function(){var t,i=this.r,n=this.g,r=this.b,o=Math.max(i,n,r),a=Math.min(i,n,r),s=(a+o)/2;if(a===o)a=t=0;else{var l=o-a,a=.5>=s?l/(o+a):l/(2-o-a);switch(o){case i:t=(n-r)/l+(r>n?6:0);break;case n:t=(r-i)/l+2;break;case r:t=(i-n)/l+4}t/=6}return e.h=t,e.s=a,e.l=s,e}}(),getStyle:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"},offsetHSL:function(e,t,i){var n=this.getHSL();return n.h+=e,n.s+=t,n.l+=i,this.setHSL(n.h,n.s,n.l),this},add:function(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this},addColors:function(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this},addScalar:function(e){return this.r+=e,this.g+=e,this.b+=e,this},multiply:function(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this},multiplyScalar:function(e){return this.r*=e,this.g*=e,this.b*=e,this},lerp:function(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this},equals:function(e){return e.r===this.r&&e.g===this.g&&e.b===this.b},clone:function(){return(new e.Color).setRGB(this.r,this.g,this.b)}},e.ColorKeywords={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,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},e.Quaternion=function(e,t,i,n){this.x=e||0,this.y=t||0,this.z=i||0,this.w=void 0!==n?n:1},e.Quaternion.prototype={constructor:e.Quaternion,set:function(e,t,i,n){return this.x=e,this.y=t,this.z=i,this.w=n,this},copy:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w,this},setFromEuler:function(e,t){var i=Math.cos(e.x/2),n=Math.cos(e.y/2),r=Math.cos(e.z/2),o=Math.sin(e.x/2),a=Math.sin(e.y/2),s=Math.sin(e.z/2);return void 0===t||"XYZ"===t?(this.x=o*n*r+i*a*s,this.y=i*a*r-o*n*s,this.z=i*n*s+o*a*r,this.w=i*n*r-o*a*s):"YXZ"===t?(this.x=o*n*r+i*a*s,this.y=i*a*r-o*n*s,this.z=i*n*s-o*a*r,this.w=i*n*r+o*a*s):"ZXY"===t?(this.x=o*n*r-i*a*s,this.y=i*a*r+o*n*s,this.z=i*n*s+o*a*r,this.w=i*n*r-o*a*s):"ZYX"===t?(this.x=o*n*r-i*a*s,this.y=i*a*r+o*n*s,this.z=i*n*s-o*a*r,this.w=i*n*r+o*a*s):"YZX"===t?(this.x=o*n*r+i*a*s,this.y=i*a*r+o*n*s,this.z=i*n*s-o*a*r,this.w=i*n*r-o*a*s):"XZY"===t&&(this.x=o*n*r-i*a*s,this.y=i*a*r-o*n*s,this.z=i*n*s+o*a*r,this.w=i*n*r+o*a*s),this},setFromAxisAngle:function(e,t){var i=t/2,n=Math.sin(i);return this.x=e.x*n,this.y=e.y*n,this.z=e.z*n,this.w=Math.cos(i),this},setFromRotationMatrix:function(e){var t=e.elements,i=t[0],e=t[4],n=t[8],r=t[1],o=t[5],a=t[9],s=t[2],l=t[6],t=t[10],h=i+o+t;return h>0?(i=.5/Math.sqrt(h+1),this.w=.25/i,this.x=(l-a)*i,this.y=(n-s)*i,this.z=(r-e)*i):i>o&&i>t?(i=2*Math.sqrt(1+i-o-t),this.w=(l-a)/i,this.x=.25*i,this.y=(e+r)/i,this.z=(n+s)/i):o>t?(i=2*Math.sqrt(1+o-i-t),this.w=(n-s)/i,this.x=(e+r)/i,this.y=.25*i,this.z=(a+l)/i):(i=2*Math.sqrt(1+t-i-o),this.w=(r-e)/i,this.x=(n+s)/i,this.y=(a+l)/i,this.z=.25*i),this},inverse:function(){return this.conjugate().normalize(),this},conjugate:function(){return this.x*=-1,this.y*=-1,this.z*=-1,this},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},normalize:function(){var e=this.length();return 0===e?(this.z=this.y=this.x=0,this.w=1):(e=1/e,this.x*=e,this.y*=e,this.z*=e,this.w*=e),this},multiply:function(e,t){return void 0!==t?(console.warn("DEPRECATED: Quaternion's .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(e,t)):this.multiplyQuaternions(this,e)},multiplyQuaternions:function(e,t){var i=e.x,n=e.y,r=e.z,o=e.w,a=t.x,s=t.y,l=t.z,h=t.w;return this.x=i*h+o*a+n*l-r*s,this.y=n*h+o*s+r*a-i*l,this.z=r*h+o*l+i*s-n*a,this.w=o*h-i*a-n*s-r*l,this},multiplyVector3:function(e){return console.warn("DEPRECATED: Quaternion's .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),e.applyQuaternion(this)},slerp:function(e,t){var i=this.x,n=this.y,r=this.z,o=this.w,a=o*e.w+i*e.x+n*e.y+r*e.z;if(0>a?(this.w=-e.w,this.x=-e.x,this.y=-e.y,this.z=-e.z,a=-a):this.copy(e),a>=1)return this.w=o,this.x=i,this.y=n,this.z=r,this;var s=Math.acos(a),l=Math.sqrt(1-a*a);return.001>Math.abs(l)?(this.w=.5*(o+this.w),this.x=.5*(i+this.x),this.y=.5*(n+this.y),this.z=.5*(r+this.z),this):(a=Math.sin((1-t)*s)/l,s=Math.sin(t*s)/l,this.w=o*a+this.w*s,this.x=i*a+this.x*s,this.y=n*a+this.y*s,this.z=r*a+this.z*s,this)},equals:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w},fromArray:function(e){return this.x=e[0],this.y=e[1],this.z=e[2],this.w=e[3],this},toArray:function(){return[this.x,this.y,this.z,this.w]},clone:function(){return new e.Quaternion(this.x,this.y,this.z,this.w)}},e.Quaternion.slerp=function(e,t,i,n){return i.copy(e).slerp(t,n)},e.Vector2=function(e,t){this.x=e||0,this.y=t||0},e.Vector2.prototype={constructor:e.Vector2,set:function(e,t){return this.x=e,this.y=t,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setComponent:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error("index is out of range: "+e) }},getComponent:function(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error("index is out of range: "+e)}},copy:function(e){return this.x=e.x,this.y=e.y,this},add:function(e,t){return void 0!==t?(console.warn("DEPRECATED: Vector2's .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this)},addVectors:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this},addScalar:function(e){return this.x+=e,this.y+=e,this},sub:function(e,t){return void 0!==t?(console.warn("DEPRECATED: Vector2's .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this)},subVectors:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this},multiplyScalar:function(e){return this.x*=e,this.y*=e,this},divideScalar:function(e){return 0!==e?(this.x/=e,this.y/=e):this.set(0,0),this},min:function(e){return this.x>e.x&&(this.x=e.x),this.y>e.y&&(this.y=e.y),this},max:function(e){return this.x<e.x&&(this.x=e.x),this.y<e.y&&(this.y=e.y),this},clamp:function(e,t){return this.x<e.x?this.x=e.x:this.x>t.x&&(this.x=t.x),this.y<e.y?this.y=e.y:this.y>t.y&&(this.y=t.y),this},negate:function(){return this.multiplyScalar(-1)},dot:function(e){return this.x*e.x+this.y*e.y},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},normalize:function(){return this.divideScalar(this.length())},distanceTo:function(e){return Math.sqrt(this.distanceToSquared(e))},distanceToSquared:function(e){var t=this.x-e.x,e=this.y-e.y;return t*t+e*e},setLength:function(e){var t=this.length();return 0!==t&&e!==t&&this.multiplyScalar(e/t),this},lerp:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this},equals:function(e){return e.x===this.x&&e.y===this.y},fromArray:function(e){return this.x=e[0],this.y=e[1],this},toArray:function(){return[this.x,this.y]},clone:function(){return new e.Vector2(this.x,this.y)}},e.Vector3=function(e,t,i){this.x=e||0,this.y=t||0,this.z=i||0},e.Vector3.prototype={constructor:e.Vector3,set:function(e,t,i){return this.x=e,this.y=t,this.z=i,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setZ:function(e){return this.z=e,this},setComponent:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error("index is out of range: "+e)}},getComponent:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error("index is out of range: "+e)}},copy:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this},add:function(e,t){return void 0!==t?(console.warn("DEPRECATED: Vector3's .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)},addScalar:function(e){return this.x+=e,this.y+=e,this.z+=e,this},addVectors:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this},sub:function(e,t){return void 0!==t?(console.warn("DEPRECATED: Vector3's .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)},subVectors:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this},multiply:function(e,t){return void 0!==t?(console.warn("DEPRECATED: Vector3's .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(e,t)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)},multiplyScalar:function(e){return this.x*=e,this.y*=e,this.z*=e,this},multiplyVectors:function(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this},applyMatrix3:function(e){var t=this.x,i=this.y,n=this.z,e=e.elements;return this.x=e[0]*t+e[3]*i+e[6]*n,this.y=e[1]*t+e[4]*i+e[7]*n,this.z=e[2]*t+e[5]*i+e[8]*n,this},applyMatrix4:function(e){var t=this.x,i=this.y,n=this.z,e=e.elements;return this.x=e[0]*t+e[4]*i+e[8]*n+e[12],this.y=e[1]*t+e[5]*i+e[9]*n+e[13],this.z=e[2]*t+e[6]*i+e[10]*n+e[14],this},applyProjection:function(e){var t=this.x,i=this.y,n=this.z,e=e.elements,r=1/(e[3]*t+e[7]*i+e[11]*n+e[15]);return this.x=(e[0]*t+e[4]*i+e[8]*n+e[12])*r,this.y=(e[1]*t+e[5]*i+e[9]*n+e[13])*r,this.z=(e[2]*t+e[6]*i+e[10]*n+e[14])*r,this},applyQuaternion:function(e){var t=this.x,i=this.y,n=this.z,r=e.x,o=e.y,a=e.z,e=e.w,s=e*t+o*n-a*i,l=e*i+a*t-r*n,h=e*n+r*i-o*t,t=-r*t-o*i-a*n;return this.x=s*e+t*-r+l*-a-h*-o,this.y=l*e+t*-o+h*-r-s*-a,this.z=h*e+t*-a+s*-o-l*-r,this},transformDirection:function(e){var t=this.x,i=this.y,n=this.z,e=e.elements;return this.x=e[0]*t+e[4]*i+e[8]*n,this.y=e[1]*t+e[5]*i+e[9]*n,this.z=e[2]*t+e[6]*i+e[10]*n,this.normalize(),this},divide:function(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this},divideScalar:function(e){return 0!==e?(this.x/=e,this.y/=e,this.z/=e):this.z=this.y=this.x=0,this},min:function(e){return this.x>e.x&&(this.x=e.x),this.y>e.y&&(this.y=e.y),this.z>e.z&&(this.z=e.z),this},max:function(e){return this.x<e.x&&(this.x=e.x),this.y<e.y&&(this.y=e.y),this.z<e.z&&(this.z=e.z),this},clamp:function(e,t){return this.x<e.x?this.x=e.x:this.x>t.x&&(this.x=t.x),this.y<e.y?this.y=e.y:this.y>t.y&&(this.y=t.y),this.z<e.z?this.z=e.z:this.z>t.z&&(this.z=t.z),this},negate:function(){return this.multiplyScalar(-1)},dot:function(e){return this.x*e.x+this.y*e.y+this.z*e.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length())},setLength:function(e){var t=this.length();return 0!==t&&e!==t&&this.multiplyScalar(e/t),this},lerp:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this},cross:function(e,t){if(void 0!==t)return console.warn("DEPRECATED: Vector3's .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(e,t);var i=this.x,n=this.y,r=this.z;return this.x=n*e.z-r*e.y,this.y=r*e.x-i*e.z,this.z=i*e.y-n*e.x,this},crossVectors:function(e,t){return this.x=e.y*t.z-e.z*t.y,this.y=e.z*t.x-e.x*t.z,this.z=e.x*t.y-e.y*t.x,this},angleTo:function(t){return t=this.dot(t)/(this.length()*t.length()),Math.acos(e.Math.clamp(t,-1,1))},distanceTo:function(e){return Math.sqrt(this.distanceToSquared(e))},distanceToSquared:function(e){var t=this.x-e.x,i=this.y-e.y,e=this.z-e.z;return t*t+i*i+e*e},setEulerFromRotationMatrix:function(e,t){function i(e){return Math.min(Math.max(e,-1),1)}var n=e.elements,r=n[0],o=n[4],a=n[8],s=n[1],l=n[5],h=n[9],c=n[2],u=n[6],n=n[10];return void 0===t||"XYZ"===t?(this.y=Math.asin(i(a)),.99999>Math.abs(a)?(this.x=Math.atan2(-h,n),this.z=Math.atan2(-o,r)):(this.x=Math.atan2(u,l),this.z=0)):"YXZ"===t?(this.x=Math.asin(-i(h)),.99999>Math.abs(h)?(this.y=Math.atan2(a,n),this.z=Math.atan2(s,l)):(this.y=Math.atan2(-c,r),this.z=0)):"ZXY"===t?(this.x=Math.asin(i(u)),.99999>Math.abs(u)?(this.y=Math.atan2(-c,n),this.z=Math.atan2(-o,l)):(this.y=0,this.z=Math.atan2(s,r))):"ZYX"===t?(this.y=Math.asin(-i(c)),.99999>Math.abs(c)?(this.x=Math.atan2(u,n),this.z=Math.atan2(s,r)):(this.x=0,this.z=Math.atan2(-o,l))):"YZX"===t?(this.z=Math.asin(i(s)),.99999>Math.abs(s)?(this.x=Math.atan2(-h,l),this.y=Math.atan2(-c,r)):(this.x=0,this.y=Math.atan2(a,n))):"XZY"===t&&(this.z=Math.asin(-i(o)),.99999>Math.abs(o)?(this.x=Math.atan2(u,l),this.y=Math.atan2(a,r)):(this.x=Math.atan2(-h,n),this.y=0)),this},setEulerFromQuaternion:function(e,t){function i(e){return Math.min(Math.max(e,-1),1)}var n=e.x*e.x,r=e.y*e.y,o=e.z*e.z,a=e.w*e.w;return void 0===t||"XYZ"===t?(this.x=Math.atan2(2*(e.x*e.w-e.y*e.z),a-n-r+o),this.y=Math.asin(i(2*(e.x*e.z+e.y*e.w))),this.z=Math.atan2(2*(e.z*e.w-e.x*e.y),a+n-r-o)):"YXZ"===t?(this.x=Math.asin(i(2*(e.x*e.w-e.y*e.z))),this.y=Math.atan2(2*(e.x*e.z+e.y*e.w),a-n-r+o),this.z=Math.atan2(2*(e.x*e.y+e.z*e.w),a-n+r-o)):"ZXY"===t?(this.x=Math.asin(i(2*(e.x*e.w+e.y*e.z))),this.y=Math.atan2(2*(e.y*e.w-e.z*e.x),a-n-r+o),this.z=Math.atan2(2*(e.z*e.w-e.x*e.y),a-n+r-o)):"ZYX"===t?(this.x=Math.atan2(2*(e.x*e.w+e.z*e.y),a-n-r+o),this.y=Math.asin(i(2*(e.y*e.w-e.x*e.z))),this.z=Math.atan2(2*(e.x*e.y+e.z*e.w),a+n-r-o)):"YZX"===t?(this.x=Math.atan2(2*(e.x*e.w-e.z*e.y),a-n+r-o),this.y=Math.atan2(2*(e.y*e.w-e.x*e.z),a+n-r-o),this.z=Math.asin(i(2*(e.x*e.y+e.z*e.w)))):"XZY"===t&&(this.x=Math.atan2(2*(e.x*e.w+e.y*e.z),a-n+r-o),this.y=Math.atan2(2*(e.x*e.z+e.y*e.w),a+n-r-o),this.z=Math.asin(i(2*(e.z*e.w-e.x*e.y)))),this},getPositionFromMatrix:function(e){return this.x=e.elements[12],this.y=e.elements[13],this.z=e.elements[14],this},getScaleFromMatrix:function(e){var t=this.set(e.elements[0],e.elements[1],e.elements[2]).length(),i=this.set(e.elements[4],e.elements[5],e.elements[6]).length(),e=this.set(e.elements[8],e.elements[9],e.elements[10]).length();return this.x=t,this.y=i,this.z=e,this},getColumnFromMatrix:function(e,t){var i=4*e,n=t.elements;return this.x=n[i],this.y=n[i+1],this.z=n[i+2],this},equals:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z},fromArray:function(e){return this.x=e[0],this.y=e[1],this.z=e[2],this},toArray:function(){return[this.x,this.y,this.z]},clone:function(){return new e.Vector3(this.x,this.y,this.z)}},e.extend(e.Vector3.prototype,{applyEuler:function(){var t=new e.Quaternion;return function(e,i){var n=t.setFromEuler(e,i);return this.applyQuaternion(n),this}}(),applyAxisAngle:function(){var t=new e.Quaternion;return function(e,i){var n=t.setFromAxisAngle(e,i);return this.applyQuaternion(n),this}}(),projectOnVector:function(){var t=new e.Vector3;return function(e){return t.copy(e).normalize(),e=this.dot(t),this.copy(t).multiplyScalar(e)}}(),projectOnPlane:function(){var t=new e.Vector3;return function(e){return t.copy(this).projectOnVector(e),this.sub(t)}}(),reflect:function(){var t=new e.Vector3;return function(e){return t.copy(this).projectOnVector(e).multiplyScalar(2),this.subVectors(t,this)}}()}),e.Vector4=function(e,t,i,n){this.x=e||0,this.y=t||0,this.z=i||0,this.w=void 0!==n?n:1},e.Vector4.prototype={constructor:e.Vector4,set:function(e,t,i,n){return this.x=e,this.y=t,this.z=i,this.w=n,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setZ:function(e){return this.z=e,this},setW:function(e){return this.w=e,this},setComponent:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error("index is out of range: "+e)}},getComponent:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error("index is out of range: "+e)}},copy:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this},add:function(e,t){return void 0!==t?(console.warn("DEPRECATED: Vector4's .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this)},addScalar:function(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this},addVectors:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this},sub:function(e,t){return void 0!==t?(console.warn("DEPRECATED: Vector4's .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this)},subVectors:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this},multiplyScalar:function(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this},applyMatrix4:function(e){var t=this.x,i=this.y,n=this.z,r=this.w,e=e.elements;return this.x=e[0]*t+e[4]*i+e[8]*n+e[12]*r,this.y=e[1]*t+e[5]*i+e[9]*n+e[13]*r,this.z=e[2]*t+e[6]*i+e[10]*n+e[14]*r,this.w=e[3]*t+e[7]*i+e[11]*n+e[15]*r,this},divideScalar:function(e){return 0!==e?(this.x/=e,this.y/=e,this.z/=e,this.w/=e):(this.z=this.y=this.x=0,this.w=1),this},setAxisAngleFromQuaternion:function(e){this.w=2*Math.acos(e.w);var t=Math.sqrt(1-e.w*e.w);return 1e-4>t?(this.x=1,this.z=this.y=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this},setAxisAngleFromRotationMatrix:function(e){var t,i,n,e=e.elements,r=e[0];n=e[4];var o=e[8],a=e[1],s=e[5],l=e[9];i=e[2],t=e[6];var h=e[10];return.01>Math.abs(n-a)&&.01>Math.abs(o-i)&&.01>Math.abs(l-t)?.1>Math.abs(n+a)&&.1>Math.abs(o+i)&&.1>Math.abs(l+t)&&.1>Math.abs(r+s+h-3)?(this.set(1,0,0,0),this):(e=Math.PI,r=(r+1)/2,s=(s+1)/2,h=(h+1)/2,n=(n+a)/4,o=(o+i)/4,l=(l+t)/4,r>s&&r>h?.01>r?(t=0,n=i=.707106781):(t=Math.sqrt(r),i=n/t,n=o/t):s>h?.01>s?(t=.707106781,i=0,n=.707106781):(i=Math.sqrt(s),t=n/i,n=l/i):.01>h?(i=t=.707106781,n=0):(n=Math.sqrt(h),t=o/n,i=l/n),this.set(t,i,n,e),this):(e=Math.sqrt((t-l)*(t-l)+(o-i)*(o-i)+(a-n)*(a-n)),.001>Math.abs(e)&&(e=1),this.x=(t-l)/e,this.y=(o-i)/e,this.z=(a-n)/e,this.w=Math.acos((r+s+h-1)/2),this)},min:function(e){return this.x>e.x&&(this.x=e.x),this.y>e.y&&(this.y=e.y),this.z>e.z&&(this.z=e.z),this.w>e.w&&(this.w=e.w),this},max:function(e){return this.x<e.x&&(this.x=e.x),this.y<e.y&&(this.y=e.y),this.z<e.z&&(this.z=e.z),this.w<e.w&&(this.w=e.w),this},clamp:function(e,t){return this.x<e.x?this.x=e.x:this.x>t.x&&(this.x=t.x),this.y<e.y?this.y=e.y:this.y>t.y&&(this.y=t.y),this.z<e.z?this.z=e.z:this.z>t.z&&(this.z=t.z),this.w<e.w?this.w=e.w:this.w>t.w&&(this.w=t.w),this},negate:function(){return this.multiplyScalar(-1)},dot:function(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)},normalize:function(){return this.divideScalar(this.length())},setLength:function(e){var t=this.length();return 0!==t&&e!==t&&this.multiplyScalar(e/t),this},lerp:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this},equals:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w},fromArray:function(e){return this.x=e[0],this.y=e[1],this.z=e[2],this.w=e[3],this},toArray:function(){return[this.x,this.y,this.z,this.w]},clone:function(){return new e.Vector4(this.x,this.y,this.z,this.w)}},e.Line3=function(t,i){this.start=void 0!==t?t:new e.Vector3,this.end=void 0!==i?i:new e.Vector3},e.Line3.prototype={constructor:e.Line3,set:function(e,t){return this.start.copy(e),this.end.copy(t),this},copy:function(e){return this.start.copy(e.start),this.end.copy(e.end),this},center:function(t){return(t||new e.Vector3).addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(t){return(t||new e.Vector3).subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(t,i){var n=i||new e.Vector3;return this.delta(n).multiplyScalar(t).add(this.start)},closestPointToPointParameter:function(){var t=new e.Vector3,i=new e.Vector3;return function(n,r){t.subVectors(n,this.start),i.subVectors(this.end,this.start);var o=i.dot(i),o=i.dot(t)/o;return r&&(o=e.Math.clamp(o,0,1)),o}}(),closestPointToPoint:function(t,i,n){return t=this.closestPointToPointParameter(t,i),n=n||new e.Vector3,this.delta(n).multiplyScalar(t).add(this.start)},applyMatrix4:function(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this},equals:function(e){return e.start.equals(this.start)&&e.end.equals(this.end)},clone:function(){return(new e.Line3).copy(this)}},e.Box2=function(t,i){this.min=void 0!==t?t:new e.Vector2(1/0,1/0),this.max=void 0!==i?i:new e.Vector2(-1/0,-1/0)},e.Box2.prototype={constructor:e.Box2,set:function(e,t){return this.min.copy(e),this.max.copy(t),this},setFromPoints:function(e){if(0<e.length){var t=e[0];this.min.copy(t),this.max.copy(t);for(var i=1,n=e.length;n>i;i++)t=e[i],t.x<this.min.x?this.min.x=t.x:t.x>this.max.x&&(this.max.x=t.x),t.y<this.min.y?this.min.y=t.y:t.y>this.max.y&&(this.max.y=t.y)}else this.makeEmpty();return this},setFromCenterAndSize:function(){var t=new e.Vector2;return function(e,i){var n=t.copy(i).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}}(),copy:function(e){return this.min.copy(e.min),this.max.copy(e.max),this},makeEmpty:function(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this},empty:function(){return this.max.x<this.min.x||this.max.y<this.min.y},center:function(t){return(t||new e.Vector2).addVectors(this.min,this.max).multiplyScalar(.5)},size:function(t){return(t||new e.Vector2).subVectors(this.max,this.min)},expandByPoint:function(e){return this.min.min(e),this.max.max(e),this},expandByVector:function(e){return this.min.sub(e),this.max.add(e),this},expandByScalar:function(e){return this.min.addScalar(-e),this.max.addScalar(e),this},containsPoint:function(e){return e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y?!1:!0},containsBox:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y?!0:!1},getParameter:function(t){return new e.Vector2((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))},isIntersectionBox:function(e){return e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y?!1:!0},clampPoint:function(t,i){return(i||new e.Vector2).copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new e.Vector2;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),intersect:function(e){return this.min.max(e.min),this.max.min(e.max),this},union:function(e){return this.min.min(e.min),this.max.max(e.max),this},translate:function(e){return this.min.add(e),this.max.add(e),this},equals:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)},clone:function(){return(new e.Box2).copy(this)}},e.Box3=function(t,i){this.min=void 0!==t?t:new e.Vector3(1/0,1/0,1/0),this.max=void 0!==i?i:new e.Vector3(-1/0,-1/0,-1/0)},e.Box3.prototype={constructor:e.Box3,set:function(e,t){return this.min.copy(e),this.max.copy(t),this},setFromPoints:function(e){if(0<e.length){var t=e[0];this.min.copy(t),this.max.copy(t);for(var i=1,n=e.length;n>i;i++)t=e[i],t.x<this.min.x?this.min.x=t.x:t.x>this.max.x&&(this.max.x=t.x),t.y<this.min.y?this.min.y=t.y:t.y>this.max.y&&(this.max.y=t.y),t.z<this.min.z?this.min.z=t.z:t.z>this.max.z&&(this.max.z=t.z)}else this.makeEmpty();return this},setFromCenterAndSize:function(){var t=new e.Vector3;return function(e,i){var n=t.copy(i).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}}(),copy:function(e){return this.min.copy(e.min),this.max.copy(e.max),this},makeEmpty:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this},empty:function(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z},center:function(t){return(t||new e.Vector3).addVectors(this.min,this.max).multiplyScalar(.5)},size:function(t){return(t||new e.Vector3).subVectors(this.max,this.min)},expandByPoint:function(e){return this.min.min(e),this.max.max(e),this},expandByVector:function(e){return this.min.sub(e),this.max.add(e),this},expandByScalar:function(e){return this.min.addScalar(-e),this.max.addScalar(e),this},containsPoint:function(e){return e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z?!1:!0},containsBox:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z?!0:!1},getParameter:function(t){return new e.Vector3((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))},isIntersectionBox:function(e){return e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z?!1:!0},clampPoint:function(t,i){return(i||new e.Vector3).copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new e.Vector3;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),getBoundingSphere:function(){var t=new e.Vector3;return function(i){return i=i||new e.Sphere,i.center=this.center(),i.radius=.5*this.size(t).length(),i}}(),intersect:function(e){return this.min.max(e.min),this.max.min(e.max),this},union:function(e){return this.min.min(e.min),this.max.max(e.max),this},applyMatrix4:function(){var t=[new e.Vector3,new e.Vector3,new e.Vector3,new e.Vector3,new e.Vector3,new e.Vector3,new e.Vector3,new e.Vector3];return function(e){return t[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),t[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),t[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),t[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),t[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),t[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),t[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),t[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.makeEmpty(),this.setFromPoints(t),this}}(),translate:function(e){return this.min.add(e),this.max.add(e),this},equals:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)},clone:function(){return(new e.Box3).copy(this)}},e.Matrix3=function(e,t,i,n,r,o,a,s,l){this.elements=new Float32Array(9),this.set(void 0!==e?e:1,t||0,i||0,n||0,void 0!==r?r:1,o||0,a||0,s||0,void 0!==l?l:1)},e.Matrix3.prototype={constructor:e.Matrix3,set:function(e,t,i,n,r,o,a,s,l){var h=this.elements;return h[0]=e,h[3]=t,h[6]=i,h[1]=n,h[4]=r,h[7]=o,h[2]=a,h[5]=s,h[8]=l,this},identity:function(){return this.set(1,0,0,0,1,0,0,0,1),this},copy:function(e){return e=e.elements,this.set(e[0],e[3],e[6],e[1],e[4],e[7],e[2],e[5],e[8]),this},multiplyVector3:function(e){return console.warn("DEPRECATED: Matrix3's .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},multiplyVector3Array:function(){var t=new e.Vector3;return function(e){for(var i=0,n=e.length;n>i;i+=3)t.x=e[i],t.y=e[i+1],t.z=e[i+2],t.applyMatrix3(this),e[i]=t.x,e[i+1]=t.y,e[i+2]=t.z;return e}}(),multiplyScalar:function(e){var t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this},determinant:function(){var e=this.elements,t=e[0],i=e[1],n=e[2],r=e[3],o=e[4],a=e[5],s=e[6],l=e[7],e=e[8];return t*o*e-t*a*l-i*r*e+i*a*s+n*r*l-n*o*s},getInverse:function(e,t){var i=e.elements,n=this.elements;if(n[0]=i[10]*i[5]-i[6]*i[9],n[1]=-i[10]*i[1]+i[2]*i[9],n[2]=i[6]*i[1]-i[2]*i[5],n[3]=-i[10]*i[4]+i[6]*i[8],n[4]=i[10]*i[0]-i[2]*i[8],n[5]=-i[6]*i[0]+i[2]*i[4],n[6]=i[9]*i[4]-i[5]*i[8],n[7]=-i[9]*i[0]+i[1]*i[8],n[8]=i[5]*i[0]-i[1]*i[4],i=i[0]*n[0]+i[1]*n[3]+i[2]*n[6],0===i){if(t)throw Error("Matrix3.getInverse(): can't invert matrix, determinant is 0");return console.warn("Matrix3.getInverse(): can't invert matrix, determinant is 0"),this.identity(),this}return this.multiplyScalar(1/i),this},transpose:function(){var e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this},getNormalMatrix:function(e){return this.getInverse(e).transpose(),this},transposeIntoArray:function(e){var t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this},clone:function(){var t=this.elements;return new e.Matrix3(t[0],t[3],t[6],t[1],t[4],t[7],t[2],t[5],t[8])}},e.Matrix4=function(e,t,i,n,r,o,a,s,l,h,c,u,p,f,d,m){var g=this.elements=new Float32Array(16);g[0]=void 0!==e?e:1,g[4]=t||0,g[8]=i||0,g[12]=n||0,g[1]=r||0,g[5]=void 0!==o?o:1,g[9]=a||0,g[13]=s||0,g[2]=l||0,g[6]=h||0,g[10]=void 0!==c?c:1,g[14]=u||0,g[3]=p||0,g[7]=f||0,g[11]=d||0,g[15]=void 0!==m?m:1},e.Matrix4.prototype={constructor:e.Matrix4,set:function(e,t,i,n,r,o,a,s,l,h,c,u,p,f,d,m){var g=this.elements;return g[0]=e,g[4]=t,g[8]=i,g[12]=n,g[1]=r,g[5]=o,g[9]=a,g[13]=s,g[2]=l,g[6]=h,g[10]=c,g[14]=u,g[3]=p,g[7]=f,g[11]=d,g[15]=m,this},identity:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this},copy:function(e){return e=e.elements,this.set(e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15]),this},extractPosition:function(e){return console.warn("DEPRECATED: Matrix4's .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(e)},copyPosition:function(e){var t=this.elements,e=e.elements;return t[12]=e[12],t[13]=e[13],t[14]=e[14],this},extractRotation:function(){var t=new e.Vector3;return function(e){var i=this.elements,e=e.elements,n=1/t.set(e[0],e[1],e[2]).length(),r=1/t.set(e[4],e[5],e[6]).length(),o=1/t.set(e[8],e[9],e[10]).length();return i[0]=e[0]*n,i[1]=e[1]*n,i[2]=e[2]*n,i[4]=e[4]*r,i[5]=e[5]*r,i[6]=e[6]*r,i[8]=e[8]*o,i[9]=e[9]*o,i[10]=e[10]*o,this}}(),setRotationFromEuler:function(e,t){return console.warn("DEPRECATED: Matrix4's .setRotationFromEuler() has been deprecated in favor of makeRotationFromEuler. Please update your code."),this.makeRotationFromEuler(e,t)},makeRotationFromEuler:function(e,t){var i=this.elements,n=e.x,r=e.y,o=e.z,a=Math.cos(n),n=Math.sin(n),s=Math.cos(r),r=Math.sin(r),l=Math.cos(o),o=Math.sin(o);if(void 0===t||"XYZ"===t){var h=a*l,c=a*o,u=n*l,p=n*o;i[0]=s*l,i[4]=-s*o,i[8]=r,i[1]=c+u*r,i[5]=h-p*r,i[9]=-n*s,i[2]=p-h*r,i[6]=u+c*r,i[10]=a*s}else"YXZ"===t?(h=s*l,c=s*o,u=r*l,p=r*o,i[0]=h+p*n,i[4]=u*n-c,i[8]=a*r,i[1]=a*o,i[5]=a*l,i[9]=-n,i[2]=c*n-u,i[6]=p+h*n,i[10]=a*s):"ZXY"===t?(h=s*l,c=s*o,u=r*l,p=r*o,i[0]=h-p*n,i[4]=-a*o,i[8]=u+c*n,i[1]=c+u*n,i[5]=a*l,i[9]=p-h*n,i[2]=-a*r,i[6]=n,i[10]=a*s):"ZYX"===t?(h=a*l,c=a*o,u=n*l,p=n*o,i[0]=s*l,i[4]=u*r-c,i[8]=h*r+p,i[1]=s*o,i[5]=p*r+h,i[9]=c*r-u,i[2]=-r,i[6]=n*s,i[10]=a*s):"YZX"===t?(h=a*s,c=a*r,u=n*s,p=n*r,i[0]=s*l,i[4]=p-h*o,i[8]=u*o+c,i[1]=o,i[5]=a*l,i[9]=-n*l,i[2]=-r*l,i[6]=c*o+u,i[10]=h-p*o):"XZY"===t&&(h=a*s,c=a*r,u=n*s,p=n*r,i[0]=s*l,i[4]=-o,i[8]=r*l,i[1]=h*o+p,i[5]=a*l,i[9]=c*o-u,i[2]=u*o-c,i[6]=n*l,i[10]=p*o+h);return i[3]=0,i[7]=0,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,this},setRotationFromQuaternion:function(e){return console.warn("DEPRECATED: Matrix4's .setRotationFromQuaternion() has been deprecated in favor of makeRotationFromQuaternion. Please update your code."),this.makeRotationFromQuaternion(e)},makeRotationFromQuaternion:function(e){var t=this.elements,i=e.x,n=e.y,r=e.z,o=e.w,a=i+i,s=n+n,l=r+r,e=i*a,h=i*s,i=i*l,c=n*s,n=n*l,r=r*l,a=o*a,s=o*s,o=o*l;return t[0]=1-(c+r),t[4]=h-o,t[8]=i+s,t[1]=h+o,t[5]=1-(e+r),t[9]=n-a,t[2]=i-s,t[6]=n+a,t[10]=1-(e+c),t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},lookAt:function(){var t=new e.Vector3,i=new e.Vector3,n=new e.Vector3;return function(e,r,o){var a=this.elements;return n.subVectors(e,r).normalize(),0===n.length()&&(n.z=1),t.crossVectors(o,n).normalize(),0===t.length()&&(n.x+=1e-4,t.crossVectors(o,n).normalize()),i.crossVectors(n,t),a[0]=t.x,a[4]=i.x,a[8]=n.x,a[1]=t.y,a[5]=i.y,a[9]=n.y,a[2]=t.z,a[6]=i.z,a[10]=n.z,this}}(),multiply:function(e,t){return void 0!==t?(console.warn("DEPRECATED: Matrix4's .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(e,t)):this.multiplyMatrices(this,e)},multiplyMatrices:function(e,t){var i=e.elements,n=t.elements,r=this.elements,o=i[0],a=i[4],s=i[8],l=i[12],h=i[1],c=i[5],u=i[9],p=i[13],f=i[2],d=i[6],m=i[10],g=i[14],v=i[3],y=i[7],b=i[11],i=i[15],x=n[0],w=n[4],_=n[8],S=n[12],M=n[1],T=n[5],C=n[9],A=n[13],E=n[2],P=n[6],k=n[10],R=n[14],L=n[3],D=n[7],F=n[11],n=n[15];return r[0]=o*x+a*M+s*E+l*L,r[4]=o*w+a*T+s*P+l*D,r[8]=o*_+a*C+s*k+l*F,r[12]=o*S+a*A+s*R+l*n,r[1]=h*x+c*M+u*E+p*L,r[5]=h*w+c*T+u*P+p*D,r[9]=h*_+c*C+u*k+p*F,r[13]=h*S+c*A+u*R+p*n,r[2]=f*x+d*M+m*E+g*L,r[6]=f*w+d*T+m*P+g*D,r[10]=f*_+d*C+m*k+g*F,r[14]=f*S+d*A+m*R+g*n,r[3]=v*x+y*M+b*E+i*L,r[7]=v*w+y*T+b*P+i*D,r[11]=v*_+y*C+b*k+i*F,r[15]=v*S+y*A+b*R+i*n,this},multiplyToArray:function(e,t,i){var n=this.elements;return this.multiplyMatrices(e,t),i[0]=n[0],i[1]=n[1],i[2]=n[2],i[3]=n[3],i[4]=n[4],i[5]=n[5],i[6]=n[6],i[7]=n[7],i[8]=n[8],i[9]=n[9],i[10]=n[10],i[11]=n[11],i[12]=n[12],i[13]=n[13],i[14]=n[14],i[15]=n[15],this},multiplyScalar:function(e){var t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this},multiplyVector3:function(e){return console.warn("DEPRECATED: Matrix4's .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) or vector.applyProjection( matrix ) instead."),e.applyProjection(this)},multiplyVector4:function(e){return console.warn("DEPRECATED: Matrix4's .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},multiplyVector3Array:function(){var t=new e.Vector3;return function(e){for(var i=0,n=e.length;n>i;i+=3)t.x=e[i],t.y=e[i+1],t.z=e[i+2],t.applyProjection(this),e[i]=t.x,e[i+1]=t.y,e[i+2]=t.z;return e}}(),rotateAxis:function(e){console.warn("DEPRECATED: Matrix4's .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),e.transformDirection(this)},crossVector:function(e){return console.warn("DEPRECATED: Matrix4's .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},determinant:function(){var e=this.elements,t=e[0],i=e[4],n=e[8],r=e[12],o=e[1],a=e[5],s=e[9],l=e[13],h=e[2],c=e[6],u=e[10],p=e[14];return e[3]*(+r*s*c-n*l*c-r*a*u+i*l*u+n*a*p-i*s*p)+e[7]*(+t*s*p-t*l*u+r*o*u-n*o*p+n*l*h-r*s*h)+e[11]*(+t*l*c-t*a*p-r*o*c+i*o*p+r*a*h-i*l*h)+e[15]*(-n*a*h-t*s*c+t*a*u+n*o*c-i*o*u+i*s*h)},transpose:function(){var e,t=this.elements;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this},flattenToArray:function(e){var t=this.elements;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},flattenToArrayOffset:function(e,t){var i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e[t+9]=i[9],e[t+10]=i[10],e[t+11]=i[11],e[t+12]=i[12],e[t+13]=i[13],e[t+14]=i[14],e[t+15]=i[15],e},getPosition:function(){var t=new e.Vector3;return function(){console.warn("DEPRECATED: Matrix4's .getPosition() has been removed. Use Vector3.getPositionFromMatrix( matrix ) instead.");var e=this.elements;return t.set(e[12],e[13],e[14])}}(),setPosition:function(e){var t=this.elements;return t[12]=e.x,t[13]=e.y,t[14]=e.z,this},getInverse:function(e,t){var i=this.elements,n=e.elements,r=n[0],o=n[4],a=n[8],s=n[12],l=n[1],h=n[5],c=n[9],u=n[13],p=n[2],f=n[6],d=n[10],m=n[14],g=n[3],v=n[7],y=n[11],b=n[15];if(i[0]=c*m*v-u*d*v+u*f*y-h*m*y-c*f*b+h*d*b,i[4]=s*d*v-a*m*v-s*f*y+o*m*y+a*f*b-o*d*b,i[8]=a*u*v-s*c*v+s*h*y-o*u*y-a*h*b+o*c*b,i[12]=s*c*f-a*u*f-s*h*d+o*u*d+a*h*m-o*c*m,i[1]=u*d*g-c*m*g-u*p*y+l*m*y+c*p*b-l*d*b,i[5]=a*m*g-s*d*g+s*p*y-r*m*y-a*p*b+r*d*b,i[9]=s*c*g-a*u*g-s*l*y+r*u*y+a*l*b-r*c*b,i[13]=a*u*p-s*c*p+s*l*d-r*u*d-a*l*m+r*c*m,i[2]=h*m*g-u*f*g+u*p*v-l*m*v-h*p*b+l*f*b,i[6]=s*f*g-o*m*g-s*p*v+r*m*v+o*p*b-r*f*b,i[10]=o*u*g-s*h*g+s*l*v-r*u*v-o*l*b+r*h*b,i[14]=s*h*p-o*u*p-s*l*f+r*u*f+o*l*m-r*h*m,i[3]=c*f*g-h*d*g-c*p*v+l*d*v+h*p*y-l*f*y,i[7]=o*d*g-a*f*g+a*p*v-r*d*v-o*p*y+r*f*y,i[11]=a*h*g-o*c*g-a*l*v+r*c*v+o*l*y-r*h*y,i[15]=o*c*p-a*h*p+a*l*f-r*c*f-o*l*d+r*h*d,i=n[0]*i[0]+n[1]*i[4]+n[2]*i[8]+n[3]*i[12],0==i){if(t)throw Error("Matrix4.getInverse(): can't invert matrix, determinant is 0");return console.warn("Matrix4.getInverse(): can't invert matrix, determinant is 0"),this.identity(),this}return this.multiplyScalar(1/i),this},translate:function(){console.warn("DEPRECATED: Matrix4's .translate() has been removed.")},rotateX:function(){console.warn("DEPRECATED: Matrix4's .rotateX() has been removed.")},rotateY:function(){console.warn("DEPRECATED: Matrix4's .rotateY() has been removed.") },rotateZ:function(){console.warn("DEPRECATED: Matrix4's .rotateZ() has been removed.")},rotateByAxis:function(){console.warn("DEPRECATED: Matrix4's .rotateByAxis() has been removed.")},scale:function(e){var t=this.elements,i=e.x,n=e.y,e=e.z;return t[0]*=i,t[4]*=n,t[8]*=e,t[1]*=i,t[5]*=n,t[9]*=e,t[2]*=i,t[6]*=n,t[10]*=e,t[3]*=i,t[7]*=n,t[11]*=e,this},getMaxScaleOnAxis:function(){var e=this.elements;return Math.sqrt(Math.max(e[0]*e[0]+e[1]*e[1]+e[2]*e[2],Math.max(e[4]*e[4]+e[5]*e[5]+e[6]*e[6],e[8]*e[8]+e[9]*e[9]+e[10]*e[10])))},makeTranslation:function(e,t,i){return this.set(1,0,0,e,0,1,0,t,0,0,1,i,0,0,0,1),this},makeRotationX:function(e){var t=Math.cos(e),e=Math.sin(e);return this.set(1,0,0,0,0,t,-e,0,0,e,t,0,0,0,0,1),this},makeRotationY:function(e){var t=Math.cos(e),e=Math.sin(e);return this.set(t,0,e,0,0,1,0,0,-e,0,t,0,0,0,0,1),this},makeRotationZ:function(e){var t=Math.cos(e),e=Math.sin(e);return this.set(t,-e,0,0,e,t,0,0,0,0,1,0,0,0,0,1),this},makeRotationAxis:function(e,t){var i=Math.cos(t),n=Math.sin(t),r=1-i,o=e.x,a=e.y,s=e.z,l=r*o,h=r*a;return this.set(l*o+i,l*a-n*s,l*s+n*a,0,l*a+n*s,h*a+i,h*s-n*o,0,l*s-n*a,h*s+n*o,r*s*s+i,0,0,0,0,1),this},makeScale:function(e,t,i){return this.set(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1),this},compose:function(e,t,i){return console.warn("DEPRECATED: Matrix4's .compose() has been deprecated in favor of makeFromPositionQuaternionScale. Please update your code."),this.makeFromPositionQuaternionScale(e,t,i)},makeFromPositionQuaternionScale:function(e,t,i){return this.makeRotationFromQuaternion(t),this.scale(i),this.setPosition(e),this},makeFromPositionEulerScale:function(e,t,i,n){return this.makeRotationFromEuler(t,i),this.scale(n),this.setPosition(e),this},makeFrustum:function(e,t,i,n,r,o){var a=this.elements;return a[0]=2*r/(t-e),a[4]=0,a[8]=(t+e)/(t-e),a[12]=0,a[1]=0,a[5]=2*r/(n-i),a[9]=(n+i)/(n-i),a[13]=0,a[2]=0,a[6]=0,a[10]=-(o+r)/(o-r),a[14]=-2*o*r/(o-r),a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this},makePerspective:function(t,i,n,r){var t=n*Math.tan(e.Math.degToRad(.5*t)),o=-t;return this.makeFrustum(o*i,t*i,o,t,n,r)},makeOrthographic:function(e,t,i,n,r,o){var a=this.elements,s=t-e,l=i-n,h=o-r;return a[0]=2/s,a[4]=0,a[8]=0,a[12]=-((t+e)/s),a[1]=0,a[5]=2/l,a[9]=0,a[13]=-((i+n)/l),a[2]=0,a[6]=0,a[10]=-2/h,a[14]=-((o+r)/h),a[3]=0,a[7]=0,a[11]=0,a[15]=1,this},clone:function(){var t=this.elements;return new e.Matrix4(t[0],t[4],t[8],t[12],t[1],t[5],t[9],t[13],t[2],t[6],t[10],t[14],t[3],t[7],t[11],t[15])}},e.extend(e.Matrix4.prototype,{decompose:function(){var t=new e.Vector3,i=new e.Vector3,n=new e.Vector3,r=new e.Matrix4;return function(o,a,s){var l=this.elements;return t.set(l[0],l[1],l[2]),i.set(l[4],l[5],l[6]),n.set(l[8],l[9],l[10]),o=o instanceof e.Vector3?o:new e.Vector3,a=a instanceof e.Quaternion?a:new e.Quaternion,s=s instanceof e.Vector3?s:new e.Vector3,s.x=t.length(),s.y=i.length(),s.z=n.length(),o.x=l[12],o.y=l[13],o.z=l[14],r.copy(this),r.elements[0]/=s.x,r.elements[1]/=s.x,r.elements[2]/=s.x,r.elements[4]/=s.y,r.elements[5]/=s.y,r.elements[6]/=s.y,r.elements[8]/=s.z,r.elements[9]/=s.z,r.elements[10]/=s.z,a.setFromRotationMatrix(r),[o,a,s]}}()}),e.Ray=function(t,i){this.origin=void 0!==t?t:new e.Vector3,this.direction=void 0!==i?i:new e.Vector3},e.Ray.prototype={constructor:e.Ray,set:function(e,t){return this.origin.copy(e),this.direction.copy(t),this},copy:function(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this},at:function(t,i){return(i||new e.Vector3).copy(this.direction).multiplyScalar(t).add(this.origin)},recast:function(){var t=new e.Vector3;return function(e){return this.origin.copy(this.at(e,t)),this}}(),closestPointToPoint:function(t,i){var n=i||new e.Vector3;n.subVectors(t,this.origin);var r=n.dot(this.direction);return n.copy(this.direction).multiplyScalar(r).add(this.origin)},distanceToPoint:function(){var t=new e.Vector3;return function(e){var i=t.subVectors(e,this.origin).dot(this.direction);return t.copy(this.direction).multiplyScalar(i).add(this.origin),t.distanceTo(e)}}(),isIntersectionSphere:function(e){return this.distanceToPoint(e.center)<=e.radius},isIntersectionPlane:function(e){return 0!=e.normal.dot(this.direction)||0==e.distanceToPoint(this.origin)?!0:!1},distanceToPlane:function(e){var t=e.normal.dot(this.direction);return 0!=t?-(this.origin.dot(e.normal)+e.constant)/t:0==e.distanceToPoint(this.origin)?0:void 0},intersectPlane:function(e,t){var i=this.distanceToPlane(e);return void 0===i?void 0:this.at(i,t)},applyMatrix4:function(e){return this.direction.add(this.origin).applyMatrix4(e),this.origin.applyMatrix4(e),this.direction.sub(this.origin),this},equals:function(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)},clone:function(){return(new e.Ray).copy(this)}},e.Sphere=function(t,i){this.center=void 0!==t?t:new e.Vector3,this.radius=void 0!==i?i:0},e.Sphere.prototype={constructor:e.Sphere,set:function(e,t){return this.center.copy(e),this.radius=t,this},setFromCenterAndPoints:function(e,t){for(var i=0,n=0,r=t.length;r>n;n++)var o=e.distanceToSquared(t[n]),i=Math.max(i,o);return this.center=e,this.radius=Math.sqrt(i),this},copy:function(e){return this.center.copy(e.center),this.radius=e.radius,this},empty:function(){return 0>=this.radius},containsPoint:function(e){return e.distanceToSquared(this.center)<=this.radius*this.radius},distanceToPoint:function(e){return e.distanceTo(this.center)-this.radius},intersectsSphere:function(e){var t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t},clampPoint:function(t,i){var n=this.center.distanceToSquared(t),r=i||new e.Vector3;return r.copy(t),n>this.radius*this.radius&&(r.sub(this.center).normalize(),r.multiplyScalar(this.radius).add(this.center)),r},getBoundingBox:function(t){return t=t||new e.Box3,t.set(this.center,this.center),t.expandByScalar(this.radius),t},applyMatrix4:function(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this},translate:function(e){return this.center.add(e),this},equals:function(e){return e.center.equals(this.center)&&e.radius===this.radius},clone:function(){return(new e.Sphere).copy(this)}},e.Frustum=function(t,i,n,r,o,a){this.planes=[void 0!==t?t:new e.Plane,void 0!==i?i:new e.Plane,void 0!==n?n:new e.Plane,void 0!==r?r:new e.Plane,void 0!==o?o:new e.Plane,void 0!==a?a:new e.Plane]},e.Frustum.prototype={constructor:e.Frustum,set:function(e,t,i,n,r,o){var a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(i),a[3].copy(n),a[4].copy(r),a[5].copy(o),this},copy:function(e){for(var t=this.planes,i=0;6>i;i++)t[i].copy(e.planes[i]);return this},setFromMatrix:function(e){var t=this.planes,i=e.elements,e=i[0],n=i[1],r=i[2],o=i[3],a=i[4],s=i[5],l=i[6],h=i[7],c=i[8],u=i[9],p=i[10],f=i[11],d=i[12],m=i[13],g=i[14],i=i[15];return t[0].setComponents(o-e,h-a,f-c,i-d).normalize(),t[1].setComponents(o+e,h+a,f+c,i+d).normalize(),t[2].setComponents(o+n,h+s,f+u,i+m).normalize(),t[3].setComponents(o-n,h-s,f-u,i-m).normalize(),t[4].setComponents(o-r,h-l,f-p,i-g).normalize(),t[5].setComponents(o+r,h+l,f+p,i+g).normalize(),this},intersectsObject:function(){var t=new e.Vector3;return function(e){var i=e.matrixWorld,n=this.planes,e=-e.geometry.boundingSphere.radius*i.getMaxScaleOnAxis();for(t.getPositionFromMatrix(i),i=0;6>i;i++)if(n[i].distanceToPoint(t)<e)return!1;return!0}}(),intersectsSphere:function(e){for(var t=this.planes,i=e.center,e=-e.radius,n=0;6>n;n++)if(t[n].distanceToPoint(i)<e)return!1;return!0},containsPoint:function(e){for(var t=this.planes,i=0;6>i;i++)if(0>t[i].distanceToPoint(e))return!1;return!0},clone:function(){return(new e.Frustum).copy(this)}},e.Plane=function(t,i){this.normal=void 0!==t?t:new e.Vector3(1,0,0),this.constant=void 0!==i?i:0},e.Plane.prototype={constructor:e.Plane,set:function(e,t){return this.normal.copy(e),this.constant=t,this},setComponents:function(e,t,i,n){return this.normal.set(e,t,i),this.constant=n,this},setFromNormalAndCoplanarPoint:function(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this},setFromCoplanarPoints:function(){var t=new e.Vector3,i=new e.Vector3;return function(e,n,r){return n=t.subVectors(r,n).cross(i.subVectors(e,n)).normalize(),this.setFromNormalAndCoplanarPoint(n,e),this}}(),copy:function(e){return this.normal.copy(e.normal),this.constant=e.constant,this},normalize:function(){var e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this},negate:function(){return this.constant*=-1,this.normal.negate(),this},distanceToPoint:function(e){return this.normal.dot(e)+this.constant},distanceToSphere:function(e){return this.distanceToPoint(e.center)-e.radius},projectPoint:function(e,t){return this.orthoPoint(e,t).sub(e).negate()},orthoPoint:function(t,i){var n=this.distanceToPoint(t);return(i||new e.Vector3).copy(this.normal).multiplyScalar(n)},isIntersectionLine:function(e){var t=this.distanceToPoint(e.start),e=this.distanceToPoint(e.end);return 0>t&&e>0||0>e&&t>0},intersectLine:function(){var t=new e.Vector3;return function(i,n){var r=n||new e.Vector3,o=i.delta(t),a=this.normal.dot(o);return 0!=a?(a=-(i.start.dot(this.normal)+this.constant)/a,0>a||a>1?void 0:r.copy(o).multiplyScalar(a).add(i.start)):0==this.distanceToPoint(i.start)?r.copy(i.start):void 0}}(),coplanarPoint:function(t){return(t||new e.Vector3).copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var t=new e.Vector3,i=new e.Vector3;return function(n,r){var r=r||(new e.Matrix3).getNormalMatrix(n),o=t.copy(this.normal).applyMatrix3(r),a=this.coplanarPoint(i);return a.applyMatrix4(n),this.setFromNormalAndCoplanarPoint(o,a),this}}(),translate:function(e){return this.constant-=e.dot(this.normal),this},equals:function(e){return e.normal.equals(this.normal)&&e.constant==this.constant},clone:function(){return(new e.Plane).copy(this)}},e.Math={clamp:function(e,t,i){return t>e?t:e>i?i:e},clampBottom:function(e,t){return t>e?t:e},mapLinear:function(e,t,i,n,r){return n+(e-t)*(r-n)/(i-t)},smoothstep:function(e,t,i){return t>=e?0:e>=i?1:(e=(e-t)/(i-t),e*e*(3-2*e))},smootherstep:function(e,t,i){return t>=e?0:e>=i?1:(e=(e-t)/(i-t),e*e*e*(e*(6*e-15)+10))},random16:function(){return(65280*Math.random()+255*Math.random())/65535},randInt:function(e,t){return e+Math.floor(Math.random()*(t-e+1))},randFloat:function(e,t){return e+Math.random()*(t-e)},randFloatSpread:function(e){return e*(.5-Math.random())},sign:function(e){return 0>e?-1:e>0?1:0},degToRad:function(){var e=Math.PI/180;return function(t){return t*e}}(),radToDeg:function(){var e=180/Math.PI;return function(t){return t*e}}()},e.Spline=function(t){function i(e,t,i,n,r,o,a){return e=.5*(i-e),n=.5*(n-t),(2*(t-i)+e+n)*a+(-3*(t-i)-2*e-n)*o+e*r+t}this.points=t;var n,r,o,a,s,l,h,c,u,p=[],f={x:0,y:0,z:0};this.initFromArray=function(e){this.points=[];for(var t=0;t<e.length;t++)this.points[t]={x:e[t][0],y:e[t][1],z:e[t][2]}},this.getPoint=function(e){return n=(this.points.length-1)*e,r=Math.floor(n),o=n-r,p[0]=0===r?r:r-1,p[1]=r,p[2]=r>this.points.length-2?this.points.length-1:r+1,p[3]=r>this.points.length-3?this.points.length-1:r+2,l=this.points[p[0]],h=this.points[p[1]],c=this.points[p[2]],u=this.points[p[3]],a=o*o,s=o*a,f.x=i(l.x,h.x,c.x,u.x,o,a,s),f.y=i(l.y,h.y,c.y,u.y,o,a,s),f.z=i(l.z,h.z,c.z,u.z,o,a,s),f},this.getControlPointsArray=function(){var e,t,i=this.points.length,n=[];for(e=0;i>e;e++)t=this.points[e],n[e]=[t.x,t.y,t.z];return n},this.getLength=function(t){var i,n,r,o=i=i=0,a=new e.Vector3,s=new e.Vector3,l=[],h=0;for(l[0]=0,t||(t=100),n=this.points.length*t,a.copy(this.points[0]),t=1;n>t;t++)i=t/n,r=this.getPoint(i),s.copy(r),h+=s.distanceTo(a),a.copy(r),i*=this.points.length-1,i=Math.floor(i),i!=o&&(l[i]=h,o=i);return l[l.length]=h,{chunks:l,total:h}},this.reparametrizeByArcLength=function(t){var i,n,r,o,a,s,l=[],h=new e.Vector3,c=this.getLength();for(l.push(h.copy(this.points[0]).clone()),i=1;i<this.points.length;i++){for(n=c.chunks[i]-c.chunks[i-1],s=Math.ceil(t*n/c.total),o=(i-1)/(this.points.length-1),a=i/(this.points.length-1),n=1;s-1>n;n++)r=o+n*(1/s)*(a-o),r=this.getPoint(r),l.push(h.copy(r).clone());l.push(h.copy(this.points[i]).clone())}this.points=l}},e.Triangle=function(t,i,n){this.a=void 0!==t?t:new e.Vector3,this.b=void 0!==i?i:new e.Vector3,this.c=void 0!==n?n:new e.Vector3},e.Triangle.normal=function(){var t=new e.Vector3;return function(i,n,r,o){return o=o||new e.Vector3,o.subVectors(r,n),t.subVectors(i,n),o.cross(t),i=o.lengthSq(),i>0?o.multiplyScalar(1/Math.sqrt(i)):o.set(0,0,0)}}(),e.Triangle.barycoordFromPoint=function(){var t=new e.Vector3,i=new e.Vector3,n=new e.Vector3;return function(r,o,a,s,l){t.subVectors(s,o),i.subVectors(a,o),n.subVectors(r,o);var r=t.dot(t),o=t.dot(i),a=t.dot(n),h=i.dot(i),s=i.dot(n),c=r*h-o*o,l=l||new e.Vector3;return 0==c?l.set(-2,-1,-1):(c=1/c,h=(h*a-o*s)*c,r=(r*s-o*a)*c,l.set(1-h-r,r,h))}}(),e.Triangle.containsPoint=function(){var t=new e.Vector3;return function(i,n,r,o){return i=e.Triangle.barycoordFromPoint(i,n,r,o,t),0<=i.x&&0<=i.y&&1>=i.x+i.y}}(),e.Triangle.prototype={constructor:e.Triangle,set:function(e,t,i){return this.a.copy(e),this.b.copy(t),this.c.copy(i),this},setFromPointsAndIndices:function(e,t,i,n){return this.a.copy(e[t]),this.b.copy(e[i]),this.c.copy(e[n]),this},copy:function(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this},area:function(){var t=new e.Vector3,i=new e.Vector3;return function(){return t.subVectors(this.c,this.b),i.subVectors(this.a,this.b),.5*t.cross(i).length()}}(),midpoint:function(t){return(t||new e.Vector3).addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},normal:function(t){return e.Triangle.normal(this.a,this.b,this.c,t)},plane:function(t){return(t||new e.Plane).setFromCoplanarPoints(this.a,this.b,this.c)},barycoordFromPoint:function(t,i){return e.Triangle.barycoordFromPoint(t,this.a,this.b,this.c,i)},containsPoint:function(t){return e.Triangle.containsPoint(t,this.a,this.b,this.c)},equals:function(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)},clone:function(){return(new e.Triangle).copy(this)}},e.Vertex=function(e){return console.warn("THREE.Vertex has been DEPRECATED. Use THREE.Vector3 instead."),e},e.UV=function(t,i){return console.warn("THREE.UV has been DEPRECATED. Use THREE.Vector2 instead."),new e.Vector2(t,i)},e.Clock=function(e){this.autoStart=void 0!==e?e:!0,this.elapsedTime=this.oldTime=this.startTime=0,this.running=!1},e.Clock.prototype={constructor:e.Clock,start:function(){this.oldTime=this.startTime=void 0!==window.performance&&void 0!==window.performance.now?window.performance.now():Date.now(),this.running=!0},stop:function(){this.getElapsedTime(),this.running=!1},getElapsedTime:function(){return this.getDelta(),this.elapsedTime},getDelta:function(){var e=0;if(this.autoStart&&!this.running&&this.start(),this.running){var t=void 0!==window.performance&&void 0!==window.performance.now?window.performance.now():Date.now(),e=.001*(t-this.oldTime);this.oldTime=t,this.elapsedTime+=e}return e}},e.EventDispatcher=function(){},e.EventDispatcher.prototype={constructor:e.EventDispatcher,addEventListener:function(e,t){void 0===this._listeners&&(this._listeners={});var i=this._listeners;void 0===i[e]&&(i[e]=[]),-1===i[e].indexOf(t)&&i[e].push(t)},hasEventListener:function(e,t){if(void 0===this._listeners)return!1;var i=this._listeners;return void 0!==i[e]&&-1!==i[e].indexOf(t)?!0:!1},removeEventListener:function(e,t){if(void 0!==this._listeners){var i=this._listeners,n=i[e].indexOf(t);-1!==n&&i[e].splice(n,1)}},dispatchEvent:function(e){if(void 0!==this._listeners){var t=this._listeners[e.type];if(void 0!==t){e.target=this;for(var i=0,n=t.length;n>i;i++)t[i].call(this,e)}}}},function(e){e.Raycaster=function(t,i,n,r){this.ray=new e.Ray(t,i),0<this.ray.direction.lengthSq()&&this.ray.direction.normalize(),this.near=n||0,this.far=r||1/0};var t=new e.Sphere,i=new e.Ray,n=new e.Plane,r=new e.Vector3,o=new e.Vector3,a=new e.Matrix4,s=function(e,t){return e.distance-t.distance},l=function(s,h,c){if(s instanceof e.Particle){o.getPositionFromMatrix(s.matrixWorld);var u=h.ray.distanceToPoint(o);if(u>s.scale.x)return c;c.push({distance:u,point:s.position,face:null,object:s})}else if(s instanceof e.LOD)o.getPositionFromMatrix(s.matrixWorld),u=h.ray.origin.distanceTo(o),l(s.getObjectForDistance(u),h,c);else if(s instanceof e.Mesh){if(o.getPositionFromMatrix(s.matrixWorld),t.set(o,s.geometry.boundingSphere.radius*s.matrixWorld.getMaxScaleOnAxis()),!h.ray.isIntersectionSphere(t))return c;var p,f,d,u=s.geometry,m=u.vertices,g=s.material instanceof e.MeshFaceMaterial,v=!0===g?s.material.materials:null,y=s.material.side,b=h.precision;a.getInverse(s.matrixWorld),i.copy(h.ray).applyMatrix4(a);for(var x=0,w=u.faces.length;w>x;x++){var _=u.faces[x],y=!0===g?v[_.materialIndex]:s.material;if(void 0!==y){n.setFromNormalAndCoplanarPoint(_.normal,m[_.a]);var S=i.distanceToPlane(n);if(!(Math.abs(S)<b||0>S)){if(y=y.side,y!==e.DoubleSide&&(p=i.direction.dot(n.normal),!(y===e.FrontSide?0>p:p>0)))continue;if(!(S<h.near||S>h.far)){if(r=i.at(S,r),_ instanceof e.Face3){if(y=m[_.a],p=m[_.b],f=m[_.c],!e.Triangle.containsPoint(r,y,p,f))continue}else{if(!(_ instanceof e.Face4))throw Error("face type not supported");if(y=m[_.a],p=m[_.b],f=m[_.c],d=m[_.d],!e.Triangle.containsPoint(r,y,p,d)&&!e.Triangle.containsPoint(r,p,f,d))continue}c.push({distance:S,point:h.ray.at(S),face:_,faceIndex:x,object:s})}}}}}},h=function(e,t,i){for(var e=e.getDescendants(),n=0,r=e.length;r>n;n++)l(e[n],t,i)};e.Raycaster.prototype.precision=1e-4,e.Raycaster.prototype.set=function(e,t){this.ray.set(e,t),0<this.ray.direction.length()&&this.ray.direction.normalize()},e.Raycaster.prototype.intersectObject=function(e,t){var i=[];return!0===t&&h(e,this,i),l(e,this,i),i.sort(s),i},e.Raycaster.prototype.intersectObjects=function(e,t){for(var i=[],n=0,r=e.length;r>n;n++)l(e[n],this,i),!0===t&&h(e[n],this,i);return i.sort(s),i}}(e),e.Object3D=function(){this.id=e.Object3DIdCount++,this.name="",this.parent=void 0,this.children=[],this.up=new e.Vector3(0,1,0),this.position=new e.Vector3,this.rotation=new e.Vector3,this.eulerOrder=e.Object3D.defaultEulerOrder,this.scale=new e.Vector3(1,1,1),this.renderDepth=null,this.rotationAutoUpdate=!0,this.matrix=new e.Matrix4,this.matrixWorld=new e.Matrix4,this.matrixWorldNeedsUpdate=this.matrixAutoUpdate=!0,this.quaternion=new e.Quaternion,this.useQuaternion=!1,this.visible=!0,this.receiveShadow=this.castShadow=!1,this.frustumCulled=!0,this.userData={}},e.Object3D.prototype={constructor:e.Object3D,applyMatrix:function(){var t=new e.Matrix4;return function(e){this.matrix.multiplyMatrices(e,this.matrix),this.position.getPositionFromMatrix(this.matrix),this.scale.getScaleFromMatrix(this.matrix),t.extractRotation(this.matrix),!0===this.useQuaternion?this.quaternion.setFromRotationMatrix(t):this.rotation.setEulerFromRotationMatrix(t,this.eulerOrder)}}(),rotateOnAxis:function(){var t=new e.Quaternion,i=new e.Quaternion;return function(e,n){return t.setFromAxisAngle(e,n),!0===this.useQuaternion?this.quaternion.multiply(t):(i.setFromEuler(this.rotation,this.eulerOrder),i.multiply(t),this.rotation.setEulerFromQuaternion(i,this.eulerOrder)),this}}(),translateOnAxis:function(){var t=new e.Vector3;return function(e,i){return t.copy(e),!0===this.useQuaternion?t.applyQuaternion(this.quaternion):t.applyEuler(this.rotation,this.eulerOrder),this.position.add(t.multiplyScalar(i)),this}}(),translate:function(e,t){return console.warn("DEPRECATED: Object3D's .translate() has been removed. Use .translateOnAxis( axis, distance ) instead. Note args have been changed."),this.translateOnAxis(t,e)},translateX:function(){var t=new e.Vector3(1,0,0);return function(e){return this.translateOnAxis(t,e)}}(),translateY:function(){var t=new e.Vector3(0,1,0);return function(e){return this.translateOnAxis(t,e)}}(),translateZ:function(){var t=new e.Vector3(0,0,1);return function(e){return this.translateOnAxis(t,e)}}(),localToWorld:function(e){return e.applyMatrix4(this.matrixWorld)},worldToLocal:function(){var t=new e.Matrix4;return function(e){return e.applyMatrix4(t.getInverse(this.matrixWorld))}}(),lookAt:function(){var t=new e.Matrix4;return function(e){t.lookAt(e,this.position,this.up),!0===this.useQuaternion?this.quaternion.setFromRotationMatrix(t):this.rotation.setEulerFromRotationMatrix(t,this.eulerOrder)}}(),add:function(t){if(t===this)console.warn("THREE.Object3D.add: An object can't be added as a child of itself.");else if(t instanceof e.Object3D){void 0!==t.parent&&t.parent.remove(t),t.parent=this,this.children.push(t);for(var i=this;void 0!==i.parent;)i=i.parent;void 0!==i&&i instanceof e.Scene&&i.__addObject(t)}},remove:function(t){var i=this.children.indexOf(t);if(-1!==i){for(t.parent=void 0,this.children.splice(i,1),i=this;void 0!==i.parent;)i=i.parent;void 0!==i&&i instanceof e.Scene&&i.__removeObject(t)}},traverse:function(e){e(this);for(var t=0,i=this.children.length;i>t;t++)this.children[t].traverse(e)},getObjectById:function(e,t){for(var i=0,n=this.children.length;n>i;i++){var r=this.children[i];if(r.id===e||!0===t&&(r=r.getObjectById(e,t),void 0!==r))return r}},getObjectByName:function(e,t){for(var i=0,n=this.children.length;n>i;i++){var r=this.children[i];if(r.name===e||!0===t&&(r=r.getObjectByName(e,t),void 0!==r))return r}},getChildByName:function(e,t){return console.warn("DEPRECATED: Object3D's .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(e,t)},getDescendants:function(e){void 0===e&&(e=[]),Array.prototype.push.apply(e,this.children);for(var t=0,i=this.children.length;i>t;t++)this.children[t].getDescendants(e);return e},updateMatrix:function(){!1===this.useQuaternion?this.matrix.makeFromPositionEulerScale(this.position,this.rotation,this.eulerOrder,this.scale):this.matrix.makeFromPositionQuaternionScale(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(e){!0===this.matrixAutoUpdate&&this.updateMatrix(),(!0===this.matrixWorldNeedsUpdate||!0===e)&&(void 0===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);for(var t=0,i=this.children.length;i>t;t++)this.children[t].updateMatrixWorld(e)},clone:function(t){void 0===t&&(t=new e.Object3D),t.name=this.name,t.up.copy(this.up),t.position.copy(this.position),t.rotation instanceof e.Vector3&&t.rotation.copy(this.rotation),t.eulerOrder=this.eulerOrder,t.scale.copy(this.scale),t.renderDepth=this.renderDepth,t.rotationAutoUpdate=this.rotationAutoUpdate,t.matrix.copy(this.matrix),t.matrixWorld.copy(this.matrixWorld),t.matrixAutoUpdate=this.matrixAutoUpdate,t.matrixWorldNeedsUpdate=this.matrixWorldNeedsUpdate,t.quaternion.copy(this.quaternion),t.useQuaternion=this.useQuaternion,t.visible=this.visible,t.castShadow=this.castShadow,t.receiveShadow=this.receiveShadow,t.frustumCulled=this.frustumCulled,t.userData=JSON.parse(JSON.stringify(this.userData));for(var i=0;i<this.children.length;i++)t.add(this.children[i].clone());return t}},e.Object3D.defaultEulerOrder="XYZ",e.Object3DIdCount=0,e.Projector=function(){function t(){if(a===y){var t=new e.RenderableObject;return v.push(t),y++,a++,t}return v[a++]}function i(){if(l===x){var t=new e.RenderableVertex;return b.push(t),x++,l++,t}return b[l++]}function n(e,t){return t.z-e.z}function r(e,t){var i=0,n=1,r=e.z+e.w,o=t.z+t.w,a=-e.z+e.w,s=-t.z+t.w;return r>=0&&o>=0&&a>=0&&s>=0?!0:0>r&&0>o||0>a&&0>s?!1:(0>r?i=Math.max(i,r/(r-o)):0>o&&(n=Math.min(n,r/(r-o))),0>a?i=Math.max(i,a/(a-s)):0>s&&(n=Math.min(n,a/(a-s))),i>n?!1:(e.lerp(t,i),t.lerp(e,1-n),!0))}var o,a,s,l,h,c,u,p,f,d,m,g,v=[],y=0,b=[],x=0,w=[],_=0,S=[],M=0,T=[],C=0,A=[],E=0,P={objects:[],sprites:[],lights:[],elements:[]},k=new e.Vector3,R=new e.Vector4,L=new e.Box3(new e.Vector3(-1,-1,-1),new e.Vector3(1,1,1)),D=new e.Box3,F=Array(3),N=Array(4),G=new e.Matrix4,V=new e.Matrix4,O=new e.Matrix4,j=new e.Matrix3,U=new e.Matrix3,I=new e.Vector3,z=new e.Frustum,B=new e.Vector4,H=new e.Vector4;this.projectVector=function(e,t){return t.matrixWorldInverse.getInverse(t.matrixWorld),V.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),e.applyProjection(V)},this.unprojectVector=function(e,t){return t.projectionMatrixInverse.getInverse(t.projectionMatrix),V.multiplyMatrices(t.matrixWorld,t.projectionMatrixInverse),e.applyProjection(V)},this.pickingRay=function(t,i){t.z=-1;var n=new e.Vector3(t.x,t.y,1);return this.unprojectVector(t,i),this.unprojectVector(n,i),n.sub(t).normalize(),new e.Raycaster(t,n)},this.projectScene=function(v,y,x,q){var W,X,Y,K,$,Q,Z,J,et,tt,it,nt,rt,ot=!1;m=f=u=c=0,P.elements.length=0,!0===v.autoUpdate&&v.updateMatrixWorld(),void 0===y.parent&&y.updateMatrixWorld(),G.copy(y.matrixWorldInverse.getInverse(y.matrixWorld)),V.multiplyMatrices(y.projectionMatrix,G),U.getNormalMatrix(G),z.setFromMatrix(V),a=0,P.objects.length=0,P.sprites.length=0,P.lights.length=0;var at=function(i){for(var n=0,r=i.children.length;r>n;n++){var a=i.children[n];!1!==a.visible&&(a instanceof e.Light?P.lights.push(a):a instanceof e.Mesh||a instanceof e.Line?(!1===a.frustumCulled||!0===z.intersectsObject(a))&&(o=t(),o.object=a,null!==a.renderDepth?o.z=a.renderDepth:(k.getPositionFromMatrix(a.matrixWorld),k.applyProjection(V),o.z=k.z),P.objects.push(o)):a instanceof e.Sprite||a instanceof e.Particle?(o=t(),o.object=a,null!==a.renderDepth?o.z=a.renderDepth:(k.getPositionFromMatrix(a.matrixWorld),k.applyProjection(V),o.z=k.z),P.sprites.push(o)):(o=t(),o.object=a,null!==a.renderDepth?o.z=a.renderDepth:(k.getPositionFromMatrix(a.matrixWorld),k.applyProjection(V),o.z=k.z),P.objects.push(o)),at(a))}};for(at(v),!0===x&&P.objects.sort(n),v=0,x=P.objects.length;x>v;v++)if(J=P.objects[v].object,g=J.matrixWorld,l=0,J instanceof e.Mesh){for(et=J.geometry,Y=et.vertices,tt=et.faces,et=et.faceVertexUvs,j.getNormalMatrix(g),nt=J.material instanceof e.MeshFaceMaterial,rt=!0===nt?J.material:null,W=0,X=Y.length;X>W;W++)s=i(),s.positionWorld.copy(Y[W]).applyMatrix4(g),s.positionScreen.copy(s.positionWorld).applyMatrix4(V),s.positionScreen.x/=s.positionScreen.w,s.positionScreen.y/=s.positionScreen.w,s.positionScreen.z/=s.positionScreen.w,s.visible=!(-1>s.positionScreen.x||1<s.positionScreen.x||-1>s.positionScreen.y||1<s.positionScreen.y||-1>s.positionScreen.z||1<s.positionScreen.z);for(Y=0,W=tt.length;W>Y;Y++){X=tt[Y];var st=!0===nt?rt.materials[X.materialIndex]:J.material;if(void 0!==st){if(Q=st.side,X instanceof e.Face3){if(K=b[X.a],$=b[X.b],Z=b[X.c],F[0]=K.positionScreen,F[1]=$.positionScreen,F[2]=Z.positionScreen,!0!==K.visible&&!0!==$.visible&&!0!==Z.visible&&!L.isIntersectionBox(D.setFromPoints(F)))continue;if(ot=0>(Z.positionScreen.x-K.positionScreen.x)*($.positionScreen.y-K.positionScreen.y)-(Z.positionScreen.y-K.positionScreen.y)*($.positionScreen.x-K.positionScreen.x),Q!==e.DoubleSide&&ot!==(Q===e.FrontSide))continue;c===_?(it=new e.RenderableFace3,w.push(it),_++,c++,h=it):h=w[c++],h.v1.copy(K),h.v2.copy($),h.v3.copy(Z)}else if(X instanceof e.Face4){if(K=b[X.a],$=b[X.b],Z=b[X.c],it=b[X.d],N[0]=K.positionScreen,N[1]=$.positionScreen,N[2]=Z.positionScreen,N[3]=it.positionScreen,!0!==K.visible&&!0!==$.visible&&!0!==Z.visible&&!0!==it.visible&&!L.isIntersectionBox(D.setFromPoints(N)))continue;if(ot=0>(it.positionScreen.x-K.positionScreen.x)*($.positionScreen.y-K.positionScreen.y)-(it.positionScreen.y-K.positionScreen.y)*($.positionScreen.x-K.positionScreen.x)||0>($.positionScreen.x-Z.positionScreen.x)*(it.positionScreen.y-Z.positionScreen.y)-($.positionScreen.y-Z.positionScreen.y)*(it.positionScreen.x-Z.positionScreen.x),Q!==e.DoubleSide&&ot!==(Q===e.FrontSide))continue;if(u===M){var lt=new e.RenderableFace4;S.push(lt),M++,u++,h=lt}else h=S[u++];h.v1.copy(K),h.v2.copy($),h.v3.copy(Z),h.v4.copy(it)}for(h.normalModel.copy(X.normal),!1===ot&&(Q===e.BackSide||Q===e.DoubleSide)&&h.normalModel.negate(),h.normalModel.applyMatrix3(j).normalize(),h.normalModelView.copy(h.normalModel).applyMatrix3(U),h.centroidModel.copy(X.centroid).applyMatrix4(g),Z=X.vertexNormals,K=0,$=Z.length;$>K;K++)it=h.vertexNormalsModel[K],it.copy(Z[K]),!1===ot&&(Q===e.BackSide||Q===e.DoubleSide)&&it.negate(),it.applyMatrix3(j).normalize(),h.vertexNormalsModelView[K].copy(it).applyMatrix3(U);for(h.vertexNormalsLength=Z.length,K=0,$=et.length;$>K;K++)if(it=et[K][Y],void 0!==it)for(Q=0,Z=it.length;Z>Q;Q++)h.uvs[K][Q]=it[Q];h.color=X.color,h.material=st,I.copy(h.centroidModel).applyProjection(V),h.z=I.z,P.elements.push(h)}}}else if(J instanceof e.Line)for(O.multiplyMatrices(V,g),Y=J.geometry.vertices,K=i(),K.positionScreen.copy(Y[0]).applyMatrix4(O),tt=J.type===e.LinePieces?2:1,W=1,X=Y.length;X>W;W++)K=i(),K.positionScreen.copy(Y[W]).applyMatrix4(O),(W+1)%tt>0||($=b[l-2],B.copy(K.positionScreen),H.copy($.positionScreen),!0===r(B,H)&&(B.multiplyScalar(1/B.w),H.multiplyScalar(1/H.w),f===C?(et=new e.RenderableLine,T.push(et),C++,f++,p=et):p=T[f++],p.v1.positionScreen.copy(B),p.v2.positionScreen.copy(H),p.z=Math.max(B.z,H.z),p.material=J.material,J.material.vertexColors===e.VertexColors&&(p.vertexColors[0].copy(J.geometry.colors[W]),p.vertexColors[1].copy(J.geometry.colors[W-1])),P.elements.push(p)));for(v=0,x=P.sprites.length;x>v;v++)J=P.sprites[v].object,g=J.matrixWorld,J instanceof e.Particle&&(R.set(g.elements[12],g.elements[13],g.elements[14],1),R.applyMatrix4(V),R.z/=R.w,0<R.z&&1>R.z&&(m===E?(ot=new e.RenderableParticle,A.push(ot),E++,m++,d=ot):d=A[m++],d.object=J,d.x=R.x/R.w,d.y=R.y/R.w,d.z=R.z,d.rotation=J.rotation.z,d.scale.x=J.scale.x*Math.abs(d.x-(R.x+y.projectionMatrix.elements[0])/(R.w+y.projectionMatrix.elements[12])),d.scale.y=J.scale.y*Math.abs(d.y-(R.y+y.projectionMatrix.elements[5])/(R.w+y.projectionMatrix.elements[13])),d.material=J.material,P.elements.push(d)));return!0===q&&P.elements.sort(n),P}},e.Face3=function(t,i,n,r,o,a){this.a=t,this.b=i,this.c=n,this.normal=r instanceof e.Vector3?r:new e.Vector3,this.vertexNormals=r instanceof Array?r:[],this.color=o instanceof e.Color?o:new e.Color,this.vertexColors=o instanceof Array?o:[],this.vertexTangents=[],this.materialIndex=void 0!==a?a:0,this.centroid=new e.Vector3},e.Face3.prototype={constructor:e.Face3,clone:function(){var t=new e.Face3(this.a,this.b,this.c);t.normal.copy(this.normal),t.color.copy(this.color),t.centroid.copy(this.centroid),t.materialIndex=this.materialIndex;var i,n;for(i=0,n=this.vertexNormals.length;n>i;i++)t.vertexNormals[i]=this.vertexNormals[i].clone();for(i=0,n=this.vertexColors.length;n>i;i++)t.vertexColors[i]=this.vertexColors[i].clone();for(i=0,n=this.vertexTangents.length;n>i;i++)t.vertexTangents[i]=this.vertexTangents[i].clone();return t}},e.Face4=function(t,i,n,r,o,a,s){this.a=t,this.b=i,this.c=n,this.d=r,this.normal=o instanceof e.Vector3?o:new e.Vector3,this.vertexNormals=o instanceof Array?o:[],this.color=a instanceof e.Color?a:new e.Color,this.vertexColors=a instanceof Array?a:[],this.vertexTangents=[],this.materialIndex=void 0!==s?s:0,this.centroid=new e.Vector3},e.Face4.prototype={constructor:e.Face4,clone:function(){var t=new e.Face4(this.a,this.b,this.c,this.d);t.normal.copy(this.normal),t.color.copy(this.color),t.centroid.copy(this.centroid),t.materialIndex=this.materialIndex;var i,n;for(i=0,n=this.vertexNormals.length;n>i;i++)t.vertexNormals[i]=this.vertexNormals[i].clone();for(i=0,n=this.vertexColors.length;n>i;i++)t.vertexColors[i]=this.vertexColors[i].clone();for(i=0,n=this.vertexTangents.length;n>i;i++)t.vertexTangents[i]=this.vertexTangents[i].clone();return t}},e.Geometry=function(){this.id=e.GeometryIdCount++,this.name="",this.vertices=[],this.colors=[],this.normals=[],this.faces=[],this.faceUvs=[[]],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphColors=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.hasTangents=!1,this.dynamic=!0,this.buffersNeedUpdate=this.lineDistancesNeedUpdate=this.colorsNeedUpdate=this.tangentsNeedUpdate=this.normalsNeedUpdate=this.uvsNeedUpdate=this.elementsNeedUpdate=this.verticesNeedUpdate=!1 },e.Geometry.prototype={constructor:e.Geometry,addEventListener:e.EventDispatcher.prototype.addEventListener,hasEventListener:e.EventDispatcher.prototype.hasEventListener,removeEventListener:e.EventDispatcher.prototype.removeEventListener,dispatchEvent:e.EventDispatcher.prototype.dispatchEvent,applyMatrix:function(t){for(var i=(new e.Matrix3).getNormalMatrix(t),n=0,r=this.vertices.length;r>n;n++)this.vertices[n].applyMatrix4(t);for(n=0,r=this.faces.length;r>n;n++){var o=this.faces[n];o.normal.applyMatrix3(i).normalize();for(var a=0,s=o.vertexNormals.length;s>a;a++)o.vertexNormals[a].applyMatrix3(i).normalize();o.centroid.applyMatrix4(t)}},computeCentroids:function(){var t,i,n;for(t=0,i=this.faces.length;i>t;t++)n=this.faces[t],n.centroid.set(0,0,0),n instanceof e.Face3?(n.centroid.add(this.vertices[n.a]),n.centroid.add(this.vertices[n.b]),n.centroid.add(this.vertices[n.c]),n.centroid.divideScalar(3)):n instanceof e.Face4&&(n.centroid.add(this.vertices[n.a]),n.centroid.add(this.vertices[n.b]),n.centroid.add(this.vertices[n.c]),n.centroid.add(this.vertices[n.d]),n.centroid.divideScalar(4))},computeFaceNormals:function(){for(var t=new e.Vector3,i=new e.Vector3,n=0,r=this.faces.length;r>n;n++){var o=this.faces[n],a=this.vertices[o.a],s=this.vertices[o.b];t.subVectors(this.vertices[o.c],s),i.subVectors(a,s),t.cross(i),t.normalize(),o.normal.copy(t)}},computeVertexNormals:function(t){var i,n,r,o;if(void 0===this.__tmpVertices){for(o=this.__tmpVertices=Array(this.vertices.length),i=0,n=this.vertices.length;n>i;i++)o[i]=new e.Vector3;for(i=0,n=this.faces.length;n>i;i++)r=this.faces[i],r instanceof e.Face3?r.vertexNormals=[new e.Vector3,new e.Vector3,new e.Vector3]:r instanceof e.Face4&&(r.vertexNormals=[new e.Vector3,new e.Vector3,new e.Vector3,new e.Vector3])}else for(o=this.__tmpVertices,i=0,n=this.vertices.length;n>i;i++)o[i].set(0,0,0);if(t){var a,s,l,h=new e.Vector3,c=new e.Vector3,u=new e.Vector3,p=new e.Vector3,f=new e.Vector3;for(i=0,n=this.faces.length;n>i;i++)r=this.faces[i],r instanceof e.Face3?(t=this.vertices[r.a],a=this.vertices[r.b],s=this.vertices[r.c],h.subVectors(s,a),c.subVectors(t,a),h.cross(c),o[r.a].add(h),o[r.b].add(h),o[r.c].add(h)):r instanceof e.Face4&&(t=this.vertices[r.a],a=this.vertices[r.b],s=this.vertices[r.c],l=this.vertices[r.d],u.subVectors(l,a),c.subVectors(t,a),u.cross(c),o[r.a].add(u),o[r.b].add(u),o[r.d].add(u),p.subVectors(l,s),f.subVectors(a,s),p.cross(f),o[r.b].add(p),o[r.c].add(p),o[r.d].add(p))}else for(i=0,n=this.faces.length;n>i;i++)r=this.faces[i],r instanceof e.Face3?(o[r.a].add(r.normal),o[r.b].add(r.normal),o[r.c].add(r.normal)):r instanceof e.Face4&&(o[r.a].add(r.normal),o[r.b].add(r.normal),o[r.c].add(r.normal),o[r.d].add(r.normal));for(i=0,n=this.vertices.length;n>i;i++)o[i].normalize();for(i=0,n=this.faces.length;n>i;i++)r=this.faces[i],r instanceof e.Face3?(r.vertexNormals[0].copy(o[r.a]),r.vertexNormals[1].copy(o[r.b]),r.vertexNormals[2].copy(o[r.c])):r instanceof e.Face4&&(r.vertexNormals[0].copy(o[r.a]),r.vertexNormals[1].copy(o[r.b]),r.vertexNormals[2].copy(o[r.c]),r.vertexNormals[3].copy(o[r.d]))},computeMorphNormals:function(){var t,i,n,r,o;for(n=0,r=this.faces.length;r>n;n++)for(o=this.faces[n],o.__originalFaceNormal?o.__originalFaceNormal.copy(o.normal):o.__originalFaceNormal=o.normal.clone(),o.__originalVertexNormals||(o.__originalVertexNormals=[]),t=0,i=o.vertexNormals.length;i>t;t++)o.__originalVertexNormals[t]?o.__originalVertexNormals[t].copy(o.vertexNormals[t]):o.__originalVertexNormals[t]=o.vertexNormals[t].clone();var a=new e.Geometry;for(a.faces=this.faces,t=0,i=this.morphTargets.length;i>t;t++){if(!this.morphNormals[t]){this.morphNormals[t]={},this.morphNormals[t].faceNormals=[],this.morphNormals[t].vertexNormals=[];var s,l,h=this.morphNormals[t].faceNormals,c=this.morphNormals[t].vertexNormals;for(n=0,r=this.faces.length;r>n;n++)o=this.faces[n],s=new e.Vector3,l=o instanceof e.Face3?{a:new e.Vector3,b:new e.Vector3,c:new e.Vector3}:{a:new e.Vector3,b:new e.Vector3,c:new e.Vector3,d:new e.Vector3},h.push(s),c.push(l)}for(h=this.morphNormals[t],a.vertices=this.morphTargets[t].vertices,a.computeFaceNormals(),a.computeVertexNormals(),n=0,r=this.faces.length;r>n;n++)o=this.faces[n],s=h.faceNormals[n],l=h.vertexNormals[n],s.copy(o.normal),o instanceof e.Face3?(l.a.copy(o.vertexNormals[0]),l.b.copy(o.vertexNormals[1]),l.c.copy(o.vertexNormals[2])):(l.a.copy(o.vertexNormals[0]),l.b.copy(o.vertexNormals[1]),l.c.copy(o.vertexNormals[2]),l.d.copy(o.vertexNormals[3]))}for(n=0,r=this.faces.length;r>n;n++)o=this.faces[n],o.normal=o.__originalFaceNormal,o.vertexNormals=o.__originalVertexNormals},computeTangents:function(){function t(e,t,i,n,r,o,a){l=e.vertices[t],h=e.vertices[i],c=e.vertices[n],u=s[r],p=s[o],f=s[a],d=h.x-l.x,m=c.x-l.x,g=h.y-l.y,v=c.y-l.y,y=h.z-l.z,b=c.z-l.z,x=p.x-u.x,w=f.x-u.x,_=p.y-u.y,S=f.y-u.y,M=1/(x*S-w*_),E.set((S*d-_*m)*M,(S*g-_*v)*M,(S*y-_*b)*M),P.set((x*m-w*d)*M,(x*v-w*g)*M,(x*b-w*y)*M),C[t].add(E),C[i].add(E),C[n].add(E),A[t].add(P),A[i].add(P),A[n].add(P)}var i,n,r,o,a,s,l,h,c,u,p,f,d,m,g,v,y,b,x,w,_,S,M,T,C=[],A=[],E=new e.Vector3,P=new e.Vector3,k=new e.Vector3,R=new e.Vector3,L=new e.Vector3;for(i=0,n=this.vertices.length;n>i;i++)C[i]=new e.Vector3,A[i]=new e.Vector3;for(i=0,n=this.faces.length;n>i;i++)a=this.faces[i],s=this.faceVertexUvs[0][i],a instanceof e.Face3?t(this,a.a,a.b,a.c,0,1,2):a instanceof e.Face4&&(t(this,a.a,a.b,a.d,0,1,3),t(this,a.b,a.c,a.d,1,2,3));var D=["a","b","c","d"];for(i=0,n=this.faces.length;n>i;i++)for(a=this.faces[i],r=0;r<a.vertexNormals.length;r++)L.copy(a.vertexNormals[r]),o=a[D[r]],T=C[o],k.copy(T),k.sub(L.multiplyScalar(L.dot(T))).normalize(),R.crossVectors(a.vertexNormals[r],T),o=R.dot(A[o]),o=0>o?-1:1,a.vertexTangents[r]=new e.Vector4(k.x,k.y,k.z,o);this.hasTangents=!0},computeLineDistances:function(){for(var e=0,t=this.vertices,i=0,n=t.length;n>i;i++)i>0&&(e+=t[i].distanceTo(t[i-1])),this.lineDistances[i]=e},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new e.Box3),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new e.Sphere),this.boundingSphere.setFromCenterAndPoints(this.boundingSphere.center,this.vertices)},mergeVertices:function(){var t,i,n,r,o,a,s={},l=[],h=[],c=Math.pow(10,4);for(this.__tmpVertices=void 0,i=0,n=this.vertices.length;n>i;i++)t=this.vertices[i],t=[Math.round(t.x*c),Math.round(t.y*c),Math.round(t.z*c)].join("_"),void 0===s[t]?(s[t]=i,l.push(this.vertices[i]),h[i]=l.length-1):h[i]=h[s[t]];for(c=[],i=0,n=this.faces.length;n>i;i++)if(s=this.faces[i],s instanceof e.Face3){for(s.a=h[s.a],s.b=h[s.b],s.c=h[s.c],r=[s.a,s.b,s.c],t=-1,o=0;3>o;o++)if(r[o]==r[(o+1)%3]){c.push(i);break}}else if(s instanceof e.Face4){for(s.a=h[s.a],s.b=h[s.b],s.c=h[s.c],s.d=h[s.d],r=[s.a,s.b,s.c,s.d],t=-1,o=0;4>o;o++)r[o]==r[(o+1)%4]&&(t>=0&&c.push(i),t=o);if(t>=0){r.splice(t,1);var u=new e.Face3(r[0],r[1],r[2],s.normal,s.color,s.materialIndex);for(r=0,o=this.faceVertexUvs.length;o>r;r++)(a=this.faceVertexUvs[r][i])&&a.splice(t,1);s.vertexNormals&&0<s.vertexNormals.length&&(u.vertexNormals=s.vertexNormals,u.vertexNormals.splice(t,1)),s.vertexColors&&0<s.vertexColors.length&&(u.vertexColors=s.vertexColors,u.vertexColors.splice(t,1)),this.faces[i]=u}}for(i=c.length-1;i>=0;i--)for(this.faces.splice(i,1),r=0,o=this.faceVertexUvs.length;o>r;r++)this.faceVertexUvs[r].splice(i,1);return h=this.vertices.length-l.length,this.vertices=l,h},clone:function(){for(var t=new e.Geometry,i=this.vertices,n=0,r=i.length;r>n;n++)t.vertices.push(i[n].clone());for(i=this.faces,n=0,r=i.length;r>n;n++)t.faces.push(i[n].clone());for(i=this.faceVertexUvs[0],n=0,r=i.length;r>n;n++){for(var o=i[n],a=[],s=0,l=o.length;l>s;s++)a.push(new e.Vector2(o[s].x,o[s].y));t.faceVertexUvs[0].push(a)}return t},dispose:function(){this.dispatchEvent({type:"dispose"})}},e.GeometryIdCount=0,e.BufferGeometry=function(){this.id=e.GeometryIdCount++,this.attributes={},this.dynamic=!1,this.offsets=[],this.boundingSphere=this.boundingBox=null,this.hasTangents=!1,this.morphTargets=[]},e.BufferGeometry.prototype={constructor:e.BufferGeometry,addEventListener:e.EventDispatcher.prototype.addEventListener,hasEventListener:e.EventDispatcher.prototype.hasEventListener,removeEventListener:e.EventDispatcher.prototype.removeEventListener,dispatchEvent:e.EventDispatcher.prototype.dispatchEvent,applyMatrix:function(t){var i,n;this.attributes.position&&(i=this.attributes.position.array),this.attributes.normal&&(n=this.attributes.normal.array),void 0!==i&&(t.multiplyVector3Array(i),this.verticesNeedUpdate=!0),void 0!==n&&((new e.Matrix3).getNormalMatrix(t).multiplyVector3Array(n),this.normalizeNormals(),this.normalsNeedUpdate=!0)},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new e.Box3);var t=this.attributes.position.array;if(t){var i,n,r,o=this.boundingBox;3<=t.length&&(o.min.x=o.max.x=t[0],o.min.y=o.max.y=t[1],o.min.z=o.max.z=t[2]);for(var a=3,s=t.length;s>a;a+=3)i=t[a],n=t[a+1],r=t[a+2],i<o.min.x?o.min.x=i:i>o.max.x&&(o.max.x=i),n<o.min.y?o.min.y=n:n>o.max.y&&(o.max.y=n),r<o.min.z?o.min.z=r:r>o.max.z&&(o.max.z=r)}(void 0===t||0===t.length)&&(this.boundingBox.min.set(0,0,0),this.boundingBox.max.set(0,0,0))},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new e.Sphere);var t=this.attributes.position.array;if(t){for(var i,n,r,o=0,a=0,s=t.length;s>a;a+=3)i=t[a],n=t[a+1],r=t[a+2],i=i*i+n*n+r*r,i>o&&(o=i);this.boundingSphere.radius=Math.sqrt(o)}},computeVertexNormals:function(){if(this.attributes.position){var t,i,n,r;if(t=this.attributes.position.array.length,void 0===this.attributes.normal)this.attributes.normal={itemSize:3,array:new Float32Array(t),numItems:t};else for(t=0,i=this.attributes.normal.array.length;i>t;t++)this.attributes.normal.array[t]=0;var o,a,s,l,h,c,u=this.attributes.position.array,p=this.attributes.normal.array,f=new e.Vector3,d=new e.Vector3,m=new e.Vector3,g=new e.Vector3,v=new e.Vector3;if(this.attributes.index){var y=this.attributes.index.array,b=this.offsets;for(n=0,r=b.length;r>n;++n){i=b[n].start,o=b[n].count;var x=b[n].index;for(t=i,i+=o;i>t;t+=3)o=x+y[t],a=x+y[t+1],s=x+y[t+2],l=u[3*o],h=u[3*o+1],c=u[3*o+2],f.set(l,h,c),l=u[3*a],h=u[3*a+1],c=u[3*a+2],d.set(l,h,c),l=u[3*s],h=u[3*s+1],c=u[3*s+2],m.set(l,h,c),g.subVectors(m,d),v.subVectors(f,d),g.cross(v),p[3*o]+=g.x,p[3*o+1]+=g.y,p[3*o+2]+=g.z,p[3*a]+=g.x,p[3*a+1]+=g.y,p[3*a+2]+=g.z,p[3*s]+=g.x,p[3*s+1]+=g.y,p[3*s+2]+=g.z}}else for(t=0,i=u.length;i>t;t+=9)l=u[t],h=u[t+1],c=u[t+2],f.set(l,h,c),l=u[t+3],h=u[t+4],c=u[t+5],d.set(l,h,c),l=u[t+6],h=u[t+7],c=u[t+8],m.set(l,h,c),g.subVectors(m,d),v.subVectors(f,d),g.cross(v),p[t]=g.x,p[t+1]=g.y,p[t+2]=g.z,p[t+3]=g.x,p[t+4]=g.y,p[t+5]=g.z,p[t+6]=g.x,p[t+7]=g.y,p[t+8]=g.z;this.normalizeNormals(),this.normalsNeedUpdate=!0}},normalizeNormals:function(){for(var e,t,i,n=this.attributes.normal.array,r=0,o=n.length;o>r;r+=3)e=n[r],t=n[r+1],i=n[r+2],e=1/Math.sqrt(e*e+t*t+i*i),n[r]*=e,n[r+1]*=e,n[r+2]*=e},computeTangents:function(){function t(e){U.x=r[3*e],U.y=r[3*e+1],U.z=r[3*e+2],I.copy(U),G=h[e],O.copy(G),O.sub(U.multiplyScalar(U.dot(G))).normalize(),j.crossVectors(I,G),V=j.dot(c[e]),N=0>V?-1:1,l[4*e]=O.x,l[4*e+1]=O.y,l[4*e+2]=O.z,l[4*e+3]=N}if(void 0===this.attributes.index||void 0===this.attributes.position||void 0===this.attributes.normal||void 0===this.attributes.uv)console.warn("Missing required attributes (index, position, normal or uv) in BufferGeometry.computeTangents()");else{var i=this.attributes.index.array,n=this.attributes.position.array,r=this.attributes.normal.array,o=this.attributes.uv.array,a=n.length/3;if(void 0===this.attributes.tangent){var s=4*a;this.attributes.tangent={itemSize:4,array:new Float32Array(s),numItems:s}}for(var l=this.attributes.tangent.array,h=[],c=[],s=0;a>s;s++)h[s]=new e.Vector3,c[s]=new e.Vector3;var u,p,f,d,m,g,v,y,b,x,w,_,S,M,T,C,A,E,P,k,R,L,a=new e.Vector3,s=new e.Vector3,D=this.offsets;for(E=0,P=D.length;P>E;++E){A=D[E].start,k=D[E].count;var F=D[E].index;for(C=A,A+=k;A>C;C+=3)k=F+i[C],R=F+i[C+1],L=F+i[C+2],u=n[3*k],p=n[3*k+1],f=n[3*k+2],d=n[3*R],m=n[3*R+1],g=n[3*R+2],v=n[3*L],y=n[3*L+1],b=n[3*L+2],x=o[2*k],w=o[2*k+1],_=o[2*R],S=o[2*R+1],M=o[2*L],T=o[2*L+1],d-=u,u=v-u,m-=p,p=y-p,g-=f,f=b-f,_-=x,x=M-x,S-=w,w=T-w,T=1/(_*w-x*S),a.set((w*d-S*u)*T,(w*m-S*p)*T,(w*g-S*f)*T),s.set((_*u-x*d)*T,(_*p-x*m)*T,(_*f-x*g)*T),h[k].add(a),h[R].add(a),h[L].add(a),c[k].add(s),c[R].add(s),c[L].add(s)}var N,G,V,O=new e.Vector3,j=new e.Vector3,U=new e.Vector3,I=new e.Vector3;for(E=0,P=D.length;P>E;++E)for(A=D[E].start,k=D[E].count,F=D[E].index,C=A,A+=k;A>C;C+=3)k=F+i[C],R=F+i[C+1],L=F+i[C+2],t(k),t(R),t(L);this.tangentsNeedUpdate=this.hasTangents=!0}},dispose:function(){this.dispatchEvent({type:"dispose"})}},e.Camera=function(){e.Object3D.call(this),this.matrixWorldInverse=new e.Matrix4,this.projectionMatrix=new e.Matrix4,this.projectionMatrixInverse=new e.Matrix4},e.Camera.prototype=Object.create(e.Object3D.prototype),e.Camera.prototype.lookAt=function(){var t=new e.Matrix4;return function(e){t.lookAt(this.position,e,this.up),!0===this.useQuaternion?this.quaternion.setFromRotationMatrix(t):this.rotation.setEulerFromRotationMatrix(t,this.eulerOrder)}}(),e.OrthographicCamera=function(t,i,n,r,o,a){e.Camera.call(this),this.left=t,this.right=i,this.top=n,this.bottom=r,this.near=void 0!==o?o:.1,this.far=void 0!==a?a:2e3,this.updateProjectionMatrix()},e.OrthographicCamera.prototype=Object.create(e.Camera.prototype),e.OrthographicCamera.prototype.updateProjectionMatrix=function(){this.projectionMatrix.makeOrthographic(this.left,this.right,this.top,this.bottom,this.near,this.far)},e.PerspectiveCamera=function(t,i,n,r){e.Camera.call(this),this.fov=void 0!==t?t:50,this.aspect=void 0!==i?i:1,this.near=void 0!==n?n:.1,this.far=void 0!==r?r:2e3,this.updateProjectionMatrix()},e.PerspectiveCamera.prototype=Object.create(e.Camera.prototype),e.PerspectiveCamera.prototype.setLens=function(t,i){void 0===i&&(i=24),this.fov=2*e.Math.radToDeg(Math.atan(i/(2*t))),this.updateProjectionMatrix()},e.PerspectiveCamera.prototype.setViewOffset=function(e,t,i,n,r,o){this.fullWidth=e,this.fullHeight=t,this.x=i,this.y=n,this.width=r,this.height=o,this.updateProjectionMatrix()},e.PerspectiveCamera.prototype.updateProjectionMatrix=function(){if(this.fullWidth){var t=this.fullWidth/this.fullHeight,i=Math.tan(e.Math.degToRad(.5*this.fov))*this.near,n=-i,r=t*n,t=Math.abs(t*i-r),n=Math.abs(i-n);this.projectionMatrix.makeFrustum(r+this.x*t/this.fullWidth,r+(this.x+this.width)*t/this.fullWidth,i-(this.y+this.height)*n/this.fullHeight,i-this.y*n/this.fullHeight,this.near,this.far)}else this.projectionMatrix.makePerspective(this.fov,this.aspect,this.near,this.far)},e.Light=function(t){e.Object3D.call(this),this.color=new e.Color(t)},e.Light.prototype=Object.create(e.Object3D.prototype),e.Light.prototype.clone=function(t){return void 0===t&&(t=new e.Light),e.Object3D.prototype.clone.call(this,t),t.color.copy(this.color),t},e.AmbientLight=function(t){e.Light.call(this,t)},e.AmbientLight.prototype=Object.create(e.Light.prototype),e.AmbientLight.prototype.clone=function(){var t=new e.AmbientLight;return e.Light.prototype.clone.call(this,t),t},e.AreaLight=function(t,i){e.Light.call(this,t),this.normal=new e.Vector3(0,-1,0),this.right=new e.Vector3(1,0,0),this.intensity=void 0!==i?i:1,this.height=this.width=1,this.constantAttenuation=1.5,this.linearAttenuation=.5,this.quadraticAttenuation=.1},e.AreaLight.prototype=Object.create(e.Light.prototype),e.DirectionalLight=function(t,i){e.Light.call(this,t),this.position.set(0,1,0),this.target=new e.Object3D,this.intensity=void 0!==i?i:1,this.onlyShadow=this.castShadow=!1,this.shadowCameraNear=50,this.shadowCameraFar=5e3,this.shadowCameraLeft=-500,this.shadowCameraTop=this.shadowCameraRight=500,this.shadowCameraBottom=-500,this.shadowCameraVisible=!1,this.shadowBias=0,this.shadowDarkness=.5,this.shadowMapHeight=this.shadowMapWidth=512,this.shadowCascade=!1,this.shadowCascadeOffset=new e.Vector3(0,0,-1e3),this.shadowCascadeCount=2,this.shadowCascadeBias=[0,0,0],this.shadowCascadeWidth=[512,512,512],this.shadowCascadeHeight=[512,512,512],this.shadowCascadeNearZ=[-1,.99,.998],this.shadowCascadeFarZ=[.99,.998,1],this.shadowCascadeArray=[],this.shadowMatrix=this.shadowCamera=this.shadowMapSize=this.shadowMap=null},e.DirectionalLight.prototype=Object.create(e.Light.prototype),e.DirectionalLight.prototype.clone=function(){var t=new e.DirectionalLight;return e.Light.prototype.clone.call(this,t),t.target=this.target.clone(),t.intensity=this.intensity,t.castShadow=this.castShadow,t.onlyShadow=this.onlyShadow,t},e.HemisphereLight=function(t,i,n){e.Light.call(this,t),this.position.set(0,100,0),this.groundColor=new e.Color(i),this.intensity=void 0!==n?n:1},e.HemisphereLight.prototype=Object.create(e.Light.prototype),e.HemisphereLight.prototype.clone=function(){var t=new e.PointLight;return e.Light.prototype.clone.call(this,t),t.groundColor.copy(this.groundColor),t.intensity=this.intensity,t},e.PointLight=function(t,i,n){e.Light.call(this,t),this.intensity=void 0!==i?i:1,this.distance=void 0!==n?n:0},e.PointLight.prototype=Object.create(e.Light.prototype),e.PointLight.prototype.clone=function(){var t=new e.PointLight;return e.Light.prototype.clone.call(this,t),t.intensity=this.intensity,t.distance=this.distance,t},e.SpotLight=function(t,i,n,r,o){e.Light.call(this,t),this.position.set(0,1,0),this.target=new e.Object3D,this.intensity=void 0!==i?i:1,this.distance=void 0!==n?n:0,this.angle=void 0!==r?r:Math.PI/3,this.exponent=void 0!==o?o:10,this.onlyShadow=this.castShadow=!1,this.shadowCameraNear=50,this.shadowCameraFar=5e3,this.shadowCameraFov=50,this.shadowCameraVisible=!1,this.shadowBias=0,this.shadowDarkness=.5,this.shadowMapHeight=this.shadowMapWidth=512,this.shadowMatrix=this.shadowCamera=this.shadowMapSize=this.shadowMap=null},e.SpotLight.prototype=Object.create(e.Light.prototype),e.SpotLight.prototype.clone=function(){var t=new e.SpotLight;return e.Light.prototype.clone.call(this,t),t.target=this.target.clone(),t.intensity=this.intensity,t.distance=this.distance,t.angle=this.angle,t.exponent=this.exponent,t.castShadow=this.castShadow,t.onlyShadow=this.onlyShadow,t},e.Loader=function(t){this.statusDomElement=(this.showStatus=t)?e.Loader.prototype.addStatusElement():null,this.onLoadStart=function(){},this.onLoadProgress=function(){},this.onLoadComplete=function(){}},e.Loader.prototype={constructor:e.Loader,crossOrigin:"anonymous",addStatusElement:function(){var e=document.createElement("div");return e.style.position="absolute",e.style.right="0px",e.style.top="0px",e.style.fontSize="0.8em",e.style.textAlign="left",e.style.background="rgba(0,0,0,0.25)",e.style.color="#fff",e.style.width="120px",e.style.padding="0.5em 0.5em 0.5em 0.5em",e.style.zIndex=1e3,e.innerHTML="Loading ...",e},updateProgress:function(e){var t="Loaded ",t=e.total?t+((100*e.loaded/e.total).toFixed(0)+"%"):t+((e.loaded/1e3).toFixed(2)+" KB");this.statusDomElement.innerHTML=t},extractUrlBase:function(e){return e=e.split("/"),e.pop(),(1>e.length?".":e.join("/"))+"/"},initMaterials:function(t,i){for(var n=[],r=0;r<t.length;++r)n[r]=e.Loader.prototype.createMaterial(t[r],i);return n},needsTangents:function(t){for(var i=0,n=t.length;n>i;i++)if(t[i]instanceof e.ShaderMaterial)return!0;return!1},createMaterial:function(t,i){function n(e){return e=Math.log(e)/Math.LN2,Math.floor(e)==e}function r(e){return e=Math.log(e)/Math.LN2,Math.pow(2,Math.round(e))}function o(t,o,a,l,h,c,u){var p=/\.dds$/i.test(a),f=i+"/"+a;if(p){var d=e.ImageUtils.loadCompressedTexture(f);t[o]=d}else d=document.createElement("canvas"),t[o]=new e.Texture(d);if(t[o].sourceFile=a,l&&(t[o].repeat.set(l[0],l[1]),1!==l[0]&&(t[o].wrapS=e.RepeatWrapping),1!==l[1]&&(t[o].wrapT=e.RepeatWrapping)),h&&t[o].offset.set(h[0],h[1]),c&&(a={repeat:e.RepeatWrapping,mirror:e.MirroredRepeatWrapping},void 0!==a[c[0]]&&(t[o].wrapS=a[c[0]]),void 0!==a[c[1]]&&(t[o].wrapT=a[c[1]])),u&&(t[o].anisotropy=u),!p){var m=t[o],t=new Image;t.onload=function(){if(n(this.width)&&n(this.height))m.image=this;else{var e=r(this.width),t=r(this.height);m.image.width=e,m.image.height=t,m.image.getContext("2d").drawImage(this,0,0,e,t)}m.needsUpdate=!0},t.crossOrigin=s.crossOrigin,t.src=f}}function a(e){return(255*e[0]<<16)+(255*e[1]<<8)+255*e[2]}var s=this,l="MeshLambertMaterial",h={color:15658734,opacity:1,map:null,lightMap:null,normalMap:null,bumpMap:null,wireframe:!1};if(t.shading){var c=t.shading.toLowerCase();"phong"===c?l="MeshPhongMaterial":"basic"===c&&(l="MeshBasicMaterial")}return void 0!==t.blending&&void 0!==e[t.blending]&&(h.blending=e[t.blending]),(void 0!==t.transparent||1>t.opacity)&&(h.transparent=t.transparent),void 0!==t.depthTest&&(h.depthTest=t.depthTest),void 0!==t.depthWrite&&(h.depthWrite=t.depthWrite),void 0!==t.visible&&(h.visible=t.visible),void 0!==t.flipSided&&(h.side=e.BackSide),void 0!==t.doubleSided&&(h.side=e.DoubleSide),void 0!==t.wireframe&&(h.wireframe=t.wireframe),void 0!==t.vertexColors&&("face"===t.vertexColors?h.vertexColors=e.FaceColors:t.vertexColors&&(h.vertexColors=e.VertexColors)),t.colorDiffuse?h.color=a(t.colorDiffuse):t.DbgColor&&(h.color=t.DbgColor),t.colorSpecular&&(h.specular=a(t.colorSpecular)),t.colorAmbient&&(h.ambient=a(t.colorAmbient)),t.transparency&&(h.opacity=t.transparency),t.specularCoef&&(h.shininess=t.specularCoef),t.mapDiffuse&&i&&o(h,"map",t.mapDiffuse,t.mapDiffuseRepeat,t.mapDiffuseOffset,t.mapDiffuseWrap,t.mapDiffuseAnisotropy),t.mapLight&&i&&o(h,"lightMap",t.mapLight,t.mapLightRepeat,t.mapLightOffset,t.mapLightWrap,t.mapLightAnisotropy),t.mapBump&&i&&o(h,"bumpMap",t.mapBump,t.mapBumpRepeat,t.mapBumpOffset,t.mapBumpWrap,t.mapBumpAnisotropy),t.mapNormal&&i&&o(h,"normalMap",t.mapNormal,t.mapNormalRepeat,t.mapNormalOffset,t.mapNormalWrap,t.mapNormalAnisotropy),t.mapSpecular&&i&&o(h,"specularMap",t.mapSpecular,t.mapSpecularRepeat,t.mapSpecularOffset,t.mapSpecularWrap,t.mapSpecularAnisotropy),t.mapBumpScale&&(h.bumpScale=t.mapBumpScale),t.mapNormal?(l=e.ShaderLib.normalmap,c=e.UniformsUtils.clone(l.uniforms),c.tNormal.value=h.normalMap,t.mapNormalFactor&&c.uNormalScale.value.set(t.mapNormalFactor,t.mapNormalFactor),h.map&&(c.tDiffuse.value=h.map,c.enableDiffuse.value=!0),h.specularMap&&(c.tSpecular.value=h.specularMap,c.enableSpecular.value=!0),h.lightMap&&(c.tAO.value=h.lightMap,c.enableAO.value=!0),c.uDiffuseColor.value.setHex(h.color),c.uSpecularColor.value.setHex(h.specular),c.uAmbientColor.value.setHex(h.ambient),c.uShininess.value=h.shininess,void 0!==h.opacity&&(c.uOpacity.value=h.opacity),l=new e.ShaderMaterial({fragmentShader:l.fragmentShader,vertexShader:l.vertexShader,uniforms:c,lights:!0,fog:!0}),h.transparent&&(l.transparent=!0)):l=new e[l](h),void 0!==t.DbgName&&(l.name=t.DbgName),l}},e.ImageLoader=function(){this.crossOrigin=null},e.ImageLoader.prototype={constructor:e.ImageLoader,addEventListener:e.EventDispatcher.prototype.addEventListener,hasEventListener:e.EventDispatcher.prototype.hasEventListener,removeEventListener:e.EventDispatcher.prototype.removeEventListener,dispatchEvent:e.EventDispatcher.prototype.dispatchEvent,load:function(e,t){var i=this;void 0===t&&(t=new Image),t.addEventListener("load",function(){i.dispatchEvent({type:"load",content:t})},!1),t.addEventListener("error",function(){i.dispatchEvent({type:"error",message:"Couldn't load URL ["+e+"]"})},!1),i.crossOrigin&&(t.crossOrigin=i.crossOrigin),t.src=e}},e.JSONLoader=function(t){e.Loader.call(this,t),this.withCredentials=!1},e.JSONLoader.prototype=Object.create(e.Loader.prototype),e.JSONLoader.prototype.load=function(e,t,i){i=i&&"string"==typeof i?i:this.extractUrlBase(e),this.onLoadStart(),this.loadAjaxJSON(this,e,t,i)},e.JSONLoader.prototype.loadAjaxJSON=function(e,t,i,n,r){var o=new XMLHttpRequest,a=0;o.onreadystatechange=function(){if(o.readyState===o.DONE)if(200===o.status||0===o.status){if(o.responseText){var s=JSON.parse(o.responseText),s=e.parse(s,n);i(s.geometry,s.materials)}else console.warn("THREE.JSONLoader: ["+t+"] seems to be unreachable or file there is empty");e.onLoadComplete()}else console.error("THREE.JSONLoader: Couldn't load ["+t+"] ["+o.status+"]");else o.readyState===o.LOADING?r&&(0===a&&(a=o.getResponseHeader("Content-Length")),r({total:a,loaded:o.responseText.length})):o.readyState===o.HEADERS_RECEIVED&&void 0!==r&&(a=o.getResponseHeader("Content-Length"))},o.open("GET",t,!0),o.withCredentials=this.withCredentials,o.send(null)},e.JSONLoader.prototype.parse=function(t,i){var n,r,o,a,s,l,h,c,u,p,f,d,m,g,v,y=new e.Geometry,b=void 0!==t.scale?1/t.scale:1,x=t.faces;p=t.vertices;var w=t.normals,_=t.colors,S=0;for(n=0;n<t.uvs.length;n++)t.uvs[n].length&&S++;for(n=0;S>n;n++)y.faceUvs[n]=[],y.faceVertexUvs[n]=[];for(a=0,s=p.length;s>a;)l=new e.Vector3,l.x=p[a++]*b,l.y=p[a++]*b,l.z=p[a++]*b,y.vertices.push(l);for(a=0,s=x.length;s>a;){if(p=x[a++],l=1&p,o=2&p,n=4&p,r=8&p,c=16&p,h=32&p,f=64&p,p&=128,l?(d=new e.Face4,d.a=x[a++],d.b=x[a++],d.c=x[a++],d.d=x[a++],l=4):(d=new e.Face3,d.a=x[a++],d.b=x[a++],d.c=x[a++],l=3),o&&(o=x[a++],d.materialIndex=o),o=y.faces.length,n)for(n=0;S>n;n++)m=t.uvs[n],u=x[a++],v=m[2*u],u=m[2*u+1],y.faceUvs[n][o]=new e.Vector2(v,u);if(r)for(n=0;S>n;n++){for(m=t.uvs[n],g=[],r=0;l>r;r++)u=x[a++],v=m[2*u],u=m[2*u+1],g[r]=new e.Vector2(v,u);y.faceVertexUvs[n][o]=g}if(c&&(c=3*x[a++],r=new e.Vector3,r.x=w[c++],r.y=w[c++],r.z=w[c],d.normal=r),h)for(n=0;l>n;n++)c=3*x[a++],r=new e.Vector3,r.x=w[c++],r.y=w[c++],r.z=w[c],d.vertexNormals.push(r);if(f&&(h=x[a++],h=new e.Color(_[h]),d.color=h),p)for(n=0;l>n;n++)h=x[a++],h=new e.Color(_[h]),d.vertexColors.push(h);y.faces.push(d)}if(t.skinWeights)for(a=0,s=t.skinWeights.length;s>a;a+=2)x=t.skinWeights[a],w=t.skinWeights[a+1],y.skinWeights.push(new e.Vector4(x,w,0,0));if(t.skinIndices)for(a=0,s=t.skinIndices.length;s>a;a+=2)x=t.skinIndices[a],w=t.skinIndices[a+1],y.skinIndices.push(new e.Vector4(x,w,0,0));if(y.bones=t.bones,y.animation=t.animation,void 0!==t.morphTargets)for(a=0,s=t.morphTargets.length;s>a;a++)for(y.morphTargets[a]={},y.morphTargets[a].name=t.morphTargets[a].name,y.morphTargets[a].vertices=[],_=y.morphTargets[a].vertices,S=t.morphTargets[a].vertices,x=0,w=S.length;w>x;x+=3)p=new e.Vector3,p.x=S[x]*b,p.y=S[x+1]*b,p.z=S[x+2]*b,_.push(p);if(void 0!==t.morphColors)for(a=0,s=t.morphColors.length;s>a;a++)for(y.morphColors[a]={},y.morphColors[a].name=t.morphColors[a].name,y.morphColors[a].colors=[],w=y.morphColors[a].colors,_=t.morphColors[a].colors,b=0,x=_.length;x>b;b+=3)S=new e.Color(16755200),S.setRGB(_[b],_[b+1],_[b+2]),w.push(S);return y.computeCentroids(),y.computeFaceNormals(),void 0===t.materials?{geometry:y}:(b=this.initMaterials(t.materials,i),this.needsTangents(b)&&y.computeTangents(),{geometry:y,materials:b})},e.LoadingMonitor=function(){var e=this,t=0,i=0,n=function(){t++,e.dispatchEvent({type:"progress",loaded:t,total:i}),t===i&&e.dispatchEvent({type:"load"})};this.add=function(e){i++,e.addEventListener("load",n,!1)}},e.LoadingMonitor.prototype={constructor:e.LoadingMonitor,addEventListener:e.EventDispatcher.prototype.addEventListener,hasEventListener:e.EventDispatcher.prototype.hasEventListener,removeEventListener:e.EventDispatcher.prototype.removeEventListener,dispatchEvent:e.EventDispatcher.prototype.dispatchEvent},e.GeometryLoader=function(){},e.GeometryLoader.prototype={constructor:e.GeometryLoader,addEventListener:e.EventDispatcher.prototype.addEventListener,hasEventListener:e.EventDispatcher.prototype.hasEventListener,removeEventListener:e.EventDispatcher.prototype.removeEventListener,dispatchEvent:e.EventDispatcher.prototype.dispatchEvent,load:function(e){var t=this,i=new XMLHttpRequest;i.addEventListener("load",function(e){e=t.parse(JSON.parse(e.target.responseText)),t.dispatchEvent({type:"load",content:e})},!1),i.addEventListener("progress",function(e){t.dispatchEvent({type:"progress",loaded:e.loaded,total:e.total})},!1),i.addEventListener("error",function(){t.dispatchEvent({type:"error",message:"Couldn't load URL ["+e+"]"})},!1),i.open("GET",e,!0),i.send(null)},parse:function(){}},e.MaterialLoader=function(){},e.MaterialLoader.prototype={constructor:e.MaterialLoader,addEventListener:e.EventDispatcher.prototype.addEventListener,hasEventListener:e.EventDispatcher.prototype.hasEventListener,removeEventListener:e.EventDispatcher.prototype.removeEventListener,dispatchEvent:e.EventDispatcher.prototype.dispatchEvent,load:function(e){var t=this,i=new XMLHttpRequest;i.addEventListener("load",function(e){e=t.parse(JSON.parse(e.target.responseText)),t.dispatchEvent({type:"load",content:e})},!1),i.addEventListener("progress",function(e){t.dispatchEvent({type:"progress",loaded:e.loaded,total:e.total})},!1),i.addEventListener("error",function(){t.dispatchEvent({type:"error",message:"Couldn't load URL ["+e+"]"})},!1),i.open("GET",e,!0),i.send(null)},parse:function(t){var i;switch(t.type){case"MeshBasicMaterial":i=new e.MeshBasicMaterial({color:t.color,opacity:t.opacity,transparent:t.transparent,wireframe:t.wireframe});break;case"MeshLambertMaterial":i=new e.MeshLambertMaterial({color:t.color,ambient:t.ambient,emissive:t.emissive,opacity:t.opacity,transparent:t.transparent,wireframe:t.wireframe});break;case"MeshPhongMaterial":i=new e.MeshPhongMaterial({color:t.color,ambient:t.ambient,emissive:t.emissive,specular:t.specular,shininess:t.shininess,opacity:t.opacity,transparent:t.transparent,wireframe:t.wireframe});break;case"MeshNormalMaterial":i=new e.MeshNormalMaterial({opacity:t.opacity,transparent:t.transparent,wireframe:t.wireframe});break;case"MeshDepthMaterial":i=new e.MeshDepthMaterial({opacity:t.opacity,transparent:t.transparent,wireframe:t.wireframe})}return i}},e.SceneLoader=function(){this.onLoadStart=function(){},this.onLoadProgress=function(){},this.onLoadComplete=function(){},this.callbackSync=function(){},this.callbackProgress=function(){},this.geometryHandlerMap={},this.hierarchyHandlerMap={},this.addGeometryHandler("ascii",e.JSONLoader)},e.SceneLoader.prototype.constructor=e.SceneLoader,e.SceneLoader.prototype.load=function(e,t){var i=this,n=new XMLHttpRequest;n.onreadystatechange=function(){if(4===n.readyState)if(200===n.status||0===n.status){var r=JSON.parse(n.responseText);i.parse(r,t,e)}else console.error("THREE.SceneLoader: Couldn't load ["+e+"] ["+n.status+"]")},n.open("GET",e,!0),n.send(null)},e.SceneLoader.prototype.addGeometryHandler=function(e,t){this.geometryHandlerMap[e]={loaderClass:t}},e.SceneLoader.prototype.addHierarchyHandler=function(e,t){this.hierarchyHandlerMap[e]={loaderClass:t}},e.SceneLoader.prototype.parse=function(t,i,n){function r(e,t){return"relativeToHTML"==t?e:C+"/"+e}function o(){a(S.scene,E.objects)}function a(t,i){var n,o,s,h,c,d,m;for(m in i)if(void 0===S.objects[m]){var b=i[m],x=null;if(b.type&&b.type in T.hierarchyHandlerMap){if(void 0===b.loading){o={type:1,url:1,material:1,position:1,rotation:1,scale:1,visible:1,children:1,userData:1,skin:1,morph:1,mirroredLoop:1,duration:1},s={};for(var w in b)w in o||(s[w]=b[w]);p=S.materials[b.material],b.loading=!0,o=T.hierarchyHandlerMap[b.type].loaderObject,o.options?o.load(r(b.url,E.urlBaseType),l(m,t,p,b)):o.load(r(b.url,E.urlBaseType),l(m,t,p,b),s)}}else if(void 0!==b.geometry){if(u=S.geometries[b.geometry]){if(x=!1,p=S.materials[b.material],x=p instanceof e.ShaderMaterial,s=b.position,h=b.rotation,c=b.scale,n=b.matrix,d=b.quaternion,b.material||(p=new e.MeshFaceMaterial(S.face_materials[b.geometry])),p instanceof e.MeshFaceMaterial&&0===p.materials.length&&(p=new e.MeshFaceMaterial(S.face_materials[b.geometry])),p instanceof e.MeshFaceMaterial)for(o=0;o<p.materials.length;o++)x=x||p.materials[o]instanceof e.ShaderMaterial;x&&u.computeTangents(),b.skin?x=new e.SkinnedMesh(u,p):b.morph?(x=new e.MorphAnimMesh(u,p),void 0!==b.duration&&(x.duration=b.duration),void 0!==b.time&&(x.time=b.time),void 0!==b.mirroredLoop&&(x.mirroredLoop=b.mirroredLoop),p.morphNormals&&u.computeMorphNormals()):x=new e.Mesh(u,p),x.name=m,n?(x.matrixAutoUpdate=!1,x.matrix.set(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15])):(x.position.set(s[0],s[1],s[2]),d?(x.quaternion.set(d[0],d[1],d[2],d[3]),x.useQuaternion=!0):x.rotation.set(h[0],h[1],h[2]),x.scale.set(c[0],c[1],c[2])),x.visible=b.visible,x.castShadow=b.castShadow,x.receiveShadow=b.receiveShadow,t.add(x),S.objects[m]=x }}else"DirectionalLight"===b.type||"PointLight"===b.type||"AmbientLight"===b.type?(v=void 0!==b.color?b.color:16777215,y=void 0!==b.intensity?b.intensity:1,"DirectionalLight"===b.type?(s=b.direction,g=new e.DirectionalLight(v,y),g.position.set(s[0],s[1],s[2]),b.target&&(A.push({object:g,targetName:b.target}),g.target=null)):"PointLight"===b.type?(s=b.position,o=b.distance,g=new e.PointLight(v,y,o),g.position.set(s[0],s[1],s[2])):"AmbientLight"===b.type&&(g=new e.AmbientLight(v)),t.add(g),g.name=m,S.lights[m]=g,S.objects[m]=g):"PerspectiveCamera"===b.type||"OrthographicCamera"===b.type?(s=b.position,h=b.rotation,d=b.quaternion,"PerspectiveCamera"===b.type?f=new e.PerspectiveCamera(b.fov,b.aspect,b.near,b.far):"OrthographicCamera"===b.type&&(f=new e.OrthographicCamera(b.left,b.right,b.top,b.bottom,b.near,b.far)),f.name=m,f.position.set(s[0],s[1],s[2]),void 0!==d?(f.quaternion.set(d[0],d[1],d[2],d[3]),f.useQuaternion=!0):void 0!==h&&f.rotation.set(h[0],h[1],h[2]),t.add(f),S.cameras[m]=f,S.objects[m]=f):(s=b.position,h=b.rotation,c=b.scale,d=b.quaternion,x=new e.Object3D,x.name=m,x.position.set(s[0],s[1],s[2]),d?(x.quaternion.set(d[0],d[1],d[2],d[3]),x.useQuaternion=!0):x.rotation.set(h[0],h[1],h[2]),x.scale.set(c[0],c[1],c[2]),x.visible=void 0!==b.visible?b.visible:!1,t.add(x),S.objects[m]=x,S.empties[m]=x);if(x){if(void 0!==b.userData)for(var _ in b.userData)x.userData[_]=b.userData[_];if(void 0!==b.groups)for(o=0;o<b.groups.length;o++)s=b.groups[o],void 0===S.groups[s]&&(S.groups[s]=[]),S.groups[s].push(m);void 0!==b.children&&a(x,b.children)}}}function s(e){return function(t,i){t.name=e,S.geometries[e]=t,S.face_materials[e]=i,o(),b-=1,T.onLoadComplete(),c()}}function l(e,t,i,n){return function(r){var r=r.content?r.content:r.dae?r.scene:r,a=n.position,s=n.rotation,l=n.quaternion,h=n.scale;r.position.set(a[0],a[1],a[2]),l?(r.quaternion.set(l[0],l[1],l[2],l[3]),r.useQuaternion=!0):r.rotation.set(s[0],s[1],s[2]),r.scale.set(h[0],h[1],h[2]),i&&r.traverse(function(e){e.material=i});var u=void 0!==n.visible?n.visible:!0;r.traverse(function(e){e.visible=u}),t.add(r),r.name=e,S.objects[e]=r,o(),b-=1,T.onLoadComplete(),c()}}function h(e){return function(t,i){t.name=e,S.geometries[e]=t,S.face_materials[e]=i}}function c(){if(T.callbackProgress({totalModels:w,totalTextures:_,loadedModels:w-b,loadedTextures:_-x},S),T.onLoadProgress(),0===b&&0===x){for(var t=0;t<A.length;t++){var n=A[t],r=S.objects[n.targetName];r?n.object.target=r:(n.object.target=new e.Object3D,S.scene.add(n.object.target)),n.object.target.userData.targetInverse=n.object}i(S)}}var u,p,f,d,m,g,v,y,b,x,w,_,S,M,T=this,C=e.Loader.prototype.extractUrlBase(n),A=[],E=t;for(M in this.geometryHandlerMap)t=this.geometryHandlerMap[M].loaderClass,this.geometryHandlerMap[M].loaderObject=new t;for(M in this.hierarchyHandlerMap)t=this.hierarchyHandlerMap[M].loaderClass,this.hierarchyHandlerMap[M].loaderObject=new t;x=b=0,S={scene:new e.Scene,geometries:{},face_materials:{},materials:{},textures:{},objects:{},cameras:{},lights:{},fogs:{},empties:{},groups:{}},E.transform&&(M=E.transform.position,t=E.transform.rotation,n=E.transform.scale,M&&S.scene.position.set(M[0],M[1],M[2]),t&&S.scene.rotation.set(t[0],t[1],t[2]),n&&S.scene.scale.set(n[0],n[1],n[2]),M||t||n)&&(S.scene.updateMatrix(),S.scene.updateMatrixWorld()),M=function(e){return function(){x-=e,c(),T.onLoadComplete()}};for(var P in E.fogs)t=E.fogs[P],"linear"===t.type?d=new e.Fog(0,t.near,t.far):"exp2"===t.type&&(d=new e.FogExp2(0,t.density)),t=t.color,d.color.setRGB(t[0],t[1],t[2]),S.fogs[P]=d;for(var k in E.geometries)d=E.geometries[k],d.type in this.geometryHandlerMap&&(b+=1,T.onLoadStart());for(var R in E.objects)d=E.objects[R],d.type&&d.type in this.hierarchyHandlerMap&&(b+=1,T.onLoadStart());w=b;for(k in E.geometries)if(d=E.geometries[k],"cube"===d.type)u=new e.CubeGeometry(d.width,d.height,d.depth,d.widthSegments,d.heightSegments,d.depthSegments),u.name=k,S.geometries[k]=u;else if("plane"===d.type)u=new e.PlaneGeometry(d.width,d.height,d.widthSegments,d.heightSegments),u.name=k,S.geometries[k]=u;else if("sphere"===d.type)u=new e.SphereGeometry(d.radius,d.widthSegments,d.heightSegments),u.name=k,S.geometries[k]=u;else if("cylinder"===d.type)u=new e.CylinderGeometry(d.topRad,d.botRad,d.height,d.radSegs,d.heightSegs),u.name=k,S.geometries[k]=u;else if("torus"===d.type)u=new e.TorusGeometry(d.radius,d.tube,d.segmentsR,d.segmentsT),u.name=k,S.geometries[k]=u;else if("icosahedron"===d.type)u=new e.IcosahedronGeometry(d.radius,d.subdivisions),u.name=k,S.geometries[k]=u;else if(d.type in this.geometryHandlerMap){R={};for(m in d)"type"!==m&&"url"!==m&&(R[m]=d[m]);this.geometryHandlerMap[d.type].loaderObject.load(r(d.url,E.urlBaseType),s(k),R)}else"embedded"===d.type&&(R=E.embeds[d.id],R.metadata=E.metadata,R&&(R=this.geometryHandlerMap.ascii.loaderObject.parse(R,""),h(k)(R.geometry,R.materials)));for(var L in E.textures)if(k=E.textures[L],k.url instanceof Array)for(x+=k.url.length,m=0;m<k.url.length;m++)T.onLoadStart();else x+=1,T.onLoadStart();_=x;for(L in E.textures){if(k=E.textures[L],void 0!==k.mapping&&void 0!==e[k.mapping]&&(k.mapping=new e[k.mapping]),k.url instanceof Array){for(R=k.url.length,d=[],m=0;R>m;m++)d[m]=r(k.url[m],E.urlBaseType);m=(m=/\.dds$/i.test(d[0]))?e.ImageUtils.loadCompressedTextureCube(d,k.mapping,M(R)):e.ImageUtils.loadTextureCube(d,k.mapping,M(R))}else m=/\.dds$/i.test(k.url),R=r(k.url,E.urlBaseType),d=M(1),m=m?e.ImageUtils.loadCompressedTexture(R,k.mapping,d):e.ImageUtils.loadTexture(R,k.mapping,d),void 0!==e[k.minFilter]&&(m.minFilter=e[k.minFilter]),void 0!==e[k.magFilter]&&(m.magFilter=e[k.magFilter]),k.anisotropy&&(m.anisotropy=k.anisotropy),k.repeat&&(m.repeat.set(k.repeat[0],k.repeat[1]),1!==k.repeat[0]&&(m.wrapS=e.RepeatWrapping),1!==k.repeat[1]&&(m.wrapT=e.RepeatWrapping)),k.offset&&m.offset.set(k.offset[0],k.offset[1]),k.wrap&&(R={repeat:e.RepeatWrapping,mirror:e.MirroredRepeatWrapping},void 0!==R[k.wrap[0]]&&(m.wrapS=R[k.wrap[0]]),void 0!==R[k.wrap[1]]&&(m.wrapT=R[k.wrap[1]]));S.textures[L]=m}var D,F;for(D in E.materials){L=E.materials[D];for(F in L.parameters)"envMap"===F||"map"===F||"lightMap"===F||"bumpMap"===F?L.parameters[F]=S.textures[L.parameters[F]]:"shading"===F?L.parameters[F]="flat"===L.parameters[F]?e.FlatShading:e.SmoothShading:"side"===F?L.parameters[F]="double"==L.parameters[F]?e.DoubleSide:"back"==L.parameters[F]?e.BackSide:e.FrontSide:"blending"===F?L.parameters[F]=L.parameters[F]in e?e[L.parameters[F]]:e.NormalBlending:"combine"===F?L.parameters[F]=L.parameters[F]in e?e[L.parameters[F]]:e.MultiplyOperation:"vertexColors"===F?"face"==L.parameters[F]?L.parameters[F]=e.FaceColors:L.parameters[F]&&(L.parameters[F]=e.VertexColors):"wrapRGB"===F&&(M=L.parameters[F],L.parameters[F]=new e.Vector3(M[0],M[1],M[2]));void 0!==L.parameters.opacity&&1>L.parameters.opacity&&(L.parameters.transparent=!0),L.parameters.normalMap?(M=e.ShaderLib.normalmap,k=e.UniformsUtils.clone(M.uniforms),m=L.parameters.color,R=L.parameters.specular,d=L.parameters.ambient,P=L.parameters.shininess,k.tNormal.value=S.textures[L.parameters.normalMap],L.parameters.normalScale&&k.uNormalScale.value.set(L.parameters.normalScale[0],L.parameters.normalScale[1]),L.parameters.map&&(k.tDiffuse.value=L.parameters.map,k.enableDiffuse.value=!0),L.parameters.envMap&&(k.tCube.value=L.parameters.envMap,k.enableReflection.value=!0,k.uReflectivity.value=L.parameters.reflectivity),L.parameters.lightMap&&(k.tAO.value=L.parameters.lightMap,k.enableAO.value=!0),L.parameters.specularMap&&(k.tSpecular.value=S.textures[L.parameters.specularMap],k.enableSpecular.value=!0),L.parameters.displacementMap&&(k.tDisplacement.value=S.textures[L.parameters.displacementMap],k.enableDisplacement.value=!0,k.uDisplacementBias.value=L.parameters.displacementBias,k.uDisplacementScale.value=L.parameters.displacementScale),k.uDiffuseColor.value.setHex(m),k.uSpecularColor.value.setHex(R),k.uAmbientColor.value.setHex(d),k.uShininess.value=P,L.parameters.opacity&&(k.uOpacity.value=L.parameters.opacity),p=new e.ShaderMaterial({fragmentShader:M.fragmentShader,vertexShader:M.vertexShader,uniforms:k,lights:!0,fog:!0})):p=new e[L.type](L.parameters),p.name=D,S.materials[D]=p}for(D in E.materials)if(L=E.materials[D],L.parameters.materials){for(F=[],m=0;m<L.parameters.materials.length;m++)F.push(S.materials[L.parameters.materials[m]]);S.materials[D].materials=F}o(),S.cameras&&E.defaults.camera&&(S.currentCamera=S.cameras[E.defaults.camera]),S.fogs&&E.defaults.fog&&(S.scene.fog=S.fogs[E.defaults.fog]),T.callbackSync(S),c()},e.TextureLoader=function(){this.crossOrigin=null},e.TextureLoader.prototype={constructor:e.TextureLoader,addEventListener:e.EventDispatcher.prototype.addEventListener,hasEventListener:e.EventDispatcher.prototype.hasEventListener,removeEventListener:e.EventDispatcher.prototype.removeEventListener,dispatchEvent:e.EventDispatcher.prototype.dispatchEvent,load:function(t){var i=this,n=new Image;n.addEventListener("load",function(){var t=new e.Texture(n);t.needsUpdate=!0,i.dispatchEvent({type:"load",content:t})},!1),n.addEventListener("error",function(){i.dispatchEvent({type:"error",message:"Couldn't load URL ["+t+"]"})},!1),i.crossOrigin&&(n.crossOrigin=i.crossOrigin),n.src=t}},e.Material=function(){this.id=e.MaterialIdCount++,this.name="",this.side=e.FrontSide,this.opacity=1,this.transparent=!1,this.blending=e.NormalBlending,this.blendSrc=e.SrcAlphaFactor,this.blendDst=e.OneMinusSrcAlphaFactor,this.blendEquation=e.AddEquation,this.depthWrite=this.depthTest=!0,this.polygonOffset=!1,this.alphaTest=this.polygonOffsetUnits=this.polygonOffsetFactor=0,this.overdraw=!1,this.needsUpdate=this.visible=!0},e.Material.prototype={constructor:e.Material,addEventListener:e.EventDispatcher.prototype.addEventListener,hasEventListener:e.EventDispatcher.prototype.hasEventListener,removeEventListener:e.EventDispatcher.prototype.removeEventListener,dispatchEvent:e.EventDispatcher.prototype.dispatchEvent,setValues:function(t){if(void 0!==t)for(var i in t){var n=t[i];if(void 0===n)console.warn("THREE.Material: '"+i+"' parameter is undefined.");else if(i in this){var r=this[i];r instanceof e.Color?r.set(n):r instanceof e.Vector3&&n instanceof e.Vector3?r.copy(n):this[i]=n}}},clone:function(t){return void 0===t&&(t=new e.Material),t.name=this.name,t.side=this.side,t.opacity=this.opacity,t.transparent=this.transparent,t.blending=this.blending,t.blendSrc=this.blendSrc,t.blendDst=this.blendDst,t.blendEquation=this.blendEquation,t.depthTest=this.depthTest,t.depthWrite=this.depthWrite,t.polygonOffset=this.polygonOffset,t.polygonOffsetFactor=this.polygonOffsetFactor,t.polygonOffsetUnits=this.polygonOffsetUnits,t.alphaTest=this.alphaTest,t.overdraw=this.overdraw,t.visible=this.visible,t},dispose:function(){this.dispatchEvent({type:"dispose"})}},e.MaterialIdCount=0,e.LineBasicMaterial=function(t){e.Material.call(this),this.color=new e.Color(16777215),this.linewidth=1,this.linejoin=this.linecap="round",this.vertexColors=!1,this.fog=!0,this.setValues(t)},e.LineBasicMaterial.prototype=Object.create(e.Material.prototype),e.LineBasicMaterial.prototype.clone=function(){var t=new e.LineBasicMaterial;return e.Material.prototype.clone.call(this,t),t.color.copy(this.color),t.linewidth=this.linewidth,t.linecap=this.linecap,t.linejoin=this.linejoin,t.vertexColors=this.vertexColors,t.fog=this.fog,t},e.LineDashedMaterial=function(t){e.Material.call(this),this.color=new e.Color(16777215),this.scale=this.linewidth=1,this.dashSize=3,this.gapSize=1,this.vertexColors=!1,this.fog=!0,this.setValues(t)},e.LineDashedMaterial.prototype=Object.create(e.Material.prototype),e.LineDashedMaterial.prototype.clone=function(){var t=new e.LineDashedMaterial;return e.Material.prototype.clone.call(this,t),t.color.copy(this.color),t.linewidth=this.linewidth,t.scale=this.scale,t.dashSize=this.dashSize,t.gapSize=this.gapSize,t.vertexColors=this.vertexColors,t.fog=this.fog,t},e.MeshBasicMaterial=function(t){e.Material.call(this),this.color=new e.Color(16777215),this.envMap=this.specularMap=this.lightMap=this.map=null,this.combine=e.MultiplyOperation,this.reflectivity=1,this.refractionRatio=.98,this.fog=!0,this.shading=e.SmoothShading,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.vertexColors=e.NoColors,this.morphTargets=this.skinning=!1,this.setValues(t)},e.MeshBasicMaterial.prototype=Object.create(e.Material.prototype),e.MeshBasicMaterial.prototype.clone=function(){var t=new e.MeshBasicMaterial;return e.Material.prototype.clone.call(this,t),t.color.copy(this.color),t.map=this.map,t.lightMap=this.lightMap,t.specularMap=this.specularMap,t.envMap=this.envMap,t.combine=this.combine,t.reflectivity=this.reflectivity,t.refractionRatio=this.refractionRatio,t.fog=this.fog,t.shading=this.shading,t.wireframe=this.wireframe,t.wireframeLinewidth=this.wireframeLinewidth,t.wireframeLinecap=this.wireframeLinecap,t.wireframeLinejoin=this.wireframeLinejoin,t.vertexColors=this.vertexColors,t.skinning=this.skinning,t.morphTargets=this.morphTargets,t},e.MeshLambertMaterial=function(t){e.Material.call(this),this.color=new e.Color(16777215),this.ambient=new e.Color(16777215),this.emissive=new e.Color(0),this.wrapAround=!1,this.wrapRGB=new e.Vector3(1,1,1),this.envMap=this.specularMap=this.lightMap=this.map=null,this.combine=e.MultiplyOperation,this.reflectivity=1,this.refractionRatio=.98,this.fog=!0,this.shading=e.SmoothShading,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.vertexColors=e.NoColors,this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)},e.MeshLambertMaterial.prototype=Object.create(e.Material.prototype),e.MeshLambertMaterial.prototype.clone=function(){var t=new e.MeshLambertMaterial;return e.Material.prototype.clone.call(this,t),t.color.copy(this.color),t.ambient.copy(this.ambient),t.emissive.copy(this.emissive),t.wrapAround=this.wrapAround,t.wrapRGB.copy(this.wrapRGB),t.map=this.map,t.lightMap=this.lightMap,t.specularMap=this.specularMap,t.envMap=this.envMap,t.combine=this.combine,t.reflectivity=this.reflectivity,t.refractionRatio=this.refractionRatio,t.fog=this.fog,t.shading=this.shading,t.wireframe=this.wireframe,t.wireframeLinewidth=this.wireframeLinewidth,t.wireframeLinecap=this.wireframeLinecap,t.wireframeLinejoin=this.wireframeLinejoin,t.vertexColors=this.vertexColors,t.skinning=this.skinning,t.morphTargets=this.morphTargets,t.morphNormals=this.morphNormals,t},e.MeshPhongMaterial=function(t){e.Material.call(this),this.color=new e.Color(16777215),this.ambient=new e.Color(16777215),this.emissive=new e.Color(0),this.specular=new e.Color(1118481),this.shininess=30,this.metal=!1,this.perPixel=!0,this.wrapAround=!1,this.wrapRGB=new e.Vector3(1,1,1),this.bumpMap=this.lightMap=this.map=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new e.Vector2(1,1),this.envMap=this.specularMap=null,this.combine=e.MultiplyOperation,this.reflectivity=1,this.refractionRatio=.98,this.fog=!0,this.shading=e.SmoothShading,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.vertexColors=e.NoColors,this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)},e.MeshPhongMaterial.prototype=Object.create(e.Material.prototype),e.MeshPhongMaterial.prototype.clone=function(){var t=new e.MeshPhongMaterial;return e.Material.prototype.clone.call(this,t),t.color.copy(this.color),t.ambient.copy(this.ambient),t.emissive.copy(this.emissive),t.specular.copy(this.specular),t.shininess=this.shininess,t.metal=this.metal,t.perPixel=this.perPixel,t.wrapAround=this.wrapAround,t.wrapRGB.copy(this.wrapRGB),t.map=this.map,t.lightMap=this.lightMap,t.bumpMap=this.bumpMap,t.bumpScale=this.bumpScale,t.normalMap=this.normalMap,t.normalScale.copy(this.normalScale),t.specularMap=this.specularMap,t.envMap=this.envMap,t.combine=this.combine,t.reflectivity=this.reflectivity,t.refractionRatio=this.refractionRatio,t.fog=this.fog,t.shading=this.shading,t.wireframe=this.wireframe,t.wireframeLinewidth=this.wireframeLinewidth,t.wireframeLinecap=this.wireframeLinecap,t.wireframeLinejoin=this.wireframeLinejoin,t.vertexColors=this.vertexColors,t.skinning=this.skinning,t.morphTargets=this.morphTargets,t.morphNormals=this.morphNormals,t},e.MeshDepthMaterial=function(t){e.Material.call(this),this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(t)},e.MeshDepthMaterial.prototype=Object.create(e.Material.prototype),e.MeshDepthMaterial.prototype.clone=function(){var t=new e.MeshDepthMaterial;return e.Material.prototype.clone.call(this,t),t.wireframe=this.wireframe,t.wireframeLinewidth=this.wireframeLinewidth,t},e.MeshNormalMaterial=function(t){e.Material.call(this,t),this.shading=e.FlatShading,this.wireframe=!1,this.wireframeLinewidth=1,this.morphTargets=!1,this.setValues(t)},e.MeshNormalMaterial.prototype=Object.create(e.Material.prototype),e.MeshNormalMaterial.prototype.clone=function(){var t=new e.MeshNormalMaterial;return e.Material.prototype.clone.call(this,t),t.shading=this.shading,t.wireframe=this.wireframe,t.wireframeLinewidth=this.wireframeLinewidth,t},e.MeshFaceMaterial=function(e){this.materials=e instanceof Array?e:[]},e.MeshFaceMaterial.prototype.clone=function(){return new e.MeshFaceMaterial(this.materials.slice(0))},e.ParticleBasicMaterial=function(t){e.Material.call(this),this.color=new e.Color(16777215),this.map=null,this.size=1,this.sizeAttenuation=!0,this.vertexColors=!1,this.fog=!0,this.setValues(t)},e.ParticleBasicMaterial.prototype=Object.create(e.Material.prototype),e.ParticleBasicMaterial.prototype.clone=function(){var t=new e.ParticleBasicMaterial;return e.Material.prototype.clone.call(this,t),t.color.copy(this.color),t.map=this.map,t.size=this.size,t.sizeAttenuation=this.sizeAttenuation,t.vertexColors=this.vertexColors,t.fog=this.fog,t},e.ParticleCanvasMaterial=function(t){e.Material.call(this),this.color=new e.Color(16777215),this.program=function(){},this.setValues(t)},e.ParticleCanvasMaterial.prototype=Object.create(e.Material.prototype),e.ParticleCanvasMaterial.prototype.clone=function(){var t=new e.ParticleCanvasMaterial;return e.Material.prototype.clone.call(this,t),t.color.copy(this.color),t.program=this.program,t},e.ShaderMaterial=function(t){e.Material.call(this),this.vertexShader=this.fragmentShader="void main() {}",this.uniforms={},this.defines={},this.attributes=null,this.shading=e.SmoothShading,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.lights=this.fog=!1,this.vertexColors=e.NoColors,this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)},e.ShaderMaterial.prototype=Object.create(e.Material.prototype),e.ShaderMaterial.prototype.clone=function(){var t=new e.ShaderMaterial;return e.Material.prototype.clone.call(this,t),t.fragmentShader=this.fragmentShader,t.vertexShader=this.vertexShader,t.uniforms=e.UniformsUtils.clone(this.uniforms),t.attributes=this.attributes,t.defines=this.defines,t.shading=this.shading,t.wireframe=this.wireframe,t.wireframeLinewidth=this.wireframeLinewidth,t.fog=this.fog,t.lights=this.lights,t.vertexColors=this.vertexColors,t.skinning=this.skinning,t.morphTargets=this.morphTargets,t.morphNormals=this.morphNormals,t},e.SpriteMaterial=function(t){e.Material.call(this),this.color=new e.Color(16777215),this.map=new e.Texture,this.useScreenCoordinates=!0,this.depthTest=!this.useScreenCoordinates,this.sizeAttenuation=!this.useScreenCoordinates,this.scaleByViewport=!this.sizeAttenuation,this.alignment=e.SpriteAlignment.center.clone(),this.fog=!1,this.uvOffset=new e.Vector2(0,0),this.uvScale=new e.Vector2(1,1),this.setValues(t),t=t||{},void 0===t.depthTest&&(this.depthTest=!this.useScreenCoordinates),void 0===t.sizeAttenuation&&(this.sizeAttenuation=!this.useScreenCoordinates),void 0===t.scaleByViewport&&(this.scaleByViewport=!this.sizeAttenuation)},e.SpriteMaterial.prototype=Object.create(e.Material.prototype),e.SpriteMaterial.prototype.clone=function(){var t=new e.SpriteMaterial;return e.Material.prototype.clone.call(this,t),t.color.copy(this.color),t.map=this.map,t.useScreenCoordinates=this.useScreenCoordinates,t.sizeAttenuation=this.sizeAttenuation,t.scaleByViewport=this.scaleByViewport,t.alignment.copy(this.alignment),t.uvOffset.copy(this.uvOffset),t.uvScale.copy(this.uvScale),t.fog=this.fog,t},e.SpriteAlignment={},e.SpriteAlignment.topLeft=new e.Vector2(1,-1),e.SpriteAlignment.topCenter=new e.Vector2(0,-1),e.SpriteAlignment.topRight=new e.Vector2(-1,-1),e.SpriteAlignment.centerLeft=new e.Vector2(1,0),e.SpriteAlignment.center=new e.Vector2(0,0),e.SpriteAlignment.centerRight=new e.Vector2(-1,0),e.SpriteAlignment.bottomLeft=new e.Vector2(1,1),e.SpriteAlignment.bottomCenter=new e.Vector2(0,1),e.SpriteAlignment.bottomRight=new e.Vector2(-1,1),e.Texture=function(t,i,n,r,o,a,s,l,h){this.id=e.TextureIdCount++,this.name="",this.image=t,this.mipmaps=[],this.mapping=void 0!==i?i:new e.UVMapping,this.wrapS=void 0!==n?n:e.ClampToEdgeWrapping,this.wrapT=void 0!==r?r:e.ClampToEdgeWrapping,this.magFilter=void 0!==o?o:e.LinearFilter,this.minFilter=void 0!==a?a:e.LinearMipMapLinearFilter,this.anisotropy=void 0!==h?h:1,this.format=void 0!==s?s:e.RGBAFormat,this.type=void 0!==l?l:e.UnsignedByteType,this.offset=new e.Vector2(0,0),this.repeat=new e.Vector2(1,1),this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.needsUpdate=!1,this.onUpdate=null},e.Texture.prototype={constructor:e.Texture,addEventListener:e.EventDispatcher.prototype.addEventListener,hasEventListener:e.EventDispatcher.prototype.hasEventListener,removeEventListener:e.EventDispatcher.prototype.removeEventListener,dispatchEvent:e.EventDispatcher.prototype.dispatchEvent,clone:function(t){return void 0===t&&(t=new e.Texture),t.image=this.image,t.mipmaps=this.mipmaps.slice(0),t.mapping=this.mapping,t.wrapS=this.wrapS,t.wrapT=this.wrapT,t.magFilter=this.magFilter,t.minFilter=this.minFilter,t.anisotropy=this.anisotropy,t.format=this.format,t.type=this.type,t.offset.copy(this.offset),t.repeat.copy(this.repeat),t.generateMipmaps=this.generateMipmaps,t.premultiplyAlpha=this.premultiplyAlpha,t.flipY=this.flipY,t.unpackAlignment=this.unpackAlignment,t},dispose:function(){this.dispatchEvent({type:"dispose"})}},e.TextureIdCount=0,e.CompressedTexture=function(t,i,n,r,o,a,s,l,h,c,u){e.Texture.call(this,null,a,s,l,h,c,r,o,u),this.image={width:i,height:n},this.mipmaps=t,this.generateMipmaps=!1},e.CompressedTexture.prototype=Object.create(e.Texture.prototype),e.CompressedTexture.prototype.clone=function(){var t=new e.CompressedTexture;return e.Texture.prototype.clone.call(this,t),t},e.DataTexture=function(t,i,n,r,o,a,s,l,h,c,u){e.Texture.call(this,null,a,s,l,h,c,r,o,u),this.image={data:t,width:i,height:n}},e.DataTexture.prototype=Object.create(e.Texture.prototype),e.DataTexture.prototype.clone=function(){var t=new e.DataTexture;return e.Texture.prototype.clone.call(this,t),t},e.Particle=function(t){e.Object3D.call(this),this.material=t},e.Particle.prototype=Object.create(e.Object3D.prototype),e.Particle.prototype.clone=function(t){return void 0===t&&(t=new e.Particle(this.material)),e.Object3D.prototype.clone.call(this,t),t},e.ParticleSystem=function(t,i){e.Object3D.call(this),this.geometry=t,this.material=void 0!==i?i:new e.ParticleBasicMaterial({color:16777215*Math.random()}),this.sortParticles=!1,this.geometry&&null===this.geometry.boundingSphere&&this.geometry.computeBoundingSphere(),this.frustumCulled=!1},e.ParticleSystem.prototype=Object.create(e.Object3D.prototype),e.ParticleSystem.prototype.clone=function(t){return void 0===t&&(t=new e.ParticleSystem(this.geometry,this.material)),t.sortParticles=this.sortParticles,e.Object3D.prototype.clone.call(this,t),t},e.Line=function(t,i,n){e.Object3D.call(this),this.geometry=t,this.material=void 0!==i?i:new e.LineBasicMaterial({color:16777215*Math.random()}),this.type=void 0!==n?n:e.LineStrip,this.geometry&&(this.geometry.boundingSphere||this.geometry.computeBoundingSphere())},e.LineStrip=0,e.LinePieces=1,e.Line.prototype=Object.create(e.Object3D.prototype),e.Line.prototype.clone=function(t){return void 0===t&&(t=new e.Line(this.geometry,this.material,this.type)),e.Object3D.prototype.clone.call(this,t),t},e.Mesh=function(t,i){e.Object3D.call(this),this.material=this.geometry=null,this.setGeometry(t),this.setMaterial(i)},e.Mesh.prototype=Object.create(e.Object3D.prototype),e.Mesh.prototype.setGeometry=function(e){void 0!==e&&(this.geometry=e,null===this.geometry.boundingSphere&&this.geometry.computeBoundingSphere(),this.updateMorphTargets())},e.Mesh.prototype.setMaterial=function(t){this.material=void 0!==t?t:new e.MeshBasicMaterial({color:16777215*Math.random(),wireframe:!0})},e.Mesh.prototype.updateMorphTargets=function(){if(0<this.geometry.morphTargets.length){this.morphTargetBase=-1,this.morphTargetForcedOrder=[],this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var e=0,t=this.geometry.morphTargets.length;t>e;e++)this.morphTargetInfluences.push(0),this.morphTargetDictionary[this.geometry.morphTargets[e].name]=e}},e.Mesh.prototype.getMorphTargetIndexByName=function(e){return void 0!==this.morphTargetDictionary[e]?this.morphTargetDictionary[e]:(console.log("THREE.Mesh.getMorphTargetIndexByName: morph target "+e+" does not exist. Returning 0."),0)},e.Mesh.prototype.clone=function(t){return void 0===t&&(t=new e.Mesh(this.geometry,this.material)),e.Object3D.prototype.clone.call(this,t),t},e.Bone=function(t){e.Object3D.call(this),this.skin=t,this.skinMatrix=new e.Matrix4},e.Bone.prototype=Object.create(e.Object3D.prototype),e.Bone.prototype.update=function(e,t){this.matrixAutoUpdate&&(t|=this.updateMatrix()),(t||this.matrixWorldNeedsUpdate)&&(e?this.skinMatrix.multiplyMatrices(e,this.matrix):this.skinMatrix.copy(this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);var i,n=this.children.length;for(i=0;n>i;i++)this.children[i].update(this.skinMatrix,t)},e.SkinnedMesh=function(t,i,n){e.Mesh.call(this,t,i),this.useVertexTexture=void 0!==n?n:!0,this.identityMatrix=new e.Matrix4,this.bones=[],this.boneMatrices=[];var r,o,a;if(this.geometry&&void 0!==this.geometry.bones){for(t=0;t<this.geometry.bones.length;t++)n=this.geometry.bones[t],r=n.pos,o=n.rotq,a=n.scl,i=this.addBone(),i.name=n.name,i.position.set(r[0],r[1],r[2]),i.quaternion.set(o[0],o[1],o[2],o[3]),i.useQuaternion=!0,void 0!==a?i.scale.set(a[0],a[1],a[2]):i.scale.set(1,1,1);for(t=0;t<this.bones.length;t++)n=this.geometry.bones[t],i=this.bones[t],-1===n.parent?this.add(i):this.bones[n.parent].add(i);t=this.bones.length,this.useVertexTexture?(this.boneTextureHeight=this.boneTextureWidth=t=t>256?64:t>64?32:t>16?16:8,this.boneMatrices=new Float32Array(4*this.boneTextureWidth*this.boneTextureHeight),this.boneTexture=new e.DataTexture(this.boneMatrices,this.boneTextureWidth,this.boneTextureHeight,e.RGBAFormat,e.FloatType),this.boneTexture.minFilter=e.NearestFilter,this.boneTexture.magFilter=e.NearestFilter,this.boneTexture.generateMipmaps=!1,this.boneTexture.flipY=!1):this.boneMatrices=new Float32Array(16*t),this.pose()}},e.SkinnedMesh.prototype=Object.create(e.Mesh.prototype),e.SkinnedMesh.prototype.addBone=function(t){return void 0===t&&(t=new e.Bone(this)),this.bones.push(t),t},e.SkinnedMesh.prototype.updateMatrixWorld=function(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(this.parent?this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix):this.matrixWorld.copy(this.matrix),this.matrixWorldNeedsUpdate=!1);for(var t=0,i=this.children.length;i>t;t++){var n=this.children[t];n instanceof e.Bone?n.update(this.identityMatrix,!1):n.updateMatrixWorld(!0)}if(void 0==this.boneInverses)for(this.boneInverses=[],t=0,i=this.bones.length;i>t;t++)n=new e.Matrix4,n.getInverse(this.bones[t].skinMatrix),this.boneInverses.push(n);for(t=0,i=this.bones.length;i>t;t++)e.SkinnedMesh.offsetMatrix.multiplyMatrices(this.bones[t].skinMatrix,this.boneInverses[t]),e.SkinnedMesh.offsetMatrix.flattenToArrayOffset(this.boneMatrices,16*t);this.useVertexTexture&&(this.boneTexture.needsUpdate=!0)},e.SkinnedMesh.prototype.pose=function(){this.updateMatrixWorld(!0);for(var e=0;e<this.geometry.skinIndices.length;e++){var t=this.geometry.skinWeights[e],i=1/t.lengthManhattan();1/0!==i?t.multiplyScalar(i):t.set(1)}},e.SkinnedMesh.prototype.clone=function(t){return void 0===t&&(t=new e.SkinnedMesh(this.geometry,this.material,this.useVertexTexture)),e.Mesh.prototype.clone.call(this,t),t},e.SkinnedMesh.offsetMatrix=new e.Matrix4,e.MorphAnimMesh=function(t,i){e.Mesh.call(this,t,i),this.duration=1e3,this.mirroredLoop=!1,this.currentKeyframe=this.lastKeyframe=this.time=0,this.direction=1,this.directionBackwards=!1,this.setFrameRange(0,this.geometry.morphTargets.length-1)},e.MorphAnimMesh.prototype=Object.create(e.Mesh.prototype),e.MorphAnimMesh.prototype.setFrameRange=function(e,t){this.startKeyframe=e,this.endKeyframe=t,this.length=this.endKeyframe-this.startKeyframe+1},e.MorphAnimMesh.prototype.setDirectionForward=function(){this.direction=1,this.directionBackwards=!1},e.MorphAnimMesh.prototype.setDirectionBackward=function(){this.direction=-1,this.directionBackwards=!0},e.MorphAnimMesh.prototype.parseAnimations=function(){var e=this.geometry;e.animations||(e.animations={});for(var t,i=e.animations,n=/([a-z]+)(\d+)/,r=0,o=e.morphTargets.length;o>r;r++){var a=e.morphTargets[r].name.match(n);if(a&&1<a.length){a=a[1],i[a]||(i[a]={start:1/0,end:-1/0});var s=i[a];r<s.start&&(s.start=r),r>s.end&&(s.end=r),t||(t=a)}}e.firstAnimation=t},e.MorphAnimMesh.prototype.setAnimationLabel=function(e,t,i){this.geometry.animations||(this.geometry.animations={}),this.geometry.animations[e]={start:t,end:i}},e.MorphAnimMesh.prototype.playAnimation=function(e,t){var i=this.geometry.animations[e];i?(this.setFrameRange(i.start,i.end),this.duration=1e3*((i.end-i.start)/t),this.time=0):console.warn("animation["+e+"] undefined")},e.MorphAnimMesh.prototype.updateAnimation=function(t){var i=this.duration/this.length;this.time+=this.direction*t,this.mirroredLoop?(this.time>this.duration||0>this.time)&&(this.direction*=-1,this.time>this.duration&&(this.time=this.duration,this.directionBackwards=!0),0>this.time&&(this.time=0,this.directionBackwards=!1)):(this.time%=this.duration,0>this.time&&(this.time+=this.duration)),t=this.startKeyframe+e.Math.clamp(Math.floor(this.time/i),0,this.length-1),t!==this.currentKeyframe&&(this.morphTargetInfluences[this.lastKeyframe]=0,this.morphTargetInfluences[this.currentKeyframe]=1,this.morphTargetInfluences[t]=0,this.lastKeyframe=this.currentKeyframe,this.currentKeyframe=t),i=this.time%i/i,this.directionBackwards&&(i=1-i),this.morphTargetInfluences[this.currentKeyframe]=i,this.morphTargetInfluences[this.lastKeyframe]=1-i},e.MorphAnimMesh.prototype.clone=function(t){return void 0===t&&(t=new e.MorphAnimMesh(this.geometry,this.material)),t.duration=this.duration,t.mirroredLoop=this.mirroredLoop,t.time=this.time,t.lastKeyframe=this.lastKeyframe,t.currentKeyframe=this.currentKeyframe,t.direction=this.direction,t.directionBackwards=this.directionBackwards,e.Mesh.prototype.clone.call(this,t),t},e.Ribbon=function(t,i){e.Object3D.call(this),this.geometry=t,this.material=i},e.Ribbon.prototype=Object.create(e.Object3D.prototype),e.Ribbon.prototype.clone=function(t){return void 0===t&&(t=new e.Ribbon(this.geometry,this.material)),e.Object3D.prototype.clone.call(this,t),t},e.LOD=function(){e.Object3D.call(this),this.objects=[]},e.LOD.prototype=Object.create(e.Object3D.prototype),e.LOD.prototype.addLevel=function(e,t){void 0===t&&(t=0);for(var t=Math.abs(t),i=0;i<this.objects.length&&!(t<this.objects[i].distance);i++);this.objects.splice(i,0,{distance:t,object:e}),this.add(e)},e.LOD.prototype.getObjectForDistance=function(e){for(var t=1,i=this.objects.length;i>t&&!(e<this.objects[t].distance);t++);return this.objects[t-1].object},e.LOD.prototype.update=function(){var t=new e.Vector3,i=new e.Vector3;return function(e){if(1<this.objects.length){t.getPositionFromMatrix(e.matrixWorld),i.getPositionFromMatrix(this.matrixWorld),e=t.distanceTo(i),this.objects[0].object.visible=!0; for(var n=1,r=this.objects.length;r>n&&e>=this.objects[n].distance;n++)this.objects[n-1].object.visible=!1,this.objects[n].object.visible=!0;for(;r>n;n++)this.objects[n].object.visible=!1}}}(),e.LOD.prototype.clone=function(){},e.Sprite=function(t){e.Object3D.call(this),this.material=void 0!==t?t:new e.SpriteMaterial,this.rotation3d=this.rotation,this.rotation=0},e.Sprite.prototype=Object.create(e.Object3D.prototype),e.Sprite.prototype.updateMatrix=function(){this.rotation3d.set(0,0,this.rotation),this.quaternion.setFromEuler(this.rotation3d,this.eulerOrder),this.matrix.makeFromPositionQuaternionScale(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},e.Sprite.prototype.clone=function(t){return void 0===t&&(t=new e.Sprite(this.material)),e.Object3D.prototype.clone.call(this,t),t},e.Scene=function(){e.Object3D.call(this),this.overrideMaterial=this.fog=null,this.autoUpdate=!0,this.matrixAutoUpdate=!1,this.__objects=[],this.__lights=[],this.__objectsAdded=[],this.__objectsRemoved=[]},e.Scene.prototype=Object.create(e.Object3D.prototype),e.Scene.prototype.__addObject=function(t){if(t instanceof e.Light)-1===this.__lights.indexOf(t)&&this.__lights.push(t),t.target&&void 0===t.target.parent&&this.add(t.target);else if(!(t instanceof e.Camera||t instanceof e.Bone)&&-1===this.__objects.indexOf(t)){this.__objects.push(t),this.__objectsAdded.push(t);var i=this.__objectsRemoved.indexOf(t);-1!==i&&this.__objectsRemoved.splice(i,1)}for(i=0;i<t.children.length;i++)this.__addObject(t.children[i])},e.Scene.prototype.__removeObject=function(t){if(t instanceof e.Light){var i=this.__lights.indexOf(t);-1!==i&&this.__lights.splice(i,1)}else t instanceof e.Camera||(i=this.__objects.indexOf(t),-1!==i&&(this.__objects.splice(i,1),this.__objectsRemoved.push(t),i=this.__objectsAdded.indexOf(t),-1!==i&&this.__objectsAdded.splice(i,1)));for(i=0;i<t.children.length;i++)this.__removeObject(t.children[i])},e.Fog=function(t,i,n){this.name="",this.color=new e.Color(t),this.near=void 0!==i?i:1,this.far=void 0!==n?n:1e3},e.Fog.prototype.clone=function(){return new e.Fog(this.color.getHex(),this.near,this.far)},e.FogExp2=function(t,i){this.name="",this.color=new e.Color(t),this.density=void 0!==i?i:25e-5},e.FogExp2.prototype.clone=function(){return new e.FogExp2(this.color.getHex(),this.density)},e.CanvasRenderer=function(t){function i(e){it!==e&&(it=J.globalAlpha=e)}function n(t){nt!==t&&(t===e.NormalBlending?J.globalCompositeOperation="source-over":t===e.AdditiveBlending?J.globalCompositeOperation="lighter":t===e.SubtractiveBlending&&(J.globalCompositeOperation="darker"),nt=t)}function r(e){at!==e&&(at=J.lineWidth=e)}function o(e){st!==e&&(st=J.lineCap=e)}function a(e){lt!==e&&(lt=J.lineJoin=e)}function s(e){rt!==e&&(rt=J.strokeStyle=e)}function l(e){ot!==e&&(ot=J.fillStyle=e)}function h(e,t){(ht!==e||ct!==t)&&(J.setLineDash([e,t]),ht=e,ct=t)}console.log("THREE.CanvasRenderer",e.REVISION);var c,u,p,f,d,m,g,v,y,b,x,w,_,S,M,T,C,A,E,P,k,R,L,D,F,N,G,V,O,j,U,I,z,B,H,q,W,X,Y,K=e.Math.smoothstep,t=t||{},$=this,Q=new e.Projector,Z=void 0!==t.canvas?t.canvas:document.createElement("canvas"),J=Z.getContext("2d"),et=new e.Color(0),tt=0,it=1,nt=0,rt=null,ot=null,at=null,st=null,lt=null,ht=null,ct=0,ut=new e.RenderableVertex,pt=new e.RenderableVertex,ft=new e.Color,dt=new e.Color,mt=new e.Color,gt=new e.Color,vt=new e.Color,yt=new e.Color,bt=new e.Color,xt=new e.Color,wt={},_t={},St=new e.Box2,Mt=new e.Box2,Tt=new e.Box2,Ct=new e.Color,At=new e.Color,Et=new e.Color,Pt=new e.Vector3,kt=16;B=document.createElement("canvas"),B.width=B.height=2,H=B.getContext("2d"),H.fillStyle="rgba(0,0,0,1)",H.fillRect(0,0,2,2),q=H.getImageData(0,0,2,2),W=q.data,X=document.createElement("canvas"),X.width=X.height=kt,Y=X.getContext("2d"),Y.translate(-kt/2,-kt/2),Y.scale(kt,kt),kt--,void 0===J.setLineDash&&(J.setLineDash=void 0!==J.mozDash?function(e){J.mozDash=null!==e[0]?e:null}:function(){}),this.domElement=Z,this.devicePixelRatio=void 0!==t.devicePixelRatio?t.devicePixelRatio:void 0!==window.devicePixelRatio?window.devicePixelRatio:1,this.sortElements=this.sortObjects=this.autoClear=!0,this.info={render:{vertices:0,faces:0}},this.supportsVertexTextures=function(){},this.setFaceCulling=function(){},this.setSize=function(t,i,n){f=t*this.devicePixelRatio,d=i*this.devicePixelRatio,m=Math.floor(f/2),g=Math.floor(d/2),Z.width=f,Z.height=d,1!==this.devicePixelRatio&&!1!==n&&(Z.style.width=t+"px",Z.style.height=i+"px"),St.set(new e.Vector2(-m,-g),new e.Vector2(m,g)),Mt.set(new e.Vector2(-m,-g),new e.Vector2(m,g)),it=1,nt=0,lt=st=at=ot=rt=null},this.setClearColor=function(t,i){et.set(t),tt=void 0!==i?i:1,Mt.set(new e.Vector2(-m,-g),new e.Vector2(m,g))},this.setClearColorHex=function(e,t){console.warn("DEPRECATED: .setClearColorHex() is being removed. Use .setClearColor() instead."),this.setClearColor(e,t)},this.getMaxAnisotropy=function(){return 0},this.clear=function(){J.setTransform(1,0,0,-1,m,g),!1===Mt.empty()&&(Mt.intersect(St),Mt.expandByScalar(2),1>tt&&J.clearRect(0|Mt.min.x,0|Mt.min.y,Mt.max.x-Mt.min.x|0,Mt.max.y-Mt.min.y|0),tt>0&&(n(e.NormalBlending),i(1),l("rgba("+Math.floor(255*et.r)+","+Math.floor(255*et.g)+","+Math.floor(255*et.b)+","+tt+")"),J.fillRect(0|Mt.min.x,0|Mt.min.y,Mt.max.x-Mt.min.x|0,Mt.max.y-Mt.min.y|0)),Mt.makeEmpty())},this.render=function(t,f){function d(t,i,n){for(var r=0,o=p.length;o>r;r++){var a=p[r];if(xt.copy(a.color),a instanceof e.DirectionalLight){var s=Pt.getPositionFromMatrix(a.matrixWorld).normalize(),l=i.dot(s);0>=l||(l*=a.intensity,n.add(xt.multiplyScalar(l)))}else a instanceof e.PointLight&&(s=Pt.getPositionFromMatrix(a.matrixWorld),l=i.dot(Pt.subVectors(s,t).normalize()),0>=l||(l*=0==a.distance?1:1-Math.min(t.distanceTo(s)/a.distance,1),0!=l&&(l*=a.intensity,n.add(xt.multiplyScalar(l)))))}}function Z(t,r,o,a,s,l,h,c){$.info.render.vertices+=3,$.info.render.faces++,i(c.opacity),n(c.blending),w=t.positionScreen.x,_=t.positionScreen.y,S=r.positionScreen.x,M=r.positionScreen.y,T=o.positionScreen.x,C=o.positionScreen.y,et(w,_,S,M,T,C),(c instanceof e.MeshLambertMaterial||c instanceof e.MeshPhongMaterial)&&null===c.map?(yt.copy(c.color),bt.copy(c.emissive),c.vertexColors===e.FaceColors&&yt.multiply(h.color),!1===c.wireframe&&c.shading==e.SmoothShading&&3==h.vertexNormalsLength?(dt.copy(Ct),mt.copy(Ct),gt.copy(Ct),d(h.v1.positionWorld,h.vertexNormalsModel[0],dt),d(h.v2.positionWorld,h.vertexNormalsModel[1],mt),d(h.v3.positionWorld,h.vertexNormalsModel[2],gt),dt.multiply(yt).add(bt),mt.multiply(yt).add(bt),gt.multiply(yt).add(bt),vt.addColors(mt,gt).multiplyScalar(.5),N=at(dt,mt,gt,vt),ot(w,_,S,M,T,C,0,0,1,0,0,1,N)):(ft.copy(Ct),d(h.centroidModel,h.normalModel,ft),ft.multiply(yt).add(bt),!0===c.wireframe?it(ft,c.wireframeLinewidth,c.wireframeLinecap,c.wireframeLinejoin):nt(ft))):c instanceof e.MeshBasicMaterial||c instanceof e.MeshLambertMaterial||c instanceof e.MeshPhongMaterial?null!==c.map?c.map.mapping instanceof e.UVMapping&&(G=h.uvs[0],rt(w,_,S,M,T,C,G[a].x,G[a].y,G[s].x,G[s].y,G[l].x,G[l].y,c.map)):null!==c.envMap?c.envMap.mapping instanceof e.SphericalReflectionMapping&&(Pt.copy(h.vertexNormalsModelView[a]),V=.5*Pt.x+.5,O=.5*Pt.y+.5,Pt.copy(h.vertexNormalsModelView[s]),j=.5*Pt.x+.5,U=.5*Pt.y+.5,Pt.copy(h.vertexNormalsModelView[l]),I=.5*Pt.x+.5,z=.5*Pt.y+.5,rt(w,_,S,M,T,C,V,O,j,U,I,z,c.envMap)):(ft.copy(c.color),c.vertexColors===e.FaceColors&&ft.multiply(h.color),!0===c.wireframe?it(ft,c.wireframeLinewidth,c.wireframeLinecap,c.wireframeLinejoin):nt(ft)):c instanceof e.MeshDepthMaterial?(D=f.near,F=f.far,dt.r=dt.g=dt.b=1-K(t.positionScreen.z*t.positionScreen.w,D,F),mt.r=mt.g=mt.b=1-K(r.positionScreen.z*r.positionScreen.w,D,F),gt.r=gt.g=gt.b=1-K(o.positionScreen.z*o.positionScreen.w,D,F),vt.addColors(mt,gt).multiplyScalar(.5),N=at(dt,mt,gt,vt),ot(w,_,S,M,T,C,0,0,1,0,0,1,N)):c instanceof e.MeshNormalMaterial&&(c.shading==e.FlatShading?(t=h.normalModelView,ft.setRGB(t.x,t.y,t.z).multiplyScalar(.5).addScalar(.5),!0===c.wireframe?it(ft,c.wireframeLinewidth,c.wireframeLinecap,c.wireframeLinejoin):nt(ft)):c.shading==e.SmoothShading&&(t=h.vertexNormalsModelView[a],dt.setRGB(t.x,t.y,t.z).multiplyScalar(.5).addScalar(.5),t=h.vertexNormalsModelView[s],mt.setRGB(t.x,t.y,t.z).multiplyScalar(.5).addScalar(.5),t=h.vertexNormalsModelView[l],gt.setRGB(t.x,t.y,t.z).multiplyScalar(.5).addScalar(.5),vt.addColors(mt,gt).multiplyScalar(.5),N=at(dt,mt,gt,vt),ot(w,_,S,M,T,C,0,0,1,0,0,1,N)))}function et(e,t,i,n,r,o){J.beginPath(),J.moveTo(e,t),J.lineTo(i,n),J.lineTo(r,o),J.closePath()}function tt(e,t,i,n,r,o,a,s){J.beginPath(),J.moveTo(e,t),J.lineTo(i,n),J.lineTo(r,o),J.lineTo(a,s),J.closePath()}function it(e,t,i,n){r(t),o(i),a(n),s(e.getStyle()),J.stroke(),Tt.expandByScalar(2*t)}function nt(e){l(e.getStyle()),J.fill()}function rt(t,i,n,r,o,a,s,h,c,u,p,f,d){if(!(d instanceof e.DataTexture||void 0===d.image||0==d.image.width)){if(!0===d.needsUpdate){var m=d.wrapS==e.RepeatWrapping,g=d.wrapT==e.RepeatWrapping;wt[d.id]=J.createPattern(d.image,!0===m&&!0===g?"repeat":!0===m&&!1===g?"repeat-x":!1===m&&!0===g?"repeat-y":"no-repeat"),d.needsUpdate=!1}l(void 0===wt[d.id]?"rgba(0,0,0,1)":wt[d.id]);var m=d.offset.x/d.repeat.x,g=d.offset.y/d.repeat.y,v=d.image.width*d.repeat.x,y=d.image.height*d.repeat.y,s=(s+m)*v,h=(1-h+g)*y,n=n-t,r=r-i,o=o-t,a=a-i,c=(c+m)*v-s,u=(1-u+g)*y-h,p=(p+m)*v-s,f=(1-f+g)*y-h,m=c*f-p*u;0===m?(void 0===_t[d.id]&&(i=document.createElement("canvas"),i.width=d.image.width,i.height=d.image.height,i=i.getContext("2d"),i.drawImage(d.image,0,0),_t[d.id]=i.getImageData(0,0,d.image.width,d.image.height).data),i=_t[d.id],s=4*(Math.floor(s)+Math.floor(h)*d.image.width),ft.setRGB(i[s]/255,i[s+1]/255,i[s+2]/255),nt(ft)):(m=1/m,d=(f*n-u*o)*m,u=(f*r-u*a)*m,n=(c*o-p*n)*m,r=(c*a-p*r)*m,t=t-d*s-n*h,s=i-u*s-r*h,J.save(),J.transform(d,u,n,r,t,s),J.fill(),J.restore())}}function ot(e,t,i,n,r,o,a,s,l,h,c,u,p){var f,d;f=p.width-1,d=p.height-1,a*=f,s*=d,i-=e,n-=t,r-=e,o-=t,l=l*f-a,h=h*d-s,c=c*f-a,u=u*d-s,d=1/(l*u-c*h),f=(u*i-h*r)*d,h=(u*n-h*o)*d,i=(l*r-c*i)*d,n=(l*o-c*n)*d,e=e-f*a-i*s,t=t-h*a-n*s,J.save(),J.transform(f,h,i,n,e,t),J.clip(),J.drawImage(p,0,0),J.restore()}function at(e,t,i,n){return W[0]=255*e.r|0,W[1]=255*e.g|0,W[2]=255*e.b|0,W[4]=255*t.r|0,W[5]=255*t.g|0,W[6]=255*t.b|0,W[8]=255*i.r|0,W[9]=255*i.g|0,W[10]=255*i.b|0,W[12]=255*n.r|0,W[13]=255*n.g|0,W[14]=255*n.b|0,H.putImageData(q,0,0),Y.drawImage(B,0,0),X}function st(e,t){var i=t.x-e.x,n=t.y-e.y,r=i*i+n*n;0!==r&&(r=1/Math.sqrt(r),i*=r,n*=r,t.x+=i,t.y+=n,e.x-=i,e.y-=n)}if(!1==f instanceof e.Camera)console.error("THREE.CanvasRenderer.render: camera is not an instance of THREE.Camera.");else{!0===this.autoClear&&this.clear(),J.setTransform(1,0,0,-1,m,g),$.info.render.vertices=0,$.info.render.faces=0,c=Q.projectScene(t,f,this.sortObjects,this.sortElements),u=c.elements,p=c.lights,Ct.setRGB(0,0,0),At.setRGB(0,0,0),Et.setRGB(0,0,0);for(var lt=0,ht=p.length;ht>lt;lt++){var ct=p[lt],kt=ct.color;ct instanceof e.AmbientLight?Ct.add(kt):ct instanceof e.DirectionalLight?At.add(kt):ct instanceof e.PointLight&&Et.add(kt)}for(lt=0,ht=u.length;ht>lt;lt++){var Rt=u[lt],ct=Rt.material;if(void 0!==ct&&!1!==ct.visible){if(Tt.makeEmpty(),Rt instanceof e.RenderableParticle){v=Rt,v.x*=m,v.y*=g,kt=v,i(ct.opacity),n(ct.blending);var Lt=void 0,Dt=void 0,Ft=void 0,Nt=void 0,Gt=void 0,Vt=void 0,Ot=void 0;ct instanceof e.ParticleBasicMaterial?null===ct.map?(Ft=Rt.object.scale.x,Nt=Rt.object.scale.y,Ft*=Rt.scale.x*m,Nt*=Rt.scale.y*g,Tt.min.set(kt.x-Ft,kt.y-Nt),Tt.max.set(kt.x+Ft,kt.y+Nt),!1===St.isIntersectionBox(Tt)?Tt.makeEmpty():(l(ct.color.getStyle()),J.save(),J.translate(kt.x,kt.y),J.rotate(-Rt.rotation),J.scale(Ft,Nt),J.fillRect(-1,-1,2,2),J.restore())):(Gt=ct.map.image,Vt=Gt.width>>1,Ot=Gt.height>>1,Ft=Rt.scale.x*m,Nt=Rt.scale.y*g,Lt=Ft*Vt,Dt=Nt*Ot,Tt.min.set(kt.x-Lt,kt.y-Dt),Tt.max.set(kt.x+Lt,kt.y+Dt),!1===St.isIntersectionBox(Tt)?Tt.makeEmpty():(J.save(),J.translate(kt.x,kt.y),J.rotate(-Rt.rotation),J.scale(Ft,-Nt),J.translate(-Vt,-Ot),J.drawImage(Gt,0,0),J.restore())):ct instanceof e.ParticleCanvasMaterial&&(Lt=Rt.scale.x*m,Dt=Rt.scale.y*g,Tt.min.set(kt.x-Lt,kt.y-Dt),Tt.max.set(kt.x+Lt,kt.y+Dt),!1===St.isIntersectionBox(Tt)?Tt.makeEmpty():(s(ct.color.getStyle()),l(ct.color.getStyle()),J.save(),J.translate(kt.x,kt.y),J.rotate(-Rt.rotation),J.scale(Lt,Dt),ct.program(J),J.restore()))}else if(Rt instanceof e.RenderableLine){if(v=Rt.v1,y=Rt.v2,v.positionScreen.x*=m,v.positionScreen.y*=g,y.positionScreen.x*=m,y.positionScreen.y*=g,Tt.setFromPoints([v.positionScreen,y.positionScreen]),!0===St.isIntersectionBox(Tt))if(kt=v,Lt=y,i(ct.opacity),n(ct.blending),J.beginPath(),J.moveTo(kt.positionScreen.x,kt.positionScreen.y),J.lineTo(Lt.positionScreen.x,Lt.positionScreen.y),ct instanceof e.LineBasicMaterial){if(r(ct.linewidth),o(ct.linecap),a(ct.linejoin),ct.vertexColors!==e.VertexColors)s(ct.color.getStyle());else if(Dt=Rt.vertexColors[0].getStyle(),Rt=Rt.vertexColors[1].getStyle(),Dt===Rt)s(Dt);else{try{var jt=J.createLinearGradient(kt.positionScreen.x,kt.positionScreen.y,Lt.positionScreen.x,Lt.positionScreen.y);jt.addColorStop(0,Dt),jt.addColorStop(1,Rt)}catch(Ut){jt=Dt}s(jt)}J.stroke(),Tt.expandByScalar(2*ct.linewidth)}else ct instanceof e.LineDashedMaterial&&(r(ct.linewidth),o(ct.linecap),a(ct.linejoin),s(ct.color.getStyle()),h(ct.dashSize,ct.gapSize),J.stroke(),Tt.expandByScalar(2*ct.linewidth),h(null,null))}else if(Rt instanceof e.RenderableFace3){if(v=Rt.v1,y=Rt.v2,b=Rt.v3,-1>v.positionScreen.z||1<v.positionScreen.z)continue;if(-1>y.positionScreen.z||1<y.positionScreen.z)continue;if(-1>b.positionScreen.z||1<b.positionScreen.z)continue;v.positionScreen.x*=m,v.positionScreen.y*=g,y.positionScreen.x*=m,y.positionScreen.y*=g,b.positionScreen.x*=m,b.positionScreen.y*=g,!0===ct.overdraw&&(st(v.positionScreen,y.positionScreen),st(y.positionScreen,b.positionScreen),st(b.positionScreen,v.positionScreen)),Tt.setFromPoints([v.positionScreen,y.positionScreen,b.positionScreen]),!0===St.isIntersectionBox(Tt)&&Z(v,y,b,0,1,2,Rt,ct)}else if(Rt instanceof e.RenderableFace4){if(v=Rt.v1,y=Rt.v2,b=Rt.v3,x=Rt.v4,-1>v.positionScreen.z||1<v.positionScreen.z)continue;if(-1>y.positionScreen.z||1<y.positionScreen.z)continue;if(-1>b.positionScreen.z||1<b.positionScreen.z)continue;if(-1>x.positionScreen.z||1<x.positionScreen.z)continue;v.positionScreen.x*=m,v.positionScreen.y*=g,y.positionScreen.x*=m,y.positionScreen.y*=g,b.positionScreen.x*=m,b.positionScreen.y*=g,x.positionScreen.x*=m,x.positionScreen.y*=g,ut.positionScreen.copy(y.positionScreen),pt.positionScreen.copy(x.positionScreen),!0===ct.overdraw&&(st(v.positionScreen,y.positionScreen),st(y.positionScreen,x.positionScreen),st(x.positionScreen,v.positionScreen),st(b.positionScreen,ut.positionScreen),st(b.positionScreen,pt.positionScreen)),Tt.setFromPoints([v.positionScreen,y.positionScreen,b.positionScreen,x.positionScreen]),!0===St.isIntersectionBox(Tt)&&(kt=v,Lt=y,Dt=b,Ft=x,Nt=ut,Gt=pt,$.info.render.vertices+=4,$.info.render.faces++,i(ct.opacity),n(ct.blending),void 0!==ct.map&&null!==ct.map||void 0!==ct.envMap&&null!==ct.envMap?(Z(kt,Lt,Ft,0,1,3,Rt,ct),Z(Nt,Dt,Gt,1,2,3,Rt,ct)):(w=kt.positionScreen.x,_=kt.positionScreen.y,S=Lt.positionScreen.x,M=Lt.positionScreen.y,T=Dt.positionScreen.x,C=Dt.positionScreen.y,A=Ft.positionScreen.x,E=Ft.positionScreen.y,P=Nt.positionScreen.x,k=Nt.positionScreen.y,R=Gt.positionScreen.x,L=Gt.positionScreen.y,ct instanceof e.MeshLambertMaterial||ct instanceof e.MeshPhongMaterial?(yt.copy(ct.color),bt.copy(ct.emissive),ct.vertexColors===e.FaceColors&&yt.multiply(Rt.color),!1===ct.wireframe&&ct.shading==e.SmoothShading&&4==Rt.vertexNormalsLength?(dt.copy(Ct),mt.copy(Ct),gt.copy(Ct),vt.copy(Ct),d(Rt.v1.positionWorld,Rt.vertexNormalsModel[0],dt),d(Rt.v2.positionWorld,Rt.vertexNormalsModel[1],mt),d(Rt.v4.positionWorld,Rt.vertexNormalsModel[3],gt),d(Rt.v3.positionWorld,Rt.vertexNormalsModel[2],vt),dt.multiply(yt).add(bt),mt.multiply(yt).add(bt),gt.multiply(yt).add(bt),vt.multiply(yt).add(bt),N=at(dt,mt,gt,vt),et(w,_,S,M,A,E),ot(w,_,S,M,A,E,0,0,1,0,0,1,N),et(P,k,T,C,R,L),ot(P,k,T,C,R,L,1,0,1,1,0,1,N)):(ft.copy(Ct),d(Rt.centroidModel,Rt.normalModel,ft),ft.multiply(yt).add(bt),tt(w,_,S,M,T,C,A,E),!0===ct.wireframe?it(ft,ct.wireframeLinewidth,ct.wireframeLinecap,ct.wireframeLinejoin):nt(ft))):ct instanceof e.MeshBasicMaterial?(ft.copy(ct.color),ct.vertexColors===e.FaceColors&&ft.multiply(Rt.color),tt(w,_,S,M,T,C,A,E),!0===ct.wireframe?it(ft,ct.wireframeLinewidth,ct.wireframeLinecap,ct.wireframeLinejoin):nt(ft)):ct instanceof e.MeshNormalMaterial?(kt=void 0,ct.shading==e.FlatShading?(kt=Rt.normalModelView,ft.setRGB(kt.x,kt.y,kt.z).multiplyScalar(.5).addScalar(.5),tt(w,_,S,M,T,C,A,E),!0===ct.wireframe?it(ft,ct.wireframeLinewidth,ct.wireframeLinecap,ct.wireframeLinejoin):nt(ft)):ct.shading==e.SmoothShading&&(kt=Rt.vertexNormalsModelView[0],dt.setRGB(kt.x,kt.y,kt.z).multiplyScalar(.5).addScalar(.5),kt=Rt.vertexNormalsModelView[1],mt.setRGB(kt.x,kt.y,kt.z).multiplyScalar(.5).addScalar(.5),kt=Rt.vertexNormalsModelView[3],gt.setRGB(kt.x,kt.y,kt.z).multiplyScalar(.5).addScalar(.5),kt=Rt.vertexNormalsModelView[2],vt.setRGB(kt.x,kt.y,kt.z).multiplyScalar(.5).addScalar(.5),N=at(dt,mt,gt,vt),et(w,_,S,M,A,E),ot(w,_,S,M,A,E,0,0,1,0,0,1,N),et(P,k,T,C,R,L),ot(P,k,T,C,R,L,1,0,1,1,0,1,N))):ct instanceof e.MeshDepthMaterial&&(D=f.near,F=f.far,dt.r=dt.g=dt.b=1-K(kt.positionScreen.z*kt.positionScreen.w,D,F),mt.r=mt.g=mt.b=1-K(Lt.positionScreen.z*Lt.positionScreen.w,D,F),gt.r=gt.g=gt.b=1-K(Ft.positionScreen.z*Ft.positionScreen.w,D,F),vt.r=vt.g=vt.b=1-K(Dt.positionScreen.z*Dt.positionScreen.w,D,F),N=at(dt,mt,gt,vt),et(w,_,S,M,A,E),ot(w,_,S,M,A,E,0,0,1,0,0,1,N),et(P,k,T,C,R,L),ot(P,k,T,C,R,L,1,0,1,1,0,1,N))))}Mt.union(Tt)}}J.setTransform(1,0,0,1,0,0)}}},e.ShaderChunk={fog_pars_fragment:"#ifdef USE_FOG\nuniform vec3 fogColor;\n#ifdef FOG_EXP2\nuniform float fogDensity;\n#else\nuniform float fogNear;\nuniform float fogFar;\n#endif\n#endif",fog_fragment:"#ifdef USE_FOG\nfloat depth = gl_FragCoord.z / gl_FragCoord.w;\n#ifdef FOG_EXP2\nconst float LOG2 = 1.442695;\nfloat fogFactor = exp2( - fogDensity * fogDensity * depth * depth * LOG2 );\nfogFactor = 1.0 - clamp( fogFactor, 0.0, 1.0 );\n#else\nfloat fogFactor = smoothstep( fogNear, fogFar, depth );\n#endif\ngl_FragColor = mix( gl_FragColor, vec4( fogColor, gl_FragColor.w ), fogFactor );\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\nuniform float reflectivity;\nuniform samplerCube envMap;\nuniform float flipEnvMap;\nuniform int combine;\n#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\nuniform bool useRefract;\nuniform float refractionRatio;\n#else\nvarying vec3 vReflect;\n#endif\n#endif",envmap_fragment:"#ifdef USE_ENVMAP\nvec3 reflectVec;\n#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\nvec3 cameraToVertex = normalize( vWorldPosition - cameraPosition );\nif ( useRefract ) {\nreflectVec = refract( cameraToVertex, normal, refractionRatio );\n} else { \nreflectVec = reflect( cameraToVertex, normal );\n}\n#else\nreflectVec = vReflect;\n#endif\n#ifdef DOUBLE_SIDED\nfloat flipNormal = ( -1.0 + 2.0 * float( gl_FrontFacing ) );\nvec4 cubeColor = textureCube( envMap, flipNormal * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n#else\nvec4 cubeColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n#endif\n#ifdef GAMMA_INPUT\ncubeColor.xyz *= cubeColor.xyz;\n#endif\nif ( combine == 1 ) {\ngl_FragColor.xyz = mix( gl_FragColor.xyz, cubeColor.xyz, specularStrength * reflectivity );\n} else if ( combine == 2 ) {\ngl_FragColor.xyz += cubeColor.xyz * specularStrength * reflectivity;\n} else {\ngl_FragColor.xyz = mix( gl_FragColor.xyz, gl_FragColor.xyz * cubeColor.xyz, specularStrength * reflectivity );\n}\n#endif",envmap_pars_vertex:"#if defined( USE_ENVMAP ) && ! defined( USE_BUMPMAP ) && ! defined( USE_NORMALMAP )\nvarying vec3 vReflect;\nuniform float refractionRatio;\nuniform bool useRefract;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( PHONG ) || defined( LAMBERT ) || defined ( USE_SHADOWMAP )\n#ifdef USE_SKINNING\nvec4 worldPosition = modelMatrix * skinned;\n#endif\n#if defined( USE_MORPHTARGETS ) && ! defined( USE_SKINNING )\nvec4 worldPosition = modelMatrix * vec4( morphed, 1.0 );\n#endif\n#if ! defined( USE_MORPHTARGETS ) && ! defined( USE_SKINNING )\nvec4 worldPosition = modelMatrix * vec4( position, 1.0 );\n#endif\n#endif",envmap_vertex:"#if defined( USE_ENVMAP ) && ! defined( USE_BUMPMAP ) && ! defined( USE_NORMALMAP )\nvec3 worldNormal = mat3( modelMatrix[ 0 ].xyz, modelMatrix[ 1 ].xyz, modelMatrix[ 2 ].xyz ) * objectNormal;\nworldNormal = normalize( worldNormal );\nvec3 cameraToVertex = normalize( worldPosition.xyz - cameraPosition );\nif ( useRefract ) {\nvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n} else {\nvReflect = reflect( cameraToVertex, worldNormal );\n}\n#endif",map_particle_pars_fragment:"#ifdef USE_MAP\nuniform sampler2D map;\n#endif",map_particle_fragment:"#ifdef USE_MAP\ngl_FragColor = gl_FragColor * texture2D( map, vec2( gl_PointCoord.x, 1.0 - gl_PointCoord.y ) );\n#endif",map_pars_vertex:"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP )\nvarying vec2 vUv;\nuniform vec4 offsetRepeat;\n#endif",map_pars_fragment:"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP )\nvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\nuniform sampler2D map;\n#endif",map_vertex:"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP )\nvUv = uv * offsetRepeat.zw + offsetRepeat.xy;\n#endif",map_fragment:"#ifdef USE_MAP\nvec4 texelColor = texture2D( map, vUv );\n#ifdef GAMMA_INPUT\ntexelColor.xyz *= texelColor.xyz;\n#endif\ngl_FragColor = gl_FragColor * texelColor;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\nvarying vec2 vUv2;\nuniform sampler2D lightMap;\n#endif",lightmap_pars_vertex:"#ifdef USE_LIGHTMAP\nvarying vec2 vUv2;\n#endif",lightmap_fragment:"#ifdef USE_LIGHTMAP\ngl_FragColor = gl_FragColor * texture2D( lightMap, vUv2 );\n#endif",lightmap_vertex:"#ifdef USE_LIGHTMAP\nvUv2 = uv2;\n#endif",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\nuniform sampler2D bumpMap;\nuniform float bumpScale;\nvec2 dHdxy_fwd() {\nvec2 dSTdx = dFdx( vUv );\nvec2 dSTdy = dFdy( vUv );\nfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\nfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\nfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\nreturn vec2( dBx, dBy );\n}\nvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy ) {\nvec3 vSigmaX = dFdx( surf_pos );\nvec3 vSigmaY = dFdy( surf_pos );\nvec3 vN = surf_norm;\nvec3 R1 = cross( vSigmaY, vN );\nvec3 R2 = cross( vN, vSigmaX );\nfloat fDet = dot( vSigmaX, R1 );\nvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\nreturn normalize( abs( fDet ) * surf_norm - vGrad );\n}\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\nuniform sampler2D normalMap;\nuniform vec2 normalScale;\nvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm ) {\nvec3 q0 = dFdx( eye_pos.xyz );\nvec3 q1 = dFdy( eye_pos.xyz );\nvec2 st0 = dFdx( vUv.st );\nvec2 st1 = dFdy( vUv.st );\nvec3 S = normalize( q0 * st1.t - q1 * st0.t );\nvec3 T = normalize( -q0 * st1.s + q1 * st0.s );\nvec3 N = normalize( surf_norm );\nvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\nmapN.xy = normalScale * mapN.xy;\nmat3 tsn = mat3( S, T, N );\nreturn normalize( tsn * mapN );\n}\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\nuniform sampler2D specularMap;\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\nvec4 texelSpecular = texture2D( specularMap, vUv );\nspecularStrength = texelSpecular.r;\n#else\nspecularStrength = 1.0;\n#endif",lights_lambert_pars_vertex:"uniform vec3 ambient;\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 ambientLightColor;\n#if MAX_DIR_LIGHTS > 0\nuniform vec3 directionalLightColor[ MAX_DIR_LIGHTS ];\nuniform vec3 directionalLightDirection[ MAX_DIR_LIGHTS ];\n#endif\n#if MAX_HEMI_LIGHTS > 0\nuniform vec3 hemisphereLightSkyColor[ MAX_HEMI_LIGHTS ];\nuniform vec3 hemisphereLightGroundColor[ MAX_HEMI_LIGHTS ];\nuniform vec3 hemisphereLightDirection[ MAX_HEMI_LIGHTS ];\n#endif\n#if MAX_POINT_LIGHTS > 0\nuniform vec3 pointLightColor[ MAX_POINT_LIGHTS ];\nuniform vec3 pointLightPosition[ MAX_POINT_LIGHTS ];\nuniform float pointLightDistance[ MAX_POINT_LIGHTS ];\n#endif\n#if MAX_SPOT_LIGHTS > 0\nuniform vec3 spotLightColor[ MAX_SPOT_LIGHTS ];\nuniform vec3 spotLightPosition[ MAX_SPOT_LIGHTS ];\nuniform vec3 spotLightDirection[ MAX_SPOT_LIGHTS ];\nuniform float spotLightDistance[ MAX_SPOT_LIGHTS ];\nuniform float spotLightAngleCos[ MAX_SPOT_LIGHTS ];\nuniform float spotLightExponent[ MAX_SPOT_LIGHTS ];\n#endif\n#ifdef WRAP_AROUND\nuniform vec3 wrapRGB;\n#endif",lights_lambert_vertex:"vLightFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\nvLightBack = vec3( 0.0 );\n#endif\ntransformedNormal = normalize( transformedNormal );\n#if MAX_DIR_LIGHTS > 0\nfor( int i = 0; i < MAX_DIR_LIGHTS; i ++ ) {\nvec4 lDirection = viewMatrix * vec4( directionalLightDirection[ i ], 0.0 );\nvec3 dirVector = normalize( lDirection.xyz );\nfloat dotProduct = dot( transformedNormal, dirVector );\nvec3 directionalLightWeighting = vec3( max( dotProduct, 0.0 ) );\n#ifdef DOUBLE_SIDED\nvec3 directionalLightWeightingBack = vec3( max( -dotProduct, 0.0 ) );\n#ifdef WRAP_AROUND\nvec3 directionalLightWeightingHalfBack = vec3( max( -0.5 * dotProduct + 0.5, 0.0 ) );\n#endif\n#endif\n#ifdef WRAP_AROUND\nvec3 directionalLightWeightingHalf = vec3( max( 0.5 * dotProduct + 0.5, 0.0 ) );\ndirectionalLightWeighting = mix( directionalLightWeighting, directionalLightWeightingHalf, wrapRGB );\n#ifdef DOUBLE_SIDED\ndirectionalLightWeightingBack = mix( directionalLightWeightingBack, directionalLightWeightingHalfBack, wrapRGB );\n#endif\n#endif\nvLightFront += directionalLightColor[ i ] * directionalLightWeighting;\n#ifdef DOUBLE_SIDED\nvLightBack += directionalLightColor[ i ] * directionalLightWeightingBack;\n#endif\n}\n#endif\n#if MAX_POINT_LIGHTS > 0\nfor( int i = 0; i < MAX_POINT_LIGHTS; i ++ ) {\nvec4 lPosition = viewMatrix * vec4( pointLightPosition[ i ], 1.0 );\nvec3 lVector = lPosition.xyz - mvPosition.xyz;\nfloat lDistance = 1.0;\nif ( pointLightDistance[ i ] > 0.0 )\nlDistance = 1.0 - min( ( length( lVector ) / pointLightDistance[ i ] ), 1.0 );\nlVector = normalize( lVector );\nfloat dotProduct = dot( transformedNormal, lVector );\nvec3 pointLightWeighting = vec3( max( dotProduct, 0.0 ) );\n#ifdef DOUBLE_SIDED\nvec3 pointLightWeightingBack = vec3( max( -dotProduct, 0.0 ) );\n#ifdef WRAP_AROUND\nvec3 pointLightWeightingHalfBack = vec3( max( -0.5 * dotProduct + 0.5, 0.0 ) );\n#endif\n#endif\n#ifdef WRAP_AROUND\nvec3 pointLightWeightingHalf = vec3( max( 0.5 * dotProduct + 0.5, 0.0 ) );\npointLightWeighting = mix( pointLightWeighting, pointLightWeightingHalf, wrapRGB );\n#ifdef DOUBLE_SIDED\npointLightWeightingBack = mix( pointLightWeightingBack, pointLightWeightingHalfBack, wrapRGB );\n#endif\n#endif\nvLightFront += pointLightColor[ i ] * pointLightWeighting * lDistance;\n#ifdef DOUBLE_SIDED\nvLightBack += pointLightColor[ i ] * pointLightWeightingBack * lDistance;\n#endif\n}\n#endif\n#if MAX_SPOT_LIGHTS > 0\nfor( int i = 0; i < MAX_SPOT_LIGHTS; i ++ ) {\nvec4 lPosition = viewMatrix * vec4( spotLightPosition[ i ], 1.0 );\nvec3 lVector = lPosition.xyz - mvPosition.xyz;\nfloat spotEffect = dot( spotLightDirection[ i ], normalize( spotLightPosition[ i ] - worldPosition.xyz ) );\nif ( spotEffect > spotLightAngleCos[ i ] ) {\nspotEffect = max( pow( spotEffect, spotLightExponent[ i ] ), 0.0 );\nfloat lDistance = 1.0;\nif ( spotLightDistance[ i ] > 0.0 )\nlDistance = 1.0 - min( ( length( lVector ) / spotLightDistance[ i ] ), 1.0 );\nlVector = normalize( lVector );\nfloat dotProduct = dot( transformedNormal, lVector );\nvec3 spotLightWeighting = vec3( max( dotProduct, 0.0 ) );\n#ifdef DOUBLE_SIDED\nvec3 spotLightWeightingBack = vec3( max( -dotProduct, 0.0 ) );\n#ifdef WRAP_AROUND\nvec3 spotLightWeightingHalfBack = vec3( max( -0.5 * dotProduct + 0.5, 0.0 ) );\n#endif\n#endif\n#ifdef WRAP_AROUND\nvec3 spotLightWeightingHalf = vec3( max( 0.5 * dotProduct + 0.5, 0.0 ) );\nspotLightWeighting = mix( spotLightWeighting, spotLightWeightingHalf, wrapRGB );\n#ifdef DOUBLE_SIDED\nspotLightWeightingBack = mix( spotLightWeightingBack, spotLightWeightingHalfBack, wrapRGB );\n#endif\n#endif\nvLightFront += spotLightColor[ i ] * spotLightWeighting * lDistance * spotEffect;\n#ifdef DOUBLE_SIDED\nvLightBack += spotLightColor[ i ] * spotLightWeightingBack * lDistance * spotEffect;\n#endif\n}\n}\n#endif\n#if MAX_HEMI_LIGHTS > 0\nfor( int i = 0; i < MAX_HEMI_LIGHTS; i ++ ) {\nvec4 lDirection = viewMatrix * vec4( hemisphereLightDirection[ i ], 0.0 );\nvec3 lVector = normalize( lDirection.xyz );\nfloat dotProduct = dot( transformedNormal, lVector );\nfloat hemiDiffuseWeight = 0.5 * dotProduct + 0.5;\nfloat hemiDiffuseWeightBack = -0.5 * dotProduct + 0.5;\nvLightFront += mix( hemisphereLightGroundColor[ i ], hemisphereLightSkyColor[ i ], hemiDiffuseWeight );\n#ifdef DOUBLE_SIDED\nvLightBack += mix( hemisphereLightGroundColor[ i ], hemisphereLightSkyColor[ i ], hemiDiffuseWeightBack );\n#endif\n}\n#endif\nvLightFront = vLightFront * diffuse + ambient * ambientLightColor + emissive;\n#ifdef DOUBLE_SIDED\nvLightBack = vLightBack * diffuse + ambient * ambientLightColor + emissive;\n#endif",lights_phong_pars_vertex:"#ifndef PHONG_PER_PIXEL\n#if MAX_POINT_LIGHTS > 0\nuniform vec3 pointLightPosition[ MAX_POINT_LIGHTS ];\nuniform float pointLightDistance[ MAX_POINT_LIGHTS ];\nvarying vec4 vPointLight[ MAX_POINT_LIGHTS ];\n#endif\n#if MAX_SPOT_LIGHTS > 0\nuniform vec3 spotLightPosition[ MAX_SPOT_LIGHTS ];\nuniform float spotLightDistance[ MAX_SPOT_LIGHTS ];\nvarying vec4 vSpotLight[ MAX_SPOT_LIGHTS ];\n#endif\n#endif\n#if MAX_SPOT_LIGHTS > 0 || defined( USE_BUMPMAP )\nvarying vec3 vWorldPosition;\n#endif",lights_phong_vertex:"#ifndef PHONG_PER_PIXEL\n#if MAX_POINT_LIGHTS > 0\nfor( int i = 0; i < MAX_POINT_LIGHTS; i ++ ) {\nvec4 lPosition = viewMatrix * vec4( pointLightPosition[ i ], 1.0 );\nvec3 lVector = lPosition.xyz - mvPosition.xyz;\nfloat lDistance = 1.0;\nif ( pointLightDistance[ i ] > 0.0 )\nlDistance = 1.0 - min( ( length( lVector ) / pointLightDistance[ i ] ), 1.0 );\nvPointLight[ i ] = vec4( lVector, lDistance );\n}\n#endif\n#if MAX_SPOT_LIGHTS > 0\nfor( int i = 0; i < MAX_SPOT_LIGHTS; i ++ ) {\nvec4 lPosition = viewMatrix * vec4( spotLightPosition[ i ], 1.0 );\nvec3 lVector = lPosition.xyz - mvPosition.xyz;\nfloat lDistance = 1.0;\nif ( spotLightDistance[ i ] > 0.0 )\nlDistance = 1.0 - min( ( length( lVector ) / spotLightDistance[ i ] ), 1.0 );\nvSpotLight[ i ] = vec4( lVector, lDistance );\n}\n#endif\n#endif\n#if MAX_SPOT_LIGHTS > 0 || defined( USE_BUMPMAP )\nvWorldPosition = worldPosition.xyz;\n#endif",lights_phong_pars_fragment:"uniform vec3 ambientLightColor;\n#if MAX_DIR_LIGHTS > 0\nuniform vec3 directionalLightColor[ MAX_DIR_LIGHTS ];\nuniform vec3 directionalLightDirection[ MAX_DIR_LIGHTS ];\n#endif\n#if MAX_HEMI_LIGHTS > 0\nuniform vec3 hemisphereLightSkyColor[ MAX_HEMI_LIGHTS ];\nuniform vec3 hemisphereLightGroundColor[ MAX_HEMI_LIGHTS ];\nuniform vec3 hemisphereLightDirection[ MAX_HEMI_LIGHTS ];\n#endif\n#if MAX_POINT_LIGHTS > 0\nuniform vec3 pointLightColor[ MAX_POINT_LIGHTS ];\n#ifdef PHONG_PER_PIXEL\nuniform vec3 pointLightPosition[ MAX_POINT_LIGHTS ];\nuniform float pointLightDistance[ MAX_POINT_LIGHTS ];\n#else\nvarying vec4 vPointLight[ MAX_POINT_LIGHTS ];\n#endif\n#endif\n#if MAX_SPOT_LIGHTS > 0\nuniform vec3 spotLightColor[ MAX_SPOT_LIGHTS ];\nuniform vec3 spotLightPosition[ MAX_SPOT_LIGHTS ];\nuniform vec3 spotLightDirection[ MAX_SPOT_LIGHTS ];\nuniform float spotLightAngleCos[ MAX_SPOT_LIGHTS ];\nuniform float spotLightExponent[ MAX_SPOT_LIGHTS ];\n#ifdef PHONG_PER_PIXEL\nuniform float spotLightDistance[ MAX_SPOT_LIGHTS ];\n#else\nvarying vec4 vSpotLight[ MAX_SPOT_LIGHTS ];\n#endif\n#endif\n#if MAX_SPOT_LIGHTS > 0 || defined( USE_BUMPMAP )\nvarying vec3 vWorldPosition;\n#endif\n#ifdef WRAP_AROUND\nuniform vec3 wrapRGB;\n#endif\nvarying vec3 vViewPosition;\nvarying vec3 vNormal;",lights_phong_fragment:"vec3 normal = normalize( vNormal );\nvec3 viewPosition = normalize( vViewPosition );\n#ifdef DOUBLE_SIDED\nnormal = normal * ( -1.0 + 2.0 * float( gl_FrontFacing ) );\n#endif\n#ifdef USE_NORMALMAP\nnormal = perturbNormal2Arb( -vViewPosition, normal );\n#elif defined( USE_BUMPMAP )\nnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd() );\n#endif\n#if MAX_POINT_LIGHTS > 0\nvec3 pointDiffuse = vec3( 0.0 );\nvec3 pointSpecular = vec3( 0.0 );\nfor ( int i = 0; i < MAX_POINT_LIGHTS; i ++ ) {\n#ifdef PHONG_PER_PIXEL\nvec4 lPosition = viewMatrix * vec4( pointLightPosition[ i ], 1.0 );\nvec3 lVector = lPosition.xyz + vViewPosition.xyz;\nfloat lDistance = 1.0;\nif ( pointLightDistance[ i ] > 0.0 )\nlDistance = 1.0 - min( ( length( lVector ) / pointLightDistance[ i ] ), 1.0 );\nlVector = normalize( lVector );\n#else\nvec3 lVector = normalize( vPointLight[ i ].xyz );\nfloat lDistance = vPointLight[ i ].w;\n#endif\nfloat dotProduct = dot( normal, lVector );\n#ifdef WRAP_AROUND\nfloat pointDiffuseWeightFull = max( dotProduct, 0.0 );\nfloat pointDiffuseWeightHalf = max( 0.5 * dotProduct + 0.5, 0.0 );\nvec3 pointDiffuseWeight = mix( vec3 ( pointDiffuseWeightFull ), vec3( pointDiffuseWeightHalf ), wrapRGB );\n#else\nfloat pointDiffuseWeight = max( dotProduct, 0.0 );\n#endif\npointDiffuse += diffuse * pointLightColor[ i ] * pointDiffuseWeight * lDistance;\nvec3 pointHalfVector = normalize( lVector + viewPosition );\nfloat pointDotNormalHalf = max( dot( normal, pointHalfVector ), 0.0 );\nfloat pointSpecularWeight = specularStrength * max( pow( pointDotNormalHalf, shininess ), 0.0 );\n#ifdef PHYSICALLY_BASED_SHADING\nfloat specularNormalization = ( shininess + 2.0001 ) / 8.0;\nvec3 schlick = specular + vec3( 1.0 - specular ) * pow( 1.0 - dot( lVector, pointHalfVector ), 5.0 );\npointSpecular += schlick * pointLightColor[ i ] * pointSpecularWeight * pointDiffuseWeight * lDistance * specularNormalization;\n#else\npointSpecular += specular * pointLightColor[ i ] * pointSpecularWeight * pointDiffuseWeight * lDistance;\n#endif\n}\n#endif\n#if MAX_SPOT_LIGHTS > 0\nvec3 spotDiffuse = vec3( 0.0 );\nvec3 spotSpecular = vec3( 0.0 );\nfor ( int i = 0; i < MAX_SPOT_LIGHTS; i ++ ) {\n#ifdef PHONG_PER_PIXEL\nvec4 lPosition = viewMatrix * vec4( spotLightPosition[ i ], 1.0 );\nvec3 lVector = lPosition.xyz + vViewPosition.xyz;\nfloat lDistance = 1.0;\nif ( spotLightDistance[ i ] > 0.0 )\nlDistance = 1.0 - min( ( length( lVector ) / spotLightDistance[ i ] ), 1.0 );\nlVector = normalize( lVector );\n#else\nvec3 lVector = normalize( vSpotLight[ i ].xyz );\nfloat lDistance = vSpotLight[ i ].w;\n#endif\nfloat spotEffect = dot( spotLightDirection[ i ], normalize( spotLightPosition[ i ] - vWorldPosition ) );\nif ( spotEffect > spotLightAngleCos[ i ] ) {\nspotEffect = max( pow( spotEffect, spotLightExponent[ i ] ), 0.0 );\nfloat dotProduct = dot( normal, lVector );\n#ifdef WRAP_AROUND\nfloat spotDiffuseWeightFull = max( dotProduct, 0.0 );\nfloat spotDiffuseWeightHalf = max( 0.5 * dotProduct + 0.5, 0.0 );\nvec3 spotDiffuseWeight = mix( vec3 ( spotDiffuseWeightFull ), vec3( spotDiffuseWeightHalf ), wrapRGB );\n#else\nfloat spotDiffuseWeight = max( dotProduct, 0.0 );\n#endif\nspotDiffuse += diffuse * spotLightColor[ i ] * spotDiffuseWeight * lDistance * spotEffect;\nvec3 spotHalfVector = normalize( lVector + viewPosition );\nfloat spotDotNormalHalf = max( dot( normal, spotHalfVector ), 0.0 );\nfloat spotSpecularWeight = specularStrength * max( pow( spotDotNormalHalf, shininess ), 0.0 );\n#ifdef PHYSICALLY_BASED_SHADING\nfloat specularNormalization = ( shininess + 2.0001 ) / 8.0;\nvec3 schlick = specular + vec3( 1.0 - specular ) * pow( 1.0 - dot( lVector, spotHalfVector ), 5.0 );\nspotSpecular += schlick * spotLightColor[ i ] * spotSpecularWeight * spotDiffuseWeight * lDistance * specularNormalization * spotEffect;\n#else\nspotSpecular += specular * spotLightColor[ i ] * spotSpecularWeight * spotDiffuseWeight * lDistance * spotEffect;\n#endif\n}\n}\n#endif\n#if MAX_DIR_LIGHTS > 0\nvec3 dirDiffuse = vec3( 0.0 );\nvec3 dirSpecular = vec3( 0.0 );\nfor( int i = 0; i < MAX_DIR_LIGHTS; i ++ ) {\nvec4 lDirection = viewMatrix * vec4( directionalLightDirection[ i ], 0.0 );\nvec3 dirVector = normalize( lDirection.xyz );\nfloat dotProduct = dot( normal, dirVector );\n#ifdef WRAP_AROUND\nfloat dirDiffuseWeightFull = max( dotProduct, 0.0 );\nfloat dirDiffuseWeightHalf = max( 0.5 * dotProduct + 0.5, 0.0 );\nvec3 dirDiffuseWeight = mix( vec3( dirDiffuseWeightFull ), vec3( dirDiffuseWeightHalf ), wrapRGB );\n#else\nfloat dirDiffuseWeight = max( dotProduct, 0.0 );\n#endif\ndirDiffuse += diffuse * directionalLightColor[ i ] * dirDiffuseWeight;\nvec3 dirHalfVector = normalize( dirVector + viewPosition );\nfloat dirDotNormalHalf = max( dot( normal, dirHalfVector ), 0.0 );\nfloat dirSpecularWeight = specularStrength * max( pow( dirDotNormalHalf, shininess ), 0.0 );\n#ifdef PHYSICALLY_BASED_SHADING\nfloat specularNormalization = ( shininess + 2.0001 ) / 8.0;\nvec3 schlick = specular + vec3( 1.0 - specular ) * pow( 1.0 - dot( dirVector, dirHalfVector ), 5.0 );\ndirSpecular += schlick * directionalLightColor[ i ] * dirSpecularWeight * dirDiffuseWeight * specularNormalization;\n#else\ndirSpecular += specular * directionalLightColor[ i ] * dirSpecularWeight * dirDiffuseWeight;\n#endif\n}\n#endif\n#if MAX_HEMI_LIGHTS > 0\nvec3 hemiDiffuse = vec3( 0.0 );\nvec3 hemiSpecular = vec3( 0.0 );\nfor( int i = 0; i < MAX_HEMI_LIGHTS; i ++ ) {\nvec4 lDirection = viewMatrix * vec4( hemisphereLightDirection[ i ], 0.0 );\nvec3 lVector = normalize( lDirection.xyz );\nfloat dotProduct = dot( normal, lVector );\nfloat hemiDiffuseWeight = 0.5 * dotProduct + 0.5;\nvec3 hemiColor = mix( hemisphereLightGroundColor[ i ], hemisphereLightSkyColor[ i ], hemiDiffuseWeight );\nhemiDiffuse += diffuse * hemiColor;\nvec3 hemiHalfVectorSky = normalize( lVector + viewPosition );\nfloat hemiDotNormalHalfSky = 0.5 * dot( normal, hemiHalfVectorSky ) + 0.5;\nfloat hemiSpecularWeightSky = specularStrength * max( pow( hemiDotNormalHalfSky, shininess ), 0.0 );\nvec3 lVectorGround = -lVector;\nvec3 hemiHalfVectorGround = normalize( lVectorGround + viewPosition );\nfloat hemiDotNormalHalfGround = 0.5 * dot( normal, hemiHalfVectorGround ) + 0.5;\nfloat hemiSpecularWeightGround = specularStrength * max( pow( hemiDotNormalHalfGround, shininess ), 0.0 );\n#ifdef PHYSICALLY_BASED_SHADING\nfloat dotProductGround = dot( normal, lVectorGround );\nfloat specularNormalization = ( shininess + 2.0001 ) / 8.0;\nvec3 schlickSky = specular + vec3( 1.0 - specular ) * pow( 1.0 - dot( lVector, hemiHalfVectorSky ), 5.0 );\nvec3 schlickGround = specular + vec3( 1.0 - specular ) * pow( 1.0 - dot( lVectorGround, hemiHalfVectorGround ), 5.0 );\nhemiSpecular += hemiColor * specularNormalization * ( schlickSky * hemiSpecularWeightSky * max( dotProduct, 0.0 ) + schlickGround * hemiSpecularWeightGround * max( dotProductGround, 0.0 ) );\n#else\nhemiSpecular += specular * hemiColor * ( hemiSpecularWeightSky + hemiSpecularWeightGround ) * hemiDiffuseWeight;\n#endif\n}\n#endif\nvec3 totalDiffuse = vec3( 0.0 );\nvec3 totalSpecular = vec3( 0.0 );\n#if MAX_DIR_LIGHTS > 0\ntotalDiffuse += dirDiffuse;\ntotalSpecular += dirSpecular;\n#endif\n#if MAX_HEMI_LIGHTS > 0\ntotalDiffuse += hemiDiffuse;\ntotalSpecular += hemiSpecular;\n#endif\n#if MAX_POINT_LIGHTS > 0\ntotalDiffuse += pointDiffuse;\ntotalSpecular += pointSpecular;\n#endif\n#if MAX_SPOT_LIGHTS > 0\ntotalDiffuse += spotDiffuse;\ntotalSpecular += spotSpecular;\n#endif\n#ifdef METAL\ngl_FragColor.xyz = gl_FragColor.xyz * ( emissive + totalDiffuse + ambientLightColor * ambient + totalSpecular );\n#else\ngl_FragColor.xyz = gl_FragColor.xyz * ( emissive + totalDiffuse + ambientLightColor * ambient ) + totalSpecular;\n#endif",color_pars_fragment:"#ifdef USE_COLOR\nvarying vec3 vColor;\n#endif",color_fragment:"#ifdef USE_COLOR\ngl_FragColor = gl_FragColor * vec4( vColor, opacity );\n#endif",color_pars_vertex:"#ifdef USE_COLOR\nvarying vec3 vColor;\n#endif",color_vertex:"#ifdef USE_COLOR\n#ifdef GAMMA_INPUT\nvColor = color * color;\n#else\nvColor = color;\n#endif\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n#ifdef BONE_TEXTURE\nuniform sampler2D boneTexture;\nmat4 getBoneMatrix( const in float i ) {\nfloat j = i * 4.0;\nfloat x = mod( j, N_BONE_PIXEL_X );\nfloat y = floor( j / N_BONE_PIXEL_X );\nconst float dx = 1.0 / N_BONE_PIXEL_X;\nconst float dy = 1.0 / N_BONE_PIXEL_Y;\ny = dy * ( y + 0.5 );\nvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\nvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\nvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\nvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\nmat4 bone = mat4( v1, v2, v3, v4 );\nreturn bone;\n}\n#else\nuniform mat4 boneGlobalMatrices[ MAX_BONES ];\nmat4 getBoneMatrix( const in float i ) {\nmat4 bone = boneGlobalMatrices[ int(i) ];\nreturn bone;\n}\n#endif\n#endif",skinbase_vertex:"#ifdef USE_SKINNING\nmat4 boneMatX = getBoneMatrix( skinIndex.x );\nmat4 boneMatY = getBoneMatrix( skinIndex.y );\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n#ifdef USE_MORPHTARGETS\nvec4 skinVertex = vec4( morphed, 1.0 );\n#else\nvec4 skinVertex = vec4( position, 1.0 );\n#endif\nvec4 skinned = boneMatX * skinVertex * skinWeight.x;\nskinned += boneMatY * skinVertex * skinWeight.y;\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n#ifndef USE_MORPHNORMALS\nuniform float morphTargetInfluences[ 8 ];\n#else\nuniform float morphTargetInfluences[ 4 ];\n#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\nvec3 morphed = vec3( 0.0 );\nmorphed += ( morphTarget0 - position ) * morphTargetInfluences[ 0 ];\nmorphed += ( morphTarget1 - position ) * morphTargetInfluences[ 1 ];\nmorphed += ( morphTarget2 - position ) * morphTargetInfluences[ 2 ];\nmorphed += ( morphTarget3 - position ) * morphTargetInfluences[ 3 ];\n#ifndef USE_MORPHNORMALS\nmorphed += ( morphTarget4 - position ) * morphTargetInfluences[ 4 ];\nmorphed += ( morphTarget5 - position ) * morphTargetInfluences[ 5 ];\nmorphed += ( morphTarget6 - position ) * morphTargetInfluences[ 6 ];\nmorphed += ( morphTarget7 - position ) * morphTargetInfluences[ 7 ];\n#endif\nmorphed += position;\n#endif",default_vertex:"vec4 mvPosition;\n#ifdef USE_SKINNING\nmvPosition = modelViewMatrix * skinned;\n#endif\n#if !defined( USE_SKINNING ) && defined( USE_MORPHTARGETS )\nmvPosition = modelViewMatrix * vec4( morphed, 1.0 );\n#endif\n#if !defined( USE_SKINNING ) && ! defined( USE_MORPHTARGETS )\nmvPosition = modelViewMatrix * vec4( position, 1.0 );\n#endif\ngl_Position = projectionMatrix * mvPosition;",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\nvec3 morphedNormal = vec3( 0.0 );\nmorphedNormal += ( morphNormal0 - normal ) * morphTargetInfluences[ 0 ];\nmorphedNormal += ( morphNormal1 - normal ) * morphTargetInfluences[ 1 ];\nmorphedNormal += ( morphNormal2 - normal ) * morphTargetInfluences[ 2 ];\nmorphedNormal += ( morphNormal3 - normal ) * morphTargetInfluences[ 3 ];\nmorphedNormal += normal;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\nmat4 skinMatrix = skinWeight.x * boneMatX;\nskinMatrix += skinWeight.y * boneMatY;\n#ifdef USE_MORPHNORMALS\nvec4 skinnedNormal = skinMatrix * vec4( morphedNormal, 0.0 );\n#else\nvec4 skinnedNormal = skinMatrix * vec4( normal, 0.0 );\n#endif\n#endif",defaultnormal_vertex:"vec3 objectNormal;\n#ifdef USE_SKINNING\nobjectNormal = skinnedNormal.xyz;\n#endif\n#if !defined( USE_SKINNING ) && defined( USE_MORPHNORMALS )\nobjectNormal = morphedNormal;\n#endif\n#if !defined( USE_SKINNING ) && ! defined( USE_MORPHNORMALS )\nobjectNormal = normal;\n#endif\n#ifdef FLIP_SIDED\nobjectNormal = -objectNormal;\n#endif\nvec3 transformedNormal = normalMatrix * objectNormal;",shadowmap_pars_fragment:"#ifdef USE_SHADOWMAP\nuniform sampler2D shadowMap[ MAX_SHADOWS ];\nuniform vec2 shadowMapSize[ MAX_SHADOWS ];\nuniform float shadowDarkness[ MAX_SHADOWS ];\nuniform float shadowBias[ MAX_SHADOWS ];\nvarying vec4 vShadowCoord[ MAX_SHADOWS ];\nfloat unpackDepth( const in vec4 rgba_depth ) {\nconst vec4 bit_shift = vec4( 1.0 / ( 256.0 * 256.0 * 256.0 ), 1.0 / ( 256.0 * 256.0 ), 1.0 / 256.0, 1.0 );\nfloat depth = dot( rgba_depth, bit_shift );\nreturn depth;\n}\n#endif",shadowmap_fragment:"#ifdef USE_SHADOWMAP\n#ifdef SHADOWMAP_DEBUG\nvec3 frustumColors[3];\nfrustumColors[0] = vec3( 1.0, 0.5, 0.0 );\nfrustumColors[1] = vec3( 0.0, 1.0, 0.8 );\nfrustumColors[2] = vec3( 0.0, 0.5, 1.0 );\n#endif\n#ifdef SHADOWMAP_CASCADE\nint inFrustumCount = 0;\n#endif\nfloat fDepth;\nvec3 shadowColor = vec3( 1.0 );\nfor( int i = 0; i < MAX_SHADOWS; i ++ ) {\nvec3 shadowCoord = vShadowCoord[ i ].xyz / vShadowCoord[ i ].w;\nbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\nbool inFrustum = all( inFrustumVec );\n#ifdef SHADOWMAP_CASCADE\ninFrustumCount += int( inFrustum );\nbvec3 frustumTestVec = bvec3( inFrustum, inFrustumCount == 1, shadowCoord.z <= 1.0 );\n#else\nbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n#endif\nbool frustumTest = all( frustumTestVec );\nif ( frustumTest ) {\nshadowCoord.z += shadowBias[ i ];\n#if defined( SHADOWMAP_TYPE_PCF )\nfloat shadow = 0.0;\nconst float shadowDelta = 1.0 / 9.0;\nfloat xPixelOffset = 1.0 / shadowMapSize[ i ].x;\nfloat yPixelOffset = 1.0 / shadowMapSize[ i ].y;\nfloat dx0 = -1.25 * xPixelOffset;\nfloat dy0 = -1.25 * yPixelOffset;\nfloat dx1 = 1.25 * xPixelOffset;\nfloat dy1 = 1.25 * yPixelOffset;\nfDepth = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( dx0, dy0 ) ) );\nif ( fDepth < shadowCoord.z ) shadow += shadowDelta;\nfDepth = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( 0.0, dy0 ) ) );\nif ( fDepth < shadowCoord.z ) shadow += shadowDelta;\nfDepth = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( dx1, dy0 ) ) );\nif ( fDepth < shadowCoord.z ) shadow += shadowDelta;\nfDepth = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( dx0, 0.0 ) ) );\nif ( fDepth < shadowCoord.z ) shadow += shadowDelta;\nfDepth = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy ) );\nif ( fDepth < shadowCoord.z ) shadow += shadowDelta;\nfDepth = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( dx1, 0.0 ) ) );\nif ( fDepth < shadowCoord.z ) shadow += shadowDelta;\nfDepth = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( dx0, dy1 ) ) );\nif ( fDepth < shadowCoord.z ) shadow += shadowDelta;\nfDepth = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( 0.0, dy1 ) ) );\nif ( fDepth < shadowCoord.z ) shadow += shadowDelta;\nfDepth = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( dx1, dy1 ) ) );\nif ( fDepth < shadowCoord.z ) shadow += shadowDelta;\nshadowColor = shadowColor * vec3( ( 1.0 - shadowDarkness[ i ] * shadow ) );\n#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\nfloat shadow = 0.0;\nfloat xPixelOffset = 1.0 / shadowMapSize[ i ].x;\nfloat yPixelOffset = 1.0 / shadowMapSize[ i ].y;\nfloat dx0 = -1.0 * xPixelOffset;\nfloat dy0 = -1.0 * yPixelOffset;\nfloat dx1 = 1.0 * xPixelOffset;\nfloat dy1 = 1.0 * yPixelOffset;\nmat3 shadowKernel;\nmat3 depthKernel;\ndepthKernel[0][0] = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( dx0, dy0 ) ) );\ndepthKernel[0][1] = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( dx0, 0.0 ) ) );\ndepthKernel[0][2] = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( dx0, dy1 ) ) );\ndepthKernel[1][0] = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( 0.0, dy0 ) ) );\ndepthKernel[1][1] = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy ) );\ndepthKernel[1][2] = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( 0.0, dy1 ) ) );\ndepthKernel[2][0] = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( dx1, dy0 ) ) );\ndepthKernel[2][1] = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( dx1, 0.0 ) ) );\ndepthKernel[2][2] = unpackDepth( texture2D( shadowMap[ i ], shadowCoord.xy + vec2( dx1, dy1 ) ) );\nvec3 shadowZ = vec3( shadowCoord.z );\nshadowKernel[0] = vec3(lessThan(depthKernel[0], shadowZ ));\nshadowKernel[0] *= vec3(0.25);\nshadowKernel[1] = vec3(lessThan(depthKernel[1], shadowZ ));\nshadowKernel[1] *= vec3(0.25);\nshadowKernel[2] = vec3(lessThan(depthKernel[2], shadowZ ));\nshadowKernel[2] *= vec3(0.25);\nvec2 fractionalCoord = 1.0 - fract( shadowCoord.xy * shadowMapSize[i].xy );\nshadowKernel[0] = mix( shadowKernel[1], shadowKernel[0], fractionalCoord.x );\nshadowKernel[1] = mix( shadowKernel[2], shadowKernel[1], fractionalCoord.x );\nvec4 shadowValues;\nshadowValues.x = mix( shadowKernel[0][1], shadowKernel[0][0], fractionalCoord.y );\nshadowValues.y = mix( shadowKernel[0][2], shadowKernel[0][1], fractionalCoord.y );\nshadowValues.z = mix( shadowKernel[1][1], shadowKernel[1][0], fractionalCoord.y );\nshadowValues.w = mix( shadowKernel[1][2], shadowKernel[1][1], fractionalCoord.y );\nshadow = dot( shadowValues, vec4( 1.0 ) );\nshadowColor = shadowColor * vec3( ( 1.0 - shadowDarkness[ i ] * shadow ) );\n#else\nvec4 rgbaDepth = texture2D( shadowMap[ i ], shadowCoord.xy );\nfloat fDepth = unpackDepth( rgbaDepth );\nif ( fDepth < shadowCoord.z )\nshadowColor = shadowColor * vec3( 1.0 - shadowDarkness[ i ] );\n#endif\n}\n#ifdef SHADOWMAP_DEBUG\n#ifdef SHADOWMAP_CASCADE\nif ( inFrustum && inFrustumCount == 1 ) gl_FragColor.xyz *= frustumColors[ i ];\n#else\nif ( inFrustum ) gl_FragColor.xyz *= frustumColors[ i ];\n#endif\n#endif\n}\n#ifdef GAMMA_OUTPUT\nshadowColor *= shadowColor;\n#endif\ngl_FragColor.xyz = gl_FragColor.xyz * shadowColor;\n#endif",shadowmap_pars_vertex:"#ifdef USE_SHADOWMAP\nvarying vec4 vShadowCoord[ MAX_SHADOWS ];\nuniform mat4 shadowMatrix[ MAX_SHADOWS ];\n#endif",shadowmap_vertex:"#ifdef USE_SHADOWMAP\nfor( int i = 0; i < MAX_SHADOWS; i ++ ) {\nvShadowCoord[ i ] = shadowMatrix[ i ] * worldPosition;\n}\n#endif",alphatest_fragment:"#ifdef ALPHATEST\nif ( gl_FragColor.a < ALPHATEST ) discard;\n#endif",linear_to_gamma_fragment:"#ifdef GAMMA_OUTPUT\ngl_FragColor.xyz = sqrt( gl_FragColor.xyz );\n#endif"},e.UniformsUtils={merge:function(e){var t,i,n,r={}; for(t=0;t<e.length;t++)for(i in n=this.clone(e[t]))r[i]=n[i];return r},clone:function(t){var i,n,r,o={};for(i in t)for(n in o[i]={},t[i])r=t[i][n],o[i][n]=r instanceof e.Color||r instanceof e.Vector2||r instanceof e.Vector3||r instanceof e.Vector4||r instanceof e.Matrix4||r instanceof e.Texture?r.clone():r instanceof Array?r.slice():r;return o}},e.UniformsLib={common:{diffuse:{type:"c",value:new e.Color(15658734)},opacity:{type:"f",value:1},map:{type:"t",value:null},offsetRepeat:{type:"v4",value:new e.Vector4(0,0,1,1)},lightMap:{type:"t",value:null},specularMap:{type:"t",value:null},envMap:{type:"t",value:null},flipEnvMap:{type:"f",value:-1},useRefract:{type:"i",value:0},reflectivity:{type:"f",value:1},refractionRatio:{type:"f",value:.98},combine:{type:"i",value:0},morphTargetInfluences:{type:"f",value:0}},bump:{bumpMap:{type:"t",value:null},bumpScale:{type:"f",value:1}},normalmap:{normalMap:{type:"t",value:null},normalScale:{type:"v2",value:new e.Vector2(1,1)}},fog:{fogDensity:{type:"f",value:25e-5},fogNear:{type:"f",value:1},fogFar:{type:"f",value:2e3},fogColor:{type:"c",value:new e.Color(16777215)}},lights:{ambientLightColor:{type:"fv",value:[]},directionalLightDirection:{type:"fv",value:[]},directionalLightColor:{type:"fv",value:[]},hemisphereLightDirection:{type:"fv",value:[]},hemisphereLightSkyColor:{type:"fv",value:[]},hemisphereLightGroundColor:{type:"fv",value:[]},pointLightColor:{type:"fv",value:[]},pointLightPosition:{type:"fv",value:[]},pointLightDistance:{type:"fv1",value:[]},spotLightColor:{type:"fv",value:[]},spotLightPosition:{type:"fv",value:[]},spotLightDirection:{type:"fv",value:[]},spotLightDistance:{type:"fv1",value:[]},spotLightAngleCos:{type:"fv1",value:[]},spotLightExponent:{type:"fv1",value:[]}},particle:{psColor:{type:"c",value:new e.Color(15658734)},opacity:{type:"f",value:1},size:{type:"f",value:1},scale:{type:"f",value:1},map:{type:"t",value:null},fogDensity:{type:"f",value:25e-5},fogNear:{type:"f",value:1},fogFar:{type:"f",value:2e3},fogColor:{type:"c",value:new e.Color(16777215)}},shadowmap:{shadowMap:{type:"tv",value:[]},shadowMapSize:{type:"v2v",value:[]},shadowBias:{type:"fv1",value:[]},shadowDarkness:{type:"fv1",value:[]},shadowMatrix:{type:"m4v",value:[]}}},e.ShaderLib={basic:{uniforms:e.UniformsUtils.merge([e.UniformsLib.common,e.UniformsLib.fog,e.UniformsLib.shadowmap]),vertexShader:[e.ShaderChunk.map_pars_vertex,e.ShaderChunk.lightmap_pars_vertex,e.ShaderChunk.envmap_pars_vertex,e.ShaderChunk.color_pars_vertex,e.ShaderChunk.morphtarget_pars_vertex,e.ShaderChunk.skinning_pars_vertex,e.ShaderChunk.shadowmap_pars_vertex,"void main() {",e.ShaderChunk.map_vertex,e.ShaderChunk.lightmap_vertex,e.ShaderChunk.color_vertex,e.ShaderChunk.skinbase_vertex,"#ifdef USE_ENVMAP",e.ShaderChunk.morphnormal_vertex,e.ShaderChunk.skinnormal_vertex,e.ShaderChunk.defaultnormal_vertex,"#endif",e.ShaderChunk.morphtarget_vertex,e.ShaderChunk.skinning_vertex,e.ShaderChunk.default_vertex,e.ShaderChunk.worldpos_vertex,e.ShaderChunk.envmap_vertex,e.ShaderChunk.shadowmap_vertex,"}"].join("\n"),fragmentShader:["uniform vec3 diffuse;\nuniform float opacity;",e.ShaderChunk.color_pars_fragment,e.ShaderChunk.map_pars_fragment,e.ShaderChunk.lightmap_pars_fragment,e.ShaderChunk.envmap_pars_fragment,e.ShaderChunk.fog_pars_fragment,e.ShaderChunk.shadowmap_pars_fragment,e.ShaderChunk.specularmap_pars_fragment,"void main() {\ngl_FragColor = vec4( diffuse, opacity );",e.ShaderChunk.map_fragment,e.ShaderChunk.alphatest_fragment,e.ShaderChunk.specularmap_fragment,e.ShaderChunk.lightmap_fragment,e.ShaderChunk.color_fragment,e.ShaderChunk.envmap_fragment,e.ShaderChunk.shadowmap_fragment,e.ShaderChunk.linear_to_gamma_fragment,e.ShaderChunk.fog_fragment,"}"].join("\n")},lambert:{uniforms:e.UniformsUtils.merge([e.UniformsLib.common,e.UniformsLib.fog,e.UniformsLib.lights,e.UniformsLib.shadowmap,{ambient:{type:"c",value:new e.Color(16777215)},emissive:{type:"c",value:new e.Color(0)},wrapRGB:{type:"v3",value:new e.Vector3(1,1,1)}}]),vertexShader:["#define LAMBERT\nvarying vec3 vLightFront;\n#ifdef DOUBLE_SIDED\nvarying vec3 vLightBack;\n#endif",e.ShaderChunk.map_pars_vertex,e.ShaderChunk.lightmap_pars_vertex,e.ShaderChunk.envmap_pars_vertex,e.ShaderChunk.lights_lambert_pars_vertex,e.ShaderChunk.color_pars_vertex,e.ShaderChunk.morphtarget_pars_vertex,e.ShaderChunk.skinning_pars_vertex,e.ShaderChunk.shadowmap_pars_vertex,"void main() {",e.ShaderChunk.map_vertex,e.ShaderChunk.lightmap_vertex,e.ShaderChunk.color_vertex,e.ShaderChunk.morphnormal_vertex,e.ShaderChunk.skinbase_vertex,e.ShaderChunk.skinnormal_vertex,e.ShaderChunk.defaultnormal_vertex,e.ShaderChunk.morphtarget_vertex,e.ShaderChunk.skinning_vertex,e.ShaderChunk.default_vertex,e.ShaderChunk.worldpos_vertex,e.ShaderChunk.envmap_vertex,e.ShaderChunk.lights_lambert_vertex,e.ShaderChunk.shadowmap_vertex,"}"].join("\n"),fragmentShader:["uniform float opacity;\nvarying vec3 vLightFront;\n#ifdef DOUBLE_SIDED\nvarying vec3 vLightBack;\n#endif",e.ShaderChunk.color_pars_fragment,e.ShaderChunk.map_pars_fragment,e.ShaderChunk.lightmap_pars_fragment,e.ShaderChunk.envmap_pars_fragment,e.ShaderChunk.fog_pars_fragment,e.ShaderChunk.shadowmap_pars_fragment,e.ShaderChunk.specularmap_pars_fragment,"void main() {\ngl_FragColor = vec4( vec3 ( 1.0 ), opacity );",e.ShaderChunk.map_fragment,e.ShaderChunk.alphatest_fragment,e.ShaderChunk.specularmap_fragment,"#ifdef DOUBLE_SIDED\nif ( gl_FrontFacing )\ngl_FragColor.xyz *= vLightFront;\nelse\ngl_FragColor.xyz *= vLightBack;\n#else\ngl_FragColor.xyz *= vLightFront;\n#endif",e.ShaderChunk.lightmap_fragment,e.ShaderChunk.color_fragment,e.ShaderChunk.envmap_fragment,e.ShaderChunk.shadowmap_fragment,e.ShaderChunk.linear_to_gamma_fragment,e.ShaderChunk.fog_fragment,"}"].join("\n")},phong:{uniforms:e.UniformsUtils.merge([e.UniformsLib.common,e.UniformsLib.bump,e.UniformsLib.normalmap,e.UniformsLib.fog,e.UniformsLib.lights,e.UniformsLib.shadowmap,{ambient:{type:"c",value:new e.Color(16777215)},emissive:{type:"c",value:new e.Color(0)},specular:{type:"c",value:new e.Color(1118481)},shininess:{type:"f",value:30},wrapRGB:{type:"v3",value:new e.Vector3(1,1,1)}}]),vertexShader:["#define PHONG\nvarying vec3 vViewPosition;\nvarying vec3 vNormal;",e.ShaderChunk.map_pars_vertex,e.ShaderChunk.lightmap_pars_vertex,e.ShaderChunk.envmap_pars_vertex,e.ShaderChunk.lights_phong_pars_vertex,e.ShaderChunk.color_pars_vertex,e.ShaderChunk.morphtarget_pars_vertex,e.ShaderChunk.skinning_pars_vertex,e.ShaderChunk.shadowmap_pars_vertex,"void main() {",e.ShaderChunk.map_vertex,e.ShaderChunk.lightmap_vertex,e.ShaderChunk.color_vertex,e.ShaderChunk.morphnormal_vertex,e.ShaderChunk.skinbase_vertex,e.ShaderChunk.skinnormal_vertex,e.ShaderChunk.defaultnormal_vertex,"vNormal = normalize( transformedNormal );",e.ShaderChunk.morphtarget_vertex,e.ShaderChunk.skinning_vertex,e.ShaderChunk.default_vertex,"vViewPosition = -mvPosition.xyz;",e.ShaderChunk.worldpos_vertex,e.ShaderChunk.envmap_vertex,e.ShaderChunk.lights_phong_vertex,e.ShaderChunk.shadowmap_vertex,"}"].join("\n"),fragmentShader:["uniform vec3 diffuse;\nuniform float opacity;\nuniform vec3 ambient;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;",e.ShaderChunk.color_pars_fragment,e.ShaderChunk.map_pars_fragment,e.ShaderChunk.lightmap_pars_fragment,e.ShaderChunk.envmap_pars_fragment,e.ShaderChunk.fog_pars_fragment,e.ShaderChunk.lights_phong_pars_fragment,e.ShaderChunk.shadowmap_pars_fragment,e.ShaderChunk.bumpmap_pars_fragment,e.ShaderChunk.normalmap_pars_fragment,e.ShaderChunk.specularmap_pars_fragment,"void main() {\ngl_FragColor = vec4( vec3 ( 1.0 ), opacity );",e.ShaderChunk.map_fragment,e.ShaderChunk.alphatest_fragment,e.ShaderChunk.specularmap_fragment,e.ShaderChunk.lights_phong_fragment,e.ShaderChunk.lightmap_fragment,e.ShaderChunk.color_fragment,e.ShaderChunk.envmap_fragment,e.ShaderChunk.shadowmap_fragment,e.ShaderChunk.linear_to_gamma_fragment,e.ShaderChunk.fog_fragment,"}"].join("\n")},particle_basic:{uniforms:e.UniformsUtils.merge([e.UniformsLib.particle,e.UniformsLib.shadowmap]),vertexShader:["uniform float size;\nuniform float scale;",e.ShaderChunk.color_pars_vertex,e.ShaderChunk.shadowmap_pars_vertex,"void main() {",e.ShaderChunk.color_vertex,"vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n#ifdef USE_SIZEATTENUATION\ngl_PointSize = size * ( scale / length( mvPosition.xyz ) );\n#else\ngl_PointSize = size;\n#endif\ngl_Position = projectionMatrix * mvPosition;",e.ShaderChunk.worldpos_vertex,e.ShaderChunk.shadowmap_vertex,"}"].join("\n"),fragmentShader:["uniform vec3 psColor;\nuniform float opacity;",e.ShaderChunk.color_pars_fragment,e.ShaderChunk.map_particle_pars_fragment,e.ShaderChunk.fog_pars_fragment,e.ShaderChunk.shadowmap_pars_fragment,"void main() {\ngl_FragColor = vec4( psColor, opacity );",e.ShaderChunk.map_particle_fragment,e.ShaderChunk.alphatest_fragment,e.ShaderChunk.color_fragment,e.ShaderChunk.shadowmap_fragment,e.ShaderChunk.fog_fragment,"}"].join("\n")},dashed:{uniforms:e.UniformsUtils.merge([e.UniformsLib.common,e.UniformsLib.fog,{scale:{type:"f",value:1},dashSize:{type:"f",value:1},totalSize:{type:"f",value:2}}]),vertexShader:["uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;",e.ShaderChunk.color_pars_vertex,"void main() {",e.ShaderChunk.color_vertex,"vLineDistance = scale * lineDistance;\nvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\ngl_Position = projectionMatrix * mvPosition;\n}"].join("\n"),fragmentShader:["uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;",e.ShaderChunk.color_pars_fragment,e.ShaderChunk.fog_pars_fragment,"void main() {\nif ( mod( vLineDistance, totalSize ) > dashSize ) {\ndiscard;\n}\ngl_FragColor = vec4( diffuse, opacity );",e.ShaderChunk.color_fragment,e.ShaderChunk.fog_fragment,"}"].join("\n")},depth:{uniforms:{mNear:{type:"f",value:1},mFar:{type:"f",value:2e3},opacity:{type:"f",value:1}},vertexShader:"void main() {\ngl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",fragmentShader:"uniform float mNear;\nuniform float mFar;\nuniform float opacity;\nvoid main() {\nfloat depth = gl_FragCoord.z / gl_FragCoord.w;\nfloat color = 1.0 - smoothstep( mNear, mFar, depth );\ngl_FragColor = vec4( vec3( color ), opacity );\n}"},normal:{uniforms:{opacity:{type:"f",value:1}},vertexShader:["varying vec3 vNormal;",e.ShaderChunk.morphtarget_pars_vertex,"void main() {\nvNormal = normalize( normalMatrix * normal );",e.ShaderChunk.morphtarget_vertex,e.ShaderChunk.default_vertex,"}"].join("\n"),fragmentShader:"uniform float opacity;\nvarying vec3 vNormal;\nvoid main() {\ngl_FragColor = vec4( 0.5 * normalize( vNormal ) + 0.5, opacity );\n}"},normalmap:{uniforms:e.UniformsUtils.merge([e.UniformsLib.fog,e.UniformsLib.lights,e.UniformsLib.shadowmap,{enableAO:{type:"i",value:0},enableDiffuse:{type:"i",value:0},enableSpecular:{type:"i",value:0},enableReflection:{type:"i",value:0},enableDisplacement:{type:"i",value:0},tDisplacement:{type:"t",value:null},tDiffuse:{type:"t",value:null},tCube:{type:"t",value:null},tNormal:{type:"t",value:null},tSpecular:{type:"t",value:null},tAO:{type:"t",value:null},uNormalScale:{type:"v2",value:new e.Vector2(1,1)},uDisplacementBias:{type:"f",value:0},uDisplacementScale:{type:"f",value:1},uDiffuseColor:{type:"c",value:new e.Color(16777215)},uSpecularColor:{type:"c",value:new e.Color(1118481)},uAmbientColor:{type:"c",value:new e.Color(16777215)},uShininess:{type:"f",value:30},uOpacity:{type:"f",value:1},useRefract:{type:"i",value:0},uRefractionRatio:{type:"f",value:.98},uReflectivity:{type:"f",value:.5},uOffset:{type:"v2",value:new e.Vector2(0,0)},uRepeat:{type:"v2",value:new e.Vector2(1,1)},wrapRGB:{type:"v3",value:new e.Vector3(1,1,1)}}]),fragmentShader:["uniform vec3 uAmbientColor;\nuniform vec3 uDiffuseColor;\nuniform vec3 uSpecularColor;\nuniform float uShininess;\nuniform float uOpacity;\nuniform bool enableDiffuse;\nuniform bool enableSpecular;\nuniform bool enableAO;\nuniform bool enableReflection;\nuniform sampler2D tDiffuse;\nuniform sampler2D tNormal;\nuniform sampler2D tSpecular;\nuniform sampler2D tAO;\nuniform samplerCube tCube;\nuniform vec2 uNormalScale;\nuniform bool useRefract;\nuniform float uRefractionRatio;\nuniform float uReflectivity;\nvarying vec3 vTangent;\nvarying vec3 vBinormal;\nvarying vec3 vNormal;\nvarying vec2 vUv;\nuniform vec3 ambientLightColor;\n#if MAX_DIR_LIGHTS > 0\nuniform vec3 directionalLightColor[ MAX_DIR_LIGHTS ];\nuniform vec3 directionalLightDirection[ MAX_DIR_LIGHTS ];\n#endif\n#if MAX_HEMI_LIGHTS > 0\nuniform vec3 hemisphereLightSkyColor[ MAX_HEMI_LIGHTS ];\nuniform vec3 hemisphereLightGroundColor[ MAX_HEMI_LIGHTS ];\nuniform vec3 hemisphereLightDirection[ MAX_HEMI_LIGHTS ];\n#endif\n#if MAX_POINT_LIGHTS > 0\nuniform vec3 pointLightColor[ MAX_POINT_LIGHTS ];\nuniform vec3 pointLightPosition[ MAX_POINT_LIGHTS ];\nuniform float pointLightDistance[ MAX_POINT_LIGHTS ];\n#endif\n#if MAX_SPOT_LIGHTS > 0\nuniform vec3 spotLightColor[ MAX_SPOT_LIGHTS ];\nuniform vec3 spotLightPosition[ MAX_SPOT_LIGHTS ];\nuniform vec3 spotLightDirection[ MAX_SPOT_LIGHTS ];\nuniform float spotLightAngleCos[ MAX_SPOT_LIGHTS ];\nuniform float spotLightExponent[ MAX_SPOT_LIGHTS ];\nuniform float spotLightDistance[ MAX_SPOT_LIGHTS ];\n#endif\n#ifdef WRAP_AROUND\nuniform vec3 wrapRGB;\n#endif\nvarying vec3 vWorldPosition;\nvarying vec3 vViewPosition;",e.ShaderChunk.shadowmap_pars_fragment,e.ShaderChunk.fog_pars_fragment,"void main() {\ngl_FragColor = vec4( vec3( 1.0 ), uOpacity );\nvec3 specularTex = vec3( 1.0 );\nvec3 normalTex = texture2D( tNormal, vUv ).xyz * 2.0 - 1.0;\nnormalTex.xy *= uNormalScale;\nnormalTex = normalize( normalTex );\nif( enableDiffuse ) {\n#ifdef GAMMA_INPUT\nvec4 texelColor = texture2D( tDiffuse, vUv );\ntexelColor.xyz *= texelColor.xyz;\ngl_FragColor = gl_FragColor * texelColor;\n#else\ngl_FragColor = gl_FragColor * texture2D( tDiffuse, vUv );\n#endif\n}\nif( enableAO ) {\n#ifdef GAMMA_INPUT\nvec4 aoColor = texture2D( tAO, vUv );\naoColor.xyz *= aoColor.xyz;\ngl_FragColor.xyz = gl_FragColor.xyz * aoColor.xyz;\n#else\ngl_FragColor.xyz = gl_FragColor.xyz * texture2D( tAO, vUv ).xyz;\n#endif\n}\nif( enableSpecular )\nspecularTex = texture2D( tSpecular, vUv ).xyz;\nmat3 tsb = mat3( normalize( vTangent ), normalize( vBinormal ), normalize( vNormal ) );\nvec3 finalNormal = tsb * normalTex;\n#ifdef FLIP_SIDED\nfinalNormal = -finalNormal;\n#endif\nvec3 normal = normalize( finalNormal );\nvec3 viewPosition = normalize( vViewPosition );\n#if MAX_POINT_LIGHTS > 0\nvec3 pointDiffuse = vec3( 0.0 );\nvec3 pointSpecular = vec3( 0.0 );\nfor ( int i = 0; i < MAX_POINT_LIGHTS; i ++ ) {\nvec4 lPosition = viewMatrix * vec4( pointLightPosition[ i ], 1.0 );\nvec3 pointVector = lPosition.xyz + vViewPosition.xyz;\nfloat pointDistance = 1.0;\nif ( pointLightDistance[ i ] > 0.0 )\npointDistance = 1.0 - min( ( length( pointVector ) / pointLightDistance[ i ] ), 1.0 );\npointVector = normalize( pointVector );\n#ifdef WRAP_AROUND\nfloat pointDiffuseWeightFull = max( dot( normal, pointVector ), 0.0 );\nfloat pointDiffuseWeightHalf = max( 0.5 * dot( normal, pointVector ) + 0.5, 0.0 );\nvec3 pointDiffuseWeight = mix( vec3 ( pointDiffuseWeightFull ), vec3( pointDiffuseWeightHalf ), wrapRGB );\n#else\nfloat pointDiffuseWeight = max( dot( normal, pointVector ), 0.0 );\n#endif\npointDiffuse += pointDistance * pointLightColor[ i ] * uDiffuseColor * pointDiffuseWeight;\nvec3 pointHalfVector = normalize( pointVector + viewPosition );\nfloat pointDotNormalHalf = max( dot( normal, pointHalfVector ), 0.0 );\nfloat pointSpecularWeight = specularTex.r * max( pow( pointDotNormalHalf, uShininess ), 0.0 );\n#ifdef PHYSICALLY_BASED_SHADING\nfloat specularNormalization = ( uShininess + 2.0001 ) / 8.0;\nvec3 schlick = uSpecularColor + vec3( 1.0 - uSpecularColor ) * pow( 1.0 - dot( pointVector, pointHalfVector ), 5.0 );\npointSpecular += schlick * pointLightColor[ i ] * pointSpecularWeight * pointDiffuseWeight * pointDistance * specularNormalization;\n#else\npointSpecular += pointDistance * pointLightColor[ i ] * uSpecularColor * pointSpecularWeight * pointDiffuseWeight;\n#endif\n}\n#endif\n#if MAX_SPOT_LIGHTS > 0\nvec3 spotDiffuse = vec3( 0.0 );\nvec3 spotSpecular = vec3( 0.0 );\nfor ( int i = 0; i < MAX_SPOT_LIGHTS; i ++ ) {\nvec4 lPosition = viewMatrix * vec4( spotLightPosition[ i ], 1.0 );\nvec3 spotVector = lPosition.xyz + vViewPosition.xyz;\nfloat spotDistance = 1.0;\nif ( spotLightDistance[ i ] > 0.0 )\nspotDistance = 1.0 - min( ( length( spotVector ) / spotLightDistance[ i ] ), 1.0 );\nspotVector = normalize( spotVector );\nfloat spotEffect = dot( spotLightDirection[ i ], normalize( spotLightPosition[ i ] - vWorldPosition ) );\nif ( spotEffect > spotLightAngleCos[ i ] ) {\nspotEffect = max( pow( spotEffect, spotLightExponent[ i ] ), 0.0 );\n#ifdef WRAP_AROUND\nfloat spotDiffuseWeightFull = max( dot( normal, spotVector ), 0.0 );\nfloat spotDiffuseWeightHalf = max( 0.5 * dot( normal, spotVector ) + 0.5, 0.0 );\nvec3 spotDiffuseWeight = mix( vec3 ( spotDiffuseWeightFull ), vec3( spotDiffuseWeightHalf ), wrapRGB );\n#else\nfloat spotDiffuseWeight = max( dot( normal, spotVector ), 0.0 );\n#endif\nspotDiffuse += spotDistance * spotLightColor[ i ] * uDiffuseColor * spotDiffuseWeight * spotEffect;\nvec3 spotHalfVector = normalize( spotVector + viewPosition );\nfloat spotDotNormalHalf = max( dot( normal, spotHalfVector ), 0.0 );\nfloat spotSpecularWeight = specularTex.r * max( pow( spotDotNormalHalf, uShininess ), 0.0 );\n#ifdef PHYSICALLY_BASED_SHADING\nfloat specularNormalization = ( uShininess + 2.0001 ) / 8.0;\nvec3 schlick = uSpecularColor + vec3( 1.0 - uSpecularColor ) * pow( 1.0 - dot( spotVector, spotHalfVector ), 5.0 );\nspotSpecular += schlick * spotLightColor[ i ] * spotSpecularWeight * spotDiffuseWeight * spotDistance * specularNormalization * spotEffect;\n#else\nspotSpecular += spotDistance * spotLightColor[ i ] * uSpecularColor * spotSpecularWeight * spotDiffuseWeight * spotEffect;\n#endif\n}\n}\n#endif\n#if MAX_DIR_LIGHTS > 0\nvec3 dirDiffuse = vec3( 0.0 );\nvec3 dirSpecular = vec3( 0.0 );\nfor( int i = 0; i < MAX_DIR_LIGHTS; i++ ) {\nvec4 lDirection = viewMatrix * vec4( directionalLightDirection[ i ], 0.0 );\nvec3 dirVector = normalize( lDirection.xyz );\n#ifdef WRAP_AROUND\nfloat directionalLightWeightingFull = max( dot( normal, dirVector ), 0.0 );\nfloat directionalLightWeightingHalf = max( 0.5 * dot( normal, dirVector ) + 0.5, 0.0 );\nvec3 dirDiffuseWeight = mix( vec3( directionalLightWeightingFull ), vec3( directionalLightWeightingHalf ), wrapRGB );\n#else\nfloat dirDiffuseWeight = max( dot( normal, dirVector ), 0.0 );\n#endif\ndirDiffuse += directionalLightColor[ i ] * uDiffuseColor * dirDiffuseWeight;\nvec3 dirHalfVector = normalize( dirVector + viewPosition );\nfloat dirDotNormalHalf = max( dot( normal, dirHalfVector ), 0.0 );\nfloat dirSpecularWeight = specularTex.r * max( pow( dirDotNormalHalf, uShininess ), 0.0 );\n#ifdef PHYSICALLY_BASED_SHADING\nfloat specularNormalization = ( uShininess + 2.0001 ) / 8.0;\nvec3 schlick = uSpecularColor + vec3( 1.0 - uSpecularColor ) * pow( 1.0 - dot( dirVector, dirHalfVector ), 5.0 );\ndirSpecular += schlick * directionalLightColor[ i ] * dirSpecularWeight * dirDiffuseWeight * specularNormalization;\n#else\ndirSpecular += directionalLightColor[ i ] * uSpecularColor * dirSpecularWeight * dirDiffuseWeight;\n#endif\n}\n#endif\n#if MAX_HEMI_LIGHTS > 0\nvec3 hemiDiffuse = vec3( 0.0 );\nvec3 hemiSpecular = vec3( 0.0 );\nfor( int i = 0; i < MAX_HEMI_LIGHTS; i ++ ) {\nvec4 lDirection = viewMatrix * vec4( hemisphereLightDirection[ i ], 0.0 );\nvec3 lVector = normalize( lDirection.xyz );\nfloat dotProduct = dot( normal, lVector );\nfloat hemiDiffuseWeight = 0.5 * dotProduct + 0.5;\nvec3 hemiColor = mix( hemisphereLightGroundColor[ i ], hemisphereLightSkyColor[ i ], hemiDiffuseWeight );\nhemiDiffuse += uDiffuseColor * hemiColor;\nvec3 hemiHalfVectorSky = normalize( lVector + viewPosition );\nfloat hemiDotNormalHalfSky = 0.5 * dot( normal, hemiHalfVectorSky ) + 0.5;\nfloat hemiSpecularWeightSky = specularTex.r * max( pow( hemiDotNormalHalfSky, uShininess ), 0.0 );\nvec3 lVectorGround = -lVector;\nvec3 hemiHalfVectorGround = normalize( lVectorGround + viewPosition );\nfloat hemiDotNormalHalfGround = 0.5 * dot( normal, hemiHalfVectorGround ) + 0.5;\nfloat hemiSpecularWeightGround = specularTex.r * max( pow( hemiDotNormalHalfGround, uShininess ), 0.0 );\n#ifdef PHYSICALLY_BASED_SHADING\nfloat dotProductGround = dot( normal, lVectorGround );\nfloat specularNormalization = ( uShininess + 2.0001 ) / 8.0;\nvec3 schlickSky = uSpecularColor + vec3( 1.0 - uSpecularColor ) * pow( 1.0 - dot( lVector, hemiHalfVectorSky ), 5.0 );\nvec3 schlickGround = uSpecularColor + vec3( 1.0 - uSpecularColor ) * pow( 1.0 - dot( lVectorGround, hemiHalfVectorGround ), 5.0 );\nhemiSpecular += hemiColor * specularNormalization * ( schlickSky * hemiSpecularWeightSky * max( dotProduct, 0.0 ) + schlickGround * hemiSpecularWeightGround * max( dotProductGround, 0.0 ) );\n#else\nhemiSpecular += uSpecularColor * hemiColor * ( hemiSpecularWeightSky + hemiSpecularWeightGround ) * hemiDiffuseWeight;\n#endif\n}\n#endif\nvec3 totalDiffuse = vec3( 0.0 );\nvec3 totalSpecular = vec3( 0.0 );\n#if MAX_DIR_LIGHTS > 0\ntotalDiffuse += dirDiffuse;\ntotalSpecular += dirSpecular;\n#endif\n#if MAX_HEMI_LIGHTS > 0\ntotalDiffuse += hemiDiffuse;\ntotalSpecular += hemiSpecular;\n#endif\n#if MAX_POINT_LIGHTS > 0\ntotalDiffuse += pointDiffuse;\ntotalSpecular += pointSpecular;\n#endif\n#if MAX_SPOT_LIGHTS > 0\ntotalDiffuse += spotDiffuse;\ntotalSpecular += spotSpecular;\n#endif\n#ifdef METAL\ngl_FragColor.xyz = gl_FragColor.xyz * ( totalDiffuse + ambientLightColor * uAmbientColor + totalSpecular );\n#else\ngl_FragColor.xyz = gl_FragColor.xyz * ( totalDiffuse + ambientLightColor * uAmbientColor ) + totalSpecular;\n#endif\nif ( enableReflection ) {\nvec3 vReflect;\nvec3 cameraToVertex = normalize( vWorldPosition - cameraPosition );\nif ( useRefract ) {\nvReflect = refract( cameraToVertex, normal, uRefractionRatio );\n} else {\nvReflect = reflect( cameraToVertex, normal );\n}\nvec4 cubeColor = textureCube( tCube, vec3( -vReflect.x, vReflect.yz ) );\n#ifdef GAMMA_INPUT\ncubeColor.xyz *= cubeColor.xyz;\n#endif\ngl_FragColor.xyz = mix( gl_FragColor.xyz, cubeColor.xyz, specularTex.r * uReflectivity );\n}",e.ShaderChunk.shadowmap_fragment,e.ShaderChunk.linear_to_gamma_fragment,e.ShaderChunk.fog_fragment,"}"].join("\n"),vertexShader:["attribute vec4 tangent;\nuniform vec2 uOffset;\nuniform vec2 uRepeat;\nuniform bool enableDisplacement;\n#ifdef VERTEX_TEXTURES\nuniform sampler2D tDisplacement;\nuniform float uDisplacementScale;\nuniform float uDisplacementBias;\n#endif\nvarying vec3 vTangent;\nvarying vec3 vBinormal;\nvarying vec3 vNormal;\nvarying vec2 vUv;\nvarying vec3 vWorldPosition;\nvarying vec3 vViewPosition;",e.ShaderChunk.skinning_pars_vertex,e.ShaderChunk.shadowmap_pars_vertex,"void main() {",e.ShaderChunk.skinbase_vertex,e.ShaderChunk.skinnormal_vertex,"#ifdef USE_SKINNING\nvNormal = normalize( normalMatrix * skinnedNormal.xyz );\nvec4 skinnedTangent = skinMatrix * vec4( tangent.xyz, 0.0 );\nvTangent = normalize( normalMatrix * skinnedTangent.xyz );\n#else\nvNormal = normalize( normalMatrix * normal );\nvTangent = normalize( normalMatrix * tangent.xyz );\n#endif\nvBinormal = normalize( cross( vNormal, vTangent ) * tangent.w );\nvUv = uv * uRepeat + uOffset;\nvec3 displacedPosition;\n#ifdef VERTEX_TEXTURES\nif ( enableDisplacement ) {\nvec3 dv = texture2D( tDisplacement, uv ).xyz;\nfloat df = uDisplacementScale * dv.x + uDisplacementBias;\ndisplacedPosition = position + normalize( normal ) * df;\n} else {\n#ifdef USE_SKINNING\nvec4 skinVertex = vec4( position, 1.0 );\nvec4 skinned = boneMatX * skinVertex * skinWeight.x;\nskinned += boneMatY * skinVertex * skinWeight.y;\ndisplacedPosition = skinned.xyz;\n#else\ndisplacedPosition = position;\n#endif\n}\n#else\n#ifdef USE_SKINNING\nvec4 skinVertex = vec4( position, 1.0 );\nvec4 skinned = boneMatX * skinVertex * skinWeight.x;\nskinned += boneMatY * skinVertex * skinWeight.y;\ndisplacedPosition = skinned.xyz;\n#else\ndisplacedPosition = position;\n#endif\n#endif\nvec4 mvPosition = modelViewMatrix * vec4( displacedPosition, 1.0 );\nvec4 worldPosition = modelMatrix * vec4( displacedPosition, 1.0 );\ngl_Position = projectionMatrix * mvPosition;\nvWorldPosition = worldPosition.xyz;\nvViewPosition = -mvPosition.xyz;\n#ifdef USE_SHADOWMAP\nfor( int i = 0; i < MAX_SHADOWS; i ++ ) {\nvShadowCoord[ i ] = shadowMatrix[ i ] * worldPosition;\n}\n#endif\n}"].join("\n")},cube:{uniforms:{tCube:{type:"t",value:null},tFlip:{type:"f",value:-1}},vertexShader:"varying vec3 vWorldPosition;\nvoid main() {\nvec4 worldPosition = modelMatrix * vec4( position, 1.0 );\nvWorldPosition = worldPosition.xyz;\ngl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",fragmentShader:"uniform samplerCube tCube;\nuniform float tFlip;\nvarying vec3 vWorldPosition;\nvoid main() {\ngl_FragColor = textureCube( tCube, vec3( tFlip * vWorldPosition.x, vWorldPosition.yz ) );\n}"},depthRGBA:{uniforms:{},vertexShader:[e.ShaderChunk.morphtarget_pars_vertex,e.ShaderChunk.skinning_pars_vertex,"void main() {",e.ShaderChunk.skinbase_vertex,e.ShaderChunk.morphtarget_vertex,e.ShaderChunk.skinning_vertex,e.ShaderChunk.default_vertex,"}"].join("\n"),fragmentShader:"vec4 pack_depth( const in float depth ) {\nconst vec4 bit_shift = vec4( 256.0 * 256.0 * 256.0, 256.0 * 256.0, 256.0, 1.0 );\nconst vec4 bit_mask = vec4( 0.0, 1.0 / 256.0, 1.0 / 256.0, 1.0 / 256.0 );\nvec4 res = fract( depth * bit_shift );\nres -= res.xxyz * bit_mask;\nreturn res;\n}\nvoid main() {\ngl_FragData[ 0 ] = pack_depth( gl_FragCoord.z );\n}"}},e.WebGLRenderer=function(t){function i(e){if(e.__webglCustomAttributesList)for(var t in e.__webglCustomAttributesList)B.deleteBuffer(e.__webglCustomAttributesList[t].buffer)}function n(e,t){var i=e.vertices.length,n=t.material;if(n.attributes){void 0===e.__webglCustomAttributesList&&(e.__webglCustomAttributesList=[]);for(var r in n.attributes){var o=n.attributes[r];if(!o.__webglInitialized||o.createUniqueBuffers){o.__webglInitialized=!0;var a=1;"v2"===o.type?a=2:"v3"===o.type?a=3:"v4"===o.type?a=4:"c"===o.type&&(a=3),o.size=a,o.array=new Float32Array(i*a),o.buffer=B.createBuffer(),o.buffer.belongsToAttribute=r,o.needsUpdate=!0}e.__webglCustomAttributesList.push(o)}}}function r(e,t){var i=t.geometry,n=e.faces3,r=e.faces4,l=3*n.length+4*r.length,h=1*n.length+2*r.length,r=3*n.length+4*r.length,n=o(t,e),c=s(n),u=a(n),p=n.vertexColors?n.vertexColors:!1;if(e.__vertexArray=new Float32Array(3*l),u&&(e.__normalArray=new Float32Array(3*l)),i.hasTangents&&(e.__tangentArray=new Float32Array(4*l)),p&&(e.__colorArray=new Float32Array(3*l)),c&&((0<i.faceUvs.length||0<i.faceVertexUvs.length)&&(e.__uvArray=new Float32Array(2*l)),(1<i.faceUvs.length||1<i.faceVertexUvs.length)&&(e.__uv2Array=new Float32Array(2*l))),t.geometry.skinWeights.length&&t.geometry.skinIndices.length&&(e.__skinIndexArray=new Float32Array(4*l),e.__skinWeightArray=new Float32Array(4*l)),e.__faceArray=new Uint16Array(3*h),e.__lineArray=new Uint16Array(2*r),e.numMorphTargets)for(e.__morphTargetsArrays=[],i=0,c=e.numMorphTargets;c>i;i++)e.__morphTargetsArrays.push(new Float32Array(3*l));if(e.numMorphNormals)for(e.__morphNormalsArrays=[],i=0,c=e.numMorphNormals;c>i;i++)e.__morphNormalsArrays.push(new Float32Array(3*l));if(e.__webglFaceCount=3*h,e.__webglLineCount=2*r,n.attributes){void 0===e.__webglCustomAttributesList&&(e.__webglCustomAttributesList=[]);for(var f in n.attributes){var d,h=n.attributes[f],i={};for(d in h)i[d]=h[d];(!i.__webglInitialized||i.createUniqueBuffers)&&(i.__webglInitialized=!0,r=1,"v2"===i.type?r=2:"v3"===i.type?r=3:"v4"===i.type?r=4:"c"===i.type&&(r=3),i.size=r,i.array=new Float32Array(l*r),i.buffer=B.createBuffer(),i.buffer.belongsToAttribute=f,h.needsUpdate=!0,i.__original=h),e.__webglCustomAttributesList.push(i)}}e.__inittedArrays=!0}function o(t,i){return t.material instanceof e.MeshFaceMaterial?t.material.materials[i.materialIndex]:t.material}function a(t){return t instanceof e.MeshBasicMaterial&&!t.envMap||t instanceof e.MeshDepthMaterial?!1:t&&void 0!==t.shading&&t.shading===e.SmoothShading?e.SmoothShading:e.FlatShading}function s(t){return t.map||t.lightMap||t.bumpMap||t.normalMap||t.specularMap||t instanceof e.ShaderMaterial?!0:!1}function l(e){_t[e]||(B.enableVertexAttribArray(e),_t[e]=!0)}function h(){for(var e in _t)_t[e]&&(B.disableVertexAttribArray(e),_t[e]=!1)}function c(e,t){return e.z!==t.z?t.z-e.z:e.id-t.id}function u(e,t){return t[0]-e[0]}function p(e,t,i){if(e.length)for(var n=0,r=e.length;r>n;n++)tt=Q=null,J=et=ot=rt=ut=ct=at=-1,Et=!0,e[n].render(t,i,xt,wt),tt=Q=null,J=et=ot=rt=ut=ct=at=-1,Et=!0}function f(t,i,n,r,o,a,s,l){var h,c,u,p;i?(c=t.length-1,p=i=-1):(c=0,i=t.length,p=1);for(var f=c;f!==i;f+=p)if(h=t[f],h.render){if(c=h.object,u=h.buffer,l)h=l;else{if(h=h[n],!h)continue;s&&Y.setBlending(h.blending,h.blendEquation,h.blendSrc,h.blendDst),Y.setDepthTest(h.depthTest),Y.setDepthWrite(h.depthWrite),A(h.polygonOffset,h.polygonOffsetFactor,h.polygonOffsetUnits)}Y.setMaterialFaces(h),u instanceof e.BufferGeometry?Y.renderBufferDirect(r,o,a,h,u,c):Y.renderBuffer(r,o,a,h,u,c)}}function d(e,t,i,n,r,o,a){for(var s,l,h=0,c=e.length;c>h;h++)if(s=e[h],l=s.object,l.visible){if(a)s=a;else{if(s=s[t],!s)continue;o&&Y.setBlending(s.blending,s.blendEquation,s.blendSrc,s.blendDst),Y.setDepthTest(s.depthTest),Y.setDepthWrite(s.depthWrite),A(s.polygonOffset,s.polygonOffsetFactor,s.polygonOffsetUnits)}Y.renderImmediateObject(i,n,r,s,l)}}function m(t,i){var o,a,s,l;if(void 0===t.__webglInit&&(t.__webglInit=!0,t._modelViewMatrix=new e.Matrix4,t._normalMatrix=new e.Matrix3,void 0!==t.geometry&&void 0===t.geometry.__webglInit&&(t.geometry.__webglInit=!0,t.geometry.addEventListener("dispose",Bt)),a=t.geometry,void 0!==a))if(a instanceof e.BufferGeometry){var h,c;for(h in a.attributes)c="index"===h?B.ELEMENT_ARRAY_BUFFER:B.ARRAY_BUFFER,l=a.attributes[h],l.buffer=B.createBuffer(),B.bindBuffer(c,l.buffer),B.bufferData(c,l.array,B.STATIC_DRAW)}else if(t instanceof e.Mesh){if(s=t.material,void 0===a.geometryGroups){h=a;var u,p,f,d,m;c={};var v=h.morphTargets.length,y=h.morphNormals.length,b=s instanceof e.MeshFaceMaterial;for(h.geometryGroups={},s=0,u=h.faces.length;u>s;s++)p=h.faces[s],f=b?p.materialIndex:0,void 0===c[f]&&(c[f]={hash:f,counter:0}),m=c[f].hash+"_"+c[f].counter,void 0===h.geometryGroups[m]&&(h.geometryGroups[m]={faces3:[],faces4:[],materialIndex:f,vertices:0,numMorphTargets:v,numMorphNormals:y}),d=p instanceof e.Face3?3:4,65535<h.geometryGroups[m].vertices+d&&(c[f].counter+=1,m=c[f].hash+"_"+c[f].counter,void 0===h.geometryGroups[m]&&(h.geometryGroups[m]={faces3:[],faces4:[],materialIndex:f,vertices:0,numMorphTargets:v,numMorphNormals:y})),p instanceof e.Face3?h.geometryGroups[m].faces3.push(s):h.geometryGroups[m].faces4.push(s),h.geometryGroups[m].vertices+=d;h.geometryGroupsList=[];for(l in h.geometryGroups)h.geometryGroups[l].id=it++,h.geometryGroupsList.push(h.geometryGroups[l])}for(o in a.geometryGroups)if(l=a.geometryGroups[o],!l.__webglVertexBuffer){if(h=l,h.__webglVertexBuffer=B.createBuffer(),h.__webglNormalBuffer=B.createBuffer(),h.__webglTangentBuffer=B.createBuffer(),h.__webglColorBuffer=B.createBuffer(),h.__webglUVBuffer=B.createBuffer(),h.__webglUV2Buffer=B.createBuffer(),h.__webglSkinIndicesBuffer=B.createBuffer(),h.__webglSkinWeightsBuffer=B.createBuffer(),h.__webglFaceBuffer=B.createBuffer(),h.__webglLineBuffer=B.createBuffer(),v=c=void 0,h.numMorphTargets)for(h.__webglMorphTargetsBuffers=[],c=0,v=h.numMorphTargets;v>c;c++)h.__webglMorphTargetsBuffers.push(B.createBuffer());if(h.numMorphNormals)for(h.__webglMorphNormalsBuffers=[],c=0,v=h.numMorphNormals;v>c;c++)h.__webglMorphNormalsBuffers.push(B.createBuffer());Y.info.memory.geometries++,r(l,t),a.verticesNeedUpdate=!0,a.morphTargetsNeedUpdate=!0,a.elementsNeedUpdate=!0,a.uvsNeedUpdate=!0,a.normalsNeedUpdate=!0,a.tangentsNeedUpdate=!0,a.colorsNeedUpdate=!0 }}else t instanceof e.Ribbon?a.__webglVertexBuffer||(l=a,l.__webglVertexBuffer=B.createBuffer(),l.__webglColorBuffer=B.createBuffer(),l.__webglNormalBuffer=B.createBuffer(),Y.info.memory.geometries++,l=a,h=l.vertices.length,l.__vertexArray=new Float32Array(3*h),l.__colorArray=new Float32Array(3*h),l.__normalArray=new Float32Array(3*h),l.__webglVertexCount=h,n(l,t),a.verticesNeedUpdate=!0,a.colorsNeedUpdate=!0,a.normalsNeedUpdate=!0):t instanceof e.Line?a.__webglVertexBuffer||(l=a,l.__webglVertexBuffer=B.createBuffer(),l.__webglColorBuffer=B.createBuffer(),l.__webglLineDistanceBuffer=B.createBuffer(),Y.info.memory.geometries++,l=a,h=l.vertices.length,l.__vertexArray=new Float32Array(3*h),l.__colorArray=new Float32Array(3*h),l.__lineDistanceArray=new Float32Array(1*h),l.__webglLineCount=h,n(l,t),a.verticesNeedUpdate=!0,a.colorsNeedUpdate=!0,a.lineDistancesNeedUpdate=!0):t instanceof e.ParticleSystem&&!a.__webglVertexBuffer&&(l=a,l.__webglVertexBuffer=B.createBuffer(),l.__webglColorBuffer=B.createBuffer(),Y.info.memory.geometries++,l=a,h=l.vertices.length,l.__vertexArray=new Float32Array(3*h),l.__colorArray=new Float32Array(3*h),l.__sortArray=[],l.__webglParticleCount=h,n(l,t),a.verticesNeedUpdate=!0,a.colorsNeedUpdate=!0);if(void 0===t.__webglActive){if(t instanceof e.Mesh){if(a=t.geometry,a instanceof e.BufferGeometry)g(i.__webglObjects,a,t);else if(a instanceof e.Geometry)for(o in a.geometryGroups)l=a.geometryGroups[o],g(i.__webglObjects,l,t)}else t instanceof e.Ribbon||t instanceof e.Line||t instanceof e.ParticleSystem?(a=t.geometry,g(i.__webglObjects,a,t)):t instanceof e.ImmediateRenderObject||t.immediateRenderCallback?i.__webglObjectsImmediate.push({object:t,opaque:null,transparent:null}):t instanceof e.Sprite?i.__webglSprites.push(t):t instanceof e.LensFlare&&i.__webglFlares.push(t);t.__webglActive=!0}}function g(e,t,i){e.push({buffer:t,object:i,opaque:null,transparent:null})}function v(e){for(var t in e.attributes)if(e.attributes[t].needsUpdate)return!0;return!1}function y(e){for(var t in e.attributes)e.attributes[t].needsUpdate=!1}function b(t,i){t instanceof e.Mesh||t instanceof e.ParticleSystem||t instanceof e.Ribbon||t instanceof e.Line?x(i.__webglObjects,t):t instanceof e.Sprite?w(i.__webglSprites,t):t instanceof e.LensFlare?w(i.__webglFlares,t):(t instanceof e.ImmediateRenderObject||t.immediateRenderCallback)&&x(i.__webglObjectsImmediate,t),delete t.__webglActive}function x(e,t){for(var i=e.length-1;i>=0;i--)e[i].object===t&&e.splice(i,1)}function w(e,t){for(var i=e.length-1;i>=0;i--)e[i]===t&&e.splice(i,1)}function _(t,i,n,r,o){nt=0,r.needsUpdate&&(r.program&&Xt(r),Y.initMaterial(r,i,n,o),r.needsUpdate=!1),r.morphTargets&&!o.__webglMorphTargetInfluences&&(o.__webglMorphTargetInfluences=new Float32Array(Y.maxMorphTargets));var a=!1,s=r.program,l=s.uniforms,h=r.uniforms;if(s!==Q&&(B.useProgram(s),Q=s,a=!0),r.id!==J&&(J=r.id,a=!0),(a||t!==tt)&&(B.uniformMatrix4fv(l.projectionMatrix,!1,t.projectionMatrix.elements),t!==tt&&(tt=t)),r.skinning)if(Gt&&o.useVertexTexture){if(null!==l.boneTexture){var c=S();B.uniform1i(l.boneTexture,c),Y.setTexture(o.boneTexture,c)}}else null!==l.boneGlobalMatrices&&B.uniformMatrix4fv(l.boneGlobalMatrices,!1,o.boneMatrices);if(a){if(n&&r.fog&&(h.fogColor.value=n.color,n instanceof e.Fog?(h.fogNear.value=n.near,h.fogFar.value=n.far):n instanceof e.FogExp2&&(h.fogDensity.value=n.density)),r instanceof e.MeshPhongMaterial||r instanceof e.MeshLambertMaterial||r.lights){if(Et){for(var u,p,f,d,m=c=0,g=0,v=Pt,y=v.directional.colors,b=v.directional.positions,x=v.point.colors,w=v.point.positions,_=v.point.distances,C=v.spot.colors,A=v.spot.positions,E=v.spot.distances,P=v.spot.directions,R=v.spot.anglesCos,L=v.spot.exponents,N=v.hemi.skyColors,G=v.hemi.groundColors,V=v.hemi.positions,O=0,j=0,U=0,I=0,z=0,H=0,q=0,W=0,X=u=0,n=d=X=0,a=i.length;a>n;n++)u=i[n],u.onlyShadow||(p=u.color,f=u.intensity,d=u.distance,u instanceof e.AmbientLight?u.visible&&(Y.gammaInput?(c+=p.r*p.r,m+=p.g*p.g,g+=p.b*p.b):(c+=p.r,m+=p.g,g+=p.b)):u instanceof e.DirectionalLight?(z+=1,u.visible&&(At.getPositionFromMatrix(u.matrixWorld),Ct.getPositionFromMatrix(u.target.matrixWorld),At.sub(Ct),At.normalize(),0===At.x&&0===At.y&&0===At.z||(u=3*O,b[u]=At.x,b[u+1]=At.y,b[u+2]=At.z,Y.gammaInput?M(y,u,p,f*f):T(y,u,p,f),O+=1))):u instanceof e.PointLight?(H+=1,u.visible&&(X=3*j,Y.gammaInput?M(x,X,p,f*f):T(x,X,p,f),Ct.getPositionFromMatrix(u.matrixWorld),w[X]=Ct.x,w[X+1]=Ct.y,w[X+2]=Ct.z,_[j]=d,j+=1)):u instanceof e.SpotLight?(q+=1,u.visible&&(X=3*U,Y.gammaInput?M(C,X,p,f*f):T(C,X,p,f),Ct.getPositionFromMatrix(u.matrixWorld),A[X]=Ct.x,A[X+1]=Ct.y,A[X+2]=Ct.z,E[U]=d,At.copy(Ct),Ct.getPositionFromMatrix(u.target.matrixWorld),At.sub(Ct),At.normalize(),P[X]=At.x,P[X+1]=At.y,P[X+2]=At.z,R[U]=Math.cos(u.angle),L[U]=u.exponent,U+=1)):u instanceof e.HemisphereLight&&(W+=1,u.visible&&(At.getPositionFromMatrix(u.matrixWorld),At.normalize(),0===At.x&&0===At.y&&0===At.z||(d=3*I,V[d]=At.x,V[d+1]=At.y,V[d+2]=At.z,p=u.color,u=u.groundColor,Y.gammaInput?(f*=f,M(N,d,p,f),M(G,d,u,f)):(T(N,d,p,f),T(G,d,u,f)),I+=1))));for(n=3*O,a=Math.max(y.length,3*z);a>n;n++)y[n]=0;for(n=3*j,a=Math.max(x.length,3*H);a>n;n++)x[n]=0;for(n=3*U,a=Math.max(C.length,3*q);a>n;n++)C[n]=0;for(n=3*I,a=Math.max(N.length,3*W);a>n;n++)N[n]=0;for(n=3*I,a=Math.max(G.length,3*W);a>n;n++)G[n]=0;v.directional.length=O,v.point.length=j,v.spot.length=U,v.hemi.length=I,v.ambient[0]=c,v.ambient[1]=m,v.ambient[2]=g,Et=!1}n=Pt,h.ambientLightColor.value=n.ambient,h.directionalLightColor.value=n.directional.colors,h.directionalLightDirection.value=n.directional.positions,h.pointLightColor.value=n.point.colors,h.pointLightPosition.value=n.point.positions,h.pointLightDistance.value=n.point.distances,h.spotLightColor.value=n.spot.colors,h.spotLightPosition.value=n.spot.positions,h.spotLightDistance.value=n.spot.distances,h.spotLightDirection.value=n.spot.directions,h.spotLightAngleCos.value=n.spot.anglesCos,h.spotLightExponent.value=n.spot.exponents,h.hemisphereLightSkyColor.value=n.hemi.skyColors,h.hemisphereLightGroundColor.value=n.hemi.groundColors,h.hemisphereLightDirection.value=n.hemi.positions}if(r instanceof e.MeshBasicMaterial||r instanceof e.MeshLambertMaterial||r instanceof e.MeshPhongMaterial){h.opacity.value=r.opacity,Y.gammaInput?h.diffuse.value.copyGammaToLinear(r.color):h.diffuse.value=r.color,h.map.value=r.map,h.lightMap.value=r.lightMap,h.specularMap.value=r.specularMap,r.bumpMap&&(h.bumpMap.value=r.bumpMap,h.bumpScale.value=r.bumpScale),r.normalMap&&(h.normalMap.value=r.normalMap,h.normalScale.value.copy(r.normalScale));var K;r.map?K=r.map:r.specularMap?K=r.specularMap:r.normalMap?K=r.normalMap:r.bumpMap&&(K=r.bumpMap),void 0!==K&&(n=K.offset,K=K.repeat,h.offsetRepeat.value.set(n.x,n.y,K.x,K.y)),h.envMap.value=r.envMap,h.flipEnvMap.value=r.envMap instanceof e.WebGLRenderTargetCube?1:-1,h.reflectivity.value=r.reflectivity,h.refractionRatio.value=r.refractionRatio,h.combine.value=r.combine,h.useRefract.value=r.envMap&&r.envMap.mapping instanceof e.CubeRefractionMapping}if(r instanceof e.LineBasicMaterial?(h.diffuse.value=r.color,h.opacity.value=r.opacity):r instanceof e.LineDashedMaterial?(h.diffuse.value=r.color,h.opacity.value=r.opacity,h.dashSize.value=r.dashSize,h.totalSize.value=r.dashSize+r.gapSize,h.scale.value=r.scale):r instanceof e.ParticleBasicMaterial?(h.psColor.value=r.color,h.opacity.value=r.opacity,h.size.value=r.size,h.scale.value=F.height/2,h.map.value=r.map):r instanceof e.MeshPhongMaterial?(h.shininess.value=r.shininess,Y.gammaInput?(h.ambient.value.copyGammaToLinear(r.ambient),h.emissive.value.copyGammaToLinear(r.emissive),h.specular.value.copyGammaToLinear(r.specular)):(h.ambient.value=r.ambient,h.emissive.value=r.emissive,h.specular.value=r.specular),r.wrapAround&&h.wrapRGB.value.copy(r.wrapRGB)):r instanceof e.MeshLambertMaterial?(Y.gammaInput?(h.ambient.value.copyGammaToLinear(r.ambient),h.emissive.value.copyGammaToLinear(r.emissive)):(h.ambient.value=r.ambient,h.emissive.value=r.emissive),r.wrapAround&&h.wrapRGB.value.copy(r.wrapRGB)):r instanceof e.MeshDepthMaterial?(h.mNear.value=t.near,h.mFar.value=t.far,h.opacity.value=r.opacity):r instanceof e.MeshNormalMaterial&&(h.opacity.value=r.opacity),o.receiveShadow&&!r._shadowPass&&h.shadowMatrix)for(n=K=0,a=i.length;a>n;n++)c=i[n],c.castShadow&&(c instanceof e.SpotLight||c instanceof e.DirectionalLight&&!c.shadowCascade)&&(h.shadowMap.value[K]=c.shadowMap,h.shadowMapSize.value[K]=c.shadowMapSize,h.shadowMatrix.value[K]=c.shadowMatrix,h.shadowDarkness.value[K]=c.shadowDarkness,h.shadowBias.value[K]=c.shadowBias,K++);for(i=r.uniformsList,h=0,K=i.length;K>h;h++)if(a=s.uniforms[i[h][1]])if(n=i[h][0],m=n.type,c=n.value,"i"===m)B.uniform1i(a,c);else if("f"===m)B.uniform1f(a,c);else if("v2"===m)B.uniform2f(a,c.x,c.y);else if("v3"===m)B.uniform3f(a,c.x,c.y,c.z);else if("v4"===m)B.uniform4f(a,c.x,c.y,c.z,c.w);else if("c"===m)B.uniform3f(a,c.r,c.g,c.b);else if("iv1"===m)B.uniform1iv(a,c);else if("iv"===m)B.uniform3iv(a,c);else if("fv1"===m)B.uniform1fv(a,c);else if("fv"===m)B.uniform3fv(a,c);else if("v2v"===m){for(void 0===n._array&&(n._array=new Float32Array(2*c.length)),m=0,g=c.length;g>m;m++)v=2*m,n._array[v]=c[m].x,n._array[v+1]=c[m].y;B.uniform2fv(a,n._array)}else if("v3v"===m){for(void 0===n._array&&(n._array=new Float32Array(3*c.length)),m=0,g=c.length;g>m;m++)v=3*m,n._array[v]=c[m].x,n._array[v+1]=c[m].y,n._array[v+2]=c[m].z;B.uniform3fv(a,n._array)}else if("v4v"===m){for(void 0===n._array&&(n._array=new Float32Array(4*c.length)),m=0,g=c.length;g>m;m++)v=4*m,n._array[v]=c[m].x,n._array[v+1]=c[m].y,n._array[v+2]=c[m].z,n._array[v+3]=c[m].w;B.uniform4fv(a,n._array)}else if("m4"===m)void 0===n._array&&(n._array=new Float32Array(16)),c.flattenToArray(n._array),B.uniformMatrix4fv(a,!1,n._array);else if("m4v"===m){for(void 0===n._array&&(n._array=new Float32Array(16*c.length)),m=0,g=c.length;g>m;m++)c[m].flattenToArrayOffset(n._array,16*m);B.uniformMatrix4fv(a,!1,n._array)}else if("t"===m){if(v=c,c=S(),B.uniform1i(a,c),v)if(v.image instanceof Array&&6===v.image.length){if(n=v,a=c,6===n.image.length)if(n.needsUpdate){for(n.image.__webglTextureCube||(n.image.__webglTextureCube=B.createTexture(),Y.info.memory.textures++),B.activeTexture(B.TEXTURE0+a),B.bindTexture(B.TEXTURE_CUBE_MAP,n.image.__webglTextureCube),B.pixelStorei(B.UNPACK_FLIP_Y_WEBGL,n.flipY),a=n instanceof e.CompressedTexture,c=[],m=0;6>m;m++)Y.autoScaleCubemaps&&!a?(g=c,v=m,y=n.image[m],x=Dt,y.width<=x&&y.height<=x||(w=Math.max(y.width,y.height),b=Math.floor(y.width*x/w),x=Math.floor(y.height*x/w),w=document.createElement("canvas"),w.width=b,w.height=x,w.getContext("2d").drawImage(y,0,0,y.width,y.height,0,0,b,x),y=w),g[v]=y):c[m]=n.image[m];for(m=c[0],g=0===(m.width&m.width-1)&&0===(m.height&m.height-1),v=D(n.format),y=D(n.type),k(B.TEXTURE_CUBE_MAP,n,g),m=0;6>m;m++)if(a)for(x=c[m].mipmaps,w=0,_=x.length;_>w;w++)b=x[w],B.compressedTexImage2D(B.TEXTURE_CUBE_MAP_POSITIVE_X+m,w,v,b.width,b.height,0,b.data);else B.texImage2D(B.TEXTURE_CUBE_MAP_POSITIVE_X+m,0,v,v,y,c[m]);n.generateMipmaps&&g&&B.generateMipmap(B.TEXTURE_CUBE_MAP),n.needsUpdate=!1,n.onUpdate&&n.onUpdate()}else B.activeTexture(B.TEXTURE0+a),B.bindTexture(B.TEXTURE_CUBE_MAP,n.image.__webglTextureCube)}else v instanceof e.WebGLRenderTargetCube?(n=v,B.activeTexture(B.TEXTURE0+c),B.bindTexture(B.TEXTURE_CUBE_MAP,n.__webglTexture)):Y.setTexture(v,c)}else if("tv"===m){for(void 0===n._array&&(n._array=[]),m=0,g=n.value.length;g>m;m++)n._array[m]=S();for(B.uniform1iv(a,n._array),m=0,g=n.value.length;g>m;m++)v=n.value[m],c=n._array[m],v&&Y.setTexture(v,c)}(r instanceof e.ShaderMaterial||r instanceof e.MeshPhongMaterial||r.envMap)&&null!==l.cameraPosition&&(Ct.getPositionFromMatrix(t.matrixWorld),B.uniform3f(l.cameraPosition,Ct.x,Ct.y,Ct.z)),(r instanceof e.MeshPhongMaterial||r instanceof e.MeshLambertMaterial||r instanceof e.ShaderMaterial||r.skinning)&&null!==l.viewMatrix&&B.uniformMatrix4fv(l.viewMatrix,!1,t.matrixWorldInverse.elements)}return B.uniformMatrix4fv(l.modelViewMatrix,!1,o._modelViewMatrix.elements),l.normalMatrix&&B.uniformMatrix3fv(l.normalMatrix,!1,o._normalMatrix.elements),null!==l.modelMatrix&&B.uniformMatrix4fv(l.modelMatrix,!1,o.matrixWorld.elements),s}function S(){var e=nt;return e>=Rt&&console.warn("WebGLRenderer: trying to use "+e+" texture units while this GPU supports only "+Rt),nt+=1,e}function M(e,t,i,n){e[t]=i.r*i.r*n,e[t+1]=i.g*i.g*n,e[t+2]=i.b*i.b*n}function T(e,t,i,n){e[t]=i.r*n,e[t+1]=i.g*n,e[t+2]=i.b*n}function C(e){e!==mt&&(B.lineWidth(e),mt=e)}function A(e,t,i){pt!==e&&(e?B.enable(B.POLYGON_OFFSET_FILL):B.disable(B.POLYGON_OFFSET_FILL),pt=e),!e||ft===t&&dt===i||(B.polygonOffset(t,i),ft=t,dt=i)}function E(e){for(var e=e.split("\n"),t=0,i=e.length;i>t;t++)e[t]=t+1+": "+e[t];return e.join("\n")}function P(e,t){var i;return"fragment"===e?i=B.createShader(B.FRAGMENT_SHADER):"vertex"===e&&(i=B.createShader(B.VERTEX_SHADER)),B.shaderSource(i,t),B.compileShader(i),B.getShaderParameter(i,B.COMPILE_STATUS)?i:(console.error(B.getShaderInfoLog(i)),console.error(E(t)),null)}function k(t,i,n){n?(B.texParameteri(t,B.TEXTURE_WRAP_S,D(i.wrapS)),B.texParameteri(t,B.TEXTURE_WRAP_T,D(i.wrapT)),B.texParameteri(t,B.TEXTURE_MAG_FILTER,D(i.magFilter)),B.texParameteri(t,B.TEXTURE_MIN_FILTER,D(i.minFilter))):(B.texParameteri(t,B.TEXTURE_WRAP_S,B.CLAMP_TO_EDGE),B.texParameteri(t,B.TEXTURE_WRAP_T,B.CLAMP_TO_EDGE),B.texParameteri(t,B.TEXTURE_MAG_FILTER,L(i.magFilter)),B.texParameteri(t,B.TEXTURE_MIN_FILTER,L(i.minFilter))),W&&i.type!==e.FloatType&&(1<i.anisotropy||i.__oldAnisotropy)&&(B.texParameterf(t,W.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(i.anisotropy,Ft)),i.__oldAnisotropy=i.anisotropy)}function R(e,t){B.bindRenderbuffer(B.RENDERBUFFER,e),t.depthBuffer&&!t.stencilBuffer?(B.renderbufferStorage(B.RENDERBUFFER,B.DEPTH_COMPONENT16,t.width,t.height),B.framebufferRenderbuffer(B.FRAMEBUFFER,B.DEPTH_ATTACHMENT,B.RENDERBUFFER,e)):t.depthBuffer&&t.stencilBuffer?(B.renderbufferStorage(B.RENDERBUFFER,B.DEPTH_STENCIL,t.width,t.height),B.framebufferRenderbuffer(B.FRAMEBUFFER,B.DEPTH_STENCIL_ATTACHMENT,B.RENDERBUFFER,e)):B.renderbufferStorage(B.RENDERBUFFER,B.RGBA4,t.width,t.height)}function L(t){return t===e.NearestFilter||t===e.NearestMipMapNearestFilter||t===e.NearestMipMapLinearFilter?B.NEAREST:B.LINEAR}function D(t){if(t===e.RepeatWrapping)return B.REPEAT;if(t===e.ClampToEdgeWrapping)return B.CLAMP_TO_EDGE;if(t===e.MirroredRepeatWrapping)return B.MIRRORED_REPEAT;if(t===e.NearestFilter)return B.NEAREST;if(t===e.NearestMipMapNearestFilter)return B.NEAREST_MIPMAP_NEAREST;if(t===e.NearestMipMapLinearFilter)return B.NEAREST_MIPMAP_LINEAR;if(t===e.LinearFilter)return B.LINEAR;if(t===e.LinearMipMapNearestFilter)return B.LINEAR_MIPMAP_NEAREST;if(t===e.LinearMipMapLinearFilter)return B.LINEAR_MIPMAP_LINEAR;if(t===e.UnsignedByteType)return B.UNSIGNED_BYTE;if(t===e.UnsignedShort4444Type)return B.UNSIGNED_SHORT_4_4_4_4;if(t===e.UnsignedShort5551Type)return B.UNSIGNED_SHORT_5_5_5_1;if(t===e.UnsignedShort565Type)return B.UNSIGNED_SHORT_5_6_5;if(t===e.ByteType)return B.BYTE;if(t===e.ShortType)return B.SHORT;if(t===e.UnsignedShortType)return B.UNSIGNED_SHORT;if(t===e.IntType)return B.INT;if(t===e.UnsignedIntType)return B.UNSIGNED_INT;if(t===e.FloatType)return B.FLOAT;if(t===e.AlphaFormat)return B.ALPHA;if(t===e.RGBFormat)return B.RGB;if(t===e.RGBAFormat)return B.RGBA;if(t===e.LuminanceFormat)return B.LUMINANCE;if(t===e.LuminanceAlphaFormat)return B.LUMINANCE_ALPHA;if(t===e.AddEquation)return B.FUNC_ADD;if(t===e.SubtractEquation)return B.FUNC_SUBTRACT;if(t===e.ReverseSubtractEquation)return B.FUNC_REVERSE_SUBTRACT;if(t===e.ZeroFactor)return B.ZERO;if(t===e.OneFactor)return B.ONE;if(t===e.SrcColorFactor)return B.SRC_COLOR;if(t===e.OneMinusSrcColorFactor)return B.ONE_MINUS_SRC_COLOR;if(t===e.SrcAlphaFactor)return B.SRC_ALPHA;if(t===e.OneMinusSrcAlphaFactor)return B.ONE_MINUS_SRC_ALPHA;if(t===e.DstAlphaFactor)return B.DST_ALPHA;if(t===e.OneMinusDstAlphaFactor)return B.ONE_MINUS_DST_ALPHA;if(t===e.DstColorFactor)return B.DST_COLOR;if(t===e.OneMinusDstColorFactor)return B.ONE_MINUS_DST_COLOR;if(t===e.SrcAlphaSaturateFactor)return B.SRC_ALPHA_SATURATE;if(void 0!==X){if(t===e.RGB_S3TC_DXT1_Format)return X.COMPRESSED_RGB_S3TC_DXT1_EXT;if(t===e.RGBA_S3TC_DXT1_Format)return X.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(t===e.RGBA_S3TC_DXT3_Format)return X.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(t===e.RGBA_S3TC_DXT5_Format)return X.COMPRESSED_RGBA_S3TC_DXT5_EXT}return 0}console.log("THREE.WebGLRenderer",e.REVISION);var t=t||{},F=void 0!==t.canvas?t.canvas:document.createElement("canvas"),N=void 0!==t.precision?t.precision:"highp",G=void 0!==t.alpha?t.alpha:!0,V=void 0!==t.premultipliedAlpha?t.premultipliedAlpha:!0,O=void 0!==t.antialias?t.antialias:!1,j=void 0!==t.stencil?t.stencil:!0,U=void 0!==t.preserveDrawingBuffer?t.preserveDrawingBuffer:!1,I=new e.Color(0),z=0;void 0!==t.clearColor&&(console.warn("DEPRECATED: clearColor in WebGLRenderer constructor parameters is being removed. Use .setClearColor() instead."),I.setHex(t.clearColor)),void 0!==t.clearAlpha&&(console.warn("DEPRECATED: clearAlpha in WebGLRenderer constructor parameters is being removed. Use .setClearColor() instead."),z=t.clearAlpha),this.domElement=F,this.context=null,this.devicePixelRatio=void 0!==t.devicePixelRatio?t.devicePixelRatio:void 0!==window.devicePixelRatio?window.devicePixelRatio:1,this.autoUpdateObjects=this.sortObjects=this.autoClearStencil=this.autoClearDepth=this.autoClearColor=this.autoClear=!0,this.shadowMapEnabled=this.physicallyBasedShading=this.gammaOutput=this.gammaInput=!1,this.shadowMapAutoUpdate=!0,this.shadowMapType=e.PCFShadowMap,this.shadowMapCullFace=e.CullFaceFront,this.shadowMapCascade=this.shadowMapDebug=!1,this.maxMorphTargets=8,this.maxMorphNormals=4,this.autoScaleCubemaps=!0,this.renderPluginsPre=[],this.renderPluginsPost=[],this.info={memory:{programs:0,geometries:0,textures:0},render:{calls:0,vertices:0,faces:0,points:0}};var B,H,q,W,X,Y=this,K=[],$=0,Q=null,Z=null,J=-1,et=null,tt=null,it=0,nt=0,rt=-1,ot=-1,at=-1,st=-1,lt=-1,ht=-1,ct=-1,ut=-1,pt=null,ft=null,dt=null,mt=null,gt=0,vt=0,yt=0,bt=0,xt=0,wt=0,_t={},St=new e.Frustum,Mt=new e.Matrix4,Tt=new e.Matrix4,Ct=new e.Vector3,At=new e.Vector3,Et=!0,Pt={ambient:[0,0,0],directional:{length:0,colors:[],positions:[]},point:{length:0,colors:[],positions:[],distances:[]},spot:{length:0,colors:[],positions:[],distances:[],directions:[],anglesCos:[],exponents:[]},hemi:{length:0,skyColors:[],groundColors:[],positions:[]}};try{if(!(B=F.getContext("experimental-webgl",{alpha:G,premultipliedAlpha:V,antialias:O,stencil:j,preserveDrawingBuffer:U})))throw"Error creating WebGL context."}catch(kt){console.error(kt)}H=B.getExtension("OES_texture_float"),q=B.getExtension("OES_standard_derivatives"),W=B.getExtension("EXT_texture_filter_anisotropic")||B.getExtension("MOZ_EXT_texture_filter_anisotropic")||B.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),X=B.getExtension("WEBGL_compressed_texture_s3tc")||B.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||B.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc"),H||console.log("THREE.WebGLRenderer: Float textures not supported."),q||console.log("THREE.WebGLRenderer: Standard derivatives not supported."),W||console.log("THREE.WebGLRenderer: Anisotropic texture filtering not supported."),X||console.log("THREE.WebGLRenderer: S3TC compressed textures not supported."),void 0===B.getShaderPrecisionFormat&&(B.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}}),B.clearColor(0,0,0,1),B.clearDepth(1),B.clearStencil(0),B.enable(B.DEPTH_TEST),B.depthFunc(B.LEQUAL),B.frontFace(B.CCW),B.cullFace(B.BACK),B.enable(B.CULL_FACE),B.enable(B.BLEND),B.blendEquation(B.FUNC_ADD),B.blendFunc(B.SRC_ALPHA,B.ONE_MINUS_SRC_ALPHA),B.clearColor(I.r,I.g,I.b,z),this.context=B;var Rt=B.getParameter(B.MAX_TEXTURE_IMAGE_UNITS),Lt=B.getParameter(B.MAX_VERTEX_TEXTURE_IMAGE_UNITS);B.getParameter(B.MAX_TEXTURE_SIZE);var Dt=B.getParameter(B.MAX_CUBE_MAP_TEXTURE_SIZE),Ft=W?B.getParameter(W.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0,Nt=Lt>0,Gt=Nt&&H;X&&B.getParameter(B.COMPRESSED_TEXTURE_FORMATS);var Vt=B.getShaderPrecisionFormat(B.VERTEX_SHADER,B.HIGH_FLOAT),Ot=B.getShaderPrecisionFormat(B.VERTEX_SHADER,B.MEDIUM_FLOAT);B.getShaderPrecisionFormat(B.VERTEX_SHADER,B.LOW_FLOAT);var jt=B.getShaderPrecisionFormat(B.FRAGMENT_SHADER,B.HIGH_FLOAT),Ut=B.getShaderPrecisionFormat(B.FRAGMENT_SHADER,B.MEDIUM_FLOAT);B.getShaderPrecisionFormat(B.FRAGMENT_SHADER,B.LOW_FLOAT),B.getShaderPrecisionFormat(B.VERTEX_SHADER,B.HIGH_INT),B.getShaderPrecisionFormat(B.VERTEX_SHADER,B.MEDIUM_INT),B.getShaderPrecisionFormat(B.VERTEX_SHADER,B.LOW_INT),B.getShaderPrecisionFormat(B.FRAGMENT_SHADER,B.HIGH_INT),B.getShaderPrecisionFormat(B.FRAGMENT_SHADER,B.MEDIUM_INT),B.getShaderPrecisionFormat(B.FRAGMENT_SHADER,B.LOW_INT);var It=0<Vt.precision&&0<jt.precision,zt=0<Ot.precision&&0<Ut.precision;"highp"===N&&!It&&(zt?(N="mediump",console.warn("WebGLRenderer: highp not supported, using mediump")):(N="lowp",console.warn("WebGLRenderer: highp and mediump not supported, using lowp"))),"mediump"===N&&!zt&&(N="lowp",console.warn("WebGLRenderer: mediump not supported, using lowp")),this.getContext=function(){return B},this.supportsVertexTextures=function(){return Nt},this.supportsFloatTextures=function(){return H},this.supportsStandardDerivatives=function(){return q},this.supportsCompressedTextureS3TC=function(){return X},this.getMaxAnisotropy=function(){return Ft},this.getPrecision=function(){return N},this.setSize=function(e,t,i){F.width=e*this.devicePixelRatio,F.height=t*this.devicePixelRatio,1!==this.devicePixelRatio&&!1!==i&&(F.style.width=e+"px",F.style.height=t+"px"),this.setViewport(0,0,F.width,F.height)},this.setViewport=function(e,t,i,n){gt=void 0!==e?e:0,vt=void 0!==t?t:0,yt=void 0!==i?i:F.width,bt=void 0!==n?n:F.height,B.viewport(gt,vt,yt,bt)},this.setScissor=function(e,t,i,n){B.scissor(e,t,i,n)},this.enableScissorTest=function(e){e?B.enable(B.SCISSOR_TEST):B.disable(B.SCISSOR_TEST)},this.setClearColor=function(e,t){I.set(e),z=void 0!==t?t:1,B.clearColor(I.r,I.g,I.b,z)},this.setClearColorHex=function(e,t){console.warn("DEPRECATED: .setClearColorHex() is being removed. Use .setClearColor() instead."),this.setClearColor(e,t)},this.getClearColor=function(){return I},this.getClearAlpha=function(){return z},this.clear=function(e,t,i){var n=0;(void 0===e||e)&&(n|=B.COLOR_BUFFER_BIT),(void 0===t||t)&&(n|=B.DEPTH_BUFFER_BIT),(void 0===i||i)&&(n|=B.STENCIL_BUFFER_BIT),B.clear(n)},this.clearTarget=function(e,t,i,n){this.setRenderTarget(e),this.clear(t,i,n)},this.addPostPlugin=function(e){e.init(this),this.renderPluginsPost.push(e)},this.addPrePlugin=function(e){e.init(this),this.renderPluginsPre.push(e)},this.updateShadowMap=function(e,t){Q=null,J=et=ut=ct=at=-1,Et=!0,ot=rt=-1,this.shadowMapPlugin.update(e,t)};var Bt=function(e){if(e=e.target,e.removeEventListener("dispose",Bt),e.__webglInit=void 0,void 0!==e.__webglVertexBuffer&&B.deleteBuffer(e.__webglVertexBuffer),void 0!==e.__webglNormalBuffer&&B.deleteBuffer(e.__webglNormalBuffer),void 0!==e.__webglTangentBuffer&&B.deleteBuffer(e.__webglTangentBuffer),void 0!==e.__webglColorBuffer&&B.deleteBuffer(e.__webglColorBuffer),void 0!==e.__webglUVBuffer&&B.deleteBuffer(e.__webglUVBuffer),void 0!==e.__webglUV2Buffer&&B.deleteBuffer(e.__webglUV2Buffer),void 0!==e.__webglSkinIndicesBuffer&&B.deleteBuffer(e.__webglSkinIndicesBuffer),void 0!==e.__webglSkinWeightsBuffer&&B.deleteBuffer(e.__webglSkinWeightsBuffer),void 0!==e.__webglFaceBuffer&&B.deleteBuffer(e.__webglFaceBuffer),void 0!==e.__webglLineBuffer&&B.deleteBuffer(e.__webglLineBuffer),void 0!==e.__webglLineDistanceBuffer&&B.deleteBuffer(e.__webglLineDistanceBuffer),void 0!==e.geometryGroups)for(var t in e.geometryGroups){var n=e.geometryGroups[t];if(void 0!==n.numMorphTargets)for(var r=0,o=n.numMorphTargets;o>r;r++)B.deleteBuffer(n.__webglMorphTargetsBuffers[r]);if(void 0!==n.numMorphNormals)for(r=0,o=n.numMorphNormals;o>r;r++)B.deleteBuffer(n.__webglMorphNormalsBuffers[r]);i(n)}i(e),Y.info.memory.geometries--},Ht=function(e){e=e.target,e.removeEventListener("dispose",Ht),e.image&&e.image.__webglTextureCube?B.deleteTexture(e.image.__webglTextureCube):e.__webglInit&&(e.__webglInit=!1,B.deleteTexture(e.__webglTexture)),Y.info.memory.textures--},qt=function(t){if(t=t.target,t.removeEventListener("dispose",qt),t&&t.__webglTexture)if(B.deleteTexture(t.__webglTexture),t instanceof e.WebGLRenderTargetCube)for(var i=0;6>i;i++)B.deleteFramebuffer(t.__webglFramebuffer[i]),B.deleteRenderbuffer(t.__webglRenderbuffer[i]);else B.deleteFramebuffer(t.__webglFramebuffer),B.deleteRenderbuffer(t.__webglRenderbuffer);Y.info.memory.textures--},Wt=function(e){e=e.target,e.removeEventListener("dispose",Wt),Xt(e)},Xt=function(e){var t=e.program;if(void 0!==t){e.program=void 0;var i,n,r=!1,e=0;for(i=K.length;i>e;e++)if(n=K[e],n.program===t){n.usedTimes--,0===n.usedTimes&&(r=!0);break}if(!0===r){for(r=[],e=0,i=K.length;i>e;e++)n=K[e],n.program!==t&&r.push(n);K=r,B.deleteProgram(t),Y.info.memory.programs--}}};this.renderBufferImmediate=function(t,i,n){if(t.hasPositions&&!t.__webglVertexBuffer&&(t.__webglVertexBuffer=B.createBuffer()),t.hasNormals&&!t.__webglNormalBuffer&&(t.__webglNormalBuffer=B.createBuffer()),t.hasUvs&&!t.__webglUvBuffer&&(t.__webglUvBuffer=B.createBuffer()),t.hasColors&&!t.__webglColorBuffer&&(t.__webglColorBuffer=B.createBuffer()),t.hasPositions&&(B.bindBuffer(B.ARRAY_BUFFER,t.__webglVertexBuffer),B.bufferData(B.ARRAY_BUFFER,t.positionArray,B.DYNAMIC_DRAW),B.enableVertexAttribArray(i.attributes.position),B.vertexAttribPointer(i.attributes.position,3,B.FLOAT,!1,0,0)),t.hasNormals){if(B.bindBuffer(B.ARRAY_BUFFER,t.__webglNormalBuffer),n.shading===e.FlatShading){var r,o,a,s,l,h,c,u,p,f,d,m=3*t.count;for(d=0;m>d;d+=9)f=t.normalArray,r=f[d],o=f[d+1],a=f[d+2],s=f[d+3],h=f[d+4],u=f[d+5],l=f[d+6],c=f[d+7],p=f[d+8],r=(r+s+l)/3,o=(o+h+c)/3,a=(a+u+p)/3,f[d]=r,f[d+1]=o,f[d+2]=a,f[d+3]=r,f[d+4]=o,f[d+5]=a,f[d+6]=r,f[d+7]=o,f[d+8]=a}B.bufferData(B.ARRAY_BUFFER,t.normalArray,B.DYNAMIC_DRAW),B.enableVertexAttribArray(i.attributes.normal),B.vertexAttribPointer(i.attributes.normal,3,B.FLOAT,!1,0,0)}t.hasUvs&&n.map&&(B.bindBuffer(B.ARRAY_BUFFER,t.__webglUvBuffer),B.bufferData(B.ARRAY_BUFFER,t.uvArray,B.DYNAMIC_DRAW),B.enableVertexAttribArray(i.attributes.uv),B.vertexAttribPointer(i.attributes.uv,2,B.FLOAT,!1,0,0)),t.hasColors&&n.vertexColors!==e.NoColors&&(B.bindBuffer(B.ARRAY_BUFFER,t.__webglColorBuffer),B.bufferData(B.ARRAY_BUFFER,t.colorArray,B.DYNAMIC_DRAW),B.enableVertexAttribArray(i.attributes.color),B.vertexAttribPointer(i.attributes.color,3,B.FLOAT,!1,0,0)),B.drawArrays(B.TRIANGLES,0,t.count),t.count=0},this.renderBufferDirect=function(t,i,n,r,o,a){if(!1!==r.visible){var s,c,u;if(s=_(t,i,n,r,a),t=s.attributes,i=o.attributes,n=!1,s=16777215*o.id+2*s.id+(r.wireframe?1:0),s!==et&&(et=s,n=!0),n&&h(),a instanceof e.Mesh)if(r=i.index){o=o.offsets,1<o.length&&(n=!0);for(var p=0,f=o.length;f>p;p++){var d=o[p].index;if(n){for(c in i)"index"!==c&&(s=t[c],a=i[c],u=a.itemSize,s>=0&&(B.bindBuffer(B.ARRAY_BUFFER,a.buffer),l(s),B.vertexAttribPointer(s,u,B.FLOAT,!1,0,4*d*u)));B.bindBuffer(B.ELEMENT_ARRAY_BUFFER,r.buffer)}B.drawElements(B.TRIANGLES,o[p].count,B.UNSIGNED_SHORT,2*o[p].start),Y.info.render.calls++,Y.info.render.vertices+=o[p].count,Y.info.render.faces+=o[p].count/3}}else{if(n)for(c in i)"index"!==c&&(s=t[c],a=i[c],u=a.itemSize,s>=0&&(B.bindBuffer(B.ARRAY_BUFFER,a.buffer),l(s),B.vertexAttribPointer(s,u,B.FLOAT,!1,0,0)));c=o.attributes.position,B.drawArrays(B.TRIANGLES,0,c.numItems/3),Y.info.render.calls++,Y.info.render.vertices+=c.numItems/3,Y.info.render.faces+=c.numItems/3/3}else if(a instanceof e.ParticleSystem){if(n){for(c in i)s=t[c],a=i[c],u=a.itemSize,s>=0&&(B.bindBuffer(B.ARRAY_BUFFER,a.buffer),l(s),B.vertexAttribPointer(s,u,B.FLOAT,!1,0,0));c=i.position,B.drawArrays(B.POINTS,0,c.numItems/3),Y.info.render.calls++,Y.info.render.points+=c.numItems/3}}else if(a instanceof e.Line&&n){for(c in i)s=t[c],a=i[c],u=a.itemSize,s>=0&&(B.bindBuffer(B.ARRAY_BUFFER,a.buffer),l(s),B.vertexAttribPointer(s,u,B.FLOAT,!1,0,0));C(r.linewidth),c=i.position,B.drawArrays(B.LINE_STRIP,0,c.numItems/3),Y.info.render.calls++,Y.info.render.points+=c.numItems}}},this.renderBuffer=function(t,i,n,r,o,a){if(!1!==r.visible){var s,c,n=_(t,i,n,r,a),t=n.attributes,i=!1,n=16777215*o.id+2*n.id+(r.wireframe?1:0);if(n!==et&&(et=n,i=!0),i&&h(),!r.morphTargets&&0<=t.position)i&&(B.bindBuffer(B.ARRAY_BUFFER,o.__webglVertexBuffer),l(t.position),B.vertexAttribPointer(t.position,3,B.FLOAT,!1,0,0));else if(a.morphTargetBase){if(n=r.program.attributes,-1!==a.morphTargetBase&&0<=n.position?(B.bindBuffer(B.ARRAY_BUFFER,o.__webglMorphTargetsBuffers[a.morphTargetBase]),l(n.position),B.vertexAttribPointer(n.position,3,B.FLOAT,!1,0,0)):0<=n.position&&(B.bindBuffer(B.ARRAY_BUFFER,o.__webglVertexBuffer),l(n.position),B.vertexAttribPointer(n.position,3,B.FLOAT,!1,0,0)),a.morphTargetForcedOrder.length){var p=0;for(c=a.morphTargetForcedOrder,s=a.morphTargetInfluences;p<r.numSupportedMorphTargets&&p<c.length;)0<=n["morphTarget"+p]&&(B.bindBuffer(B.ARRAY_BUFFER,o.__webglMorphTargetsBuffers[c[p]]),l(n["morphTarget"+p]),B.vertexAttribPointer(n["morphTarget"+p],3,B.FLOAT,!1,0,0)),0<=n["morphNormal"+p]&&r.morphNormals&&(B.bindBuffer(B.ARRAY_BUFFER,o.__webglMorphNormalsBuffers[c[p]]),l(n["morphNormal"+p]),B.vertexAttribPointer(n["morphNormal"+p],3,B.FLOAT,!1,0,0)),a.__webglMorphTargetInfluences[p]=s[c[p]],p++}else{c=[],s=a.morphTargetInfluences;var f,d=s.length;for(f=0;d>f;f++)p=s[f],p>0&&c.push([p,f]);for(c.length>r.numSupportedMorphTargets?(c.sort(u),c.length=r.numSupportedMorphTargets):c.length>r.numSupportedMorphNormals?c.sort(u):0===c.length&&c.push([0,0]),p=0;p<r.numSupportedMorphTargets;)c[p]?(f=c[p][1],0<=n["morphTarget"+p]&&(B.bindBuffer(B.ARRAY_BUFFER,o.__webglMorphTargetsBuffers[f]),l(n["morphTarget"+p]),B.vertexAttribPointer(n["morphTarget"+p],3,B.FLOAT,!1,0,0)),0<=n["morphNormal"+p]&&r.morphNormals&&(B.bindBuffer(B.ARRAY_BUFFER,o.__webglMorphNormalsBuffers[f]),l(n["morphNormal"+p]),B.vertexAttribPointer(n["morphNormal"+p],3,B.FLOAT,!1,0,0)),a.__webglMorphTargetInfluences[p]=s[f]):a.__webglMorphTargetInfluences[p]=0,p++}null!==r.program.uniforms.morphTargetInfluences&&B.uniform1fv(r.program.uniforms.morphTargetInfluences,a.__webglMorphTargetInfluences)}if(i){if(o.__webglCustomAttributesList)for(s=0,c=o.__webglCustomAttributesList.length;c>s;s++)n=o.__webglCustomAttributesList[s],0<=t[n.buffer.belongsToAttribute]&&(B.bindBuffer(B.ARRAY_BUFFER,n.buffer),l(t[n.buffer.belongsToAttribute]),B.vertexAttribPointer(t[n.buffer.belongsToAttribute],n.size,B.FLOAT,!1,0,0));0<=t.color&&(B.bindBuffer(B.ARRAY_BUFFER,o.__webglColorBuffer),l(t.color),B.vertexAttribPointer(t.color,3,B.FLOAT,!1,0,0)),0<=t.normal&&(B.bindBuffer(B.ARRAY_BUFFER,o.__webglNormalBuffer),l(t.normal),B.vertexAttribPointer(t.normal,3,B.FLOAT,!1,0,0)),0<=t.tangent&&(B.bindBuffer(B.ARRAY_BUFFER,o.__webglTangentBuffer),l(t.tangent),B.vertexAttribPointer(t.tangent,4,B.FLOAT,!1,0,0)),0<=t.uv&&(B.bindBuffer(B.ARRAY_BUFFER,o.__webglUVBuffer),l(t.uv),B.vertexAttribPointer(t.uv,2,B.FLOAT,!1,0,0)),0<=t.uv2&&(B.bindBuffer(B.ARRAY_BUFFER,o.__webglUV2Buffer),l(t.uv2),B.vertexAttribPointer(t.uv2,2,B.FLOAT,!1,0,0)),r.skinning&&0<=t.skinIndex&&0<=t.skinWeight&&(B.bindBuffer(B.ARRAY_BUFFER,o.__webglSkinIndicesBuffer),l(t.skinIndex),B.vertexAttribPointer(t.skinIndex,4,B.FLOAT,!1,0,0),B.bindBuffer(B.ARRAY_BUFFER,o.__webglSkinWeightsBuffer),l(t.skinWeight),B.vertexAttribPointer(t.skinWeight,4,B.FLOAT,!1,0,0)),0<=t.lineDistance&&(B.bindBuffer(B.ARRAY_BUFFER,o.__webglLineDistanceBuffer),l(t.lineDistance),B.vertexAttribPointer(t.lineDistance,1,B.FLOAT,!1,0,0))}a instanceof e.Mesh?(r.wireframe?(C(r.wireframeLinewidth),i&&B.bindBuffer(B.ELEMENT_ARRAY_BUFFER,o.__webglLineBuffer),B.drawElements(B.LINES,o.__webglLineCount,B.UNSIGNED_SHORT,0)):(i&&B.bindBuffer(B.ELEMENT_ARRAY_BUFFER,o.__webglFaceBuffer),B.drawElements(B.TRIANGLES,o.__webglFaceCount,B.UNSIGNED_SHORT,0)),Y.info.render.calls++,Y.info.render.vertices+=o.__webglFaceCount,Y.info.render.faces+=o.__webglFaceCount/3):a instanceof e.Line?(a=a.type===e.LineStrip?B.LINE_STRIP:B.LINES,C(r.linewidth),B.drawArrays(a,0,o.__webglLineCount),Y.info.render.calls++):a instanceof e.ParticleSystem?(B.drawArrays(B.POINTS,0,o.__webglParticleCount),Y.info.render.calls++,Y.info.render.points+=o.__webglParticleCount):a instanceof e.Ribbon&&(B.drawArrays(B.TRIANGLE_STRIP,0,o.__webglVertexCount),Y.info.render.calls++) }},this.render=function(t,i,n,r){if(!1==i instanceof e.Camera)console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");else{var o,a,s,l,h=t.__lights,u=t.fog;for(J=-1,Et=!0,!0===t.autoUpdate&&t.updateMatrixWorld(),void 0===i.parent&&i.updateMatrixWorld(),i.matrixWorldInverse.getInverse(i.matrixWorld),Mt.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),St.setFromMatrix(Mt),this.autoUpdateObjects&&this.initWebGLObjects(t),p(this.renderPluginsPre,t,i),Y.info.render.calls=0,Y.info.render.vertices=0,Y.info.render.faces=0,Y.info.render.points=0,this.setRenderTarget(n),(this.autoClear||r)&&this.clear(this.autoClearColor,this.autoClearDepth,this.autoClearStencil),l=t.__webglObjects,r=0,o=l.length;o>r;r++)if(a=l[r],s=a.object,a.id=r,a.render=!1,s.visible&&(!(s instanceof e.Mesh||s instanceof e.ParticleSystem)||!s.frustumCulled||St.intersectsObject(s))){var m=s;m._modelViewMatrix.multiplyMatrices(i.matrixWorldInverse,m.matrixWorld),m._normalMatrix.getNormalMatrix(m._modelViewMatrix);var m=a,g=m.buffer,v=void 0,y=v=void 0,y=m.object.material;y instanceof e.MeshFaceMaterial?(v=g.materialIndex,v=y.materials[v],v.transparent?(m.transparent=v,m.opaque=null):(m.opaque=v,m.transparent=null)):(v=y)&&(v.transparent?(m.transparent=v,m.opaque=null):(m.opaque=v,m.transparent=null)),a.render=!0,!0===this.sortObjects&&(null!==s.renderDepth?a.z=s.renderDepth:(Ct.getPositionFromMatrix(s.matrixWorld),Ct.applyProjection(Mt),a.z=Ct.z))}for(this.sortObjects&&l.sort(c),l=t.__webglObjectsImmediate,r=0,o=l.length;o>r;r++)a=l[r],s=a.object,s.visible&&(s._modelViewMatrix.multiplyMatrices(i.matrixWorldInverse,s.matrixWorld),s._normalMatrix.getNormalMatrix(s._modelViewMatrix),s=a.object.material,s.transparent?(a.transparent=s,a.opaque=null):(a.opaque=s,a.transparent=null));t.overrideMaterial?(r=t.overrideMaterial,this.setBlending(r.blending,r.blendEquation,r.blendSrc,r.blendDst),this.setDepthTest(r.depthTest),this.setDepthWrite(r.depthWrite),A(r.polygonOffset,r.polygonOffsetFactor,r.polygonOffsetUnits),f(t.__webglObjects,!1,"",i,h,u,!0,r),d(t.__webglObjectsImmediate,"",i,h,u,!1,r)):(r=null,this.setBlending(e.NoBlending),f(t.__webglObjects,!0,"opaque",i,h,u,!1,r),d(t.__webglObjectsImmediate,"opaque",i,h,u,!1,r),f(t.__webglObjects,!1,"transparent",i,h,u,!0,r),d(t.__webglObjectsImmediate,"transparent",i,h,u,!0,r)),p(this.renderPluginsPost,t,i),n&&n.generateMipmaps&&n.minFilter!==e.NearestFilter&&n.minFilter!==e.LinearFilter&&(n instanceof e.WebGLRenderTargetCube?(B.bindTexture(B.TEXTURE_CUBE_MAP,n.__webglTexture),B.generateMipmap(B.TEXTURE_CUBE_MAP),B.bindTexture(B.TEXTURE_CUBE_MAP,null)):(B.bindTexture(B.TEXTURE_2D,n.__webglTexture),B.generateMipmap(B.TEXTURE_2D),B.bindTexture(B.TEXTURE_2D,null))),this.setDepthTest(!0),this.setDepthWrite(!0)}},this.renderImmediateObject=function(e,t,i,n,r){var o=_(e,t,i,n,r);et=-1,Y.setMaterialFaces(n),r.immediateRenderCallback?r.immediateRenderCallback(o,B,St):r.render(function(e){Y.renderBufferImmediate(e,o,n)})},this.initWebGLObjects=function(t){for(t.__webglObjects||(t.__webglObjects=[],t.__webglObjectsImmediate=[],t.__webglSprites=[],t.__webglFlares=[]);t.__objectsAdded.length;)m(t.__objectsAdded[0],t),t.__objectsAdded.splice(0,1);for(;t.__objectsRemoved.length;)b(t.__objectsRemoved[0],t),t.__objectsRemoved.splice(0,1);for(var i=0,n=t.__webglObjects.length;n>i;i++){var l=t.__webglObjects[i].object;void 0===l.__webglInit&&(void 0!==l.__webglActive&&b(l,t),m(l,t));var h=l,c=h.geometry,p=void 0,f=void 0,d=void 0;if(c instanceof e.BufferGeometry){var g=B.DYNAMIC_DRAW,x=!c.dynamic,w=c.attributes,_=void 0,S=void 0;for(_ in w)S=w[_],S.needsUpdate&&("index"===_?(B.bindBuffer(B.ELEMENT_ARRAY_BUFFER,S.buffer),B.bufferData(B.ELEMENT_ARRAY_BUFFER,S.array,g)):(B.bindBuffer(B.ARRAY_BUFFER,S.buffer),B.bufferData(B.ARRAY_BUFFER,S.array,g)),S.needsUpdate=!1),x&&!S.dynamic&&delete S.array}else if(h instanceof e.Mesh){for(var M=0,T=c.geometryGroupsList.length;T>M;M++)if(p=c.geometryGroupsList[M],d=o(h,p),c.buffersNeedUpdate&&r(p,h),f=d.attributes&&v(d),c.verticesNeedUpdate||c.morphTargetsNeedUpdate||c.elementsNeedUpdate||c.uvsNeedUpdate||c.normalsNeedUpdate||c.colorsNeedUpdate||c.tangentsNeedUpdate||f){var C=p,A=h,E=B.DYNAMIC_DRAW,P=!c.dynamic,k=d;if(C.__inittedArrays){var R=a(k),L=k.vertexColors?k.vertexColors:!1,D=s(k),F=R===e.SmoothShading,N=void 0,G=void 0,V=void 0,O=void 0,j=void 0,U=void 0,I=void 0,z=void 0,H=void 0,q=void 0,W=void 0,X=void 0,Y=void 0,K=void 0,$=void 0,Q=void 0,Z=void 0,J=void 0,et=void 0,tt=void 0,it=void 0,nt=void 0,rt=void 0,ot=void 0,at=void 0,st=void 0,lt=void 0,ht=void 0,ct=void 0,ut=void 0,pt=void 0,ft=void 0,dt=void 0,mt=void 0,gt=void 0,vt=void 0,yt=void 0,bt=void 0,xt=void 0,wt=void 0,_t=void 0,St=void 0,At=void 0,Et=void 0,Pt=void 0,kt=void 0,Rt=0,Lt=0,Dt=0,Ft=0,Nt=0,Gt=0,Vt=0,Ot=0,jt=0,Ut=0,It=0,zt=0,Bt=void 0,Ht=C.__vertexArray,qt=C.__uvArray,Wt=C.__uv2Array,Xt=C.__normalArray,Yt=C.__tangentArray,Kt=C.__colorArray,$t=C.__skinIndexArray,Qt=C.__skinWeightArray,Zt=C.__morphTargetsArrays,Jt=C.__morphNormalsArrays,ei=C.__webglCustomAttributesList,ti=void 0,ii=C.__faceArray,ni=C.__lineArray,ri=A.geometry,oi=ri.elementsNeedUpdate,ai=ri.uvsNeedUpdate,si=ri.normalsNeedUpdate,li=ri.tangentsNeedUpdate,hi=ri.colorsNeedUpdate,ci=ri.morphTargetsNeedUpdate,ui=ri.vertices,pi=C.faces3,fi=C.faces4,di=ri.faces,mi=ri.faceVertexUvs[0],gi=ri.faceVertexUvs[1],vi=ri.skinIndices,yi=ri.skinWeights,bi=ri.morphTargets,xi=ri.morphNormals;if(ri.verticesNeedUpdate){for(N=0,G=pi.length;G>N;N++)O=di[pi[N]],X=ui[O.a],Y=ui[O.b],K=ui[O.c],Ht[Lt]=X.x,Ht[Lt+1]=X.y,Ht[Lt+2]=X.z,Ht[Lt+3]=Y.x,Ht[Lt+4]=Y.y,Ht[Lt+5]=Y.z,Ht[Lt+6]=K.x,Ht[Lt+7]=K.y,Ht[Lt+8]=K.z,Lt+=9;for(N=0,G=fi.length;G>N;N++)O=di[fi[N]],X=ui[O.a],Y=ui[O.b],K=ui[O.c],$=ui[O.d],Ht[Lt]=X.x,Ht[Lt+1]=X.y,Ht[Lt+2]=X.z,Ht[Lt+3]=Y.x,Ht[Lt+4]=Y.y,Ht[Lt+5]=Y.z,Ht[Lt+6]=K.x,Ht[Lt+7]=K.y,Ht[Lt+8]=K.z,Ht[Lt+9]=$.x,Ht[Lt+10]=$.y,Ht[Lt+11]=$.z,Lt+=12;B.bindBuffer(B.ARRAY_BUFFER,C.__webglVertexBuffer),B.bufferData(B.ARRAY_BUFFER,Ht,E)}if(ci)for(_t=0,St=bi.length;St>_t;_t++){for(N=It=0,G=pi.length;G>N;N++)Pt=pi[N],O=di[Pt],X=bi[_t].vertices[O.a],Y=bi[_t].vertices[O.b],K=bi[_t].vertices[O.c],At=Zt[_t],At[It]=X.x,At[It+1]=X.y,At[It+2]=X.z,At[It+3]=Y.x,At[It+4]=Y.y,At[It+5]=Y.z,At[It+6]=K.x,At[It+7]=K.y,At[It+8]=K.z,k.morphNormals&&(F?(kt=xi[_t].vertexNormals[Pt],tt=kt.a,it=kt.b,nt=kt.c):nt=it=tt=xi[_t].faceNormals[Pt],Et=Jt[_t],Et[It]=tt.x,Et[It+1]=tt.y,Et[It+2]=tt.z,Et[It+3]=it.x,Et[It+4]=it.y,Et[It+5]=it.z,Et[It+6]=nt.x,Et[It+7]=nt.y,Et[It+8]=nt.z),It+=9;for(N=0,G=fi.length;G>N;N++)Pt=fi[N],O=di[Pt],X=bi[_t].vertices[O.a],Y=bi[_t].vertices[O.b],K=bi[_t].vertices[O.c],$=bi[_t].vertices[O.d],At=Zt[_t],At[It]=X.x,At[It+1]=X.y,At[It+2]=X.z,At[It+3]=Y.x,At[It+4]=Y.y,At[It+5]=Y.z,At[It+6]=K.x,At[It+7]=K.y,At[It+8]=K.z,At[It+9]=$.x,At[It+10]=$.y,At[It+11]=$.z,k.morphNormals&&(F?(kt=xi[_t].vertexNormals[Pt],tt=kt.a,it=kt.b,nt=kt.c,rt=kt.d):rt=nt=it=tt=xi[_t].faceNormals[Pt],Et=Jt[_t],Et[It]=tt.x,Et[It+1]=tt.y,Et[It+2]=tt.z,Et[It+3]=it.x,Et[It+4]=it.y,Et[It+5]=it.z,Et[It+6]=nt.x,Et[It+7]=nt.y,Et[It+8]=nt.z,Et[It+9]=rt.x,Et[It+10]=rt.y,Et[It+11]=rt.z),It+=12;B.bindBuffer(B.ARRAY_BUFFER,C.__webglMorphTargetsBuffers[_t]),B.bufferData(B.ARRAY_BUFFER,Zt[_t],E),k.morphNormals&&(B.bindBuffer(B.ARRAY_BUFFER,C.__webglMorphNormalsBuffers[_t]),B.bufferData(B.ARRAY_BUFFER,Jt[_t],E))}if(yi.length){for(N=0,G=pi.length;G>N;N++)O=di[pi[N]],ht=yi[O.a],ct=yi[O.b],ut=yi[O.c],Qt[Ut]=ht.x,Qt[Ut+1]=ht.y,Qt[Ut+2]=ht.z,Qt[Ut+3]=ht.w,Qt[Ut+4]=ct.x,Qt[Ut+5]=ct.y,Qt[Ut+6]=ct.z,Qt[Ut+7]=ct.w,Qt[Ut+8]=ut.x,Qt[Ut+9]=ut.y,Qt[Ut+10]=ut.z,Qt[Ut+11]=ut.w,ft=vi[O.a],dt=vi[O.b],mt=vi[O.c],$t[Ut]=ft.x,$t[Ut+1]=ft.y,$t[Ut+2]=ft.z,$t[Ut+3]=ft.w,$t[Ut+4]=dt.x,$t[Ut+5]=dt.y,$t[Ut+6]=dt.z,$t[Ut+7]=dt.w,$t[Ut+8]=mt.x,$t[Ut+9]=mt.y,$t[Ut+10]=mt.z,$t[Ut+11]=mt.w,Ut+=12;for(N=0,G=fi.length;G>N;N++)O=di[fi[N]],ht=yi[O.a],ct=yi[O.b],ut=yi[O.c],pt=yi[O.d],Qt[Ut]=ht.x,Qt[Ut+1]=ht.y,Qt[Ut+2]=ht.z,Qt[Ut+3]=ht.w,Qt[Ut+4]=ct.x,Qt[Ut+5]=ct.y,Qt[Ut+6]=ct.z,Qt[Ut+7]=ct.w,Qt[Ut+8]=ut.x,Qt[Ut+9]=ut.y,Qt[Ut+10]=ut.z,Qt[Ut+11]=ut.w,Qt[Ut+12]=pt.x,Qt[Ut+13]=pt.y,Qt[Ut+14]=pt.z,Qt[Ut+15]=pt.w,ft=vi[O.a],dt=vi[O.b],mt=vi[O.c],gt=vi[O.d],$t[Ut]=ft.x,$t[Ut+1]=ft.y,$t[Ut+2]=ft.z,$t[Ut+3]=ft.w,$t[Ut+4]=dt.x,$t[Ut+5]=dt.y,$t[Ut+6]=dt.z,$t[Ut+7]=dt.w,$t[Ut+8]=mt.x,$t[Ut+9]=mt.y,$t[Ut+10]=mt.z,$t[Ut+11]=mt.w,$t[Ut+12]=gt.x,$t[Ut+13]=gt.y,$t[Ut+14]=gt.z,$t[Ut+15]=gt.w,Ut+=16;Ut>0&&(B.bindBuffer(B.ARRAY_BUFFER,C.__webglSkinIndicesBuffer),B.bufferData(B.ARRAY_BUFFER,$t,E),B.bindBuffer(B.ARRAY_BUFFER,C.__webglSkinWeightsBuffer),B.bufferData(B.ARRAY_BUFFER,Qt,E))}if(hi&&L){for(N=0,G=pi.length;G>N;N++)O=di[pi[N]],I=O.vertexColors,z=O.color,3===I.length&&L===e.VertexColors?(ot=I[0],at=I[1],st=I[2]):st=at=ot=z,Kt[jt]=ot.r,Kt[jt+1]=ot.g,Kt[jt+2]=ot.b,Kt[jt+3]=at.r,Kt[jt+4]=at.g,Kt[jt+5]=at.b,Kt[jt+6]=st.r,Kt[jt+7]=st.g,Kt[jt+8]=st.b,jt+=9;for(N=0,G=fi.length;G>N;N++)O=di[fi[N]],I=O.vertexColors,z=O.color,4===I.length&&L===e.VertexColors?(ot=I[0],at=I[1],st=I[2],lt=I[3]):lt=st=at=ot=z,Kt[jt]=ot.r,Kt[jt+1]=ot.g,Kt[jt+2]=ot.b,Kt[jt+3]=at.r,Kt[jt+4]=at.g,Kt[jt+5]=at.b,Kt[jt+6]=st.r,Kt[jt+7]=st.g,Kt[jt+8]=st.b,Kt[jt+9]=lt.r,Kt[jt+10]=lt.g,Kt[jt+11]=lt.b,jt+=12;jt>0&&(B.bindBuffer(B.ARRAY_BUFFER,C.__webglColorBuffer),B.bufferData(B.ARRAY_BUFFER,Kt,E))}if(li&&ri.hasTangents){for(N=0,G=pi.length;G>N;N++)O=di[pi[N]],H=O.vertexTangents,Q=H[0],Z=H[1],J=H[2],Yt[Vt]=Q.x,Yt[Vt+1]=Q.y,Yt[Vt+2]=Q.z,Yt[Vt+3]=Q.w,Yt[Vt+4]=Z.x,Yt[Vt+5]=Z.y,Yt[Vt+6]=Z.z,Yt[Vt+7]=Z.w,Yt[Vt+8]=J.x,Yt[Vt+9]=J.y,Yt[Vt+10]=J.z,Yt[Vt+11]=J.w,Vt+=12;for(N=0,G=fi.length;G>N;N++)O=di[fi[N]],H=O.vertexTangents,Q=H[0],Z=H[1],J=H[2],et=H[3],Yt[Vt]=Q.x,Yt[Vt+1]=Q.y,Yt[Vt+2]=Q.z,Yt[Vt+3]=Q.w,Yt[Vt+4]=Z.x,Yt[Vt+5]=Z.y,Yt[Vt+6]=Z.z,Yt[Vt+7]=Z.w,Yt[Vt+8]=J.x,Yt[Vt+9]=J.y,Yt[Vt+10]=J.z,Yt[Vt+11]=J.w,Yt[Vt+12]=et.x,Yt[Vt+13]=et.y,Yt[Vt+14]=et.z,Yt[Vt+15]=et.w,Vt+=16;B.bindBuffer(B.ARRAY_BUFFER,C.__webglTangentBuffer),B.bufferData(B.ARRAY_BUFFER,Yt,E)}if(si&&R){for(N=0,G=pi.length;G>N;N++)if(O=di[pi[N]],j=O.vertexNormals,U=O.normal,3===j.length&&F)for(vt=0;3>vt;vt++)bt=j[vt],Xt[Gt]=bt.x,Xt[Gt+1]=bt.y,Xt[Gt+2]=bt.z,Gt+=3;else for(vt=0;3>vt;vt++)Xt[Gt]=U.x,Xt[Gt+1]=U.y,Xt[Gt+2]=U.z,Gt+=3;for(N=0,G=fi.length;G>N;N++)if(O=di[fi[N]],j=O.vertexNormals,U=O.normal,4===j.length&&F)for(vt=0;4>vt;vt++)bt=j[vt],Xt[Gt]=bt.x,Xt[Gt+1]=bt.y,Xt[Gt+2]=bt.z,Gt+=3;else for(vt=0;4>vt;vt++)Xt[Gt]=U.x,Xt[Gt+1]=U.y,Xt[Gt+2]=U.z,Gt+=3;B.bindBuffer(B.ARRAY_BUFFER,C.__webglNormalBuffer),B.bufferData(B.ARRAY_BUFFER,Xt,E)}if(ai&&mi&&D){for(N=0,G=pi.length;G>N;N++)if(V=pi[N],q=mi[V],void 0!==q)for(vt=0;3>vt;vt++)xt=q[vt],qt[Dt]=xt.x,qt[Dt+1]=xt.y,Dt+=2;for(N=0,G=fi.length;G>N;N++)if(V=fi[N],q=mi[V],void 0!==q)for(vt=0;4>vt;vt++)xt=q[vt],qt[Dt]=xt.x,qt[Dt+1]=xt.y,Dt+=2;Dt>0&&(B.bindBuffer(B.ARRAY_BUFFER,C.__webglUVBuffer),B.bufferData(B.ARRAY_BUFFER,qt,E))}if(ai&&gi&&D){for(N=0,G=pi.length;G>N;N++)if(V=pi[N],W=gi[V],void 0!==W)for(vt=0;3>vt;vt++)wt=W[vt],Wt[Ft]=wt.x,Wt[Ft+1]=wt.y,Ft+=2;for(N=0,G=fi.length;G>N;N++)if(V=fi[N],W=gi[V],void 0!==W)for(vt=0;4>vt;vt++)wt=W[vt],Wt[Ft]=wt.x,Wt[Ft+1]=wt.y,Ft+=2;Ft>0&&(B.bindBuffer(B.ARRAY_BUFFER,C.__webglUV2Buffer),B.bufferData(B.ARRAY_BUFFER,Wt,E))}if(oi){for(N=0,G=pi.length;G>N;N++)ii[Nt]=Rt,ii[Nt+1]=Rt+1,ii[Nt+2]=Rt+2,Nt+=3,ni[Ot]=Rt,ni[Ot+1]=Rt+1,ni[Ot+2]=Rt,ni[Ot+3]=Rt+2,ni[Ot+4]=Rt+1,ni[Ot+5]=Rt+2,Ot+=6,Rt+=3;for(N=0,G=fi.length;G>N;N++)ii[Nt]=Rt,ii[Nt+1]=Rt+1,ii[Nt+2]=Rt+3,ii[Nt+3]=Rt+1,ii[Nt+4]=Rt+2,ii[Nt+5]=Rt+3,Nt+=6,ni[Ot]=Rt,ni[Ot+1]=Rt+1,ni[Ot+2]=Rt,ni[Ot+3]=Rt+3,ni[Ot+4]=Rt+1,ni[Ot+5]=Rt+2,ni[Ot+6]=Rt+2,ni[Ot+7]=Rt+3,Ot+=8,Rt+=4;B.bindBuffer(B.ELEMENT_ARRAY_BUFFER,C.__webglFaceBuffer),B.bufferData(B.ELEMENT_ARRAY_BUFFER,ii,E),B.bindBuffer(B.ELEMENT_ARRAY_BUFFER,C.__webglLineBuffer),B.bufferData(B.ELEMENT_ARRAY_BUFFER,ni,E)}if(ei)for(vt=0,yt=ei.length;yt>vt;vt++)if(ti=ei[vt],ti.__original.needsUpdate){if(zt=0,1===ti.size){if(void 0===ti.boundTo||"vertices"===ti.boundTo){for(N=0,G=pi.length;G>N;N++)O=di[pi[N]],ti.array[zt]=ti.value[O.a],ti.array[zt+1]=ti.value[O.b],ti.array[zt+2]=ti.value[O.c],zt+=3;for(N=0,G=fi.length;G>N;N++)O=di[fi[N]],ti.array[zt]=ti.value[O.a],ti.array[zt+1]=ti.value[O.b],ti.array[zt+2]=ti.value[O.c],ti.array[zt+3]=ti.value[O.d],zt+=4}else if("faces"===ti.boundTo){for(N=0,G=pi.length;G>N;N++)Bt=ti.value[pi[N]],ti.array[zt]=Bt,ti.array[zt+1]=Bt,ti.array[zt+2]=Bt,zt+=3;for(N=0,G=fi.length;G>N;N++)Bt=ti.value[fi[N]],ti.array[zt]=Bt,ti.array[zt+1]=Bt,ti.array[zt+2]=Bt,ti.array[zt+3]=Bt,zt+=4}}else if(2===ti.size){if(void 0===ti.boundTo||"vertices"===ti.boundTo){for(N=0,G=pi.length;G>N;N++)O=di[pi[N]],X=ti.value[O.a],Y=ti.value[O.b],K=ti.value[O.c],ti.array[zt]=X.x,ti.array[zt+1]=X.y,ti.array[zt+2]=Y.x,ti.array[zt+3]=Y.y,ti.array[zt+4]=K.x,ti.array[zt+5]=K.y,zt+=6;for(N=0,G=fi.length;G>N;N++)O=di[fi[N]],X=ti.value[O.a],Y=ti.value[O.b],K=ti.value[O.c],$=ti.value[O.d],ti.array[zt]=X.x,ti.array[zt+1]=X.y,ti.array[zt+2]=Y.x,ti.array[zt+3]=Y.y,ti.array[zt+4]=K.x,ti.array[zt+5]=K.y,ti.array[zt+6]=$.x,ti.array[zt+7]=$.y,zt+=8}else if("faces"===ti.boundTo){for(N=0,G=pi.length;G>N;N++)K=Y=X=Bt=ti.value[pi[N]],ti.array[zt]=X.x,ti.array[zt+1]=X.y,ti.array[zt+2]=Y.x,ti.array[zt+3]=Y.y,ti.array[zt+4]=K.x,ti.array[zt+5]=K.y,zt+=6;for(N=0,G=fi.length;G>N;N++)$=K=Y=X=Bt=ti.value[fi[N]],ti.array[zt]=X.x,ti.array[zt+1]=X.y,ti.array[zt+2]=Y.x,ti.array[zt+3]=Y.y,ti.array[zt+4]=K.x,ti.array[zt+5]=K.y,ti.array[zt+6]=$.x,ti.array[zt+7]=$.y,zt+=8}}else if(3===ti.size){var wi;if(wi="c"===ti.type?["r","g","b"]:["x","y","z"],void 0===ti.boundTo||"vertices"===ti.boundTo){for(N=0,G=pi.length;G>N;N++)O=di[pi[N]],X=ti.value[O.a],Y=ti.value[O.b],K=ti.value[O.c],ti.array[zt]=X[wi[0]],ti.array[zt+1]=X[wi[1]],ti.array[zt+2]=X[wi[2]],ti.array[zt+3]=Y[wi[0]],ti.array[zt+4]=Y[wi[1]],ti.array[zt+5]=Y[wi[2]],ti.array[zt+6]=K[wi[0]],ti.array[zt+7]=K[wi[1]],ti.array[zt+8]=K[wi[2]],zt+=9;for(N=0,G=fi.length;G>N;N++)O=di[fi[N]],X=ti.value[O.a],Y=ti.value[O.b],K=ti.value[O.c],$=ti.value[O.d],ti.array[zt]=X[wi[0]],ti.array[zt+1]=X[wi[1]],ti.array[zt+2]=X[wi[2]],ti.array[zt+3]=Y[wi[0]],ti.array[zt+4]=Y[wi[1]],ti.array[zt+5]=Y[wi[2]],ti.array[zt+6]=K[wi[0]],ti.array[zt+7]=K[wi[1]],ti.array[zt+8]=K[wi[2]],ti.array[zt+9]=$[wi[0]],ti.array[zt+10]=$[wi[1]],ti.array[zt+11]=$[wi[2]],zt+=12}else if("faces"===ti.boundTo){for(N=0,G=pi.length;G>N;N++)K=Y=X=Bt=ti.value[pi[N]],ti.array[zt]=X[wi[0]],ti.array[zt+1]=X[wi[1]],ti.array[zt+2]=X[wi[2]],ti.array[zt+3]=Y[wi[0]],ti.array[zt+4]=Y[wi[1]],ti.array[zt+5]=Y[wi[2]],ti.array[zt+6]=K[wi[0]],ti.array[zt+7]=K[wi[1]],ti.array[zt+8]=K[wi[2]],zt+=9;for(N=0,G=fi.length;G>N;N++)$=K=Y=X=Bt=ti.value[fi[N]],ti.array[zt]=X[wi[0]],ti.array[zt+1]=X[wi[1]],ti.array[zt+2]=X[wi[2]],ti.array[zt+3]=Y[wi[0]],ti.array[zt+4]=Y[wi[1]],ti.array[zt+5]=Y[wi[2]],ti.array[zt+6]=K[wi[0]],ti.array[zt+7]=K[wi[1]],ti.array[zt+8]=K[wi[2]],ti.array[zt+9]=$[wi[0]],ti.array[zt+10]=$[wi[1]],ti.array[zt+11]=$[wi[2]],zt+=12}else if("faceVertices"===ti.boundTo){for(N=0,G=pi.length;G>N;N++)Bt=ti.value[pi[N]],X=Bt[0],Y=Bt[1],K=Bt[2],ti.array[zt]=X[wi[0]],ti.array[zt+1]=X[wi[1]],ti.array[zt+2]=X[wi[2]],ti.array[zt+3]=Y[wi[0]],ti.array[zt+4]=Y[wi[1]],ti.array[zt+5]=Y[wi[2]],ti.array[zt+6]=K[wi[0]],ti.array[zt+7]=K[wi[1]],ti.array[zt+8]=K[wi[2]],zt+=9;for(N=0,G=fi.length;G>N;N++)Bt=ti.value[fi[N]],X=Bt[0],Y=Bt[1],K=Bt[2],$=Bt[3],ti.array[zt]=X[wi[0]],ti.array[zt+1]=X[wi[1]],ti.array[zt+2]=X[wi[2]],ti.array[zt+3]=Y[wi[0]],ti.array[zt+4]=Y[wi[1]],ti.array[zt+5]=Y[wi[2]],ti.array[zt+6]=K[wi[0]],ti.array[zt+7]=K[wi[1]],ti.array[zt+8]=K[wi[2]],ti.array[zt+9]=$[wi[0]],ti.array[zt+10]=$[wi[1]],ti.array[zt+11]=$[wi[2]],zt+=12}}else if(4===ti.size)if(void 0===ti.boundTo||"vertices"===ti.boundTo){for(N=0,G=pi.length;G>N;N++)O=di[pi[N]],X=ti.value[O.a],Y=ti.value[O.b],K=ti.value[O.c],ti.array[zt]=X.x,ti.array[zt+1]=X.y,ti.array[zt+2]=X.z,ti.array[zt+3]=X.w,ti.array[zt+4]=Y.x,ti.array[zt+5]=Y.y,ti.array[zt+6]=Y.z,ti.array[zt+7]=Y.w,ti.array[zt+8]=K.x,ti.array[zt+9]=K.y,ti.array[zt+10]=K.z,ti.array[zt+11]=K.w,zt+=12;for(N=0,G=fi.length;G>N;N++)O=di[fi[N]],X=ti.value[O.a],Y=ti.value[O.b],K=ti.value[O.c],$=ti.value[O.d],ti.array[zt]=X.x,ti.array[zt+1]=X.y,ti.array[zt+2]=X.z,ti.array[zt+3]=X.w,ti.array[zt+4]=Y.x,ti.array[zt+5]=Y.y,ti.array[zt+6]=Y.z,ti.array[zt+7]=Y.w,ti.array[zt+8]=K.x,ti.array[zt+9]=K.y,ti.array[zt+10]=K.z,ti.array[zt+11]=K.w,ti.array[zt+12]=$.x,ti.array[zt+13]=$.y,ti.array[zt+14]=$.z,ti.array[zt+15]=$.w,zt+=16}else if("faces"===ti.boundTo){for(N=0,G=pi.length;G>N;N++)K=Y=X=Bt=ti.value[pi[N]],ti.array[zt]=X.x,ti.array[zt+1]=X.y,ti.array[zt+2]=X.z,ti.array[zt+3]=X.w,ti.array[zt+4]=Y.x,ti.array[zt+5]=Y.y,ti.array[zt+6]=Y.z,ti.array[zt+7]=Y.w,ti.array[zt+8]=K.x,ti.array[zt+9]=K.y,ti.array[zt+10]=K.z,ti.array[zt+11]=K.w,zt+=12;for(N=0,G=fi.length;G>N;N++)$=K=Y=X=Bt=ti.value[fi[N]],ti.array[zt]=X.x,ti.array[zt+1]=X.y,ti.array[zt+2]=X.z,ti.array[zt+3]=X.w,ti.array[zt+4]=Y.x,ti.array[zt+5]=Y.y,ti.array[zt+6]=Y.z,ti.array[zt+7]=Y.w,ti.array[zt+8]=K.x,ti.array[zt+9]=K.y,ti.array[zt+10]=K.z,ti.array[zt+11]=K.w,ti.array[zt+12]=$.x,ti.array[zt+13]=$.y,ti.array[zt+14]=$.z,ti.array[zt+15]=$.w,zt+=16}else if("faceVertices"===ti.boundTo){for(N=0,G=pi.length;G>N;N++)Bt=ti.value[pi[N]],X=Bt[0],Y=Bt[1],K=Bt[2],ti.array[zt]=X.x,ti.array[zt+1]=X.y,ti.array[zt+2]=X.z,ti.array[zt+3]=X.w,ti.array[zt+4]=Y.x,ti.array[zt+5]=Y.y,ti.array[zt+6]=Y.z,ti.array[zt+7]=Y.w,ti.array[zt+8]=K.x,ti.array[zt+9]=K.y,ti.array[zt+10]=K.z,ti.array[zt+11]=K.w,zt+=12;for(N=0,G=fi.length;G>N;N++)Bt=ti.value[fi[N]],X=Bt[0],Y=Bt[1],K=Bt[2],$=Bt[3],ti.array[zt]=X.x,ti.array[zt+1]=X.y,ti.array[zt+2]=X.z,ti.array[zt+3]=X.w,ti.array[zt+4]=Y.x,ti.array[zt+5]=Y.y,ti.array[zt+6]=Y.z,ti.array[zt+7]=Y.w,ti.array[zt+8]=K.x,ti.array[zt+9]=K.y,ti.array[zt+10]=K.z,ti.array[zt+11]=K.w,ti.array[zt+12]=$.x,ti.array[zt+13]=$.y,ti.array[zt+14]=$.z,ti.array[zt+15]=$.w,zt+=16}B.bindBuffer(B.ARRAY_BUFFER,ti.buffer),B.bufferData(B.ARRAY_BUFFER,ti.array,E)}P&&(delete C.__inittedArrays,delete C.__colorArray,delete C.__normalArray,delete C.__tangentArray,delete C.__uvArray,delete C.__uv2Array,delete C.__faceArray,delete C.__vertexArray,delete C.__lineArray,delete C.__skinIndexArray,delete C.__skinWeightArray)}}c.verticesNeedUpdate=!1,c.morphTargetsNeedUpdate=!1,c.elementsNeedUpdate=!1,c.uvsNeedUpdate=!1,c.normalsNeedUpdate=!1,c.colorsNeedUpdate=!1,c.tangentsNeedUpdate=!1,c.buffersNeedUpdate=!1,d.attributes&&y(d)}else if(h instanceof e.Ribbon){if(d=o(h,c),f=d.attributes&&v(d),c.verticesNeedUpdate||c.colorsNeedUpdate||c.normalsNeedUpdate||f){var _i=c,Si=B.DYNAMIC_DRAW,Mi=void 0,Ti=void 0,Ci=void 0,Ai=void 0,Ei=void 0,Pi=void 0,ki=void 0,Ri=void 0,Li=void 0,Di=void 0,Fi=void 0,Ni=void 0,Gi=void 0,Vi=_i.vertices,Oi=_i.colors,ji=_i.normals,Ui=Vi.length,Ii=Oi.length,zi=ji.length,Bi=_i.__vertexArray,Hi=_i.__colorArray,qi=_i.__normalArray,Wi=_i.colorsNeedUpdate,Xi=_i.normalsNeedUpdate,Yi=_i.__webglCustomAttributesList;if(_i.verticesNeedUpdate){for(Mi=0;Ui>Mi;Mi++)Ai=Vi[Mi],Ei=3*Mi,Bi[Ei]=Ai.x,Bi[Ei+1]=Ai.y,Bi[Ei+2]=Ai.z;B.bindBuffer(B.ARRAY_BUFFER,_i.__webglVertexBuffer),B.bufferData(B.ARRAY_BUFFER,Bi,Si)}if(Wi){for(Ti=0;Ii>Ti;Ti++)Pi=Oi[Ti],Ei=3*Ti,Hi[Ei]=Pi.r,Hi[Ei+1]=Pi.g,Hi[Ei+2]=Pi.b;B.bindBuffer(B.ARRAY_BUFFER,_i.__webglColorBuffer),B.bufferData(B.ARRAY_BUFFER,Hi,Si)}if(Xi){for(Ci=0;zi>Ci;Ci++)ki=ji[Ci],Ei=3*Ci,qi[Ei]=ki.x,qi[Ei+1]=ki.y,qi[Ei+2]=ki.z;B.bindBuffer(B.ARRAY_BUFFER,_i.__webglNormalBuffer),B.bufferData(B.ARRAY_BUFFER,qi,Si)}if(Yi)for(Ri=0,Li=Yi.length;Li>Ri;Ri++)if(Ni=Yi[Ri],Ni.needsUpdate&&(void 0===Ni.boundTo||"vertices"===Ni.boundTo)){if(Ei=0,Fi=Ni.value.length,1===Ni.size)for(Di=0;Fi>Di;Di++)Ni.array[Di]=Ni.value[Di];else if(2===Ni.size)for(Di=0;Fi>Di;Di++)Gi=Ni.value[Di],Ni.array[Ei]=Gi.x,Ni.array[Ei+1]=Gi.y,Ei+=2;else if(3===Ni.size)if("c"===Ni.type)for(Di=0;Fi>Di;Di++)Gi=Ni.value[Di],Ni.array[Ei]=Gi.r,Ni.array[Ei+1]=Gi.g,Ni.array[Ei+2]=Gi.b,Ei+=3;else for(Di=0;Fi>Di;Di++)Gi=Ni.value[Di],Ni.array[Ei]=Gi.x,Ni.array[Ei+1]=Gi.y,Ni.array[Ei+2]=Gi.z,Ei+=3;else if(4===Ni.size)for(Di=0;Fi>Di;Di++)Gi=Ni.value[Di],Ni.array[Ei]=Gi.x,Ni.array[Ei+1]=Gi.y,Ni.array[Ei+2]=Gi.z,Ni.array[Ei+3]=Gi.w,Ei+=4;B.bindBuffer(B.ARRAY_BUFFER,Ni.buffer),B.bufferData(B.ARRAY_BUFFER,Ni.array,Si)}}c.verticesNeedUpdate=!1,c.colorsNeedUpdate=!1,c.normalsNeedUpdate=!1,d.attributes&&y(d)}else if(h instanceof e.Line){if(d=o(h,c),f=d.attributes&&v(d),c.verticesNeedUpdate||c.colorsNeedUpdate||c.lineDistancesNeedUpdate||f){var Ki=c,$i=B.DYNAMIC_DRAW,Qi=void 0,Zi=void 0,Ji=void 0,en=void 0,tn=void 0,nn=void 0,rn=Ki.vertices,on=Ki.colors,an=Ki.lineDistances,sn=rn.length,ln=on.length,hn=an.length,cn=Ki.__vertexArray,un=Ki.__colorArray,pn=Ki.__lineDistanceArray,fn=Ki.colorsNeedUpdate,dn=Ki.lineDistancesNeedUpdate,mn=Ki.__webglCustomAttributesList,gn=void 0,vn=void 0,yn=void 0,bn=void 0,xn=void 0,wn=void 0;if(Ki.verticesNeedUpdate){for(Qi=0;sn>Qi;Qi++)en=rn[Qi],tn=3*Qi,cn[tn]=en.x,cn[tn+1]=en.y,cn[tn+2]=en.z;B.bindBuffer(B.ARRAY_BUFFER,Ki.__webglVertexBuffer),B.bufferData(B.ARRAY_BUFFER,cn,$i)}if(fn){for(Zi=0;ln>Zi;Zi++)nn=on[Zi],tn=3*Zi,un[tn]=nn.r,un[tn+1]=nn.g,un[tn+2]=nn.b;B.bindBuffer(B.ARRAY_BUFFER,Ki.__webglColorBuffer),B.bufferData(B.ARRAY_BUFFER,un,$i)}if(dn){for(Ji=0;hn>Ji;Ji++)pn[Ji]=an[Ji];B.bindBuffer(B.ARRAY_BUFFER,Ki.__webglLineDistanceBuffer),B.bufferData(B.ARRAY_BUFFER,pn,$i)}if(mn)for(gn=0,vn=mn.length;vn>gn;gn++)if(wn=mn[gn],wn.needsUpdate&&(void 0===wn.boundTo||"vertices"===wn.boundTo)){if(tn=0,bn=wn.value.length,1===wn.size)for(yn=0;bn>yn;yn++)wn.array[yn]=wn.value[yn];else if(2===wn.size)for(yn=0;bn>yn;yn++)xn=wn.value[yn],wn.array[tn]=xn.x,wn.array[tn+1]=xn.y,tn+=2;else if(3===wn.size)if("c"===wn.type)for(yn=0;bn>yn;yn++)xn=wn.value[yn],wn.array[tn]=xn.r,wn.array[tn+1]=xn.g,wn.array[tn+2]=xn.b,tn+=3;else for(yn=0;bn>yn;yn++)xn=wn.value[yn],wn.array[tn]=xn.x,wn.array[tn+1]=xn.y,wn.array[tn+2]=xn.z,tn+=3;else if(4===wn.size)for(yn=0;bn>yn;yn++)xn=wn.value[yn],wn.array[tn]=xn.x,wn.array[tn+1]=xn.y,wn.array[tn+2]=xn.z,wn.array[tn+3]=xn.w,tn+=4;B.bindBuffer(B.ARRAY_BUFFER,wn.buffer),B.bufferData(B.ARRAY_BUFFER,wn.array,$i)}}c.verticesNeedUpdate=!1,c.colorsNeedUpdate=!1,c.lineDistancesNeedUpdate=!1,d.attributes&&y(d)}else if(h instanceof e.ParticleSystem){if(d=o(h,c),f=d.attributes&&v(d),c.verticesNeedUpdate||c.colorsNeedUpdate||h.sortParticles||f){var _n=c,Sn=B.DYNAMIC_DRAW,Mn=h,Tn=void 0,Cn=void 0,An=void 0,En=void 0,Pn=void 0,kn=void 0,Rn=_n.vertices,Ln=Rn.length,Dn=_n.colors,Fn=Dn.length,Nn=_n.__vertexArray,Gn=_n.__colorArray,Vn=_n.__sortArray,On=_n.verticesNeedUpdate,jn=_n.colorsNeedUpdate,Un=_n.__webglCustomAttributesList,In=void 0,zn=void 0,Bn=void 0,Hn=void 0,qn=void 0,Wn=void 0;if(Mn.sortParticles){for(Tt.copy(Mt),Tt.multiply(Mn.matrixWorld),Tn=0;Ln>Tn;Tn++)An=Rn[Tn],Ct.copy(An),Ct.applyProjection(Tt),Vn[Tn]=[Ct.z,Tn];for(Vn.sort(u),Tn=0;Ln>Tn;Tn++)An=Rn[Vn[Tn][1]],En=3*Tn,Nn[En]=An.x,Nn[En+1]=An.y,Nn[En+2]=An.z;for(Cn=0;Fn>Cn;Cn++)En=3*Cn,kn=Dn[Vn[Cn][1]],Gn[En]=kn.r,Gn[En+1]=kn.g,Gn[En+2]=kn.b;if(Un)for(In=0,zn=Un.length;zn>In;In++)if(Wn=Un[In],void 0===Wn.boundTo||"vertices"===Wn.boundTo)if(En=0,Hn=Wn.value.length,1===Wn.size)for(Bn=0;Hn>Bn;Bn++)Pn=Vn[Bn][1],Wn.array[Bn]=Wn.value[Pn];else if(2===Wn.size)for(Bn=0;Hn>Bn;Bn++)Pn=Vn[Bn][1],qn=Wn.value[Pn],Wn.array[En]=qn.x,Wn.array[En+1]=qn.y,En+=2;else if(3===Wn.size)if("c"===Wn.type)for(Bn=0;Hn>Bn;Bn++)Pn=Vn[Bn][1],qn=Wn.value[Pn],Wn.array[En]=qn.r,Wn.array[En+1]=qn.g,Wn.array[En+2]=qn.b,En+=3;else for(Bn=0;Hn>Bn;Bn++)Pn=Vn[Bn][1],qn=Wn.value[Pn],Wn.array[En]=qn.x,Wn.array[En+1]=qn.y,Wn.array[En+2]=qn.z,En+=3;else if(4===Wn.size)for(Bn=0;Hn>Bn;Bn++)Pn=Vn[Bn][1],qn=Wn.value[Pn],Wn.array[En]=qn.x,Wn.array[En+1]=qn.y,Wn.array[En+2]=qn.z,Wn.array[En+3]=qn.w,En+=4}else{if(On)for(Tn=0;Ln>Tn;Tn++)An=Rn[Tn],En=3*Tn,Nn[En]=An.x,Nn[En+1]=An.y,Nn[En+2]=An.z;if(jn)for(Cn=0;Fn>Cn;Cn++)kn=Dn[Cn],En=3*Cn,Gn[En]=kn.r,Gn[En+1]=kn.g,Gn[En+2]=kn.b;if(Un)for(In=0,zn=Un.length;zn>In;In++)if(Wn=Un[In],Wn.needsUpdate&&(void 0===Wn.boundTo||"vertices"===Wn.boundTo))if(Hn=Wn.value.length,En=0,1===Wn.size)for(Bn=0;Hn>Bn;Bn++)Wn.array[Bn]=Wn.value[Bn];else if(2===Wn.size)for(Bn=0;Hn>Bn;Bn++)qn=Wn.value[Bn],Wn.array[En]=qn.x,Wn.array[En+1]=qn.y,En+=2;else if(3===Wn.size)if("c"===Wn.type)for(Bn=0;Hn>Bn;Bn++)qn=Wn.value[Bn],Wn.array[En]=qn.r,Wn.array[En+1]=qn.g,Wn.array[En+2]=qn.b,En+=3;else for(Bn=0;Hn>Bn;Bn++)qn=Wn.value[Bn],Wn.array[En]=qn.x,Wn.array[En+1]=qn.y,Wn.array[En+2]=qn.z,En+=3;else if(4===Wn.size)for(Bn=0;Hn>Bn;Bn++)qn=Wn.value[Bn],Wn.array[En]=qn.x,Wn.array[En+1]=qn.y,Wn.array[En+2]=qn.z,Wn.array[En+3]=qn.w,En+=4}if((On||Mn.sortParticles)&&(B.bindBuffer(B.ARRAY_BUFFER,_n.__webglVertexBuffer),B.bufferData(B.ARRAY_BUFFER,Nn,Sn)),(jn||Mn.sortParticles)&&(B.bindBuffer(B.ARRAY_BUFFER,_n.__webglColorBuffer),B.bufferData(B.ARRAY_BUFFER,Gn,Sn)),Un)for(In=0,zn=Un.length;zn>In;In++)Wn=Un[In],(Wn.needsUpdate||Mn.sortParticles)&&(B.bindBuffer(B.ARRAY_BUFFER,Wn.buffer),B.bufferData(B.ARRAY_BUFFER,Wn.array,Sn))}c.verticesNeedUpdate=!1,c.colorsNeedUpdate=!1,d.attributes&&y(d)}}},this.initMaterial=function(t,i,n,r){var o,a,s,l;t.addEventListener("dispose",Wt);var h,c,u,p,f;if(t instanceof e.MeshDepthMaterial?f="depth":t instanceof e.MeshNormalMaterial?f="normal":t instanceof e.MeshBasicMaterial?f="basic":t instanceof e.MeshLambertMaterial?f="lambert":t instanceof e.MeshPhongMaterial?f="phong":t instanceof e.LineBasicMaterial?f="basic":t instanceof e.LineDashedMaterial?f="dashed":t instanceof e.ParticleBasicMaterial&&(f="particle_basic"),f){var d=e.ShaderLib[f];t.uniforms=e.UniformsUtils.clone(d.uniforms),t.vertexShader=d.vertexShader,t.fragmentShader=d.fragmentShader}var m,g,v;for(o=s=g=v=d=0,a=i.length;a>o;o++)m=i[o],m.onlyShadow||(m instanceof e.DirectionalLight&&s++,m instanceof e.PointLight&&g++,m instanceof e.SpotLight&&v++,m instanceof e.HemisphereLight&&d++);for(o=s,a=g,s=v,l=d,d=m=0,v=i.length;v>d;d++)g=i[d],g.castShadow&&(g instanceof e.SpotLight&&m++,g instanceof e.DirectionalLight&&!g.shadowCascade&&m++);p=m,Gt&&r&&r.useVertexTexture?u=1024:(i=B.getParameter(B.MAX_VERTEX_UNIFORM_VECTORS),i=Math.floor((i-20)/4),void 0!==r&&r instanceof e.SkinnedMesh&&(i=Math.min(r.bones.length,i),i<r.bones.length&&console.warn("WebGLRenderer: too many bones - "+r.bones.length+", this GPU supports just "+i+" (try OpenGL instead of ANGLE)")),u=i);e:{v=t.fragmentShader,g=t.vertexShader,d=t.uniforms,i=t.attributes,m=t.defines;var y,b,x,n={map:!!t.map,envMap:!!t.envMap,lightMap:!!t.lightMap,bumpMap:!!t.bumpMap,normalMap:!!t.normalMap,specularMap:!!t.specularMap,vertexColors:t.vertexColors,fog:n,useFog:t.fog,fogExp:n instanceof e.FogExp2,sizeAttenuation:t.sizeAttenuation,skinning:t.skinning,maxBones:u,useVertexTexture:Gt&&r&&r.useVertexTexture,boneTextureWidth:r&&r.boneTextureWidth,boneTextureHeight:r&&r.boneTextureHeight,morphTargets:t.morphTargets,morphNormals:t.morphNormals,maxMorphTargets:this.maxMorphTargets,maxMorphNormals:this.maxMorphNormals,maxDirLights:o,maxPointLights:a,maxSpotLights:s,maxHemiLights:l,maxShadows:p,shadowMapEnabled:this.shadowMapEnabled&&r.receiveShadow,shadowMapType:this.shadowMapType,shadowMapDebug:this.shadowMapDebug,shadowMapCascade:this.shadowMapCascade,alphaTest:t.alphaTest,metal:t.metal,perPixel:t.perPixel,wrapAround:t.wrapAround,doubleSided:t.side===e.DoubleSide,flipSided:t.side===e.BackSide},r=[];f?r.push(f):(r.push(v),r.push(g));for(b in m)r.push(b),r.push(m[b]);for(y in n)r.push(y),r.push(n[y]);for(f=r.join(),y=0,b=K.length;b>y;y++)if(r=K[y],r.code===f){r.usedTimes++,c=r.program;break e}y="SHADOWMAP_TYPE_BASIC",n.shadowMapType===e.PCFShadowMap?y="SHADOWMAP_TYPE_PCF":n.shadowMapType===e.PCFSoftShadowMap&&(y="SHADOWMAP_TYPE_PCF_SOFT"),b=[];for(x in m)r=m[x],!1!==r&&(r="#define "+x+" "+r,b.push(r));r=b.join("\n"),x=B.createProgram(),b=["precision "+N+" float;",r,Nt?"#define VERTEX_TEXTURES":"",Y.gammaInput?"#define GAMMA_INPUT":"",Y.gammaOutput?"#define GAMMA_OUTPUT":"",Y.physicallyBasedShading?"#define PHYSICALLY_BASED_SHADING":"","#define MAX_DIR_LIGHTS "+n.maxDirLights,"#define MAX_POINT_LIGHTS "+n.maxPointLights,"#define MAX_SPOT_LIGHTS "+n.maxSpotLights,"#define MAX_HEMI_LIGHTS "+n.maxHemiLights,"#define MAX_SHADOWS "+n.maxShadows,"#define MAX_BONES "+n.maxBones,n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.lightMap?"#define USE_LIGHTMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.vertexColors?"#define USE_COLOR":"",n.skinning?"#define USE_SKINNING":"",n.useVertexTexture?"#define BONE_TEXTURE":"",n.boneTextureWidth?"#define N_BONE_PIXEL_X "+n.boneTextureWidth.toFixed(1):"",n.boneTextureHeight?"#define N_BONE_PIXEL_Y "+n.boneTextureHeight.toFixed(1):"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals?"#define USE_MORPHNORMALS":"",n.perPixel?"#define PHONG_PER_PIXEL":"",n.wrapAround?"#define WRAP_AROUND":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+y:"",n.shadowMapDebug?"#define SHADOWMAP_DEBUG":"",n.shadowMapCascade?"#define SHADOWMAP_CASCADE":"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"","uniform mat4 modelMatrix;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nuniform mat4 viewMatrix;\nuniform mat3 normalMatrix;\nuniform vec3 cameraPosition;\nattribute vec3 position;\nattribute vec3 normal;\nattribute vec2 uv;\nattribute vec2 uv2;\n#ifdef USE_COLOR\nattribute vec3 color;\n#endif\n#ifdef USE_MORPHTARGETS\nattribute vec3 morphTarget0;\nattribute vec3 morphTarget1;\nattribute vec3 morphTarget2;\nattribute vec3 morphTarget3;\n#ifdef USE_MORPHNORMALS\nattribute vec3 morphNormal0;\nattribute vec3 morphNormal1;\nattribute vec3 morphNormal2;\nattribute vec3 morphNormal3;\n#else\nattribute vec3 morphTarget4;\nattribute vec3 morphTarget5;\nattribute vec3 morphTarget6;\nattribute vec3 morphTarget7;\n#endif\n#endif\n#ifdef USE_SKINNING\nattribute vec4 skinIndex;\nattribute vec4 skinWeight;\n#endif\n"].join("\n"),y=["precision "+N+" float;",n.bumpMap||n.normalMap?"#extension GL_OES_standard_derivatives : enable":"",r,"#define MAX_DIR_LIGHTS "+n.maxDirLights,"#define MAX_POINT_LIGHTS "+n.maxPointLights,"#define MAX_SPOT_LIGHTS "+n.maxSpotLights,"#define MAX_HEMI_LIGHTS "+n.maxHemiLights,"#define MAX_SHADOWS "+n.maxShadows,n.alphaTest?"#define ALPHATEST "+n.alphaTest:"",Y.gammaInput?"#define GAMMA_INPUT":"",Y.gammaOutput?"#define GAMMA_OUTPUT":"",Y.physicallyBasedShading?"#define PHYSICALLY_BASED_SHADING":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.lightMap?"#define USE_LIGHTMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.vertexColors?"#define USE_COLOR":"",n.metal?"#define METAL":"",n.perPixel?"#define PHONG_PER_PIXEL":"",n.wrapAround?"#define WRAP_AROUND":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+y:"",n.shadowMapDebug?"#define SHADOWMAP_DEBUG":"",n.shadowMapCascade?"#define SHADOWMAP_CASCADE":"","uniform mat4 viewMatrix;\nuniform vec3 cameraPosition;\n"].join("\n"),b=P("vertex",b+g),y=P("fragment",y+v),B.attachShader(x,b),B.attachShader(x,y),B.linkProgram(x),B.getProgramParameter(x,B.LINK_STATUS)||console.error("Could not initialise shader\nVALIDATE_STATUS: "+B.getProgramParameter(x,B.VALIDATE_STATUS)+", gl error ["+B.getError()+"]"),B.deleteShader(y),B.deleteShader(b),x.uniforms={},x.attributes={};var w;y="viewMatrix modelViewMatrix projectionMatrix normalMatrix modelMatrix cameraPosition morphTargetInfluences".split(" "),y.push(n.useVertexTexture?"boneTexture":"boneGlobalMatrices");for(w in d)y.push(w);for(w=y,y=0,b=w.length;b>y;y++)d=w[y],x.uniforms[d]=B.getUniformLocation(x,d);for(y="position normal uv uv2 tangent color skinIndex skinWeight lineDistance".split(" "),w=0;w<n.maxMorphTargets;w++)y.push("morphTarget"+w); for(w=0;w<n.maxMorphNormals;w++)y.push("morphNormal"+w);for(c in i)y.push(c);for(c=y,w=0,i=c.length;i>w;w++)y=c[w],x.attributes[y]=B.getAttribLocation(x,y);x.id=$++,K.push({program:x,code:f,usedTimes:1}),Y.info.memory.programs=K.length,c=x}if(t.program=c,w=t.program.attributes,t.morphTargets)for(t.numSupportedMorphTargets=0,i="morphTarget",c=0;c<this.maxMorphTargets;c++)x=i+c,0<=w[x]&&t.numSupportedMorphTargets++;if(t.morphNormals)for(t.numSupportedMorphNormals=0,i="morphNormal",c=0;c<this.maxMorphNormals;c++)x=i+c,0<=w[x]&&t.numSupportedMorphNormals++;t.uniformsList=[];for(h in t.uniforms)t.uniformsList.push([t.uniforms[h],h])},this.setFaceCulling=function(t,i){t===e.CullFaceNone?B.disable(B.CULL_FACE):(B.frontFace(i===e.FrontFaceDirectionCW?B.CW:B.CCW),B.cullFace(t===e.CullFaceBack?B.BACK:t===e.CullFaceFront?B.FRONT:B.FRONT_AND_BACK),B.enable(B.CULL_FACE))},this.setMaterialFaces=function(t){var i=t.side===e.DoubleSide,t=t.side===e.BackSide;rt!==i&&(i?B.disable(B.CULL_FACE):B.enable(B.CULL_FACE),rt=i),ot!==t&&(B.frontFace(t?B.CW:B.CCW),ot=t)},this.setDepthTest=function(e){ct!==e&&(e?B.enable(B.DEPTH_TEST):B.disable(B.DEPTH_TEST),ct=e)},this.setDepthWrite=function(e){ut!==e&&(B.depthMask(e),ut=e)},this.setBlending=function(t,i,n,r){t!==at&&(t===e.NoBlending?B.disable(B.BLEND):t===e.AdditiveBlending?(B.enable(B.BLEND),B.blendEquation(B.FUNC_ADD),B.blendFunc(B.SRC_ALPHA,B.ONE)):t===e.SubtractiveBlending?(B.enable(B.BLEND),B.blendEquation(B.FUNC_ADD),B.blendFunc(B.ZERO,B.ONE_MINUS_SRC_COLOR)):t===e.MultiplyBlending?(B.enable(B.BLEND),B.blendEquation(B.FUNC_ADD),B.blendFunc(B.ZERO,B.SRC_COLOR)):t===e.CustomBlending?B.enable(B.BLEND):(B.enable(B.BLEND),B.blendEquationSeparate(B.FUNC_ADD,B.FUNC_ADD),B.blendFuncSeparate(B.SRC_ALPHA,B.ONE_MINUS_SRC_ALPHA,B.ONE,B.ONE_MINUS_SRC_ALPHA)),at=t),t===e.CustomBlending?(i!==st&&(B.blendEquation(D(i)),st=i),(n!==lt||r!==ht)&&(B.blendFunc(D(n),D(r)),lt=n,ht=r)):ht=lt=st=null},this.setTexture=function(t,i){if(t.needsUpdate){t.__webglInit||(t.__webglInit=!0,t.addEventListener("dispose",Ht),t.__webglTexture=B.createTexture(),Y.info.memory.textures++),B.activeTexture(B.TEXTURE0+i),B.bindTexture(B.TEXTURE_2D,t.__webglTexture),B.pixelStorei(B.UNPACK_FLIP_Y_WEBGL,t.flipY),B.pixelStorei(B.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),B.pixelStorei(B.UNPACK_ALIGNMENT,t.unpackAlignment);var n=t.image,r=0===(n.width&n.width-1)&&0===(n.height&n.height-1),o=D(t.format),a=D(t.type);k(B.TEXTURE_2D,t,r);var s=t.mipmaps;if(t instanceof e.DataTexture)if(0<s.length&&r){for(var l=0,h=s.length;h>l;l++)n=s[l],B.texImage2D(B.TEXTURE_2D,l,o,n.width,n.height,0,o,a,n.data);t.generateMipmaps=!1}else B.texImage2D(B.TEXTURE_2D,0,o,n.width,n.height,0,o,a,n.data);else if(t instanceof e.CompressedTexture)for(l=0,h=s.length;h>l;l++)n=s[l],B.compressedTexImage2D(B.TEXTURE_2D,l,o,n.width,n.height,0,n.data);else if(0<s.length&&r){for(l=0,h=s.length;h>l;l++)n=s[l],B.texImage2D(B.TEXTURE_2D,l,o,o,a,n);t.generateMipmaps=!1}else B.texImage2D(B.TEXTURE_2D,0,o,o,a,t.image);t.generateMipmaps&&r&&B.generateMipmap(B.TEXTURE_2D),t.needsUpdate=!1,t.onUpdate&&t.onUpdate()}else B.activeTexture(B.TEXTURE0+i),B.bindTexture(B.TEXTURE_2D,t.__webglTexture)},this.setRenderTarget=function(t){var i=t instanceof e.WebGLRenderTargetCube;if(t&&!t.__webglFramebuffer){void 0===t.depthBuffer&&(t.depthBuffer=!0),void 0===t.stencilBuffer&&(t.stencilBuffer=!0),t.addEventListener("dispose",qt),t.__webglTexture=B.createTexture(),Y.info.memory.textures++;var n=0===(t.width&t.width-1)&&0===(t.height&t.height-1),r=D(t.format),o=D(t.type);if(i){t.__webglFramebuffer=[],t.__webglRenderbuffer=[],B.bindTexture(B.TEXTURE_CUBE_MAP,t.__webglTexture),k(B.TEXTURE_CUBE_MAP,t,n);for(var a=0;6>a;a++){t.__webglFramebuffer[a]=B.createFramebuffer(),t.__webglRenderbuffer[a]=B.createRenderbuffer(),B.texImage2D(B.TEXTURE_CUBE_MAP_POSITIVE_X+a,0,r,t.width,t.height,0,r,o,null);var s=t,l=B.TEXTURE_CUBE_MAP_POSITIVE_X+a;B.bindFramebuffer(B.FRAMEBUFFER,t.__webglFramebuffer[a]),B.framebufferTexture2D(B.FRAMEBUFFER,B.COLOR_ATTACHMENT0,l,s.__webglTexture,0),R(t.__webglRenderbuffer[a],t)}n&&B.generateMipmap(B.TEXTURE_CUBE_MAP)}else t.__webglFramebuffer=B.createFramebuffer(),t.__webglRenderbuffer=t.shareDepthFrom?t.shareDepthFrom.__webglRenderbuffer:B.createRenderbuffer(),B.bindTexture(B.TEXTURE_2D,t.__webglTexture),k(B.TEXTURE_2D,t,n),B.texImage2D(B.TEXTURE_2D,0,r,t.width,t.height,0,r,o,null),r=B.TEXTURE_2D,B.bindFramebuffer(B.FRAMEBUFFER,t.__webglFramebuffer),B.framebufferTexture2D(B.FRAMEBUFFER,B.COLOR_ATTACHMENT0,r,t.__webglTexture,0),t.shareDepthFrom?t.depthBuffer&&!t.stencilBuffer?B.framebufferRenderbuffer(B.FRAMEBUFFER,B.DEPTH_ATTACHMENT,B.RENDERBUFFER,t.__webglRenderbuffer):t.depthBuffer&&t.stencilBuffer&&B.framebufferRenderbuffer(B.FRAMEBUFFER,B.DEPTH_STENCIL_ATTACHMENT,B.RENDERBUFFER,t.__webglRenderbuffer):R(t.__webglRenderbuffer,t),n&&B.generateMipmap(B.TEXTURE_2D);i?B.bindTexture(B.TEXTURE_CUBE_MAP,null):B.bindTexture(B.TEXTURE_2D,null),B.bindRenderbuffer(B.RENDERBUFFER,null),B.bindFramebuffer(B.FRAMEBUFFER,null)}t?(i=i?t.__webglFramebuffer[t.activeCubeFace]:t.__webglFramebuffer,n=t.width,t=t.height,o=r=0):(i=null,n=yt,t=bt,r=gt,o=vt),i!==Z&&(B.bindFramebuffer(B.FRAMEBUFFER,i),B.viewport(r,o,n,t),Z=i),xt=n,wt=t},this.shadowMapPlugin=new e.ShadowMapPlugin,this.addPrePlugin(this.shadowMapPlugin),this.addPostPlugin(new e.SpritePlugin),this.addPostPlugin(new e.LensFlarePlugin)},e.WebGLRenderTarget=function(t,i,n){this.width=t,this.height=i,n=n||{},this.wrapS=void 0!==n.wrapS?n.wrapS:e.ClampToEdgeWrapping,this.wrapT=void 0!==n.wrapT?n.wrapT:e.ClampToEdgeWrapping,this.magFilter=void 0!==n.magFilter?n.magFilter:e.LinearFilter,this.minFilter=void 0!==n.minFilter?n.minFilter:e.LinearMipMapLinearFilter,this.anisotropy=void 0!==n.anisotropy?n.anisotropy:1,this.offset=new e.Vector2(0,0),this.repeat=new e.Vector2(1,1),this.format=void 0!==n.format?n.format:e.RGBAFormat,this.type=void 0!==n.type?n.type:e.UnsignedByteType,this.depthBuffer=void 0!==n.depthBuffer?n.depthBuffer:!0,this.stencilBuffer=void 0!==n.stencilBuffer?n.stencilBuffer:!0,this.generateMipmaps=!0,this.shareDepthFrom=null},e.WebGLRenderTarget.prototype={constructor:e.WebGLRenderTarget,addEventListener:e.EventDispatcher.prototype.addEventListener,hasEventListener:e.EventDispatcher.prototype.hasEventListener,removeEventListener:e.EventDispatcher.prototype.removeEventListener,dispatchEvent:e.EventDispatcher.prototype.dispatchEvent,clone:function(){var t=new e.WebGLRenderTarget(this.width,this.height);return t.wrapS=this.wrapS,t.wrapT=this.wrapT,t.magFilter=this.magFilter,t.minFilter=this.minFilter,t.anisotropy=this.anisotropy,t.offset.copy(this.offset),t.repeat.copy(this.repeat),t.format=this.format,t.type=this.type,t.depthBuffer=this.depthBuffer,t.stencilBuffer=this.stencilBuffer,t.generateMipmaps=this.generateMipmaps,t.shareDepthFrom=this.shareDepthFrom,t},dispose:function(){this.dispatchEvent({type:"dispose"})}},e.WebGLRenderTargetCube=function(t,i,n){e.WebGLRenderTarget.call(this,t,i,n),this.activeCubeFace=0},e.WebGLRenderTargetCube.prototype=Object.create(e.WebGLRenderTarget.prototype),e.RenderableVertex=function(){this.positionWorld=new e.Vector3,this.positionScreen=new e.Vector4,this.visible=!0},e.RenderableVertex.prototype.copy=function(e){this.positionWorld.copy(e.positionWorld),this.positionScreen.copy(e.positionScreen)},e.RenderableFace3=function(){this.v1=new e.RenderableVertex,this.v2=new e.RenderableVertex,this.v3=new e.RenderableVertex,this.centroidModel=new e.Vector3,this.normalModel=new e.Vector3,this.normalModelView=new e.Vector3,this.vertexNormalsLength=0,this.vertexNormalsModel=[new e.Vector3,new e.Vector3,new e.Vector3],this.vertexNormalsModelView=[new e.Vector3,new e.Vector3,new e.Vector3],this.material=this.color=null,this.uvs=[[]],this.z=null},e.RenderableFace4=function(){this.v1=new e.RenderableVertex,this.v2=new e.RenderableVertex,this.v3=new e.RenderableVertex,this.v4=new e.RenderableVertex,this.centroidModel=new e.Vector3,this.normalModel=new e.Vector3,this.normalModelView=new e.Vector3,this.vertexNormalsLength=0,this.vertexNormalsModel=[new e.Vector3,new e.Vector3,new e.Vector3,new e.Vector3],this.vertexNormalsModelView=[new e.Vector3,new e.Vector3,new e.Vector3,new e.Vector3],this.material=this.color=null,this.uvs=[[]],this.z=null},e.RenderableObject=function(){this.z=this.object=null},e.RenderableParticle=function(){this.rotation=this.z=this.y=this.x=this.object=null,this.scale=new e.Vector2,this.material=null},e.RenderableLine=function(){this.z=null,this.v1=new e.RenderableVertex,this.v2=new e.RenderableVertex,this.vertexColors=[new e.Color,new e.Color],this.material=null},e.GeometryUtils={merge:function(t,i,n){var r,o,a=t.vertices.length,s=i instanceof e.Mesh?i.geometry:i,l=t.vertices,h=s.vertices,c=t.faces,u=s.faces,t=t.faceVertexUvs[0],s=s.faceVertexUvs[0];void 0===n&&(n=0),i instanceof e.Mesh&&(i.matrixAutoUpdate&&i.updateMatrix(),r=i.matrix,o=(new e.Matrix3).getNormalMatrix(r));for(var i=0,p=h.length;p>i;i++){var f=h[i].clone();r&&f.applyMatrix4(r),l.push(f)}for(i=0,p=u.length;p>i;i++){var d,m,f=u[i],g=f.vertexNormals,v=f.vertexColors;for(f instanceof e.Face3?d=new e.Face3(f.a+a,f.b+a,f.c+a):f instanceof e.Face4&&(d=new e.Face4(f.a+a,f.b+a,f.c+a,f.d+a)),d.normal.copy(f.normal),o&&d.normal.applyMatrix3(o).normalize(),l=0,h=g.length;h>l;l++)m=g[l].clone(),o&&m.applyMatrix3(o).normalize(),d.vertexNormals.push(m);for(d.color.copy(f.color),l=0,h=v.length;h>l;l++)m=v[l],d.vertexColors.push(m.clone());d.materialIndex=f.materialIndex+n,d.centroid.copy(f.centroid),r&&d.centroid.applyMatrix4(r),c.push(d)}for(i=0,p=s.length;p>i;i++){for(n=s[i],r=[],l=0,h=n.length;h>l;l++)r.push(new e.Vector2(n[l].x,n[l].y));t.push(r)}},removeMaterials:function(e,t){for(var i={},n=0,r=t.length;r>n;n++)i[t[n]]=!0;for(var o,a=[],n=0,r=e.faces.length;r>n;n++)o=e.faces[n],o.materialIndex in i||a.push(o);e.faces=a},randomPointInTriangle:function(t,i,n){var r,o,a,s=new e.Vector3,l=e.GeometryUtils.__v1;return r=e.GeometryUtils.random(),o=e.GeometryUtils.random(),r+o>1&&(r=1-r,o=1-o),a=1-r-o,s.copy(t),s.multiplyScalar(r),l.copy(i),l.multiplyScalar(o),s.add(l),l.copy(n),l.multiplyScalar(a),s.add(l),s},randomPointInFace:function(t,i,n){var r,o,a;if(t instanceof e.Face3)return r=i.vertices[t.a],o=i.vertices[t.b],a=i.vertices[t.c],e.GeometryUtils.randomPointInTriangle(r,o,a);if(t instanceof e.Face4){r=i.vertices[t.a],o=i.vertices[t.b],a=i.vertices[t.c];var s,i=i.vertices[t.d];return n?t._area1&&t._area2?(n=t._area1,s=t._area2):(n=e.GeometryUtils.triangleArea(r,o,i),s=e.GeometryUtils.triangleArea(o,a,i),t._area1=n,t._area2=s):(n=e.GeometryUtils.triangleArea(r,o,i),s=e.GeometryUtils.triangleArea(o,a,i)),e.GeometryUtils.random()*(n+s)<n?e.GeometryUtils.randomPointInTriangle(r,o,i):e.GeometryUtils.randomPointInTriangle(o,a,i)}},randomPointsInGeometry:function(t,i){function n(e){function t(i,n){if(i>n)return i;var r=i+Math.floor((n-i)/2);return d[r]>e?t(i,r-1):d[r]<e?t(r+1,n):r}return t(0,d.length-1)}var r,o,a,s,l,h,c=t.faces,u=t.vertices,p=c.length,f=0,d=[];for(o=0;p>o;o++)r=c[o],r instanceof e.Face3?(a=u[r.a],s=u[r.b],l=u[r.c],r._area=e.GeometryUtils.triangleArea(a,s,l)):r instanceof e.Face4&&(a=u[r.a],s=u[r.b],l=u[r.c],h=u[r.d],r._area1=e.GeometryUtils.triangleArea(a,s,h),r._area2=e.GeometryUtils.triangleArea(s,l,h),r._area=r._area1+r._area2),f+=r._area,d[o]=f;for(r=[],o=0;i>o;o++)u=e.GeometryUtils.random()*f,u=n(u),r[o]=e.GeometryUtils.randomPointInFace(c[u],t,!0);return r},triangleArea:function(t,i,n){var r=e.GeometryUtils.__v1,o=e.GeometryUtils.__v2;return r.subVectors(i,t),o.subVectors(n,t),r.cross(o),.5*r.length()},center:function(t){t.computeBoundingBox();var i=t.boundingBox,n=new e.Vector3;return n.addVectors(i.min,i.max),n.multiplyScalar(-.5),t.applyMatrix((new e.Matrix4).makeTranslation(n.x,n.y,n.z)),t.computeBoundingBox(),n},normalizeUVs:function(e){for(var e=e.faceVertexUvs[0],t=0,i=e.length;i>t;t++)for(var n=e[t],r=0,o=n.length;o>r;r++)1!==n[r].x&&(n[r].x-=Math.floor(n[r].x)),1!==n[r].y&&(n[r].y-=Math.floor(n[r].y))},triangulateQuads:function(t){var i,n,r,o,a=[],s=[],l=[];for(i=0,n=t.faceUvs.length;n>i;i++)s[i]=[];for(i=0,n=t.faceVertexUvs.length;n>i;i++)l[i]=[];for(i=0,n=t.faces.length;n>i;i++)if(r=t.faces[i],r instanceof e.Face4){o=r.a;var h=r.b,c=r.c,u=r.d,p=new e.Face3,f=new e.Face3;for(p.color.copy(r.color),f.color.copy(r.color),p.materialIndex=r.materialIndex,f.materialIndex=r.materialIndex,p.a=o,p.b=h,p.c=u,f.a=h,f.b=c,f.c=u,4===r.vertexColors.length&&(p.vertexColors[0]=r.vertexColors[0].clone(),p.vertexColors[1]=r.vertexColors[1].clone(),p.vertexColors[2]=r.vertexColors[3].clone(),f.vertexColors[0]=r.vertexColors[1].clone(),f.vertexColors[1]=r.vertexColors[2].clone(),f.vertexColors[2]=r.vertexColors[3].clone()),a.push(p,f),r=0,o=t.faceVertexUvs.length;o>r;r++)t.faceVertexUvs[r].length&&(p=t.faceVertexUvs[r][i],h=p[1],c=p[2],u=p[3],p=[p[0].clone(),h.clone(),u.clone()],h=[h.clone(),c.clone(),u.clone()],l[r].push(p,h));for(r=0,o=t.faceUvs.length;o>r;r++)t.faceUvs[r].length&&(h=t.faceUvs[r][i],s[r].push(h,h))}else{for(a.push(r),r=0,o=t.faceUvs.length;o>r;r++)s[r].push(t.faceUvs[r][i]);for(r=0,o=t.faceVertexUvs.length;o>r;r++)l[r].push(t.faceVertexUvs[r][i])}t.faces=a,t.faceUvs=s,t.faceVertexUvs=l,t.computeCentroids(),t.computeFaceNormals(),t.computeVertexNormals(),t.hasTangents&&t.computeTangents()},setMaterialIndex:function(e,t,i,n){for(e=e.faces,n=n||e.length-1,i=i||0;n>=i;i++)e[i].materialIndex=t}},e.GeometryUtils.random=e.Math.random16,e.GeometryUtils.__v1=new e.Vector3,e.GeometryUtils.__v2=new e.Vector3,e.ImageUtils={crossOrigin:"anonymous",loadTexture:function(t,i,n,r){var o=new Image,a=new e.Texture(o,i),i=new e.ImageLoader;return i.addEventListener("load",function(e){a.image=e.content,a.needsUpdate=!0,n&&n(a)}),i.addEventListener("error",function(e){r&&r(e.message)}),i.crossOrigin=this.crossOrigin,i.load(t,o),a.sourceFile=t,a},loadCompressedTexture:function(t,i,n,r){var o=new e.CompressedTexture;o.mapping=i;var a=new XMLHttpRequest;return a.onload=function(){var t=e.ImageUtils.parseDDS(a.response,!0);o.format=t.format,o.mipmaps=t.mipmaps,o.image.width=t.width,o.image.height=t.height,o.generateMipmaps=!1,o.needsUpdate=!0,n&&n(o)},a.onerror=r,a.open("GET",t,!0),a.responseType="arraybuffer",a.send(null),o},loadTextureCube:function(t,i,n,r){var o=[];o.loadCount=0;var a=new e.Texture;a.image=o,void 0!==i&&(a.mapping=i),a.flipY=!1;for(var i=0,s=t.length;s>i;++i){var l=new Image;o[i]=l,l.onload=function(){o.loadCount+=1,6===o.loadCount&&(a.needsUpdate=!0,n&&n(a))},l.onerror=r,l.crossOrigin=this.crossOrigin,l.src=t[i]}return a},loadCompressedTextureCube:function(t,i,n,r){var o=[];o.loadCount=0;var a=new e.CompressedTexture;if(a.image=o,void 0!==i&&(a.mapping=i),a.flipY=!1,a.generateMipmaps=!1,i=function(t,i){return function(){var r=e.ImageUtils.parseDDS(t.response,!0);i.format=r.format,i.mipmaps=r.mipmaps,i.width=r.width,i.height=r.height,o.loadCount+=1,6===o.loadCount&&(a.format=r.format,a.needsUpdate=!0,n&&n(a))}},t instanceof Array)for(var s=0,l=t.length;l>s;++s){var h={};o[s]=h;var c=new XMLHttpRequest;c.onload=i(c,h),c.onerror=r,h=t[s],c.open("GET",h,!0),c.responseType="arraybuffer",c.send(null)}else c=new XMLHttpRequest,c.onload=function(){var t=e.ImageUtils.parseDDS(c.response,!0);if(t.isCubemap){for(var i=t.mipmaps.length/t.mipmapCount,r=0;i>r;r++){o[r]={mipmaps:[]};for(var s=0;s<t.mipmapCount;s++)o[r].mipmaps.push(t.mipmaps[r*t.mipmapCount+s]),o[r].format=t.format,o[r].width=t.width,o[r].height=t.height}a.format=t.format,a.needsUpdate=!0,n&&n(a)}},c.onerror=r,c.open("GET",t,!0),c.responseType="arraybuffer",c.send(null);return a},parseDDS:function(t,i){function n(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}var r={mipmaps:[],width:0,height:0,format:null,mipmapCount:1},o=n("DXT1"),a=n("DXT3"),s=n("DXT5"),l=new Int32Array(t,0,31);if(542327876!==l[0])return console.error("ImageUtils.parseDDS(): Invalid magic number in DDS header"),r;if(4&!l[20])return console.error("ImageUtils.parseDDS(): Unsupported format, must contain a FourCC code"),r;var h=l[21];switch(h){case o:o=8,r.format=e.RGB_S3TC_DXT1_Format;break;case a:o=16,r.format=e.RGBA_S3TC_DXT3_Format;break;case s:o=16,r.format=e.RGBA_S3TC_DXT5_Format;break;default:return console.error("ImageUtils.parseDDS(): Unsupported FourCC code: ",String.fromCharCode(255&h,h>>8&255,h>>16&255,h>>24&255)),r}r.mipmapCount=1,131072&l[2]&&!1!==i&&(r.mipmapCount=Math.max(1,l[7])),r.isCubemap=512&l[28]?!0:!1,r.width=l[4],r.height=l[3];for(var l=l[1]+4,a=r.width,s=r.height,h=r.isCubemap?6:1,c=0;h>c;c++){for(var u=0;u<r.mipmapCount;u++){var p=Math.max(4,a)/4*Math.max(4,s)/4*o,f={data:new Uint8Array(t,l,p),width:a,height:s};r.mipmaps.push(f),l+=p,a=Math.max(.5*a,1),s=Math.max(.5*s,1)}a=r.width,s=r.height}return r},getNormalMap:function(e,t){var i=function(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);return[e[0]/t,e[1]/t,e[2]/t]},t=1|t,n=e.width,r=e.height,o=document.createElement("canvas");o.width=n,o.height=r;var a=o.getContext("2d");a.drawImage(e,0,0);for(var s=a.getImageData(0,0,n,r).data,l=a.createImageData(n,r),h=l.data,c=0;n>c;c++)for(var u=0;r>u;u++){var p=0>u-1?0:u-1,f=u+1>r-1?r-1:u+1,d=0>c-1?0:c-1,m=c+1>n-1?n-1:c+1,g=[],v=[0,0,s[4*(u*n+c)]/255*t];for(g.push([-1,0,s[4*(u*n+d)]/255*t]),g.push([-1,-1,s[4*(p*n+d)]/255*t]),g.push([0,-1,s[4*(p*n+c)]/255*t]),g.push([1,-1,s[4*(p*n+m)]/255*t]),g.push([1,0,s[4*(u*n+m)]/255*t]),g.push([1,1,s[4*(f*n+m)]/255*t]),g.push([0,1,s[4*(f*n+c)]/255*t]),g.push([-1,1,s[4*(f*n+d)]/255*t]),p=[],d=g.length,f=0;d>f;f++){var m=g[f],y=g[(f+1)%d],m=[m[0]-v[0],m[1]-v[1],m[2]-v[2]],y=[y[0]-v[0],y[1]-v[1],y[2]-v[2]];p.push(i([m[1]*y[2]-m[2]*y[1],m[2]*y[0]-m[0]*y[2],m[0]*y[1]-m[1]*y[0]]))}for(g=[0,0,0],f=0;f<p.length;f++)g[0]+=p[f][0],g[1]+=p[f][1],g[2]+=p[f][2];g[0]/=p.length,g[1]/=p.length,g[2]/=p.length,v=4*(u*n+c),h[v]=255*((g[0]+1)/2)|0,h[v+1]=255*((g[1]+1)/2)|0,h[v+2]=255*g[2]|0,h[v+3]=255}return a.putImageData(l,0,0),o},generateDataTexture:function(t,i,n){for(var r=t*i,o=new Uint8Array(3*r),a=Math.floor(255*n.r),s=Math.floor(255*n.g),n=Math.floor(255*n.b),l=0;r>l;l++)o[3*l]=a,o[3*l+1]=s,o[3*l+2]=n;return t=new e.DataTexture(o,t,i,e.RGBFormat),t.needsUpdate=!0,t}},e.SceneUtils={createMultiMaterialObject:function(t,i){for(var n=new e.Object3D,r=0,o=i.length;o>r;r++)n.add(new e.Mesh(t,i[r]));return n},detach:function(e,t,i){e.applyMatrix(t.matrixWorld),t.remove(e),i.add(e)},attach:function(t,i,n){var r=new e.Matrix4;r.getInverse(n.matrixWorld),t.applyMatrix(r),i.remove(t),n.add(t)}},e.FontUtils={faces:{},face:"helvetiker",weight:"normal",style:"normal",size:150,divisions:10,getFace:function(){return this.faces[this.face][this.weight][this.style]},loadFace:function(e){var t=e.familyName.toLowerCase();return this.faces[t]=this.faces[t]||{},this.faces[t][e.cssFontWeight]=this.faces[t][e.cssFontWeight]||{},this.faces[t][e.cssFontWeight][e.cssFontStyle]=e,this.faces[t][e.cssFontWeight][e.cssFontStyle]=e},drawText:function(t){for(var i=this.getFace(),n=this.size/i.resolution,r=0,o=String(t).split(""),a=o.length,s=[],t=0;a>t;t++){var l=new e.Path,l=this.extractGlyphPoints(o[t],i,n,r,l),r=r+l.offset;s.push(l.path)}return{paths:s,offset:r/2}},extractGlyphPoints:function(t,i,n,r,o){var a,s,l,h,c,u,p,f,d,m,g,v=[],y=i.glyphs[t]||i.glyphs["?"];if(y){if(y.o)for(i=y._cachedOutline||(y._cachedOutline=y.o.split(" ")),h=i.length,t=0;h>t;)switch(l=i[t++]){case"m":l=i[t++]*n+r,c=i[t++]*n,o.moveTo(l,c);break;case"l":l=i[t++]*n+r,c=i[t++]*n,o.lineTo(l,c);break;case"q":if(l=i[t++]*n+r,c=i[t++]*n,f=i[t++]*n+r,d=i[t++]*n,o.quadraticCurveTo(f,d,l,c),a=v[v.length-1])for(u=a.x,p=a.y,a=1,s=this.divisions;s>=a;a++){var b=a/s;e.Shape.Utils.b2(b,u,f,l),e.Shape.Utils.b2(b,p,d,c)}break;case"b":if(l=i[t++]*n+r,c=i[t++]*n,f=i[t++]*n+r,d=i[t++]*-n,m=i[t++]*n+r,g=i[t++]*-n,o.bezierCurveTo(l,c,f,d,m,g),a=v[v.length-1])for(u=a.x,p=a.y,a=1,s=this.divisions;s>=a;a++)b=a/s,e.Shape.Utils.b3(b,u,f,m,l),e.Shape.Utils.b3(b,p,d,g,c)}return{offset:y.ha*n,path:o}}}},e.FontUtils.generateShapes=function(t,i){var i=i||{},n=void 0!==i.curveSegments?i.curveSegments:4,r=void 0!==i.font?i.font:"helvetiker",o=void 0!==i.weight?i.weight:"normal",a=void 0!==i.style?i.style:"normal";for(e.FontUtils.size=void 0!==i.size?i.size:100,e.FontUtils.divisions=n,e.FontUtils.face=r,e.FontUtils.weight=o,e.FontUtils.style=a,n=e.FontUtils.drawText(t).paths,r=[],o=0,a=n.length;a>o;o++)Array.prototype.push.apply(r,n[o].toShapes());return r},function(e){var t=function(e){for(var t=e.length,i=0,n=t-1,r=0;t>r;n=r++)i+=e[n].x*e[r].y-e[r].x*e[n].y;return.5*i};return e.Triangulate=function(e,i){var n=e.length;if(3>n)return null;var r,o,a,s=[],l=[],h=[];if(0<t(e))for(o=0;n>o;o++)l[o]=o;else for(o=0;n>o;o++)l[o]=n-1-o;var c=2*n;for(o=n-1;n>2;){if(0>=c--){console.log("Warning, unable to triangulate polygon!");break}r=o,r>=n&&(r=0),o=r+1,o>=n&&(o=0),a=o+1,a>=n&&(a=0);var u;e:{var p=u=void 0,f=void 0,d=void 0,m=void 0,g=void 0,v=void 0,y=void 0,b=void 0,p=e[l[r]].x,f=e[l[r]].y,d=e[l[o]].x,m=e[l[o]].y,g=e[l[a]].x,v=e[l[a]].y;if(1e-10>(d-p)*(v-f)-(m-f)*(g-p))u=!1;else{var x=void 0,w=void 0,_=void 0,S=void 0,M=void 0,T=void 0,C=void 0,A=void 0,E=void 0,P=void 0,E=A=C=b=y=void 0,x=g-d,w=v-m,_=p-g,S=f-v,M=d-p,T=m-f;for(u=0;n>u;u++)if(u!==r&&u!==o&&u!==a&&(y=e[l[u]].x,b=e[l[u]].y,C=y-p,A=b-f,E=y-d,P=b-m,y-=g,b-=v,E=x*P-w*E,C=M*A-T*C,A=_*b-S*y,E>=0&&A>=0&&C>=0)){u=!1;break e}u=!0}}if(u){for(s.push([e[l[r]],e[l[o]],e[l[a]]]),h.push([l[r],l[o],l[a]]),r=o,a=o+1;n>a;r++,a++)l[r]=l[a];n--,c=2*n}}return i?h:s},e.Triangulate.area=t,e}(e.FontUtils),self._typeface_js={faces:e.FontUtils.faces,loadFace:e.FontUtils.loadFace},e.typeface_js=self._typeface_js,e.Curve=function(){},e.Curve.prototype.getPoint=function(){return console.log("Warning, getPoint() not implemented!"),null},e.Curve.prototype.getPointAt=function(e){return e=this.getUtoTmapping(e),this.getPoint(e)},e.Curve.prototype.getPoints=function(e){e||(e=5);var t,i=[];for(t=0;e>=t;t++)i.push(this.getPoint(t/e));return i},e.Curve.prototype.getSpacedPoints=function(e){e||(e=5);var t,i=[];for(t=0;e>=t;t++)i.push(this.getPointAt(t/e));return i},e.Curve.prototype.getLength=function(){var e=this.getLengths();return e[e.length-1]},e.Curve.prototype.getLengths=function(e){if(e||(e=this.__arcLengthDivisions?this.__arcLengthDivisions:200),this.cacheArcLengths&&this.cacheArcLengths.length==e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var t,i,n=[],r=this.getPoint(0),o=0;for(n.push(0),i=1;e>=i;i++)t=this.getPoint(i/e),o+=t.distanceTo(r),n.push(o),r=t;return this.cacheArcLengths=n},e.Curve.prototype.updateArcLengths=function(){this.needsUpdate=!0,this.getLengths()},e.Curve.prototype.getUtoTmapping=function(e,t){var i,n=this.getLengths(),r=0,o=n.length;i=t?t:e*n[o-1];for(var a,s=0,l=o-1;l>=s;)if(r=Math.floor(s+(l-s)/2),a=n[r]-i,0>a)s=r+1;else{if(!(a>0)){l=r;break}l=r-1}return r=l,n[r]==i?r/(o-1):(s=n[r],n=(r+(i-s)/(n[r+1]-s))/(o-1))},e.Curve.prototype.getTangent=function(e){var t=e-1e-4,e=e+1e-4;return 0>t&&(t=0),e>1&&(e=1),t=this.getPoint(t),this.getPoint(e).clone().sub(t).normalize()},e.Curve.prototype.getTangentAt=function(e){return e=this.getUtoTmapping(e),this.getTangent(e)},e.LineCurve=function(e,t){this.v1=e,this.v2=t},e.LineCurve.prototype=Object.create(e.Curve.prototype),e.LineCurve.prototype.getPoint=function(e){var t=this.v2.clone().sub(this.v1);return t.multiplyScalar(e).add(this.v1),t},e.LineCurve.prototype.getPointAt=function(e){return this.getPoint(e)},e.LineCurve.prototype.getTangent=function(){return this.v2.clone().sub(this.v1).normalize()},e.QuadraticBezierCurve=function(e,t,i){this.v0=e,this.v1=t,this.v2=i},e.QuadraticBezierCurve.prototype=Object.create(e.Curve.prototype),e.QuadraticBezierCurve.prototype.getPoint=function(t){var i;return i=e.Shape.Utils.b2(t,this.v0.x,this.v1.x,this.v2.x),t=e.Shape.Utils.b2(t,this.v0.y,this.v1.y,this.v2.y),new e.Vector2(i,t)},e.QuadraticBezierCurve.prototype.getTangent=function(t){var i;return i=e.Curve.Utils.tangentQuadraticBezier(t,this.v0.x,this.v1.x,this.v2.x),t=e.Curve.Utils.tangentQuadraticBezier(t,this.v0.y,this.v1.y,this.v2.y),i=new e.Vector2(i,t),i.normalize(),i},e.CubicBezierCurve=function(e,t,i,n){this.v0=e,this.v1=t,this.v2=i,this.v3=n},e.CubicBezierCurve.prototype=Object.create(e.Curve.prototype),e.CubicBezierCurve.prototype.getPoint=function(t){var i;return i=e.Shape.Utils.b3(t,this.v0.x,this.v1.x,this.v2.x,this.v3.x),t=e.Shape.Utils.b3(t,this.v0.y,this.v1.y,this.v2.y,this.v3.y),new e.Vector2(i,t)},e.CubicBezierCurve.prototype.getTangent=function(t){var i;return i=e.Curve.Utils.tangentCubicBezier(t,this.v0.x,this.v1.x,this.v2.x,this.v3.x),t=e.Curve.Utils.tangentCubicBezier(t,this.v0.y,this.v1.y,this.v2.y,this.v3.y),i=new e.Vector2(i,t),i.normalize(),i},e.SplineCurve=function(e){this.points=void 0==e?[]:e},e.SplineCurve.prototype=Object.create(e.Curve.prototype),e.SplineCurve.prototype.getPoint=function(t){var i,n=new e.Vector2,r=[],o=this.points;return i=(o.length-1)*t,t=Math.floor(i),i-=t,r[0]=0==t?t:t-1,r[1]=t,r[2]=t>o.length-2?o.length-1:t+1,r[3]=t>o.length-3?o.length-1:t+2,n.x=e.Curve.Utils.interpolate(o[r[0]].x,o[r[1]].x,o[r[2]].x,o[r[3]].x,i),n.y=e.Curve.Utils.interpolate(o[r[0]].y,o[r[1]].y,o[r[2]].y,o[r[3]].y,i),n},e.EllipseCurve=function(e,t,i,n,r,o,a){this.aX=e,this.aY=t,this.xRadius=i,this.yRadius=n,this.aStartAngle=r,this.aEndAngle=o,this.aClockwise=a},e.EllipseCurve.prototype=Object.create(e.Curve.prototype),e.EllipseCurve.prototype.getPoint=function(t){var i=this.aEndAngle-this.aStartAngle;return this.aClockwise||(t=1-t),i=this.aStartAngle+t*i,t=this.aX+this.xRadius*Math.cos(i),i=this.aY+this.yRadius*Math.sin(i),new e.Vector2(t,i)},e.ArcCurve=function(t,i,n,r,o,a){e.EllipseCurve.call(this,t,i,n,n,r,o,a)},e.ArcCurve.prototype=Object.create(e.EllipseCurve.prototype),e.Curve.Utils={tangentQuadraticBezier:function(e,t,i,n){return 2*(1-e)*(i-t)+2*e*(n-i)},tangentCubicBezier:function(e,t,i,n,r){return-3*t*(1-e)*(1-e)+3*i*(1-e)*(1-e)-6*e*i*(1-e)+6*e*n*(1-e)-3*e*e*n+3*e*e*r},tangentSpline:function(e){return 6*e*e-6*e+(3*e*e-4*e+1)+(-6*e*e+6*e)+(3*e*e-2*e)},interpolate:function(e,t,i,n,r){var e=.5*(i-e),n=.5*(n-t),o=r*r;return(2*t-2*i+e+n)*r*o+(-3*t+3*i-2*e-n)*o+e*r+t}},e.Curve.create=function(t,i){return t.prototype=Object.create(e.Curve.prototype),t.prototype.getPoint=i,t},e.LineCurve3=e.Curve.create(function(e,t){this.v1=e,this.v2=t},function(t){var i=new e.Vector3;return i.subVectors(this.v2,this.v1),i.multiplyScalar(t),i.add(this.v1),i}),e.QuadraticBezierCurve3=e.Curve.create(function(e,t,i){this.v0=e,this.v1=t,this.v2=i},function(t){var i,n;return i=e.Shape.Utils.b2(t,this.v0.x,this.v1.x,this.v2.x),n=e.Shape.Utils.b2(t,this.v0.y,this.v1.y,this.v2.y),t=e.Shape.Utils.b2(t,this.v0.z,this.v1.z,this.v2.z),new e.Vector3(i,n,t)}),e.CubicBezierCurve3=e.Curve.create(function(e,t,i,n){this.v0=e,this.v1=t,this.v2=i,this.v3=n},function(t){var i,n;return i=e.Shape.Utils.b3(t,this.v0.x,this.v1.x,this.v2.x,this.v3.x),n=e.Shape.Utils.b3(t,this.v0.y,this.v1.y,this.v2.y,this.v3.y),t=e.Shape.Utils.b3(t,this.v0.z,this.v1.z,this.v2.z,this.v3.z),new e.Vector3(i,n,t)}),e.SplineCurve3=e.Curve.create(function(e){this.points=void 0==e?[]:e},function(t){var i,n=new e.Vector3,r=[],o=this.points,t=(o.length-1)*t;i=Math.floor(t),t-=i,r[0]=0==i?i:i-1,r[1]=i,r[2]=i>o.length-2?o.length-1:i+1,r[3]=i>o.length-3?o.length-1:i+2,i=o[r[0]];var a=o[r[1]],s=o[r[2]],r=o[r[3]];return n.x=e.Curve.Utils.interpolate(i.x,a.x,s.x,r.x,t),n.y=e.Curve.Utils.interpolate(i.y,a.y,s.y,r.y,t),n.z=e.Curve.Utils.interpolate(i.z,a.z,s.z,r.z,t),n}),e.ClosedSplineCurve3=e.Curve.create(function(e){this.points=void 0==e?[]:e},function(t){var i,n=new e.Vector3,r=[],o=this.points;return i=(o.length-0)*t,t=Math.floor(i),i-=t,t+=t>0?0:(Math.floor(Math.abs(t)/o.length)+1)*o.length,r[0]=(t-1)%o.length,r[1]=t%o.length,r[2]=(t+1)%o.length,r[3]=(t+2)%o.length,n.x=e.Curve.Utils.interpolate(o[r[0]].x,o[r[1]].x,o[r[2]].x,o[r[3]].x,i),n.y=e.Curve.Utils.interpolate(o[r[0]].y,o[r[1]].y,o[r[2]].y,o[r[3]].y,i),n.z=e.Curve.Utils.interpolate(o[r[0]].z,o[r[1]].z,o[r[2]].z,o[r[3]].z,i),n}),e.CurvePath=function(){this.curves=[],this.bends=[],this.autoClose=!1},e.CurvePath.prototype=Object.create(e.Curve.prototype),e.CurvePath.prototype.add=function(e){this.curves.push(e)},e.CurvePath.prototype.checkConnection=function(){},e.CurvePath.prototype.closePath=function(){var t=this.curves[0].getPoint(0),i=this.curves[this.curves.length-1].getPoint(1);t.equals(i)||this.curves.push(new e.LineCurve(i,t))},e.CurvePath.prototype.getPoint=function(e){for(var t=e*this.getLength(),i=this.getCurveLengths(),e=0;e<i.length;){if(i[e]>=t)return t=i[e]-t,e=this.curves[e],t=1-t/e.getLength(),e.getPointAt(t);e++}return null},e.CurvePath.prototype.getLength=function(){var e=this.getCurveLengths();return e[e.length-1]},e.CurvePath.prototype.getCurveLengths=function(){if(this.cacheLengths&&this.cacheLengths.length==this.curves.length)return this.cacheLengths;var e,t=[],i=0,n=this.curves.length;for(e=0;n>e;e++)i+=this.curves[e].getLength(),t.push(i);return this.cacheLengths=t},e.CurvePath.prototype.getBoundingBox=function(){var t,i,n,r,o,a,s=this.getPoints();t=i=Number.NEGATIVE_INFINITY,r=o=Number.POSITIVE_INFINITY;var l,h,c,u,p=s[0]instanceof e.Vector3;for(u=p?new e.Vector3:new e.Vector2,h=0,c=s.length;c>h;h++)l=s[h],l.x>t?t=l.x:l.x<r&&(r=l.x),l.y>i?i=l.y:l.y<o&&(o=l.y),p&&(l.z>n?n=l.z:l.z<a&&(a=l.z)),u.add(l);return s={minX:r,minY:o,maxX:t,maxY:i,centroid:u.divideScalar(c)},p&&(s.maxZ=n,s.minZ=a),s},e.CurvePath.prototype.createPointsGeometry=function(e){return e=this.getPoints(e,!0),this.createGeometry(e)},e.CurvePath.prototype.createSpacedPointsGeometry=function(e){return e=this.getSpacedPoints(e,!0),this.createGeometry(e)},e.CurvePath.prototype.createGeometry=function(t){for(var i=new e.Geometry,n=0;n<t.length;n++)i.vertices.push(new e.Vector3(t[n].x,t[n].y,t[n].z||0));return i},e.CurvePath.prototype.addWrapPath=function(e){this.bends.push(e)},e.CurvePath.prototype.getTransformedPoints=function(e,t){var i,n,r=this.getPoints(e);for(t||(t=this.bends),i=0,n=t.length;n>i;i++)r=this.getWrapPoints(r,t[i]);return r},e.CurvePath.prototype.getTransformedSpacedPoints=function(e,t){var i,n,r=this.getSpacedPoints(e);for(t||(t=this.bends),i=0,n=t.length;n>i;i++)r=this.getWrapPoints(r,t[i]);return r},e.CurvePath.prototype.getWrapPoints=function(e,t){var i,n,r,o,a,s,l=this.getBoundingBox();for(i=0,n=e.length;n>i;i++)r=e[i],o=r.x,a=r.y,s=o/l.maxX,s=t.getUtoTmapping(s,o),o=t.getPoint(s),a=t.getNormalVector(s).multiplyScalar(a),r.x=o.x+a.x,r.y=o.y+a.y;return e},e.Gyroscope=function(){e.Object3D.call(this)},e.Gyroscope.prototype=Object.create(e.Object3D.prototype),e.Gyroscope.prototype.updateMatrixWorld=function(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.parent?(this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorld.decompose(this.translationWorld,this.rotationWorld,this.scaleWorld),this.matrix.decompose(this.translationObject,this.rotationObject,this.scaleObject),this.matrixWorld.makeFromPositionQuaternionScale(this.translationWorld,this.rotationObject,this.scaleWorld)):this.matrixWorld.copy(this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);for(var t=0,i=this.children.length;i>t;t++)this.children[t].updateMatrixWorld(e)},e.Gyroscope.prototype.translationWorld=new e.Vector3,e.Gyroscope.prototype.translationObject=new e.Vector3,e.Gyroscope.prototype.rotationWorld=new e.Quaternion,e.Gyroscope.prototype.rotationObject=new e.Quaternion,e.Gyroscope.prototype.scaleWorld=new e.Vector3,e.Gyroscope.prototype.scaleObject=new e.Vector3,e.Path=function(t){e.CurvePath.call(this),this.actions=[],t&&this.fromPoints(t)},e.Path.prototype=Object.create(e.CurvePath.prototype),e.PathActions={MOVE_TO:"moveTo",LINE_TO:"lineTo",QUADRATIC_CURVE_TO:"quadraticCurveTo",BEZIER_CURVE_TO:"bezierCurveTo",CSPLINE_THRU:"splineThru",ARC:"arc",ELLIPSE:"ellipse"},e.Path.prototype.fromPoints=function(e){this.moveTo(e[0].x,e[0].y); for(var t=1,i=e.length;i>t;t++)this.lineTo(e[t].x,e[t].y)},e.Path.prototype.moveTo=function(){var t=Array.prototype.slice.call(arguments);this.actions.push({action:e.PathActions.MOVE_TO,args:t})},e.Path.prototype.lineTo=function(t,i){var n=Array.prototype.slice.call(arguments),r=this.actions[this.actions.length-1].args,r=new e.LineCurve(new e.Vector2(r[r.length-2],r[r.length-1]),new e.Vector2(t,i));this.curves.push(r),this.actions.push({action:e.PathActions.LINE_TO,args:n})},e.Path.prototype.quadraticCurveTo=function(t,i,n,r){var o=Array.prototype.slice.call(arguments),a=this.actions[this.actions.length-1].args,a=new e.QuadraticBezierCurve(new e.Vector2(a[a.length-2],a[a.length-1]),new e.Vector2(t,i),new e.Vector2(n,r));this.curves.push(a),this.actions.push({action:e.PathActions.QUADRATIC_CURVE_TO,args:o})},e.Path.prototype.bezierCurveTo=function(t,i,n,r,o,a){var s=Array.prototype.slice.call(arguments),l=this.actions[this.actions.length-1].args,l=new e.CubicBezierCurve(new e.Vector2(l[l.length-2],l[l.length-1]),new e.Vector2(t,i),new e.Vector2(n,r),new e.Vector2(o,a));this.curves.push(l),this.actions.push({action:e.PathActions.BEZIER_CURVE_TO,args:s})},e.Path.prototype.splineThru=function(t){var i=Array.prototype.slice.call(arguments),n=this.actions[this.actions.length-1].args,n=[new e.Vector2(n[n.length-2],n[n.length-1])];Array.prototype.push.apply(n,t),n=new e.SplineCurve(n),this.curves.push(n),this.actions.push({action:e.PathActions.CSPLINE_THRU,args:i})},e.Path.prototype.arc=function(e,t,i,n,r,o){var a=this.actions[this.actions.length-1].args;this.absarc(e+a[a.length-2],t+a[a.length-1],i,n,r,o)},e.Path.prototype.absarc=function(e,t,i,n,r,o){this.absellipse(e,t,i,i,n,r,o)},e.Path.prototype.ellipse=function(e,t,i,n,r,o,a){var s=this.actions[this.actions.length-1].args;this.absellipse(e+s[s.length-2],t+s[s.length-1],i,n,r,o,a)},e.Path.prototype.absellipse=function(t,i,n,r,o,a,s){var l=Array.prototype.slice.call(arguments),h=new e.EllipseCurve(t,i,n,r,o,a,s);this.curves.push(h),h=h.getPoint(s?1:0),l.push(h.x),l.push(h.y),this.actions.push({action:e.PathActions.ELLIPSE,args:l})},e.Path.prototype.getSpacedPoints=function(e){e||(e=40);for(var t=[],i=0;e>i;i++)t.push(this.getPoint(i/e));return t},e.Path.prototype.getPoints=function(t,i){if(this.useSpacedPoints)return console.log("tata"),this.getSpacedPoints(t,i);var n,r,o,a,s,l,h,c,u,p,f,d,m,t=t||12,g=[];for(n=0,r=this.actions.length;r>n;n++)switch(o=this.actions[n],a=o.action,o=o.args,a){case e.PathActions.MOVE_TO:g.push(new e.Vector2(o[0],o[1]));break;case e.PathActions.LINE_TO:g.push(new e.Vector2(o[0],o[1]));break;case e.PathActions.QUADRATIC_CURVE_TO:for(s=o[2],l=o[3],u=o[0],p=o[1],0<g.length?(a=g[g.length-1],f=a.x,d=a.y):(a=this.actions[n-1].args,f=a[a.length-2],d=a[a.length-1]),o=1;t>=o;o++)m=o/t,a=e.Shape.Utils.b2(m,f,u,s),m=e.Shape.Utils.b2(m,d,p,l),g.push(new e.Vector2(a,m));break;case e.PathActions.BEZIER_CURVE_TO:for(s=o[4],l=o[5],u=o[0],p=o[1],h=o[2],c=o[3],0<g.length?(a=g[g.length-1],f=a.x,d=a.y):(a=this.actions[n-1].args,f=a[a.length-2],d=a[a.length-1]),o=1;t>=o;o++)m=o/t,a=e.Shape.Utils.b3(m,f,u,h,s),m=e.Shape.Utils.b3(m,d,p,c,l),g.push(new e.Vector2(a,m));break;case e.PathActions.CSPLINE_THRU:for(a=this.actions[n-1].args,m=[new e.Vector2(a[a.length-2],a[a.length-1])],a=t*o[0].length,m=m.concat(o[0]),m=new e.SplineCurve(m),o=1;a>=o;o++)g.push(m.getPointAt(o/a));break;case e.PathActions.ARC:for(s=o[0],l=o[1],p=o[2],h=o[3],a=o[4],u=!!o[5],f=a-h,d=2*t,o=1;d>=o;o++)m=o/d,u||(m=1-m),m=h+m*f,a=s+p*Math.cos(m),m=l+p*Math.sin(m),g.push(new e.Vector2(a,m));break;case e.PathActions.ELLIPSE:for(s=o[0],l=o[1],p=o[2],c=o[3],h=o[4],a=o[5],u=!!o[6],f=a-h,d=2*t,o=1;d>=o;o++)m=o/d,u||(m=1-m),m=h+m*f,a=s+p*Math.cos(m),m=l+c*Math.sin(m),g.push(new e.Vector2(a,m))}return n=g[g.length-1],1e-10>Math.abs(n.x-g[0].x)&&1e-10>Math.abs(n.y-g[0].y)&&g.splice(g.length-1,1),i&&g.push(g[0]),g},e.Path.prototype.toShapes=function(){var t,i,n,r,o=[],a=new e.Path;for(t=0,i=this.actions.length;i>t;t++)n=this.actions[t],r=n.args,n=n.action,n==e.PathActions.MOVE_TO&&0!=a.actions.length&&(o.push(a),a=new e.Path),a[n].apply(a,r);if(0!=a.actions.length&&o.push(a),0==o.length)return[];var s;if(r=[],t=!e.Shape.Utils.isClockWise(o[0].getPoints()),1==o.length)return a=o[0],s=new e.Shape,s.actions=a.actions,s.curves=a.curves,r.push(s),r;if(t)for(s=new e.Shape,t=0,i=o.length;i>t;t++)a=o[t],e.Shape.Utils.isClockWise(a.getPoints())?(s.actions=a.actions,s.curves=a.curves,r.push(s),s=new e.Shape):s.holes.push(a);else{for(t=0,i=o.length;i>t;t++)a=o[t],e.Shape.Utils.isClockWise(a.getPoints())?(s&&r.push(s),s=new e.Shape,s.actions=a.actions,s.curves=a.curves):s.holes.push(a);r.push(s)}return r},e.Shape=function(){e.Path.apply(this,arguments),this.holes=[]},e.Shape.prototype=Object.create(e.Path.prototype),e.Shape.prototype.extrude=function(t){return new e.ExtrudeGeometry(this,t)},e.Shape.prototype.makeGeometry=function(t){return new e.ShapeGeometry(this,t)},e.Shape.prototype.getPointsHoles=function(e){var t,i=this.holes.length,n=[];for(t=0;i>t;t++)n[t]=this.holes[t].getTransformedPoints(e,this.bends);return n},e.Shape.prototype.getSpacedPointsHoles=function(e){var t,i=this.holes.length,n=[];for(t=0;i>t;t++)n[t]=this.holes[t].getTransformedSpacedPoints(e,this.bends);return n},e.Shape.prototype.extractAllPoints=function(e){return{shape:this.getTransformedPoints(e),holes:this.getPointsHoles(e)}},e.Shape.prototype.extractPoints=function(e){return this.useSpacedPoints?this.extractAllSpacedPoints(e):this.extractAllPoints(e)},e.Shape.prototype.extractAllSpacedPoints=function(e){return{shape:this.getTransformedSpacedPoints(e),holes:this.getSpacedPointsHoles(e)}},e.Shape.Utils={removeHoles:function(t,i){var n,r,o,a,s,l,h,c,u,p,f=t.concat(),d=f.concat(),m=[];for(s=0;s<i.length;s++){for(l=i[s],Array.prototype.push.apply(d,l),r=Number.POSITIVE_INFINITY,n=0;n<l.length;n++)for(u=l[n],p=[],c=0;c<f.length;c++)h=f[c],h=u.distanceToSquared(h),p.push(h),r>h&&(r=h,o=n,a=c);n=a-1>=0?a-1:f.length-1,r=o-1>=0?o-1:l.length-1;var g=[l[o],f[a],f[n]];c=e.FontUtils.Triangulate.area(g);var v=[l[o],l[r],f[a]];u=e.FontUtils.Triangulate.area(v),p=a,h=o,a+=1,o+=-1,0>a&&(a+=f.length),a%=f.length,0>o&&(o+=l.length),o%=l.length,n=a-1>=0?a-1:f.length-1,r=o-1>=0?o-1:l.length-1,g=[l[o],f[a],f[n]],g=e.FontUtils.Triangulate.area(g),v=[l[o],l[r],f[a]],v=e.FontUtils.Triangulate.area(v),c+u>g+v&&(a=p,o=h,0>a&&(a+=f.length),a%=f.length,0>o&&(o+=l.length),o%=l.length,n=a-1>=0?a-1:f.length-1,r=o-1>=0?o-1:l.length-1),c=f.slice(0,a),u=f.slice(a),p=l.slice(o),h=l.slice(0,o),r=[l[o],l[r],f[a]],m.push([l[o],f[a],f[n]]),m.push(r),f=c.concat(p).concat(h).concat(u)}return{shape:f,isolatedPts:m,allpoints:d}},triangulateShape:function(t,i){var n,r,o,a,s=e.Shape.Utils.removeHoles(t,i),l=s.allpoints,h=s.isolatedPts,s=e.FontUtils.Triangulate(s.shape,!1),c={};for(n=0,r=l.length;r>n;n++)a=l[n].x+":"+l[n].y,void 0!==c[a]&&console.log("Duplicate point",a),c[a]=n;for(n=0,r=s.length;r>n;n++)for(o=s[n],l=0;3>l;l++)a=o[l].x+":"+o[l].y,a=c[a],void 0!==a&&(o[l]=a);for(n=0,r=h.length;r>n;n++)for(o=h[n],l=0;3>l;l++)a=o[l].x+":"+o[l].y,a=c[a],void 0!==a&&(o[l]=a);return s.concat(h)},isClockWise:function(t){return 0>e.FontUtils.Triangulate.area(t)},b2p0:function(e,t){var i=1-e;return i*i*t},b2p1:function(e,t){return 2*(1-e)*e*t},b2p2:function(e,t){return e*e*t},b2:function(e,t,i,n){return this.b2p0(e,t)+this.b2p1(e,i)+this.b2p2(e,n)},b3p0:function(e,t){var i=1-e;return i*i*i*t},b3p1:function(e,t){var i=1-e;return 3*i*i*e*t},b3p2:function(e,t){return 3*(1-e)*e*e*t},b3p3:function(e,t){return e*e*e*t},b3:function(e,t,i,n,r){return this.b3p0(e,t)+this.b3p1(e,i)+this.b3p2(e,n)+this.b3p3(e,r)}},e.AnimationHandler=function(){var t=[],i={},n={update:function(e){for(var i=0;i<t.length;i++)t[i].update(e)},addToUpdate:function(e){-1===t.indexOf(e)&&t.push(e)},removeFromUpdate:function(e){e=t.indexOf(e),-1!==e&&t.splice(e,1)},add:function(t){if(void 0!==i[t.name]&&console.log("THREE.AnimationHandler.add: Warning! "+t.name+" already exists in library. Overwriting."),i[t.name]=t,!0!==t.initialized){for(var n=0;n<t.hierarchy.length;n++){for(var r=0;r<t.hierarchy[n].keys.length;r++)if(0>t.hierarchy[n].keys[r].time&&(t.hierarchy[n].keys[r].time=0),void 0!==t.hierarchy[n].keys[r].rot&&!(t.hierarchy[n].keys[r].rot instanceof e.Quaternion)){var o=t.hierarchy[n].keys[r].rot;t.hierarchy[n].keys[r].rot=new e.Quaternion(o[0],o[1],o[2],o[3])}if(t.hierarchy[n].keys.length&&void 0!==t.hierarchy[n].keys[0].morphTargets){for(o={},r=0;r<t.hierarchy[n].keys.length;r++)for(var a=0;a<t.hierarchy[n].keys[r].morphTargets.length;a++){var s=t.hierarchy[n].keys[r].morphTargets[a];o[s]=-1}for(t.hierarchy[n].usedMorphTargets=o,r=0;r<t.hierarchy[n].keys.length;r++){var l={};for(s in o){for(a=0;a<t.hierarchy[n].keys[r].morphTargets.length;a++)if(t.hierarchy[n].keys[r].morphTargets[a]===s){l[s]=t.hierarchy[n].keys[r].morphTargetsInfluences[a];break}a===t.hierarchy[n].keys[r].morphTargets.length&&(l[s]=0)}t.hierarchy[n].keys[r].morphTargetsInfluences=l}}for(r=1;r<t.hierarchy[n].keys.length;r++)t.hierarchy[n].keys[r].time===t.hierarchy[n].keys[r-1].time&&(t.hierarchy[n].keys.splice(r,1),r--);for(r=0;r<t.hierarchy[n].keys.length;r++)t.hierarchy[n].keys[r].index=r}for(r=parseInt(t.length*t.fps,10),t.JIT={},t.JIT.hierarchy=[],n=0;n<t.hierarchy.length;n++)t.JIT.hierarchy.push(Array(r));t.initialized=!0}},get:function(e){return"string"==typeof e?i[e]?i[e]:(console.log("THREE.AnimationHandler.get: Couldn't find animation "+e),null):void 0},parse:function(t){var i=[];if(t instanceof e.SkinnedMesh)for(var n=0;n<t.bones.length;n++)i.push(t.bones[n]);else r(t,i);return i}},r=function(e,t){t.push(e);for(var i=0;i<e.children.length;i++)r(e.children[i],t)};return n.LINEAR=0,n.CATMULLROM=1,n.CATMULLROM_FORWARD=2,n}(),e.Animation=function(t,i,n){this.root=t,this.data=e.AnimationHandler.get(i),this.hierarchy=e.AnimationHandler.parse(t),this.currentTime=0,this.timeScale=1,this.isPlaying=!1,this.loop=this.isPaused=!0,this.interpolationType=void 0!==n?n:e.AnimationHandler.LINEAR,this.points=[],this.target=new e.Vector3},e.Animation.prototype.play=function(t,i){if(!1===this.isPlaying){this.isPlaying=!0,this.loop=void 0!==t?t:!0,this.currentTime=void 0!==i?i:0;var n,r,o=this.hierarchy.length;for(n=0;o>n;n++){r=this.hierarchy[n],this.interpolationType!==e.AnimationHandler.CATMULLROM_FORWARD&&(r.useQuaternion=!0),r.matrixAutoUpdate=!0,void 0===r.animationCache&&(r.animationCache={},r.animationCache.prevKey={pos:0,rot:0,scl:0},r.animationCache.nextKey={pos:0,rot:0,scl:0},r.animationCache.originalMatrix=r instanceof e.Bone?r.skinMatrix:r.matrix);var a=r.animationCache.prevKey;r=r.animationCache.nextKey,a.pos=this.data.hierarchy[n].keys[0],a.rot=this.data.hierarchy[n].keys[0],a.scl=this.data.hierarchy[n].keys[0],r.pos=this.getNextKeyWith("pos",n,1),r.rot=this.getNextKeyWith("rot",n,1),r.scl=this.getNextKeyWith("scl",n,1)}this.update(0)}this.isPaused=!1,e.AnimationHandler.addToUpdate(this)},e.Animation.prototype.pause=function(){!0===this.isPaused?e.AnimationHandler.addToUpdate(this):e.AnimationHandler.removeFromUpdate(this),this.isPaused=!this.isPaused},e.Animation.prototype.stop=function(){this.isPaused=this.isPlaying=!1,e.AnimationHandler.removeFromUpdate(this)},e.Animation.prototype.update=function(t){if(!1!==this.isPlaying){var i,n,r,o,a,s,l,h,c,u=["pos","rot","scl"];c=this.currentTime+=t*this.timeScale,h=this.currentTime%=this.data.length,parseInt(Math.min(h*this.data.fps,this.data.length*this.data.fps),10);for(var p=0,f=this.hierarchy.length;f>p;p++){t=this.hierarchy[p],l=t.animationCache;for(var d=0;3>d;d++){if(i=u[d],a=l.prevKey[i],s=l.nextKey[i],s.time<=c){if(c>h){if(!this.loop)return void this.stop();for(a=this.data.hierarchy[p].keys[0],s=this.getNextKeyWith(i,p,1);s.time<h;)a=s,s=this.getNextKeyWith(i,p,s.index+1)}else do a=s,s=this.getNextKeyWith(i,p,s.index+1);while(s.time<h);l.prevKey[i]=a,l.nextKey[i]=s}t.matrixAutoUpdate=!0,t.matrixWorldNeedsUpdate=!0,n=(h-a.time)/(s.time-a.time),r=a[i],o=s[i],(0>n||n>1)&&(console.log("THREE.Animation.update: Warning! Scale out of bounds:"+n+" on bone "+p),n=0>n?0:1),"pos"===i?(i=t.position,this.interpolationType===e.AnimationHandler.LINEAR?(i.x=r[0]+(o[0]-r[0])*n,i.y=r[1]+(o[1]-r[1])*n,i.z=r[2]+(o[2]-r[2])*n):(this.interpolationType===e.AnimationHandler.CATMULLROM||this.interpolationType===e.AnimationHandler.CATMULLROM_FORWARD)&&(this.points[0]=this.getPrevKeyWith("pos",p,a.index-1).pos,this.points[1]=r,this.points[2]=o,this.points[3]=this.getNextKeyWith("pos",p,s.index+1).pos,n=.33*n+.33,r=this.interpolateCatmullRom(this.points,n),i.x=r[0],i.y=r[1],i.z=r[2],this.interpolationType===e.AnimationHandler.CATMULLROM_FORWARD&&(n=this.interpolateCatmullRom(this.points,1.01*n),this.target.set(n[0],n[1],n[2]),this.target.sub(i),this.target.y=0,this.target.normalize(),n=Math.atan2(this.target.x,this.target.z),t.rotation.set(0,n,0)))):"rot"===i?e.Quaternion.slerp(r,o,t.quaternion,n):"scl"===i&&(i=t.scale,i.x=r[0]+(o[0]-r[0])*n,i.y=r[1]+(o[1]-r[1])*n,i.z=r[2]+(o[2]-r[2])*n)}}}},e.Animation.prototype.interpolateCatmullRom=function(e,t){var i,n,r,o,a,s,l=[],h=[];return i=(e.length-1)*t,n=Math.floor(i),i-=n,l[0]=0===n?n:n-1,l[1]=n,l[2]=n>e.length-2?n:n+1,l[3]=n>e.length-3?n:n+2,n=e[l[0]],o=e[l[1]],a=e[l[2]],s=e[l[3]],l=i*i,r=i*l,h[0]=this.interpolate(n[0],o[0],a[0],s[0],i,l,r),h[1]=this.interpolate(n[1],o[1],a[1],s[1],i,l,r),h[2]=this.interpolate(n[2],o[2],a[2],s[2],i,l,r),h},e.Animation.prototype.interpolate=function(e,t,i,n,r,o,a){return e=.5*(i-e),n=.5*(n-t),(2*(t-i)+e+n)*a+(-3*(t-i)-2*e-n)*o+e*r+t},e.Animation.prototype.getNextKeyWith=function(t,i,n){for(var r=this.data.hierarchy[i].keys,n=this.interpolationType===e.AnimationHandler.CATMULLROM||this.interpolationType===e.AnimationHandler.CATMULLROM_FORWARD?n<r.length-1?n:r.length-1:n%r.length;n<r.length;n++)if(void 0!==r[n][t])return r[n];return this.data.hierarchy[i].keys[0]},e.Animation.prototype.getPrevKeyWith=function(t,i,n){for(var r=this.data.hierarchy[i].keys,n=this.interpolationType===e.AnimationHandler.CATMULLROM||this.interpolationType===e.AnimationHandler.CATMULLROM_FORWARD?n>0?n:0:n>=0?n:n+r.length;n>=0;n--)if(void 0!==r[n][t])return r[n];return this.data.hierarchy[i].keys[r.length-1]},e.KeyFrameAnimation=function(t,i,n){for(this.root=t,this.data=e.AnimationHandler.get(i),this.hierarchy=e.AnimationHandler.parse(t),this.currentTime=0,this.timeScale=.001,this.isPlaying=!1,this.loop=this.isPaused=!0,this.JITCompile=void 0!==n?n:!0,t=0,i=this.hierarchy.length;i>t;t++){var n=this.data.hierarchy[t].sids,r=this.hierarchy[t];if(this.data.hierarchy[t].keys.length&&n){for(var o=0;o<n.length;o++){var a=n[o],s=this.getNextKeyWith(a,t,0);s&&s.apply(a)}r.matrixAutoUpdate=!1,this.data.hierarchy[t].node.updateMatrix(),r.matrixWorldNeedsUpdate=!0}}},e.KeyFrameAnimation.prototype.play=function(t,i){if(!this.isPlaying){this.isPlaying=!0,this.loop=void 0!==t?t:!0,this.currentTime=void 0!==i?i:0,this.startTimeMs=i,this.startTime=1e7,this.endTime=-this.startTime;var n,r,o,a=this.hierarchy.length;for(n=0;a>n;n++)r=this.hierarchy[n],o=this.data.hierarchy[n],r.useQuaternion=!0,void 0===o.animationCache&&(o.animationCache={},o.animationCache.prevKey=null,o.animationCache.nextKey=null,o.animationCache.originalMatrix=r instanceof e.Bone?r.skinMatrix:r.matrix),r=this.data.hierarchy[n].keys,r.length&&(o.animationCache.prevKey=r[0],o.animationCache.nextKey=r[1],this.startTime=Math.min(r[0].time,this.startTime),this.endTime=Math.max(r[r.length-1].time,this.endTime));this.update(0)}this.isPaused=!1,e.AnimationHandler.addToUpdate(this)},e.KeyFrameAnimation.prototype.pause=function(){this.isPaused?e.AnimationHandler.addToUpdate(this):e.AnimationHandler.removeFromUpdate(this),this.isPaused=!this.isPaused},e.KeyFrameAnimation.prototype.stop=function(){this.isPaused=this.isPlaying=!1,e.AnimationHandler.removeFromUpdate(this);for(var t=0;t<this.data.hierarchy.length;t++){var i=this.hierarchy[t],n=this.data.hierarchy[t];if(void 0!==n.animationCache){var r=n.animationCache.originalMatrix;i instanceof e.Bone?(r.copy(i.skinMatrix),i.skinMatrix=r):(r.copy(i.matrix),i.matrix=r),delete n.animationCache}}},e.KeyFrameAnimation.prototype.update=function(t){if(this.isPlaying){var i,n,r,o,a,s,l,h=this.data.JIT.hierarchy;if(s=this.currentTime+=t*this.timeScale,a=this.currentTime%=this.data.length,a<this.startTimeMs&&(a=this.currentTime=this.startTimeMs+a),o=parseInt(Math.min(a*this.data.fps,this.data.length*this.data.fps),10),(l=s>a)&&!this.loop){for(var t=0,c=this.hierarchy.length;c>t;t++){var u=this.data.hierarchy[t].keys,h=this.data.hierarchy[t].sids;if(r=u.length-1,o=this.hierarchy[t],u.length){for(u=0;u<h.length;u++)a=h[u],(s=this.getPrevKeyWith(a,t,r))&&s.apply(a);this.data.hierarchy[t].node.updateMatrix(),o.matrixWorldNeedsUpdate=!0}}this.stop()}else if(!(a<this.startTime)){for(t=0,c=this.hierarchy.length;c>t;t++){r=this.hierarchy[t],i=this.data.hierarchy[t];var u=i.keys,p=i.animationCache;if(this.JITCompile&&void 0!==h[t][o])r instanceof e.Bone?(r.skinMatrix=h[t][o],r.matrixWorldNeedsUpdate=!1):(r.matrix=h[t][o],r.matrixWorldNeedsUpdate=!0);else if(u.length){if(this.JITCompile&&p&&(r instanceof e.Bone?r.skinMatrix=p.originalMatrix:r.matrix=p.originalMatrix),i=p.prevKey,n=p.nextKey,i&&n){if(n.time<=s){if(l&&this.loop)for(i=u[0],n=u[1];n.time<a;)i=n,n=u[i.index+1];else if(!l)for(var f=u.length-1;n.time<a&&n.index!==f;)i=n,n=u[i.index+1];p.prevKey=i,p.nextKey=n}n.time>=a?i.interpolate(n,a):i.interpolate(n,n.time)}this.data.hierarchy[t].node.updateMatrix(),r.matrixWorldNeedsUpdate=!0}}if(this.JITCompile&&void 0===h[0][o])for(this.hierarchy[0].updateMatrixWorld(!0),t=0;t<this.hierarchy.length;t++)h[t][o]=this.hierarchy[t]instanceof e.Bone?this.hierarchy[t].skinMatrix.clone():this.hierarchy[t].matrix.clone()}}},e.KeyFrameAnimation.prototype.getNextKeyWith=function(e,t,i){for(t=this.data.hierarchy[t].keys,i%=t.length;i<t.length;i++)if(t[i].hasTarget(e))return t[i];return t[0]},e.KeyFrameAnimation.prototype.getPrevKeyWith=function(e,t,i){for(t=this.data.hierarchy[t].keys,i=i>=0?i:i+t.length;i>=0;i--)if(t[i].hasTarget(e))return t[i];return t[t.length-1]},e.CubeCamera=function(t,i,n){e.Object3D.call(this);var r=new e.PerspectiveCamera(90,1,t,i);r.up.set(0,-1,0),r.lookAt(new e.Vector3(1,0,0)),this.add(r);var o=new e.PerspectiveCamera(90,1,t,i);o.up.set(0,-1,0),o.lookAt(new e.Vector3(-1,0,0)),this.add(o);var a=new e.PerspectiveCamera(90,1,t,i);a.up.set(0,0,1),a.lookAt(new e.Vector3(0,1,0)),this.add(a);var s=new e.PerspectiveCamera(90,1,t,i);s.up.set(0,0,-1),s.lookAt(new e.Vector3(0,-1,0)),this.add(s);var l=new e.PerspectiveCamera(90,1,t,i);l.up.set(0,-1,0),l.lookAt(new e.Vector3(0,0,1)),this.add(l);var h=new e.PerspectiveCamera(90,1,t,i);h.up.set(0,-1,0),h.lookAt(new e.Vector3(0,0,-1)),this.add(h),this.renderTarget=new e.WebGLRenderTargetCube(n,n,{format:e.RGBFormat,magFilter:e.LinearFilter,minFilter:e.LinearFilter}),this.updateCubeMap=function(e,t){var i=this.renderTarget,n=i.generateMipmaps;i.generateMipmaps=!1,i.activeCubeFace=0,e.render(t,r,i),i.activeCubeFace=1,e.render(t,o,i),i.activeCubeFace=2,e.render(t,a,i),i.activeCubeFace=3,e.render(t,s,i),i.activeCubeFace=4,e.render(t,l,i),i.generateMipmaps=n,i.activeCubeFace=5,e.render(t,h,i)}},e.CubeCamera.prototype=Object.create(e.Object3D.prototype),e.CombinedCamera=function(t,i,n,r,o,a,s){e.Camera.call(this),this.fov=n,this.left=-t/2,this.right=t/2,this.top=i/2,this.bottom=-i/2,this.cameraO=new e.OrthographicCamera(t/-2,t/2,i/2,i/-2,a,s),this.cameraP=new e.PerspectiveCamera(n,t/i,r,o),this.zoom=1,this.toPerspective()},e.CombinedCamera.prototype=Object.create(e.Camera.prototype),e.CombinedCamera.prototype.toPerspective=function(){this.near=this.cameraP.near,this.far=this.cameraP.far,this.cameraP.fov=this.fov/this.zoom,this.cameraP.updateProjectionMatrix(),this.projectionMatrix=this.cameraP.projectionMatrix,this.inPerspectiveMode=!0,this.inOrthographicMode=!1},e.CombinedCamera.prototype.toOrthographic=function(){var e=this.cameraP.aspect,t=(this.cameraP.near+this.cameraP.far)/2,t=Math.tan(this.fov/2)*t,e=2*t*e/2,t=t/this.zoom,e=e/this.zoom;this.cameraO.left=-e,this.cameraO.right=e,this.cameraO.top=t,this.cameraO.bottom=-t,this.cameraO.updateProjectionMatrix(),this.near=this.cameraO.near,this.far=this.cameraO.far,this.projectionMatrix=this.cameraO.projectionMatrix,this.inPerspectiveMode=!1,this.inOrthographicMode=!0},e.CombinedCamera.prototype.setSize=function(e,t){this.cameraP.aspect=e/t,this.left=-e/2,this.right=e/2,this.top=t/2,this.bottom=-t/2},e.CombinedCamera.prototype.setFov=function(e){this.fov=e,this.inPerspectiveMode?this.toPerspective():this.toOrthographic()},e.CombinedCamera.prototype.updateProjectionMatrix=function(){this.inPerspectiveMode?this.toPerspective():(this.toPerspective(),this.toOrthographic())},e.CombinedCamera.prototype.setLens=function(t,i){void 0===i&&(i=24);var n=2*e.Math.radToDeg(Math.atan(i/(2*t)));return this.setFov(n),n},e.CombinedCamera.prototype.setZoom=function(e){this.zoom=e,this.inPerspectiveMode?this.toPerspective():this.toOrthographic()},e.CombinedCamera.prototype.toFrontView=function(){this.rotation.x=0,this.rotation.y=0,this.rotation.z=0,this.rotationAutoUpdate=!1},e.CombinedCamera.prototype.toBackView=function(){this.rotation.x=0,this.rotation.y=Math.PI,this.rotation.z=0,this.rotationAutoUpdate=!1},e.CombinedCamera.prototype.toLeftView=function(){this.rotation.x=0,this.rotation.y=-Math.PI/2,this.rotation.z=0,this.rotationAutoUpdate=!1},e.CombinedCamera.prototype.toRightView=function(){this.rotation.x=0,this.rotation.y=Math.PI/2,this.rotation.z=0,this.rotationAutoUpdate=!1},e.CombinedCamera.prototype.toTopView=function(){this.rotation.x=-Math.PI/2,this.rotation.y=0,this.rotation.z=0,this.rotationAutoUpdate=!1},e.CombinedCamera.prototype.toBottomView=function(){this.rotation.x=Math.PI/2,this.rotation.y=0,this.rotation.z=0,this.rotationAutoUpdate=!1},e.CircleGeometry=function(t,i,n,r){e.Geometry.call(this);var o,t=t||50,n=void 0!==n?n:0,r=void 0!==r?r:2*Math.PI,i=void 0!==i?Math.max(3,i):8,a=[];o=new e.Vector3;var s=new e.Vector2(.5,.5);for(this.vertices.push(o),a.push(s),o=0;i>=o;o++){var l=new e.Vector3,h=n+o/i*r;l.x=t*Math.cos(h),l.y=t*Math.sin(h),this.vertices.push(l),a.push(new e.Vector2((l.x/t+1)/2,(l.y/t+1)/2))}for(n=new e.Vector3(0,0,1),o=1;i>=o;o++)this.faces.push(new e.Face3(o,o+1,0,[n,n,n])),this.faceVertexUvs[0].push([a[o],a[o+1],s]);this.computeCentroids(),this.computeFaceNormals(),this.boundingSphere=new e.Sphere(new e.Vector3,t)},e.CircleGeometry.prototype=Object.create(e.Geometry.prototype),e.CubeGeometry=function(t,i,n,r,o,a){function s(t,i,n,r,o,a,s,h){var c,u=l.widthSegments,p=l.heightSegments,f=o/2,d=a/2,m=l.vertices.length;"x"===t&&"y"===i||"y"===t&&"x"===i?c="z":"x"===t&&"z"===i||"z"===t&&"x"===i?(c="y",p=l.depthSegments):("z"===t&&"y"===i||"y"===t&&"z"===i)&&(c="x",u=l.depthSegments);var g=u+1,v=p+1,y=o/u,b=a/p,x=new e.Vector3;for(x[c]=s>0?1:-1,o=0;v>o;o++)for(a=0;g>a;a++){var w=new e.Vector3;w[t]=(a*y-f)*n,w[i]=(o*b-d)*r,w[c]=s,l.vertices.push(w)}for(o=0;p>o;o++)for(a=0;u>a;a++)t=new e.Face4(a+g*o+m,a+g*(o+1)+m,a+1+g*(o+1)+m,a+1+g*o+m),t.normal.copy(x),t.vertexNormals.push(x.clone(),x.clone(),x.clone(),x.clone()),t.materialIndex=h,l.faces.push(t),l.faceVertexUvs[0].push([new e.Vector2(a/u,1-o/p),new e.Vector2(a/u,1-(o+1)/p),new e.Vector2((a+1)/u,1-(o+1)/p),new e.Vector2((a+1)/u,1-o/p)])}e.Geometry.call(this);var l=this;this.width=t,this.height=i,this.depth=n,this.widthSegments=r||1,this.heightSegments=o||1,this.depthSegments=a||1,t=this.width/2,i=this.height/2,n=this.depth/2,s("z","y",-1,-1,this.depth,this.height,t,0),s("z","y",1,-1,this.depth,this.height,-t,1),s("x","z",1,1,this.width,this.depth,i,2),s("x","z",1,-1,this.width,this.depth,-i,3),s("x","y",1,-1,this.width,this.height,n,4),s("x","y",-1,-1,this.width,this.height,-n,5),this.computeCentroids(),this.mergeVertices()},e.CubeGeometry.prototype=Object.create(e.Geometry.prototype),e.CylinderGeometry=function(t,i,n,r,o,a){e.Geometry.call(this),this.radiusTop=t=void 0!==t?t:20,this.radiusBottom=i=void 0!==i?i:20,this.height=n=void 0!==n?n:100,this.radiusSegments=r=r||8,this.heightSegments=o=o||1,this.openEnded=a=void 0!==a?a:!1;var s,l,h=n/2,c=[],u=[];for(l=0;o>=l;l++){var p=[],f=[],d=l/o,m=d*(i-t)+t;for(s=0;r>=s;s++){var g=s/r,v=new e.Vector3;v.x=m*Math.sin(2*g*Math.PI),v.y=-d*n+h,v.z=m*Math.cos(2*g*Math.PI),this.vertices.push(v),p.push(this.vertices.length-1),f.push(new e.Vector2(g,1-d))}c.push(p),u.push(f)}for(n=(i-t)/n,s=0;r>s;s++)for(0!==t?(p=this.vertices[c[0][s]].clone(),f=this.vertices[c[0][s+1]].clone()):(p=this.vertices[c[1][s]].clone(),f=this.vertices[c[1][s+1]].clone()),p.setY(Math.sqrt(p.x*p.x+p.z*p.z)*n).normalize(),f.setY(Math.sqrt(f.x*f.x+f.z*f.z)*n).normalize(),l=0;o>l;l++){var d=c[l][s],m=c[l+1][s],g=c[l+1][s+1],v=c[l][s+1],y=p.clone(),b=p.clone(),x=f.clone(),w=f.clone(),_=u[l][s].clone(),S=u[l+1][s].clone(),M=u[l+1][s+1].clone(),T=u[l][s+1].clone();this.faces.push(new e.Face4(d,m,g,v,[y,b,x,w])),this.faceVertexUvs[0].push([_,S,M,T])}if(!1===a&&t>0)for(this.vertices.push(new e.Vector3(0,h,0)),s=0;r>s;s++)d=c[0][s],m=c[0][s+1],g=this.vertices.length-1,y=new e.Vector3(0,1,0),b=new e.Vector3(0,1,0),x=new e.Vector3(0,1,0),_=u[0][s].clone(),S=u[0][s+1].clone(),M=new e.Vector2(S.u,0),this.faces.push(new e.Face3(d,m,g,[y,b,x])),this.faceVertexUvs[0].push([_,S,M]);if(!1===a&&i>0)for(this.vertices.push(new e.Vector3(0,-h,0)),s=0;r>s;s++)d=c[l][s+1],m=c[l][s],g=this.vertices.length-1,y=new e.Vector3(0,-1,0),b=new e.Vector3(0,-1,0),x=new e.Vector3(0,-1,0),_=u[l][s+1].clone(),S=u[l][s].clone(),M=new e.Vector2(S.u,1),this.faces.push(new e.Face3(d,m,g,[y,b,x])),this.faceVertexUvs[0].push([_,S,M]);this.computeCentroids(),this.computeFaceNormals()},e.CylinderGeometry.prototype=Object.create(e.Geometry.prototype),e.ExtrudeGeometry=function(t,i){"undefined"!=typeof t&&(e.Geometry.call(this),t=t instanceof Array?t:[t],this.shapebb=t[t.length-1].getBoundingBox(),this.addShapeList(t,i),this.computeCentroids(),this.computeFaceNormals())},e.ExtrudeGeometry.prototype=Object.create(e.Geometry.prototype),e.ExtrudeGeometry.prototype.addShapeList=function(e,t){for(var i=e.length,n=0;i>n;n++)this.addShape(e[n],t)},e.ExtrudeGeometry.prototype.addShape=function(t,i){function n(e,t,i){return t||console.log("die"),t.clone().multiplyScalar(i).add(e)}function r(t,i,n){var r=e.ExtrudeGeometry.__v1,o=e.ExtrudeGeometry.__v2,a=e.ExtrudeGeometry.__v3,s=e.ExtrudeGeometry.__v4,l=e.ExtrudeGeometry.__v5,h=e.ExtrudeGeometry.__v6;return r.set(t.x-i.x,t.y-i.y),o.set(t.x-n.x,t.y-n.y),r=r.normalize(),o=o.normalize(),a.set(-r.y,r.x),s.set(o.y,-o.x),l.copy(t).add(a),h.copy(t).add(s),l.equals(h)?s.clone():(l.copy(i).add(a),h.copy(n).add(s),a=r.dot(s),s=h.sub(l).dot(s),0===a&&(console.log("Either infinite or no solutions!"),console.log(0===s?"Its finite solutions.":"Too bad, no solutions.")),s/=a,0>s?(i=Math.atan2(i.y-t.y,i.x-t.x),t=Math.atan2(n.y-t.y,n.x-t.x),i>t&&(t+=2*Math.PI),n=(i+t)/2,t=-Math.cos(n),n=-Math.sin(n),new e.Vector2(t,n)):r.multiplyScalar(s).add(l).sub(t).clone())}function o(n,r){var o,a;for(j=n.length;0<=--j;){o=j,a=j-1,0>a&&(a=n.length-1);for(var s=0,l=b+2*g,s=0;l>s;s++){var h=G*s,c=G*(s+1),u=r+o+h,h=r+a+h,p=r+a+c,c=r+o+c,f=n,d=s,m=l,v=o,y=a,u=u+P,h=h+P,p=p+P,c=c+P;E.faces.push(new e.Face4(u,h,p,c,null,null,S)),u=M.generateSideWallUV(E,t,f,i,u,h,p,c,d,m,v,y),E.faceVertexUvs[0].push(u)}}}function a(t,i,n){E.vertices.push(new e.Vector3(t,i,n))}function s(n,r,o,a){n+=P,r+=P,o+=P,E.faces.push(new e.Face3(n,r,o,null,null,_)),n=a?M.generateBottomUV(E,t,i,n,r,o):M.generateTopUV(E,t,i,n,r,o),E.faceVertexUvs[0].push(n)}var l,h,c,u,p,f=void 0!==i.amount?i.amount:100,d=void 0!==i.bevelThickness?i.bevelThickness:6,m=void 0!==i.bevelSize?i.bevelSize:d-2,g=void 0!==i.bevelSegments?i.bevelSegments:3,v=void 0!==i.bevelEnabled?i.bevelEnabled:!0,y=void 0!==i.curveSegments?i.curveSegments:12,b=void 0!==i.steps?i.steps:1,x=i.extrudePath,w=!1,_=i.material,S=i.extrudeMaterial,M=void 0!==i.UVGenerator?i.UVGenerator:e.ExtrudeGeometry.WorldUVGenerator;x&&(l=x.getSpacedPoints(b),w=!0,v=!1,h=void 0!==i.frames?i.frames:new e.TubeGeometry.FrenetFrames(x,b,!1),c=new e.Vector3,u=new e.Vector3,p=new e.Vector3),v||(m=d=g=0);var T,C,A,E=this,P=this.vertices.length,y=t.extractPoints(y),k=y.shape,y=y.holes;if(x=!e.Shape.Utils.isClockWise(k)){for(k=k.reverse(),C=0,A=y.length;A>C;C++)T=y[C],e.Shape.Utils.isClockWise(T)&&(y[C]=T.reverse());x=!1}var R=e.Shape.Utils.triangulateShape(k,y),x=k;for(C=0,A=y.length;A>C;C++)T=y[C],k=k.concat(T);var L,D,F,N,G=k.length,V=R.length,O=[],j=0,U=x.length;for(L=U-1,D=j+1;U>j;j++,L++,D++)L===U&&(L=0),D===U&&(D=0),O[j]=r(x[j],x[L],x[D]);var I,z=[],B=O.concat();for(C=0,A=y.length;A>C;C++){for(T=y[C],I=[],j=0,U=T.length,L=U-1,D=j+1;U>j;j++,L++,D++)L===U&&(L=0),D===U&&(D=0),I[j]=r(T[j],T[L],T[D]);z.push(I),B=B.concat(I)}for(L=0;g>L;L++){for(T=L/g,F=d*(1-T),D=m*Math.sin(T*Math.PI/2),j=0,U=x.length;U>j;j++)N=n(x[j],O[j],D),a(N.x,N.y,-F);for(C=0,A=y.length;A>C;C++)for(T=y[C],I=z[C],j=0,U=T.length;U>j;j++)N=n(T[j],I[j],D),a(N.x,N.y,-F)}for(D=m,j=0;G>j;j++)N=v?n(k[j],B[j],D):k[j],w?(u.copy(h.normals[0]).multiplyScalar(N.x),c.copy(h.binormals[0]).multiplyScalar(N.y),p.copy(l[0]).add(u).add(c),a(p.x,p.y,p.z)):a(N.x,N.y,0);for(T=1;b>=T;T++)for(j=0;G>j;j++)N=v?n(k[j],B[j],D):k[j],w?(u.copy(h.normals[T]).multiplyScalar(N.x),c.copy(h.binormals[T]).multiplyScalar(N.y),p.copy(l[T]).add(u).add(c),a(p.x,p.y,p.z)):a(N.x,N.y,f/b*T);for(L=g-1;L>=0;L--){for(T=L/g,F=d*(1-T),D=m*Math.sin(T*Math.PI/2),j=0,U=x.length;U>j;j++)N=n(x[j],O[j],D),a(N.x,N.y,f+F);for(C=0,A=y.length;A>C;C++)for(T=y[C],I=z[C],j=0,U=T.length;U>j;j++)N=n(T[j],I[j],D),w?a(N.x,N.y+l[b-1].y,l[b-1].x+F):a(N.x,N.y,f+F)}if(v){for(d=0*G,j=0;V>j;j++)f=R[j],s(f[2]+d,f[1]+d,f[0]+d,!0);for(d=G*(b+2*g),j=0;V>j;j++)f=R[j],s(f[0]+d,f[1]+d,f[2]+d,!1)}else{for(j=0;V>j;j++)f=R[j],s(f[2],f[1],f[0],!0);for(j=0;V>j;j++)f=R[j],s(f[0]+G*b,f[1]+G*b,f[2]+G*b,!1)}for(f=0,o(x,f),f+=x.length,C=0,A=y.length;A>C;C++)T=y[C],o(T,f),f+=T.length},e.ExtrudeGeometry.WorldUVGenerator={generateTopUV:function(t,i,n,r,o,a){return i=t.vertices[o].x,o=t.vertices[o].y,n=t.vertices[a].x,a=t.vertices[a].y,[new e.Vector2(t.vertices[r].x,t.vertices[r].y),new e.Vector2(i,o),new e.Vector2(n,a)]},generateBottomUV:function(e,t,i,n,r,o){return this.generateTopUV(e,t,i,n,r,o)},generateSideWallUV:function(t,i,n,r,o,a,s,l){var i=t.vertices[o].x,n=t.vertices[o].y,o=t.vertices[o].z,r=t.vertices[a].x,h=t.vertices[a].y,a=t.vertices[a].z,c=t.vertices[s].x,u=t.vertices[s].y,s=t.vertices[s].z,p=t.vertices[l].x,f=t.vertices[l].y,t=t.vertices[l].z;return.01>Math.abs(n-h)?[new e.Vector2(i,1-o),new e.Vector2(r,1-a),new e.Vector2(c,1-s),new e.Vector2(p,1-t)]:[new e.Vector2(n,1-o),new e.Vector2(h,1-a),new e.Vector2(u,1-s),new e.Vector2(f,1-t)]}},e.ExtrudeGeometry.__v1=new e.Vector2,e.ExtrudeGeometry.__v2=new e.Vector2,e.ExtrudeGeometry.__v3=new e.Vector2,e.ExtrudeGeometry.__v4=new e.Vector2,e.ExtrudeGeometry.__v5=new e.Vector2,e.ExtrudeGeometry.__v6=new e.Vector2,e.ShapeGeometry=function(t,i){e.Geometry.call(this),!1==t instanceof Array&&(t=[t]),this.shapebb=t[t.length-1].getBoundingBox(),this.addShapeList(t,i),this.computeCentroids(),this.computeFaceNormals()},e.ShapeGeometry.prototype=Object.create(e.Geometry.prototype),e.ShapeGeometry.prototype.addShapeList=function(e,t){for(var i=0,n=e.length;n>i;i++)this.addShape(e[i],t);return this},e.ShapeGeometry.prototype.addShape=function(t,i){void 0===i&&(i={});var n,r,o,a=i.material,s=void 0===i.UVGenerator?e.ExtrudeGeometry.WorldUVGenerator:i.UVGenerator,l=this.vertices.length;n=t.extractPoints(void 0!==i.curveSegments?i.curveSegments:12);var h=n.shape,c=n.holes;if(!e.Shape.Utils.isClockWise(h))for(h=h.reverse(),n=0,r=c.length;r>n;n++)o=c[n],e.Shape.Utils.isClockWise(o)&&(c[n]=o.reverse());var u=e.Shape.Utils.triangulateShape(h,c);for(n=0,r=c.length;r>n;n++)o=c[n],h=h.concat(o);for(c=h.length,r=u.length,n=0;c>n;n++)o=h[n],this.vertices.push(new e.Vector3(o.x,o.y,0));for(n=0;r>n;n++)c=u[n],h=c[0]+l,o=c[1]+l,c=c[2]+l,this.faces.push(new e.Face3(h,o,c,null,null,a)),this.faceVertexUvs[0].push(s.generateBottomUV(this,t,i,h,o,c)) },e.LatheGeometry=function(t,i,n,r){e.Geometry.call(this);for(var i=i||12,n=n||0,r=r||2*Math.PI,o=1/(t.length-1),a=1/i,s=0,l=i;l>=s;s++)for(var h=n+s*a*r,c=Math.cos(h),u=Math.sin(h),h=0,p=t.length;p>h;h++){var f=t[h],d=new e.Vector3;d.x=c*f.x-u*f.y,d.y=u*f.x+c*f.y,d.z=f.z,this.vertices.push(d)}for(n=t.length,s=0,l=i;l>s;s++)for(h=0,p=t.length-1;p>h;h++)r=i=h+n*s,u=i+n,c=i+1+n,this.faces.push(new e.Face4(r,u,c,i+1)),c=s*a,i=h*o,r=c+a,u=i+o,this.faceVertexUvs[0].push([new e.Vector2(c,i),new e.Vector2(r,i),new e.Vector2(r,u),new e.Vector2(c,u)]);this.mergeVertices(),this.computeCentroids(),this.computeFaceNormals(),this.computeVertexNormals()},e.LatheGeometry.prototype=Object.create(e.Geometry.prototype),e.PlaneGeometry=function(t,i,n,r){e.Geometry.call(this),this.width=t,this.height=i,this.widthSegments=n||1,this.heightSegments=r||1;for(var n=t/2,o=i/2,r=this.widthSegments,a=this.heightSegments,s=r+1,l=a+1,h=this.width/r,c=this.height/a,u=new e.Vector3(0,0,1),t=0;l>t;t++)for(i=0;s>i;i++)this.vertices.push(new e.Vector3(i*h-n,-(t*c-o),0));for(t=0;a>t;t++)for(i=0;r>i;i++)n=new e.Face4(i+s*t,i+s*(t+1),i+1+s*(t+1),i+1+s*t),n.normal.copy(u),n.vertexNormals.push(u.clone(),u.clone(),u.clone(),u.clone()),this.faces.push(n),this.faceVertexUvs[0].push([new e.Vector2(i/r,1-t/a),new e.Vector2(i/r,1-(t+1)/a),new e.Vector2((i+1)/r,1-(t+1)/a),new e.Vector2((i+1)/r,1-t/a)]);this.computeCentroids()},e.PlaneGeometry.prototype=Object.create(e.Geometry.prototype),e.RingGeometry=function(t,i,n,r,o,a){e.Geometry.call(this);for(var t=t||0,i=i||50,o=void 0!==o?o:0,a=void 0!==a?a:2*Math.PI,n=void 0!==n?Math.max(3,n):8,r=void 0!==r?Math.max(3,r):8,s=[],l=t,h=(i-t)/r,t=0;r>=t;t++){for(i=0;n>=i;i++){var c=new e.Vector3,u=o+i/n*a;c.x=l*Math.cos(u),c.y=l*Math.sin(u),this.vertices.push(c),s.push(new e.Vector2((c.x/l+1)/2,-(c.y/l+1)/2+1))}l+=h}for(o=new e.Vector3(0,0,1),t=0;r>t;t++)for(a=t*n,i=0;n>=i;i++){var u=i+a,h=u+t,c=u+n+t,p=u+n+1+t;this.faces.push(new e.Face3(h,c,p,[o,o,o])),this.faceVertexUvs[0].push([s[h],s[c],s[p]]),h=u+t,c=u+n+1+t,p=u+1+t,this.faces.push(new e.Face3(h,c,p,[o,o,o])),this.faceVertexUvs[0].push([s[h],s[c],s[p]])}this.computeCentroids(),this.computeFaceNormals(),this.boundingSphere=new e.Sphere(new e.Vector3,l)},e.RingGeometry.prototype=Object.create(e.Geometry.prototype),e.SphereGeometry=function(t,i,n,r,o,a,s){e.Geometry.call(this),this.radius=t=t||50,this.widthSegments=i=Math.max(3,Math.floor(i)||8),this.heightSegments=n=Math.max(2,Math.floor(n)||6),this.phiStart=r=void 0!==r?r:0,this.phiLength=o=void 0!==o?o:2*Math.PI,this.thetaStart=a=void 0!==a?a:0,this.thetaLength=s=void 0!==s?s:Math.PI;var l,h,c=[],u=[];for(h=0;n>=h;h++){var p=[],f=[];for(l=0;i>=l;l++){var d=l/i,m=h/n,g=new e.Vector3;g.x=-t*Math.cos(r+d*o)*Math.sin(a+m*s),g.y=t*Math.cos(a+m*s),g.z=t*Math.sin(r+d*o)*Math.sin(a+m*s),this.vertices.push(g),p.push(this.vertices.length-1),f.push(new e.Vector2(d,1-m))}c.push(p),u.push(f)}for(h=0;h<this.heightSegments;h++)for(l=0;l<this.widthSegments;l++){var i=c[h][l+1],n=c[h][l],r=c[h+1][l],o=c[h+1][l+1],a=this.vertices[i].clone().normalize(),s=this.vertices[n].clone().normalize(),p=this.vertices[r].clone().normalize(),f=this.vertices[o].clone().normalize(),d=u[h][l+1].clone(),m=u[h][l].clone(),g=u[h+1][l].clone(),v=u[h+1][l+1].clone();Math.abs(this.vertices[i].y)===this.radius?(this.faces.push(new e.Face3(i,r,o,[a,p,f])),this.faceVertexUvs[0].push([d,g,v])):Math.abs(this.vertices[r].y)===this.radius?(this.faces.push(new e.Face3(i,n,r,[a,s,p])),this.faceVertexUvs[0].push([d,m,g])):(this.faces.push(new e.Face4(i,n,r,o,[a,s,p,f])),this.faceVertexUvs[0].push([d,m,g,v]))}this.computeCentroids(),this.computeFaceNormals(),this.boundingSphere=new e.Sphere(new e.Vector3,t)},e.SphereGeometry.prototype=Object.create(e.Geometry.prototype),e.TextGeometry=function(t,i){var i=i||{},n=e.FontUtils.generateShapes(t,i);i.amount=void 0!==i.height?i.height:50,void 0===i.bevelThickness&&(i.bevelThickness=10),void 0===i.bevelSize&&(i.bevelSize=8),void 0===i.bevelEnabled&&(i.bevelEnabled=!1),e.ExtrudeGeometry.call(this,n,i)},e.TextGeometry.prototype=Object.create(e.ExtrudeGeometry.prototype),e.TorusGeometry=function(t,i,n,r,o){for(e.Geometry.call(this),this.radius=t||100,this.tube=i||40,this.radialSegments=n||8,this.tubularSegments=r||6,this.arc=o||2*Math.PI,o=new e.Vector3,t=[],i=[],n=0;n<=this.radialSegments;n++)for(r=0;r<=this.tubularSegments;r++){var a=r/this.tubularSegments*this.arc,s=2*n/this.radialSegments*Math.PI;o.x=this.radius*Math.cos(a),o.y=this.radius*Math.sin(a);var l=new e.Vector3;l.x=(this.radius+this.tube*Math.cos(s))*Math.cos(a),l.y=(this.radius+this.tube*Math.cos(s))*Math.sin(a),l.z=this.tube*Math.sin(s),this.vertices.push(l),t.push(new e.Vector2(r/this.tubularSegments,n/this.radialSegments)),i.push(l.clone().sub(o).normalize())}for(n=1;n<=this.radialSegments;n++)for(r=1;r<=this.tubularSegments;r++){var o=(this.tubularSegments+1)*n+r-1,a=(this.tubularSegments+1)*(n-1)+r-1,s=(this.tubularSegments+1)*(n-1)+r,l=(this.tubularSegments+1)*n+r,h=new e.Face4(o,a,s,l,[i[o],i[a],i[s],i[l]]);h.normal.add(i[o]),h.normal.add(i[a]),h.normal.add(i[s]),h.normal.add(i[l]),h.normal.normalize(),this.faces.push(h),this.faceVertexUvs[0].push([t[o].clone(),t[a].clone(),t[s].clone(),t[l].clone()])}this.computeCentroids()},e.TorusGeometry.prototype=Object.create(e.Geometry.prototype),e.TorusKnotGeometry=function(t,i,n,r,o,a,s){function l(t,i,n,r,o,a){var s=Math.cos(t);return Math.cos(i),i=Math.sin(t),t*=n/r,n=Math.cos(t),s*=.5*o*(2+n),i=.5*o*(2+n)*i,o=.5*a*o*Math.sin(t),new e.Vector3(s,i,o)}for(e.Geometry.call(this),this.radius=t||100,this.tube=i||40,this.radialSegments=n||64,this.tubularSegments=r||8,this.p=o||2,this.q=a||3,this.heightScale=s||1,this.grid=Array(this.radialSegments),n=new e.Vector3,r=new e.Vector3,o=new e.Vector3,t=0;t<this.radialSegments;++t)for(this.grid[t]=Array(this.tubularSegments),i=0;i<this.tubularSegments;++i){var h=2*(t/this.radialSegments)*this.p*Math.PI,s=2*(i/this.tubularSegments)*Math.PI,a=l(h,s,this.q,this.p,this.radius,this.heightScale),h=l(h+.01,s,this.q,this.p,this.radius,this.heightScale);n.subVectors(h,a),r.addVectors(h,a),o.crossVectors(n,r),r.crossVectors(o,n),o.normalize(),r.normalize(),h=-this.tube*Math.cos(s),s=this.tube*Math.sin(s),a.x+=h*r.x+s*o.x,a.y+=h*r.y+s*o.y,a.z+=h*r.z+s*o.z,this.grid[t][i]=this.vertices.push(new e.Vector3(a.x,a.y,a.z))-1}for(t=0;t<this.radialSegments;++t)for(i=0;i<this.tubularSegments;++i){var o=(t+1)%this.radialSegments,a=(i+1)%this.tubularSegments,n=this.grid[t][i],r=this.grid[o][i],o=this.grid[o][a],a=this.grid[t][a],s=new e.Vector2(t/this.radialSegments,i/this.tubularSegments),h=new e.Vector2((t+1)/this.radialSegments,i/this.tubularSegments),c=new e.Vector2((t+1)/this.radialSegments,(i+1)/this.tubularSegments),u=new e.Vector2(t/this.radialSegments,(i+1)/this.tubularSegments);this.faces.push(new e.Face4(n,r,o,a)),this.faceVertexUvs[0].push([s,h,c,u])}this.computeCentroids(),this.computeFaceNormals(),this.computeVertexNormals()},e.TorusKnotGeometry.prototype=Object.create(e.Geometry.prototype),e.TubeGeometry=function(t,i,n,r,o,a){e.Geometry.call(this),this.path=t,this.segments=i||64,this.radius=n||1,this.radiusSegments=r||8,this.closed=o||!1,a&&(this.debug=new e.Object3D),this.grid=[];var s,l,h,c,u,p,f,d,o=this.segments+1,a=new e.Vector3,i=new e.TubeGeometry.FrenetFrames(this.path,this.segments,this.closed);for(p=i.tangents,f=i.normals,d=i.binormals,this.tangents=p,this.normals=f,this.binormals=d,i=0;o>i;i++)for(this.grid[i]=[],r=i/(o-1),u=t.getPointAt(r),r=p[i],s=f[i],l=d[i],this.debug&&(this.debug.add(new e.ArrowHelper(r,u,n,255)),this.debug.add(new e.ArrowHelper(s,u,n,16711680)),this.debug.add(new e.ArrowHelper(l,u,n,65280))),r=0;r<this.radiusSegments;r++)h=2*(r/this.radiusSegments)*Math.PI,c=-this.radius*Math.cos(h),h=this.radius*Math.sin(h),a.copy(u),a.x+=c*s.x+h*l.x,a.y+=c*s.y+h*l.y,a.z+=c*s.z+h*l.z,this.grid[i][r]=this.vertices.push(new e.Vector3(a.x,a.y,a.z))-1;for(i=0;i<this.segments;i++)for(r=0;r<this.radiusSegments;r++)o=this.closed?(i+1)%this.segments:i+1,a=(r+1)%this.radiusSegments,t=this.grid[i][r],n=this.grid[o][r],o=this.grid[o][a],a=this.grid[i][a],p=new e.Vector2(i/this.segments,r/this.radiusSegments),f=new e.Vector2((i+1)/this.segments,r/this.radiusSegments),d=new e.Vector2((i+1)/this.segments,(r+1)/this.radiusSegments),s=new e.Vector2(i/this.segments,(r+1)/this.radiusSegments),this.faces.push(new e.Face4(t,n,o,a)),this.faceVertexUvs[0].push([p,f,d,s]);this.computeCentroids(),this.computeFaceNormals(),this.computeVertexNormals()},e.TubeGeometry.prototype=Object.create(e.Geometry.prototype),e.TubeGeometry.FrenetFrames=function(t,i,n){new e.Vector3;var r=new e.Vector3;new e.Vector3;var o,a,s,l=[],h=[],c=[],u=new e.Vector3,p=new e.Matrix4,i=i+1;for(this.tangents=l,this.normals=h,this.binormals=c,o=0;i>o;o++)a=o/(i-1),l[o]=t.getTangentAt(a),l[o].normalize();for(h[0]=new e.Vector3,c[0]=new e.Vector3,t=Number.MAX_VALUE,o=Math.abs(l[0].x),a=Math.abs(l[0].y),s=Math.abs(l[0].z),t>=o&&(t=o,r.set(1,0,0)),t>=a&&(t=a,r.set(0,1,0)),t>=s&&r.set(0,0,1),u.crossVectors(l[0],r).normalize(),h[0].crossVectors(l[0],u),c[0].crossVectors(l[0],h[0]),o=1;i>o;o++)h[o]=h[o-1].clone(),c[o]=c[o-1].clone(),u.crossVectors(l[o-1],l[o]),1e-4<u.length()&&(u.normalize(),r=Math.acos(l[o-1].dot(l[o])),h[o].applyMatrix4(p.makeRotationAxis(u,r))),c[o].crossVectors(l[o],h[o]);if(n)for(r=Math.acos(h[0].dot(h[i-1])),r/=i-1,0<l[0].dot(u.crossVectors(h[0],h[i-1]))&&(r=-r),o=1;i>o;o++)h[o].applyMatrix4(p.makeRotationAxis(l[o],r*o)),c[o].crossVectors(l[o],h[o])},e.PolyhedronGeometry=function(t,i,n,r){function o(t){var i=t.normalize().clone();i.index=l.vertices.push(i)-1;var n=Math.atan2(t.z,-t.x)/2/Math.PI+.5,t=Math.atan2(-t.y,Math.sqrt(t.x*t.x+t.z*t.z))/Math.PI+.5;return i.uv=new e.Vector2(n,1-t),i}function a(t,i,n){var r=new e.Face3(t.index,i.index,n.index,[t.clone(),i.clone(),n.clone()]);r.centroid.add(t).add(i).add(n).divideScalar(3),r.normal.copy(r.centroid).normalize(),l.faces.push(r),r=Math.atan2(r.centroid.z,-r.centroid.x),l.faceVertexUvs[0].push([s(t.uv,t,r),s(i.uv,i,r),s(n.uv,n,r)])}function s(t,i,n){return 0>n&&1===t.x&&(t=new e.Vector2(t.x-1,t.y)),0===i.x&&0===i.z&&(t=new e.Vector2(n/2/Math.PI+.5,t.y)),t.clone()}e.Geometry.call(this);for(var n=n||1,r=r||0,l=this,h=0,c=t.length;c>h;h++)o(new e.Vector3(t[h][0],t[h][1],t[h][2]));for(var u=this.vertices,t=[],h=0,c=i.length;c>h;h++){var p=u[i[h][0]],f=u[i[h][1]],d=u[i[h][2]];t[h]=new e.Face3(p.index,f.index,d.index,[p.clone(),f.clone(),d.clone()])}for(h=0,c=t.length;c>h;h++){f=t[h],u=r,i=Math.pow(2,u),Math.pow(4,u);for(var u=o(l.vertices[f.a]),p=o(l.vertices[f.b]),m=o(l.vertices[f.c]),f=[],d=0;i>=d;d++){f[d]=[];for(var g=o(u.clone().lerp(m,d/i)),v=o(p.clone().lerp(m,d/i)),y=i-d,b=0;y>=b;b++)f[d][b]=0==b&&d==i?g:o(g.clone().lerp(v,b/y))}for(d=0;i>d;d++)for(b=0;2*(i-d)-1>b;b++)u=Math.floor(b/2),0==b%2?a(f[d][u+1],f[d+1][u],f[d][u]):a(f[d][u+1],f[d+1][u+1],f[d+1][u])}for(h=0,c=this.faceVertexUvs[0].length;c>h;h++)r=this.faceVertexUvs[0][h],t=r[0].x,i=r[1].x,u=r[2].x,p=Math.max(t,Math.max(i,u)),f=Math.min(t,Math.min(i,u)),p>.9&&.1>f&&(.2>t&&(r[0].x+=1),.2>i&&(r[1].x+=1),.2>u&&(r[2].x+=1));for(this.mergeVertices(),h=0,c=this.vertices.length;c>h;h++)this.vertices[h].multiplyScalar(n);this.computeCentroids(),this.boundingSphere=new e.Sphere(new e.Vector3,n)},e.PolyhedronGeometry.prototype=Object.create(e.Geometry.prototype),e.IcosahedronGeometry=function(t,i){this.radius=t,this.detail=i;var n=(1+Math.sqrt(5))/2;e.PolyhedronGeometry.call(this,[[-1,n,0],[1,n,0],[-1,-n,0],[1,-n,0],[0,-1,n],[0,1,n],[0,-1,-n],[0,1,-n],[n,0,-1],[n,0,1],[-n,0,-1],[-n,0,1]],[[0,11,5],[0,5,1],[0,1,7],[0,7,10],[0,10,11],[1,5,9],[5,11,4],[11,10,2],[10,7,6],[7,1,8],[3,9,4],[3,4,2],[3,2,6],[3,6,8],[3,8,9],[4,9,5],[2,4,11],[6,2,10],[8,6,7],[9,8,1]],t,i)},e.IcosahedronGeometry.prototype=Object.create(e.Geometry.prototype),e.OctahedronGeometry=function(t,i){e.PolyhedronGeometry.call(this,[[1,0,0],[-1,0,0],[0,1,0],[0,-1,0],[0,0,1],[0,0,-1]],[[0,2,4],[0,4,3],[0,3,5],[0,5,2],[1,2,5],[1,5,3],[1,3,4],[1,4,2]],t,i)},e.OctahedronGeometry.prototype=Object.create(e.Geometry.prototype),e.TetrahedronGeometry=function(t,i){e.PolyhedronGeometry.call(this,[[1,1,1],[-1,-1,1],[-1,1,-1],[1,-1,-1]],[[2,1,0],[0,3,2],[1,3,0],[2,3,1]],t,i)},e.TetrahedronGeometry.prototype=Object.create(e.Geometry.prototype),e.ParametricGeometry=function(t,i,n,r){e.Geometry.call(this);var o,a,s,l,h=this.vertices,c=this.faces,u=this.faceVertexUvs[0],r=void 0===r?!1:r,p=i+1;for(o=0;n>=o;o++)for(l=o/n,a=0;i>=a;a++)s=a/i,s=t(s,l),h.push(s);var f,d,m,g;for(o=0;n>o;o++)for(a=0;i>a;a++)t=o*p+a,h=o*p+a+1,l=(o+1)*p+a,s=(o+1)*p+a+1,f=new e.Vector2(a/i,o/n),d=new e.Vector2((a+1)/i,o/n),m=new e.Vector2(a/i,(o+1)/n),g=new e.Vector2((a+1)/i,(o+1)/n),r?(c.push(new e.Face3(t,h,l)),c.push(new e.Face3(h,s,l)),u.push([f,d,m]),u.push([d,g,m])):(c.push(new e.Face4(t,h,s,l)),u.push([f,d,g,m]));this.computeCentroids(),this.computeFaceNormals(),this.computeVertexNormals()},e.ParametricGeometry.prototype=Object.create(e.Geometry.prototype),e.ConvexGeometry=function(t){function i(t){var i=t.length();return new e.Vector2(t.x/i,t.y/i)}e.Geometry.call(this);for(var n=[[0,1,2],[0,2,1]],r=3;r<t.length;r++){var o=r,a=t[o].clone(),s=a.length();a.x+=2e-6*s*(Math.random()-.5),a.y+=2e-6*s*(Math.random()-.5),a.z+=2e-6*s*(Math.random()-.5);for(var s=[],l=0;l<n.length;){var h,c=n[l],u=a,p=t[c[0]];h=p;var f=t[c[1]],d=t[c[2]],m=new e.Vector3,g=new e.Vector3;if(m.subVectors(d,f),g.subVectors(h,f),m.cross(g),m.normalize(),h=m,p=h.dot(p),h.dot(u)>=p){for(u=0;3>u;u++){for(p=[c[u],c[(u+1)%3]],h=!0,f=0;f<s.length;f++)if(s[f][0]===p[1]&&s[f][1]===p[0]){s[f]=s[s.length-1],s.pop(),h=!1;break}h&&s.push(p)}n[l]=n[n.length-1],n.pop()}else l++}for(f=0;f<s.length;f++)n.push([s[f][0],s[f][1],o])}for(o=0,a=Array(t.length),r=0;r<n.length;r++)for(s=n[r],l=0;3>l;l++)void 0===a[s[l]]&&(a[s[l]]=o++,this.vertices.push(t[s[l]])),s[l]=a[s[l]];for(r=0;r<n.length;r++)this.faces.push(new e.Face3(n[r][0],n[r][1],n[r][2]));for(r=0;r<this.faces.length;r++)s=this.faces[r],this.faceVertexUvs[0].push([i(this.vertices[s.a]),i(this.vertices[s.b]),i(this.vertices[s.c])]);this.computeCentroids(),this.computeFaceNormals(),this.computeVertexNormals()},e.ConvexGeometry.prototype=Object.create(e.Geometry.prototype),e.AxisHelper=function(t){var t=t||1,i=new e.Geometry;i.vertices.push(new e.Vector3,new e.Vector3(t,0,0),new e.Vector3,new e.Vector3(0,t,0),new e.Vector3,new e.Vector3(0,0,t)),i.colors.push(new e.Color(16711680),new e.Color(16755200),new e.Color(65280),new e.Color(11206400),new e.Color(255),new e.Color(43775)),t=new e.LineBasicMaterial({vertexColors:e.VertexColors}),e.Line.call(this,i,t,e.LinePieces)},e.AxisHelper.prototype=Object.create(e.Line.prototype),e.ArrowHelper=function(t,i,n,r){e.Object3D.call(this),void 0===r&&(r=16776960),void 0===n&&(n=1),this.position=i,this.useQuaternion=!0,i=new e.Geometry,i.vertices.push(new e.Vector3(0,0,0)),i.vertices.push(new e.Vector3(0,1,0)),this.line=new e.Line(i,new e.LineBasicMaterial({color:r})),this.line.matrixAutoUpdate=!1,this.add(this.line),i=new e.CylinderGeometry(0,.05,.25,5,1),i.applyMatrix((new e.Matrix4).makeTranslation(0,.875,0)),this.cone=new e.Mesh(i,new e.MeshBasicMaterial({color:r})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(t),this.setLength(n)},e.ArrowHelper.prototype=Object.create(e.Object3D.prototype),e.ArrowHelper.prototype.setDirection=function(){var t,i=new e.Vector3;return function(e){.999<e.y?this.quaternion.set(0,0,0,1):-.999>e.y?this.quaternion.set(1,0,0,0):(i.set(e.z,0,-e.x).normalize(),t=Math.acos(e.y),this.quaternion.setFromAxisAngle(i,t))}}(),e.ArrowHelper.prototype.setLength=function(e){this.scale.set(e,e,e)},e.ArrowHelper.prototype.setColor=function(e){this.line.material.color.setHex(e),this.cone.material.color.setHex(e)},e.BoxHelper=function(t){var t=t||1,i=new e.Geometry,t=[new e.Vector3(t,t,t),new e.Vector3(-t,t,t),new e.Vector3(-t,-t,t),new e.Vector3(t,-t,t),new e.Vector3(t,t,-t),new e.Vector3(-t,t,-t),new e.Vector3(-t,-t,-t),new e.Vector3(t,-t,-t)];i.vertices.push(t[0],t[1],t[1],t[2],t[2],t[3],t[3],t[0],t[4],t[5],t[5],t[6],t[6],t[7],t[7],t[4],t[0],t[4],t[1],t[5],t[2],t[6],t[3],t[7]),this.vertices=t,e.Line.call(this,i,new e.LineBasicMaterial,e.LinePieces)},e.BoxHelper.prototype=Object.create(e.Line.prototype),e.BoxHelper.prototype.update=function(e){var t=e.geometry;null===t.boundingBox&&t.computeBoundingBox();var i=t.boundingBox.min,t=t.boundingBox.max,n=this.vertices;n[0].set(t.x,t.y,t.z),n[1].set(i.x,t.y,t.z),n[2].set(i.x,i.y,t.z),n[3].set(t.x,i.y,t.z),n[4].set(t.x,t.y,i.z),n[5].set(i.x,t.y,i.z),n[6].set(i.x,i.y,i.z),n[7].set(t.x,i.y,i.z),this.geometry.computeBoundingSphere(),this.geometry.verticesNeedUpdate=!0,this.matrixAutoUpdate=!1,this.matrixWorld=e.matrixWorld},e.CameraHelper=function(t){function i(e,t,i){n(e,i),n(t,i)}function n(t,i){r.vertices.push(new e.Vector3),r.colors.push(new e.Color(i)),void 0===a[t]&&(a[t]=[]),a[t].push(r.vertices.length-1)}e.Line.call(this);var r=new e.Geometry,o=new e.LineBasicMaterial({color:16777215,vertexColors:e.FaceColors}),a={};i("n1","n2",16755200),i("n2","n4",16755200),i("n4","n3",16755200),i("n3","n1",16755200),i("f1","f2",16755200),i("f2","f4",16755200),i("f4","f3",16755200),i("f3","f1",16755200),i("n1","f1",16755200),i("n2","f2",16755200),i("n3","f3",16755200),i("n4","f4",16755200),i("p","n1",16711680),i("p","n2",16711680),i("p","n3",16711680),i("p","n4",16711680),i("u1","u2",43775),i("u2","u3",43775),i("u3","u1",43775),i("c","t",16777215),i("p","c",3355443),i("cn1","cn2",3355443),i("cn3","cn4",3355443),i("cf1","cf2",3355443),i("cf3","cf4",3355443),e.Line.call(this,r,o,e.LinePieces),this.camera=t,this.matrixWorld=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=a,this.update()},e.CameraHelper.prototype=Object.create(e.Line.prototype),e.CameraHelper.prototype.update=function(){var t=new e.Vector3,i=new e.Camera,n=new e.Projector;return function(){function e(e,o,a,s){if(t.set(o,a,s),n.unprojectVector(t,i),e=r.pointMap[e],void 0!==e)for(o=0,a=e.length;a>o;o++)r.geometry.vertices[e[o]].copy(t)}var r=this;i.projectionMatrix.copy(this.camera.projectionMatrix),e("c",0,0,-1),e("t",0,0,1),e("n1",-1,-1,-1),e("n2",1,-1,-1),e("n3",-1,1,-1),e("n4",1,1,-1),e("f1",-1,-1,1),e("f2",1,-1,1),e("f3",-1,1,1),e("f4",1,1,1),e("u1",.7,1.1,-1),e("u2",-.7,1.1,-1),e("u3",0,2,-1),e("cf1",-1,0,1),e("cf2",1,0,1),e("cf3",0,-1,1),e("cf4",0,1,1),e("cn1",-1,0,-1),e("cn2",1,0,-1),e("cn3",0,-1,-1),e("cn4",0,1,-1),this.geometry.verticesNeedUpdate=!0}}(),e.DirectionalLightHelper=function(t,i){e.Object3D.call(this),this.matrixAutoUpdate=!1,this.light=t;var n=new e.SphereGeometry(i,4,2),r=new e.MeshBasicMaterial({fog:!1,wireframe:!0});r.color.copy(this.light.color).multiplyScalar(this.light.intensity),this.lightSphere=new e.Mesh(n,r),this.lightSphere.matrixWorld=this.light.matrixWorld,this.lightSphere.matrixAutoUpdate=!1,this.add(this.lightSphere),n=new e.Geometry,n.vertices.push(this.light.position),n.vertices.push(this.light.target.position),n.computeLineDistances(),r=new e.LineDashedMaterial({dashSize:4,gapSize:4,opacity:.75,transparent:!0,fog:!1}),r.color.copy(this.light.color).multiplyScalar(this.light.intensity),this.targetLine=new e.Line(n,r),this.add(this.targetLine)},e.DirectionalLightHelper.prototype=Object.create(e.Object3D.prototype),e.DirectionalLightHelper.prototype.update=function(){this.lightSphere.material.color.copy(this.light.color).multiplyScalar(this.light.intensity),this.targetLine.geometry.computeLineDistances(),this.targetLine.geometry.verticesNeedUpdate=!0,this.targetLine.material.color.copy(this.light.color).multiplyScalar(this.light.intensity)},e.GridHelper=function(t,i){for(var n=new e.Geometry,r=new e.LineBasicMaterial({vertexColors:e.VertexColors}),o=new e.Color(4473924),a=new e.Color(8947848),s=-t;t>=s;s+=i){n.vertices.push(new e.Vector3(-t,0,s)),n.vertices.push(new e.Vector3(t,0,s)),n.vertices.push(new e.Vector3(s,0,-t)),n.vertices.push(new e.Vector3(s,0,t));var l=0===s?o:a;n.colors.push(l,l,l,l)}e.Line.call(this,n,r,e.LinePieces)},e.GridHelper.prototype=Object.create(e.Line.prototype),e.HemisphereLightHelper=function(t,i){e.Object3D.call(this),this.light=t;var n=new e.SphereGeometry(i,4,2);n.applyMatrix((new e.Matrix4).makeRotationX(-Math.PI/2));for(var r=0;8>r;r++)n.faces[r].materialIndex=4>r?0:1;r=new e.MeshBasicMaterial({fog:!1,wireframe:!0}),r.color.copy(t.color).multiplyScalar(t.intensity);var o=new e.MeshBasicMaterial({fog:!1,wireframe:!0});o.color.copy(t.groundColor).multiplyScalar(t.intensity),this.lightSphere=new e.Mesh(n,new e.MeshFaceMaterial([r,o])),this.lightSphere.position=t.position,this.lightSphere.lookAt(new e.Vector3),this.add(this.lightSphere)},e.HemisphereLightHelper.prototype=Object.create(e.Object3D.prototype),e.HemisphereLightHelper.prototype.update=function(){this.lightSphere.lookAt(new e.Vector3),this.lightSphere.material.materials[0].color.copy(this.light.color).multiplyScalar(this.light.intensity),this.lightSphere.material.materials[1].color.copy(this.light.groundColor).multiplyScalar(this.light.intensity)},e.PointLightHelper=function(t,i){e.Object3D.call(this),this.matrixAutoUpdate=!1,this.light=t;var n=new e.SphereGeometry(i,4,2),r=new e.MeshBasicMaterial({fog:!1,wireframe:!0});r.color.copy(this.light.color).multiplyScalar(this.light.intensity),this.lightSphere=new e.Mesh(n,r),this.lightSphere.matrixWorld=this.light.matrixWorld,this.lightSphere.matrixAutoUpdate=!1,this.add(this.lightSphere)},e.PointLightHelper.prototype=Object.create(e.Object3D.prototype),e.PointLightHelper.prototype.update=function(){this.lightSphere.material.color.copy(this.light.color).multiplyScalar(this.light.intensity)},e.SpotLightHelper=function(t,i){e.Object3D.call(this),this.matrixAutoUpdate=!1,this.light=t;var n=new e.SphereGeometry(i,4,2),r=new e.MeshBasicMaterial({fog:!1,wireframe:!0});r.color.copy(this.light.color).multiplyScalar(this.light.intensity),this.lightSphere=new e.Mesh(n,r),this.lightSphere.matrixWorld=this.light.matrixWorld,this.lightSphere.matrixAutoUpdate=!1,this.add(this.lightSphere),n=new e.CylinderGeometry(1e-4,1,1,8,1,!0),n.applyMatrix((new e.Matrix4).makeTranslation(0,-.5,0)),n.applyMatrix((new e.Matrix4).makeRotationX(-Math.PI/2)),r=new e.MeshBasicMaterial({fog:!1,wireframe:!0,opacity:.3,transparent:!0}),r.color.copy(this.light.color).multiplyScalar(this.light.intensity),this.lightCone=new e.Mesh(n,r),this.lightCone.position=this.light.position,n=t.distance?t.distance:1e4,r=n*Math.tan(t.angle),this.lightCone.scale.set(r,r,n),this.lightCone.lookAt(this.light.target.position),this.add(this.lightCone)},e.SpotLightHelper.prototype=Object.create(e.Object3D.prototype),e.SpotLightHelper.prototype.update=function(){var e=this.light.distance?this.light.distance:1e4,t=e*Math.tan(this.light.angle);this.lightCone.scale.set(t,t,e),this.lightCone.lookAt(this.light.target.position),this.lightSphere.material.color.copy(this.light.color).multiplyScalar(this.light.intensity),this.lightCone.material.color.copy(this.light.color).multiplyScalar(this.light.intensity)},e.ImmediateRenderObject=function(){e.Object3D.call(this),this.render=function(){}},e.ImmediateRenderObject.prototype=Object.create(e.Object3D.prototype),e.LensFlare=function(t,i,n,r,o){e.Object3D.call(this),this.lensFlares=[],this.positionScreen=new e.Vector3,this.customUpdateCallback=void 0,void 0!==t&&this.add(t,i,n,r,o)},e.LensFlare.prototype=Object.create(e.Object3D.prototype),e.LensFlare.prototype.add=function(t,i,n,r,o,a){void 0===i&&(i=-1),void 0===n&&(n=0),void 0===a&&(a=1),void 0===o&&(o=new e.Color(16777215)),void 0===r&&(r=e.NormalBlending),n=Math.min(n,Math.max(0,n)),this.lensFlares.push({texture:t,size:i,distance:n,x:0,y:0,z:0,scale:1,rotation:1,opacity:a,color:o,blending:r})},e.LensFlare.prototype.updateLensFlares=function(){var e,t,i=this.lensFlares.length,n=2*-this.positionScreen.x,r=2*-this.positionScreen.y;for(e=0;i>e;e++)t=this.lensFlares[e],t.x=this.positionScreen.x+n*t.distance,t.y=this.positionScreen.y+r*t.distance,t.wantedRotation=.25*t.x*Math.PI,t.rotation+=.25*(t.wantedRotation-t.rotation)},e.MorphBlendMesh=function(t,i){e.Mesh.call(this,t,i),this.animationsMap={},this.animationsList=[];var n=this.geometry.morphTargets.length;this.createAnimation("__default",0,n-1,n/1),this.setAnimationWeight("__default",1)},e.MorphBlendMesh.prototype=Object.create(e.Mesh.prototype),e.MorphBlendMesh.prototype.createAnimation=function(e,t,i,n){t={startFrame:t,endFrame:i,length:i-t+1,fps:n,duration:(i-t)/n,lastFrame:0,currentFrame:0,active:!1,time:0,direction:1,weight:1,directionBackwards:!1,mirroredLoop:!1},this.animationsMap[e]=t,this.animationsList.push(t)},e.MorphBlendMesh.prototype.autoCreateAnimations=function(e){for(var t,i=/([a-z]+)(\d+)/,n={},r=this.geometry,o=0,a=r.morphTargets.length;a>o;o++){var s=r.morphTargets[o].name.match(i);if(s&&1<s.length){var l=s[1];n[l]||(n[l]={start:1/0,end:-1/0}),s=n[l],o<s.start&&(s.start=o),o>s.end&&(s.end=o),t||(t=l)}}for(l in n)s=n[l],this.createAnimation(l,s.start,s.end,e);this.firstAnimation=t},e.MorphBlendMesh.prototype.setAnimationDirectionForward=function(e){(e=this.animationsMap[e])&&(e.direction=1,e.directionBackwards=!1)},e.MorphBlendMesh.prototype.setAnimationDirectionBackward=function(e){(e=this.animationsMap[e])&&(e.direction=-1,e.directionBackwards=!0)},e.MorphBlendMesh.prototype.setAnimationFPS=function(e,t){var i=this.animationsMap[e];i&&(i.fps=t,i.duration=(i.end-i.start)/i.fps)},e.MorphBlendMesh.prototype.setAnimationDuration=function(e,t){var i=this.animationsMap[e];i&&(i.duration=t,i.fps=(i.end-i.start)/i.duration)},e.MorphBlendMesh.prototype.setAnimationWeight=function(e,t){var i=this.animationsMap[e];i&&(i.weight=t)},e.MorphBlendMesh.prototype.setAnimationTime=function(e,t){var i=this.animationsMap[e];i&&(i.time=t)},e.MorphBlendMesh.prototype.getAnimationTime=function(e){var t=0;return(e=this.animationsMap[e])&&(t=e.time),t},e.MorphBlendMesh.prototype.getAnimationDuration=function(e){var t=-1;return(e=this.animationsMap[e])&&(t=e.duration),t},e.MorphBlendMesh.prototype.playAnimation=function(e){var t=this.animationsMap[e];t?(t.time=0,t.active=!0):console.warn("animation["+e+"] undefined")},e.MorphBlendMesh.prototype.stopAnimation=function(e){(e=this.animationsMap[e])&&(e.active=!1)},e.MorphBlendMesh.prototype.update=function(t){for(var i=0,n=this.animationsList.length;n>i;i++){var r=this.animationsList[i];if(r.active){var o=r.duration/r.length;r.time+=r.direction*t,r.mirroredLoop?(r.time>r.duration||0>r.time)&&(r.direction*=-1,r.time>r.duration&&(r.time=r.duration,r.directionBackwards=!0),0>r.time&&(r.time=0,r.directionBackwards=!1)):(r.time%=r.duration,0>r.time&&(r.time+=r.duration));var a=r.startFrame+e.Math.clamp(Math.floor(r.time/o),0,r.length-1),s=r.weight;a!==r.currentFrame&&(this.morphTargetInfluences[r.lastFrame]=0,this.morphTargetInfluences[r.currentFrame]=1*s,this.morphTargetInfluences[a]=0,r.lastFrame=r.currentFrame,r.currentFrame=a),o=r.time%o/o,r.directionBackwards&&(o=1-o),this.morphTargetInfluences[r.currentFrame]=o*s,this.morphTargetInfluences[r.lastFrame]=(1-o)*s}}},e.LensFlarePlugin=function(){function t(e,t){var n=i.createProgram(),r=i.createShader(i.FRAGMENT_SHADER),o=i.createShader(i.VERTEX_SHADER),a="precision "+t+" float;\n";return i.shaderSource(r,a+e.fragmentShader),i.shaderSource(o,a+e.vertexShader),i.compileShader(r),i.compileShader(o),i.attachShader(n,r),i.attachShader(n,o),i.linkProgram(n),n}var i,n,r,o,a,s,l,h,c,u,p,f,d;this.init=function(m){i=m.context,n=m,r=m.getPrecision(),o=new Float32Array(16),a=new Uint16Array(6),m=0,o[m++]=-1,o[m++]=-1,o[m++]=0,o[m++]=0,o[m++]=1,o[m++]=-1,o[m++]=1,o[m++]=0,o[m++]=1,o[m++]=1,o[m++]=1,o[m++]=1,o[m++]=-1,o[m++]=1,o[m++]=0,o[m++]=1,m=0,a[m++]=0,a[m++]=1,a[m++]=2,a[m++]=0,a[m++]=2,a[m++]=3,s=i.createBuffer(),l=i.createBuffer(),i.bindBuffer(i.ARRAY_BUFFER,s),i.bufferData(i.ARRAY_BUFFER,o,i.STATIC_DRAW),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,l),i.bufferData(i.ELEMENT_ARRAY_BUFFER,a,i.STATIC_DRAW),h=i.createTexture(),c=i.createTexture(),i.bindTexture(i.TEXTURE_2D,h),i.texImage2D(i.TEXTURE_2D,0,i.RGB,16,16,0,i.RGB,i.UNSIGNED_BYTE,null),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.NEAREST),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.NEAREST),i.bindTexture(i.TEXTURE_2D,c),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,16,16,0,i.RGBA,i.UNSIGNED_BYTE,null),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.NEAREST),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.NEAREST),0>=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS)?(u=!1,p=t(e.ShaderFlares.lensFlare,r)):(u=!0,p=t(e.ShaderFlares.lensFlareVertexTexture,r)),f={},d={},f.vertex=i.getAttribLocation(p,"position"),f.uv=i.getAttribLocation(p,"uv"),d.renderType=i.getUniformLocation(p,"renderType"),d.map=i.getUniformLocation(p,"map"),d.occlusionMap=i.getUniformLocation(p,"occlusionMap"),d.opacity=i.getUniformLocation(p,"opacity"),d.color=i.getUniformLocation(p,"color"),d.scale=i.getUniformLocation(p,"scale"),d.rotation=i.getUniformLocation(p,"rotation"),d.screenPosition=i.getUniformLocation(p,"screenPosition")},this.render=function(t,r,o,a){var t=t.__webglFlares,m=t.length;if(m){var g=new e.Vector3,v=a/o,y=.5*o,b=.5*a,x=16/a,w=new e.Vector2(x*v,x),_=new e.Vector3(1,1,0),S=new e.Vector2(1,1),M=d,x=f;i.useProgram(p),i.enableVertexAttribArray(f.vertex),i.enableVertexAttribArray(f.uv),i.uniform1i(M.occlusionMap,0),i.uniform1i(M.map,1),i.bindBuffer(i.ARRAY_BUFFER,s),i.vertexAttribPointer(x.vertex,2,i.FLOAT,!1,16,0),i.vertexAttribPointer(x.uv,2,i.FLOAT,!1,16,8),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,l),i.disable(i.CULL_FACE),i.depthMask(!1);var T,C,A,E,P;for(T=0;m>T;T++)if(x=16/a,w.set(x*v,x),E=t[T],g.set(E.matrixWorld.elements[12],E.matrixWorld.elements[13],E.matrixWorld.elements[14]),g.applyMatrix4(r.matrixWorldInverse),g.applyProjection(r.projectionMatrix),_.copy(g),S.x=_.x*y+y,S.y=_.y*b+b,u||0<S.x&&S.x<o&&0<S.y&&S.y<a)for(i.activeTexture(i.TEXTURE1),i.bindTexture(i.TEXTURE_2D,h),i.copyTexImage2D(i.TEXTURE_2D,0,i.RGB,S.x-8,S.y-8,16,16,0),i.uniform1i(M.renderType,0),i.uniform2f(M.scale,w.x,w.y),i.uniform3f(M.screenPosition,_.x,_.y,_.z),i.disable(i.BLEND),i.enable(i.DEPTH_TEST),i.drawElements(i.TRIANGLES,6,i.UNSIGNED_SHORT,0),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,c),i.copyTexImage2D(i.TEXTURE_2D,0,i.RGBA,S.x-8,S.y-8,16,16,0),i.uniform1i(M.renderType,1),i.disable(i.DEPTH_TEST),i.activeTexture(i.TEXTURE1),i.bindTexture(i.TEXTURE_2D,h),i.drawElements(i.TRIANGLES,6,i.UNSIGNED_SHORT,0),E.positionScreen.copy(_),E.customUpdateCallback?E.customUpdateCallback(E):E.updateLensFlares(),i.uniform1i(M.renderType,2),i.enable(i.BLEND),C=0,A=E.lensFlares.length;A>C;C++)P=E.lensFlares[C],.001<P.opacity&&.001<P.scale&&(_.x=P.x,_.y=P.y,_.z=P.z,x=P.size*P.scale/a,w.x=x*v,w.y=x,i.uniform3f(M.screenPosition,_.x,_.y,_.z),i.uniform2f(M.scale,w.x,w.y),i.uniform1f(M.rotation,P.rotation),i.uniform1f(M.opacity,P.opacity),i.uniform3f(M.color,P.color.r,P.color.g,P.color.b),n.setBlending(P.blending,P.blendEquation,P.blendSrc,P.blendDst),n.setTexture(P.texture,1),i.drawElements(i.TRIANGLES,6,i.UNSIGNED_SHORT,0));i.enable(i.CULL_FACE),i.enable(i.DEPTH_TEST),i.depthMask(!0)}}},e.ShadowMapPlugin=function(){var t,i,n,r,o,a,s=new e.Frustum,l=new e.Matrix4,h=new e.Vector3,c=new e.Vector3,u=new e.Vector3;this.init=function(s){t=s.context,i=s;var s=e.ShaderLib.depthRGBA,l=e.UniformsUtils.clone(s.uniforms);n=new e.ShaderMaterial({fragmentShader:s.fragmentShader,vertexShader:s.vertexShader,uniforms:l}),r=new e.ShaderMaterial({fragmentShader:s.fragmentShader,vertexShader:s.vertexShader,uniforms:l,morphTargets:!0}),o=new e.ShaderMaterial({fragmentShader:s.fragmentShader,vertexShader:s.vertexShader,uniforms:l,skinning:!0}),a=new e.ShaderMaterial({fragmentShader:s.fragmentShader,vertexShader:s.vertexShader,uniforms:l,morphTargets:!0,skinning:!0}),n._shadowPass=!0,r._shadowPass=!0,o._shadowPass=!0,a._shadowPass=!0 },this.render=function(e,t){i.shadowMapEnabled&&i.shadowMapAutoUpdate&&this.update(e,t)},this.update=function(p,f){var d,m,g,v,y,b,x,w,_,S=[];for(v=0,t.clearColor(1,1,1,1),t.disable(t.BLEND),t.enable(t.CULL_FACE),t.frontFace(t.CCW),t.cullFace(i.shadowMapCullFace===e.CullFaceFront?t.FRONT:t.BACK),i.setDepthTest(!0),d=0,m=p.__lights.length;m>d;d++)if(g=p.__lights[d],g.castShadow)if(g instanceof e.DirectionalLight&&g.shadowCascade)for(y=0;y<g.shadowCascadeCount;y++){var M;if(g.shadowCascadeArray[y])M=g.shadowCascadeArray[y];else{_=g,x=y,M=new e.DirectionalLight,M.isVirtual=!0,M.onlyShadow=!0,M.castShadow=!0,M.shadowCameraNear=_.shadowCameraNear,M.shadowCameraFar=_.shadowCameraFar,M.shadowCameraLeft=_.shadowCameraLeft,M.shadowCameraRight=_.shadowCameraRight,M.shadowCameraBottom=_.shadowCameraBottom,M.shadowCameraTop=_.shadowCameraTop,M.shadowCameraVisible=_.shadowCameraVisible,M.shadowDarkness=_.shadowDarkness,M.shadowBias=_.shadowCascadeBias[x],M.shadowMapWidth=_.shadowCascadeWidth[x],M.shadowMapHeight=_.shadowCascadeHeight[x],M.pointsWorld=[],M.pointsFrustum=[],w=M.pointsWorld,b=M.pointsFrustum;for(var T=0;8>T;T++)w[T]=new e.Vector3,b[T]=new e.Vector3;w=_.shadowCascadeNearZ[x],_=_.shadowCascadeFarZ[x],b[0].set(-1,-1,w),b[1].set(1,-1,w),b[2].set(-1,1,w),b[3].set(1,1,w),b[4].set(-1,-1,_),b[5].set(1,-1,_),b[6].set(-1,1,_),b[7].set(1,1,_),M.originalCamera=f,b=new e.Gyroscope,b.position=g.shadowCascadeOffset,b.add(M),b.add(M.target),f.add(b),g.shadowCascadeArray[y]=M,console.log("Created virtualLight",M)}x=g,w=y,_=x.shadowCascadeArray[w],_.position.copy(x.position),_.target.position.copy(x.target.position),_.lookAt(_.target),_.shadowCameraVisible=x.shadowCameraVisible,_.shadowDarkness=x.shadowDarkness,_.shadowBias=x.shadowCascadeBias[w],b=x.shadowCascadeNearZ[w],x=x.shadowCascadeFarZ[w],_=_.pointsFrustum,_[0].z=b,_[1].z=b,_[2].z=b,_[3].z=b,_[4].z=x,_[5].z=x,_[6].z=x,_[7].z=x,S[v]=M,v++}else S[v]=g,v++;for(d=0,m=S.length;m>d;d++){if(g=S[d],g.shadowMap||(y=e.LinearFilter,i.shadowMapType===e.PCFSoftShadowMap&&(y=e.NearestFilter),g.shadowMap=new e.WebGLRenderTarget(g.shadowMapWidth,g.shadowMapHeight,{minFilter:y,magFilter:y,format:e.RGBAFormat}),g.shadowMapSize=new e.Vector2(g.shadowMapWidth,g.shadowMapHeight),g.shadowMatrix=new e.Matrix4),!g.shadowCamera){if(g instanceof e.SpotLight)g.shadowCamera=new e.PerspectiveCamera(g.shadowCameraFov,g.shadowMapWidth/g.shadowMapHeight,g.shadowCameraNear,g.shadowCameraFar);else{if(!(g instanceof e.DirectionalLight)){console.error("Unsupported light type for shadow");continue}g.shadowCamera=new e.OrthographicCamera(g.shadowCameraLeft,g.shadowCameraRight,g.shadowCameraTop,g.shadowCameraBottom,g.shadowCameraNear,g.shadowCameraFar)}p.add(g.shadowCamera),!0===p.autoUpdate&&p.updateMatrixWorld()}if(g.shadowCameraVisible&&!g.cameraHelper&&(g.cameraHelper=new e.CameraHelper(g.shadowCamera),g.shadowCamera.add(g.cameraHelper)),g.isVirtual&&M.originalCamera==f){for(y=f,v=g.shadowCamera,b=g.pointsFrustum,_=g.pointsWorld,h.set(1/0,1/0,1/0),c.set(-1/0,-1/0,-1/0),x=0;8>x;x++)w=_[x],w.copy(b[x]),e.ShadowMapPlugin.__projector.unprojectVector(w,y),w.applyMatrix4(v.matrixWorldInverse),w.x<h.x&&(h.x=w.x),w.x>c.x&&(c.x=w.x),w.y<h.y&&(h.y=w.y),w.y>c.y&&(c.y=w.y),w.z<h.z&&(h.z=w.z),w.z>c.z&&(c.z=w.z);v.left=h.x,v.right=c.x,v.top=c.y,v.bottom=h.y,v.updateProjectionMatrix()}for(v=g.shadowMap,b=g.shadowMatrix,y=g.shadowCamera,y.position.getPositionFromMatrix(g.matrixWorld),u.getPositionFromMatrix(g.target.matrixWorld),y.lookAt(u),y.updateMatrixWorld(),y.matrixWorldInverse.getInverse(y.matrixWorld),g.cameraHelper&&(g.cameraHelper.visible=g.shadowCameraVisible),g.shadowCameraVisible&&g.cameraHelper.update(),b.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),b.multiply(y.projectionMatrix),b.multiply(y.matrixWorldInverse),l.multiplyMatrices(y.projectionMatrix,y.matrixWorldInverse),s.setFromMatrix(l),i.setRenderTarget(v),i.clear(),_=p.__webglObjects,g=0,v=_.length;v>g;g++)x=_[g],b=x.object,x.render=!1,!b.visible||!b.castShadow||(b instanceof e.Mesh||b instanceof e.ParticleSystem)&&b.frustumCulled&&!s.intersectsObject(b)||(b._modelViewMatrix.multiplyMatrices(y.matrixWorldInverse,b.matrixWorld),x.render=!0);for(g=0,v=_.length;v>g;g++)x=_[g],x.render&&(b=x.object,x=x.buffer,T=b.material instanceof e.MeshFaceMaterial?b.material.materials[0]:b.material,w=0<b.geometry.morphTargets.length&&T.morphTargets,T=b instanceof e.SkinnedMesh&&T.skinning,w=b.customDepthMaterial?b.customDepthMaterial:T?w?a:o:w?r:n,x instanceof e.BufferGeometry?i.renderBufferDirect(y,p.__lights,null,w,x,b):i.renderBuffer(y,p.__lights,null,w,x,b));for(_=p.__webglObjectsImmediate,g=0,v=_.length;v>g;g++)x=_[g],b=x.object,b.visible&&b.castShadow&&(b._modelViewMatrix.multiplyMatrices(y.matrixWorldInverse,b.matrixWorld),i.renderImmediateObject(y,p.__lights,null,n,b))}d=i.getClearColor(),m=i.getClearAlpha(),t.clearColor(d.r,d.g,d.b,m),t.enable(t.BLEND),i.shadowMapCullFace===e.CullFaceFront&&t.cullFace(t.BACK)}},e.ShadowMapPlugin.__projector=new e.Projector,e.SpritePlugin=function(){function t(e,t){return e.z!==t.z?t.z-e.z:t.id-e.id}var i,n,r,o,a,s,l,h,c,u;this.init=function(t){i=t.context,n=t,r=t.getPrecision(),o=new Float32Array(16),a=new Uint16Array(6),t=0,o[t++]=-1,o[t++]=-1,o[t++]=0,o[t++]=0,o[t++]=1,o[t++]=-1,o[t++]=1,o[t++]=0,o[t++]=1,o[t++]=1,o[t++]=1,o[t++]=1,o[t++]=-1,o[t++]=1,o[t++]=0,o[t++]=1,t=0,a[t++]=0,a[t++]=1,a[t++]=2,a[t++]=0,a[t++]=2,a[t++]=3,s=i.createBuffer(),l=i.createBuffer(),i.bindBuffer(i.ARRAY_BUFFER,s),i.bufferData(i.ARRAY_BUFFER,o,i.STATIC_DRAW),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,l),i.bufferData(i.ELEMENT_ARRAY_BUFFER,a,i.STATIC_DRAW);var t=e.ShaderSprite.sprite,p=i.createProgram(),f=i.createShader(i.FRAGMENT_SHADER),d=i.createShader(i.VERTEX_SHADER),m="precision "+r+" float;\n";i.shaderSource(f,m+t.fragmentShader),i.shaderSource(d,m+t.vertexShader),i.compileShader(f),i.compileShader(d),i.attachShader(p,f),i.attachShader(p,d),i.linkProgram(p),h=p,c={},u={},c.position=i.getAttribLocation(h,"position"),c.uv=i.getAttribLocation(h,"uv"),u.uvOffset=i.getUniformLocation(h,"uvOffset"),u.uvScale=i.getUniformLocation(h,"uvScale"),u.rotation=i.getUniformLocation(h,"rotation"),u.scale=i.getUniformLocation(h,"scale"),u.alignment=i.getUniformLocation(h,"alignment"),u.color=i.getUniformLocation(h,"color"),u.map=i.getUniformLocation(h,"map"),u.opacity=i.getUniformLocation(h,"opacity"),u.useScreenCoordinates=i.getUniformLocation(h,"useScreenCoordinates"),u.sizeAttenuation=i.getUniformLocation(h,"sizeAttenuation"),u.screenPosition=i.getUniformLocation(h,"screenPosition"),u.modelViewMatrix=i.getUniformLocation(h,"modelViewMatrix"),u.projectionMatrix=i.getUniformLocation(h,"projectionMatrix"),u.fogType=i.getUniformLocation(h,"fogType"),u.fogDensity=i.getUniformLocation(h,"fogDensity"),u.fogNear=i.getUniformLocation(h,"fogNear"),u.fogFar=i.getUniformLocation(h,"fogFar"),u.fogColor=i.getUniformLocation(h,"fogColor"),u.alphaTest=i.getUniformLocation(h,"alphaTest")},this.render=function(r,o,a,p){var f=r.__webglSprites,d=f.length;if(d){var m=c,g=u,v=p/a,a=.5*a,y=.5*p;i.useProgram(h),i.enableVertexAttribArray(m.position),i.enableVertexAttribArray(m.uv),i.disable(i.CULL_FACE),i.enable(i.BLEND),i.bindBuffer(i.ARRAY_BUFFER,s),i.vertexAttribPointer(m.position,2,i.FLOAT,!1,16,0),i.vertexAttribPointer(m.uv,2,i.FLOAT,!1,16,8),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,l),i.uniformMatrix4fv(g.projectionMatrix,!1,o.projectionMatrix.elements),i.activeTexture(i.TEXTURE0),i.uniform1i(g.map,0);var b=m=0,x=r.fog;x?(i.uniform3f(g.fogColor,x.color.r,x.color.g,x.color.b),x instanceof e.Fog?(i.uniform1f(g.fogNear,x.near),i.uniform1f(g.fogFar,x.far),i.uniform1i(g.fogType,1),b=m=1):x instanceof e.FogExp2&&(i.uniform1f(g.fogDensity,x.density),i.uniform1i(g.fogType,2),b=m=2)):(i.uniform1i(g.fogType,0),b=m=0);for(var w,_,S=[],x=0;d>x;x++)w=f[x],_=w.material,w.visible&&0!==_.opacity&&(_.useScreenCoordinates?w.z=-w.position.z:(w._modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,w.matrixWorld),w.z=-w._modelViewMatrix.elements[14]));for(f.sort(t),x=0;d>x;x++)w=f[x],_=w.material,w.visible&&0!==_.opacity&&_.map&&_.map.image&&_.map.image.width&&(i.uniform1f(g.alphaTest,_.alphaTest),!0===_.useScreenCoordinates?(i.uniform1i(g.useScreenCoordinates,1),i.uniform3f(g.screenPosition,(w.position.x*n.devicePixelRatio-a)/a,(y-w.position.y*n.devicePixelRatio)/y,Math.max(0,Math.min(1,w.position.z))),S[0]=n.devicePixelRatio,S[1]=n.devicePixelRatio):(i.uniform1i(g.useScreenCoordinates,0),i.uniform1i(g.sizeAttenuation,_.sizeAttenuation?1:0),i.uniformMatrix4fv(g.modelViewMatrix,!1,w._modelViewMatrix.elements),S[0]=1,S[1]=1),o=r.fog&&_.fog?b:0,m!==o&&(i.uniform1i(g.fogType,o),m=o),o=1/(_.scaleByViewport?p:1),S[0]*=o*v*w.scale.x,S[1]*=o*w.scale.y,i.uniform2f(g.uvScale,_.uvScale.x,_.uvScale.y),i.uniform2f(g.uvOffset,_.uvOffset.x,_.uvOffset.y),i.uniform2f(g.alignment,_.alignment.x,_.alignment.y),i.uniform1f(g.opacity,_.opacity),i.uniform3f(g.color,_.color.r,_.color.g,_.color.b),i.uniform1f(g.rotation,w.rotation),i.uniform2fv(g.scale,S),n.setBlending(_.blending,_.blendEquation,_.blendSrc,_.blendDst),n.setDepthTest(_.depthTest),n.setDepthWrite(_.depthWrite),n.setTexture(_.map,0),i.drawElements(i.TRIANGLES,6,i.UNSIGNED_SHORT,0));i.enable(i.CULL_FACE)}}},e.DepthPassPlugin=function(){this.enabled=!1,this.renderTarget=null;var t,i,n,r,o,a,s=new e.Frustum,l=new e.Matrix4;this.init=function(s){t=s.context,i=s;var s=e.ShaderLib.depthRGBA,l=e.UniformsUtils.clone(s.uniforms);n=new e.ShaderMaterial({fragmentShader:s.fragmentShader,vertexShader:s.vertexShader,uniforms:l}),r=new e.ShaderMaterial({fragmentShader:s.fragmentShader,vertexShader:s.vertexShader,uniforms:l,morphTargets:!0}),o=new e.ShaderMaterial({fragmentShader:s.fragmentShader,vertexShader:s.vertexShader,uniforms:l,skinning:!0}),a=new e.ShaderMaterial({fragmentShader:s.fragmentShader,vertexShader:s.vertexShader,uniforms:l,morphTargets:!0,skinning:!0}),n._shadowPass=!0,r._shadowPass=!0,o._shadowPass=!0,a._shadowPass=!0},this.render=function(e,t){this.enabled&&this.update(e,t)},this.update=function(h,c){var u,p,f,d,m,g;for(t.clearColor(1,1,1,1),t.disable(t.BLEND),i.setDepthTest(!0),!0===h.autoUpdate&&h.updateMatrixWorld(),c.matrixWorldInverse.getInverse(c.matrixWorld),l.multiplyMatrices(c.projectionMatrix,c.matrixWorldInverse),s.setFromMatrix(l),i.setRenderTarget(this.renderTarget),i.clear(),g=h.__webglObjects,u=0,p=g.length;p>u;u++)f=g[u],m=f.object,f.render=!1,!m.visible||(m instanceof e.Mesh||m instanceof e.ParticleSystem)&&m.frustumCulled&&!s.intersectsObject(m)||(m._modelViewMatrix.multiplyMatrices(c.matrixWorldInverse,m.matrixWorld),f.render=!0);var v;for(u=0,p=g.length;p>u;u++)f=g[u],!f.render||(m=f.object,f=f.buffer,m instanceof e.ParticleSystem&&!m.customDepthMaterial)||((v=m.material instanceof e.MeshFaceMaterial?m.material.materials[0]:m.material)&&i.setMaterialFaces(m.material),d=0<m.geometry.morphTargets.length&&v.morphTargets,v=m instanceof e.SkinnedMesh&&v.skinning,d=m.customDepthMaterial?m.customDepthMaterial:v?d?a:o:d?r:n,f instanceof e.BufferGeometry?i.renderBufferDirect(c,h.__lights,null,d,f,m):i.renderBuffer(c,h.__lights,null,d,f,m));for(g=h.__webglObjectsImmediate,u=0,p=g.length;p>u;u++)f=g[u],m=f.object,m.visible&&(m._modelViewMatrix.multiplyMatrices(c.matrixWorldInverse,m.matrixWorld),i.renderImmediateObject(c,h.__lights,null,n,m));u=i.getClearColor(),p=i.getClearAlpha(),t.clearColor(u.r,u.g,u.b,p),t.enable(t.BLEND)}},e.ShaderFlares={lensFlareVertexTexture:{vertexShader:"uniform lowp int renderType;\nuniform vec3 screenPosition;\nuniform vec2 scale;\nuniform float rotation;\nuniform sampler2D occlusionMap;\nattribute vec2 position;\nattribute vec2 uv;\nvarying vec2 vUV;\nvarying float vVisibility;\nvoid main() {\nvUV = uv;\nvec2 pos = position;\nif( renderType == 2 ) {\nvec4 visibility = texture2D( occlusionMap, vec2( 0.1, 0.1 ) ) +\ntexture2D( occlusionMap, vec2( 0.5, 0.1 ) ) +\ntexture2D( occlusionMap, vec2( 0.9, 0.1 ) ) +\ntexture2D( occlusionMap, vec2( 0.9, 0.5 ) ) +\ntexture2D( occlusionMap, vec2( 0.9, 0.9 ) ) +\ntexture2D( occlusionMap, vec2( 0.5, 0.9 ) ) +\ntexture2D( occlusionMap, vec2( 0.1, 0.9 ) ) +\ntexture2D( occlusionMap, vec2( 0.1, 0.5 ) ) +\ntexture2D( occlusionMap, vec2( 0.5, 0.5 ) );\nvVisibility = ( visibility.r / 9.0 ) *\n( 1.0 - visibility.g / 9.0 ) *\n( visibility.b / 9.0 ) *\n( 1.0 - visibility.a / 9.0 );\npos.x = cos( rotation ) * position.x - sin( rotation ) * position.y;\npos.y = sin( rotation ) * position.x + cos( rotation ) * position.y;\n}\ngl_Position = vec4( ( pos * scale + screenPosition.xy ).xy, screenPosition.z, 1.0 );\n}",fragmentShader:"uniform lowp int renderType;\nuniform sampler2D map;\nuniform float opacity;\nuniform vec3 color;\nvarying vec2 vUV;\nvarying float vVisibility;\nvoid main() {\nif( renderType == 0 ) {\ngl_FragColor = vec4( 1.0, 0.0, 1.0, 0.0 );\n} else if( renderType == 1 ) {\ngl_FragColor = texture2D( map, vUV );\n} else {\nvec4 texture = texture2D( map, vUV );\ntexture.a *= opacity * vVisibility;\ngl_FragColor = texture;\ngl_FragColor.rgb *= color;\n}\n}"},lensFlare:{vertexShader:"uniform lowp int renderType;\nuniform vec3 screenPosition;\nuniform vec2 scale;\nuniform float rotation;\nattribute vec2 position;\nattribute vec2 uv;\nvarying vec2 vUV;\nvoid main() {\nvUV = uv;\nvec2 pos = position;\nif( renderType == 2 ) {\npos.x = cos( rotation ) * position.x - sin( rotation ) * position.y;\npos.y = sin( rotation ) * position.x + cos( rotation ) * position.y;\n}\ngl_Position = vec4( ( pos * scale + screenPosition.xy ).xy, screenPosition.z, 1.0 );\n}",fragmentShader:"precision mediump float;\nuniform lowp int renderType;\nuniform sampler2D map;\nuniform sampler2D occlusionMap;\nuniform float opacity;\nuniform vec3 color;\nvarying vec2 vUV;\nvoid main() {\nif( renderType == 0 ) {\ngl_FragColor = vec4( texture2D( map, vUV ).rgb, 0.0 );\n} else if( renderType == 1 ) {\ngl_FragColor = texture2D( map, vUV );\n} else {\nfloat visibility = texture2D( occlusionMap, vec2( 0.5, 0.1 ) ).a +\ntexture2D( occlusionMap, vec2( 0.9, 0.5 ) ).a +\ntexture2D( occlusionMap, vec2( 0.5, 0.9 ) ).a +\ntexture2D( occlusionMap, vec2( 0.1, 0.5 ) ).a;\nvisibility = ( 1.0 - visibility / 4.0 );\nvec4 texture = texture2D( map, vUV );\ntexture.a *= opacity * visibility;\ngl_FragColor = texture;\ngl_FragColor.rgb *= color;\n}\n}"}},e.ShaderSprite={sprite:{vertexShader:"uniform int useScreenCoordinates;\nuniform int sizeAttenuation;\nuniform vec3 screenPosition;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nuniform float rotation;\nuniform vec2 scale;\nuniform vec2 alignment;\nuniform vec2 uvOffset;\nuniform vec2 uvScale;\nattribute vec2 position;\nattribute vec2 uv;\nvarying vec2 vUV;\nvoid main() {\nvUV = uvOffset + uv * uvScale;\nvec2 alignedPosition = position + alignment;\nvec2 rotatedPosition;\nrotatedPosition.x = ( cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y ) * scale.x;\nrotatedPosition.y = ( sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y ) * scale.y;\nvec4 finalPosition;\nif( useScreenCoordinates != 0 ) {\nfinalPosition = vec4( screenPosition.xy + rotatedPosition, screenPosition.z, 1.0 );\n} else {\nfinalPosition = projectionMatrix * modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\nfinalPosition.xy += rotatedPosition * ( sizeAttenuation == 1 ? 1.0 : finalPosition.z );\n}\ngl_Position = finalPosition;\n}",fragmentShader:"uniform vec3 color;\nuniform sampler2D map;\nuniform float opacity;\nuniform int fogType;\nuniform vec3 fogColor;\nuniform float fogDensity;\nuniform float fogNear;\nuniform float fogFar;\nuniform float alphaTest;\nvarying vec2 vUV;\nvoid main() {\nvec4 texture = texture2D( map, vUV );\nif ( texture.a < alphaTest ) discard;\ngl_FragColor = vec4( color * texture.xyz, texture.a * opacity );\nif ( fogType > 0 ) {\nfloat depth = gl_FragCoord.z / gl_FragCoord.w;\nfloat fogFactor = 0.0;\nif ( fogType == 1 ) {\nfogFactor = smoothstep( fogNear, fogFar, depth );\n} else {\nconst float LOG2 = 1.442695;\nfloat fogFactor = exp2( - fogDensity * fogDensity * depth * depth * LOG2 );\nfogFactor = 1.0 - clamp( fogFactor, 0.0, 1.0 );\n}\ngl_FragColor = mix( gl_FragColor, vec4( fogColor, gl_FragColor.w ), fogFactor );\n}\n}"}},t.exports=e}()},{}],44:[function(e,t){t.exports=function(e,t){"use strict";var i,n,r=e.dollar,o=function(){return i};return o.export=function(e){e.Canvas=i.Canvas},i={initialized:!1,canvasObject:null,canvas:null,container:null,_update:function(){this.initialized&&this.canvasObject&&this.canvasObject._update()},hide:function(){this.canvas&&this.canvasObject.hide()},remove:function(){this.canvasObject&&this.canvasObject.remove()},removeCameraAndLights:function(){this.scene.remove(this.camera),this.scene.remove(this.pointLight),this.scene.remove(this.pointLight2),this.scene.add(this.ambientLight),this.camera=null,this.lights.length=0},init:function(e){this.container=t.getContainer(e),this.initialized=!0,null===this.canvasObject&&(this.canvasObject=i._Canvas(e),this.canvas=this.canvasObject.canvas,this.container.append?this.container.append(this.canvas):this.container.appendChild(this.canvas)),t.running||t.start()},setSize:function(e,t){this.canvasObject.setSize(e,t)},setupCameraAndLights:function(){var e=t.modes["3d"].obj;"3d"===t.mode&&e.removeCameraAndLights(),e.camera=new THREE.OrthographicCamera(t.width/-2,t.width/2,t.height/2,t.height/-2,1,1.00000001),e.camera.position.z=1,e.resolution=.5,e.renderer.setSize(t.width,t.height)},Canvas:function(e){return"3d"===t.mode&&t.modes["3d"].obj.remove(),i.intialized||t.init("2d",e),i.canvasObject.show(),i.canvasObject}.bind(i),_Canvas:function(){var i=document.createElement("canvas"),o=i.getContext("2d"),a=o;return r.extend(a,{top:0,bottom:i.height,left:0,right:i.width,center:{x:i.width/2,y:i.height/2},init:function(){t.running||t.start()},setSize:function(e,i){this.width=this.right=e,this.height=this.bottom=i,this.center.x=this.width/2,this.center.y=this.height/2,this.canvas.style.width=e+"px",this.canvas.style.height=i+"px",this.canvas.width=this.width*t.resolution,this.canvas.height=this.height*t.resolution},removeCameraAndLights:function(){},canvas:i,is3D:"3d"===t.mode,texture:{needsUpdate:function(){}},remove:function(){a.hide(),a.draw=function(){},t.modes["2d"].canvas=null},show:function(){i.style.display="block"},hide:function(){i.style.display="none"},shouldClear:!1,_fill:a.fill,_stroke:a.stroke,_rotate:a.rotate,rotate:function(e){this.translate(this.center.x,this.center.y),this._rotate(e),this.translate(-this.center.x,-this.center.y)},fill:function(e){return"undefined"!=typeof e&&(isNaN(e)||(e="rgb("+e+","+e+","+e+")"),this.fillStyle=e),this._fill(),this.texture.needsUpdate=!0,this},fade:function(e,t){var i=this.alpha;this.fillStyle="undefined"==typeof t?"black":t,this.alpha=e,this.fillRect(0,0,this.width,this.height),this.alpha=i},stroke:function(e,t){return"undefined"!=typeof e&&(isNaN(e)||(e="rgb("+e+","+e+","+e+")"),this.strokeStyle=e),"undefined"!=typeof t&&(this.lineWidth=t),this._stroke(),this.texture.needsUpdate=!0,this},_update:function(){this.shouldClear&&this.clear(),this.save();for(var e=0;e<this.graph.length;e++){var t=this.graph[e];t._update(),t.update&&t.update(),t.draw()}this.draw(),this.restore()},draw:function(){},clear:function(){return this.clearRect(0,0,this.right,this.bottom),this.texture.needsUpdate=!0,this},line:function(e,t,i,n){return this.beginPath(),this.moveTo(e,t),this.lineTo(i,n),this.closePath(),this},circle:function(e,t,i){return i>0&&(this.save(),this.translate(e,t),this.beginPath(),this.arc(0,0,i,0,2*Math.PI),this.closePath(),this.restore()),this},square:function(e,t,i){return this.beginPath(),this.moveTo(e,t),this.lineTo(e+i,t),this.lineTo(e+i,t+i),this.lineTo(e,t+i),this.lineTo(e,t),this.closePath(),this},rectangle:function(e,t,i,n){return this.beginPath(),this.moveTo(e,t),this.lineTo(e+i,t),this.lineTo(e+i,t+n),this.lineTo(e,t+n),this.lineTo(e,t),this.closePath(),this},shapes:{Shape:function(){var t={ctx:a,stroke:null,fill:"gray",mods:[],_update:function(){for(var e=0;e<this.mods.length;e++){var t,i,n,r=this.mods[e];switch(t=this[r.name](),i=r.name.toUpperCase(),r.type){case"+":n="number"==typeof r.modulator?t+r.modulator*r.mult:t+r.modulator.getValue()*r.mult;break;case"++":n+="number"==typeof r.modulator?t+Math.abs(r.modulator*r.mult):t+Math.abs(r.modulator.getValue()*r.mult);break;case"-":n="number"==typeof r.modulator?t-r.modulator*r.mult:t-r.modulator.getValue()*r.mult;break;case"=":n="number"==typeof r.modulator?r.modulator:r.modulator.getValue()*r.mult}this[r.name](n)}},remove:function(){a.graph.splice(a.graph.indexOf(this),1)},changeZ:function(e){r=e},mod:function(e,t,i,n){return this.mods.push({name:e,modulator:t,type:i||"+",mult:n||1}),this},removeMod:function(e){if(e)for(var t=this.mods.length-1;t>=0;t--){var i=this.mods[t];i.name===e&&this.mods.splice(t,1)}else this.mods=[]}};a.shouldClear=!0;var i=0,n=0,r=(height=.2,a.graph.length);Object.defineProperties(t,{x:{configurable:!0,get:function(){return i},set:function(e){i=e}},y:{configurable:!0,get:function(){return n},set:function(e){n=e}},z:{get:function(){return r},set:function(e){a.reorderGraph(),a.graph.splice(a.graph.indexOf(this),1),a.graph.splice(e,0,this),r=e}}});var o=({min:0,max:1,timescale:"graphics",output:e.LINEAR},{x:a.zeroToOne,y:a.zeroToOne});return e.createProxyProperties(t,o),a.graph.push(t),t},Rectangle:function(){var t=a.shapes.Shape(),i={width:a.zeroToOne,height:a.zeroToOne};t.draw=function(){a.rectangle(Math.floor(this.x()*a.width),Math.floor(this.y()*a.height),Math.floor(this.width()*a.width),Math.floor(this.height()*a.height)),this.stroke&&a.stroke(this.stroke),this.fill&&a.fill(this.fill)};var n=height=.2;return Object.defineProperties(t,{width:{configurable:!0,get:function(){return n},set:function(e){n=e}},height:{configurable:!0,get:function(){return height},set:function(e){height=e}}}),e.createProxyProperties(t,i),"object"==typeof arguments[0]&&r.extend(t,arguments[0]),t},Polygon:function(){var t=a.shapes.Shape(),i={radius:a.zeroToOne,sides:{min:3,max:20,output:e.LINEAR,timescale:"graphics"}};t.draw=function(){a.polygon(Math.floor(this.x()*a.width),Math.floor(this.y()*a.height),Math.floor(this.radius()*a.width),this.sides()),this.stroke&&a.stroke(this.stroke),this.fill&&a.fill(this.fill)};var n=.2,o=5;return Object.defineProperties(t,{radius:{configurable:!0,get:function(){return n},set:function(e){n=e}},sides:{configurable:!0,get:function(){return o},set:function(e){o=e}}}),e.createProxyProperties(t,i),"object"==typeof arguments[0]&&r.extend(t,arguments[0]),t}},zeroToOne:{min:0,max:1,timescale:"graphics",output:e.LINEAR},reorderGraph:function(){if(z>v)for(var e=v;e<a.graph.length;e++)a.graph[e].changeZ(a.graph[e].z+1)},graph:[],update:function(){return this.texture.needsUpdate=!0,this},polygon:function(e,t,i,n){for(var r=360/n,o=1;n>=o;o++){var a=r*o,s=2*Math.PI*(a/360),l=Math.round(Math.sin(s)*i)+e,h=Math.round(Math.cos(s)*i)+t;1===o?(this.beginPath(),this.moveTo(l,h)):this.lineTo(l,h)}var a=r,s=2*Math.PI*(a/360),l=Math.round(Math.sin(s)*i)+e,h=Math.round(Math.cos(s)*i)+t;return this.lineTo(l,h),this.closePath(),this},randomColor:function(){return"#"+Math.random().toString(16).slice(2,8)},width:i.width,height:i.height,sprite:null,createSprite:function(){return a.texture=new t.THREE.Texture(i),a.sprite=new t.THREE.Mesh(new t.THREE.PlaneGeometry(i.width,i.height,1,1),new t.THREE.MeshBasicMaterial({map:a.texture,affectedByDistance:!1,useScreenCoordinates:!0})),a.sprite.position.x=a.sprite.position.y=a.sprite.position.z=0,a.texture.needsUpdate=!0,a.sprite}}),n=a,Object.defineProperties(a,{fps:{get:function(){return null!==t.fps?t.fps:60},set:function(e){t.fps=e}},alpha:{get:function(){return this.globalAlpha},set:function(e){this.globalAlpha=e}}}),a}},o}},{}],45:[function(e,t){t.exports=function(e,t){"use strict";var i=e.dollar,n=function(e){var n=i.extend({},{canvas:null,ctx:null,initialized:!1,renderer:null,scene:null,camera:null,lights:[],running:!1,init:function(){this.container=t.getContainer(e),this.initialized&&this.setSize(t.width,t.height),this.createRenderer(),this.createScene(),this.createLights(),t.running||t.start(),this.show(),this.initialized=!0,this.running=!0,t.mode="3d"},setSize:function(e,t){this.renderer.setSize(e,t),this.renderer.domElement.style.width=e+"px",this.renderer.domElement.style.height=t+"px",this.createCameras()},_update:function(){this.initialized&&this.running&&(this.renderer.clear(),t.PostProcessing&&t.PostProcessing.fx.length?t.PostProcessing.composer.render():this.renderer.render(this.scene,this.camera))},createRenderer:function(){null===this.renderer&&(this.renderer=new t.THREE.WebGLRenderer,this.initalized||(this.container.append?this.container.append(this.renderer.domElement):this.container.appendChild(this.renderer.domElement)),this.canvas=this.renderer.domElement)},createScene:function(){null===this.scene&&(this.scene=new t.THREE.Scene)},createCameras:function(){if(null===this.camera){var e=45,i=t.width/t.height,n=.1,r=1e4;this.camera=new t.THREE.PerspectiveCamera(e,i,n,r),this.scene.add(this.camera)}this.camera.updateProjectionMatrix(),this.camera.position.z=250,this.camera.lookAt(this.scene.position)},createLights:function(){this.lights.length>1||(this.ambientLight=new t.THREE.AmbientLight(16777215),this.pointLight=new t.THREE.PointLight(16777215),this.pointLight.position.x=100,this.pointLight.position.y=100,this.pointLight.position.z=-130,this.pointLight2=new t.THREE.PointLight(6710886),this.pointLight2.position.x=0,this.pointLight2.position.y=0,this.pointLight2.position.z=260,this.lights=[this.pointLight,this.pointLight2],this.scene.add(this.pointLight),this.scene.add(this.pointLight2))},removeCameraAndLights:function(){this.scene.remove(this.camera),this.scene.remove(this.pointLight),this.scene.remove(this.pointLight2),this.scene.add(this.ambientLight),this.camera=null,this.lights.length=0},remove:function(){this.hide(),this.running=!1,this.removeCameraAndLights();for(var e=0;e<this.scene.children.length;e++)this.scene.remove(this.scene.children[e])},show:function(){n.canvas.style.display="block"},hide:function(){n.canvas.style.display="none"}});return n};return n}},{}],46:[function(e,t){t.exports=function(e,t,i){"use strict";var n=e.dollar,r=function(){var e=rndf(-50,50,3);return{x:e[0],y:e[1],z:e[2]}},o=[["Vec2","Vector2","vec2"],["Vec3","Vector3","vec3"],["Vec4","Vector4","vec4"]].forEach(function(t){var n=t[0],r=t[1]||t[0],o=t[2]||"f";window[n]=function(){var t,a=Array.prototype.slice.call(arguments,0);if(Array.isArray(a[0])){for(var s=[],l=0;l<a[0].length;l++)s[l]=a[0][l];a=s}return t=e.construct(i[r],a),t.name=n,t.shaderType=o,t}}),o={Cube:{width:50,height:50,depth:50},Sphere:{radius:50,segments:16,rings:16},Tetrahedron:{radius:50,detail:0},Octahedron:{radius:50,detail:0},Icosahedron:{radius:50,detail:0},Cylinder:{radiusTop:20,radiusBottom:20,height:100,radiusSegments:8,heightSegments:1,openEnded:!1},Parametric:{func:r,slices:8,stacks:8},Torus:{radius:50,tube:10,radialSegments:8,tubularSegments:8,arc:2*Math.PI},TorusKnot:{radius:50,tube:5,radialSegments:64,tubularSegments:8,p:5,q:3,heightScale:1},Plane:{width:150,height:150,segmentsWidth:1,segmentsHeight:1}},a=["rotation","scale","position"],s=function(t,i,n){{var r;e.processArguments(t,i)}if("object"==typeof t[0]){r=[];for(var o in n){var a="undefined"!=typeof t[0][o]?t[0][o]:n[o];r.push(a)}for(var s in t[0])n[s]||(r[s]=t[0][s])}else if(Array.isArray(t))r=t;else{r=[];for(var o in n)r.push(n[o])}return r},l={rotation:{min:0,max:2*Math.PI,output:e.LINEAR,wrap:!0,timescale:"graphics"},scale:{min:0,max:2,output:e.LINEAR,wrap:!1,timescale:"graphics"},position:{min:-100,max:100,output:e.LINEAR,wrap:!1,timescale:"graphics"}},h={"export":function(e){n.extend(e,h)}};for(var c in o)!function(){var r=c,u=o[c],p=function(){null===t.modes["3d"].obj?t.init("3d",null):(t.modes["3d"].obj.init(),t.modes["3d"].obj.show(),t.mode="3d"),t.running=!0;var o=s(arguments,r,u);if(this.name=r,o.color&&n.isArray(o.color)){var h=o.color;o.color=Color().rgb(255*h[0],255*h[1],255*h[2]).hexString()}this.color=new i.Color(o.color)||new i.Color(16777215);var c="undefined"!=typeof arguments[0]&&arguments[0].shader;c?(this.material=new i.ShaderMaterial(arguments[0].shader.material||arguments[0].shader),arguments[0].shader.material&&(arguments[0].shader.target=this)):this.material=o.texture?new i.MeshBasicMaterial({map:o.texture,affectedByDistance:!1,useScreenCoordinates:!0}):new i.MeshPhongMaterial({color:this.color,shading:i.FlatShading,shininess:50}),this.geometry=e.construct(i[r+"Geometry"],o),this.mesh=new i.Mesh(this.geometry,this.material),this.spinX=this.spinY=this.spinZ=0,this.mappingProperties=l,this.mappingObjects=[];for(var p={x:"X",y:"Y",z:"Z"},f=0;f<a.length;f++)!function(t){{var i=a[f],o="scale"===i?Vec3(1,1,1):Vec3(),s=function(){t.mesh[i].set(o.x,o.y,o.z)};o.x,o.y,o.z}o.name=r+"."+i,o.seq=t.seq,Object.defineProperty(t,i,{configurable:!0,get:function(){return o},set:function(e){switch(n.type(e)){case"object":"number"==typeof e.x&&(o.x=e.x),"number"==typeof e.y&&(o.y=e.y),"number"==typeof e.z&&(o.z=e.z);break;case"array":"number"==typeof e[0]&&(o.x=e[0]),"number"==typeof e[1]&&(o.y=e[1]),"number"==typeof e[2]&&(o.z=e[2]);break;case"number":o.x=o.y=o.z=e}return s(),o}}),e.defineProperty(t,i,!0,!0,l[i],!0,!1,!0),Object.defineProperties(t[i],{x:{get:function(){return o.x},set:function(e){o.x=e,s()},configurable:!0},y:{get:function(){return o.y},set:function(e){o.y=e,s()},configurable:!0},z:{get:function(){return o.z},set:function(e){o.z=e,s()},configurable:!0}});for(var h in p)!function(){var n=h;e.defineProperty(t[i],h,!0,!0,l[i],!0),t[i][n].modObject=t,t[i][n].modName=i+"."+n,t[i][n].set=function(e){o[n]=e,s()}}()}(this);this.update=function(){},this._update=function(){for(var e=0;e<this.mods.length;e++){var t,i,n,r=this.mods[e];if(r.name.indexOf(".")>-1){var o=r.name.split(".");switch(t=this[o[0]][o[1]](),i=o[1].toUpperCase(),r.type){case"+":n="number"==typeof r.modulator?t+r.modulator*r.mult:t+r.modulator.getValue()*r.mult;break;case"++":n+="number"==typeof r.modulator?t+Math.abs(r.modulator*r.mult):t+Math.abs(r.modulator.getValue()*r.mult);break;case"-":n="number"==typeof r.modulator?t-r.modulator*r.mult:t-r.modulator.getValue()*r.mult;break;case"=":n="number"==typeof r.modulator?r.modulator:r.modulator.getValue()*r.mult}this[o[0]][o[1]].set(n)}else{var a="number"==typeof r.modulator?r.modulator:r.modulator.getValue();switch(r.type){case"+":this[r.name].x+=a*r.mult,this[r.name].y+=a*r.mult,this[r.name].z+=a*r.mult;break;case"++":this[r.name].x+=Math.abs(a*r.mult),this[r.name].y+=Math.abs(a*r.mult),this[r.name].z+=Math.abs(a*r.mult);break;case"-":this[r.name].x-=a*r.mult,this[r.name].y-=a*r.mult,this[r.name].z-=a*r.mult;break;case"=":this[r.name].x=a*r.mult,this[r.name].y=a*r.mult,this[r.name].z=a*r.mult}}}},this.mods=[],this.remove=this.kill=function(e){return t.modes["3d"].obj.scene.remove(this.mesh),e||t.graph.splice(t.graph.indexOf(this),1),this},this.replaceWith=function(){this._},this.mod=function(e,t,i,n){return this.mods.push({name:e,modulator:t,type:i||"+",mult:n||1}),this},this.removeMod=function(e){if(e)for(var t=this.mods.length-1;t>=0;t--){var i=this.mods[t];i.name===e&&this.mods.splice(t,1)}else this.mods=[]},this.ramp=function(e,t,i,n){3===arguments.length&&(n=i,i=t,t=this[e])},this.spin=function(e,t,i){return 1===arguments.length?0!==e?this.mod("rotation",e):(this.removeMod("rotation",0),this.removeMod("rotation.x",0),this.removeMod("rotation.y",0),this.removeMod("rotation.z",0)):0===arguments.length?this.removeMod("rotation"):(0!==e?this.mod("rotation.x",e):this.removeMod("rotation.x"),0!==t?this.mod("rotation.y",t):this.removeMod("rotation.y"),0!==i?this.mod("rotation.z",i):this.removeMod("rotation.z")),this},arguments[0]&&(arguments[0].scale&&(this.scale=arguments[0].scale),arguments[0].rotation&&(this.scale=arguments[0].rotation),arguments[0].position&&(this.scale=arguments[0].position)),t.modes["3d"].obj.scene.add(this.mesh),t.graph.push(this),this.mappings=[],Object.defineProperty(this,"_",{get:function(){this.seq.isRunning&&this.seq.disconnect(); for(var e=0;e<this.mappings.length;e++)this.mappings[e].remove();this.clearMarks&&this.clearMarks(),this.remove(),console.log(r+" is removed.")},set:function(){}}),Object.defineProperty(this,"color",{get:function(){return this.material.color},set:function(e){n.isArray(e)&&(e=Color().rgb(255*e[0],255*e[1],255*e[2]).hexString()),this.material.color.set(e)}}),this.toString=function(){return this.name},console.log(r+" is created.")};h[r]=function(){return e.construct(p,arguments)}}();return h.Knot=h.TorusKnot,h}},{}],47:[function(e,t){t.exports=function(e){"use strict";var t={Stripes:function(){var e=["varying vec2 p;","uniform float xCount;","uniform float yCount;","uniform float blend;","uniform sampler2D tDiffuse;","uniform vec3 colorX;","uniform vec3 colorY;","","void main() {"," vec3 color;"," float x = p.x * xCount;"," float y = p.y * yCount;"," int stripeX = int(mod( x, 2.));"," int stripeY = int(mod( y, 2.));",""," if( stripeX == 1 || stripeY == 1) {"," color = colorX;"," }else{"," color = vec3(0., 0., 0.);"," }",""," vec3 prev = texture2D( tDiffuse, p ).rgb;"," gl_FragColor = vec4( mix(color, prev, blend), 1. );","}"].join("\n"),t=Shader(e);return t.uniform("xCount",4,1,100,"float"),t.uniform("yCount",4,1,100,"float"),t.uniform("blend",0,1,0,"float"),t.uniforms.colorX={type:"c",value:{r:1,g:1,b:1}},t.uniforms.colorY={type:"c",value:{r:1,g:1,b:1}},Object.defineProperties(t,{colorX:{get:function(){return t.uniforms.colorX.value},set:function(e){t.uniforms.colorX.value=Color(e)}},colorY:{get:function(){return t.uniforms.colorY.value},set:function(e){t.uniforms.colorY.value=Color(e)}}}),t},Circles:function(){var e=["uniform float time;","uniform float thickness;","uniform float speed;","uniform float radius;","uniform float x;","uniform float y;","uniform sampler2D tDiffuse;","uniform vec3 color;","varying vec2 p;","","void main() {"," vec2 uv = 2. * p - 1.;"," float _speed = 20. * speed;"," float edgeDistance = radius * thickness;"," float dist = distance( p, vec2(x,y) );"," float growth = mod(time, 1.) / -_speed;",""," float moddist = mod( dist + growth, radius );"," float _out = smoothstep( moddist, moddist+edgeDistance, radius / 2. );"," _out += smoothstep( moddist, moddist-edgeDistance, radius / 2.);",""," gl_FragColor = vec4( vec3(1.- _out), 1. );","}"].join("\n"),t=Shader(e);t.uniform("blend",1,0,1,"float"),t.uniform("thickness",.1,0,1,"float"),t.uniform("x",.5,0,1,"float"),t.uniform("y",.5,0,1,"float"),t.uniform("speed",1,-1,1,"float"),t.uniform("radius",.05,0,1,"float"),t.uniforms.color={type:"c",value:{r:1,g:0,b:0}};var i=t.__lookupSetter__("speed"),n=t.__lookupGetter__("speed");return Object.defineProperties(t,{speed:{get:function(){return n()},set:function(e){e=e>0?1-e:-1-e,i(e)}}}),t},Pixellate:function(){var e=["uniform sampler2D tDiffuse;","uniform float amount;","uniform float blend;","varying vec2 vUv;","void main() {"," vec2 sd = vec2( amount );"," vec2 samplePos = vUv - mod( vUv, sd );"," vec4 p = texture2D( tDiffuse, samplePos );"," vec4 pp = texture2D( tDiffuse, vUv );"," vec3 _blend = (p.rgb * vec3( blend ) ) + ( pp.rgb * vec3(1.0 - blend ) );"," gl_FragColor = vec4( _blend, 1. );","}"].join("\n"),t=["varying vec2 vUv;","void main() {"," vUv = uv;"," gl_Position = vec4( position[0],position[1],position[2], 1.0 );","}"].join("\n"),i=Shader(e,t);return i.uniform("amount",.01,0,1,"float"),i.uniform("blend",1,0,1,"float"),i},"export":function(e){e.Pixellate=t.Pixellate,e.Stripes=t.Stripes,e.Circles=t.Circles}};return t}},{}],48:[function(e,t){t.exports=function(t){"use strict";var i=t.dollar,n={Color:e("color"),canvas:null,canvas2D:null,canvas3D:null,ctx:null,width:0,height:0,running:!1,resolution:1,fps:null,graph:[],initialized:!1,mode:null,defaultContainer:"#contentCell",THREE:e("../external/three/three.min"),"export":function(e){n.Geometry.export(e),n.modes["2d"].constructor.export(e),n.PostProcessing.export(e),n.GibberShaders.export(e),e.Video=n.Video},getContainer:function(e){var t;return t="undefined"==typeof e||null===e?document.querySelector(null!==document.querySelector(n.defaultContainer)?n.defaultContainer:"body"):e.bodyElement},init:function(e,r){if("3d"===e&&!window.WebGLRenderingContext){var o="Your browser does not support WebGL.2D drawing will work, but 3D geometries and shaders are not supported.";t.Environment.Message.post(o)}var a=this.mode;this.mode=e||"3d",null===this.modes[this.mode].canvas&&(this.modes[this.mode].obj=this.modes[this.mode].constructor(r)),console.log("_MODE",a),null!==a&&"undefined"!=typeof a&&a!==this.mode&&this.modes[a].obj.hide(),this.modes[this.mode].obj.init&&this.modes[this.mode].obj.init(r),this.canvas=null!==this.modes[this.mode].canvas?this.modes[this.mode].canvas:this.modes[this.mode].canvas=this.modes[this.mode].obj.canvas,this.canvas.parent="undefined"==typeof r||null===r?document.querySelector(n.defaultContainer):r.bodyElement||r,this.positionCanvas(this.canvas),this.assignWidthAndHeight(!0),this.modes[this.mode].obj.setSize(this.width*this.resolution,this.height*this.resolution);var s=this.resolution,l=this;Object.defineProperty(this,"resolution",{get:function(){return s},set:function(e){s=e,l.assignWidthAndHeight()}});var h=!1;Object.defineProperty(this,"running",{get:function(){return h},set:function(e){e!==h&&(h===!0?(l.render(),h=e):(h=e,l.render()))}}),this.start();var c=function(e){n.width=e.w,n.height=e.h,n.modes["2d"].obj&&n.modes["2d"].obj.setSize(e.w,e.h),n.modes["3d"].obj&&n.modes["3d"].obj.setSize(e.w,e.h)};i.subscribe("/layout/contentResize",c),i.subscribe("/layout/resizeWindow",function(e){e.h-=i("thead").height(),e.h-=i("tfoot").height(),c(e)}),this.initialized=!0},positionCanvas:function(e){var t=document.querySelector("body"),i=e.parent===t;e.style.left=0,e.style.top=0,e.style.position=i?"fixed":"relative",e.style.float=i?"none":"left",e.style.overflow="hidden",e.style.display="block",i&&(t.style.margin=0)},start:function(){this.running=!0,window.requestAnimationFrame(this.render)},useCanvasAsTexture:function(e){var t=e.createSprite();n.initialized&&"2d"!==n.mode||n.init("3d"),n.modes["3d"].obj.scene.add(t),n.modes["2d"].obj.setupCameraAndLights(),n.graph.push(e)},clear:function(){if(this.running){for(var e=0;e<this.graph.length;e++)this.graph[e].remove(!0);this.graph.length=0;for(var t in this.modes){var i=this.modes[t];i.obj&&i.obj.remove()}if(this.PostProcessing){for(var n=this.PostProcessing.fx-1;n>=0;n--)this.PostProcessing.fx[n].remove();this.PostProcessing.fx.length=0,this.PostProcessing.isRunning=!1}if("3d"===this.mode)for(var e=0;e<this.modes["3d"].obj.scene.children.length;e++){var r=this.modes["3d"].obj.scene.children[e];this.modes["3d"].obj.scene.remove(r)}this.running=!1}},render:function(){if(this.running){for(var e=0;e<this.graph.length;e++)this.graph[e]._update(),this.graph[e].update();this.modes[this.mode].obj._update(),null===this.fps||this.fps>=55?window.requestAnimationFrame(this.render):setTimeout(function(){n.render()},1e3/this.fps)}},test:function(){var e=new n.THREE.CubeGeometry(50,50,50),t=new n.THREE.Color(0).setRGB(.5,0,0),i=new n.THREE.MeshPhongMaterial({color:t,shading:n.THREE.FlatShading,shininess:50}),r=new n.THREE.Mesh(e,i);return this.scene.add(r),this.graph.push(r),r},showStats:function(){this.stats=new Stats,this.stats.domElement.style.position="absolute",this.stats.domElement.style.top="0px",this.stats.domElement.style.right="0px",i("body").append(this.stats.domElement)},assignWidthAndHeight:function(e){var r=n.modes[this.mode].canvas,o=r.parentElement;n.width=o===document.querySelector("body")?o.offsetWidth:o.offsetWidth||o.width(),n.height=o===document.querySelector("body")?o.offsetHeight:o.offsetHeight||i(i("#contentCell").children()[0]).height(),null!==document.querySelector("#header")&&o===window&&null===t.Environment.Layout.fullScreenColumn,n.canvas.style.zIndex=-1,e||"2d"===n.mode||(n.modes["3d"].obj.renderer.setSize(n.width*n.resolution,n.height*n.resolution),n.modes["3d"].obj.renderer.domElement.style.width=n.width+"px",n.modes["3d"].obj.renderer.domElement.style.height=n.height+"px")}};return n.render=n.render.bind(n),n.modes={"2d":{constructor:e("./2d")(t,n),canvas:null,obj:null},"3d":{constructor:e("./3d")(t,n),canvas:null,obj:null}},n.Geometry=e("./geometry")(t,n,n.THREE),e("../external/three/postprocessing/EffectComposer"),e("../external/three/postprocessing/RenderPass"),e("../external/three/postprocessing/MaskPass"),e("../external/three/postprocessing/ShaderPass"),e("../external/three/postprocessing/CopyShader"),e("../external/three/postprocessing/shaders/DotScreenShader"),e("../external/three/postprocessing/DotScreenPass"),e("../external/three/postprocessing/FilmPass"),e("../external/three/postprocessing/shaders/FilmShader"),e("../external/three/postprocessing/shaders/KaleidoShader"),e("../external/three/postprocessing/shaders/EdgeShader"),e("../external/three/postprocessing/shaders/FocusShader"),e("../external/three/postprocessing/shaders/ShaderGodRays"),e("../external/three/postprocessing/shaders/BleachBypassShader"),e("../external/three/postprocessing/shaders/ColorifyShader"),n.PostProcessing=e("./postprocessing")(t,n),n.PostProcessing.init(),n.Shaders=e("./shader")(t,n),n.GibberShaders=e("./gibber_shaders")(t,n),n.Video=e("./video")(t,n),n}},{"../external/three/postprocessing/CopyShader":28,"../external/three/postprocessing/DotScreenPass":29,"../external/three/postprocessing/EffectComposer":30,"../external/three/postprocessing/FilmPass":31,"../external/three/postprocessing/MaskPass":32,"../external/three/postprocessing/RenderPass":33,"../external/three/postprocessing/ShaderPass":34,"../external/three/postprocessing/shaders/BleachBypassShader":35,"../external/three/postprocessing/shaders/ColorifyShader":36,"../external/three/postprocessing/shaders/DotScreenShader":37,"../external/three/postprocessing/shaders/EdgeShader":38,"../external/three/postprocessing/shaders/FilmShader":39,"../external/three/postprocessing/shaders/FocusShader":40,"../external/three/postprocessing/shaders/KaleidoShader":41,"../external/three/postprocessing/shaders/ShaderGodRays":42,"../external/three/three.min":43,"./2d":44,"./3d":45,"./geometry":46,"./gibber_shaders":47,"./postprocessing":49,"./shader":50,"./video":51,color:24}],49:[function(e,t){t.exports=function(e){"use strict";var t={Dots:{angle:{min:0,max:2*Math.PI,output:e.LINEAR,wrap:!0,timescale:"graphics"},scale:{min:0,max:1,output:e.LINEAR,timescale:"graphics"}},Film:{nIntensity:{min:0,max:1,output:e.LINEAR,timescale:"graphics"},sIntensity:{min:0,max:1,output:e.LINEAR,timescale:"graphics"},sCount:{min:0,max:2048,output:e.LINEAR,timescale:"graphics"}},Kaleidoscope:{angle:{min:0,max:2*Math.PI,output:e.LINEAR,wrap:!0,timescale:"graphics"},sides:{min:2,max:36,output:e.LINEAR,timescale:"graphics"}},Focus:{screenWidth:{min:0,max:1024,output:e.LINEAR,timescale:"graphics"},screenHeight:{min:0,max:1024,output:e.LINEAR,timescale:"graphics"},sampleDistance:{min:0,max:2,output:e.LINEAR,timescale:"graphics"},waveFactor:{min:0,max:.05,output:e.LINEAR,timescale:"graphics"}},Bleach:{opacity:{min:0,max:1,output:e.LINEAR,timescale:"graphics"}},Shader:{amp:{min:0,max:1,output:e.LINEAR,timescale:"graphics"},time:{min:0,max:1,output:e.LINEAR,timescale:"graphics"}}},i={Dots:{properties:{angle:.5,scale:.035,center:new THREE.Vector2(.5,.5)},type:"uniforms",init:function(e){var t=e.center?new THREE.Vector2(e.center[0],e.center[1]):new THREE.Vector2(.5,.5);return new THREE.DotScreenPass(t,e.angle,e.scale,e.mix)}},Film:{properties:{nIntensity:1,sIntensity:.5,sCount:1024,grayscale:!1,mix:1},type:"uniforms",init:function(e){return e=e||{},e.nIntensity=e.nIntensity||1,e.sIntensity=e.sIntensity||.5,e.sCount=e.sCount||1024,e.grayscale=e.grayscale||!1,e.mix=e.mix||1,new THREE.FilmPass(e.nIntensity,e.sIntensity,e.sCount,e.grayscale,e.mix)}},Kaleidoscope:{properties:{sides:6,angle:0},init:function(e){return e=e||{},e.sides=e.sides||6,e.angle=e.angle||0,new THREE.ShaderPass(THREE.KaleidoShader)}},Edge:{properties:{aspect:new THREE.Vector2(512,512)},init:function(e){return e=e||{},e.aspect=e.aspect||i.Edge.properties.aspect,new THREE.ShaderPass(THREE.EdgeShader)}},Focus:{properties:{screenWidth:1024,screenHeight:1024,sampleDistance:2,waveFactor:.1},init:function(){return new THREE.ShaderPass(THREE.FocusShader)}},Godrays:{properties:{},init:function(){return new THREE.ShaderPass(THREE.ShaderGodRays)}},Bleach:{properties:{opacity:1},init:function(){return new THREE.ShaderPass(THREE.BleachBypassShader)}},Colorify:{properties:{color:new THREE.Color(16711680)},init:function(e){e=e||{},console.log(e.color),e.color="string"==typeof e.color?new THREE.Color(Color(e.color).hexString()):i.Colorify.properties.color;var t=new THREE.ShaderPass(THREE.ColorifyShader);return t.uniforms.color.value=e.color,t}},Shader:{properties:{amp:.1,time:0},fragment:null,vertex:null,init:function(t,i){var n=null,r=null,o=null,a=null;return t&&"object"==typeof t&&(r=t,t=e.Graphics.PostProcessing.defs+r.value),i&&"object"==typeof i&&(n=i,i=n.value),a=e.Graphics.Shaders.make(t,i),null!==a&&(o=new THREE.ShaderPass(a)),null!==o&&(o.fragmentText=a.fragmentText,o.vertexText=a.vertexText,n&&(o.columnV=n,n.shader=o),r&&(o.columnF=r,r.shader=o)),o}}},n={"export":function(e){for(var t in i)e[t]=n[t]},composer:null,fx:[],isRunning:!1,defs:["#define PI 3.14159265358979323846264","float rand(vec2 co){"," return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);","}\n"].join("\n"),start:function(){this.composer=new THREE.EffectComposer(e.Graphics.modes["3d"].obj.renderer),this.renderScene=new THREE.RenderPass(e.Graphics.modes["3d"].obj.scene,e.Graphics.modes["3d"].obj.camera),this.renderScene.clear=!0,this.renderScene.renderToScreen=!0,this.composer.addPass(this.renderScene),this.isRunning=!0},init:function(){for(var r in i)!function(){var a=r,s=i[r],l=t[r],h=function(){if(null===e.Graphics.canvas?e.Graphics.init("3d"):"2d"===e.Graphics.mode&&e.Graphics.useCanvasAsTexture(e.Graphics.modes["2d"].obj.canvasObject),e.Graphics.running=!0,"Shader"!==a)var i=Array.prototype.slice.call(arguments,0),r=s.init.call(s,i);else r=s.init(arguments[0],arguments[1]);if(e.createProxyProperties(r,{}),r.uniform=function(i,n,a,s,l){a=isNaN(a)?0:a,s=isNaN(s)?1:s,n=isNaN(n)&&"object"!=typeof n?a+(s-a)/2:n,"undefined"==typeof r.mappingProperties[i]&&(t[i]=r.mappingProperties[i]={min:a,max:s,output:e.LINEAR,timescale:"graphics"});var h=o(n,l,i),c=(h[0],h[1]),u=h[2];if("undefined"==typeof r.uniforms[i]&&r.columnF){var p=u;p+=r.columnF.editor.getValue(),r.columnF.editor.setValue(p)}return r.uniforms[i]={type:c,value:n},Object.defineProperty(r,i,{configurable:!0,get:function(){return r.uniforms[i].value},set:function(e){return r.uniforms[i].value=e}}),e.createProxyProperty(r,i,!0),r[i]=n,r},null===r)return void console.log("SHADER ERROR... aborting");n.isRunning||n.start(),r.renderToScreen=!0,r.name=a,r.sequencers=[],n.fx.length>0&&(n.fx[n.fx.length-1].renderToScreen=!1),n.composer.addPass(r),n.fx.push(r),n.defineProperties(r),console.log(r,l);for(var h in l){var c=l[h];r.uniform(h,r[h],c.min,c.max,r.uniforms[h].type)}return $.extend(r,n.shader),e.Graphics.graph.push(r),r.update=function(){},r._update=function(){for(var e=0;e<r.mods.length;e++){var t=r.mods[e],i=r[t.name],n=t.name;switch(n=n.charAt(0).toUpperCase()+n.substr(1),Array.isArray(i)&&(i=i[0]),t.type){case"+":r[n].value="number"==typeof t.modulator?i+t.modulator:i+t.modulator.getValue()*t.mult;break;case"++":r[n].value="number"==typeof t.modulator?i+t.modulator:i+Math.abs(t.modulator.getValue()*t.mult);break;case"-":r[n].value="number"==typeof t.modulator?i-t.modulator:i-t.modulator.getValue()*t.mult;break;case"=":r[n].value="number"==typeof t.modulator?t.modulator:t.modulator.getValue()*t.mult}r[n].oldSetter.call(this,r[n].value)}"undefined"!=typeof r.time&&(r.time+=1/60),r.update()},r.mods=[],r.mod=function(e,t,i,n){this.mods.push({name:e,modulator:t,type:i||"+",mult:n||1})},r.removeMod=function(e){if(e)for(var t=0;t<this.mods.length;t++){var i=this.mods[t];if(i.name===e){this.mods.splice(t,1);break}}},r.replaceWith=function(e){for(var t=0;t<this.sequencers.length;t++)this.sequencers[t].target=e,e.sequencers.push(this.sequencers[t]);for(var t=0;t<this.mappingObjects.length;t++){var i=this.mappingObjects[t];if(i.targets.length>0)for(var n=0;n<i.targets.length;n++){var r=i.targets[n];e.mappingProperties[i.name]?r[0].mapping.replace(e,i.name,i.Name):r[0].mapping.remove()}}this.remove()},r.properties=s.properties,e.processArguments2(r,Array.prototype.slice.call(arguments,0),r.name),r.mappings=[],Object.defineProperty(r,"_",{get:function(){r.seq.isRunning&&r.seq.disconnect();for(var e=0;e<r.mappings.length;e++)r.mappings[e].remove();r.clearMarks&&r.clearMarks(),r.remove()},set:function(){}}),r};n[a]=h}()},defineProperties:function(e){for(var t in i[e.name].properties)!function(){var n=t,r=i[e.name].properties[n];Object.defineProperty(e,n,{configurable:!0,get:function(){return r},set:function(t){r=t,e.uniforms[n].value=r}})}(e)},shader:{remove:function(){n.composer.passes.splice(n.composer.passes.indexOf(this),1),n.fx.splice(n.fx.indexOf(this),1),n.fx.length>0&&(n.fx[n.fx.length-1].renderToScreen=!0);for(var e in this.mappingProperties){var t=e.charAt(0).toUpperCase()+e.slice(1);"object"==typeof this[t].mapping&&this[t].mapping.remove()}}}},r=([["Vec2","Vector2","vec2"],["Vec3","Vector3","vec3"],["Vec4","Vector4","vec4"]].forEach(function(t){var i=t[0],n=t[1]||t[0],r=t[2]||"f";window[i]=function(){var t,o=Array.prototype.slice.call(arguments,0);if(Array.isArray(o[0])){for(var a=[],s=0;s<o[0].length;s++)a[s]=o[0][s];o=a}return t=e.construct(THREE[n],o),t.name=i,t.shaderType=r,t}}),{vec2:"v2",vec3:"v3",vec4:"v4","int":"i","float":"f"}),o=function(e,t,i){var n=null,o=null,a="",s=!1;if(t){if(t in r)n=t;else for(var l in r)if(r[l]===t){n=l;break}}else if(Array.isArray(e)){var h=e[0],c=h.shaderType||typeof h;if("number"===c){var u=h%1===0;u&&(u=e.every(function(e){return e%1===0})),n=u?"int":"float"}else n=c;s=!0}else"object"==typeof e?n=e.shaderType||"float":(n=typeof e,"number"===n&&(console.log("CHECKING FLOAT VS INT"),n=e%1===0?"int":"float"));return a="uniform "+n+" "+i,a+=s?"["+e.length+"];\n":";\n",o=r[n],s&&(o+=n.indexOf("vec")>-1?"v":"v1"),[n,o,a]};return n}},{}],50:[function(e,t){t.exports=function(e,t){var i=(e.Graphics,{make:function(e,t){var n={uniforms:{tDiffuse:{type:"t",value:null},amp:{type:"f",value:0},time:{type:"f",value:0}},fragmentShader:e||i.defaultFragment,vertexShader:t||i.defaultVertex};return n},defaultFragment:["uniform float amp;","uniform sampler2D tDiffuse;","uniform float time;","varying vec2 p;","","void main() {"," gl_FragColor = texture2D( tDiffuse, p ).rgba;","}"].join("\n"),defaultVertex:["varying vec2 p;","void main() {","p = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),Material:function(n,r){var o={},a="object"==typeof n?n.value:n,s="object"==typeof r?r.value:r,l={uniforms:{tDiffuse:{type:"t",value:null},amp:{type:"f",value:0},time:{type:"f",value:0}},fragmentShader:a||i.defaultFragment,vertexShader:s||i.defaultVertex};l.fragmentShader=t.PostProcessing.defs+l.fragmentShader,e.Graphics.running?"2d"===e.Graphics.mode&&e.Graphics.use("3d"):e.Graphics.init("3d");var h=new THREE.ShaderMaterial(l);"object"==typeof n&&(n.shader=o),"object"==typeof r&&(r.shader=o),o.fragmentText=h.fragmentShader,o.vertexText=h.vertexShader,Object.defineProperty(o,"material",{get:function(){return h},set:function(e){h=e,this.target&&(this.target.mesh.material=h)}});var c=null;Object.defineProperty(o,"target",{get:function(){return c},set:function(e){c=e,c.mesh&&(c.mesh.material=this.material,c.mesh.material.needsUpdate=!0)}}),t.graph.push(o),o.update=function(){};o._update=function(){for(var e=0;e<o.mods.length;e++){var t=o.mods[e],i=o[t.name],n=t.name;switch(n=n.charAt(0).toUpperCase()+n.substr(1),Array.isArray(i)&&(i=i[0]),t.type){case"+":o[n].value="number"==typeof t.modulator?i+t.modulator:i+t.modulator.getValue()*t.mult;break;case"++":o[n].value="number"==typeof t.modulator?i+t.modulator:i+Math.abs(t.modulator.getValue()*t.mult);break;case"-":o[n].value="number"==typeof t.modulator?i-t.modulator:i-t.modulator.getValue()*t.mult;break;case"=":o[n].value="number"==typeof t.modulator?t.modulator:t.modulator.getValue()*t.mult}o[n].oldSetter.call(this,o[n].value)}o.update()},o.mods=[],o.mod=function(e,t,i,n){this.mods.push({name:e,modulator:t,type:i||"+",mult:n||1})},o.removeMod=function(e){if(e)for(var t=0;t<this.mods.length;t++){var i=this.mods[t];if(i.name===e){this.mods.splice(t,1);break}}},o.remove=function(){},o.uniforms=l.uniforms;var u=o.mappingProperties={amp:{min:0,max:1,output:e.LINEAR,timescale:"graphics"},time:{min:0,max:1,output:e.LINEAR,timescale:"graphics"}};o.mappingObjects=[],o.uniform=function(t,i,n,r){return n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?n+(r-n)/2:i,"undefined"==typeof o.mappingProperties[t]&&(u[t]=o.mappingProperties[t]={min:n,max:r,output:e.LINEAR,timescale:"graphics"}),"undefined"==typeof o.uniforms[t]&&(o.uniforms[t]={type:"f",value:i}),Object.defineProperty(o,t,{configurable:!0,get:function(){return i},set:function(e){i=e,o.material.uniforms[t].value=e}}),e.createProxyProperty(o,t),o[t.charAt(0).toUpperCase()+t.slice(1)].timescale="graphics",o};for(var p in u){var f=u[p];o.uniform(p,f.min,f.max,o[p])}return o}});return i}},{}],51:[function(e,t){t.exports=function(e,t){"use strict";navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia,URL=URL||webkitURL;var i,n,r=null,o=function(){return null!==r?r:("undefined"==typeof i&&(n=document.createElement("video"),n.width=320,n.height=240,n.autoplay=!0),null===r&&(navigator.getUserMedia({video:!0,audio:!1},function(e){n.stream=e,n.src=URL.createObjectURL(e)},function(e){console.log("Failed to get a stream due to",e)}),r=new t.THREE.Texture(n),r.video=n,r.remove=function(){t.graph.splice(t.graph.indexOf(r),1),r=null,n.stream.stop()},r.stop=function(){t.graph.splice(t.graph.indexOf(r),1),r=null,n.stream.stop()},r.update=function(){},r._update=function(){n.readyState===n.HAVE_ENOUGH_DATA&&(r.needsUpdate=!0)},t.graph.push(r)),r)};return o}},{}],52:[function(e,t){!function(){function i(e){return 0>e?-1:1}var n=e("jquery"),r={extend:function(e,t){for(var i in t){{i.split(".")}e[i]=t[i]instanceof Array&&t[i].length<100?t[i].slice(0):t[i]}return e},isAndroid:function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("android")>-1}(),keyCodeToChar:{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause/Break",20:"Caps Lock",27:"Esc",32:"Space",33:"Page Up",34:"Page Down",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Windows",93:"Right Click",96:"Numpad 0",97:"Numpad 1",98:"Numpad 2",99:"Numpad 3",100:"Numpad 4",101:"Numpad 5",102:"Numpad 6",103:"Numpad 7",104:"Numpad 8",105:"Numpad 9",106:"Numpad *",107:"Numpad +",109:"Numpad -",110:"Numpad .",111:"Numpad /",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Num Lock",145:"Scroll Lock",182:"My Computer",183:"My Calculator",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},panels:[],mouseDown:!1,useTouch:"ontouchstart"in document.documentElement,widgets:[]};r.Presets={dictionary:"undefined"==typeof localStorage.interfacejs?{}:JSON.parse(localStorage.interfacejs),save:function(e){for(var t=[],i=0;i<r.panels.length;i++){var n=r.panels[i];t[i]=[];for(var o=0;o<n.children.length;o++){var a=n.children[o];if("object"==typeof a.children){for(var s=[],l=0;l<a.children.length;l++)s[l]=a.children[l].value;t[i][o]=s}else t[i][o]=a.value}this.dictionary[e]=t,localStorage.interfacejs=JSON.stringify(this.dictionary)}},load:function(e){for(var t=this.dictionary[e],i=0;i<r.panels.length;i++)for(var n=r.panels[i],o=0;o<n.children.length;o++){var a=n.children[o];if("object"==typeof a.children)for(var s=0;s<a.children.length;s++)a.children[s].setValue(t[i][o][s]);else a.setValue(t[i][o])}},list:function(){return Object.keys(this.dictionary)}},r.Panel=function(){var e=this,t=arguments.length>=1?arguments[0].container:void 0;r.extend(this,{type:"Panel",active:!0,children:[],shouldDraw:[],fps:30,useRelativeSizesAndPositions:!0,labelSize:"12px",font:"normal 12px Helvetica",serializeMe:["fps","useRelativeSizesAndPositions","labelSize","font","background","fill","stroke","backgroundColor"],container:function(){if("undefined"==typeof t){n("body").css({margin:0,padding:0});var e=n('<div id="container">');return e.css({width:n(window).width(),height:n(window).height(),display:"block",margin:0,padding:0,position:"absolute",left:0,top:0}),n("body").append(e),e}return t}(),canvas:document.createElement("canvas"),touchEvent:function(t){if(e.active){console.log(t),"undefined"==typeof t.changedTouches&&t.originalEvent&&(t.changedTouches=t.originalEvent.changedTouches);for(var i=0;i<t.changedTouches.length;i++)for(var n=t.changedTouches.item(i),r=0;r<e.children.length;r++)n.x=n.pageX-e.x,n.y=n.pageY-e.y,n.type=t.type,e.children[r].touchEvent(n);t.preventDefault()}},mouseEvent:function(t){if(e.active){"mousedown"===t.type?r.mouseDown=!0:"mouseup"===t.type&&(r.mouseDown=!1);for(var i={x:t.offsetX||t.pageX-e.x,y:t.offsetY||t.pageY-e.y,type:t.type},n=0;n<e.children.length;n++)e.children[n].mouseEvent(i)}},init:function(){var e=n(this.container).offset();this.width=n(this.container).width(),this.height=n(this.container).height(),this.x=e.left,this.y=e.top,isNaN(this.x)&&(this.x=0),isNaN(this.y)&&(this.y=0),n(this.canvas).attr({width:this.width,height:this.height}),n(this.container).css({"user-select":"none","-webkit-user-select":"none"}),n(this.container).append(this.canvas),this.ctx=this.canvas.getContext("2d"),this.ctx.translate(.5,.5),this.ctx.lineWidth=1,r.useTouch?(n(this.container).on("touchstart",this.touchEvent),n(this.container).on("touchmove",this.touchEvent),n(this.container).on("touchend",this.touchEvent)):(n(this.container).on("mousedown",this.mouseEvent),n(this.container).on("mousemove",this.mouseEvent),n(this.container).on("mouseup",this.mouseEvent)),n(this.container).css({outline:"none"}),n(this.container).attr("tabindex",5),n(this.container).on("keydown",this.keydown.bind(this)),n(this.container).on("keyup",this.keyup.bind(this))},keydown:function(e){for(var t=0;t<this.children.length;t++)this.children[t].onkeydown&&this.children[t].onkeydown(e)},keyup:function(e){for(var t=0;t<this.children.length;t++)this.children[t].onkeyup&&this.children[t].onkeyup(e)},draw:function(){if(this.active){for(var e=0;e<this.shouldDraw.length;e++)this.shouldDraw[e].draw();this.shouldDraw.length=0}},getWidgetWithName:function(e){for(var t=0;t<this.children.length;t++)if(this.children[t].name===e)return this.children[t]},redoBoundaries:function(){var e=n(this.container).offset();this.width=n(this.container).width(),this.height=n(this.container).height(),this.x=e.left,this.y=e.top,isNaN(this.x)&&(this.x=0),isNaN(this.y)&&(this.y=0),n(this.canvas).attr({width:this.width,height:this.height}),this.ctx.translate(.5,.5),this.ctx.lineWidth=1,this.refresh()},refresh:function(){if(this.active){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);for(var e=0;e<this.children.length;e++)this.children[e].draw()}},add:function(){for(var e=0;e<arguments.length;e++){var t=arguments[e];t.panel=this,t.canvas=this.canvas,t.container=this.container,t.ctx=this.ctx,this.children.push(t),t._init&&!t.added&&t._init(),t.oninit&&!t.added&&t.oninit(),t.draw(),t.added=!0,"function"==typeof t.add&&t.add()}},clear:function(){this.ctx.clearRect(0,0,this.width,this.height),this.children.length=0},remove:function(e){if(this.ctx.clearRect(e._x(),e._y(),e._width(),e._height()),"undefined"!=typeof e.children&&"XY"!==e.type)for(var t=0;t<e.children.length;t++)this.children.splice(this.children.indexOf(e.children[t]),1),r.widgets.splice(r.widgets.indexOf(e.children[t]),1);else this.children.indexOf(e)>-1&&(this.children.splice(this.children.indexOf(e),1),r.widgets.splice(r.widgets.indexOf(e),1),"function"==typeof e.remove&&e.remove())}}),"undefined"!=typeof arguments[0]&&r.extend(this,arguments[0]),this.backgroundColor&&this.setBackgroundColor(this.backgroundColor),this.init(),this.timer=setInterval(function(){e.draw()},Math.round(1e3/this.fps));var i="#000",o="#666",a="#999",s="transparent",e=this,l=this.useRelativeSizesAndPositions;Object.defineProperties(this,{useRelativeSizesAndPositions:{get:function(){return l},set:function(e){if(e!==l)if(l=e,e===!1)for(var t=0;t<this.children.length;t++){var i=this.children[t];i.bounds=[Math.round(i.x*this.width),Math.round(i.y*this.height),Math.round(i.width*this.width),Math.round(i.height*this.height)]}else for(var t=0;t<this.children.length;t++){var i=this.children[t];i.bounds=[i.x/this.width,i.y/this.height,i.width/this.width,i.height/this.height]}this.refresh()}},background:{get:function(){return s},set:function(e){s=e,n(this.container).css({backgroundColor:s})}},childBackground:{get:function(){return i},set:function(t){i=t,e.refresh()}},childStroke:{get:function(){return a},set:function(t){a=t,e.refresh()}},childFill:{get:function(){return o},set:function(t){o=t,e.refresh()}}}),arguments[0]&&(arguments[0].childBackground&&(this.childBackground=arguments[0].childBackground),arguments[0].childFill&&(this.childFill=arguments[0].childFill),arguments[0].childStroke&&(this.childStroke=arguments[0].childStroke)),r.panels.push(this)};var o=function(e){switch(e){case"mousedown":return"touchmousedown";case"mousemove":return"touchmousemove";case"mouseup":return"touchmouseup";default:return e}},a=function(e){switch(e){case"touchstart":return"touchmousedown";case"touchmove":return"touchmousemove";case"touchend":return"touchmouseup";default:return e}},s=0,l={hasFocus:!1,requiresFocus:!0,min:0,max:1,value:0,lastValue:null,name:null,events:{ontouchstart:null,ontouchmove:null,ontouchend:null,onmousedown:null,onmousemove:null,onmouseup:null,ontouchmousedown:null,ontouchmousemove:null,ontouchmouseup:null,onvaluechange:null,onboundschange:null}};r.Widget={init:function(e){this.added=!1,r.extend(this,l),"undefined"==typeof e&&(e={}),this.name=e.name||this.type+"_"+s++,this.target="OSC",this.key="/"+this.name,r.extend(this,e),this.bounds&&(this.x=e.bounds[0],this.y=e.bounds[1],this.width=e.bounds[2],this.height=e.bounds[3]),this.colors&&(this.background=e.colors[0],this.fill=e.colors[1],this.stroke=e.colors[2]),this.focusedTouches=[],this.value&&this.setValue(this.value,!0);{var t=this.bounds||[this.x,this.y,this.width,this.height],i=this.x,n=this.y,o=this.width,a=this.height;this.value}Object.defineProperties(this,{bounds:{configurable:!0,get:function(){return t},set:function(e){t=e,this.x=t[0],this.y=t[1],this.width=t[2],this.height=t[3],this.onboundschange&&this.onboundschange()}},x:{configurable:!0,get:function(){return i},set:function(e){this.clear(),i=e,this.onboundschange&&this.onboundschange(),this.refresh()}},y:{configurable:!0,get:function(){return n},set:function(e){this.clear(),n=e,this.onboundschange&&this.onboundschange(),this.refresh()}},width:{configurable:!0,get:function(){return o},set:function(e){this.clear(),o=e,this.onboundschange&&this.onboundschange(),this.refresh()}},height:{configurable:!0,get:function(){return a},set:function(e){this.clear(),a=e,this.onboundschange&&this.onboundschange(),this.refresh()}}}),r.widgets.push(this)},clear:function(){this.panel&&this.panel.ctx.clearRect(this._x(),this._y(),this._width(),this._height())},refresh:function(){this.panel&&-1===this.panel.shouldDraw.indexOf(this)&&this.panel.shouldDraw.push(this)},setValue:function(e,t){var i=this.max-this.min,n=e; this.value=e,0!==this.min||1!==this.max?(n-=this.min,this._value=n/i):this._value=this.value,t||this.refresh()},hitTest:function(e){return e.x>=this._x()&&e.x<=this._x()+this._width()&&e.y>=this._y()&&e.y<=this._y()+this._height()?!0:!1},mouseEvent:function(e){var t=this.hitTest(e),i=o(e.type);(t||this.hasFocus||!this.requiresFocus)&&("mousedown"===e.type&&(this.hasFocus=!0),this[e.type]&&this[e.type](e,t),this["on"+e.type]&&this["on"+e.type](e,t),this["on"+i]&&this["on"+i](e,t)),"mouseup"===e.type&&(this.hasFocus=!1)},touchEvent:function(e){var t=this.hitTest(e),i=a(e.type);if((t||this.hasFocus||!this.requiresFocus)&&("touchstart"===e.type&&(this.focusedTouches.push(e),this.hasFocus=!0),this[e.type]&&this[e.type](e,t),this["on"+e.type]&&this["on"+e.type](e,t),this["on"+i]&&this["on"+i](e,t)),"touchend"===e.type)for(var n=0;n<this.focusedTouches.length;n++)if(this.focusedTouches[n].id===e.id){this.focusedTouches.splice(n,1),0===this.focusedTouches.length&&(this.hasFocus=!1);break}},draw:function(){},sendTargetMessage:function(){if(this.target&&this.key)if("OSC"===this.target){if(r.OSC)if("undefined"==typeof this.values){var e="string"==typeof this.value?"s":"f";r.OSC.send(this.key,e,[this.value])}else if("undefined"==typeof this.sendValues){for(var e="",t=0;t<this.values.length;t++)e+="string"==typeof this.value?"s":"f";r.OSC.send(this.key,e,this.values)}else this.sendValues()}else"MIDI"===this.target?r.MIDI&&"undefined"==typeof this.values&&r.MIDI.send(this.key[0],this.key[1],this.key[2],this.value):"function"==typeof this.target[this.key]?this.target[this.key](this.values||this.value):this.target[this.key]=this.values||this.value},_background:function(){return this.background||this.panel.childBackground},_stroke:function(){return this.stroke||this.panel.childStroke},_fill:function(){return this.fill||this.panel.childFill},_x:function(){return this.panel.useRelativeSizesAndPositions?Math.floor(this.x*this.panel.width):this.x},_y:function(){return this.panel.useRelativeSizesAndPositions?Math.floor(this.y*this.panel.height):this.y},_width:function(){return this.panel.useRelativeSizesAndPositions?Math.floor(this.width*this.panel.width):this.width},_height:function(){return this.panel.useRelativeSizesAndPositions?Math.floor(this.height*this.panel.height):this.height},_font:function(){var e=this.font||this.panel.font;return e},label:null,_serializeMe:["background","stroke","fill","x","y","width","height","value","label","onmousedown","onmousemove","onmouseup","ontouchmousedown","ontouchmousemove","ontouchmouseup","ontouchstart","ontouchmove","ontouchend","onvaluechange","name","type","target","key"]},r.Slider=function(){r.extend(this,{type:"Slider",isVertical:!0,serializeMe:["isVertical"],draw:function(){var e=this._x(),t=this._y(),i=this._width(),n=this._height();this.ctx.fillStyle=this._background(),this.ctx.fillRect(e,t,i,n),this.ctx.fillStyle=this._fill(),this.isVertical?this.ctx.fillRect(e,t+n-this._value*n,i,this._value*n):this.ctx.fillRect(e,t,i*this._value,n),this.label&&(this.ctx.fillStyle=this._stroke(),this.ctx.textBaseline="middle",this.ctx.textAlign="center",this.ctx.font=this._font(),this.ctx.fillText(this.label,e+i/2,t+n/2)),this.ctx.strokeStyle=this._stroke(),this.ctx.strokeRect(e,t,i,n)},changeValue:function(e,t){(this.hasFocus||!this.requiresFocus)&&(this._value=this.isVertical?1-t/this._height():e/this._width(),this._value<0?this._value=0:this._value>1&&(this._value=1),this.value=this.min+(this.max-this.min)*this._value,this.value!==this.lastValue&&(this.sendTargetMessage(),this.onvaluechange&&this.onvaluechange(),this.refresh(),this.lastValue=this.value))},mousedown:function(e,t){t&&r.mouseDown&&this.changeValue(e.x-this._x(),e.y-this._y())},mousemove:function(e,t){t&&r.mouseDown&&this.changeValue(e.x-this._x(),e.y-this._y())},mouseup:function(e,t){t&&r.mouseDown&&this.changeValue(e.x-this._x(),e.y-this._y())},touchstart:function(e,t){t&&this.changeValue(e.x-this._x(),e.y-this._y())},touchmove:function(e,t){t&&this.changeValue(e.x-this._x(),e.y-this._y())},touchend:function(e,t){t&&this.changeValue(e.x-this._x(),e.y-this._y())}}).init(arguments[0])},r.Slider.prototype=r.Widget,r.Crossfader=function(){r.extend(this,{type:"Crossfader",crossfaderWidth:30,serializeMe:["crossfaderWidth"],_value:.5,draw:function(){var e=this._x(),t=this._y(),i=this._width(),n=this._height();this.ctx.fillStyle=this._background(),this.ctx.fillRect(e,t,i,n),this.ctx.fillStyle=this._fill(),this.ctx.fillRect(e+(i-this.crossfaderWidth)*this._value,t,this.crossfaderWidth,n),this.ctx.strokeStyle=this._stroke(),this.ctx.strokeRect(e,t,i,n)},changeValue:function(e){(this.hasFocus||!this.requiresFocus)&&(this._value=e/this._width(),this._value<0?this._value=0:this._value>1&&(this._value=1),this.value=this.min+(this.max-this.min)*this._value,this.value!==this.lastValue&&(this.sendTargetMessage(),this.onvaluechange&&this.onvaluechange(),this.refresh(),this.lastValue=this.value))},mousedown:function(e){this.changeValue(e.x-this._x(),e.y-this._y())},mousemove:function(e){this.changeValue(e.x-this._x(),e.y-this._y())},mouseup:function(e){this.changeValue(e.x-this._x(),e.y-this._y())},touchstart:function(e,t){t&&this.changeValue(e.x-this._x(),e.y-this._y())},touchmove:function(e,t){t&&this.changeValue(e.x-this._x(),e.y-this._y())},touchend:function(e,t){t&&this.changeValue(e.x-this._x(),e.y-this._y())}}).init(arguments[0])},r.Crossfader.prototype=r.Widget,r.Button=function(){r.extend(this,{type:"Button",_value:0,serializeMe:["mode","label"],mode:"toggle",isMouseOver:!1,isTouchOver:!1,label:null,requiresFocus:!1,draw:function(){var e=this._x(),t=this._y(),i=this._width(),n=this._height();this.ctx.fillStyle=this._value?this._fill():this._background(),this.ctx.fillRect(e,t,i,n),null!==this.label&&(this.ctx.fillStyle=this._stroke(),this.ctx.textBaseline="middle",this.ctx.textAlign="center",this.ctx.font=this._font(),this.ctx.fillText(this.label,e+i/2,t+n/2)),this.ctx.strokeStyle=this._stroke(),this.ctx.strokeRect(e,t,i,n)},changeValue:function(){(this.hasFocus||!this.requiresFocus)&&(this._value=!this._value,this.value=this._value?this.max:this.min,(this.value!==this.lastValue||"contact"===this.mode)&&(this.sendTargetMessage(),this.onvaluechange&&this.onvaluechange(),this.draw(),this.lastValue=this.value))},setValue:function(e,t){var i=this.max-this.min,n=e;this.value=e,0!==this.min||1!==this.max?(n-=this.min,this._value=n/i):this._value=this.value,this.lastValue=this.value,t||"contact"===this.mode||this.refresh()},mousedown:function(e,t){if(t&&r.mouseDown&&(this.isMouseOver=!0,this.changeValue(),"contact"===this.mode)){var i=this;setTimeout(function(){i._value=0,i.draw()},75)}},mousemove:function(e,t){if(!this.requiresFocus&&t&&r.mouseDown&&!this.isMouseOver)if(this.isMouseOver=!0,"contact"!==this.mode)this.changeValue();else{this._value=1,this.draw();var i=this;setTimeout(function(){i._value=0,i.draw()},75)}else!t&&this.isMouseOver&&(console.log("moved off!"),this.isMouseOver=!1)},mouseup:function(){"momentary"===this.mode&&(this.changeValue(),this.isMouseOver=!1)},touchstart:function(e,t){if(t&&(this.isTouchOver=!0,this.changeValue(),"contact"===this.mode)){var i=this;setTimeout(function(){i._value=0,i.draw()},75)}},touchmove:function(e,t){if(this.requiresFocus||!t||this.isTouchOver)!t&&this.isTouchOver&&(this.isTouchOver=!1);else if(this.isTouchOver=!0,"contact"!==this.mode)this.changeValue();else{this._value=1,this.draw();var i=this;setTimeout(function(){i._value=0,i.draw()},75)}},touchend:function(){this.isTouchOver=!1,"momentary"===this.mode&&this.changeValue()}}).init(arguments[0])},r.Button.prototype=r.Widget,r.ButtonV=function(){r.extend(this,{type:"ButtonV",_value:0,serializeMe:["mode","label"],mode:"toggle",isMouseOver:!1,isTouchOver:!1,label:null,points:[{x:0,y:0},{x:0,y:1},{x:1,y:1},{x:1,y:0},{x:0,y:0}],textLocation:{x:.5,y:.5},draw:function(){var e=this._x(),t=this._y(),i=0,n=this._width(),r=this._height();for(this.ctx.fillStyle=this._value?this._fill():this._background(),this.ctx.beginPath(),this.ctx.strokeStyle=this._stroke(),i;i<this.points.length;i++)0===i?this.ctx.moveTo(e+this.points[i].x*n,t+this.points[i].y*r):this.ctx.lineTo(e+this.points[i].x*n,t+this.points[i].y*r);this.ctx.lineTo(e+this.points[0].x*n,t+this.points[0].y*r),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke(),null!==this.label&&(this.ctx.fillStyle=this._stroke(),this.ctx.textBaseline="middle",this.ctx.textAlign="center",this.ctx.font=this._font(),this.ctx.fillText(this.label,e+n*this.textLocation.x,t+r*this.textLocation.y))},changeValue:function(){(this.hasFocus||!this.requiresFocus)&&(this._value=!this._value,this.value=this._value?this.max:this.min,(this.value!==this.lastValue||"contact"===this.mode)&&(this.sendTargetMessage(),this.onvaluechange&&this.onvaluechange(),this.draw(),this.lastValue=this.value))},hitTest:function(e){var t=this._width(),i=this._height(),n=this._x(),r=this._y();if(e.x>=n&&e.x<=n+t&&e.y>=r&&e.y<=r+i){var o=0,a=this.points,s=0;for(o;o<a.length-1;o++)if(a[o+1].x>a[o].x){if(a[o].x*t+n<=e.x&&e.x<a[o+1].x*t+n){var l=(a[o+1].y-a[o].y)/(a[o+1].x-a[o].x)*i/t*(e.x-a[o].x*t+n)+a[o].y*i+r;l-e.y<0&&s++}}else if(a[o+1].x<a[o].x&&a[o].x*t+n>=e.x&&e.x>a[o+1].x*t+n){var l=(a[o+1].y-a[o].y)/(a[o+1].x-a[o].x)*i/t*(e.x-a[o].x*t+n)+a[o].y*i+r;l-e.y<0&&s++}if(s%2==1)return!0}return!1},setValue:function(e,t){var i=this.max-this.min,n=e;this.value=e,0!==this.min||1!==this.max?(n-=this.min,this._value=n/i):this._value=this.value,this.lastValue=this.value,t||"contact"===this.mode||this.refresh()},mousedown:function(e,t){if(t&&r.mouseDown&&(this.isMouseOver=!0,this.changeValue(),"contact"===this.mode)){var i=this;setTimeout(function(){i._value=0,i.draw()},75)}},mousemove:function(e,t){if(!this.requiresFocus&&t&&r.mouseDown&&!this.isMouseOver)if(this.isMouseOver=!0,"contact"!==this.mode)this.changeValue();else{this._value=1,this.draw();var i=this;setTimeout(function(){i._value=0,i.draw()},75)}else if(!t&&this.isMouseOver)if(this.isMouseOver=!1,"contact"!==this.mode)this.changeValue();else{this._value=1,this.draw();var i=this;setTimeout(function(){i._value=0,i.draw()},75)}},mouseup:function(){"momentary"===this.mode&&(this.requiresFocus||!this.requiresFocus&&this.isMouseOver)&&(this.isMouseOver=!1,this.changeValue())},touchstart:function(e,t){if(t&&(this.isTouchOver=!0,this.changeValue(),"contact"===this.mode)){var i=this;setTimeout(function(){i._value=0,i.draw()},75)}},touchmove:function(e,t){if(this.requiresFocus||!t||this.isTouchOver)if(!t&&this.isTouchOver)if(this.isTouchOver=!1,"contact"!==this.mode)this.changeValue();else{this._value=1,this.draw();var i=this;setTimeout(function(){i._value=0,i.draw()},75)}else!t&&this.isTouchOver&&(this.isTouchOver=!1);else if(this.isTouchOver=!0,"contact"!==this.mode)this.changeValue();else{this._value=1,this.draw();var i=this;setTimeout(function(){i._value=0,i.draw()},75)}},touchend:function(){this.isTouchOver=!1,(this.requiresFocus||!this.requiresFocus&&this.isTouchOver)&&(this.isTouchOver=!1,this.changeValue())}}).init(arguments[0])},r.ButtonV.prototype=r.Widget,r.Piano=function(){r.extend(this,{type:"Piano",_value:0,serializeMe:["mode","label"],mode:"toggle",isMouseOver:!1,isTouchOver:!1,label:null,startletter:"C",startoctave:3,endletter:"C",endoctave:5,target:null,noteLabels:!1,_initialized:!1,keyMap:["Z","S","X","D","C","V","G","B","H","N","J","M",","],children:[],play:function(e,t){isNaN(t)&&(t=4410),"undefined"!=typeof Gibber&&(t=Gibber.Clock.time(t));var i=this.children[e];i&&(i.changeValue(),future(function(){1==i._value&&i.changeValue()},t))},onkeyup:function(e){var t=r.keyCodeToChar[e.keyCode],i=this.keyMap.indexOf(t),n=this.children[i];"undefined"!=typeof n&&1==n._value&&n.changeValue()},onkeydown:function(e){var t=r.keyCodeToChar[e.keyCode],i=this.keyMap.indexOf(t),n=this.children[i];"undefined"!=typeof n&&0==n._value&&n.changeValue()},onvaluechange:function(){this.values=[this.frequency,this.value]},onboundschange:function(){this._initialized&&this.placeKeys()},draw:function(){for(var e=0;e<this.children.length;e++)this.children[e].refresh();return this},placeKeys:function(){var e=(this._x(),this._y(),this._width(),this._height(),this.startoctave),t=0,i=0,n=["0","C","C#/Db","D","D#/Eb","E","F","F#/Gb","G","G#/Ab","A","A#/Bb","B"],o=["0","C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],a=[0,1,2,2,3,3,4,5,5,6,6,7,7],s=i+12*this.endoctave-(t+12*this.startoctave)+1,l=a[i]+7*this.endoctave-(a[t]+7*this.startoctave)+1,h=0;if(this._initialized){this.clear();for(var c=this.children.length-1;c>=0;c--){var u=this.children.pop();this.panel.remove(u)}}for(var c=1;13>c;c++)this.startletter===o[c]&&(t=c),this.endletter===o[c]&&(i=c);[2,4,7,9,11].indexOf(i)>-1&&l--;for(var c=0;s-1>c;c++){var p,f,d,m,g,v;switch(t){case 1:p=[{x:0,y:0},{x:.6,y:0},{x:.6,y:.625},{x:1,y:.625},{x:1,y:1},{x:0,y:1},{x:0,y:0}],d=this._fill(),f={x:.5,y:.75},m=this._background(),g=[h/l*this.width+this.x,this.y,this.width/l,this.height],v=this.noteLabels?n[t]+e:null;break;case 2:p=[{x:.1,y:0},{x:.7,y:0},{x:.7,y:1},{x:.1,y:1},{x:.1,y:0}],f={x:.3925,y:.5},d=this._background(),m=this._fill(),g=[(h-.5)/l*this.width+this.x,this.y,this.width/l,.625*this.height],v=this.noteLabels?n[t]:null;break;case 3:p=[{x:.2,y:0},{x:.8,y:0},{x:.8,y:.625},{x:1,y:.625},{x:1,y:1},{x:0,y:1},{x:0,y:.625},{x:.2,y:.625},{x:.2,y:0}],f={x:.5,y:.75},d=this._fill(),m=this._background(),g=[h/l*this.width+this.x,this.y,this.width/l,this.height],v=this.noteLabels?n[t]:null;break;case 4:p=[{x:.3,y:0},{x:.9,y:0},{x:.9,y:1},{x:.3,y:1},{x:.3,y:0}],f={x:.6075,y:.5},d=this._background(),m=this._fill(),g=[(h-.5)/l*this.width+this.x,this.y,this.width/l,.625*this.height],v=this.noteLabels?n[t]:null;break;case 5:p=[{x:1,y:0},{x:.4,y:0},{x:.4,y:.625},{x:0,y:.625},{x:0,y:1},{x:1,y:1},{x:1,y:0}],f={x:.5,y:.75},d=this._fill(),m=this._background(),g=[h/l*this.width+this.x,this.y,this.width/l,this.height],v=this.noteLabels?n[t]:null;break;case 6:p=[{x:0,y:0},{x:.57142857,y:0},{x:.57142857,y:.625},{x:1,y:.625},{x:1,y:1},{x:0,y:1},{x:0,y:0}],f={x:.5,y:.75},d=this._fill(),m=this._background(),g=[h/l*this.width+this.x,this.y,this.width/l,this.height],v=this.noteLabels?n[t]:null;break;case 7:p=[{x:.07142857,y:0},{x:.64285714,y:0},{x:.64285714,y:1},{x:.07142857,y:1},{x:.07142857,y:0}],f={x:.3925,y:.5},d=this._background(),m=this._fill(),g=[(h-.5)/l*this.width+this.x,this.y,this.width/l,.625*this.height],v=this.noteLabels?n[t]:null;break;case 8:p=[{x:.14285714,y:0},{x:.71428571,y:0},{x:.71428571,y:.625},{x:1,y:.625},{x:1,y:1},{x:0,y:1},{x:0,y:.625},{x:.14285714,y:.625},{x:.14285714,y:0}],f={x:.5,y:.75},d=this._fill(),m=this._background(),g=[h/l*this.width+this.x,this.y,this.width/l,this.height],v=this.noteLabels?n[t]:null;break;case 9:p=[{x:.21428571,y:0},{x:.78571428,y:0},{x:.78571428,y:1},{x:.21428571,y:1},{x:.21428571,y:0}],d=this._background(),m=this._fill(),g=[(h-.5)/l*this.width+this.x,this.y,this.width/l,.625*this.height],v=this.noteLabels?n[t]:null;break;case 10:p=[{x:.28571428,y:0},{x:.85714285,y:0},{x:.85714285,y:.625},{x:1,y:.625},{x:1,y:1},{x:0,y:1},{x:0,y:.625},{x:.28571428,y:.625},{x:.28571428,y:0}],d=this._fill(),m=this._background(),f={x:.5,y:.75},g=[h/l*this.width+this.x,this.y,this.width/l,this.height],v=this.noteLabels?n[t]:null;break;case 11:p=[{x:.35714285,y:0},{x:.92857142,y:0},{x:.92857142,y:1},{x:.35714285,y:1},{x:.35714285,y:0}],d=this._background(),m=this._fill(),f={x:.6075,y:.5},g=[(h-.5)/l*this.width+this.x,this.y,this.width/l,.625*this.height],v=this.noteLabels?n[t]:null;break;case 12:p=[{x:1,y:0},{x:.42857142,y:0},{x:.42857142,y:.625},{x:0,y:.625},{x:0,y:1},{x:1,y:1},{x:1,y:0}],d=this._fill(),m=this._background(),f={x:.5,y:.75},g=[h/l*this.width+this.x,this.y,this.width/l,this.height],v=this.noteLabels?n[t]:null}var y=new r.ButtonV({points:p,textLocation:f,target:this.target,onvaluechange:this.onvaluechange,frequency:261.626*Math.pow(2,(t+12*e-49)/12),background:d,fill:m,stroke:this._stroke(),bounds:g,label:v,requiresFocus:!1,mode:"momentary"});-1===[2,4,7,9,11].indexOf(t)&&h++,this.children.push(y),this.panel.add(y),t++,t>12&&(t=1,e++)}if(2==t||4==t||7==t||9==t||11==t)var b=new r.ButtonV({points:[{x:.166,y:0},{x:.5,y:0},{x:.5,y:1},{x:.166,y:1},{x:.166,y:0}],target:this.target,onvaluechange:this.onvaluechange,background:this._background(),frequency:261.626*Math.pow(2,(t+12*e-49)/12),bounds:[(h-.5)/l*this.width+this.x,this.y,this.width/l,.625*this.height],label:this.noteLabels?n[t]:null,stroke:this._stroke(),requiresFocus:!1,mode:"momentary"});else if(1==t)var b=new r.ButtonV({textLocation:{x:.5,y:.75},target:this.target,onvaluechange:this.onvaluechange,frequency:261.626*Math.pow(2,(t+12*e-49)/12),background:this._fill(),fill:this._background(),stroke:this._stroke(),bounds:[h/l*this.width+this.x,this.y,this.width/l,this.height],label:this.noteLabels?n[t]+e:null,requiresFocus:!1,mode:"momentary"});else if(4==t)var b=new r.ButtonV({textLocation:{x:.5,y:.75},target:this.target,onvaluechange:this.onvaluechange,frequency:261.626*Math.pow(2,(t+12*e-49)/12),background:this._fill(),fill:this._background(),stroke:this._stroke(),bounds:[h/l*this.width+this.x,this.y,this.width/l,this.height],label:this.noteLabels?n[t]:null,requiresFocus:!1,mode:"momentary"});else var b=new r.ButtonV({points:[{x:1,y:0},{x:.33,y:0},{x:.33,y:.625},{x:0,y:.625},{x:0,y:1},{x:1,y:1},{x:1,y:0}],textLocation:{x:.5,y:.75},target:this.target,onvaluechange:this.onvaluechange,frequency:261.626*Math.pow(2,(t+12*e-49)/12),background:this._fill(),fill:this._background(),stroke:this._stroke(),bounds:[h/l*this.width+this.x,this.y,this.width/l,this.height],label:this.noteLabels?n[t]:null,requiresFocus:!1,mode:"momentary"});this.children.push(b),this.panel.add(b),this._initialized=!0},_init:function(){this.placeKeys()}}).init(arguments[0])},r.Piano.prototype=r.Widget,r.Knob=function(){r.extend(this,{type:"Knob",_value:0,serializeMe:["usesRotation","knobBuffer"],knobBuffer:3,lastPosition:0,usesRotation:!0,draw:function(){var e=this._x(),t=this._y(),i=this._width(),n=(this._height(),i/2);this.ctx.clearRect(e,t,2*n,2*n),this.ctx.strokeStyle=this._stroke(),this.ctx.fillStyle=this._background();var r=.6*Math.PI,o=.4*Math.PI;if(this.ctx.beginPath(),this.ctx.arc(e+n,t+n,n-this.knobBuffer,r,o,!1),this.ctx.arc(e+n,t+n,.3*(n-this.knobBuffer),o,r,!0),this.ctx.closePath(),this.ctx.fill(),this.ctx.fillStyle=this._fill(),this.centerZero){var a,s=1.5*Math.PI;a=this._value>=.5?Math.PI*(1.5+1.8*(this._value-.5)):Math.PI*(1.5-.9*(1-2*this._value)),this._value>1.8*Math.PI&&(this._value-=1.8*Math.PI),this.ctx.beginPath(),this.ctx.arc(e+n,t+n,n-this.knobBuffer,s,a,this._value<.5),this.ctx.arc(e+n,t+n,.3*(n-this.knobBuffer),a,s,this._value>.5),this.ctx.closePath(),this.ctx.fill()}else{if(this.isInverted)var l=Math.PI*(.4-1.8*this._value);else{var l=.6*Math.PI+1.8*this._value*Math.PI;l>2*Math.PI&&(l-=2*Math.PI)}this.ctx.beginPath(),this.isInverted?(this.ctx.arc(e+n,t+n,n-this.knobBuffer,o,l,!0),this.ctx.arc(e+n,t+n,.3*(n-this.knobBuffer),l,o,!1)):(this.ctx.arc(e+n,t+n,n-this.knobBuffer,r,l,!1),this.ctx.arc(e+n,t+n,.3*(n-this.knobBuffer),l,r,!0)),this.ctx.closePath(),this.ctx.fill()}this.ctx.beginPath(),this.ctx.arc(e+n,t+n,n-this.knobBuffer,r,o,!1),this.ctx.arc(e+n,t+n,.3*(n-this.knobBuffer),o,r,!0),this.ctx.closePath(),this.ctx.stroke(),null!==this.label&&(this.ctx.fillStyle=this._stroke(),this.ctx.textBaseline="middle",this.ctx.textAlign="center",this.ctx.font=this._font(),this.ctx.fillText(this.label,e+n,t+2.25*n))},setValue:function(e,t){var i=this.max-this.min,n=e;this.lastValue=this.value,this.value=e,0!==this.min||1!==this.max?(n-=this.min,this._value=n/i):this._value=this.value,this.value!==this.lastValue&&(this.sendTargetMessage(),this.onvaluechange&&this.onvaluechange(),this.refresh(),this.lastValue=this.value),t||this.refresh()},changeValue:function(e,t){if(this.hasFocus||!this.requiresFocus){var i=this._width()/2;if(this.lastValue=this.value,this.usesRotation){var n=i-e,r=i-t,o=Math.PI+Math.atan2(r,n);this._value=(o+1.5*Math.PI)%(2*Math.PI)/(2*Math.PI),this.lastRotationValue>.8&&this._value<.2?this._value=1:this.lastRotationValue<.2&&this._value>.8&&(this._value=0)}else-1!=this.lastPosition&&(this._value-=(t-this.lastPosition)/(2*i));this._value>1&&(this._value=1),this._value<0&&(this._value=0),this.lastRotationValue=this._value,this.lastPosition=t;var a=this.max-this.min;this.value=this.min+this._value*a,this.value!==this.lastValue&&(this.sendTargetMessage(),this.onvaluechange&&this.onvaluechange(),this.refresh(),this.lastValue=this.value)}},hitTest:function(e){return e.x>=this._x()&&e.x<this._x()+this._width()&&e.y>=this._y()&&e.y<this._y()+this._width()?!0:!1},mousedown:function(e){this.lastPosition=e.y-this._y(),this.changeValue(e.x-this._x(),e.y-this._y())},mousemove:function(e){this.changeValue(e.x-this._x(),e.y-this._y())},mouseup:function(){},touchstart:function(e){this.lastPosition=e.y-this._y(),this.changeValue(e.x-this._x(),e.y-this._y())},touchmove:function(e){this.changeValue(e.x-this._x(),e.y-this._y())},touchend:function(){},_init:function(){var e=this.width,t=this.height;Object.defineProperty(this,"width",{configurable:!0,get:function(){return e},set:function(i){this.clear(),e=t=i,this.refresh()}}),Object.defineProperty(this,"height",{configurable:!0,get:function(){return t},set:function(e){t=e}})}}).init(arguments[0])},r.Knob.prototype=r.Widget,r.XY=function(){var e=this,t={x:0,y:0},n={x:0,y:0},o={x:0,y:0},s=0;r.extend(this,{type:"XY",_value:0,serializeMe:["childWidth","childHeight","numChildren","usePhysics","values","friction","maxVelocity","detectCollisions","fps"],childWidth:25,childHeight:25,children:[],values:[],_values:[],numChildren:1,usePhysics:!0,friction:.9,activeTouch:null,maxVelocity:10,detectCollisions:!0,touchCount:0,timer:null,fps:30,outputInitialValues:!0,rainbow:function(){for(var e=0;e<this.children.length;e++){var t=this.children[e];t.fill=r.XY.colors[e%r.XY.colors.length]}},remove:function(){this.stopAnimation(),r.widgets.splice(r.widgets.indexOf(this),1)},add:function(){this.usePhysics&&this.startAnimation()},startAnimation:function(){null===this.timer&&(this.timer=setInterval(function(){e.refresh()},1/this.fps*1e3))},stopAnimation:function(){clearInterval(this.timer),this.timer=null},animate:function(){for(var e=(this._x(),this._y(),this._width()),t=this._height(),n=!1,r=0;r<this.children.length;r++){var o=(moveY=!1,this.children[r]);o.x+o.vx<e&&o.x+o.vx>0?o.x+=o.vx:o.x+o.vx>=e&&o.vx>0?o.vx*=-1:o.x+o.vx<=0&&o.vx<0?o.vx*=-1:o.x+=o.vx,o.y+o.vy<t&&o.y+o.vy>0?o.y+=o.vy:o.y+o.vy>=t&&o.vy>0?o.vy*=-1:o.y+o.vy<=0&&o.vy<0?o.vy*=-1:o.y+=o.vy,o.vx*=this.friction,o.vy*=this.friction;var a=o.x/e,s=o.y/t,l=this.max-this.min;(this.values[o.id].x!==a||this.values[o.id].y!==s)&&(this.values[o.id].x=this.min+l*a,this.values[o.id].y=this.min+l*s,n=!0),this.detectCollisions&&(o.collideFlag?o.collideFlag=!1:this.collisionTest(o)),o.vx=Math.abs(o.vx)>this.maxVelocity?this.maxVelocity*i(o.vx):o.vx,o.vy=Math.abs(o.vy)>this.maxVelocity?this.maxVelocity*i(o.vy):o.vy}n&&(this.sendTargetMessage(),this.onvaluechange&&this.onvaluechange())},sendValues:function(){var e="";this._values.length=0;for(var t=0;t<this.values.length;t++)e+="ff",this._values.push(this.values[t].x),this._values.push(this.values[t].y);"OSC"===this.target&&r.OSC&&r.OSC.send(this.key,e,this._values)},collisionTest:function(e){for(var t=2*this.childWidth*2*this.childWidth,i=0;i<this.children.length;i++){var n=this.children[i];if(e.id!==n.id){var r=Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2);t>r&&this.collide(e,n)}}},collide:function(e,r){t.x=e.x-r.x,t.y=e.y-r.y,n.x=e.vx-r.vx,n.y=e.vy-r.vy,s=Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2)),o.x=t.x/s,o.y=t.y/s;var a=o.x*n.x+o.y*n.y;r.vx=e.vx+a*o.x,r.vy=e.vy+a*o.y,e.vx=r.vx-a*o.x,e.vy=r.vy-a*o.y,r.x-=o.x,r.y-=o.y,e.x+=o.x,e.y+=o.y,e.vx=Math.abs(e.vx)>this.maxVelocity?this.maxVelocity*i(e.vx):e.vx,e.vy=Math.abs(e.vy)>this.maxVelocity?this.maxVelocity*i(e.vy):e.vy,r.vx=Math.abs(r.vx)>this.maxVelocity?this.maxVelocity*i(r.vx):r.vx,r.vy=Math.abs(r.vy)>this.maxVelocity?this.maxVelocity*i(r.vy):r.vy,e.collideFlag=!0,r.collideFlag=!0},draw:function(){var e=this._x(),t=this._y(),i=this._width(),n=this._height();this.usePhysics&&this.animate(),this.ctx.fillStyle=this._background(),this.ctx.strokeStyle=this._stroke(),this.ctx.save(),this.ctx.beginPath(),this.ctx.moveTo(e,t),this.ctx.lineTo(e+i,t),this.ctx.lineTo(e+i,t+n),this.ctx.lineTo(e,t+n),this.ctx.lineTo(e,t),this.ctx.fill(),this.ctx.stroke(),this.ctx.clip(),this.ctx.fillStyle=this._fill();for(var r=0;r<this.children.length;r++){var o=this.children[r];this.ctx.lineWidth=2,this.ctx.fillStyle=o.fill||this._fill(),this.ctx.beginPath(),this.ctx.arc(e+o.x,t+o.y,this.childWidth,0,2*Math.PI,!0),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke(),this.ctx.textBaseline="middle",this.ctx.textAlign="center",this.ctx.fillStyle=this._stroke(),this.ctx.font=this._font(),this.ctx.fillText(o.id,e+o.x,t+o.y)}this.ctx.closePath(),this.ctx.restore()},changeValue:function(e,t,i){(this.hasFocus||!this.requiresFocus)&&(e.x=t,e.x<0&&(e.x=0),e.x>this._width()&&(e.x=this._width()),e.y=i,e.y<0&&(e.y=0),e.y>this._height()&&(e.y=this._height()),this.values[e.id].x=t/this._width(),this.values[e.id].y=i/this._height(),this.onvaluechange&&this.onvaluechange(),this.usePhysics||(this.sendTargetMessage(),this.refresh()))},makeChildren:function(){for(var e=0;e<this.numChildren;e++){var t=Math.random()*this._width(),i=Math.random()*this._height();this.children.push({id:e,x:t,y:i,vx:0,vy:0,collideFlag:!1,isActive:!1,lastPosition:null}),this.values.push({x:null,y:null})}},touchEvent:function(e){var t=this.hitTest(e),i=a(e.type);t?("touchstart"===e.type?(this.hasFocus=!0,this.touchCount++,this.trackTouch(e.x-this._x(),e.y-this._y(),e)):this[e.type]&&this[e.type](e,t,e.childID),this["on"+e.type]&&this["on"+e.type](e,t,e.childId),this["on"+i]&&this["on"+i](e,t)):"touchend"===e.type&&(this.touchCount--,0===this.touchCount?this.hasFocus=!1:this.touchCount<0&&(this.touchCount=0),this.touchend(e),this["on"+e.type]&&this["on"+e.type](e,t,e.childId),this["on"+i]&&this["on"+i](e,t))},trackMouse:function(e,t){for(var i=1e4,n=null,r=null,o=0;o<this.children.length;o++){var a=this.children[o],s=Math.abs(a.x-e),l=Math.abs(a.y-t);i>s+l&&(i=s+l,n=a,r=o)}n.isActive=!0,n.vx=0,n.vy=0,null!=n&&this.changeValue(n,e,t),this.activeTouch=n,this.activeTouch.lastTouch=null,this.lastTouched=n},mousedown:function(e){this.hitTest(e)&&this.trackMouse(e.x-this._x(),e.y-this._y())},mousemove:function(e){if(this.hitTest(e)&&null!==this.activeTouch){if(null===this.activeTouch.lastTouch)this.activeTouch.lastTouch={x:e.x-this._x(),y:e.y-this._y()};else{var t={x:e.x-this._x(),y:e.y-this._y()};this.activeTouch.velocity={x:t.x-this.activeTouch.lastTouch.x,y:t.y-this.activeTouch.lastTouch.y},this.activeTouch.lastTouch=t}this.changeValue(this.activeTouch,e.x-this._x(),e.y-this._y())}},mouseup:function(){null!==this.activeTouch&&(this.activeTouch.vx=this.activeTouch.velocity.x,this.activeTouch.vy=this.activeTouch.velocity.y,this.activeTouch.lastTouch=null,this.activeTouch=null);for(var e=0;e<this.children.length;e++)this.children[e].isActive=!1},trackTouch:function(e,t,i){for(var n=1e4,r=null,o=null,a=0;a<this.children.length;a++){var s=this.children[a],l=Math.abs(s.x-e),h=Math.abs(s.y-t);n>l+h&&!s.isActive&&(n=l+h,r=s,o=a)}return r.isActive=!0,r.vx=0,r.vy=0,r.identifier=i.identifier,r.childID=o,null!=r&&this.changeValue(r,e,t),this.lastTouched=r,r.childID},touchstart:function(){},touchmove:function(e){for(var t=0;t<this.children.length;t++)if(_t=this.children[t],e.identifier==_t.identifier){this.changeValue(_t,e.x-this._x(),e.y-this._y());var i={x:e.x-this._x(),y:e.y-this._y()};null!==_t.lastPosition&&(_t.velocity={x:i.x-_t.lastPosition.x,y:i.y-_t.lastPosition.y}),_t.lastPosition=i}},touchend:function(e){for(var t=!1,i=null,n=0;n<this.children.length;n++){var r=this.children[n];e.identifier===r.identifier&&(r.vx=r.velocity.x,r.vy=r.velocity.y,r.lastPosition=null,r.isActive=!1,t=!0,i=n.childID)}t&&(this.touchUp=i)},_init:function(){this.makeChildren(),this.outputInitialValues&&this.sendTargetMessage()}}).init(arguments[0]),this.requiresFocus=!1,this.half=this.childWidth/2;var l=this.numChildren;Object.defineProperty(this,"numChildren",{get:function(){return l},set:function(e){for(;e>l;)this.children.push({id:this.children.length,x:Math.random()*this._width(),y:Math.random()*this._height(),vx:0,vy:0,collideFlag:!1,isActive:!1,lastPosition:null}),this.values.push({x:null,y:null}),l++;for(;l>e;)this.chidren.pop(),this.values.pop(),l--;this.refresh(),l=e}})},r.XY.prototype=r.Widget,r.XY.colors=["rgba(255,0,0,.35)","rgba(0,255,0,.35)","rgba(0,0,255,.35)","rgba(0,255,255,.35)","rgba(255,0,255,.35)","rgba(255,255,0,.35)"],r.Menu=function(){r.extend(this,{type:"Menu",_value:0,serializeMe:["options","fontSize"],options:[],fontSize:15,touchEvent:function(e){this.hitTest(e)&&e.stopPropagation()},_init:function(){this.element=n("<select>");for(var e=0;e<this.options.length;e++){var t=n("<option>"+this.options[e]+"</option>");this.element.append(t)}this.element.css({position:"absolute",backgroundColor:this._background(),color:this._stroke(),left:this._x()+this.panel.x,top:this._y()+this.panel.y,width:this._width(),height:this._height(),fontSize:this.fontSize,display:"block",border:"1px solid "+this._stroke()}),this.css&&this.element.css(this.css);var i=this;this.element.change(function(){var e=i.value;i.value=i.element.val(),i.sendTargetMessage(),i.onvaluechange(i.value,e)}),this.element.val(-1!==this.options.indexOf(this.value)?this.value:this.options[0]),n(this.container).append(this.element)}}).init(arguments[0])},r.Menu.prototype=r.Widget,r.Label=function(){r.extend(this,{type:"Label",serializeMe:["size","style","hAlign","vAlign","font"],size:12,style:"normal",hAlign:"center",vAlign:"top",font:"sans-serif",draw:function(){this.ctx.font=this.style+" "+this.size+"px "+this.font,this.ctx.textAlign=this.hAlign,this.ctx.textBaseline=this.vAlign;var e,t,i=this.ctx.measureText(this.lastValue),n={x:0,y:this._y()-this.size/2,width:i.width,height:this.size};switch(this.hAlign){case"center":e=this._x()+this._width()/2,n.x=e-i.width/2;break;case"left":e=this._x(),n.x=e;break;case"right":e=this._x()+this._width(),n.x=e-i.width}switch(this.vAlign){case"middle":t=this._y()+this._height()/2,n.y=t-i.height/2;break;case"top":t=this._y(),n.y=t;break;case"bottom":t=this._y()+this._height(),n.y=t-i.height}this.ctx.clearRect(n.x,n.y,n.width,2*n.height),this.ctx.save(),this.ctx.beginPath(),this.ctx.moveTo(this._x(),this._y()),this.ctx.lineTo(this._x()+this._width(),this._y()),this.ctx.lineTo(this._x()+this._width(),this._y()+this._height()),this.ctx.lineTo(this._x(),this._y()+this._height()),this.ctx.lineTo(this._x(),this._y()),this.ctx.closePath(),this.ctx.clip(),this.ctx.fillStyle=this._stroke(),this.ctx.fillText(this.value,e,t),this.ctx.restore(),this.lastValue=this.value}}).init(arguments[0]),this.lastValue=this.value},r.Label.prototype=r.Widget,r.TextField=function(){r.extend(this,{type:"TextField",serializeMe:["fontSize"],fontSize:15,touchEvent:function(e){if(this.hitTest(e)){var t=document.createEvent("TouchEvent");t.initUIEvent("touchstart",!0,!0),t.view=window,t.screenX=e.screenX,t.screenY=e.screenY,t.clientX=e.clientX,t.clientY=e.clientY,t.bubbles=!1,t.view=window,t.altKey=!1,t.ctrlKey=!1,t.shiftKey=!1,t.metaKey=!1,this.element.dispatchEvent(t)}},_init:function(){this.element=n("<input>"),0!==this.value&&this.element.val(this.value),this.element.css({position:"absolute",backgroundColor:this._background(),color:this._fill(),left:this._x()+this.panel.x,top:this._y()+this.panel.y,width:this._width(),height:this._height(),fontSize:this.fontSize,display:"block",border:"1px solid "+this._stroke()}),this.css&&this.element.css(this.css);var e=this;this.element.change(function(){var t=e.value;e.value=e.element.val(),e.sendTargetMessage(),e.onvaluechange(e.value,t)}),n(this.container).append(this.element)}}).init(arguments[0])},r.TextField.prototype=r.Widget,r.MultiSlider=function(){r.extend(this,{type:"MultiSlider",isVertical:!0,serializeMe:["isVertical","count","values"],values:[],_values:[],count:16,draw:function(){var e=this._x(),t=this._y(),i=this._width(),n=this._height(),r=i/this.count; this.ctx.fillStyle=this._background(),this.ctx.fillRect(e,t,i,n),this.ctx.fillStyle=this._fill(),this.ctx.strokeStyle=this._stroke();for(var o=0;o<this.count;o++){var a=o*r+e;this.ctx.fillRect(a,t+n-this._values[o]*n,r,this._values[o]*n),this.ctx.strokeRect(a,t,r,n)}},setValue:function(e,t){this.values[e]=t,this._values[e]=t,this.refresh()},changeValue:function(e,t){if(this.hasFocus||!this.requiresFocus){var i=this._width(),n=i/this.count,o=Math.floor(e/n);_value=0,_value=1-t/this._height(),0>_value?_value=0:_value>1&&(_value=1),this.values[o]=this.min+(this.max-this.min)*_value,this._values[o]=_value,"OSC"!==this.target?this.sendTargetMessage():r.OSC&&r.OSC.send(this.key,"if",[o,this.values[o]]),this.onvaluechange&&this.onvaluechange(o,this.values[o]),this.refresh()}},mousedown:function(e,t){t&&r.mouseDown&&this.changeValue(e.x-this._x(),e.y-this._y())},mousemove:function(e,t){t&&r.mouseDown&&this.changeValue(e.x-this._x(),e.y-this._y())},mouseup:function(e,t){t&&r.mouseDown&&this.changeValue(e.x-this._x(),e.y-this._y())},touchstart:function(e,t){t&&this.changeValue(e.x-this._x(),e.y-this._y())},touchmove:function(e,t){t&&this.changeValue(e.x-this._x(),e.y-this._y())},touchend:function(e,t){t&&this.changeValue(e.x-this._x(),e.y-this._y())},onvaluechange:function(){}}).init(arguments[0]);var e=this.x,t=this.y,i=this.width,n=this.height,o=[e,t,i,n],a=this.count;delete this.bounds,Object.defineProperties(this,{x:{get:function(){return e},set:function(t){e=t,this.refresh()}},y:{get:function(){return t},set:function(e){t=e,this.refresh()}},width:{get:function(){return i},set:function(e){i=e,this.refresh()}},height:{get:function(){return n},set:function(e){n=e,this.refresh()}},bounds:{get:function(){return o},set:function(r){o=r,e=o[0],t=o[1],i=o[2],n=o[3],this.refresh()}},count:{get:function(){return a},set:function(e){a=e,this.refresh()}}})},r.MultiSlider.prototype=r.Widget,r.MultiButton=function(){r.extend(this,{type:"MultiButton",mode:"toggle",serializeMe:["mode","rows","columns","requiresFocus"],rows:8,values:[],_values:[],lastValues:[],mouseOver:null,columns:8,draw:function(){var e=this._x(),t=this._y(),i=this._width(),n=this._height(),r=i/this.columns,o=n/this.rows;this.ctx.strokeStyle=this._stroke();for(var a=0;a<this.rows;a++)for(var s=0;s<this.columns;s++){var l=e+s*r,h=t+a*o,c=a*this.columns+s;this.ctx.fillStyle=this._values[c]?this._fill():this._background(),this.ctx.fillRect(l,h,r,o),this.ctx.strokeRect(l,h,r,o)}},setValue:function(e,t,i){var n=e*this.columns+t;this._values[n]=this.values[n]=this.lastValues[n]=i,this.draw()},changeValue:function(e,t){if(this.hasFocus||!this.requiresFocus){var i=this._width(),n=this._height(),o=i/this.columns,a=Math.floor(e/o),s=n/this.rows,l=Math.floor(t/s),h=l*this.columns+a;if(h!==this.mouseOver){if(this._values[h]=!this._values[h],this.values[h]=this._values[h]?this.max:this.min,(this.values[h]!==this.lastValues[h]||"contact"===this.mode)&&("OSC"!==this.target?this.sendTargetMessage():r.OSC&&r.OSC.send(this.key,"iif",[l,a,this.values[h]]),this.onvaluechange&&this.onvaluechange(l,a,this.values[h]),this.draw(),this.lastValues[h]=this.values[h],"contact"===this.mode)){var c=this;setTimeout(function(){c._values[h]=0,c.draw()},75)}this.mouseOver=h}}},mousedown:function(e,t){t&&r.mouseDown&&this.changeValue(e.x-this._x(),e.y-this._y())},mousemove:function(e,t){t&&r.mouseDown&&this.changeValue(e.x-this._x(),e.y-this._y())},mouseup:function(e,t){t&&r.mouseDown&&this.changeValue(e.x-this._x(),e.y-this._y()),this.mouseOver=null},touchstart:function(e,t){t&&this.changeValue(e.x-this._x(),e.y-this._y())},touchmove:function(e,t){t&&this.changeValue(e.x-this._x(),e.y-this._y())},touchend:function(e,t){t&&this.changeValue(e.x-this._x(),e.y-this._y())}}).init(arguments[0]),this.requiresFocus=!1;var e=this.x,t=this.y,i=this.width,n=this.height,o=[e,t,i,n];rows=this.rows,columns=this.columns,delete this.bounds,Object.defineProperties(this,{x:{get:function(){return e},set:function(t){e=t,this.refresh()}},y:{get:function(){return t},set:function(e){t=e,this.refresh()}},width:{get:function(){return i},set:function(e){i=e,this.refresh()}},height:{get:function(){return n},set:function(e){n=e,this.refresh()}},bounds:{get:function(){return o},set:function(r){o=r,e=o[0],t=o[1],i=o[2],n=o[3],this.refresh()}},rows:{get:function(){return rows},set:function(e){rows=e,this.refresh()}},columns:{get:function(){return columns},set:function(e){columns=e,this.refresh()}}})},r.MultiButton.prototype=r.Widget,r.Accelerometer=function(){var e=this,t=9.80665;r.extend(this,{type:"Accelerometer",serializeMe:["delay"],delay:100,min:0,max:1,values:[0,0,0],update:function(t){var i=t.acceleration;e.x=e.values[0]=e.min+(0-e.hardwareMin+i.x)/e.hardwareRange*e.max,e.y=e.values[1]=e.min+(0-e.hardwareMin+i.y)/e.hardwareRange*e.max,e.z=e.values[2]=e.min+(0-e.hardwareMin+i.z)/e.hardwareRange*e.max,"undefined"!=typeof e.onvaluechange&&e.onvaluechange(e.x,e.y,e.z),e.sendTargetMessage()},start:function(){return window.addEventListener("devicemotion",this.update,!0),this},stop:function(){return window.removeEventListener("devicemotion",this.update),this}}).init(arguments[0]),r.isAndroid?(this.hardwareMin=t,this.hardwareMax=t):(this.hardwareMin=-2.307*t,this.hardwareMax=2.307*t),this.hardwareRange=this.hardwareMax-this.hardwareMin},r.Accelerometer.prototype=r.Widget,r.Orientation=function(){var e=this;r.extend(this,{type:"Orientation",serializeMe:["delay"],delay:100,values:[0,0,0],update:function(t){e.roll=e.values[0]=e.min+(90+t.gamma)/180*e.max,e.pitch=e.values[1]=e.min+(180+t.beta)/360*e.max,e.yaw=e.values[2]=e.min+t.alpha/360*e.max,isNaN(t.webkitCompassHeading)||(e.heading=e.min+t.webkitCompassHeading/360*e.max),e.sendTargetMessage(),"undefined"!=typeof e.onvaluechange&&e.onvaluechange(e.pitch,e.roll,e.yaw,e.heading)},start:function(){return window.addEventListener("deviceorientation",function(t){e.update(t)},!0),this},stop:function(){window.removeEventListener("deviceorientation")}}).init(arguments[0])},r.Orientation.prototype=r.Widget,r.Range=function(){r.extend(this,{type:"Range",serializeMe:["handleSize"],handleSize:20,values:[0,1],_values:[0,1],draw:function(){var e=this._x(),t=this._y(),i=this._width(),n=this._height();this.ctx.fillStyle=this._background(),this.ctx.clearRect(e,t,i,n);var r=e+this._values[1]*i-this.handleSize,o=e+this._values[0]*i;this.ctx.fillStyle=this._background(),this.ctx.fillRect(e,t,i,n),this.ctx.fillStyle=this._fill(),this.ctx.fillRect(o,t,r-o,n),this.ctx.fillStyle=this._stroke(),this.ctx.fillRect(o,t,this.handleSize,n),this.ctx.fillRect(r,t,this.handleSize,n),this.ctx.strokeStyle=this._stroke(),this.ctx.strokeRect(e,t,i,n)},changeValue:function(e,t){if(this.hasFocus||!this.requiresFocus){var i=this.isVertical?1-t/this._height():e/this._width();0>i?i=0:i>1&&(i=1);var n=this.max-this.min;Math.abs(i-this._values[0])<Math.abs(i-this._values[1])?(this._values[0]=i,this.values[0]=this.min+n*i):(this._values[1]=i,this.values[1]=this.min+n*i),this.refresh(),(this.values[0]!==this.lastLeftValue||this.values[1]!==this.lastRightValue)&&(this.onvaluechange&&this.onvaluechange(this.values[0],this.values[1]),this.refresh(),this.lastLeftValue=this.values[0],this.lastRightValue=this.values[1],this.sendTargetMessage())}},mousedown:function(e,t){t&&r.mouseDown&&this.changeValue(e.x-this._x(),e.y-this._y())},mousemove:function(e,t){t&&r.mouseDown&&this.changeValue(e.x-this._x(),e.y-this._y())},mouseup:function(e,t){t&&r.mouseDown&&this.changeValue(e.x-this._x(),e.y-this._y())},touchstart:function(e,t){t&&this.changeValue(e.x-this._x(),e.y-this._y())},touchmove:function(e,t){t&&this.changeValue(e.x-this._x(),e.y-this._y())},touchend:function(e,t){t&&this.changeValue(e.x-this._x(),e.y-this._y())}}).init(arguments[0])},r.Range.prototype=r.Widget,r.Paint=function(){r.extend(this,{lines:[],startTime:0,isAnimating:!1,animationPoint:0,timer:null,shouldLoop:!0,prevTimestamp:null,values:[0,0],draw:function(){var e=this._x(),t=this._y(),i=this._width(),n=this._height();if(this.ctx.fillStyle=this._background(),this.ctx.strokeStyle=this._stroke(),this.ctx.save(),this.ctx.beginPath(),this.ctx.moveTo(e,t),this.ctx.lineTo(e+i,t),this.ctx.lineTo(e+i,t+n),this.ctx.lineTo(e,t+n),this.ctx.lineTo(e,t),this.ctx.fill(),this.ctx.stroke(),this.ctx.clip(),this.ctx.fillStyle=this._fill(),this.lines.length>=1){this.ctx.lineWidth=8;for(var r=0;r<this.lines.length;r++){var o=this.lines[r];if(o.length>=2){this.ctx.moveTo(o[0].x*i,o[0].y*n),this.ctx.beginPath();for(var a=1;a<o.length-2;a++){var s=(o[a].x+o[a+1].x)/2,l=(o[a].y+o[a+1].y)/2;this.ctx.quadraticCurveTo(o[a].x*i,o[a].y*n,s*i,l*n)}this.ctx.stroke()}}}this.ctx.restore()},animate:function(){var e=this;if(this.isAnimating!==!1){var t=this.lines[0],i=t[this.animationPoint],n=t[this.animationPoint+1];if(this.animationPoint>=t.length-1){if(this.shouldLoop)return this.animationPoint=0,this.draw(),void(this.timeout=setTimeout(function(){e.animate()},5));if(this.ctx.fillStyle=this._background(),this.ctx.fillRect(0,0,this._width(),this._height()),0!==this.speedMod)return}this.ctx.save(),this.ctx.strokeStyle="#f00",this.ctx.lineWidth=8,this.ctx.beginPath(),this.ctx.moveTo(i.x*this._width(),i.y*this._height()),this.ctx.lineTo(n.x*this._width(),n.y*this._height()),this.ctx.stroke(),this.ctx.restore(),this.timeout=setTimeout(function(){e.animate()},i.timestamp-this.prevTimestamp),this.prevTimestamp=i.timestamp,this.animationPoint++,this.values=[i.x,i.y],this.sendTargetMessage()}},startAnimation:function(){this.animate()},stopAnimation:function(){this.timer&&clearInterval(this.timer)},mousedown:function(e){this.hitTest(e)&&(this.lines=[],this.animationPoint=0,0===this.lines.length&&(this.startTime=Date.now()),this.lines.push([]),this.isDrawing=!0,this.isAnimating=!1)},mousemove:function(e){if(this.hitTest(e)&&null!==this.activeTouch&&this.isDrawing){var t=this.lines[this.lines.length-1];t&&(t.push({x:e.x/this._width(),y:e.y/this._height(),timestamp:Date.now()-this.startTime}),this.draw())}},mouseup:function(){this.isDrawing=!1,this.lines.length>0&&(this.isAnimating=!0,this.animate())}}).init(arguments[0])},r.Paint.prototype=r.Widget,r.defineChildProperties=function(e,t){for(var i=0;i<t.length;i++)!function(){var n=t[i],r=e[n];Object.defineProperty(e,n,{get:function(){return r},set:function(t){r=t;for(var i=0;i<e.children.length;i++)e.children[i][n]=r}})}()},t.exports=r}()},{jquery:53}],53:[function(e,t){!function(e,i){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(e)}("undefined"!=typeof window?window:this,function(e,t){function i(e){var t=e.length,i=J.type(e);return"function"===i||J.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e}function n(e,t,i){if(J.isFunction(t))return J.grep(e,function(e,n){return!!t.call(e,n,e)!==i});if(t.nodeType)return J.grep(e,function(e){return e===t!==i});if("string"==typeof t){if(st.test(t))return J.filter(t,e,i);t=J.filter(t,e)}return J.grep(e,function(e){return W.call(t,e)>=0!==i})}function r(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function o(e){var t=dt[e]={};return J.each(e.match(ft)||[],function(e,i){t[i]=!0}),t}function a(){Q.removeEventListener("DOMContentLoaded",a,!1),e.removeEventListener("load",a,!1),J.ready()}function s(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=J.expando+Math.random()}function l(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(xt,"-$1").toLowerCase(),i=e.getAttribute(n),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:bt.test(i)?J.parseJSON(i):i}catch(r){}yt.set(e,t,i)}else i=void 0;return i}function h(){return!0}function c(){return!1}function u(){try{return Q.activeElement}catch(e){}}function p(e,t){return J.nodeName(e,"table")&&J.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function f(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function d(e){var t=Gt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function m(e,t){for(var i=0,n=e.length;n>i;i++)vt.set(e[i],"globalEval",!t||vt.get(t[i],"globalEval"))}function g(e,t){var i,n,r,o,a,s,l,h;if(1===t.nodeType){if(vt.hasData(e)&&(o=vt.access(e),a=vt.set(t,o),h=o.events)){delete a.handle,a.events={};for(r in h)for(i=0,n=h[r].length;n>i;i++)J.event.add(t,r,h[r][i])}yt.hasData(e)&&(s=yt.access(e),l=J.extend({},s),yt.set(t,l))}}function v(e,t){var i=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&J.nodeName(e,t)?J.merge([e],i):i}function y(e,t){var i=t.nodeName.toLowerCase();"input"===i&&Mt.test(e.type)?t.checked=e.checked:("input"===i||"textarea"===i)&&(t.defaultValue=e.defaultValue)}function b(t,i){var n,r=J(i.createElement(t)).appendTo(i.body),o=e.getDefaultComputedStyle&&(n=e.getDefaultComputedStyle(r[0]))?n.display:J.css(r[0],"display");return r.detach(),o}function x(e){var t=Q,i=Ut[e];return i||(i=b(e,t),"none"!==i&&i||(jt=(jt||J("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=jt[0].contentDocument,t.write(),t.close(),i=b(e,t),jt.detach()),Ut[e]=i),i}function w(e,t,i){var n,r,o,a,s=e.style;return i=i||Bt(e),i&&(a=i.getPropertyValue(t)||i[t]),i&&(""!==a||J.contains(e.ownerDocument,e)||(a=J.style(e,t)),zt.test(a)&&It.test(t)&&(n=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=i.width,s.width=n,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function _(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function S(e,t){if(t in e)return t;for(var i=t[0].toUpperCase()+t.slice(1),n=t,r=Kt.length;r--;)if(t=Kt[r]+i,t in e)return t;return n}function M(e,t,i){var n=qt.exec(t);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):t}function T(e,t,i,n,r){for(var o=i===(n?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===i&&(a+=J.css(e,i+_t[o],!0,r)),n?("content"===i&&(a-=J.css(e,"padding"+_t[o],!0,r)),"margin"!==i&&(a-=J.css(e,"border"+_t[o]+"Width",!0,r))):(a+=J.css(e,"padding"+_t[o],!0,r),"padding"!==i&&(a+=J.css(e,"border"+_t[o]+"Width",!0,r)));return a}function C(e,t,i){var n=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=Bt(e),a="border-box"===J.css(e,"boxSizing",!1,o);if(0>=r||null==r){if(r=w(e,t,o),(0>r||null==r)&&(r=e.style[t]),zt.test(r))return r;n=a&&($.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+T(e,t,i||(a?"border":"content"),n,o)+"px"}function A(e,t){for(var i,n,r,o=[],a=0,s=e.length;s>a;a++)n=e[a],n.style&&(o[a]=vt.get(n,"olddisplay"),i=n.style.display,t?(o[a]||"none"!==i||(n.style.display=""),""===n.style.display&&St(n)&&(o[a]=vt.access(n,"olddisplay",x(n.nodeName)))):(r=St(n),"none"===i&&r||vt.set(n,"olddisplay",r?i:J.css(n,"display"))));for(a=0;s>a;a++)n=e[a],n.style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?o[a]||"":"none"));return e}function E(e,t,i,n,r){return new E.prototype.init(e,t,i,n,r)}function P(){return setTimeout(function(){$t=void 0}),$t=J.now()}function k(e,t){var i,n=0,r={height:e};for(t=t?1:0;4>n;n+=2-t)i=_t[n],r["margin"+i]=r["padding"+i]=e;return t&&(r.opacity=r.width=e),r}function R(e,t,i){for(var n,r=(ii[t]||[]).concat(ii["*"]),o=0,a=r.length;a>o;o++)if(n=r[o].call(i,t,e))return n}function L(e,t,i){var n,r,o,a,s,l,h,c,u=this,p={},f=e.style,d=e.nodeType&&St(e),m=vt.get(e,"fxshow");i.queue||(s=J._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,J.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],h=J.css(e,"display"),c="none"===h?vt.get(e,"olddisplay")||x(e.nodeName):h,"inline"===c&&"none"===J.css(e,"float")&&(f.display="inline-block")),i.overflow&&(f.overflow="hidden",u.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}));for(n in t)if(r=t[n],Zt.exec(r)){if(delete t[n],o=o||"toggle"===r,r===(d?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;d=!0}p[n]=m&&m[n]||J.style(e,n)}else h=void 0;if(J.isEmptyObject(p))"inline"===("none"===h?x(e.nodeName):h)&&(f.display=h);else{m?"hidden"in m&&(d=m.hidden):m=vt.access(e,"fxshow",{}),o&&(m.hidden=!d),d?J(e).show():u.done(function(){J(e).hide()}),u.done(function(){var t;vt.remove(e,"fxshow");for(t in p)J.style(e,t,p[t])});for(n in p)a=R(d?m[n]:0,n,u),n in m||(m[n]=a.start,d&&(a.end=a.start,a.start="width"===n||"height"===n?1:0))}}function D(e,t){var i,n,r,o,a;for(i in e)if(n=J.camelCase(i),r=t[n],o=e[i],J.isArray(o)&&(r=o[1],o=e[i]=o[0]),i!==n&&(e[n]=o,delete e[i]),a=J.cssHooks[n],a&&"expand"in a){o=a.expand(o),delete e[n];for(i in o)i in e||(e[i]=o[i],t[i]=r)}else t[n]=r}function F(e,t,i){var n,r,o=0,a=ti.length,s=J.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=$t||P(),i=Math.max(0,h.startTime+h.duration-t),n=i/h.duration||0,o=1-n,a=0,l=h.tweens.length;l>a;a++)h.tweens[a].run(o);return s.notifyWith(e,[h,o,i]),1>o&&l?i:(s.resolveWith(e,[h]),!1)},h=s.promise({elem:e,props:J.extend({},t),opts:J.extend(!0,{specialEasing:{}},i),originalProperties:t,originalOptions:i,startTime:$t||P(),duration:i.duration,tweens:[],createTween:function(t,i){var n=J.Tween(e,h.opts,t,i,h.opts.specialEasing[t]||h.opts.easing);return h.tweens.push(n),n},stop:function(t){var i=0,n=t?h.tweens.length:0;if(r)return this;for(r=!0;n>i;i++)h.tweens[i].run(1);return t?s.resolveWith(e,[h,t]):s.rejectWith(e,[h,t]),this}}),c=h.props;for(D(c,h.opts.specialEasing);a>o;o++)if(n=ti[o].call(h,e,c,h.opts))return n;return J.map(c,R,h),J.isFunction(h.opts.start)&&h.opts.start.call(e,h),J.fx.timer(J.extend(l,{elem:e,anim:h,queue:h.opts.queue})),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always)}function N(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,r=0,o=t.toLowerCase().match(ft)||[];if(J.isFunction(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function G(e,t,i,n){function r(s){var l;return o[s]=!0,J.each(e[s]||[],function(e,s){var h=s(t,i,n);return"string"!=typeof h||a||o[h]?a?!(l=h):void 0:(t.dataTypes.unshift(h),r(h),!1)}),l}var o={},a=e===wi;return r(t.dataTypes[0])||!o["*"]&&r("*")}function V(e,t){var i,n,r=J.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&J.extend(!0,e,n),e}function O(e,t,i){for(var n,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(r in s)if(s[r]&&s[r].test(n)){l.unshift(r);break}if(l[0]in i)o=l[0];else{for(r in i){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}return o?(o!==l[0]&&l.unshift(o),i[o]):void 0}function j(e,t,i,n){var r,o,a,s,l,h={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)h[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=h[l+" "+o]||h["* "+o],!a)for(r in h)if(s=r.split(" "),s[1]===o&&(a=h[l+" "+s[0]]||h["* "+s[0]])){a===!0?a=h[r]:h[r]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(u){return{state:"parsererror",error:a?u:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}function U(e,t,i,n){var r;if(J.isArray(t))J.each(t,function(t,r){i||Ti.test(e)?n(e,r):U(e+"["+("object"==typeof r?t:"")+"]",r,i,n)});else if(i||"object"!==J.type(t))n(e,t);else for(r in t)U(e+"["+r+"]",t[r],i,n)}function I(e){return J.isWindow(e)?e:9===e.nodeType&&e.defaultView}var z=[],B=z.slice,H=z.concat,q=z.push,W=z.indexOf,X={},Y=X.toString,K=X.hasOwnProperty,$={},Q=e.document,Z="2.1.1",J=function(e,t){return new J.fn.init(e,t)},et=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,tt=/^-ms-/,it=/-([\da-z])/gi,nt=function(e,t){return t.toUpperCase()};J.fn=J.prototype={jquery:Z,constructor:J,selector:"",length:0,toArray:function(){return B.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:B.call(this)},pushStack:function(e){var t=J.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return J.each(this,e,t)},map:function(e){return this.pushStack(J.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(B.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(0>e?t:0);return this.pushStack(i>=0&&t>i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:q,sort:z.sort,splice:z.splice},J.extend=J.fn.extend=function(){var e,t,i,n,r,o,a=arguments[0]||{},s=1,l=arguments.length,h=!1;for("boolean"==typeof a&&(h=a,a=arguments[s]||{},s++),"object"==typeof a||J.isFunction(a)||(a={}),s===l&&(a=this,s--);l>s;s++)if(null!=(e=arguments[s]))for(t in e)i=a[t],n=e[t],a!==n&&(h&&n&&(J.isPlainObject(n)||(r=J.isArray(n)))?(r?(r=!1,o=i&&J.isArray(i)?i:[]):o=i&&J.isPlainObject(i)?i:{},a[t]=J.extend(h,o,n)):void 0!==n&&(a[t]=n));return a},J.extend({expando:"jQuery"+(Z+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===J.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!J.isArray(e)&&e-parseFloat(e)>=0},isPlainObject:function(e){return"object"!==J.type(e)||e.nodeType||J.isWindow(e)?!1:e.constructor&&!K.call(e.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?X[Y.call(e)]||"object":typeof e},globalEval:function(e){var t,i=eval;e=J.trim(e),e&&(1===e.indexOf("use strict")?(t=Q.createElement("script"),t.text=e,Q.head.appendChild(t).parentNode.removeChild(t)):i(e))},camelCase:function(e){return e.replace(tt,"ms-").replace(it,nt)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,o=0,a=e.length,s=i(e);if(n){if(s)for(;a>o&&(r=t.apply(e[o],n),r!==!1);o++);else for(o in e)if(r=t.apply(e[o],n),r===!1)break}else if(s)for(;a>o&&(r=t.call(e[o],o,e[o]),r!==!1);o++);else for(o in e)if(r=t.call(e[o],o,e[o]),r===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(et,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(i(Object(e))?J.merge(n,"string"==typeof e?[e]:e):q.call(n,e)),n},inArray:function(e,t,i){return null==t?-1:W.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,r=e.length;i>n;n++)e[r++]=t[n];return e.length=r,e},grep:function(e,t,i){for(var n,r=[],o=0,a=e.length,s=!i;a>o;o++)n=!t(e[o],o),n!==s&&r.push(e[o]);return r},map:function(e,t,n){var r,o=0,a=e.length,s=i(e),l=[];if(s)for(;a>o;o++)r=t(e[o],o,n),null!=r&&l.push(r);else for(o in e)r=t(e[o],o,n),null!=r&&l.push(r);return H.apply([],l)},guid:1,proxy:function(e,t){var i,n,r;return"string"==typeof t&&(i=e[t],t=e,e=i),J.isFunction(e)?(n=B.call(arguments,2),r=function(){return e.apply(t||this,n.concat(B.call(arguments)))},r.guid=e.guid=e.guid||J.guid++,r):void 0},now:Date.now,support:$}),J.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){X["[object "+t+"]"]=t.toLowerCase()});var rt=function(e){function t(e,t,i,n){var r,o,a,s,l,h,u,f,d,m;if((t?t.ownerDocument||t:U)!==L&&R(t),t=t||L,i=i||[],!e||"string"!=typeof e)return i;if(1!==(s=t.nodeType)&&9!==s)return[];if(F&&!n){if(r=yt.exec(e))if(a=r[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return i;if(o.id===a)return i.push(o),i}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&O(t,o)&&o.id===a)return i.push(o),i}else{if(r[2])return J.apply(i,t.getElementsByTagName(e)),i;if((a=r[3])&&w.getElementsByClassName&&t.getElementsByClassName)return J.apply(i,t.getElementsByClassName(a)),i}if(w.qsa&&(!N||!N.test(e))){if(f=u=j,d=t,m=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(h=T(e),(u=t.getAttribute("id"))?f=u.replace(xt,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",l=h.length;l--;)h[l]=f+p(h[l]);d=bt.test(e)&&c(t.parentNode)||t,m=h.join(",")}if(m)try{return J.apply(i,d.querySelectorAll(m)),i}catch(g){}finally{u||t.removeAttribute("id")}}}return A(e.replace(lt,"$1"),t,i,n)}function i(){function e(i,n){return t.push(i+" ")>_.cacheLength&&delete e[t.shift()],e[i+" "]=n}var t=[];return e}function n(e){return e[j]=!0,e}function r(e){var t=L.createElement("div");try{return!!e(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var i=e.split("|"),n=e.length;n--;)_.attrHandle[i[n]]=t}function a(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Y)-(~e.sourceIndex||Y);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function s(e){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===e}}function l(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function h(e){return n(function(t){return t=+t,n(function(i,n){for(var r,o=e([],i.length,t),a=o.length;a--;)i[r=o[a]]&&(i[r]=!(n[r]=i[r]))})})}function c(e){return e&&typeof e.getElementsByTagName!==X&&e}function u(){}function p(e){for(var t=0,i=e.length,n="";i>t;t++)n+=e[t].value;return n}function f(e,t,i){var n=t.dir,r=i&&"parentNode"===n,o=z++;return t.first?function(t,i,o){for(;t=t[n];)if(1===t.nodeType||r)return e(t,i,o)}:function(t,i,a){var s,l,h=[I,o];if(a){for(;t=t[n];)if((1===t.nodeType||r)&&e(t,i,a))return!0}else for(;t=t[n];)if(1===t.nodeType||r){if(l=t[j]||(t[j]={}),(s=l[n])&&s[0]===I&&s[1]===o)return h[2]=s[2];if(l[n]=h,h[2]=e(t,i,a))return!0}}}function d(e){return e.length>1?function(t,i,n){for(var r=e.length;r--;)if(!e[r](t,i,n))return!1;return!0}:e[0]}function m(e,i,n){for(var r=0,o=i.length;o>r;r++)t(e,i[r],n);return n}function g(e,t,i,n,r){for(var o,a=[],s=0,l=e.length,h=null!=t;l>s;s++)(o=e[s])&&(!i||i(o,n,r))&&(a.push(o),h&&t.push(s));return a}function v(e,t,i,r,o,a){return r&&!r[j]&&(r=v(r)),o&&!o[j]&&(o=v(o,a)),n(function(n,a,s,l){var h,c,u,p=[],f=[],d=a.length,v=n||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!n&&t?v:g(v,p,e,s,l),b=i?o||(n?e:d||r)?[]:a:y;if(i&&i(y,b,s,l),r)for(h=g(b,f),r(h,[],s,l),c=h.length;c--;)(u=h[c])&&(b[f[c]]=!(y[f[c]]=u));if(n){if(o||e){if(o){for(h=[],c=b.length;c--;)(u=b[c])&&h.push(y[c]=u);o(null,b=[],h,l)}for(c=b.length;c--;)(u=b[c])&&(h=o?tt.call(n,u):p[c])>-1&&(n[h]=!(a[h]=u))}}else b=g(b===a?b.splice(d,b.length):b),o?o(null,a,b,l):J.apply(a,b)})}function y(e){for(var t,i,n,r=e.length,o=_.relative[e[0].type],a=o||_.relative[" "],s=o?1:0,l=f(function(e){return e===t},a,!0),h=f(function(e){return tt.call(t,e)>-1},a,!0),c=[function(e,i,n){return!o&&(n||i!==E)||((t=i).nodeType?l(e,i,n):h(e,i,n))}];r>s;s++)if(i=_.relative[e[s].type])c=[f(d(c),i)];else{if(i=_.filter[e[s].type].apply(null,e[s].matches),i[j]){for(n=++s;r>n&&!_.relative[e[n].type];n++);return v(s>1&&d(c),s>1&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(lt,"$1"),i,n>s&&y(e.slice(s,n)),r>n&&y(e=e.slice(n)),r>n&&p(e))}c.push(i)}return d(c)}function b(e,i){var r=i.length>0,o=e.length>0,a=function(n,a,s,l,h){var c,u,p,f=0,d="0",m=n&&[],v=[],y=E,b=n||o&&_.find.TAG("*",h),x=I+=null==y?1:Math.random()||.1,w=b.length;for(h&&(E=a!==L&&a);d!==w&&null!=(c=b[d]);d++){if(o&&c){for(u=0;p=e[u++];)if(p(c,a,s)){l.push(c);break}h&&(I=x)}r&&((c=!p&&c)&&f--,n&&m.push(c))}if(f+=d,r&&d!==f){for(u=0;p=i[u++];)p(m,v,a,s);if(n){if(f>0)for(;d--;)m[d]||v[d]||(v[d]=Q.call(l));v=g(v)}J.apply(l,v),h&&!n&&v.length>0&&f+i.length>1&&t.uniqueSort(l)}return h&&(I=x,E=y),m};return r?n(a):a}var x,w,_,S,M,T,C,A,E,P,k,R,L,D,F,N,G,V,O,j="sizzle"+-new Date,U=e.document,I=0,z=0,B=i(),H=i(),q=i(),W=function(e,t){return e===t&&(k=!0),0},X="undefined",Y=1<<31,K={}.hasOwnProperty,$=[],Q=$.pop,Z=$.push,J=$.push,et=$.slice,tt=$.indexOf||function(e){for(var t=0,i=this.length;i>t;t++)if(this[t]===e)return t;return-1},it="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ot=rt.replace("w","w#"),at="\\["+nt+"*("+rt+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ot+"))|)"+nt+"*\\]",st=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+at+")*)|.*)\\)|)",lt=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),ht=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ut=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),pt=new RegExp(st),ft=new RegExp("^"+ot+"$"),dt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt.replace("w","w*")+")"),ATTR:new RegExp("^"+at),PSEUDO:new RegExp("^"+st),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+it+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},mt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,xt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),_t=function(e,t,i){var n="0x"+t-65536;return n!==n||i?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)};try{J.apply($=et.call(U.childNodes),U.childNodes),$[U.childNodes.length].nodeType}catch(St){J={apply:$.length?function(e,t){Z.apply(e,et.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}w=t.support={},M=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},R=t.setDocument=function(e){var t,i=e?e.ownerDocument||e:U,n=i.defaultView;return i!==L&&9===i.nodeType&&i.documentElement?(L=i,D=i.documentElement,F=!M(i),n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",function(){R()},!1):n.attachEvent&&n.attachEvent("onunload",function(){R()})),w.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=r(function(e){return e.appendChild(i.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=vt.test(i.getElementsByClassName)&&r(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),w.getById=r(function(e){return D.appendChild(e).id=j,!i.getElementsByName||!i.getElementsByName(j).length}),w.getById?(_.find.ID=function(e,t){if(typeof t.getElementById!==X&&F){var i=t.getElementById(e);return i&&i.parentNode?[i]:[]}},_.filter.ID=function(e){var t=e.replace(wt,_t);return function(e){return e.getAttribute("id")===t}}):(delete _.find.ID,_.filter.ID=function(e){var t=e.replace(wt,_t);return function(e){var i=typeof e.getAttributeNode!==X&&e.getAttributeNode("id");return i&&i.value===t}}),_.find.TAG=w.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==X?t.getElementsByTagName(e):void 0}:function(e,t){var i,n=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},_.find.CLASS=w.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==X&&F?t.getElementsByClassName(e):void 0},G=[],N=[],(w.qsa=vt.test(i.querySelectorAll))&&(r(function(e){e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&N.push("[*^$]="+nt+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||N.push("\\["+nt+"*(?:value|"+it+")"),e.querySelectorAll(":checked").length||N.push(":checked") }),r(function(e){var t=i.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&N.push("name"+nt+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||N.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),N.push(",.*:")})),(w.matchesSelector=vt.test(V=D.matches||D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&r(function(e){w.disconnectedMatch=V.call(e,"div"),V.call(e,"[s!='']:x"),G.push("!=",st)}),N=N.length&&new RegExp(N.join("|")),G=G.length&&new RegExp(G.join("|")),t=vt.test(D.compareDocumentPosition),O=t||vt.test(D.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=t?function(e,t){if(e===t)return k=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===i||e.ownerDocument===U&&O(U,e)?-1:t===i||t.ownerDocument===U&&O(U,t)?1:P?tt.call(P,e)-tt.call(P,t):0:4&n?-1:1)}:function(e,t){if(e===t)return k=!0,0;var n,r=0,o=e.parentNode,s=t.parentNode,l=[e],h=[t];if(!o||!s)return e===i?-1:t===i?1:o?-1:s?1:P?tt.call(P,e)-tt.call(P,t):0;if(o===s)return a(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)h.unshift(n);for(;l[r]===h[r];)r++;return r?a(l[r],h[r]):l[r]===U?-1:h[r]===U?1:0},i):L},t.matches=function(e,i){return t(e,null,null,i)},t.matchesSelector=function(e,i){if((e.ownerDocument||e)!==L&&R(e),i=i.replace(ut,"='$1']"),!(!w.matchesSelector||!F||G&&G.test(i)||N&&N.test(i)))try{var n=V.call(e,i);if(n||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(r){}return t(i,L,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==L&&R(e),O(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==L&&R(e);var i=_.attrHandle[t.toLowerCase()],n=i&&K.call(_.attrHandle,t.toLowerCase())?i(e,t,!F):void 0;return void 0!==n?n:w.attributes||!F?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,i=[],n=0,r=0;if(k=!w.detectDuplicates,P=!w.sortStable&&e.slice(0),e.sort(W),k){for(;t=e[r++];)t===e[r]&&(n=i.push(r));for(;n--;)e.splice(i[n],1)}return P=null,e},S=t.getText=function(e){var t,i="",n=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=S(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[n++];)i+=S(t);return i},_=t.selectors={cacheLength:50,createPseudo:n,match:dt,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(wt,_t),e[3]=(e[3]||e[4]||e[5]||"").replace(wt,_t),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return dt.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&pt.test(i)&&(t=T(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(wt,_t).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=B[e+" "];return t||(t=new RegExp("(^|"+nt+")"+e+"("+nt+"|$)"))&&B(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==X&&e.getAttribute("class")||"")})},ATTR:function(e,i,n){return function(r){var o=t.attr(r,e);return null==o?"!="===i:i?(o+="","="===i?o===n:"!="===i?o!==n:"^="===i?n&&0===o.indexOf(n):"*="===i?n&&o.indexOf(n)>-1:"$="===i?n&&o.slice(-n.length)===n:"~="===i?(" "+o+" ").indexOf(n)>-1:"|="===i?o===n||o.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,i,n,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,i,l){var h,c,u,p,f,d,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(g){if(o){for(;m;){for(u=t;u=u[m];)if(s?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;d=m="only"===e&&!d&&"nextSibling"}return!0}if(d=[a?g.firstChild:g.lastChild],a&&y){for(c=g[j]||(g[j]={}),h=c[e]||[],f=h[0]===I&&h[1],p=h[0]===I&&h[2],u=f&&g.childNodes[f];u=++f&&u&&u[m]||(p=f=0)||d.pop();)if(1===u.nodeType&&++p&&u===t){c[e]=[I,f,p];break}}else if(y&&(h=(t[j]||(t[j]={}))[e])&&h[0]===I)p=h[1];else for(;(u=++f&&u&&u[m]||(p=f=0)||d.pop())&&((s?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++p||(y&&((u[j]||(u[j]={}))[e]=[I,p]),u!==t)););return p-=r,p===n||p%n===0&&p/n>=0}}},PSEUDO:function(e,i){var r,o=_.pseudos[e]||_.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[j]?o(i):o.length>1?(r=[e,e,"",i],_.setFilters.hasOwnProperty(e.toLowerCase())?n(function(e,t){for(var n,r=o(e,i),a=r.length;a--;)n=tt.call(e,r[a]),e[n]=!(t[n]=r[a])}):function(e){return o(e,0,r)}):o}},pseudos:{not:n(function(e){var t=[],i=[],r=C(e.replace(lt,"$1"));return r[j]?n(function(e,t,i,n){for(var o,a=r(e,null,n,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,n,o){return t[0]=e,r(t,null,o,i),!i.pop()}}),has:n(function(e){return function(i){return t(e,i).length>0}}),contains:n(function(e){return function(t){return(t.textContent||t.innerText||S(t)).indexOf(e)>-1}}),lang:n(function(e){return ft.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(wt,_t).toLowerCase(),function(t){var i;do if(i=F?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===e||0===i.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===D},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.nodeType<6)return!1;return!0},parent:function(e){return!_.pseudos.empty(e)},header:function(e){return gt.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"))||"text"===t.toLowerCase())},first:h(function(){return[0]}),last:h(function(e,t){return[t-1]}),eq:h(function(e,t,i){return[0>i?i+t:i]}),even:h(function(e,t){for(var i=0;t>i;i+=2)e.push(i);return e}),odd:h(function(e,t){for(var i=1;t>i;i+=2)e.push(i);return e}),lt:h(function(e,t,i){for(var n=0>i?i+t:i;--n>=0;)e.push(n);return e}),gt:h(function(e,t,i){for(var n=0>i?i+t:i;++n<t;)e.push(n);return e})}},_.pseudos.nth=_.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[x]=s(x);for(x in{submit:!0,reset:!0})_.pseudos[x]=l(x);return u.prototype=_.filters=_.pseudos,_.setFilters=new u,T=t.tokenize=function(e,i){var n,r,o,a,s,l,h,c=H[e+" "];if(c)return i?0:c.slice(0);for(s=e,l=[],h=_.preFilter;s;){(!n||(r=ht.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),n=!1,(r=ct.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(lt," ")}),s=s.slice(n.length));for(a in _.filter)!(r=dt[a].exec(s))||h[a]&&!(r=h[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return i?s.length:s?t.error(e):H(e,l).slice(0)},C=t.compile=function(e,t){var i,n=[],r=[],o=q[e+" "];if(!o){for(t||(t=T(e)),i=t.length;i--;)o=y(t[i]),o[j]?n.push(o):r.push(o);o=q(e,b(r,n)),o.selector=e}return o},A=t.select=function(e,t,i,n){var r,o,a,s,l,h="function"==typeof e&&e,u=!n&&T(e=h.selector||e);if(i=i||[],1===u.length){if(o=u[0]=u[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===t.nodeType&&F&&_.relative[o[1].type]){if(t=(_.find.ID(a.matches[0].replace(wt,_t),t)||[])[0],!t)return i;h&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=dt.needsContext.test(e)?0:o.length;r--&&(a=o[r],!_.relative[s=a.type]);)if((l=_.find[s])&&(n=l(a.matches[0].replace(wt,_t),bt.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(r,1),e=n.length&&p(o),!e)return J.apply(i,n),i;break}}return(h||C(e,u))(n,t,!F,i,bt.test(e)&&c(t.parentNode)||t),i},w.sortStable=j.split("").sort(W).join("")===j,w.detectDuplicates=!!k,R(),w.sortDetached=r(function(e){return 1&e.compareDocumentPosition(L.createElement("div"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,i){return i?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,i){return i||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||o(it,function(e,t,i){var n;return i?void 0:e[t]===!0?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),t}(e);J.find=rt,J.expr=rt.selectors,J.expr[":"]=J.expr.pseudos,J.unique=rt.uniqueSort,J.text=rt.getText,J.isXMLDoc=rt.isXML,J.contains=rt.contains;var ot=J.expr.match.needsContext,at=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,st=/^.[^:#\[\.,]*$/;J.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?J.find.matchesSelector(n,e)?[n]:[]:J.find.matches(e,J.grep(t,function(e){return 1===e.nodeType}))},J.fn.extend({find:function(e){var t,i=this.length,n=[],r=this;if("string"!=typeof e)return this.pushStack(J(e).filter(function(){for(t=0;i>t;t++)if(J.contains(r[t],this))return!0}));for(t=0;i>t;t++)J.find(e,r[t],n);return n=this.pushStack(i>1?J.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(n(this,e||[],!1))},not:function(e){return this.pushStack(n(this,e||[],!0))},is:function(e){return!!n(this,"string"==typeof e&&ot.test(e)?J(e):e||[],!1).length}});var lt,ht=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ct=J.fn.init=function(e,t){var i,n;if(!e)return this;if("string"==typeof e){if(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ht.exec(e),!i||!i[1]&&t)return!t||t.jquery?(t||lt).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof J?t[0]:t,J.merge(this,J.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:Q,!0)),at.test(i[1])&&J.isPlainObject(t))for(i in t)J.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return n=Q.getElementById(i[2]),n&&n.parentNode&&(this.length=1,this[0]=n),this.context=Q,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):J.isFunction(e)?"undefined"!=typeof lt.ready?lt.ready(e):e(J):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),J.makeArray(e,this))};ct.prototype=J.fn,lt=J(Q);var ut=/^(?:parents|prev(?:Until|All))/,pt={children:!0,contents:!0,next:!0,prev:!0};J.extend({dir:function(e,t,i){for(var n=[],r=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&J(e).is(i))break;n.push(e)}return n},sibling:function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}}),J.fn.extend({has:function(e){var t=J(e,this),i=t.length;return this.filter(function(){for(var e=0;i>e;e++)if(J.contains(this,t[e]))return!0})},closest:function(e,t){for(var i,n=0,r=this.length,o=[],a=ot.test(e)||"string"!=typeof e?J(e,t||this.context):0;r>n;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(a?a.index(i)>-1:1===i.nodeType&&J.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(o.length>1?J.unique(o):o)},index:function(e){return e?"string"==typeof e?W.call(J(e),this[0]):W.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(J.unique(J.merge(this.get(),J(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),J.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return J.dir(e,"parentNode")},parentsUntil:function(e,t,i){return J.dir(e,"parentNode",i)},next:function(e){return r(e,"nextSibling")},prev:function(e){return r(e,"previousSibling")},nextAll:function(e){return J.dir(e,"nextSibling")},prevAll:function(e){return J.dir(e,"previousSibling")},nextUntil:function(e,t,i){return J.dir(e,"nextSibling",i)},prevUntil:function(e,t,i){return J.dir(e,"previousSibling",i)},siblings:function(e){return J.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return J.sibling(e.firstChild)},contents:function(e){return e.contentDocument||J.merge([],e.childNodes)}},function(e,t){J.fn[e]=function(i,n){var r=J.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=J.filter(n,r)),this.length>1&&(pt[e]||J.unique(r),ut.test(e)&&r.reverse()),this.pushStack(r)}});var ft=/\S+/g,dt={};J.Callbacks=function(e){e="string"==typeof e?dt[e]||o(e):J.extend({},e);var t,i,n,r,a,s,l=[],h=!e.once&&[],c=function(o){for(t=e.memory&&o,i=!0,s=r||0,r=0,a=l.length,n=!0;l&&a>s;s++)if(l[s].apply(o[0],o[1])===!1&&e.stopOnFalse){t=!1;break}n=!1,l&&(h?h.length&&c(h.shift()):t?l=[]:u.disable())},u={add:function(){if(l){var i=l.length;!function o(t){J.each(t,function(t,i){var n=J.type(i);"function"===n?e.unique&&u.has(i)||l.push(i):i&&i.length&&"string"!==n&&o(i)})}(arguments),n?a=l.length:t&&(r=i,c(t))}return this},remove:function(){return l&&J.each(arguments,function(e,t){for(var i;(i=J.inArray(t,l,i))>-1;)l.splice(i,1),n&&(a>=i&&a--,s>=i&&s--)}),this},has:function(e){return e?J.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],a=0,this},disable:function(){return l=h=t=void 0,this},disabled:function(){return!l},lock:function(){return h=void 0,t||u.disable(),this},locked:function(){return!h},fireWith:function(e,t){return!l||i&&!h||(t=t||[],t=[e,t.slice?t.slice():t],n?h.push(t):c(t)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},J.extend({Deferred:function(e){var t=[["resolve","done",J.Callbacks("once memory"),"resolved"],["reject","fail",J.Callbacks("once memory"),"rejected"],["notify","progress",J.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return J.Deferred(function(i){J.each(t,function(t,o){var a=J.isFunction(e[t])&&e[t];r[o[1]](function(){var e=a&&a.apply(this,arguments);e&&J.isFunction(e.promise)?e.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[o[0]+"With"](this===n?i.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?J.extend(e,n):n}},r={};return n.pipe=n.then,J.each(t,function(e,o){var a=o[2],s=o[3];n[o[1]]=a.add,s&&a.add(function(){i=s},t[1^e][2].disable,t[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?n:this,arguments),this},r[o[0]+"With"]=a.fireWith}),n.promise(r),e&&e.call(r,r),r},when:function(e){var t,i,n,r=0,o=B.call(arguments),a=o.length,s=1!==a||e&&J.isFunction(e.promise)?a:0,l=1===s?e:J.Deferred(),h=function(e,i,n){return function(r){i[e]=this,n[e]=arguments.length>1?B.call(arguments):r,n===t?l.notifyWith(i,n):--s||l.resolveWith(i,n)}};if(a>1)for(t=new Array(a),i=new Array(a),n=new Array(a);a>r;r++)o[r]&&J.isFunction(o[r].promise)?o[r].promise().done(h(r,n,o)).fail(l.reject).progress(h(r,i,t)):--s;return s||l.resolveWith(n,o),l.promise()}});var mt;J.fn.ready=function(e){return J.ready.promise().done(e),this},J.extend({isReady:!1,readyWait:1,holdReady:function(e){e?J.readyWait++:J.ready(!0)},ready:function(e){(e===!0?--J.readyWait:J.isReady)||(J.isReady=!0,e!==!0&&--J.readyWait>0||(mt.resolveWith(Q,[J]),J.fn.triggerHandler&&(J(Q).triggerHandler("ready"),J(Q).off("ready"))))}}),J.ready.promise=function(t){return mt||(mt=J.Deferred(),"complete"===Q.readyState?setTimeout(J.ready):(Q.addEventListener("DOMContentLoaded",a,!1),e.addEventListener("load",a,!1))),mt.promise(t)},J.ready.promise();var gt=J.access=function(e,t,i,n,r,o,a){var s=0,l=e.length,h=null==i;if("object"===J.type(i)){r=!0;for(s in i)J.access(e,t,s,i[s],!0,o,a)}else if(void 0!==n&&(r=!0,J.isFunction(n)||(a=!0),h&&(a?(t.call(e,n),t=null):(h=t,t=function(e,t,i){return h.call(J(e),i)})),t))for(;l>s;s++)t(e[s],i,a?n:n.call(e[s],s,t(e[s],i)));return r?e:h?t.call(e):l?t(e[0],i):o};J.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},s.uid=1,s.accepts=J.acceptData,s.prototype={key:function(e){if(!s.accepts(e))return 0;var t={},i=e[this.expando];if(!i){i=s.uid++;try{t[this.expando]={value:i},Object.defineProperties(e,t)}catch(n){t[this.expando]=i,J.extend(e,t)}}return this.cache[i]||(this.cache[i]={}),i},set:function(e,t,i){var n,r=this.key(e),o=this.cache[r];if("string"==typeof t)o[t]=i;else if(J.isEmptyObject(o))J.extend(this.cache[r],t);else for(n in t)o[n]=t[n];return o},get:function(e,t){var i=this.cache[this.key(e)];return void 0===t?i:i[t]},access:function(e,t,i){var n;return void 0===t||t&&"string"==typeof t&&void 0===i?(n=this.get(e,t),void 0!==n?n:this.get(e,J.camelCase(t))):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n,r,o=this.key(e),a=this.cache[o];if(void 0===t)this.cache[o]={};else{J.isArray(t)?n=t.concat(t.map(J.camelCase)):(r=J.camelCase(t),t in a?n=[t,r]:(n=r,n=n in a?[n]:n.match(ft)||[])),i=n.length;for(;i--;)delete a[n[i]]}},hasData:function(e){return!J.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var vt=new s,yt=new s,bt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,xt=/([A-Z])/g;J.extend({hasData:function(e){return yt.hasData(e)||vt.hasData(e)},data:function(e,t,i){return yt.access(e,t,i)},removeData:function(e,t){yt.remove(e,t)},_data:function(e,t,i){return vt.access(e,t,i)},_removeData:function(e,t){vt.remove(e,t)}}),J.fn.extend({data:function(e,t){var i,n,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=yt.get(o),1===o.nodeType&&!vt.get(o,"hasDataAttrs"))){for(i=a.length;i--;)a[i]&&(n=a[i].name,0===n.indexOf("data-")&&(n=J.camelCase(n.slice(5)),l(o,n,r[n])));vt.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){yt.set(this,e)}):gt(this,function(t){var i,n=J.camelCase(e);if(o&&void 0===t){if(i=yt.get(o,e),void 0!==i)return i;if(i=yt.get(o,n),void 0!==i)return i;if(i=l(o,n,void 0),void 0!==i)return i}else this.each(function(){var i=yt.get(this,n);yt.set(this,n,t),-1!==e.indexOf("-")&&void 0!==i&&yt.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){yt.remove(this,e)})}}),J.extend({queue:function(e,t,i){var n;return e?(t=(t||"fx")+"queue",n=vt.get(e,t),i&&(!n||J.isArray(i)?n=vt.access(e,t,J.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(e,t){t=t||"fx";var i=J.queue(e,t),n=i.length,r=i.shift(),o=J._queueHooks(e,t),a=function(){J.dequeue(e,t)};"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete o.stop,r.call(e,a,o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return vt.get(e,i)||vt.access(e,i,{empty:J.Callbacks("once memory").add(function(){vt.remove(e,[t+"queue",i])})})}}),J.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?J.queue(this[0],e):void 0===t?this:this.each(function(){var i=J.queue(this,e,t);J._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&J.dequeue(this,e)})},dequeue:function(e){return this.each(function(){J.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,r=J.Deferred(),o=this,a=this.length,s=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)i=vt.get(o[a],e+"queueHooks"),i&&i.empty&&(n++,i.empty.add(s));return s(),r.promise(t)}});var wt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,_t=["Top","Right","Bottom","Left"],St=function(e,t){return e=t||e,"none"===J.css(e,"display")||!J.contains(e.ownerDocument,e)},Mt=/^(?:checkbox|radio)$/i;!function(){var e=Q.createDocumentFragment(),t=e.appendChild(Q.createElement("div")),i=Q.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),t.appendChild(i),$.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",$.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Tt="undefined";$.focusinBubbles="onfocusin"in e;var Ct=/^key/,At=/^(?:mouse|pointer|contextmenu)|click/,Et=/^(?:focusinfocus|focusoutblur)$/,Pt=/^([^.]*)(?:\.(.+)|)$/;J.event={global:{},add:function(e,t,i,n,r){var o,a,s,l,h,c,u,p,f,d,m,g=vt.get(e);if(g)for(i.handler&&(o=i,i=o.handler,r=o.selector),i.guid||(i.guid=J.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(t){return typeof J!==Tt&&J.event.triggered!==t.type?J.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(ft)||[""],h=t.length;h--;)s=Pt.exec(t[h])||[],f=m=s[1],d=(s[2]||"").split(".").sort(),f&&(u=J.event.special[f]||{},f=(r?u.delegateType:u.bindType)||f,u=J.event.special[f]||{},c=J.extend({type:f,origType:m,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&J.expr.match.needsContext.test(r),namespace:d.join(".")},o),(p=l[f])||(p=l[f]=[],p.delegateCount=0,u.setup&&u.setup.call(e,n,d,a)!==!1||e.addEventListener&&e.addEventListener(f,a,!1)),u.add&&(u.add.call(e,c),c.handler.guid||(c.handler.guid=i.guid)),r?p.splice(p.delegateCount++,0,c):p.push(c),J.event.global[f]=!0)},remove:function(e,t,i,n,r){var o,a,s,l,h,c,u,p,f,d,m,g=vt.hasData(e)&&vt.get(e);if(g&&(l=g.events)){for(t=(t||"").match(ft)||[""],h=t.length;h--;)if(s=Pt.exec(t[h])||[],f=m=s[1],d=(s[2]||"").split(".").sort(),f){for(u=J.event.special[f]||{},f=(n?u.delegateType:u.bindType)||f,p=l[f]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!r&&m!==c.origType||i&&i.guid!==c.guid||s&&!s.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,u.remove&&u.remove.call(e,c));a&&!p.length&&(u.teardown&&u.teardown.call(e,d,g.handle)!==!1||J.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)J.event.remove(e,f+t[h],i,n,!0);J.isEmptyObject(l)&&(delete g.handle,vt.remove(e,"events"))}},trigger:function(t,i,n,r){var o,a,s,l,h,c,u,p=[n||Q],f=K.call(t,"type")?t.type:t,d=K.call(t,"namespace")?t.namespace.split("."):[];if(a=s=n=n||Q,3!==n.nodeType&&8!==n.nodeType&&!Et.test(f+J.event.triggered)&&(f.indexOf(".")>=0&&(d=f.split("."),f=d.shift(),d.sort()),h=f.indexOf(":")<0&&"on"+f,t=t[J.expando]?t:new J.Event(f,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=d.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),i=null==i?[t]:J.makeArray(i,[t]),u=J.event.special[f]||{},r||!u.trigger||u.trigger.apply(n,i)!==!1)){if(!r&&!u.noBubble&&!J.isWindow(n)){for(l=u.delegateType||f,Et.test(l+f)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||Q)&&p.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)t.type=o>1?l:u.bindType||f,c=(vt.get(a,"events")||{})[t.type]&&vt.get(a,"handle"),c&&c.apply(a,i),c=h&&a[h],c&&c.apply&&J.acceptData(a)&&(t.result=c.apply(a,i),t.result===!1&&t.preventDefault());return t.type=f,r||t.isDefaultPrevented()||u._default&&u._default.apply(p.pop(),i)!==!1||!J.acceptData(n)||h&&J.isFunction(n[f])&&!J.isWindow(n)&&(s=n[h],s&&(n[h]=null),J.event.triggered=f,n[f](),J.event.triggered=void 0,s&&(n[h]=s)),t.result}},dispatch:function(e){e=J.event.fix(e);var t,i,n,r,o,a=[],s=B.call(arguments),l=(vt.get(this,"events")||{})[e.type]||[],h=J.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!h.preDispatch||h.preDispatch.call(this,e)!==!1){for(a=J.event.handlers.call(this,e,l),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,i=0;(o=r.handlers[i++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(o.namespace))&&(e.handleObj=o,e.data=o.data,n=((J.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s),void 0!==n&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,n,r,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!==this;l=l.parentNode||this)if(l.disabled!==!0||"click"!==e.type){for(n=[],i=0;s>i;i++)o=t[i],r=o.selector+" ",void 0===n[r]&&(n[r]=o.needsContext?J(r,this).index(l)>=0:J.find(r,this,null,[l]).length),n[r]&&n.push(o);n.length&&a.push({elem:l,handlers:n})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var i,n,r,o=t.button;return null==e.pageX&&null!=t.clientX&&(i=e.target.ownerDocument||Q,n=i.documentElement,r=i.body,e.pageX=t.clientX+(n&&n.scrollLeft||r&&r.scrollLeft||0)-(n&&n.clientLeft||r&&r.clientLeft||0),e.pageY=t.clientY+(n&&n.scrollTop||r&&r.scrollTop||0)-(n&&n.clientTop||r&&r.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[J.expando])return e;var t,i,n,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=At.test(r)?this.mouseHooks:Ct.test(r)?this.keyHooks:{}),n=a.props?this.props.concat(a.props):this.props,e=new J.Event(o),t=n.length;t--;)i=n[t],e[i]=o[i];return e.target||(e.target=Q),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==u()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===u()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&J.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return J.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,i,n){var r=J.extend(new J.Event,i,{type:e,isSimulated:!0,originalEvent:{}});n?J.event.trigger(r,null,t):J.event.dispatch.call(t,r),r.isDefaultPrevented()&&i.preventDefault()}},J.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i,!1)},J.Event=function(e,t){return this instanceof J.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?h:c):this.type=e,t&&J.extend(this,t),this.timeStamp=e&&e.timeStamp||J.now(),void(this[J.expando]=!0)):new J.Event(e,t)},J.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=h,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=h,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=h,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},J.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){J.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=this,r=e.relatedTarget,o=e.handleObj;return(!r||r!==n&&!J.contains(n,r))&&(e.type=o.origType,i=o.handler.apply(this,arguments),e.type=t),i}}}),$.focusinBubbles||J.each({focus:"focusin",blur:"focusout"},function(e,t){var i=function(e){J.event.simulate(t,e.target,J.event.fix(e),!0)};J.event.special[t]={setup:function(){var n=this.ownerDocument||this,r=vt.access(n,t);r||n.addEventListener(e,i,!0),vt.access(n,t,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=vt.access(n,t)-1;r?vt.access(n,t,r):(n.removeEventListener(e,i,!0),vt.remove(n,t))}}}),J.fn.extend({on:function(e,t,i,n,r){var o,a;if("object"==typeof e){"string"!=typeof t&&(i=i||t,t=void 0);for(a in e)this.on(a,t,i,e[a],r);return this}if(null==i&&null==n?(n=t,i=t=void 0):null==n&&("string"==typeof t?(n=i,i=void 0):(n=i,i=t,t=void 0)),n===!1)n=c;else if(!n)return this;return 1===r&&(o=n,n=function(e){return J().off(e),o.apply(this,arguments)},n.guid=o.guid||(o.guid=J.guid++)),this.each(function(){J.event.add(this,e,n,i,t)})},one:function(e,t,i,n){return this.on(e,t,i,n,1)},off:function(e,t,i){var n,r;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,J(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return(t===!1||"function"==typeof t)&&(i=t,t=void 0),i===!1&&(i=c),this.each(function(){J.event.remove(this,e,i,t)})},trigger:function(e,t){return this.each(function(){J.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];return i?J.event.trigger(e,t,i,!0):void 0}});var kt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Rt=/<([\w:]+)/,Lt=/<|&#?\w+;/,Dt=/<(?:script|style|link)/i,Ft=/checked\s*(?:[^=]|=\s*.checked.)/i,Nt=/^$|\/(?:java|ecma)script/i,Gt=/^true\/(.*)/,Vt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ot={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ot.optgroup=Ot.option,Ot.tbody=Ot.tfoot=Ot.colgroup=Ot.caption=Ot.thead,Ot.th=Ot.td,J.extend({clone:function(e,t,i){var n,r,o,a,s=e.cloneNode(!0),l=J.contains(e.ownerDocument,e);if(!($.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||J.isXMLDoc(e)))for(a=v(s),o=v(e),n=0,r=o.length;r>n;n++)y(o[n],a[n]);if(t)if(i)for(o=o||v(e),a=a||v(s),n=0,r=o.length;r>n;n++)g(o[n],a[n]);else g(e,s);return a=v(s,"script"),a.length>0&&m(a,!l&&v(e,"script")),s},buildFragment:function(e,t,i,n){for(var r,o,a,s,l,h,c=t.createDocumentFragment(),u=[],p=0,f=e.length;f>p;p++)if(r=e[p],r||0===r)if("object"===J.type(r))J.merge(u,r.nodeType?[r]:r);else if(Lt.test(r)){for(o=o||c.appendChild(t.createElement("div")),a=(Rt.exec(r)||["",""])[1].toLowerCase(),s=Ot[a]||Ot._default,o.innerHTML=s[1]+r.replace(kt,"<$1></$2>")+s[2],h=s[0];h--;)o=o.lastChild;J.merge(u,o.childNodes),o=c.firstChild,o.textContent=""}else u.push(t.createTextNode(r));for(c.textContent="",p=0;r=u[p++];)if((!n||-1===J.inArray(r,n))&&(l=J.contains(r.ownerDocument,r),o=v(c.appendChild(r),"script"),l&&m(o),i))for(h=0;r=o[h++];)Nt.test(r.type||"")&&i.push(r);return c},cleanData:function(e){for(var t,i,n,r,o=J.event.special,a=0;void 0!==(i=e[a]);a++){if(J.acceptData(i)&&(r=i[vt.expando],r&&(t=vt.cache[r]))){if(t.events)for(n in t.events)o[n]?J.event.remove(i,n):J.removeEvent(i,n,t.handle);vt.cache[r]&&delete vt.cache[r]}delete yt.cache[i[yt.expando]]}}}),J.fn.extend({text:function(e){return gt(this,function(e){return void 0===e?J.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=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=p(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=p(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 i,n=e?J.filter(e,this):this,r=0;null!=(i=n[r]);r++)t||1!==i.nodeType||J.cleanData(v(i)),i.parentNode&&(t&&J.contains(i.ownerDocument,i)&&m(v(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(J.cleanData(v(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return J.clone(this,e,t)})},html:function(e){return gt(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Dt.test(e)&&!Ot[(Rt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(kt,"<$1></$2>");try{for(;n>i;i++)t=this[i]||{},1===t.nodeType&&(J.cleanData(v(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,J.cleanData(v(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=H.apply([],e);var i,n,r,o,a,s,l=0,h=this.length,c=this,u=h-1,p=e[0],m=J.isFunction(p);if(m||h>1&&"string"==typeof p&&!$.checkClone&&Ft.test(p))return this.each(function(i){var n=c.eq(i);m&&(e[0]=p.call(this,i,n.html())),n.domManip(e,t)});if(h&&(i=J.buildFragment(e,this[0].ownerDocument,!1,this),n=i.firstChild,1===i.childNodes.length&&(i=n),n)){for(r=J.map(v(i,"script"),f),o=r.length;h>l;l++)a=i,l!==u&&(a=J.clone(a,!0,!0),o&&J.merge(r,v(a,"script"))),t.call(this[l],a,l);if(o)for(s=r[r.length-1].ownerDocument,J.map(r,d),l=0;o>l;l++)a=r[l],Nt.test(a.type||"")&&!vt.access(a,"globalEval")&&J.contains(s,a)&&(a.src?J._evalUrl&&J._evalUrl(a.src):J.globalEval(a.textContent.replace(Vt,"")))}return this}}),J.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){J.fn[e]=function(e){for(var i,n=[],r=J(e),o=r.length-1,a=0;o>=a;a++)i=a===o?this:this.clone(!0),J(r[a])[t](i),q.apply(n,i.get());return this.pushStack(n)}});var jt,Ut={},It=/^margin/,zt=new RegExp("^("+wt+")(?!px)[a-z%]+$","i"),Bt=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)};!function(){function t(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",a.innerHTML="",r.appendChild(o);var t=e.getComputedStyle(a,null);i="1%"!==t.top,n="4px"===t.width,r.removeChild(o)}var i,n,r=Q.documentElement,o=Q.createElement("div"),a=Q.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",$.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(a),e.getComputedStyle&&J.extend($,{pixelPosition:function(){return t(),i},boxSizingReliable:function(){return null==n&&t(),n},reliableMarginRight:function(){var t,i=a.appendChild(Q.createElement("div"));return i.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",a.style.width="1px",r.appendChild(o),t=!parseFloat(e.getComputedStyle(i,null).marginRight),r.removeChild(o),t}}))}(),J.swap=function(e,t,i,n){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];r=i.apply(e,n||[]);for(o in t)e.style[o]=a[o];return r};var Ht=/^(none|table(?!-c[ea]).+)/,qt=new RegExp("^("+wt+")(.*)$","i"),Wt=new RegExp("^([+-])=("+wt+")","i"),Xt={position:"absolute",visibility:"hidden",display:"block"},Yt={letterSpacing:"0",fontWeight:"400"},Kt=["Webkit","O","Moz","ms"];J.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=w(e,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=J.camelCase(t),l=e.style;return t=J.cssProps[s]||(J.cssProps[s]=S(l,s)),a=J.cssHooks[t]||J.cssHooks[s],void 0===i?a&&"get"in a&&void 0!==(r=a.get(e,!1,n))?r:l[t]:(o=typeof i,"string"===o&&(r=Wt.exec(i))&&(i=(r[1]+1)*r[2]+parseFloat(J.css(e,t)),o="number"),null!=i&&i===i&&("number"!==o||J.cssNumber[s]||(i+="px"),$.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(i=a.set(e,i,n))||(l[t]=i)),void 0)}},css:function(e,t,i,n){var r,o,a,s=J.camelCase(t);return t=J.cssProps[s]||(J.cssProps[s]=S(e.style,s)),a=J.cssHooks[t]||J.cssHooks[s],a&&"get"in a&&(r=a.get(e,!0,i)),void 0===r&&(r=w(e,t,n)),"normal"===r&&t in Yt&&(r=Yt[t]),""===i||i?(o=parseFloat(r),i===!0||J.isNumeric(o)?o||0:r):r}}),J.each(["height","width"],function(e,t){J.cssHooks[t]={get:function(e,i,n){return i?Ht.test(J.css(e,"display"))&&0===e.offsetWidth?J.swap(e,Xt,function(){return C(e,t,n)}):C(e,t,n):void 0},set:function(e,i,n){var r=n&&Bt(e);return M(e,i,n?T(e,t,n,"border-box"===J.css(e,"boxSizing",!1,r),r):0)}}}),J.cssHooks.marginRight=_($.reliableMarginRight,function(e,t){return t?J.swap(e,{display:"inline-block"},w,[e,"marginRight"]):void 0}),J.each({margin:"",padding:"",border:"Width"},function(e,t){J.cssHooks[e+t]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];4>n;n++)r[e+_t[n]+t]=o[n]||o[n-2]||o[0];return r}},It.test(e)||(J.cssHooks[e+t].set=M)}),J.fn.extend({css:function(e,t){return gt(this,function(e,t,i){var n,r,o={},a=0;if(J.isArray(t)){for(n=Bt(e),r=t.length;r>a;a++)o[t[a]]=J.css(e,t[a],!1,n);return o}return void 0!==i?J.style(e,t,i):J.css(e,t)},e,t,arguments.length>1)},show:function(){return A(this,!0)},hide:function(){return A(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){St(this)?J(this).show():J(this).hide()})}}),J.Tween=E,E.prototype={constructor:E,init:function(e,t,i,n,r,o){this.elem=e,this.prop=i,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(J.cssNumber[i]?"":"px")},cur:function(){var e=E.propHooks[this.prop];return e&&e.get?e.get(this):E.propHooks._default.get(this)},run:function(e){var t,i=E.propHooks[this.prop];return this.pos=t=this.options.duration?J.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),i&&i.set?i.set(this):E.propHooks._default.set(this),this}},E.prototype.init.prototype=E.prototype,E.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=J.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){J.fx.step[e.prop]?J.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[J.cssProps[e.prop]]||J.cssHooks[e.prop])?J.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},E.propHooks.scrollTop=E.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},J.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},J.fx=E.prototype.init,J.fx.step={};var $t,Qt,Zt=/^(?:toggle|show|hide)$/,Jt=new RegExp("^(?:([+-])=|)("+wt+")([a-z%]*)$","i"),ei=/queueHooks$/,ti=[L],ii={"*":[function(e,t){var i=this.createTween(e,t),n=i.cur(),r=Jt.exec(t),o=r&&r[3]||(J.cssNumber[e]?"":"px"),a=(J.cssNumber[e]||"px"!==o&&+n)&&Jt.exec(J.css(i.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],r=r||[],a=+n||1;do s=s||".5",a/=s,J.style(i.elem,e,a+o);while(s!==(s=i.cur()/n)&&1!==s&&--l)}return r&&(a=i.start=+a||+n||0,i.unit=o,i.end=r[1]?a+(r[1]+1)*r[2]:+r[2]),i}]};J.Animation=J.extend(F,{tweener:function(e,t){J.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var i,n=0,r=e.length;r>n;n++)i=e[n],ii[i]=ii[i]||[],ii[i].unshift(t)},prefilter:function(e,t){t?ti.unshift(e):ti.push(e)}}),J.speed=function(e,t,i){var n=e&&"object"==typeof e?J.extend({},e):{complete:i||!i&&t||J.isFunction(e)&&e,duration:e,easing:i&&t||t&&!J.isFunction(t)&&t};return n.duration=J.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in J.fx.speeds?J.fx.speeds[n.duration]:J.fx.speeds._default,(null==n.queue||n.queue===!0)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){J.isFunction(n.old)&&n.old.call(this),n.queue&&J.dequeue(this,n.queue)},n},J.fn.extend({fadeTo:function(e,t,i,n){return this.filter(St).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var r=J.isEmptyObject(e),o=J.speed(t,i,n),a=function(){var t=F(this,J.extend({},e),o);(r||vt.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",o=J.timers,a=vt.get(this);if(r)a[r]&&a[r].stop&&n(a[r]);else for(r in a)a[r]&&a[r].stop&&ei.test(r)&&n(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(i),t=!1,o.splice(r,1));(t||!i)&&J.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,i=vt.get(this),n=i[e+"queue"],r=i[e+"queueHooks"],o=J.timers,a=n?n.length:0;for(i.finish=!0,J.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish})}}),J.each(["toggle","show","hide"],function(e,t){var i=J.fn[t];J.fn[t]=function(e,n,r){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(k(t,!0),e,n,r)}}),J.each({slideDown:k("show"),slideUp:k("hide"),slideToggle:k("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){J.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}}),J.timers=[],J.fx.tick=function(){var e,t=0,i=J.timers;for($t=J.now();t<i.length;t++)e=i[t],e()||i[t]!==e||i.splice(t--,1);i.length||J.fx.stop(),$t=void 0},J.fx.timer=function(e){J.timers.push(e),e()?J.fx.start():J.timers.pop()},J.fx.interval=13,J.fx.start=function(){Qt||(Qt=setInterval(J.fx.tick,J.fx.interval))},J.fx.stop=function(){clearInterval(Qt),Qt=null},J.fx.speeds={slow:600,fast:200,_default:400},J.fn.delay=function(e,t){return e=J.fx?J.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,i){var n=setTimeout(t,e);i.stop=function(){clearTimeout(n)}})},function(){var e=Q.createElement("input"),t=Q.createElement("select"),i=t.appendChild(Q.createElement("option"));e.type="checkbox",$.checkOn=""!==e.value,$.optSelected=i.selected,t.disabled=!0,$.optDisabled=!i.disabled,e=Q.createElement("input"),e.value="t",e.type="radio",$.radioValue="t"===e.value}();var ni,ri,oi=J.expr.attrHandle;J.fn.extend({attr:function(e,t){return gt(this,J.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){J.removeAttr(this,e)})}}),J.extend({attr:function(e,t,i){var n,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===Tt?J.prop(e,t,i):(1===o&&J.isXMLDoc(e)||(t=t.toLowerCase(),n=J.attrHooks[t]||(J.expr.match.bool.test(t)?ri:ni)),void 0===i?n&&"get"in n&&null!==(r=n.get(e,t))?r:(r=J.find.attr(e,t),null==r?void 0:r):null!==i?n&&"set"in n&&void 0!==(r=n.set(e,i,t))?r:(e.setAttribute(t,i+""),i):void J.removeAttr(e,t))},removeAttr:function(e,t){var i,n,r=0,o=t&&t.match(ft);if(o&&1===e.nodeType)for(;i=o[r++];)n=J.propFix[i]||i,J.expr.match.bool.test(i)&&(e[n]=!1),e.removeAttribute(i)},attrHooks:{type:{set:function(e,t){if(!$.radioValue&&"radio"===t&&J.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}}}),ri={set:function(e,t,i){return t===!1?J.removeAttr(e,i):e.setAttribute(i,i),i}},J.each(J.expr.match.bool.source.match(/\w+/g),function(e,t){var i=oi[t]||J.find.attr;oi[t]=function(e,t,n){var r,o;return n||(o=oi[t],oi[t]=r,r=null!=i(e,t,n)?t.toLowerCase():null,oi[t]=o),r}});var ai=/^(?:input|select|textarea|button)$/i;J.fn.extend({prop:function(e,t){return gt(this,J.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[J.propFix[e]||e]})}}),J.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,i){var n,r,o,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return o=1!==a||!J.isXMLDoc(e),o&&(t=J.propFix[t]||t,r=J.propHooks[t]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||ai.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),$.optSelected||(J.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),J.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){J.propFix[this.toLowerCase()]=this});var si=/[\t\r\n\f]/g;J.fn.extend({addClass:function(e){var t,i,n,r,o,a,s="string"==typeof e&&e,l=0,h=this.length;if(J.isFunction(e))return this.each(function(t){J(this).addClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match(ft)||[];h>l;l++)if(i=this[l],n=1===i.nodeType&&(i.className?(" "+i.className+" ").replace(si," "):" ")){for(o=0;r=t[o++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=J.trim(n),i.className!==a&&(i.className=a)}return this},removeClass:function(e){var t,i,n,r,o,a,s=0===arguments.length||"string"==typeof e&&e,l=0,h=this.length;if(J.isFunction(e))return this.each(function(t){J(this).removeClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match(ft)||[];h>l;l++)if(i=this[l],n=1===i.nodeType&&(i.className?(" "+i.className+" ").replace(si," "):"")){for(o=0;r=t[o++];)for(;n.indexOf(" "+r+" ")>=0;)n=n.replace(" "+r+" "," ");a=e?J.trim(n):"",i.className!==a&&(i.className=a)}return this},toggleClass:function(e,t){var i=typeof e;return"boolean"==typeof t&&"string"===i?t?this.addClass(e):this.removeClass(e):this.each(J.isFunction(e)?function(i){J(this).toggleClass(e.call(this,i,this.className,t),t)}:function(){if("string"===i)for(var t,n=0,r=J(this),o=e.match(ft)||[];t=o[n++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else(i===Tt||"boolean"===i)&&(this.className&&vt.set(this,"__className__",this.className),this.className=this.className||e===!1?"":vt.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(si," ").indexOf(t)>=0)return!0;return!1}});var li=/\r/g;J.fn.extend({val:function(e){var t,i,n,r=this[0];{if(arguments.length)return n=J.isFunction(e),this.each(function(i){var r;1===this.nodeType&&(r=n?e.call(this,i,J(this).val()):e,null==r?r="":"number"==typeof r?r+="":J.isArray(r)&&(r=J.map(r,function(e){return null==e?"":e+""})),t=J.valHooks[this.type]||J.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))});if(r)return t=J.valHooks[r.type]||J.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(i=t.get(r,"value"))?i:(i=r.value,"string"==typeof i?i.replace(li,""):null==i?"":i)}}}),J.extend({valHooks:{option:{get:function(e){var t=J.find.attr(e,"value");return null!=t?t:J.trim(J.text(e))}},select:{get:function(e){for(var t,i,n=e.options,r=e.selectedIndex,o="select-one"===e.type||0>r,a=o?null:[],s=o?r+1:n.length,l=0>r?s:o?r:0;s>l;l++)if(i=n[l],!(!i.selected&&l!==r||($.optDisabled?i.disabled:null!==i.getAttribute("disabled"))||i.parentNode.disabled&&J.nodeName(i.parentNode,"optgroup"))){if(t=J(i).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var i,n,r=e.options,o=J.makeArray(t),a=r.length;a--;)n=r[a],(n.selected=J.inArray(n.value,o)>=0)&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),J.each(["radio","checkbox"],function(){J.valHooks[this]={set:function(e,t){return J.isArray(t)?e.checked=J.inArray(J(e).val(),t)>=0:void 0}},$.checkOn||(J.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),J.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){J.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}),J.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}});var hi=J.now(),ci=/\?/;J.parseJSON=function(e){return JSON.parse(e+"")},J.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{i=new DOMParser,t=i.parseFromString(e,"text/xml")}catch(n){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&J.error("Invalid XML: "+e),t};var ui,pi,fi=/#.*$/,di=/([?&])_=[^&]*/,mi=/^(.*?):[ \t]*([^\r\n]*)$/gm,gi=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,vi=/^(?:GET|HEAD)$/,yi=/^\/\//,bi=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,xi={},wi={},_i="*/".concat("*");try{pi=location.href}catch(Si){pi=Q.createElement("a"),pi.href="",pi=pi.href}ui=bi.exec(pi.toLowerCase())||[],J.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pi,type:"GET",isLocal:gi.test(ui[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":_i,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":J.parseJSON,"text xml":J.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?V(V(e,J.ajaxSettings),t):V(J.ajaxSettings,e)},ajaxPrefilter:N(xi),ajaxTransport:N(wi),ajax:function(e,t){function i(e,t,i,a){var l,c,v,y,x,_=t;2!==b&&(b=2,s&&clearTimeout(s),n=void 0,o=a||"",w.readyState=e>0?4:0,l=e>=200&&300>e||304===e,i&&(y=O(u,w,i)),y=j(u,y,w,l),l?(u.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(J.lastModified[r]=x),x=w.getResponseHeader("etag"),x&&(J.etag[r]=x)),204===e||"HEAD"===u.type?_="nocontent":304===e?_="notmodified":(_=y.state,c=y.data,v=y.error,l=!v)):(v=_,(e||!_)&&(_="error",0>e&&(e=0))),w.status=e,w.statusText=(t||_)+"",l?d.resolveWith(p,[c,_,w]):d.rejectWith(p,[w,_,v]),w.statusCode(g),g=void 0,h&&f.trigger(l?"ajaxSuccess":"ajaxError",[w,u,l?c:v]),m.fireWith(p,[w,_]),h&&(f.trigger("ajaxComplete",[w,u]),--J.active||J.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,o,a,s,l,h,c,u=J.ajaxSetup({},t),p=u.context||u,f=u.context&&(p.nodeType||p.jquery)?J(p):J.event,d=J.Deferred(),m=J.Callbacks("once memory"),g=u.statusCode||{},v={},y={},b=0,x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!a)for(a={};t=mi.exec(o);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(e,t){var i=e.toLowerCase();return b||(e=y[i]=y[i]||e,v[e]=t),this},overrideMimeType:function(e){return b||(u.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)g[t]=[g[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||x;return n&&n.abort(t),i(0,t),this}};if(d.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,u.url=((e||u.url||pi)+"").replace(fi,"").replace(yi,ui[1]+"//"),u.type=t.method||t.type||u.method||u.type,u.dataTypes=J.trim(u.dataType||"*").toLowerCase().match(ft)||[""],null==u.crossDomain&&(l=bi.exec(u.url.toLowerCase()),u.crossDomain=!(!l||l[1]===ui[1]&&l[2]===ui[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(ui[3]||("http:"===ui[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=J.param(u.data,u.traditional)),G(xi,u,t,w),2===b)return w;h=u.global,h&&0===J.active++&&J.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!vi.test(u.type),r=u.url,u.hasContent||(u.data&&(r=u.url+=(ci.test(r)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=di.test(r)?r.replace(di,"$1_="+hi++):r+(ci.test(r)?"&":"?")+"_="+hi++)),u.ifModified&&(J.lastModified[r]&&w.setRequestHeader("If-Modified-Since",J.lastModified[r]),J.etag[r]&&w.setRequestHeader("If-None-Match",J.etag[r])),(u.data&&u.hasContent&&u.contentType!==!1||t.contentType)&&w.setRequestHeader("Content-Type",u.contentType),w.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+_i+"; q=0.01":""):u.accepts["*"]);for(c in u.headers)w.setRequestHeader(c,u.headers[c]);if(u.beforeSend&&(u.beforeSend.call(p,w,u)===!1||2===b))return w.abort();x="abort";for(c in{success:1,error:1,complete:1})w[c](u[c]);if(n=G(wi,u,t,w)){w.readyState=1,h&&f.trigger("ajaxSend",[w,u]),u.async&&u.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},u.timeout));try{b=1,n.send(v,i)}catch(_){if(!(2>b))throw _;i(-1,_)}}else i(-1,"No Transport");return w},getJSON:function(e,t,i){return J.get(e,t,i,"json")},getScript:function(e,t){return J.get(e,void 0,t,"script")}}),J.each(["get","post"],function(e,t){J[t]=function(e,i,n,r){return J.isFunction(i)&&(r=r||n,n=i,i=void 0),J.ajax({url:e,type:t,dataType:r,data:i,success:n})}}),J.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){J.fn[t]=function(e){return this.on(t,e)}}),J._evalUrl=function(e){return J.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},J.fn.extend({wrapAll:function(e){var t;return J.isFunction(e)?this.each(function(t){J(this).wrapAll(e.call(this,t))}):(this[0]&&(t=J(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return this.each(J.isFunction(e)?function(t){J(this).wrapInner(e.call(this,t))}:function(){var t=J(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=J.isFunction(e);return this.each(function(i){J(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(){return this.parent().each(function(){J.nodeName(this,"body")||J(this).replaceWith(this.childNodes)}).end()}}),J.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},J.expr.filters.visible=function(e){return!J.expr.filters.hidden(e)};var Mi=/%20/g,Ti=/\[\]$/,Ci=/\r?\n/g,Ai=/^(?:submit|button|image|reset|file)$/i,Ei=/^(?:input|select|textarea|keygen)/i;J.param=function(e,t){var i,n=[],r=function(e,t){t=J.isFunction(t)?t():null==t?"":t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=J.ajaxSettings&&J.ajaxSettings.traditional),J.isArray(e)||e.jquery&&!J.isPlainObject(e))J.each(e,function(){r(this.name,this.value)});else for(i in e)U(i,e[i],t,r);return n.join("&").replace(Mi,"+")},J.fn.extend({serialize:function(){return J.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=J.prop(this,"elements");return e?J.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!J(this).is(":disabled")&&Ei.test(this.nodeName)&&!Ai.test(e)&&(this.checked||!Mt.test(e))}).map(function(e,t){var i=J(this).val();return null==i?null:J.isArray(i)?J.map(i,function(e){return{name:t.name,value:e.replace(Ci,"\r\n")}}):{name:t.name,value:i.replace(Ci,"\r\n")}}).get()}}),J.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var Pi=0,ki={},Ri={0:200,1223:204},Li=J.ajaxSettings.xhr();e.ActiveXObject&&J(e).on("unload",function(){for(var e in ki)ki[e]()}),$.cors=!!Li&&"withCredentials"in Li,$.ajax=Li=!!Li,J.ajaxTransport(function(e){var t;return $.cors||Li&&!e.crossDomain?{send:function(i,n){var r,o=e.xhr(),a=++Pi;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)o[r]=e.xhrFields[r];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(r in i)o.setRequestHeader(r,i[r]);t=function(e){return function(){t&&(delete ki[a],t=o.onload=o.onerror=null,"abort"===e?o.abort():"error"===e?n(o.status,o.statusText):n(Ri[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=t(),o.onerror=t("error"),t=ki[a]=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(s){if(t)throw s}},abort:function(){t&&t()}}:void 0}),J.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return J.globalEval(e),e}}}),J.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),J.ajaxTransport("script",function(e){if(e.crossDomain){var t,i;return{send:function(n,r){t=J("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&r("error"===e.type?404:200,e.type)}),Q.head.appendChild(t[0])},abort:function(){i&&i()}}}});var Di=[],Fi=/(=)\?(?=&|$)|\?\?/;J.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Di.pop()||J.expando+"_"+hi++;return this[e]=!0,e}}),J.ajaxPrefilter("json jsonp",function(t,i,n){var r,o,a,s=t.jsonp!==!1&&(Fi.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Fi.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=J.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Fi,"$1"+r):t.jsonp!==!1&&(t.url+=(ci.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||J.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){a=arguments},n.always(function(){e[r]=o,t[r]&&(t.jsonpCallback=i.jsonpCallback,Di.push(r)),a&&J.isFunction(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),J.parseHTML=function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||Q;var n=at.exec(e),r=!i&&[];return n?[t.createElement(n[1])]:(n=J.buildFragment([e],t,r),r&&r.length&&J(r).remove(),J.merge([],n.childNodes))};var Ni=J.fn.load;J.fn.load=function(e,t,i){if("string"!=typeof e&&Ni)return Ni.apply(this,arguments);var n,r,o,a=this,s=e.indexOf(" ");return s>=0&&(n=J.trim(e.slice(s)),e=e.slice(0,s)),J.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&J.ajax({url:e,type:r,dataType:"html",data:t}).done(function(e){o=arguments,a.html(n?J("<div>").append(J.parseHTML(e)).find(n):e)}).complete(i&&function(e,t){a.each(i,o||[e.responseText,t,e])}),this},J.expr.filters.animated=function(e){return J.grep(J.timers,function(t){return e===t.elem}).length};var Gi=e.document.documentElement;J.offset={setOffset:function(e,t,i){var n,r,o,a,s,l,h,c=J.css(e,"position"),u=J(e),p={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=J.css(e,"top"),l=J.css(e,"left"),h=("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1,h?(n=u.position(),a=n.top,r=n.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),J.isFunction(t)&&(t=t.call(e,i,s)),null!=t.top&&(p.top=t.top-s.top+a),null!=t.left&&(p.left=t.left-s.left+r),"using"in t?t.using.call(e,p):u.css(p)}},J.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){J.offset.setOffset(this,e,t)});var t,i,n=this[0],r={top:0,left:0},o=n&&n.ownerDocument;if(o)return t=o.documentElement,J.contains(t,n)?(typeof n.getBoundingClientRect!==Tt&&(r=n.getBoundingClientRect()),i=I(o),{top:r.top+i.pageYOffset-t.clientTop,left:r.left+i.pageXOffset-t.clientLeft}):r},position:function(){if(this[0]){var e,t,i=this[0],n={top:0,left:0};return"fixed"===J.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),J.nodeName(e[0],"html")||(n=e.offset()),n.top+=J.css(e[0],"borderTopWidth",!0),n.left+=J.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-J.css(i,"marginTop",!0),left:t.left-n.left-J.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Gi;e&&!J.nodeName(e,"html")&&"static"===J.css(e,"position");)e=e.offsetParent;return e||Gi})}}),J.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var n="pageYOffset"===i;J.fn[t]=function(r){return gt(this,function(t,r,o){var a=I(t);return void 0===o?a?a[i]:t[r]:void(a?a.scrollTo(n?e.pageXOffset:o,n?o:e.pageYOffset):t[r]=o)},t,r,arguments.length,null)}}),J.each(["top","left"],function(e,t){J.cssHooks[t]=_($.pixelPosition,function(e,i){return i?(i=w(e,t),zt.test(i)?J(e).position()[t]+"px":i):void 0})}),J.each({Height:"height",Width:"width"},function(e,t){J.each({padding:"inner"+e,content:t,"":"outer"+e},function(i,n){J.fn[n]=function(n,r){var o=arguments.length&&(i||"boolean"!=typeof n),a=i||(n===!0||r===!0?"margin":"border");return gt(this,function(t,i,n){var r;return J.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===n?J.css(t,i,a):J.style(t,i,n,a)},t,o?n:void 0,o,null)}})}),J.fn.size=function(){return this.length},J.fn.andSelf=J.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return J});var Vi=e.jQuery,Oi=e.$;return J.noConflict=function(t){return e.$===J&&(e.$=Oi),t&&e.jQuery===J&&(e.jQuery=Vi),J},typeof t===Tt&&(e.jQuery=e.$=J),J})},{}],54:[function(e,t){t.exports=function(e){var t=e.Interface,i={hasPageButtons:!1,layout:{bounds:[0,0,1,1],widget:null,sacrosanct:!1,parent:null,id:0,children:[]},getBestChildForNewWidget:function(e){function t(e){if(0===e.children.length)null===e.widget?e.bounds[2]+e.bounds[3]>i&&(n=e,i=e.bounds[2]+e.bounds[3]):(e.bounds[2]+e.bounds[3])/2>i&&(n=e,i=(e.bounds[2]+e.bounds[3])/2);else for(var r=0;r<e.children.length;r++){var o=e.children[r];t(o,i)}}var i=0;e=0;var n=this.layout;return t(n),n},placeWidget:function(e,t){null===e&&console.log("ALERT ALERT ALERT ALERT ALERT ALERT ALERT ALERT ALERT ALERT ALERT ALERT");var i=null;if(i=this.getBestChildForNewWidget(0),null===i.widget)i.widget=e,e.bounds=i.bounds,e.div=i;else{var n,r,o=i.widget,a=i.bounds[2]>i.bounds[3]?0:1;n=0==a?i.bounds[2]/2:i.bounds[2],r=1==a?i.bounds[3]/2:i.bounds[3];var s={bounds:[i.bounds[0],i.bounds[1],n,r],widget:o,sacrosanct:!1,parent:i,children:[]},l=0==a?i.bounds[0]+n:i.bounds[0],h=1==a?i.bounds[1]+r:i.bounds[1],c={bounds:[l,h,n,r],widget:e,sacrosanct:t,parent:i,children:[]};s.widget.div=s,s.widget.bounds=s.bounds,c.widget.bounds=c.bounds,c.widget.div=c,i.children.push(s),i.children.push(c),i.widget=null}},removeWidget:function(e){e.div.widget=null;var t=e.div.parent;if(null!==t){var i=jQuery.inArray(e.div,t.children),n=1===i?0:1;null===t.children[n].widget&&(t.children=[],t.widget=null)}else e.div.children=[];this.redoLayout()},reset:function(){this.layout={bounds:[0,0,1,1],widget:null,sacrosanct:!1,parent:null,id:0,children:[]}},redoLayout:function(){this.layout={bounds:[0,0,1,1],widget:null,sacrosanct:!1,parent:null,id:0,children:[]};for(var e=0;e<t.panel.children.length;e++){var i=t.panel.children[e]; i.useAutogui&&this.placeWidget(i)}}};return i}},{}],55:[function(e,t){t.exports=function(t){var i=t.dollar,n={value:{min:0,max:1,output:t.LINEAR,wrap:!1,timescale:"interface"}},r=0,o=e("interface.js"),a={autogui:e("./autogui")(t),mode:"local",client:0,panel:null,socket:null,callbacks:{},newPanel:function(e){"undefined"==typeof e?e=t.isInstrument?{bodyElement:document.querySelector("body")}:Layout.addColumn():e.bodyElement.innerHTML="",e.bodyElement.length&&(e.bodyElement=e.bodyElement[0]);var n=new o.Panel({container:e.bodyElement,useRelativeSizesAndPositions:!0,font:"normal 16px Helvetica"});return n.canvas.style.position="relative",n.canvas.style.width=e.bodyElement.style.width,n.canvas.style.height=e.bodyElement.style.height,this.panel=n,this.panel.column=e,e.onresize=this.onresize.bind(n),a.autogui.reset(),e.onclose=function(){a.panel=null},i.subscribe("/gibber/clear",function(){e.close()}),n},onresize:function(){i(this.canvas).css({position:"relative",width:i(this.column.bodyElement).width(),height:i(this.column.bodyElement).height()}),this.redoBoundaries()},initializers:{Accelerometer:function(e){var i={x:{min:0,max:1,output:t.LINEAR,wrap:!1,timescale:"interface"},y:{min:0,max:1,output:t.LINEAR,wrap:!1,timescale:"interface"},z:{min:0,max:1,output:t.LINEAR,wrap:!1,timescale:"interface"}};return delete e.x,delete e.y,delete e.z,t.createProxyProperties(e,i,!1),e.onvaluechange=function(t,i,n){console.log(t,i,n),e.x(t),e.y(i),e.z(n)},e.start(),e},Orientation:function(e){var i={x:{min:0,max:1,output:t.LINEAR,wrap:!1,timescale:"interface"},y:{min:0,max:1,output:t.LINEAR,wrap:!1,timescale:"interface"},z:{min:0,max:1,output:t.LINEAR,wrap:!1,timescale:"interface"}};return delete e.x,delete e.y,delete e.z,t.createProxyProperties(e,i,!1),e.onvaluechange=function(t,i,n){e.x(t),e.y(i),e.z(n)},e.start(),e},XY:function(e){for(var i={x:{min:0,max:1,output:t.LINEAR,wrap:!1,timescale:"interface"},y:{min:0,max:1,output:t.LINEAR,wrap:!1,timescale:"interface"}},n=0;n<e.values.length;n++)!function(){var r=n,o=e.values[r],a=0,s=0;Object.defineProperties(o,{x:{configurable:!0,get:function(){return a},set:function(e){a=e}},y:{configurable:!0,get:function(){return s},set:function(e){s=e}}}),t.createProxyProperties(o,i,!1),e[r]=o}()},HBox:function(e){for(var t=0;t<e.children.length;t++)!function(){var i=e.children[t];i.kill(),i.panel=e.proxyPanel,Object.defineProperty(e,t,{configurable:!0,get:function(){return i},set:function(){}})}();var i=e.add;e.add=function(){var t=Array.prototype.slice.call(arguments,0);t=t.map(function(e){return e.kill()});for(var n=e.children.length,r=0;r<t.length;r++)!function(){var i=t[r];Object.defineProperty(e,n++,{configurable:!0,get:function(){return i},set:function(){}})}();return i.apply(e,t)},e.layout(),e.draw()},VBox:function(e){for(var t=0;t<e.children.length;t++)!function(){var i=e.children[t];i.kill(),i.panel=e.proxyPanel,Object.defineProperty(e,t,{configurable:!0,get:function(){return i},set:function(){}})}();var i=e.add;e.add=function(){var t=Array.prototype.slice.call(arguments,0);return t=t.map(function(e){return e.kill()}),i.apply(e,t)},e.layout(),e.draw()},MultiSlider:function(e){var i={value:{min:0,max:1,output:t.LINEAR,wrap:!1,timescale:"interface"}};e.children=[];for(var n=0;n<e.count;n++)!function(){var r=n,o={},a=e.values[n];Object.defineProperties(o,{value:{configurable:!0,get:function(){return a},set:function(e){a=e}}}),t.createProxyProperties(o,i,!1),e[r]=o,e.children.push(o),o.valueOf=function(){return this.value()},o.index=r}();e.length=e.count,e.onvaluechange=function(t,i){e[t].value=i}},Patchbay:function(e){e.onconnection=function(e,t){t.object[t.name]=e.object[e.Name]},e.ondisconnection=function(e,t){t.object[t.Name].mapping.remove()},e._createConnection=e.createConnection,e.createConnection=function(t){var i=(this.points[t[0]],this.points[t[1]]);return"Out"===i.Name?void console.log("You can't feed input to an Out patch point"):void e._createConnection(t)}},Paint:function(e){var i={x:{min:0,max:1,output:t.LINEAR,wrap:!1,timescale:"interface"},y:{min:0,max:1,output:t.LINEAR,wrap:!1,timescale:"interface"}},n=e.value,r=0,o=0;Object.defineProperties(n,{x:{get:function(){return r},set:function(e){r=e}},y:{get:function(){return o},set:function(e){o=e}}}),t.createProxyProperties(n,i,!1)},Piano:function(e){var t=e.target;Object.defineProperty(e,"target",{get:function(){return t},set:function(i){t=i;for(var n=0;n<e.children.length;n++)e.children[n].target=t,e.children[n].key="undefined"!=typeof t.note?"note":"frequency",e.children[n].sendTargetMessage=function(){this.target&&this.target.note&&this.target.note(this.frequency,this.value)}}}),e.onboundschange=function(){this._initialized&&this.placeKeys(),this.target=this.target}}},defaults:{XY:{childWidth:40,fill:"rgba(255,255,255,.1)",stroke:"#aaa",numChildren:2,usePhysics:!1},Piano:{startletter:"C",startoctave:3,endletter:"C",endoctave:4,background:"white",fill:"black"}},nonGraphical:["Accelerometer","Orientation"],widget:function(e,s){var l=-1!==a.nonGraphical.indexOf(s);if("local"===this.mode){null!==a.panel||l||a.newPanel(),"undefined"==typeof e&&(e={mode:"toggle"}),a.defaults[s]&&(e=i.extend(a.defaults[s],e));var h=new o[s](e);if(h.type="mapping","undefined"==typeof h.bounds[0]&&(l||(a.autogui.placeWidget(h,!1),h.useAutogui=!0)),l||t.Interface.panel.add(h),a.initializers[s])a.initializers[s](h,e);else{var c="value",u=n[c],p=i.extend({},u,{Name:c.charAt(0).toUpperCase()+c.slice(1),propertyName:c,type:"mapping",value:1,object:h,targets:[]});Object.defineProperty(p.object,p.Name,{get:function(){return p},set:function(e){"object"==typeof e&&"mapping"===e.type&&t.createMappingObject(p,e)}}),h.mappingObjects=[p],h.mappingProperties=n,h.replaceWith=function(e){h.target&&(e.target=h.target),h.key&&(e.key=h.key),a.panel.remove(h),a.panel.add(e),e.setValue(h.value);for(var t=0;t<this.mappingObjects.length;t++){var i=this.mappingObjects[t];if(i.targets.length>0)for(var n=0;n<i.targets.length;n++){var r=i.targets[n];e.mappingProperties[i.propertyName]?r[0].mapping.replace(e,i.propertyName,i.Name):r[0].mapping.remove()}}}}return"number"==typeof h.value&&(h.valueOf=function(){return h.value}),h.mappings=[],h.kill=h.remove=function(){for(var e=0;e<h.mappings.length;e++)h.mappings[e].remove();return h.clearMarks&&h.clearMarks(),l||(h.useAutogui?(a.autogui.removeWidget(h),h.panel.remove(h)):h.panel.remove(h)),h},Object.defineProperty(h,"_",{get:function(){return h.kill()},set:function(){}}),h}e=e||{};var h={value:0,type:"mapping",min:0,max:1,client:this.client,remoteID:"/"+(e.name||r++),mappings:[],setValue:function(e){this.value=e;var t={address:"/clients/"+this.client+this.remoteID,parameters:[e]};a.socket.send(JSON.stringify(t))},kill:function(){var e={address:"/clients/"+this.client+"/interface/removeWidget",parameters:[h.remoteID]};a.socket.send(JSON.stringify(e));for(var t=0;t<h.mappings.length;t++)h.mappings[t].remove();h.clearMarks&&h.clearMarks(),h.useAutogui&&a.autogui.removeWidget(h)},replaceWith:function(){this.kill()}};Object.defineProperty(h,"_",{get:function(){h.kill()},set:function(){}});var c="value",u=n[c],p=i.extend({},u);i.extend(p,{Name:c.charAt(0).toUpperCase()+c.slice(1),propertyName:c,type:"mapping",value:1,object:h,targets:[]}),Object.defineProperty(p.object,p.Name,{get:function(){return p},set:function(e){"object"==typeof e&&"mapping"===e.type&&t.createMappingObject(p,e)}});var f="";Object.defineProperty(h,"label",{get:function(){return f},set:function(e){f=e;var t={address:"/clients/"+this.client+"/interface/setLabel",parameters:[h.remoteID,f]};a.socket.send(JSON.stringify(t))}}),h.mappingObjects=[p],h.mappingProperties=n,this.callbacks[h.remoteID]=function(e){h.value=e.parameters[0],h.onvaluechange&&h.onvaluechange()};var d={address:"/clients/"+this.client+"/interface/addWidget",parameters:[{type:s,target:"OSC",key:h.remoteID,name:h.remoteID}]};return this.socket.send(JSON.stringify(d)),h},use:function(e,i){if("remote"===e){if(null===a.socket||3===a.socket.readyState){var n=JSON.stringify({address:"/createLivecodeServer",parameters:[]}),r=a.socket=new WebSocket("ws://127.0.0.1:10001");a.socket.onopen=function(){r.send(n)},a.socket.onmessage=function(e){var t;try{t=JSON.parse(e.data)}catch(i){return void console.error("ERROR on parsing JSON",i)}a.callbacks[t.address]&&a.callbacks[t.address](t)},window.OSC=t.Interface.socket,window.OSC.callbacks=t.Interface.callbacks}a.mode="remote",a.client=i}else a.mode="local"},clear:function(e){var t=isNaN(e)?a.client:e;if("*"===e&&(t="*"),"remote"===a.mode){var i={address:"/clients/"+t+"/interface/clear",parameters:[]};a.socket.send(JSON.stringify(i))}},button:function(e){return a.widget(e,"Button")},slider:function(e){return a.widget(e,"Slider")},multislider:function(e){return a.widget(e,"MultiSlider")},knob:function(e){return a.widget(e,"Knob")},xy:function(e){return a.widget(e,"XY")},piano:function(e){return a.widget(e,"Piano")},paint:function(e){return a.widget(e,"Paint")},patchbay:function(e){return a.widget(e,"Patchbay")},crossfader:function(e){return a.widget(e,"Crossfader")},accelerometer:function(e){return a.widget(e,"Accelerometer")},orientation:function(e){return a.widget(e,"Orientation")},patchbay:function(e){if(arguments.length>1||e.name){var t={points:Array.prototype.slice.call(arguments,0)};e=t}return a.widget(e,"Patchbay")},hbox:function(e){if(arguments.length>1||e.name){var t={children:Array.prototype.slice.call(arguments,0)};e=t}return a.widget(e,"HBox")},vbox:function(e){if(arguments.length>1||e.name){var t={children:Array.prototype.slice.call(arguments,0)};e=t}return a.widget(e,"VBox")},"export":function(e){e.Button=a.button,e.Slider=a.slider,e.MultiSlider=a.multislider,e.Knob=a.knob,e.XY=a.xy,e.Keyboard=a.piano,e.Paint=a.paint,e.Panel=a.newPanel.bind(a),e.Patchbay=a.patchbay,e.HBox=a.hbox,e.VBox=a.vbox,e.Crossfader=a.crossfader,e.Accelerometer=a.accelerometer,e.Orientation=a.orientation}};return a.use=o.use,a.clear=o.clear,a}},{"./autogui":54,"interface.js":52}],56:[function(e,t){!function(){var i=e("gibber.core.lib");i.Audio=e("gibber.audio.lib")(i),i.Graphics=e("gibber.graphics.lib")(i),i.Interface=e("gibber.interface.lib")(i),t.exports=i}()},{"gibber.audio.lib":4,"gibber.core.lib":21,"gibber.graphics.lib":48,"gibber.interface.lib":55}]},{},[56])(56)});
31,994.28
50,510
0.714864
1954ffa430f28f831fccead8b53e5a288fe0dc6c
338
js
JavaScript
site/src/business/business.js
chrisandrewca/Food-Tron-9000
04310377438ee4d088820ff5f063c496b3fa08f1
[ "BSD-3-Clause" ]
1
2021-04-30T21:53:42.000Z
2021-04-30T21:53:42.000Z
site/src/business/business.js
chrisandrewca/Food-Tron-9000
04310377438ee4d088820ff5f063c496b3fa08f1
[ "BSD-3-Clause" ]
1
2021-08-31T20:22:01.000Z
2021-08-31T20:22:01.000Z
site/src/business/business.js
chrisandrewca/Food-Tron-9000
04310377438ee4d088820ff5f063c496b3fa08f1
[ "BSD-3-Clause" ]
null
null
null
export const makeAction = (func) => (action, ...args) => { let pre = { result: {} }; const result = func.apply(null, [action, ...args]); if (result.then) { return result.then(state => { return { ...pre, ...state, }; }); } else { return { ...pre, ...result }; } };
15.363636
58
0.434911
1956a6525c24fa72e1f859a87dbf4feb1ccf9c79
1,336
js
JavaScript
web/src/settings/schema/hardware.js
markbirss/epaper_templates
9a1277c1e3a60e2c556e6472a59d95e95f9ab4d0
[ "MIT" ]
209
2018-02-17T21:37:25.000Z
2022-03-31T05:46:30.000Z
web/src/settings/schema/hardware.js
markbirss/epaper_templates
9a1277c1e3a60e2c556e6472a59d95e95f9ab4d0
[ "MIT" ]
52
2018-09-07T12:29:36.000Z
2022-02-18T03:27:48.000Z
web/src/settings/schema/hardware.js
markbirss/epaper_templates
9a1277c1e3a60e2c556e6472a59d95e95f9ab4d0
[ "MIT" ]
32
2018-02-13T13:38:31.000Z
2022-01-29T22:58:42.000Z
const VALID_PINS = [ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39 ]; export default { key: "hardware", title: "Hardware", definitions: { pin: { type: "integer", enum: VALID_PINS } }, properties: { "hardware.busy_pin": { $id: "#/properties/hardware.busy_pin", title: "Busy Pin", $ref: "#/definitions/pin", }, "hardware.dc_pin": { $id: "#/properties/hardware.dc_pin", title: "DC Pin", $ref: "#/definitions/pin" }, "hardware.rst_pin": { $id: "#/properties/hardware.rst_pin", title: "RST Pin", $ref: "#/definitions/pin" }, "hardware.spi_bus": { $id: "#/properties/hardware.spi_bus", title: "SPI Bus", oneOf: [ { const: "HSPI", title: "HSPI (default)" }, { const: "VSPI", title: "VSPI" }, { const: "waveshare", title: "Waveshare ESP32 Driver (custom)" }, ], type: "string", default: "HSPI" }, "hardware.ss_pin_override": { $id: "#/properties/hardware.ss_pin_override", title: "SPI SS Pin Override", oneOf: [ { const: -1, title: "default" }, ...VALID_PINS.map(x => ({const: x, title: String(x)})) ], type: "integer", default: -1 } } };
25.207547
111
0.524701
1957a3c6452190da28974e9b36247354b8249157
1,244
js
JavaScript
src/i18n/langs/cn.js
littlecodebrid/KJ135_element
2c9da25345df2a61155557dffbd4fbf2ff925605
[ "MIT" ]
1
2020-12-14T02:42:18.000Z
2020-12-14T02:42:18.000Z
src/i18n/langs/cn.js
littlecodebrid/KJ135_element
2c9da25345df2a61155557dffbd4fbf2ff925605
[ "MIT" ]
null
null
null
src/i18n/langs/cn.js
littlecodebrid/KJ135_element
2c9da25345df2a61155557dffbd4fbf2ff925605
[ "MIT" ]
2
2020-12-11T08:28:40.000Z
2020-12-23T02:07:18.000Z
import zhLocale from 'element-ui/lib/locale/lang/zh-CN' //引入element语言包 const cn = { login: { 'title':'数据存储与管理分系统', 'about':'用户登录界面', 'username':'用户名', 'password':'密码', 'code':'验证码', 'register':'还没有账号?去注册', 'forget':'忘记密码?', 'verifyCode':'短信验证', 'login':'登录', 'sendCode':'发送验证码', 'reSend':'重新发送', }, register: { 'about':'用户注册', 'confirm':'密码确认', 'email':'邮箱', 'mobile':'手机号', 'toLogin':'已有账号?去登录', 'isPass':'密码不能为空', 'isPhone':'手机号码格式错误', 'isConfrim':'确认密码不能为空', 'checkPass':'确认密码与密码输入不一致', 'checkPhone':'手机号不能为空', 'checkcaptcha':'验证码不能为空', }, forget:{ 'confrim':'确定', 'reset':'重置密码', 'isUser':'用户名不能为空', 'isEmail':'邮箱不能为空', }, backstage:{ '06001':'验证码不正确', '06002':'账号或密码不正确', '06003':'账号已被锁定,请联系管理员', '06004':'此用户已存在', '06005':'此手机号已存在', '06006':'此邮箱已存在', '06007':'注册成功', '06008':'该账号已被停用,请联系管理员', '06009':'此用户不存在', '06010':'密码重置成功,请登录邮箱查看', '06011':'token失效,请重新登录', '06012':'邮箱格式不正确', '06013':'用户不存在', '06014':'验证码已发送,请稍后!', '06015':'验证码不正确', '06016':'请先获取短信验证码', '06017':'验证码已失效,请重新获取', '06018':'验证码输入有误,请重试!', }, ...zhLocale } export default cn;
21.084746
70
0.540997
1957ec9b61b145f769c0cac46f110e5d77fce5d0
13,282
js
JavaScript
app/scripts/controllers/users.js
ChrisHuston/Announcement-Master
d17c6e2f74b96e58c191421d8e39c9fe88718ada
[ "MIT" ]
1
2015-10-13T23:18:47.000Z
2015-10-13T23:18:47.000Z
app/scripts/controllers/users.js
ChrisHuston/Announcement-Master
d17c6e2f74b96e58c191421d8e39c9fe88718ada
[ "MIT" ]
null
null
null
app/scripts/controllers/users.js
ChrisHuston/Announcement-Master
d17c6e2f74b96e58c191421d8e39c9fe88718ada
[ "MIT" ]
null
null
null
'use strict'; /** * @ngdoc function * @name announcementMasterApp.controller:AboutCtrl * @description * # AboutCtrl * Controller of the announcementMasterApp */ angular.module('announcementMasterApp') .controller('UsersCtrl', function ($scope, UserService, $http, uiGridConstants) { $scope.admin = UserService.admin; $scope.showGrid = false; $scope.currentSection = 1; $scope.newCourse = null; $scope.changeCourse = function() { $scope.newCourse = angular.copy($scope.selectedCourse); }; $scope.addCourse = function() { UserService.addCanvasCourse($scope.newCourse); }; $scope.saveCourse = function() { UserService.updateCanvasCourse($scope.newCourse); }; $scope.deleteCourse = function() { UserService.deleteCanvasCourse($scope.newCourse); }; $scope.editCourseName = function() { UserService.updateCourse($scope.admin.course_name); }; $scope.changeSectionNumber = function(s) { UserService.changeSectionNumber(s); }; $scope.deleteSection = function(s) { UserService.deleteSection(s); }; var getUsers = function() { var uniqueSuffix = "?" + new Date().getTime(); var params = {}; params.course_id = UserService.admin.course_id; $http({method: 'POST', url: UserService.appDir + 'php/getUsers.php' + uniqueSuffix, data: params, headers: {'Content-Type': 'application/x-www-form-urlencoded'} }). success(function(data) { if (data.users.length>0) { $scope.userGridOptions.data = data.users; $scope.showGrid = true; } }). error(function(data, status) { alert("Error: " + status + " Get users failed. Check your internet connection"); }) }; getUsers(); $scope.getCourseUsers = function() { var uniqueSuffix = "?" + new Date().getTime(); var params = {}; params.canvas_course_id = $scope.newCourse.canvas_course_id; $http({method: 'POST', url: UserService.appDir + 'php/getCourseUsers.php' + uniqueSuffix, data: params, headers: {'Content-Type': 'application/x-www-form-urlencoded'} }). success(function(data) { var users = data.users; var members = ""; var ids = "("; var user_index = 1; angular.forEach($scope.admin.sections, function(s) { if (s.canvas_course_id === $scope.newCourse.canvas_course_id) { s.num_members = 0; } }); var course_users = []; angular.forEach(users, function(s) { var role_id; console.log(s.type); if (s.type === 'StudentEnrollment') { role_id = 1; } else if(s.type === 'ObserverEnrollment') { role_id = 2; } else if (s.type === 'TaEnrollment') { role_id = 3; } else if(s.type === 'DesignerEnrollment') { role_id = 4; } else if(s.type === 'TeacherEnrollment') { role_id = 5; } else if(s.type === 'StudentViewEnrollment') { role_id = 0; } if (role_id != 0) { s.net_id = s.user.login_id; s.section_id = s.course_section_id; s.user_name = s.user.sortable_name; s.email = s.user.sis_user_id; s.canvas_user_id = s.user_id; for (var i=0; i < $scope.admin.sections.length; i++) { if (parseInt($scope.admin.sections[i].section_id) === parseInt(s.section_id)) { s.section_num = $scope.admin.sections[i].section_num; $scope.admin.sections[i].num_members += 1; break; } } s.role_id = role_id; course_users.push(s); var member = "(" + $scope.admin.course_id + ",'" + s.net_id + "'" + ',"' + s.user_name + '","' + s.email + '",' + s.role_id + "," + s.section_id + "," + s.canvas_user_id + "," + $scope.newCourse.canvas_course_id + ")"; ids += "'" + s.net_id + "'"; member += ", "; ids += ", "; members += member; } user_index += 1; }); members = members.slice(0,-2); ids = ids.slice(0,-2); ids += ")"; addUsers(members, ids); console.log(members); console.log(ids); //$scope.userGridOptions.data = _.union($scope.userGridOptions.data, course_users); }). error(function(data, status) { alert("Error: " + status + " Get users failed. Check your internet connection"); }); }; var addUsers = function(members, ids) { var uniqueSuffix = "?" + new Date().getTime(); var php_script; php_script = "addUsers.php"; var params = {}; params.members = members; params.ids = ids; params.canvas_course_id = $scope.newCourse.canvas_course_id; $http({method: 'POST', url: UserService.appDir + 'php/' + php_script + uniqueSuffix, data: params, headers: {'Content-Type': 'application/x-www-form-urlencoded'} }). success(function(data) { if (data) { getUsers(); } console.log(data); }). error(function(data, status) { alert( "Error: " + status + " Add users failed. Check your internet connection"); }); }; var addSections = function(inserts) { var uniqueSuffix = "?" + new Date().getTime(); var php_script; php_script = "addSections.php"; var params = {}; params.inserts = inserts; $http({method: 'POST', url: UserService.appDir + 'php/' + php_script + uniqueSuffix, data: params, headers: {'Content-Type': 'application/x-www-form-urlencoded'} }). success(function(data) { console.log(data); }). error(function(data, status) { alert( "Error: " + status + " Add sections failed. Check your internet connection"); }); }; $scope.getSections = function() { var uniqueSuffix = "?" + new Date().getTime(); var php_script; php_script = "getSections.php"; var params = {}; params.canvas_course_id = $scope.newCourse.canvas_course_id; $http({method: 'POST', url: UserService.appDir + 'php/' + php_script + uniqueSuffix, data: params, headers: {'Content-Type': 'application/x-www-form-urlencoded'} }). success(function(data) { var sections = JSON.parse(data.sections); sections = _.sortBy(sections, function(s) {return s.id;}); var section_num = 1; if ($scope.admin.sections.length>0) { section_num = parseInt($scope.admin.sections[$scope.admin.sections.length-1].section_num) + 1; } var inserts = ""; angular.forEach(sections, function(s) { var has_section = _.find($scope.admin.sections, function(sect) { return parseInt(sect.section_id) === s.id; }); if (has_section === undefined) { var dash_split = s.name.split("-"); if (dash_split.length > 1) { section_num = parseInt(dash_split[dash_split.length-1]); } else { section_num += 1; } s.section_num = section_num; s.section_name = 'Section ' + s.section_num; s.canvas_course_id = $scope.newCourse.canvas_course_id; s.section_id = s.id; var values = "(" + $scope.newCourse.canvas_course_id + "," + s.section_num + "," + s.section_id + "), "; inserts += values; $scope.admin.sections.push(s); } }); if (inserts !== "") { inserts = inserts.slice(0,-2); addSections(inserts); } }). error(function(data, status) { alert( "Error: " + status + " Get sections failed. Check your internet connection"); }); }; $scope.usersModel = { addCanvasUserImg: function(user) { var uniqueSuffix = "?" + new Date().getTime(); var php_script; php_script = "addCanvasUserImg.php"; var params = {}; params.canvas_user_id = user.canvas_user_id; $http({method: 'POST', url: UserService.appDir + 'php/' + php_script + uniqueSuffix, data: params, headers: {'Content-Type': 'application/x-www-form-urlencoded'} }). success(function(data) { if (data) { user.canvas_img = data.profile_photo; } }). error(function(data, status) { alert( "Error: " + status + " Add canvas image failed. Check your internet connection"); }); }, toggleSingleSection: function(user) { var uniqueSuffix = "?" + new Date().getTime(); var php_script; php_script = "toggleSingleSection.php"; var params = {}; params.canvas_user_id = user.canvas_user_id; params.single_section = user.single_section; $http({method: 'POST', url: UserService.appDir + 'php/' + php_script + uniqueSuffix, data: params, headers: {'Content-Type': 'application/x-www-form-urlencoded'} }). success(function(data) { if (data) { //user.canvas_img = data.profile_photo; } }). error(function(data, status) { alert( "Error: " + status + " Add canvas image failed. Check your internet connection"); }); } }; $scope.userGridOptions = { showGridFooter: true, enableFiltering: true, enableSorting: true, rowHeight:40, columnDefs: [ { field: 'user_name', name:"User Name", aggregationType: uiGridConstants.aggregationTypes.count}, { field: 'role_id', width:100, name:"Role"}, { field: 'net_id', width:100, name:"Net ID"}, { field: 'section_num', width:100, name:"Section", type:"number"}, {width:80, enableFiltering: false, enableSorting: false, name:"Image", cellTemplate:'<div class="ui-grid-cell-contents"><a class="btn btn-default btn-sm" ng-click="getExternalScopes().addCanvasUserImg(row.entity)"><i class="fa fa-cloud-upload"></i></a></div>'}, {width:80, enableFiltering: false, enableSorting: false, name:"Only", cellTemplate:'<div class="ui-grid-cell-contents"><input type="checkbox" ng-hide="row.entity.role_id ==\'1\'" ng-true-value="\'1\'" ng-fasle-value="\'0\'" ng-model="row.entity.single_section" ng-change="getExternalScopes().toggleSingleSection(row.entity)"></div>'} ] }; });
45.023729
349
0.450083
1957f1c93e30b996eaacb681b754909e4741f406
1,441
js
JavaScript
lib/__tests__/TokenAnnotator.test.js
careless10/react-text-annotate
e5415ca67b96d7a42043d569510c55171ae4fa6d
[ "MIT" ]
null
null
null
lib/__tests__/TokenAnnotator.test.js
careless10/react-text-annotate
e5415ca67b96d7a42043d569510c55171ae4fa6d
[ "MIT" ]
null
null
null
lib/__tests__/TokenAnnotator.test.js
careless10/react-text-annotate
e5415ca67b96d7a42043d569510c55171ae4fa6d
[ "MIT" ]
1
2021-06-20T07:18:39.000Z
2021-06-20T07:18:39.000Z
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; exports.__esModule = true; var react_1 = __importDefault(require("react")); var react_2 = require("@testing-library/react"); var TokenAnnotator_1 = __importDefault(require("../TokenAnnotator")); test('renders without getSpan', function () { react_2.render(react_1["default"].createElement(TokenAnnotator_1["default"], { tokens: ['Foo', 'Bar', 'Baz'], value: [{ start: 0, end: 5, tag: 'PERSON', tokens: [], extra: 1 }], onChange: function () { } })); }); test('renders when value and getSpan return match', function () { react_2.render(react_1["default"].createElement(TokenAnnotator_1["default"], { tokens: ['Foo', 'Bar', 'Baz'], value: [{ start: 0, end: 1, tag: 'PERSON', tokens: ['Foo'], extra: 1 }], onChange: function () { }, getSpan: function (span) { return (__assign(__assign({}, span), { tag: 'FOO', tokens: ['Foo'], extra: 1 })); } })); }); //# sourceMappingURL=TokenAnnotator.test.js.map
55.423077
329
0.616239
19580c05506f093181badc5cdd7b228037266f10
3,531
js
JavaScript
src/pages/company/driver/AddDriver/index.js
manishimweemmanuel8/simple_bank_frontend
c6a028843a96a661068768165fad9a026e603979
[ "MIT" ]
null
null
null
src/pages/company/driver/AddDriver/index.js
manishimweemmanuel8/simple_bank_frontend
c6a028843a96a661068768165fad9a026e603979
[ "MIT" ]
null
null
null
src/pages/company/driver/AddDriver/index.js
manishimweemmanuel8/simple_bank_frontend
c6a028843a96a661068768165fad9a026e603979
[ "MIT" ]
null
null
null
/* eslint-disable no-useless-escape */ import React, { Component } from 'react'; import {Helmet} from 'react-helmet'; import { connect } from 'react-redux'; import Navbar from '../../../../components/Navbar'; import Header from '../../../../components/Header'; import Sidebar from '../../../../components/Sidebar'; import { addDriver } from '../../../../store/modules/company/driver/AddDriver/actions'; import './style.scss'; class AddDriver extends Component { constructor(props) { super(props); this.state = { driver_name: '', driver_contact: '' }; this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } handleChange(event) { const { name, value } = event.target; this.setState({ [name]: value }); } async handleSubmit(e){ e.preventDefault(); const { driver_name, driver_contact} = this.state; const { onCreate } = this.props; await onCreate( driver_name,driver_contact ); } render() { const { driver_name, driver_contact } = this.state; return( <> <Helmet> <title>Add New Driver</title> </Helmet> <Navbar /> <Header /> <Sidebar /> <section id="add-user"> <div className="container my-3 py-3"> <div className="row"> <div className="col-md-6 mx-auto"> <h4 className="text-center">Add New Driver</h4> <div className="form-box"> <form onSubmit={this.handleSubmit}> <div className="form-group"> <input type="text" className="form-control" placeholder="Driver Name" name="driver_name" id="driver_name" value={driver_name} onChange={this.handleChange} onFocus={this.resetInput} /> </div> <div className="form-group"> <input type="text" className="form-control" placeholder="Driver Contact" name="driver_contact" id="driver_contact" value={driver_contact} onChange={this.handleChange} onFocus={this.resetInput} /> </div> <button type="submit" className="btn btn-success btn-block my-3"> Add Driver </button> </form> </div> </div> </div> </div> </section> </> ) } } const mapStateToProps = (state) =>({ driver: state.addNewDriver, }); const mapDispatchToProps = (dispatch) =>({ onCreate: (driver_name, driver_contact, is_active) => dispatch(addDriver(driver_name, driver_contact, is_active)), }); export default connect(mapStateToProps, mapDispatchToProps) (AddDriver);
31.526786
118
0.448598
195877f68fddcb8289a55e5798f200ce99f0b19f
574
js
JavaScript
includes/z_notes.js
tada-science/dataform_demo_project
51ed011e2284553f82935712efe727273cfb0026
[ "MIT" ]
null
null
null
includes/z_notes.js
tada-science/dataform_demo_project
51ed011e2284553f82935712efe727273cfb0026
[ "MIT" ]
null
null
null
includes/z_notes.js
tada-science/dataform_demo_project
51ed011e2284553f82935712efe727273cfb0026
[ "MIT" ]
2
2019-07-30T09:19:25.000Z
2022-02-24T23:26:54.000Z
/* files list definitions/1_simple_examples/dataset_2_with_ref definitions/1_simple_examples/dataset_1 definitions/2_advanced_examples/dataset_5_from_script_builder definitions/2_advanced_examples/dataset_4_incremental_snapshot definitions/2_advanced_examples/dataset_3_incremental_date definitions/2_advanced_examples/generate_datasets_with_for_loop.js definitions/3_operations_and_assertions/delete_deskop.ops definitions/3_operations_and_assertions/simple_assertion.assert includes/script_builder includes/mapping includes/generate_random_datasets includes/utils */
28.7
66
0.916376
1958b6822dd910adab1d558cc4e989076f4d7792
4,987
js
JavaScript
packages/xc-migrator/lib/SqlClient/lib/data.helper.js
jrevault/xgenecloud
b8e6152a9df187aa4c473afd436fd365b5671ee4
[ "Apache-2.0" ]
1,674
2020-06-09T14:10:30.000Z
2021-12-23T09:32:06.000Z
packages/xc-migrator/lib/SqlClient/lib/data.helper.js
jrevault/xgenecloud
b8e6152a9df187aa4c473afd436fd365b5671ee4
[ "Apache-2.0" ]
56
2020-06-09T19:22:46.000Z
2021-09-02T20:49:08.000Z
packages/xc-migrator/lib/SqlClient/lib/data.helper.js
jrevault/xgenecloud
b8e6152a9df187aa4c473afd436fd365b5671ee4
[ "Apache-2.0" ]
92
2020-06-09T16:03:28.000Z
2021-12-02T04:10:48.000Z
'use strict'; exports.findOrInsertObjectArrayByKey = (obj, key, array) => { let found = 0; let i = 0; for (i = 0; i < array.length; ++i) { if (key in array[i]) { if (obj[key] === array[i][key]) { found = 1; break; } } } if (!found) { array.push(obj) } return array[i]; }; exports.findObjectInArrayByKey = (key, value, objArray) => { for (let i = 0; i < objArray.length; ++i) { if (objArray[i][key] === value) { return objArray[i]; } } return null; }; exports.round = function (number, precision) { var factor = Math.pow(10, precision); var tempNumber = number * factor; var roundedTempNumber = Math.round(tempNumber); return roundedTempNumber / factor; }; exports.numberRound = (number, precision) => { var factor = Math.pow(10, precision); var tempNumber = number * factor; var roundedTempNumber = Math.round(tempNumber); return roundedTempNumber / factor; } exports.numberGetLength = (number) => { var n = number; if (number < 0) { n = n * -1; } return n.toString().length; } exports.numberGetFixed = (number) => { //console.log(number, typeof number); return parseInt(number.toFixed()) } exports.getStepArraySimple = function (min, max, step) { var arr = [] for (var i = min; i <= max; i = i + step) { arr.push(i) } return arr; }; exports.getStepArray = (min, max, stddev) => { // console.log(' = = = = = = = '); //console.log('original numbers', min, max, stddev); min = this.numberGetFixed(min) max = this.numberGetFixed(max) stddev = this.numberGetFixed(stddev) // console.log('fixed numbers', min, max, stddev); let minMinusHalf = min - stddev / 2 let maxMinusHalf = max + stddev / 2 minMinusHalf = this.numberGetFixed(minMinusHalf) maxMinusHalf = this.numberGetFixed(maxMinusHalf) // console.log('fixed numbers + (min,max)', min, max, stddev, '(', minMinusHalf, ',', maxMinusHalf, ')'); // console.log('numbers length', 'min', numberGetLength(min), 'max', numberGetLength(max), 'stddev', numberGetLength(stddev)); let minLen = this.numberGetLength(minMinusHalf) let maxLen = this.numberGetLength(maxMinusHalf) let stddevLen = this.numberGetLength(stddev) // // console.log('- - - -'); // console.log('Range', 'min', numberRound(minMinusHalf, -1)); // console.log('Range', 'max', numberRound(maxMinusHalf, -1)); // console.log('Range', 'stddev', numberRound(stddev, -1)); if (minLen > 1) minMinusHalf = this.numberRound(minMinusHalf, -1) if (maxLen > 2) maxMinusHalf = this.numberRound(maxMinusHalf, -1) if (stddevLen !== 1) stddev = this.numberRound(stddev, -1) var arr = [] for (var step = minMinusHalf; step < maxMinusHalf; step = step + stddev) { arr.push(step) } arr.push(maxMinusHalf) // console.log(arr); return arr; } exports.getMysqlSchemaQuery = function () { return ''; }; exports.getChartQuery = function () { return 'select ? as ??, count(*) as _count from ?? where ?? between ? and ? ' } exports.getDataType = function (colType, typesArr) { // console.log(colType,typesArr); for (let i = 0; i < typesArr.length; ++i) { if (colType.indexOf(typesArr[i]) !== -1) { return 1; } } return 0; } exports.getColumnType = function (column) { const strTypes = ['varchar', 'text', 'char', 'tinytext', 'mediumtext', 'longtext', 'ntext', 'image', 'blob', 'mediumblob', 'longblob', 'binary', 'varbinary', 'character', 'character varying', 'nchar', 'nvarchar', 'clob', 'nvarchar2', 'varchar2', 'raw', 'long raw', 'bfile', 'nclob']; const intTypes = ['bit', 'integer', 'int', 'smallint', 'mediumint', 'bigint', 'tinyint', 'int2', 'int4', 'int8', 'long', 'serial', 'bigserial', 'smallserial', 'bool', 'boolean', 'number']; const floatTypes = ['float', 'double', 'decimal', 'numeric', 'real', 'double precision', 'real', 'money', 'smallmoney', 'dec']; const dateTypes = ['date', 'datetime', 'timestamp', 'time', 'year', 'timestamp without time zone', 'timestamp with time zone', 'time without time zone', 'time with time zone', 'datetime2', 'smalldatetime', 'datetimeoffset', 'interval year', 'interval day']; const rowIds = ['rowId', 'urowid']; //console.log(column); if (this.getDataType(column['data_type'], strTypes)) { return "string" } else if (this.getDataType(column['data_type'], intTypes)) { return "int" } else if (this.getDataType(column['data_type'], floatTypes)) { return "float" } else if (this.getDataType(column['data_type'], dateTypes)) { return "date" } else { return "string" } } exports.getType = function (colType, typesArr) { // for (let i = 0; i < typesArr.length; ++i) { // // if (typesArr[i].indexOf(colType) !== -1) { // // return 1; // // } // // if (colType.indexOf(typesArr[i]) !== -1) { // return 1; // } // } return typesArr.includes(colType) //return 0; }
25.186869
128
0.614999
1958ea96d7836df0835914238d2ee6d43fd3f9eb
1,663
js
JavaScript
app/view/cards.js
fabioelle/list-cards
eeff9252642acfbba6d8baecdc2f696f5f0ec40f
[ "MIT" ]
null
null
null
app/view/cards.js
fabioelle/list-cards
eeff9252642acfbba6d8baecdc2f696f5f0ec40f
[ "MIT" ]
null
null
null
app/view/cards.js
fabioelle/list-cards
eeff9252642acfbba6d8baecdc2f696f5f0ec40f
[ "MIT" ]
null
null
null
'use strict'; angular .module('myApp.cards', [ 'ngRoute' ]) .config(['$routeProvider', '$httpProvider', function($routeProvider,$httpProvider) { $routeProvider.when('/cards', { templateUrl: 'view/cards.html', controller: 'CardsCtrl' }); }]) .controller('CardsCtrl', ['$scope','$http', 'listCardData', '$interval', '$timeout', function($scope,$http,listCardData,$interval,$timeout) { $scope.cards = []; $scope.loadingComplete = false; $scope.errorData = false; $scope.typeCard = [ {type:"garmin", classCss:"garmin"}, {type:"gofree", classCss:"gofree"}, {type:"b&g", classCss:"beg"}, {type:"digital yacht", classCss:"digital_yacht"}, {type:"vexilar", classCss:"vexilar"}, {type:"simrad", classCss:"simrad"}, {type:"loweance", classCss:"loweance"}, {type:"humminbird", classCss:"humminbird"}, {type:"raymarine", classCss:"raymarine"} ]; $scope.updateData = function(){ $scope.loadingComplete = true; listCardData.doCrossDomainGet() .then(function(data){ $scope.cards = data.data; $scope.loadingComplete = false; $scope.errorData = false; }, function(err,status){ $scope.loadingComplete = false; $scope.errorData = true; $scope.msg = "No load data"; }); } var c=0; $scope.updateData(); $interval(function(){ $scope.updateData(); c++; },3000); $scope.colorValue=function(myValue){ var classeCard = ''; angular.forEach($scope.typeCard, function(value) { if(myValue == value.type){ classeCard = value.classCss; } }); return classeCard; } }]);
26.822581
142
0.603127
195933b3dd82b31501cf8cd6dfd2c3cbe1bfbee5
112
js
JavaScript
dist/reverse.js
deMGoncalves/f
977f33c42650585c3004550afc4aa074cca827ee
[ "MIT" ]
null
null
null
dist/reverse.js
deMGoncalves/f
977f33c42650585c3004550afc4aa074cca827ee
[ "MIT" ]
null
null
null
dist/reverse.js
deMGoncalves/f
977f33c42650585c3004550afc4aa074cca827ee
[ "MIT" ]
null
null
null
import curry from "./curry/index"; const reverse = (target) => target.reverse(); export default curry(reverse);
28
45
0.723214
195a93d50a20beba3f471b3fa3a43b3d4ee92b21
623
js
JavaScript
2-alpha/src/components/Loading.js
saturninoharris/primer-design
180e02041f7f1612eaa6a3cf90b96edd88bcad36
[ "MIT" ]
null
null
null
2-alpha/src/components/Loading.js
saturninoharris/primer-design
180e02041f7f1612eaa6a3cf90b96edd88bcad36
[ "MIT" ]
null
null
null
2-alpha/src/components/Loading.js
saturninoharris/primer-design
180e02041f7f1612eaa6a3cf90b96edd88bcad36
[ "MIT" ]
null
null
null
import _ from 'lodash' import React, { Component } from 'react' class Loading extends Component { state = { dotsCount: 0, } componentDidMount() { this.timer = setInterval(() => { this.setState(({dotsCount}) => ({ dotsCount: dotsCount <= 5 ? dotsCount += 1 : 0 })) }, 200) } componentWillUnmount() { clearTimeout(this.timer) } render() { const text = 'Loading' + _.pad('', this.state.dotsCount, '.') return ( <div className="Loading-Container"> <div className="Loading"> {text} </div> </div> ) } } export default Loading
20.766667
65
0.558587
195c040aa5b0ef390996e3fa9a6247a214617744
4,961
js
JavaScript
base-service/lib/fiatrateservice.js
owstack/wallet-service
f39d5a7fb1c33809c2ae66fa43f13500c98dc757
[ "MIT" ]
null
null
null
base-service/lib/fiatrateservice.js
owstack/wallet-service
f39d5a7fb1c33809c2ae66fa43f13500c98dc757
[ "MIT" ]
null
null
null
base-service/lib/fiatrateservice.js
owstack/wallet-service
f39d5a7fb1c33809c2ae66fa43f13500c98dc757
[ "MIT" ]
3
2019-03-30T20:35:37.000Z
2020-08-04T07:41:41.000Z
const owsCommon = require('@owstack/ows-common'); const async = require('async'); const baseConfig = require('config'); const Context = owsCommon.util.Context; const Defaults = require('./common/defaults'); const log = require('npmlog'); const request = require('request'); const Storage = require('./storage'); const lodash = owsCommon.deps.lodash; const $ = require('preconditions').singleton(); log.debug = log.verbose; class FiatRateService { constructor(config) { this.config = config || baseConfig; this.setLog(); } } FiatRateService.prototype.setLog = function () { if (this.config.log) { log.level = (this.config.log.disable == true ? 'silent' : this.config.log.level || 'info'); } else { log.level = 'info'; } }; FiatRateService.prototype.start = function (cb) { const self = this; self.init({}, function (err) { if (err) { cb(err); } self.startCron(function (err) { if (err) { cb(err); } cb(); }); }); }; FiatRateService.prototype.init = function (opts, cb) { const self = this; self.request = opts.request || request; async.parallel([ function (done) { if (opts.storage) { self.storage = opts.storage; done(); } else if (self.config.storage) { self.storage = self.config.storage; done(); } else { // Create with empty context (none for this service). self.storage = new Storage(new Context(), self.config.storageOpts, { creator: 'FiatRateService' }); self.storage.connect(done); } }, ], function (err) { if (err) { log.error(err); } return cb(err); }); }; FiatRateService.prototype.startCron = function (cb) { const self = this; self.providers = lodash.values(require('./fiatrateproviders')); const interval = self.config.fiatRateServiceOpts.fetchInterval || Defaults.FIAT_RATE_FETCH_INTERVAL; if (interval) { self._fetch(); setInterval(function () { self._fetch(); }, interval * 60 * 1000); } return cb(); }; FiatRateService.prototype._fetch = function (cb) { const self = this; cb = cb || function () {}; lodash.forEach(self.providers, function (provider) { lodash.forEach(Object.keys(provider.currency), function (currencyCode) { self._retrieve(provider, currencyCode, function (err, res) { if (err) { log.warn(`Error retrieving data for ${provider.name}`, err); return; } self.storage.storeFiatRate(provider.name, currencyCode, res, function (err) { if (err) { log.warn(`Error storing ${currencyCode} data for ${provider.name}`, err); } return; }); }); }); }); cb(); }; FiatRateService.prototype._retrieve = function (provider, currencyCode, cb) { const self = this; log.debug(`Fetching data for ${provider.name}`); self.request.get({ url: provider.currency[currencyCode].url, json: true, }, function (err, res, body) { if (err || !body) { return cb(err); } log.debug(`Data for ${provider.name} fetched successfully`); if (!provider.currency[currencyCode].parseFn) { return cb(new Error(`No parse function for provider ${provider.name}`)); } const rates = provider.currency[currencyCode].parseFn(body); return cb(null, rates); }); }; FiatRateService.prototype.getRate = function (opts, cb) { const self = this; $.shouldBeFunction(cb); opts = opts || {}; const now = Date.now(); const provider = opts.provider || self.config.fiatRateServiceOpts.provider || Defaults.FIAT_RATE_PROVIDER; const ts = (lodash.isNumber(opts.ts) || lodash.isArray(opts.ts)) ? opts.ts : now; async.map([].concat(ts), function (ts, cb) { self.storage.fetchFiatRate(provider, opts.currency, opts.code, ts, function (err, rate) { if (err) { return cb(err); } if (rate && (ts - rate.ts) > Defaults.FIAT_RATE_MAX_LOOK_BACK_TIME * 60 * 1000) { rate = null; } return cb(null, { ts: +ts, rate: rate ? rate.value : undefined, fetchedOn: rate ? rate.ts : undefined, }); }); }, function (err, res) { if (err) { return cb(err); } if (!lodash.isArray(ts)) { res = res[0]; } return cb(null, res); }); }; module.exports = FiatRateService;
28.348571
110
0.536384
195c98fd72a52ced8176958cf0ebeba551f99247
7,798
js
JavaScript
src/views/addjoblist/AddJobList.js
gorisab-au7/art-admin
e3e7c841b03df55c109bf7f29a11c3d862056846
[ "MIT" ]
null
null
null
src/views/addjoblist/AddJobList.js
gorisab-au7/art-admin
e3e7c841b03df55c109bf7f29a11c3d862056846
[ "MIT" ]
null
null
null
src/views/addjoblist/AddJobList.js
gorisab-au7/art-admin
e3e7c841b03df55c109bf7f29a11c3d862056846
[ "MIT" ]
null
null
null
import React from 'react' import { CButton, CCard, CCardBody, CCardFooter, CCardHeader, CCol, CCollapse, CDropdownItem, CDropdownMenu, CDropdownToggle, CFade, CForm, CFormGroup, CFormText, CValidFeedback, CInvalidFeedback, CTextarea, CInput, CInputFile, CInputCheckbox, CInputRadio, CInputGroup, CInputGroupAppend, CInputGroupPrepend, CDropdown, CInputGroupText, CLabel, CSelect, CRow, CSwitch } from '@coreui/react' import CIcon from '@coreui/icons-react' import { DocsLink } from 'src/reusable' const AddJobList = () => { const [collapsed, setCollapsed] = React.useState(true) const [showElements, setShowElements] = React.useState(true) return ( <> <CRow> <CCol xs="12" md="12"> <CCard> <CCardHeader> Add New JobList </CCardHeader> <CCardBody> <CForm action="" method="post" encType="multipart/form-data" className="form-horizontal"> <CFormGroup row className="my-0"> <CCol xs="4"> <CFormGroup> <CLabel htmlFor="first">Employer</CLabel> <CSelect custom name="select" id="select"> <option value="0"> Employer 1</option> <option value="1">Employer 2 </option> </CSelect> </CFormGroup> </CCol> <CCol xs="4"> <CFormGroup> <CLabel htmlFor="first">Category</CLabel> <CSelect custom name="select" id="select"> <option value="0"> Category 1</option> <option value="1">Category 2 </option> </CSelect> </CFormGroup> </CCol> <CCol xs="4"> <CFormGroup> <CLabel htmlFor="first">Job Type</CLabel> <CSelect custom name="select" id="select"> <option value="0"> Job Type 1</option> <option value="1">Job Type 2 </option> </CSelect> </CFormGroup> </CCol> </CFormGroup> <CFormGroup row className="my-0"> <CCol xs="4"> <CFormGroup> <CLabel htmlFor="first">Title</CLabel> <CInput id="text-input" name="text-input" placeholder="Title" /> </CFormGroup> </CCol> <CCol xs="4"> <CFormGroup> <CLabel htmlFor="text">Description</CLabel> <CCol xs="12" md="12"> <CTextarea name="textarea-input" id="textarea-input" rows="4" placeholder="Description.." /> </CCol> </CFormGroup> </CCol> <CCol xs="4"> <CFormGroup> <CLabel htmlFor="text">Information</CLabel> <CCol xs="12" md="12"> <CTextarea name="textarea-input" id="textarea-input" rows="4" placeholder="Information.." /> </CCol> </CFormGroup> </CCol> </CFormGroup> <CFormGroup row className="my-0"> <CCol xs="4"> <CFormGroup> <CLabel htmlFor="country">Country</CLabel> <CInput id="country" placeholder="Country name" /> </CFormGroup> </CCol> <CCol xs="4"> <CFormGroup> <CLabel htmlFor="city">City</CLabel> <CInput id="city" placeholder="Enter your city" /> </CFormGroup> </CCol> <CCol xs="4"> <CFormGroup> <CLabel htmlFor="postal-code">Postal Code</CLabel> <CInput id="postal-code" placeholder="Postal Code" /> </CFormGroup> </CCol> </CFormGroup> <CFormGroup row> <CCol md="6"> <CLabel>Bonuses </CLabel> </CCol> <CCol md="9"> <CFormGroup variant="custom-checkbox" inline> <CInputCheckbox custom id="inline-checkbox1" name="inline-checkbox1" value="option1" /> <CLabel variant="custom-checkbox" htmlFor="inline-checkbox1"></CLabel> </CFormGroup> </CCol> </CFormGroup> <CFormGroup row className="my-0"> <CCol xs="4"> <CFormGroup> <CLabel htmlFor="country">Salary</CLabel> <CInput id="country" placeholder="Salary" /> </CFormGroup> </CCol> <CCol xs="4"> <CFormGroup> <CLabel htmlFor="first">Per</CLabel> <CSelect custom name="select" id="select"> <option value="0"> Per Hour</option> <option value="1">Per Week </option> <option value="2"> Per Month</option> <option value="3">Per Year </option> </CSelect> </CFormGroup> </CCol> <CCol xs="4"> <CFormGroup> <CLabel htmlFor="other">Other</CLabel> <CInput id="other" placeholder="Other" /> </CFormGroup> </CCol> </CFormGroup> <CFormGroup row className="my-0"> <CCol xs="4"> <CFormGroup> <CLabel htmlFor="url">Application URL</CLabel> <CInput id="url" placeholder="Application URL" /> </CFormGroup> </CCol> <CCol xs="4"> <CFormGroup> <CLabel htmlFor="first">Publish listing on</CLabel> <CInput type="date" id="date-input" name="date-input" placeholder="date" /> </CFormGroup> </CCol> <CCol xs="4"> <CFormGroup> <CLabel htmlFor="other">Listing end time</CLabel> <CInput type="date" id="date-input" name="date-input" placeholder="date" /> </CFormGroup> </CCol> </CFormGroup> </CForm> </CCardBody> <CCardFooter className="text-center" > <CButton type="submit" size="sm" color="info"><CIcon name="cil-scrubber" /> Save </CButton>&nbsp;&nbsp; <CButton type="submit" size="sm" color="primary"><CIcon name="cil-scrubber" /> Save & Continue</CButton>&nbsp;&nbsp; <CButton type="reset" size="sm" color="danger"><CIcon name="cil-ban" /> Reset</CButton> </CCardFooter> </CCard> </CCol> </CRow> </> ) } export default AddJobList
33.042373
130
0.418056
195d2c7bc68503921e915791aff38ebe414da2de
148
js
JavaScript
src/handlers/index.js
guillaumearm/redux-fun
89947e83b71d2dd77aaf5bba05016d559dbf4a5f
[ "MIT" ]
2
2018-08-27T08:09:16.000Z
2018-12-25T12:12:07.000Z
src/handlers/index.js
guillaumearm/redux-fun
89947e83b71d2dd77aaf5bba05016d559dbf4a5f
[ "MIT" ]
72
2018-02-04T21:37:06.000Z
2020-06-02T18:15:23.000Z
src/handlers/index.js
guillaumearm/redux-fun
89947e83b71d2dd77aaf5bba05016d559dbf4a5f
[ "MIT" ]
null
null
null
export { default as createHandleIOMiddleware } from './createHandleIOMiddleware'; export { default as testReduxHandler } from './testReduxHandler';
49.333333
81
0.797297
195f91b5ad4c77333e3f33718c2e749203ff8e40
615
js
JavaScript
__tests__/Manager.test.js
Mike2481/Epic-Team-Roster
96b31b8e0607b0484333d8cb2bfd9723bc5d60fc
[ "MIT" ]
null
null
null
__tests__/Manager.test.js
Mike2481/Epic-Team-Roster
96b31b8e0607b0484333d8cb2bfd9723bc5d60fc
[ "MIT" ]
null
null
null
__tests__/Manager.test.js
Mike2481/Epic-Team-Roster
96b31b8e0607b0484333d8cb2bfd9723bc5d60fc
[ "MIT" ]
null
null
null
const Manager = require('../lib/Manager'); // Test for manager specific data - office number and Manager Role test('creates manager object', () => { const manager = new Manager('Mike', 55, 'myemail@gmail.com', 223); expect(manager.officeNumber).toEqual(expect.any(Number)); }); test('gets office number', () => { const manager = new Manager('Mike', 55, 'myemail@gmail.com', 223); expect(manager.getOfficeNumber()).toEqual(223); }); test('gets employee role', () => { const manager = new Manager('Mike', 55, 'myemail@gmail.com', 223); expect(manager.getRole()).toEqual('Manager'); });
29.285714
70
0.653659
195fd5dc0881d30daae280e0a0bfd83b1650b80b
588,946
js
JavaScript
pixelboard.js
Taeon7/pixboard
276efcf0fab000fe3bf5c69485cf8ce47cf72f8a
[ "MIT" ]
null
null
null
pixelboard.js
Taeon7/pixboard
276efcf0fab000fe3bf5c69485cf8ce47cf72f8a
[ "MIT" ]
null
null
null
pixelboard.js
Taeon7/pixboard
276efcf0fab000fe3bf5c69485cf8ce47cf72f8a
[ "MIT" ]
null
null
null
// PixelBoard.js | JavaScript PixelBoard // Copyright (c) 2020, David Bitencourt (https://github.com/dabit-7) // Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) // [vars] var colors = []; var themx = ['#FFFFFF','#FE0000','#434EA0','#FFFF01','#FF9000','#048C5A','#6E3794','#8BC800','#454DA2','#C8007F']; var themy = ['#FFFFFF','#FEF200','#FE0000','#0099FF','#7A1FA0','#336699','#E70078','#89E23C','#F95201','#B3B3B3']; var themz = ['#FFFFFF','#FEDB03','#47FF01','#01FE91','#0091FE','#4801FF','#FF00D8','#FE0000','#7A1FA0','#1E1E1E']; var themw = ['#FFFFFF','#FCEF00','#E80924','#1562B2','#FF9E02','#00B83C','#834BA4','#A8D405','#00A1DF','#FF028C']; var themk = ['#FFFFFF','#FFDB01','#47FF01','#01FE91','#0091FE','#4801FF','#FE00DA','#FE0000','#FF6600','#000000']; // [input] – Limited to 10000 numbers. var pix = [ 3,1,4,1,5,9,2,6,5,3,5,8,9,7,9,3,2,3,8,4,6,2,6,4,3,3,8,3,2,7,9,5,0,2,8,8,4,1,9,7,1,6,9,3,9,9,3,7,5,1,0,5,8,2,0,9,7,4,9,4,4,5,9,2,3,0,7,8,1,6,4,0,6,2,8,6,2,0,8,9,9,8,6,2,8,0,3,4,8,2,5,3,4,2,1,1,7,0,6,7,9,8,2,1,4,8,0,8,6,5,1,3,2,8,2,3,0,6,6,4,7,0,9,3,8,4,4,6,0,9,5,5,0,5,8,2,2,3,1,7,2,5,3,5,9,4,0,8,1,2,8,4,8,1,1,1,7,4,5,0,2,8,4,1,0,2,7,0,1,9,3,8,5,2,1,1,0,5,5,5,9,6,4,4,6,2,2,9,4,8,9,5,4,9,3,0,3,8,1,9,6,4,4,2,8,8,1,0,9,7,5,6,6,5,9,3,3,4,4,6,1,2,8,4,7,5,6,4,8,2,3,3,7,8,6,7,8,3,1,6,5,2,7,1,2,0,1,9,0,9,1,4,5,6,4,8,5,6,6,9,2,3,4,6,0,3,4,8,6,1,0,4,5,4,3,2,6,6,4,8,2,1,3,3,9,3,6,0,7,2,6,0,2,4,9,1,4,1,2,7,3,7,2,4,5,8,7,0,0,6,6,0,6,3,1,5,5,8,8,1,7,4,8,8,1,5,2,0,9,2,0,9,6,2,8,2,9,2,5,4,0,9,1,7,1,5,3,6,4,3,6,7,8,9,2,5,9,0,3,6,0,0,1,1,3,3,0,5,3,0,5,4,8,8,2,0,4,6,6,5,2,1,3,8,4,1,4,6,9,5,1,9,4,1,5,1,1,6,0,9,4,3,3,0,5,7,2,7,0,3,6,5,7,5,9,5,9,1,9,5,3,0,9,2,1,8,6,1,1,7,3,8,1,9,3,2,6,1,1,7,9,3,1,0,5,1,1,8,5,4,8,0,7,4,4,6,2,3,7,9,9,6,2,7,4,9,5,6,7,3,5,1,8,8,5,7,5,2,7,2,4,8,9,1,2,2,7,9,3,8,1,8,3,0,1,1,9,4,9,1,2,9,8,3,3,6,7,3,3,6,2,4,4,0,6,5,6,6,4,3,0,8,6,0,2,1,3,9,4,9,4,6,3,9,5,2,2,4,7,3,7,1,9,0,7,0,2,1,7,9,8,6,0,9,4,3,7,0,2,7,7,0,5,3,9,2,1,7,1,7,6,2,9,3,1,7,6,7,5,2,3,8,4,6,7,4,8,1,8,4,6,7,6,6,9,4,0,5,1,3,2,0,0,0,5,6,8,1,2,7,1,4,5,2,6,3,5,6,0,8,2,7,7,8,5,7,7,1,3,4,2,7,5,7,7,8,9,6,0,9,1,7,3,6,3,7,1,7,8,7,2,1,4,6,8,4,4,0,9,0,1,2,2,4,9,5,3,4,3,0,1,4,6,5,4,9,5,8,5,3,7,1,0,5,0,7,9,2,2,7,9,6,8,9,2,5,8,9,2,3,5,4,2,0,1,9,9,5,6,1,1,2,1,2,9,0,2,1,9,6,0,8,6,4,0,3,4,4,1,8,1,5,9,8,1,3,6,2,9,7,7,4,7,7,1,3,0,9,9,6,0,5,1,8,7,0,7,2,1,1,3,4,9,9,9,9,9,9,8,3,7,2,9,7,8,0,4,9,9,5,1,0,5,9,7,3,1,7,3,2,8,1,6,0,9,6,3,1,8,5,9,5,0,2,4,4,5,9,4,5,5,3,4,6,9,0,8,3,0,2,6,4,2,5,2,2,3,0,8,2,5,3,3,4,4,6,8,5,0,3,5,2,6,1,9,3,1,1,8,8,1,7,1,0,1,0,0,0,3,1,3,7,8,3,8,7,5,2,8,8,6,5,8,7,5,3,3,2,0,8,3,8,1,4,2,0,6,1,7,1,7,7,6,6,9,1,4,7,3,0,3,5,9,8,2,5,3,4,9,0,4,2,8,7,5,5,4,6,8,7,3,1,1,5,9,5,6,2,8,6,3,8,8,2,3,5,3,7,8,7,5,9,3,7,5,1,9,5,7,7,8,1,8,5,7,7,8,0,5,3,2,1,7,1,2,2,6,8,0,6,6,1,3,0,0,1,9,2,7,8,7,6,6,1,1,1,9,5,9,0,9,2,1,6,4,2,0,1,9,8,9,3,8,0,9,5,2,5,7,2,0,1,0,6,5,4,8,5,8,6,3,2,7,8,8,6,5,9,3,6,1,5,3,3,8,1,8,2,7,9,6,8,2,3,0,3,0,1,9,5,2,0,3,5,3,0,1,8,5,2,9,6,8,9,9,5,7,7,3,6,2,2,5,9,9,4,1,3,8,9,1,2,4,9,7,2,1,7,7,5,2,8,3,4,7,9,1,3,1,5,1,5,5,7,4,8,5,7,2,4,2,4,5,4,1,5,0,6,9,5,9,5,0,8,2,9,5,3,3,1,1,6,8,6,1,7,2,7,8,5,5,8,8,9,0,7,5,0,9,8,3,8,1,7,5,4,6,3,7,4,6,4,9,3,9,3,1,9,2,5,5,0,6,0,4,0,0,9,2,7,7,0,1,6,7,1,1,3,9,0,0,9,8,4,8,8,2,4,0,1,2,8,5,8,3,6,1,6,0,3,5,6,3,7,0,7,6,6,0,1,0,4,7,1,0,1,8,1,9,4,2,9,5,5,5,9,6,1,9,8,9,4,6,7,6,7,8,3,7,4,4,9,4,4,8,2,5,5,3,7,9,7,7,4,7,2,6,8,4,7,1,0,4,0,4,7,5,3,4,6,4,6,2,0,8,0,4,6,6,8,4,2,5,9,0,6,9,4,9,1,2,9,3,3,1,3,6,7,7,0,2,8,9,8,9,1,5,2,1,0,4,7,5,2,1,6,2,0,5,6,9,6,6,0,2,4,0,5,8,0,3,8,1,5,0,1,9,3,5,1,1,2,5,3,3,8,2,4,3,0,0,3,5,5,8,7,6,4,0,2,4,7,4,9,6,4,7,3,2,6,3,9,1,4,1,9,9,2,7,2,6,0,4,2,6,9,9,2,2,7,9,6,7,8,2,3,5,4,7,8,1,6,3,6,0,0,9,3,4,1,7,2,1,6,4,1,2,1,9,9,2,4,5,8,6,3,1,5,0,3,0,2,8,6,1,8,2,9,7,4,5,5,5,7,0,6,7,4,9,8,3,8,5,0,5,4,9,4,5,8,8,5,8,6,9,2,6,9,9,5,6,9,0,9,2,7,2,1,0,7,9,7,5,0,9,3,0,2,9,5,5,3,2,1,1,6,5,3,4,4,9,8,7,2,0,2,7,5,5,9,6,0,2,3,6,4,8,0,6,6,5,4,9,9,1,1,9,8,8,1,8,3,4,7,9,7,7,5,3,5,6,6,3,6,9,8,0,7,4,2,6,5,4,2,5,2,7,8,6,2,5,5,1,8,1,8,4,1,7,5,7,4,6,7,2,8,9,0,9,7,7,7,7,2,7,9,3,8,0,0,0,8,1,6,4,7,0,6,0,0,1,6,1,4,5,2,4,9,1,9,2,1,7,3,2,1,7,2,1,4,7,7,2,3,5,0,1,4,1,4,4,1,9,7,3,5,6,8,5,4,8,1,6,1,3,6,1,1,5,7,3,5,2,5,5,2,1,3,3,4,7,5,7,4,1,8,4,9,4,6,8,4,3,8,5,2,3,3,2,3,9,0,7,3,9,4,1,4,3,3,3,4,5,4,7,7,6,2,4,1,6,8,6,2,5,1,8,9,8,3,5,6,9,4,8,5,5,6,2,0,9,9,2,1,9,2,2,2,1,8,4,2,7,2,5,5,0,2,5,4,2,5,6,8,8,7,6,7,1,7,9,0,4,9,4,6,0,1,6,5,3,4,6,6,8,0,4,9,8,8,6,2,7,2,3,2,7,9,1,7,8,6,0,8,5,7,8,4,3,8,3,8,2,7,9,6,7,9,7,6,6,8,1,4,5,4,1,0,0,9,5,3,8,8,3,7,8,6,3,6,0,9,5,0,6,8,0,0,6,4,2,2,5,1,2,5,2,0,5,1,1,7,3,9,2,9,8,4,8,9,6,0,8,4,1,2,8,4,8,8,6,2,6,9,4,5,6,0,4,2,4,1,9,6,5,2,8,5,0,2,2,2,1,0,6,6,1,1,8,6,3,0,6,7,4,4,2,7,8,6,2,2,0,3,9,1,9,4,9,4,5,0,4,7,1,2,3,7,1,3,7,8,6,9,6,0,9,5,6,3,6,4,3,7,1,9,1,7,2,8,7,4,6,7,7,6,4,6,5,7,5,7,3,9,6,2,4,1,3,8,9,0,8,6,5,8,3,2,6,4,5,9,9,5,8,1,3,3,9,0,4,7,8,0,2,7,5,9,0,0,9,9,4,6,5,7,6,4,0,7,8,9,5,1,2,6,9,4,6,8,3,9,8,3,5,2,5,9,5,7,0,9,8,2,5,8,2,2,6,2,0,5,2,2,4,8,9,4,0,7,7,2,6,7,1,9,4,7,8,2,6,8,4,8,2,6,0,1,4,7,6,9,9,0,9,0,2,6,4,0,1,3,6,3,9,4,4,3,7,4,5,5,3,0,5,0,6,8,2,0,3,4,9,6,2,5,2,4,5,1,7,4,9,3,9,9,6,5,1,4,3,1,4,2,9,8,0,9,1,9,0,6,5,9,2,5,0,9,3,7,2,2,1,6,9,6,4,6,1,5,1,5,7,0,9,8,5,8,3,8,7,4,1,0,5,9,7,8,8,5,9,5,9,7,7,2,9,7,5,4,9,8,9,3,0,1,6,1,7,5,3,9,2,8,4,6,8,1,3,8,2,6,8,6,8,3,8,6,8,9,4,2,7,7,4,1,5,5,9,9,1,8,5,5,9,2,5,2,4,5,9,5,3,9,5,9,4,3,1,0,4,9,9,7,2,5,2,4,6,8,0,8,4,5,9,8,7,2,7,3,6,4,4,6,9,5,8,4,8,6,5,3,8,3,6,7,3,6,2,2,2,6,2,6,0,9,9,1,2,4,6,0,8,0,5,1,2,4,3,8,8,4,3,9,0,4,5,1,2,4,4,1,3,6,5,4,9,7,6,2,7,8,0,7,9,7,7,1,5,6,9,1,4,3,5,9,9,7,7,0,0,1,2,9,6,1,6,0,8,9,4,4,1,6,9,4,8,6,8,5,5,5,8,4,8,4,0,6,3,5,3,4,2,2,0,7,2,2,2,5,8,2,8,4,8,8,6,4,8,1,5,8,4,5,6,0,2,8,5,0,6,0,1,6,8,4,2,7,3,9,4,5,2,2,6,7,4,6,7,6,7,8,8,9,5,2,5,2,1,3,8,5,2,2,5,4,9,9,5,4,6,6,6,7,2,7,8,2,3,9,8,6,4,5,6,5,9,6,1,1,6,3,5,4,8,8,6,2,3,0,5,7,7,4,5,6,4,9,8,0,3,5,5,9,3,6,3,4,5,6,8,1,7,4,3,2,4,1,1,2,5,1,5,0,7,6,0,6,9,4,7,9,4,5,1,0,9,6,5,9,6,0,9,4,0,2,5,2,2,8,8,7,9,7,1,0,8,9,3,1,4,5,6,6,9,1,3,6,8,6,7,2,2,8,7,4,8,9,4,0,5,6,0,1,0,1,5,0,3,3,0,8,6,1,7,9,2,8,6,8,0,9,2,0,8,7,4,7,6,0,9,1,7,8,2,4,9,3,8,5,8,9,0,0,9,7,1,4,9,0,9,6,7,5,9,8,5,2,6,1,3,6,5,5,4,9,7,8,1,8,9,3,1,2,9,7,8,4,8,2,1,6,8,2,9,9,8,9,4,8,7,2,2,6,5,8,8,0,4,8,5,7,5,6,4,0,1,4,2,7,0,4,7,7,5,5,5,1,3,2,3,7,9,6,4,1,4,5,1,5,2,3,7,4,6,2,3,4,3,6,4,5,4,2,8,5,8,4,4,4,7,9,5,2,6,5,8,6,7,8,2,1,0,5,1,1,4,1,3,5,4,7,3,5,7,3,9,5,2,3,1,1,3,4,2,7,1,6,6,1,0,2,1,3,5,9,6,9,5,3,6,2,3,1,4,4,2,9,5,2,4,8,4,9,3,7,1,8,7,1,1,0,1,4,5,7,6,5,4,0,3,5,9,0,2,7,9,9,3,4,4,0,3,7,4,2,0,0,7,3,1,0,5,7,8,5,3,9,0,6,2,1,9,8,3,8,7,4,4,7,8,0,8,4,7,8,4,8,9,6,8,3,3,2,1,4,4,5,7,1,3,8,6,8,7,5,1,9,4,3,5,0,6,4,3,0,2,1,8,4,5,3,1,9,1,0,4,8,4,8,1,0,0,5,3,7,0,6,1,4,6,8,0,6,7,4,9,1,9,2,7,8,1,9,1,1,9,7,9,3,9,9,5,2,0,6,1,4,1,9,6,6,3,4,2,8,7,5,4,4,4,0,6,4,3,7,4,5,1,2,3,7,1,8,1,9,2,1,7,9,9,9,8,3,9,1,0,1,5,9,1,9,5,6,1,8,1,4,6,7,5,1,4,2,6,9,1,2,3,9,7,4,8,9,4,0,9,0,7,1,8,6,4,9,4,2,3,1,9,6,1,5,6,7,9,4,5,2,0,8,0,9,5,1,4,6,5,5,0,2,2,5,2,3,1,6,0,3,8,8,1,9,3,0,1,4,2,0,9,3,7,6,2,1,3,7,8,5,5,9,5,6,6,3,8,9,3,7,7,8,7,0,8,3,0,3,9,0,6,9,7,9,2,0,7,7,3,4,6,7,2,2,1,8,2,5,6,2,5,9,9,6,6,1,5,0,1,4,2,1,5,0,3,0,6,8,0,3,8,4,4,7,7,3,4,5,4,9,2,0,2,6,0,5,4,1,4,6,6,5,9,2,5,2,0,1,4,9,7,4,4,2,8,5,0,7,3,2,5,1,8,6,6,6,0,0,2,1,3,2,4,3,4,0,8,8,1,9,0,7,1,0,4,8,6,3,3,1,7,3,4,6,4,9,6,5,1,4,5,3,9,0,5,7,9,6,2,6,8,5,6,1,0,0,5,5,0,8,1,0,6,6,5,8,7,9,6,9,9,8,1,6,3,5,7,4,7,3,6,3,8,4,0,5,2,5,7,1,4,5,9,1,0,2,8,9,7,0,6,4,1,4,0,1,1,0,9,7,1,2,0,6,2,8,0,4,3,9,0,3,9,7,5,9,5,1,5,6,7,7,1,5,7,7,0,0,4,2,0,3,3,7,8,6,9,9,3,6,0,0,7,2,3,0,5,5,8,7,6,3,1,7,6,3,5,9,4,2,1,8,7,3,1,2,5,1,4,7,1,2,0,5,3,2,9,2,8,1,9,1,8,2,6,1,8,6,1,2,5,8,6,7,3,2,1,5,7,9,1,9,8,4,1,4,8,4,8,8,2,9,1,6,4,4,7,0,6,0,9,5,7,5,2,7,0,6,9,5,7,2,2,0,9,1,7,5,6,7,1,1,6,7,2,2,9,1,0,9,8,1,6,9,0,9,1,5,2,8,0,1,7,3,5,0,6,7,1,2,7,4,8,5,8,3,2,2,2,8,7,1,8,3,5,2,0,9,3,5,3,9,6,5,7,2,5,1,2,1,0,8,3,5,7,9,1,5,1,3,6,9,8,8,2,0,9,1,4,4,4,2,1,0,0,6,7,5,1,0,3,3,4,6,7,1,1,0,3,1,4,1,2,6,7,1,1,1,3,6,9,9,0,8,6,5,8,5,1,6,3,9,8,3,1,5,0,1,9,7,0,1,6,5,1,5,1,1,6,8,5,1,7,1,4,3,7,6,5,7,6,1,8,3,5,1,5,5,6,5,0,8,8,4,9,0,9,9,8,9,8,5,9,9,8,2,3,8,7,3,4,5,5,2,8,3,3,1,6,3,5,5,0,7,6,4,7,9,1,8,5,3,5,8,9,3,2,2,6,1,8,5,4,8,9,6,3,2,1,3,2,9,3,3,0,8,9,8,5,7,0,6,4,2,0,4,6,7,5,2,5,9,0,7,0,9,1,5,4,8,1,4,1,6,5,4,9,8,5,9,4,6,1,6,3,7,1,8,0,2,7,0,9,8,1,9,9,4,3,0,9,9,2,4,4,8,8,9,5,7,5,7,1,2,8,2,8,9,0,5,9,2,3,2,3,3,2,6,0,9,7,2,9,9,7,1,2,0,8,4,4,3,3,5,7,3,2,6,5,4,8,9,3,8,2,3,9,1,1,9,3,2,5,9,7,4,6,3,6,6,7,3,0,5,8,3,6,0,4,1,4,2,8,1,3,8,8,3,0,3,2,0,3,8,2,4,9,0,3,7,5,8,9,8,5,2,4,3,7,4,4,1,7,0,2,9,1,3,2,7,6,5,6,1,8,0,9,3,7,7,3,4,4,4,0,3,0,7,0,7,4,6,9,2,1,1,2,0,1,9,1,3,0,2,0,3,3,0,3,8,0,1,9,7,6,2,1,1,0,1,1,0,0,4,4,9,2,9,3,2,1,5,1,6,0,8,4,2,4,4,4,8,5,9,6,3,7,6,6,9,8,3,8,9,5,2,2,8,6,8,4,7,8,3,1,2,3,5,5,2,6,5,8,2,1,3,1,4,4,9,5,7,6,8,5,7,2,6,2,4,3,3,4,4,1,8,9,3,0,3,9,6,8,6,4,2,6,2,4,3,4,1,0,7,7,3,2,2,6,9,7,8,0,2,8,0,7,3,1,8,9,1,5,4,4,1,1,0,1,0,4,4,6,8,2,3,2,5,2,7,1,6,2,0,1,0,5,2,6,5,2,2,7,2,1,1,1,6,6,0,3,9,6,6,6,5,5,7,3,0,9,2,5,4,7,1,1,0,5,5,7,8,5,3,7,6,3,4,6,6,8,2,0,6,5,3,1,0,9,8,9,6,5,2,6,9,1,8,6,2,0,5,6,4,7,6,9,3,1,2,5,7,0,5,8,6,3,5,6,6,2,0,1,8,5,5,8,1,0,0,7,2,9,3,6,0,6,5,9,8,7,6,4,8,6,1,1,7,9,1,0,4,5,3,3,4,8,8,5,0,3,4,6,1,1,3,6,5,7,6,8,6,7,5,3,2,4,9,4,4,1,6,6,8,0,3,9,6,2,6,5,7,9,7,8,7,7,1,8,5,5,6,0,8,4,5,5,2,9,6,5,4,1,2,6,6,5,4,0,8,5,3,0,6,1,4,3,4,4,4,3,1,8,5,8,6,7,6,9,7,5,1,4,5,6,6,1,4,0,6,8,0,0,7,0,0,2,3,7,8,7,7,6,5,9,1,3,4,4,0,1,7,1,2,7,4,9,4,7,0,4,2,0,5,6,2,2,3,0,5,3,8,9,9,4,5,6,1,3,1,4,0,7,1,1,2,7,0,0,0,4,0,7,8,5,4,7,3,3,2,6,9,9,3,9,0,8,1,4,5,4,6,6,4,6,4,5,8,8,0,7,9,7,2,7,0,8,2,6,6,8,3,0,6,3,4,3,2,8,5,8,7,8,5,6,9,8,3,0,5,2,3,5,8,0,8,9,3,3,0,6,5,7,5,7,4,0,6,7,9,5,4,5,7,1,6,3,7,7,5,2,5,4,2,0,2,1,1,4,9,5,5,7,6,1,5,8,1,4,0,0,2,5,0,1,2,6,2,2,8,5,9,4,1,3,0,2,1,6,4,7,1,5,5,0,9,7,9,2,5,9,2,3,0,9,9,0,7,9,6,5,4,7,3,7,6,1,2,5,5,1,7,6,5,6,7,5,1,3,5,7,5,1,7,8,2,9,6,6,6,4,5,4,7,7,9,1,7,4,5,0,1,1,2,9,9,6,1,4,8,9,0,3,0,4,6,3,9,9,4,7,1,3,2,9,6,2,1,0,7,3,4,0,4,3,7,5,1,8,9,5,7,3,5,9,6,1,4,5,8,9,0,1,9,3,8,9,7,1,3,1,1,1,7,9,0,4,2,9,7,8,2,8,5,6,4,7,5,0,3,2,0,3,1,9,8,6,9,1,5,1,4,0,2,8,7,0,8,0,8,5,9,9,0,4,8,0,1,0,9,4,1,2,1,4,7,2,2,1,3,1,7,9,4,7,6,4,7,7,7,2,6,2,2,4,1,4,2,5,4,8,5,4,5,4,0,3,3,2,1,5,7,1,8,5,3,0,6,1,4,2,2,8,8,1,3,7,5,8,5,0,4,3,0,6,3,3,2,1,7,5,1,8,2,9,7,9,8,6,6,2,2,3,7,1,7,2,1,5,9,1,6,0,7,7,1,6,6,9,2,5,4,7,4,8,7,3,8,9,8,6,6,5,4,9,4,9,4,5,0,1,1,4,6,5,4,0,6,2,8,4,3,3,6,6,3,9,3,7,9,0,0,3,9,7,6,9,2,6,5,6,7,2,1,4,6,3,8,5,3,0,6,7,3,6,0,9,6,5,7,1,2,0,9,1,8,0,7,6,3,8,3,2,7,1,6,6,4,1,6,2,7,4,8,8,8,8,0,0,7,8,6,9,2,5,6,0,2,9,0,2,2,8,4,7,2,1,0,4,0,3,1,7,2,1,1,8,6,0,8,2,0,4,1,9,0,0,0,4,2,2,9,6,6,1,7,1,1,9,6,3,7,7,9,2,1,3,3,7,5,7,5,1,1,4,9,5,9,5,0,1,5,6,6,0,4,9,6,3,1,8,6,2,9,4,7,2,6,5,4,7,3,6,4,2,5,2,3,0,8,1,7,7,0,3,6,7,5,1,5,9,0,6,7,3,5,0,2,3,5,0,7,2,8,3,5,4,0,5,6,7,0,4,0,3,8,6,7,4,3,5,1,3,6,2,2,2,2,4,7,7,1,5,8,9,1,5,0,4,9,5,3,0,9,8,4,4,4,8,9,3,3,3,0,9,6,3,4,0,8,7,8,0,7,6,9,3,2,5,9,9,3,9,7,8,0,5,4,1,9,3,4,1,4,4,7,3,7,7,4,4,1,8,4,2,6,3,1,2,9,8,6,0,8,0,9,9,8,8,8,6,8,7,4,1,3,2,6,0,4,7,2,1,5,6,9,5,1,6,2,3,9,6,5,8,6,4,5,7,3,0,2,1,6,3,1,5,9,8,1,9,3,1,9,5,1,6,7,3,5,3,8,1,2,9,7,4,1,6,7,7,2,9,4,7,8,6,7,2,4,2,2,9,2,4,6,5,4,3,6,6,8,0,0,9,8,0,6,7,6,9,2,8,2,3,8,2,8,0,6,8,9,9,6,4,0,0,4,8,2,4,3,5,4,0,3,7,0,1,4,1,6,3,1,4,9,6,5,8,9,7,9,4,0,9,2,4,3,2,3,7,8,9,6,9,0,7,0,6,9,7,7,9,4,2,2,3,6,2,5,0,8,2,2,1,6,8,8,9,5,7,3,8,3,7,9,8,6,2,3,0,0,1,5,9,3,7,7,6,4,7,1,6,5,1,2,2,8,9,3,5,7,8,6,0,1,5,8,8,1,6,1,7,5,5,7,8,2,9,7,3,5,2,3,3,4,4,6,0,4,2,8,1,5,1,2,6,2,7,2,0,3,7,3,4,3,1,4,6,5,3,1,9,7,7,7,7,4,1,6,0,3,1,9,9,0,6,6,5,5,4,1,8,7,6,3,9,7,9,2,9,3,3,4,4,1,9,5,2,1,5,4,1,3,4,1,8,9,9,4,8,5,4,4,4,7,3,4,5,6,7,3,8,3,1,6,2,4,9,9,3,4,1,9,1,3,1,8,1,4,8,0,9,2,7,7,7,7,1,0,3,8,6,3,8,7,7,3,4,3,1,7,7,2,0,7,5,4,5,6,5,4,5,3,2,2,0,7,7,7,0,9,2,1,2,0,1,9,0,5,1,6,6,0,9,6,2,8,0,4,9,0,9,2,6,3,6,0,1,9,7,5,9,8,8,2,8,1,6,1,3,3,2,3,1,6,6,6,3,6,5,2,8,6,1,9,3,2,6,6,8,6,3,3,6,0,6,2,7,3,5,6,7,6,3,0,3,5,4,4,7,7,6,2,8,0,3,5,0,4,5,0,7,7,7,2,3,5,5,4,7,1,0,5,8,5,9,5,4,8,7,0,2,7,9,0,8,1,4,3,5,6,2,4,0,1,4,5,1,7,1,8,0,6,2,4,6,4,3,6,2,6,7,9,4,5,6,1,2,7,5,3,1,8,1,3,4,0,7,8,3,3,0,3,3,6,2,5,4,2,3,2,7,8,3,9,4,4,9,7,5,3,8,2,4,3,7,2,0,5,8,3,5,3,1,1,4,7,7,1,1,9,9,2,6,0,6,3,8,1,3,3,4,6,7,7,6,8,7,9,6,9,5,9,7,0,3,0,9,8,3,3,9,1,3,0,7,7,1,0,9,8,7,0,4,0,8,5,9,1,3,3,7,4,6,4,1,4,4,2,8,2,2,7,7,2,6,3,4,6,5,9,4,7,0,4,7,4,5,8,7,8,4,7,7,8,7,2,0,1,9,2,7,7,1,5,2,8,0,7,3,1,7,6,7,9,0,7,7,0,7,1,5,7,2,1,3,4,4,4,7,3,0,6,0,5,7,0,0,7,3,3,4,9,2,4,3,6,9,3,1,1,3,8,3,5,0,4,9,3,1,6,3,1,2,8,4,0,4,2,5,1,2,1,9,2,5,6,5,1,7,9,8,0,6,9,4,1,1,3,5,2,8,0,1,3,1,4,7,0,1,3,0,4,7,8,1,6,4,3,7,8,8,5,1,8,5,2,9,0,9,2,8,5,4,5,2,0,1,1,6,5,8,3,9,3,4,1,9,6,5,6,2,1,3,4,9,1,4,3,4,1,5,9,5,6,2,5,8,6,5,8,6,5,5,7,0,5,5,2,6,9,0,4,9,6,5,2,0,9,8,5,8,0,3,3,8,5,0,7,2,2,4,2,6,4,8,2,9,3,9,7,2,8,5,8,4,7,8,3,1,6,3,0,5,7,7,7,7,5,6,0,6,8,8,8,7,6,4,4,6,2,4,8,2,4,6,8,5,7,9,2,6,0,3,9,5,3,5,2,7,7,3,4,8,0,3,0,4,8,0,2,9,0,0,5,8,7,6,0,7,5,8,2,5,1,0,4,7,4,7,0,9,1,6,4,3,9,6,1,3,6,2,6,7,6,0,4,4,9,2,5,6,2,7,4,2,0,4,2,0,8,3,2,0,8,5,6,6,1,1,9,0,6,2,5,4,5,4,3,3,7,2,1,3,1,5,3,5,9,5,8,4,5,0,6,8,7,7,2,4,6,0,2,9,0,1,6,1,8,7,6,6,7,9,5,2,4,0,6,1,6,3,4,2,5,2,2,5,7,7,1,9,5,4,2,9,1,6,2,9,9,1,9,3,0,6,4,5,5,3,7,7,9,9,1,4,0,3,7,3,4,0,4,3,2,8,7,5,2,6,2,8,8,8,9,6,3,9,9,5,8,7,9,4,7,5,7,2,9,1,7,4,6,4,2,6,3,5,7,4,5,5,2,5,4,0,7,9,0,9,1,4,5,1,3,5,7,1,1,1,3,6,9,4,1,0,9,1,1,9,3,9,3,2,5,1,9,1,0,7,6,0,2,0,8,2,5,2,0,2,6,1,8,7,9,8,5,3,1,8,8,7,7,0,5,8,4,2,9,7,2,5,9,1,6,7,7,8,1,3,1,4,9,6,9,9,0,0,9,0,1,9,2,1,1,6,9,7,1,7,3,7,2,7,8,4,7,6,8,4,7,2,6,8,6,0,8,4,9,0,0,3,3,7,7,0,2,4,2,4,2,9,1,6,5,1,3,0,0,5,0,0,5,1,6,8,3,2,3,3,6,4,3,5,0,3,8,9,5,1,7,0,2,9,8,9,3,9,2,2,3,3,4,5,1,7,2,2,0,1,3,8,1,2,8,0,6,9,6,5,0,1,1,7,8,4,4,0,8,7,4,5,1,9,6,0,1,2,1,2,2,8,5,9,9,3,7,1,6,2,3,1,3,0,1,7,1,1,4,4,4,8,4,6,4,0,9,0,3,8,9,0,6,4,4,9,5,4,4,4,0,0,6,1,9,8,6,9,0,7,5,4,8,5,1,6,0,2,6,3,2,7,5,0,5,2,9,8,3,4,9,1,8,7,4,0,7,8,6,6,8,0,8,8,1,8,3,3,8,5,1,0,2,2,8,3,3,4,5,0,8,5,0,4,8,6,0,8,2,5,0,3,9,3,0,2,1,3,3,2,1,9,7,1,5,5,1,8,4,3,0,6,3,5,4,5,5,0,0,7,6,6,8,2,8,2,9,4,9,3,0,4,1,3,7,7,6,5,5,2,7,9,3,9,7,5,1,7,5,4,6,1,3,9,5,3,9,8,4,6,8,3,3,9,3,6,3,8,3,0,4,7,4,6,1,1,9,9,6,6,5,3,8,5,8,1,5,3,8,4,2,0,5,6,8,5,3,3,8,6,2,1,8,6,7,2,5,2,3,3,4,0,2,8,3,0,8,7,1,1,2,3,2,8,2,7,8,9,2,1,2,5,0,7,7,1,2,6,2,9,4,6,3,2,2,9,5,6,3,9,8,9,8,9,8,9,3,5,8,2,1,1,6,7,4,5,6,2,7,0,1,0,2,1,8,3,5,6,4,6,2,2,0,1,3,4,9,6,7,1,5,1,8,8,1,9,0,9,7,3,0,3,8,1,1,9,8,0,0,4,9,7,3,4,0,7,2,3,9,6,1,0,3,6,8,5,4,0,6,6,4,3,1,9,3,9,5,0,9,7,9,0,1,9,0,6,9,9,6,3,9,5,5,2,4,5,3,0,0,5,4,5,0,5,8,0,6,8,5,5,0,1,9,5,6,7,3,0,2,2,9,2,1,9,1,3,9,3,3,9,1,8,5,6,8,0,3,4,4,9,0,3,9,8,2,0,5,9,5,5,1,0,0,2,2,6,3,5,3,5,3,6,1,9,2,0,4,1,9,9,4,7,4,5,5,3,8,5,9,3,8,1,0,2,3,4,3,9,5,5,4,4,9,5,9,7,7,8,3,7,7,9,0,2,3,7,4,2,1,6,1,7,2,7,1,1,1,7,2,3,6,4,3,4,3,5,4,3,9,4,7,8,2,2,1,8,1,8,5,2,8,6,2,4,0,8,5,1,4,0,0,6,6,6,0,4,4,3,3,2,5,8,8,8,5,6,9,8,6,7,0,5,4,3,1,5,4,7,0,6,9,6,5,7,4,7,4,5,8,5,5,0,3,3,2,3,2,3,3,4,2,1,0,7,3,0,1,5,4,5,9,4,0,5,1,6,5,5,3,7,9,0,6,8,6,6,2,7,3,3,3,7,9,9,5,8,5,1,1,5,6,2,5,7,8,4,3,2,2,9,8,8,2,7,3,7,2,3,1,9,8,9,8,7,5,7,1,4,1,5,9,5,7,8,1,1,1,9,6,3,5,8,3,3,0,0,5,9,4,0,8,7,3,0,6,8,1,2,1,6,0,2,8,7,6,4,9,6,2,8,6,7,4,4,6,0,4,7,7,4,6,4,9,1,5,9,9,5,0,5,4,9,7,3,7,4,2,5,6,2,6,9,0,1,0,4,9,0,3,7,7,8,1,9,8,6,8,3,5,9,3,8,1,4,6,5,7,4,1,2,6,8,0,4,9,2,5,6,4,8,7,9,8,5,5,6,1,4,5,3,7,2,3,4,7,8,6,7,3,3,0,3,9,0,4,6,8,8,3,8,3,4,3,6,3,4,6,5,5,3,7,9,4,9,8,6,4,1,9,2,7,0,5,6,3,8,7,2,9,3,1,7,4,8,7,2,3,3,2,0,8,3,7,6,0,1,1,2,3,0,2,9,9,1,1,3,6,7,9,3,8,6,2,7,0,8,9,4,3,8,7,9,9,3,6,2,0,1,6,2,9,5,1,5,4,1,3,3,7,1,4,2,4,8,9,2,8,3,0,7,2,2,0,1,2,6,9,0,1,4,7,5,4,6,6,8,4,7,6,5,3,5,7,6,1,6,4,7,7,3,7,9,4,6,7,5,2,0,0,4,9,0,7,5,7,1,5,5,5,2,7,8,1,9,6,5,3,6,2,1,3,2,3,9,2,6,4,0,6,1,6,0,1,3,6,3,5,8,1,5,5,9,0,7,4,2,2,0,2,0,2,0,3,1,8,7,2,7,7,6,0,5,2,7,7,2,1,9,0,0,5,5,6,1,4,8,4,2,5,5,5,1,8,7,9,2,5,3,0,3,4,3,5,1,3,9,8,4,4,2,5,3,2,2,3,4,1,5,7,6,2,3,3,6,1,0,6,4,2,5,0,6,3,9,0,4,9,7,5,0,0,8,6,5,6,2,7,1,0,9,5,3,5,9,1,9,4,6,5,8,9,7,5,1,4,1,3,1,0,3,4,8,2,2,7,6,9,3,0,6,2,4,7,4,3,5,3,6,3,2,5,6,9,1,6,0,7,8,1,5,4,7,8,1,8,1,1,5,2,8,4,3,6,6,7,9,5,7,0,6,1,1,0,8,6,1,5,3,3,1,5,0,4,4,5,2,1,2,7,4,7,3,9,2,4,5,4,4,9,4,5,4,2,3,6,8,2,8,8,6,0,6,1,3,4,0,8,4,1,4,8,6,3,7,7,6,7,0,0,9,6,1,2,0,7,1,5,1,2,4,9,1,4,0,4,3,0,2,7,2,5,3,8,6,0,7,6,4,8,2,3,6,3,4,1,4,3,3,4,6,2,3,5,1,8,9,7,5,7,6,6,4,5,2,1,6,4,1,3,7,6,7,9,6,9,0,3,1,4,9,5,0,1,9,1,0,8,5,7,5,9,8,4,4,2,3,9,1,9,8,6,2,9,1,6,4,2,1,9,3,9,9,4,9,0,7,2,3,6,2,3,4,6,4,6,8,4,4,1,1,7,3,9,4,0,3,2,6,5,9,1,8,4,0,4,4,3,7,8,0,5,1,3,3,3,8,9,4,5,2,5,7,4,2,3,9,9,5,0,8,2,9,6,5,9,1,2,2,8,5,0,8,5,5,5,8,2,1,5,7,2,5,0,3,1,0,7,1,2,5,7,0,1,2,6,6,8,3,0,2,4,0,2,9,2,9,5,2,5,2,2,0,1,1,8,7,2,6,7,6,7,5,6,2,2,0,4,1,5,4,2,0,5,1,6,1,8,4,1,6,3,4,8,4,7,5,6,5,1,6,9,9,9,8,1,1,6,1,4,1,0,1,0,0,2,9,9,6,0,7,8,3,8,6,9,0,9,2,9,1,6,0,3,0,2,8,8,4,0,0,2,6,9,1,0,4,1,4,0,7,9,2,8,8,6,2,1,5,0,7,8,4,2,4,5,1,6,7,0,9,0,8,7,0,0,0,6,9,9,2,8,2,1,2,0,6,6,0,4,1,8,3,7,1,8,0,6,5,3,5,5,6,7,2,5,2,5,3,2,5,6,7,5,3,2,8,6,1,2,9,1,0,4,2,4,8,7,7,6,1,8,2,5,8,2,9,7,6,5,1,5,7,9,5,9,8,4,7,0,3,5,6,2,2,2,6,2,9,3,4,8,6,0,0,3,4,1,5,8,7,2,2,9,8,0,5,3,4,9,8,9,6,5,0,2,2,6,2,9,1,7,4,8,7,8,8,2,0,2,7,3,4,2,0,9,2,2,2,2,4,5,3,3,9,8,5,6,2,6,4,7,6,6,9,1,4,9,0,5,5,6,2,8,4,2,5,0,3,9,1,2,7,5,7,7,1,0,2,8,4,0,2,7,9,9,8,0,6,6,3,6,5,8,2,5,4,8,8,9,2,6,4,8,8,0,2,5,4,5,6,6,1,0,1,7,2,9,6,7,0,2,6,6,4,0,7,6,5,5,9,0,4,2,9,0,9,9,4,5,6,8,1,5,0,6,5,2,6,5,3,0,5,3,7,1,8,2,9,4,1,2,7,0,3,3,6,9,3,1,3,7,8,5,1,7,8,6,0,9,0,4,0,7,0,8,6,6,7,1,1,4,9,6,5,5,8,3,4,3,4,3,4,7,6,9,3,3,8,5,7,8,1,7,1,1,3,8,6,4,5,5,8,7,3,6,7,8,1,2,3,0,1,4,5,8,7,6,8,7,1,2,6,6,0,3,4,8,9,1,3,9,0,9,5,6,2,0,0,9,9,3,9,3,6,1,0,3,1,0,2,9,1,6,1,6,1,5,2,8,8,1,3,8,4,3,7,9,0,9,9,0,4,2,3,1,7,4,7,3,3,6,3,9,4,8,0,4,5,7,5,9,3,1,4,9,3,1,4,0,5,2,9,7,6,3,4,7,5,7,4,8,1,1,9,3,5,6,7,0,9,1,1,0,1,3,7,7,5,1,7,2,1,0,0,8,0,3,1,5,5,9,0,2,4,8,5,3,0,9,0,6,6,9,2,0,3,7,6,7,1,9,2,2,0,3,3,2,2,9,0,9,4,3,3,4,6,7,6,8,5,1,4,2,2,1,4,4,7,7,3,7,9,3,9,3,7,5,1,7,0,3,4,4,3,6,6,1,9,9,1,0,4,0,3,3,7,5,1,1,1,7,3,5,4,7,1,9,1,8,5,5,0,4,6,4,4,9,0,2,6,3,6,5,5,1,2,8,1,6,2,2,8,8,2,4,4,6,2,5,7,5,9,1,6,3,3,3,0,3,9,1,0,7,2,2,5,3,8,3,7,4,2,1,8,2,1,4,0,8,8,3,5,0,8,6,5,7,3,9,1,7,7,1,5,0,9,6,8,2,8,8,7,4,7,8,2,6,5,6,9,9,5,9,9,5,7,4,4,9,0,6,6,1,7,5,8,3,4,4,1,3,7,5,2,2,3,9,7,0,9,6,8,3,4,0,8,0,0,5,3,5,5,9,8,4,9,1,7,5,4,1,7,3,8,1,8,8,3,9,9,9,4,4,6,9,7,4,8,6,7,6,2,6,5,5,1,6,5,8,2,7,6,5,8,4,8,3,5,8,8,4,5,3,1,4,2,7,7,5,6,8,7,9,0,0,2,9,0,9,5,1,7,0,2,8,3,5,2,9,7,1,6,3,4,4,5,6,2,1,2,9,6,4,0,4,3,5,2,3,1,1,7,6,0,0,6,6,5,1,0,1,2,4,1,2,0,0,6,5,9,7,5,5,8,5,1,2,7,6,1,7,8,5,8,3,8,2,9,2,0,4,1,9,7,4,8,4,4,2,3,6,0,8,0,0,7,1,9,3,0,4,5,7,6,1,8,9,3,2,3,4,9,2,2,9,2,7,9,6,5,0,1,9,8,7,5,1,8,7,2,1,2,7,2,6,7,5,0,7,9,8,1,2,5,5,4,7,0,9,5,8,9,0,4,5,5,6,3,5,7,9,2,1,2,2,1,0,3,3,3,4,6,6,9,7,4,9,9,2,3,5,6,3,0,2,5,4,9,4,7,8,0,2,4,9,0,1,1,4,1,9,5,2,1,2,3,8,2,8,1,5,3,0,9,1,1,4,0,7,9,0,7,3,8,6,0,2,5,1,5,2,2,7,4,2,9,9,5,8,1,8,0,7,2,4,7,1,6,2,5,9,1,6,6,8,5,4,5,1,3,3,3,1,2,3,9,4,8,0,4,9,4,7,0,7,9,1,1,9,1,5,3,2,6,7,3,4,3,0,2,8,2,4,4,1,8,6,0,4,1,4,2,6,3,6,3,9,5,4,8,0,0,0,4,4,8,0,0,2,6,7,0,4,9,6,2,4,8,2,0,1,7,9,2,8,9,6,4,7,6,6,9,7,5,8,3,1,8,3,2,7,1,3,1,4,2,5,1,7,0,2,9,6,9,2,3,4,8,8,9,6,2,7,6,6,8,4,4,0,3,2,3,2,6,0,9,2,7,5,2,4,9,6,0,3,5,7,9,9,6,4,6,9,2,5,6,5,0,4,9,3,6,8,1,8,3,6,0,9,0,0,3,2,3,8,0,9,2,9,3,4,5,9,5,8,8,9,7,0,6,9,5,3,6,5,3,4,9,4,0,6,0,3,4,0,2,1,6,6,5,4,4,3,7,5,5,8,9,0,0,4,5,6,3,2,8,8,2,2,5,0,5,4,5,2,5,5,6,4,0,5,6,4,4,8,2,4,6,5,1,5,1,8,7,5,4,7,1,1,9,6,2,1,8,4,4,3,9,6,5,8,2,5,3,3,7,5,4,3,8,8,5,6,9,0,9,4,1,1,3,0,3,1,5,0,9,5,2,6,1,7,9,3,7,8,0,0,2,9,7,4,1,2,0,7,6,6,5,1,4,7,9,3,9,4,2,5,9,0,2,9,8,9,6,9,5,9,4,6,9,9,5,5,6,5,7,6,1,2,1,8,6,5,6,1,9,6,7,3,3,7,8,6,2,3,6,2,5,6,1,2,5,2,1,6,3,2,0,8,6,2,8,6,9,2,2,2,1,0,3,2,7,4,8,8,9,2,1,8,6,5,4,3,6,4,8,0,2,2,9,6,7,8,0,7,0,5,7,6,5,6,1,5,1,4,4,6,3,2,0,4,6,9,2,7,9,0,6,8,2,1,2,0,7,3,8,8,3,7,7,8,1,4,2,3,3,5,6,2,8,2,3,6,0,8,9,6,3,2,0,8,0,6,8,2,2,2,4,6,8,0,1,2,2,4,8,2,6,1,1,7,7,1,8,5,8,9,6,3,8,1,4,0,9,1,8,3,9,0,3,6,7,3,6,7,2,2,2,0,8,8,8,3,2,1,5,1,3,7,5,5,6,0,0,3,7,2,7,9,8,3,9,4,0,0,4,1,5,2,9,7,0,0,2,8,7,8,3,0,7,6,6,7,0,9,4,4,4,7,4,5,6,0,1,3,4,5,5,6,4,1,7,2,5,4,3,7,0,9,0,6,9,7,9,3,9,6,1,2,2,5,7,1,4,2,9,8,9,4,6,7,1,5,4,3,5,7,8,4,6,8,7,8,8,6,1,4,4,4,5,8,1,2,3,1,4,5,9,3,5,7,1,9,8,4,9,2,2,5,2,8,4,7,1,6,0,5,0,4,9,2,2,1,2,4,2,4,7,0,1,4,1,2,1,4,7,8,0,5,7,3,4,5,5,1,0,5,0,0,8,0,1,9,0,8,6,9,9,6,0,3,3,0,2,7,6,3,4,7,8,7,0,8,1,0,8,1,7,5,4,5,0,1,1,9,3,0,7,1,4,1,2,2,3,3,9,0,8,6,6,3,9,3,8,3,3,9,5,2,9,4,2,5,7,8,6,9,0,5,0,7,6,4,3,1,0,0,6,3,8,3,5,1,9,8,3,4,3,8,9,3,4,1,5,9,6,1,3,1,8,5,4,3,4,7,5,4,6,4,9,5,5,6,9,7,8,1,0,3,8,2,9,3,0,9,7,1,6,4,6,5,1,4,3,8,4,0,7,0,0,7,0,7,3,6,0,4,1,1,2,3,7,3,5,9,9,8,4,3,4,5,2,2,5,1,6,1,0,5,0,7,0,2,7,0,5,6,2,3,5,2,6,6,0,1,2,7,6,4,8,4,8,3,0,8,4,0,7,6,1,1,8,3,0,1,3,0,5,2,7,9,3,2,0,5,4,2,7,4,6,2,8,6,5,4,0,3,6,0,3,6,7,4,5,3,2,8,6,5,1,0,5,7,0,6,5,8,7,4,8,8,2,2,5,6,9,8,1,5,7,9,3,6,7,8,9,7,6,6,9,7,4,2,2,0,5,7,5,0,5,9,6,8,3,4,4,0,8,6,9,7,3,5,0,2,0,1,4,1,0,2,0,6,7,2,3,5,8,5,0,2,0,0,7,2,4,5,2,2,5,6,3,2,6,5,1,3,4,1,0,5,5,9,2,4,0,1,9,0,2,7,4,2,1,6,2,4,8,4,3,9,1,4,0,3,5,9,9,8,9,5,3,5,3,9,4,5,9,0,9,4,4,0,7,0,4,6,9,1,2,0,9,1,4,0,9,3,8,7,0,0,1,2,6,4,5,6,0,0,1,6,2,3,7,4,2,8,8,0,2,1,0,9,2,7,6,4,5,7,9,3,1,0,6,5,7,9,2,2,9,5,5,2,4,9,8,8,7,2,7,5,8,4,6,1,0,1,2,6,4,8,3,6,9,9,9,8,9,2,2,5,6,9,5,9,6,8,8,1,5,9,2,0,5,6,0,0,1,0,1,6,5,5,2,5,6,3,7,5,6,7 ]; localStorage.setItem("arrax", JSON.stringify(pix)); // [colorize] (function colorize(marry){ let cor = JSON.parse(localStorage.getItem("arrax")); for (i=0;i<10000;i++){ if (cor[i] == 0){ colors[i] = themy[0]; } else if (cor[i] == 1) { colors[i] = themy[1]; } else if (cor[i] == 2) { colors[i] = themy[2]; } else if (cor[i] == 3) { colors[i] = themy[3]; } else if (cor[i] == 4) { colors[i] = themy[4]; } else if (cor[i] == 5) { colors[i] = themy[5]; } else if (cor[i] == 6) { colors[i] = themy[6]; } else if (cor[i] == 7) { colors[i] = themy[7]; } else if (cor[i] == 8) { colors[i] = themy[8]; } else { colors[i] = themy[9]; } // console.log(cor); } localStorage.setItem("colorx", JSON.stringify(colors)); // console.log(JSON.stringify(colors)); colors2 = JSON.stringify(colors); })(); // [pixelboard] let cor = JSON.parse(localStorage.getItem("colorx")); var c_canvas = document.getElementById("board"); var ctx = c_canvas.getContext("2d"); // Uncoment to show pixel grade // for (var x = 0.5; x < 1000; x += 10) { // ctx.moveTo(x, 0); // ctx.lineTo(x, 1000); // } // for (var y = 0.5; y < 1000; y += 10) { // ctx.moveTo(0, y); // ctx.lineTo(1000, y); // } // ctx.strokeStyle = "#eee"; // ctx.stroke(); ctx.fillStyle = cor[0];ctx.fillRect(0,0, 10, 10) ctx.fillStyle = cor[1];ctx.fillRect(10,0, 10, 10) ctx.fillStyle = cor[2];ctx.fillRect(20,0, 10, 10) ctx.fillStyle = cor[3];ctx.fillRect(30,0, 10, 10) ctx.fillStyle = cor[4];ctx.fillRect(40,0, 10, 10) ctx.fillStyle = cor[5];ctx.fillRect(50,0, 10, 10) ctx.fillStyle = cor[6];ctx.fillRect(60,0, 10, 10) ctx.fillStyle = cor[7];ctx.fillRect(70,0, 10, 10) ctx.fillStyle = cor[8];ctx.fillRect(80,0, 10, 10) ctx.fillStyle = cor[9];ctx.fillRect(90,0, 10, 10) ctx.fillStyle = cor[10];ctx.fillRect(100,0, 10, 10) ctx.fillStyle = cor[11];ctx.fillRect(110,0, 10, 10) ctx.fillStyle = cor[12];ctx.fillRect(120,0, 10, 10) ctx.fillStyle = cor[13];ctx.fillRect(130,0, 10, 10) ctx.fillStyle = cor[14];ctx.fillRect(140,0, 10, 10) ctx.fillStyle = cor[15];ctx.fillRect(150,0, 10, 10) ctx.fillStyle = cor[16];ctx.fillRect(160,0, 10, 10) ctx.fillStyle = cor[17];ctx.fillRect(170,0, 10, 10) ctx.fillStyle = cor[18];ctx.fillRect(180,0, 10, 10) ctx.fillStyle = cor[19];ctx.fillRect(190,0, 10, 10) ctx.fillStyle = cor[20];ctx.fillRect(200,0, 10, 10) ctx.fillStyle = cor[21];ctx.fillRect(210,0, 10, 10) ctx.fillStyle = cor[22];ctx.fillRect(220,0, 10, 10) ctx.fillStyle = cor[23];ctx.fillRect(230,0, 10, 10) ctx.fillStyle = cor[24];ctx.fillRect(240,0, 10, 10) ctx.fillStyle = cor[25];ctx.fillRect(250,0, 10, 10) ctx.fillStyle = cor[26];ctx.fillRect(260,0, 10, 10) ctx.fillStyle = cor[27];ctx.fillRect(270,0, 10, 10) ctx.fillStyle = cor[28];ctx.fillRect(280,0, 10, 10) ctx.fillStyle = cor[29];ctx.fillRect(290,0, 10, 10) ctx.fillStyle = cor[30];ctx.fillRect(300,0, 10, 10) ctx.fillStyle = cor[31];ctx.fillRect(310,0, 10, 10) ctx.fillStyle = cor[32];ctx.fillRect(320,0, 10, 10) ctx.fillStyle = cor[33];ctx.fillRect(330,0, 10, 10) ctx.fillStyle = cor[34];ctx.fillRect(340,0, 10, 10) ctx.fillStyle = cor[35];ctx.fillRect(350,0, 10, 10) ctx.fillStyle = cor[36];ctx.fillRect(360,0, 10, 10) ctx.fillStyle = cor[37];ctx.fillRect(370,0, 10, 10) ctx.fillStyle = cor[38];ctx.fillRect(380,0, 10, 10) ctx.fillStyle = cor[39];ctx.fillRect(390,0, 10, 10) ctx.fillStyle = cor[40];ctx.fillRect(400,0, 10, 10) ctx.fillStyle = cor[41];ctx.fillRect(410,0, 10, 10) ctx.fillStyle = cor[42];ctx.fillRect(420,0, 10, 10) ctx.fillStyle = cor[43];ctx.fillRect(430,0, 10, 10) ctx.fillStyle = cor[44];ctx.fillRect(440,0, 10, 10) ctx.fillStyle = cor[45];ctx.fillRect(450,0, 10, 10) ctx.fillStyle = cor[46];ctx.fillRect(460,0, 10, 10) ctx.fillStyle = cor[47];ctx.fillRect(470,0, 10, 10) ctx.fillStyle = cor[48];ctx.fillRect(480,0, 10, 10) ctx.fillStyle = cor[49];ctx.fillRect(490,0, 10, 10) ctx.fillStyle = cor[50];ctx.fillRect(500,0, 10, 10) ctx.fillStyle = cor[51];ctx.fillRect(510,0, 10, 10) ctx.fillStyle = cor[52];ctx.fillRect(520,0, 10, 10) ctx.fillStyle = cor[53];ctx.fillRect(530,0, 10, 10) ctx.fillStyle = cor[54];ctx.fillRect(540,0, 10, 10) ctx.fillStyle = cor[55];ctx.fillRect(550,0, 10, 10) ctx.fillStyle = cor[56];ctx.fillRect(560,0, 10, 10) ctx.fillStyle = cor[57];ctx.fillRect(570,0, 10, 10) ctx.fillStyle = cor[58];ctx.fillRect(580,0, 10, 10) ctx.fillStyle = cor[59];ctx.fillRect(590,0, 10, 10) ctx.fillStyle = cor[60];ctx.fillRect(600,0, 10, 10) ctx.fillStyle = cor[61];ctx.fillRect(610,0, 10, 10) ctx.fillStyle = cor[62];ctx.fillRect(620,0, 10, 10) ctx.fillStyle = cor[63];ctx.fillRect(630,0, 10, 10) ctx.fillStyle = cor[64];ctx.fillRect(640,0, 10, 10) ctx.fillStyle = cor[65];ctx.fillRect(650,0, 10, 10) ctx.fillStyle = cor[66];ctx.fillRect(660,0, 10, 10) ctx.fillStyle = cor[67];ctx.fillRect(670,0, 10, 10) ctx.fillStyle = cor[68];ctx.fillRect(680,0, 10, 10) ctx.fillStyle = cor[69];ctx.fillRect(690,0, 10, 10) ctx.fillStyle = cor[70];ctx.fillRect(700,0, 10, 10) ctx.fillStyle = cor[71];ctx.fillRect(710,0, 10, 10) ctx.fillStyle = cor[72];ctx.fillRect(720,0, 10, 10) ctx.fillStyle = cor[73];ctx.fillRect(730,0, 10, 10) ctx.fillStyle = cor[74];ctx.fillRect(740,0, 10, 10) ctx.fillStyle = cor[75];ctx.fillRect(750,0, 10, 10) ctx.fillStyle = cor[76];ctx.fillRect(760,0, 10, 10) ctx.fillStyle = cor[77];ctx.fillRect(770,0, 10, 10) ctx.fillStyle = cor[78];ctx.fillRect(780,0, 10, 10) ctx.fillStyle = cor[79];ctx.fillRect(790,0, 10, 10) ctx.fillStyle = cor[80];ctx.fillRect(800,0, 10, 10) ctx.fillStyle = cor[81];ctx.fillRect(810,0, 10, 10) ctx.fillStyle = cor[82];ctx.fillRect(820,0, 10, 10) ctx.fillStyle = cor[83];ctx.fillRect(830,0, 10, 10) ctx.fillStyle = cor[84];ctx.fillRect(840,0, 10, 10) ctx.fillStyle = cor[85];ctx.fillRect(850,0, 10, 10) ctx.fillStyle = cor[86];ctx.fillRect(860,0, 10, 10) ctx.fillStyle = cor[87];ctx.fillRect(870,0, 10, 10) ctx.fillStyle = cor[88];ctx.fillRect(880,0, 10, 10) ctx.fillStyle = cor[89];ctx.fillRect(890,0, 10, 10) ctx.fillStyle = cor[90];ctx.fillRect(900,0, 10, 10) ctx.fillStyle = cor[91];ctx.fillRect(910,0, 10, 10) ctx.fillStyle = cor[92];ctx.fillRect(920,0, 10, 10) ctx.fillStyle = cor[93];ctx.fillRect(930,0, 10, 10) ctx.fillStyle = cor[94];ctx.fillRect(940,0, 10, 10) ctx.fillStyle = cor[95];ctx.fillRect(950,0, 10, 10) ctx.fillStyle = cor[96];ctx.fillRect(960,0, 10, 10) ctx.fillStyle = cor[97];ctx.fillRect(970,0, 10, 10) ctx.fillStyle = cor[98];ctx.fillRect(980,0, 10, 10) ctx.fillStyle = cor[99];ctx.fillRect(990,0, 10, 10) ctx.fillStyle = cor[100];ctx.fillRect(0,10, 10, 10) ctx.fillStyle = cor[101];ctx.fillRect(10,10, 10, 10) ctx.fillStyle = cor[102];ctx.fillRect(20,10, 10, 10) ctx.fillStyle = cor[103];ctx.fillRect(30,10, 10, 10) ctx.fillStyle = cor[104];ctx.fillRect(40,10, 10, 10) ctx.fillStyle = cor[105];ctx.fillRect(50,10, 10, 10) ctx.fillStyle = cor[106];ctx.fillRect(60,10, 10, 10) ctx.fillStyle = cor[107];ctx.fillRect(70,10, 10, 10) ctx.fillStyle = cor[108];ctx.fillRect(80,10, 10, 10) ctx.fillStyle = cor[109];ctx.fillRect(90,10, 10, 10) ctx.fillStyle = cor[110];ctx.fillRect(100,10, 10, 10) ctx.fillStyle = cor[111];ctx.fillRect(110,10, 10, 10) ctx.fillStyle = cor[112];ctx.fillRect(120,10, 10, 10) ctx.fillStyle = cor[113];ctx.fillRect(130,10, 10, 10) ctx.fillStyle = cor[114];ctx.fillRect(140,10, 10, 10) ctx.fillStyle = cor[115];ctx.fillRect(150,10, 10, 10) ctx.fillStyle = cor[116];ctx.fillRect(160,10, 10, 10) ctx.fillStyle = cor[117];ctx.fillRect(170,10, 10, 10) ctx.fillStyle = cor[118];ctx.fillRect(180,10, 10, 10) ctx.fillStyle = cor[119];ctx.fillRect(190,10, 10, 10) ctx.fillStyle = cor[120];ctx.fillRect(200,10, 10, 10) ctx.fillStyle = cor[121];ctx.fillRect(210,10, 10, 10) ctx.fillStyle = cor[122];ctx.fillRect(220,10, 10, 10) ctx.fillStyle = cor[123];ctx.fillRect(230,10, 10, 10) ctx.fillStyle = cor[124];ctx.fillRect(240,10, 10, 10) ctx.fillStyle = cor[125];ctx.fillRect(250,10, 10, 10) ctx.fillStyle = cor[126];ctx.fillRect(260,10, 10, 10) ctx.fillStyle = cor[127];ctx.fillRect(270,10, 10, 10) ctx.fillStyle = cor[128];ctx.fillRect(280,10, 10, 10) ctx.fillStyle = cor[129];ctx.fillRect(290,10, 10, 10) ctx.fillStyle = cor[130];ctx.fillRect(300,10, 10, 10) ctx.fillStyle = cor[131];ctx.fillRect(310,10, 10, 10) ctx.fillStyle = cor[132];ctx.fillRect(320,10, 10, 10) ctx.fillStyle = cor[133];ctx.fillRect(330,10, 10, 10) ctx.fillStyle = cor[134];ctx.fillRect(340,10, 10, 10) ctx.fillStyle = cor[135];ctx.fillRect(350,10, 10, 10) ctx.fillStyle = cor[136];ctx.fillRect(360,10, 10, 10) ctx.fillStyle = cor[137];ctx.fillRect(370,10, 10, 10) ctx.fillStyle = cor[138];ctx.fillRect(380,10, 10, 10) ctx.fillStyle = cor[139];ctx.fillRect(390,10, 10, 10) ctx.fillStyle = cor[140];ctx.fillRect(400,10, 10, 10) ctx.fillStyle = cor[141];ctx.fillRect(410,10, 10, 10) ctx.fillStyle = cor[142];ctx.fillRect(420,10, 10, 10) ctx.fillStyle = cor[143];ctx.fillRect(430,10, 10, 10) ctx.fillStyle = cor[144];ctx.fillRect(440,10, 10, 10) ctx.fillStyle = cor[145];ctx.fillRect(450,10, 10, 10) ctx.fillStyle = cor[146];ctx.fillRect(460,10, 10, 10) ctx.fillStyle = cor[147];ctx.fillRect(470,10, 10, 10) ctx.fillStyle = cor[148];ctx.fillRect(480,10, 10, 10) ctx.fillStyle = cor[149];ctx.fillRect(490,10, 10, 10) ctx.fillStyle = cor[150];ctx.fillRect(500,10, 10, 10) ctx.fillStyle = cor[151];ctx.fillRect(510,10, 10, 10) ctx.fillStyle = cor[152];ctx.fillRect(520,10, 10, 10) ctx.fillStyle = cor[153];ctx.fillRect(530,10, 10, 10) ctx.fillStyle = cor[154];ctx.fillRect(540,10, 10, 10) ctx.fillStyle = cor[155];ctx.fillRect(550,10, 10, 10) ctx.fillStyle = cor[156];ctx.fillRect(560,10, 10, 10) ctx.fillStyle = cor[157];ctx.fillRect(570,10, 10, 10) ctx.fillStyle = cor[158];ctx.fillRect(580,10, 10, 10) ctx.fillStyle = cor[159];ctx.fillRect(590,10, 10, 10) ctx.fillStyle = cor[160];ctx.fillRect(600,10, 10, 10) ctx.fillStyle = cor[161];ctx.fillRect(610,10, 10, 10) ctx.fillStyle = cor[162];ctx.fillRect(620,10, 10, 10) ctx.fillStyle = cor[163];ctx.fillRect(630,10, 10, 10) ctx.fillStyle = cor[164];ctx.fillRect(640,10, 10, 10) ctx.fillStyle = cor[165];ctx.fillRect(650,10, 10, 10) ctx.fillStyle = cor[166];ctx.fillRect(660,10, 10, 10) ctx.fillStyle = cor[167];ctx.fillRect(670,10, 10, 10) ctx.fillStyle = cor[168];ctx.fillRect(680,10, 10, 10) ctx.fillStyle = cor[169];ctx.fillRect(690,10, 10, 10) ctx.fillStyle = cor[170];ctx.fillRect(700,10, 10, 10) ctx.fillStyle = cor[171];ctx.fillRect(710,10, 10, 10) ctx.fillStyle = cor[172];ctx.fillRect(720,10, 10, 10) ctx.fillStyle = cor[173];ctx.fillRect(730,10, 10, 10) ctx.fillStyle = cor[174];ctx.fillRect(740,10, 10, 10) ctx.fillStyle = cor[175];ctx.fillRect(750,10, 10, 10) ctx.fillStyle = cor[176];ctx.fillRect(760,10, 10, 10) ctx.fillStyle = cor[177];ctx.fillRect(770,10, 10, 10) ctx.fillStyle = cor[178];ctx.fillRect(780,10, 10, 10) ctx.fillStyle = cor[179];ctx.fillRect(790,10, 10, 10) ctx.fillStyle = cor[180];ctx.fillRect(800,10, 10, 10) ctx.fillStyle = cor[181];ctx.fillRect(810,10, 10, 10) ctx.fillStyle = cor[182];ctx.fillRect(820,10, 10, 10) ctx.fillStyle = cor[183];ctx.fillRect(830,10, 10, 10) ctx.fillStyle = cor[184];ctx.fillRect(840,10, 10, 10) ctx.fillStyle = cor[185];ctx.fillRect(850,10, 10, 10) ctx.fillStyle = cor[186];ctx.fillRect(860,10, 10, 10) ctx.fillStyle = cor[187];ctx.fillRect(870,10, 10, 10) ctx.fillStyle = cor[188];ctx.fillRect(880,10, 10, 10) ctx.fillStyle = cor[189];ctx.fillRect(890,10, 10, 10) ctx.fillStyle = cor[190];ctx.fillRect(900,10, 10, 10) ctx.fillStyle = cor[191];ctx.fillRect(910,10, 10, 10) ctx.fillStyle = cor[192];ctx.fillRect(920,10, 10, 10) ctx.fillStyle = cor[193];ctx.fillRect(930,10, 10, 10) ctx.fillStyle = cor[194];ctx.fillRect(940,10, 10, 10) ctx.fillStyle = cor[195];ctx.fillRect(950,10, 10, 10) ctx.fillStyle = cor[196];ctx.fillRect(960,10, 10, 10) ctx.fillStyle = cor[197];ctx.fillRect(970,10, 10, 10) ctx.fillStyle = cor[198];ctx.fillRect(980,10, 10, 10) ctx.fillStyle = cor[199];ctx.fillRect(990,10, 10, 10) ctx.fillStyle = cor[200];ctx.fillRect(0,20, 10, 10) ctx.fillStyle = cor[201];ctx.fillRect(10,20, 10, 10) ctx.fillStyle = cor[202];ctx.fillRect(20,20, 10, 10) ctx.fillStyle = cor[203];ctx.fillRect(30,20, 10, 10) ctx.fillStyle = cor[204];ctx.fillRect(40,20, 10, 10) ctx.fillStyle = cor[205];ctx.fillRect(50,20, 10, 10) ctx.fillStyle = cor[206];ctx.fillRect(60,20, 10, 10) ctx.fillStyle = cor[207];ctx.fillRect(70,20, 10, 10) ctx.fillStyle = cor[208];ctx.fillRect(80,20, 10, 10) ctx.fillStyle = cor[209];ctx.fillRect(90,20, 10, 10) ctx.fillStyle = cor[210];ctx.fillRect(100,20, 10, 10) ctx.fillStyle = cor[211];ctx.fillRect(110,20, 10, 10) ctx.fillStyle = cor[212];ctx.fillRect(120,20, 10, 10) ctx.fillStyle = cor[213];ctx.fillRect(130,20, 10, 10) ctx.fillStyle = cor[214];ctx.fillRect(140,20, 10, 10) ctx.fillStyle = cor[215];ctx.fillRect(150,20, 10, 10) ctx.fillStyle = cor[216];ctx.fillRect(160,20, 10, 10) ctx.fillStyle = cor[217];ctx.fillRect(170,20, 10, 10) ctx.fillStyle = cor[218];ctx.fillRect(180,20, 10, 10) ctx.fillStyle = cor[219];ctx.fillRect(190,20, 10, 10) ctx.fillStyle = cor[220];ctx.fillRect(200,20, 10, 10) ctx.fillStyle = cor[221];ctx.fillRect(210,20, 10, 10) ctx.fillStyle = cor[222];ctx.fillRect(220,20, 10, 10) ctx.fillStyle = cor[223];ctx.fillRect(230,20, 10, 10) ctx.fillStyle = cor[224];ctx.fillRect(240,20, 10, 10) ctx.fillStyle = cor[225];ctx.fillRect(250,20, 10, 10) ctx.fillStyle = cor[226];ctx.fillRect(260,20, 10, 10) ctx.fillStyle = cor[227];ctx.fillRect(270,20, 10, 10) ctx.fillStyle = cor[228];ctx.fillRect(280,20, 10, 10) ctx.fillStyle = cor[229];ctx.fillRect(290,20, 10, 10) ctx.fillStyle = cor[230];ctx.fillRect(300,20, 10, 10) ctx.fillStyle = cor[231];ctx.fillRect(310,20, 10, 10) ctx.fillStyle = cor[232];ctx.fillRect(320,20, 10, 10) ctx.fillStyle = cor[233];ctx.fillRect(330,20, 10, 10) ctx.fillStyle = cor[234];ctx.fillRect(340,20, 10, 10) ctx.fillStyle = cor[235];ctx.fillRect(350,20, 10, 10) ctx.fillStyle = cor[236];ctx.fillRect(360,20, 10, 10) ctx.fillStyle = cor[237];ctx.fillRect(370,20, 10, 10) ctx.fillStyle = cor[238];ctx.fillRect(380,20, 10, 10) ctx.fillStyle = cor[239];ctx.fillRect(390,20, 10, 10) ctx.fillStyle = cor[240];ctx.fillRect(400,20, 10, 10) ctx.fillStyle = cor[241];ctx.fillRect(410,20, 10, 10) ctx.fillStyle = cor[242];ctx.fillRect(420,20, 10, 10) ctx.fillStyle = cor[243];ctx.fillRect(430,20, 10, 10) ctx.fillStyle = cor[244];ctx.fillRect(440,20, 10, 10) ctx.fillStyle = cor[245];ctx.fillRect(450,20, 10, 10) ctx.fillStyle = cor[246];ctx.fillRect(460,20, 10, 10) ctx.fillStyle = cor[247];ctx.fillRect(470,20, 10, 10) ctx.fillStyle = cor[248];ctx.fillRect(480,20, 10, 10) ctx.fillStyle = cor[249];ctx.fillRect(490,20, 10, 10) ctx.fillStyle = cor[250];ctx.fillRect(500,20, 10, 10) ctx.fillStyle = cor[251];ctx.fillRect(510,20, 10, 10) ctx.fillStyle = cor[252];ctx.fillRect(520,20, 10, 10) ctx.fillStyle = cor[253];ctx.fillRect(530,20, 10, 10) ctx.fillStyle = cor[254];ctx.fillRect(540,20, 10, 10) ctx.fillStyle = cor[255];ctx.fillRect(550,20, 10, 10) ctx.fillStyle = cor[256];ctx.fillRect(560,20, 10, 10) ctx.fillStyle = cor[257];ctx.fillRect(570,20, 10, 10) ctx.fillStyle = cor[258];ctx.fillRect(580,20, 10, 10) ctx.fillStyle = cor[259];ctx.fillRect(590,20, 10, 10) ctx.fillStyle = cor[260];ctx.fillRect(600,20, 10, 10) ctx.fillStyle = cor[261];ctx.fillRect(610,20, 10, 10) ctx.fillStyle = cor[262];ctx.fillRect(620,20, 10, 10) ctx.fillStyle = cor[263];ctx.fillRect(630,20, 10, 10) ctx.fillStyle = cor[264];ctx.fillRect(640,20, 10, 10) ctx.fillStyle = cor[265];ctx.fillRect(650,20, 10, 10) ctx.fillStyle = cor[266];ctx.fillRect(660,20, 10, 10) ctx.fillStyle = cor[267];ctx.fillRect(670,20, 10, 10) ctx.fillStyle = cor[268];ctx.fillRect(680,20, 10, 10) ctx.fillStyle = cor[269];ctx.fillRect(690,20, 10, 10) ctx.fillStyle = cor[270];ctx.fillRect(700,20, 10, 10) ctx.fillStyle = cor[271];ctx.fillRect(710,20, 10, 10) ctx.fillStyle = cor[272];ctx.fillRect(720,20, 10, 10) ctx.fillStyle = cor[273];ctx.fillRect(730,20, 10, 10) ctx.fillStyle = cor[274];ctx.fillRect(740,20, 10, 10) ctx.fillStyle = cor[275];ctx.fillRect(750,20, 10, 10) ctx.fillStyle = cor[276];ctx.fillRect(760,20, 10, 10) ctx.fillStyle = cor[277];ctx.fillRect(770,20, 10, 10) ctx.fillStyle = cor[278];ctx.fillRect(780,20, 10, 10) ctx.fillStyle = cor[279];ctx.fillRect(790,20, 10, 10) ctx.fillStyle = cor[280];ctx.fillRect(800,20, 10, 10) ctx.fillStyle = cor[281];ctx.fillRect(810,20, 10, 10) ctx.fillStyle = cor[282];ctx.fillRect(820,20, 10, 10) ctx.fillStyle = cor[283];ctx.fillRect(830,20, 10, 10) ctx.fillStyle = cor[284];ctx.fillRect(840,20, 10, 10) ctx.fillStyle = cor[285];ctx.fillRect(850,20, 10, 10) ctx.fillStyle = cor[286];ctx.fillRect(860,20, 10, 10) ctx.fillStyle = cor[287];ctx.fillRect(870,20, 10, 10) ctx.fillStyle = cor[288];ctx.fillRect(880,20, 10, 10) ctx.fillStyle = cor[289];ctx.fillRect(890,20, 10, 10) ctx.fillStyle = cor[290];ctx.fillRect(900,20, 10, 10) ctx.fillStyle = cor[291];ctx.fillRect(910,20, 10, 10) ctx.fillStyle = cor[292];ctx.fillRect(920,20, 10, 10) ctx.fillStyle = cor[293];ctx.fillRect(930,20, 10, 10) ctx.fillStyle = cor[294];ctx.fillRect(940,20, 10, 10) ctx.fillStyle = cor[295];ctx.fillRect(950,20, 10, 10) ctx.fillStyle = cor[296];ctx.fillRect(960,20, 10, 10) ctx.fillStyle = cor[297];ctx.fillRect(970,20, 10, 10) ctx.fillStyle = cor[298];ctx.fillRect(980,20, 10, 10) ctx.fillStyle = cor[299];ctx.fillRect(990,20, 10, 10) ctx.fillStyle = cor[300];ctx.fillRect(0,30, 10, 10) ctx.fillStyle = cor[301];ctx.fillRect(10,30, 10, 10) ctx.fillStyle = cor[302];ctx.fillRect(20,30, 10, 10) ctx.fillStyle = cor[303];ctx.fillRect(30,30, 10, 10) ctx.fillStyle = cor[304];ctx.fillRect(40,30, 10, 10) ctx.fillStyle = cor[305];ctx.fillRect(50,30, 10, 10) ctx.fillStyle = cor[306];ctx.fillRect(60,30, 10, 10) ctx.fillStyle = cor[307];ctx.fillRect(70,30, 10, 10) ctx.fillStyle = cor[308];ctx.fillRect(80,30, 10, 10) ctx.fillStyle = cor[309];ctx.fillRect(90,30, 10, 10) ctx.fillStyle = cor[310];ctx.fillRect(100,30, 10, 10) ctx.fillStyle = cor[311];ctx.fillRect(110,30, 10, 10) ctx.fillStyle = cor[312];ctx.fillRect(120,30, 10, 10) ctx.fillStyle = cor[313];ctx.fillRect(130,30, 10, 10) ctx.fillStyle = cor[314];ctx.fillRect(140,30, 10, 10) ctx.fillStyle = cor[315];ctx.fillRect(150,30, 10, 10) ctx.fillStyle = cor[316];ctx.fillRect(160,30, 10, 10) ctx.fillStyle = cor[317];ctx.fillRect(170,30, 10, 10) ctx.fillStyle = cor[318];ctx.fillRect(180,30, 10, 10) ctx.fillStyle = cor[319];ctx.fillRect(190,30, 10, 10) ctx.fillStyle = cor[320];ctx.fillRect(200,30, 10, 10) ctx.fillStyle = cor[321];ctx.fillRect(210,30, 10, 10) ctx.fillStyle = cor[322];ctx.fillRect(220,30, 10, 10) ctx.fillStyle = cor[323];ctx.fillRect(230,30, 10, 10) ctx.fillStyle = cor[324];ctx.fillRect(240,30, 10, 10) ctx.fillStyle = cor[325];ctx.fillRect(250,30, 10, 10) ctx.fillStyle = cor[326];ctx.fillRect(260,30, 10, 10) ctx.fillStyle = cor[327];ctx.fillRect(270,30, 10, 10) ctx.fillStyle = cor[328];ctx.fillRect(280,30, 10, 10) ctx.fillStyle = cor[329];ctx.fillRect(290,30, 10, 10) ctx.fillStyle = cor[330];ctx.fillRect(300,30, 10, 10) ctx.fillStyle = cor[331];ctx.fillRect(310,30, 10, 10) ctx.fillStyle = cor[332];ctx.fillRect(320,30, 10, 10) ctx.fillStyle = cor[333];ctx.fillRect(330,30, 10, 10) ctx.fillStyle = cor[334];ctx.fillRect(340,30, 10, 10) ctx.fillStyle = cor[335];ctx.fillRect(350,30, 10, 10) ctx.fillStyle = cor[336];ctx.fillRect(360,30, 10, 10) ctx.fillStyle = cor[337];ctx.fillRect(370,30, 10, 10) ctx.fillStyle = cor[338];ctx.fillRect(380,30, 10, 10) ctx.fillStyle = cor[339];ctx.fillRect(390,30, 10, 10) ctx.fillStyle = cor[340];ctx.fillRect(400,30, 10, 10) ctx.fillStyle = cor[341];ctx.fillRect(410,30, 10, 10) ctx.fillStyle = cor[342];ctx.fillRect(420,30, 10, 10) ctx.fillStyle = cor[343];ctx.fillRect(430,30, 10, 10) ctx.fillStyle = cor[344];ctx.fillRect(440,30, 10, 10) ctx.fillStyle = cor[345];ctx.fillRect(450,30, 10, 10) ctx.fillStyle = cor[346];ctx.fillRect(460,30, 10, 10) ctx.fillStyle = cor[347];ctx.fillRect(470,30, 10, 10) ctx.fillStyle = cor[348];ctx.fillRect(480,30, 10, 10) ctx.fillStyle = cor[349];ctx.fillRect(490,30, 10, 10) ctx.fillStyle = cor[350];ctx.fillRect(500,30, 10, 10) ctx.fillStyle = cor[351];ctx.fillRect(510,30, 10, 10) ctx.fillStyle = cor[352];ctx.fillRect(520,30, 10, 10) ctx.fillStyle = cor[353];ctx.fillRect(530,30, 10, 10) ctx.fillStyle = cor[354];ctx.fillRect(540,30, 10, 10) ctx.fillStyle = cor[355];ctx.fillRect(550,30, 10, 10) ctx.fillStyle = cor[356];ctx.fillRect(560,30, 10, 10) ctx.fillStyle = cor[357];ctx.fillRect(570,30, 10, 10) ctx.fillStyle = cor[358];ctx.fillRect(580,30, 10, 10) ctx.fillStyle = cor[359];ctx.fillRect(590,30, 10, 10) ctx.fillStyle = cor[360];ctx.fillRect(600,30, 10, 10) ctx.fillStyle = cor[361];ctx.fillRect(610,30, 10, 10) ctx.fillStyle = cor[362];ctx.fillRect(620,30, 10, 10) ctx.fillStyle = cor[363];ctx.fillRect(630,30, 10, 10) ctx.fillStyle = cor[364];ctx.fillRect(640,30, 10, 10) ctx.fillStyle = cor[365];ctx.fillRect(650,30, 10, 10) ctx.fillStyle = cor[366];ctx.fillRect(660,30, 10, 10) ctx.fillStyle = cor[367];ctx.fillRect(670,30, 10, 10) ctx.fillStyle = cor[368];ctx.fillRect(680,30, 10, 10) ctx.fillStyle = cor[369];ctx.fillRect(690,30, 10, 10) ctx.fillStyle = cor[370];ctx.fillRect(700,30, 10, 10) ctx.fillStyle = cor[371];ctx.fillRect(710,30, 10, 10) ctx.fillStyle = cor[372];ctx.fillRect(720,30, 10, 10) ctx.fillStyle = cor[373];ctx.fillRect(730,30, 10, 10) ctx.fillStyle = cor[374];ctx.fillRect(740,30, 10, 10) ctx.fillStyle = cor[375];ctx.fillRect(750,30, 10, 10) ctx.fillStyle = cor[376];ctx.fillRect(760,30, 10, 10) ctx.fillStyle = cor[377];ctx.fillRect(770,30, 10, 10) ctx.fillStyle = cor[378];ctx.fillRect(780,30, 10, 10) ctx.fillStyle = cor[379];ctx.fillRect(790,30, 10, 10) ctx.fillStyle = cor[380];ctx.fillRect(800,30, 10, 10) ctx.fillStyle = cor[381];ctx.fillRect(810,30, 10, 10) ctx.fillStyle = cor[382];ctx.fillRect(820,30, 10, 10) ctx.fillStyle = cor[383];ctx.fillRect(830,30, 10, 10) ctx.fillStyle = cor[384];ctx.fillRect(840,30, 10, 10) ctx.fillStyle = cor[385];ctx.fillRect(850,30, 10, 10) ctx.fillStyle = cor[386];ctx.fillRect(860,30, 10, 10) ctx.fillStyle = cor[387];ctx.fillRect(870,30, 10, 10) ctx.fillStyle = cor[388];ctx.fillRect(880,30, 10, 10) ctx.fillStyle = cor[389];ctx.fillRect(890,30, 10, 10) ctx.fillStyle = cor[390];ctx.fillRect(900,30, 10, 10) ctx.fillStyle = cor[391];ctx.fillRect(910,30, 10, 10) ctx.fillStyle = cor[392];ctx.fillRect(920,30, 10, 10) ctx.fillStyle = cor[393];ctx.fillRect(930,30, 10, 10) ctx.fillStyle = cor[394];ctx.fillRect(940,30, 10, 10) ctx.fillStyle = cor[395];ctx.fillRect(950,30, 10, 10) ctx.fillStyle = cor[396];ctx.fillRect(960,30, 10, 10) ctx.fillStyle = cor[397];ctx.fillRect(970,30, 10, 10) ctx.fillStyle = cor[398];ctx.fillRect(980,30, 10, 10) ctx.fillStyle = cor[399];ctx.fillRect(990,30, 10, 10) ctx.fillStyle = cor[400];ctx.fillRect(0,40, 10, 10) ctx.fillStyle = cor[401];ctx.fillRect(10,40, 10, 10) ctx.fillStyle = cor[402];ctx.fillRect(20,40, 10, 10) ctx.fillStyle = cor[403];ctx.fillRect(30,40, 10, 10) ctx.fillStyle = cor[404];ctx.fillRect(40,40, 10, 10) ctx.fillStyle = cor[405];ctx.fillRect(50,40, 10, 10) ctx.fillStyle = cor[406];ctx.fillRect(60,40, 10, 10) ctx.fillStyle = cor[407];ctx.fillRect(70,40, 10, 10) ctx.fillStyle = cor[408];ctx.fillRect(80,40, 10, 10) ctx.fillStyle = cor[409];ctx.fillRect(90,40, 10, 10) ctx.fillStyle = cor[410];ctx.fillRect(100,40, 10, 10) ctx.fillStyle = cor[411];ctx.fillRect(110,40, 10, 10) ctx.fillStyle = cor[412];ctx.fillRect(120,40, 10, 10) ctx.fillStyle = cor[413];ctx.fillRect(130,40, 10, 10) ctx.fillStyle = cor[414];ctx.fillRect(140,40, 10, 10) ctx.fillStyle = cor[415];ctx.fillRect(150,40, 10, 10) ctx.fillStyle = cor[416];ctx.fillRect(160,40, 10, 10) ctx.fillStyle = cor[417];ctx.fillRect(170,40, 10, 10) ctx.fillStyle = cor[418];ctx.fillRect(180,40, 10, 10) ctx.fillStyle = cor[419];ctx.fillRect(190,40, 10, 10) ctx.fillStyle = cor[420];ctx.fillRect(200,40, 10, 10) ctx.fillStyle = cor[421];ctx.fillRect(210,40, 10, 10) ctx.fillStyle = cor[422];ctx.fillRect(220,40, 10, 10) ctx.fillStyle = cor[423];ctx.fillRect(230,40, 10, 10) ctx.fillStyle = cor[424];ctx.fillRect(240,40, 10, 10) ctx.fillStyle = cor[425];ctx.fillRect(250,40, 10, 10) ctx.fillStyle = cor[426];ctx.fillRect(260,40, 10, 10) ctx.fillStyle = cor[427];ctx.fillRect(270,40, 10, 10) ctx.fillStyle = cor[428];ctx.fillRect(280,40, 10, 10) ctx.fillStyle = cor[429];ctx.fillRect(290,40, 10, 10) ctx.fillStyle = cor[430];ctx.fillRect(300,40, 10, 10) ctx.fillStyle = cor[431];ctx.fillRect(310,40, 10, 10) ctx.fillStyle = cor[432];ctx.fillRect(320,40, 10, 10) ctx.fillStyle = cor[433];ctx.fillRect(330,40, 10, 10) ctx.fillStyle = cor[434];ctx.fillRect(340,40, 10, 10) ctx.fillStyle = cor[435];ctx.fillRect(350,40, 10, 10) ctx.fillStyle = cor[436];ctx.fillRect(360,40, 10, 10) ctx.fillStyle = cor[437];ctx.fillRect(370,40, 10, 10) ctx.fillStyle = cor[438];ctx.fillRect(380,40, 10, 10) ctx.fillStyle = cor[439];ctx.fillRect(390,40, 10, 10) ctx.fillStyle = cor[440];ctx.fillRect(400,40, 10, 10) ctx.fillStyle = cor[441];ctx.fillRect(410,40, 10, 10) ctx.fillStyle = cor[442];ctx.fillRect(420,40, 10, 10) ctx.fillStyle = cor[443];ctx.fillRect(430,40, 10, 10) ctx.fillStyle = cor[444];ctx.fillRect(440,40, 10, 10) ctx.fillStyle = cor[445];ctx.fillRect(450,40, 10, 10) ctx.fillStyle = cor[446];ctx.fillRect(460,40, 10, 10) ctx.fillStyle = cor[447];ctx.fillRect(470,40, 10, 10) ctx.fillStyle = cor[448];ctx.fillRect(480,40, 10, 10) ctx.fillStyle = cor[449];ctx.fillRect(490,40, 10, 10) ctx.fillStyle = cor[450];ctx.fillRect(500,40, 10, 10) ctx.fillStyle = cor[451];ctx.fillRect(510,40, 10, 10) ctx.fillStyle = cor[452];ctx.fillRect(520,40, 10, 10) ctx.fillStyle = cor[453];ctx.fillRect(530,40, 10, 10) ctx.fillStyle = cor[454];ctx.fillRect(540,40, 10, 10) ctx.fillStyle = cor[455];ctx.fillRect(550,40, 10, 10) ctx.fillStyle = cor[456];ctx.fillRect(560,40, 10, 10) ctx.fillStyle = cor[457];ctx.fillRect(570,40, 10, 10) ctx.fillStyle = cor[458];ctx.fillRect(580,40, 10, 10) ctx.fillStyle = cor[459];ctx.fillRect(590,40, 10, 10) ctx.fillStyle = cor[460];ctx.fillRect(600,40, 10, 10) ctx.fillStyle = cor[461];ctx.fillRect(610,40, 10, 10) ctx.fillStyle = cor[462];ctx.fillRect(620,40, 10, 10) ctx.fillStyle = cor[463];ctx.fillRect(630,40, 10, 10) ctx.fillStyle = cor[464];ctx.fillRect(640,40, 10, 10) ctx.fillStyle = cor[465];ctx.fillRect(650,40, 10, 10) ctx.fillStyle = cor[466];ctx.fillRect(660,40, 10, 10) ctx.fillStyle = cor[467];ctx.fillRect(670,40, 10, 10) ctx.fillStyle = cor[468];ctx.fillRect(680,40, 10, 10) ctx.fillStyle = cor[469];ctx.fillRect(690,40, 10, 10) ctx.fillStyle = cor[470];ctx.fillRect(700,40, 10, 10) ctx.fillStyle = cor[471];ctx.fillRect(710,40, 10, 10) ctx.fillStyle = cor[472];ctx.fillRect(720,40, 10, 10) ctx.fillStyle = cor[473];ctx.fillRect(730,40, 10, 10) ctx.fillStyle = cor[474];ctx.fillRect(740,40, 10, 10) ctx.fillStyle = cor[475];ctx.fillRect(750,40, 10, 10) ctx.fillStyle = cor[476];ctx.fillRect(760,40, 10, 10) ctx.fillStyle = cor[477];ctx.fillRect(770,40, 10, 10) ctx.fillStyle = cor[478];ctx.fillRect(780,40, 10, 10) ctx.fillStyle = cor[479];ctx.fillRect(790,40, 10, 10) ctx.fillStyle = cor[480];ctx.fillRect(800,40, 10, 10) ctx.fillStyle = cor[481];ctx.fillRect(810,40, 10, 10) ctx.fillStyle = cor[482];ctx.fillRect(820,40, 10, 10) ctx.fillStyle = cor[483];ctx.fillRect(830,40, 10, 10) ctx.fillStyle = cor[484];ctx.fillRect(840,40, 10, 10) ctx.fillStyle = cor[485];ctx.fillRect(850,40, 10, 10) ctx.fillStyle = cor[486];ctx.fillRect(860,40, 10, 10) ctx.fillStyle = cor[487];ctx.fillRect(870,40, 10, 10) ctx.fillStyle = cor[488];ctx.fillRect(880,40, 10, 10) ctx.fillStyle = cor[489];ctx.fillRect(890,40, 10, 10) ctx.fillStyle = cor[490];ctx.fillRect(900,40, 10, 10) ctx.fillStyle = cor[491];ctx.fillRect(910,40, 10, 10) ctx.fillStyle = cor[492];ctx.fillRect(920,40, 10, 10) ctx.fillStyle = cor[493];ctx.fillRect(930,40, 10, 10) ctx.fillStyle = cor[494];ctx.fillRect(940,40, 10, 10) ctx.fillStyle = cor[495];ctx.fillRect(950,40, 10, 10) ctx.fillStyle = cor[496];ctx.fillRect(960,40, 10, 10) ctx.fillStyle = cor[497];ctx.fillRect(970,40, 10, 10) ctx.fillStyle = cor[498];ctx.fillRect(980,40, 10, 10) ctx.fillStyle = cor[499];ctx.fillRect(990,40, 10, 10) ctx.fillStyle = cor[500];ctx.fillRect(0,50, 10, 10) ctx.fillStyle = cor[501];ctx.fillRect(10,50, 10, 10) ctx.fillStyle = cor[502];ctx.fillRect(20,50, 10, 10) ctx.fillStyle = cor[503];ctx.fillRect(30,50, 10, 10) ctx.fillStyle = cor[504];ctx.fillRect(40,50, 10, 10) ctx.fillStyle = cor[505];ctx.fillRect(50,50, 10, 10) ctx.fillStyle = cor[506];ctx.fillRect(60,50, 10, 10) ctx.fillStyle = cor[507];ctx.fillRect(70,50, 10, 10) ctx.fillStyle = cor[508];ctx.fillRect(80,50, 10, 10) ctx.fillStyle = cor[509];ctx.fillRect(90,50, 10, 10) ctx.fillStyle = cor[510];ctx.fillRect(100,50, 10, 10) ctx.fillStyle = cor[511];ctx.fillRect(110,50, 10, 10) ctx.fillStyle = cor[512];ctx.fillRect(120,50, 10, 10) ctx.fillStyle = cor[513];ctx.fillRect(130,50, 10, 10) ctx.fillStyle = cor[514];ctx.fillRect(140,50, 10, 10) ctx.fillStyle = cor[515];ctx.fillRect(150,50, 10, 10) ctx.fillStyle = cor[516];ctx.fillRect(160,50, 10, 10) ctx.fillStyle = cor[517];ctx.fillRect(170,50, 10, 10) ctx.fillStyle = cor[518];ctx.fillRect(180,50, 10, 10) ctx.fillStyle = cor[519];ctx.fillRect(190,50, 10, 10) ctx.fillStyle = cor[520];ctx.fillRect(200,50, 10, 10) ctx.fillStyle = cor[521];ctx.fillRect(210,50, 10, 10) ctx.fillStyle = cor[522];ctx.fillRect(220,50, 10, 10) ctx.fillStyle = cor[523];ctx.fillRect(230,50, 10, 10) ctx.fillStyle = cor[524];ctx.fillRect(240,50, 10, 10) ctx.fillStyle = cor[525];ctx.fillRect(250,50, 10, 10) ctx.fillStyle = cor[526];ctx.fillRect(260,50, 10, 10) ctx.fillStyle = cor[527];ctx.fillRect(270,50, 10, 10) ctx.fillStyle = cor[528];ctx.fillRect(280,50, 10, 10) ctx.fillStyle = cor[529];ctx.fillRect(290,50, 10, 10) ctx.fillStyle = cor[530];ctx.fillRect(300,50, 10, 10) ctx.fillStyle = cor[531];ctx.fillRect(310,50, 10, 10) ctx.fillStyle = cor[532];ctx.fillRect(320,50, 10, 10) ctx.fillStyle = cor[533];ctx.fillRect(330,50, 10, 10) ctx.fillStyle = cor[534];ctx.fillRect(340,50, 10, 10) ctx.fillStyle = cor[535];ctx.fillRect(350,50, 10, 10) ctx.fillStyle = cor[536];ctx.fillRect(360,50, 10, 10) ctx.fillStyle = cor[537];ctx.fillRect(370,50, 10, 10) ctx.fillStyle = cor[538];ctx.fillRect(380,50, 10, 10) ctx.fillStyle = cor[539];ctx.fillRect(390,50, 10, 10) ctx.fillStyle = cor[540];ctx.fillRect(400,50, 10, 10) ctx.fillStyle = cor[541];ctx.fillRect(410,50, 10, 10) ctx.fillStyle = cor[542];ctx.fillRect(420,50, 10, 10) ctx.fillStyle = cor[543];ctx.fillRect(430,50, 10, 10) ctx.fillStyle = cor[544];ctx.fillRect(440,50, 10, 10) ctx.fillStyle = cor[545];ctx.fillRect(450,50, 10, 10) ctx.fillStyle = cor[546];ctx.fillRect(460,50, 10, 10) ctx.fillStyle = cor[547];ctx.fillRect(470,50, 10, 10) ctx.fillStyle = cor[548];ctx.fillRect(480,50, 10, 10) ctx.fillStyle = cor[549];ctx.fillRect(490,50, 10, 10) ctx.fillStyle = cor[550];ctx.fillRect(500,50, 10, 10) ctx.fillStyle = cor[551];ctx.fillRect(510,50, 10, 10) ctx.fillStyle = cor[552];ctx.fillRect(520,50, 10, 10) ctx.fillStyle = cor[553];ctx.fillRect(530,50, 10, 10) ctx.fillStyle = cor[554];ctx.fillRect(540,50, 10, 10) ctx.fillStyle = cor[555];ctx.fillRect(550,50, 10, 10) ctx.fillStyle = cor[556];ctx.fillRect(560,50, 10, 10) ctx.fillStyle = cor[557];ctx.fillRect(570,50, 10, 10) ctx.fillStyle = cor[558];ctx.fillRect(580,50, 10, 10) ctx.fillStyle = cor[559];ctx.fillRect(590,50, 10, 10) ctx.fillStyle = cor[560];ctx.fillRect(600,50, 10, 10) ctx.fillStyle = cor[561];ctx.fillRect(610,50, 10, 10) ctx.fillStyle = cor[562];ctx.fillRect(620,50, 10, 10) ctx.fillStyle = cor[563];ctx.fillRect(630,50, 10, 10) ctx.fillStyle = cor[564];ctx.fillRect(640,50, 10, 10) ctx.fillStyle = cor[565];ctx.fillRect(650,50, 10, 10) ctx.fillStyle = cor[566];ctx.fillRect(660,50, 10, 10) ctx.fillStyle = cor[567];ctx.fillRect(670,50, 10, 10) ctx.fillStyle = cor[568];ctx.fillRect(680,50, 10, 10) ctx.fillStyle = cor[569];ctx.fillRect(690,50, 10, 10) ctx.fillStyle = cor[570];ctx.fillRect(700,50, 10, 10) ctx.fillStyle = cor[571];ctx.fillRect(710,50, 10, 10) ctx.fillStyle = cor[572];ctx.fillRect(720,50, 10, 10) ctx.fillStyle = cor[573];ctx.fillRect(730,50, 10, 10) ctx.fillStyle = cor[574];ctx.fillRect(740,50, 10, 10) ctx.fillStyle = cor[575];ctx.fillRect(750,50, 10, 10) ctx.fillStyle = cor[576];ctx.fillRect(760,50, 10, 10) ctx.fillStyle = cor[577];ctx.fillRect(770,50, 10, 10) ctx.fillStyle = cor[578];ctx.fillRect(780,50, 10, 10) ctx.fillStyle = cor[579];ctx.fillRect(790,50, 10, 10) ctx.fillStyle = cor[580];ctx.fillRect(800,50, 10, 10) ctx.fillStyle = cor[581];ctx.fillRect(810,50, 10, 10) ctx.fillStyle = cor[582];ctx.fillRect(820,50, 10, 10) ctx.fillStyle = cor[583];ctx.fillRect(830,50, 10, 10) ctx.fillStyle = cor[584];ctx.fillRect(840,50, 10, 10) ctx.fillStyle = cor[585];ctx.fillRect(850,50, 10, 10) ctx.fillStyle = cor[586];ctx.fillRect(860,50, 10, 10) ctx.fillStyle = cor[587];ctx.fillRect(870,50, 10, 10) ctx.fillStyle = cor[588];ctx.fillRect(880,50, 10, 10) ctx.fillStyle = cor[589];ctx.fillRect(890,50, 10, 10) ctx.fillStyle = cor[590];ctx.fillRect(900,50, 10, 10) ctx.fillStyle = cor[591];ctx.fillRect(910,50, 10, 10) ctx.fillStyle = cor[592];ctx.fillRect(920,50, 10, 10) ctx.fillStyle = cor[593];ctx.fillRect(930,50, 10, 10) ctx.fillStyle = cor[594];ctx.fillRect(940,50, 10, 10) ctx.fillStyle = cor[595];ctx.fillRect(950,50, 10, 10) ctx.fillStyle = cor[596];ctx.fillRect(960,50, 10, 10) ctx.fillStyle = cor[597];ctx.fillRect(970,50, 10, 10) ctx.fillStyle = cor[598];ctx.fillRect(980,50, 10, 10) ctx.fillStyle = cor[599];ctx.fillRect(990,50, 10, 10) ctx.fillStyle = cor[600];ctx.fillRect(0,60, 10, 10) ctx.fillStyle = cor[601];ctx.fillRect(10,60, 10, 10) ctx.fillStyle = cor[602];ctx.fillRect(20,60, 10, 10) ctx.fillStyle = cor[603];ctx.fillRect(30,60, 10, 10) ctx.fillStyle = cor[604];ctx.fillRect(40,60, 10, 10) ctx.fillStyle = cor[605];ctx.fillRect(50,60, 10, 10) ctx.fillStyle = cor[606];ctx.fillRect(60,60, 10, 10) ctx.fillStyle = cor[607];ctx.fillRect(70,60, 10, 10) ctx.fillStyle = cor[608];ctx.fillRect(80,60, 10, 10) ctx.fillStyle = cor[609];ctx.fillRect(90,60, 10, 10) ctx.fillStyle = cor[610];ctx.fillRect(100,60, 10, 10) ctx.fillStyle = cor[611];ctx.fillRect(110,60, 10, 10) ctx.fillStyle = cor[612];ctx.fillRect(120,60, 10, 10) ctx.fillStyle = cor[613];ctx.fillRect(130,60, 10, 10) ctx.fillStyle = cor[614];ctx.fillRect(140,60, 10, 10) ctx.fillStyle = cor[615];ctx.fillRect(150,60, 10, 10) ctx.fillStyle = cor[616];ctx.fillRect(160,60, 10, 10) ctx.fillStyle = cor[617];ctx.fillRect(170,60, 10, 10) ctx.fillStyle = cor[618];ctx.fillRect(180,60, 10, 10) ctx.fillStyle = cor[619];ctx.fillRect(190,60, 10, 10) ctx.fillStyle = cor[620];ctx.fillRect(200,60, 10, 10) ctx.fillStyle = cor[621];ctx.fillRect(210,60, 10, 10) ctx.fillStyle = cor[622];ctx.fillRect(220,60, 10, 10) ctx.fillStyle = cor[623];ctx.fillRect(230,60, 10, 10) ctx.fillStyle = cor[624];ctx.fillRect(240,60, 10, 10) ctx.fillStyle = cor[625];ctx.fillRect(250,60, 10, 10) ctx.fillStyle = cor[626];ctx.fillRect(260,60, 10, 10) ctx.fillStyle = cor[627];ctx.fillRect(270,60, 10, 10) ctx.fillStyle = cor[628];ctx.fillRect(280,60, 10, 10) ctx.fillStyle = cor[629];ctx.fillRect(290,60, 10, 10) ctx.fillStyle = cor[630];ctx.fillRect(300,60, 10, 10) ctx.fillStyle = cor[631];ctx.fillRect(310,60, 10, 10) ctx.fillStyle = cor[632];ctx.fillRect(320,60, 10, 10) ctx.fillStyle = cor[633];ctx.fillRect(330,60, 10, 10) ctx.fillStyle = cor[634];ctx.fillRect(340,60, 10, 10) ctx.fillStyle = cor[635];ctx.fillRect(350,60, 10, 10) ctx.fillStyle = cor[636];ctx.fillRect(360,60, 10, 10) ctx.fillStyle = cor[637];ctx.fillRect(370,60, 10, 10) ctx.fillStyle = cor[638];ctx.fillRect(380,60, 10, 10) ctx.fillStyle = cor[639];ctx.fillRect(390,60, 10, 10) ctx.fillStyle = cor[640];ctx.fillRect(400,60, 10, 10) ctx.fillStyle = cor[641];ctx.fillRect(410,60, 10, 10) ctx.fillStyle = cor[642];ctx.fillRect(420,60, 10, 10) ctx.fillStyle = cor[643];ctx.fillRect(430,60, 10, 10) ctx.fillStyle = cor[644];ctx.fillRect(440,60, 10, 10) ctx.fillStyle = cor[645];ctx.fillRect(450,60, 10, 10) ctx.fillStyle = cor[646];ctx.fillRect(460,60, 10, 10) ctx.fillStyle = cor[647];ctx.fillRect(470,60, 10, 10) ctx.fillStyle = cor[648];ctx.fillRect(480,60, 10, 10) ctx.fillStyle = cor[649];ctx.fillRect(490,60, 10, 10) ctx.fillStyle = cor[650];ctx.fillRect(500,60, 10, 10) ctx.fillStyle = cor[651];ctx.fillRect(510,60, 10, 10) ctx.fillStyle = cor[652];ctx.fillRect(520,60, 10, 10) ctx.fillStyle = cor[653];ctx.fillRect(530,60, 10, 10) ctx.fillStyle = cor[654];ctx.fillRect(540,60, 10, 10) ctx.fillStyle = cor[655];ctx.fillRect(550,60, 10, 10) ctx.fillStyle = cor[656];ctx.fillRect(560,60, 10, 10) ctx.fillStyle = cor[657];ctx.fillRect(570,60, 10, 10) ctx.fillStyle = cor[658];ctx.fillRect(580,60, 10, 10) ctx.fillStyle = cor[659];ctx.fillRect(590,60, 10, 10) ctx.fillStyle = cor[660];ctx.fillRect(600,60, 10, 10) ctx.fillStyle = cor[661];ctx.fillRect(610,60, 10, 10) ctx.fillStyle = cor[662];ctx.fillRect(620,60, 10, 10) ctx.fillStyle = cor[663];ctx.fillRect(630,60, 10, 10) ctx.fillStyle = cor[664];ctx.fillRect(640,60, 10, 10) ctx.fillStyle = cor[665];ctx.fillRect(650,60, 10, 10) ctx.fillStyle = cor[666];ctx.fillRect(660,60, 10, 10) ctx.fillStyle = cor[667];ctx.fillRect(670,60, 10, 10) ctx.fillStyle = cor[668];ctx.fillRect(680,60, 10, 10) ctx.fillStyle = cor[669];ctx.fillRect(690,60, 10, 10) ctx.fillStyle = cor[670];ctx.fillRect(700,60, 10, 10) ctx.fillStyle = cor[671];ctx.fillRect(710,60, 10, 10) ctx.fillStyle = cor[672];ctx.fillRect(720,60, 10, 10) ctx.fillStyle = cor[673];ctx.fillRect(730,60, 10, 10) ctx.fillStyle = cor[674];ctx.fillRect(740,60, 10, 10) ctx.fillStyle = cor[675];ctx.fillRect(750,60, 10, 10) ctx.fillStyle = cor[676];ctx.fillRect(760,60, 10, 10) ctx.fillStyle = cor[677];ctx.fillRect(770,60, 10, 10) ctx.fillStyle = cor[678];ctx.fillRect(780,60, 10, 10) ctx.fillStyle = cor[679];ctx.fillRect(790,60, 10, 10) ctx.fillStyle = cor[680];ctx.fillRect(800,60, 10, 10) ctx.fillStyle = cor[681];ctx.fillRect(810,60, 10, 10) ctx.fillStyle = cor[682];ctx.fillRect(820,60, 10, 10) ctx.fillStyle = cor[683];ctx.fillRect(830,60, 10, 10) ctx.fillStyle = cor[684];ctx.fillRect(840,60, 10, 10) ctx.fillStyle = cor[685];ctx.fillRect(850,60, 10, 10) ctx.fillStyle = cor[686];ctx.fillRect(860,60, 10, 10) ctx.fillStyle = cor[687];ctx.fillRect(870,60, 10, 10) ctx.fillStyle = cor[688];ctx.fillRect(880,60, 10, 10) ctx.fillStyle = cor[689];ctx.fillRect(890,60, 10, 10) ctx.fillStyle = cor[690];ctx.fillRect(900,60, 10, 10) ctx.fillStyle = cor[691];ctx.fillRect(910,60, 10, 10) ctx.fillStyle = cor[692];ctx.fillRect(920,60, 10, 10) ctx.fillStyle = cor[693];ctx.fillRect(930,60, 10, 10) ctx.fillStyle = cor[694];ctx.fillRect(940,60, 10, 10) ctx.fillStyle = cor[695];ctx.fillRect(950,60, 10, 10) ctx.fillStyle = cor[696];ctx.fillRect(960,60, 10, 10) ctx.fillStyle = cor[697];ctx.fillRect(970,60, 10, 10) ctx.fillStyle = cor[698];ctx.fillRect(980,60, 10, 10) ctx.fillStyle = cor[699];ctx.fillRect(990,60, 10, 10) ctx.fillStyle = cor[700];ctx.fillRect(0,70, 10, 10) ctx.fillStyle = cor[701];ctx.fillRect(10,70, 10, 10) ctx.fillStyle = cor[702];ctx.fillRect(20,70, 10, 10) ctx.fillStyle = cor[703];ctx.fillRect(30,70, 10, 10) ctx.fillStyle = cor[704];ctx.fillRect(40,70, 10, 10) ctx.fillStyle = cor[705];ctx.fillRect(50,70, 10, 10) ctx.fillStyle = cor[706];ctx.fillRect(60,70, 10, 10) ctx.fillStyle = cor[707];ctx.fillRect(70,70, 10, 10) ctx.fillStyle = cor[708];ctx.fillRect(80,70, 10, 10) ctx.fillStyle = cor[709];ctx.fillRect(90,70, 10, 10) ctx.fillStyle = cor[710];ctx.fillRect(100,70, 10, 10) ctx.fillStyle = cor[711];ctx.fillRect(110,70, 10, 10) ctx.fillStyle = cor[712];ctx.fillRect(120,70, 10, 10) ctx.fillStyle = cor[713];ctx.fillRect(130,70, 10, 10) ctx.fillStyle = cor[714];ctx.fillRect(140,70, 10, 10) ctx.fillStyle = cor[715];ctx.fillRect(150,70, 10, 10) ctx.fillStyle = cor[716];ctx.fillRect(160,70, 10, 10) ctx.fillStyle = cor[717];ctx.fillRect(170,70, 10, 10) ctx.fillStyle = cor[718];ctx.fillRect(180,70, 10, 10) ctx.fillStyle = cor[719];ctx.fillRect(190,70, 10, 10) ctx.fillStyle = cor[720];ctx.fillRect(200,70, 10, 10) ctx.fillStyle = cor[721];ctx.fillRect(210,70, 10, 10) ctx.fillStyle = cor[722];ctx.fillRect(220,70, 10, 10) ctx.fillStyle = cor[723];ctx.fillRect(230,70, 10, 10) ctx.fillStyle = cor[724];ctx.fillRect(240,70, 10, 10) ctx.fillStyle = cor[725];ctx.fillRect(250,70, 10, 10) ctx.fillStyle = cor[726];ctx.fillRect(260,70, 10, 10) ctx.fillStyle = cor[727];ctx.fillRect(270,70, 10, 10) ctx.fillStyle = cor[728];ctx.fillRect(280,70, 10, 10) ctx.fillStyle = cor[729];ctx.fillRect(290,70, 10, 10) ctx.fillStyle = cor[730];ctx.fillRect(300,70, 10, 10) ctx.fillStyle = cor[731];ctx.fillRect(310,70, 10, 10) ctx.fillStyle = cor[732];ctx.fillRect(320,70, 10, 10) ctx.fillStyle = cor[733];ctx.fillRect(330,70, 10, 10) ctx.fillStyle = cor[734];ctx.fillRect(340,70, 10, 10) ctx.fillStyle = cor[735];ctx.fillRect(350,70, 10, 10) ctx.fillStyle = cor[736];ctx.fillRect(360,70, 10, 10) ctx.fillStyle = cor[737];ctx.fillRect(370,70, 10, 10) ctx.fillStyle = cor[738];ctx.fillRect(380,70, 10, 10) ctx.fillStyle = cor[739];ctx.fillRect(390,70, 10, 10) ctx.fillStyle = cor[740];ctx.fillRect(400,70, 10, 10) ctx.fillStyle = cor[741];ctx.fillRect(410,70, 10, 10) ctx.fillStyle = cor[742];ctx.fillRect(420,70, 10, 10) ctx.fillStyle = cor[743];ctx.fillRect(430,70, 10, 10) ctx.fillStyle = cor[744];ctx.fillRect(440,70, 10, 10) ctx.fillStyle = cor[745];ctx.fillRect(450,70, 10, 10) ctx.fillStyle = cor[746];ctx.fillRect(460,70, 10, 10) ctx.fillStyle = cor[747];ctx.fillRect(470,70, 10, 10) ctx.fillStyle = cor[748];ctx.fillRect(480,70, 10, 10) ctx.fillStyle = cor[749];ctx.fillRect(490,70, 10, 10) ctx.fillStyle = cor[750];ctx.fillRect(500,70, 10, 10) ctx.fillStyle = cor[751];ctx.fillRect(510,70, 10, 10) ctx.fillStyle = cor[752];ctx.fillRect(520,70, 10, 10) ctx.fillStyle = cor[753];ctx.fillRect(530,70, 10, 10) ctx.fillStyle = cor[754];ctx.fillRect(540,70, 10, 10) ctx.fillStyle = cor[755];ctx.fillRect(550,70, 10, 10) ctx.fillStyle = cor[756];ctx.fillRect(560,70, 10, 10) ctx.fillStyle = cor[757];ctx.fillRect(570,70, 10, 10) ctx.fillStyle = cor[758];ctx.fillRect(580,70, 10, 10) ctx.fillStyle = cor[759];ctx.fillRect(590,70, 10, 10) ctx.fillStyle = cor[760];ctx.fillRect(600,70, 10, 10) ctx.fillStyle = cor[761];ctx.fillRect(610,70, 10, 10) ctx.fillStyle = cor[762];ctx.fillRect(620,70, 10, 10) ctx.fillStyle = cor[763];ctx.fillRect(630,70, 10, 10) ctx.fillStyle = cor[764];ctx.fillRect(640,70, 10, 10) ctx.fillStyle = cor[765];ctx.fillRect(650,70, 10, 10) ctx.fillStyle = cor[766];ctx.fillRect(660,70, 10, 10) ctx.fillStyle = cor[767];ctx.fillRect(670,70, 10, 10) ctx.fillStyle = cor[768];ctx.fillRect(680,70, 10, 10) ctx.fillStyle = cor[769];ctx.fillRect(690,70, 10, 10) ctx.fillStyle = cor[770];ctx.fillRect(700,70, 10, 10) ctx.fillStyle = cor[771];ctx.fillRect(710,70, 10, 10) ctx.fillStyle = cor[772];ctx.fillRect(720,70, 10, 10) ctx.fillStyle = cor[773];ctx.fillRect(730,70, 10, 10) ctx.fillStyle = cor[774];ctx.fillRect(740,70, 10, 10) ctx.fillStyle = cor[775];ctx.fillRect(750,70, 10, 10) ctx.fillStyle = cor[776];ctx.fillRect(760,70, 10, 10) ctx.fillStyle = cor[777];ctx.fillRect(770,70, 10, 10) ctx.fillStyle = cor[778];ctx.fillRect(780,70, 10, 10) ctx.fillStyle = cor[779];ctx.fillRect(790,70, 10, 10) ctx.fillStyle = cor[780];ctx.fillRect(800,70, 10, 10) ctx.fillStyle = cor[781];ctx.fillRect(810,70, 10, 10) ctx.fillStyle = cor[782];ctx.fillRect(820,70, 10, 10) ctx.fillStyle = cor[783];ctx.fillRect(830,70, 10, 10) ctx.fillStyle = cor[784];ctx.fillRect(840,70, 10, 10) ctx.fillStyle = cor[785];ctx.fillRect(850,70, 10, 10) ctx.fillStyle = cor[786];ctx.fillRect(860,70, 10, 10) ctx.fillStyle = cor[787];ctx.fillRect(870,70, 10, 10) ctx.fillStyle = cor[788];ctx.fillRect(880,70, 10, 10) ctx.fillStyle = cor[789];ctx.fillRect(890,70, 10, 10) ctx.fillStyle = cor[790];ctx.fillRect(900,70, 10, 10) ctx.fillStyle = cor[791];ctx.fillRect(910,70, 10, 10) ctx.fillStyle = cor[792];ctx.fillRect(920,70, 10, 10) ctx.fillStyle = cor[793];ctx.fillRect(930,70, 10, 10) ctx.fillStyle = cor[794];ctx.fillRect(940,70, 10, 10) ctx.fillStyle = cor[795];ctx.fillRect(950,70, 10, 10) ctx.fillStyle = cor[796];ctx.fillRect(960,70, 10, 10) ctx.fillStyle = cor[797];ctx.fillRect(970,70, 10, 10) ctx.fillStyle = cor[798];ctx.fillRect(980,70, 10, 10) ctx.fillStyle = cor[799];ctx.fillRect(990,70, 10, 10) ctx.fillStyle = cor[800];ctx.fillRect(0,80, 10, 10) ctx.fillStyle = cor[801];ctx.fillRect(10,80, 10, 10) ctx.fillStyle = cor[802];ctx.fillRect(20,80, 10, 10) ctx.fillStyle = cor[803];ctx.fillRect(30,80, 10, 10) ctx.fillStyle = cor[804];ctx.fillRect(40,80, 10, 10) ctx.fillStyle = cor[805];ctx.fillRect(50,80, 10, 10) ctx.fillStyle = cor[806];ctx.fillRect(60,80, 10, 10) ctx.fillStyle = cor[807];ctx.fillRect(70,80, 10, 10) ctx.fillStyle = cor[808];ctx.fillRect(80,80, 10, 10) ctx.fillStyle = cor[809];ctx.fillRect(90,80, 10, 10) ctx.fillStyle = cor[810];ctx.fillRect(100,80, 10, 10) ctx.fillStyle = cor[811];ctx.fillRect(110,80, 10, 10) ctx.fillStyle = cor[812];ctx.fillRect(120,80, 10, 10) ctx.fillStyle = cor[813];ctx.fillRect(130,80, 10, 10) ctx.fillStyle = cor[814];ctx.fillRect(140,80, 10, 10) ctx.fillStyle = cor[815];ctx.fillRect(150,80, 10, 10) ctx.fillStyle = cor[816];ctx.fillRect(160,80, 10, 10) ctx.fillStyle = cor[817];ctx.fillRect(170,80, 10, 10) ctx.fillStyle = cor[818];ctx.fillRect(180,80, 10, 10) ctx.fillStyle = cor[819];ctx.fillRect(190,80, 10, 10) ctx.fillStyle = cor[820];ctx.fillRect(200,80, 10, 10) ctx.fillStyle = cor[821];ctx.fillRect(210,80, 10, 10) ctx.fillStyle = cor[822];ctx.fillRect(220,80, 10, 10) ctx.fillStyle = cor[823];ctx.fillRect(230,80, 10, 10) ctx.fillStyle = cor[824];ctx.fillRect(240,80, 10, 10) ctx.fillStyle = cor[825];ctx.fillRect(250,80, 10, 10) ctx.fillStyle = cor[826];ctx.fillRect(260,80, 10, 10) ctx.fillStyle = cor[827];ctx.fillRect(270,80, 10, 10) ctx.fillStyle = cor[828];ctx.fillRect(280,80, 10, 10) ctx.fillStyle = cor[829];ctx.fillRect(290,80, 10, 10) ctx.fillStyle = cor[830];ctx.fillRect(300,80, 10, 10) ctx.fillStyle = cor[831];ctx.fillRect(310,80, 10, 10) ctx.fillStyle = cor[832];ctx.fillRect(320,80, 10, 10) ctx.fillStyle = cor[833];ctx.fillRect(330,80, 10, 10) ctx.fillStyle = cor[834];ctx.fillRect(340,80, 10, 10) ctx.fillStyle = cor[835];ctx.fillRect(350,80, 10, 10) ctx.fillStyle = cor[836];ctx.fillRect(360,80, 10, 10) ctx.fillStyle = cor[837];ctx.fillRect(370,80, 10, 10) ctx.fillStyle = cor[838];ctx.fillRect(380,80, 10, 10) ctx.fillStyle = cor[839];ctx.fillRect(390,80, 10, 10) ctx.fillStyle = cor[840];ctx.fillRect(400,80, 10, 10) ctx.fillStyle = cor[841];ctx.fillRect(410,80, 10, 10) ctx.fillStyle = cor[842];ctx.fillRect(420,80, 10, 10) ctx.fillStyle = cor[843];ctx.fillRect(430,80, 10, 10) ctx.fillStyle = cor[844];ctx.fillRect(440,80, 10, 10) ctx.fillStyle = cor[845];ctx.fillRect(450,80, 10, 10) ctx.fillStyle = cor[846];ctx.fillRect(460,80, 10, 10) ctx.fillStyle = cor[847];ctx.fillRect(470,80, 10, 10) ctx.fillStyle = cor[848];ctx.fillRect(480,80, 10, 10) ctx.fillStyle = cor[849];ctx.fillRect(490,80, 10, 10) ctx.fillStyle = cor[850];ctx.fillRect(500,80, 10, 10) ctx.fillStyle = cor[851];ctx.fillRect(510,80, 10, 10) ctx.fillStyle = cor[852];ctx.fillRect(520,80, 10, 10) ctx.fillStyle = cor[853];ctx.fillRect(530,80, 10, 10) ctx.fillStyle = cor[854];ctx.fillRect(540,80, 10, 10) ctx.fillStyle = cor[855];ctx.fillRect(550,80, 10, 10) ctx.fillStyle = cor[856];ctx.fillRect(560,80, 10, 10) ctx.fillStyle = cor[857];ctx.fillRect(570,80, 10, 10) ctx.fillStyle = cor[858];ctx.fillRect(580,80, 10, 10) ctx.fillStyle = cor[859];ctx.fillRect(590,80, 10, 10) ctx.fillStyle = cor[860];ctx.fillRect(600,80, 10, 10) ctx.fillStyle = cor[861];ctx.fillRect(610,80, 10, 10) ctx.fillStyle = cor[862];ctx.fillRect(620,80, 10, 10) ctx.fillStyle = cor[863];ctx.fillRect(630,80, 10, 10) ctx.fillStyle = cor[864];ctx.fillRect(640,80, 10, 10) ctx.fillStyle = cor[865];ctx.fillRect(650,80, 10, 10) ctx.fillStyle = cor[866];ctx.fillRect(660,80, 10, 10) ctx.fillStyle = cor[867];ctx.fillRect(670,80, 10, 10) ctx.fillStyle = cor[868];ctx.fillRect(680,80, 10, 10) ctx.fillStyle = cor[869];ctx.fillRect(690,80, 10, 10) ctx.fillStyle = cor[870];ctx.fillRect(700,80, 10, 10) ctx.fillStyle = cor[871];ctx.fillRect(710,80, 10, 10) ctx.fillStyle = cor[872];ctx.fillRect(720,80, 10, 10) ctx.fillStyle = cor[873];ctx.fillRect(730,80, 10, 10) ctx.fillStyle = cor[874];ctx.fillRect(740,80, 10, 10) ctx.fillStyle = cor[875];ctx.fillRect(750,80, 10, 10) ctx.fillStyle = cor[876];ctx.fillRect(760,80, 10, 10) ctx.fillStyle = cor[877];ctx.fillRect(770,80, 10, 10) ctx.fillStyle = cor[878];ctx.fillRect(780,80, 10, 10) ctx.fillStyle = cor[879];ctx.fillRect(790,80, 10, 10) ctx.fillStyle = cor[880];ctx.fillRect(800,80, 10, 10) ctx.fillStyle = cor[881];ctx.fillRect(810,80, 10, 10) ctx.fillStyle = cor[882];ctx.fillRect(820,80, 10, 10) ctx.fillStyle = cor[883];ctx.fillRect(830,80, 10, 10) ctx.fillStyle = cor[884];ctx.fillRect(840,80, 10, 10) ctx.fillStyle = cor[885];ctx.fillRect(850,80, 10, 10) ctx.fillStyle = cor[886];ctx.fillRect(860,80, 10, 10) ctx.fillStyle = cor[887];ctx.fillRect(870,80, 10, 10) ctx.fillStyle = cor[888];ctx.fillRect(880,80, 10, 10) ctx.fillStyle = cor[889];ctx.fillRect(890,80, 10, 10) ctx.fillStyle = cor[890];ctx.fillRect(900,80, 10, 10) ctx.fillStyle = cor[891];ctx.fillRect(910,80, 10, 10) ctx.fillStyle = cor[892];ctx.fillRect(920,80, 10, 10) ctx.fillStyle = cor[893];ctx.fillRect(930,80, 10, 10) ctx.fillStyle = cor[894];ctx.fillRect(940,80, 10, 10) ctx.fillStyle = cor[895];ctx.fillRect(950,80, 10, 10) ctx.fillStyle = cor[896];ctx.fillRect(960,80, 10, 10) ctx.fillStyle = cor[897];ctx.fillRect(970,80, 10, 10) ctx.fillStyle = cor[898];ctx.fillRect(980,80, 10, 10) ctx.fillStyle = cor[899];ctx.fillRect(990,80, 10, 10) ctx.fillStyle = cor[900];ctx.fillRect(0,90, 10, 10) ctx.fillStyle = cor[901];ctx.fillRect(10,90, 10, 10) ctx.fillStyle = cor[902];ctx.fillRect(20,90, 10, 10) ctx.fillStyle = cor[903];ctx.fillRect(30,90, 10, 10) ctx.fillStyle = cor[904];ctx.fillRect(40,90, 10, 10) ctx.fillStyle = cor[905];ctx.fillRect(50,90, 10, 10) ctx.fillStyle = cor[906];ctx.fillRect(60,90, 10, 10) ctx.fillStyle = cor[907];ctx.fillRect(70,90, 10, 10) ctx.fillStyle = cor[908];ctx.fillRect(80,90, 10, 10) ctx.fillStyle = cor[909];ctx.fillRect(90,90, 10, 10) ctx.fillStyle = cor[910];ctx.fillRect(100,90, 10, 10) ctx.fillStyle = cor[911];ctx.fillRect(110,90, 10, 10) ctx.fillStyle = cor[912];ctx.fillRect(120,90, 10, 10) ctx.fillStyle = cor[913];ctx.fillRect(130,90, 10, 10) ctx.fillStyle = cor[914];ctx.fillRect(140,90, 10, 10) ctx.fillStyle = cor[915];ctx.fillRect(150,90, 10, 10) ctx.fillStyle = cor[916];ctx.fillRect(160,90, 10, 10) ctx.fillStyle = cor[917];ctx.fillRect(170,90, 10, 10) ctx.fillStyle = cor[918];ctx.fillRect(180,90, 10, 10) ctx.fillStyle = cor[919];ctx.fillRect(190,90, 10, 10) ctx.fillStyle = cor[920];ctx.fillRect(200,90, 10, 10) ctx.fillStyle = cor[921];ctx.fillRect(210,90, 10, 10) ctx.fillStyle = cor[922];ctx.fillRect(220,90, 10, 10) ctx.fillStyle = cor[923];ctx.fillRect(230,90, 10, 10) ctx.fillStyle = cor[924];ctx.fillRect(240,90, 10, 10) ctx.fillStyle = cor[925];ctx.fillRect(250,90, 10, 10) ctx.fillStyle = cor[926];ctx.fillRect(260,90, 10, 10) ctx.fillStyle = cor[927];ctx.fillRect(270,90, 10, 10) ctx.fillStyle = cor[928];ctx.fillRect(280,90, 10, 10) ctx.fillStyle = cor[929];ctx.fillRect(290,90, 10, 10) ctx.fillStyle = cor[930];ctx.fillRect(300,90, 10, 10) ctx.fillStyle = cor[931];ctx.fillRect(310,90, 10, 10) ctx.fillStyle = cor[932];ctx.fillRect(320,90, 10, 10) ctx.fillStyle = cor[933];ctx.fillRect(330,90, 10, 10) ctx.fillStyle = cor[934];ctx.fillRect(340,90, 10, 10) ctx.fillStyle = cor[935];ctx.fillRect(350,90, 10, 10) ctx.fillStyle = cor[936];ctx.fillRect(360,90, 10, 10) ctx.fillStyle = cor[937];ctx.fillRect(370,90, 10, 10) ctx.fillStyle = cor[938];ctx.fillRect(380,90, 10, 10) ctx.fillStyle = cor[939];ctx.fillRect(390,90, 10, 10) ctx.fillStyle = cor[940];ctx.fillRect(400,90, 10, 10) ctx.fillStyle = cor[941];ctx.fillRect(410,90, 10, 10) ctx.fillStyle = cor[942];ctx.fillRect(420,90, 10, 10) ctx.fillStyle = cor[943];ctx.fillRect(430,90, 10, 10) ctx.fillStyle = cor[944];ctx.fillRect(440,90, 10, 10) ctx.fillStyle = cor[945];ctx.fillRect(450,90, 10, 10) ctx.fillStyle = cor[946];ctx.fillRect(460,90, 10, 10) ctx.fillStyle = cor[947];ctx.fillRect(470,90, 10, 10) ctx.fillStyle = cor[948];ctx.fillRect(480,90, 10, 10) ctx.fillStyle = cor[949];ctx.fillRect(490,90, 10, 10) ctx.fillStyle = cor[950];ctx.fillRect(500,90, 10, 10) ctx.fillStyle = cor[951];ctx.fillRect(510,90, 10, 10) ctx.fillStyle = cor[952];ctx.fillRect(520,90, 10, 10) ctx.fillStyle = cor[953];ctx.fillRect(530,90, 10, 10) ctx.fillStyle = cor[954];ctx.fillRect(540,90, 10, 10) ctx.fillStyle = cor[955];ctx.fillRect(550,90, 10, 10) ctx.fillStyle = cor[956];ctx.fillRect(560,90, 10, 10) ctx.fillStyle = cor[957];ctx.fillRect(570,90, 10, 10) ctx.fillStyle = cor[958];ctx.fillRect(580,90, 10, 10) ctx.fillStyle = cor[959];ctx.fillRect(590,90, 10, 10) ctx.fillStyle = cor[960];ctx.fillRect(600,90, 10, 10) ctx.fillStyle = cor[961];ctx.fillRect(610,90, 10, 10) ctx.fillStyle = cor[962];ctx.fillRect(620,90, 10, 10) ctx.fillStyle = cor[963];ctx.fillRect(630,90, 10, 10) ctx.fillStyle = cor[964];ctx.fillRect(640,90, 10, 10) ctx.fillStyle = cor[965];ctx.fillRect(650,90, 10, 10) ctx.fillStyle = cor[966];ctx.fillRect(660,90, 10, 10) ctx.fillStyle = cor[967];ctx.fillRect(670,90, 10, 10) ctx.fillStyle = cor[968];ctx.fillRect(680,90, 10, 10) ctx.fillStyle = cor[969];ctx.fillRect(690,90, 10, 10) ctx.fillStyle = cor[970];ctx.fillRect(700,90, 10, 10) ctx.fillStyle = cor[971];ctx.fillRect(710,90, 10, 10) ctx.fillStyle = cor[972];ctx.fillRect(720,90, 10, 10) ctx.fillStyle = cor[973];ctx.fillRect(730,90, 10, 10) ctx.fillStyle = cor[974];ctx.fillRect(740,90, 10, 10) ctx.fillStyle = cor[975];ctx.fillRect(750,90, 10, 10) ctx.fillStyle = cor[976];ctx.fillRect(760,90, 10, 10) ctx.fillStyle = cor[977];ctx.fillRect(770,90, 10, 10) ctx.fillStyle = cor[978];ctx.fillRect(780,90, 10, 10) ctx.fillStyle = cor[979];ctx.fillRect(790,90, 10, 10) ctx.fillStyle = cor[980];ctx.fillRect(800,90, 10, 10) ctx.fillStyle = cor[981];ctx.fillRect(810,90, 10, 10) ctx.fillStyle = cor[982];ctx.fillRect(820,90, 10, 10) ctx.fillStyle = cor[983];ctx.fillRect(830,90, 10, 10) ctx.fillStyle = cor[984];ctx.fillRect(840,90, 10, 10) ctx.fillStyle = cor[985];ctx.fillRect(850,90, 10, 10) ctx.fillStyle = cor[986];ctx.fillRect(860,90, 10, 10) ctx.fillStyle = cor[987];ctx.fillRect(870,90, 10, 10) ctx.fillStyle = cor[988];ctx.fillRect(880,90, 10, 10) ctx.fillStyle = cor[989];ctx.fillRect(890,90, 10, 10) ctx.fillStyle = cor[990];ctx.fillRect(900,90, 10, 10) ctx.fillStyle = cor[991];ctx.fillRect(910,90, 10, 10) ctx.fillStyle = cor[992];ctx.fillRect(920,90, 10, 10) ctx.fillStyle = cor[993];ctx.fillRect(930,90, 10, 10) ctx.fillStyle = cor[994];ctx.fillRect(940,90, 10, 10) ctx.fillStyle = cor[995];ctx.fillRect(950,90, 10, 10) ctx.fillStyle = cor[996];ctx.fillRect(960,90, 10, 10) ctx.fillStyle = cor[997];ctx.fillRect(970,90, 10, 10) ctx.fillStyle = cor[998];ctx.fillRect(980,90, 10, 10) ctx.fillStyle = cor[999];ctx.fillRect(990,90, 10, 10) ctx.fillStyle = cor[1000];ctx.fillRect(0,100, 10, 10) ctx.fillStyle = cor[1001];ctx.fillRect(10,100, 10, 10) ctx.fillStyle = cor[1002];ctx.fillRect(20,100, 10, 10) ctx.fillStyle = cor[1003];ctx.fillRect(30,100, 10, 10) ctx.fillStyle = cor[1004];ctx.fillRect(40,100, 10, 10) ctx.fillStyle = cor[1005];ctx.fillRect(50,100, 10, 10) ctx.fillStyle = cor[1006];ctx.fillRect(60,100, 10, 10) ctx.fillStyle = cor[1007];ctx.fillRect(70,100, 10, 10) ctx.fillStyle = cor[1008];ctx.fillRect(80,100, 10, 10) ctx.fillStyle = cor[1009];ctx.fillRect(90,100, 10, 10) ctx.fillStyle = cor[1010];ctx.fillRect(100,100, 10, 10) ctx.fillStyle = cor[1011];ctx.fillRect(110,100, 10, 10) ctx.fillStyle = cor[1012];ctx.fillRect(120,100, 10, 10) ctx.fillStyle = cor[1013];ctx.fillRect(130,100, 10, 10) ctx.fillStyle = cor[1014];ctx.fillRect(140,100, 10, 10) ctx.fillStyle = cor[1015];ctx.fillRect(150,100, 10, 10) ctx.fillStyle = cor[1016];ctx.fillRect(160,100, 10, 10) ctx.fillStyle = cor[1017];ctx.fillRect(170,100, 10, 10) ctx.fillStyle = cor[1018];ctx.fillRect(180,100, 10, 10) ctx.fillStyle = cor[1019];ctx.fillRect(190,100, 10, 10) ctx.fillStyle = cor[1020];ctx.fillRect(200,100, 10, 10) ctx.fillStyle = cor[1021];ctx.fillRect(210,100, 10, 10) ctx.fillStyle = cor[1022];ctx.fillRect(220,100, 10, 10) ctx.fillStyle = cor[1023];ctx.fillRect(230,100, 10, 10) ctx.fillStyle = cor[1024];ctx.fillRect(240,100, 10, 10) ctx.fillStyle = cor[1025];ctx.fillRect(250,100, 10, 10) ctx.fillStyle = cor[1026];ctx.fillRect(260,100, 10, 10) ctx.fillStyle = cor[1027];ctx.fillRect(270,100, 10, 10) ctx.fillStyle = cor[1028];ctx.fillRect(280,100, 10, 10) ctx.fillStyle = cor[1029];ctx.fillRect(290,100, 10, 10) ctx.fillStyle = cor[1030];ctx.fillRect(300,100, 10, 10) ctx.fillStyle = cor[1031];ctx.fillRect(310,100, 10, 10) ctx.fillStyle = cor[1032];ctx.fillRect(320,100, 10, 10) ctx.fillStyle = cor[1033];ctx.fillRect(330,100, 10, 10) ctx.fillStyle = cor[1034];ctx.fillRect(340,100, 10, 10) ctx.fillStyle = cor[1035];ctx.fillRect(350,100, 10, 10) ctx.fillStyle = cor[1036];ctx.fillRect(360,100, 10, 10) ctx.fillStyle = cor[1037];ctx.fillRect(370,100, 10, 10) ctx.fillStyle = cor[1038];ctx.fillRect(380,100, 10, 10) ctx.fillStyle = cor[1039];ctx.fillRect(390,100, 10, 10) ctx.fillStyle = cor[1040];ctx.fillRect(400,100, 10, 10) ctx.fillStyle = cor[1041];ctx.fillRect(410,100, 10, 10) ctx.fillStyle = cor[1042];ctx.fillRect(420,100, 10, 10) ctx.fillStyle = cor[1043];ctx.fillRect(430,100, 10, 10) ctx.fillStyle = cor[1044];ctx.fillRect(440,100, 10, 10) ctx.fillStyle = cor[1045];ctx.fillRect(450,100, 10, 10) ctx.fillStyle = cor[1046];ctx.fillRect(460,100, 10, 10) ctx.fillStyle = cor[1047];ctx.fillRect(470,100, 10, 10) ctx.fillStyle = cor[1048];ctx.fillRect(480,100, 10, 10) ctx.fillStyle = cor[1049];ctx.fillRect(490,100, 10, 10) ctx.fillStyle = cor[1050];ctx.fillRect(500,100, 10, 10) ctx.fillStyle = cor[1051];ctx.fillRect(510,100, 10, 10) ctx.fillStyle = cor[1052];ctx.fillRect(520,100, 10, 10) ctx.fillStyle = cor[1053];ctx.fillRect(530,100, 10, 10) ctx.fillStyle = cor[1054];ctx.fillRect(540,100, 10, 10) ctx.fillStyle = cor[1055];ctx.fillRect(550,100, 10, 10) ctx.fillStyle = cor[1056];ctx.fillRect(560,100, 10, 10) ctx.fillStyle = cor[1057];ctx.fillRect(570,100, 10, 10) ctx.fillStyle = cor[1058];ctx.fillRect(580,100, 10, 10) ctx.fillStyle = cor[1059];ctx.fillRect(590,100, 10, 10) ctx.fillStyle = cor[1060];ctx.fillRect(600,100, 10, 10) ctx.fillStyle = cor[1061];ctx.fillRect(610,100, 10, 10) ctx.fillStyle = cor[1062];ctx.fillRect(620,100, 10, 10) ctx.fillStyle = cor[1063];ctx.fillRect(630,100, 10, 10) ctx.fillStyle = cor[1064];ctx.fillRect(640,100, 10, 10) ctx.fillStyle = cor[1065];ctx.fillRect(650,100, 10, 10) ctx.fillStyle = cor[1066];ctx.fillRect(660,100, 10, 10) ctx.fillStyle = cor[1067];ctx.fillRect(670,100, 10, 10) ctx.fillStyle = cor[1068];ctx.fillRect(680,100, 10, 10) ctx.fillStyle = cor[1069];ctx.fillRect(690,100, 10, 10) ctx.fillStyle = cor[1070];ctx.fillRect(700,100, 10, 10) ctx.fillStyle = cor[1071];ctx.fillRect(710,100, 10, 10) ctx.fillStyle = cor[1072];ctx.fillRect(720,100, 10, 10) ctx.fillStyle = cor[1073];ctx.fillRect(730,100, 10, 10) ctx.fillStyle = cor[1074];ctx.fillRect(740,100, 10, 10) ctx.fillStyle = cor[1075];ctx.fillRect(750,100, 10, 10) ctx.fillStyle = cor[1076];ctx.fillRect(760,100, 10, 10) ctx.fillStyle = cor[1077];ctx.fillRect(770,100, 10, 10) ctx.fillStyle = cor[1078];ctx.fillRect(780,100, 10, 10) ctx.fillStyle = cor[1079];ctx.fillRect(790,100, 10, 10) ctx.fillStyle = cor[1080];ctx.fillRect(800,100, 10, 10) ctx.fillStyle = cor[1081];ctx.fillRect(810,100, 10, 10) ctx.fillStyle = cor[1082];ctx.fillRect(820,100, 10, 10) ctx.fillStyle = cor[1083];ctx.fillRect(830,100, 10, 10) ctx.fillStyle = cor[1084];ctx.fillRect(840,100, 10, 10) ctx.fillStyle = cor[1085];ctx.fillRect(850,100, 10, 10) ctx.fillStyle = cor[1086];ctx.fillRect(860,100, 10, 10) ctx.fillStyle = cor[1087];ctx.fillRect(870,100, 10, 10) ctx.fillStyle = cor[1088];ctx.fillRect(880,100, 10, 10) ctx.fillStyle = cor[1089];ctx.fillRect(890,100, 10, 10) ctx.fillStyle = cor[1090];ctx.fillRect(900,100, 10, 10) ctx.fillStyle = cor[1091];ctx.fillRect(910,100, 10, 10) ctx.fillStyle = cor[1092];ctx.fillRect(920,100, 10, 10) ctx.fillStyle = cor[1093];ctx.fillRect(930,100, 10, 10) ctx.fillStyle = cor[1094];ctx.fillRect(940,100, 10, 10) ctx.fillStyle = cor[1095];ctx.fillRect(950,100, 10, 10) ctx.fillStyle = cor[1096];ctx.fillRect(960,100, 10, 10) ctx.fillStyle = cor[1097];ctx.fillRect(970,100, 10, 10) ctx.fillStyle = cor[1098];ctx.fillRect(980,100, 10, 10) ctx.fillStyle = cor[1099];ctx.fillRect(990,100, 10, 10) ctx.fillStyle = cor[1100];ctx.fillRect(0,110, 10, 10) ctx.fillStyle = cor[1101];ctx.fillRect(10,110, 10, 10) ctx.fillStyle = cor[1102];ctx.fillRect(20,110, 10, 10) ctx.fillStyle = cor[1103];ctx.fillRect(30,110, 10, 10) ctx.fillStyle = cor[1104];ctx.fillRect(40,110, 10, 10) ctx.fillStyle = cor[1105];ctx.fillRect(50,110, 10, 10) ctx.fillStyle = cor[1106];ctx.fillRect(60,110, 10, 10) ctx.fillStyle = cor[1107];ctx.fillRect(70,110, 10, 10) ctx.fillStyle = cor[1108];ctx.fillRect(80,110, 10, 10) ctx.fillStyle = cor[1109];ctx.fillRect(90,110, 10, 10) ctx.fillStyle = cor[1110];ctx.fillRect(100,110, 10, 10) ctx.fillStyle = cor[1111];ctx.fillRect(110,110, 10, 10) ctx.fillStyle = cor[1112];ctx.fillRect(120,110, 10, 10) ctx.fillStyle = cor[1113];ctx.fillRect(130,110, 10, 10) ctx.fillStyle = cor[1114];ctx.fillRect(140,110, 10, 10) ctx.fillStyle = cor[1115];ctx.fillRect(150,110, 10, 10) ctx.fillStyle = cor[1116];ctx.fillRect(160,110, 10, 10) ctx.fillStyle = cor[1117];ctx.fillRect(170,110, 10, 10) ctx.fillStyle = cor[1118];ctx.fillRect(180,110, 10, 10) ctx.fillStyle = cor[1119];ctx.fillRect(190,110, 10, 10) ctx.fillStyle = cor[1120];ctx.fillRect(200,110, 10, 10) ctx.fillStyle = cor[1121];ctx.fillRect(210,110, 10, 10) ctx.fillStyle = cor[1122];ctx.fillRect(220,110, 10, 10) ctx.fillStyle = cor[1123];ctx.fillRect(230,110, 10, 10) ctx.fillStyle = cor[1124];ctx.fillRect(240,110, 10, 10) ctx.fillStyle = cor[1125];ctx.fillRect(250,110, 10, 10) ctx.fillStyle = cor[1126];ctx.fillRect(260,110, 10, 10) ctx.fillStyle = cor[1127];ctx.fillRect(270,110, 10, 10) ctx.fillStyle = cor[1128];ctx.fillRect(280,110, 10, 10) ctx.fillStyle = cor[1129];ctx.fillRect(290,110, 10, 10) ctx.fillStyle = cor[1130];ctx.fillRect(300,110, 10, 10) ctx.fillStyle = cor[1131];ctx.fillRect(310,110, 10, 10) ctx.fillStyle = cor[1132];ctx.fillRect(320,110, 10, 10) ctx.fillStyle = cor[1133];ctx.fillRect(330,110, 10, 10) ctx.fillStyle = cor[1134];ctx.fillRect(340,110, 10, 10) ctx.fillStyle = cor[1135];ctx.fillRect(350,110, 10, 10) ctx.fillStyle = cor[1136];ctx.fillRect(360,110, 10, 10) ctx.fillStyle = cor[1137];ctx.fillRect(370,110, 10, 10) ctx.fillStyle = cor[1138];ctx.fillRect(380,110, 10, 10) ctx.fillStyle = cor[1139];ctx.fillRect(390,110, 10, 10) ctx.fillStyle = cor[1140];ctx.fillRect(400,110, 10, 10) ctx.fillStyle = cor[1141];ctx.fillRect(410,110, 10, 10) ctx.fillStyle = cor[1142];ctx.fillRect(420,110, 10, 10) ctx.fillStyle = cor[1143];ctx.fillRect(430,110, 10, 10) ctx.fillStyle = cor[1144];ctx.fillRect(440,110, 10, 10) ctx.fillStyle = cor[1145];ctx.fillRect(450,110, 10, 10) ctx.fillStyle = cor[1146];ctx.fillRect(460,110, 10, 10) ctx.fillStyle = cor[1147];ctx.fillRect(470,110, 10, 10) ctx.fillStyle = cor[1148];ctx.fillRect(480,110, 10, 10) ctx.fillStyle = cor[1149];ctx.fillRect(490,110, 10, 10) ctx.fillStyle = cor[1150];ctx.fillRect(500,110, 10, 10) ctx.fillStyle = cor[1151];ctx.fillRect(510,110, 10, 10) ctx.fillStyle = cor[1152];ctx.fillRect(520,110, 10, 10) ctx.fillStyle = cor[1153];ctx.fillRect(530,110, 10, 10) ctx.fillStyle = cor[1154];ctx.fillRect(540,110, 10, 10) ctx.fillStyle = cor[1155];ctx.fillRect(550,110, 10, 10) ctx.fillStyle = cor[1156];ctx.fillRect(560,110, 10, 10) ctx.fillStyle = cor[1157];ctx.fillRect(570,110, 10, 10) ctx.fillStyle = cor[1158];ctx.fillRect(580,110, 10, 10) ctx.fillStyle = cor[1159];ctx.fillRect(590,110, 10, 10) ctx.fillStyle = cor[1160];ctx.fillRect(600,110, 10, 10) ctx.fillStyle = cor[1161];ctx.fillRect(610,110, 10, 10) ctx.fillStyle = cor[1162];ctx.fillRect(620,110, 10, 10) ctx.fillStyle = cor[1163];ctx.fillRect(630,110, 10, 10) ctx.fillStyle = cor[1164];ctx.fillRect(640,110, 10, 10) ctx.fillStyle = cor[1165];ctx.fillRect(650,110, 10, 10) ctx.fillStyle = cor[1166];ctx.fillRect(660,110, 10, 10) ctx.fillStyle = cor[1167];ctx.fillRect(670,110, 10, 10) ctx.fillStyle = cor[1168];ctx.fillRect(680,110, 10, 10) ctx.fillStyle = cor[1169];ctx.fillRect(690,110, 10, 10) ctx.fillStyle = cor[1170];ctx.fillRect(700,110, 10, 10) ctx.fillStyle = cor[1171];ctx.fillRect(710,110, 10, 10) ctx.fillStyle = cor[1172];ctx.fillRect(720,110, 10, 10) ctx.fillStyle = cor[1173];ctx.fillRect(730,110, 10, 10) ctx.fillStyle = cor[1174];ctx.fillRect(740,110, 10, 10) ctx.fillStyle = cor[1175];ctx.fillRect(750,110, 10, 10) ctx.fillStyle = cor[1176];ctx.fillRect(760,110, 10, 10) ctx.fillStyle = cor[1177];ctx.fillRect(770,110, 10, 10) ctx.fillStyle = cor[1178];ctx.fillRect(780,110, 10, 10) ctx.fillStyle = cor[1179];ctx.fillRect(790,110, 10, 10) ctx.fillStyle = cor[1180];ctx.fillRect(800,110, 10, 10) ctx.fillStyle = cor[1181];ctx.fillRect(810,110, 10, 10) ctx.fillStyle = cor[1182];ctx.fillRect(820,110, 10, 10) ctx.fillStyle = cor[1183];ctx.fillRect(830,110, 10, 10) ctx.fillStyle = cor[1184];ctx.fillRect(840,110, 10, 10) ctx.fillStyle = cor[1185];ctx.fillRect(850,110, 10, 10) ctx.fillStyle = cor[1186];ctx.fillRect(860,110, 10, 10) ctx.fillStyle = cor[1187];ctx.fillRect(870,110, 10, 10) ctx.fillStyle = cor[1188];ctx.fillRect(880,110, 10, 10) ctx.fillStyle = cor[1189];ctx.fillRect(890,110, 10, 10) ctx.fillStyle = cor[1190];ctx.fillRect(900,110, 10, 10) ctx.fillStyle = cor[1191];ctx.fillRect(910,110, 10, 10) ctx.fillStyle = cor[1192];ctx.fillRect(920,110, 10, 10) ctx.fillStyle = cor[1193];ctx.fillRect(930,110, 10, 10) ctx.fillStyle = cor[1194];ctx.fillRect(940,110, 10, 10) ctx.fillStyle = cor[1195];ctx.fillRect(950,110, 10, 10) ctx.fillStyle = cor[1196];ctx.fillRect(960,110, 10, 10) ctx.fillStyle = cor[1197];ctx.fillRect(970,110, 10, 10) ctx.fillStyle = cor[1198];ctx.fillRect(980,110, 10, 10) ctx.fillStyle = cor[1199];ctx.fillRect(990,110, 10, 10) ctx.fillStyle = cor[1200];ctx.fillRect(0,120, 10, 10) ctx.fillStyle = cor[1201];ctx.fillRect(10,120, 10, 10) ctx.fillStyle = cor[1202];ctx.fillRect(20,120, 10, 10) ctx.fillStyle = cor[1203];ctx.fillRect(30,120, 10, 10) ctx.fillStyle = cor[1204];ctx.fillRect(40,120, 10, 10) ctx.fillStyle = cor[1205];ctx.fillRect(50,120, 10, 10) ctx.fillStyle = cor[1206];ctx.fillRect(60,120, 10, 10) ctx.fillStyle = cor[1207];ctx.fillRect(70,120, 10, 10) ctx.fillStyle = cor[1208];ctx.fillRect(80,120, 10, 10) ctx.fillStyle = cor[1209];ctx.fillRect(90,120, 10, 10) ctx.fillStyle = cor[1210];ctx.fillRect(100,120, 10, 10) ctx.fillStyle = cor[1211];ctx.fillRect(110,120, 10, 10) ctx.fillStyle = cor[1212];ctx.fillRect(120,120, 10, 10) ctx.fillStyle = cor[1213];ctx.fillRect(130,120, 10, 10) ctx.fillStyle = cor[1214];ctx.fillRect(140,120, 10, 10) ctx.fillStyle = cor[1215];ctx.fillRect(150,120, 10, 10) ctx.fillStyle = cor[1216];ctx.fillRect(160,120, 10, 10) ctx.fillStyle = cor[1217];ctx.fillRect(170,120, 10, 10) ctx.fillStyle = cor[1218];ctx.fillRect(180,120, 10, 10) ctx.fillStyle = cor[1219];ctx.fillRect(190,120, 10, 10) ctx.fillStyle = cor[1220];ctx.fillRect(200,120, 10, 10) ctx.fillStyle = cor[1221];ctx.fillRect(210,120, 10, 10) ctx.fillStyle = cor[1222];ctx.fillRect(220,120, 10, 10) ctx.fillStyle = cor[1223];ctx.fillRect(230,120, 10, 10) ctx.fillStyle = cor[1224];ctx.fillRect(240,120, 10, 10) ctx.fillStyle = cor[1225];ctx.fillRect(250,120, 10, 10) ctx.fillStyle = cor[1226];ctx.fillRect(260,120, 10, 10) ctx.fillStyle = cor[1227];ctx.fillRect(270,120, 10, 10) ctx.fillStyle = cor[1228];ctx.fillRect(280,120, 10, 10) ctx.fillStyle = cor[1229];ctx.fillRect(290,120, 10, 10) ctx.fillStyle = cor[1230];ctx.fillRect(300,120, 10, 10) ctx.fillStyle = cor[1231];ctx.fillRect(310,120, 10, 10) ctx.fillStyle = cor[1232];ctx.fillRect(320,120, 10, 10) ctx.fillStyle = cor[1233];ctx.fillRect(330,120, 10, 10) ctx.fillStyle = cor[1234];ctx.fillRect(340,120, 10, 10) ctx.fillStyle = cor[1235];ctx.fillRect(350,120, 10, 10) ctx.fillStyle = cor[1236];ctx.fillRect(360,120, 10, 10) ctx.fillStyle = cor[1237];ctx.fillRect(370,120, 10, 10) ctx.fillStyle = cor[1238];ctx.fillRect(380,120, 10, 10) ctx.fillStyle = cor[1239];ctx.fillRect(390,120, 10, 10) ctx.fillStyle = cor[1240];ctx.fillRect(400,120, 10, 10) ctx.fillStyle = cor[1241];ctx.fillRect(410,120, 10, 10) ctx.fillStyle = cor[1242];ctx.fillRect(420,120, 10, 10) ctx.fillStyle = cor[1243];ctx.fillRect(430,120, 10, 10) ctx.fillStyle = cor[1244];ctx.fillRect(440,120, 10, 10) ctx.fillStyle = cor[1245];ctx.fillRect(450,120, 10, 10) ctx.fillStyle = cor[1246];ctx.fillRect(460,120, 10, 10) ctx.fillStyle = cor[1247];ctx.fillRect(470,120, 10, 10) ctx.fillStyle = cor[1248];ctx.fillRect(480,120, 10, 10) ctx.fillStyle = cor[1249];ctx.fillRect(490,120, 10, 10) ctx.fillStyle = cor[1250];ctx.fillRect(500,120, 10, 10) ctx.fillStyle = cor[1251];ctx.fillRect(510,120, 10, 10) ctx.fillStyle = cor[1252];ctx.fillRect(520,120, 10, 10) ctx.fillStyle = cor[1253];ctx.fillRect(530,120, 10, 10) ctx.fillStyle = cor[1254];ctx.fillRect(540,120, 10, 10) ctx.fillStyle = cor[1255];ctx.fillRect(550,120, 10, 10) ctx.fillStyle = cor[1256];ctx.fillRect(560,120, 10, 10) ctx.fillStyle = cor[1257];ctx.fillRect(570,120, 10, 10) ctx.fillStyle = cor[1258];ctx.fillRect(580,120, 10, 10) ctx.fillStyle = cor[1259];ctx.fillRect(590,120, 10, 10) ctx.fillStyle = cor[1260];ctx.fillRect(600,120, 10, 10) ctx.fillStyle = cor[1261];ctx.fillRect(610,120, 10, 10) ctx.fillStyle = cor[1262];ctx.fillRect(620,120, 10, 10) ctx.fillStyle = cor[1263];ctx.fillRect(630,120, 10, 10) ctx.fillStyle = cor[1264];ctx.fillRect(640,120, 10, 10) ctx.fillStyle = cor[1265];ctx.fillRect(650,120, 10, 10) ctx.fillStyle = cor[1266];ctx.fillRect(660,120, 10, 10) ctx.fillStyle = cor[1267];ctx.fillRect(670,120, 10, 10) ctx.fillStyle = cor[1268];ctx.fillRect(680,120, 10, 10) ctx.fillStyle = cor[1269];ctx.fillRect(690,120, 10, 10) ctx.fillStyle = cor[1270];ctx.fillRect(700,120, 10, 10) ctx.fillStyle = cor[1271];ctx.fillRect(710,120, 10, 10) ctx.fillStyle = cor[1272];ctx.fillRect(720,120, 10, 10) ctx.fillStyle = cor[1273];ctx.fillRect(730,120, 10, 10) ctx.fillStyle = cor[1274];ctx.fillRect(740,120, 10, 10) ctx.fillStyle = cor[1275];ctx.fillRect(750,120, 10, 10) ctx.fillStyle = cor[1276];ctx.fillRect(760,120, 10, 10) ctx.fillStyle = cor[1277];ctx.fillRect(770,120, 10, 10) ctx.fillStyle = cor[1278];ctx.fillRect(780,120, 10, 10) ctx.fillStyle = cor[1279];ctx.fillRect(790,120, 10, 10) ctx.fillStyle = cor[1280];ctx.fillRect(800,120, 10, 10) ctx.fillStyle = cor[1281];ctx.fillRect(810,120, 10, 10) ctx.fillStyle = cor[1282];ctx.fillRect(820,120, 10, 10) ctx.fillStyle = cor[1283];ctx.fillRect(830,120, 10, 10) ctx.fillStyle = cor[1284];ctx.fillRect(840,120, 10, 10) ctx.fillStyle = cor[1285];ctx.fillRect(850,120, 10, 10) ctx.fillStyle = cor[1286];ctx.fillRect(860,120, 10, 10) ctx.fillStyle = cor[1287];ctx.fillRect(870,120, 10, 10) ctx.fillStyle = cor[1288];ctx.fillRect(880,120, 10, 10) ctx.fillStyle = cor[1289];ctx.fillRect(890,120, 10, 10) ctx.fillStyle = cor[1290];ctx.fillRect(900,120, 10, 10) ctx.fillStyle = cor[1291];ctx.fillRect(910,120, 10, 10) ctx.fillStyle = cor[1292];ctx.fillRect(920,120, 10, 10) ctx.fillStyle = cor[1293];ctx.fillRect(930,120, 10, 10) ctx.fillStyle = cor[1294];ctx.fillRect(940,120, 10, 10) ctx.fillStyle = cor[1295];ctx.fillRect(950,120, 10, 10) ctx.fillStyle = cor[1296];ctx.fillRect(960,120, 10, 10) ctx.fillStyle = cor[1297];ctx.fillRect(970,120, 10, 10) ctx.fillStyle = cor[1298];ctx.fillRect(980,120, 10, 10) ctx.fillStyle = cor[1299];ctx.fillRect(990,120, 10, 10) ctx.fillStyle = cor[1300];ctx.fillRect(0,130, 10, 10) ctx.fillStyle = cor[1301];ctx.fillRect(10,130, 10, 10) ctx.fillStyle = cor[1302];ctx.fillRect(20,130, 10, 10) ctx.fillStyle = cor[1303];ctx.fillRect(30,130, 10, 10) ctx.fillStyle = cor[1304];ctx.fillRect(40,130, 10, 10) ctx.fillStyle = cor[1305];ctx.fillRect(50,130, 10, 10) ctx.fillStyle = cor[1306];ctx.fillRect(60,130, 10, 10) ctx.fillStyle = cor[1307];ctx.fillRect(70,130, 10, 10) ctx.fillStyle = cor[1308];ctx.fillRect(80,130, 10, 10) ctx.fillStyle = cor[1309];ctx.fillRect(90,130, 10, 10) ctx.fillStyle = cor[1310];ctx.fillRect(100,130, 10, 10) ctx.fillStyle = cor[1311];ctx.fillRect(110,130, 10, 10) ctx.fillStyle = cor[1312];ctx.fillRect(120,130, 10, 10) ctx.fillStyle = cor[1313];ctx.fillRect(130,130, 10, 10) ctx.fillStyle = cor[1314];ctx.fillRect(140,130, 10, 10) ctx.fillStyle = cor[1315];ctx.fillRect(150,130, 10, 10) ctx.fillStyle = cor[1316];ctx.fillRect(160,130, 10, 10) ctx.fillStyle = cor[1317];ctx.fillRect(170,130, 10, 10) ctx.fillStyle = cor[1318];ctx.fillRect(180,130, 10, 10) ctx.fillStyle = cor[1319];ctx.fillRect(190,130, 10, 10) ctx.fillStyle = cor[1320];ctx.fillRect(200,130, 10, 10) ctx.fillStyle = cor[1321];ctx.fillRect(210,130, 10, 10) ctx.fillStyle = cor[1322];ctx.fillRect(220,130, 10, 10) ctx.fillStyle = cor[1323];ctx.fillRect(230,130, 10, 10) ctx.fillStyle = cor[1324];ctx.fillRect(240,130, 10, 10) ctx.fillStyle = cor[1325];ctx.fillRect(250,130, 10, 10) ctx.fillStyle = cor[1326];ctx.fillRect(260,130, 10, 10) ctx.fillStyle = cor[1327];ctx.fillRect(270,130, 10, 10) ctx.fillStyle = cor[1328];ctx.fillRect(280,130, 10, 10) ctx.fillStyle = cor[1329];ctx.fillRect(290,130, 10, 10) ctx.fillStyle = cor[1330];ctx.fillRect(300,130, 10, 10) ctx.fillStyle = cor[1331];ctx.fillRect(310,130, 10, 10) ctx.fillStyle = cor[1332];ctx.fillRect(320,130, 10, 10) ctx.fillStyle = cor[1333];ctx.fillRect(330,130, 10, 10) ctx.fillStyle = cor[1334];ctx.fillRect(340,130, 10, 10) ctx.fillStyle = cor[1335];ctx.fillRect(350,130, 10, 10) ctx.fillStyle = cor[1336];ctx.fillRect(360,130, 10, 10) ctx.fillStyle = cor[1337];ctx.fillRect(370,130, 10, 10) ctx.fillStyle = cor[1338];ctx.fillRect(380,130, 10, 10) ctx.fillStyle = cor[1339];ctx.fillRect(390,130, 10, 10) ctx.fillStyle = cor[1340];ctx.fillRect(400,130, 10, 10) ctx.fillStyle = cor[1341];ctx.fillRect(410,130, 10, 10) ctx.fillStyle = cor[1342];ctx.fillRect(420,130, 10, 10) ctx.fillStyle = cor[1343];ctx.fillRect(430,130, 10, 10) ctx.fillStyle = cor[1344];ctx.fillRect(440,130, 10, 10) ctx.fillStyle = cor[1345];ctx.fillRect(450,130, 10, 10) ctx.fillStyle = cor[1346];ctx.fillRect(460,130, 10, 10) ctx.fillStyle = cor[1347];ctx.fillRect(470,130, 10, 10) ctx.fillStyle = cor[1348];ctx.fillRect(480,130, 10, 10) ctx.fillStyle = cor[1349];ctx.fillRect(490,130, 10, 10) ctx.fillStyle = cor[1350];ctx.fillRect(500,130, 10, 10) ctx.fillStyle = cor[1351];ctx.fillRect(510,130, 10, 10) ctx.fillStyle = cor[1352];ctx.fillRect(520,130, 10, 10) ctx.fillStyle = cor[1353];ctx.fillRect(530,130, 10, 10) ctx.fillStyle = cor[1354];ctx.fillRect(540,130, 10, 10) ctx.fillStyle = cor[1355];ctx.fillRect(550,130, 10, 10) ctx.fillStyle = cor[1356];ctx.fillRect(560,130, 10, 10) ctx.fillStyle = cor[1357];ctx.fillRect(570,130, 10, 10) ctx.fillStyle = cor[1358];ctx.fillRect(580,130, 10, 10) ctx.fillStyle = cor[1359];ctx.fillRect(590,130, 10, 10) ctx.fillStyle = cor[1360];ctx.fillRect(600,130, 10, 10) ctx.fillStyle = cor[1361];ctx.fillRect(610,130, 10, 10) ctx.fillStyle = cor[1362];ctx.fillRect(620,130, 10, 10) ctx.fillStyle = cor[1363];ctx.fillRect(630,130, 10, 10) ctx.fillStyle = cor[1364];ctx.fillRect(640,130, 10, 10) ctx.fillStyle = cor[1365];ctx.fillRect(650,130, 10, 10) ctx.fillStyle = cor[1366];ctx.fillRect(660,130, 10, 10) ctx.fillStyle = cor[1367];ctx.fillRect(670,130, 10, 10) ctx.fillStyle = cor[1368];ctx.fillRect(680,130, 10, 10) ctx.fillStyle = cor[1369];ctx.fillRect(690,130, 10, 10) ctx.fillStyle = cor[1370];ctx.fillRect(700,130, 10, 10) ctx.fillStyle = cor[1371];ctx.fillRect(710,130, 10, 10) ctx.fillStyle = cor[1372];ctx.fillRect(720,130, 10, 10) ctx.fillStyle = cor[1373];ctx.fillRect(730,130, 10, 10) ctx.fillStyle = cor[1374];ctx.fillRect(740,130, 10, 10) ctx.fillStyle = cor[1375];ctx.fillRect(750,130, 10, 10) ctx.fillStyle = cor[1376];ctx.fillRect(760,130, 10, 10) ctx.fillStyle = cor[1377];ctx.fillRect(770,130, 10, 10) ctx.fillStyle = cor[1378];ctx.fillRect(780,130, 10, 10) ctx.fillStyle = cor[1379];ctx.fillRect(790,130, 10, 10) ctx.fillStyle = cor[1380];ctx.fillRect(800,130, 10, 10) ctx.fillStyle = cor[1381];ctx.fillRect(810,130, 10, 10) ctx.fillStyle = cor[1382];ctx.fillRect(820,130, 10, 10) ctx.fillStyle = cor[1383];ctx.fillRect(830,130, 10, 10) ctx.fillStyle = cor[1384];ctx.fillRect(840,130, 10, 10) ctx.fillStyle = cor[1385];ctx.fillRect(850,130, 10, 10) ctx.fillStyle = cor[1386];ctx.fillRect(860,130, 10, 10) ctx.fillStyle = cor[1387];ctx.fillRect(870,130, 10, 10) ctx.fillStyle = cor[1388];ctx.fillRect(880,130, 10, 10) ctx.fillStyle = cor[1389];ctx.fillRect(890,130, 10, 10) ctx.fillStyle = cor[1390];ctx.fillRect(900,130, 10, 10) ctx.fillStyle = cor[1391];ctx.fillRect(910,130, 10, 10) ctx.fillStyle = cor[1392];ctx.fillRect(920,130, 10, 10) ctx.fillStyle = cor[1393];ctx.fillRect(930,130, 10, 10) ctx.fillStyle = cor[1394];ctx.fillRect(940,130, 10, 10) ctx.fillStyle = cor[1395];ctx.fillRect(950,130, 10, 10) ctx.fillStyle = cor[1396];ctx.fillRect(960,130, 10, 10) ctx.fillStyle = cor[1397];ctx.fillRect(970,130, 10, 10) ctx.fillStyle = cor[1398];ctx.fillRect(980,130, 10, 10) ctx.fillStyle = cor[1399];ctx.fillRect(990,130, 10, 10) ctx.fillStyle = cor[1400];ctx.fillRect(0,140, 10, 10) ctx.fillStyle = cor[1401];ctx.fillRect(10,140, 10, 10) ctx.fillStyle = cor[1402];ctx.fillRect(20,140, 10, 10) ctx.fillStyle = cor[1403];ctx.fillRect(30,140, 10, 10) ctx.fillStyle = cor[1404];ctx.fillRect(40,140, 10, 10) ctx.fillStyle = cor[1405];ctx.fillRect(50,140, 10, 10) ctx.fillStyle = cor[1406];ctx.fillRect(60,140, 10, 10) ctx.fillStyle = cor[1407];ctx.fillRect(70,140, 10, 10) ctx.fillStyle = cor[1408];ctx.fillRect(80,140, 10, 10) ctx.fillStyle = cor[1409];ctx.fillRect(90,140, 10, 10) ctx.fillStyle = cor[1410];ctx.fillRect(100,140, 10, 10) ctx.fillStyle = cor[1411];ctx.fillRect(110,140, 10, 10) ctx.fillStyle = cor[1412];ctx.fillRect(120,140, 10, 10) ctx.fillStyle = cor[1413];ctx.fillRect(130,140, 10, 10) ctx.fillStyle = cor[1414];ctx.fillRect(140,140, 10, 10) ctx.fillStyle = cor[1415];ctx.fillRect(150,140, 10, 10) ctx.fillStyle = cor[1416];ctx.fillRect(160,140, 10, 10) ctx.fillStyle = cor[1417];ctx.fillRect(170,140, 10, 10) ctx.fillStyle = cor[1418];ctx.fillRect(180,140, 10, 10) ctx.fillStyle = cor[1419];ctx.fillRect(190,140, 10, 10) ctx.fillStyle = cor[1420];ctx.fillRect(200,140, 10, 10) ctx.fillStyle = cor[1421];ctx.fillRect(210,140, 10, 10) ctx.fillStyle = cor[1422];ctx.fillRect(220,140, 10, 10) ctx.fillStyle = cor[1423];ctx.fillRect(230,140, 10, 10) ctx.fillStyle = cor[1424];ctx.fillRect(240,140, 10, 10) ctx.fillStyle = cor[1425];ctx.fillRect(250,140, 10, 10) ctx.fillStyle = cor[1426];ctx.fillRect(260,140, 10, 10) ctx.fillStyle = cor[1427];ctx.fillRect(270,140, 10, 10) ctx.fillStyle = cor[1428];ctx.fillRect(280,140, 10, 10) ctx.fillStyle = cor[1429];ctx.fillRect(290,140, 10, 10) ctx.fillStyle = cor[1430];ctx.fillRect(300,140, 10, 10) ctx.fillStyle = cor[1431];ctx.fillRect(310,140, 10, 10) ctx.fillStyle = cor[1432];ctx.fillRect(320,140, 10, 10) ctx.fillStyle = cor[1433];ctx.fillRect(330,140, 10, 10) ctx.fillStyle = cor[1434];ctx.fillRect(340,140, 10, 10) ctx.fillStyle = cor[1435];ctx.fillRect(350,140, 10, 10) ctx.fillStyle = cor[1436];ctx.fillRect(360,140, 10, 10) ctx.fillStyle = cor[1437];ctx.fillRect(370,140, 10, 10) ctx.fillStyle = cor[1438];ctx.fillRect(380,140, 10, 10) ctx.fillStyle = cor[1439];ctx.fillRect(390,140, 10, 10) ctx.fillStyle = cor[1440];ctx.fillRect(400,140, 10, 10) ctx.fillStyle = cor[1441];ctx.fillRect(410,140, 10, 10) ctx.fillStyle = cor[1442];ctx.fillRect(420,140, 10, 10) ctx.fillStyle = cor[1443];ctx.fillRect(430,140, 10, 10) ctx.fillStyle = cor[1444];ctx.fillRect(440,140, 10, 10) ctx.fillStyle = cor[1445];ctx.fillRect(450,140, 10, 10) ctx.fillStyle = cor[1446];ctx.fillRect(460,140, 10, 10) ctx.fillStyle = cor[1447];ctx.fillRect(470,140, 10, 10) ctx.fillStyle = cor[1448];ctx.fillRect(480,140, 10, 10) ctx.fillStyle = cor[1449];ctx.fillRect(490,140, 10, 10) ctx.fillStyle = cor[1450];ctx.fillRect(500,140, 10, 10) ctx.fillStyle = cor[1451];ctx.fillRect(510,140, 10, 10) ctx.fillStyle = cor[1452];ctx.fillRect(520,140, 10, 10) ctx.fillStyle = cor[1453];ctx.fillRect(530,140, 10, 10) ctx.fillStyle = cor[1454];ctx.fillRect(540,140, 10, 10) ctx.fillStyle = cor[1455];ctx.fillRect(550,140, 10, 10) ctx.fillStyle = cor[1456];ctx.fillRect(560,140, 10, 10) ctx.fillStyle = cor[1457];ctx.fillRect(570,140, 10, 10) ctx.fillStyle = cor[1458];ctx.fillRect(580,140, 10, 10) ctx.fillStyle = cor[1459];ctx.fillRect(590,140, 10, 10) ctx.fillStyle = cor[1460];ctx.fillRect(600,140, 10, 10) ctx.fillStyle = cor[1461];ctx.fillRect(610,140, 10, 10) ctx.fillStyle = cor[1462];ctx.fillRect(620,140, 10, 10) ctx.fillStyle = cor[1463];ctx.fillRect(630,140, 10, 10) ctx.fillStyle = cor[1464];ctx.fillRect(640,140, 10, 10) ctx.fillStyle = cor[1465];ctx.fillRect(650,140, 10, 10) ctx.fillStyle = cor[1466];ctx.fillRect(660,140, 10, 10) ctx.fillStyle = cor[1467];ctx.fillRect(670,140, 10, 10) ctx.fillStyle = cor[1468];ctx.fillRect(680,140, 10, 10) ctx.fillStyle = cor[1469];ctx.fillRect(690,140, 10, 10) ctx.fillStyle = cor[1470];ctx.fillRect(700,140, 10, 10) ctx.fillStyle = cor[1471];ctx.fillRect(710,140, 10, 10) ctx.fillStyle = cor[1472];ctx.fillRect(720,140, 10, 10) ctx.fillStyle = cor[1473];ctx.fillRect(730,140, 10, 10) ctx.fillStyle = cor[1474];ctx.fillRect(740,140, 10, 10) ctx.fillStyle = cor[1475];ctx.fillRect(750,140, 10, 10) ctx.fillStyle = cor[1476];ctx.fillRect(760,140, 10, 10) ctx.fillStyle = cor[1477];ctx.fillRect(770,140, 10, 10) ctx.fillStyle = cor[1478];ctx.fillRect(780,140, 10, 10) ctx.fillStyle = cor[1479];ctx.fillRect(790,140, 10, 10) ctx.fillStyle = cor[1480];ctx.fillRect(800,140, 10, 10) ctx.fillStyle = cor[1481];ctx.fillRect(810,140, 10, 10) ctx.fillStyle = cor[1482];ctx.fillRect(820,140, 10, 10) ctx.fillStyle = cor[1483];ctx.fillRect(830,140, 10, 10) ctx.fillStyle = cor[1484];ctx.fillRect(840,140, 10, 10) ctx.fillStyle = cor[1485];ctx.fillRect(850,140, 10, 10) ctx.fillStyle = cor[1486];ctx.fillRect(860,140, 10, 10) ctx.fillStyle = cor[1487];ctx.fillRect(870,140, 10, 10) ctx.fillStyle = cor[1488];ctx.fillRect(880,140, 10, 10) ctx.fillStyle = cor[1489];ctx.fillRect(890,140, 10, 10) ctx.fillStyle = cor[1490];ctx.fillRect(900,140, 10, 10) ctx.fillStyle = cor[1491];ctx.fillRect(910,140, 10, 10) ctx.fillStyle = cor[1492];ctx.fillRect(920,140, 10, 10) ctx.fillStyle = cor[1493];ctx.fillRect(930,140, 10, 10) ctx.fillStyle = cor[1494];ctx.fillRect(940,140, 10, 10) ctx.fillStyle = cor[1495];ctx.fillRect(950,140, 10, 10) ctx.fillStyle = cor[1496];ctx.fillRect(960,140, 10, 10) ctx.fillStyle = cor[1497];ctx.fillRect(970,140, 10, 10) ctx.fillStyle = cor[1498];ctx.fillRect(980,140, 10, 10) ctx.fillStyle = cor[1499];ctx.fillRect(990,140, 10, 10) ctx.fillStyle = cor[1500];ctx.fillRect(0,150, 10, 10) ctx.fillStyle = cor[1501];ctx.fillRect(10,150, 10, 10) ctx.fillStyle = cor[1502];ctx.fillRect(20,150, 10, 10) ctx.fillStyle = cor[1503];ctx.fillRect(30,150, 10, 10) ctx.fillStyle = cor[1504];ctx.fillRect(40,150, 10, 10) ctx.fillStyle = cor[1505];ctx.fillRect(50,150, 10, 10) ctx.fillStyle = cor[1506];ctx.fillRect(60,150, 10, 10) ctx.fillStyle = cor[1507];ctx.fillRect(70,150, 10, 10) ctx.fillStyle = cor[1508];ctx.fillRect(80,150, 10, 10) ctx.fillStyle = cor[1509];ctx.fillRect(90,150, 10, 10) ctx.fillStyle = cor[1510];ctx.fillRect(100,150, 10, 10) ctx.fillStyle = cor[1511];ctx.fillRect(110,150, 10, 10) ctx.fillStyle = cor[1512];ctx.fillRect(120,150, 10, 10) ctx.fillStyle = cor[1513];ctx.fillRect(130,150, 10, 10) ctx.fillStyle = cor[1514];ctx.fillRect(140,150, 10, 10) ctx.fillStyle = cor[1515];ctx.fillRect(150,150, 10, 10) ctx.fillStyle = cor[1516];ctx.fillRect(160,150, 10, 10) ctx.fillStyle = cor[1517];ctx.fillRect(170,150, 10, 10) ctx.fillStyle = cor[1518];ctx.fillRect(180,150, 10, 10) ctx.fillStyle = cor[1519];ctx.fillRect(190,150, 10, 10) ctx.fillStyle = cor[1520];ctx.fillRect(200,150, 10, 10) ctx.fillStyle = cor[1521];ctx.fillRect(210,150, 10, 10) ctx.fillStyle = cor[1522];ctx.fillRect(220,150, 10, 10) ctx.fillStyle = cor[1523];ctx.fillRect(230,150, 10, 10) ctx.fillStyle = cor[1524];ctx.fillRect(240,150, 10, 10) ctx.fillStyle = cor[1525];ctx.fillRect(250,150, 10, 10) ctx.fillStyle = cor[1526];ctx.fillRect(260,150, 10, 10) ctx.fillStyle = cor[1527];ctx.fillRect(270,150, 10, 10) ctx.fillStyle = cor[1528];ctx.fillRect(280,150, 10, 10) ctx.fillStyle = cor[1529];ctx.fillRect(290,150, 10, 10) ctx.fillStyle = cor[1530];ctx.fillRect(300,150, 10, 10) ctx.fillStyle = cor[1531];ctx.fillRect(310,150, 10, 10) ctx.fillStyle = cor[1532];ctx.fillRect(320,150, 10, 10) ctx.fillStyle = cor[1533];ctx.fillRect(330,150, 10, 10) ctx.fillStyle = cor[1534];ctx.fillRect(340,150, 10, 10) ctx.fillStyle = cor[1535];ctx.fillRect(350,150, 10, 10) ctx.fillStyle = cor[1536];ctx.fillRect(360,150, 10, 10) ctx.fillStyle = cor[1537];ctx.fillRect(370,150, 10, 10) ctx.fillStyle = cor[1538];ctx.fillRect(380,150, 10, 10) ctx.fillStyle = cor[1539];ctx.fillRect(390,150, 10, 10) ctx.fillStyle = cor[1540];ctx.fillRect(400,150, 10, 10) ctx.fillStyle = cor[1541];ctx.fillRect(410,150, 10, 10) ctx.fillStyle = cor[1542];ctx.fillRect(420,150, 10, 10) ctx.fillStyle = cor[1543];ctx.fillRect(430,150, 10, 10) ctx.fillStyle = cor[1544];ctx.fillRect(440,150, 10, 10) ctx.fillStyle = cor[1545];ctx.fillRect(450,150, 10, 10) ctx.fillStyle = cor[1546];ctx.fillRect(460,150, 10, 10) ctx.fillStyle = cor[1547];ctx.fillRect(470,150, 10, 10) ctx.fillStyle = cor[1548];ctx.fillRect(480,150, 10, 10) ctx.fillStyle = cor[1549];ctx.fillRect(490,150, 10, 10) ctx.fillStyle = cor[1550];ctx.fillRect(500,150, 10, 10) ctx.fillStyle = cor[1551];ctx.fillRect(510,150, 10, 10) ctx.fillStyle = cor[1552];ctx.fillRect(520,150, 10, 10) ctx.fillStyle = cor[1553];ctx.fillRect(530,150, 10, 10) ctx.fillStyle = cor[1554];ctx.fillRect(540,150, 10, 10) ctx.fillStyle = cor[1555];ctx.fillRect(550,150, 10, 10) ctx.fillStyle = cor[1556];ctx.fillRect(560,150, 10, 10) ctx.fillStyle = cor[1557];ctx.fillRect(570,150, 10, 10) ctx.fillStyle = cor[1558];ctx.fillRect(580,150, 10, 10) ctx.fillStyle = cor[1559];ctx.fillRect(590,150, 10, 10) ctx.fillStyle = cor[1560];ctx.fillRect(600,150, 10, 10) ctx.fillStyle = cor[1561];ctx.fillRect(610,150, 10, 10) ctx.fillStyle = cor[1562];ctx.fillRect(620,150, 10, 10) ctx.fillStyle = cor[1563];ctx.fillRect(630,150, 10, 10) ctx.fillStyle = cor[1564];ctx.fillRect(640,150, 10, 10) ctx.fillStyle = cor[1565];ctx.fillRect(650,150, 10, 10) ctx.fillStyle = cor[1566];ctx.fillRect(660,150, 10, 10) ctx.fillStyle = cor[1567];ctx.fillRect(670,150, 10, 10) ctx.fillStyle = cor[1568];ctx.fillRect(680,150, 10, 10) ctx.fillStyle = cor[1569];ctx.fillRect(690,150, 10, 10) ctx.fillStyle = cor[1570];ctx.fillRect(700,150, 10, 10) ctx.fillStyle = cor[1571];ctx.fillRect(710,150, 10, 10) ctx.fillStyle = cor[1572];ctx.fillRect(720,150, 10, 10) ctx.fillStyle = cor[1573];ctx.fillRect(730,150, 10, 10) ctx.fillStyle = cor[1574];ctx.fillRect(740,150, 10, 10) ctx.fillStyle = cor[1575];ctx.fillRect(750,150, 10, 10) ctx.fillStyle = cor[1576];ctx.fillRect(760,150, 10, 10) ctx.fillStyle = cor[1577];ctx.fillRect(770,150, 10, 10) ctx.fillStyle = cor[1578];ctx.fillRect(780,150, 10, 10) ctx.fillStyle = cor[1579];ctx.fillRect(790,150, 10, 10) ctx.fillStyle = cor[1580];ctx.fillRect(800,150, 10, 10) ctx.fillStyle = cor[1581];ctx.fillRect(810,150, 10, 10) ctx.fillStyle = cor[1582];ctx.fillRect(820,150, 10, 10) ctx.fillStyle = cor[1583];ctx.fillRect(830,150, 10, 10) ctx.fillStyle = cor[1584];ctx.fillRect(840,150, 10, 10) ctx.fillStyle = cor[1585];ctx.fillRect(850,150, 10, 10) ctx.fillStyle = cor[1586];ctx.fillRect(860,150, 10, 10) ctx.fillStyle = cor[1587];ctx.fillRect(870,150, 10, 10) ctx.fillStyle = cor[1588];ctx.fillRect(880,150, 10, 10) ctx.fillStyle = cor[1589];ctx.fillRect(890,150, 10, 10) ctx.fillStyle = cor[1590];ctx.fillRect(900,150, 10, 10) ctx.fillStyle = cor[1591];ctx.fillRect(910,150, 10, 10) ctx.fillStyle = cor[1592];ctx.fillRect(920,150, 10, 10) ctx.fillStyle = cor[1593];ctx.fillRect(930,150, 10, 10) ctx.fillStyle = cor[1594];ctx.fillRect(940,150, 10, 10) ctx.fillStyle = cor[1595];ctx.fillRect(950,150, 10, 10) ctx.fillStyle = cor[1596];ctx.fillRect(960,150, 10, 10) ctx.fillStyle = cor[1597];ctx.fillRect(970,150, 10, 10) ctx.fillStyle = cor[1598];ctx.fillRect(980,150, 10, 10) ctx.fillStyle = cor[1599];ctx.fillRect(990,150, 10, 10) ctx.fillStyle = cor[1600];ctx.fillRect(0,160, 10, 10) ctx.fillStyle = cor[1601];ctx.fillRect(10,160, 10, 10) ctx.fillStyle = cor[1602];ctx.fillRect(20,160, 10, 10) ctx.fillStyle = cor[1603];ctx.fillRect(30,160, 10, 10) ctx.fillStyle = cor[1604];ctx.fillRect(40,160, 10, 10) ctx.fillStyle = cor[1605];ctx.fillRect(50,160, 10, 10) ctx.fillStyle = cor[1606];ctx.fillRect(60,160, 10, 10) ctx.fillStyle = cor[1607];ctx.fillRect(70,160, 10, 10) ctx.fillStyle = cor[1608];ctx.fillRect(80,160, 10, 10) ctx.fillStyle = cor[1609];ctx.fillRect(90,160, 10, 10) ctx.fillStyle = cor[1610];ctx.fillRect(100,160, 10, 10) ctx.fillStyle = cor[1611];ctx.fillRect(110,160, 10, 10) ctx.fillStyle = cor[1612];ctx.fillRect(120,160, 10, 10) ctx.fillStyle = cor[1613];ctx.fillRect(130,160, 10, 10) ctx.fillStyle = cor[1614];ctx.fillRect(140,160, 10, 10) ctx.fillStyle = cor[1615];ctx.fillRect(150,160, 10, 10) ctx.fillStyle = cor[1616];ctx.fillRect(160,160, 10, 10) ctx.fillStyle = cor[1617];ctx.fillRect(170,160, 10, 10) ctx.fillStyle = cor[1618];ctx.fillRect(180,160, 10, 10) ctx.fillStyle = cor[1619];ctx.fillRect(190,160, 10, 10) ctx.fillStyle = cor[1620];ctx.fillRect(200,160, 10, 10) ctx.fillStyle = cor[1621];ctx.fillRect(210,160, 10, 10) ctx.fillStyle = cor[1622];ctx.fillRect(220,160, 10, 10) ctx.fillStyle = cor[1623];ctx.fillRect(230,160, 10, 10) ctx.fillStyle = cor[1624];ctx.fillRect(240,160, 10, 10) ctx.fillStyle = cor[1625];ctx.fillRect(250,160, 10, 10) ctx.fillStyle = cor[1626];ctx.fillRect(260,160, 10, 10) ctx.fillStyle = cor[1627];ctx.fillRect(270,160, 10, 10) ctx.fillStyle = cor[1628];ctx.fillRect(280,160, 10, 10) ctx.fillStyle = cor[1629];ctx.fillRect(290,160, 10, 10) ctx.fillStyle = cor[1630];ctx.fillRect(300,160, 10, 10) ctx.fillStyle = cor[1631];ctx.fillRect(310,160, 10, 10) ctx.fillStyle = cor[1632];ctx.fillRect(320,160, 10, 10) ctx.fillStyle = cor[1633];ctx.fillRect(330,160, 10, 10) ctx.fillStyle = cor[1634];ctx.fillRect(340,160, 10, 10) ctx.fillStyle = cor[1635];ctx.fillRect(350,160, 10, 10) ctx.fillStyle = cor[1636];ctx.fillRect(360,160, 10, 10) ctx.fillStyle = cor[1637];ctx.fillRect(370,160, 10, 10) ctx.fillStyle = cor[1638];ctx.fillRect(380,160, 10, 10) ctx.fillStyle = cor[1639];ctx.fillRect(390,160, 10, 10) ctx.fillStyle = cor[1640];ctx.fillRect(400,160, 10, 10) ctx.fillStyle = cor[1641];ctx.fillRect(410,160, 10, 10) ctx.fillStyle = cor[1642];ctx.fillRect(420,160, 10, 10) ctx.fillStyle = cor[1643];ctx.fillRect(430,160, 10, 10) ctx.fillStyle = cor[1644];ctx.fillRect(440,160, 10, 10) ctx.fillStyle = cor[1645];ctx.fillRect(450,160, 10, 10) ctx.fillStyle = cor[1646];ctx.fillRect(460,160, 10, 10) ctx.fillStyle = cor[1647];ctx.fillRect(470,160, 10, 10) ctx.fillStyle = cor[1648];ctx.fillRect(480,160, 10, 10) ctx.fillStyle = cor[1649];ctx.fillRect(490,160, 10, 10) ctx.fillStyle = cor[1650];ctx.fillRect(500,160, 10, 10) ctx.fillStyle = cor[1651];ctx.fillRect(510,160, 10, 10) ctx.fillStyle = cor[1652];ctx.fillRect(520,160, 10, 10) ctx.fillStyle = cor[1653];ctx.fillRect(530,160, 10, 10) ctx.fillStyle = cor[1654];ctx.fillRect(540,160, 10, 10) ctx.fillStyle = cor[1655];ctx.fillRect(550,160, 10, 10) ctx.fillStyle = cor[1656];ctx.fillRect(560,160, 10, 10) ctx.fillStyle = cor[1657];ctx.fillRect(570,160, 10, 10) ctx.fillStyle = cor[1658];ctx.fillRect(580,160, 10, 10) ctx.fillStyle = cor[1659];ctx.fillRect(590,160, 10, 10) ctx.fillStyle = cor[1660];ctx.fillRect(600,160, 10, 10) ctx.fillStyle = cor[1661];ctx.fillRect(610,160, 10, 10) ctx.fillStyle = cor[1662];ctx.fillRect(620,160, 10, 10) ctx.fillStyle = cor[1663];ctx.fillRect(630,160, 10, 10) ctx.fillStyle = cor[1664];ctx.fillRect(640,160, 10, 10) ctx.fillStyle = cor[1665];ctx.fillRect(650,160, 10, 10) ctx.fillStyle = cor[1666];ctx.fillRect(660,160, 10, 10) ctx.fillStyle = cor[1667];ctx.fillRect(670,160, 10, 10) ctx.fillStyle = cor[1668];ctx.fillRect(680,160, 10, 10) ctx.fillStyle = cor[1669];ctx.fillRect(690,160, 10, 10) ctx.fillStyle = cor[1670];ctx.fillRect(700,160, 10, 10) ctx.fillStyle = cor[1671];ctx.fillRect(710,160, 10, 10) ctx.fillStyle = cor[1672];ctx.fillRect(720,160, 10, 10) ctx.fillStyle = cor[1673];ctx.fillRect(730,160, 10, 10) ctx.fillStyle = cor[1674];ctx.fillRect(740,160, 10, 10) ctx.fillStyle = cor[1675];ctx.fillRect(750,160, 10, 10) ctx.fillStyle = cor[1676];ctx.fillRect(760,160, 10, 10) ctx.fillStyle = cor[1677];ctx.fillRect(770,160, 10, 10) ctx.fillStyle = cor[1678];ctx.fillRect(780,160, 10, 10) ctx.fillStyle = cor[1679];ctx.fillRect(790,160, 10, 10) ctx.fillStyle = cor[1680];ctx.fillRect(800,160, 10, 10) ctx.fillStyle = cor[1681];ctx.fillRect(810,160, 10, 10) ctx.fillStyle = cor[1682];ctx.fillRect(820,160, 10, 10) ctx.fillStyle = cor[1683];ctx.fillRect(830,160, 10, 10) ctx.fillStyle = cor[1684];ctx.fillRect(840,160, 10, 10) ctx.fillStyle = cor[1685];ctx.fillRect(850,160, 10, 10) ctx.fillStyle = cor[1686];ctx.fillRect(860,160, 10, 10) ctx.fillStyle = cor[1687];ctx.fillRect(870,160, 10, 10) ctx.fillStyle = cor[1688];ctx.fillRect(880,160, 10, 10) ctx.fillStyle = cor[1689];ctx.fillRect(890,160, 10, 10) ctx.fillStyle = cor[1690];ctx.fillRect(900,160, 10, 10) ctx.fillStyle = cor[1691];ctx.fillRect(910,160, 10, 10) ctx.fillStyle = cor[1692];ctx.fillRect(920,160, 10, 10) ctx.fillStyle = cor[1693];ctx.fillRect(930,160, 10, 10) ctx.fillStyle = cor[1694];ctx.fillRect(940,160, 10, 10) ctx.fillStyle = cor[1695];ctx.fillRect(950,160, 10, 10) ctx.fillStyle = cor[1696];ctx.fillRect(960,160, 10, 10) ctx.fillStyle = cor[1697];ctx.fillRect(970,160, 10, 10) ctx.fillStyle = cor[1698];ctx.fillRect(980,160, 10, 10) ctx.fillStyle = cor[1699];ctx.fillRect(990,160, 10, 10) ctx.fillStyle = cor[1700];ctx.fillRect(0,170, 10, 10) ctx.fillStyle = cor[1701];ctx.fillRect(10,170, 10, 10) ctx.fillStyle = cor[1702];ctx.fillRect(20,170, 10, 10) ctx.fillStyle = cor[1703];ctx.fillRect(30,170, 10, 10) ctx.fillStyle = cor[1704];ctx.fillRect(40,170, 10, 10) ctx.fillStyle = cor[1705];ctx.fillRect(50,170, 10, 10) ctx.fillStyle = cor[1706];ctx.fillRect(60,170, 10, 10) ctx.fillStyle = cor[1707];ctx.fillRect(70,170, 10, 10) ctx.fillStyle = cor[1708];ctx.fillRect(80,170, 10, 10) ctx.fillStyle = cor[1709];ctx.fillRect(90,170, 10, 10) ctx.fillStyle = cor[1710];ctx.fillRect(100,170, 10, 10) ctx.fillStyle = cor[1711];ctx.fillRect(110,170, 10, 10) ctx.fillStyle = cor[1712];ctx.fillRect(120,170, 10, 10) ctx.fillStyle = cor[1713];ctx.fillRect(130,170, 10, 10) ctx.fillStyle = cor[1714];ctx.fillRect(140,170, 10, 10) ctx.fillStyle = cor[1715];ctx.fillRect(150,170, 10, 10) ctx.fillStyle = cor[1716];ctx.fillRect(160,170, 10, 10) ctx.fillStyle = cor[1717];ctx.fillRect(170,170, 10, 10) ctx.fillStyle = cor[1718];ctx.fillRect(180,170, 10, 10) ctx.fillStyle = cor[1719];ctx.fillRect(190,170, 10, 10) ctx.fillStyle = cor[1720];ctx.fillRect(200,170, 10, 10) ctx.fillStyle = cor[1721];ctx.fillRect(210,170, 10, 10) ctx.fillStyle = cor[1722];ctx.fillRect(220,170, 10, 10) ctx.fillStyle = cor[1723];ctx.fillRect(230,170, 10, 10) ctx.fillStyle = cor[1724];ctx.fillRect(240,170, 10, 10) ctx.fillStyle = cor[1725];ctx.fillRect(250,170, 10, 10) ctx.fillStyle = cor[1726];ctx.fillRect(260,170, 10, 10) ctx.fillStyle = cor[1727];ctx.fillRect(270,170, 10, 10) ctx.fillStyle = cor[1728];ctx.fillRect(280,170, 10, 10) ctx.fillStyle = cor[1729];ctx.fillRect(290,170, 10, 10) ctx.fillStyle = cor[1730];ctx.fillRect(300,170, 10, 10) ctx.fillStyle = cor[1731];ctx.fillRect(310,170, 10, 10) ctx.fillStyle = cor[1732];ctx.fillRect(320,170, 10, 10) ctx.fillStyle = cor[1733];ctx.fillRect(330,170, 10, 10) ctx.fillStyle = cor[1734];ctx.fillRect(340,170, 10, 10) ctx.fillStyle = cor[1735];ctx.fillRect(350,170, 10, 10) ctx.fillStyle = cor[1736];ctx.fillRect(360,170, 10, 10) ctx.fillStyle = cor[1737];ctx.fillRect(370,170, 10, 10) ctx.fillStyle = cor[1738];ctx.fillRect(380,170, 10, 10) ctx.fillStyle = cor[1739];ctx.fillRect(390,170, 10, 10) ctx.fillStyle = cor[1740];ctx.fillRect(400,170, 10, 10) ctx.fillStyle = cor[1741];ctx.fillRect(410,170, 10, 10) ctx.fillStyle = cor[1742];ctx.fillRect(420,170, 10, 10) ctx.fillStyle = cor[1743];ctx.fillRect(430,170, 10, 10) ctx.fillStyle = cor[1744];ctx.fillRect(440,170, 10, 10) ctx.fillStyle = cor[1745];ctx.fillRect(450,170, 10, 10) ctx.fillStyle = cor[1746];ctx.fillRect(460,170, 10, 10) ctx.fillStyle = cor[1747];ctx.fillRect(470,170, 10, 10) ctx.fillStyle = cor[1748];ctx.fillRect(480,170, 10, 10) ctx.fillStyle = cor[1749];ctx.fillRect(490,170, 10, 10) ctx.fillStyle = cor[1750];ctx.fillRect(500,170, 10, 10) ctx.fillStyle = cor[1751];ctx.fillRect(510,170, 10, 10) ctx.fillStyle = cor[1752];ctx.fillRect(520,170, 10, 10) ctx.fillStyle = cor[1753];ctx.fillRect(530,170, 10, 10) ctx.fillStyle = cor[1754];ctx.fillRect(540,170, 10, 10) ctx.fillStyle = cor[1755];ctx.fillRect(550,170, 10, 10) ctx.fillStyle = cor[1756];ctx.fillRect(560,170, 10, 10) ctx.fillStyle = cor[1757];ctx.fillRect(570,170, 10, 10) ctx.fillStyle = cor[1758];ctx.fillRect(580,170, 10, 10) ctx.fillStyle = cor[1759];ctx.fillRect(590,170, 10, 10) ctx.fillStyle = cor[1760];ctx.fillRect(600,170, 10, 10) ctx.fillStyle = cor[1761];ctx.fillRect(610,170, 10, 10) ctx.fillStyle = cor[1762];ctx.fillRect(620,170, 10, 10) ctx.fillStyle = cor[1763];ctx.fillRect(630,170, 10, 10) ctx.fillStyle = cor[1764];ctx.fillRect(640,170, 10, 10) ctx.fillStyle = cor[1765];ctx.fillRect(650,170, 10, 10) ctx.fillStyle = cor[1766];ctx.fillRect(660,170, 10, 10) ctx.fillStyle = cor[1767];ctx.fillRect(670,170, 10, 10) ctx.fillStyle = cor[1768];ctx.fillRect(680,170, 10, 10) ctx.fillStyle = cor[1769];ctx.fillRect(690,170, 10, 10) ctx.fillStyle = cor[1770];ctx.fillRect(700,170, 10, 10) ctx.fillStyle = cor[1771];ctx.fillRect(710,170, 10, 10) ctx.fillStyle = cor[1772];ctx.fillRect(720,170, 10, 10) ctx.fillStyle = cor[1773];ctx.fillRect(730,170, 10, 10) ctx.fillStyle = cor[1774];ctx.fillRect(740,170, 10, 10) ctx.fillStyle = cor[1775];ctx.fillRect(750,170, 10, 10) ctx.fillStyle = cor[1776];ctx.fillRect(760,170, 10, 10) ctx.fillStyle = cor[1777];ctx.fillRect(770,170, 10, 10) ctx.fillStyle = cor[1778];ctx.fillRect(780,170, 10, 10) ctx.fillStyle = cor[1779];ctx.fillRect(790,170, 10, 10) ctx.fillStyle = cor[1780];ctx.fillRect(800,170, 10, 10) ctx.fillStyle = cor[1781];ctx.fillRect(810,170, 10, 10) ctx.fillStyle = cor[1782];ctx.fillRect(820,170, 10, 10) ctx.fillStyle = cor[1783];ctx.fillRect(830,170, 10, 10) ctx.fillStyle = cor[1784];ctx.fillRect(840,170, 10, 10) ctx.fillStyle = cor[1785];ctx.fillRect(850,170, 10, 10) ctx.fillStyle = cor[1786];ctx.fillRect(860,170, 10, 10) ctx.fillStyle = cor[1787];ctx.fillRect(870,170, 10, 10) ctx.fillStyle = cor[1788];ctx.fillRect(880,170, 10, 10) ctx.fillStyle = cor[1789];ctx.fillRect(890,170, 10, 10) ctx.fillStyle = cor[1790];ctx.fillRect(900,170, 10, 10) ctx.fillStyle = cor[1791];ctx.fillRect(910,170, 10, 10) ctx.fillStyle = cor[1792];ctx.fillRect(920,170, 10, 10) ctx.fillStyle = cor[1793];ctx.fillRect(930,170, 10, 10) ctx.fillStyle = cor[1794];ctx.fillRect(940,170, 10, 10) ctx.fillStyle = cor[1795];ctx.fillRect(950,170, 10, 10) ctx.fillStyle = cor[1796];ctx.fillRect(960,170, 10, 10) ctx.fillStyle = cor[1797];ctx.fillRect(970,170, 10, 10) ctx.fillStyle = cor[1798];ctx.fillRect(980,170, 10, 10) ctx.fillStyle = cor[1799];ctx.fillRect(990,170, 10, 10) ctx.fillStyle = cor[1800];ctx.fillRect(0,180, 10, 10) ctx.fillStyle = cor[1801];ctx.fillRect(10,180, 10, 10) ctx.fillStyle = cor[1802];ctx.fillRect(20,180, 10, 10) ctx.fillStyle = cor[1803];ctx.fillRect(30,180, 10, 10) ctx.fillStyle = cor[1804];ctx.fillRect(40,180, 10, 10) ctx.fillStyle = cor[1805];ctx.fillRect(50,180, 10, 10) ctx.fillStyle = cor[1806];ctx.fillRect(60,180, 10, 10) ctx.fillStyle = cor[1807];ctx.fillRect(70,180, 10, 10) ctx.fillStyle = cor[1808];ctx.fillRect(80,180, 10, 10) ctx.fillStyle = cor[1809];ctx.fillRect(90,180, 10, 10) ctx.fillStyle = cor[1810];ctx.fillRect(100,180, 10, 10) ctx.fillStyle = cor[1811];ctx.fillRect(110,180, 10, 10) ctx.fillStyle = cor[1812];ctx.fillRect(120,180, 10, 10) ctx.fillStyle = cor[1813];ctx.fillRect(130,180, 10, 10) ctx.fillStyle = cor[1814];ctx.fillRect(140,180, 10, 10) ctx.fillStyle = cor[1815];ctx.fillRect(150,180, 10, 10) ctx.fillStyle = cor[1816];ctx.fillRect(160,180, 10, 10) ctx.fillStyle = cor[1817];ctx.fillRect(170,180, 10, 10) ctx.fillStyle = cor[1818];ctx.fillRect(180,180, 10, 10) ctx.fillStyle = cor[1819];ctx.fillRect(190,180, 10, 10) ctx.fillStyle = cor[1820];ctx.fillRect(200,180, 10, 10) ctx.fillStyle = cor[1821];ctx.fillRect(210,180, 10, 10) ctx.fillStyle = cor[1822];ctx.fillRect(220,180, 10, 10) ctx.fillStyle = cor[1823];ctx.fillRect(230,180, 10, 10) ctx.fillStyle = cor[1824];ctx.fillRect(240,180, 10, 10) ctx.fillStyle = cor[1825];ctx.fillRect(250,180, 10, 10) ctx.fillStyle = cor[1826];ctx.fillRect(260,180, 10, 10) ctx.fillStyle = cor[1827];ctx.fillRect(270,180, 10, 10) ctx.fillStyle = cor[1828];ctx.fillRect(280,180, 10, 10) ctx.fillStyle = cor[1829];ctx.fillRect(290,180, 10, 10) ctx.fillStyle = cor[1830];ctx.fillRect(300,180, 10, 10) ctx.fillStyle = cor[1831];ctx.fillRect(310,180, 10, 10) ctx.fillStyle = cor[1832];ctx.fillRect(320,180, 10, 10) ctx.fillStyle = cor[1833];ctx.fillRect(330,180, 10, 10) ctx.fillStyle = cor[1834];ctx.fillRect(340,180, 10, 10) ctx.fillStyle = cor[1835];ctx.fillRect(350,180, 10, 10) ctx.fillStyle = cor[1836];ctx.fillRect(360,180, 10, 10) ctx.fillStyle = cor[1837];ctx.fillRect(370,180, 10, 10) ctx.fillStyle = cor[1838];ctx.fillRect(380,180, 10, 10) ctx.fillStyle = cor[1839];ctx.fillRect(390,180, 10, 10) ctx.fillStyle = cor[1840];ctx.fillRect(400,180, 10, 10) ctx.fillStyle = cor[1841];ctx.fillRect(410,180, 10, 10) ctx.fillStyle = cor[1842];ctx.fillRect(420,180, 10, 10) ctx.fillStyle = cor[1843];ctx.fillRect(430,180, 10, 10) ctx.fillStyle = cor[1844];ctx.fillRect(440,180, 10, 10) ctx.fillStyle = cor[1845];ctx.fillRect(450,180, 10, 10) ctx.fillStyle = cor[1846];ctx.fillRect(460,180, 10, 10) ctx.fillStyle = cor[1847];ctx.fillRect(470,180, 10, 10) ctx.fillStyle = cor[1848];ctx.fillRect(480,180, 10, 10) ctx.fillStyle = cor[1849];ctx.fillRect(490,180, 10, 10) ctx.fillStyle = cor[1850];ctx.fillRect(500,180, 10, 10) ctx.fillStyle = cor[1851];ctx.fillRect(510,180, 10, 10) ctx.fillStyle = cor[1852];ctx.fillRect(520,180, 10, 10) ctx.fillStyle = cor[1853];ctx.fillRect(530,180, 10, 10) ctx.fillStyle = cor[1854];ctx.fillRect(540,180, 10, 10) ctx.fillStyle = cor[1855];ctx.fillRect(550,180, 10, 10) ctx.fillStyle = cor[1856];ctx.fillRect(560,180, 10, 10) ctx.fillStyle = cor[1857];ctx.fillRect(570,180, 10, 10) ctx.fillStyle = cor[1858];ctx.fillRect(580,180, 10, 10) ctx.fillStyle = cor[1859];ctx.fillRect(590,180, 10, 10) ctx.fillStyle = cor[1860];ctx.fillRect(600,180, 10, 10) ctx.fillStyle = cor[1861];ctx.fillRect(610,180, 10, 10) ctx.fillStyle = cor[1862];ctx.fillRect(620,180, 10, 10) ctx.fillStyle = cor[1863];ctx.fillRect(630,180, 10, 10) ctx.fillStyle = cor[1864];ctx.fillRect(640,180, 10, 10) ctx.fillStyle = cor[1865];ctx.fillRect(650,180, 10, 10) ctx.fillStyle = cor[1866];ctx.fillRect(660,180, 10, 10) ctx.fillStyle = cor[1867];ctx.fillRect(670,180, 10, 10) ctx.fillStyle = cor[1868];ctx.fillRect(680,180, 10, 10) ctx.fillStyle = cor[1869];ctx.fillRect(690,180, 10, 10) ctx.fillStyle = cor[1870];ctx.fillRect(700,180, 10, 10) ctx.fillStyle = cor[1871];ctx.fillRect(710,180, 10, 10) ctx.fillStyle = cor[1872];ctx.fillRect(720,180, 10, 10) ctx.fillStyle = cor[1873];ctx.fillRect(730,180, 10, 10) ctx.fillStyle = cor[1874];ctx.fillRect(740,180, 10, 10) ctx.fillStyle = cor[1875];ctx.fillRect(750,180, 10, 10) ctx.fillStyle = cor[1876];ctx.fillRect(760,180, 10, 10) ctx.fillStyle = cor[1877];ctx.fillRect(770,180, 10, 10) ctx.fillStyle = cor[1878];ctx.fillRect(780,180, 10, 10) ctx.fillStyle = cor[1879];ctx.fillRect(790,180, 10, 10) ctx.fillStyle = cor[1880];ctx.fillRect(800,180, 10, 10) ctx.fillStyle = cor[1881];ctx.fillRect(810,180, 10, 10) ctx.fillStyle = cor[1882];ctx.fillRect(820,180, 10, 10) ctx.fillStyle = cor[1883];ctx.fillRect(830,180, 10, 10) ctx.fillStyle = cor[1884];ctx.fillRect(840,180, 10, 10) ctx.fillStyle = cor[1885];ctx.fillRect(850,180, 10, 10) ctx.fillStyle = cor[1886];ctx.fillRect(860,180, 10, 10) ctx.fillStyle = cor[1887];ctx.fillRect(870,180, 10, 10) ctx.fillStyle = cor[1888];ctx.fillRect(880,180, 10, 10) ctx.fillStyle = cor[1889];ctx.fillRect(890,180, 10, 10) ctx.fillStyle = cor[1890];ctx.fillRect(900,180, 10, 10) ctx.fillStyle = cor[1891];ctx.fillRect(910,180, 10, 10) ctx.fillStyle = cor[1892];ctx.fillRect(920,180, 10, 10) ctx.fillStyle = cor[1893];ctx.fillRect(930,180, 10, 10) ctx.fillStyle = cor[1894];ctx.fillRect(940,180, 10, 10) ctx.fillStyle = cor[1895];ctx.fillRect(950,180, 10, 10) ctx.fillStyle = cor[1896];ctx.fillRect(960,180, 10, 10) ctx.fillStyle = cor[1897];ctx.fillRect(970,180, 10, 10) ctx.fillStyle = cor[1898];ctx.fillRect(980,180, 10, 10) ctx.fillStyle = cor[1899];ctx.fillRect(990,180, 10, 10) ctx.fillStyle = cor[1900];ctx.fillRect(0,190, 10, 10) ctx.fillStyle = cor[1901];ctx.fillRect(10,190, 10, 10) ctx.fillStyle = cor[1902];ctx.fillRect(20,190, 10, 10) ctx.fillStyle = cor[1903];ctx.fillRect(30,190, 10, 10) ctx.fillStyle = cor[1904];ctx.fillRect(40,190, 10, 10) ctx.fillStyle = cor[1905];ctx.fillRect(50,190, 10, 10) ctx.fillStyle = cor[1906];ctx.fillRect(60,190, 10, 10) ctx.fillStyle = cor[1907];ctx.fillRect(70,190, 10, 10) ctx.fillStyle = cor[1908];ctx.fillRect(80,190, 10, 10) ctx.fillStyle = cor[1909];ctx.fillRect(90,190, 10, 10) ctx.fillStyle = cor[1910];ctx.fillRect(100,190, 10, 10) ctx.fillStyle = cor[1911];ctx.fillRect(110,190, 10, 10) ctx.fillStyle = cor[1912];ctx.fillRect(120,190, 10, 10) ctx.fillStyle = cor[1913];ctx.fillRect(130,190, 10, 10) ctx.fillStyle = cor[1914];ctx.fillRect(140,190, 10, 10) ctx.fillStyle = cor[1915];ctx.fillRect(150,190, 10, 10) ctx.fillStyle = cor[1916];ctx.fillRect(160,190, 10, 10) ctx.fillStyle = cor[1917];ctx.fillRect(170,190, 10, 10) ctx.fillStyle = cor[1918];ctx.fillRect(180,190, 10, 10) ctx.fillStyle = cor[1919];ctx.fillRect(190,190, 10, 10) ctx.fillStyle = cor[1920];ctx.fillRect(200,190, 10, 10) ctx.fillStyle = cor[1921];ctx.fillRect(210,190, 10, 10) ctx.fillStyle = cor[1922];ctx.fillRect(220,190, 10, 10) ctx.fillStyle = cor[1923];ctx.fillRect(230,190, 10, 10) ctx.fillStyle = cor[1924];ctx.fillRect(240,190, 10, 10) ctx.fillStyle = cor[1925];ctx.fillRect(250,190, 10, 10) ctx.fillStyle = cor[1926];ctx.fillRect(260,190, 10, 10) ctx.fillStyle = cor[1927];ctx.fillRect(270,190, 10, 10) ctx.fillStyle = cor[1928];ctx.fillRect(280,190, 10, 10) ctx.fillStyle = cor[1929];ctx.fillRect(290,190, 10, 10) ctx.fillStyle = cor[1930];ctx.fillRect(300,190, 10, 10) ctx.fillStyle = cor[1931];ctx.fillRect(310,190, 10, 10) ctx.fillStyle = cor[1932];ctx.fillRect(320,190, 10, 10) ctx.fillStyle = cor[1933];ctx.fillRect(330,190, 10, 10) ctx.fillStyle = cor[1934];ctx.fillRect(340,190, 10, 10) ctx.fillStyle = cor[1935];ctx.fillRect(350,190, 10, 10) ctx.fillStyle = cor[1936];ctx.fillRect(360,190, 10, 10) ctx.fillStyle = cor[1937];ctx.fillRect(370,190, 10, 10) ctx.fillStyle = cor[1938];ctx.fillRect(380,190, 10, 10) ctx.fillStyle = cor[1939];ctx.fillRect(390,190, 10, 10) ctx.fillStyle = cor[1940];ctx.fillRect(400,190, 10, 10) ctx.fillStyle = cor[1941];ctx.fillRect(410,190, 10, 10) ctx.fillStyle = cor[1942];ctx.fillRect(420,190, 10, 10) ctx.fillStyle = cor[1943];ctx.fillRect(430,190, 10, 10) ctx.fillStyle = cor[1944];ctx.fillRect(440,190, 10, 10) ctx.fillStyle = cor[1945];ctx.fillRect(450,190, 10, 10) ctx.fillStyle = cor[1946];ctx.fillRect(460,190, 10, 10) ctx.fillStyle = cor[1947];ctx.fillRect(470,190, 10, 10) ctx.fillStyle = cor[1948];ctx.fillRect(480,190, 10, 10) ctx.fillStyle = cor[1949];ctx.fillRect(490,190, 10, 10) ctx.fillStyle = cor[1950];ctx.fillRect(500,190, 10, 10) ctx.fillStyle = cor[1951];ctx.fillRect(510,190, 10, 10) ctx.fillStyle = cor[1952];ctx.fillRect(520,190, 10, 10) ctx.fillStyle = cor[1953];ctx.fillRect(530,190, 10, 10) ctx.fillStyle = cor[1954];ctx.fillRect(540,190, 10, 10) ctx.fillStyle = cor[1955];ctx.fillRect(550,190, 10, 10) ctx.fillStyle = cor[1956];ctx.fillRect(560,190, 10, 10) ctx.fillStyle = cor[1957];ctx.fillRect(570,190, 10, 10) ctx.fillStyle = cor[1958];ctx.fillRect(580,190, 10, 10) ctx.fillStyle = cor[1959];ctx.fillRect(590,190, 10, 10) ctx.fillStyle = cor[1960];ctx.fillRect(600,190, 10, 10) ctx.fillStyle = cor[1961];ctx.fillRect(610,190, 10, 10) ctx.fillStyle = cor[1962];ctx.fillRect(620,190, 10, 10) ctx.fillStyle = cor[1963];ctx.fillRect(630,190, 10, 10) ctx.fillStyle = cor[1964];ctx.fillRect(640,190, 10, 10) ctx.fillStyle = cor[1965];ctx.fillRect(650,190, 10, 10) ctx.fillStyle = cor[1966];ctx.fillRect(660,190, 10, 10) ctx.fillStyle = cor[1967];ctx.fillRect(670,190, 10, 10) ctx.fillStyle = cor[1968];ctx.fillRect(680,190, 10, 10) ctx.fillStyle = cor[1969];ctx.fillRect(690,190, 10, 10) ctx.fillStyle = cor[1970];ctx.fillRect(700,190, 10, 10) ctx.fillStyle = cor[1971];ctx.fillRect(710,190, 10, 10) ctx.fillStyle = cor[1972];ctx.fillRect(720,190, 10, 10) ctx.fillStyle = cor[1973];ctx.fillRect(730,190, 10, 10) ctx.fillStyle = cor[1974];ctx.fillRect(740,190, 10, 10) ctx.fillStyle = cor[1975];ctx.fillRect(750,190, 10, 10) ctx.fillStyle = cor[1976];ctx.fillRect(760,190, 10, 10) ctx.fillStyle = cor[1977];ctx.fillRect(770,190, 10, 10) ctx.fillStyle = cor[1978];ctx.fillRect(780,190, 10, 10) ctx.fillStyle = cor[1979];ctx.fillRect(790,190, 10, 10) ctx.fillStyle = cor[1980];ctx.fillRect(800,190, 10, 10) ctx.fillStyle = cor[1981];ctx.fillRect(810,190, 10, 10) ctx.fillStyle = cor[1982];ctx.fillRect(820,190, 10, 10) ctx.fillStyle = cor[1983];ctx.fillRect(830,190, 10, 10) ctx.fillStyle = cor[1984];ctx.fillRect(840,190, 10, 10) ctx.fillStyle = cor[1985];ctx.fillRect(850,190, 10, 10) ctx.fillStyle = cor[1986];ctx.fillRect(860,190, 10, 10) ctx.fillStyle = cor[1987];ctx.fillRect(870,190, 10, 10) ctx.fillStyle = cor[1988];ctx.fillRect(880,190, 10, 10) ctx.fillStyle = cor[1989];ctx.fillRect(890,190, 10, 10) ctx.fillStyle = cor[1990];ctx.fillRect(900,190, 10, 10) ctx.fillStyle = cor[1991];ctx.fillRect(910,190, 10, 10) ctx.fillStyle = cor[1992];ctx.fillRect(920,190, 10, 10) ctx.fillStyle = cor[1993];ctx.fillRect(930,190, 10, 10) ctx.fillStyle = cor[1994];ctx.fillRect(940,190, 10, 10) ctx.fillStyle = cor[1995];ctx.fillRect(950,190, 10, 10) ctx.fillStyle = cor[1996];ctx.fillRect(960,190, 10, 10) ctx.fillStyle = cor[1997];ctx.fillRect(970,190, 10, 10) ctx.fillStyle = cor[1998];ctx.fillRect(980,190, 10, 10) ctx.fillStyle = cor[1999];ctx.fillRect(990,190, 10, 10) ctx.fillStyle = cor[2000];ctx.fillRect(0,200, 10, 10) ctx.fillStyle = cor[2001];ctx.fillRect(10,200, 10, 10) ctx.fillStyle = cor[2002];ctx.fillRect(20,200, 10, 10) ctx.fillStyle = cor[2003];ctx.fillRect(30,200, 10, 10) ctx.fillStyle = cor[2004];ctx.fillRect(40,200, 10, 10) ctx.fillStyle = cor[2005];ctx.fillRect(50,200, 10, 10) ctx.fillStyle = cor[2006];ctx.fillRect(60,200, 10, 10) ctx.fillStyle = cor[2007];ctx.fillRect(70,200, 10, 10) ctx.fillStyle = cor[2008];ctx.fillRect(80,200, 10, 10) ctx.fillStyle = cor[2009];ctx.fillRect(90,200, 10, 10) ctx.fillStyle = cor[2010];ctx.fillRect(100,200, 10, 10) ctx.fillStyle = cor[2011];ctx.fillRect(110,200, 10, 10) ctx.fillStyle = cor[2012];ctx.fillRect(120,200, 10, 10) ctx.fillStyle = cor[2013];ctx.fillRect(130,200, 10, 10) ctx.fillStyle = cor[2014];ctx.fillRect(140,200, 10, 10) ctx.fillStyle = cor[2015];ctx.fillRect(150,200, 10, 10) ctx.fillStyle = cor[2016];ctx.fillRect(160,200, 10, 10) ctx.fillStyle = cor[2017];ctx.fillRect(170,200, 10, 10) ctx.fillStyle = cor[2018];ctx.fillRect(180,200, 10, 10) ctx.fillStyle = cor[2019];ctx.fillRect(190,200, 10, 10) ctx.fillStyle = cor[2020];ctx.fillRect(200,200, 10, 10) ctx.fillStyle = cor[2021];ctx.fillRect(210,200, 10, 10) ctx.fillStyle = cor[2022];ctx.fillRect(220,200, 10, 10) ctx.fillStyle = cor[2023];ctx.fillRect(230,200, 10, 10) ctx.fillStyle = cor[2024];ctx.fillRect(240,200, 10, 10) ctx.fillStyle = cor[2025];ctx.fillRect(250,200, 10, 10) ctx.fillStyle = cor[2026];ctx.fillRect(260,200, 10, 10) ctx.fillStyle = cor[2027];ctx.fillRect(270,200, 10, 10) ctx.fillStyle = cor[2028];ctx.fillRect(280,200, 10, 10) ctx.fillStyle = cor[2029];ctx.fillRect(290,200, 10, 10) ctx.fillStyle = cor[2030];ctx.fillRect(300,200, 10, 10) ctx.fillStyle = cor[2031];ctx.fillRect(310,200, 10, 10) ctx.fillStyle = cor[2032];ctx.fillRect(320,200, 10, 10) ctx.fillStyle = cor[2033];ctx.fillRect(330,200, 10, 10) ctx.fillStyle = cor[2034];ctx.fillRect(340,200, 10, 10) ctx.fillStyle = cor[2035];ctx.fillRect(350,200, 10, 10) ctx.fillStyle = cor[2036];ctx.fillRect(360,200, 10, 10) ctx.fillStyle = cor[2037];ctx.fillRect(370,200, 10, 10) ctx.fillStyle = cor[2038];ctx.fillRect(380,200, 10, 10) ctx.fillStyle = cor[2039];ctx.fillRect(390,200, 10, 10) ctx.fillStyle = cor[2040];ctx.fillRect(400,200, 10, 10) ctx.fillStyle = cor[2041];ctx.fillRect(410,200, 10, 10) ctx.fillStyle = cor[2042];ctx.fillRect(420,200, 10, 10) ctx.fillStyle = cor[2043];ctx.fillRect(430,200, 10, 10) ctx.fillStyle = cor[2044];ctx.fillRect(440,200, 10, 10) ctx.fillStyle = cor[2045];ctx.fillRect(450,200, 10, 10) ctx.fillStyle = cor[2046];ctx.fillRect(460,200, 10, 10) ctx.fillStyle = cor[2047];ctx.fillRect(470,200, 10, 10) ctx.fillStyle = cor[2048];ctx.fillRect(480,200, 10, 10) ctx.fillStyle = cor[2049];ctx.fillRect(490,200, 10, 10) ctx.fillStyle = cor[2050];ctx.fillRect(500,200, 10, 10) ctx.fillStyle = cor[2051];ctx.fillRect(510,200, 10, 10) ctx.fillStyle = cor[2052];ctx.fillRect(520,200, 10, 10) ctx.fillStyle = cor[2053];ctx.fillRect(530,200, 10, 10) ctx.fillStyle = cor[2054];ctx.fillRect(540,200, 10, 10) ctx.fillStyle = cor[2055];ctx.fillRect(550,200, 10, 10) ctx.fillStyle = cor[2056];ctx.fillRect(560,200, 10, 10) ctx.fillStyle = cor[2057];ctx.fillRect(570,200, 10, 10) ctx.fillStyle = cor[2058];ctx.fillRect(580,200, 10, 10) ctx.fillStyle = cor[2059];ctx.fillRect(590,200, 10, 10) ctx.fillStyle = cor[2060];ctx.fillRect(600,200, 10, 10) ctx.fillStyle = cor[2061];ctx.fillRect(610,200, 10, 10) ctx.fillStyle = cor[2062];ctx.fillRect(620,200, 10, 10) ctx.fillStyle = cor[2063];ctx.fillRect(630,200, 10, 10) ctx.fillStyle = cor[2064];ctx.fillRect(640,200, 10, 10) ctx.fillStyle = cor[2065];ctx.fillRect(650,200, 10, 10) ctx.fillStyle = cor[2066];ctx.fillRect(660,200, 10, 10) ctx.fillStyle = cor[2067];ctx.fillRect(670,200, 10, 10) ctx.fillStyle = cor[2068];ctx.fillRect(680,200, 10, 10) ctx.fillStyle = cor[2069];ctx.fillRect(690,200, 10, 10) ctx.fillStyle = cor[2070];ctx.fillRect(700,200, 10, 10) ctx.fillStyle = cor[2071];ctx.fillRect(710,200, 10, 10) ctx.fillStyle = cor[2072];ctx.fillRect(720,200, 10, 10) ctx.fillStyle = cor[2073];ctx.fillRect(730,200, 10, 10) ctx.fillStyle = cor[2074];ctx.fillRect(740,200, 10, 10) ctx.fillStyle = cor[2075];ctx.fillRect(750,200, 10, 10) ctx.fillStyle = cor[2076];ctx.fillRect(760,200, 10, 10) ctx.fillStyle = cor[2077];ctx.fillRect(770,200, 10, 10) ctx.fillStyle = cor[2078];ctx.fillRect(780,200, 10, 10) ctx.fillStyle = cor[2079];ctx.fillRect(790,200, 10, 10) ctx.fillStyle = cor[2080];ctx.fillRect(800,200, 10, 10) ctx.fillStyle = cor[2081];ctx.fillRect(810,200, 10, 10) ctx.fillStyle = cor[2082];ctx.fillRect(820,200, 10, 10) ctx.fillStyle = cor[2083];ctx.fillRect(830,200, 10, 10) ctx.fillStyle = cor[2084];ctx.fillRect(840,200, 10, 10) ctx.fillStyle = cor[2085];ctx.fillRect(850,200, 10, 10) ctx.fillStyle = cor[2086];ctx.fillRect(860,200, 10, 10) ctx.fillStyle = cor[2087];ctx.fillRect(870,200, 10, 10) ctx.fillStyle = cor[2088];ctx.fillRect(880,200, 10, 10) ctx.fillStyle = cor[2089];ctx.fillRect(890,200, 10, 10) ctx.fillStyle = cor[2090];ctx.fillRect(900,200, 10, 10) ctx.fillStyle = cor[2091];ctx.fillRect(910,200, 10, 10) ctx.fillStyle = cor[2092];ctx.fillRect(920,200, 10, 10) ctx.fillStyle = cor[2093];ctx.fillRect(930,200, 10, 10) ctx.fillStyle = cor[2094];ctx.fillRect(940,200, 10, 10) ctx.fillStyle = cor[2095];ctx.fillRect(950,200, 10, 10) ctx.fillStyle = cor[2096];ctx.fillRect(960,200, 10, 10) ctx.fillStyle = cor[2097];ctx.fillRect(970,200, 10, 10) ctx.fillStyle = cor[2098];ctx.fillRect(980,200, 10, 10) ctx.fillStyle = cor[2099];ctx.fillRect(990,200, 10, 10) ctx.fillStyle = cor[2100];ctx.fillRect(0,210, 10, 10) ctx.fillStyle = cor[2101];ctx.fillRect(10,210, 10, 10) ctx.fillStyle = cor[2102];ctx.fillRect(20,210, 10, 10) ctx.fillStyle = cor[2103];ctx.fillRect(30,210, 10, 10) ctx.fillStyle = cor[2104];ctx.fillRect(40,210, 10, 10) ctx.fillStyle = cor[2105];ctx.fillRect(50,210, 10, 10) ctx.fillStyle = cor[2106];ctx.fillRect(60,210, 10, 10) ctx.fillStyle = cor[2107];ctx.fillRect(70,210, 10, 10) ctx.fillStyle = cor[2108];ctx.fillRect(80,210, 10, 10) ctx.fillStyle = cor[2109];ctx.fillRect(90,210, 10, 10) ctx.fillStyle = cor[2110];ctx.fillRect(100,210, 10, 10) ctx.fillStyle = cor[2111];ctx.fillRect(110,210, 10, 10) ctx.fillStyle = cor[2112];ctx.fillRect(120,210, 10, 10) ctx.fillStyle = cor[2113];ctx.fillRect(130,210, 10, 10) ctx.fillStyle = cor[2114];ctx.fillRect(140,210, 10, 10) ctx.fillStyle = cor[2115];ctx.fillRect(150,210, 10, 10) ctx.fillStyle = cor[2116];ctx.fillRect(160,210, 10, 10) ctx.fillStyle = cor[2117];ctx.fillRect(170,210, 10, 10) ctx.fillStyle = cor[2118];ctx.fillRect(180,210, 10, 10) ctx.fillStyle = cor[2119];ctx.fillRect(190,210, 10, 10) ctx.fillStyle = cor[2120];ctx.fillRect(200,210, 10, 10) ctx.fillStyle = cor[2121];ctx.fillRect(210,210, 10, 10) ctx.fillStyle = cor[2122];ctx.fillRect(220,210, 10, 10) ctx.fillStyle = cor[2123];ctx.fillRect(230,210, 10, 10) ctx.fillStyle = cor[2124];ctx.fillRect(240,210, 10, 10) ctx.fillStyle = cor[2125];ctx.fillRect(250,210, 10, 10) ctx.fillStyle = cor[2126];ctx.fillRect(260,210, 10, 10) ctx.fillStyle = cor[2127];ctx.fillRect(270,210, 10, 10) ctx.fillStyle = cor[2128];ctx.fillRect(280,210, 10, 10) ctx.fillStyle = cor[2129];ctx.fillRect(290,210, 10, 10) ctx.fillStyle = cor[2130];ctx.fillRect(300,210, 10, 10) ctx.fillStyle = cor[2131];ctx.fillRect(310,210, 10, 10) ctx.fillStyle = cor[2132];ctx.fillRect(320,210, 10, 10) ctx.fillStyle = cor[2133];ctx.fillRect(330,210, 10, 10) ctx.fillStyle = cor[2134];ctx.fillRect(340,210, 10, 10) ctx.fillStyle = cor[2135];ctx.fillRect(350,210, 10, 10) ctx.fillStyle = cor[2136];ctx.fillRect(360,210, 10, 10) ctx.fillStyle = cor[2137];ctx.fillRect(370,210, 10, 10) ctx.fillStyle = cor[2138];ctx.fillRect(380,210, 10, 10) ctx.fillStyle = cor[2139];ctx.fillRect(390,210, 10, 10) ctx.fillStyle = cor[2140];ctx.fillRect(400,210, 10, 10) ctx.fillStyle = cor[2141];ctx.fillRect(410,210, 10, 10) ctx.fillStyle = cor[2142];ctx.fillRect(420,210, 10, 10) ctx.fillStyle = cor[2143];ctx.fillRect(430,210, 10, 10) ctx.fillStyle = cor[2144];ctx.fillRect(440,210, 10, 10) ctx.fillStyle = cor[2145];ctx.fillRect(450,210, 10, 10) ctx.fillStyle = cor[2146];ctx.fillRect(460,210, 10, 10) ctx.fillStyle = cor[2147];ctx.fillRect(470,210, 10, 10) ctx.fillStyle = cor[2148];ctx.fillRect(480,210, 10, 10) ctx.fillStyle = cor[2149];ctx.fillRect(490,210, 10, 10) ctx.fillStyle = cor[2150];ctx.fillRect(500,210, 10, 10) ctx.fillStyle = cor[2151];ctx.fillRect(510,210, 10, 10) ctx.fillStyle = cor[2152];ctx.fillRect(520,210, 10, 10) ctx.fillStyle = cor[2153];ctx.fillRect(530,210, 10, 10) ctx.fillStyle = cor[2154];ctx.fillRect(540,210, 10, 10) ctx.fillStyle = cor[2155];ctx.fillRect(550,210, 10, 10) ctx.fillStyle = cor[2156];ctx.fillRect(560,210, 10, 10) ctx.fillStyle = cor[2157];ctx.fillRect(570,210, 10, 10) ctx.fillStyle = cor[2158];ctx.fillRect(580,210, 10, 10) ctx.fillStyle = cor[2159];ctx.fillRect(590,210, 10, 10) ctx.fillStyle = cor[2160];ctx.fillRect(600,210, 10, 10) ctx.fillStyle = cor[2161];ctx.fillRect(610,210, 10, 10) ctx.fillStyle = cor[2162];ctx.fillRect(620,210, 10, 10) ctx.fillStyle = cor[2163];ctx.fillRect(630,210, 10, 10) ctx.fillStyle = cor[2164];ctx.fillRect(640,210, 10, 10) ctx.fillStyle = cor[2165];ctx.fillRect(650,210, 10, 10) ctx.fillStyle = cor[2166];ctx.fillRect(660,210, 10, 10) ctx.fillStyle = cor[2167];ctx.fillRect(670,210, 10, 10) ctx.fillStyle = cor[2168];ctx.fillRect(680,210, 10, 10) ctx.fillStyle = cor[2169];ctx.fillRect(690,210, 10, 10) ctx.fillStyle = cor[2170];ctx.fillRect(700,210, 10, 10) ctx.fillStyle = cor[2171];ctx.fillRect(710,210, 10, 10) ctx.fillStyle = cor[2172];ctx.fillRect(720,210, 10, 10) ctx.fillStyle = cor[2173];ctx.fillRect(730,210, 10, 10) ctx.fillStyle = cor[2174];ctx.fillRect(740,210, 10, 10) ctx.fillStyle = cor[2175];ctx.fillRect(750,210, 10, 10) ctx.fillStyle = cor[2176];ctx.fillRect(760,210, 10, 10) ctx.fillStyle = cor[2177];ctx.fillRect(770,210, 10, 10) ctx.fillStyle = cor[2178];ctx.fillRect(780,210, 10, 10) ctx.fillStyle = cor[2179];ctx.fillRect(790,210, 10, 10) ctx.fillStyle = cor[2180];ctx.fillRect(800,210, 10, 10) ctx.fillStyle = cor[2181];ctx.fillRect(810,210, 10, 10) ctx.fillStyle = cor[2182];ctx.fillRect(820,210, 10, 10) ctx.fillStyle = cor[2183];ctx.fillRect(830,210, 10, 10) ctx.fillStyle = cor[2184];ctx.fillRect(840,210, 10, 10) ctx.fillStyle = cor[2185];ctx.fillRect(850,210, 10, 10) ctx.fillStyle = cor[2186];ctx.fillRect(860,210, 10, 10) ctx.fillStyle = cor[2187];ctx.fillRect(870,210, 10, 10) ctx.fillStyle = cor[2188];ctx.fillRect(880,210, 10, 10) ctx.fillStyle = cor[2189];ctx.fillRect(890,210, 10, 10) ctx.fillStyle = cor[2190];ctx.fillRect(900,210, 10, 10) ctx.fillStyle = cor[2191];ctx.fillRect(910,210, 10, 10) ctx.fillStyle = cor[2192];ctx.fillRect(920,210, 10, 10) ctx.fillStyle = cor[2193];ctx.fillRect(930,210, 10, 10) ctx.fillStyle = cor[2194];ctx.fillRect(940,210, 10, 10) ctx.fillStyle = cor[2195];ctx.fillRect(950,210, 10, 10) ctx.fillStyle = cor[2196];ctx.fillRect(960,210, 10, 10) ctx.fillStyle = cor[2197];ctx.fillRect(970,210, 10, 10) ctx.fillStyle = cor[2198];ctx.fillRect(980,210, 10, 10) ctx.fillStyle = cor[2199];ctx.fillRect(990,210, 10, 10) ctx.fillStyle = cor[2200];ctx.fillRect(0,220, 10, 10) ctx.fillStyle = cor[2201];ctx.fillRect(10,220, 10, 10) ctx.fillStyle = cor[2202];ctx.fillRect(20,220, 10, 10) ctx.fillStyle = cor[2203];ctx.fillRect(30,220, 10, 10) ctx.fillStyle = cor[2204];ctx.fillRect(40,220, 10, 10) ctx.fillStyle = cor[2205];ctx.fillRect(50,220, 10, 10) ctx.fillStyle = cor[2206];ctx.fillRect(60,220, 10, 10) ctx.fillStyle = cor[2207];ctx.fillRect(70,220, 10, 10) ctx.fillStyle = cor[2208];ctx.fillRect(80,220, 10, 10) ctx.fillStyle = cor[2209];ctx.fillRect(90,220, 10, 10) ctx.fillStyle = cor[2210];ctx.fillRect(100,220, 10, 10) ctx.fillStyle = cor[2211];ctx.fillRect(110,220, 10, 10) ctx.fillStyle = cor[2212];ctx.fillRect(120,220, 10, 10) ctx.fillStyle = cor[2213];ctx.fillRect(130,220, 10, 10) ctx.fillStyle = cor[2214];ctx.fillRect(140,220, 10, 10) ctx.fillStyle = cor[2215];ctx.fillRect(150,220, 10, 10) ctx.fillStyle = cor[2216];ctx.fillRect(160,220, 10, 10) ctx.fillStyle = cor[2217];ctx.fillRect(170,220, 10, 10) ctx.fillStyle = cor[2218];ctx.fillRect(180,220, 10, 10) ctx.fillStyle = cor[2219];ctx.fillRect(190,220, 10, 10) ctx.fillStyle = cor[2220];ctx.fillRect(200,220, 10, 10) ctx.fillStyle = cor[2221];ctx.fillRect(210,220, 10, 10) ctx.fillStyle = cor[2222];ctx.fillRect(220,220, 10, 10) ctx.fillStyle = cor[2223];ctx.fillRect(230,220, 10, 10) ctx.fillStyle = cor[2224];ctx.fillRect(240,220, 10, 10) ctx.fillStyle = cor[2225];ctx.fillRect(250,220, 10, 10) ctx.fillStyle = cor[2226];ctx.fillRect(260,220, 10, 10) ctx.fillStyle = cor[2227];ctx.fillRect(270,220, 10, 10) ctx.fillStyle = cor[2228];ctx.fillRect(280,220, 10, 10) ctx.fillStyle = cor[2229];ctx.fillRect(290,220, 10, 10) ctx.fillStyle = cor[2230];ctx.fillRect(300,220, 10, 10) ctx.fillStyle = cor[2231];ctx.fillRect(310,220, 10, 10) ctx.fillStyle = cor[2232];ctx.fillRect(320,220, 10, 10) ctx.fillStyle = cor[2233];ctx.fillRect(330,220, 10, 10) ctx.fillStyle = cor[2234];ctx.fillRect(340,220, 10, 10) ctx.fillStyle = cor[2235];ctx.fillRect(350,220, 10, 10) ctx.fillStyle = cor[2236];ctx.fillRect(360,220, 10, 10) ctx.fillStyle = cor[2237];ctx.fillRect(370,220, 10, 10) ctx.fillStyle = cor[2238];ctx.fillRect(380,220, 10, 10) ctx.fillStyle = cor[2239];ctx.fillRect(390,220, 10, 10) ctx.fillStyle = cor[2240];ctx.fillRect(400,220, 10, 10) ctx.fillStyle = cor[2241];ctx.fillRect(410,220, 10, 10) ctx.fillStyle = cor[2242];ctx.fillRect(420,220, 10, 10) ctx.fillStyle = cor[2243];ctx.fillRect(430,220, 10, 10) ctx.fillStyle = cor[2244];ctx.fillRect(440,220, 10, 10) ctx.fillStyle = cor[2245];ctx.fillRect(450,220, 10, 10) ctx.fillStyle = cor[2246];ctx.fillRect(460,220, 10, 10) ctx.fillStyle = cor[2247];ctx.fillRect(470,220, 10, 10) ctx.fillStyle = cor[2248];ctx.fillRect(480,220, 10, 10) ctx.fillStyle = cor[2249];ctx.fillRect(490,220, 10, 10) ctx.fillStyle = cor[2250];ctx.fillRect(500,220, 10, 10) ctx.fillStyle = cor[2251];ctx.fillRect(510,220, 10, 10) ctx.fillStyle = cor[2252];ctx.fillRect(520,220, 10, 10) ctx.fillStyle = cor[2253];ctx.fillRect(530,220, 10, 10) ctx.fillStyle = cor[2254];ctx.fillRect(540,220, 10, 10) ctx.fillStyle = cor[2255];ctx.fillRect(550,220, 10, 10) ctx.fillStyle = cor[2256];ctx.fillRect(560,220, 10, 10) ctx.fillStyle = cor[2257];ctx.fillRect(570,220, 10, 10) ctx.fillStyle = cor[2258];ctx.fillRect(580,220, 10, 10) ctx.fillStyle = cor[2259];ctx.fillRect(590,220, 10, 10) ctx.fillStyle = cor[2260];ctx.fillRect(600,220, 10, 10) ctx.fillStyle = cor[2261];ctx.fillRect(610,220, 10, 10) ctx.fillStyle = cor[2262];ctx.fillRect(620,220, 10, 10) ctx.fillStyle = cor[2263];ctx.fillRect(630,220, 10, 10) ctx.fillStyle = cor[2264];ctx.fillRect(640,220, 10, 10) ctx.fillStyle = cor[2265];ctx.fillRect(650,220, 10, 10) ctx.fillStyle = cor[2266];ctx.fillRect(660,220, 10, 10) ctx.fillStyle = cor[2267];ctx.fillRect(670,220, 10, 10) ctx.fillStyle = cor[2268];ctx.fillRect(680,220, 10, 10) ctx.fillStyle = cor[2269];ctx.fillRect(690,220, 10, 10) ctx.fillStyle = cor[2270];ctx.fillRect(700,220, 10, 10) ctx.fillStyle = cor[2271];ctx.fillRect(710,220, 10, 10) ctx.fillStyle = cor[2272];ctx.fillRect(720,220, 10, 10) ctx.fillStyle = cor[2273];ctx.fillRect(730,220, 10, 10) ctx.fillStyle = cor[2274];ctx.fillRect(740,220, 10, 10) ctx.fillStyle = cor[2275];ctx.fillRect(750,220, 10, 10) ctx.fillStyle = cor[2276];ctx.fillRect(760,220, 10, 10) ctx.fillStyle = cor[2277];ctx.fillRect(770,220, 10, 10) ctx.fillStyle = cor[2278];ctx.fillRect(780,220, 10, 10) ctx.fillStyle = cor[2279];ctx.fillRect(790,220, 10, 10) ctx.fillStyle = cor[2280];ctx.fillRect(800,220, 10, 10) ctx.fillStyle = cor[2281];ctx.fillRect(810,220, 10, 10) ctx.fillStyle = cor[2282];ctx.fillRect(820,220, 10, 10) ctx.fillStyle = cor[2283];ctx.fillRect(830,220, 10, 10) ctx.fillStyle = cor[2284];ctx.fillRect(840,220, 10, 10) ctx.fillStyle = cor[2285];ctx.fillRect(850,220, 10, 10) ctx.fillStyle = cor[2286];ctx.fillRect(860,220, 10, 10) ctx.fillStyle = cor[2287];ctx.fillRect(870,220, 10, 10) ctx.fillStyle = cor[2288];ctx.fillRect(880,220, 10, 10) ctx.fillStyle = cor[2289];ctx.fillRect(890,220, 10, 10) ctx.fillStyle = cor[2290];ctx.fillRect(900,220, 10, 10) ctx.fillStyle = cor[2291];ctx.fillRect(910,220, 10, 10) ctx.fillStyle = cor[2292];ctx.fillRect(920,220, 10, 10) ctx.fillStyle = cor[2293];ctx.fillRect(930,220, 10, 10) ctx.fillStyle = cor[2294];ctx.fillRect(940,220, 10, 10) ctx.fillStyle = cor[2295];ctx.fillRect(950,220, 10, 10) ctx.fillStyle = cor[2296];ctx.fillRect(960,220, 10, 10) ctx.fillStyle = cor[2297];ctx.fillRect(970,220, 10, 10) ctx.fillStyle = cor[2298];ctx.fillRect(980,220, 10, 10) ctx.fillStyle = cor[2299];ctx.fillRect(990,220, 10, 10) ctx.fillStyle = cor[2300];ctx.fillRect(0,230, 10, 10) ctx.fillStyle = cor[2301];ctx.fillRect(10,230, 10, 10) ctx.fillStyle = cor[2302];ctx.fillRect(20,230, 10, 10) ctx.fillStyle = cor[2303];ctx.fillRect(30,230, 10, 10) ctx.fillStyle = cor[2304];ctx.fillRect(40,230, 10, 10) ctx.fillStyle = cor[2305];ctx.fillRect(50,230, 10, 10) ctx.fillStyle = cor[2306];ctx.fillRect(60,230, 10, 10) ctx.fillStyle = cor[2307];ctx.fillRect(70,230, 10, 10) ctx.fillStyle = cor[2308];ctx.fillRect(80,230, 10, 10) ctx.fillStyle = cor[2309];ctx.fillRect(90,230, 10, 10) ctx.fillStyle = cor[2310];ctx.fillRect(100,230, 10, 10) ctx.fillStyle = cor[2311];ctx.fillRect(110,230, 10, 10) ctx.fillStyle = cor[2312];ctx.fillRect(120,230, 10, 10) ctx.fillStyle = cor[2313];ctx.fillRect(130,230, 10, 10) ctx.fillStyle = cor[2314];ctx.fillRect(140,230, 10, 10) ctx.fillStyle = cor[2315];ctx.fillRect(150,230, 10, 10) ctx.fillStyle = cor[2316];ctx.fillRect(160,230, 10, 10) ctx.fillStyle = cor[2317];ctx.fillRect(170,230, 10, 10) ctx.fillStyle = cor[2318];ctx.fillRect(180,230, 10, 10) ctx.fillStyle = cor[2319];ctx.fillRect(190,230, 10, 10) ctx.fillStyle = cor[2320];ctx.fillRect(200,230, 10, 10) ctx.fillStyle = cor[2321];ctx.fillRect(210,230, 10, 10) ctx.fillStyle = cor[2322];ctx.fillRect(220,230, 10, 10) ctx.fillStyle = cor[2323];ctx.fillRect(230,230, 10, 10) ctx.fillStyle = cor[2324];ctx.fillRect(240,230, 10, 10) ctx.fillStyle = cor[2325];ctx.fillRect(250,230, 10, 10) ctx.fillStyle = cor[2326];ctx.fillRect(260,230, 10, 10) ctx.fillStyle = cor[2327];ctx.fillRect(270,230, 10, 10) ctx.fillStyle = cor[2328];ctx.fillRect(280,230, 10, 10) ctx.fillStyle = cor[2329];ctx.fillRect(290,230, 10, 10) ctx.fillStyle = cor[2330];ctx.fillRect(300,230, 10, 10) ctx.fillStyle = cor[2331];ctx.fillRect(310,230, 10, 10) ctx.fillStyle = cor[2332];ctx.fillRect(320,230, 10, 10) ctx.fillStyle = cor[2333];ctx.fillRect(330,230, 10, 10) ctx.fillStyle = cor[2334];ctx.fillRect(340,230, 10, 10) ctx.fillStyle = cor[2335];ctx.fillRect(350,230, 10, 10) ctx.fillStyle = cor[2336];ctx.fillRect(360,230, 10, 10) ctx.fillStyle = cor[2337];ctx.fillRect(370,230, 10, 10) ctx.fillStyle = cor[2338];ctx.fillRect(380,230, 10, 10) ctx.fillStyle = cor[2339];ctx.fillRect(390,230, 10, 10) ctx.fillStyle = cor[2340];ctx.fillRect(400,230, 10, 10) ctx.fillStyle = cor[2341];ctx.fillRect(410,230, 10, 10) ctx.fillStyle = cor[2342];ctx.fillRect(420,230, 10, 10) ctx.fillStyle = cor[2343];ctx.fillRect(430,230, 10, 10) ctx.fillStyle = cor[2344];ctx.fillRect(440,230, 10, 10) ctx.fillStyle = cor[2345];ctx.fillRect(450,230, 10, 10) ctx.fillStyle = cor[2346];ctx.fillRect(460,230, 10, 10) ctx.fillStyle = cor[2347];ctx.fillRect(470,230, 10, 10) ctx.fillStyle = cor[2348];ctx.fillRect(480,230, 10, 10) ctx.fillStyle = cor[2349];ctx.fillRect(490,230, 10, 10) ctx.fillStyle = cor[2350];ctx.fillRect(500,230, 10, 10) ctx.fillStyle = cor[2351];ctx.fillRect(510,230, 10, 10) ctx.fillStyle = cor[2352];ctx.fillRect(520,230, 10, 10) ctx.fillStyle = cor[2353];ctx.fillRect(530,230, 10, 10) ctx.fillStyle = cor[2354];ctx.fillRect(540,230, 10, 10) ctx.fillStyle = cor[2355];ctx.fillRect(550,230, 10, 10) ctx.fillStyle = cor[2356];ctx.fillRect(560,230, 10, 10) ctx.fillStyle = cor[2357];ctx.fillRect(570,230, 10, 10) ctx.fillStyle = cor[2358];ctx.fillRect(580,230, 10, 10) ctx.fillStyle = cor[2359];ctx.fillRect(590,230, 10, 10) ctx.fillStyle = cor[2360];ctx.fillRect(600,230, 10, 10) ctx.fillStyle = cor[2361];ctx.fillRect(610,230, 10, 10) ctx.fillStyle = cor[2362];ctx.fillRect(620,230, 10, 10) ctx.fillStyle = cor[2363];ctx.fillRect(630,230, 10, 10) ctx.fillStyle = cor[2364];ctx.fillRect(640,230, 10, 10) ctx.fillStyle = cor[2365];ctx.fillRect(650,230, 10, 10) ctx.fillStyle = cor[2366];ctx.fillRect(660,230, 10, 10) ctx.fillStyle = cor[2367];ctx.fillRect(670,230, 10, 10) ctx.fillStyle = cor[2368];ctx.fillRect(680,230, 10, 10) ctx.fillStyle = cor[2369];ctx.fillRect(690,230, 10, 10) ctx.fillStyle = cor[2370];ctx.fillRect(700,230, 10, 10) ctx.fillStyle = cor[2371];ctx.fillRect(710,230, 10, 10) ctx.fillStyle = cor[2372];ctx.fillRect(720,230, 10, 10) ctx.fillStyle = cor[2373];ctx.fillRect(730,230, 10, 10) ctx.fillStyle = cor[2374];ctx.fillRect(740,230, 10, 10) ctx.fillStyle = cor[2375];ctx.fillRect(750,230, 10, 10) ctx.fillStyle = cor[2376];ctx.fillRect(760,230, 10, 10) ctx.fillStyle = cor[2377];ctx.fillRect(770,230, 10, 10) ctx.fillStyle = cor[2378];ctx.fillRect(780,230, 10, 10) ctx.fillStyle = cor[2379];ctx.fillRect(790,230, 10, 10) ctx.fillStyle = cor[2380];ctx.fillRect(800,230, 10, 10) ctx.fillStyle = cor[2381];ctx.fillRect(810,230, 10, 10) ctx.fillStyle = cor[2382];ctx.fillRect(820,230, 10, 10) ctx.fillStyle = cor[2383];ctx.fillRect(830,230, 10, 10) ctx.fillStyle = cor[2384];ctx.fillRect(840,230, 10, 10) ctx.fillStyle = cor[2385];ctx.fillRect(850,230, 10, 10) ctx.fillStyle = cor[2386];ctx.fillRect(860,230, 10, 10) ctx.fillStyle = cor[2387];ctx.fillRect(870,230, 10, 10) ctx.fillStyle = cor[2388];ctx.fillRect(880,230, 10, 10) ctx.fillStyle = cor[2389];ctx.fillRect(890,230, 10, 10) ctx.fillStyle = cor[2390];ctx.fillRect(900,230, 10, 10) ctx.fillStyle = cor[2391];ctx.fillRect(910,230, 10, 10) ctx.fillStyle = cor[2392];ctx.fillRect(920,230, 10, 10) ctx.fillStyle = cor[2393];ctx.fillRect(930,230, 10, 10) ctx.fillStyle = cor[2394];ctx.fillRect(940,230, 10, 10) ctx.fillStyle = cor[2395];ctx.fillRect(950,230, 10, 10) ctx.fillStyle = cor[2396];ctx.fillRect(960,230, 10, 10) ctx.fillStyle = cor[2397];ctx.fillRect(970,230, 10, 10) ctx.fillStyle = cor[2398];ctx.fillRect(980,230, 10, 10) ctx.fillStyle = cor[2399];ctx.fillRect(990,230, 10, 10) ctx.fillStyle = cor[2400];ctx.fillRect(0,240, 10, 10) ctx.fillStyle = cor[2401];ctx.fillRect(10,240, 10, 10) ctx.fillStyle = cor[2402];ctx.fillRect(20,240, 10, 10) ctx.fillStyle = cor[2403];ctx.fillRect(30,240, 10, 10) ctx.fillStyle = cor[2404];ctx.fillRect(40,240, 10, 10) ctx.fillStyle = cor[2405];ctx.fillRect(50,240, 10, 10) ctx.fillStyle = cor[2406];ctx.fillRect(60,240, 10, 10) ctx.fillStyle = cor[2407];ctx.fillRect(70,240, 10, 10) ctx.fillStyle = cor[2408];ctx.fillRect(80,240, 10, 10) ctx.fillStyle = cor[2409];ctx.fillRect(90,240, 10, 10) ctx.fillStyle = cor[2410];ctx.fillRect(100,240, 10, 10) ctx.fillStyle = cor[2411];ctx.fillRect(110,240, 10, 10) ctx.fillStyle = cor[2412];ctx.fillRect(120,240, 10, 10) ctx.fillStyle = cor[2413];ctx.fillRect(130,240, 10, 10) ctx.fillStyle = cor[2414];ctx.fillRect(140,240, 10, 10) ctx.fillStyle = cor[2415];ctx.fillRect(150,240, 10, 10) ctx.fillStyle = cor[2416];ctx.fillRect(160,240, 10, 10) ctx.fillStyle = cor[2417];ctx.fillRect(170,240, 10, 10) ctx.fillStyle = cor[2418];ctx.fillRect(180,240, 10, 10) ctx.fillStyle = cor[2419];ctx.fillRect(190,240, 10, 10) ctx.fillStyle = cor[2420];ctx.fillRect(200,240, 10, 10) ctx.fillStyle = cor[2421];ctx.fillRect(210,240, 10, 10) ctx.fillStyle = cor[2422];ctx.fillRect(220,240, 10, 10) ctx.fillStyle = cor[2423];ctx.fillRect(230,240, 10, 10) ctx.fillStyle = cor[2424];ctx.fillRect(240,240, 10, 10) ctx.fillStyle = cor[2425];ctx.fillRect(250,240, 10, 10) ctx.fillStyle = cor[2426];ctx.fillRect(260,240, 10, 10) ctx.fillStyle = cor[2427];ctx.fillRect(270,240, 10, 10) ctx.fillStyle = cor[2428];ctx.fillRect(280,240, 10, 10) ctx.fillStyle = cor[2429];ctx.fillRect(290,240, 10, 10) ctx.fillStyle = cor[2430];ctx.fillRect(300,240, 10, 10) ctx.fillStyle = cor[2431];ctx.fillRect(310,240, 10, 10) ctx.fillStyle = cor[2432];ctx.fillRect(320,240, 10, 10) ctx.fillStyle = cor[2433];ctx.fillRect(330,240, 10, 10) ctx.fillStyle = cor[2434];ctx.fillRect(340,240, 10, 10) ctx.fillStyle = cor[2435];ctx.fillRect(350,240, 10, 10) ctx.fillStyle = cor[2436];ctx.fillRect(360,240, 10, 10) ctx.fillStyle = cor[2437];ctx.fillRect(370,240, 10, 10) ctx.fillStyle = cor[2438];ctx.fillRect(380,240, 10, 10) ctx.fillStyle = cor[2439];ctx.fillRect(390,240, 10, 10) ctx.fillStyle = cor[2440];ctx.fillRect(400,240, 10, 10) ctx.fillStyle = cor[2441];ctx.fillRect(410,240, 10, 10) ctx.fillStyle = cor[2442];ctx.fillRect(420,240, 10, 10) ctx.fillStyle = cor[2443];ctx.fillRect(430,240, 10, 10) ctx.fillStyle = cor[2444];ctx.fillRect(440,240, 10, 10) ctx.fillStyle = cor[2445];ctx.fillRect(450,240, 10, 10) ctx.fillStyle = cor[2446];ctx.fillRect(460,240, 10, 10) ctx.fillStyle = cor[2447];ctx.fillRect(470,240, 10, 10) ctx.fillStyle = cor[2448];ctx.fillRect(480,240, 10, 10) ctx.fillStyle = cor[2449];ctx.fillRect(490,240, 10, 10) ctx.fillStyle = cor[2450];ctx.fillRect(500,240, 10, 10) ctx.fillStyle = cor[2451];ctx.fillRect(510,240, 10, 10) ctx.fillStyle = cor[2452];ctx.fillRect(520,240, 10, 10) ctx.fillStyle = cor[2453];ctx.fillRect(530,240, 10, 10) ctx.fillStyle = cor[2454];ctx.fillRect(540,240, 10, 10) ctx.fillStyle = cor[2455];ctx.fillRect(550,240, 10, 10) ctx.fillStyle = cor[2456];ctx.fillRect(560,240, 10, 10) ctx.fillStyle = cor[2457];ctx.fillRect(570,240, 10, 10) ctx.fillStyle = cor[2458];ctx.fillRect(580,240, 10, 10) ctx.fillStyle = cor[2459];ctx.fillRect(590,240, 10, 10) ctx.fillStyle = cor[2460];ctx.fillRect(600,240, 10, 10) ctx.fillStyle = cor[2461];ctx.fillRect(610,240, 10, 10) ctx.fillStyle = cor[2462];ctx.fillRect(620,240, 10, 10) ctx.fillStyle = cor[2463];ctx.fillRect(630,240, 10, 10) ctx.fillStyle = cor[2464];ctx.fillRect(640,240, 10, 10) ctx.fillStyle = cor[2465];ctx.fillRect(650,240, 10, 10) ctx.fillStyle = cor[2466];ctx.fillRect(660,240, 10, 10) ctx.fillStyle = cor[2467];ctx.fillRect(670,240, 10, 10) ctx.fillStyle = cor[2468];ctx.fillRect(680,240, 10, 10) ctx.fillStyle = cor[2469];ctx.fillRect(690,240, 10, 10) ctx.fillStyle = cor[2470];ctx.fillRect(700,240, 10, 10) ctx.fillStyle = cor[2471];ctx.fillRect(710,240, 10, 10) ctx.fillStyle = cor[2472];ctx.fillRect(720,240, 10, 10) ctx.fillStyle = cor[2473];ctx.fillRect(730,240, 10, 10) ctx.fillStyle = cor[2474];ctx.fillRect(740,240, 10, 10) ctx.fillStyle = cor[2475];ctx.fillRect(750,240, 10, 10) ctx.fillStyle = cor[2476];ctx.fillRect(760,240, 10, 10) ctx.fillStyle = cor[2477];ctx.fillRect(770,240, 10, 10) ctx.fillStyle = cor[2478];ctx.fillRect(780,240, 10, 10) ctx.fillStyle = cor[2479];ctx.fillRect(790,240, 10, 10) ctx.fillStyle = cor[2480];ctx.fillRect(800,240, 10, 10) ctx.fillStyle = cor[2481];ctx.fillRect(810,240, 10, 10) ctx.fillStyle = cor[2482];ctx.fillRect(820,240, 10, 10) ctx.fillStyle = cor[2483];ctx.fillRect(830,240, 10, 10) ctx.fillStyle = cor[2484];ctx.fillRect(840,240, 10, 10) ctx.fillStyle = cor[2485];ctx.fillRect(850,240, 10, 10) ctx.fillStyle = cor[2486];ctx.fillRect(860,240, 10, 10) ctx.fillStyle = cor[2487];ctx.fillRect(870,240, 10, 10) ctx.fillStyle = cor[2488];ctx.fillRect(880,240, 10, 10) ctx.fillStyle = cor[2489];ctx.fillRect(890,240, 10, 10) ctx.fillStyle = cor[2490];ctx.fillRect(900,240, 10, 10) ctx.fillStyle = cor[2491];ctx.fillRect(910,240, 10, 10) ctx.fillStyle = cor[2492];ctx.fillRect(920,240, 10, 10) ctx.fillStyle = cor[2493];ctx.fillRect(930,240, 10, 10) ctx.fillStyle = cor[2494];ctx.fillRect(940,240, 10, 10) ctx.fillStyle = cor[2495];ctx.fillRect(950,240, 10, 10) ctx.fillStyle = cor[2496];ctx.fillRect(960,240, 10, 10) ctx.fillStyle = cor[2497];ctx.fillRect(970,240, 10, 10) ctx.fillStyle = cor[2498];ctx.fillRect(980,240, 10, 10) ctx.fillStyle = cor[2499];ctx.fillRect(990,240, 10, 10) ctx.fillStyle = cor[2500];ctx.fillRect(0,250, 10, 10) ctx.fillStyle = cor[2501];ctx.fillRect(10,250, 10, 10) ctx.fillStyle = cor[2502];ctx.fillRect(20,250, 10, 10) ctx.fillStyle = cor[2503];ctx.fillRect(30,250, 10, 10) ctx.fillStyle = cor[2504];ctx.fillRect(40,250, 10, 10) ctx.fillStyle = cor[2505];ctx.fillRect(50,250, 10, 10) ctx.fillStyle = cor[2506];ctx.fillRect(60,250, 10, 10) ctx.fillStyle = cor[2507];ctx.fillRect(70,250, 10, 10) ctx.fillStyle = cor[2508];ctx.fillRect(80,250, 10, 10) ctx.fillStyle = cor[2509];ctx.fillRect(90,250, 10, 10) ctx.fillStyle = cor[2510];ctx.fillRect(100,250, 10, 10) ctx.fillStyle = cor[2511];ctx.fillRect(110,250, 10, 10) ctx.fillStyle = cor[2512];ctx.fillRect(120,250, 10, 10) ctx.fillStyle = cor[2513];ctx.fillRect(130,250, 10, 10) ctx.fillStyle = cor[2514];ctx.fillRect(140,250, 10, 10) ctx.fillStyle = cor[2515];ctx.fillRect(150,250, 10, 10) ctx.fillStyle = cor[2516];ctx.fillRect(160,250, 10, 10) ctx.fillStyle = cor[2517];ctx.fillRect(170,250, 10, 10) ctx.fillStyle = cor[2518];ctx.fillRect(180,250, 10, 10) ctx.fillStyle = cor[2519];ctx.fillRect(190,250, 10, 10) ctx.fillStyle = cor[2520];ctx.fillRect(200,250, 10, 10) ctx.fillStyle = cor[2521];ctx.fillRect(210,250, 10, 10) ctx.fillStyle = cor[2522];ctx.fillRect(220,250, 10, 10) ctx.fillStyle = cor[2523];ctx.fillRect(230,250, 10, 10) ctx.fillStyle = cor[2524];ctx.fillRect(240,250, 10, 10) ctx.fillStyle = cor[2525];ctx.fillRect(250,250, 10, 10) ctx.fillStyle = cor[2526];ctx.fillRect(260,250, 10, 10) ctx.fillStyle = cor[2527];ctx.fillRect(270,250, 10, 10) ctx.fillStyle = cor[2528];ctx.fillRect(280,250, 10, 10) ctx.fillStyle = cor[2529];ctx.fillRect(290,250, 10, 10) ctx.fillStyle = cor[2530];ctx.fillRect(300,250, 10, 10) ctx.fillStyle = cor[2531];ctx.fillRect(310,250, 10, 10) ctx.fillStyle = cor[2532];ctx.fillRect(320,250, 10, 10) ctx.fillStyle = cor[2533];ctx.fillRect(330,250, 10, 10) ctx.fillStyle = cor[2534];ctx.fillRect(340,250, 10, 10) ctx.fillStyle = cor[2535];ctx.fillRect(350,250, 10, 10) ctx.fillStyle = cor[2536];ctx.fillRect(360,250, 10, 10) ctx.fillStyle = cor[2537];ctx.fillRect(370,250, 10, 10) ctx.fillStyle = cor[2538];ctx.fillRect(380,250, 10, 10) ctx.fillStyle = cor[2539];ctx.fillRect(390,250, 10, 10) ctx.fillStyle = cor[2540];ctx.fillRect(400,250, 10, 10) ctx.fillStyle = cor[2541];ctx.fillRect(410,250, 10, 10) ctx.fillStyle = cor[2542];ctx.fillRect(420,250, 10, 10) ctx.fillStyle = cor[2543];ctx.fillRect(430,250, 10, 10) ctx.fillStyle = cor[2544];ctx.fillRect(440,250, 10, 10) ctx.fillStyle = cor[2545];ctx.fillRect(450,250, 10, 10) ctx.fillStyle = cor[2546];ctx.fillRect(460,250, 10, 10) ctx.fillStyle = cor[2547];ctx.fillRect(470,250, 10, 10) ctx.fillStyle = cor[2548];ctx.fillRect(480,250, 10, 10) ctx.fillStyle = cor[2549];ctx.fillRect(490,250, 10, 10) ctx.fillStyle = cor[2550];ctx.fillRect(500,250, 10, 10) ctx.fillStyle = cor[2551];ctx.fillRect(510,250, 10, 10) ctx.fillStyle = cor[2552];ctx.fillRect(520,250, 10, 10) ctx.fillStyle = cor[2553];ctx.fillRect(530,250, 10, 10) ctx.fillStyle = cor[2554];ctx.fillRect(540,250, 10, 10) ctx.fillStyle = cor[2555];ctx.fillRect(550,250, 10, 10) ctx.fillStyle = cor[2556];ctx.fillRect(560,250, 10, 10) ctx.fillStyle = cor[2557];ctx.fillRect(570,250, 10, 10) ctx.fillStyle = cor[2558];ctx.fillRect(580,250, 10, 10) ctx.fillStyle = cor[2559];ctx.fillRect(590,250, 10, 10) ctx.fillStyle = cor[2560];ctx.fillRect(600,250, 10, 10) ctx.fillStyle = cor[2561];ctx.fillRect(610,250, 10, 10) ctx.fillStyle = cor[2562];ctx.fillRect(620,250, 10, 10) ctx.fillStyle = cor[2563];ctx.fillRect(630,250, 10, 10) ctx.fillStyle = cor[2564];ctx.fillRect(640,250, 10, 10) ctx.fillStyle = cor[2565];ctx.fillRect(650,250, 10, 10) ctx.fillStyle = cor[2566];ctx.fillRect(660,250, 10, 10) ctx.fillStyle = cor[2567];ctx.fillRect(670,250, 10, 10) ctx.fillStyle = cor[2568];ctx.fillRect(680,250, 10, 10) ctx.fillStyle = cor[2569];ctx.fillRect(690,250, 10, 10) ctx.fillStyle = cor[2570];ctx.fillRect(700,250, 10, 10) ctx.fillStyle = cor[2571];ctx.fillRect(710,250, 10, 10) ctx.fillStyle = cor[2572];ctx.fillRect(720,250, 10, 10) ctx.fillStyle = cor[2573];ctx.fillRect(730,250, 10, 10) ctx.fillStyle = cor[2574];ctx.fillRect(740,250, 10, 10) ctx.fillStyle = cor[2575];ctx.fillRect(750,250, 10, 10) ctx.fillStyle = cor[2576];ctx.fillRect(760,250, 10, 10) ctx.fillStyle = cor[2577];ctx.fillRect(770,250, 10, 10) ctx.fillStyle = cor[2578];ctx.fillRect(780,250, 10, 10) ctx.fillStyle = cor[2579];ctx.fillRect(790,250, 10, 10) ctx.fillStyle = cor[2580];ctx.fillRect(800,250, 10, 10) ctx.fillStyle = cor[2581];ctx.fillRect(810,250, 10, 10) ctx.fillStyle = cor[2582];ctx.fillRect(820,250, 10, 10) ctx.fillStyle = cor[2583];ctx.fillRect(830,250, 10, 10) ctx.fillStyle = cor[2584];ctx.fillRect(840,250, 10, 10) ctx.fillStyle = cor[2585];ctx.fillRect(850,250, 10, 10) ctx.fillStyle = cor[2586];ctx.fillRect(860,250, 10, 10) ctx.fillStyle = cor[2587];ctx.fillRect(870,250, 10, 10) ctx.fillStyle = cor[2588];ctx.fillRect(880,250, 10, 10) ctx.fillStyle = cor[2589];ctx.fillRect(890,250, 10, 10) ctx.fillStyle = cor[2590];ctx.fillRect(900,250, 10, 10) ctx.fillStyle = cor[2591];ctx.fillRect(910,250, 10, 10) ctx.fillStyle = cor[2592];ctx.fillRect(920,250, 10, 10) ctx.fillStyle = cor[2593];ctx.fillRect(930,250, 10, 10) ctx.fillStyle = cor[2594];ctx.fillRect(940,250, 10, 10) ctx.fillStyle = cor[2595];ctx.fillRect(950,250, 10, 10) ctx.fillStyle = cor[2596];ctx.fillRect(960,250, 10, 10) ctx.fillStyle = cor[2597];ctx.fillRect(970,250, 10, 10) ctx.fillStyle = cor[2598];ctx.fillRect(980,250, 10, 10) ctx.fillStyle = cor[2599];ctx.fillRect(990,250, 10, 10) ctx.fillStyle = cor[2600];ctx.fillRect(0,260, 10, 10) ctx.fillStyle = cor[2601];ctx.fillRect(10,260, 10, 10) ctx.fillStyle = cor[2602];ctx.fillRect(20,260, 10, 10) ctx.fillStyle = cor[2603];ctx.fillRect(30,260, 10, 10) ctx.fillStyle = cor[2604];ctx.fillRect(40,260, 10, 10) ctx.fillStyle = cor[2605];ctx.fillRect(50,260, 10, 10) ctx.fillStyle = cor[2606];ctx.fillRect(60,260, 10, 10) ctx.fillStyle = cor[2607];ctx.fillRect(70,260, 10, 10) ctx.fillStyle = cor[2608];ctx.fillRect(80,260, 10, 10) ctx.fillStyle = cor[2609];ctx.fillRect(90,260, 10, 10) ctx.fillStyle = cor[2610];ctx.fillRect(100,260, 10, 10) ctx.fillStyle = cor[2611];ctx.fillRect(110,260, 10, 10) ctx.fillStyle = cor[2612];ctx.fillRect(120,260, 10, 10) ctx.fillStyle = cor[2613];ctx.fillRect(130,260, 10, 10) ctx.fillStyle = cor[2614];ctx.fillRect(140,260, 10, 10) ctx.fillStyle = cor[2615];ctx.fillRect(150,260, 10, 10) ctx.fillStyle = cor[2616];ctx.fillRect(160,260, 10, 10) ctx.fillStyle = cor[2617];ctx.fillRect(170,260, 10, 10) ctx.fillStyle = cor[2618];ctx.fillRect(180,260, 10, 10) ctx.fillStyle = cor[2619];ctx.fillRect(190,260, 10, 10) ctx.fillStyle = cor[2620];ctx.fillRect(200,260, 10, 10) ctx.fillStyle = cor[2621];ctx.fillRect(210,260, 10, 10) ctx.fillStyle = cor[2622];ctx.fillRect(220,260, 10, 10) ctx.fillStyle = cor[2623];ctx.fillRect(230,260, 10, 10) ctx.fillStyle = cor[2624];ctx.fillRect(240,260, 10, 10) ctx.fillStyle = cor[2625];ctx.fillRect(250,260, 10, 10) ctx.fillStyle = cor[2626];ctx.fillRect(260,260, 10, 10) ctx.fillStyle = cor[2627];ctx.fillRect(270,260, 10, 10) ctx.fillStyle = cor[2628];ctx.fillRect(280,260, 10, 10) ctx.fillStyle = cor[2629];ctx.fillRect(290,260, 10, 10) ctx.fillStyle = cor[2630];ctx.fillRect(300,260, 10, 10) ctx.fillStyle = cor[2631];ctx.fillRect(310,260, 10, 10) ctx.fillStyle = cor[2632];ctx.fillRect(320,260, 10, 10) ctx.fillStyle = cor[2633];ctx.fillRect(330,260, 10, 10) ctx.fillStyle = cor[2634];ctx.fillRect(340,260, 10, 10) ctx.fillStyle = cor[2635];ctx.fillRect(350,260, 10, 10) ctx.fillStyle = cor[2636];ctx.fillRect(360,260, 10, 10) ctx.fillStyle = cor[2637];ctx.fillRect(370,260, 10, 10) ctx.fillStyle = cor[2638];ctx.fillRect(380,260, 10, 10) ctx.fillStyle = cor[2639];ctx.fillRect(390,260, 10, 10) ctx.fillStyle = cor[2640];ctx.fillRect(400,260, 10, 10) ctx.fillStyle = cor[2641];ctx.fillRect(410,260, 10, 10) ctx.fillStyle = cor[2642];ctx.fillRect(420,260, 10, 10) ctx.fillStyle = cor[2643];ctx.fillRect(430,260, 10, 10) ctx.fillStyle = cor[2644];ctx.fillRect(440,260, 10, 10) ctx.fillStyle = cor[2645];ctx.fillRect(450,260, 10, 10) ctx.fillStyle = cor[2646];ctx.fillRect(460,260, 10, 10) ctx.fillStyle = cor[2647];ctx.fillRect(470,260, 10, 10) ctx.fillStyle = cor[2648];ctx.fillRect(480,260, 10, 10) ctx.fillStyle = cor[2649];ctx.fillRect(490,260, 10, 10) ctx.fillStyle = cor[2650];ctx.fillRect(500,260, 10, 10) ctx.fillStyle = cor[2651];ctx.fillRect(510,260, 10, 10) ctx.fillStyle = cor[2652];ctx.fillRect(520,260, 10, 10) ctx.fillStyle = cor[2653];ctx.fillRect(530,260, 10, 10) ctx.fillStyle = cor[2654];ctx.fillRect(540,260, 10, 10) ctx.fillStyle = cor[2655];ctx.fillRect(550,260, 10, 10) ctx.fillStyle = cor[2656];ctx.fillRect(560,260, 10, 10) ctx.fillStyle = cor[2657];ctx.fillRect(570,260, 10, 10) ctx.fillStyle = cor[2658];ctx.fillRect(580,260, 10, 10) ctx.fillStyle = cor[2659];ctx.fillRect(590,260, 10, 10) ctx.fillStyle = cor[2660];ctx.fillRect(600,260, 10, 10) ctx.fillStyle = cor[2661];ctx.fillRect(610,260, 10, 10) ctx.fillStyle = cor[2662];ctx.fillRect(620,260, 10, 10) ctx.fillStyle = cor[2663];ctx.fillRect(630,260, 10, 10) ctx.fillStyle = cor[2664];ctx.fillRect(640,260, 10, 10) ctx.fillStyle = cor[2665];ctx.fillRect(650,260, 10, 10) ctx.fillStyle = cor[2666];ctx.fillRect(660,260, 10, 10) ctx.fillStyle = cor[2667];ctx.fillRect(670,260, 10, 10) ctx.fillStyle = cor[2668];ctx.fillRect(680,260, 10, 10) ctx.fillStyle = cor[2669];ctx.fillRect(690,260, 10, 10) ctx.fillStyle = cor[2670];ctx.fillRect(700,260, 10, 10) ctx.fillStyle = cor[2671];ctx.fillRect(710,260, 10, 10) ctx.fillStyle = cor[2672];ctx.fillRect(720,260, 10, 10) ctx.fillStyle = cor[2673];ctx.fillRect(730,260, 10, 10) ctx.fillStyle = cor[2674];ctx.fillRect(740,260, 10, 10) ctx.fillStyle = cor[2675];ctx.fillRect(750,260, 10, 10) ctx.fillStyle = cor[2676];ctx.fillRect(760,260, 10, 10) ctx.fillStyle = cor[2677];ctx.fillRect(770,260, 10, 10) ctx.fillStyle = cor[2678];ctx.fillRect(780,260, 10, 10) ctx.fillStyle = cor[2679];ctx.fillRect(790,260, 10, 10) ctx.fillStyle = cor[2680];ctx.fillRect(800,260, 10, 10) ctx.fillStyle = cor[2681];ctx.fillRect(810,260, 10, 10) ctx.fillStyle = cor[2682];ctx.fillRect(820,260, 10, 10) ctx.fillStyle = cor[2683];ctx.fillRect(830,260, 10, 10) ctx.fillStyle = cor[2684];ctx.fillRect(840,260, 10, 10) ctx.fillStyle = cor[2685];ctx.fillRect(850,260, 10, 10) ctx.fillStyle = cor[2686];ctx.fillRect(860,260, 10, 10) ctx.fillStyle = cor[2687];ctx.fillRect(870,260, 10, 10) ctx.fillStyle = cor[2688];ctx.fillRect(880,260, 10, 10) ctx.fillStyle = cor[2689];ctx.fillRect(890,260, 10, 10) ctx.fillStyle = cor[2690];ctx.fillRect(900,260, 10, 10) ctx.fillStyle = cor[2691];ctx.fillRect(910,260, 10, 10) ctx.fillStyle = cor[2692];ctx.fillRect(920,260, 10, 10) ctx.fillStyle = cor[2693];ctx.fillRect(930,260, 10, 10) ctx.fillStyle = cor[2694];ctx.fillRect(940,260, 10, 10) ctx.fillStyle = cor[2695];ctx.fillRect(950,260, 10, 10) ctx.fillStyle = cor[2696];ctx.fillRect(960,260, 10, 10) ctx.fillStyle = cor[2697];ctx.fillRect(970,260, 10, 10) ctx.fillStyle = cor[2698];ctx.fillRect(980,260, 10, 10) ctx.fillStyle = cor[2699];ctx.fillRect(990,260, 10, 10) ctx.fillStyle = cor[2700];ctx.fillRect(0,270, 10, 10) ctx.fillStyle = cor[2701];ctx.fillRect(10,270, 10, 10) ctx.fillStyle = cor[2702];ctx.fillRect(20,270, 10, 10) ctx.fillStyle = cor[2703];ctx.fillRect(30,270, 10, 10) ctx.fillStyle = cor[2704];ctx.fillRect(40,270, 10, 10) ctx.fillStyle = cor[2705];ctx.fillRect(50,270, 10, 10) ctx.fillStyle = cor[2706];ctx.fillRect(60,270, 10, 10) ctx.fillStyle = cor[2707];ctx.fillRect(70,270, 10, 10) ctx.fillStyle = cor[2708];ctx.fillRect(80,270, 10, 10) ctx.fillStyle = cor[2709];ctx.fillRect(90,270, 10, 10) ctx.fillStyle = cor[2710];ctx.fillRect(100,270, 10, 10) ctx.fillStyle = cor[2711];ctx.fillRect(110,270, 10, 10) ctx.fillStyle = cor[2712];ctx.fillRect(120,270, 10, 10) ctx.fillStyle = cor[2713];ctx.fillRect(130,270, 10, 10) ctx.fillStyle = cor[2714];ctx.fillRect(140,270, 10, 10) ctx.fillStyle = cor[2715];ctx.fillRect(150,270, 10, 10) ctx.fillStyle = cor[2716];ctx.fillRect(160,270, 10, 10) ctx.fillStyle = cor[2717];ctx.fillRect(170,270, 10, 10) ctx.fillStyle = cor[2718];ctx.fillRect(180,270, 10, 10) ctx.fillStyle = cor[2719];ctx.fillRect(190,270, 10, 10) ctx.fillStyle = cor[2720];ctx.fillRect(200,270, 10, 10) ctx.fillStyle = cor[2721];ctx.fillRect(210,270, 10, 10) ctx.fillStyle = cor[2722];ctx.fillRect(220,270, 10, 10) ctx.fillStyle = cor[2723];ctx.fillRect(230,270, 10, 10) ctx.fillStyle = cor[2724];ctx.fillRect(240,270, 10, 10) ctx.fillStyle = cor[2725];ctx.fillRect(250,270, 10, 10) ctx.fillStyle = cor[2726];ctx.fillRect(260,270, 10, 10) ctx.fillStyle = cor[2727];ctx.fillRect(270,270, 10, 10) ctx.fillStyle = cor[2728];ctx.fillRect(280,270, 10, 10) ctx.fillStyle = cor[2729];ctx.fillRect(290,270, 10, 10) ctx.fillStyle = cor[2730];ctx.fillRect(300,270, 10, 10) ctx.fillStyle = cor[2731];ctx.fillRect(310,270, 10, 10) ctx.fillStyle = cor[2732];ctx.fillRect(320,270, 10, 10) ctx.fillStyle = cor[2733];ctx.fillRect(330,270, 10, 10) ctx.fillStyle = cor[2734];ctx.fillRect(340,270, 10, 10) ctx.fillStyle = cor[2735];ctx.fillRect(350,270, 10, 10) ctx.fillStyle = cor[2736];ctx.fillRect(360,270, 10, 10) ctx.fillStyle = cor[2737];ctx.fillRect(370,270, 10, 10) ctx.fillStyle = cor[2738];ctx.fillRect(380,270, 10, 10) ctx.fillStyle = cor[2739];ctx.fillRect(390,270, 10, 10) ctx.fillStyle = cor[2740];ctx.fillRect(400,270, 10, 10) ctx.fillStyle = cor[2741];ctx.fillRect(410,270, 10, 10) ctx.fillStyle = cor[2742];ctx.fillRect(420,270, 10, 10) ctx.fillStyle = cor[2743];ctx.fillRect(430,270, 10, 10) ctx.fillStyle = cor[2744];ctx.fillRect(440,270, 10, 10) ctx.fillStyle = cor[2745];ctx.fillRect(450,270, 10, 10) ctx.fillStyle = cor[2746];ctx.fillRect(460,270, 10, 10) ctx.fillStyle = cor[2747];ctx.fillRect(470,270, 10, 10) ctx.fillStyle = cor[2748];ctx.fillRect(480,270, 10, 10) ctx.fillStyle = cor[2749];ctx.fillRect(490,270, 10, 10) ctx.fillStyle = cor[2750];ctx.fillRect(500,270, 10, 10) ctx.fillStyle = cor[2751];ctx.fillRect(510,270, 10, 10) ctx.fillStyle = cor[2752];ctx.fillRect(520,270, 10, 10) ctx.fillStyle = cor[2753];ctx.fillRect(530,270, 10, 10) ctx.fillStyle = cor[2754];ctx.fillRect(540,270, 10, 10) ctx.fillStyle = cor[2755];ctx.fillRect(550,270, 10, 10) ctx.fillStyle = cor[2756];ctx.fillRect(560,270, 10, 10) ctx.fillStyle = cor[2757];ctx.fillRect(570,270, 10, 10) ctx.fillStyle = cor[2758];ctx.fillRect(580,270, 10, 10) ctx.fillStyle = cor[2759];ctx.fillRect(590,270, 10, 10) ctx.fillStyle = cor[2760];ctx.fillRect(600,270, 10, 10) ctx.fillStyle = cor[2761];ctx.fillRect(610,270, 10, 10) ctx.fillStyle = cor[2762];ctx.fillRect(620,270, 10, 10) ctx.fillStyle = cor[2763];ctx.fillRect(630,270, 10, 10) ctx.fillStyle = cor[2764];ctx.fillRect(640,270, 10, 10) ctx.fillStyle = cor[2765];ctx.fillRect(650,270, 10, 10) ctx.fillStyle = cor[2766];ctx.fillRect(660,270, 10, 10) ctx.fillStyle = cor[2767];ctx.fillRect(670,270, 10, 10) ctx.fillStyle = cor[2768];ctx.fillRect(680,270, 10, 10) ctx.fillStyle = cor[2769];ctx.fillRect(690,270, 10, 10) ctx.fillStyle = cor[2770];ctx.fillRect(700,270, 10, 10) ctx.fillStyle = cor[2771];ctx.fillRect(710,270, 10, 10) ctx.fillStyle = cor[2772];ctx.fillRect(720,270, 10, 10) ctx.fillStyle = cor[2773];ctx.fillRect(730,270, 10, 10) ctx.fillStyle = cor[2774];ctx.fillRect(740,270, 10, 10) ctx.fillStyle = cor[2775];ctx.fillRect(750,270, 10, 10) ctx.fillStyle = cor[2776];ctx.fillRect(760,270, 10, 10) ctx.fillStyle = cor[2777];ctx.fillRect(770,270, 10, 10) ctx.fillStyle = cor[2778];ctx.fillRect(780,270, 10, 10) ctx.fillStyle = cor[2779];ctx.fillRect(790,270, 10, 10) ctx.fillStyle = cor[2780];ctx.fillRect(800,270, 10, 10) ctx.fillStyle = cor[2781];ctx.fillRect(810,270, 10, 10) ctx.fillStyle = cor[2782];ctx.fillRect(820,270, 10, 10) ctx.fillStyle = cor[2783];ctx.fillRect(830,270, 10, 10) ctx.fillStyle = cor[2784];ctx.fillRect(840,270, 10, 10) ctx.fillStyle = cor[2785];ctx.fillRect(850,270, 10, 10) ctx.fillStyle = cor[2786];ctx.fillRect(860,270, 10, 10) ctx.fillStyle = cor[2787];ctx.fillRect(870,270, 10, 10) ctx.fillStyle = cor[2788];ctx.fillRect(880,270, 10, 10) ctx.fillStyle = cor[2789];ctx.fillRect(890,270, 10, 10) ctx.fillStyle = cor[2790];ctx.fillRect(900,270, 10, 10) ctx.fillStyle = cor[2791];ctx.fillRect(910,270, 10, 10) ctx.fillStyle = cor[2792];ctx.fillRect(920,270, 10, 10) ctx.fillStyle = cor[2793];ctx.fillRect(930,270, 10, 10) ctx.fillStyle = cor[2794];ctx.fillRect(940,270, 10, 10) ctx.fillStyle = cor[2795];ctx.fillRect(950,270, 10, 10) ctx.fillStyle = cor[2796];ctx.fillRect(960,270, 10, 10) ctx.fillStyle = cor[2797];ctx.fillRect(970,270, 10, 10) ctx.fillStyle = cor[2798];ctx.fillRect(980,270, 10, 10) ctx.fillStyle = cor[2799];ctx.fillRect(990,270, 10, 10) ctx.fillStyle = cor[2800];ctx.fillRect(0,280, 10, 10) ctx.fillStyle = cor[2801];ctx.fillRect(10,280, 10, 10) ctx.fillStyle = cor[2802];ctx.fillRect(20,280, 10, 10) ctx.fillStyle = cor[2803];ctx.fillRect(30,280, 10, 10) ctx.fillStyle = cor[2804];ctx.fillRect(40,280, 10, 10) ctx.fillStyle = cor[2805];ctx.fillRect(50,280, 10, 10) ctx.fillStyle = cor[2806];ctx.fillRect(60,280, 10, 10) ctx.fillStyle = cor[2807];ctx.fillRect(70,280, 10, 10) ctx.fillStyle = cor[2808];ctx.fillRect(80,280, 10, 10) ctx.fillStyle = cor[2809];ctx.fillRect(90,280, 10, 10) ctx.fillStyle = cor[2810];ctx.fillRect(100,280, 10, 10) ctx.fillStyle = cor[2811];ctx.fillRect(110,280, 10, 10) ctx.fillStyle = cor[2812];ctx.fillRect(120,280, 10, 10) ctx.fillStyle = cor[2813];ctx.fillRect(130,280, 10, 10) ctx.fillStyle = cor[2814];ctx.fillRect(140,280, 10, 10) ctx.fillStyle = cor[2815];ctx.fillRect(150,280, 10, 10) ctx.fillStyle = cor[2816];ctx.fillRect(160,280, 10, 10) ctx.fillStyle = cor[2817];ctx.fillRect(170,280, 10, 10) ctx.fillStyle = cor[2818];ctx.fillRect(180,280, 10, 10) ctx.fillStyle = cor[2819];ctx.fillRect(190,280, 10, 10) ctx.fillStyle = cor[2820];ctx.fillRect(200,280, 10, 10) ctx.fillStyle = cor[2821];ctx.fillRect(210,280, 10, 10) ctx.fillStyle = cor[2822];ctx.fillRect(220,280, 10, 10) ctx.fillStyle = cor[2823];ctx.fillRect(230,280, 10, 10) ctx.fillStyle = cor[2824];ctx.fillRect(240,280, 10, 10) ctx.fillStyle = cor[2825];ctx.fillRect(250,280, 10, 10) ctx.fillStyle = cor[2826];ctx.fillRect(260,280, 10, 10) ctx.fillStyle = cor[2827];ctx.fillRect(270,280, 10, 10) ctx.fillStyle = cor[2828];ctx.fillRect(280,280, 10, 10) ctx.fillStyle = cor[2829];ctx.fillRect(290,280, 10, 10) ctx.fillStyle = cor[2830];ctx.fillRect(300,280, 10, 10) ctx.fillStyle = cor[2831];ctx.fillRect(310,280, 10, 10) ctx.fillStyle = cor[2832];ctx.fillRect(320,280, 10, 10) ctx.fillStyle = cor[2833];ctx.fillRect(330,280, 10, 10) ctx.fillStyle = cor[2834];ctx.fillRect(340,280, 10, 10) ctx.fillStyle = cor[2835];ctx.fillRect(350,280, 10, 10) ctx.fillStyle = cor[2836];ctx.fillRect(360,280, 10, 10) ctx.fillStyle = cor[2837];ctx.fillRect(370,280, 10, 10) ctx.fillStyle = cor[2838];ctx.fillRect(380,280, 10, 10) ctx.fillStyle = cor[2839];ctx.fillRect(390,280, 10, 10) ctx.fillStyle = cor[2840];ctx.fillRect(400,280, 10, 10) ctx.fillStyle = cor[2841];ctx.fillRect(410,280, 10, 10) ctx.fillStyle = cor[2842];ctx.fillRect(420,280, 10, 10) ctx.fillStyle = cor[2843];ctx.fillRect(430,280, 10, 10) ctx.fillStyle = cor[2844];ctx.fillRect(440,280, 10, 10) ctx.fillStyle = cor[2845];ctx.fillRect(450,280, 10, 10) ctx.fillStyle = cor[2846];ctx.fillRect(460,280, 10, 10) ctx.fillStyle = cor[2847];ctx.fillRect(470,280, 10, 10) ctx.fillStyle = cor[2848];ctx.fillRect(480,280, 10, 10) ctx.fillStyle = cor[2849];ctx.fillRect(490,280, 10, 10) ctx.fillStyle = cor[2850];ctx.fillRect(500,280, 10, 10) ctx.fillStyle = cor[2851];ctx.fillRect(510,280, 10, 10) ctx.fillStyle = cor[2852];ctx.fillRect(520,280, 10, 10) ctx.fillStyle = cor[2853];ctx.fillRect(530,280, 10, 10) ctx.fillStyle = cor[2854];ctx.fillRect(540,280, 10, 10) ctx.fillStyle = cor[2855];ctx.fillRect(550,280, 10, 10) ctx.fillStyle = cor[2856];ctx.fillRect(560,280, 10, 10) ctx.fillStyle = cor[2857];ctx.fillRect(570,280, 10, 10) ctx.fillStyle = cor[2858];ctx.fillRect(580,280, 10, 10) ctx.fillStyle = cor[2859];ctx.fillRect(590,280, 10, 10) ctx.fillStyle = cor[2860];ctx.fillRect(600,280, 10, 10) ctx.fillStyle = cor[2861];ctx.fillRect(610,280, 10, 10) ctx.fillStyle = cor[2862];ctx.fillRect(620,280, 10, 10) ctx.fillStyle = cor[2863];ctx.fillRect(630,280, 10, 10) ctx.fillStyle = cor[2864];ctx.fillRect(640,280, 10, 10) ctx.fillStyle = cor[2865];ctx.fillRect(650,280, 10, 10) ctx.fillStyle = cor[2866];ctx.fillRect(660,280, 10, 10) ctx.fillStyle = cor[2867];ctx.fillRect(670,280, 10, 10) ctx.fillStyle = cor[2868];ctx.fillRect(680,280, 10, 10) ctx.fillStyle = cor[2869];ctx.fillRect(690,280, 10, 10) ctx.fillStyle = cor[2870];ctx.fillRect(700,280, 10, 10) ctx.fillStyle = cor[2871];ctx.fillRect(710,280, 10, 10) ctx.fillStyle = cor[2872];ctx.fillRect(720,280, 10, 10) ctx.fillStyle = cor[2873];ctx.fillRect(730,280, 10, 10) ctx.fillStyle = cor[2874];ctx.fillRect(740,280, 10, 10) ctx.fillStyle = cor[2875];ctx.fillRect(750,280, 10, 10) ctx.fillStyle = cor[2876];ctx.fillRect(760,280, 10, 10) ctx.fillStyle = cor[2877];ctx.fillRect(770,280, 10, 10) ctx.fillStyle = cor[2878];ctx.fillRect(780,280, 10, 10) ctx.fillStyle = cor[2879];ctx.fillRect(790,280, 10, 10) ctx.fillStyle = cor[2880];ctx.fillRect(800,280, 10, 10) ctx.fillStyle = cor[2881];ctx.fillRect(810,280, 10, 10) ctx.fillStyle = cor[2882];ctx.fillRect(820,280, 10, 10) ctx.fillStyle = cor[2883];ctx.fillRect(830,280, 10, 10) ctx.fillStyle = cor[2884];ctx.fillRect(840,280, 10, 10) ctx.fillStyle = cor[2885];ctx.fillRect(850,280, 10, 10) ctx.fillStyle = cor[2886];ctx.fillRect(860,280, 10, 10) ctx.fillStyle = cor[2887];ctx.fillRect(870,280, 10, 10) ctx.fillStyle = cor[2888];ctx.fillRect(880,280, 10, 10) ctx.fillStyle = cor[2889];ctx.fillRect(890,280, 10, 10) ctx.fillStyle = cor[2890];ctx.fillRect(900,280, 10, 10) ctx.fillStyle = cor[2891];ctx.fillRect(910,280, 10, 10) ctx.fillStyle = cor[2892];ctx.fillRect(920,280, 10, 10) ctx.fillStyle = cor[2893];ctx.fillRect(930,280, 10, 10) ctx.fillStyle = cor[2894];ctx.fillRect(940,280, 10, 10) ctx.fillStyle = cor[2895];ctx.fillRect(950,280, 10, 10) ctx.fillStyle = cor[2896];ctx.fillRect(960,280, 10, 10) ctx.fillStyle = cor[2897];ctx.fillRect(970,280, 10, 10) ctx.fillStyle = cor[2898];ctx.fillRect(980,280, 10, 10) ctx.fillStyle = cor[2899];ctx.fillRect(990,280, 10, 10) ctx.fillStyle = cor[2900];ctx.fillRect(0,290, 10, 10) ctx.fillStyle = cor[2901];ctx.fillRect(10,290, 10, 10) ctx.fillStyle = cor[2902];ctx.fillRect(20,290, 10, 10) ctx.fillStyle = cor[2903];ctx.fillRect(30,290, 10, 10) ctx.fillStyle = cor[2904];ctx.fillRect(40,290, 10, 10) ctx.fillStyle = cor[2905];ctx.fillRect(50,290, 10, 10) ctx.fillStyle = cor[2906];ctx.fillRect(60,290, 10, 10) ctx.fillStyle = cor[2907];ctx.fillRect(70,290, 10, 10) ctx.fillStyle = cor[2908];ctx.fillRect(80,290, 10, 10) ctx.fillStyle = cor[2909];ctx.fillRect(90,290, 10, 10) ctx.fillStyle = cor[2910];ctx.fillRect(100,290, 10, 10) ctx.fillStyle = cor[2911];ctx.fillRect(110,290, 10, 10) ctx.fillStyle = cor[2912];ctx.fillRect(120,290, 10, 10) ctx.fillStyle = cor[2913];ctx.fillRect(130,290, 10, 10) ctx.fillStyle = cor[2914];ctx.fillRect(140,290, 10, 10) ctx.fillStyle = cor[2915];ctx.fillRect(150,290, 10, 10) ctx.fillStyle = cor[2916];ctx.fillRect(160,290, 10, 10) ctx.fillStyle = cor[2917];ctx.fillRect(170,290, 10, 10) ctx.fillStyle = cor[2918];ctx.fillRect(180,290, 10, 10) ctx.fillStyle = cor[2919];ctx.fillRect(190,290, 10, 10) ctx.fillStyle = cor[2920];ctx.fillRect(200,290, 10, 10) ctx.fillStyle = cor[2921];ctx.fillRect(210,290, 10, 10) ctx.fillStyle = cor[2922];ctx.fillRect(220,290, 10, 10) ctx.fillStyle = cor[2923];ctx.fillRect(230,290, 10, 10) ctx.fillStyle = cor[2924];ctx.fillRect(240,290, 10, 10) ctx.fillStyle = cor[2925];ctx.fillRect(250,290, 10, 10) ctx.fillStyle = cor[2926];ctx.fillRect(260,290, 10, 10) ctx.fillStyle = cor[2927];ctx.fillRect(270,290, 10, 10) ctx.fillStyle = cor[2928];ctx.fillRect(280,290, 10, 10) ctx.fillStyle = cor[2929];ctx.fillRect(290,290, 10, 10) ctx.fillStyle = cor[2930];ctx.fillRect(300,290, 10, 10) ctx.fillStyle = cor[2931];ctx.fillRect(310,290, 10, 10) ctx.fillStyle = cor[2932];ctx.fillRect(320,290, 10, 10) ctx.fillStyle = cor[2933];ctx.fillRect(330,290, 10, 10) ctx.fillStyle = cor[2934];ctx.fillRect(340,290, 10, 10) ctx.fillStyle = cor[2935];ctx.fillRect(350,290, 10, 10) ctx.fillStyle = cor[2936];ctx.fillRect(360,290, 10, 10) ctx.fillStyle = cor[2937];ctx.fillRect(370,290, 10, 10) ctx.fillStyle = cor[2938];ctx.fillRect(380,290, 10, 10) ctx.fillStyle = cor[2939];ctx.fillRect(390,290, 10, 10) ctx.fillStyle = cor[2940];ctx.fillRect(400,290, 10, 10) ctx.fillStyle = cor[2941];ctx.fillRect(410,290, 10, 10) ctx.fillStyle = cor[2942];ctx.fillRect(420,290, 10, 10) ctx.fillStyle = cor[2943];ctx.fillRect(430,290, 10, 10) ctx.fillStyle = cor[2944];ctx.fillRect(440,290, 10, 10) ctx.fillStyle = cor[2945];ctx.fillRect(450,290, 10, 10) ctx.fillStyle = cor[2946];ctx.fillRect(460,290, 10, 10) ctx.fillStyle = cor[2947];ctx.fillRect(470,290, 10, 10) ctx.fillStyle = cor[2948];ctx.fillRect(480,290, 10, 10) ctx.fillStyle = cor[2949];ctx.fillRect(490,290, 10, 10) ctx.fillStyle = cor[2950];ctx.fillRect(500,290, 10, 10) ctx.fillStyle = cor[2951];ctx.fillRect(510,290, 10, 10) ctx.fillStyle = cor[2952];ctx.fillRect(520,290, 10, 10) ctx.fillStyle = cor[2953];ctx.fillRect(530,290, 10, 10) ctx.fillStyle = cor[2954];ctx.fillRect(540,290, 10, 10) ctx.fillStyle = cor[2955];ctx.fillRect(550,290, 10, 10) ctx.fillStyle = cor[2956];ctx.fillRect(560,290, 10, 10) ctx.fillStyle = cor[2957];ctx.fillRect(570,290, 10, 10) ctx.fillStyle = cor[2958];ctx.fillRect(580,290, 10, 10) ctx.fillStyle = cor[2959];ctx.fillRect(590,290, 10, 10) ctx.fillStyle = cor[2960];ctx.fillRect(600,290, 10, 10) ctx.fillStyle = cor[2961];ctx.fillRect(610,290, 10, 10) ctx.fillStyle = cor[2962];ctx.fillRect(620,290, 10, 10) ctx.fillStyle = cor[2963];ctx.fillRect(630,290, 10, 10) ctx.fillStyle = cor[2964];ctx.fillRect(640,290, 10, 10) ctx.fillStyle = cor[2965];ctx.fillRect(650,290, 10, 10) ctx.fillStyle = cor[2966];ctx.fillRect(660,290, 10, 10) ctx.fillStyle = cor[2967];ctx.fillRect(670,290, 10, 10) ctx.fillStyle = cor[2968];ctx.fillRect(680,290, 10, 10) ctx.fillStyle = cor[2969];ctx.fillRect(690,290, 10, 10) ctx.fillStyle = cor[2970];ctx.fillRect(700,290, 10, 10) ctx.fillStyle = cor[2971];ctx.fillRect(710,290, 10, 10) ctx.fillStyle = cor[2972];ctx.fillRect(720,290, 10, 10) ctx.fillStyle = cor[2973];ctx.fillRect(730,290, 10, 10) ctx.fillStyle = cor[2974];ctx.fillRect(740,290, 10, 10) ctx.fillStyle = cor[2975];ctx.fillRect(750,290, 10, 10) ctx.fillStyle = cor[2976];ctx.fillRect(760,290, 10, 10) ctx.fillStyle = cor[2977];ctx.fillRect(770,290, 10, 10) ctx.fillStyle = cor[2978];ctx.fillRect(780,290, 10, 10) ctx.fillStyle = cor[2979];ctx.fillRect(790,290, 10, 10) ctx.fillStyle = cor[2980];ctx.fillRect(800,290, 10, 10) ctx.fillStyle = cor[2981];ctx.fillRect(810,290, 10, 10) ctx.fillStyle = cor[2982];ctx.fillRect(820,290, 10, 10) ctx.fillStyle = cor[2983];ctx.fillRect(830,290, 10, 10) ctx.fillStyle = cor[2984];ctx.fillRect(840,290, 10, 10) ctx.fillStyle = cor[2985];ctx.fillRect(850,290, 10, 10) ctx.fillStyle = cor[2986];ctx.fillRect(860,290, 10, 10) ctx.fillStyle = cor[2987];ctx.fillRect(870,290, 10, 10) ctx.fillStyle = cor[2988];ctx.fillRect(880,290, 10, 10) ctx.fillStyle = cor[2989];ctx.fillRect(890,290, 10, 10) ctx.fillStyle = cor[2990];ctx.fillRect(900,290, 10, 10) ctx.fillStyle = cor[2991];ctx.fillRect(910,290, 10, 10) ctx.fillStyle = cor[2992];ctx.fillRect(920,290, 10, 10) ctx.fillStyle = cor[2993];ctx.fillRect(930,290, 10, 10) ctx.fillStyle = cor[2994];ctx.fillRect(940,290, 10, 10) ctx.fillStyle = cor[2995];ctx.fillRect(950,290, 10, 10) ctx.fillStyle = cor[2996];ctx.fillRect(960,290, 10, 10) ctx.fillStyle = cor[2997];ctx.fillRect(970,290, 10, 10) ctx.fillStyle = cor[2998];ctx.fillRect(980,290, 10, 10) ctx.fillStyle = cor[2999];ctx.fillRect(990,290, 10, 10) ctx.fillStyle = cor[3000];ctx.fillRect(0,300, 10, 10) ctx.fillStyle = cor[3001];ctx.fillRect(10,300, 10, 10) ctx.fillStyle = cor[3002];ctx.fillRect(20,300, 10, 10) ctx.fillStyle = cor[3003];ctx.fillRect(30,300, 10, 10) ctx.fillStyle = cor[3004];ctx.fillRect(40,300, 10, 10) ctx.fillStyle = cor[3005];ctx.fillRect(50,300, 10, 10) ctx.fillStyle = cor[3006];ctx.fillRect(60,300, 10, 10) ctx.fillStyle = cor[3007];ctx.fillRect(70,300, 10, 10) ctx.fillStyle = cor[3008];ctx.fillRect(80,300, 10, 10) ctx.fillStyle = cor[3009];ctx.fillRect(90,300, 10, 10) ctx.fillStyle = cor[3010];ctx.fillRect(100,300, 10, 10) ctx.fillStyle = cor[3011];ctx.fillRect(110,300, 10, 10) ctx.fillStyle = cor[3012];ctx.fillRect(120,300, 10, 10) ctx.fillStyle = cor[3013];ctx.fillRect(130,300, 10, 10) ctx.fillStyle = cor[3014];ctx.fillRect(140,300, 10, 10) ctx.fillStyle = cor[3015];ctx.fillRect(150,300, 10, 10) ctx.fillStyle = cor[3016];ctx.fillRect(160,300, 10, 10) ctx.fillStyle = cor[3017];ctx.fillRect(170,300, 10, 10) ctx.fillStyle = cor[3018];ctx.fillRect(180,300, 10, 10) ctx.fillStyle = cor[3019];ctx.fillRect(190,300, 10, 10) ctx.fillStyle = cor[3020];ctx.fillRect(200,300, 10, 10) ctx.fillStyle = cor[3021];ctx.fillRect(210,300, 10, 10) ctx.fillStyle = cor[3022];ctx.fillRect(220,300, 10, 10) ctx.fillStyle = cor[3023];ctx.fillRect(230,300, 10, 10) ctx.fillStyle = cor[3024];ctx.fillRect(240,300, 10, 10) ctx.fillStyle = cor[3025];ctx.fillRect(250,300, 10, 10) ctx.fillStyle = cor[3026];ctx.fillRect(260,300, 10, 10) ctx.fillStyle = cor[3027];ctx.fillRect(270,300, 10, 10) ctx.fillStyle = cor[3028];ctx.fillRect(280,300, 10, 10) ctx.fillStyle = cor[3029];ctx.fillRect(290,300, 10, 10) ctx.fillStyle = cor[3030];ctx.fillRect(300,300, 10, 10) ctx.fillStyle = cor[3031];ctx.fillRect(310,300, 10, 10) ctx.fillStyle = cor[3032];ctx.fillRect(320,300, 10, 10) ctx.fillStyle = cor[3033];ctx.fillRect(330,300, 10, 10) ctx.fillStyle = cor[3034];ctx.fillRect(340,300, 10, 10) ctx.fillStyle = cor[3035];ctx.fillRect(350,300, 10, 10) ctx.fillStyle = cor[3036];ctx.fillRect(360,300, 10, 10) ctx.fillStyle = cor[3037];ctx.fillRect(370,300, 10, 10) ctx.fillStyle = cor[3038];ctx.fillRect(380,300, 10, 10) ctx.fillStyle = cor[3039];ctx.fillRect(390,300, 10, 10) ctx.fillStyle = cor[3040];ctx.fillRect(400,300, 10, 10) ctx.fillStyle = cor[3041];ctx.fillRect(410,300, 10, 10) ctx.fillStyle = cor[3042];ctx.fillRect(420,300, 10, 10) ctx.fillStyle = cor[3043];ctx.fillRect(430,300, 10, 10) ctx.fillStyle = cor[3044];ctx.fillRect(440,300, 10, 10) ctx.fillStyle = cor[3045];ctx.fillRect(450,300, 10, 10) ctx.fillStyle = cor[3046];ctx.fillRect(460,300, 10, 10) ctx.fillStyle = cor[3047];ctx.fillRect(470,300, 10, 10) ctx.fillStyle = cor[3048];ctx.fillRect(480,300, 10, 10) ctx.fillStyle = cor[3049];ctx.fillRect(490,300, 10, 10) ctx.fillStyle = cor[3050];ctx.fillRect(500,300, 10, 10) ctx.fillStyle = cor[3051];ctx.fillRect(510,300, 10, 10) ctx.fillStyle = cor[3052];ctx.fillRect(520,300, 10, 10) ctx.fillStyle = cor[3053];ctx.fillRect(530,300, 10, 10) ctx.fillStyle = cor[3054];ctx.fillRect(540,300, 10, 10) ctx.fillStyle = cor[3055];ctx.fillRect(550,300, 10, 10) ctx.fillStyle = cor[3056];ctx.fillRect(560,300, 10, 10) ctx.fillStyle = cor[3057];ctx.fillRect(570,300, 10, 10) ctx.fillStyle = cor[3058];ctx.fillRect(580,300, 10, 10) ctx.fillStyle = cor[3059];ctx.fillRect(590,300, 10, 10) ctx.fillStyle = cor[3060];ctx.fillRect(600,300, 10, 10) ctx.fillStyle = cor[3061];ctx.fillRect(610,300, 10, 10) ctx.fillStyle = cor[3062];ctx.fillRect(620,300, 10, 10) ctx.fillStyle = cor[3063];ctx.fillRect(630,300, 10, 10) ctx.fillStyle = cor[3064];ctx.fillRect(640,300, 10, 10) ctx.fillStyle = cor[3065];ctx.fillRect(650,300, 10, 10) ctx.fillStyle = cor[3066];ctx.fillRect(660,300, 10, 10) ctx.fillStyle = cor[3067];ctx.fillRect(670,300, 10, 10) ctx.fillStyle = cor[3068];ctx.fillRect(680,300, 10, 10) ctx.fillStyle = cor[3069];ctx.fillRect(690,300, 10, 10) ctx.fillStyle = cor[3070];ctx.fillRect(700,300, 10, 10) ctx.fillStyle = cor[3071];ctx.fillRect(710,300, 10, 10) ctx.fillStyle = cor[3072];ctx.fillRect(720,300, 10, 10) ctx.fillStyle = cor[3073];ctx.fillRect(730,300, 10, 10) ctx.fillStyle = cor[3074];ctx.fillRect(740,300, 10, 10) ctx.fillStyle = cor[3075];ctx.fillRect(750,300, 10, 10) ctx.fillStyle = cor[3076];ctx.fillRect(760,300, 10, 10) ctx.fillStyle = cor[3077];ctx.fillRect(770,300, 10, 10) ctx.fillStyle = cor[3078];ctx.fillRect(780,300, 10, 10) ctx.fillStyle = cor[3079];ctx.fillRect(790,300, 10, 10) ctx.fillStyle = cor[3080];ctx.fillRect(800,300, 10, 10) ctx.fillStyle = cor[3081];ctx.fillRect(810,300, 10, 10) ctx.fillStyle = cor[3082];ctx.fillRect(820,300, 10, 10) ctx.fillStyle = cor[3083];ctx.fillRect(830,300, 10, 10) ctx.fillStyle = cor[3084];ctx.fillRect(840,300, 10, 10) ctx.fillStyle = cor[3085];ctx.fillRect(850,300, 10, 10) ctx.fillStyle = cor[3086];ctx.fillRect(860,300, 10, 10) ctx.fillStyle = cor[3087];ctx.fillRect(870,300, 10, 10) ctx.fillStyle = cor[3088];ctx.fillRect(880,300, 10, 10) ctx.fillStyle = cor[3089];ctx.fillRect(890,300, 10, 10) ctx.fillStyle = cor[3090];ctx.fillRect(900,300, 10, 10) ctx.fillStyle = cor[3091];ctx.fillRect(910,300, 10, 10) ctx.fillStyle = cor[3092];ctx.fillRect(920,300, 10, 10) ctx.fillStyle = cor[3093];ctx.fillRect(930,300, 10, 10) ctx.fillStyle = cor[3094];ctx.fillRect(940,300, 10, 10) ctx.fillStyle = cor[3095];ctx.fillRect(950,300, 10, 10) ctx.fillStyle = cor[3096];ctx.fillRect(960,300, 10, 10) ctx.fillStyle = cor[3097];ctx.fillRect(970,300, 10, 10) ctx.fillStyle = cor[3098];ctx.fillRect(980,300, 10, 10) ctx.fillStyle = cor[3099];ctx.fillRect(990,300, 10, 10) ctx.fillStyle = cor[3100];ctx.fillRect(0,310, 10, 10) ctx.fillStyle = cor[3101];ctx.fillRect(10,310, 10, 10) ctx.fillStyle = cor[3102];ctx.fillRect(20,310, 10, 10) ctx.fillStyle = cor[3103];ctx.fillRect(30,310, 10, 10) ctx.fillStyle = cor[3104];ctx.fillRect(40,310, 10, 10) ctx.fillStyle = cor[3105];ctx.fillRect(50,310, 10, 10) ctx.fillStyle = cor[3106];ctx.fillRect(60,310, 10, 10) ctx.fillStyle = cor[3107];ctx.fillRect(70,310, 10, 10) ctx.fillStyle = cor[3108];ctx.fillRect(80,310, 10, 10) ctx.fillStyle = cor[3109];ctx.fillRect(90,310, 10, 10) ctx.fillStyle = cor[3110];ctx.fillRect(100,310, 10, 10) ctx.fillStyle = cor[3111];ctx.fillRect(110,310, 10, 10) ctx.fillStyle = cor[3112];ctx.fillRect(120,310, 10, 10) ctx.fillStyle = cor[3113];ctx.fillRect(130,310, 10, 10) ctx.fillStyle = cor[3114];ctx.fillRect(140,310, 10, 10) ctx.fillStyle = cor[3115];ctx.fillRect(150,310, 10, 10) ctx.fillStyle = cor[3116];ctx.fillRect(160,310, 10, 10) ctx.fillStyle = cor[3117];ctx.fillRect(170,310, 10, 10) ctx.fillStyle = cor[3118];ctx.fillRect(180,310, 10, 10) ctx.fillStyle = cor[3119];ctx.fillRect(190,310, 10, 10) ctx.fillStyle = cor[3120];ctx.fillRect(200,310, 10, 10) ctx.fillStyle = cor[3121];ctx.fillRect(210,310, 10, 10) ctx.fillStyle = cor[3122];ctx.fillRect(220,310, 10, 10) ctx.fillStyle = cor[3123];ctx.fillRect(230,310, 10, 10) ctx.fillStyle = cor[3124];ctx.fillRect(240,310, 10, 10) ctx.fillStyle = cor[3125];ctx.fillRect(250,310, 10, 10) ctx.fillStyle = cor[3126];ctx.fillRect(260,310, 10, 10) ctx.fillStyle = cor[3127];ctx.fillRect(270,310, 10, 10) ctx.fillStyle = cor[3128];ctx.fillRect(280,310, 10, 10) ctx.fillStyle = cor[3129];ctx.fillRect(290,310, 10, 10) ctx.fillStyle = cor[3130];ctx.fillRect(300,310, 10, 10) ctx.fillStyle = cor[3131];ctx.fillRect(310,310, 10, 10) ctx.fillStyle = cor[3132];ctx.fillRect(320,310, 10, 10) ctx.fillStyle = cor[3133];ctx.fillRect(330,310, 10, 10) ctx.fillStyle = cor[3134];ctx.fillRect(340,310, 10, 10) ctx.fillStyle = cor[3135];ctx.fillRect(350,310, 10, 10) ctx.fillStyle = cor[3136];ctx.fillRect(360,310, 10, 10) ctx.fillStyle = cor[3137];ctx.fillRect(370,310, 10, 10) ctx.fillStyle = cor[3138];ctx.fillRect(380,310, 10, 10) ctx.fillStyle = cor[3139];ctx.fillRect(390,310, 10, 10) ctx.fillStyle = cor[3140];ctx.fillRect(400,310, 10, 10) ctx.fillStyle = cor[3141];ctx.fillRect(410,310, 10, 10) ctx.fillStyle = cor[3142];ctx.fillRect(420,310, 10, 10) ctx.fillStyle = cor[3143];ctx.fillRect(430,310, 10, 10) ctx.fillStyle = cor[3144];ctx.fillRect(440,310, 10, 10) ctx.fillStyle = cor[3145];ctx.fillRect(450,310, 10, 10) ctx.fillStyle = cor[3146];ctx.fillRect(460,310, 10, 10) ctx.fillStyle = cor[3147];ctx.fillRect(470,310, 10, 10) ctx.fillStyle = cor[3148];ctx.fillRect(480,310, 10, 10) ctx.fillStyle = cor[3149];ctx.fillRect(490,310, 10, 10) ctx.fillStyle = cor[3150];ctx.fillRect(500,310, 10, 10) ctx.fillStyle = cor[3151];ctx.fillRect(510,310, 10, 10) ctx.fillStyle = cor[3152];ctx.fillRect(520,310, 10, 10) ctx.fillStyle = cor[3153];ctx.fillRect(530,310, 10, 10) ctx.fillStyle = cor[3154];ctx.fillRect(540,310, 10, 10) ctx.fillStyle = cor[3155];ctx.fillRect(550,310, 10, 10) ctx.fillStyle = cor[3156];ctx.fillRect(560,310, 10, 10) ctx.fillStyle = cor[3157];ctx.fillRect(570,310, 10, 10) ctx.fillStyle = cor[3158];ctx.fillRect(580,310, 10, 10) ctx.fillStyle = cor[3159];ctx.fillRect(590,310, 10, 10) ctx.fillStyle = cor[3160];ctx.fillRect(600,310, 10, 10) ctx.fillStyle = cor[3161];ctx.fillRect(610,310, 10, 10) ctx.fillStyle = cor[3162];ctx.fillRect(620,310, 10, 10) ctx.fillStyle = cor[3163];ctx.fillRect(630,310, 10, 10) ctx.fillStyle = cor[3164];ctx.fillRect(640,310, 10, 10) ctx.fillStyle = cor[3165];ctx.fillRect(650,310, 10, 10) ctx.fillStyle = cor[3166];ctx.fillRect(660,310, 10, 10) ctx.fillStyle = cor[3167];ctx.fillRect(670,310, 10, 10) ctx.fillStyle = cor[3168];ctx.fillRect(680,310, 10, 10) ctx.fillStyle = cor[3169];ctx.fillRect(690,310, 10, 10) ctx.fillStyle = cor[3170];ctx.fillRect(700,310, 10, 10) ctx.fillStyle = cor[3171];ctx.fillRect(710,310, 10, 10) ctx.fillStyle = cor[3172];ctx.fillRect(720,310, 10, 10) ctx.fillStyle = cor[3173];ctx.fillRect(730,310, 10, 10) ctx.fillStyle = cor[3174];ctx.fillRect(740,310, 10, 10) ctx.fillStyle = cor[3175];ctx.fillRect(750,310, 10, 10) ctx.fillStyle = cor[3176];ctx.fillRect(760,310, 10, 10) ctx.fillStyle = cor[3177];ctx.fillRect(770,310, 10, 10) ctx.fillStyle = cor[3178];ctx.fillRect(780,310, 10, 10) ctx.fillStyle = cor[3179];ctx.fillRect(790,310, 10, 10) ctx.fillStyle = cor[3180];ctx.fillRect(800,310, 10, 10) ctx.fillStyle = cor[3181];ctx.fillRect(810,310, 10, 10) ctx.fillStyle = cor[3182];ctx.fillRect(820,310, 10, 10) ctx.fillStyle = cor[3183];ctx.fillRect(830,310, 10, 10) ctx.fillStyle = cor[3184];ctx.fillRect(840,310, 10, 10) ctx.fillStyle = cor[3185];ctx.fillRect(850,310, 10, 10) ctx.fillStyle = cor[3186];ctx.fillRect(860,310, 10, 10) ctx.fillStyle = cor[3187];ctx.fillRect(870,310, 10, 10) ctx.fillStyle = cor[3188];ctx.fillRect(880,310, 10, 10) ctx.fillStyle = cor[3189];ctx.fillRect(890,310, 10, 10) ctx.fillStyle = cor[3190];ctx.fillRect(900,310, 10, 10) ctx.fillStyle = cor[3191];ctx.fillRect(910,310, 10, 10) ctx.fillStyle = cor[3192];ctx.fillRect(920,310, 10, 10) ctx.fillStyle = cor[3193];ctx.fillRect(930,310, 10, 10) ctx.fillStyle = cor[3194];ctx.fillRect(940,310, 10, 10) ctx.fillStyle = cor[3195];ctx.fillRect(950,310, 10, 10) ctx.fillStyle = cor[3196];ctx.fillRect(960,310, 10, 10) ctx.fillStyle = cor[3197];ctx.fillRect(970,310, 10, 10) ctx.fillStyle = cor[3198];ctx.fillRect(980,310, 10, 10) ctx.fillStyle = cor[3199];ctx.fillRect(990,310, 10, 10) ctx.fillStyle = cor[3200];ctx.fillRect(0,320, 10, 10) ctx.fillStyle = cor[3201];ctx.fillRect(10,320, 10, 10) ctx.fillStyle = cor[3202];ctx.fillRect(20,320, 10, 10) ctx.fillStyle = cor[3203];ctx.fillRect(30,320, 10, 10) ctx.fillStyle = cor[3204];ctx.fillRect(40,320, 10, 10) ctx.fillStyle = cor[3205];ctx.fillRect(50,320, 10, 10) ctx.fillStyle = cor[3206];ctx.fillRect(60,320, 10, 10) ctx.fillStyle = cor[3207];ctx.fillRect(70,320, 10, 10) ctx.fillStyle = cor[3208];ctx.fillRect(80,320, 10, 10) ctx.fillStyle = cor[3209];ctx.fillRect(90,320, 10, 10) ctx.fillStyle = cor[3210];ctx.fillRect(100,320, 10, 10) ctx.fillStyle = cor[3211];ctx.fillRect(110,320, 10, 10) ctx.fillStyle = cor[3212];ctx.fillRect(120,320, 10, 10) ctx.fillStyle = cor[3213];ctx.fillRect(130,320, 10, 10) ctx.fillStyle = cor[3214];ctx.fillRect(140,320, 10, 10) ctx.fillStyle = cor[3215];ctx.fillRect(150,320, 10, 10) ctx.fillStyle = cor[3216];ctx.fillRect(160,320, 10, 10) ctx.fillStyle = cor[3217];ctx.fillRect(170,320, 10, 10) ctx.fillStyle = cor[3218];ctx.fillRect(180,320, 10, 10) ctx.fillStyle = cor[3219];ctx.fillRect(190,320, 10, 10) ctx.fillStyle = cor[3220];ctx.fillRect(200,320, 10, 10) ctx.fillStyle = cor[3221];ctx.fillRect(210,320, 10, 10) ctx.fillStyle = cor[3222];ctx.fillRect(220,320, 10, 10) ctx.fillStyle = cor[3223];ctx.fillRect(230,320, 10, 10) ctx.fillStyle = cor[3224];ctx.fillRect(240,320, 10, 10) ctx.fillStyle = cor[3225];ctx.fillRect(250,320, 10, 10) ctx.fillStyle = cor[3226];ctx.fillRect(260,320, 10, 10) ctx.fillStyle = cor[3227];ctx.fillRect(270,320, 10, 10) ctx.fillStyle = cor[3228];ctx.fillRect(280,320, 10, 10) ctx.fillStyle = cor[3229];ctx.fillRect(290,320, 10, 10) ctx.fillStyle = cor[3230];ctx.fillRect(300,320, 10, 10) ctx.fillStyle = cor[3231];ctx.fillRect(310,320, 10, 10) ctx.fillStyle = cor[3232];ctx.fillRect(320,320, 10, 10) ctx.fillStyle = cor[3233];ctx.fillRect(330,320, 10, 10) ctx.fillStyle = cor[3234];ctx.fillRect(340,320, 10, 10) ctx.fillStyle = cor[3235];ctx.fillRect(350,320, 10, 10) ctx.fillStyle = cor[3236];ctx.fillRect(360,320, 10, 10) ctx.fillStyle = cor[3237];ctx.fillRect(370,320, 10, 10) ctx.fillStyle = cor[3238];ctx.fillRect(380,320, 10, 10) ctx.fillStyle = cor[3239];ctx.fillRect(390,320, 10, 10) ctx.fillStyle = cor[3240];ctx.fillRect(400,320, 10, 10) ctx.fillStyle = cor[3241];ctx.fillRect(410,320, 10, 10) ctx.fillStyle = cor[3242];ctx.fillRect(420,320, 10, 10) ctx.fillStyle = cor[3243];ctx.fillRect(430,320, 10, 10) ctx.fillStyle = cor[3244];ctx.fillRect(440,320, 10, 10) ctx.fillStyle = cor[3245];ctx.fillRect(450,320, 10, 10) ctx.fillStyle = cor[3246];ctx.fillRect(460,320, 10, 10) ctx.fillStyle = cor[3247];ctx.fillRect(470,320, 10, 10) ctx.fillStyle = cor[3248];ctx.fillRect(480,320, 10, 10) ctx.fillStyle = cor[3249];ctx.fillRect(490,320, 10, 10) ctx.fillStyle = cor[3250];ctx.fillRect(500,320, 10, 10) ctx.fillStyle = cor[3251];ctx.fillRect(510,320, 10, 10) ctx.fillStyle = cor[3252];ctx.fillRect(520,320, 10, 10) ctx.fillStyle = cor[3253];ctx.fillRect(530,320, 10, 10) ctx.fillStyle = cor[3254];ctx.fillRect(540,320, 10, 10) ctx.fillStyle = cor[3255];ctx.fillRect(550,320, 10, 10) ctx.fillStyle = cor[3256];ctx.fillRect(560,320, 10, 10) ctx.fillStyle = cor[3257];ctx.fillRect(570,320, 10, 10) ctx.fillStyle = cor[3258];ctx.fillRect(580,320, 10, 10) ctx.fillStyle = cor[3259];ctx.fillRect(590,320, 10, 10) ctx.fillStyle = cor[3260];ctx.fillRect(600,320, 10, 10) ctx.fillStyle = cor[3261];ctx.fillRect(610,320, 10, 10) ctx.fillStyle = cor[3262];ctx.fillRect(620,320, 10, 10) ctx.fillStyle = cor[3263];ctx.fillRect(630,320, 10, 10) ctx.fillStyle = cor[3264];ctx.fillRect(640,320, 10, 10) ctx.fillStyle = cor[3265];ctx.fillRect(650,320, 10, 10) ctx.fillStyle = cor[3266];ctx.fillRect(660,320, 10, 10) ctx.fillStyle = cor[3267];ctx.fillRect(670,320, 10, 10) ctx.fillStyle = cor[3268];ctx.fillRect(680,320, 10, 10) ctx.fillStyle = cor[3269];ctx.fillRect(690,320, 10, 10) ctx.fillStyle = cor[3270];ctx.fillRect(700,320, 10, 10) ctx.fillStyle = cor[3271];ctx.fillRect(710,320, 10, 10) ctx.fillStyle = cor[3272];ctx.fillRect(720,320, 10, 10) ctx.fillStyle = cor[3273];ctx.fillRect(730,320, 10, 10) ctx.fillStyle = cor[3274];ctx.fillRect(740,320, 10, 10) ctx.fillStyle = cor[3275];ctx.fillRect(750,320, 10, 10) ctx.fillStyle = cor[3276];ctx.fillRect(760,320, 10, 10) ctx.fillStyle = cor[3277];ctx.fillRect(770,320, 10, 10) ctx.fillStyle = cor[3278];ctx.fillRect(780,320, 10, 10) ctx.fillStyle = cor[3279];ctx.fillRect(790,320, 10, 10) ctx.fillStyle = cor[3280];ctx.fillRect(800,320, 10, 10) ctx.fillStyle = cor[3281];ctx.fillRect(810,320, 10, 10) ctx.fillStyle = cor[3282];ctx.fillRect(820,320, 10, 10) ctx.fillStyle = cor[3283];ctx.fillRect(830,320, 10, 10) ctx.fillStyle = cor[3284];ctx.fillRect(840,320, 10, 10) ctx.fillStyle = cor[3285];ctx.fillRect(850,320, 10, 10) ctx.fillStyle = cor[3286];ctx.fillRect(860,320, 10, 10) ctx.fillStyle = cor[3287];ctx.fillRect(870,320, 10, 10) ctx.fillStyle = cor[3288];ctx.fillRect(880,320, 10, 10) ctx.fillStyle = cor[3289];ctx.fillRect(890,320, 10, 10) ctx.fillStyle = cor[3290];ctx.fillRect(900,320, 10, 10) ctx.fillStyle = cor[3291];ctx.fillRect(910,320, 10, 10) ctx.fillStyle = cor[3292];ctx.fillRect(920,320, 10, 10) ctx.fillStyle = cor[3293];ctx.fillRect(930,320, 10, 10) ctx.fillStyle = cor[3294];ctx.fillRect(940,320, 10, 10) ctx.fillStyle = cor[3295];ctx.fillRect(950,320, 10, 10) ctx.fillStyle = cor[3296];ctx.fillRect(960,320, 10, 10) ctx.fillStyle = cor[3297];ctx.fillRect(970,320, 10, 10) ctx.fillStyle = cor[3298];ctx.fillRect(980,320, 10, 10) ctx.fillStyle = cor[3299];ctx.fillRect(990,320, 10, 10) ctx.fillStyle = cor[3300];ctx.fillRect(0,330, 10, 10) ctx.fillStyle = cor[3301];ctx.fillRect(10,330, 10, 10) ctx.fillStyle = cor[3302];ctx.fillRect(20,330, 10, 10) ctx.fillStyle = cor[3303];ctx.fillRect(30,330, 10, 10) ctx.fillStyle = cor[3304];ctx.fillRect(40,330, 10, 10) ctx.fillStyle = cor[3305];ctx.fillRect(50,330, 10, 10) ctx.fillStyle = cor[3306];ctx.fillRect(60,330, 10, 10) ctx.fillStyle = cor[3307];ctx.fillRect(70,330, 10, 10) ctx.fillStyle = cor[3308];ctx.fillRect(80,330, 10, 10) ctx.fillStyle = cor[3309];ctx.fillRect(90,330, 10, 10) ctx.fillStyle = cor[3310];ctx.fillRect(100,330, 10, 10) ctx.fillStyle = cor[3311];ctx.fillRect(110,330, 10, 10) ctx.fillStyle = cor[3312];ctx.fillRect(120,330, 10, 10) ctx.fillStyle = cor[3313];ctx.fillRect(130,330, 10, 10) ctx.fillStyle = cor[3314];ctx.fillRect(140,330, 10, 10) ctx.fillStyle = cor[3315];ctx.fillRect(150,330, 10, 10) ctx.fillStyle = cor[3316];ctx.fillRect(160,330, 10, 10) ctx.fillStyle = cor[3317];ctx.fillRect(170,330, 10, 10) ctx.fillStyle = cor[3318];ctx.fillRect(180,330, 10, 10) ctx.fillStyle = cor[3319];ctx.fillRect(190,330, 10, 10) ctx.fillStyle = cor[3320];ctx.fillRect(200,330, 10, 10) ctx.fillStyle = cor[3321];ctx.fillRect(210,330, 10, 10) ctx.fillStyle = cor[3322];ctx.fillRect(220,330, 10, 10) ctx.fillStyle = cor[3323];ctx.fillRect(230,330, 10, 10) ctx.fillStyle = cor[3324];ctx.fillRect(240,330, 10, 10) ctx.fillStyle = cor[3325];ctx.fillRect(250,330, 10, 10) ctx.fillStyle = cor[3326];ctx.fillRect(260,330, 10, 10) ctx.fillStyle = cor[3327];ctx.fillRect(270,330, 10, 10) ctx.fillStyle = cor[3328];ctx.fillRect(280,330, 10, 10) ctx.fillStyle = cor[3329];ctx.fillRect(290,330, 10, 10) ctx.fillStyle = cor[3330];ctx.fillRect(300,330, 10, 10) ctx.fillStyle = cor[3331];ctx.fillRect(310,330, 10, 10) ctx.fillStyle = cor[3332];ctx.fillRect(320,330, 10, 10) ctx.fillStyle = cor[3333];ctx.fillRect(330,330, 10, 10) ctx.fillStyle = cor[3334];ctx.fillRect(340,330, 10, 10) ctx.fillStyle = cor[3335];ctx.fillRect(350,330, 10, 10) ctx.fillStyle = cor[3336];ctx.fillRect(360,330, 10, 10) ctx.fillStyle = cor[3337];ctx.fillRect(370,330, 10, 10) ctx.fillStyle = cor[3338];ctx.fillRect(380,330, 10, 10) ctx.fillStyle = cor[3339];ctx.fillRect(390,330, 10, 10) ctx.fillStyle = cor[3340];ctx.fillRect(400,330, 10, 10) ctx.fillStyle = cor[3341];ctx.fillRect(410,330, 10, 10) ctx.fillStyle = cor[3342];ctx.fillRect(420,330, 10, 10) ctx.fillStyle = cor[3343];ctx.fillRect(430,330, 10, 10) ctx.fillStyle = cor[3344];ctx.fillRect(440,330, 10, 10) ctx.fillStyle = cor[3345];ctx.fillRect(450,330, 10, 10) ctx.fillStyle = cor[3346];ctx.fillRect(460,330, 10, 10) ctx.fillStyle = cor[3347];ctx.fillRect(470,330, 10, 10) ctx.fillStyle = cor[3348];ctx.fillRect(480,330, 10, 10) ctx.fillStyle = cor[3349];ctx.fillRect(490,330, 10, 10) ctx.fillStyle = cor[3350];ctx.fillRect(500,330, 10, 10) ctx.fillStyle = cor[3351];ctx.fillRect(510,330, 10, 10) ctx.fillStyle = cor[3352];ctx.fillRect(520,330, 10, 10) ctx.fillStyle = cor[3353];ctx.fillRect(530,330, 10, 10) ctx.fillStyle = cor[3354];ctx.fillRect(540,330, 10, 10) ctx.fillStyle = cor[3355];ctx.fillRect(550,330, 10, 10) ctx.fillStyle = cor[3356];ctx.fillRect(560,330, 10, 10) ctx.fillStyle = cor[3357];ctx.fillRect(570,330, 10, 10) ctx.fillStyle = cor[3358];ctx.fillRect(580,330, 10, 10) ctx.fillStyle = cor[3359];ctx.fillRect(590,330, 10, 10) ctx.fillStyle = cor[3360];ctx.fillRect(600,330, 10, 10) ctx.fillStyle = cor[3361];ctx.fillRect(610,330, 10, 10) ctx.fillStyle = cor[3362];ctx.fillRect(620,330, 10, 10) ctx.fillStyle = cor[3363];ctx.fillRect(630,330, 10, 10) ctx.fillStyle = cor[3364];ctx.fillRect(640,330, 10, 10) ctx.fillStyle = cor[3365];ctx.fillRect(650,330, 10, 10) ctx.fillStyle = cor[3366];ctx.fillRect(660,330, 10, 10) ctx.fillStyle = cor[3367];ctx.fillRect(670,330, 10, 10) ctx.fillStyle = cor[3368];ctx.fillRect(680,330, 10, 10) ctx.fillStyle = cor[3369];ctx.fillRect(690,330, 10, 10) ctx.fillStyle = cor[3370];ctx.fillRect(700,330, 10, 10) ctx.fillStyle = cor[3371];ctx.fillRect(710,330, 10, 10) ctx.fillStyle = cor[3372];ctx.fillRect(720,330, 10, 10) ctx.fillStyle = cor[3373];ctx.fillRect(730,330, 10, 10) ctx.fillStyle = cor[3374];ctx.fillRect(740,330, 10, 10) ctx.fillStyle = cor[3375];ctx.fillRect(750,330, 10, 10) ctx.fillStyle = cor[3376];ctx.fillRect(760,330, 10, 10) ctx.fillStyle = cor[3377];ctx.fillRect(770,330, 10, 10) ctx.fillStyle = cor[3378];ctx.fillRect(780,330, 10, 10) ctx.fillStyle = cor[3379];ctx.fillRect(790,330, 10, 10) ctx.fillStyle = cor[3380];ctx.fillRect(800,330, 10, 10) ctx.fillStyle = cor[3381];ctx.fillRect(810,330, 10, 10) ctx.fillStyle = cor[3382];ctx.fillRect(820,330, 10, 10) ctx.fillStyle = cor[3383];ctx.fillRect(830,330, 10, 10) ctx.fillStyle = cor[3384];ctx.fillRect(840,330, 10, 10) ctx.fillStyle = cor[3385];ctx.fillRect(850,330, 10, 10) ctx.fillStyle = cor[3386];ctx.fillRect(860,330, 10, 10) ctx.fillStyle = cor[3387];ctx.fillRect(870,330, 10, 10) ctx.fillStyle = cor[3388];ctx.fillRect(880,330, 10, 10) ctx.fillStyle = cor[3389];ctx.fillRect(890,330, 10, 10) ctx.fillStyle = cor[3390];ctx.fillRect(900,330, 10, 10) ctx.fillStyle = cor[3391];ctx.fillRect(910,330, 10, 10) ctx.fillStyle = cor[3392];ctx.fillRect(920,330, 10, 10) ctx.fillStyle = cor[3393];ctx.fillRect(930,330, 10, 10) ctx.fillStyle = cor[3394];ctx.fillRect(940,330, 10, 10) ctx.fillStyle = cor[3395];ctx.fillRect(950,330, 10, 10) ctx.fillStyle = cor[3396];ctx.fillRect(960,330, 10, 10) ctx.fillStyle = cor[3397];ctx.fillRect(970,330, 10, 10) ctx.fillStyle = cor[3398];ctx.fillRect(980,330, 10, 10) ctx.fillStyle = cor[3399];ctx.fillRect(990,330, 10, 10) ctx.fillStyle = cor[3400];ctx.fillRect(0,340, 10, 10) ctx.fillStyle = cor[3401];ctx.fillRect(10,340, 10, 10) ctx.fillStyle = cor[3402];ctx.fillRect(20,340, 10, 10) ctx.fillStyle = cor[3403];ctx.fillRect(30,340, 10, 10) ctx.fillStyle = cor[3404];ctx.fillRect(40,340, 10, 10) ctx.fillStyle = cor[3405];ctx.fillRect(50,340, 10, 10) ctx.fillStyle = cor[3406];ctx.fillRect(60,340, 10, 10) ctx.fillStyle = cor[3407];ctx.fillRect(70,340, 10, 10) ctx.fillStyle = cor[3408];ctx.fillRect(80,340, 10, 10) ctx.fillStyle = cor[3409];ctx.fillRect(90,340, 10, 10) ctx.fillStyle = cor[3410];ctx.fillRect(100,340, 10, 10) ctx.fillStyle = cor[3411];ctx.fillRect(110,340, 10, 10) ctx.fillStyle = cor[3412];ctx.fillRect(120,340, 10, 10) ctx.fillStyle = cor[3413];ctx.fillRect(130,340, 10, 10) ctx.fillStyle = cor[3414];ctx.fillRect(140,340, 10, 10) ctx.fillStyle = cor[3415];ctx.fillRect(150,340, 10, 10) ctx.fillStyle = cor[3416];ctx.fillRect(160,340, 10, 10) ctx.fillStyle = cor[3417];ctx.fillRect(170,340, 10, 10) ctx.fillStyle = cor[3418];ctx.fillRect(180,340, 10, 10) ctx.fillStyle = cor[3419];ctx.fillRect(190,340, 10, 10) ctx.fillStyle = cor[3420];ctx.fillRect(200,340, 10, 10) ctx.fillStyle = cor[3421];ctx.fillRect(210,340, 10, 10) ctx.fillStyle = cor[3422];ctx.fillRect(220,340, 10, 10) ctx.fillStyle = cor[3423];ctx.fillRect(230,340, 10, 10) ctx.fillStyle = cor[3424];ctx.fillRect(240,340, 10, 10) ctx.fillStyle = cor[3425];ctx.fillRect(250,340, 10, 10) ctx.fillStyle = cor[3426];ctx.fillRect(260,340, 10, 10) ctx.fillStyle = cor[3427];ctx.fillRect(270,340, 10, 10) ctx.fillStyle = cor[3428];ctx.fillRect(280,340, 10, 10) ctx.fillStyle = cor[3429];ctx.fillRect(290,340, 10, 10) ctx.fillStyle = cor[3430];ctx.fillRect(300,340, 10, 10) ctx.fillStyle = cor[3431];ctx.fillRect(310,340, 10, 10) ctx.fillStyle = cor[3432];ctx.fillRect(320,340, 10, 10) ctx.fillStyle = cor[3433];ctx.fillRect(330,340, 10, 10) ctx.fillStyle = cor[3434];ctx.fillRect(340,340, 10, 10) ctx.fillStyle = cor[3435];ctx.fillRect(350,340, 10, 10) ctx.fillStyle = cor[3436];ctx.fillRect(360,340, 10, 10) ctx.fillStyle = cor[3437];ctx.fillRect(370,340, 10, 10) ctx.fillStyle = cor[3438];ctx.fillRect(380,340, 10, 10) ctx.fillStyle = cor[3439];ctx.fillRect(390,340, 10, 10) ctx.fillStyle = cor[3440];ctx.fillRect(400,340, 10, 10) ctx.fillStyle = cor[3441];ctx.fillRect(410,340, 10, 10) ctx.fillStyle = cor[3442];ctx.fillRect(420,340, 10, 10) ctx.fillStyle = cor[3443];ctx.fillRect(430,340, 10, 10) ctx.fillStyle = cor[3444];ctx.fillRect(440,340, 10, 10) ctx.fillStyle = cor[3445];ctx.fillRect(450,340, 10, 10) ctx.fillStyle = cor[3446];ctx.fillRect(460,340, 10, 10) ctx.fillStyle = cor[3447];ctx.fillRect(470,340, 10, 10) ctx.fillStyle = cor[3448];ctx.fillRect(480,340, 10, 10) ctx.fillStyle = cor[3449];ctx.fillRect(490,340, 10, 10) ctx.fillStyle = cor[3450];ctx.fillRect(500,340, 10, 10) ctx.fillStyle = cor[3451];ctx.fillRect(510,340, 10, 10) ctx.fillStyle = cor[3452];ctx.fillRect(520,340, 10, 10) ctx.fillStyle = cor[3453];ctx.fillRect(530,340, 10, 10) ctx.fillStyle = cor[3454];ctx.fillRect(540,340, 10, 10) ctx.fillStyle = cor[3455];ctx.fillRect(550,340, 10, 10) ctx.fillStyle = cor[3456];ctx.fillRect(560,340, 10, 10) ctx.fillStyle = cor[3457];ctx.fillRect(570,340, 10, 10) ctx.fillStyle = cor[3458];ctx.fillRect(580,340, 10, 10) ctx.fillStyle = cor[3459];ctx.fillRect(590,340, 10, 10) ctx.fillStyle = cor[3460];ctx.fillRect(600,340, 10, 10) ctx.fillStyle = cor[3461];ctx.fillRect(610,340, 10, 10) ctx.fillStyle = cor[3462];ctx.fillRect(620,340, 10, 10) ctx.fillStyle = cor[3463];ctx.fillRect(630,340, 10, 10) ctx.fillStyle = cor[3464];ctx.fillRect(640,340, 10, 10) ctx.fillStyle = cor[3465];ctx.fillRect(650,340, 10, 10) ctx.fillStyle = cor[3466];ctx.fillRect(660,340, 10, 10) ctx.fillStyle = cor[3467];ctx.fillRect(670,340, 10, 10) ctx.fillStyle = cor[3468];ctx.fillRect(680,340, 10, 10) ctx.fillStyle = cor[3469];ctx.fillRect(690,340, 10, 10) ctx.fillStyle = cor[3470];ctx.fillRect(700,340, 10, 10) ctx.fillStyle = cor[3471];ctx.fillRect(710,340, 10, 10) ctx.fillStyle = cor[3472];ctx.fillRect(720,340, 10, 10) ctx.fillStyle = cor[3473];ctx.fillRect(730,340, 10, 10) ctx.fillStyle = cor[3474];ctx.fillRect(740,340, 10, 10) ctx.fillStyle = cor[3475];ctx.fillRect(750,340, 10, 10) ctx.fillStyle = cor[3476];ctx.fillRect(760,340, 10, 10) ctx.fillStyle = cor[3477];ctx.fillRect(770,340, 10, 10) ctx.fillStyle = cor[3478];ctx.fillRect(780,340, 10, 10) ctx.fillStyle = cor[3479];ctx.fillRect(790,340, 10, 10) ctx.fillStyle = cor[3480];ctx.fillRect(800,340, 10, 10) ctx.fillStyle = cor[3481];ctx.fillRect(810,340, 10, 10) ctx.fillStyle = cor[3482];ctx.fillRect(820,340, 10, 10) ctx.fillStyle = cor[3483];ctx.fillRect(830,340, 10, 10) ctx.fillStyle = cor[3484];ctx.fillRect(840,340, 10, 10) ctx.fillStyle = cor[3485];ctx.fillRect(850,340, 10, 10) ctx.fillStyle = cor[3486];ctx.fillRect(860,340, 10, 10) ctx.fillStyle = cor[3487];ctx.fillRect(870,340, 10, 10) ctx.fillStyle = cor[3488];ctx.fillRect(880,340, 10, 10) ctx.fillStyle = cor[3489];ctx.fillRect(890,340, 10, 10) ctx.fillStyle = cor[3490];ctx.fillRect(900,340, 10, 10) ctx.fillStyle = cor[3491];ctx.fillRect(910,340, 10, 10) ctx.fillStyle = cor[3492];ctx.fillRect(920,340, 10, 10) ctx.fillStyle = cor[3493];ctx.fillRect(930,340, 10, 10) ctx.fillStyle = cor[3494];ctx.fillRect(940,340, 10, 10) ctx.fillStyle = cor[3495];ctx.fillRect(950,340, 10, 10) ctx.fillStyle = cor[3496];ctx.fillRect(960,340, 10, 10) ctx.fillStyle = cor[3497];ctx.fillRect(970,340, 10, 10) ctx.fillStyle = cor[3498];ctx.fillRect(980,340, 10, 10) ctx.fillStyle = cor[3499];ctx.fillRect(990,340, 10, 10) ctx.fillStyle = cor[3500];ctx.fillRect(0,350, 10, 10) ctx.fillStyle = cor[3501];ctx.fillRect(10,350, 10, 10) ctx.fillStyle = cor[3502];ctx.fillRect(20,350, 10, 10) ctx.fillStyle = cor[3503];ctx.fillRect(30,350, 10, 10) ctx.fillStyle = cor[3504];ctx.fillRect(40,350, 10, 10) ctx.fillStyle = cor[3505];ctx.fillRect(50,350, 10, 10) ctx.fillStyle = cor[3506];ctx.fillRect(60,350, 10, 10) ctx.fillStyle = cor[3507];ctx.fillRect(70,350, 10, 10) ctx.fillStyle = cor[3508];ctx.fillRect(80,350, 10, 10) ctx.fillStyle = cor[3509];ctx.fillRect(90,350, 10, 10) ctx.fillStyle = cor[3510];ctx.fillRect(100,350, 10, 10) ctx.fillStyle = cor[3511];ctx.fillRect(110,350, 10, 10) ctx.fillStyle = cor[3512];ctx.fillRect(120,350, 10, 10) ctx.fillStyle = cor[3513];ctx.fillRect(130,350, 10, 10) ctx.fillStyle = cor[3514];ctx.fillRect(140,350, 10, 10) ctx.fillStyle = cor[3515];ctx.fillRect(150,350, 10, 10) ctx.fillStyle = cor[3516];ctx.fillRect(160,350, 10, 10) ctx.fillStyle = cor[3517];ctx.fillRect(170,350, 10, 10) ctx.fillStyle = cor[3518];ctx.fillRect(180,350, 10, 10) ctx.fillStyle = cor[3519];ctx.fillRect(190,350, 10, 10) ctx.fillStyle = cor[3520];ctx.fillRect(200,350, 10, 10) ctx.fillStyle = cor[3521];ctx.fillRect(210,350, 10, 10) ctx.fillStyle = cor[3522];ctx.fillRect(220,350, 10, 10) ctx.fillStyle = cor[3523];ctx.fillRect(230,350, 10, 10) ctx.fillStyle = cor[3524];ctx.fillRect(240,350, 10, 10) ctx.fillStyle = cor[3525];ctx.fillRect(250,350, 10, 10) ctx.fillStyle = cor[3526];ctx.fillRect(260,350, 10, 10) ctx.fillStyle = cor[3527];ctx.fillRect(270,350, 10, 10) ctx.fillStyle = cor[3528];ctx.fillRect(280,350, 10, 10) ctx.fillStyle = cor[3529];ctx.fillRect(290,350, 10, 10) ctx.fillStyle = cor[3530];ctx.fillRect(300,350, 10, 10) ctx.fillStyle = cor[3531];ctx.fillRect(310,350, 10, 10) ctx.fillStyle = cor[3532];ctx.fillRect(320,350, 10, 10) ctx.fillStyle = cor[3533];ctx.fillRect(330,350, 10, 10) ctx.fillStyle = cor[3534];ctx.fillRect(340,350, 10, 10) ctx.fillStyle = cor[3535];ctx.fillRect(350,350, 10, 10) ctx.fillStyle = cor[3536];ctx.fillRect(360,350, 10, 10) ctx.fillStyle = cor[3537];ctx.fillRect(370,350, 10, 10) ctx.fillStyle = cor[3538];ctx.fillRect(380,350, 10, 10) ctx.fillStyle = cor[3539];ctx.fillRect(390,350, 10, 10) ctx.fillStyle = cor[3540];ctx.fillRect(400,350, 10, 10) ctx.fillStyle = cor[3541];ctx.fillRect(410,350, 10, 10) ctx.fillStyle = cor[3542];ctx.fillRect(420,350, 10, 10) ctx.fillStyle = cor[3543];ctx.fillRect(430,350, 10, 10) ctx.fillStyle = cor[3544];ctx.fillRect(440,350, 10, 10) ctx.fillStyle = cor[3545];ctx.fillRect(450,350, 10, 10) ctx.fillStyle = cor[3546];ctx.fillRect(460,350, 10, 10) ctx.fillStyle = cor[3547];ctx.fillRect(470,350, 10, 10) ctx.fillStyle = cor[3548];ctx.fillRect(480,350, 10, 10) ctx.fillStyle = cor[3549];ctx.fillRect(490,350, 10, 10) ctx.fillStyle = cor[3550];ctx.fillRect(500,350, 10, 10) ctx.fillStyle = cor[3551];ctx.fillRect(510,350, 10, 10) ctx.fillStyle = cor[3552];ctx.fillRect(520,350, 10, 10) ctx.fillStyle = cor[3553];ctx.fillRect(530,350, 10, 10) ctx.fillStyle = cor[3554];ctx.fillRect(540,350, 10, 10) ctx.fillStyle = cor[3555];ctx.fillRect(550,350, 10, 10) ctx.fillStyle = cor[3556];ctx.fillRect(560,350, 10, 10) ctx.fillStyle = cor[3557];ctx.fillRect(570,350, 10, 10) ctx.fillStyle = cor[3558];ctx.fillRect(580,350, 10, 10) ctx.fillStyle = cor[3559];ctx.fillRect(590,350, 10, 10) ctx.fillStyle = cor[3560];ctx.fillRect(600,350, 10, 10) ctx.fillStyle = cor[3561];ctx.fillRect(610,350, 10, 10) ctx.fillStyle = cor[3562];ctx.fillRect(620,350, 10, 10) ctx.fillStyle = cor[3563];ctx.fillRect(630,350, 10, 10) ctx.fillStyle = cor[3564];ctx.fillRect(640,350, 10, 10) ctx.fillStyle = cor[3565];ctx.fillRect(650,350, 10, 10) ctx.fillStyle = cor[3566];ctx.fillRect(660,350, 10, 10) ctx.fillStyle = cor[3567];ctx.fillRect(670,350, 10, 10) ctx.fillStyle = cor[3568];ctx.fillRect(680,350, 10, 10) ctx.fillStyle = cor[3569];ctx.fillRect(690,350, 10, 10) ctx.fillStyle = cor[3570];ctx.fillRect(700,350, 10, 10) ctx.fillStyle = cor[3571];ctx.fillRect(710,350, 10, 10) ctx.fillStyle = cor[3572];ctx.fillRect(720,350, 10, 10) ctx.fillStyle = cor[3573];ctx.fillRect(730,350, 10, 10) ctx.fillStyle = cor[3574];ctx.fillRect(740,350, 10, 10) ctx.fillStyle = cor[3575];ctx.fillRect(750,350, 10, 10) ctx.fillStyle = cor[3576];ctx.fillRect(760,350, 10, 10) ctx.fillStyle = cor[3577];ctx.fillRect(770,350, 10, 10) ctx.fillStyle = cor[3578];ctx.fillRect(780,350, 10, 10) ctx.fillStyle = cor[3579];ctx.fillRect(790,350, 10, 10) ctx.fillStyle = cor[3580];ctx.fillRect(800,350, 10, 10) ctx.fillStyle = cor[3581];ctx.fillRect(810,350, 10, 10) ctx.fillStyle = cor[3582];ctx.fillRect(820,350, 10, 10) ctx.fillStyle = cor[3583];ctx.fillRect(830,350, 10, 10) ctx.fillStyle = cor[3584];ctx.fillRect(840,350, 10, 10) ctx.fillStyle = cor[3585];ctx.fillRect(850,350, 10, 10) ctx.fillStyle = cor[3586];ctx.fillRect(860,350, 10, 10) ctx.fillStyle = cor[3587];ctx.fillRect(870,350, 10, 10) ctx.fillStyle = cor[3588];ctx.fillRect(880,350, 10, 10) ctx.fillStyle = cor[3589];ctx.fillRect(890,350, 10, 10) ctx.fillStyle = cor[3590];ctx.fillRect(900,350, 10, 10) ctx.fillStyle = cor[3591];ctx.fillRect(910,350, 10, 10) ctx.fillStyle = cor[3592];ctx.fillRect(920,350, 10, 10) ctx.fillStyle = cor[3593];ctx.fillRect(930,350, 10, 10) ctx.fillStyle = cor[3594];ctx.fillRect(940,350, 10, 10) ctx.fillStyle = cor[3595];ctx.fillRect(950,350, 10, 10) ctx.fillStyle = cor[3596];ctx.fillRect(960,350, 10, 10) ctx.fillStyle = cor[3597];ctx.fillRect(970,350, 10, 10) ctx.fillStyle = cor[3598];ctx.fillRect(980,350, 10, 10) ctx.fillStyle = cor[3599];ctx.fillRect(990,350, 10, 10) ctx.fillStyle = cor[3600];ctx.fillRect(0,360, 10, 10) ctx.fillStyle = cor[3601];ctx.fillRect(10,360, 10, 10) ctx.fillStyle = cor[3602];ctx.fillRect(20,360, 10, 10) ctx.fillStyle = cor[3603];ctx.fillRect(30,360, 10, 10) ctx.fillStyle = cor[3604];ctx.fillRect(40,360, 10, 10) ctx.fillStyle = cor[3605];ctx.fillRect(50,360, 10, 10) ctx.fillStyle = cor[3606];ctx.fillRect(60,360, 10, 10) ctx.fillStyle = cor[3607];ctx.fillRect(70,360, 10, 10) ctx.fillStyle = cor[3608];ctx.fillRect(80,360, 10, 10) ctx.fillStyle = cor[3609];ctx.fillRect(90,360, 10, 10) ctx.fillStyle = cor[3610];ctx.fillRect(100,360, 10, 10) ctx.fillStyle = cor[3611];ctx.fillRect(110,360, 10, 10) ctx.fillStyle = cor[3612];ctx.fillRect(120,360, 10, 10) ctx.fillStyle = cor[3613];ctx.fillRect(130,360, 10, 10) ctx.fillStyle = cor[3614];ctx.fillRect(140,360, 10, 10) ctx.fillStyle = cor[3615];ctx.fillRect(150,360, 10, 10) ctx.fillStyle = cor[3616];ctx.fillRect(160,360, 10, 10) ctx.fillStyle = cor[3617];ctx.fillRect(170,360, 10, 10) ctx.fillStyle = cor[3618];ctx.fillRect(180,360, 10, 10) ctx.fillStyle = cor[3619];ctx.fillRect(190,360, 10, 10) ctx.fillStyle = cor[3620];ctx.fillRect(200,360, 10, 10) ctx.fillStyle = cor[3621];ctx.fillRect(210,360, 10, 10) ctx.fillStyle = cor[3622];ctx.fillRect(220,360, 10, 10) ctx.fillStyle = cor[3623];ctx.fillRect(230,360, 10, 10) ctx.fillStyle = cor[3624];ctx.fillRect(240,360, 10, 10) ctx.fillStyle = cor[3625];ctx.fillRect(250,360, 10, 10) ctx.fillStyle = cor[3626];ctx.fillRect(260,360, 10, 10) ctx.fillStyle = cor[3627];ctx.fillRect(270,360, 10, 10) ctx.fillStyle = cor[3628];ctx.fillRect(280,360, 10, 10) ctx.fillStyle = cor[3629];ctx.fillRect(290,360, 10, 10) ctx.fillStyle = cor[3630];ctx.fillRect(300,360, 10, 10) ctx.fillStyle = cor[3631];ctx.fillRect(310,360, 10, 10) ctx.fillStyle = cor[3632];ctx.fillRect(320,360, 10, 10) ctx.fillStyle = cor[3633];ctx.fillRect(330,360, 10, 10) ctx.fillStyle = cor[3634];ctx.fillRect(340,360, 10, 10) ctx.fillStyle = cor[3635];ctx.fillRect(350,360, 10, 10) ctx.fillStyle = cor[3636];ctx.fillRect(360,360, 10, 10) ctx.fillStyle = cor[3637];ctx.fillRect(370,360, 10, 10) ctx.fillStyle = cor[3638];ctx.fillRect(380,360, 10, 10) ctx.fillStyle = cor[3639];ctx.fillRect(390,360, 10, 10) ctx.fillStyle = cor[3640];ctx.fillRect(400,360, 10, 10) ctx.fillStyle = cor[3641];ctx.fillRect(410,360, 10, 10) ctx.fillStyle = cor[3642];ctx.fillRect(420,360, 10, 10) ctx.fillStyle = cor[3643];ctx.fillRect(430,360, 10, 10) ctx.fillStyle = cor[3644];ctx.fillRect(440,360, 10, 10) ctx.fillStyle = cor[3645];ctx.fillRect(450,360, 10, 10) ctx.fillStyle = cor[3646];ctx.fillRect(460,360, 10, 10) ctx.fillStyle = cor[3647];ctx.fillRect(470,360, 10, 10) ctx.fillStyle = cor[3648];ctx.fillRect(480,360, 10, 10) ctx.fillStyle = cor[3649];ctx.fillRect(490,360, 10, 10) ctx.fillStyle = cor[3650];ctx.fillRect(500,360, 10, 10) ctx.fillStyle = cor[3651];ctx.fillRect(510,360, 10, 10) ctx.fillStyle = cor[3652];ctx.fillRect(520,360, 10, 10) ctx.fillStyle = cor[3653];ctx.fillRect(530,360, 10, 10) ctx.fillStyle = cor[3654];ctx.fillRect(540,360, 10, 10) ctx.fillStyle = cor[3655];ctx.fillRect(550,360, 10, 10) ctx.fillStyle = cor[3656];ctx.fillRect(560,360, 10, 10) ctx.fillStyle = cor[3657];ctx.fillRect(570,360, 10, 10) ctx.fillStyle = cor[3658];ctx.fillRect(580,360, 10, 10) ctx.fillStyle = cor[3659];ctx.fillRect(590,360, 10, 10) ctx.fillStyle = cor[3660];ctx.fillRect(600,360, 10, 10) ctx.fillStyle = cor[3661];ctx.fillRect(610,360, 10, 10) ctx.fillStyle = cor[3662];ctx.fillRect(620,360, 10, 10) ctx.fillStyle = cor[3663];ctx.fillRect(630,360, 10, 10) ctx.fillStyle = cor[3664];ctx.fillRect(640,360, 10, 10) ctx.fillStyle = cor[3665];ctx.fillRect(650,360, 10, 10) ctx.fillStyle = cor[3666];ctx.fillRect(660,360, 10, 10) ctx.fillStyle = cor[3667];ctx.fillRect(670,360, 10, 10) ctx.fillStyle = cor[3668];ctx.fillRect(680,360, 10, 10) ctx.fillStyle = cor[3669];ctx.fillRect(690,360, 10, 10) ctx.fillStyle = cor[3670];ctx.fillRect(700,360, 10, 10) ctx.fillStyle = cor[3671];ctx.fillRect(710,360, 10, 10) ctx.fillStyle = cor[3672];ctx.fillRect(720,360, 10, 10) ctx.fillStyle = cor[3673];ctx.fillRect(730,360, 10, 10) ctx.fillStyle = cor[3674];ctx.fillRect(740,360, 10, 10) ctx.fillStyle = cor[3675];ctx.fillRect(750,360, 10, 10) ctx.fillStyle = cor[3676];ctx.fillRect(760,360, 10, 10) ctx.fillStyle = cor[3677];ctx.fillRect(770,360, 10, 10) ctx.fillStyle = cor[3678];ctx.fillRect(780,360, 10, 10) ctx.fillStyle = cor[3679];ctx.fillRect(790,360, 10, 10) ctx.fillStyle = cor[3680];ctx.fillRect(800,360, 10, 10) ctx.fillStyle = cor[3681];ctx.fillRect(810,360, 10, 10) ctx.fillStyle = cor[3682];ctx.fillRect(820,360, 10, 10) ctx.fillStyle = cor[3683];ctx.fillRect(830,360, 10, 10) ctx.fillStyle = cor[3684];ctx.fillRect(840,360, 10, 10) ctx.fillStyle = cor[3685];ctx.fillRect(850,360, 10, 10) ctx.fillStyle = cor[3686];ctx.fillRect(860,360, 10, 10) ctx.fillStyle = cor[3687];ctx.fillRect(870,360, 10, 10) ctx.fillStyle = cor[3688];ctx.fillRect(880,360, 10, 10) ctx.fillStyle = cor[3689];ctx.fillRect(890,360, 10, 10) ctx.fillStyle = cor[3690];ctx.fillRect(900,360, 10, 10) ctx.fillStyle = cor[3691];ctx.fillRect(910,360, 10, 10) ctx.fillStyle = cor[3692];ctx.fillRect(920,360, 10, 10) ctx.fillStyle = cor[3693];ctx.fillRect(930,360, 10, 10) ctx.fillStyle = cor[3694];ctx.fillRect(940,360, 10, 10) ctx.fillStyle = cor[3695];ctx.fillRect(950,360, 10, 10) ctx.fillStyle = cor[3696];ctx.fillRect(960,360, 10, 10) ctx.fillStyle = cor[3697];ctx.fillRect(970,360, 10, 10) ctx.fillStyle = cor[3698];ctx.fillRect(980,360, 10, 10) ctx.fillStyle = cor[3699];ctx.fillRect(990,360, 10, 10) ctx.fillStyle = cor[3700];ctx.fillRect(0,370, 10, 10) ctx.fillStyle = cor[3701];ctx.fillRect(10,370, 10, 10) ctx.fillStyle = cor[3702];ctx.fillRect(20,370, 10, 10) ctx.fillStyle = cor[3703];ctx.fillRect(30,370, 10, 10) ctx.fillStyle = cor[3704];ctx.fillRect(40,370, 10, 10) ctx.fillStyle = cor[3705];ctx.fillRect(50,370, 10, 10) ctx.fillStyle = cor[3706];ctx.fillRect(60,370, 10, 10) ctx.fillStyle = cor[3707];ctx.fillRect(70,370, 10, 10) ctx.fillStyle = cor[3708];ctx.fillRect(80,370, 10, 10) ctx.fillStyle = cor[3709];ctx.fillRect(90,370, 10, 10) ctx.fillStyle = cor[3710];ctx.fillRect(100,370, 10, 10) ctx.fillStyle = cor[3711];ctx.fillRect(110,370, 10, 10) ctx.fillStyle = cor[3712];ctx.fillRect(120,370, 10, 10) ctx.fillStyle = cor[3713];ctx.fillRect(130,370, 10, 10) ctx.fillStyle = cor[3714];ctx.fillRect(140,370, 10, 10) ctx.fillStyle = cor[3715];ctx.fillRect(150,370, 10, 10) ctx.fillStyle = cor[3716];ctx.fillRect(160,370, 10, 10) ctx.fillStyle = cor[3717];ctx.fillRect(170,370, 10, 10) ctx.fillStyle = cor[3718];ctx.fillRect(180,370, 10, 10) ctx.fillStyle = cor[3719];ctx.fillRect(190,370, 10, 10) ctx.fillStyle = cor[3720];ctx.fillRect(200,370, 10, 10) ctx.fillStyle = cor[3721];ctx.fillRect(210,370, 10, 10) ctx.fillStyle = cor[3722];ctx.fillRect(220,370, 10, 10) ctx.fillStyle = cor[3723];ctx.fillRect(230,370, 10, 10) ctx.fillStyle = cor[3724];ctx.fillRect(240,370, 10, 10) ctx.fillStyle = cor[3725];ctx.fillRect(250,370, 10, 10) ctx.fillStyle = cor[3726];ctx.fillRect(260,370, 10, 10) ctx.fillStyle = cor[3727];ctx.fillRect(270,370, 10, 10) ctx.fillStyle = cor[3728];ctx.fillRect(280,370, 10, 10) ctx.fillStyle = cor[3729];ctx.fillRect(290,370, 10, 10) ctx.fillStyle = cor[3730];ctx.fillRect(300,370, 10, 10) ctx.fillStyle = cor[3731];ctx.fillRect(310,370, 10, 10) ctx.fillStyle = cor[3732];ctx.fillRect(320,370, 10, 10) ctx.fillStyle = cor[3733];ctx.fillRect(330,370, 10, 10) ctx.fillStyle = cor[3734];ctx.fillRect(340,370, 10, 10) ctx.fillStyle = cor[3735];ctx.fillRect(350,370, 10, 10) ctx.fillStyle = cor[3736];ctx.fillRect(360,370, 10, 10) ctx.fillStyle = cor[3737];ctx.fillRect(370,370, 10, 10) ctx.fillStyle = cor[3738];ctx.fillRect(380,370, 10, 10) ctx.fillStyle = cor[3739];ctx.fillRect(390,370, 10, 10) ctx.fillStyle = cor[3740];ctx.fillRect(400,370, 10, 10) ctx.fillStyle = cor[3741];ctx.fillRect(410,370, 10, 10) ctx.fillStyle = cor[3742];ctx.fillRect(420,370, 10, 10) ctx.fillStyle = cor[3743];ctx.fillRect(430,370, 10, 10) ctx.fillStyle = cor[3744];ctx.fillRect(440,370, 10, 10) ctx.fillStyle = cor[3745];ctx.fillRect(450,370, 10, 10) ctx.fillStyle = cor[3746];ctx.fillRect(460,370, 10, 10) ctx.fillStyle = cor[3747];ctx.fillRect(470,370, 10, 10) ctx.fillStyle = cor[3748];ctx.fillRect(480,370, 10, 10) ctx.fillStyle = cor[3749];ctx.fillRect(490,370, 10, 10) ctx.fillStyle = cor[3750];ctx.fillRect(500,370, 10, 10) ctx.fillStyle = cor[3751];ctx.fillRect(510,370, 10, 10) ctx.fillStyle = cor[3752];ctx.fillRect(520,370, 10, 10) ctx.fillStyle = cor[3753];ctx.fillRect(530,370, 10, 10) ctx.fillStyle = cor[3754];ctx.fillRect(540,370, 10, 10) ctx.fillStyle = cor[3755];ctx.fillRect(550,370, 10, 10) ctx.fillStyle = cor[3756];ctx.fillRect(560,370, 10, 10) ctx.fillStyle = cor[3757];ctx.fillRect(570,370, 10, 10) ctx.fillStyle = cor[3758];ctx.fillRect(580,370, 10, 10) ctx.fillStyle = cor[3759];ctx.fillRect(590,370, 10, 10) ctx.fillStyle = cor[3760];ctx.fillRect(600,370, 10, 10) ctx.fillStyle = cor[3761];ctx.fillRect(610,370, 10, 10) ctx.fillStyle = cor[3762];ctx.fillRect(620,370, 10, 10) ctx.fillStyle = cor[3763];ctx.fillRect(630,370, 10, 10) ctx.fillStyle = cor[3764];ctx.fillRect(640,370, 10, 10) ctx.fillStyle = cor[3765];ctx.fillRect(650,370, 10, 10) ctx.fillStyle = cor[3766];ctx.fillRect(660,370, 10, 10) ctx.fillStyle = cor[3767];ctx.fillRect(670,370, 10, 10) ctx.fillStyle = cor[3768];ctx.fillRect(680,370, 10, 10) ctx.fillStyle = cor[3769];ctx.fillRect(690,370, 10, 10) ctx.fillStyle = cor[3770];ctx.fillRect(700,370, 10, 10) ctx.fillStyle = cor[3771];ctx.fillRect(710,370, 10, 10) ctx.fillStyle = cor[3772];ctx.fillRect(720,370, 10, 10) ctx.fillStyle = cor[3773];ctx.fillRect(730,370, 10, 10) ctx.fillStyle = cor[3774];ctx.fillRect(740,370, 10, 10) ctx.fillStyle = cor[3775];ctx.fillRect(750,370, 10, 10) ctx.fillStyle = cor[3776];ctx.fillRect(760,370, 10, 10) ctx.fillStyle = cor[3777];ctx.fillRect(770,370, 10, 10) ctx.fillStyle = cor[3778];ctx.fillRect(780,370, 10, 10) ctx.fillStyle = cor[3779];ctx.fillRect(790,370, 10, 10) ctx.fillStyle = cor[3780];ctx.fillRect(800,370, 10, 10) ctx.fillStyle = cor[3781];ctx.fillRect(810,370, 10, 10) ctx.fillStyle = cor[3782];ctx.fillRect(820,370, 10, 10) ctx.fillStyle = cor[3783];ctx.fillRect(830,370, 10, 10) ctx.fillStyle = cor[3784];ctx.fillRect(840,370, 10, 10) ctx.fillStyle = cor[3785];ctx.fillRect(850,370, 10, 10) ctx.fillStyle = cor[3786];ctx.fillRect(860,370, 10, 10) ctx.fillStyle = cor[3787];ctx.fillRect(870,370, 10, 10) ctx.fillStyle = cor[3788];ctx.fillRect(880,370, 10, 10) ctx.fillStyle = cor[3789];ctx.fillRect(890,370, 10, 10) ctx.fillStyle = cor[3790];ctx.fillRect(900,370, 10, 10) ctx.fillStyle = cor[3791];ctx.fillRect(910,370, 10, 10) ctx.fillStyle = cor[3792];ctx.fillRect(920,370, 10, 10) ctx.fillStyle = cor[3793];ctx.fillRect(930,370, 10, 10) ctx.fillStyle = cor[3794];ctx.fillRect(940,370, 10, 10) ctx.fillStyle = cor[3795];ctx.fillRect(950,370, 10, 10) ctx.fillStyle = cor[3796];ctx.fillRect(960,370, 10, 10) ctx.fillStyle = cor[3797];ctx.fillRect(970,370, 10, 10) ctx.fillStyle = cor[3798];ctx.fillRect(980,370, 10, 10) ctx.fillStyle = cor[3799];ctx.fillRect(990,370, 10, 10) ctx.fillStyle = cor[3800];ctx.fillRect(0,380, 10, 10) ctx.fillStyle = cor[3801];ctx.fillRect(10,380, 10, 10) ctx.fillStyle = cor[3802];ctx.fillRect(20,380, 10, 10) ctx.fillStyle = cor[3803];ctx.fillRect(30,380, 10, 10) ctx.fillStyle = cor[3804];ctx.fillRect(40,380, 10, 10) ctx.fillStyle = cor[3805];ctx.fillRect(50,380, 10, 10) ctx.fillStyle = cor[3806];ctx.fillRect(60,380, 10, 10) ctx.fillStyle = cor[3807];ctx.fillRect(70,380, 10, 10) ctx.fillStyle = cor[3808];ctx.fillRect(80,380, 10, 10) ctx.fillStyle = cor[3809];ctx.fillRect(90,380, 10, 10) ctx.fillStyle = cor[3810];ctx.fillRect(100,380, 10, 10) ctx.fillStyle = cor[3811];ctx.fillRect(110,380, 10, 10) ctx.fillStyle = cor[3812];ctx.fillRect(120,380, 10, 10) ctx.fillStyle = cor[3813];ctx.fillRect(130,380, 10, 10) ctx.fillStyle = cor[3814];ctx.fillRect(140,380, 10, 10) ctx.fillStyle = cor[3815];ctx.fillRect(150,380, 10, 10) ctx.fillStyle = cor[3816];ctx.fillRect(160,380, 10, 10) ctx.fillStyle = cor[3817];ctx.fillRect(170,380, 10, 10) ctx.fillStyle = cor[3818];ctx.fillRect(180,380, 10, 10) ctx.fillStyle = cor[3819];ctx.fillRect(190,380, 10, 10) ctx.fillStyle = cor[3820];ctx.fillRect(200,380, 10, 10) ctx.fillStyle = cor[3821];ctx.fillRect(210,380, 10, 10) ctx.fillStyle = cor[3822];ctx.fillRect(220,380, 10, 10) ctx.fillStyle = cor[3823];ctx.fillRect(230,380, 10, 10) ctx.fillStyle = cor[3824];ctx.fillRect(240,380, 10, 10) ctx.fillStyle = cor[3825];ctx.fillRect(250,380, 10, 10) ctx.fillStyle = cor[3826];ctx.fillRect(260,380, 10, 10) ctx.fillStyle = cor[3827];ctx.fillRect(270,380, 10, 10) ctx.fillStyle = cor[3828];ctx.fillRect(280,380, 10, 10) ctx.fillStyle = cor[3829];ctx.fillRect(290,380, 10, 10) ctx.fillStyle = cor[3830];ctx.fillRect(300,380, 10, 10) ctx.fillStyle = cor[3831];ctx.fillRect(310,380, 10, 10) ctx.fillStyle = cor[3832];ctx.fillRect(320,380, 10, 10) ctx.fillStyle = cor[3833];ctx.fillRect(330,380, 10, 10) ctx.fillStyle = cor[3834];ctx.fillRect(340,380, 10, 10) ctx.fillStyle = cor[3835];ctx.fillRect(350,380, 10, 10) ctx.fillStyle = cor[3836];ctx.fillRect(360,380, 10, 10) ctx.fillStyle = cor[3837];ctx.fillRect(370,380, 10, 10) ctx.fillStyle = cor[3838];ctx.fillRect(380,380, 10, 10) ctx.fillStyle = cor[3839];ctx.fillRect(390,380, 10, 10) ctx.fillStyle = cor[3840];ctx.fillRect(400,380, 10, 10) ctx.fillStyle = cor[3841];ctx.fillRect(410,380, 10, 10) ctx.fillStyle = cor[3842];ctx.fillRect(420,380, 10, 10) ctx.fillStyle = cor[3843];ctx.fillRect(430,380, 10, 10) ctx.fillStyle = cor[3844];ctx.fillRect(440,380, 10, 10) ctx.fillStyle = cor[3845];ctx.fillRect(450,380, 10, 10) ctx.fillStyle = cor[3846];ctx.fillRect(460,380, 10, 10) ctx.fillStyle = cor[3847];ctx.fillRect(470,380, 10, 10) ctx.fillStyle = cor[3848];ctx.fillRect(480,380, 10, 10) ctx.fillStyle = cor[3849];ctx.fillRect(490,380, 10, 10) ctx.fillStyle = cor[3850];ctx.fillRect(500,380, 10, 10) ctx.fillStyle = cor[3851];ctx.fillRect(510,380, 10, 10) ctx.fillStyle = cor[3852];ctx.fillRect(520,380, 10, 10) ctx.fillStyle = cor[3853];ctx.fillRect(530,380, 10, 10) ctx.fillStyle = cor[3854];ctx.fillRect(540,380, 10, 10) ctx.fillStyle = cor[3855];ctx.fillRect(550,380, 10, 10) ctx.fillStyle = cor[3856];ctx.fillRect(560,380, 10, 10) ctx.fillStyle = cor[3857];ctx.fillRect(570,380, 10, 10) ctx.fillStyle = cor[3858];ctx.fillRect(580,380, 10, 10) ctx.fillStyle = cor[3859];ctx.fillRect(590,380, 10, 10) ctx.fillStyle = cor[3860];ctx.fillRect(600,380, 10, 10) ctx.fillStyle = cor[3861];ctx.fillRect(610,380, 10, 10) ctx.fillStyle = cor[3862];ctx.fillRect(620,380, 10, 10) ctx.fillStyle = cor[3863];ctx.fillRect(630,380, 10, 10) ctx.fillStyle = cor[3864];ctx.fillRect(640,380, 10, 10) ctx.fillStyle = cor[3865];ctx.fillRect(650,380, 10, 10) ctx.fillStyle = cor[3866];ctx.fillRect(660,380, 10, 10) ctx.fillStyle = cor[3867];ctx.fillRect(670,380, 10, 10) ctx.fillStyle = cor[3868];ctx.fillRect(680,380, 10, 10) ctx.fillStyle = cor[3869];ctx.fillRect(690,380, 10, 10) ctx.fillStyle = cor[3870];ctx.fillRect(700,380, 10, 10) ctx.fillStyle = cor[3871];ctx.fillRect(710,380, 10, 10) ctx.fillStyle = cor[3872];ctx.fillRect(720,380, 10, 10) ctx.fillStyle = cor[3873];ctx.fillRect(730,380, 10, 10) ctx.fillStyle = cor[3874];ctx.fillRect(740,380, 10, 10) ctx.fillStyle = cor[3875];ctx.fillRect(750,380, 10, 10) ctx.fillStyle = cor[3876];ctx.fillRect(760,380, 10, 10) ctx.fillStyle = cor[3877];ctx.fillRect(770,380, 10, 10) ctx.fillStyle = cor[3878];ctx.fillRect(780,380, 10, 10) ctx.fillStyle = cor[3879];ctx.fillRect(790,380, 10, 10) ctx.fillStyle = cor[3880];ctx.fillRect(800,380, 10, 10) ctx.fillStyle = cor[3881];ctx.fillRect(810,380, 10, 10) ctx.fillStyle = cor[3882];ctx.fillRect(820,380, 10, 10) ctx.fillStyle = cor[3883];ctx.fillRect(830,380, 10, 10) ctx.fillStyle = cor[3884];ctx.fillRect(840,380, 10, 10) ctx.fillStyle = cor[3885];ctx.fillRect(850,380, 10, 10) ctx.fillStyle = cor[3886];ctx.fillRect(860,380, 10, 10) ctx.fillStyle = cor[3887];ctx.fillRect(870,380, 10, 10) ctx.fillStyle = cor[3888];ctx.fillRect(880,380, 10, 10) ctx.fillStyle = cor[3889];ctx.fillRect(890,380, 10, 10) ctx.fillStyle = cor[3890];ctx.fillRect(900,380, 10, 10) ctx.fillStyle = cor[3891];ctx.fillRect(910,380, 10, 10) ctx.fillStyle = cor[3892];ctx.fillRect(920,380, 10, 10) ctx.fillStyle = cor[3893];ctx.fillRect(930,380, 10, 10) ctx.fillStyle = cor[3894];ctx.fillRect(940,380, 10, 10) ctx.fillStyle = cor[3895];ctx.fillRect(950,380, 10, 10) ctx.fillStyle = cor[3896];ctx.fillRect(960,380, 10, 10) ctx.fillStyle = cor[3897];ctx.fillRect(970,380, 10, 10) ctx.fillStyle = cor[3898];ctx.fillRect(980,380, 10, 10) ctx.fillStyle = cor[3899];ctx.fillRect(990,380, 10, 10) ctx.fillStyle = cor[3900];ctx.fillRect(0,390, 10, 10) ctx.fillStyle = cor[3901];ctx.fillRect(10,390, 10, 10) ctx.fillStyle = cor[3902];ctx.fillRect(20,390, 10, 10) ctx.fillStyle = cor[3903];ctx.fillRect(30,390, 10, 10) ctx.fillStyle = cor[3904];ctx.fillRect(40,390, 10, 10) ctx.fillStyle = cor[3905];ctx.fillRect(50,390, 10, 10) ctx.fillStyle = cor[3906];ctx.fillRect(60,390, 10, 10) ctx.fillStyle = cor[3907];ctx.fillRect(70,390, 10, 10) ctx.fillStyle = cor[3908];ctx.fillRect(80,390, 10, 10) ctx.fillStyle = cor[3909];ctx.fillRect(90,390, 10, 10) ctx.fillStyle = cor[3910];ctx.fillRect(100,390, 10, 10) ctx.fillStyle = cor[3911];ctx.fillRect(110,390, 10, 10) ctx.fillStyle = cor[3912];ctx.fillRect(120,390, 10, 10) ctx.fillStyle = cor[3913];ctx.fillRect(130,390, 10, 10) ctx.fillStyle = cor[3914];ctx.fillRect(140,390, 10, 10) ctx.fillStyle = cor[3915];ctx.fillRect(150,390, 10, 10) ctx.fillStyle = cor[3916];ctx.fillRect(160,390, 10, 10) ctx.fillStyle = cor[3917];ctx.fillRect(170,390, 10, 10) ctx.fillStyle = cor[3918];ctx.fillRect(180,390, 10, 10) ctx.fillStyle = cor[3919];ctx.fillRect(190,390, 10, 10) ctx.fillStyle = cor[3920];ctx.fillRect(200,390, 10, 10) ctx.fillStyle = cor[3921];ctx.fillRect(210,390, 10, 10) ctx.fillStyle = cor[3922];ctx.fillRect(220,390, 10, 10) ctx.fillStyle = cor[3923];ctx.fillRect(230,390, 10, 10) ctx.fillStyle = cor[3924];ctx.fillRect(240,390, 10, 10) ctx.fillStyle = cor[3925];ctx.fillRect(250,390, 10, 10) ctx.fillStyle = cor[3926];ctx.fillRect(260,390, 10, 10) ctx.fillStyle = cor[3927];ctx.fillRect(270,390, 10, 10) ctx.fillStyle = cor[3928];ctx.fillRect(280,390, 10, 10) ctx.fillStyle = cor[3929];ctx.fillRect(290,390, 10, 10) ctx.fillStyle = cor[3930];ctx.fillRect(300,390, 10, 10) ctx.fillStyle = cor[3931];ctx.fillRect(310,390, 10, 10) ctx.fillStyle = cor[3932];ctx.fillRect(320,390, 10, 10) ctx.fillStyle = cor[3933];ctx.fillRect(330,390, 10, 10) ctx.fillStyle = cor[3934];ctx.fillRect(340,390, 10, 10) ctx.fillStyle = cor[3935];ctx.fillRect(350,390, 10, 10) ctx.fillStyle = cor[3936];ctx.fillRect(360,390, 10, 10) ctx.fillStyle = cor[3937];ctx.fillRect(370,390, 10, 10) ctx.fillStyle = cor[3938];ctx.fillRect(380,390, 10, 10) ctx.fillStyle = cor[3939];ctx.fillRect(390,390, 10, 10) ctx.fillStyle = cor[3940];ctx.fillRect(400,390, 10, 10) ctx.fillStyle = cor[3941];ctx.fillRect(410,390, 10, 10) ctx.fillStyle = cor[3942];ctx.fillRect(420,390, 10, 10) ctx.fillStyle = cor[3943];ctx.fillRect(430,390, 10, 10) ctx.fillStyle = cor[3944];ctx.fillRect(440,390, 10, 10) ctx.fillStyle = cor[3945];ctx.fillRect(450,390, 10, 10) ctx.fillStyle = cor[3946];ctx.fillRect(460,390, 10, 10) ctx.fillStyle = cor[3947];ctx.fillRect(470,390, 10, 10) ctx.fillStyle = cor[3948];ctx.fillRect(480,390, 10, 10) ctx.fillStyle = cor[3949];ctx.fillRect(490,390, 10, 10) ctx.fillStyle = cor[3950];ctx.fillRect(500,390, 10, 10) ctx.fillStyle = cor[3951];ctx.fillRect(510,390, 10, 10) ctx.fillStyle = cor[3952];ctx.fillRect(520,390, 10, 10) ctx.fillStyle = cor[3953];ctx.fillRect(530,390, 10, 10) ctx.fillStyle = cor[3954];ctx.fillRect(540,390, 10, 10) ctx.fillStyle = cor[3955];ctx.fillRect(550,390, 10, 10) ctx.fillStyle = cor[3956];ctx.fillRect(560,390, 10, 10) ctx.fillStyle = cor[3957];ctx.fillRect(570,390, 10, 10) ctx.fillStyle = cor[3958];ctx.fillRect(580,390, 10, 10) ctx.fillStyle = cor[3959];ctx.fillRect(590,390, 10, 10) ctx.fillStyle = cor[3960];ctx.fillRect(600,390, 10, 10) ctx.fillStyle = cor[3961];ctx.fillRect(610,390, 10, 10) ctx.fillStyle = cor[3962];ctx.fillRect(620,390, 10, 10) ctx.fillStyle = cor[3963];ctx.fillRect(630,390, 10, 10) ctx.fillStyle = cor[3964];ctx.fillRect(640,390, 10, 10) ctx.fillStyle = cor[3965];ctx.fillRect(650,390, 10, 10) ctx.fillStyle = cor[3966];ctx.fillRect(660,390, 10, 10) ctx.fillStyle = cor[3967];ctx.fillRect(670,390, 10, 10) ctx.fillStyle = cor[3968];ctx.fillRect(680,390, 10, 10) ctx.fillStyle = cor[3969];ctx.fillRect(690,390, 10, 10) ctx.fillStyle = cor[3970];ctx.fillRect(700,390, 10, 10) ctx.fillStyle = cor[3971];ctx.fillRect(710,390, 10, 10) ctx.fillStyle = cor[3972];ctx.fillRect(720,390, 10, 10) ctx.fillStyle = cor[3973];ctx.fillRect(730,390, 10, 10) ctx.fillStyle = cor[3974];ctx.fillRect(740,390, 10, 10) ctx.fillStyle = cor[3975];ctx.fillRect(750,390, 10, 10) ctx.fillStyle = cor[3976];ctx.fillRect(760,390, 10, 10) ctx.fillStyle = cor[3977];ctx.fillRect(770,390, 10, 10) ctx.fillStyle = cor[3978];ctx.fillRect(780,390, 10, 10) ctx.fillStyle = cor[3979];ctx.fillRect(790,390, 10, 10) ctx.fillStyle = cor[3980];ctx.fillRect(800,390, 10, 10) ctx.fillStyle = cor[3981];ctx.fillRect(810,390, 10, 10) ctx.fillStyle = cor[3982];ctx.fillRect(820,390, 10, 10) ctx.fillStyle = cor[3983];ctx.fillRect(830,390, 10, 10) ctx.fillStyle = cor[3984];ctx.fillRect(840,390, 10, 10) ctx.fillStyle = cor[3985];ctx.fillRect(850,390, 10, 10) ctx.fillStyle = cor[3986];ctx.fillRect(860,390, 10, 10) ctx.fillStyle = cor[3987];ctx.fillRect(870,390, 10, 10) ctx.fillStyle = cor[3988];ctx.fillRect(880,390, 10, 10) ctx.fillStyle = cor[3989];ctx.fillRect(890,390, 10, 10) ctx.fillStyle = cor[3990];ctx.fillRect(900,390, 10, 10) ctx.fillStyle = cor[3991];ctx.fillRect(910,390, 10, 10) ctx.fillStyle = cor[3992];ctx.fillRect(920,390, 10, 10) ctx.fillStyle = cor[3993];ctx.fillRect(930,390, 10, 10) ctx.fillStyle = cor[3994];ctx.fillRect(940,390, 10, 10) ctx.fillStyle = cor[3995];ctx.fillRect(950,390, 10, 10) ctx.fillStyle = cor[3996];ctx.fillRect(960,390, 10, 10) ctx.fillStyle = cor[3997];ctx.fillRect(970,390, 10, 10) ctx.fillStyle = cor[3998];ctx.fillRect(980,390, 10, 10) ctx.fillStyle = cor[3999];ctx.fillRect(990,390, 10, 10) ctx.fillStyle = cor[4000];ctx.fillRect(0,400, 10, 10) ctx.fillStyle = cor[4001];ctx.fillRect(10,400, 10, 10) ctx.fillStyle = cor[4002];ctx.fillRect(20,400, 10, 10) ctx.fillStyle = cor[4003];ctx.fillRect(30,400, 10, 10) ctx.fillStyle = cor[4004];ctx.fillRect(40,400, 10, 10) ctx.fillStyle = cor[4005];ctx.fillRect(50,400, 10, 10) ctx.fillStyle = cor[4006];ctx.fillRect(60,400, 10, 10) ctx.fillStyle = cor[4007];ctx.fillRect(70,400, 10, 10) ctx.fillStyle = cor[4008];ctx.fillRect(80,400, 10, 10) ctx.fillStyle = cor[4009];ctx.fillRect(90,400, 10, 10) ctx.fillStyle = cor[4010];ctx.fillRect(100,400, 10, 10) ctx.fillStyle = cor[4011];ctx.fillRect(110,400, 10, 10) ctx.fillStyle = cor[4012];ctx.fillRect(120,400, 10, 10) ctx.fillStyle = cor[4013];ctx.fillRect(130,400, 10, 10) ctx.fillStyle = cor[4014];ctx.fillRect(140,400, 10, 10) ctx.fillStyle = cor[4015];ctx.fillRect(150,400, 10, 10) ctx.fillStyle = cor[4016];ctx.fillRect(160,400, 10, 10) ctx.fillStyle = cor[4017];ctx.fillRect(170,400, 10, 10) ctx.fillStyle = cor[4018];ctx.fillRect(180,400, 10, 10) ctx.fillStyle = cor[4019];ctx.fillRect(190,400, 10, 10) ctx.fillStyle = cor[4020];ctx.fillRect(200,400, 10, 10) ctx.fillStyle = cor[4021];ctx.fillRect(210,400, 10, 10) ctx.fillStyle = cor[4022];ctx.fillRect(220,400, 10, 10) ctx.fillStyle = cor[4023];ctx.fillRect(230,400, 10, 10) ctx.fillStyle = cor[4024];ctx.fillRect(240,400, 10, 10) ctx.fillStyle = cor[4025];ctx.fillRect(250,400, 10, 10) ctx.fillStyle = cor[4026];ctx.fillRect(260,400, 10, 10) ctx.fillStyle = cor[4027];ctx.fillRect(270,400, 10, 10) ctx.fillStyle = cor[4028];ctx.fillRect(280,400, 10, 10) ctx.fillStyle = cor[4029];ctx.fillRect(290,400, 10, 10) ctx.fillStyle = cor[4030];ctx.fillRect(300,400, 10, 10) ctx.fillStyle = cor[4031];ctx.fillRect(310,400, 10, 10) ctx.fillStyle = cor[4032];ctx.fillRect(320,400, 10, 10) ctx.fillStyle = cor[4033];ctx.fillRect(330,400, 10, 10) ctx.fillStyle = cor[4034];ctx.fillRect(340,400, 10, 10) ctx.fillStyle = cor[4035];ctx.fillRect(350,400, 10, 10) ctx.fillStyle = cor[4036];ctx.fillRect(360,400, 10, 10) ctx.fillStyle = cor[4037];ctx.fillRect(370,400, 10, 10) ctx.fillStyle = cor[4038];ctx.fillRect(380,400, 10, 10) ctx.fillStyle = cor[4039];ctx.fillRect(390,400, 10, 10) ctx.fillStyle = cor[4040];ctx.fillRect(400,400, 10, 10) ctx.fillStyle = cor[4041];ctx.fillRect(410,400, 10, 10) ctx.fillStyle = cor[4042];ctx.fillRect(420,400, 10, 10) ctx.fillStyle = cor[4043];ctx.fillRect(430,400, 10, 10) ctx.fillStyle = cor[4044];ctx.fillRect(440,400, 10, 10) ctx.fillStyle = cor[4045];ctx.fillRect(450,400, 10, 10) ctx.fillStyle = cor[4046];ctx.fillRect(460,400, 10, 10) ctx.fillStyle = cor[4047];ctx.fillRect(470,400, 10, 10) ctx.fillStyle = cor[4048];ctx.fillRect(480,400, 10, 10) ctx.fillStyle = cor[4049];ctx.fillRect(490,400, 10, 10) ctx.fillStyle = cor[4050];ctx.fillRect(500,400, 10, 10) ctx.fillStyle = cor[4051];ctx.fillRect(510,400, 10, 10) ctx.fillStyle = cor[4052];ctx.fillRect(520,400, 10, 10) ctx.fillStyle = cor[4053];ctx.fillRect(530,400, 10, 10) ctx.fillStyle = cor[4054];ctx.fillRect(540,400, 10, 10) ctx.fillStyle = cor[4055];ctx.fillRect(550,400, 10, 10) ctx.fillStyle = cor[4056];ctx.fillRect(560,400, 10, 10) ctx.fillStyle = cor[4057];ctx.fillRect(570,400, 10, 10) ctx.fillStyle = cor[4058];ctx.fillRect(580,400, 10, 10) ctx.fillStyle = cor[4059];ctx.fillRect(590,400, 10, 10) ctx.fillStyle = cor[4060];ctx.fillRect(600,400, 10, 10) ctx.fillStyle = cor[4061];ctx.fillRect(610,400, 10, 10) ctx.fillStyle = cor[4062];ctx.fillRect(620,400, 10, 10) ctx.fillStyle = cor[4063];ctx.fillRect(630,400, 10, 10) ctx.fillStyle = cor[4064];ctx.fillRect(640,400, 10, 10) ctx.fillStyle = cor[4065];ctx.fillRect(650,400, 10, 10) ctx.fillStyle = cor[4066];ctx.fillRect(660,400, 10, 10) ctx.fillStyle = cor[4067];ctx.fillRect(670,400, 10, 10) ctx.fillStyle = cor[4068];ctx.fillRect(680,400, 10, 10) ctx.fillStyle = cor[4069];ctx.fillRect(690,400, 10, 10) ctx.fillStyle = cor[4070];ctx.fillRect(700,400, 10, 10) ctx.fillStyle = cor[4071];ctx.fillRect(710,400, 10, 10) ctx.fillStyle = cor[4072];ctx.fillRect(720,400, 10, 10) ctx.fillStyle = cor[4073];ctx.fillRect(730,400, 10, 10) ctx.fillStyle = cor[4074];ctx.fillRect(740,400, 10, 10) ctx.fillStyle = cor[4075];ctx.fillRect(750,400, 10, 10) ctx.fillStyle = cor[4076];ctx.fillRect(760,400, 10, 10) ctx.fillStyle = cor[4077];ctx.fillRect(770,400, 10, 10) ctx.fillStyle = cor[4078];ctx.fillRect(780,400, 10, 10) ctx.fillStyle = cor[4079];ctx.fillRect(790,400, 10, 10) ctx.fillStyle = cor[4080];ctx.fillRect(800,400, 10, 10) ctx.fillStyle = cor[4081];ctx.fillRect(810,400, 10, 10) ctx.fillStyle = cor[4082];ctx.fillRect(820,400, 10, 10) ctx.fillStyle = cor[4083];ctx.fillRect(830,400, 10, 10) ctx.fillStyle = cor[4084];ctx.fillRect(840,400, 10, 10) ctx.fillStyle = cor[4085];ctx.fillRect(850,400, 10, 10) ctx.fillStyle = cor[4086];ctx.fillRect(860,400, 10, 10) ctx.fillStyle = cor[4087];ctx.fillRect(870,400, 10, 10) ctx.fillStyle = cor[4088];ctx.fillRect(880,400, 10, 10) ctx.fillStyle = cor[4089];ctx.fillRect(890,400, 10, 10) ctx.fillStyle = cor[4090];ctx.fillRect(900,400, 10, 10) ctx.fillStyle = cor[4091];ctx.fillRect(910,400, 10, 10) ctx.fillStyle = cor[4092];ctx.fillRect(920,400, 10, 10) ctx.fillStyle = cor[4093];ctx.fillRect(930,400, 10, 10) ctx.fillStyle = cor[4094];ctx.fillRect(940,400, 10, 10) ctx.fillStyle = cor[4095];ctx.fillRect(950,400, 10, 10) ctx.fillStyle = cor[4096];ctx.fillRect(960,400, 10, 10) ctx.fillStyle = cor[4097];ctx.fillRect(970,400, 10, 10) ctx.fillStyle = cor[4098];ctx.fillRect(980,400, 10, 10) ctx.fillStyle = cor[4099];ctx.fillRect(990,400, 10, 10) ctx.fillStyle = cor[4100];ctx.fillRect(0,410, 10, 10) ctx.fillStyle = cor[4101];ctx.fillRect(10,410, 10, 10) ctx.fillStyle = cor[4102];ctx.fillRect(20,410, 10, 10) ctx.fillStyle = cor[4103];ctx.fillRect(30,410, 10, 10) ctx.fillStyle = cor[4104];ctx.fillRect(40,410, 10, 10) ctx.fillStyle = cor[4105];ctx.fillRect(50,410, 10, 10) ctx.fillStyle = cor[4106];ctx.fillRect(60,410, 10, 10) ctx.fillStyle = cor[4107];ctx.fillRect(70,410, 10, 10) ctx.fillStyle = cor[4108];ctx.fillRect(80,410, 10, 10) ctx.fillStyle = cor[4109];ctx.fillRect(90,410, 10, 10) ctx.fillStyle = cor[4110];ctx.fillRect(100,410, 10, 10) ctx.fillStyle = cor[4111];ctx.fillRect(110,410, 10, 10) ctx.fillStyle = cor[4112];ctx.fillRect(120,410, 10, 10) ctx.fillStyle = cor[4113];ctx.fillRect(130,410, 10, 10) ctx.fillStyle = cor[4114];ctx.fillRect(140,410, 10, 10) ctx.fillStyle = cor[4115];ctx.fillRect(150,410, 10, 10) ctx.fillStyle = cor[4116];ctx.fillRect(160,410, 10, 10) ctx.fillStyle = cor[4117];ctx.fillRect(170,410, 10, 10) ctx.fillStyle = cor[4118];ctx.fillRect(180,410, 10, 10) ctx.fillStyle = cor[4119];ctx.fillRect(190,410, 10, 10) ctx.fillStyle = cor[4120];ctx.fillRect(200,410, 10, 10) ctx.fillStyle = cor[4121];ctx.fillRect(210,410, 10, 10) ctx.fillStyle = cor[4122];ctx.fillRect(220,410, 10, 10) ctx.fillStyle = cor[4123];ctx.fillRect(230,410, 10, 10) ctx.fillStyle = cor[4124];ctx.fillRect(240,410, 10, 10) ctx.fillStyle = cor[4125];ctx.fillRect(250,410, 10, 10) ctx.fillStyle = cor[4126];ctx.fillRect(260,410, 10, 10) ctx.fillStyle = cor[4127];ctx.fillRect(270,410, 10, 10) ctx.fillStyle = cor[4128];ctx.fillRect(280,410, 10, 10) ctx.fillStyle = cor[4129];ctx.fillRect(290,410, 10, 10) ctx.fillStyle = cor[4130];ctx.fillRect(300,410, 10, 10) ctx.fillStyle = cor[4131];ctx.fillRect(310,410, 10, 10) ctx.fillStyle = cor[4132];ctx.fillRect(320,410, 10, 10) ctx.fillStyle = cor[4133];ctx.fillRect(330,410, 10, 10) ctx.fillStyle = cor[4134];ctx.fillRect(340,410, 10, 10) ctx.fillStyle = cor[4135];ctx.fillRect(350,410, 10, 10) ctx.fillStyle = cor[4136];ctx.fillRect(360,410, 10, 10) ctx.fillStyle = cor[4137];ctx.fillRect(370,410, 10, 10) ctx.fillStyle = cor[4138];ctx.fillRect(380,410, 10, 10) ctx.fillStyle = cor[4139];ctx.fillRect(390,410, 10, 10) ctx.fillStyle = cor[4140];ctx.fillRect(400,410, 10, 10) ctx.fillStyle = cor[4141];ctx.fillRect(410,410, 10, 10) ctx.fillStyle = cor[4142];ctx.fillRect(420,410, 10, 10) ctx.fillStyle = cor[4143];ctx.fillRect(430,410, 10, 10) ctx.fillStyle = cor[4144];ctx.fillRect(440,410, 10, 10) ctx.fillStyle = cor[4145];ctx.fillRect(450,410, 10, 10) ctx.fillStyle = cor[4146];ctx.fillRect(460,410, 10, 10) ctx.fillStyle = cor[4147];ctx.fillRect(470,410, 10, 10) ctx.fillStyle = cor[4148];ctx.fillRect(480,410, 10, 10) ctx.fillStyle = cor[4149];ctx.fillRect(490,410, 10, 10) ctx.fillStyle = cor[4150];ctx.fillRect(500,410, 10, 10) ctx.fillStyle = cor[4151];ctx.fillRect(510,410, 10, 10) ctx.fillStyle = cor[4152];ctx.fillRect(520,410, 10, 10) ctx.fillStyle = cor[4153];ctx.fillRect(530,410, 10, 10) ctx.fillStyle = cor[4154];ctx.fillRect(540,410, 10, 10) ctx.fillStyle = cor[4155];ctx.fillRect(550,410, 10, 10) ctx.fillStyle = cor[4156];ctx.fillRect(560,410, 10, 10) ctx.fillStyle = cor[4157];ctx.fillRect(570,410, 10, 10) ctx.fillStyle = cor[4158];ctx.fillRect(580,410, 10, 10) ctx.fillStyle = cor[4159];ctx.fillRect(590,410, 10, 10) ctx.fillStyle = cor[4160];ctx.fillRect(600,410, 10, 10) ctx.fillStyle = cor[4161];ctx.fillRect(610,410, 10, 10) ctx.fillStyle = cor[4162];ctx.fillRect(620,410, 10, 10) ctx.fillStyle = cor[4163];ctx.fillRect(630,410, 10, 10) ctx.fillStyle = cor[4164];ctx.fillRect(640,410, 10, 10) ctx.fillStyle = cor[4165];ctx.fillRect(650,410, 10, 10) ctx.fillStyle = cor[4166];ctx.fillRect(660,410, 10, 10) ctx.fillStyle = cor[4167];ctx.fillRect(670,410, 10, 10) ctx.fillStyle = cor[4168];ctx.fillRect(680,410, 10, 10) ctx.fillStyle = cor[4169];ctx.fillRect(690,410, 10, 10) ctx.fillStyle = cor[4170];ctx.fillRect(700,410, 10, 10) ctx.fillStyle = cor[4171];ctx.fillRect(710,410, 10, 10) ctx.fillStyle = cor[4172];ctx.fillRect(720,410, 10, 10) ctx.fillStyle = cor[4173];ctx.fillRect(730,410, 10, 10) ctx.fillStyle = cor[4174];ctx.fillRect(740,410, 10, 10) ctx.fillStyle = cor[4175];ctx.fillRect(750,410, 10, 10) ctx.fillStyle = cor[4176];ctx.fillRect(760,410, 10, 10) ctx.fillStyle = cor[4177];ctx.fillRect(770,410, 10, 10) ctx.fillStyle = cor[4178];ctx.fillRect(780,410, 10, 10) ctx.fillStyle = cor[4179];ctx.fillRect(790,410, 10, 10) ctx.fillStyle = cor[4180];ctx.fillRect(800,410, 10, 10) ctx.fillStyle = cor[4181];ctx.fillRect(810,410, 10, 10) ctx.fillStyle = cor[4182];ctx.fillRect(820,410, 10, 10) ctx.fillStyle = cor[4183];ctx.fillRect(830,410, 10, 10) ctx.fillStyle = cor[4184];ctx.fillRect(840,410, 10, 10) ctx.fillStyle = cor[4185];ctx.fillRect(850,410, 10, 10) ctx.fillStyle = cor[4186];ctx.fillRect(860,410, 10, 10) ctx.fillStyle = cor[4187];ctx.fillRect(870,410, 10, 10) ctx.fillStyle = cor[4188];ctx.fillRect(880,410, 10, 10) ctx.fillStyle = cor[4189];ctx.fillRect(890,410, 10, 10) ctx.fillStyle = cor[4190];ctx.fillRect(900,410, 10, 10) ctx.fillStyle = cor[4191];ctx.fillRect(910,410, 10, 10) ctx.fillStyle = cor[4192];ctx.fillRect(920,410, 10, 10) ctx.fillStyle = cor[4193];ctx.fillRect(930,410, 10, 10) ctx.fillStyle = cor[4194];ctx.fillRect(940,410, 10, 10) ctx.fillStyle = cor[4195];ctx.fillRect(950,410, 10, 10) ctx.fillStyle = cor[4196];ctx.fillRect(960,410, 10, 10) ctx.fillStyle = cor[4197];ctx.fillRect(970,410, 10, 10) ctx.fillStyle = cor[4198];ctx.fillRect(980,410, 10, 10) ctx.fillStyle = cor[4199];ctx.fillRect(990,410, 10, 10) ctx.fillStyle = cor[4200];ctx.fillRect(0,420, 10, 10) ctx.fillStyle = cor[4201];ctx.fillRect(10,420, 10, 10) ctx.fillStyle = cor[4202];ctx.fillRect(20,420, 10, 10) ctx.fillStyle = cor[4203];ctx.fillRect(30,420, 10, 10) ctx.fillStyle = cor[4204];ctx.fillRect(40,420, 10, 10) ctx.fillStyle = cor[4205];ctx.fillRect(50,420, 10, 10) ctx.fillStyle = cor[4206];ctx.fillRect(60,420, 10, 10) ctx.fillStyle = cor[4207];ctx.fillRect(70,420, 10, 10) ctx.fillStyle = cor[4208];ctx.fillRect(80,420, 10, 10) ctx.fillStyle = cor[4209];ctx.fillRect(90,420, 10, 10) ctx.fillStyle = cor[4210];ctx.fillRect(100,420, 10, 10) ctx.fillStyle = cor[4211];ctx.fillRect(110,420, 10, 10) ctx.fillStyle = cor[4212];ctx.fillRect(120,420, 10, 10) ctx.fillStyle = cor[4213];ctx.fillRect(130,420, 10, 10) ctx.fillStyle = cor[4214];ctx.fillRect(140,420, 10, 10) ctx.fillStyle = cor[4215];ctx.fillRect(150,420, 10, 10) ctx.fillStyle = cor[4216];ctx.fillRect(160,420, 10, 10) ctx.fillStyle = cor[4217];ctx.fillRect(170,420, 10, 10) ctx.fillStyle = cor[4218];ctx.fillRect(180,420, 10, 10) ctx.fillStyle = cor[4219];ctx.fillRect(190,420, 10, 10) ctx.fillStyle = cor[4220];ctx.fillRect(200,420, 10, 10) ctx.fillStyle = cor[4221];ctx.fillRect(210,420, 10, 10) ctx.fillStyle = cor[4222];ctx.fillRect(220,420, 10, 10) ctx.fillStyle = cor[4223];ctx.fillRect(230,420, 10, 10) ctx.fillStyle = cor[4224];ctx.fillRect(240,420, 10, 10) ctx.fillStyle = cor[4225];ctx.fillRect(250,420, 10, 10) ctx.fillStyle = cor[4226];ctx.fillRect(260,420, 10, 10) ctx.fillStyle = cor[4227];ctx.fillRect(270,420, 10, 10) ctx.fillStyle = cor[4228];ctx.fillRect(280,420, 10, 10) ctx.fillStyle = cor[4229];ctx.fillRect(290,420, 10, 10) ctx.fillStyle = cor[4230];ctx.fillRect(300,420, 10, 10) ctx.fillStyle = cor[4231];ctx.fillRect(310,420, 10, 10) ctx.fillStyle = cor[4232];ctx.fillRect(320,420, 10, 10) ctx.fillStyle = cor[4233];ctx.fillRect(330,420, 10, 10) ctx.fillStyle = cor[4234];ctx.fillRect(340,420, 10, 10) ctx.fillStyle = cor[4235];ctx.fillRect(350,420, 10, 10) ctx.fillStyle = cor[4236];ctx.fillRect(360,420, 10, 10) ctx.fillStyle = cor[4237];ctx.fillRect(370,420, 10, 10) ctx.fillStyle = cor[4238];ctx.fillRect(380,420, 10, 10) ctx.fillStyle = cor[4239];ctx.fillRect(390,420, 10, 10) ctx.fillStyle = cor[4240];ctx.fillRect(400,420, 10, 10) ctx.fillStyle = cor[4241];ctx.fillRect(410,420, 10, 10) ctx.fillStyle = cor[4242];ctx.fillRect(420,420, 10, 10) ctx.fillStyle = cor[4243];ctx.fillRect(430,420, 10, 10) ctx.fillStyle = cor[4244];ctx.fillRect(440,420, 10, 10) ctx.fillStyle = cor[4245];ctx.fillRect(450,420, 10, 10) ctx.fillStyle = cor[4246];ctx.fillRect(460,420, 10, 10) ctx.fillStyle = cor[4247];ctx.fillRect(470,420, 10, 10) ctx.fillStyle = cor[4248];ctx.fillRect(480,420, 10, 10) ctx.fillStyle = cor[4249];ctx.fillRect(490,420, 10, 10) ctx.fillStyle = cor[4250];ctx.fillRect(500,420, 10, 10) ctx.fillStyle = cor[4251];ctx.fillRect(510,420, 10, 10) ctx.fillStyle = cor[4252];ctx.fillRect(520,420, 10, 10) ctx.fillStyle = cor[4253];ctx.fillRect(530,420, 10, 10) ctx.fillStyle = cor[4254];ctx.fillRect(540,420, 10, 10) ctx.fillStyle = cor[4255];ctx.fillRect(550,420, 10, 10) ctx.fillStyle = cor[4256];ctx.fillRect(560,420, 10, 10) ctx.fillStyle = cor[4257];ctx.fillRect(570,420, 10, 10) ctx.fillStyle = cor[4258];ctx.fillRect(580,420, 10, 10) ctx.fillStyle = cor[4259];ctx.fillRect(590,420, 10, 10) ctx.fillStyle = cor[4260];ctx.fillRect(600,420, 10, 10) ctx.fillStyle = cor[4261];ctx.fillRect(610,420, 10, 10) ctx.fillStyle = cor[4262];ctx.fillRect(620,420, 10, 10) ctx.fillStyle = cor[4263];ctx.fillRect(630,420, 10, 10) ctx.fillStyle = cor[4264];ctx.fillRect(640,420, 10, 10) ctx.fillStyle = cor[4265];ctx.fillRect(650,420, 10, 10) ctx.fillStyle = cor[4266];ctx.fillRect(660,420, 10, 10) ctx.fillStyle = cor[4267];ctx.fillRect(670,420, 10, 10) ctx.fillStyle = cor[4268];ctx.fillRect(680,420, 10, 10) ctx.fillStyle = cor[4269];ctx.fillRect(690,420, 10, 10) ctx.fillStyle = cor[4270];ctx.fillRect(700,420, 10, 10) ctx.fillStyle = cor[4271];ctx.fillRect(710,420, 10, 10) ctx.fillStyle = cor[4272];ctx.fillRect(720,420, 10, 10) ctx.fillStyle = cor[4273];ctx.fillRect(730,420, 10, 10) ctx.fillStyle = cor[4274];ctx.fillRect(740,420, 10, 10) ctx.fillStyle = cor[4275];ctx.fillRect(750,420, 10, 10) ctx.fillStyle = cor[4276];ctx.fillRect(760,420, 10, 10) ctx.fillStyle = cor[4277];ctx.fillRect(770,420, 10, 10) ctx.fillStyle = cor[4278];ctx.fillRect(780,420, 10, 10) ctx.fillStyle = cor[4279];ctx.fillRect(790,420, 10, 10) ctx.fillStyle = cor[4280];ctx.fillRect(800,420, 10, 10) ctx.fillStyle = cor[4281];ctx.fillRect(810,420, 10, 10) ctx.fillStyle = cor[4282];ctx.fillRect(820,420, 10, 10) ctx.fillStyle = cor[4283];ctx.fillRect(830,420, 10, 10) ctx.fillStyle = cor[4284];ctx.fillRect(840,420, 10, 10) ctx.fillStyle = cor[4285];ctx.fillRect(850,420, 10, 10) ctx.fillStyle = cor[4286];ctx.fillRect(860,420, 10, 10) ctx.fillStyle = cor[4287];ctx.fillRect(870,420, 10, 10) ctx.fillStyle = cor[4288];ctx.fillRect(880,420, 10, 10) ctx.fillStyle = cor[4289];ctx.fillRect(890,420, 10, 10) ctx.fillStyle = cor[4290];ctx.fillRect(900,420, 10, 10) ctx.fillStyle = cor[4291];ctx.fillRect(910,420, 10, 10) ctx.fillStyle = cor[4292];ctx.fillRect(920,420, 10, 10) ctx.fillStyle = cor[4293];ctx.fillRect(930,420, 10, 10) ctx.fillStyle = cor[4294];ctx.fillRect(940,420, 10, 10) ctx.fillStyle = cor[4295];ctx.fillRect(950,420, 10, 10) ctx.fillStyle = cor[4296];ctx.fillRect(960,420, 10, 10) ctx.fillStyle = cor[4297];ctx.fillRect(970,420, 10, 10) ctx.fillStyle = cor[4298];ctx.fillRect(980,420, 10, 10) ctx.fillStyle = cor[4299];ctx.fillRect(990,420, 10, 10) ctx.fillStyle = cor[4300];ctx.fillRect(0,430, 10, 10) ctx.fillStyle = cor[4301];ctx.fillRect(10,430, 10, 10) ctx.fillStyle = cor[4302];ctx.fillRect(20,430, 10, 10) ctx.fillStyle = cor[4303];ctx.fillRect(30,430, 10, 10) ctx.fillStyle = cor[4304];ctx.fillRect(40,430, 10, 10) ctx.fillStyle = cor[4305];ctx.fillRect(50,430, 10, 10) ctx.fillStyle = cor[4306];ctx.fillRect(60,430, 10, 10) ctx.fillStyle = cor[4307];ctx.fillRect(70,430, 10, 10) ctx.fillStyle = cor[4308];ctx.fillRect(80,430, 10, 10) ctx.fillStyle = cor[4309];ctx.fillRect(90,430, 10, 10) ctx.fillStyle = cor[4310];ctx.fillRect(100,430, 10, 10) ctx.fillStyle = cor[4311];ctx.fillRect(110,430, 10, 10) ctx.fillStyle = cor[4312];ctx.fillRect(120,430, 10, 10) ctx.fillStyle = cor[4313];ctx.fillRect(130,430, 10, 10) ctx.fillStyle = cor[4314];ctx.fillRect(140,430, 10, 10) ctx.fillStyle = cor[4315];ctx.fillRect(150,430, 10, 10) ctx.fillStyle = cor[4316];ctx.fillRect(160,430, 10, 10) ctx.fillStyle = cor[4317];ctx.fillRect(170,430, 10, 10) ctx.fillStyle = cor[4318];ctx.fillRect(180,430, 10, 10) ctx.fillStyle = cor[4319];ctx.fillRect(190,430, 10, 10) ctx.fillStyle = cor[4320];ctx.fillRect(200,430, 10, 10) ctx.fillStyle = cor[4321];ctx.fillRect(210,430, 10, 10) ctx.fillStyle = cor[4322];ctx.fillRect(220,430, 10, 10) ctx.fillStyle = cor[4323];ctx.fillRect(230,430, 10, 10) ctx.fillStyle = cor[4324];ctx.fillRect(240,430, 10, 10) ctx.fillStyle = cor[4325];ctx.fillRect(250,430, 10, 10) ctx.fillStyle = cor[4326];ctx.fillRect(260,430, 10, 10) ctx.fillStyle = cor[4327];ctx.fillRect(270,430, 10, 10) ctx.fillStyle = cor[4328];ctx.fillRect(280,430, 10, 10) ctx.fillStyle = cor[4329];ctx.fillRect(290,430, 10, 10) ctx.fillStyle = cor[4330];ctx.fillRect(300,430, 10, 10) ctx.fillStyle = cor[4331];ctx.fillRect(310,430, 10, 10) ctx.fillStyle = cor[4332];ctx.fillRect(320,430, 10, 10) ctx.fillStyle = cor[4333];ctx.fillRect(330,430, 10, 10) ctx.fillStyle = cor[4334];ctx.fillRect(340,430, 10, 10) ctx.fillStyle = cor[4335];ctx.fillRect(350,430, 10, 10) ctx.fillStyle = cor[4336];ctx.fillRect(360,430, 10, 10) ctx.fillStyle = cor[4337];ctx.fillRect(370,430, 10, 10) ctx.fillStyle = cor[4338];ctx.fillRect(380,430, 10, 10) ctx.fillStyle = cor[4339];ctx.fillRect(390,430, 10, 10) ctx.fillStyle = cor[4340];ctx.fillRect(400,430, 10, 10) ctx.fillStyle = cor[4341];ctx.fillRect(410,430, 10, 10) ctx.fillStyle = cor[4342];ctx.fillRect(420,430, 10, 10) ctx.fillStyle = cor[4343];ctx.fillRect(430,430, 10, 10) ctx.fillStyle = cor[4344];ctx.fillRect(440,430, 10, 10) ctx.fillStyle = cor[4345];ctx.fillRect(450,430, 10, 10) ctx.fillStyle = cor[4346];ctx.fillRect(460,430, 10, 10) ctx.fillStyle = cor[4347];ctx.fillRect(470,430, 10, 10) ctx.fillStyle = cor[4348];ctx.fillRect(480,430, 10, 10) ctx.fillStyle = cor[4349];ctx.fillRect(490,430, 10, 10) ctx.fillStyle = cor[4350];ctx.fillRect(500,430, 10, 10) ctx.fillStyle = cor[4351];ctx.fillRect(510,430, 10, 10) ctx.fillStyle = cor[4352];ctx.fillRect(520,430, 10, 10) ctx.fillStyle = cor[4353];ctx.fillRect(530,430, 10, 10) ctx.fillStyle = cor[4354];ctx.fillRect(540,430, 10, 10) ctx.fillStyle = cor[4355];ctx.fillRect(550,430, 10, 10) ctx.fillStyle = cor[4356];ctx.fillRect(560,430, 10, 10) ctx.fillStyle = cor[4357];ctx.fillRect(570,430, 10, 10) ctx.fillStyle = cor[4358];ctx.fillRect(580,430, 10, 10) ctx.fillStyle = cor[4359];ctx.fillRect(590,430, 10, 10) ctx.fillStyle = cor[4360];ctx.fillRect(600,430, 10, 10) ctx.fillStyle = cor[4361];ctx.fillRect(610,430, 10, 10) ctx.fillStyle = cor[4362];ctx.fillRect(620,430, 10, 10) ctx.fillStyle = cor[4363];ctx.fillRect(630,430, 10, 10) ctx.fillStyle = cor[4364];ctx.fillRect(640,430, 10, 10) ctx.fillStyle = cor[4365];ctx.fillRect(650,430, 10, 10) ctx.fillStyle = cor[4366];ctx.fillRect(660,430, 10, 10) ctx.fillStyle = cor[4367];ctx.fillRect(670,430, 10, 10) ctx.fillStyle = cor[4368];ctx.fillRect(680,430, 10, 10) ctx.fillStyle = cor[4369];ctx.fillRect(690,430, 10, 10) ctx.fillStyle = cor[4370];ctx.fillRect(700,430, 10, 10) ctx.fillStyle = cor[4371];ctx.fillRect(710,430, 10, 10) ctx.fillStyle = cor[4372];ctx.fillRect(720,430, 10, 10) ctx.fillStyle = cor[4373];ctx.fillRect(730,430, 10, 10) ctx.fillStyle = cor[4374];ctx.fillRect(740,430, 10, 10) ctx.fillStyle = cor[4375];ctx.fillRect(750,430, 10, 10) ctx.fillStyle = cor[4376];ctx.fillRect(760,430, 10, 10) ctx.fillStyle = cor[4377];ctx.fillRect(770,430, 10, 10) ctx.fillStyle = cor[4378];ctx.fillRect(780,430, 10, 10) ctx.fillStyle = cor[4379];ctx.fillRect(790,430, 10, 10) ctx.fillStyle = cor[4380];ctx.fillRect(800,430, 10, 10) ctx.fillStyle = cor[4381];ctx.fillRect(810,430, 10, 10) ctx.fillStyle = cor[4382];ctx.fillRect(820,430, 10, 10) ctx.fillStyle = cor[4383];ctx.fillRect(830,430, 10, 10) ctx.fillStyle = cor[4384];ctx.fillRect(840,430, 10, 10) ctx.fillStyle = cor[4385];ctx.fillRect(850,430, 10, 10) ctx.fillStyle = cor[4386];ctx.fillRect(860,430, 10, 10) ctx.fillStyle = cor[4387];ctx.fillRect(870,430, 10, 10) ctx.fillStyle = cor[4388];ctx.fillRect(880,430, 10, 10) ctx.fillStyle = cor[4389];ctx.fillRect(890,430, 10, 10) ctx.fillStyle = cor[4390];ctx.fillRect(900,430, 10, 10) ctx.fillStyle = cor[4391];ctx.fillRect(910,430, 10, 10) ctx.fillStyle = cor[4392];ctx.fillRect(920,430, 10, 10) ctx.fillStyle = cor[4393];ctx.fillRect(930,430, 10, 10) ctx.fillStyle = cor[4394];ctx.fillRect(940,430, 10, 10) ctx.fillStyle = cor[4395];ctx.fillRect(950,430, 10, 10) ctx.fillStyle = cor[4396];ctx.fillRect(960,430, 10, 10) ctx.fillStyle = cor[4397];ctx.fillRect(970,430, 10, 10) ctx.fillStyle = cor[4398];ctx.fillRect(980,430, 10, 10) ctx.fillStyle = cor[4399];ctx.fillRect(990,430, 10, 10) ctx.fillStyle = cor[4400];ctx.fillRect(0,440, 10, 10) ctx.fillStyle = cor[4401];ctx.fillRect(10,440, 10, 10) ctx.fillStyle = cor[4402];ctx.fillRect(20,440, 10, 10) ctx.fillStyle = cor[4403];ctx.fillRect(30,440, 10, 10) ctx.fillStyle = cor[4404];ctx.fillRect(40,440, 10, 10) ctx.fillStyle = cor[4405];ctx.fillRect(50,440, 10, 10) ctx.fillStyle = cor[4406];ctx.fillRect(60,440, 10, 10) ctx.fillStyle = cor[4407];ctx.fillRect(70,440, 10, 10) ctx.fillStyle = cor[4408];ctx.fillRect(80,440, 10, 10) ctx.fillStyle = cor[4409];ctx.fillRect(90,440, 10, 10) ctx.fillStyle = cor[4410];ctx.fillRect(100,440, 10, 10) ctx.fillStyle = cor[4411];ctx.fillRect(110,440, 10, 10) ctx.fillStyle = cor[4412];ctx.fillRect(120,440, 10, 10) ctx.fillStyle = cor[4413];ctx.fillRect(130,440, 10, 10) ctx.fillStyle = cor[4414];ctx.fillRect(140,440, 10, 10) ctx.fillStyle = cor[4415];ctx.fillRect(150,440, 10, 10) ctx.fillStyle = cor[4416];ctx.fillRect(160,440, 10, 10) ctx.fillStyle = cor[4417];ctx.fillRect(170,440, 10, 10) ctx.fillStyle = cor[4418];ctx.fillRect(180,440, 10, 10) ctx.fillStyle = cor[4419];ctx.fillRect(190,440, 10, 10) ctx.fillStyle = cor[4420];ctx.fillRect(200,440, 10, 10) ctx.fillStyle = cor[4421];ctx.fillRect(210,440, 10, 10) ctx.fillStyle = cor[4422];ctx.fillRect(220,440, 10, 10) ctx.fillStyle = cor[4423];ctx.fillRect(230,440, 10, 10) ctx.fillStyle = cor[4424];ctx.fillRect(240,440, 10, 10) ctx.fillStyle = cor[4425];ctx.fillRect(250,440, 10, 10) ctx.fillStyle = cor[4426];ctx.fillRect(260,440, 10, 10) ctx.fillStyle = cor[4427];ctx.fillRect(270,440, 10, 10) ctx.fillStyle = cor[4428];ctx.fillRect(280,440, 10, 10) ctx.fillStyle = cor[4429];ctx.fillRect(290,440, 10, 10) ctx.fillStyle = cor[4430];ctx.fillRect(300,440, 10, 10) ctx.fillStyle = cor[4431];ctx.fillRect(310,440, 10, 10) ctx.fillStyle = cor[4432];ctx.fillRect(320,440, 10, 10) ctx.fillStyle = cor[4433];ctx.fillRect(330,440, 10, 10) ctx.fillStyle = cor[4434];ctx.fillRect(340,440, 10, 10) ctx.fillStyle = cor[4435];ctx.fillRect(350,440, 10, 10) ctx.fillStyle = cor[4436];ctx.fillRect(360,440, 10, 10) ctx.fillStyle = cor[4437];ctx.fillRect(370,440, 10, 10) ctx.fillStyle = cor[4438];ctx.fillRect(380,440, 10, 10) ctx.fillStyle = cor[4439];ctx.fillRect(390,440, 10, 10) ctx.fillStyle = cor[4440];ctx.fillRect(400,440, 10, 10) ctx.fillStyle = cor[4441];ctx.fillRect(410,440, 10, 10) ctx.fillStyle = cor[4442];ctx.fillRect(420,440, 10, 10) ctx.fillStyle = cor[4443];ctx.fillRect(430,440, 10, 10) ctx.fillStyle = cor[4444];ctx.fillRect(440,440, 10, 10) ctx.fillStyle = cor[4445];ctx.fillRect(450,440, 10, 10) ctx.fillStyle = cor[4446];ctx.fillRect(460,440, 10, 10) ctx.fillStyle = cor[4447];ctx.fillRect(470,440, 10, 10) ctx.fillStyle = cor[4448];ctx.fillRect(480,440, 10, 10) ctx.fillStyle = cor[4449];ctx.fillRect(490,440, 10, 10) ctx.fillStyle = cor[4450];ctx.fillRect(500,440, 10, 10) ctx.fillStyle = cor[4451];ctx.fillRect(510,440, 10, 10) ctx.fillStyle = cor[4452];ctx.fillRect(520,440, 10, 10) ctx.fillStyle = cor[4453];ctx.fillRect(530,440, 10, 10) ctx.fillStyle = cor[4454];ctx.fillRect(540,440, 10, 10) ctx.fillStyle = cor[4455];ctx.fillRect(550,440, 10, 10) ctx.fillStyle = cor[4456];ctx.fillRect(560,440, 10, 10) ctx.fillStyle = cor[4457];ctx.fillRect(570,440, 10, 10) ctx.fillStyle = cor[4458];ctx.fillRect(580,440, 10, 10) ctx.fillStyle = cor[4459];ctx.fillRect(590,440, 10, 10) ctx.fillStyle = cor[4460];ctx.fillRect(600,440, 10, 10) ctx.fillStyle = cor[4461];ctx.fillRect(610,440, 10, 10) ctx.fillStyle = cor[4462];ctx.fillRect(620,440, 10, 10) ctx.fillStyle = cor[4463];ctx.fillRect(630,440, 10, 10) ctx.fillStyle = cor[4464];ctx.fillRect(640,440, 10, 10) ctx.fillStyle = cor[4465];ctx.fillRect(650,440, 10, 10) ctx.fillStyle = cor[4466];ctx.fillRect(660,440, 10, 10) ctx.fillStyle = cor[4467];ctx.fillRect(670,440, 10, 10) ctx.fillStyle = cor[4468];ctx.fillRect(680,440, 10, 10) ctx.fillStyle = cor[4469];ctx.fillRect(690,440, 10, 10) ctx.fillStyle = cor[4470];ctx.fillRect(700,440, 10, 10) ctx.fillStyle = cor[4471];ctx.fillRect(710,440, 10, 10) ctx.fillStyle = cor[4472];ctx.fillRect(720,440, 10, 10) ctx.fillStyle = cor[4473];ctx.fillRect(730,440, 10, 10) ctx.fillStyle = cor[4474];ctx.fillRect(740,440, 10, 10) ctx.fillStyle = cor[4475];ctx.fillRect(750,440, 10, 10) ctx.fillStyle = cor[4476];ctx.fillRect(760,440, 10, 10) ctx.fillStyle = cor[4477];ctx.fillRect(770,440, 10, 10) ctx.fillStyle = cor[4478];ctx.fillRect(780,440, 10, 10) ctx.fillStyle = cor[4479];ctx.fillRect(790,440, 10, 10) ctx.fillStyle = cor[4480];ctx.fillRect(800,440, 10, 10) ctx.fillStyle = cor[4481];ctx.fillRect(810,440, 10, 10) ctx.fillStyle = cor[4482];ctx.fillRect(820,440, 10, 10) ctx.fillStyle = cor[4483];ctx.fillRect(830,440, 10, 10) ctx.fillStyle = cor[4484];ctx.fillRect(840,440, 10, 10) ctx.fillStyle = cor[4485];ctx.fillRect(850,440, 10, 10) ctx.fillStyle = cor[4486];ctx.fillRect(860,440, 10, 10) ctx.fillStyle = cor[4487];ctx.fillRect(870,440, 10, 10) ctx.fillStyle = cor[4488];ctx.fillRect(880,440, 10, 10) ctx.fillStyle = cor[4489];ctx.fillRect(890,440, 10, 10) ctx.fillStyle = cor[4490];ctx.fillRect(900,440, 10, 10) ctx.fillStyle = cor[4491];ctx.fillRect(910,440, 10, 10) ctx.fillStyle = cor[4492];ctx.fillRect(920,440, 10, 10) ctx.fillStyle = cor[4493];ctx.fillRect(930,440, 10, 10) ctx.fillStyle = cor[4494];ctx.fillRect(940,440, 10, 10) ctx.fillStyle = cor[4495];ctx.fillRect(950,440, 10, 10) ctx.fillStyle = cor[4496];ctx.fillRect(960,440, 10, 10) ctx.fillStyle = cor[4497];ctx.fillRect(970,440, 10, 10) ctx.fillStyle = cor[4498];ctx.fillRect(980,440, 10, 10) ctx.fillStyle = cor[4499];ctx.fillRect(990,440, 10, 10) ctx.fillStyle = cor[4500];ctx.fillRect(0,450, 10, 10) ctx.fillStyle = cor[4501];ctx.fillRect(10,450, 10, 10) ctx.fillStyle = cor[4502];ctx.fillRect(20,450, 10, 10) ctx.fillStyle = cor[4503];ctx.fillRect(30,450, 10, 10) ctx.fillStyle = cor[4504];ctx.fillRect(40,450, 10, 10) ctx.fillStyle = cor[4505];ctx.fillRect(50,450, 10, 10) ctx.fillStyle = cor[4506];ctx.fillRect(60,450, 10, 10) ctx.fillStyle = cor[4507];ctx.fillRect(70,450, 10, 10) ctx.fillStyle = cor[4508];ctx.fillRect(80,450, 10, 10) ctx.fillStyle = cor[4509];ctx.fillRect(90,450, 10, 10) ctx.fillStyle = cor[4510];ctx.fillRect(100,450, 10, 10) ctx.fillStyle = cor[4511];ctx.fillRect(110,450, 10, 10) ctx.fillStyle = cor[4512];ctx.fillRect(120,450, 10, 10) ctx.fillStyle = cor[4513];ctx.fillRect(130,450, 10, 10) ctx.fillStyle = cor[4514];ctx.fillRect(140,450, 10, 10) ctx.fillStyle = cor[4515];ctx.fillRect(150,450, 10, 10) ctx.fillStyle = cor[4516];ctx.fillRect(160,450, 10, 10) ctx.fillStyle = cor[4517];ctx.fillRect(170,450, 10, 10) ctx.fillStyle = cor[4518];ctx.fillRect(180,450, 10, 10) ctx.fillStyle = cor[4519];ctx.fillRect(190,450, 10, 10) ctx.fillStyle = cor[4520];ctx.fillRect(200,450, 10, 10) ctx.fillStyle = cor[4521];ctx.fillRect(210,450, 10, 10) ctx.fillStyle = cor[4522];ctx.fillRect(220,450, 10, 10) ctx.fillStyle = cor[4523];ctx.fillRect(230,450, 10, 10) ctx.fillStyle = cor[4524];ctx.fillRect(240,450, 10, 10) ctx.fillStyle = cor[4525];ctx.fillRect(250,450, 10, 10) ctx.fillStyle = cor[4526];ctx.fillRect(260,450, 10, 10) ctx.fillStyle = cor[4527];ctx.fillRect(270,450, 10, 10) ctx.fillStyle = cor[4528];ctx.fillRect(280,450, 10, 10) ctx.fillStyle = cor[4529];ctx.fillRect(290,450, 10, 10) ctx.fillStyle = cor[4530];ctx.fillRect(300,450, 10, 10) ctx.fillStyle = cor[4531];ctx.fillRect(310,450, 10, 10) ctx.fillStyle = cor[4532];ctx.fillRect(320,450, 10, 10) ctx.fillStyle = cor[4533];ctx.fillRect(330,450, 10, 10) ctx.fillStyle = cor[4534];ctx.fillRect(340,450, 10, 10) ctx.fillStyle = cor[4535];ctx.fillRect(350,450, 10, 10) ctx.fillStyle = cor[4536];ctx.fillRect(360,450, 10, 10) ctx.fillStyle = cor[4537];ctx.fillRect(370,450, 10, 10) ctx.fillStyle = cor[4538];ctx.fillRect(380,450, 10, 10) ctx.fillStyle = cor[4539];ctx.fillRect(390,450, 10, 10) ctx.fillStyle = cor[4540];ctx.fillRect(400,450, 10, 10) ctx.fillStyle = cor[4541];ctx.fillRect(410,450, 10, 10) ctx.fillStyle = cor[4542];ctx.fillRect(420,450, 10, 10) ctx.fillStyle = cor[4543];ctx.fillRect(430,450, 10, 10) ctx.fillStyle = cor[4544];ctx.fillRect(440,450, 10, 10) ctx.fillStyle = cor[4545];ctx.fillRect(450,450, 10, 10) ctx.fillStyle = cor[4546];ctx.fillRect(460,450, 10, 10) ctx.fillStyle = cor[4547];ctx.fillRect(470,450, 10, 10) ctx.fillStyle = cor[4548];ctx.fillRect(480,450, 10, 10) ctx.fillStyle = cor[4549];ctx.fillRect(490,450, 10, 10) ctx.fillStyle = cor[4550];ctx.fillRect(500,450, 10, 10) ctx.fillStyle = cor[4551];ctx.fillRect(510,450, 10, 10) ctx.fillStyle = cor[4552];ctx.fillRect(520,450, 10, 10) ctx.fillStyle = cor[4553];ctx.fillRect(530,450, 10, 10) ctx.fillStyle = cor[4554];ctx.fillRect(540,450, 10, 10) ctx.fillStyle = cor[4555];ctx.fillRect(550,450, 10, 10) ctx.fillStyle = cor[4556];ctx.fillRect(560,450, 10, 10) ctx.fillStyle = cor[4557];ctx.fillRect(570,450, 10, 10) ctx.fillStyle = cor[4558];ctx.fillRect(580,450, 10, 10) ctx.fillStyle = cor[4559];ctx.fillRect(590,450, 10, 10) ctx.fillStyle = cor[4560];ctx.fillRect(600,450, 10, 10) ctx.fillStyle = cor[4561];ctx.fillRect(610,450, 10, 10) ctx.fillStyle = cor[4562];ctx.fillRect(620,450, 10, 10) ctx.fillStyle = cor[4563];ctx.fillRect(630,450, 10, 10) ctx.fillStyle = cor[4564];ctx.fillRect(640,450, 10, 10) ctx.fillStyle = cor[4565];ctx.fillRect(650,450, 10, 10) ctx.fillStyle = cor[4566];ctx.fillRect(660,450, 10, 10) ctx.fillStyle = cor[4567];ctx.fillRect(670,450, 10, 10) ctx.fillStyle = cor[4568];ctx.fillRect(680,450, 10, 10) ctx.fillStyle = cor[4569];ctx.fillRect(690,450, 10, 10) ctx.fillStyle = cor[4570];ctx.fillRect(700,450, 10, 10) ctx.fillStyle = cor[4571];ctx.fillRect(710,450, 10, 10) ctx.fillStyle = cor[4572];ctx.fillRect(720,450, 10, 10) ctx.fillStyle = cor[4573];ctx.fillRect(730,450, 10, 10) ctx.fillStyle = cor[4574];ctx.fillRect(740,450, 10, 10) ctx.fillStyle = cor[4575];ctx.fillRect(750,450, 10, 10) ctx.fillStyle = cor[4576];ctx.fillRect(760,450, 10, 10) ctx.fillStyle = cor[4577];ctx.fillRect(770,450, 10, 10) ctx.fillStyle = cor[4578];ctx.fillRect(780,450, 10, 10) ctx.fillStyle = cor[4579];ctx.fillRect(790,450, 10, 10) ctx.fillStyle = cor[4580];ctx.fillRect(800,450, 10, 10) ctx.fillStyle = cor[4581];ctx.fillRect(810,450, 10, 10) ctx.fillStyle = cor[4582];ctx.fillRect(820,450, 10, 10) ctx.fillStyle = cor[4583];ctx.fillRect(830,450, 10, 10) ctx.fillStyle = cor[4584];ctx.fillRect(840,450, 10, 10) ctx.fillStyle = cor[4585];ctx.fillRect(850,450, 10, 10) ctx.fillStyle = cor[4586];ctx.fillRect(860,450, 10, 10) ctx.fillStyle = cor[4587];ctx.fillRect(870,450, 10, 10) ctx.fillStyle = cor[4588];ctx.fillRect(880,450, 10, 10) ctx.fillStyle = cor[4589];ctx.fillRect(890,450, 10, 10) ctx.fillStyle = cor[4590];ctx.fillRect(900,450, 10, 10) ctx.fillStyle = cor[4591];ctx.fillRect(910,450, 10, 10) ctx.fillStyle = cor[4592];ctx.fillRect(920,450, 10, 10) ctx.fillStyle = cor[4593];ctx.fillRect(930,450, 10, 10) ctx.fillStyle = cor[4594];ctx.fillRect(940,450, 10, 10) ctx.fillStyle = cor[4595];ctx.fillRect(950,450, 10, 10) ctx.fillStyle = cor[4596];ctx.fillRect(960,450, 10, 10) ctx.fillStyle = cor[4597];ctx.fillRect(970,450, 10, 10) ctx.fillStyle = cor[4598];ctx.fillRect(980,450, 10, 10) ctx.fillStyle = cor[4599];ctx.fillRect(990,450, 10, 10) ctx.fillStyle = cor[4600];ctx.fillRect(0,460, 10, 10) ctx.fillStyle = cor[4601];ctx.fillRect(10,460, 10, 10) ctx.fillStyle = cor[4602];ctx.fillRect(20,460, 10, 10) ctx.fillStyle = cor[4603];ctx.fillRect(30,460, 10, 10) ctx.fillStyle = cor[4604];ctx.fillRect(40,460, 10, 10) ctx.fillStyle = cor[4605];ctx.fillRect(50,460, 10, 10) ctx.fillStyle = cor[4606];ctx.fillRect(60,460, 10, 10) ctx.fillStyle = cor[4607];ctx.fillRect(70,460, 10, 10) ctx.fillStyle = cor[4608];ctx.fillRect(80,460, 10, 10) ctx.fillStyle = cor[4609];ctx.fillRect(90,460, 10, 10) ctx.fillStyle = cor[4610];ctx.fillRect(100,460, 10, 10) ctx.fillStyle = cor[4611];ctx.fillRect(110,460, 10, 10) ctx.fillStyle = cor[4612];ctx.fillRect(120,460, 10, 10) ctx.fillStyle = cor[4613];ctx.fillRect(130,460, 10, 10) ctx.fillStyle = cor[4614];ctx.fillRect(140,460, 10, 10) ctx.fillStyle = cor[4615];ctx.fillRect(150,460, 10, 10) ctx.fillStyle = cor[4616];ctx.fillRect(160,460, 10, 10) ctx.fillStyle = cor[4617];ctx.fillRect(170,460, 10, 10) ctx.fillStyle = cor[4618];ctx.fillRect(180,460, 10, 10) ctx.fillStyle = cor[4619];ctx.fillRect(190,460, 10, 10) ctx.fillStyle = cor[4620];ctx.fillRect(200,460, 10, 10) ctx.fillStyle = cor[4621];ctx.fillRect(210,460, 10, 10) ctx.fillStyle = cor[4622];ctx.fillRect(220,460, 10, 10) ctx.fillStyle = cor[4623];ctx.fillRect(230,460, 10, 10) ctx.fillStyle = cor[4624];ctx.fillRect(240,460, 10, 10) ctx.fillStyle = cor[4625];ctx.fillRect(250,460, 10, 10) ctx.fillStyle = cor[4626];ctx.fillRect(260,460, 10, 10) ctx.fillStyle = cor[4627];ctx.fillRect(270,460, 10, 10) ctx.fillStyle = cor[4628];ctx.fillRect(280,460, 10, 10) ctx.fillStyle = cor[4629];ctx.fillRect(290,460, 10, 10) ctx.fillStyle = cor[4630];ctx.fillRect(300,460, 10, 10) ctx.fillStyle = cor[4631];ctx.fillRect(310,460, 10, 10) ctx.fillStyle = cor[4632];ctx.fillRect(320,460, 10, 10) ctx.fillStyle = cor[4633];ctx.fillRect(330,460, 10, 10) ctx.fillStyle = cor[4634];ctx.fillRect(340,460, 10, 10) ctx.fillStyle = cor[4635];ctx.fillRect(350,460, 10, 10) ctx.fillStyle = cor[4636];ctx.fillRect(360,460, 10, 10) ctx.fillStyle = cor[4637];ctx.fillRect(370,460, 10, 10) ctx.fillStyle = cor[4638];ctx.fillRect(380,460, 10, 10) ctx.fillStyle = cor[4639];ctx.fillRect(390,460, 10, 10) ctx.fillStyle = cor[4640];ctx.fillRect(400,460, 10, 10) ctx.fillStyle = cor[4641];ctx.fillRect(410,460, 10, 10) ctx.fillStyle = cor[4642];ctx.fillRect(420,460, 10, 10) ctx.fillStyle = cor[4643];ctx.fillRect(430,460, 10, 10) ctx.fillStyle = cor[4644];ctx.fillRect(440,460, 10, 10) ctx.fillStyle = cor[4645];ctx.fillRect(450,460, 10, 10) ctx.fillStyle = cor[4646];ctx.fillRect(460,460, 10, 10) ctx.fillStyle = cor[4647];ctx.fillRect(470,460, 10, 10) ctx.fillStyle = cor[4648];ctx.fillRect(480,460, 10, 10) ctx.fillStyle = cor[4649];ctx.fillRect(490,460, 10, 10) ctx.fillStyle = cor[4650];ctx.fillRect(500,460, 10, 10) ctx.fillStyle = cor[4651];ctx.fillRect(510,460, 10, 10) ctx.fillStyle = cor[4652];ctx.fillRect(520,460, 10, 10) ctx.fillStyle = cor[4653];ctx.fillRect(530,460, 10, 10) ctx.fillStyle = cor[4654];ctx.fillRect(540,460, 10, 10) ctx.fillStyle = cor[4655];ctx.fillRect(550,460, 10, 10) ctx.fillStyle = cor[4656];ctx.fillRect(560,460, 10, 10) ctx.fillStyle = cor[4657];ctx.fillRect(570,460, 10, 10) ctx.fillStyle = cor[4658];ctx.fillRect(580,460, 10, 10) ctx.fillStyle = cor[4659];ctx.fillRect(590,460, 10, 10) ctx.fillStyle = cor[4660];ctx.fillRect(600,460, 10, 10) ctx.fillStyle = cor[4661];ctx.fillRect(610,460, 10, 10) ctx.fillStyle = cor[4662];ctx.fillRect(620,460, 10, 10) ctx.fillStyle = cor[4663];ctx.fillRect(630,460, 10, 10) ctx.fillStyle = cor[4664];ctx.fillRect(640,460, 10, 10) ctx.fillStyle = cor[4665];ctx.fillRect(650,460, 10, 10) ctx.fillStyle = cor[4666];ctx.fillRect(660,460, 10, 10) ctx.fillStyle = cor[4667];ctx.fillRect(670,460, 10, 10) ctx.fillStyle = cor[4668];ctx.fillRect(680,460, 10, 10) ctx.fillStyle = cor[4669];ctx.fillRect(690,460, 10, 10) ctx.fillStyle = cor[4670];ctx.fillRect(700,460, 10, 10) ctx.fillStyle = cor[4671];ctx.fillRect(710,460, 10, 10) ctx.fillStyle = cor[4672];ctx.fillRect(720,460, 10, 10) ctx.fillStyle = cor[4673];ctx.fillRect(730,460, 10, 10) ctx.fillStyle = cor[4674];ctx.fillRect(740,460, 10, 10) ctx.fillStyle = cor[4675];ctx.fillRect(750,460, 10, 10) ctx.fillStyle = cor[4676];ctx.fillRect(760,460, 10, 10) ctx.fillStyle = cor[4677];ctx.fillRect(770,460, 10, 10) ctx.fillStyle = cor[4678];ctx.fillRect(780,460, 10, 10) ctx.fillStyle = cor[4679];ctx.fillRect(790,460, 10, 10) ctx.fillStyle = cor[4680];ctx.fillRect(800,460, 10, 10) ctx.fillStyle = cor[4681];ctx.fillRect(810,460, 10, 10) ctx.fillStyle = cor[4682];ctx.fillRect(820,460, 10, 10) ctx.fillStyle = cor[4683];ctx.fillRect(830,460, 10, 10) ctx.fillStyle = cor[4684];ctx.fillRect(840,460, 10, 10) ctx.fillStyle = cor[4685];ctx.fillRect(850,460, 10, 10) ctx.fillStyle = cor[4686];ctx.fillRect(860,460, 10, 10) ctx.fillStyle = cor[4687];ctx.fillRect(870,460, 10, 10) ctx.fillStyle = cor[4688];ctx.fillRect(880,460, 10, 10) ctx.fillStyle = cor[4689];ctx.fillRect(890,460, 10, 10) ctx.fillStyle = cor[4690];ctx.fillRect(900,460, 10, 10) ctx.fillStyle = cor[4691];ctx.fillRect(910,460, 10, 10) ctx.fillStyle = cor[4692];ctx.fillRect(920,460, 10, 10) ctx.fillStyle = cor[4693];ctx.fillRect(930,460, 10, 10) ctx.fillStyle = cor[4694];ctx.fillRect(940,460, 10, 10) ctx.fillStyle = cor[4695];ctx.fillRect(950,460, 10, 10) ctx.fillStyle = cor[4696];ctx.fillRect(960,460, 10, 10) ctx.fillStyle = cor[4697];ctx.fillRect(970,460, 10, 10) ctx.fillStyle = cor[4698];ctx.fillRect(980,460, 10, 10) ctx.fillStyle = cor[4699];ctx.fillRect(990,460, 10, 10) ctx.fillStyle = cor[4700];ctx.fillRect(0,470, 10, 10) ctx.fillStyle = cor[4701];ctx.fillRect(10,470, 10, 10) ctx.fillStyle = cor[4702];ctx.fillRect(20,470, 10, 10) ctx.fillStyle = cor[4703];ctx.fillRect(30,470, 10, 10) ctx.fillStyle = cor[4704];ctx.fillRect(40,470, 10, 10) ctx.fillStyle = cor[4705];ctx.fillRect(50,470, 10, 10) ctx.fillStyle = cor[4706];ctx.fillRect(60,470, 10, 10) ctx.fillStyle = cor[4707];ctx.fillRect(70,470, 10, 10) ctx.fillStyle = cor[4708];ctx.fillRect(80,470, 10, 10) ctx.fillStyle = cor[4709];ctx.fillRect(90,470, 10, 10) ctx.fillStyle = cor[4710];ctx.fillRect(100,470, 10, 10) ctx.fillStyle = cor[4711];ctx.fillRect(110,470, 10, 10) ctx.fillStyle = cor[4712];ctx.fillRect(120,470, 10, 10) ctx.fillStyle = cor[4713];ctx.fillRect(130,470, 10, 10) ctx.fillStyle = cor[4714];ctx.fillRect(140,470, 10, 10) ctx.fillStyle = cor[4715];ctx.fillRect(150,470, 10, 10) ctx.fillStyle = cor[4716];ctx.fillRect(160,470, 10, 10) ctx.fillStyle = cor[4717];ctx.fillRect(170,470, 10, 10) ctx.fillStyle = cor[4718];ctx.fillRect(180,470, 10, 10) ctx.fillStyle = cor[4719];ctx.fillRect(190,470, 10, 10) ctx.fillStyle = cor[4720];ctx.fillRect(200,470, 10, 10) ctx.fillStyle = cor[4721];ctx.fillRect(210,470, 10, 10) ctx.fillStyle = cor[4722];ctx.fillRect(220,470, 10, 10) ctx.fillStyle = cor[4723];ctx.fillRect(230,470, 10, 10) ctx.fillStyle = cor[4724];ctx.fillRect(240,470, 10, 10) ctx.fillStyle = cor[4725];ctx.fillRect(250,470, 10, 10) ctx.fillStyle = cor[4726];ctx.fillRect(260,470, 10, 10) ctx.fillStyle = cor[4727];ctx.fillRect(270,470, 10, 10) ctx.fillStyle = cor[4728];ctx.fillRect(280,470, 10, 10) ctx.fillStyle = cor[4729];ctx.fillRect(290,470, 10, 10) ctx.fillStyle = cor[4730];ctx.fillRect(300,470, 10, 10) ctx.fillStyle = cor[4731];ctx.fillRect(310,470, 10, 10) ctx.fillStyle = cor[4732];ctx.fillRect(320,470, 10, 10) ctx.fillStyle = cor[4733];ctx.fillRect(330,470, 10, 10) ctx.fillStyle = cor[4734];ctx.fillRect(340,470, 10, 10) ctx.fillStyle = cor[4735];ctx.fillRect(350,470, 10, 10) ctx.fillStyle = cor[4736];ctx.fillRect(360,470, 10, 10) ctx.fillStyle = cor[4737];ctx.fillRect(370,470, 10, 10) ctx.fillStyle = cor[4738];ctx.fillRect(380,470, 10, 10) ctx.fillStyle = cor[4739];ctx.fillRect(390,470, 10, 10) ctx.fillStyle = cor[4740];ctx.fillRect(400,470, 10, 10) ctx.fillStyle = cor[4741];ctx.fillRect(410,470, 10, 10) ctx.fillStyle = cor[4742];ctx.fillRect(420,470, 10, 10) ctx.fillStyle = cor[4743];ctx.fillRect(430,470, 10, 10) ctx.fillStyle = cor[4744];ctx.fillRect(440,470, 10, 10) ctx.fillStyle = cor[4745];ctx.fillRect(450,470, 10, 10) ctx.fillStyle = cor[4746];ctx.fillRect(460,470, 10, 10) ctx.fillStyle = cor[4747];ctx.fillRect(470,470, 10, 10) ctx.fillStyle = cor[4748];ctx.fillRect(480,470, 10, 10) ctx.fillStyle = cor[4749];ctx.fillRect(490,470, 10, 10) ctx.fillStyle = cor[4750];ctx.fillRect(500,470, 10, 10) ctx.fillStyle = cor[4751];ctx.fillRect(510,470, 10, 10) ctx.fillStyle = cor[4752];ctx.fillRect(520,470, 10, 10) ctx.fillStyle = cor[4753];ctx.fillRect(530,470, 10, 10) ctx.fillStyle = cor[4754];ctx.fillRect(540,470, 10, 10) ctx.fillStyle = cor[4755];ctx.fillRect(550,470, 10, 10) ctx.fillStyle = cor[4756];ctx.fillRect(560,470, 10, 10) ctx.fillStyle = cor[4757];ctx.fillRect(570,470, 10, 10) ctx.fillStyle = cor[4758];ctx.fillRect(580,470, 10, 10) ctx.fillStyle = cor[4759];ctx.fillRect(590,470, 10, 10) ctx.fillStyle = cor[4760];ctx.fillRect(600,470, 10, 10) ctx.fillStyle = cor[4761];ctx.fillRect(610,470, 10, 10) ctx.fillStyle = cor[4762];ctx.fillRect(620,470, 10, 10) ctx.fillStyle = cor[4763];ctx.fillRect(630,470, 10, 10) ctx.fillStyle = cor[4764];ctx.fillRect(640,470, 10, 10) ctx.fillStyle = cor[4765];ctx.fillRect(650,470, 10, 10) ctx.fillStyle = cor[4766];ctx.fillRect(660,470, 10, 10) ctx.fillStyle = cor[4767];ctx.fillRect(670,470, 10, 10) ctx.fillStyle = cor[4768];ctx.fillRect(680,470, 10, 10) ctx.fillStyle = cor[4769];ctx.fillRect(690,470, 10, 10) ctx.fillStyle = cor[4770];ctx.fillRect(700,470, 10, 10) ctx.fillStyle = cor[4771];ctx.fillRect(710,470, 10, 10) ctx.fillStyle = cor[4772];ctx.fillRect(720,470, 10, 10) ctx.fillStyle = cor[4773];ctx.fillRect(730,470, 10, 10) ctx.fillStyle = cor[4774];ctx.fillRect(740,470, 10, 10) ctx.fillStyle = cor[4775];ctx.fillRect(750,470, 10, 10) ctx.fillStyle = cor[4776];ctx.fillRect(760,470, 10, 10) ctx.fillStyle = cor[4777];ctx.fillRect(770,470, 10, 10) ctx.fillStyle = cor[4778];ctx.fillRect(780,470, 10, 10) ctx.fillStyle = cor[4779];ctx.fillRect(790,470, 10, 10) ctx.fillStyle = cor[4780];ctx.fillRect(800,470, 10, 10) ctx.fillStyle = cor[4781];ctx.fillRect(810,470, 10, 10) ctx.fillStyle = cor[4782];ctx.fillRect(820,470, 10, 10) ctx.fillStyle = cor[4783];ctx.fillRect(830,470, 10, 10) ctx.fillStyle = cor[4784];ctx.fillRect(840,470, 10, 10) ctx.fillStyle = cor[4785];ctx.fillRect(850,470, 10, 10) ctx.fillStyle = cor[4786];ctx.fillRect(860,470, 10, 10) ctx.fillStyle = cor[4787];ctx.fillRect(870,470, 10, 10) ctx.fillStyle = cor[4788];ctx.fillRect(880,470, 10, 10) ctx.fillStyle = cor[4789];ctx.fillRect(890,470, 10, 10) ctx.fillStyle = cor[4790];ctx.fillRect(900,470, 10, 10) ctx.fillStyle = cor[4791];ctx.fillRect(910,470, 10, 10) ctx.fillStyle = cor[4792];ctx.fillRect(920,470, 10, 10) ctx.fillStyle = cor[4793];ctx.fillRect(930,470, 10, 10) ctx.fillStyle = cor[4794];ctx.fillRect(940,470, 10, 10) ctx.fillStyle = cor[4795];ctx.fillRect(950,470, 10, 10) ctx.fillStyle = cor[4796];ctx.fillRect(960,470, 10, 10) ctx.fillStyle = cor[4797];ctx.fillRect(970,470, 10, 10) ctx.fillStyle = cor[4798];ctx.fillRect(980,470, 10, 10) ctx.fillStyle = cor[4799];ctx.fillRect(990,470, 10, 10) ctx.fillStyle = cor[4800];ctx.fillRect(0,480, 10, 10) ctx.fillStyle = cor[4801];ctx.fillRect(10,480, 10, 10) ctx.fillStyle = cor[4802];ctx.fillRect(20,480, 10, 10) ctx.fillStyle = cor[4803];ctx.fillRect(30,480, 10, 10) ctx.fillStyle = cor[4804];ctx.fillRect(40,480, 10, 10) ctx.fillStyle = cor[4805];ctx.fillRect(50,480, 10, 10) ctx.fillStyle = cor[4806];ctx.fillRect(60,480, 10, 10) ctx.fillStyle = cor[4807];ctx.fillRect(70,480, 10, 10) ctx.fillStyle = cor[4808];ctx.fillRect(80,480, 10, 10) ctx.fillStyle = cor[4809];ctx.fillRect(90,480, 10, 10) ctx.fillStyle = cor[4810];ctx.fillRect(100,480, 10, 10) ctx.fillStyle = cor[4811];ctx.fillRect(110,480, 10, 10) ctx.fillStyle = cor[4812];ctx.fillRect(120,480, 10, 10) ctx.fillStyle = cor[4813];ctx.fillRect(130,480, 10, 10) ctx.fillStyle = cor[4814];ctx.fillRect(140,480, 10, 10) ctx.fillStyle = cor[4815];ctx.fillRect(150,480, 10, 10) ctx.fillStyle = cor[4816];ctx.fillRect(160,480, 10, 10) ctx.fillStyle = cor[4817];ctx.fillRect(170,480, 10, 10) ctx.fillStyle = cor[4818];ctx.fillRect(180,480, 10, 10) ctx.fillStyle = cor[4819];ctx.fillRect(190,480, 10, 10) ctx.fillStyle = cor[4820];ctx.fillRect(200,480, 10, 10) ctx.fillStyle = cor[4821];ctx.fillRect(210,480, 10, 10) ctx.fillStyle = cor[4822];ctx.fillRect(220,480, 10, 10) ctx.fillStyle = cor[4823];ctx.fillRect(230,480, 10, 10) ctx.fillStyle = cor[4824];ctx.fillRect(240,480, 10, 10) ctx.fillStyle = cor[4825];ctx.fillRect(250,480, 10, 10) ctx.fillStyle = cor[4826];ctx.fillRect(260,480, 10, 10) ctx.fillStyle = cor[4827];ctx.fillRect(270,480, 10, 10) ctx.fillStyle = cor[4828];ctx.fillRect(280,480, 10, 10) ctx.fillStyle = cor[4829];ctx.fillRect(290,480, 10, 10) ctx.fillStyle = cor[4830];ctx.fillRect(300,480, 10, 10) ctx.fillStyle = cor[4831];ctx.fillRect(310,480, 10, 10) ctx.fillStyle = cor[4832];ctx.fillRect(320,480, 10, 10) ctx.fillStyle = cor[4833];ctx.fillRect(330,480, 10, 10) ctx.fillStyle = cor[4834];ctx.fillRect(340,480, 10, 10) ctx.fillStyle = cor[4835];ctx.fillRect(350,480, 10, 10) ctx.fillStyle = cor[4836];ctx.fillRect(360,480, 10, 10) ctx.fillStyle = cor[4837];ctx.fillRect(370,480, 10, 10) ctx.fillStyle = cor[4838];ctx.fillRect(380,480, 10, 10) ctx.fillStyle = cor[4839];ctx.fillRect(390,480, 10, 10) ctx.fillStyle = cor[4840];ctx.fillRect(400,480, 10, 10) ctx.fillStyle = cor[4841];ctx.fillRect(410,480, 10, 10) ctx.fillStyle = cor[4842];ctx.fillRect(420,480, 10, 10) ctx.fillStyle = cor[4843];ctx.fillRect(430,480, 10, 10) ctx.fillStyle = cor[4844];ctx.fillRect(440,480, 10, 10) ctx.fillStyle = cor[4845];ctx.fillRect(450,480, 10, 10) ctx.fillStyle = cor[4846];ctx.fillRect(460,480, 10, 10) ctx.fillStyle = cor[4847];ctx.fillRect(470,480, 10, 10) ctx.fillStyle = cor[4848];ctx.fillRect(480,480, 10, 10) ctx.fillStyle = cor[4849];ctx.fillRect(490,480, 10, 10) ctx.fillStyle = cor[4850];ctx.fillRect(500,480, 10, 10) ctx.fillStyle = cor[4851];ctx.fillRect(510,480, 10, 10) ctx.fillStyle = cor[4852];ctx.fillRect(520,480, 10, 10) ctx.fillStyle = cor[4853];ctx.fillRect(530,480, 10, 10) ctx.fillStyle = cor[4854];ctx.fillRect(540,480, 10, 10) ctx.fillStyle = cor[4855];ctx.fillRect(550,480, 10, 10) ctx.fillStyle = cor[4856];ctx.fillRect(560,480, 10, 10) ctx.fillStyle = cor[4857];ctx.fillRect(570,480, 10, 10) ctx.fillStyle = cor[4858];ctx.fillRect(580,480, 10, 10) ctx.fillStyle = cor[4859];ctx.fillRect(590,480, 10, 10) ctx.fillStyle = cor[4860];ctx.fillRect(600,480, 10, 10) ctx.fillStyle = cor[4861];ctx.fillRect(610,480, 10, 10) ctx.fillStyle = cor[4862];ctx.fillRect(620,480, 10, 10) ctx.fillStyle = cor[4863];ctx.fillRect(630,480, 10, 10) ctx.fillStyle = cor[4864];ctx.fillRect(640,480, 10, 10) ctx.fillStyle = cor[4865];ctx.fillRect(650,480, 10, 10) ctx.fillStyle = cor[4866];ctx.fillRect(660,480, 10, 10) ctx.fillStyle = cor[4867];ctx.fillRect(670,480, 10, 10) ctx.fillStyle = cor[4868];ctx.fillRect(680,480, 10, 10) ctx.fillStyle = cor[4869];ctx.fillRect(690,480, 10, 10) ctx.fillStyle = cor[4870];ctx.fillRect(700,480, 10, 10) ctx.fillStyle = cor[4871];ctx.fillRect(710,480, 10, 10) ctx.fillStyle = cor[4872];ctx.fillRect(720,480, 10, 10) ctx.fillStyle = cor[4873];ctx.fillRect(730,480, 10, 10) ctx.fillStyle = cor[4874];ctx.fillRect(740,480, 10, 10) ctx.fillStyle = cor[4875];ctx.fillRect(750,480, 10, 10) ctx.fillStyle = cor[4876];ctx.fillRect(760,480, 10, 10) ctx.fillStyle = cor[4877];ctx.fillRect(770,480, 10, 10) ctx.fillStyle = cor[4878];ctx.fillRect(780,480, 10, 10) ctx.fillStyle = cor[4879];ctx.fillRect(790,480, 10, 10) ctx.fillStyle = cor[4880];ctx.fillRect(800,480, 10, 10) ctx.fillStyle = cor[4881];ctx.fillRect(810,480, 10, 10) ctx.fillStyle = cor[4882];ctx.fillRect(820,480, 10, 10) ctx.fillStyle = cor[4883];ctx.fillRect(830,480, 10, 10) ctx.fillStyle = cor[4884];ctx.fillRect(840,480, 10, 10) ctx.fillStyle = cor[4885];ctx.fillRect(850,480, 10, 10) ctx.fillStyle = cor[4886];ctx.fillRect(860,480, 10, 10) ctx.fillStyle = cor[4887];ctx.fillRect(870,480, 10, 10) ctx.fillStyle = cor[4888];ctx.fillRect(880,480, 10, 10) ctx.fillStyle = cor[4889];ctx.fillRect(890,480, 10, 10) ctx.fillStyle = cor[4890];ctx.fillRect(900,480, 10, 10) ctx.fillStyle = cor[4891];ctx.fillRect(910,480, 10, 10) ctx.fillStyle = cor[4892];ctx.fillRect(920,480, 10, 10) ctx.fillStyle = cor[4893];ctx.fillRect(930,480, 10, 10) ctx.fillStyle = cor[4894];ctx.fillRect(940,480, 10, 10) ctx.fillStyle = cor[4895];ctx.fillRect(950,480, 10, 10) ctx.fillStyle = cor[4896];ctx.fillRect(960,480, 10, 10) ctx.fillStyle = cor[4897];ctx.fillRect(970,480, 10, 10) ctx.fillStyle = cor[4898];ctx.fillRect(980,480, 10, 10) ctx.fillStyle = cor[4899];ctx.fillRect(990,480, 10, 10) ctx.fillStyle = cor[4900];ctx.fillRect(0,490, 10, 10) ctx.fillStyle = cor[4901];ctx.fillRect(10,490, 10, 10) ctx.fillStyle = cor[4902];ctx.fillRect(20,490, 10, 10) ctx.fillStyle = cor[4903];ctx.fillRect(30,490, 10, 10) ctx.fillStyle = cor[4904];ctx.fillRect(40,490, 10, 10) ctx.fillStyle = cor[4905];ctx.fillRect(50,490, 10, 10) ctx.fillStyle = cor[4906];ctx.fillRect(60,490, 10, 10) ctx.fillStyle = cor[4907];ctx.fillRect(70,490, 10, 10) ctx.fillStyle = cor[4908];ctx.fillRect(80,490, 10, 10) ctx.fillStyle = cor[4909];ctx.fillRect(90,490, 10, 10) ctx.fillStyle = cor[4910];ctx.fillRect(100,490, 10, 10) ctx.fillStyle = cor[4911];ctx.fillRect(110,490, 10, 10) ctx.fillStyle = cor[4912];ctx.fillRect(120,490, 10, 10) ctx.fillStyle = cor[4913];ctx.fillRect(130,490, 10, 10) ctx.fillStyle = cor[4914];ctx.fillRect(140,490, 10, 10) ctx.fillStyle = cor[4915];ctx.fillRect(150,490, 10, 10) ctx.fillStyle = cor[4916];ctx.fillRect(160,490, 10, 10) ctx.fillStyle = cor[4917];ctx.fillRect(170,490, 10, 10) ctx.fillStyle = cor[4918];ctx.fillRect(180,490, 10, 10) ctx.fillStyle = cor[4919];ctx.fillRect(190,490, 10, 10) ctx.fillStyle = cor[4920];ctx.fillRect(200,490, 10, 10) ctx.fillStyle = cor[4921];ctx.fillRect(210,490, 10, 10) ctx.fillStyle = cor[4922];ctx.fillRect(220,490, 10, 10) ctx.fillStyle = cor[4923];ctx.fillRect(230,490, 10, 10) ctx.fillStyle = cor[4924];ctx.fillRect(240,490, 10, 10) ctx.fillStyle = cor[4925];ctx.fillRect(250,490, 10, 10) ctx.fillStyle = cor[4926];ctx.fillRect(260,490, 10, 10) ctx.fillStyle = cor[4927];ctx.fillRect(270,490, 10, 10) ctx.fillStyle = cor[4928];ctx.fillRect(280,490, 10, 10) ctx.fillStyle = cor[4929];ctx.fillRect(290,490, 10, 10) ctx.fillStyle = cor[4930];ctx.fillRect(300,490, 10, 10) ctx.fillStyle = cor[4931];ctx.fillRect(310,490, 10, 10) ctx.fillStyle = cor[4932];ctx.fillRect(320,490, 10, 10) ctx.fillStyle = cor[4933];ctx.fillRect(330,490, 10, 10) ctx.fillStyle = cor[4934];ctx.fillRect(340,490, 10, 10) ctx.fillStyle = cor[4935];ctx.fillRect(350,490, 10, 10) ctx.fillStyle = cor[4936];ctx.fillRect(360,490, 10, 10) ctx.fillStyle = cor[4937];ctx.fillRect(370,490, 10, 10) ctx.fillStyle = cor[4938];ctx.fillRect(380,490, 10, 10) ctx.fillStyle = cor[4939];ctx.fillRect(390,490, 10, 10) ctx.fillStyle = cor[4940];ctx.fillRect(400,490, 10, 10) ctx.fillStyle = cor[4941];ctx.fillRect(410,490, 10, 10) ctx.fillStyle = cor[4942];ctx.fillRect(420,490, 10, 10) ctx.fillStyle = cor[4943];ctx.fillRect(430,490, 10, 10) ctx.fillStyle = cor[4944];ctx.fillRect(440,490, 10, 10) ctx.fillStyle = cor[4945];ctx.fillRect(450,490, 10, 10) ctx.fillStyle = cor[4946];ctx.fillRect(460,490, 10, 10) ctx.fillStyle = cor[4947];ctx.fillRect(470,490, 10, 10) ctx.fillStyle = cor[4948];ctx.fillRect(480,490, 10, 10) ctx.fillStyle = cor[4949];ctx.fillRect(490,490, 10, 10) ctx.fillStyle = cor[4950];ctx.fillRect(500,490, 10, 10) ctx.fillStyle = cor[4951];ctx.fillRect(510,490, 10, 10) ctx.fillStyle = cor[4952];ctx.fillRect(520,490, 10, 10) ctx.fillStyle = cor[4953];ctx.fillRect(530,490, 10, 10) ctx.fillStyle = cor[4954];ctx.fillRect(540,490, 10, 10) ctx.fillStyle = cor[4955];ctx.fillRect(550,490, 10, 10) ctx.fillStyle = cor[4956];ctx.fillRect(560,490, 10, 10) ctx.fillStyle = cor[4957];ctx.fillRect(570,490, 10, 10) ctx.fillStyle = cor[4958];ctx.fillRect(580,490, 10, 10) ctx.fillStyle = cor[4959];ctx.fillRect(590,490, 10, 10) ctx.fillStyle = cor[4960];ctx.fillRect(600,490, 10, 10) ctx.fillStyle = cor[4961];ctx.fillRect(610,490, 10, 10) ctx.fillStyle = cor[4962];ctx.fillRect(620,490, 10, 10) ctx.fillStyle = cor[4963];ctx.fillRect(630,490, 10, 10) ctx.fillStyle = cor[4964];ctx.fillRect(640,490, 10, 10) ctx.fillStyle = cor[4965];ctx.fillRect(650,490, 10, 10) ctx.fillStyle = cor[4966];ctx.fillRect(660,490, 10, 10) ctx.fillStyle = cor[4967];ctx.fillRect(670,490, 10, 10) ctx.fillStyle = cor[4968];ctx.fillRect(680,490, 10, 10) ctx.fillStyle = cor[4969];ctx.fillRect(690,490, 10, 10) ctx.fillStyle = cor[4970];ctx.fillRect(700,490, 10, 10) ctx.fillStyle = cor[4971];ctx.fillRect(710,490, 10, 10) ctx.fillStyle = cor[4972];ctx.fillRect(720,490, 10, 10) ctx.fillStyle = cor[4973];ctx.fillRect(730,490, 10, 10) ctx.fillStyle = cor[4974];ctx.fillRect(740,490, 10, 10) ctx.fillStyle = cor[4975];ctx.fillRect(750,490, 10, 10) ctx.fillStyle = cor[4976];ctx.fillRect(760,490, 10, 10) ctx.fillStyle = cor[4977];ctx.fillRect(770,490, 10, 10) ctx.fillStyle = cor[4978];ctx.fillRect(780,490, 10, 10) ctx.fillStyle = cor[4979];ctx.fillRect(790,490, 10, 10) ctx.fillStyle = cor[4980];ctx.fillRect(800,490, 10, 10) ctx.fillStyle = cor[4981];ctx.fillRect(810,490, 10, 10) ctx.fillStyle = cor[4982];ctx.fillRect(820,490, 10, 10) ctx.fillStyle = cor[4983];ctx.fillRect(830,490, 10, 10) ctx.fillStyle = cor[4984];ctx.fillRect(840,490, 10, 10) ctx.fillStyle = cor[4985];ctx.fillRect(850,490, 10, 10) ctx.fillStyle = cor[4986];ctx.fillRect(860,490, 10, 10) ctx.fillStyle = cor[4987];ctx.fillRect(870,490, 10, 10) ctx.fillStyle = cor[4988];ctx.fillRect(880,490, 10, 10) ctx.fillStyle = cor[4989];ctx.fillRect(890,490, 10, 10) ctx.fillStyle = cor[4990];ctx.fillRect(900,490, 10, 10) ctx.fillStyle = cor[4991];ctx.fillRect(910,490, 10, 10) ctx.fillStyle = cor[4992];ctx.fillRect(920,490, 10, 10) ctx.fillStyle = cor[4993];ctx.fillRect(930,490, 10, 10) ctx.fillStyle = cor[4994];ctx.fillRect(940,490, 10, 10) ctx.fillStyle = cor[4995];ctx.fillRect(950,490, 10, 10) ctx.fillStyle = cor[4996];ctx.fillRect(960,490, 10, 10) ctx.fillStyle = cor[4997];ctx.fillRect(970,490, 10, 10) ctx.fillStyle = cor[4998];ctx.fillRect(980,490, 10, 10) ctx.fillStyle = cor[4999];ctx.fillRect(990,490, 10, 10) ctx.fillStyle = cor[5000];ctx.fillRect(0,500, 10, 10) ctx.fillStyle = cor[5001];ctx.fillRect(10,500, 10, 10) ctx.fillStyle = cor[5002];ctx.fillRect(20,500, 10, 10) ctx.fillStyle = cor[5003];ctx.fillRect(30,500, 10, 10) ctx.fillStyle = cor[5004];ctx.fillRect(40,500, 10, 10) ctx.fillStyle = cor[5005];ctx.fillRect(50,500, 10, 10) ctx.fillStyle = cor[5006];ctx.fillRect(60,500, 10, 10) ctx.fillStyle = cor[5007];ctx.fillRect(70,500, 10, 10) ctx.fillStyle = cor[5008];ctx.fillRect(80,500, 10, 10) ctx.fillStyle = cor[5009];ctx.fillRect(90,500, 10, 10) ctx.fillStyle = cor[5010];ctx.fillRect(100,500, 10, 10) ctx.fillStyle = cor[5011];ctx.fillRect(110,500, 10, 10) ctx.fillStyle = cor[5012];ctx.fillRect(120,500, 10, 10) ctx.fillStyle = cor[5013];ctx.fillRect(130,500, 10, 10) ctx.fillStyle = cor[5014];ctx.fillRect(140,500, 10, 10) ctx.fillStyle = cor[5015];ctx.fillRect(150,500, 10, 10) ctx.fillStyle = cor[5016];ctx.fillRect(160,500, 10, 10) ctx.fillStyle = cor[5017];ctx.fillRect(170,500, 10, 10) ctx.fillStyle = cor[5018];ctx.fillRect(180,500, 10, 10) ctx.fillStyle = cor[5019];ctx.fillRect(190,500, 10, 10) ctx.fillStyle = cor[5020];ctx.fillRect(200,500, 10, 10) ctx.fillStyle = cor[5021];ctx.fillRect(210,500, 10, 10) ctx.fillStyle = cor[5022];ctx.fillRect(220,500, 10, 10) ctx.fillStyle = cor[5023];ctx.fillRect(230,500, 10, 10) ctx.fillStyle = cor[5024];ctx.fillRect(240,500, 10, 10) ctx.fillStyle = cor[5025];ctx.fillRect(250,500, 10, 10) ctx.fillStyle = cor[5026];ctx.fillRect(260,500, 10, 10) ctx.fillStyle = cor[5027];ctx.fillRect(270,500, 10, 10) ctx.fillStyle = cor[5028];ctx.fillRect(280,500, 10, 10) ctx.fillStyle = cor[5029];ctx.fillRect(290,500, 10, 10) ctx.fillStyle = cor[5030];ctx.fillRect(300,500, 10, 10) ctx.fillStyle = cor[5031];ctx.fillRect(310,500, 10, 10) ctx.fillStyle = cor[5032];ctx.fillRect(320,500, 10, 10) ctx.fillStyle = cor[5033];ctx.fillRect(330,500, 10, 10) ctx.fillStyle = cor[5034];ctx.fillRect(340,500, 10, 10) ctx.fillStyle = cor[5035];ctx.fillRect(350,500, 10, 10) ctx.fillStyle = cor[5036];ctx.fillRect(360,500, 10, 10) ctx.fillStyle = cor[5037];ctx.fillRect(370,500, 10, 10) ctx.fillStyle = cor[5038];ctx.fillRect(380,500, 10, 10) ctx.fillStyle = cor[5039];ctx.fillRect(390,500, 10, 10) ctx.fillStyle = cor[5040];ctx.fillRect(400,500, 10, 10) ctx.fillStyle = cor[5041];ctx.fillRect(410,500, 10, 10) ctx.fillStyle = cor[5042];ctx.fillRect(420,500, 10, 10) ctx.fillStyle = cor[5043];ctx.fillRect(430,500, 10, 10) ctx.fillStyle = cor[5044];ctx.fillRect(440,500, 10, 10) ctx.fillStyle = cor[5045];ctx.fillRect(450,500, 10, 10) ctx.fillStyle = cor[5046];ctx.fillRect(460,500, 10, 10) ctx.fillStyle = cor[5047];ctx.fillRect(470,500, 10, 10) ctx.fillStyle = cor[5048];ctx.fillRect(480,500, 10, 10) ctx.fillStyle = cor[5049];ctx.fillRect(490,500, 10, 10) ctx.fillStyle = cor[5050];ctx.fillRect(500,500, 10, 10) ctx.fillStyle = cor[5051];ctx.fillRect(510,500, 10, 10) ctx.fillStyle = cor[5052];ctx.fillRect(520,500, 10, 10) ctx.fillStyle = cor[5053];ctx.fillRect(530,500, 10, 10) ctx.fillStyle = cor[5054];ctx.fillRect(540,500, 10, 10) ctx.fillStyle = cor[5055];ctx.fillRect(550,500, 10, 10) ctx.fillStyle = cor[5056];ctx.fillRect(560,500, 10, 10) ctx.fillStyle = cor[5057];ctx.fillRect(570,500, 10, 10) ctx.fillStyle = cor[5058];ctx.fillRect(580,500, 10, 10) ctx.fillStyle = cor[5059];ctx.fillRect(590,500, 10, 10) ctx.fillStyle = cor[5060];ctx.fillRect(600,500, 10, 10) ctx.fillStyle = cor[5061];ctx.fillRect(610,500, 10, 10) ctx.fillStyle = cor[5062];ctx.fillRect(620,500, 10, 10) ctx.fillStyle = cor[5063];ctx.fillRect(630,500, 10, 10) ctx.fillStyle = cor[5064];ctx.fillRect(640,500, 10, 10) ctx.fillStyle = cor[5065];ctx.fillRect(650,500, 10, 10) ctx.fillStyle = cor[5066];ctx.fillRect(660,500, 10, 10) ctx.fillStyle = cor[5067];ctx.fillRect(670,500, 10, 10) ctx.fillStyle = cor[5068];ctx.fillRect(680,500, 10, 10) ctx.fillStyle = cor[5069];ctx.fillRect(690,500, 10, 10) ctx.fillStyle = cor[5070];ctx.fillRect(700,500, 10, 10) ctx.fillStyle = cor[5071];ctx.fillRect(710,500, 10, 10) ctx.fillStyle = cor[5072];ctx.fillRect(720,500, 10, 10) ctx.fillStyle = cor[5073];ctx.fillRect(730,500, 10, 10) ctx.fillStyle = cor[5074];ctx.fillRect(740,500, 10, 10) ctx.fillStyle = cor[5075];ctx.fillRect(750,500, 10, 10) ctx.fillStyle = cor[5076];ctx.fillRect(760,500, 10, 10) ctx.fillStyle = cor[5077];ctx.fillRect(770,500, 10, 10) ctx.fillStyle = cor[5078];ctx.fillRect(780,500, 10, 10) ctx.fillStyle = cor[5079];ctx.fillRect(790,500, 10, 10) ctx.fillStyle = cor[5080];ctx.fillRect(800,500, 10, 10) ctx.fillStyle = cor[5081];ctx.fillRect(810,500, 10, 10) ctx.fillStyle = cor[5082];ctx.fillRect(820,500, 10, 10) ctx.fillStyle = cor[5083];ctx.fillRect(830,500, 10, 10) ctx.fillStyle = cor[5084];ctx.fillRect(840,500, 10, 10) ctx.fillStyle = cor[5085];ctx.fillRect(850,500, 10, 10) ctx.fillStyle = cor[5086];ctx.fillRect(860,500, 10, 10) ctx.fillStyle = cor[5087];ctx.fillRect(870,500, 10, 10) ctx.fillStyle = cor[5088];ctx.fillRect(880,500, 10, 10) ctx.fillStyle = cor[5089];ctx.fillRect(890,500, 10, 10) ctx.fillStyle = cor[5090];ctx.fillRect(900,500, 10, 10) ctx.fillStyle = cor[5091];ctx.fillRect(910,500, 10, 10) ctx.fillStyle = cor[5092];ctx.fillRect(920,500, 10, 10) ctx.fillStyle = cor[5093];ctx.fillRect(930,500, 10, 10) ctx.fillStyle = cor[5094];ctx.fillRect(940,500, 10, 10) ctx.fillStyle = cor[5095];ctx.fillRect(950,500, 10, 10) ctx.fillStyle = cor[5096];ctx.fillRect(960,500, 10, 10) ctx.fillStyle = cor[5097];ctx.fillRect(970,500, 10, 10) ctx.fillStyle = cor[5098];ctx.fillRect(980,500, 10, 10) ctx.fillStyle = cor[5099];ctx.fillRect(990,500, 10, 10) ctx.fillStyle = cor[5100];ctx.fillRect(0,510, 10, 10) ctx.fillStyle = cor[5101];ctx.fillRect(10,510, 10, 10) ctx.fillStyle = cor[5102];ctx.fillRect(20,510, 10, 10) ctx.fillStyle = cor[5103];ctx.fillRect(30,510, 10, 10) ctx.fillStyle = cor[5104];ctx.fillRect(40,510, 10, 10) ctx.fillStyle = cor[5105];ctx.fillRect(50,510, 10, 10) ctx.fillStyle = cor[5106];ctx.fillRect(60,510, 10, 10) ctx.fillStyle = cor[5107];ctx.fillRect(70,510, 10, 10) ctx.fillStyle = cor[5108];ctx.fillRect(80,510, 10, 10) ctx.fillStyle = cor[5109];ctx.fillRect(90,510, 10, 10) ctx.fillStyle = cor[5110];ctx.fillRect(100,510, 10, 10) ctx.fillStyle = cor[5111];ctx.fillRect(110,510, 10, 10) ctx.fillStyle = cor[5112];ctx.fillRect(120,510, 10, 10) ctx.fillStyle = cor[5113];ctx.fillRect(130,510, 10, 10) ctx.fillStyle = cor[5114];ctx.fillRect(140,510, 10, 10) ctx.fillStyle = cor[5115];ctx.fillRect(150,510, 10, 10) ctx.fillStyle = cor[5116];ctx.fillRect(160,510, 10, 10) ctx.fillStyle = cor[5117];ctx.fillRect(170,510, 10, 10) ctx.fillStyle = cor[5118];ctx.fillRect(180,510, 10, 10) ctx.fillStyle = cor[5119];ctx.fillRect(190,510, 10, 10) ctx.fillStyle = cor[5120];ctx.fillRect(200,510, 10, 10) ctx.fillStyle = cor[5121];ctx.fillRect(210,510, 10, 10) ctx.fillStyle = cor[5122];ctx.fillRect(220,510, 10, 10) ctx.fillStyle = cor[5123];ctx.fillRect(230,510, 10, 10) ctx.fillStyle = cor[5124];ctx.fillRect(240,510, 10, 10) ctx.fillStyle = cor[5125];ctx.fillRect(250,510, 10, 10) ctx.fillStyle = cor[5126];ctx.fillRect(260,510, 10, 10) ctx.fillStyle = cor[5127];ctx.fillRect(270,510, 10, 10) ctx.fillStyle = cor[5128];ctx.fillRect(280,510, 10, 10) ctx.fillStyle = cor[5129];ctx.fillRect(290,510, 10, 10) ctx.fillStyle = cor[5130];ctx.fillRect(300,510, 10, 10) ctx.fillStyle = cor[5131];ctx.fillRect(310,510, 10, 10) ctx.fillStyle = cor[5132];ctx.fillRect(320,510, 10, 10) ctx.fillStyle = cor[5133];ctx.fillRect(330,510, 10, 10) ctx.fillStyle = cor[5134];ctx.fillRect(340,510, 10, 10) ctx.fillStyle = cor[5135];ctx.fillRect(350,510, 10, 10) ctx.fillStyle = cor[5136];ctx.fillRect(360,510, 10, 10) ctx.fillStyle = cor[5137];ctx.fillRect(370,510, 10, 10) ctx.fillStyle = cor[5138];ctx.fillRect(380,510, 10, 10) ctx.fillStyle = cor[5139];ctx.fillRect(390,510, 10, 10) ctx.fillStyle = cor[5140];ctx.fillRect(400,510, 10, 10) ctx.fillStyle = cor[5141];ctx.fillRect(410,510, 10, 10) ctx.fillStyle = cor[5142];ctx.fillRect(420,510, 10, 10) ctx.fillStyle = cor[5143];ctx.fillRect(430,510, 10, 10) ctx.fillStyle = cor[5144];ctx.fillRect(440,510, 10, 10) ctx.fillStyle = cor[5145];ctx.fillRect(450,510, 10, 10) ctx.fillStyle = cor[5146];ctx.fillRect(460,510, 10, 10) ctx.fillStyle = cor[5147];ctx.fillRect(470,510, 10, 10) ctx.fillStyle = cor[5148];ctx.fillRect(480,510, 10, 10) ctx.fillStyle = cor[5149];ctx.fillRect(490,510, 10, 10) ctx.fillStyle = cor[5150];ctx.fillRect(500,510, 10, 10) ctx.fillStyle = cor[5151];ctx.fillRect(510,510, 10, 10) ctx.fillStyle = cor[5152];ctx.fillRect(520,510, 10, 10) ctx.fillStyle = cor[5153];ctx.fillRect(530,510, 10, 10) ctx.fillStyle = cor[5154];ctx.fillRect(540,510, 10, 10) ctx.fillStyle = cor[5155];ctx.fillRect(550,510, 10, 10) ctx.fillStyle = cor[5156];ctx.fillRect(560,510, 10, 10) ctx.fillStyle = cor[5157];ctx.fillRect(570,510, 10, 10) ctx.fillStyle = cor[5158];ctx.fillRect(580,510, 10, 10) ctx.fillStyle = cor[5159];ctx.fillRect(590,510, 10, 10) ctx.fillStyle = cor[5160];ctx.fillRect(600,510, 10, 10) ctx.fillStyle = cor[5161];ctx.fillRect(610,510, 10, 10) ctx.fillStyle = cor[5162];ctx.fillRect(620,510, 10, 10) ctx.fillStyle = cor[5163];ctx.fillRect(630,510, 10, 10) ctx.fillStyle = cor[5164];ctx.fillRect(640,510, 10, 10) ctx.fillStyle = cor[5165];ctx.fillRect(650,510, 10, 10) ctx.fillStyle = cor[5166];ctx.fillRect(660,510, 10, 10) ctx.fillStyle = cor[5167];ctx.fillRect(670,510, 10, 10) ctx.fillStyle = cor[5168];ctx.fillRect(680,510, 10, 10) ctx.fillStyle = cor[5169];ctx.fillRect(690,510, 10, 10) ctx.fillStyle = cor[5170];ctx.fillRect(700,510, 10, 10) ctx.fillStyle = cor[5171];ctx.fillRect(710,510, 10, 10) ctx.fillStyle = cor[5172];ctx.fillRect(720,510, 10, 10) ctx.fillStyle = cor[5173];ctx.fillRect(730,510, 10, 10) ctx.fillStyle = cor[5174];ctx.fillRect(740,510, 10, 10) ctx.fillStyle = cor[5175];ctx.fillRect(750,510, 10, 10) ctx.fillStyle = cor[5176];ctx.fillRect(760,510, 10, 10) ctx.fillStyle = cor[5177];ctx.fillRect(770,510, 10, 10) ctx.fillStyle = cor[5178];ctx.fillRect(780,510, 10, 10) ctx.fillStyle = cor[5179];ctx.fillRect(790,510, 10, 10) ctx.fillStyle = cor[5180];ctx.fillRect(800,510, 10, 10) ctx.fillStyle = cor[5181];ctx.fillRect(810,510, 10, 10) ctx.fillStyle = cor[5182];ctx.fillRect(820,510, 10, 10) ctx.fillStyle = cor[5183];ctx.fillRect(830,510, 10, 10) ctx.fillStyle = cor[5184];ctx.fillRect(840,510, 10, 10) ctx.fillStyle = cor[5185];ctx.fillRect(850,510, 10, 10) ctx.fillStyle = cor[5186];ctx.fillRect(860,510, 10, 10) ctx.fillStyle = cor[5187];ctx.fillRect(870,510, 10, 10) ctx.fillStyle = cor[5188];ctx.fillRect(880,510, 10, 10) ctx.fillStyle = cor[5189];ctx.fillRect(890,510, 10, 10) ctx.fillStyle = cor[5190];ctx.fillRect(900,510, 10, 10) ctx.fillStyle = cor[5191];ctx.fillRect(910,510, 10, 10) ctx.fillStyle = cor[5192];ctx.fillRect(920,510, 10, 10) ctx.fillStyle = cor[5193];ctx.fillRect(930,510, 10, 10) ctx.fillStyle = cor[5194];ctx.fillRect(940,510, 10, 10) ctx.fillStyle = cor[5195];ctx.fillRect(950,510, 10, 10) ctx.fillStyle = cor[5196];ctx.fillRect(960,510, 10, 10) ctx.fillStyle = cor[5197];ctx.fillRect(970,510, 10, 10) ctx.fillStyle = cor[5198];ctx.fillRect(980,510, 10, 10) ctx.fillStyle = cor[5199];ctx.fillRect(990,510, 10, 10) ctx.fillStyle = cor[5200];ctx.fillRect(0,520, 10, 10) ctx.fillStyle = cor[5201];ctx.fillRect(10,520, 10, 10) ctx.fillStyle = cor[5202];ctx.fillRect(20,520, 10, 10) ctx.fillStyle = cor[5203];ctx.fillRect(30,520, 10, 10) ctx.fillStyle = cor[5204];ctx.fillRect(40,520, 10, 10) ctx.fillStyle = cor[5205];ctx.fillRect(50,520, 10, 10) ctx.fillStyle = cor[5206];ctx.fillRect(60,520, 10, 10) ctx.fillStyle = cor[5207];ctx.fillRect(70,520, 10, 10) ctx.fillStyle = cor[5208];ctx.fillRect(80,520, 10, 10) ctx.fillStyle = cor[5209];ctx.fillRect(90,520, 10, 10) ctx.fillStyle = cor[5210];ctx.fillRect(100,520, 10, 10) ctx.fillStyle = cor[5211];ctx.fillRect(110,520, 10, 10) ctx.fillStyle = cor[5212];ctx.fillRect(120,520, 10, 10) ctx.fillStyle = cor[5213];ctx.fillRect(130,520, 10, 10) ctx.fillStyle = cor[5214];ctx.fillRect(140,520, 10, 10) ctx.fillStyle = cor[5215];ctx.fillRect(150,520, 10, 10) ctx.fillStyle = cor[5216];ctx.fillRect(160,520, 10, 10) ctx.fillStyle = cor[5217];ctx.fillRect(170,520, 10, 10) ctx.fillStyle = cor[5218];ctx.fillRect(180,520, 10, 10) ctx.fillStyle = cor[5219];ctx.fillRect(190,520, 10, 10) ctx.fillStyle = cor[5220];ctx.fillRect(200,520, 10, 10) ctx.fillStyle = cor[5221];ctx.fillRect(210,520, 10, 10) ctx.fillStyle = cor[5222];ctx.fillRect(220,520, 10, 10) ctx.fillStyle = cor[5223];ctx.fillRect(230,520, 10, 10) ctx.fillStyle = cor[5224];ctx.fillRect(240,520, 10, 10) ctx.fillStyle = cor[5225];ctx.fillRect(250,520, 10, 10) ctx.fillStyle = cor[5226];ctx.fillRect(260,520, 10, 10) ctx.fillStyle = cor[5227];ctx.fillRect(270,520, 10, 10) ctx.fillStyle = cor[5228];ctx.fillRect(280,520, 10, 10) ctx.fillStyle = cor[5229];ctx.fillRect(290,520, 10, 10) ctx.fillStyle = cor[5230];ctx.fillRect(300,520, 10, 10) ctx.fillStyle = cor[5231];ctx.fillRect(310,520, 10, 10) ctx.fillStyle = cor[5232];ctx.fillRect(320,520, 10, 10) ctx.fillStyle = cor[5233];ctx.fillRect(330,520, 10, 10) ctx.fillStyle = cor[5234];ctx.fillRect(340,520, 10, 10) ctx.fillStyle = cor[5235];ctx.fillRect(350,520, 10, 10) ctx.fillStyle = cor[5236];ctx.fillRect(360,520, 10, 10) ctx.fillStyle = cor[5237];ctx.fillRect(370,520, 10, 10) ctx.fillStyle = cor[5238];ctx.fillRect(380,520, 10, 10) ctx.fillStyle = cor[5239];ctx.fillRect(390,520, 10, 10) ctx.fillStyle = cor[5240];ctx.fillRect(400,520, 10, 10) ctx.fillStyle = cor[5241];ctx.fillRect(410,520, 10, 10) ctx.fillStyle = cor[5242];ctx.fillRect(420,520, 10, 10) ctx.fillStyle = cor[5243];ctx.fillRect(430,520, 10, 10) ctx.fillStyle = cor[5244];ctx.fillRect(440,520, 10, 10) ctx.fillStyle = cor[5245];ctx.fillRect(450,520, 10, 10) ctx.fillStyle = cor[5246];ctx.fillRect(460,520, 10, 10) ctx.fillStyle = cor[5247];ctx.fillRect(470,520, 10, 10) ctx.fillStyle = cor[5248];ctx.fillRect(480,520, 10, 10) ctx.fillStyle = cor[5249];ctx.fillRect(490,520, 10, 10) ctx.fillStyle = cor[5250];ctx.fillRect(500,520, 10, 10) ctx.fillStyle = cor[5251];ctx.fillRect(510,520, 10, 10) ctx.fillStyle = cor[5252];ctx.fillRect(520,520, 10, 10) ctx.fillStyle = cor[5253];ctx.fillRect(530,520, 10, 10) ctx.fillStyle = cor[5254];ctx.fillRect(540,520, 10, 10) ctx.fillStyle = cor[5255];ctx.fillRect(550,520, 10, 10) ctx.fillStyle = cor[5256];ctx.fillRect(560,520, 10, 10) ctx.fillStyle = cor[5257];ctx.fillRect(570,520, 10, 10) ctx.fillStyle = cor[5258];ctx.fillRect(580,520, 10, 10) ctx.fillStyle = cor[5259];ctx.fillRect(590,520, 10, 10) ctx.fillStyle = cor[5260];ctx.fillRect(600,520, 10, 10) ctx.fillStyle = cor[5261];ctx.fillRect(610,520, 10, 10) ctx.fillStyle = cor[5262];ctx.fillRect(620,520, 10, 10) ctx.fillStyle = cor[5263];ctx.fillRect(630,520, 10, 10) ctx.fillStyle = cor[5264];ctx.fillRect(640,520, 10, 10) ctx.fillStyle = cor[5265];ctx.fillRect(650,520, 10, 10) ctx.fillStyle = cor[5266];ctx.fillRect(660,520, 10, 10) ctx.fillStyle = cor[5267];ctx.fillRect(670,520, 10, 10) ctx.fillStyle = cor[5268];ctx.fillRect(680,520, 10, 10) ctx.fillStyle = cor[5269];ctx.fillRect(690,520, 10, 10) ctx.fillStyle = cor[5270];ctx.fillRect(700,520, 10, 10) ctx.fillStyle = cor[5271];ctx.fillRect(710,520, 10, 10) ctx.fillStyle = cor[5272];ctx.fillRect(720,520, 10, 10) ctx.fillStyle = cor[5273];ctx.fillRect(730,520, 10, 10) ctx.fillStyle = cor[5274];ctx.fillRect(740,520, 10, 10) ctx.fillStyle = cor[5275];ctx.fillRect(750,520, 10, 10) ctx.fillStyle = cor[5276];ctx.fillRect(760,520, 10, 10) ctx.fillStyle = cor[5277];ctx.fillRect(770,520, 10, 10) ctx.fillStyle = cor[5278];ctx.fillRect(780,520, 10, 10) ctx.fillStyle = cor[5279];ctx.fillRect(790,520, 10, 10) ctx.fillStyle = cor[5280];ctx.fillRect(800,520, 10, 10) ctx.fillStyle = cor[5281];ctx.fillRect(810,520, 10, 10) ctx.fillStyle = cor[5282];ctx.fillRect(820,520, 10, 10) ctx.fillStyle = cor[5283];ctx.fillRect(830,520, 10, 10) ctx.fillStyle = cor[5284];ctx.fillRect(840,520, 10, 10) ctx.fillStyle = cor[5285];ctx.fillRect(850,520, 10, 10) ctx.fillStyle = cor[5286];ctx.fillRect(860,520, 10, 10) ctx.fillStyle = cor[5287];ctx.fillRect(870,520, 10, 10) ctx.fillStyle = cor[5288];ctx.fillRect(880,520, 10, 10) ctx.fillStyle = cor[5289];ctx.fillRect(890,520, 10, 10) ctx.fillStyle = cor[5290];ctx.fillRect(900,520, 10, 10) ctx.fillStyle = cor[5291];ctx.fillRect(910,520, 10, 10) ctx.fillStyle = cor[5292];ctx.fillRect(920,520, 10, 10) ctx.fillStyle = cor[5293];ctx.fillRect(930,520, 10, 10) ctx.fillStyle = cor[5294];ctx.fillRect(940,520, 10, 10) ctx.fillStyle = cor[5295];ctx.fillRect(950,520, 10, 10) ctx.fillStyle = cor[5296];ctx.fillRect(960,520, 10, 10) ctx.fillStyle = cor[5297];ctx.fillRect(970,520, 10, 10) ctx.fillStyle = cor[5298];ctx.fillRect(980,520, 10, 10) ctx.fillStyle = cor[5299];ctx.fillRect(990,520, 10, 10) ctx.fillStyle = cor[5300];ctx.fillRect(0,530, 10, 10) ctx.fillStyle = cor[5301];ctx.fillRect(10,530, 10, 10) ctx.fillStyle = cor[5302];ctx.fillRect(20,530, 10, 10) ctx.fillStyle = cor[5303];ctx.fillRect(30,530, 10, 10) ctx.fillStyle = cor[5304];ctx.fillRect(40,530, 10, 10) ctx.fillStyle = cor[5305];ctx.fillRect(50,530, 10, 10) ctx.fillStyle = cor[5306];ctx.fillRect(60,530, 10, 10) ctx.fillStyle = cor[5307];ctx.fillRect(70,530, 10, 10) ctx.fillStyle = cor[5308];ctx.fillRect(80,530, 10, 10) ctx.fillStyle = cor[5309];ctx.fillRect(90,530, 10, 10) ctx.fillStyle = cor[5310];ctx.fillRect(100,530, 10, 10) ctx.fillStyle = cor[5311];ctx.fillRect(110,530, 10, 10) ctx.fillStyle = cor[5312];ctx.fillRect(120,530, 10, 10) ctx.fillStyle = cor[5313];ctx.fillRect(130,530, 10, 10) ctx.fillStyle = cor[5314];ctx.fillRect(140,530, 10, 10) ctx.fillStyle = cor[5315];ctx.fillRect(150,530, 10, 10) ctx.fillStyle = cor[5316];ctx.fillRect(160,530, 10, 10) ctx.fillStyle = cor[5317];ctx.fillRect(170,530, 10, 10) ctx.fillStyle = cor[5318];ctx.fillRect(180,530, 10, 10) ctx.fillStyle = cor[5319];ctx.fillRect(190,530, 10, 10) ctx.fillStyle = cor[5320];ctx.fillRect(200,530, 10, 10) ctx.fillStyle = cor[5321];ctx.fillRect(210,530, 10, 10) ctx.fillStyle = cor[5322];ctx.fillRect(220,530, 10, 10) ctx.fillStyle = cor[5323];ctx.fillRect(230,530, 10, 10) ctx.fillStyle = cor[5324];ctx.fillRect(240,530, 10, 10) ctx.fillStyle = cor[5325];ctx.fillRect(250,530, 10, 10) ctx.fillStyle = cor[5326];ctx.fillRect(260,530, 10, 10) ctx.fillStyle = cor[5327];ctx.fillRect(270,530, 10, 10) ctx.fillStyle = cor[5328];ctx.fillRect(280,530, 10, 10) ctx.fillStyle = cor[5329];ctx.fillRect(290,530, 10, 10) ctx.fillStyle = cor[5330];ctx.fillRect(300,530, 10, 10) ctx.fillStyle = cor[5331];ctx.fillRect(310,530, 10, 10) ctx.fillStyle = cor[5332];ctx.fillRect(320,530, 10, 10) ctx.fillStyle = cor[5333];ctx.fillRect(330,530, 10, 10) ctx.fillStyle = cor[5334];ctx.fillRect(340,530, 10, 10) ctx.fillStyle = cor[5335];ctx.fillRect(350,530, 10, 10) ctx.fillStyle = cor[5336];ctx.fillRect(360,530, 10, 10) ctx.fillStyle = cor[5337];ctx.fillRect(370,530, 10, 10) ctx.fillStyle = cor[5338];ctx.fillRect(380,530, 10, 10) ctx.fillStyle = cor[5339];ctx.fillRect(390,530, 10, 10) ctx.fillStyle = cor[5340];ctx.fillRect(400,530, 10, 10) ctx.fillStyle = cor[5341];ctx.fillRect(410,530, 10, 10) ctx.fillStyle = cor[5342];ctx.fillRect(420,530, 10, 10) ctx.fillStyle = cor[5343];ctx.fillRect(430,530, 10, 10) ctx.fillStyle = cor[5344];ctx.fillRect(440,530, 10, 10) ctx.fillStyle = cor[5345];ctx.fillRect(450,530, 10, 10) ctx.fillStyle = cor[5346];ctx.fillRect(460,530, 10, 10) ctx.fillStyle = cor[5347];ctx.fillRect(470,530, 10, 10) ctx.fillStyle = cor[5348];ctx.fillRect(480,530, 10, 10) ctx.fillStyle = cor[5349];ctx.fillRect(490,530, 10, 10) ctx.fillStyle = cor[5350];ctx.fillRect(500,530, 10, 10) ctx.fillStyle = cor[5351];ctx.fillRect(510,530, 10, 10) ctx.fillStyle = cor[5352];ctx.fillRect(520,530, 10, 10) ctx.fillStyle = cor[5353];ctx.fillRect(530,530, 10, 10) ctx.fillStyle = cor[5354];ctx.fillRect(540,530, 10, 10) ctx.fillStyle = cor[5355];ctx.fillRect(550,530, 10, 10) ctx.fillStyle = cor[5356];ctx.fillRect(560,530, 10, 10) ctx.fillStyle = cor[5357];ctx.fillRect(570,530, 10, 10) ctx.fillStyle = cor[5358];ctx.fillRect(580,530, 10, 10) ctx.fillStyle = cor[5359];ctx.fillRect(590,530, 10, 10) ctx.fillStyle = cor[5360];ctx.fillRect(600,530, 10, 10) ctx.fillStyle = cor[5361];ctx.fillRect(610,530, 10, 10) ctx.fillStyle = cor[5362];ctx.fillRect(620,530, 10, 10) ctx.fillStyle = cor[5363];ctx.fillRect(630,530, 10, 10) ctx.fillStyle = cor[5364];ctx.fillRect(640,530, 10, 10) ctx.fillStyle = cor[5365];ctx.fillRect(650,530, 10, 10) ctx.fillStyle = cor[5366];ctx.fillRect(660,530, 10, 10) ctx.fillStyle = cor[5367];ctx.fillRect(670,530, 10, 10) ctx.fillStyle = cor[5368];ctx.fillRect(680,530, 10, 10) ctx.fillStyle = cor[5369];ctx.fillRect(690,530, 10, 10) ctx.fillStyle = cor[5370];ctx.fillRect(700,530, 10, 10) ctx.fillStyle = cor[5371];ctx.fillRect(710,530, 10, 10) ctx.fillStyle = cor[5372];ctx.fillRect(720,530, 10, 10) ctx.fillStyle = cor[5373];ctx.fillRect(730,530, 10, 10) ctx.fillStyle = cor[5374];ctx.fillRect(740,530, 10, 10) ctx.fillStyle = cor[5375];ctx.fillRect(750,530, 10, 10) ctx.fillStyle = cor[5376];ctx.fillRect(760,530, 10, 10) ctx.fillStyle = cor[5377];ctx.fillRect(770,530, 10, 10) ctx.fillStyle = cor[5378];ctx.fillRect(780,530, 10, 10) ctx.fillStyle = cor[5379];ctx.fillRect(790,530, 10, 10) ctx.fillStyle = cor[5380];ctx.fillRect(800,530, 10, 10) ctx.fillStyle = cor[5381];ctx.fillRect(810,530, 10, 10) ctx.fillStyle = cor[5382];ctx.fillRect(820,530, 10, 10) ctx.fillStyle = cor[5383];ctx.fillRect(830,530, 10, 10) ctx.fillStyle = cor[5384];ctx.fillRect(840,530, 10, 10) ctx.fillStyle = cor[5385];ctx.fillRect(850,530, 10, 10) ctx.fillStyle = cor[5386];ctx.fillRect(860,530, 10, 10) ctx.fillStyle = cor[5387];ctx.fillRect(870,530, 10, 10) ctx.fillStyle = cor[5388];ctx.fillRect(880,530, 10, 10) ctx.fillStyle = cor[5389];ctx.fillRect(890,530, 10, 10) ctx.fillStyle = cor[5390];ctx.fillRect(900,530, 10, 10) ctx.fillStyle = cor[5391];ctx.fillRect(910,530, 10, 10) ctx.fillStyle = cor[5392];ctx.fillRect(920,530, 10, 10) ctx.fillStyle = cor[5393];ctx.fillRect(930,530, 10, 10) ctx.fillStyle = cor[5394];ctx.fillRect(940,530, 10, 10) ctx.fillStyle = cor[5395];ctx.fillRect(950,530, 10, 10) ctx.fillStyle = cor[5396];ctx.fillRect(960,530, 10, 10) ctx.fillStyle = cor[5397];ctx.fillRect(970,530, 10, 10) ctx.fillStyle = cor[5398];ctx.fillRect(980,530, 10, 10) ctx.fillStyle = cor[5399];ctx.fillRect(990,530, 10, 10) ctx.fillStyle = cor[5400];ctx.fillRect(0,540, 10, 10) ctx.fillStyle = cor[5401];ctx.fillRect(10,540, 10, 10) ctx.fillStyle = cor[5402];ctx.fillRect(20,540, 10, 10) ctx.fillStyle = cor[5403];ctx.fillRect(30,540, 10, 10) ctx.fillStyle = cor[5404];ctx.fillRect(40,540, 10, 10) ctx.fillStyle = cor[5405];ctx.fillRect(50,540, 10, 10) ctx.fillStyle = cor[5406];ctx.fillRect(60,540, 10, 10) ctx.fillStyle = cor[5407];ctx.fillRect(70,540, 10, 10) ctx.fillStyle = cor[5408];ctx.fillRect(80,540, 10, 10) ctx.fillStyle = cor[5409];ctx.fillRect(90,540, 10, 10) ctx.fillStyle = cor[5410];ctx.fillRect(100,540, 10, 10) ctx.fillStyle = cor[5411];ctx.fillRect(110,540, 10, 10) ctx.fillStyle = cor[5412];ctx.fillRect(120,540, 10, 10) ctx.fillStyle = cor[5413];ctx.fillRect(130,540, 10, 10) ctx.fillStyle = cor[5414];ctx.fillRect(140,540, 10, 10) ctx.fillStyle = cor[5415];ctx.fillRect(150,540, 10, 10) ctx.fillStyle = cor[5416];ctx.fillRect(160,540, 10, 10) ctx.fillStyle = cor[5417];ctx.fillRect(170,540, 10, 10) ctx.fillStyle = cor[5418];ctx.fillRect(180,540, 10, 10) ctx.fillStyle = cor[5419];ctx.fillRect(190,540, 10, 10) ctx.fillStyle = cor[5420];ctx.fillRect(200,540, 10, 10) ctx.fillStyle = cor[5421];ctx.fillRect(210,540, 10, 10) ctx.fillStyle = cor[5422];ctx.fillRect(220,540, 10, 10) ctx.fillStyle = cor[5423];ctx.fillRect(230,540, 10, 10) ctx.fillStyle = cor[5424];ctx.fillRect(240,540, 10, 10) ctx.fillStyle = cor[5425];ctx.fillRect(250,540, 10, 10) ctx.fillStyle = cor[5426];ctx.fillRect(260,540, 10, 10) ctx.fillStyle = cor[5427];ctx.fillRect(270,540, 10, 10) ctx.fillStyle = cor[5428];ctx.fillRect(280,540, 10, 10) ctx.fillStyle = cor[5429];ctx.fillRect(290,540, 10, 10) ctx.fillStyle = cor[5430];ctx.fillRect(300,540, 10, 10) ctx.fillStyle = cor[5431];ctx.fillRect(310,540, 10, 10) ctx.fillStyle = cor[5432];ctx.fillRect(320,540, 10, 10) ctx.fillStyle = cor[5433];ctx.fillRect(330,540, 10, 10) ctx.fillStyle = cor[5434];ctx.fillRect(340,540, 10, 10) ctx.fillStyle = cor[5435];ctx.fillRect(350,540, 10, 10) ctx.fillStyle = cor[5436];ctx.fillRect(360,540, 10, 10) ctx.fillStyle = cor[5437];ctx.fillRect(370,540, 10, 10) ctx.fillStyle = cor[5438];ctx.fillRect(380,540, 10, 10) ctx.fillStyle = cor[5439];ctx.fillRect(390,540, 10, 10) ctx.fillStyle = cor[5440];ctx.fillRect(400,540, 10, 10) ctx.fillStyle = cor[5441];ctx.fillRect(410,540, 10, 10) ctx.fillStyle = cor[5442];ctx.fillRect(420,540, 10, 10) ctx.fillStyle = cor[5443];ctx.fillRect(430,540, 10, 10) ctx.fillStyle = cor[5444];ctx.fillRect(440,540, 10, 10) ctx.fillStyle = cor[5445];ctx.fillRect(450,540, 10, 10) ctx.fillStyle = cor[5446];ctx.fillRect(460,540, 10, 10) ctx.fillStyle = cor[5447];ctx.fillRect(470,540, 10, 10) ctx.fillStyle = cor[5448];ctx.fillRect(480,540, 10, 10) ctx.fillStyle = cor[5449];ctx.fillRect(490,540, 10, 10) ctx.fillStyle = cor[5450];ctx.fillRect(500,540, 10, 10) ctx.fillStyle = cor[5451];ctx.fillRect(510,540, 10, 10) ctx.fillStyle = cor[5452];ctx.fillRect(520,540, 10, 10) ctx.fillStyle = cor[5453];ctx.fillRect(530,540, 10, 10) ctx.fillStyle = cor[5454];ctx.fillRect(540,540, 10, 10) ctx.fillStyle = cor[5455];ctx.fillRect(550,540, 10, 10) ctx.fillStyle = cor[5456];ctx.fillRect(560,540, 10, 10) ctx.fillStyle = cor[5457];ctx.fillRect(570,540, 10, 10) ctx.fillStyle = cor[5458];ctx.fillRect(580,540, 10, 10) ctx.fillStyle = cor[5459];ctx.fillRect(590,540, 10, 10) ctx.fillStyle = cor[5460];ctx.fillRect(600,540, 10, 10) ctx.fillStyle = cor[5461];ctx.fillRect(610,540, 10, 10) ctx.fillStyle = cor[5462];ctx.fillRect(620,540, 10, 10) ctx.fillStyle = cor[5463];ctx.fillRect(630,540, 10, 10) ctx.fillStyle = cor[5464];ctx.fillRect(640,540, 10, 10) ctx.fillStyle = cor[5465];ctx.fillRect(650,540, 10, 10) ctx.fillStyle = cor[5466];ctx.fillRect(660,540, 10, 10) ctx.fillStyle = cor[5467];ctx.fillRect(670,540, 10, 10) ctx.fillStyle = cor[5468];ctx.fillRect(680,540, 10, 10) ctx.fillStyle = cor[5469];ctx.fillRect(690,540, 10, 10) ctx.fillStyle = cor[5470];ctx.fillRect(700,540, 10, 10) ctx.fillStyle = cor[5471];ctx.fillRect(710,540, 10, 10) ctx.fillStyle = cor[5472];ctx.fillRect(720,540, 10, 10) ctx.fillStyle = cor[5473];ctx.fillRect(730,540, 10, 10) ctx.fillStyle = cor[5474];ctx.fillRect(740,540, 10, 10) ctx.fillStyle = cor[5475];ctx.fillRect(750,540, 10, 10) ctx.fillStyle = cor[5476];ctx.fillRect(760,540, 10, 10) ctx.fillStyle = cor[5477];ctx.fillRect(770,540, 10, 10) ctx.fillStyle = cor[5478];ctx.fillRect(780,540, 10, 10) ctx.fillStyle = cor[5479];ctx.fillRect(790,540, 10, 10) ctx.fillStyle = cor[5480];ctx.fillRect(800,540, 10, 10) ctx.fillStyle = cor[5481];ctx.fillRect(810,540, 10, 10) ctx.fillStyle = cor[5482];ctx.fillRect(820,540, 10, 10) ctx.fillStyle = cor[5483];ctx.fillRect(830,540, 10, 10) ctx.fillStyle = cor[5484];ctx.fillRect(840,540, 10, 10) ctx.fillStyle = cor[5485];ctx.fillRect(850,540, 10, 10) ctx.fillStyle = cor[5486];ctx.fillRect(860,540, 10, 10) ctx.fillStyle = cor[5487];ctx.fillRect(870,540, 10, 10) ctx.fillStyle = cor[5488];ctx.fillRect(880,540, 10, 10) ctx.fillStyle = cor[5489];ctx.fillRect(890,540, 10, 10) ctx.fillStyle = cor[5490];ctx.fillRect(900,540, 10, 10) ctx.fillStyle = cor[5491];ctx.fillRect(910,540, 10, 10) ctx.fillStyle = cor[5492];ctx.fillRect(920,540, 10, 10) ctx.fillStyle = cor[5493];ctx.fillRect(930,540, 10, 10) ctx.fillStyle = cor[5494];ctx.fillRect(940,540, 10, 10) ctx.fillStyle = cor[5495];ctx.fillRect(950,540, 10, 10) ctx.fillStyle = cor[5496];ctx.fillRect(960,540, 10, 10) ctx.fillStyle = cor[5497];ctx.fillRect(970,540, 10, 10) ctx.fillStyle = cor[5498];ctx.fillRect(980,540, 10, 10) ctx.fillStyle = cor[5499];ctx.fillRect(990,540, 10, 10) ctx.fillStyle = cor[5500];ctx.fillRect(0,550, 10, 10) ctx.fillStyle = cor[5501];ctx.fillRect(10,550, 10, 10) ctx.fillStyle = cor[5502];ctx.fillRect(20,550, 10, 10) ctx.fillStyle = cor[5503];ctx.fillRect(30,550, 10, 10) ctx.fillStyle = cor[5504];ctx.fillRect(40,550, 10, 10) ctx.fillStyle = cor[5505];ctx.fillRect(50,550, 10, 10) ctx.fillStyle = cor[5506];ctx.fillRect(60,550, 10, 10) ctx.fillStyle = cor[5507];ctx.fillRect(70,550, 10, 10) ctx.fillStyle = cor[5508];ctx.fillRect(80,550, 10, 10) ctx.fillStyle = cor[5509];ctx.fillRect(90,550, 10, 10) ctx.fillStyle = cor[5510];ctx.fillRect(100,550, 10, 10) ctx.fillStyle = cor[5511];ctx.fillRect(110,550, 10, 10) ctx.fillStyle = cor[5512];ctx.fillRect(120,550, 10, 10) ctx.fillStyle = cor[5513];ctx.fillRect(130,550, 10, 10) ctx.fillStyle = cor[5514];ctx.fillRect(140,550, 10, 10) ctx.fillStyle = cor[5515];ctx.fillRect(150,550, 10, 10) ctx.fillStyle = cor[5516];ctx.fillRect(160,550, 10, 10) ctx.fillStyle = cor[5517];ctx.fillRect(170,550, 10, 10) ctx.fillStyle = cor[5518];ctx.fillRect(180,550, 10, 10) ctx.fillStyle = cor[5519];ctx.fillRect(190,550, 10, 10) ctx.fillStyle = cor[5520];ctx.fillRect(200,550, 10, 10) ctx.fillStyle = cor[5521];ctx.fillRect(210,550, 10, 10) ctx.fillStyle = cor[5522];ctx.fillRect(220,550, 10, 10) ctx.fillStyle = cor[5523];ctx.fillRect(230,550, 10, 10) ctx.fillStyle = cor[5524];ctx.fillRect(240,550, 10, 10) ctx.fillStyle = cor[5525];ctx.fillRect(250,550, 10, 10) ctx.fillStyle = cor[5526];ctx.fillRect(260,550, 10, 10) ctx.fillStyle = cor[5527];ctx.fillRect(270,550, 10, 10) ctx.fillStyle = cor[5528];ctx.fillRect(280,550, 10, 10) ctx.fillStyle = cor[5529];ctx.fillRect(290,550, 10, 10) ctx.fillStyle = cor[5530];ctx.fillRect(300,550, 10, 10) ctx.fillStyle = cor[5531];ctx.fillRect(310,550, 10, 10) ctx.fillStyle = cor[5532];ctx.fillRect(320,550, 10, 10) ctx.fillStyle = cor[5533];ctx.fillRect(330,550, 10, 10) ctx.fillStyle = cor[5534];ctx.fillRect(340,550, 10, 10) ctx.fillStyle = cor[5535];ctx.fillRect(350,550, 10, 10) ctx.fillStyle = cor[5536];ctx.fillRect(360,550, 10, 10) ctx.fillStyle = cor[5537];ctx.fillRect(370,550, 10, 10) ctx.fillStyle = cor[5538];ctx.fillRect(380,550, 10, 10) ctx.fillStyle = cor[5539];ctx.fillRect(390,550, 10, 10) ctx.fillStyle = cor[5540];ctx.fillRect(400,550, 10, 10) ctx.fillStyle = cor[5541];ctx.fillRect(410,550, 10, 10) ctx.fillStyle = cor[5542];ctx.fillRect(420,550, 10, 10) ctx.fillStyle = cor[5543];ctx.fillRect(430,550, 10, 10) ctx.fillStyle = cor[5544];ctx.fillRect(440,550, 10, 10) ctx.fillStyle = cor[5545];ctx.fillRect(450,550, 10, 10) ctx.fillStyle = cor[5546];ctx.fillRect(460,550, 10, 10) ctx.fillStyle = cor[5547];ctx.fillRect(470,550, 10, 10) ctx.fillStyle = cor[5548];ctx.fillRect(480,550, 10, 10) ctx.fillStyle = cor[5549];ctx.fillRect(490,550, 10, 10) ctx.fillStyle = cor[5550];ctx.fillRect(500,550, 10, 10) ctx.fillStyle = cor[5551];ctx.fillRect(510,550, 10, 10) ctx.fillStyle = cor[5552];ctx.fillRect(520,550, 10, 10) ctx.fillStyle = cor[5553];ctx.fillRect(530,550, 10, 10) ctx.fillStyle = cor[5554];ctx.fillRect(540,550, 10, 10) ctx.fillStyle = cor[5555];ctx.fillRect(550,550, 10, 10) ctx.fillStyle = cor[5556];ctx.fillRect(560,550, 10, 10) ctx.fillStyle = cor[5557];ctx.fillRect(570,550, 10, 10) ctx.fillStyle = cor[5558];ctx.fillRect(580,550, 10, 10) ctx.fillStyle = cor[5559];ctx.fillRect(590,550, 10, 10) ctx.fillStyle = cor[5560];ctx.fillRect(600,550, 10, 10) ctx.fillStyle = cor[5561];ctx.fillRect(610,550, 10, 10) ctx.fillStyle = cor[5562];ctx.fillRect(620,550, 10, 10) ctx.fillStyle = cor[5563];ctx.fillRect(630,550, 10, 10) ctx.fillStyle = cor[5564];ctx.fillRect(640,550, 10, 10) ctx.fillStyle = cor[5565];ctx.fillRect(650,550, 10, 10) ctx.fillStyle = cor[5566];ctx.fillRect(660,550, 10, 10) ctx.fillStyle = cor[5567];ctx.fillRect(670,550, 10, 10) ctx.fillStyle = cor[5568];ctx.fillRect(680,550, 10, 10) ctx.fillStyle = cor[5569];ctx.fillRect(690,550, 10, 10) ctx.fillStyle = cor[5570];ctx.fillRect(700,550, 10, 10) ctx.fillStyle = cor[5571];ctx.fillRect(710,550, 10, 10) ctx.fillStyle = cor[5572];ctx.fillRect(720,550, 10, 10) ctx.fillStyle = cor[5573];ctx.fillRect(730,550, 10, 10) ctx.fillStyle = cor[5574];ctx.fillRect(740,550, 10, 10) ctx.fillStyle = cor[5575];ctx.fillRect(750,550, 10, 10) ctx.fillStyle = cor[5576];ctx.fillRect(760,550, 10, 10) ctx.fillStyle = cor[5577];ctx.fillRect(770,550, 10, 10) ctx.fillStyle = cor[5578];ctx.fillRect(780,550, 10, 10) ctx.fillStyle = cor[5579];ctx.fillRect(790,550, 10, 10) ctx.fillStyle = cor[5580];ctx.fillRect(800,550, 10, 10) ctx.fillStyle = cor[5581];ctx.fillRect(810,550, 10, 10) ctx.fillStyle = cor[5582];ctx.fillRect(820,550, 10, 10) ctx.fillStyle = cor[5583];ctx.fillRect(830,550, 10, 10) ctx.fillStyle = cor[5584];ctx.fillRect(840,550, 10, 10) ctx.fillStyle = cor[5585];ctx.fillRect(850,550, 10, 10) ctx.fillStyle = cor[5586];ctx.fillRect(860,550, 10, 10) ctx.fillStyle = cor[5587];ctx.fillRect(870,550, 10, 10) ctx.fillStyle = cor[5588];ctx.fillRect(880,550, 10, 10) ctx.fillStyle = cor[5589];ctx.fillRect(890,550, 10, 10) ctx.fillStyle = cor[5590];ctx.fillRect(900,550, 10, 10) ctx.fillStyle = cor[5591];ctx.fillRect(910,550, 10, 10) ctx.fillStyle = cor[5592];ctx.fillRect(920,550, 10, 10) ctx.fillStyle = cor[5593];ctx.fillRect(930,550, 10, 10) ctx.fillStyle = cor[5594];ctx.fillRect(940,550, 10, 10) ctx.fillStyle = cor[5595];ctx.fillRect(950,550, 10, 10) ctx.fillStyle = cor[5596];ctx.fillRect(960,550, 10, 10) ctx.fillStyle = cor[5597];ctx.fillRect(970,550, 10, 10) ctx.fillStyle = cor[5598];ctx.fillRect(980,550, 10, 10) ctx.fillStyle = cor[5599];ctx.fillRect(990,550, 10, 10) ctx.fillStyle = cor[5600];ctx.fillRect(0,560, 10, 10) ctx.fillStyle = cor[5601];ctx.fillRect(10,560, 10, 10) ctx.fillStyle = cor[5602];ctx.fillRect(20,560, 10, 10) ctx.fillStyle = cor[5603];ctx.fillRect(30,560, 10, 10) ctx.fillStyle = cor[5604];ctx.fillRect(40,560, 10, 10) ctx.fillStyle = cor[5605];ctx.fillRect(50,560, 10, 10) ctx.fillStyle = cor[5606];ctx.fillRect(60,560, 10, 10) ctx.fillStyle = cor[5607];ctx.fillRect(70,560, 10, 10) ctx.fillStyle = cor[5608];ctx.fillRect(80,560, 10, 10) ctx.fillStyle = cor[5609];ctx.fillRect(90,560, 10, 10) ctx.fillStyle = cor[5610];ctx.fillRect(100,560, 10, 10) ctx.fillStyle = cor[5611];ctx.fillRect(110,560, 10, 10) ctx.fillStyle = cor[5612];ctx.fillRect(120,560, 10, 10) ctx.fillStyle = cor[5613];ctx.fillRect(130,560, 10, 10) ctx.fillStyle = cor[5614];ctx.fillRect(140,560, 10, 10) ctx.fillStyle = cor[5615];ctx.fillRect(150,560, 10, 10) ctx.fillStyle = cor[5616];ctx.fillRect(160,560, 10, 10) ctx.fillStyle = cor[5617];ctx.fillRect(170,560, 10, 10) ctx.fillStyle = cor[5618];ctx.fillRect(180,560, 10, 10) ctx.fillStyle = cor[5619];ctx.fillRect(190,560, 10, 10) ctx.fillStyle = cor[5620];ctx.fillRect(200,560, 10, 10) ctx.fillStyle = cor[5621];ctx.fillRect(210,560, 10, 10) ctx.fillStyle = cor[5622];ctx.fillRect(220,560, 10, 10) ctx.fillStyle = cor[5623];ctx.fillRect(230,560, 10, 10) ctx.fillStyle = cor[5624];ctx.fillRect(240,560, 10, 10) ctx.fillStyle = cor[5625];ctx.fillRect(250,560, 10, 10) ctx.fillStyle = cor[5626];ctx.fillRect(260,560, 10, 10) ctx.fillStyle = cor[5627];ctx.fillRect(270,560, 10, 10) ctx.fillStyle = cor[5628];ctx.fillRect(280,560, 10, 10) ctx.fillStyle = cor[5629];ctx.fillRect(290,560, 10, 10) ctx.fillStyle = cor[5630];ctx.fillRect(300,560, 10, 10) ctx.fillStyle = cor[5631];ctx.fillRect(310,560, 10, 10) ctx.fillStyle = cor[5632];ctx.fillRect(320,560, 10, 10) ctx.fillStyle = cor[5633];ctx.fillRect(330,560, 10, 10) ctx.fillStyle = cor[5634];ctx.fillRect(340,560, 10, 10) ctx.fillStyle = cor[5635];ctx.fillRect(350,560, 10, 10) ctx.fillStyle = cor[5636];ctx.fillRect(360,560, 10, 10) ctx.fillStyle = cor[5637];ctx.fillRect(370,560, 10, 10) ctx.fillStyle = cor[5638];ctx.fillRect(380,560, 10, 10) ctx.fillStyle = cor[5639];ctx.fillRect(390,560, 10, 10) ctx.fillStyle = cor[5640];ctx.fillRect(400,560, 10, 10) ctx.fillStyle = cor[5641];ctx.fillRect(410,560, 10, 10) ctx.fillStyle = cor[5642];ctx.fillRect(420,560, 10, 10) ctx.fillStyle = cor[5643];ctx.fillRect(430,560, 10, 10) ctx.fillStyle = cor[5644];ctx.fillRect(440,560, 10, 10) ctx.fillStyle = cor[5645];ctx.fillRect(450,560, 10, 10) ctx.fillStyle = cor[5646];ctx.fillRect(460,560, 10, 10) ctx.fillStyle = cor[5647];ctx.fillRect(470,560, 10, 10) ctx.fillStyle = cor[5648];ctx.fillRect(480,560, 10, 10) ctx.fillStyle = cor[5649];ctx.fillRect(490,560, 10, 10) ctx.fillStyle = cor[5650];ctx.fillRect(500,560, 10, 10) ctx.fillStyle = cor[5651];ctx.fillRect(510,560, 10, 10) ctx.fillStyle = cor[5652];ctx.fillRect(520,560, 10, 10) ctx.fillStyle = cor[5653];ctx.fillRect(530,560, 10, 10) ctx.fillStyle = cor[5654];ctx.fillRect(540,560, 10, 10) ctx.fillStyle = cor[5655];ctx.fillRect(550,560, 10, 10) ctx.fillStyle = cor[5656];ctx.fillRect(560,560, 10, 10) ctx.fillStyle = cor[5657];ctx.fillRect(570,560, 10, 10) ctx.fillStyle = cor[5658];ctx.fillRect(580,560, 10, 10) ctx.fillStyle = cor[5659];ctx.fillRect(590,560, 10, 10) ctx.fillStyle = cor[5660];ctx.fillRect(600,560, 10, 10) ctx.fillStyle = cor[5661];ctx.fillRect(610,560, 10, 10) ctx.fillStyle = cor[5662];ctx.fillRect(620,560, 10, 10) ctx.fillStyle = cor[5663];ctx.fillRect(630,560, 10, 10) ctx.fillStyle = cor[5664];ctx.fillRect(640,560, 10, 10) ctx.fillStyle = cor[5665];ctx.fillRect(650,560, 10, 10) ctx.fillStyle = cor[5666];ctx.fillRect(660,560, 10, 10) ctx.fillStyle = cor[5667];ctx.fillRect(670,560, 10, 10) ctx.fillStyle = cor[5668];ctx.fillRect(680,560, 10, 10) ctx.fillStyle = cor[5669];ctx.fillRect(690,560, 10, 10) ctx.fillStyle = cor[5670];ctx.fillRect(700,560, 10, 10) ctx.fillStyle = cor[5671];ctx.fillRect(710,560, 10, 10) ctx.fillStyle = cor[5672];ctx.fillRect(720,560, 10, 10) ctx.fillStyle = cor[5673];ctx.fillRect(730,560, 10, 10) ctx.fillStyle = cor[5674];ctx.fillRect(740,560, 10, 10) ctx.fillStyle = cor[5675];ctx.fillRect(750,560, 10, 10) ctx.fillStyle = cor[5676];ctx.fillRect(760,560, 10, 10) ctx.fillStyle = cor[5677];ctx.fillRect(770,560, 10, 10) ctx.fillStyle = cor[5678];ctx.fillRect(780,560, 10, 10) ctx.fillStyle = cor[5679];ctx.fillRect(790,560, 10, 10) ctx.fillStyle = cor[5680];ctx.fillRect(800,560, 10, 10) ctx.fillStyle = cor[5681];ctx.fillRect(810,560, 10, 10) ctx.fillStyle = cor[5682];ctx.fillRect(820,560, 10, 10) ctx.fillStyle = cor[5683];ctx.fillRect(830,560, 10, 10) ctx.fillStyle = cor[5684];ctx.fillRect(840,560, 10, 10) ctx.fillStyle = cor[5685];ctx.fillRect(850,560, 10, 10) ctx.fillStyle = cor[5686];ctx.fillRect(860,560, 10, 10) ctx.fillStyle = cor[5687];ctx.fillRect(870,560, 10, 10) ctx.fillStyle = cor[5688];ctx.fillRect(880,560, 10, 10) ctx.fillStyle = cor[5689];ctx.fillRect(890,560, 10, 10) ctx.fillStyle = cor[5690];ctx.fillRect(900,560, 10, 10) ctx.fillStyle = cor[5691];ctx.fillRect(910,560, 10, 10) ctx.fillStyle = cor[5692];ctx.fillRect(920,560, 10, 10) ctx.fillStyle = cor[5693];ctx.fillRect(930,560, 10, 10) ctx.fillStyle = cor[5694];ctx.fillRect(940,560, 10, 10) ctx.fillStyle = cor[5695];ctx.fillRect(950,560, 10, 10) ctx.fillStyle = cor[5696];ctx.fillRect(960,560, 10, 10) ctx.fillStyle = cor[5697];ctx.fillRect(970,560, 10, 10) ctx.fillStyle = cor[5698];ctx.fillRect(980,560, 10, 10) ctx.fillStyle = cor[5699];ctx.fillRect(990,560, 10, 10) ctx.fillStyle = cor[5700];ctx.fillRect(0,570, 10, 10) ctx.fillStyle = cor[5701];ctx.fillRect(10,570, 10, 10) ctx.fillStyle = cor[5702];ctx.fillRect(20,570, 10, 10) ctx.fillStyle = cor[5703];ctx.fillRect(30,570, 10, 10) ctx.fillStyle = cor[5704];ctx.fillRect(40,570, 10, 10) ctx.fillStyle = cor[5705];ctx.fillRect(50,570, 10, 10) ctx.fillStyle = cor[5706];ctx.fillRect(60,570, 10, 10) ctx.fillStyle = cor[5707];ctx.fillRect(70,570, 10, 10) ctx.fillStyle = cor[5708];ctx.fillRect(80,570, 10, 10) ctx.fillStyle = cor[5709];ctx.fillRect(90,570, 10, 10) ctx.fillStyle = cor[5710];ctx.fillRect(100,570, 10, 10) ctx.fillStyle = cor[5711];ctx.fillRect(110,570, 10, 10) ctx.fillStyle = cor[5712];ctx.fillRect(120,570, 10, 10) ctx.fillStyle = cor[5713];ctx.fillRect(130,570, 10, 10) ctx.fillStyle = cor[5714];ctx.fillRect(140,570, 10, 10) ctx.fillStyle = cor[5715];ctx.fillRect(150,570, 10, 10) ctx.fillStyle = cor[5716];ctx.fillRect(160,570, 10, 10) ctx.fillStyle = cor[5717];ctx.fillRect(170,570, 10, 10) ctx.fillStyle = cor[5718];ctx.fillRect(180,570, 10, 10) ctx.fillStyle = cor[5719];ctx.fillRect(190,570, 10, 10) ctx.fillStyle = cor[5720];ctx.fillRect(200,570, 10, 10) ctx.fillStyle = cor[5721];ctx.fillRect(210,570, 10, 10) ctx.fillStyle = cor[5722];ctx.fillRect(220,570, 10, 10) ctx.fillStyle = cor[5723];ctx.fillRect(230,570, 10, 10) ctx.fillStyle = cor[5724];ctx.fillRect(240,570, 10, 10) ctx.fillStyle = cor[5725];ctx.fillRect(250,570, 10, 10) ctx.fillStyle = cor[5726];ctx.fillRect(260,570, 10, 10) ctx.fillStyle = cor[5727];ctx.fillRect(270,570, 10, 10) ctx.fillStyle = cor[5728];ctx.fillRect(280,570, 10, 10) ctx.fillStyle = cor[5729];ctx.fillRect(290,570, 10, 10) ctx.fillStyle = cor[5730];ctx.fillRect(300,570, 10, 10) ctx.fillStyle = cor[5731];ctx.fillRect(310,570, 10, 10) ctx.fillStyle = cor[5732];ctx.fillRect(320,570, 10, 10) ctx.fillStyle = cor[5733];ctx.fillRect(330,570, 10, 10) ctx.fillStyle = cor[5734];ctx.fillRect(340,570, 10, 10) ctx.fillStyle = cor[5735];ctx.fillRect(350,570, 10, 10) ctx.fillStyle = cor[5736];ctx.fillRect(360,570, 10, 10) ctx.fillStyle = cor[5737];ctx.fillRect(370,570, 10, 10) ctx.fillStyle = cor[5738];ctx.fillRect(380,570, 10, 10) ctx.fillStyle = cor[5739];ctx.fillRect(390,570, 10, 10) ctx.fillStyle = cor[5740];ctx.fillRect(400,570, 10, 10) ctx.fillStyle = cor[5741];ctx.fillRect(410,570, 10, 10) ctx.fillStyle = cor[5742];ctx.fillRect(420,570, 10, 10) ctx.fillStyle = cor[5743];ctx.fillRect(430,570, 10, 10) ctx.fillStyle = cor[5744];ctx.fillRect(440,570, 10, 10) ctx.fillStyle = cor[5745];ctx.fillRect(450,570, 10, 10) ctx.fillStyle = cor[5746];ctx.fillRect(460,570, 10, 10) ctx.fillStyle = cor[5747];ctx.fillRect(470,570, 10, 10) ctx.fillStyle = cor[5748];ctx.fillRect(480,570, 10, 10) ctx.fillStyle = cor[5749];ctx.fillRect(490,570, 10, 10) ctx.fillStyle = cor[5750];ctx.fillRect(500,570, 10, 10) ctx.fillStyle = cor[5751];ctx.fillRect(510,570, 10, 10) ctx.fillStyle = cor[5752];ctx.fillRect(520,570, 10, 10) ctx.fillStyle = cor[5753];ctx.fillRect(530,570, 10, 10) ctx.fillStyle = cor[5754];ctx.fillRect(540,570, 10, 10) ctx.fillStyle = cor[5755];ctx.fillRect(550,570, 10, 10) ctx.fillStyle = cor[5756];ctx.fillRect(560,570, 10, 10) ctx.fillStyle = cor[5757];ctx.fillRect(570,570, 10, 10) ctx.fillStyle = cor[5758];ctx.fillRect(580,570, 10, 10) ctx.fillStyle = cor[5759];ctx.fillRect(590,570, 10, 10) ctx.fillStyle = cor[5760];ctx.fillRect(600,570, 10, 10) ctx.fillStyle = cor[5761];ctx.fillRect(610,570, 10, 10) ctx.fillStyle = cor[5762];ctx.fillRect(620,570, 10, 10) ctx.fillStyle = cor[5763];ctx.fillRect(630,570, 10, 10) ctx.fillStyle = cor[5764];ctx.fillRect(640,570, 10, 10) ctx.fillStyle = cor[5765];ctx.fillRect(650,570, 10, 10) ctx.fillStyle = cor[5766];ctx.fillRect(660,570, 10, 10) ctx.fillStyle = cor[5767];ctx.fillRect(670,570, 10, 10) ctx.fillStyle = cor[5768];ctx.fillRect(680,570, 10, 10) ctx.fillStyle = cor[5769];ctx.fillRect(690,570, 10, 10) ctx.fillStyle = cor[5770];ctx.fillRect(700,570, 10, 10) ctx.fillStyle = cor[5771];ctx.fillRect(710,570, 10, 10) ctx.fillStyle = cor[5772];ctx.fillRect(720,570, 10, 10) ctx.fillStyle = cor[5773];ctx.fillRect(730,570, 10, 10) ctx.fillStyle = cor[5774];ctx.fillRect(740,570, 10, 10) ctx.fillStyle = cor[5775];ctx.fillRect(750,570, 10, 10) ctx.fillStyle = cor[5776];ctx.fillRect(760,570, 10, 10) ctx.fillStyle = cor[5777];ctx.fillRect(770,570, 10, 10) ctx.fillStyle = cor[5778];ctx.fillRect(780,570, 10, 10) ctx.fillStyle = cor[5779];ctx.fillRect(790,570, 10, 10) ctx.fillStyle = cor[5780];ctx.fillRect(800,570, 10, 10) ctx.fillStyle = cor[5781];ctx.fillRect(810,570, 10, 10) ctx.fillStyle = cor[5782];ctx.fillRect(820,570, 10, 10) ctx.fillStyle = cor[5783];ctx.fillRect(830,570, 10, 10) ctx.fillStyle = cor[5784];ctx.fillRect(840,570, 10, 10) ctx.fillStyle = cor[5785];ctx.fillRect(850,570, 10, 10) ctx.fillStyle = cor[5786];ctx.fillRect(860,570, 10, 10) ctx.fillStyle = cor[5787];ctx.fillRect(870,570, 10, 10) ctx.fillStyle = cor[5788];ctx.fillRect(880,570, 10, 10) ctx.fillStyle = cor[5789];ctx.fillRect(890,570, 10, 10) ctx.fillStyle = cor[5790];ctx.fillRect(900,570, 10, 10) ctx.fillStyle = cor[5791];ctx.fillRect(910,570, 10, 10) ctx.fillStyle = cor[5792];ctx.fillRect(920,570, 10, 10) ctx.fillStyle = cor[5793];ctx.fillRect(930,570, 10, 10) ctx.fillStyle = cor[5794];ctx.fillRect(940,570, 10, 10) ctx.fillStyle = cor[5795];ctx.fillRect(950,570, 10, 10) ctx.fillStyle = cor[5796];ctx.fillRect(960,570, 10, 10) ctx.fillStyle = cor[5797];ctx.fillRect(970,570, 10, 10) ctx.fillStyle = cor[5798];ctx.fillRect(980,570, 10, 10) ctx.fillStyle = cor[5799];ctx.fillRect(990,570, 10, 10) ctx.fillStyle = cor[5800];ctx.fillRect(0,580, 10, 10) ctx.fillStyle = cor[5801];ctx.fillRect(10,580, 10, 10) ctx.fillStyle = cor[5802];ctx.fillRect(20,580, 10, 10) ctx.fillStyle = cor[5803];ctx.fillRect(30,580, 10, 10) ctx.fillStyle = cor[5804];ctx.fillRect(40,580, 10, 10) ctx.fillStyle = cor[5805];ctx.fillRect(50,580, 10, 10) ctx.fillStyle = cor[5806];ctx.fillRect(60,580, 10, 10) ctx.fillStyle = cor[5807];ctx.fillRect(70,580, 10, 10) ctx.fillStyle = cor[5808];ctx.fillRect(80,580, 10, 10) ctx.fillStyle = cor[5809];ctx.fillRect(90,580, 10, 10) ctx.fillStyle = cor[5810];ctx.fillRect(100,580, 10, 10) ctx.fillStyle = cor[5811];ctx.fillRect(110,580, 10, 10) ctx.fillStyle = cor[5812];ctx.fillRect(120,580, 10, 10) ctx.fillStyle = cor[5813];ctx.fillRect(130,580, 10, 10) ctx.fillStyle = cor[5814];ctx.fillRect(140,580, 10, 10) ctx.fillStyle = cor[5815];ctx.fillRect(150,580, 10, 10) ctx.fillStyle = cor[5816];ctx.fillRect(160,580, 10, 10) ctx.fillStyle = cor[5817];ctx.fillRect(170,580, 10, 10) ctx.fillStyle = cor[5818];ctx.fillRect(180,580, 10, 10) ctx.fillStyle = cor[5819];ctx.fillRect(190,580, 10, 10) ctx.fillStyle = cor[5820];ctx.fillRect(200,580, 10, 10) ctx.fillStyle = cor[5821];ctx.fillRect(210,580, 10, 10) ctx.fillStyle = cor[5822];ctx.fillRect(220,580, 10, 10) ctx.fillStyle = cor[5823];ctx.fillRect(230,580, 10, 10) ctx.fillStyle = cor[5824];ctx.fillRect(240,580, 10, 10) ctx.fillStyle = cor[5825];ctx.fillRect(250,580, 10, 10) ctx.fillStyle = cor[5826];ctx.fillRect(260,580, 10, 10) ctx.fillStyle = cor[5827];ctx.fillRect(270,580, 10, 10) ctx.fillStyle = cor[5828];ctx.fillRect(280,580, 10, 10) ctx.fillStyle = cor[5829];ctx.fillRect(290,580, 10, 10) ctx.fillStyle = cor[5830];ctx.fillRect(300,580, 10, 10) ctx.fillStyle = cor[5831];ctx.fillRect(310,580, 10, 10) ctx.fillStyle = cor[5832];ctx.fillRect(320,580, 10, 10) ctx.fillStyle = cor[5833];ctx.fillRect(330,580, 10, 10) ctx.fillStyle = cor[5834];ctx.fillRect(340,580, 10, 10) ctx.fillStyle = cor[5835];ctx.fillRect(350,580, 10, 10) ctx.fillStyle = cor[5836];ctx.fillRect(360,580, 10, 10) ctx.fillStyle = cor[5837];ctx.fillRect(370,580, 10, 10) ctx.fillStyle = cor[5838];ctx.fillRect(380,580, 10, 10) ctx.fillStyle = cor[5839];ctx.fillRect(390,580, 10, 10) ctx.fillStyle = cor[5840];ctx.fillRect(400,580, 10, 10) ctx.fillStyle = cor[5841];ctx.fillRect(410,580, 10, 10) ctx.fillStyle = cor[5842];ctx.fillRect(420,580, 10, 10) ctx.fillStyle = cor[5843];ctx.fillRect(430,580, 10, 10) ctx.fillStyle = cor[5844];ctx.fillRect(440,580, 10, 10) ctx.fillStyle = cor[5845];ctx.fillRect(450,580, 10, 10) ctx.fillStyle = cor[5846];ctx.fillRect(460,580, 10, 10) ctx.fillStyle = cor[5847];ctx.fillRect(470,580, 10, 10) ctx.fillStyle = cor[5848];ctx.fillRect(480,580, 10, 10) ctx.fillStyle = cor[5849];ctx.fillRect(490,580, 10, 10) ctx.fillStyle = cor[5850];ctx.fillRect(500,580, 10, 10) ctx.fillStyle = cor[5851];ctx.fillRect(510,580, 10, 10) ctx.fillStyle = cor[5852];ctx.fillRect(520,580, 10, 10) ctx.fillStyle = cor[5853];ctx.fillRect(530,580, 10, 10) ctx.fillStyle = cor[5854];ctx.fillRect(540,580, 10, 10) ctx.fillStyle = cor[5855];ctx.fillRect(550,580, 10, 10) ctx.fillStyle = cor[5856];ctx.fillRect(560,580, 10, 10) ctx.fillStyle = cor[5857];ctx.fillRect(570,580, 10, 10) ctx.fillStyle = cor[5858];ctx.fillRect(580,580, 10, 10) ctx.fillStyle = cor[5859];ctx.fillRect(590,580, 10, 10) ctx.fillStyle = cor[5860];ctx.fillRect(600,580, 10, 10) ctx.fillStyle = cor[5861];ctx.fillRect(610,580, 10, 10) ctx.fillStyle = cor[5862];ctx.fillRect(620,580, 10, 10) ctx.fillStyle = cor[5863];ctx.fillRect(630,580, 10, 10) ctx.fillStyle = cor[5864];ctx.fillRect(640,580, 10, 10) ctx.fillStyle = cor[5865];ctx.fillRect(650,580, 10, 10) ctx.fillStyle = cor[5866];ctx.fillRect(660,580, 10, 10) ctx.fillStyle = cor[5867];ctx.fillRect(670,580, 10, 10) ctx.fillStyle = cor[5868];ctx.fillRect(680,580, 10, 10) ctx.fillStyle = cor[5869];ctx.fillRect(690,580, 10, 10) ctx.fillStyle = cor[5870];ctx.fillRect(700,580, 10, 10) ctx.fillStyle = cor[5871];ctx.fillRect(710,580, 10, 10) ctx.fillStyle = cor[5872];ctx.fillRect(720,580, 10, 10) ctx.fillStyle = cor[5873];ctx.fillRect(730,580, 10, 10) ctx.fillStyle = cor[5874];ctx.fillRect(740,580, 10, 10) ctx.fillStyle = cor[5875];ctx.fillRect(750,580, 10, 10) ctx.fillStyle = cor[5876];ctx.fillRect(760,580, 10, 10) ctx.fillStyle = cor[5877];ctx.fillRect(770,580, 10, 10) ctx.fillStyle = cor[5878];ctx.fillRect(780,580, 10, 10) ctx.fillStyle = cor[5879];ctx.fillRect(790,580, 10, 10) ctx.fillStyle = cor[5880];ctx.fillRect(800,580, 10, 10) ctx.fillStyle = cor[5881];ctx.fillRect(810,580, 10, 10) ctx.fillStyle = cor[5882];ctx.fillRect(820,580, 10, 10) ctx.fillStyle = cor[5883];ctx.fillRect(830,580, 10, 10) ctx.fillStyle = cor[5884];ctx.fillRect(840,580, 10, 10) ctx.fillStyle = cor[5885];ctx.fillRect(850,580, 10, 10) ctx.fillStyle = cor[5886];ctx.fillRect(860,580, 10, 10) ctx.fillStyle = cor[5887];ctx.fillRect(870,580, 10, 10) ctx.fillStyle = cor[5888];ctx.fillRect(880,580, 10, 10) ctx.fillStyle = cor[5889];ctx.fillRect(890,580, 10, 10) ctx.fillStyle = cor[5890];ctx.fillRect(900,580, 10, 10) ctx.fillStyle = cor[5891];ctx.fillRect(910,580, 10, 10) ctx.fillStyle = cor[5892];ctx.fillRect(920,580, 10, 10) ctx.fillStyle = cor[5893];ctx.fillRect(930,580, 10, 10) ctx.fillStyle = cor[5894];ctx.fillRect(940,580, 10, 10) ctx.fillStyle = cor[5895];ctx.fillRect(950,580, 10, 10) ctx.fillStyle = cor[5896];ctx.fillRect(960,580, 10, 10) ctx.fillStyle = cor[5897];ctx.fillRect(970,580, 10, 10) ctx.fillStyle = cor[5898];ctx.fillRect(980,580, 10, 10) ctx.fillStyle = cor[5899];ctx.fillRect(990,580, 10, 10) ctx.fillStyle = cor[5900];ctx.fillRect(0,590, 10, 10) ctx.fillStyle = cor[5901];ctx.fillRect(10,590, 10, 10) ctx.fillStyle = cor[5902];ctx.fillRect(20,590, 10, 10) ctx.fillStyle = cor[5903];ctx.fillRect(30,590, 10, 10) ctx.fillStyle = cor[5904];ctx.fillRect(40,590, 10, 10) ctx.fillStyle = cor[5905];ctx.fillRect(50,590, 10, 10) ctx.fillStyle = cor[5906];ctx.fillRect(60,590, 10, 10) ctx.fillStyle = cor[5907];ctx.fillRect(70,590, 10, 10) ctx.fillStyle = cor[5908];ctx.fillRect(80,590, 10, 10) ctx.fillStyle = cor[5909];ctx.fillRect(90,590, 10, 10) ctx.fillStyle = cor[5910];ctx.fillRect(100,590, 10, 10) ctx.fillStyle = cor[5911];ctx.fillRect(110,590, 10, 10) ctx.fillStyle = cor[5912];ctx.fillRect(120,590, 10, 10) ctx.fillStyle = cor[5913];ctx.fillRect(130,590, 10, 10) ctx.fillStyle = cor[5914];ctx.fillRect(140,590, 10, 10) ctx.fillStyle = cor[5915];ctx.fillRect(150,590, 10, 10) ctx.fillStyle = cor[5916];ctx.fillRect(160,590, 10, 10) ctx.fillStyle = cor[5917];ctx.fillRect(170,590, 10, 10) ctx.fillStyle = cor[5918];ctx.fillRect(180,590, 10, 10) ctx.fillStyle = cor[5919];ctx.fillRect(190,590, 10, 10) ctx.fillStyle = cor[5920];ctx.fillRect(200,590, 10, 10) ctx.fillStyle = cor[5921];ctx.fillRect(210,590, 10, 10) ctx.fillStyle = cor[5922];ctx.fillRect(220,590, 10, 10) ctx.fillStyle = cor[5923];ctx.fillRect(230,590, 10, 10) ctx.fillStyle = cor[5924];ctx.fillRect(240,590, 10, 10) ctx.fillStyle = cor[5925];ctx.fillRect(250,590, 10, 10) ctx.fillStyle = cor[5926];ctx.fillRect(260,590, 10, 10) ctx.fillStyle = cor[5927];ctx.fillRect(270,590, 10, 10) ctx.fillStyle = cor[5928];ctx.fillRect(280,590, 10, 10) ctx.fillStyle = cor[5929];ctx.fillRect(290,590, 10, 10) ctx.fillStyle = cor[5930];ctx.fillRect(300,590, 10, 10) ctx.fillStyle = cor[5931];ctx.fillRect(310,590, 10, 10) ctx.fillStyle = cor[5932];ctx.fillRect(320,590, 10, 10) ctx.fillStyle = cor[5933];ctx.fillRect(330,590, 10, 10) ctx.fillStyle = cor[5934];ctx.fillRect(340,590, 10, 10) ctx.fillStyle = cor[5935];ctx.fillRect(350,590, 10, 10) ctx.fillStyle = cor[5936];ctx.fillRect(360,590, 10, 10) ctx.fillStyle = cor[5937];ctx.fillRect(370,590, 10, 10) ctx.fillStyle = cor[5938];ctx.fillRect(380,590, 10, 10) ctx.fillStyle = cor[5939];ctx.fillRect(390,590, 10, 10) ctx.fillStyle = cor[5940];ctx.fillRect(400,590, 10, 10) ctx.fillStyle = cor[5941];ctx.fillRect(410,590, 10, 10) ctx.fillStyle = cor[5942];ctx.fillRect(420,590, 10, 10) ctx.fillStyle = cor[5943];ctx.fillRect(430,590, 10, 10) ctx.fillStyle = cor[5944];ctx.fillRect(440,590, 10, 10) ctx.fillStyle = cor[5945];ctx.fillRect(450,590, 10, 10) ctx.fillStyle = cor[5946];ctx.fillRect(460,590, 10, 10) ctx.fillStyle = cor[5947];ctx.fillRect(470,590, 10, 10) ctx.fillStyle = cor[5948];ctx.fillRect(480,590, 10, 10) ctx.fillStyle = cor[5949];ctx.fillRect(490,590, 10, 10) ctx.fillStyle = cor[5950];ctx.fillRect(500,590, 10, 10) ctx.fillStyle = cor[5951];ctx.fillRect(510,590, 10, 10) ctx.fillStyle = cor[5952];ctx.fillRect(520,590, 10, 10) ctx.fillStyle = cor[5953];ctx.fillRect(530,590, 10, 10) ctx.fillStyle = cor[5954];ctx.fillRect(540,590, 10, 10) ctx.fillStyle = cor[5955];ctx.fillRect(550,590, 10, 10) ctx.fillStyle = cor[5956];ctx.fillRect(560,590, 10, 10) ctx.fillStyle = cor[5957];ctx.fillRect(570,590, 10, 10) ctx.fillStyle = cor[5958];ctx.fillRect(580,590, 10, 10) ctx.fillStyle = cor[5959];ctx.fillRect(590,590, 10, 10) ctx.fillStyle = cor[5960];ctx.fillRect(600,590, 10, 10) ctx.fillStyle = cor[5961];ctx.fillRect(610,590, 10, 10) ctx.fillStyle = cor[5962];ctx.fillRect(620,590, 10, 10) ctx.fillStyle = cor[5963];ctx.fillRect(630,590, 10, 10) ctx.fillStyle = cor[5964];ctx.fillRect(640,590, 10, 10) ctx.fillStyle = cor[5965];ctx.fillRect(650,590, 10, 10) ctx.fillStyle = cor[5966];ctx.fillRect(660,590, 10, 10) ctx.fillStyle = cor[5967];ctx.fillRect(670,590, 10, 10) ctx.fillStyle = cor[5968];ctx.fillRect(680,590, 10, 10) ctx.fillStyle = cor[5969];ctx.fillRect(690,590, 10, 10) ctx.fillStyle = cor[5970];ctx.fillRect(700,590, 10, 10) ctx.fillStyle = cor[5971];ctx.fillRect(710,590, 10, 10) ctx.fillStyle = cor[5972];ctx.fillRect(720,590, 10, 10) ctx.fillStyle = cor[5973];ctx.fillRect(730,590, 10, 10) ctx.fillStyle = cor[5974];ctx.fillRect(740,590, 10, 10) ctx.fillStyle = cor[5975];ctx.fillRect(750,590, 10, 10) ctx.fillStyle = cor[5976];ctx.fillRect(760,590, 10, 10) ctx.fillStyle = cor[5977];ctx.fillRect(770,590, 10, 10) ctx.fillStyle = cor[5978];ctx.fillRect(780,590, 10, 10) ctx.fillStyle = cor[5979];ctx.fillRect(790,590, 10, 10) ctx.fillStyle = cor[5980];ctx.fillRect(800,590, 10, 10) ctx.fillStyle = cor[5981];ctx.fillRect(810,590, 10, 10) ctx.fillStyle = cor[5982];ctx.fillRect(820,590, 10, 10) ctx.fillStyle = cor[5983];ctx.fillRect(830,590, 10, 10) ctx.fillStyle = cor[5984];ctx.fillRect(840,590, 10, 10) ctx.fillStyle = cor[5985];ctx.fillRect(850,590, 10, 10) ctx.fillStyle = cor[5986];ctx.fillRect(860,590, 10, 10) ctx.fillStyle = cor[5987];ctx.fillRect(870,590, 10, 10) ctx.fillStyle = cor[5988];ctx.fillRect(880,590, 10, 10) ctx.fillStyle = cor[5989];ctx.fillRect(890,590, 10, 10) ctx.fillStyle = cor[5990];ctx.fillRect(900,590, 10, 10) ctx.fillStyle = cor[5991];ctx.fillRect(910,590, 10, 10) ctx.fillStyle = cor[5992];ctx.fillRect(920,590, 10, 10) ctx.fillStyle = cor[5993];ctx.fillRect(930,590, 10, 10) ctx.fillStyle = cor[5994];ctx.fillRect(940,590, 10, 10) ctx.fillStyle = cor[5995];ctx.fillRect(950,590, 10, 10) ctx.fillStyle = cor[5996];ctx.fillRect(960,590, 10, 10) ctx.fillStyle = cor[5997];ctx.fillRect(970,590, 10, 10) ctx.fillStyle = cor[5998];ctx.fillRect(980,590, 10, 10) ctx.fillStyle = cor[5999];ctx.fillRect(990,590, 10, 10) ctx.fillStyle = cor[6000];ctx.fillRect(0,600, 10, 10) ctx.fillStyle = cor[6001];ctx.fillRect(10,600, 10, 10) ctx.fillStyle = cor[6002];ctx.fillRect(20,600, 10, 10) ctx.fillStyle = cor[6003];ctx.fillRect(30,600, 10, 10) ctx.fillStyle = cor[6004];ctx.fillRect(40,600, 10, 10) ctx.fillStyle = cor[6005];ctx.fillRect(50,600, 10, 10) ctx.fillStyle = cor[6006];ctx.fillRect(60,600, 10, 10) ctx.fillStyle = cor[6007];ctx.fillRect(70,600, 10, 10) ctx.fillStyle = cor[6008];ctx.fillRect(80,600, 10, 10) ctx.fillStyle = cor[6009];ctx.fillRect(90,600, 10, 10) ctx.fillStyle = cor[6010];ctx.fillRect(100,600, 10, 10) ctx.fillStyle = cor[6011];ctx.fillRect(110,600, 10, 10) ctx.fillStyle = cor[6012];ctx.fillRect(120,600, 10, 10) ctx.fillStyle = cor[6013];ctx.fillRect(130,600, 10, 10) ctx.fillStyle = cor[6014];ctx.fillRect(140,600, 10, 10) ctx.fillStyle = cor[6015];ctx.fillRect(150,600, 10, 10) ctx.fillStyle = cor[6016];ctx.fillRect(160,600, 10, 10) ctx.fillStyle = cor[6017];ctx.fillRect(170,600, 10, 10) ctx.fillStyle = cor[6018];ctx.fillRect(180,600, 10, 10) ctx.fillStyle = cor[6019];ctx.fillRect(190,600, 10, 10) ctx.fillStyle = cor[6020];ctx.fillRect(200,600, 10, 10) ctx.fillStyle = cor[6021];ctx.fillRect(210,600, 10, 10) ctx.fillStyle = cor[6022];ctx.fillRect(220,600, 10, 10) ctx.fillStyle = cor[6023];ctx.fillRect(230,600, 10, 10) ctx.fillStyle = cor[6024];ctx.fillRect(240,600, 10, 10) ctx.fillStyle = cor[6025];ctx.fillRect(250,600, 10, 10) ctx.fillStyle = cor[6026];ctx.fillRect(260,600, 10, 10) ctx.fillStyle = cor[6027];ctx.fillRect(270,600, 10, 10) ctx.fillStyle = cor[6028];ctx.fillRect(280,600, 10, 10) ctx.fillStyle = cor[6029];ctx.fillRect(290,600, 10, 10) ctx.fillStyle = cor[6030];ctx.fillRect(300,600, 10, 10) ctx.fillStyle = cor[6031];ctx.fillRect(310,600, 10, 10) ctx.fillStyle = cor[6032];ctx.fillRect(320,600, 10, 10) ctx.fillStyle = cor[6033];ctx.fillRect(330,600, 10, 10) ctx.fillStyle = cor[6034];ctx.fillRect(340,600, 10, 10) ctx.fillStyle = cor[6035];ctx.fillRect(350,600, 10, 10) ctx.fillStyle = cor[6036];ctx.fillRect(360,600, 10, 10) ctx.fillStyle = cor[6037];ctx.fillRect(370,600, 10, 10) ctx.fillStyle = cor[6038];ctx.fillRect(380,600, 10, 10) ctx.fillStyle = cor[6039];ctx.fillRect(390,600, 10, 10) ctx.fillStyle = cor[6040];ctx.fillRect(400,600, 10, 10) ctx.fillStyle = cor[6041];ctx.fillRect(410,600, 10, 10) ctx.fillStyle = cor[6042];ctx.fillRect(420,600, 10, 10) ctx.fillStyle = cor[6043];ctx.fillRect(430,600, 10, 10) ctx.fillStyle = cor[6044];ctx.fillRect(440,600, 10, 10) ctx.fillStyle = cor[6045];ctx.fillRect(450,600, 10, 10) ctx.fillStyle = cor[6046];ctx.fillRect(460,600, 10, 10) ctx.fillStyle = cor[6047];ctx.fillRect(470,600, 10, 10) ctx.fillStyle = cor[6048];ctx.fillRect(480,600, 10, 10) ctx.fillStyle = cor[6049];ctx.fillRect(490,600, 10, 10) ctx.fillStyle = cor[6050];ctx.fillRect(500,600, 10, 10) ctx.fillStyle = cor[6051];ctx.fillRect(510,600, 10, 10) ctx.fillStyle = cor[6052];ctx.fillRect(520,600, 10, 10) ctx.fillStyle = cor[6053];ctx.fillRect(530,600, 10, 10) ctx.fillStyle = cor[6054];ctx.fillRect(540,600, 10, 10) ctx.fillStyle = cor[6055];ctx.fillRect(550,600, 10, 10) ctx.fillStyle = cor[6056];ctx.fillRect(560,600, 10, 10) ctx.fillStyle = cor[6057];ctx.fillRect(570,600, 10, 10) ctx.fillStyle = cor[6058];ctx.fillRect(580,600, 10, 10) ctx.fillStyle = cor[6059];ctx.fillRect(590,600, 10, 10) ctx.fillStyle = cor[6060];ctx.fillRect(600,600, 10, 10) ctx.fillStyle = cor[6061];ctx.fillRect(610,600, 10, 10) ctx.fillStyle = cor[6062];ctx.fillRect(620,600, 10, 10) ctx.fillStyle = cor[6063];ctx.fillRect(630,600, 10, 10) ctx.fillStyle = cor[6064];ctx.fillRect(640,600, 10, 10) ctx.fillStyle = cor[6065];ctx.fillRect(650,600, 10, 10) ctx.fillStyle = cor[6066];ctx.fillRect(660,600, 10, 10) ctx.fillStyle = cor[6067];ctx.fillRect(670,600, 10, 10) ctx.fillStyle = cor[6068];ctx.fillRect(680,600, 10, 10) ctx.fillStyle = cor[6069];ctx.fillRect(690,600, 10, 10) ctx.fillStyle = cor[6070];ctx.fillRect(700,600, 10, 10) ctx.fillStyle = cor[6071];ctx.fillRect(710,600, 10, 10) ctx.fillStyle = cor[6072];ctx.fillRect(720,600, 10, 10) ctx.fillStyle = cor[6073];ctx.fillRect(730,600, 10, 10) ctx.fillStyle = cor[6074];ctx.fillRect(740,600, 10, 10) ctx.fillStyle = cor[6075];ctx.fillRect(750,600, 10, 10) ctx.fillStyle = cor[6076];ctx.fillRect(760,600, 10, 10) ctx.fillStyle = cor[6077];ctx.fillRect(770,600, 10, 10) ctx.fillStyle = cor[6078];ctx.fillRect(780,600, 10, 10) ctx.fillStyle = cor[6079];ctx.fillRect(790,600, 10, 10) ctx.fillStyle = cor[6080];ctx.fillRect(800,600, 10, 10) ctx.fillStyle = cor[6081];ctx.fillRect(810,600, 10, 10) ctx.fillStyle = cor[6082];ctx.fillRect(820,600, 10, 10) ctx.fillStyle = cor[6083];ctx.fillRect(830,600, 10, 10) ctx.fillStyle = cor[6084];ctx.fillRect(840,600, 10, 10) ctx.fillStyle = cor[6085];ctx.fillRect(850,600, 10, 10) ctx.fillStyle = cor[6086];ctx.fillRect(860,600, 10, 10) ctx.fillStyle = cor[6087];ctx.fillRect(870,600, 10, 10) ctx.fillStyle = cor[6088];ctx.fillRect(880,600, 10, 10) ctx.fillStyle = cor[6089];ctx.fillRect(890,600, 10, 10) ctx.fillStyle = cor[6090];ctx.fillRect(900,600, 10, 10) ctx.fillStyle = cor[6091];ctx.fillRect(910,600, 10, 10) ctx.fillStyle = cor[6092];ctx.fillRect(920,600, 10, 10) ctx.fillStyle = cor[6093];ctx.fillRect(930,600, 10, 10) ctx.fillStyle = cor[6094];ctx.fillRect(940,600, 10, 10) ctx.fillStyle = cor[6095];ctx.fillRect(950,600, 10, 10) ctx.fillStyle = cor[6096];ctx.fillRect(960,600, 10, 10) ctx.fillStyle = cor[6097];ctx.fillRect(970,600, 10, 10) ctx.fillStyle = cor[6098];ctx.fillRect(980,600, 10, 10) ctx.fillStyle = cor[6099];ctx.fillRect(990,600, 10, 10) ctx.fillStyle = cor[6100];ctx.fillRect(0,610, 10, 10) ctx.fillStyle = cor[6101];ctx.fillRect(10,610, 10, 10) ctx.fillStyle = cor[6102];ctx.fillRect(20,610, 10, 10) ctx.fillStyle = cor[6103];ctx.fillRect(30,610, 10, 10) ctx.fillStyle = cor[6104];ctx.fillRect(40,610, 10, 10) ctx.fillStyle = cor[6105];ctx.fillRect(50,610, 10, 10) ctx.fillStyle = cor[6106];ctx.fillRect(60,610, 10, 10) ctx.fillStyle = cor[6107];ctx.fillRect(70,610, 10, 10) ctx.fillStyle = cor[6108];ctx.fillRect(80,610, 10, 10) ctx.fillStyle = cor[6109];ctx.fillRect(90,610, 10, 10) ctx.fillStyle = cor[6110];ctx.fillRect(100,610, 10, 10) ctx.fillStyle = cor[6111];ctx.fillRect(110,610, 10, 10) ctx.fillStyle = cor[6112];ctx.fillRect(120,610, 10, 10) ctx.fillStyle = cor[6113];ctx.fillRect(130,610, 10, 10) ctx.fillStyle = cor[6114];ctx.fillRect(140,610, 10, 10) ctx.fillStyle = cor[6115];ctx.fillRect(150,610, 10, 10) ctx.fillStyle = cor[6116];ctx.fillRect(160,610, 10, 10) ctx.fillStyle = cor[6117];ctx.fillRect(170,610, 10, 10) ctx.fillStyle = cor[6118];ctx.fillRect(180,610, 10, 10) ctx.fillStyle = cor[6119];ctx.fillRect(190,610, 10, 10) ctx.fillStyle = cor[6120];ctx.fillRect(200,610, 10, 10) ctx.fillStyle = cor[6121];ctx.fillRect(210,610, 10, 10) ctx.fillStyle = cor[6122];ctx.fillRect(220,610, 10, 10) ctx.fillStyle = cor[6123];ctx.fillRect(230,610, 10, 10) ctx.fillStyle = cor[6124];ctx.fillRect(240,610, 10, 10) ctx.fillStyle = cor[6125];ctx.fillRect(250,610, 10, 10) ctx.fillStyle = cor[6126];ctx.fillRect(260,610, 10, 10) ctx.fillStyle = cor[6127];ctx.fillRect(270,610, 10, 10) ctx.fillStyle = cor[6128];ctx.fillRect(280,610, 10, 10) ctx.fillStyle = cor[6129];ctx.fillRect(290,610, 10, 10) ctx.fillStyle = cor[6130];ctx.fillRect(300,610, 10, 10) ctx.fillStyle = cor[6131];ctx.fillRect(310,610, 10, 10) ctx.fillStyle = cor[6132];ctx.fillRect(320,610, 10, 10) ctx.fillStyle = cor[6133];ctx.fillRect(330,610, 10, 10) ctx.fillStyle = cor[6134];ctx.fillRect(340,610, 10, 10) ctx.fillStyle = cor[6135];ctx.fillRect(350,610, 10, 10) ctx.fillStyle = cor[6136];ctx.fillRect(360,610, 10, 10) ctx.fillStyle = cor[6137];ctx.fillRect(370,610, 10, 10) ctx.fillStyle = cor[6138];ctx.fillRect(380,610, 10, 10) ctx.fillStyle = cor[6139];ctx.fillRect(390,610, 10, 10) ctx.fillStyle = cor[6140];ctx.fillRect(400,610, 10, 10) ctx.fillStyle = cor[6141];ctx.fillRect(410,610, 10, 10) ctx.fillStyle = cor[6142];ctx.fillRect(420,610, 10, 10) ctx.fillStyle = cor[6143];ctx.fillRect(430,610, 10, 10) ctx.fillStyle = cor[6144];ctx.fillRect(440,610, 10, 10) ctx.fillStyle = cor[6145];ctx.fillRect(450,610, 10, 10) ctx.fillStyle = cor[6146];ctx.fillRect(460,610, 10, 10) ctx.fillStyle = cor[6147];ctx.fillRect(470,610, 10, 10) ctx.fillStyle = cor[6148];ctx.fillRect(480,610, 10, 10) ctx.fillStyle = cor[6149];ctx.fillRect(490,610, 10, 10) ctx.fillStyle = cor[6150];ctx.fillRect(500,610, 10, 10) ctx.fillStyle = cor[6151];ctx.fillRect(510,610, 10, 10) ctx.fillStyle = cor[6152];ctx.fillRect(520,610, 10, 10) ctx.fillStyle = cor[6153];ctx.fillRect(530,610, 10, 10) ctx.fillStyle = cor[6154];ctx.fillRect(540,610, 10, 10) ctx.fillStyle = cor[6155];ctx.fillRect(550,610, 10, 10) ctx.fillStyle = cor[6156];ctx.fillRect(560,610, 10, 10) ctx.fillStyle = cor[6157];ctx.fillRect(570,610, 10, 10) ctx.fillStyle = cor[6158];ctx.fillRect(580,610, 10, 10) ctx.fillStyle = cor[6159];ctx.fillRect(590,610, 10, 10) ctx.fillStyle = cor[6160];ctx.fillRect(600,610, 10, 10) ctx.fillStyle = cor[6161];ctx.fillRect(610,610, 10, 10) ctx.fillStyle = cor[6162];ctx.fillRect(620,610, 10, 10) ctx.fillStyle = cor[6163];ctx.fillRect(630,610, 10, 10) ctx.fillStyle = cor[6164];ctx.fillRect(640,610, 10, 10) ctx.fillStyle = cor[6165];ctx.fillRect(650,610, 10, 10) ctx.fillStyle = cor[6166];ctx.fillRect(660,610, 10, 10) ctx.fillStyle = cor[6167];ctx.fillRect(670,610, 10, 10) ctx.fillStyle = cor[6168];ctx.fillRect(680,610, 10, 10) ctx.fillStyle = cor[6169];ctx.fillRect(690,610, 10, 10) ctx.fillStyle = cor[6170];ctx.fillRect(700,610, 10, 10) ctx.fillStyle = cor[6171];ctx.fillRect(710,610, 10, 10) ctx.fillStyle = cor[6172];ctx.fillRect(720,610, 10, 10) ctx.fillStyle = cor[6173];ctx.fillRect(730,610, 10, 10) ctx.fillStyle = cor[6174];ctx.fillRect(740,610, 10, 10) ctx.fillStyle = cor[6175];ctx.fillRect(750,610, 10, 10) ctx.fillStyle = cor[6176];ctx.fillRect(760,610, 10, 10) ctx.fillStyle = cor[6177];ctx.fillRect(770,610, 10, 10) ctx.fillStyle = cor[6178];ctx.fillRect(780,610, 10, 10) ctx.fillStyle = cor[6179];ctx.fillRect(790,610, 10, 10) ctx.fillStyle = cor[6180];ctx.fillRect(800,610, 10, 10) ctx.fillStyle = cor[6181];ctx.fillRect(810,610, 10, 10) ctx.fillStyle = cor[6182];ctx.fillRect(820,610, 10, 10) ctx.fillStyle = cor[6183];ctx.fillRect(830,610, 10, 10) ctx.fillStyle = cor[6184];ctx.fillRect(840,610, 10, 10) ctx.fillStyle = cor[6185];ctx.fillRect(850,610, 10, 10) ctx.fillStyle = cor[6186];ctx.fillRect(860,610, 10, 10) ctx.fillStyle = cor[6187];ctx.fillRect(870,610, 10, 10) ctx.fillStyle = cor[6188];ctx.fillRect(880,610, 10, 10) ctx.fillStyle = cor[6189];ctx.fillRect(890,610, 10, 10) ctx.fillStyle = cor[6190];ctx.fillRect(900,610, 10, 10) ctx.fillStyle = cor[6191];ctx.fillRect(910,610, 10, 10) ctx.fillStyle = cor[6192];ctx.fillRect(920,610, 10, 10) ctx.fillStyle = cor[6193];ctx.fillRect(930,610, 10, 10) ctx.fillStyle = cor[6194];ctx.fillRect(940,610, 10, 10) ctx.fillStyle = cor[6195];ctx.fillRect(950,610, 10, 10) ctx.fillStyle = cor[6196];ctx.fillRect(960,610, 10, 10) ctx.fillStyle = cor[6197];ctx.fillRect(970,610, 10, 10) ctx.fillStyle = cor[6198];ctx.fillRect(980,610, 10, 10) ctx.fillStyle = cor[6199];ctx.fillRect(990,610, 10, 10) ctx.fillStyle = cor[6200];ctx.fillRect(0,620, 10, 10) ctx.fillStyle = cor[6201];ctx.fillRect(10,620, 10, 10) ctx.fillStyle = cor[6202];ctx.fillRect(20,620, 10, 10) ctx.fillStyle = cor[6203];ctx.fillRect(30,620, 10, 10) ctx.fillStyle = cor[6204];ctx.fillRect(40,620, 10, 10) ctx.fillStyle = cor[6205];ctx.fillRect(50,620, 10, 10) ctx.fillStyle = cor[6206];ctx.fillRect(60,620, 10, 10) ctx.fillStyle = cor[6207];ctx.fillRect(70,620, 10, 10) ctx.fillStyle = cor[6208];ctx.fillRect(80,620, 10, 10) ctx.fillStyle = cor[6209];ctx.fillRect(90,620, 10, 10) ctx.fillStyle = cor[6210];ctx.fillRect(100,620, 10, 10) ctx.fillStyle = cor[6211];ctx.fillRect(110,620, 10, 10) ctx.fillStyle = cor[6212];ctx.fillRect(120,620, 10, 10) ctx.fillStyle = cor[6213];ctx.fillRect(130,620, 10, 10) ctx.fillStyle = cor[6214];ctx.fillRect(140,620, 10, 10) ctx.fillStyle = cor[6215];ctx.fillRect(150,620, 10, 10) ctx.fillStyle = cor[6216];ctx.fillRect(160,620, 10, 10) ctx.fillStyle = cor[6217];ctx.fillRect(170,620, 10, 10) ctx.fillStyle = cor[6218];ctx.fillRect(180,620, 10, 10) ctx.fillStyle = cor[6219];ctx.fillRect(190,620, 10, 10) ctx.fillStyle = cor[6220];ctx.fillRect(200,620, 10, 10) ctx.fillStyle = cor[6221];ctx.fillRect(210,620, 10, 10) ctx.fillStyle = cor[6222];ctx.fillRect(220,620, 10, 10) ctx.fillStyle = cor[6223];ctx.fillRect(230,620, 10, 10) ctx.fillStyle = cor[6224];ctx.fillRect(240,620, 10, 10) ctx.fillStyle = cor[6225];ctx.fillRect(250,620, 10, 10) ctx.fillStyle = cor[6226];ctx.fillRect(260,620, 10, 10) ctx.fillStyle = cor[6227];ctx.fillRect(270,620, 10, 10) ctx.fillStyle = cor[6228];ctx.fillRect(280,620, 10, 10) ctx.fillStyle = cor[6229];ctx.fillRect(290,620, 10, 10) ctx.fillStyle = cor[6230];ctx.fillRect(300,620, 10, 10) ctx.fillStyle = cor[6231];ctx.fillRect(310,620, 10, 10) ctx.fillStyle = cor[6232];ctx.fillRect(320,620, 10, 10) ctx.fillStyle = cor[6233];ctx.fillRect(330,620, 10, 10) ctx.fillStyle = cor[6234];ctx.fillRect(340,620, 10, 10) ctx.fillStyle = cor[6235];ctx.fillRect(350,620, 10, 10) ctx.fillStyle = cor[6236];ctx.fillRect(360,620, 10, 10) ctx.fillStyle = cor[6237];ctx.fillRect(370,620, 10, 10) ctx.fillStyle = cor[6238];ctx.fillRect(380,620, 10, 10) ctx.fillStyle = cor[6239];ctx.fillRect(390,620, 10, 10) ctx.fillStyle = cor[6240];ctx.fillRect(400,620, 10, 10) ctx.fillStyle = cor[6241];ctx.fillRect(410,620, 10, 10) ctx.fillStyle = cor[6242];ctx.fillRect(420,620, 10, 10) ctx.fillStyle = cor[6243];ctx.fillRect(430,620, 10, 10) ctx.fillStyle = cor[6244];ctx.fillRect(440,620, 10, 10) ctx.fillStyle = cor[6245];ctx.fillRect(450,620, 10, 10) ctx.fillStyle = cor[6246];ctx.fillRect(460,620, 10, 10) ctx.fillStyle = cor[6247];ctx.fillRect(470,620, 10, 10) ctx.fillStyle = cor[6248];ctx.fillRect(480,620, 10, 10) ctx.fillStyle = cor[6249];ctx.fillRect(490,620, 10, 10) ctx.fillStyle = cor[6250];ctx.fillRect(500,620, 10, 10) ctx.fillStyle = cor[6251];ctx.fillRect(510,620, 10, 10) ctx.fillStyle = cor[6252];ctx.fillRect(520,620, 10, 10) ctx.fillStyle = cor[6253];ctx.fillRect(530,620, 10, 10) ctx.fillStyle = cor[6254];ctx.fillRect(540,620, 10, 10) ctx.fillStyle = cor[6255];ctx.fillRect(550,620, 10, 10) ctx.fillStyle = cor[6256];ctx.fillRect(560,620, 10, 10) ctx.fillStyle = cor[6257];ctx.fillRect(570,620, 10, 10) ctx.fillStyle = cor[6258];ctx.fillRect(580,620, 10, 10) ctx.fillStyle = cor[6259];ctx.fillRect(590,620, 10, 10) ctx.fillStyle = cor[6260];ctx.fillRect(600,620, 10, 10) ctx.fillStyle = cor[6261];ctx.fillRect(610,620, 10, 10) ctx.fillStyle = cor[6262];ctx.fillRect(620,620, 10, 10) ctx.fillStyle = cor[6263];ctx.fillRect(630,620, 10, 10) ctx.fillStyle = cor[6264];ctx.fillRect(640,620, 10, 10) ctx.fillStyle = cor[6265];ctx.fillRect(650,620, 10, 10) ctx.fillStyle = cor[6266];ctx.fillRect(660,620, 10, 10) ctx.fillStyle = cor[6267];ctx.fillRect(670,620, 10, 10) ctx.fillStyle = cor[6268];ctx.fillRect(680,620, 10, 10) ctx.fillStyle = cor[6269];ctx.fillRect(690,620, 10, 10) ctx.fillStyle = cor[6270];ctx.fillRect(700,620, 10, 10) ctx.fillStyle = cor[6271];ctx.fillRect(710,620, 10, 10) ctx.fillStyle = cor[6272];ctx.fillRect(720,620, 10, 10) ctx.fillStyle = cor[6273];ctx.fillRect(730,620, 10, 10) ctx.fillStyle = cor[6274];ctx.fillRect(740,620, 10, 10) ctx.fillStyle = cor[6275];ctx.fillRect(750,620, 10, 10) ctx.fillStyle = cor[6276];ctx.fillRect(760,620, 10, 10) ctx.fillStyle = cor[6277];ctx.fillRect(770,620, 10, 10) ctx.fillStyle = cor[6278];ctx.fillRect(780,620, 10, 10) ctx.fillStyle = cor[6279];ctx.fillRect(790,620, 10, 10) ctx.fillStyle = cor[6280];ctx.fillRect(800,620, 10, 10) ctx.fillStyle = cor[6281];ctx.fillRect(810,620, 10, 10) ctx.fillStyle = cor[6282];ctx.fillRect(820,620, 10, 10) ctx.fillStyle = cor[6283];ctx.fillRect(830,620, 10, 10) ctx.fillStyle = cor[6284];ctx.fillRect(840,620, 10, 10) ctx.fillStyle = cor[6285];ctx.fillRect(850,620, 10, 10) ctx.fillStyle = cor[6286];ctx.fillRect(860,620, 10, 10) ctx.fillStyle = cor[6287];ctx.fillRect(870,620, 10, 10) ctx.fillStyle = cor[6288];ctx.fillRect(880,620, 10, 10) ctx.fillStyle = cor[6289];ctx.fillRect(890,620, 10, 10) ctx.fillStyle = cor[6290];ctx.fillRect(900,620, 10, 10) ctx.fillStyle = cor[6291];ctx.fillRect(910,620, 10, 10) ctx.fillStyle = cor[6292];ctx.fillRect(920,620, 10, 10) ctx.fillStyle = cor[6293];ctx.fillRect(930,620, 10, 10) ctx.fillStyle = cor[6294];ctx.fillRect(940,620, 10, 10) ctx.fillStyle = cor[6295];ctx.fillRect(950,620, 10, 10) ctx.fillStyle = cor[6296];ctx.fillRect(960,620, 10, 10) ctx.fillStyle = cor[6297];ctx.fillRect(970,620, 10, 10) ctx.fillStyle = cor[6298];ctx.fillRect(980,620, 10, 10) ctx.fillStyle = cor[6299];ctx.fillRect(990,620, 10, 10) ctx.fillStyle = cor[6300];ctx.fillRect(0,630, 10, 10) ctx.fillStyle = cor[6301];ctx.fillRect(10,630, 10, 10) ctx.fillStyle = cor[6302];ctx.fillRect(20,630, 10, 10) ctx.fillStyle = cor[6303];ctx.fillRect(30,630, 10, 10) ctx.fillStyle = cor[6304];ctx.fillRect(40,630, 10, 10) ctx.fillStyle = cor[6305];ctx.fillRect(50,630, 10, 10) ctx.fillStyle = cor[6306];ctx.fillRect(60,630, 10, 10) ctx.fillStyle = cor[6307];ctx.fillRect(70,630, 10, 10) ctx.fillStyle = cor[6308];ctx.fillRect(80,630, 10, 10) ctx.fillStyle = cor[6309];ctx.fillRect(90,630, 10, 10) ctx.fillStyle = cor[6310];ctx.fillRect(100,630, 10, 10) ctx.fillStyle = cor[6311];ctx.fillRect(110,630, 10, 10) ctx.fillStyle = cor[6312];ctx.fillRect(120,630, 10, 10) ctx.fillStyle = cor[6313];ctx.fillRect(130,630, 10, 10) ctx.fillStyle = cor[6314];ctx.fillRect(140,630, 10, 10) ctx.fillStyle = cor[6315];ctx.fillRect(150,630, 10, 10) ctx.fillStyle = cor[6316];ctx.fillRect(160,630, 10, 10) ctx.fillStyle = cor[6317];ctx.fillRect(170,630, 10, 10) ctx.fillStyle = cor[6318];ctx.fillRect(180,630, 10, 10) ctx.fillStyle = cor[6319];ctx.fillRect(190,630, 10, 10) ctx.fillStyle = cor[6320];ctx.fillRect(200,630, 10, 10) ctx.fillStyle = cor[6321];ctx.fillRect(210,630, 10, 10) ctx.fillStyle = cor[6322];ctx.fillRect(220,630, 10, 10) ctx.fillStyle = cor[6323];ctx.fillRect(230,630, 10, 10) ctx.fillStyle = cor[6324];ctx.fillRect(240,630, 10, 10) ctx.fillStyle = cor[6325];ctx.fillRect(250,630, 10, 10) ctx.fillStyle = cor[6326];ctx.fillRect(260,630, 10, 10) ctx.fillStyle = cor[6327];ctx.fillRect(270,630, 10, 10) ctx.fillStyle = cor[6328];ctx.fillRect(280,630, 10, 10) ctx.fillStyle = cor[6329];ctx.fillRect(290,630, 10, 10) ctx.fillStyle = cor[6330];ctx.fillRect(300,630, 10, 10) ctx.fillStyle = cor[6331];ctx.fillRect(310,630, 10, 10) ctx.fillStyle = cor[6332];ctx.fillRect(320,630, 10, 10) ctx.fillStyle = cor[6333];ctx.fillRect(330,630, 10, 10) ctx.fillStyle = cor[6334];ctx.fillRect(340,630, 10, 10) ctx.fillStyle = cor[6335];ctx.fillRect(350,630, 10, 10) ctx.fillStyle = cor[6336];ctx.fillRect(360,630, 10, 10) ctx.fillStyle = cor[6337];ctx.fillRect(370,630, 10, 10) ctx.fillStyle = cor[6338];ctx.fillRect(380,630, 10, 10) ctx.fillStyle = cor[6339];ctx.fillRect(390,630, 10, 10) ctx.fillStyle = cor[6340];ctx.fillRect(400,630, 10, 10) ctx.fillStyle = cor[6341];ctx.fillRect(410,630, 10, 10) ctx.fillStyle = cor[6342];ctx.fillRect(420,630, 10, 10) ctx.fillStyle = cor[6343];ctx.fillRect(430,630, 10, 10) ctx.fillStyle = cor[6344];ctx.fillRect(440,630, 10, 10) ctx.fillStyle = cor[6345];ctx.fillRect(450,630, 10, 10) ctx.fillStyle = cor[6346];ctx.fillRect(460,630, 10, 10) ctx.fillStyle = cor[6347];ctx.fillRect(470,630, 10, 10) ctx.fillStyle = cor[6348];ctx.fillRect(480,630, 10, 10) ctx.fillStyle = cor[6349];ctx.fillRect(490,630, 10, 10) ctx.fillStyle = cor[6350];ctx.fillRect(500,630, 10, 10) ctx.fillStyle = cor[6351];ctx.fillRect(510,630, 10, 10) ctx.fillStyle = cor[6352];ctx.fillRect(520,630, 10, 10) ctx.fillStyle = cor[6353];ctx.fillRect(530,630, 10, 10) ctx.fillStyle = cor[6354];ctx.fillRect(540,630, 10, 10) ctx.fillStyle = cor[6355];ctx.fillRect(550,630, 10, 10) ctx.fillStyle = cor[6356];ctx.fillRect(560,630, 10, 10) ctx.fillStyle = cor[6357];ctx.fillRect(570,630, 10, 10) ctx.fillStyle = cor[6358];ctx.fillRect(580,630, 10, 10) ctx.fillStyle = cor[6359];ctx.fillRect(590,630, 10, 10) ctx.fillStyle = cor[6360];ctx.fillRect(600,630, 10, 10) ctx.fillStyle = cor[6361];ctx.fillRect(610,630, 10, 10) ctx.fillStyle = cor[6362];ctx.fillRect(620,630, 10, 10) ctx.fillStyle = cor[6363];ctx.fillRect(630,630, 10, 10) ctx.fillStyle = cor[6364];ctx.fillRect(640,630, 10, 10) ctx.fillStyle = cor[6365];ctx.fillRect(650,630, 10, 10) ctx.fillStyle = cor[6366];ctx.fillRect(660,630, 10, 10) ctx.fillStyle = cor[6367];ctx.fillRect(670,630, 10, 10) ctx.fillStyle = cor[6368];ctx.fillRect(680,630, 10, 10) ctx.fillStyle = cor[6369];ctx.fillRect(690,630, 10, 10) ctx.fillStyle = cor[6370];ctx.fillRect(700,630, 10, 10) ctx.fillStyle = cor[6371];ctx.fillRect(710,630, 10, 10) ctx.fillStyle = cor[6372];ctx.fillRect(720,630, 10, 10) ctx.fillStyle = cor[6373];ctx.fillRect(730,630, 10, 10) ctx.fillStyle = cor[6374];ctx.fillRect(740,630, 10, 10) ctx.fillStyle = cor[6375];ctx.fillRect(750,630, 10, 10) ctx.fillStyle = cor[6376];ctx.fillRect(760,630, 10, 10) ctx.fillStyle = cor[6377];ctx.fillRect(770,630, 10, 10) ctx.fillStyle = cor[6378];ctx.fillRect(780,630, 10, 10) ctx.fillStyle = cor[6379];ctx.fillRect(790,630, 10, 10) ctx.fillStyle = cor[6380];ctx.fillRect(800,630, 10, 10) ctx.fillStyle = cor[6381];ctx.fillRect(810,630, 10, 10) ctx.fillStyle = cor[6382];ctx.fillRect(820,630, 10, 10) ctx.fillStyle = cor[6383];ctx.fillRect(830,630, 10, 10) ctx.fillStyle = cor[6384];ctx.fillRect(840,630, 10, 10) ctx.fillStyle = cor[6385];ctx.fillRect(850,630, 10, 10) ctx.fillStyle = cor[6386];ctx.fillRect(860,630, 10, 10) ctx.fillStyle = cor[6387];ctx.fillRect(870,630, 10, 10) ctx.fillStyle = cor[6388];ctx.fillRect(880,630, 10, 10) ctx.fillStyle = cor[6389];ctx.fillRect(890,630, 10, 10) ctx.fillStyle = cor[6390];ctx.fillRect(900,630, 10, 10) ctx.fillStyle = cor[6391];ctx.fillRect(910,630, 10, 10) ctx.fillStyle = cor[6392];ctx.fillRect(920,630, 10, 10) ctx.fillStyle = cor[6393];ctx.fillRect(930,630, 10, 10) ctx.fillStyle = cor[6394];ctx.fillRect(940,630, 10, 10) ctx.fillStyle = cor[6395];ctx.fillRect(950,630, 10, 10) ctx.fillStyle = cor[6396];ctx.fillRect(960,630, 10, 10) ctx.fillStyle = cor[6397];ctx.fillRect(970,630, 10, 10) ctx.fillStyle = cor[6398];ctx.fillRect(980,630, 10, 10) ctx.fillStyle = cor[6399];ctx.fillRect(990,630, 10, 10) ctx.fillStyle = cor[6400];ctx.fillRect(0,640, 10, 10) ctx.fillStyle = cor[6401];ctx.fillRect(10,640, 10, 10) ctx.fillStyle = cor[6402];ctx.fillRect(20,640, 10, 10) ctx.fillStyle = cor[6403];ctx.fillRect(30,640, 10, 10) ctx.fillStyle = cor[6404];ctx.fillRect(40,640, 10, 10) ctx.fillStyle = cor[6405];ctx.fillRect(50,640, 10, 10) ctx.fillStyle = cor[6406];ctx.fillRect(60,640, 10, 10) ctx.fillStyle = cor[6407];ctx.fillRect(70,640, 10, 10) ctx.fillStyle = cor[6408];ctx.fillRect(80,640, 10, 10) ctx.fillStyle = cor[6409];ctx.fillRect(90,640, 10, 10) ctx.fillStyle = cor[6410];ctx.fillRect(100,640, 10, 10) ctx.fillStyle = cor[6411];ctx.fillRect(110,640, 10, 10) ctx.fillStyle = cor[6412];ctx.fillRect(120,640, 10, 10) ctx.fillStyle = cor[6413];ctx.fillRect(130,640, 10, 10) ctx.fillStyle = cor[6414];ctx.fillRect(140,640, 10, 10) ctx.fillStyle = cor[6415];ctx.fillRect(150,640, 10, 10) ctx.fillStyle = cor[6416];ctx.fillRect(160,640, 10, 10) ctx.fillStyle = cor[6417];ctx.fillRect(170,640, 10, 10) ctx.fillStyle = cor[6418];ctx.fillRect(180,640, 10, 10) ctx.fillStyle = cor[6419];ctx.fillRect(190,640, 10, 10) ctx.fillStyle = cor[6420];ctx.fillRect(200,640, 10, 10) ctx.fillStyle = cor[6421];ctx.fillRect(210,640, 10, 10) ctx.fillStyle = cor[6422];ctx.fillRect(220,640, 10, 10) ctx.fillStyle = cor[6423];ctx.fillRect(230,640, 10, 10) ctx.fillStyle = cor[6424];ctx.fillRect(240,640, 10, 10) ctx.fillStyle = cor[6425];ctx.fillRect(250,640, 10, 10) ctx.fillStyle = cor[6426];ctx.fillRect(260,640, 10, 10) ctx.fillStyle = cor[6427];ctx.fillRect(270,640, 10, 10) ctx.fillStyle = cor[6428];ctx.fillRect(280,640, 10, 10) ctx.fillStyle = cor[6429];ctx.fillRect(290,640, 10, 10) ctx.fillStyle = cor[6430];ctx.fillRect(300,640, 10, 10) ctx.fillStyle = cor[6431];ctx.fillRect(310,640, 10, 10) ctx.fillStyle = cor[6432];ctx.fillRect(320,640, 10, 10) ctx.fillStyle = cor[6433];ctx.fillRect(330,640, 10, 10) ctx.fillStyle = cor[6434];ctx.fillRect(340,640, 10, 10) ctx.fillStyle = cor[6435];ctx.fillRect(350,640, 10, 10) ctx.fillStyle = cor[6436];ctx.fillRect(360,640, 10, 10) ctx.fillStyle = cor[6437];ctx.fillRect(370,640, 10, 10) ctx.fillStyle = cor[6438];ctx.fillRect(380,640, 10, 10) ctx.fillStyle = cor[6439];ctx.fillRect(390,640, 10, 10) ctx.fillStyle = cor[6440];ctx.fillRect(400,640, 10, 10) ctx.fillStyle = cor[6441];ctx.fillRect(410,640, 10, 10) ctx.fillStyle = cor[6442];ctx.fillRect(420,640, 10, 10) ctx.fillStyle = cor[6443];ctx.fillRect(430,640, 10, 10) ctx.fillStyle = cor[6444];ctx.fillRect(440,640, 10, 10) ctx.fillStyle = cor[6445];ctx.fillRect(450,640, 10, 10) ctx.fillStyle = cor[6446];ctx.fillRect(460,640, 10, 10) ctx.fillStyle = cor[6447];ctx.fillRect(470,640, 10, 10) ctx.fillStyle = cor[6448];ctx.fillRect(480,640, 10, 10) ctx.fillStyle = cor[6449];ctx.fillRect(490,640, 10, 10) ctx.fillStyle = cor[6450];ctx.fillRect(500,640, 10, 10) ctx.fillStyle = cor[6451];ctx.fillRect(510,640, 10, 10) ctx.fillStyle = cor[6452];ctx.fillRect(520,640, 10, 10) ctx.fillStyle = cor[6453];ctx.fillRect(530,640, 10, 10) ctx.fillStyle = cor[6454];ctx.fillRect(540,640, 10, 10) ctx.fillStyle = cor[6455];ctx.fillRect(550,640, 10, 10) ctx.fillStyle = cor[6456];ctx.fillRect(560,640, 10, 10) ctx.fillStyle = cor[6457];ctx.fillRect(570,640, 10, 10) ctx.fillStyle = cor[6458];ctx.fillRect(580,640, 10, 10) ctx.fillStyle = cor[6459];ctx.fillRect(590,640, 10, 10) ctx.fillStyle = cor[6460];ctx.fillRect(600,640, 10, 10) ctx.fillStyle = cor[6461];ctx.fillRect(610,640, 10, 10) ctx.fillStyle = cor[6462];ctx.fillRect(620,640, 10, 10) ctx.fillStyle = cor[6463];ctx.fillRect(630,640, 10, 10) ctx.fillStyle = cor[6464];ctx.fillRect(640,640, 10, 10) ctx.fillStyle = cor[6465];ctx.fillRect(650,640, 10, 10) ctx.fillStyle = cor[6466];ctx.fillRect(660,640, 10, 10) ctx.fillStyle = cor[6467];ctx.fillRect(670,640, 10, 10) ctx.fillStyle = cor[6468];ctx.fillRect(680,640, 10, 10) ctx.fillStyle = cor[6469];ctx.fillRect(690,640, 10, 10) ctx.fillStyle = cor[6470];ctx.fillRect(700,640, 10, 10) ctx.fillStyle = cor[6471];ctx.fillRect(710,640, 10, 10) ctx.fillStyle = cor[6472];ctx.fillRect(720,640, 10, 10) ctx.fillStyle = cor[6473];ctx.fillRect(730,640, 10, 10) ctx.fillStyle = cor[6474];ctx.fillRect(740,640, 10, 10) ctx.fillStyle = cor[6475];ctx.fillRect(750,640, 10, 10) ctx.fillStyle = cor[6476];ctx.fillRect(760,640, 10, 10) ctx.fillStyle = cor[6477];ctx.fillRect(770,640, 10, 10) ctx.fillStyle = cor[6478];ctx.fillRect(780,640, 10, 10) ctx.fillStyle = cor[6479];ctx.fillRect(790,640, 10, 10) ctx.fillStyle = cor[6480];ctx.fillRect(800,640, 10, 10) ctx.fillStyle = cor[6481];ctx.fillRect(810,640, 10, 10) ctx.fillStyle = cor[6482];ctx.fillRect(820,640, 10, 10) ctx.fillStyle = cor[6483];ctx.fillRect(830,640, 10, 10) ctx.fillStyle = cor[6484];ctx.fillRect(840,640, 10, 10) ctx.fillStyle = cor[6485];ctx.fillRect(850,640, 10, 10) ctx.fillStyle = cor[6486];ctx.fillRect(860,640, 10, 10) ctx.fillStyle = cor[6487];ctx.fillRect(870,640, 10, 10) ctx.fillStyle = cor[6488];ctx.fillRect(880,640, 10, 10) ctx.fillStyle = cor[6489];ctx.fillRect(890,640, 10, 10) ctx.fillStyle = cor[6490];ctx.fillRect(900,640, 10, 10) ctx.fillStyle = cor[6491];ctx.fillRect(910,640, 10, 10) ctx.fillStyle = cor[6492];ctx.fillRect(920,640, 10, 10) ctx.fillStyle = cor[6493];ctx.fillRect(930,640, 10, 10) ctx.fillStyle = cor[6494];ctx.fillRect(940,640, 10, 10) ctx.fillStyle = cor[6495];ctx.fillRect(950,640, 10, 10) ctx.fillStyle = cor[6496];ctx.fillRect(960,640, 10, 10) ctx.fillStyle = cor[6497];ctx.fillRect(970,640, 10, 10) ctx.fillStyle = cor[6498];ctx.fillRect(980,640, 10, 10) ctx.fillStyle = cor[6499];ctx.fillRect(990,640, 10, 10) ctx.fillStyle = cor[6500];ctx.fillRect(0,650, 10, 10) ctx.fillStyle = cor[6501];ctx.fillRect(10,650, 10, 10) ctx.fillStyle = cor[6502];ctx.fillRect(20,650, 10, 10) ctx.fillStyle = cor[6503];ctx.fillRect(30,650, 10, 10) ctx.fillStyle = cor[6504];ctx.fillRect(40,650, 10, 10) ctx.fillStyle = cor[6505];ctx.fillRect(50,650, 10, 10) ctx.fillStyle = cor[6506];ctx.fillRect(60,650, 10, 10) ctx.fillStyle = cor[6507];ctx.fillRect(70,650, 10, 10) ctx.fillStyle = cor[6508];ctx.fillRect(80,650, 10, 10) ctx.fillStyle = cor[6509];ctx.fillRect(90,650, 10, 10) ctx.fillStyle = cor[6510];ctx.fillRect(100,650, 10, 10) ctx.fillStyle = cor[6511];ctx.fillRect(110,650, 10, 10) ctx.fillStyle = cor[6512];ctx.fillRect(120,650, 10, 10) ctx.fillStyle = cor[6513];ctx.fillRect(130,650, 10, 10) ctx.fillStyle = cor[6514];ctx.fillRect(140,650, 10, 10) ctx.fillStyle = cor[6515];ctx.fillRect(150,650, 10, 10) ctx.fillStyle = cor[6516];ctx.fillRect(160,650, 10, 10) ctx.fillStyle = cor[6517];ctx.fillRect(170,650, 10, 10) ctx.fillStyle = cor[6518];ctx.fillRect(180,650, 10, 10) ctx.fillStyle = cor[6519];ctx.fillRect(190,650, 10, 10) ctx.fillStyle = cor[6520];ctx.fillRect(200,650, 10, 10) ctx.fillStyle = cor[6521];ctx.fillRect(210,650, 10, 10) ctx.fillStyle = cor[6522];ctx.fillRect(220,650, 10, 10) ctx.fillStyle = cor[6523];ctx.fillRect(230,650, 10, 10) ctx.fillStyle = cor[6524];ctx.fillRect(240,650, 10, 10) ctx.fillStyle = cor[6525];ctx.fillRect(250,650, 10, 10) ctx.fillStyle = cor[6526];ctx.fillRect(260,650, 10, 10) ctx.fillStyle = cor[6527];ctx.fillRect(270,650, 10, 10) ctx.fillStyle = cor[6528];ctx.fillRect(280,650, 10, 10) ctx.fillStyle = cor[6529];ctx.fillRect(290,650, 10, 10) ctx.fillStyle = cor[6530];ctx.fillRect(300,650, 10, 10) ctx.fillStyle = cor[6531];ctx.fillRect(310,650, 10, 10) ctx.fillStyle = cor[6532];ctx.fillRect(320,650, 10, 10) ctx.fillStyle = cor[6533];ctx.fillRect(330,650, 10, 10) ctx.fillStyle = cor[6534];ctx.fillRect(340,650, 10, 10) ctx.fillStyle = cor[6535];ctx.fillRect(350,650, 10, 10) ctx.fillStyle = cor[6536];ctx.fillRect(360,650, 10, 10) ctx.fillStyle = cor[6537];ctx.fillRect(370,650, 10, 10) ctx.fillStyle = cor[6538];ctx.fillRect(380,650, 10, 10) ctx.fillStyle = cor[6539];ctx.fillRect(390,650, 10, 10) ctx.fillStyle = cor[6540];ctx.fillRect(400,650, 10, 10) ctx.fillStyle = cor[6541];ctx.fillRect(410,650, 10, 10) ctx.fillStyle = cor[6542];ctx.fillRect(420,650, 10, 10) ctx.fillStyle = cor[6543];ctx.fillRect(430,650, 10, 10) ctx.fillStyle = cor[6544];ctx.fillRect(440,650, 10, 10) ctx.fillStyle = cor[6545];ctx.fillRect(450,650, 10, 10) ctx.fillStyle = cor[6546];ctx.fillRect(460,650, 10, 10) ctx.fillStyle = cor[6547];ctx.fillRect(470,650, 10, 10) ctx.fillStyle = cor[6548];ctx.fillRect(480,650, 10, 10) ctx.fillStyle = cor[6549];ctx.fillRect(490,650, 10, 10) ctx.fillStyle = cor[6550];ctx.fillRect(500,650, 10, 10) ctx.fillStyle = cor[6551];ctx.fillRect(510,650, 10, 10) ctx.fillStyle = cor[6552];ctx.fillRect(520,650, 10, 10) ctx.fillStyle = cor[6553];ctx.fillRect(530,650, 10, 10) ctx.fillStyle = cor[6554];ctx.fillRect(540,650, 10, 10) ctx.fillStyle = cor[6555];ctx.fillRect(550,650, 10, 10) ctx.fillStyle = cor[6556];ctx.fillRect(560,650, 10, 10) ctx.fillStyle = cor[6557];ctx.fillRect(570,650, 10, 10) ctx.fillStyle = cor[6558];ctx.fillRect(580,650, 10, 10) ctx.fillStyle = cor[6559];ctx.fillRect(590,650, 10, 10) ctx.fillStyle = cor[6560];ctx.fillRect(600,650, 10, 10) ctx.fillStyle = cor[6561];ctx.fillRect(610,650, 10, 10) ctx.fillStyle = cor[6562];ctx.fillRect(620,650, 10, 10) ctx.fillStyle = cor[6563];ctx.fillRect(630,650, 10, 10) ctx.fillStyle = cor[6564];ctx.fillRect(640,650, 10, 10) ctx.fillStyle = cor[6565];ctx.fillRect(650,650, 10, 10) ctx.fillStyle = cor[6566];ctx.fillRect(660,650, 10, 10) ctx.fillStyle = cor[6567];ctx.fillRect(670,650, 10, 10) ctx.fillStyle = cor[6568];ctx.fillRect(680,650, 10, 10) ctx.fillStyle = cor[6569];ctx.fillRect(690,650, 10, 10) ctx.fillStyle = cor[6570];ctx.fillRect(700,650, 10, 10) ctx.fillStyle = cor[6571];ctx.fillRect(710,650, 10, 10) ctx.fillStyle = cor[6572];ctx.fillRect(720,650, 10, 10) ctx.fillStyle = cor[6573];ctx.fillRect(730,650, 10, 10) ctx.fillStyle = cor[6574];ctx.fillRect(740,650, 10, 10) ctx.fillStyle = cor[6575];ctx.fillRect(750,650, 10, 10) ctx.fillStyle = cor[6576];ctx.fillRect(760,650, 10, 10) ctx.fillStyle = cor[6577];ctx.fillRect(770,650, 10, 10) ctx.fillStyle = cor[6578];ctx.fillRect(780,650, 10, 10) ctx.fillStyle = cor[6579];ctx.fillRect(790,650, 10, 10) ctx.fillStyle = cor[6580];ctx.fillRect(800,650, 10, 10) ctx.fillStyle = cor[6581];ctx.fillRect(810,650, 10, 10) ctx.fillStyle = cor[6582];ctx.fillRect(820,650, 10, 10) ctx.fillStyle = cor[6583];ctx.fillRect(830,650, 10, 10) ctx.fillStyle = cor[6584];ctx.fillRect(840,650, 10, 10) ctx.fillStyle = cor[6585];ctx.fillRect(850,650, 10, 10) ctx.fillStyle = cor[6586];ctx.fillRect(860,650, 10, 10) ctx.fillStyle = cor[6587];ctx.fillRect(870,650, 10, 10) ctx.fillStyle = cor[6588];ctx.fillRect(880,650, 10, 10) ctx.fillStyle = cor[6589];ctx.fillRect(890,650, 10, 10) ctx.fillStyle = cor[6590];ctx.fillRect(900,650, 10, 10) ctx.fillStyle = cor[6591];ctx.fillRect(910,650, 10, 10) ctx.fillStyle = cor[6592];ctx.fillRect(920,650, 10, 10) ctx.fillStyle = cor[6593];ctx.fillRect(930,650, 10, 10) ctx.fillStyle = cor[6594];ctx.fillRect(940,650, 10, 10) ctx.fillStyle = cor[6595];ctx.fillRect(950,650, 10, 10) ctx.fillStyle = cor[6596];ctx.fillRect(960,650, 10, 10) ctx.fillStyle = cor[6597];ctx.fillRect(970,650, 10, 10) ctx.fillStyle = cor[6598];ctx.fillRect(980,650, 10, 10) ctx.fillStyle = cor[6599];ctx.fillRect(990,650, 10, 10) ctx.fillStyle = cor[6600];ctx.fillRect(0,660, 10, 10) ctx.fillStyle = cor[6601];ctx.fillRect(10,660, 10, 10) ctx.fillStyle = cor[6602];ctx.fillRect(20,660, 10, 10) ctx.fillStyle = cor[6603];ctx.fillRect(30,660, 10, 10) ctx.fillStyle = cor[6604];ctx.fillRect(40,660, 10, 10) ctx.fillStyle = cor[6605];ctx.fillRect(50,660, 10, 10) ctx.fillStyle = cor[6606];ctx.fillRect(60,660, 10, 10) ctx.fillStyle = cor[6607];ctx.fillRect(70,660, 10, 10) ctx.fillStyle = cor[6608];ctx.fillRect(80,660, 10, 10) ctx.fillStyle = cor[6609];ctx.fillRect(90,660, 10, 10) ctx.fillStyle = cor[6610];ctx.fillRect(100,660, 10, 10) ctx.fillStyle = cor[6611];ctx.fillRect(110,660, 10, 10) ctx.fillStyle = cor[6612];ctx.fillRect(120,660, 10, 10) ctx.fillStyle = cor[6613];ctx.fillRect(130,660, 10, 10) ctx.fillStyle = cor[6614];ctx.fillRect(140,660, 10, 10) ctx.fillStyle = cor[6615];ctx.fillRect(150,660, 10, 10) ctx.fillStyle = cor[6616];ctx.fillRect(160,660, 10, 10) ctx.fillStyle = cor[6617];ctx.fillRect(170,660, 10, 10) ctx.fillStyle = cor[6618];ctx.fillRect(180,660, 10, 10) ctx.fillStyle = cor[6619];ctx.fillRect(190,660, 10, 10) ctx.fillStyle = cor[6620];ctx.fillRect(200,660, 10, 10) ctx.fillStyle = cor[6621];ctx.fillRect(210,660, 10, 10) ctx.fillStyle = cor[6622];ctx.fillRect(220,660, 10, 10) ctx.fillStyle = cor[6623];ctx.fillRect(230,660, 10, 10) ctx.fillStyle = cor[6624];ctx.fillRect(240,660, 10, 10) ctx.fillStyle = cor[6625];ctx.fillRect(250,660, 10, 10) ctx.fillStyle = cor[6626];ctx.fillRect(260,660, 10, 10) ctx.fillStyle = cor[6627];ctx.fillRect(270,660, 10, 10) ctx.fillStyle = cor[6628];ctx.fillRect(280,660, 10, 10) ctx.fillStyle = cor[6629];ctx.fillRect(290,660, 10, 10) ctx.fillStyle = cor[6630];ctx.fillRect(300,660, 10, 10) ctx.fillStyle = cor[6631];ctx.fillRect(310,660, 10, 10) ctx.fillStyle = cor[6632];ctx.fillRect(320,660, 10, 10) ctx.fillStyle = cor[6633];ctx.fillRect(330,660, 10, 10) ctx.fillStyle = cor[6634];ctx.fillRect(340,660, 10, 10) ctx.fillStyle = cor[6635];ctx.fillRect(350,660, 10, 10) ctx.fillStyle = cor[6636];ctx.fillRect(360,660, 10, 10) ctx.fillStyle = cor[6637];ctx.fillRect(370,660, 10, 10) ctx.fillStyle = cor[6638];ctx.fillRect(380,660, 10, 10) ctx.fillStyle = cor[6639];ctx.fillRect(390,660, 10, 10) ctx.fillStyle = cor[6640];ctx.fillRect(400,660, 10, 10) ctx.fillStyle = cor[6641];ctx.fillRect(410,660, 10, 10) ctx.fillStyle = cor[6642];ctx.fillRect(420,660, 10, 10) ctx.fillStyle = cor[6643];ctx.fillRect(430,660, 10, 10) ctx.fillStyle = cor[6644];ctx.fillRect(440,660, 10, 10) ctx.fillStyle = cor[6645];ctx.fillRect(450,660, 10, 10) ctx.fillStyle = cor[6646];ctx.fillRect(460,660, 10, 10) ctx.fillStyle = cor[6647];ctx.fillRect(470,660, 10, 10) ctx.fillStyle = cor[6648];ctx.fillRect(480,660, 10, 10) ctx.fillStyle = cor[6649];ctx.fillRect(490,660, 10, 10) ctx.fillStyle = cor[6650];ctx.fillRect(500,660, 10, 10) ctx.fillStyle = cor[6651];ctx.fillRect(510,660, 10, 10) ctx.fillStyle = cor[6652];ctx.fillRect(520,660, 10, 10) ctx.fillStyle = cor[6653];ctx.fillRect(530,660, 10, 10) ctx.fillStyle = cor[6654];ctx.fillRect(540,660, 10, 10) ctx.fillStyle = cor[6655];ctx.fillRect(550,660, 10, 10) ctx.fillStyle = cor[6656];ctx.fillRect(560,660, 10, 10) ctx.fillStyle = cor[6657];ctx.fillRect(570,660, 10, 10) ctx.fillStyle = cor[6658];ctx.fillRect(580,660, 10, 10) ctx.fillStyle = cor[6659];ctx.fillRect(590,660, 10, 10) ctx.fillStyle = cor[6660];ctx.fillRect(600,660, 10, 10) ctx.fillStyle = cor[6661];ctx.fillRect(610,660, 10, 10) ctx.fillStyle = cor[6662];ctx.fillRect(620,660, 10, 10) ctx.fillStyle = cor[6663];ctx.fillRect(630,660, 10, 10) ctx.fillStyle = cor[6664];ctx.fillRect(640,660, 10, 10) ctx.fillStyle = cor[6665];ctx.fillRect(650,660, 10, 10) ctx.fillStyle = cor[6666];ctx.fillRect(660,660, 10, 10) ctx.fillStyle = cor[6667];ctx.fillRect(670,660, 10, 10) ctx.fillStyle = cor[6668];ctx.fillRect(680,660, 10, 10) ctx.fillStyle = cor[6669];ctx.fillRect(690,660, 10, 10) ctx.fillStyle = cor[6670];ctx.fillRect(700,660, 10, 10) ctx.fillStyle = cor[6671];ctx.fillRect(710,660, 10, 10) ctx.fillStyle = cor[6672];ctx.fillRect(720,660, 10, 10) ctx.fillStyle = cor[6673];ctx.fillRect(730,660, 10, 10) ctx.fillStyle = cor[6674];ctx.fillRect(740,660, 10, 10) ctx.fillStyle = cor[6675];ctx.fillRect(750,660, 10, 10) ctx.fillStyle = cor[6676];ctx.fillRect(760,660, 10, 10) ctx.fillStyle = cor[6677];ctx.fillRect(770,660, 10, 10) ctx.fillStyle = cor[6678];ctx.fillRect(780,660, 10, 10) ctx.fillStyle = cor[6679];ctx.fillRect(790,660, 10, 10) ctx.fillStyle = cor[6680];ctx.fillRect(800,660, 10, 10) ctx.fillStyle = cor[6681];ctx.fillRect(810,660, 10, 10) ctx.fillStyle = cor[6682];ctx.fillRect(820,660, 10, 10) ctx.fillStyle = cor[6683];ctx.fillRect(830,660, 10, 10) ctx.fillStyle = cor[6684];ctx.fillRect(840,660, 10, 10) ctx.fillStyle = cor[6685];ctx.fillRect(850,660, 10, 10) ctx.fillStyle = cor[6686];ctx.fillRect(860,660, 10, 10) ctx.fillStyle = cor[6687];ctx.fillRect(870,660, 10, 10) ctx.fillStyle = cor[6688];ctx.fillRect(880,660, 10, 10) ctx.fillStyle = cor[6689];ctx.fillRect(890,660, 10, 10) ctx.fillStyle = cor[6690];ctx.fillRect(900,660, 10, 10) ctx.fillStyle = cor[6691];ctx.fillRect(910,660, 10, 10) ctx.fillStyle = cor[6692];ctx.fillRect(920,660, 10, 10) ctx.fillStyle = cor[6693];ctx.fillRect(930,660, 10, 10) ctx.fillStyle = cor[6694];ctx.fillRect(940,660, 10, 10) ctx.fillStyle = cor[6695];ctx.fillRect(950,660, 10, 10) ctx.fillStyle = cor[6696];ctx.fillRect(960,660, 10, 10) ctx.fillStyle = cor[6697];ctx.fillRect(970,660, 10, 10) ctx.fillStyle = cor[6698];ctx.fillRect(980,660, 10, 10) ctx.fillStyle = cor[6699];ctx.fillRect(990,660, 10, 10) ctx.fillStyle = cor[6700];ctx.fillRect(0,670, 10, 10) ctx.fillStyle = cor[6701];ctx.fillRect(10,670, 10, 10) ctx.fillStyle = cor[6702];ctx.fillRect(20,670, 10, 10) ctx.fillStyle = cor[6703];ctx.fillRect(30,670, 10, 10) ctx.fillStyle = cor[6704];ctx.fillRect(40,670, 10, 10) ctx.fillStyle = cor[6705];ctx.fillRect(50,670, 10, 10) ctx.fillStyle = cor[6706];ctx.fillRect(60,670, 10, 10) ctx.fillStyle = cor[6707];ctx.fillRect(70,670, 10, 10) ctx.fillStyle = cor[6708];ctx.fillRect(80,670, 10, 10) ctx.fillStyle = cor[6709];ctx.fillRect(90,670, 10, 10) ctx.fillStyle = cor[6710];ctx.fillRect(100,670, 10, 10) ctx.fillStyle = cor[6711];ctx.fillRect(110,670, 10, 10) ctx.fillStyle = cor[6712];ctx.fillRect(120,670, 10, 10) ctx.fillStyle = cor[6713];ctx.fillRect(130,670, 10, 10) ctx.fillStyle = cor[6714];ctx.fillRect(140,670, 10, 10) ctx.fillStyle = cor[6715];ctx.fillRect(150,670, 10, 10) ctx.fillStyle = cor[6716];ctx.fillRect(160,670, 10, 10) ctx.fillStyle = cor[6717];ctx.fillRect(170,670, 10, 10) ctx.fillStyle = cor[6718];ctx.fillRect(180,670, 10, 10) ctx.fillStyle = cor[6719];ctx.fillRect(190,670, 10, 10) ctx.fillStyle = cor[6720];ctx.fillRect(200,670, 10, 10) ctx.fillStyle = cor[6721];ctx.fillRect(210,670, 10, 10) ctx.fillStyle = cor[6722];ctx.fillRect(220,670, 10, 10) ctx.fillStyle = cor[6723];ctx.fillRect(230,670, 10, 10) ctx.fillStyle = cor[6724];ctx.fillRect(240,670, 10, 10) ctx.fillStyle = cor[6725];ctx.fillRect(250,670, 10, 10) ctx.fillStyle = cor[6726];ctx.fillRect(260,670, 10, 10) ctx.fillStyle = cor[6727];ctx.fillRect(270,670, 10, 10) ctx.fillStyle = cor[6728];ctx.fillRect(280,670, 10, 10) ctx.fillStyle = cor[6729];ctx.fillRect(290,670, 10, 10) ctx.fillStyle = cor[6730];ctx.fillRect(300,670, 10, 10) ctx.fillStyle = cor[6731];ctx.fillRect(310,670, 10, 10) ctx.fillStyle = cor[6732];ctx.fillRect(320,670, 10, 10) ctx.fillStyle = cor[6733];ctx.fillRect(330,670, 10, 10) ctx.fillStyle = cor[6734];ctx.fillRect(340,670, 10, 10) ctx.fillStyle = cor[6735];ctx.fillRect(350,670, 10, 10) ctx.fillStyle = cor[6736];ctx.fillRect(360,670, 10, 10) ctx.fillStyle = cor[6737];ctx.fillRect(370,670, 10, 10) ctx.fillStyle = cor[6738];ctx.fillRect(380,670, 10, 10) ctx.fillStyle = cor[6739];ctx.fillRect(390,670, 10, 10) ctx.fillStyle = cor[6740];ctx.fillRect(400,670, 10, 10) ctx.fillStyle = cor[6741];ctx.fillRect(410,670, 10, 10) ctx.fillStyle = cor[6742];ctx.fillRect(420,670, 10, 10) ctx.fillStyle = cor[6743];ctx.fillRect(430,670, 10, 10) ctx.fillStyle = cor[6744];ctx.fillRect(440,670, 10, 10) ctx.fillStyle = cor[6745];ctx.fillRect(450,670, 10, 10) ctx.fillStyle = cor[6746];ctx.fillRect(460,670, 10, 10) ctx.fillStyle = cor[6747];ctx.fillRect(470,670, 10, 10) ctx.fillStyle = cor[6748];ctx.fillRect(480,670, 10, 10) ctx.fillStyle = cor[6749];ctx.fillRect(490,670, 10, 10) ctx.fillStyle = cor[6750];ctx.fillRect(500,670, 10, 10) ctx.fillStyle = cor[6751];ctx.fillRect(510,670, 10, 10) ctx.fillStyle = cor[6752];ctx.fillRect(520,670, 10, 10) ctx.fillStyle = cor[6753];ctx.fillRect(530,670, 10, 10) ctx.fillStyle = cor[6754];ctx.fillRect(540,670, 10, 10) ctx.fillStyle = cor[6755];ctx.fillRect(550,670, 10, 10) ctx.fillStyle = cor[6756];ctx.fillRect(560,670, 10, 10) ctx.fillStyle = cor[6757];ctx.fillRect(570,670, 10, 10) ctx.fillStyle = cor[6758];ctx.fillRect(580,670, 10, 10) ctx.fillStyle = cor[6759];ctx.fillRect(590,670, 10, 10) ctx.fillStyle = cor[6760];ctx.fillRect(600,670, 10, 10) ctx.fillStyle = cor[6761];ctx.fillRect(610,670, 10, 10) ctx.fillStyle = cor[6762];ctx.fillRect(620,670, 10, 10) ctx.fillStyle = cor[6763];ctx.fillRect(630,670, 10, 10) ctx.fillStyle = cor[6764];ctx.fillRect(640,670, 10, 10) ctx.fillStyle = cor[6765];ctx.fillRect(650,670, 10, 10) ctx.fillStyle = cor[6766];ctx.fillRect(660,670, 10, 10) ctx.fillStyle = cor[6767];ctx.fillRect(670,670, 10, 10) ctx.fillStyle = cor[6768];ctx.fillRect(680,670, 10, 10) ctx.fillStyle = cor[6769];ctx.fillRect(690,670, 10, 10) ctx.fillStyle = cor[6770];ctx.fillRect(700,670, 10, 10) ctx.fillStyle = cor[6771];ctx.fillRect(710,670, 10, 10) ctx.fillStyle = cor[6772];ctx.fillRect(720,670, 10, 10) ctx.fillStyle = cor[6773];ctx.fillRect(730,670, 10, 10) ctx.fillStyle = cor[6774];ctx.fillRect(740,670, 10, 10) ctx.fillStyle = cor[6775];ctx.fillRect(750,670, 10, 10) ctx.fillStyle = cor[6776];ctx.fillRect(760,670, 10, 10) ctx.fillStyle = cor[6777];ctx.fillRect(770,670, 10, 10) ctx.fillStyle = cor[6778];ctx.fillRect(780,670, 10, 10) ctx.fillStyle = cor[6779];ctx.fillRect(790,670, 10, 10) ctx.fillStyle = cor[6780];ctx.fillRect(800,670, 10, 10) ctx.fillStyle = cor[6781];ctx.fillRect(810,670, 10, 10) ctx.fillStyle = cor[6782];ctx.fillRect(820,670, 10, 10) ctx.fillStyle = cor[6783];ctx.fillRect(830,670, 10, 10) ctx.fillStyle = cor[6784];ctx.fillRect(840,670, 10, 10) ctx.fillStyle = cor[6785];ctx.fillRect(850,670, 10, 10) ctx.fillStyle = cor[6786];ctx.fillRect(860,670, 10, 10) ctx.fillStyle = cor[6787];ctx.fillRect(870,670, 10, 10) ctx.fillStyle = cor[6788];ctx.fillRect(880,670, 10, 10) ctx.fillStyle = cor[6789];ctx.fillRect(890,670, 10, 10) ctx.fillStyle = cor[6790];ctx.fillRect(900,670, 10, 10) ctx.fillStyle = cor[6791];ctx.fillRect(910,670, 10, 10) ctx.fillStyle = cor[6792];ctx.fillRect(920,670, 10, 10) ctx.fillStyle = cor[6793];ctx.fillRect(930,670, 10, 10) ctx.fillStyle = cor[6794];ctx.fillRect(940,670, 10, 10) ctx.fillStyle = cor[6795];ctx.fillRect(950,670, 10, 10) ctx.fillStyle = cor[6796];ctx.fillRect(960,670, 10, 10) ctx.fillStyle = cor[6797];ctx.fillRect(970,670, 10, 10) ctx.fillStyle = cor[6798];ctx.fillRect(980,670, 10, 10) ctx.fillStyle = cor[6799];ctx.fillRect(990,670, 10, 10) ctx.fillStyle = cor[6800];ctx.fillRect(0,680, 10, 10) ctx.fillStyle = cor[6801];ctx.fillRect(10,680, 10, 10) ctx.fillStyle = cor[6802];ctx.fillRect(20,680, 10, 10) ctx.fillStyle = cor[6803];ctx.fillRect(30,680, 10, 10) ctx.fillStyle = cor[6804];ctx.fillRect(40,680, 10, 10) ctx.fillStyle = cor[6805];ctx.fillRect(50,680, 10, 10) ctx.fillStyle = cor[6806];ctx.fillRect(60,680, 10, 10) ctx.fillStyle = cor[6807];ctx.fillRect(70,680, 10, 10) ctx.fillStyle = cor[6808];ctx.fillRect(80,680, 10, 10) ctx.fillStyle = cor[6809];ctx.fillRect(90,680, 10, 10) ctx.fillStyle = cor[6810];ctx.fillRect(100,680, 10, 10) ctx.fillStyle = cor[6811];ctx.fillRect(110,680, 10, 10) ctx.fillStyle = cor[6812];ctx.fillRect(120,680, 10, 10) ctx.fillStyle = cor[6813];ctx.fillRect(130,680, 10, 10) ctx.fillStyle = cor[6814];ctx.fillRect(140,680, 10, 10) ctx.fillStyle = cor[6815];ctx.fillRect(150,680, 10, 10) ctx.fillStyle = cor[6816];ctx.fillRect(160,680, 10, 10) ctx.fillStyle = cor[6817];ctx.fillRect(170,680, 10, 10) ctx.fillStyle = cor[6818];ctx.fillRect(180,680, 10, 10) ctx.fillStyle = cor[6819];ctx.fillRect(190,680, 10, 10) ctx.fillStyle = cor[6820];ctx.fillRect(200,680, 10, 10) ctx.fillStyle = cor[6821];ctx.fillRect(210,680, 10, 10) ctx.fillStyle = cor[6822];ctx.fillRect(220,680, 10, 10) ctx.fillStyle = cor[6823];ctx.fillRect(230,680, 10, 10) ctx.fillStyle = cor[6824];ctx.fillRect(240,680, 10, 10) ctx.fillStyle = cor[6825];ctx.fillRect(250,680, 10, 10) ctx.fillStyle = cor[6826];ctx.fillRect(260,680, 10, 10) ctx.fillStyle = cor[6827];ctx.fillRect(270,680, 10, 10) ctx.fillStyle = cor[6828];ctx.fillRect(280,680, 10, 10) ctx.fillStyle = cor[6829];ctx.fillRect(290,680, 10, 10) ctx.fillStyle = cor[6830];ctx.fillRect(300,680, 10, 10) ctx.fillStyle = cor[6831];ctx.fillRect(310,680, 10, 10) ctx.fillStyle = cor[6832];ctx.fillRect(320,680, 10, 10) ctx.fillStyle = cor[6833];ctx.fillRect(330,680, 10, 10) ctx.fillStyle = cor[6834];ctx.fillRect(340,680, 10, 10) ctx.fillStyle = cor[6835];ctx.fillRect(350,680, 10, 10) ctx.fillStyle = cor[6836];ctx.fillRect(360,680, 10, 10) ctx.fillStyle = cor[6837];ctx.fillRect(370,680, 10, 10) ctx.fillStyle = cor[6838];ctx.fillRect(380,680, 10, 10) ctx.fillStyle = cor[6839];ctx.fillRect(390,680, 10, 10) ctx.fillStyle = cor[6840];ctx.fillRect(400,680, 10, 10) ctx.fillStyle = cor[6841];ctx.fillRect(410,680, 10, 10) ctx.fillStyle = cor[6842];ctx.fillRect(420,680, 10, 10) ctx.fillStyle = cor[6843];ctx.fillRect(430,680, 10, 10) ctx.fillStyle = cor[6844];ctx.fillRect(440,680, 10, 10) ctx.fillStyle = cor[6845];ctx.fillRect(450,680, 10, 10) ctx.fillStyle = cor[6846];ctx.fillRect(460,680, 10, 10) ctx.fillStyle = cor[6847];ctx.fillRect(470,680, 10, 10) ctx.fillStyle = cor[6848];ctx.fillRect(480,680, 10, 10) ctx.fillStyle = cor[6849];ctx.fillRect(490,680, 10, 10) ctx.fillStyle = cor[6850];ctx.fillRect(500,680, 10, 10) ctx.fillStyle = cor[6851];ctx.fillRect(510,680, 10, 10) ctx.fillStyle = cor[6852];ctx.fillRect(520,680, 10, 10) ctx.fillStyle = cor[6853];ctx.fillRect(530,680, 10, 10) ctx.fillStyle = cor[6854];ctx.fillRect(540,680, 10, 10) ctx.fillStyle = cor[6855];ctx.fillRect(550,680, 10, 10) ctx.fillStyle = cor[6856];ctx.fillRect(560,680, 10, 10) ctx.fillStyle = cor[6857];ctx.fillRect(570,680, 10, 10) ctx.fillStyle = cor[6858];ctx.fillRect(580,680, 10, 10) ctx.fillStyle = cor[6859];ctx.fillRect(590,680, 10, 10) ctx.fillStyle = cor[6860];ctx.fillRect(600,680, 10, 10) ctx.fillStyle = cor[6861];ctx.fillRect(610,680, 10, 10) ctx.fillStyle = cor[6862];ctx.fillRect(620,680, 10, 10) ctx.fillStyle = cor[6863];ctx.fillRect(630,680, 10, 10) ctx.fillStyle = cor[6864];ctx.fillRect(640,680, 10, 10) ctx.fillStyle = cor[6865];ctx.fillRect(650,680, 10, 10) ctx.fillStyle = cor[6866];ctx.fillRect(660,680, 10, 10) ctx.fillStyle = cor[6867];ctx.fillRect(670,680, 10, 10) ctx.fillStyle = cor[6868];ctx.fillRect(680,680, 10, 10) ctx.fillStyle = cor[6869];ctx.fillRect(690,680, 10, 10) ctx.fillStyle = cor[6870];ctx.fillRect(700,680, 10, 10) ctx.fillStyle = cor[6871];ctx.fillRect(710,680, 10, 10) ctx.fillStyle = cor[6872];ctx.fillRect(720,680, 10, 10) ctx.fillStyle = cor[6873];ctx.fillRect(730,680, 10, 10) ctx.fillStyle = cor[6874];ctx.fillRect(740,680, 10, 10) ctx.fillStyle = cor[6875];ctx.fillRect(750,680, 10, 10) ctx.fillStyle = cor[6876];ctx.fillRect(760,680, 10, 10) ctx.fillStyle = cor[6877];ctx.fillRect(770,680, 10, 10) ctx.fillStyle = cor[6878];ctx.fillRect(780,680, 10, 10) ctx.fillStyle = cor[6879];ctx.fillRect(790,680, 10, 10) ctx.fillStyle = cor[6880];ctx.fillRect(800,680, 10, 10) ctx.fillStyle = cor[6881];ctx.fillRect(810,680, 10, 10) ctx.fillStyle = cor[6882];ctx.fillRect(820,680, 10, 10) ctx.fillStyle = cor[6883];ctx.fillRect(830,680, 10, 10) ctx.fillStyle = cor[6884];ctx.fillRect(840,680, 10, 10) ctx.fillStyle = cor[6885];ctx.fillRect(850,680, 10, 10) ctx.fillStyle = cor[6886];ctx.fillRect(860,680, 10, 10) ctx.fillStyle = cor[6887];ctx.fillRect(870,680, 10, 10) ctx.fillStyle = cor[6888];ctx.fillRect(880,680, 10, 10) ctx.fillStyle = cor[6889];ctx.fillRect(890,680, 10, 10) ctx.fillStyle = cor[6890];ctx.fillRect(900,680, 10, 10) ctx.fillStyle = cor[6891];ctx.fillRect(910,680, 10, 10) ctx.fillStyle = cor[6892];ctx.fillRect(920,680, 10, 10) ctx.fillStyle = cor[6893];ctx.fillRect(930,680, 10, 10) ctx.fillStyle = cor[6894];ctx.fillRect(940,680, 10, 10) ctx.fillStyle = cor[6895];ctx.fillRect(950,680, 10, 10) ctx.fillStyle = cor[6896];ctx.fillRect(960,680, 10, 10) ctx.fillStyle = cor[6897];ctx.fillRect(970,680, 10, 10) ctx.fillStyle = cor[6898];ctx.fillRect(980,680, 10, 10) ctx.fillStyle = cor[6899];ctx.fillRect(990,680, 10, 10) ctx.fillStyle = cor[6900];ctx.fillRect(0,690, 10, 10) ctx.fillStyle = cor[6901];ctx.fillRect(10,690, 10, 10) ctx.fillStyle = cor[6902];ctx.fillRect(20,690, 10, 10) ctx.fillStyle = cor[6903];ctx.fillRect(30,690, 10, 10) ctx.fillStyle = cor[6904];ctx.fillRect(40,690, 10, 10) ctx.fillStyle = cor[6905];ctx.fillRect(50,690, 10, 10) ctx.fillStyle = cor[6906];ctx.fillRect(60,690, 10, 10) ctx.fillStyle = cor[6907];ctx.fillRect(70,690, 10, 10) ctx.fillStyle = cor[6908];ctx.fillRect(80,690, 10, 10) ctx.fillStyle = cor[6909];ctx.fillRect(90,690, 10, 10) ctx.fillStyle = cor[6910];ctx.fillRect(100,690, 10, 10) ctx.fillStyle = cor[6911];ctx.fillRect(110,690, 10, 10) ctx.fillStyle = cor[6912];ctx.fillRect(120,690, 10, 10) ctx.fillStyle = cor[6913];ctx.fillRect(130,690, 10, 10) ctx.fillStyle = cor[6914];ctx.fillRect(140,690, 10, 10) ctx.fillStyle = cor[6915];ctx.fillRect(150,690, 10, 10) ctx.fillStyle = cor[6916];ctx.fillRect(160,690, 10, 10) ctx.fillStyle = cor[6917];ctx.fillRect(170,690, 10, 10) ctx.fillStyle = cor[6918];ctx.fillRect(180,690, 10, 10) ctx.fillStyle = cor[6919];ctx.fillRect(190,690, 10, 10) ctx.fillStyle = cor[6920];ctx.fillRect(200,690, 10, 10) ctx.fillStyle = cor[6921];ctx.fillRect(210,690, 10, 10) ctx.fillStyle = cor[6922];ctx.fillRect(220,690, 10, 10) ctx.fillStyle = cor[6923];ctx.fillRect(230,690, 10, 10) ctx.fillStyle = cor[6924];ctx.fillRect(240,690, 10, 10) ctx.fillStyle = cor[6925];ctx.fillRect(250,690, 10, 10) ctx.fillStyle = cor[6926];ctx.fillRect(260,690, 10, 10) ctx.fillStyle = cor[6927];ctx.fillRect(270,690, 10, 10) ctx.fillStyle = cor[6928];ctx.fillRect(280,690, 10, 10) ctx.fillStyle = cor[6929];ctx.fillRect(290,690, 10, 10) ctx.fillStyle = cor[6930];ctx.fillRect(300,690, 10, 10) ctx.fillStyle = cor[6931];ctx.fillRect(310,690, 10, 10) ctx.fillStyle = cor[6932];ctx.fillRect(320,690, 10, 10) ctx.fillStyle = cor[6933];ctx.fillRect(330,690, 10, 10) ctx.fillStyle = cor[6934];ctx.fillRect(340,690, 10, 10) ctx.fillStyle = cor[6935];ctx.fillRect(350,690, 10, 10) ctx.fillStyle = cor[6936];ctx.fillRect(360,690, 10, 10) ctx.fillStyle = cor[6937];ctx.fillRect(370,690, 10, 10) ctx.fillStyle = cor[6938];ctx.fillRect(380,690, 10, 10) ctx.fillStyle = cor[6939];ctx.fillRect(390,690, 10, 10) ctx.fillStyle = cor[6940];ctx.fillRect(400,690, 10, 10) ctx.fillStyle = cor[6941];ctx.fillRect(410,690, 10, 10) ctx.fillStyle = cor[6942];ctx.fillRect(420,690, 10, 10) ctx.fillStyle = cor[6943];ctx.fillRect(430,690, 10, 10) ctx.fillStyle = cor[6944];ctx.fillRect(440,690, 10, 10) ctx.fillStyle = cor[6945];ctx.fillRect(450,690, 10, 10) ctx.fillStyle = cor[6946];ctx.fillRect(460,690, 10, 10) ctx.fillStyle = cor[6947];ctx.fillRect(470,690, 10, 10) ctx.fillStyle = cor[6948];ctx.fillRect(480,690, 10, 10) ctx.fillStyle = cor[6949];ctx.fillRect(490,690, 10, 10) ctx.fillStyle = cor[6950];ctx.fillRect(500,690, 10, 10) ctx.fillStyle = cor[6951];ctx.fillRect(510,690, 10, 10) ctx.fillStyle = cor[6952];ctx.fillRect(520,690, 10, 10) ctx.fillStyle = cor[6953];ctx.fillRect(530,690, 10, 10) ctx.fillStyle = cor[6954];ctx.fillRect(540,690, 10, 10) ctx.fillStyle = cor[6955];ctx.fillRect(550,690, 10, 10) ctx.fillStyle = cor[6956];ctx.fillRect(560,690, 10, 10) ctx.fillStyle = cor[6957];ctx.fillRect(570,690, 10, 10) ctx.fillStyle = cor[6958];ctx.fillRect(580,690, 10, 10) ctx.fillStyle = cor[6959];ctx.fillRect(590,690, 10, 10) ctx.fillStyle = cor[6960];ctx.fillRect(600,690, 10, 10) ctx.fillStyle = cor[6961];ctx.fillRect(610,690, 10, 10) ctx.fillStyle = cor[6962];ctx.fillRect(620,690, 10, 10) ctx.fillStyle = cor[6963];ctx.fillRect(630,690, 10, 10) ctx.fillStyle = cor[6964];ctx.fillRect(640,690, 10, 10) ctx.fillStyle = cor[6965];ctx.fillRect(650,690, 10, 10) ctx.fillStyle = cor[6966];ctx.fillRect(660,690, 10, 10) ctx.fillStyle = cor[6967];ctx.fillRect(670,690, 10, 10) ctx.fillStyle = cor[6968];ctx.fillRect(680,690, 10, 10) ctx.fillStyle = cor[6969];ctx.fillRect(690,690, 10, 10) ctx.fillStyle = cor[6970];ctx.fillRect(700,690, 10, 10) ctx.fillStyle = cor[6971];ctx.fillRect(710,690, 10, 10) ctx.fillStyle = cor[6972];ctx.fillRect(720,690, 10, 10) ctx.fillStyle = cor[6973];ctx.fillRect(730,690, 10, 10) ctx.fillStyle = cor[6974];ctx.fillRect(740,690, 10, 10) ctx.fillStyle = cor[6975];ctx.fillRect(750,690, 10, 10) ctx.fillStyle = cor[6976];ctx.fillRect(760,690, 10, 10) ctx.fillStyle = cor[6977];ctx.fillRect(770,690, 10, 10) ctx.fillStyle = cor[6978];ctx.fillRect(780,690, 10, 10) ctx.fillStyle = cor[6979];ctx.fillRect(790,690, 10, 10) ctx.fillStyle = cor[6980];ctx.fillRect(800,690, 10, 10) ctx.fillStyle = cor[6981];ctx.fillRect(810,690, 10, 10) ctx.fillStyle = cor[6982];ctx.fillRect(820,690, 10, 10) ctx.fillStyle = cor[6983];ctx.fillRect(830,690, 10, 10) ctx.fillStyle = cor[6984];ctx.fillRect(840,690, 10, 10) ctx.fillStyle = cor[6985];ctx.fillRect(850,690, 10, 10) ctx.fillStyle = cor[6986];ctx.fillRect(860,690, 10, 10) ctx.fillStyle = cor[6987];ctx.fillRect(870,690, 10, 10) ctx.fillStyle = cor[6988];ctx.fillRect(880,690, 10, 10) ctx.fillStyle = cor[6989];ctx.fillRect(890,690, 10, 10) ctx.fillStyle = cor[6990];ctx.fillRect(900,690, 10, 10) ctx.fillStyle = cor[6991];ctx.fillRect(910,690, 10, 10) ctx.fillStyle = cor[6992];ctx.fillRect(920,690, 10, 10) ctx.fillStyle = cor[6993];ctx.fillRect(930,690, 10, 10) ctx.fillStyle = cor[6994];ctx.fillRect(940,690, 10, 10) ctx.fillStyle = cor[6995];ctx.fillRect(950,690, 10, 10) ctx.fillStyle = cor[6996];ctx.fillRect(960,690, 10, 10) ctx.fillStyle = cor[6997];ctx.fillRect(970,690, 10, 10) ctx.fillStyle = cor[6998];ctx.fillRect(980,690, 10, 10) ctx.fillStyle = cor[6999];ctx.fillRect(990,690, 10, 10) ctx.fillStyle = cor[7000];ctx.fillRect(0,700, 10, 10) ctx.fillStyle = cor[7001];ctx.fillRect(10,700, 10, 10) ctx.fillStyle = cor[7002];ctx.fillRect(20,700, 10, 10) ctx.fillStyle = cor[7003];ctx.fillRect(30,700, 10, 10) ctx.fillStyle = cor[7004];ctx.fillRect(40,700, 10, 10) ctx.fillStyle = cor[7005];ctx.fillRect(50,700, 10, 10) ctx.fillStyle = cor[7006];ctx.fillRect(60,700, 10, 10) ctx.fillStyle = cor[7007];ctx.fillRect(70,700, 10, 10) ctx.fillStyle = cor[7008];ctx.fillRect(80,700, 10, 10) ctx.fillStyle = cor[7009];ctx.fillRect(90,700, 10, 10) ctx.fillStyle = cor[7010];ctx.fillRect(100,700, 10, 10) ctx.fillStyle = cor[7011];ctx.fillRect(110,700, 10, 10) ctx.fillStyle = cor[7012];ctx.fillRect(120,700, 10, 10) ctx.fillStyle = cor[7013];ctx.fillRect(130,700, 10, 10) ctx.fillStyle = cor[7014];ctx.fillRect(140,700, 10, 10) ctx.fillStyle = cor[7015];ctx.fillRect(150,700, 10, 10) ctx.fillStyle = cor[7016];ctx.fillRect(160,700, 10, 10) ctx.fillStyle = cor[7017];ctx.fillRect(170,700, 10, 10) ctx.fillStyle = cor[7018];ctx.fillRect(180,700, 10, 10) ctx.fillStyle = cor[7019];ctx.fillRect(190,700, 10, 10) ctx.fillStyle = cor[7020];ctx.fillRect(200,700, 10, 10) ctx.fillStyle = cor[7021];ctx.fillRect(210,700, 10, 10) ctx.fillStyle = cor[7022];ctx.fillRect(220,700, 10, 10) ctx.fillStyle = cor[7023];ctx.fillRect(230,700, 10, 10) ctx.fillStyle = cor[7024];ctx.fillRect(240,700, 10, 10) ctx.fillStyle = cor[7025];ctx.fillRect(250,700, 10, 10) ctx.fillStyle = cor[7026];ctx.fillRect(260,700, 10, 10) ctx.fillStyle = cor[7027];ctx.fillRect(270,700, 10, 10) ctx.fillStyle = cor[7028];ctx.fillRect(280,700, 10, 10) ctx.fillStyle = cor[7029];ctx.fillRect(290,700, 10, 10) ctx.fillStyle = cor[7030];ctx.fillRect(300,700, 10, 10) ctx.fillStyle = cor[7031];ctx.fillRect(310,700, 10, 10) ctx.fillStyle = cor[7032];ctx.fillRect(320,700, 10, 10) ctx.fillStyle = cor[7033];ctx.fillRect(330,700, 10, 10) ctx.fillStyle = cor[7034];ctx.fillRect(340,700, 10, 10) ctx.fillStyle = cor[7035];ctx.fillRect(350,700, 10, 10) ctx.fillStyle = cor[7036];ctx.fillRect(360,700, 10, 10) ctx.fillStyle = cor[7037];ctx.fillRect(370,700, 10, 10) ctx.fillStyle = cor[7038];ctx.fillRect(380,700, 10, 10) ctx.fillStyle = cor[7039];ctx.fillRect(390,700, 10, 10) ctx.fillStyle = cor[7040];ctx.fillRect(400,700, 10, 10) ctx.fillStyle = cor[7041];ctx.fillRect(410,700, 10, 10) ctx.fillStyle = cor[7042];ctx.fillRect(420,700, 10, 10) ctx.fillStyle = cor[7043];ctx.fillRect(430,700, 10, 10) ctx.fillStyle = cor[7044];ctx.fillRect(440,700, 10, 10) ctx.fillStyle = cor[7045];ctx.fillRect(450,700, 10, 10) ctx.fillStyle = cor[7046];ctx.fillRect(460,700, 10, 10) ctx.fillStyle = cor[7047];ctx.fillRect(470,700, 10, 10) ctx.fillStyle = cor[7048];ctx.fillRect(480,700, 10, 10) ctx.fillStyle = cor[7049];ctx.fillRect(490,700, 10, 10) ctx.fillStyle = cor[7050];ctx.fillRect(500,700, 10, 10) ctx.fillStyle = cor[7051];ctx.fillRect(510,700, 10, 10) ctx.fillStyle = cor[7052];ctx.fillRect(520,700, 10, 10) ctx.fillStyle = cor[7053];ctx.fillRect(530,700, 10, 10) ctx.fillStyle = cor[7054];ctx.fillRect(540,700, 10, 10) ctx.fillStyle = cor[7055];ctx.fillRect(550,700, 10, 10) ctx.fillStyle = cor[7056];ctx.fillRect(560,700, 10, 10) ctx.fillStyle = cor[7057];ctx.fillRect(570,700, 10, 10) ctx.fillStyle = cor[7058];ctx.fillRect(580,700, 10, 10) ctx.fillStyle = cor[7059];ctx.fillRect(590,700, 10, 10) ctx.fillStyle = cor[7060];ctx.fillRect(600,700, 10, 10) ctx.fillStyle = cor[7061];ctx.fillRect(610,700, 10, 10) ctx.fillStyle = cor[7062];ctx.fillRect(620,700, 10, 10) ctx.fillStyle = cor[7063];ctx.fillRect(630,700, 10, 10) ctx.fillStyle = cor[7064];ctx.fillRect(640,700, 10, 10) ctx.fillStyle = cor[7065];ctx.fillRect(650,700, 10, 10) ctx.fillStyle = cor[7066];ctx.fillRect(660,700, 10, 10) ctx.fillStyle = cor[7067];ctx.fillRect(670,700, 10, 10) ctx.fillStyle = cor[7068];ctx.fillRect(680,700, 10, 10) ctx.fillStyle = cor[7069];ctx.fillRect(690,700, 10, 10) ctx.fillStyle = cor[7070];ctx.fillRect(700,700, 10, 10) ctx.fillStyle = cor[7071];ctx.fillRect(710,700, 10, 10) ctx.fillStyle = cor[7072];ctx.fillRect(720,700, 10, 10) ctx.fillStyle = cor[7073];ctx.fillRect(730,700, 10, 10) ctx.fillStyle = cor[7074];ctx.fillRect(740,700, 10, 10) ctx.fillStyle = cor[7075];ctx.fillRect(750,700, 10, 10) ctx.fillStyle = cor[7076];ctx.fillRect(760,700, 10, 10) ctx.fillStyle = cor[7077];ctx.fillRect(770,700, 10, 10) ctx.fillStyle = cor[7078];ctx.fillRect(780,700, 10, 10) ctx.fillStyle = cor[7079];ctx.fillRect(790,700, 10, 10) ctx.fillStyle = cor[7080];ctx.fillRect(800,700, 10, 10) ctx.fillStyle = cor[7081];ctx.fillRect(810,700, 10, 10) ctx.fillStyle = cor[7082];ctx.fillRect(820,700, 10, 10) ctx.fillStyle = cor[7083];ctx.fillRect(830,700, 10, 10) ctx.fillStyle = cor[7084];ctx.fillRect(840,700, 10, 10) ctx.fillStyle = cor[7085];ctx.fillRect(850,700, 10, 10) ctx.fillStyle = cor[7086];ctx.fillRect(860,700, 10, 10) ctx.fillStyle = cor[7087];ctx.fillRect(870,700, 10, 10) ctx.fillStyle = cor[7088];ctx.fillRect(880,700, 10, 10) ctx.fillStyle = cor[7089];ctx.fillRect(890,700, 10, 10) ctx.fillStyle = cor[7090];ctx.fillRect(900,700, 10, 10) ctx.fillStyle = cor[7091];ctx.fillRect(910,700, 10, 10) ctx.fillStyle = cor[7092];ctx.fillRect(920,700, 10, 10) ctx.fillStyle = cor[7093];ctx.fillRect(930,700, 10, 10) ctx.fillStyle = cor[7094];ctx.fillRect(940,700, 10, 10) ctx.fillStyle = cor[7095];ctx.fillRect(950,700, 10, 10) ctx.fillStyle = cor[7096];ctx.fillRect(960,700, 10, 10) ctx.fillStyle = cor[7097];ctx.fillRect(970,700, 10, 10) ctx.fillStyle = cor[7098];ctx.fillRect(980,700, 10, 10) ctx.fillStyle = cor[7099];ctx.fillRect(990,700, 10, 10) ctx.fillStyle = cor[7100];ctx.fillRect(0,710, 10, 10) ctx.fillStyle = cor[7101];ctx.fillRect(10,710, 10, 10) ctx.fillStyle = cor[7102];ctx.fillRect(20,710, 10, 10) ctx.fillStyle = cor[7103];ctx.fillRect(30,710, 10, 10) ctx.fillStyle = cor[7104];ctx.fillRect(40,710, 10, 10) ctx.fillStyle = cor[7105];ctx.fillRect(50,710, 10, 10) ctx.fillStyle = cor[7106];ctx.fillRect(60,710, 10, 10) ctx.fillStyle = cor[7107];ctx.fillRect(70,710, 10, 10) ctx.fillStyle = cor[7108];ctx.fillRect(80,710, 10, 10) ctx.fillStyle = cor[7109];ctx.fillRect(90,710, 10, 10) ctx.fillStyle = cor[7110];ctx.fillRect(100,710, 10, 10) ctx.fillStyle = cor[7111];ctx.fillRect(110,710, 10, 10) ctx.fillStyle = cor[7112];ctx.fillRect(120,710, 10, 10) ctx.fillStyle = cor[7113];ctx.fillRect(130,710, 10, 10) ctx.fillStyle = cor[7114];ctx.fillRect(140,710, 10, 10) ctx.fillStyle = cor[7115];ctx.fillRect(150,710, 10, 10) ctx.fillStyle = cor[7116];ctx.fillRect(160,710, 10, 10) ctx.fillStyle = cor[7117];ctx.fillRect(170,710, 10, 10) ctx.fillStyle = cor[7118];ctx.fillRect(180,710, 10, 10) ctx.fillStyle = cor[7119];ctx.fillRect(190,710, 10, 10) ctx.fillStyle = cor[7120];ctx.fillRect(200,710, 10, 10) ctx.fillStyle = cor[7121];ctx.fillRect(210,710, 10, 10) ctx.fillStyle = cor[7122];ctx.fillRect(220,710, 10, 10) ctx.fillStyle = cor[7123];ctx.fillRect(230,710, 10, 10) ctx.fillStyle = cor[7124];ctx.fillRect(240,710, 10, 10) ctx.fillStyle = cor[7125];ctx.fillRect(250,710, 10, 10) ctx.fillStyle = cor[7126];ctx.fillRect(260,710, 10, 10) ctx.fillStyle = cor[7127];ctx.fillRect(270,710, 10, 10) ctx.fillStyle = cor[7128];ctx.fillRect(280,710, 10, 10) ctx.fillStyle = cor[7129];ctx.fillRect(290,710, 10, 10) ctx.fillStyle = cor[7130];ctx.fillRect(300,710, 10, 10) ctx.fillStyle = cor[7131];ctx.fillRect(310,710, 10, 10) ctx.fillStyle = cor[7132];ctx.fillRect(320,710, 10, 10) ctx.fillStyle = cor[7133];ctx.fillRect(330,710, 10, 10) ctx.fillStyle = cor[7134];ctx.fillRect(340,710, 10, 10) ctx.fillStyle = cor[7135];ctx.fillRect(350,710, 10, 10) ctx.fillStyle = cor[7136];ctx.fillRect(360,710, 10, 10) ctx.fillStyle = cor[7137];ctx.fillRect(370,710, 10, 10) ctx.fillStyle = cor[7138];ctx.fillRect(380,710, 10, 10) ctx.fillStyle = cor[7139];ctx.fillRect(390,710, 10, 10) ctx.fillStyle = cor[7140];ctx.fillRect(400,710, 10, 10) ctx.fillStyle = cor[7141];ctx.fillRect(410,710, 10, 10) ctx.fillStyle = cor[7142];ctx.fillRect(420,710, 10, 10) ctx.fillStyle = cor[7143];ctx.fillRect(430,710, 10, 10) ctx.fillStyle = cor[7144];ctx.fillRect(440,710, 10, 10) ctx.fillStyle = cor[7145];ctx.fillRect(450,710, 10, 10) ctx.fillStyle = cor[7146];ctx.fillRect(460,710, 10, 10) ctx.fillStyle = cor[7147];ctx.fillRect(470,710, 10, 10) ctx.fillStyle = cor[7148];ctx.fillRect(480,710, 10, 10) ctx.fillStyle = cor[7149];ctx.fillRect(490,710, 10, 10) ctx.fillStyle = cor[7150];ctx.fillRect(500,710, 10, 10) ctx.fillStyle = cor[7151];ctx.fillRect(510,710, 10, 10) ctx.fillStyle = cor[7152];ctx.fillRect(520,710, 10, 10) ctx.fillStyle = cor[7153];ctx.fillRect(530,710, 10, 10) ctx.fillStyle = cor[7154];ctx.fillRect(540,710, 10, 10) ctx.fillStyle = cor[7155];ctx.fillRect(550,710, 10, 10) ctx.fillStyle = cor[7156];ctx.fillRect(560,710, 10, 10) ctx.fillStyle = cor[7157];ctx.fillRect(570,710, 10, 10) ctx.fillStyle = cor[7158];ctx.fillRect(580,710, 10, 10) ctx.fillStyle = cor[7159];ctx.fillRect(590,710, 10, 10) ctx.fillStyle = cor[7160];ctx.fillRect(600,710, 10, 10) ctx.fillStyle = cor[7161];ctx.fillRect(610,710, 10, 10) ctx.fillStyle = cor[7162];ctx.fillRect(620,710, 10, 10) ctx.fillStyle = cor[7163];ctx.fillRect(630,710, 10, 10) ctx.fillStyle = cor[7164];ctx.fillRect(640,710, 10, 10) ctx.fillStyle = cor[7165];ctx.fillRect(650,710, 10, 10) ctx.fillStyle = cor[7166];ctx.fillRect(660,710, 10, 10) ctx.fillStyle = cor[7167];ctx.fillRect(670,710, 10, 10) ctx.fillStyle = cor[7168];ctx.fillRect(680,710, 10, 10) ctx.fillStyle = cor[7169];ctx.fillRect(690,710, 10, 10) ctx.fillStyle = cor[7170];ctx.fillRect(700,710, 10, 10) ctx.fillStyle = cor[7171];ctx.fillRect(710,710, 10, 10) ctx.fillStyle = cor[7172];ctx.fillRect(720,710, 10, 10) ctx.fillStyle = cor[7173];ctx.fillRect(730,710, 10, 10) ctx.fillStyle = cor[7174];ctx.fillRect(740,710, 10, 10) ctx.fillStyle = cor[7175];ctx.fillRect(750,710, 10, 10) ctx.fillStyle = cor[7176];ctx.fillRect(760,710, 10, 10) ctx.fillStyle = cor[7177];ctx.fillRect(770,710, 10, 10) ctx.fillStyle = cor[7178];ctx.fillRect(780,710, 10, 10) ctx.fillStyle = cor[7179];ctx.fillRect(790,710, 10, 10) ctx.fillStyle = cor[7180];ctx.fillRect(800,710, 10, 10) ctx.fillStyle = cor[7181];ctx.fillRect(810,710, 10, 10) ctx.fillStyle = cor[7182];ctx.fillRect(820,710, 10, 10) ctx.fillStyle = cor[7183];ctx.fillRect(830,710, 10, 10) ctx.fillStyle = cor[7184];ctx.fillRect(840,710, 10, 10) ctx.fillStyle = cor[7185];ctx.fillRect(850,710, 10, 10) ctx.fillStyle = cor[7186];ctx.fillRect(860,710, 10, 10) ctx.fillStyle = cor[7187];ctx.fillRect(870,710, 10, 10) ctx.fillStyle = cor[7188];ctx.fillRect(880,710, 10, 10) ctx.fillStyle = cor[7189];ctx.fillRect(890,710, 10, 10) ctx.fillStyle = cor[7190];ctx.fillRect(900,710, 10, 10) ctx.fillStyle = cor[7191];ctx.fillRect(910,710, 10, 10) ctx.fillStyle = cor[7192];ctx.fillRect(920,710, 10, 10) ctx.fillStyle = cor[7193];ctx.fillRect(930,710, 10, 10) ctx.fillStyle = cor[7194];ctx.fillRect(940,710, 10, 10) ctx.fillStyle = cor[7195];ctx.fillRect(950,710, 10, 10) ctx.fillStyle = cor[7196];ctx.fillRect(960,710, 10, 10) ctx.fillStyle = cor[7197];ctx.fillRect(970,710, 10, 10) ctx.fillStyle = cor[7198];ctx.fillRect(980,710, 10, 10) ctx.fillStyle = cor[7199];ctx.fillRect(990,710, 10, 10) ctx.fillStyle = cor[7200];ctx.fillRect(0,720, 10, 10) ctx.fillStyle = cor[7201];ctx.fillRect(10,720, 10, 10) ctx.fillStyle = cor[7202];ctx.fillRect(20,720, 10, 10) ctx.fillStyle = cor[7203];ctx.fillRect(30,720, 10, 10) ctx.fillStyle = cor[7204];ctx.fillRect(40,720, 10, 10) ctx.fillStyle = cor[7205];ctx.fillRect(50,720, 10, 10) ctx.fillStyle = cor[7206];ctx.fillRect(60,720, 10, 10) ctx.fillStyle = cor[7207];ctx.fillRect(70,720, 10, 10) ctx.fillStyle = cor[7208];ctx.fillRect(80,720, 10, 10) ctx.fillStyle = cor[7209];ctx.fillRect(90,720, 10, 10) ctx.fillStyle = cor[7210];ctx.fillRect(100,720, 10, 10) ctx.fillStyle = cor[7211];ctx.fillRect(110,720, 10, 10) ctx.fillStyle = cor[7212];ctx.fillRect(120,720, 10, 10) ctx.fillStyle = cor[7213];ctx.fillRect(130,720, 10, 10) ctx.fillStyle = cor[7214];ctx.fillRect(140,720, 10, 10) ctx.fillStyle = cor[7215];ctx.fillRect(150,720, 10, 10) ctx.fillStyle = cor[7216];ctx.fillRect(160,720, 10, 10) ctx.fillStyle = cor[7217];ctx.fillRect(170,720, 10, 10) ctx.fillStyle = cor[7218];ctx.fillRect(180,720, 10, 10) ctx.fillStyle = cor[7219];ctx.fillRect(190,720, 10, 10) ctx.fillStyle = cor[7220];ctx.fillRect(200,720, 10, 10) ctx.fillStyle = cor[7221];ctx.fillRect(210,720, 10, 10) ctx.fillStyle = cor[7222];ctx.fillRect(220,720, 10, 10) ctx.fillStyle = cor[7223];ctx.fillRect(230,720, 10, 10) ctx.fillStyle = cor[7224];ctx.fillRect(240,720, 10, 10) ctx.fillStyle = cor[7225];ctx.fillRect(250,720, 10, 10) ctx.fillStyle = cor[7226];ctx.fillRect(260,720, 10, 10) ctx.fillStyle = cor[7227];ctx.fillRect(270,720, 10, 10) ctx.fillStyle = cor[7228];ctx.fillRect(280,720, 10, 10) ctx.fillStyle = cor[7229];ctx.fillRect(290,720, 10, 10) ctx.fillStyle = cor[7230];ctx.fillRect(300,720, 10, 10) ctx.fillStyle = cor[7231];ctx.fillRect(310,720, 10, 10) ctx.fillStyle = cor[7232];ctx.fillRect(320,720, 10, 10) ctx.fillStyle = cor[7233];ctx.fillRect(330,720, 10, 10) ctx.fillStyle = cor[7234];ctx.fillRect(340,720, 10, 10) ctx.fillStyle = cor[7235];ctx.fillRect(350,720, 10, 10) ctx.fillStyle = cor[7236];ctx.fillRect(360,720, 10, 10) ctx.fillStyle = cor[7237];ctx.fillRect(370,720, 10, 10) ctx.fillStyle = cor[7238];ctx.fillRect(380,720, 10, 10) ctx.fillStyle = cor[7239];ctx.fillRect(390,720, 10, 10) ctx.fillStyle = cor[7240];ctx.fillRect(400,720, 10, 10) ctx.fillStyle = cor[7241];ctx.fillRect(410,720, 10, 10) ctx.fillStyle = cor[7242];ctx.fillRect(420,720, 10, 10) ctx.fillStyle = cor[7243];ctx.fillRect(430,720, 10, 10) ctx.fillStyle = cor[7244];ctx.fillRect(440,720, 10, 10) ctx.fillStyle = cor[7245];ctx.fillRect(450,720, 10, 10) ctx.fillStyle = cor[7246];ctx.fillRect(460,720, 10, 10) ctx.fillStyle = cor[7247];ctx.fillRect(470,720, 10, 10) ctx.fillStyle = cor[7248];ctx.fillRect(480,720, 10, 10) ctx.fillStyle = cor[7249];ctx.fillRect(490,720, 10, 10) ctx.fillStyle = cor[7250];ctx.fillRect(500,720, 10, 10) ctx.fillStyle = cor[7251];ctx.fillRect(510,720, 10, 10) ctx.fillStyle = cor[7252];ctx.fillRect(520,720, 10, 10) ctx.fillStyle = cor[7253];ctx.fillRect(530,720, 10, 10) ctx.fillStyle = cor[7254];ctx.fillRect(540,720, 10, 10) ctx.fillStyle = cor[7255];ctx.fillRect(550,720, 10, 10) ctx.fillStyle = cor[7256];ctx.fillRect(560,720, 10, 10) ctx.fillStyle = cor[7257];ctx.fillRect(570,720, 10, 10) ctx.fillStyle = cor[7258];ctx.fillRect(580,720, 10, 10) ctx.fillStyle = cor[7259];ctx.fillRect(590,720, 10, 10) ctx.fillStyle = cor[7260];ctx.fillRect(600,720, 10, 10) ctx.fillStyle = cor[7261];ctx.fillRect(610,720, 10, 10) ctx.fillStyle = cor[7262];ctx.fillRect(620,720, 10, 10) ctx.fillStyle = cor[7263];ctx.fillRect(630,720, 10, 10) ctx.fillStyle = cor[7264];ctx.fillRect(640,720, 10, 10) ctx.fillStyle = cor[7265];ctx.fillRect(650,720, 10, 10) ctx.fillStyle = cor[7266];ctx.fillRect(660,720, 10, 10) ctx.fillStyle = cor[7267];ctx.fillRect(670,720, 10, 10) ctx.fillStyle = cor[7268];ctx.fillRect(680,720, 10, 10) ctx.fillStyle = cor[7269];ctx.fillRect(690,720, 10, 10) ctx.fillStyle = cor[7270];ctx.fillRect(700,720, 10, 10) ctx.fillStyle = cor[7271];ctx.fillRect(710,720, 10, 10) ctx.fillStyle = cor[7272];ctx.fillRect(720,720, 10, 10) ctx.fillStyle = cor[7273];ctx.fillRect(730,720, 10, 10) ctx.fillStyle = cor[7274];ctx.fillRect(740,720, 10, 10) ctx.fillStyle = cor[7275];ctx.fillRect(750,720, 10, 10) ctx.fillStyle = cor[7276];ctx.fillRect(760,720, 10, 10) ctx.fillStyle = cor[7277];ctx.fillRect(770,720, 10, 10) ctx.fillStyle = cor[7278];ctx.fillRect(780,720, 10, 10) ctx.fillStyle = cor[7279];ctx.fillRect(790,720, 10, 10) ctx.fillStyle = cor[7280];ctx.fillRect(800,720, 10, 10) ctx.fillStyle = cor[7281];ctx.fillRect(810,720, 10, 10) ctx.fillStyle = cor[7282];ctx.fillRect(820,720, 10, 10) ctx.fillStyle = cor[7283];ctx.fillRect(830,720, 10, 10) ctx.fillStyle = cor[7284];ctx.fillRect(840,720, 10, 10) ctx.fillStyle = cor[7285];ctx.fillRect(850,720, 10, 10) ctx.fillStyle = cor[7286];ctx.fillRect(860,720, 10, 10) ctx.fillStyle = cor[7287];ctx.fillRect(870,720, 10, 10) ctx.fillStyle = cor[7288];ctx.fillRect(880,720, 10, 10) ctx.fillStyle = cor[7289];ctx.fillRect(890,720, 10, 10) ctx.fillStyle = cor[7290];ctx.fillRect(900,720, 10, 10) ctx.fillStyle = cor[7291];ctx.fillRect(910,720, 10, 10) ctx.fillStyle = cor[7292];ctx.fillRect(920,720, 10, 10) ctx.fillStyle = cor[7293];ctx.fillRect(930,720, 10, 10) ctx.fillStyle = cor[7294];ctx.fillRect(940,720, 10, 10) ctx.fillStyle = cor[7295];ctx.fillRect(950,720, 10, 10) ctx.fillStyle = cor[7296];ctx.fillRect(960,720, 10, 10) ctx.fillStyle = cor[7297];ctx.fillRect(970,720, 10, 10) ctx.fillStyle = cor[7298];ctx.fillRect(980,720, 10, 10) ctx.fillStyle = cor[7299];ctx.fillRect(990,720, 10, 10) ctx.fillStyle = cor[7300];ctx.fillRect(0,730, 10, 10) ctx.fillStyle = cor[7301];ctx.fillRect(10,730, 10, 10) ctx.fillStyle = cor[7302];ctx.fillRect(20,730, 10, 10) ctx.fillStyle = cor[7303];ctx.fillRect(30,730, 10, 10) ctx.fillStyle = cor[7304];ctx.fillRect(40,730, 10, 10) ctx.fillStyle = cor[7305];ctx.fillRect(50,730, 10, 10) ctx.fillStyle = cor[7306];ctx.fillRect(60,730, 10, 10) ctx.fillStyle = cor[7307];ctx.fillRect(70,730, 10, 10) ctx.fillStyle = cor[7308];ctx.fillRect(80,730, 10, 10) ctx.fillStyle = cor[7309];ctx.fillRect(90,730, 10, 10) ctx.fillStyle = cor[7310];ctx.fillRect(100,730, 10, 10) ctx.fillStyle = cor[7311];ctx.fillRect(110,730, 10, 10) ctx.fillStyle = cor[7312];ctx.fillRect(120,730, 10, 10) ctx.fillStyle = cor[7313];ctx.fillRect(130,730, 10, 10) ctx.fillStyle = cor[7314];ctx.fillRect(140,730, 10, 10) ctx.fillStyle = cor[7315];ctx.fillRect(150,730, 10, 10) ctx.fillStyle = cor[7316];ctx.fillRect(160,730, 10, 10) ctx.fillStyle = cor[7317];ctx.fillRect(170,730, 10, 10) ctx.fillStyle = cor[7318];ctx.fillRect(180,730, 10, 10) ctx.fillStyle = cor[7319];ctx.fillRect(190,730, 10, 10) ctx.fillStyle = cor[7320];ctx.fillRect(200,730, 10, 10) ctx.fillStyle = cor[7321];ctx.fillRect(210,730, 10, 10) ctx.fillStyle = cor[7322];ctx.fillRect(220,730, 10, 10) ctx.fillStyle = cor[7323];ctx.fillRect(230,730, 10, 10) ctx.fillStyle = cor[7324];ctx.fillRect(240,730, 10, 10) ctx.fillStyle = cor[7325];ctx.fillRect(250,730, 10, 10) ctx.fillStyle = cor[7326];ctx.fillRect(260,730, 10, 10) ctx.fillStyle = cor[7327];ctx.fillRect(270,730, 10, 10) ctx.fillStyle = cor[7328];ctx.fillRect(280,730, 10, 10) ctx.fillStyle = cor[7329];ctx.fillRect(290,730, 10, 10) ctx.fillStyle = cor[7330];ctx.fillRect(300,730, 10, 10) ctx.fillStyle = cor[7331];ctx.fillRect(310,730, 10, 10) ctx.fillStyle = cor[7332];ctx.fillRect(320,730, 10, 10) ctx.fillStyle = cor[7333];ctx.fillRect(330,730, 10, 10) ctx.fillStyle = cor[7334];ctx.fillRect(340,730, 10, 10) ctx.fillStyle = cor[7335];ctx.fillRect(350,730, 10, 10) ctx.fillStyle = cor[7336];ctx.fillRect(360,730, 10, 10) ctx.fillStyle = cor[7337];ctx.fillRect(370,730, 10, 10) ctx.fillStyle = cor[7338];ctx.fillRect(380,730, 10, 10) ctx.fillStyle = cor[7339];ctx.fillRect(390,730, 10, 10) ctx.fillStyle = cor[7340];ctx.fillRect(400,730, 10, 10) ctx.fillStyle = cor[7341];ctx.fillRect(410,730, 10, 10) ctx.fillStyle = cor[7342];ctx.fillRect(420,730, 10, 10) ctx.fillStyle = cor[7343];ctx.fillRect(430,730, 10, 10) ctx.fillStyle = cor[7344];ctx.fillRect(440,730, 10, 10) ctx.fillStyle = cor[7345];ctx.fillRect(450,730, 10, 10) ctx.fillStyle = cor[7346];ctx.fillRect(460,730, 10, 10) ctx.fillStyle = cor[7347];ctx.fillRect(470,730, 10, 10) ctx.fillStyle = cor[7348];ctx.fillRect(480,730, 10, 10) ctx.fillStyle = cor[7349];ctx.fillRect(490,730, 10, 10) ctx.fillStyle = cor[7350];ctx.fillRect(500,730, 10, 10) ctx.fillStyle = cor[7351];ctx.fillRect(510,730, 10, 10) ctx.fillStyle = cor[7352];ctx.fillRect(520,730, 10, 10) ctx.fillStyle = cor[7353];ctx.fillRect(530,730, 10, 10) ctx.fillStyle = cor[7354];ctx.fillRect(540,730, 10, 10) ctx.fillStyle = cor[7355];ctx.fillRect(550,730, 10, 10) ctx.fillStyle = cor[7356];ctx.fillRect(560,730, 10, 10) ctx.fillStyle = cor[7357];ctx.fillRect(570,730, 10, 10) ctx.fillStyle = cor[7358];ctx.fillRect(580,730, 10, 10) ctx.fillStyle = cor[7359];ctx.fillRect(590,730, 10, 10) ctx.fillStyle = cor[7360];ctx.fillRect(600,730, 10, 10) ctx.fillStyle = cor[7361];ctx.fillRect(610,730, 10, 10) ctx.fillStyle = cor[7362];ctx.fillRect(620,730, 10, 10) ctx.fillStyle = cor[7363];ctx.fillRect(630,730, 10, 10) ctx.fillStyle = cor[7364];ctx.fillRect(640,730, 10, 10) ctx.fillStyle = cor[7365];ctx.fillRect(650,730, 10, 10) ctx.fillStyle = cor[7366];ctx.fillRect(660,730, 10, 10) ctx.fillStyle = cor[7367];ctx.fillRect(670,730, 10, 10) ctx.fillStyle = cor[7368];ctx.fillRect(680,730, 10, 10) ctx.fillStyle = cor[7369];ctx.fillRect(690,730, 10, 10) ctx.fillStyle = cor[7370];ctx.fillRect(700,730, 10, 10) ctx.fillStyle = cor[7371];ctx.fillRect(710,730, 10, 10) ctx.fillStyle = cor[7372];ctx.fillRect(720,730, 10, 10) ctx.fillStyle = cor[7373];ctx.fillRect(730,730, 10, 10) ctx.fillStyle = cor[7374];ctx.fillRect(740,730, 10, 10) ctx.fillStyle = cor[7375];ctx.fillRect(750,730, 10, 10) ctx.fillStyle = cor[7376];ctx.fillRect(760,730, 10, 10) ctx.fillStyle = cor[7377];ctx.fillRect(770,730, 10, 10) ctx.fillStyle = cor[7378];ctx.fillRect(780,730, 10, 10) ctx.fillStyle = cor[7379];ctx.fillRect(790,730, 10, 10) ctx.fillStyle = cor[7380];ctx.fillRect(800,730, 10, 10) ctx.fillStyle = cor[7381];ctx.fillRect(810,730, 10, 10) ctx.fillStyle = cor[7382];ctx.fillRect(820,730, 10, 10) ctx.fillStyle = cor[7383];ctx.fillRect(830,730, 10, 10) ctx.fillStyle = cor[7384];ctx.fillRect(840,730, 10, 10) ctx.fillStyle = cor[7385];ctx.fillRect(850,730, 10, 10) ctx.fillStyle = cor[7386];ctx.fillRect(860,730, 10, 10) ctx.fillStyle = cor[7387];ctx.fillRect(870,730, 10, 10) ctx.fillStyle = cor[7388];ctx.fillRect(880,730, 10, 10) ctx.fillStyle = cor[7389];ctx.fillRect(890,730, 10, 10) ctx.fillStyle = cor[7390];ctx.fillRect(900,730, 10, 10) ctx.fillStyle = cor[7391];ctx.fillRect(910,730, 10, 10) ctx.fillStyle = cor[7392];ctx.fillRect(920,730, 10, 10) ctx.fillStyle = cor[7393];ctx.fillRect(930,730, 10, 10) ctx.fillStyle = cor[7394];ctx.fillRect(940,730, 10, 10) ctx.fillStyle = cor[7395];ctx.fillRect(950,730, 10, 10) ctx.fillStyle = cor[7396];ctx.fillRect(960,730, 10, 10) ctx.fillStyle = cor[7397];ctx.fillRect(970,730, 10, 10) ctx.fillStyle = cor[7398];ctx.fillRect(980,730, 10, 10) ctx.fillStyle = cor[7399];ctx.fillRect(990,730, 10, 10) ctx.fillStyle = cor[7400];ctx.fillRect(0,740, 10, 10) ctx.fillStyle = cor[7401];ctx.fillRect(10,740, 10, 10) ctx.fillStyle = cor[7402];ctx.fillRect(20,740, 10, 10) ctx.fillStyle = cor[7403];ctx.fillRect(30,740, 10, 10) ctx.fillStyle = cor[7404];ctx.fillRect(40,740, 10, 10) ctx.fillStyle = cor[7405];ctx.fillRect(50,740, 10, 10) ctx.fillStyle = cor[7406];ctx.fillRect(60,740, 10, 10) ctx.fillStyle = cor[7407];ctx.fillRect(70,740, 10, 10) ctx.fillStyle = cor[7408];ctx.fillRect(80,740, 10, 10) ctx.fillStyle = cor[7409];ctx.fillRect(90,740, 10, 10) ctx.fillStyle = cor[7410];ctx.fillRect(100,740, 10, 10) ctx.fillStyle = cor[7411];ctx.fillRect(110,740, 10, 10) ctx.fillStyle = cor[7412];ctx.fillRect(120,740, 10, 10) ctx.fillStyle = cor[7413];ctx.fillRect(130,740, 10, 10) ctx.fillStyle = cor[7414];ctx.fillRect(140,740, 10, 10) ctx.fillStyle = cor[7415];ctx.fillRect(150,740, 10, 10) ctx.fillStyle = cor[7416];ctx.fillRect(160,740, 10, 10) ctx.fillStyle = cor[7417];ctx.fillRect(170,740, 10, 10) ctx.fillStyle = cor[7418];ctx.fillRect(180,740, 10, 10) ctx.fillStyle = cor[7419];ctx.fillRect(190,740, 10, 10) ctx.fillStyle = cor[7420];ctx.fillRect(200,740, 10, 10) ctx.fillStyle = cor[7421];ctx.fillRect(210,740, 10, 10) ctx.fillStyle = cor[7422];ctx.fillRect(220,740, 10, 10) ctx.fillStyle = cor[7423];ctx.fillRect(230,740, 10, 10) ctx.fillStyle = cor[7424];ctx.fillRect(240,740, 10, 10) ctx.fillStyle = cor[7425];ctx.fillRect(250,740, 10, 10) ctx.fillStyle = cor[7426];ctx.fillRect(260,740, 10, 10) ctx.fillStyle = cor[7427];ctx.fillRect(270,740, 10, 10) ctx.fillStyle = cor[7428];ctx.fillRect(280,740, 10, 10) ctx.fillStyle = cor[7429];ctx.fillRect(290,740, 10, 10) ctx.fillStyle = cor[7430];ctx.fillRect(300,740, 10, 10) ctx.fillStyle = cor[7431];ctx.fillRect(310,740, 10, 10) ctx.fillStyle = cor[7432];ctx.fillRect(320,740, 10, 10) ctx.fillStyle = cor[7433];ctx.fillRect(330,740, 10, 10) ctx.fillStyle = cor[7434];ctx.fillRect(340,740, 10, 10) ctx.fillStyle = cor[7435];ctx.fillRect(350,740, 10, 10) ctx.fillStyle = cor[7436];ctx.fillRect(360,740, 10, 10) ctx.fillStyle = cor[7437];ctx.fillRect(370,740, 10, 10) ctx.fillStyle = cor[7438];ctx.fillRect(380,740, 10, 10) ctx.fillStyle = cor[7439];ctx.fillRect(390,740, 10, 10) ctx.fillStyle = cor[7440];ctx.fillRect(400,740, 10, 10) ctx.fillStyle = cor[7441];ctx.fillRect(410,740, 10, 10) ctx.fillStyle = cor[7442];ctx.fillRect(420,740, 10, 10) ctx.fillStyle = cor[7443];ctx.fillRect(430,740, 10, 10) ctx.fillStyle = cor[7444];ctx.fillRect(440,740, 10, 10) ctx.fillStyle = cor[7445];ctx.fillRect(450,740, 10, 10) ctx.fillStyle = cor[7446];ctx.fillRect(460,740, 10, 10) ctx.fillStyle = cor[7447];ctx.fillRect(470,740, 10, 10) ctx.fillStyle = cor[7448];ctx.fillRect(480,740, 10, 10) ctx.fillStyle = cor[7449];ctx.fillRect(490,740, 10, 10) ctx.fillStyle = cor[7450];ctx.fillRect(500,740, 10, 10) ctx.fillStyle = cor[7451];ctx.fillRect(510,740, 10, 10) ctx.fillStyle = cor[7452];ctx.fillRect(520,740, 10, 10) ctx.fillStyle = cor[7453];ctx.fillRect(530,740, 10, 10) ctx.fillStyle = cor[7454];ctx.fillRect(540,740, 10, 10) ctx.fillStyle = cor[7455];ctx.fillRect(550,740, 10, 10) ctx.fillStyle = cor[7456];ctx.fillRect(560,740, 10, 10) ctx.fillStyle = cor[7457];ctx.fillRect(570,740, 10, 10) ctx.fillStyle = cor[7458];ctx.fillRect(580,740, 10, 10) ctx.fillStyle = cor[7459];ctx.fillRect(590,740, 10, 10) ctx.fillStyle = cor[7460];ctx.fillRect(600,740, 10, 10) ctx.fillStyle = cor[7461];ctx.fillRect(610,740, 10, 10) ctx.fillStyle = cor[7462];ctx.fillRect(620,740, 10, 10) ctx.fillStyle = cor[7463];ctx.fillRect(630,740, 10, 10) ctx.fillStyle = cor[7464];ctx.fillRect(640,740, 10, 10) ctx.fillStyle = cor[7465];ctx.fillRect(650,740, 10, 10) ctx.fillStyle = cor[7466];ctx.fillRect(660,740, 10, 10) ctx.fillStyle = cor[7467];ctx.fillRect(670,740, 10, 10) ctx.fillStyle = cor[7468];ctx.fillRect(680,740, 10, 10) ctx.fillStyle = cor[7469];ctx.fillRect(690,740, 10, 10) ctx.fillStyle = cor[7470];ctx.fillRect(700,740, 10, 10) ctx.fillStyle = cor[7471];ctx.fillRect(710,740, 10, 10) ctx.fillStyle = cor[7472];ctx.fillRect(720,740, 10, 10) ctx.fillStyle = cor[7473];ctx.fillRect(730,740, 10, 10) ctx.fillStyle = cor[7474];ctx.fillRect(740,740, 10, 10) ctx.fillStyle = cor[7475];ctx.fillRect(750,740, 10, 10) ctx.fillStyle = cor[7476];ctx.fillRect(760,740, 10, 10) ctx.fillStyle = cor[7477];ctx.fillRect(770,740, 10, 10) ctx.fillStyle = cor[7478];ctx.fillRect(780,740, 10, 10) ctx.fillStyle = cor[7479];ctx.fillRect(790,740, 10, 10) ctx.fillStyle = cor[7480];ctx.fillRect(800,740, 10, 10) ctx.fillStyle = cor[7481];ctx.fillRect(810,740, 10, 10) ctx.fillStyle = cor[7482];ctx.fillRect(820,740, 10, 10) ctx.fillStyle = cor[7483];ctx.fillRect(830,740, 10, 10) ctx.fillStyle = cor[7484];ctx.fillRect(840,740, 10, 10) ctx.fillStyle = cor[7485];ctx.fillRect(850,740, 10, 10) ctx.fillStyle = cor[7486];ctx.fillRect(860,740, 10, 10) ctx.fillStyle = cor[7487];ctx.fillRect(870,740, 10, 10) ctx.fillStyle = cor[7488];ctx.fillRect(880,740, 10, 10) ctx.fillStyle = cor[7489];ctx.fillRect(890,740, 10, 10) ctx.fillStyle = cor[7490];ctx.fillRect(900,740, 10, 10) ctx.fillStyle = cor[7491];ctx.fillRect(910,740, 10, 10) ctx.fillStyle = cor[7492];ctx.fillRect(920,740, 10, 10) ctx.fillStyle = cor[7493];ctx.fillRect(930,740, 10, 10) ctx.fillStyle = cor[7494];ctx.fillRect(940,740, 10, 10) ctx.fillStyle = cor[7495];ctx.fillRect(950,740, 10, 10) ctx.fillStyle = cor[7496];ctx.fillRect(960,740, 10, 10) ctx.fillStyle = cor[7497];ctx.fillRect(970,740, 10, 10) ctx.fillStyle = cor[7498];ctx.fillRect(980,740, 10, 10) ctx.fillStyle = cor[7499];ctx.fillRect(990,740, 10, 10) ctx.fillStyle = cor[7500];ctx.fillRect(0,750, 10, 10) ctx.fillStyle = cor[7501];ctx.fillRect(10,750, 10, 10) ctx.fillStyle = cor[7502];ctx.fillRect(20,750, 10, 10) ctx.fillStyle = cor[7503];ctx.fillRect(30,750, 10, 10) ctx.fillStyle = cor[7504];ctx.fillRect(40,750, 10, 10) ctx.fillStyle = cor[7505];ctx.fillRect(50,750, 10, 10) ctx.fillStyle = cor[7506];ctx.fillRect(60,750, 10, 10) ctx.fillStyle = cor[7507];ctx.fillRect(70,750, 10, 10) ctx.fillStyle = cor[7508];ctx.fillRect(80,750, 10, 10) ctx.fillStyle = cor[7509];ctx.fillRect(90,750, 10, 10) ctx.fillStyle = cor[7510];ctx.fillRect(100,750, 10, 10) ctx.fillStyle = cor[7511];ctx.fillRect(110,750, 10, 10) ctx.fillStyle = cor[7512];ctx.fillRect(120,750, 10, 10) ctx.fillStyle = cor[7513];ctx.fillRect(130,750, 10, 10) ctx.fillStyle = cor[7514];ctx.fillRect(140,750, 10, 10) ctx.fillStyle = cor[7515];ctx.fillRect(150,750, 10, 10) ctx.fillStyle = cor[7516];ctx.fillRect(160,750, 10, 10) ctx.fillStyle = cor[7517];ctx.fillRect(170,750, 10, 10) ctx.fillStyle = cor[7518];ctx.fillRect(180,750, 10, 10) ctx.fillStyle = cor[7519];ctx.fillRect(190,750, 10, 10) ctx.fillStyle = cor[7520];ctx.fillRect(200,750, 10, 10) ctx.fillStyle = cor[7521];ctx.fillRect(210,750, 10, 10) ctx.fillStyle = cor[7522];ctx.fillRect(220,750, 10, 10) ctx.fillStyle = cor[7523];ctx.fillRect(230,750, 10, 10) ctx.fillStyle = cor[7524];ctx.fillRect(240,750, 10, 10) ctx.fillStyle = cor[7525];ctx.fillRect(250,750, 10, 10) ctx.fillStyle = cor[7526];ctx.fillRect(260,750, 10, 10) ctx.fillStyle = cor[7527];ctx.fillRect(270,750, 10, 10) ctx.fillStyle = cor[7528];ctx.fillRect(280,750, 10, 10) ctx.fillStyle = cor[7529];ctx.fillRect(290,750, 10, 10) ctx.fillStyle = cor[7530];ctx.fillRect(300,750, 10, 10) ctx.fillStyle = cor[7531];ctx.fillRect(310,750, 10, 10) ctx.fillStyle = cor[7532];ctx.fillRect(320,750, 10, 10) ctx.fillStyle = cor[7533];ctx.fillRect(330,750, 10, 10) ctx.fillStyle = cor[7534];ctx.fillRect(340,750, 10, 10) ctx.fillStyle = cor[7535];ctx.fillRect(350,750, 10, 10) ctx.fillStyle = cor[7536];ctx.fillRect(360,750, 10, 10) ctx.fillStyle = cor[7537];ctx.fillRect(370,750, 10, 10) ctx.fillStyle = cor[7538];ctx.fillRect(380,750, 10, 10) ctx.fillStyle = cor[7539];ctx.fillRect(390,750, 10, 10) ctx.fillStyle = cor[7540];ctx.fillRect(400,750, 10, 10) ctx.fillStyle = cor[7541];ctx.fillRect(410,750, 10, 10) ctx.fillStyle = cor[7542];ctx.fillRect(420,750, 10, 10) ctx.fillStyle = cor[7543];ctx.fillRect(430,750, 10, 10) ctx.fillStyle = cor[7544];ctx.fillRect(440,750, 10, 10) ctx.fillStyle = cor[7545];ctx.fillRect(450,750, 10, 10) ctx.fillStyle = cor[7546];ctx.fillRect(460,750, 10, 10) ctx.fillStyle = cor[7547];ctx.fillRect(470,750, 10, 10) ctx.fillStyle = cor[7548];ctx.fillRect(480,750, 10, 10) ctx.fillStyle = cor[7549];ctx.fillRect(490,750, 10, 10) ctx.fillStyle = cor[7550];ctx.fillRect(500,750, 10, 10) ctx.fillStyle = cor[7551];ctx.fillRect(510,750, 10, 10) ctx.fillStyle = cor[7552];ctx.fillRect(520,750, 10, 10) ctx.fillStyle = cor[7553];ctx.fillRect(530,750, 10, 10) ctx.fillStyle = cor[7554];ctx.fillRect(540,750, 10, 10) ctx.fillStyle = cor[7555];ctx.fillRect(550,750, 10, 10) ctx.fillStyle = cor[7556];ctx.fillRect(560,750, 10, 10) ctx.fillStyle = cor[7557];ctx.fillRect(570,750, 10, 10) ctx.fillStyle = cor[7558];ctx.fillRect(580,750, 10, 10) ctx.fillStyle = cor[7559];ctx.fillRect(590,750, 10, 10) ctx.fillStyle = cor[7560];ctx.fillRect(600,750, 10, 10) ctx.fillStyle = cor[7561];ctx.fillRect(610,750, 10, 10) ctx.fillStyle = cor[7562];ctx.fillRect(620,750, 10, 10) ctx.fillStyle = cor[7563];ctx.fillRect(630,750, 10, 10) ctx.fillStyle = cor[7564];ctx.fillRect(640,750, 10, 10) ctx.fillStyle = cor[7565];ctx.fillRect(650,750, 10, 10) ctx.fillStyle = cor[7566];ctx.fillRect(660,750, 10, 10) ctx.fillStyle = cor[7567];ctx.fillRect(670,750, 10, 10) ctx.fillStyle = cor[7568];ctx.fillRect(680,750, 10, 10) ctx.fillStyle = cor[7569];ctx.fillRect(690,750, 10, 10) ctx.fillStyle = cor[7570];ctx.fillRect(700,750, 10, 10) ctx.fillStyle = cor[7571];ctx.fillRect(710,750, 10, 10) ctx.fillStyle = cor[7572];ctx.fillRect(720,750, 10, 10) ctx.fillStyle = cor[7573];ctx.fillRect(730,750, 10, 10) ctx.fillStyle = cor[7574];ctx.fillRect(740,750, 10, 10) ctx.fillStyle = cor[7575];ctx.fillRect(750,750, 10, 10) ctx.fillStyle = cor[7576];ctx.fillRect(760,750, 10, 10) ctx.fillStyle = cor[7577];ctx.fillRect(770,750, 10, 10) ctx.fillStyle = cor[7578];ctx.fillRect(780,750, 10, 10) ctx.fillStyle = cor[7579];ctx.fillRect(790,750, 10, 10) ctx.fillStyle = cor[7580];ctx.fillRect(800,750, 10, 10) ctx.fillStyle = cor[7581];ctx.fillRect(810,750, 10, 10) ctx.fillStyle = cor[7582];ctx.fillRect(820,750, 10, 10) ctx.fillStyle = cor[7583];ctx.fillRect(830,750, 10, 10) ctx.fillStyle = cor[7584];ctx.fillRect(840,750, 10, 10) ctx.fillStyle = cor[7585];ctx.fillRect(850,750, 10, 10) ctx.fillStyle = cor[7586];ctx.fillRect(860,750, 10, 10) ctx.fillStyle = cor[7587];ctx.fillRect(870,750, 10, 10) ctx.fillStyle = cor[7588];ctx.fillRect(880,750, 10, 10) ctx.fillStyle = cor[7589];ctx.fillRect(890,750, 10, 10) ctx.fillStyle = cor[7590];ctx.fillRect(900,750, 10, 10) ctx.fillStyle = cor[7591];ctx.fillRect(910,750, 10, 10) ctx.fillStyle = cor[7592];ctx.fillRect(920,750, 10, 10) ctx.fillStyle = cor[7593];ctx.fillRect(930,750, 10, 10) ctx.fillStyle = cor[7594];ctx.fillRect(940,750, 10, 10) ctx.fillStyle = cor[7595];ctx.fillRect(950,750, 10, 10) ctx.fillStyle = cor[7596];ctx.fillRect(960,750, 10, 10) ctx.fillStyle = cor[7597];ctx.fillRect(970,750, 10, 10) ctx.fillStyle = cor[7598];ctx.fillRect(980,750, 10, 10) ctx.fillStyle = cor[7599];ctx.fillRect(990,750, 10, 10) ctx.fillStyle = cor[7600];ctx.fillRect(0,760, 10, 10) ctx.fillStyle = cor[7601];ctx.fillRect(10,760, 10, 10) ctx.fillStyle = cor[7602];ctx.fillRect(20,760, 10, 10) ctx.fillStyle = cor[7603];ctx.fillRect(30,760, 10, 10) ctx.fillStyle = cor[7604];ctx.fillRect(40,760, 10, 10) ctx.fillStyle = cor[7605];ctx.fillRect(50,760, 10, 10) ctx.fillStyle = cor[7606];ctx.fillRect(60,760, 10, 10) ctx.fillStyle = cor[7607];ctx.fillRect(70,760, 10, 10) ctx.fillStyle = cor[7608];ctx.fillRect(80,760, 10, 10) ctx.fillStyle = cor[7609];ctx.fillRect(90,760, 10, 10) ctx.fillStyle = cor[7610];ctx.fillRect(100,760, 10, 10) ctx.fillStyle = cor[7611];ctx.fillRect(110,760, 10, 10) ctx.fillStyle = cor[7612];ctx.fillRect(120,760, 10, 10) ctx.fillStyle = cor[7613];ctx.fillRect(130,760, 10, 10) ctx.fillStyle = cor[7614];ctx.fillRect(140,760, 10, 10) ctx.fillStyle = cor[7615];ctx.fillRect(150,760, 10, 10) ctx.fillStyle = cor[7616];ctx.fillRect(160,760, 10, 10) ctx.fillStyle = cor[7617];ctx.fillRect(170,760, 10, 10) ctx.fillStyle = cor[7618];ctx.fillRect(180,760, 10, 10) ctx.fillStyle = cor[7619];ctx.fillRect(190,760, 10, 10) ctx.fillStyle = cor[7620];ctx.fillRect(200,760, 10, 10) ctx.fillStyle = cor[7621];ctx.fillRect(210,760, 10, 10) ctx.fillStyle = cor[7622];ctx.fillRect(220,760, 10, 10) ctx.fillStyle = cor[7623];ctx.fillRect(230,760, 10, 10) ctx.fillStyle = cor[7624];ctx.fillRect(240,760, 10, 10) ctx.fillStyle = cor[7625];ctx.fillRect(250,760, 10, 10) ctx.fillStyle = cor[7626];ctx.fillRect(260,760, 10, 10) ctx.fillStyle = cor[7627];ctx.fillRect(270,760, 10, 10) ctx.fillStyle = cor[7628];ctx.fillRect(280,760, 10, 10) ctx.fillStyle = cor[7629];ctx.fillRect(290,760, 10, 10) ctx.fillStyle = cor[7630];ctx.fillRect(300,760, 10, 10) ctx.fillStyle = cor[7631];ctx.fillRect(310,760, 10, 10) ctx.fillStyle = cor[7632];ctx.fillRect(320,760, 10, 10) ctx.fillStyle = cor[7633];ctx.fillRect(330,760, 10, 10) ctx.fillStyle = cor[7634];ctx.fillRect(340,760, 10, 10) ctx.fillStyle = cor[7635];ctx.fillRect(350,760, 10, 10) ctx.fillStyle = cor[7636];ctx.fillRect(360,760, 10, 10) ctx.fillStyle = cor[7637];ctx.fillRect(370,760, 10, 10) ctx.fillStyle = cor[7638];ctx.fillRect(380,760, 10, 10) ctx.fillStyle = cor[7639];ctx.fillRect(390,760, 10, 10) ctx.fillStyle = cor[7640];ctx.fillRect(400,760, 10, 10) ctx.fillStyle = cor[7641];ctx.fillRect(410,760, 10, 10) ctx.fillStyle = cor[7642];ctx.fillRect(420,760, 10, 10) ctx.fillStyle = cor[7643];ctx.fillRect(430,760, 10, 10) ctx.fillStyle = cor[7644];ctx.fillRect(440,760, 10, 10) ctx.fillStyle = cor[7645];ctx.fillRect(450,760, 10, 10) ctx.fillStyle = cor[7646];ctx.fillRect(460,760, 10, 10) ctx.fillStyle = cor[7647];ctx.fillRect(470,760, 10, 10) ctx.fillStyle = cor[7648];ctx.fillRect(480,760, 10, 10) ctx.fillStyle = cor[7649];ctx.fillRect(490,760, 10, 10) ctx.fillStyle = cor[7650];ctx.fillRect(500,760, 10, 10) ctx.fillStyle = cor[7651];ctx.fillRect(510,760, 10, 10) ctx.fillStyle = cor[7652];ctx.fillRect(520,760, 10, 10) ctx.fillStyle = cor[7653];ctx.fillRect(530,760, 10, 10) ctx.fillStyle = cor[7654];ctx.fillRect(540,760, 10, 10) ctx.fillStyle = cor[7655];ctx.fillRect(550,760, 10, 10) ctx.fillStyle = cor[7656];ctx.fillRect(560,760, 10, 10) ctx.fillStyle = cor[7657];ctx.fillRect(570,760, 10, 10) ctx.fillStyle = cor[7658];ctx.fillRect(580,760, 10, 10) ctx.fillStyle = cor[7659];ctx.fillRect(590,760, 10, 10) ctx.fillStyle = cor[7660];ctx.fillRect(600,760, 10, 10) ctx.fillStyle = cor[7661];ctx.fillRect(610,760, 10, 10) ctx.fillStyle = cor[7662];ctx.fillRect(620,760, 10, 10) ctx.fillStyle = cor[7663];ctx.fillRect(630,760, 10, 10) ctx.fillStyle = cor[7664];ctx.fillRect(640,760, 10, 10) ctx.fillStyle = cor[7665];ctx.fillRect(650,760, 10, 10) ctx.fillStyle = cor[7666];ctx.fillRect(660,760, 10, 10) ctx.fillStyle = cor[7667];ctx.fillRect(670,760, 10, 10) ctx.fillStyle = cor[7668];ctx.fillRect(680,760, 10, 10) ctx.fillStyle = cor[7669];ctx.fillRect(690,760, 10, 10) ctx.fillStyle = cor[7670];ctx.fillRect(700,760, 10, 10) ctx.fillStyle = cor[7671];ctx.fillRect(710,760, 10, 10) ctx.fillStyle = cor[7672];ctx.fillRect(720,760, 10, 10) ctx.fillStyle = cor[7673];ctx.fillRect(730,760, 10, 10) ctx.fillStyle = cor[7674];ctx.fillRect(740,760, 10, 10) ctx.fillStyle = cor[7675];ctx.fillRect(750,760, 10, 10) ctx.fillStyle = cor[7676];ctx.fillRect(760,760, 10, 10) ctx.fillStyle = cor[7677];ctx.fillRect(770,760, 10, 10) ctx.fillStyle = cor[7678];ctx.fillRect(780,760, 10, 10) ctx.fillStyle = cor[7679];ctx.fillRect(790,760, 10, 10) ctx.fillStyle = cor[7680];ctx.fillRect(800,760, 10, 10) ctx.fillStyle = cor[7681];ctx.fillRect(810,760, 10, 10) ctx.fillStyle = cor[7682];ctx.fillRect(820,760, 10, 10) ctx.fillStyle = cor[7683];ctx.fillRect(830,760, 10, 10) ctx.fillStyle = cor[7684];ctx.fillRect(840,760, 10, 10) ctx.fillStyle = cor[7685];ctx.fillRect(850,760, 10, 10) ctx.fillStyle = cor[7686];ctx.fillRect(860,760, 10, 10) ctx.fillStyle = cor[7687];ctx.fillRect(870,760, 10, 10) ctx.fillStyle = cor[7688];ctx.fillRect(880,760, 10, 10) ctx.fillStyle = cor[7689];ctx.fillRect(890,760, 10, 10) ctx.fillStyle = cor[7690];ctx.fillRect(900,760, 10, 10) ctx.fillStyle = cor[7691];ctx.fillRect(910,760, 10, 10) ctx.fillStyle = cor[7692];ctx.fillRect(920,760, 10, 10) ctx.fillStyle = cor[7693];ctx.fillRect(930,760, 10, 10) ctx.fillStyle = cor[7694];ctx.fillRect(940,760, 10, 10) ctx.fillStyle = cor[7695];ctx.fillRect(950,760, 10, 10) ctx.fillStyle = cor[7696];ctx.fillRect(960,760, 10, 10) ctx.fillStyle = cor[7697];ctx.fillRect(970,760, 10, 10) ctx.fillStyle = cor[7698];ctx.fillRect(980,760, 10, 10) ctx.fillStyle = cor[7699];ctx.fillRect(990,760, 10, 10) ctx.fillStyle = cor[7700];ctx.fillRect(0,770, 10, 10) ctx.fillStyle = cor[7701];ctx.fillRect(10,770, 10, 10) ctx.fillStyle = cor[7702];ctx.fillRect(20,770, 10, 10) ctx.fillStyle = cor[7703];ctx.fillRect(30,770, 10, 10) ctx.fillStyle = cor[7704];ctx.fillRect(40,770, 10, 10) ctx.fillStyle = cor[7705];ctx.fillRect(50,770, 10, 10) ctx.fillStyle = cor[7706];ctx.fillRect(60,770, 10, 10) ctx.fillStyle = cor[7707];ctx.fillRect(70,770, 10, 10) ctx.fillStyle = cor[7708];ctx.fillRect(80,770, 10, 10) ctx.fillStyle = cor[7709];ctx.fillRect(90,770, 10, 10) ctx.fillStyle = cor[7710];ctx.fillRect(100,770, 10, 10) ctx.fillStyle = cor[7711];ctx.fillRect(110,770, 10, 10) ctx.fillStyle = cor[7712];ctx.fillRect(120,770, 10, 10) ctx.fillStyle = cor[7713];ctx.fillRect(130,770, 10, 10) ctx.fillStyle = cor[7714];ctx.fillRect(140,770, 10, 10) ctx.fillStyle = cor[7715];ctx.fillRect(150,770, 10, 10) ctx.fillStyle = cor[7716];ctx.fillRect(160,770, 10, 10) ctx.fillStyle = cor[7717];ctx.fillRect(170,770, 10, 10) ctx.fillStyle = cor[7718];ctx.fillRect(180,770, 10, 10) ctx.fillStyle = cor[7719];ctx.fillRect(190,770, 10, 10) ctx.fillStyle = cor[7720];ctx.fillRect(200,770, 10, 10) ctx.fillStyle = cor[7721];ctx.fillRect(210,770, 10, 10) ctx.fillStyle = cor[7722];ctx.fillRect(220,770, 10, 10) ctx.fillStyle = cor[7723];ctx.fillRect(230,770, 10, 10) ctx.fillStyle = cor[7724];ctx.fillRect(240,770, 10, 10) ctx.fillStyle = cor[7725];ctx.fillRect(250,770, 10, 10) ctx.fillStyle = cor[7726];ctx.fillRect(260,770, 10, 10) ctx.fillStyle = cor[7727];ctx.fillRect(270,770, 10, 10) ctx.fillStyle = cor[7728];ctx.fillRect(280,770, 10, 10) ctx.fillStyle = cor[7729];ctx.fillRect(290,770, 10, 10) ctx.fillStyle = cor[7730];ctx.fillRect(300,770, 10, 10) ctx.fillStyle = cor[7731];ctx.fillRect(310,770, 10, 10) ctx.fillStyle = cor[7732];ctx.fillRect(320,770, 10, 10) ctx.fillStyle = cor[7733];ctx.fillRect(330,770, 10, 10) ctx.fillStyle = cor[7734];ctx.fillRect(340,770, 10, 10) ctx.fillStyle = cor[7735];ctx.fillRect(350,770, 10, 10) ctx.fillStyle = cor[7736];ctx.fillRect(360,770, 10, 10) ctx.fillStyle = cor[7737];ctx.fillRect(370,770, 10, 10) ctx.fillStyle = cor[7738];ctx.fillRect(380,770, 10, 10) ctx.fillStyle = cor[7739];ctx.fillRect(390,770, 10, 10) ctx.fillStyle = cor[7740];ctx.fillRect(400,770, 10, 10) ctx.fillStyle = cor[7741];ctx.fillRect(410,770, 10, 10) ctx.fillStyle = cor[7742];ctx.fillRect(420,770, 10, 10) ctx.fillStyle = cor[7743];ctx.fillRect(430,770, 10, 10) ctx.fillStyle = cor[7744];ctx.fillRect(440,770, 10, 10) ctx.fillStyle = cor[7745];ctx.fillRect(450,770, 10, 10) ctx.fillStyle = cor[7746];ctx.fillRect(460,770, 10, 10) ctx.fillStyle = cor[7747];ctx.fillRect(470,770, 10, 10) ctx.fillStyle = cor[7748];ctx.fillRect(480,770, 10, 10) ctx.fillStyle = cor[7749];ctx.fillRect(490,770, 10, 10) ctx.fillStyle = cor[7750];ctx.fillRect(500,770, 10, 10) ctx.fillStyle = cor[7751];ctx.fillRect(510,770, 10, 10) ctx.fillStyle = cor[7752];ctx.fillRect(520,770, 10, 10) ctx.fillStyle = cor[7753];ctx.fillRect(530,770, 10, 10) ctx.fillStyle = cor[7754];ctx.fillRect(540,770, 10, 10) ctx.fillStyle = cor[7755];ctx.fillRect(550,770, 10, 10) ctx.fillStyle = cor[7756];ctx.fillRect(560,770, 10, 10) ctx.fillStyle = cor[7757];ctx.fillRect(570,770, 10, 10) ctx.fillStyle = cor[7758];ctx.fillRect(580,770, 10, 10) ctx.fillStyle = cor[7759];ctx.fillRect(590,770, 10, 10) ctx.fillStyle = cor[7760];ctx.fillRect(600,770, 10, 10) ctx.fillStyle = cor[7761];ctx.fillRect(610,770, 10, 10) ctx.fillStyle = cor[7762];ctx.fillRect(620,770, 10, 10) ctx.fillStyle = cor[7763];ctx.fillRect(630,770, 10, 10) ctx.fillStyle = cor[7764];ctx.fillRect(640,770, 10, 10) ctx.fillStyle = cor[7765];ctx.fillRect(650,770, 10, 10) ctx.fillStyle = cor[7766];ctx.fillRect(660,770, 10, 10) ctx.fillStyle = cor[7767];ctx.fillRect(670,770, 10, 10) ctx.fillStyle = cor[7768];ctx.fillRect(680,770, 10, 10) ctx.fillStyle = cor[7769];ctx.fillRect(690,770, 10, 10) ctx.fillStyle = cor[7770];ctx.fillRect(700,770, 10, 10) ctx.fillStyle = cor[7771];ctx.fillRect(710,770, 10, 10) ctx.fillStyle = cor[7772];ctx.fillRect(720,770, 10, 10) ctx.fillStyle = cor[7773];ctx.fillRect(730,770, 10, 10) ctx.fillStyle = cor[7774];ctx.fillRect(740,770, 10, 10) ctx.fillStyle = cor[7775];ctx.fillRect(750,770, 10, 10) ctx.fillStyle = cor[7776];ctx.fillRect(760,770, 10, 10) ctx.fillStyle = cor[7777];ctx.fillRect(770,770, 10, 10) ctx.fillStyle = cor[7778];ctx.fillRect(780,770, 10, 10) ctx.fillStyle = cor[7779];ctx.fillRect(790,770, 10, 10) ctx.fillStyle = cor[7780];ctx.fillRect(800,770, 10, 10) ctx.fillStyle = cor[7781];ctx.fillRect(810,770, 10, 10) ctx.fillStyle = cor[7782];ctx.fillRect(820,770, 10, 10) ctx.fillStyle = cor[7783];ctx.fillRect(830,770, 10, 10) ctx.fillStyle = cor[7784];ctx.fillRect(840,770, 10, 10) ctx.fillStyle = cor[7785];ctx.fillRect(850,770, 10, 10) ctx.fillStyle = cor[7786];ctx.fillRect(860,770, 10, 10) ctx.fillStyle = cor[7787];ctx.fillRect(870,770, 10, 10) ctx.fillStyle = cor[7788];ctx.fillRect(880,770, 10, 10) ctx.fillStyle = cor[7789];ctx.fillRect(890,770, 10, 10) ctx.fillStyle = cor[7790];ctx.fillRect(900,770, 10, 10) ctx.fillStyle = cor[7791];ctx.fillRect(910,770, 10, 10) ctx.fillStyle = cor[7792];ctx.fillRect(920,770, 10, 10) ctx.fillStyle = cor[7793];ctx.fillRect(930,770, 10, 10) ctx.fillStyle = cor[7794];ctx.fillRect(940,770, 10, 10) ctx.fillStyle = cor[7795];ctx.fillRect(950,770, 10, 10) ctx.fillStyle = cor[7796];ctx.fillRect(960,770, 10, 10) ctx.fillStyle = cor[7797];ctx.fillRect(970,770, 10, 10) ctx.fillStyle = cor[7798];ctx.fillRect(980,770, 10, 10) ctx.fillStyle = cor[7799];ctx.fillRect(990,770, 10, 10) ctx.fillStyle = cor[7800];ctx.fillRect(0,780, 10, 10) ctx.fillStyle = cor[7801];ctx.fillRect(10,780, 10, 10) ctx.fillStyle = cor[7802];ctx.fillRect(20,780, 10, 10) ctx.fillStyle = cor[7803];ctx.fillRect(30,780, 10, 10) ctx.fillStyle = cor[7804];ctx.fillRect(40,780, 10, 10) ctx.fillStyle = cor[7805];ctx.fillRect(50,780, 10, 10) ctx.fillStyle = cor[7806];ctx.fillRect(60,780, 10, 10) ctx.fillStyle = cor[7807];ctx.fillRect(70,780, 10, 10) ctx.fillStyle = cor[7808];ctx.fillRect(80,780, 10, 10) ctx.fillStyle = cor[7809];ctx.fillRect(90,780, 10, 10) ctx.fillStyle = cor[7810];ctx.fillRect(100,780, 10, 10) ctx.fillStyle = cor[7811];ctx.fillRect(110,780, 10, 10) ctx.fillStyle = cor[7812];ctx.fillRect(120,780, 10, 10) ctx.fillStyle = cor[7813];ctx.fillRect(130,780, 10, 10) ctx.fillStyle = cor[7814];ctx.fillRect(140,780, 10, 10) ctx.fillStyle = cor[7815];ctx.fillRect(150,780, 10, 10) ctx.fillStyle = cor[7816];ctx.fillRect(160,780, 10, 10) ctx.fillStyle = cor[7817];ctx.fillRect(170,780, 10, 10) ctx.fillStyle = cor[7818];ctx.fillRect(180,780, 10, 10) ctx.fillStyle = cor[7819];ctx.fillRect(190,780, 10, 10) ctx.fillStyle = cor[7820];ctx.fillRect(200,780, 10, 10) ctx.fillStyle = cor[7821];ctx.fillRect(210,780, 10, 10) ctx.fillStyle = cor[7822];ctx.fillRect(220,780, 10, 10) ctx.fillStyle = cor[7823];ctx.fillRect(230,780, 10, 10) ctx.fillStyle = cor[7824];ctx.fillRect(240,780, 10, 10) ctx.fillStyle = cor[7825];ctx.fillRect(250,780, 10, 10) ctx.fillStyle = cor[7826];ctx.fillRect(260,780, 10, 10) ctx.fillStyle = cor[7827];ctx.fillRect(270,780, 10, 10) ctx.fillStyle = cor[7828];ctx.fillRect(280,780, 10, 10) ctx.fillStyle = cor[7829];ctx.fillRect(290,780, 10, 10) ctx.fillStyle = cor[7830];ctx.fillRect(300,780, 10, 10) ctx.fillStyle = cor[7831];ctx.fillRect(310,780, 10, 10) ctx.fillStyle = cor[7832];ctx.fillRect(320,780, 10, 10) ctx.fillStyle = cor[7833];ctx.fillRect(330,780, 10, 10) ctx.fillStyle = cor[7834];ctx.fillRect(340,780, 10, 10) ctx.fillStyle = cor[7835];ctx.fillRect(350,780, 10, 10) ctx.fillStyle = cor[7836];ctx.fillRect(360,780, 10, 10) ctx.fillStyle = cor[7837];ctx.fillRect(370,780, 10, 10) ctx.fillStyle = cor[7838];ctx.fillRect(380,780, 10, 10) ctx.fillStyle = cor[7839];ctx.fillRect(390,780, 10, 10) ctx.fillStyle = cor[7840];ctx.fillRect(400,780, 10, 10) ctx.fillStyle = cor[7841];ctx.fillRect(410,780, 10, 10) ctx.fillStyle = cor[7842];ctx.fillRect(420,780, 10, 10) ctx.fillStyle = cor[7843];ctx.fillRect(430,780, 10, 10) ctx.fillStyle = cor[7844];ctx.fillRect(440,780, 10, 10) ctx.fillStyle = cor[7845];ctx.fillRect(450,780, 10, 10) ctx.fillStyle = cor[7846];ctx.fillRect(460,780, 10, 10) ctx.fillStyle = cor[7847];ctx.fillRect(470,780, 10, 10) ctx.fillStyle = cor[7848];ctx.fillRect(480,780, 10, 10) ctx.fillStyle = cor[7849];ctx.fillRect(490,780, 10, 10) ctx.fillStyle = cor[7850];ctx.fillRect(500,780, 10, 10) ctx.fillStyle = cor[7851];ctx.fillRect(510,780, 10, 10) ctx.fillStyle = cor[7852];ctx.fillRect(520,780, 10, 10) ctx.fillStyle = cor[7853];ctx.fillRect(530,780, 10, 10) ctx.fillStyle = cor[7854];ctx.fillRect(540,780, 10, 10) ctx.fillStyle = cor[7855];ctx.fillRect(550,780, 10, 10) ctx.fillStyle = cor[7856];ctx.fillRect(560,780, 10, 10) ctx.fillStyle = cor[7857];ctx.fillRect(570,780, 10, 10) ctx.fillStyle = cor[7858];ctx.fillRect(580,780, 10, 10) ctx.fillStyle = cor[7859];ctx.fillRect(590,780, 10, 10) ctx.fillStyle = cor[7860];ctx.fillRect(600,780, 10, 10) ctx.fillStyle = cor[7861];ctx.fillRect(610,780, 10, 10) ctx.fillStyle = cor[7862];ctx.fillRect(620,780, 10, 10) ctx.fillStyle = cor[7863];ctx.fillRect(630,780, 10, 10) ctx.fillStyle = cor[7864];ctx.fillRect(640,780, 10, 10) ctx.fillStyle = cor[7865];ctx.fillRect(650,780, 10, 10) ctx.fillStyle = cor[7866];ctx.fillRect(660,780, 10, 10) ctx.fillStyle = cor[7867];ctx.fillRect(670,780, 10, 10) ctx.fillStyle = cor[7868];ctx.fillRect(680,780, 10, 10) ctx.fillStyle = cor[7869];ctx.fillRect(690,780, 10, 10) ctx.fillStyle = cor[7870];ctx.fillRect(700,780, 10, 10) ctx.fillStyle = cor[7871];ctx.fillRect(710,780, 10, 10) ctx.fillStyle = cor[7872];ctx.fillRect(720,780, 10, 10) ctx.fillStyle = cor[7873];ctx.fillRect(730,780, 10, 10) ctx.fillStyle = cor[7874];ctx.fillRect(740,780, 10, 10) ctx.fillStyle = cor[7875];ctx.fillRect(750,780, 10, 10) ctx.fillStyle = cor[7876];ctx.fillRect(760,780, 10, 10) ctx.fillStyle = cor[7877];ctx.fillRect(770,780, 10, 10) ctx.fillStyle = cor[7878];ctx.fillRect(780,780, 10, 10) ctx.fillStyle = cor[7879];ctx.fillRect(790,780, 10, 10) ctx.fillStyle = cor[7880];ctx.fillRect(800,780, 10, 10) ctx.fillStyle = cor[7881];ctx.fillRect(810,780, 10, 10) ctx.fillStyle = cor[7882];ctx.fillRect(820,780, 10, 10) ctx.fillStyle = cor[7883];ctx.fillRect(830,780, 10, 10) ctx.fillStyle = cor[7884];ctx.fillRect(840,780, 10, 10) ctx.fillStyle = cor[7885];ctx.fillRect(850,780, 10, 10) ctx.fillStyle = cor[7886];ctx.fillRect(860,780, 10, 10) ctx.fillStyle = cor[7887];ctx.fillRect(870,780, 10, 10) ctx.fillStyle = cor[7888];ctx.fillRect(880,780, 10, 10) ctx.fillStyle = cor[7889];ctx.fillRect(890,780, 10, 10) ctx.fillStyle = cor[7890];ctx.fillRect(900,780, 10, 10) ctx.fillStyle = cor[7891];ctx.fillRect(910,780, 10, 10) ctx.fillStyle = cor[7892];ctx.fillRect(920,780, 10, 10) ctx.fillStyle = cor[7893];ctx.fillRect(930,780, 10, 10) ctx.fillStyle = cor[7894];ctx.fillRect(940,780, 10, 10) ctx.fillStyle = cor[7895];ctx.fillRect(950,780, 10, 10) ctx.fillStyle = cor[7896];ctx.fillRect(960,780, 10, 10) ctx.fillStyle = cor[7897];ctx.fillRect(970,780, 10, 10) ctx.fillStyle = cor[7898];ctx.fillRect(980,780, 10, 10) ctx.fillStyle = cor[7899];ctx.fillRect(990,780, 10, 10) ctx.fillStyle = cor[7900];ctx.fillRect(0,790, 10, 10) ctx.fillStyle = cor[7901];ctx.fillRect(10,790, 10, 10) ctx.fillStyle = cor[7902];ctx.fillRect(20,790, 10, 10) ctx.fillStyle = cor[7903];ctx.fillRect(30,790, 10, 10) ctx.fillStyle = cor[7904];ctx.fillRect(40,790, 10, 10) ctx.fillStyle = cor[7905];ctx.fillRect(50,790, 10, 10) ctx.fillStyle = cor[7906];ctx.fillRect(60,790, 10, 10) ctx.fillStyle = cor[7907];ctx.fillRect(70,790, 10, 10) ctx.fillStyle = cor[7908];ctx.fillRect(80,790, 10, 10) ctx.fillStyle = cor[7909];ctx.fillRect(90,790, 10, 10) ctx.fillStyle = cor[7910];ctx.fillRect(100,790, 10, 10) ctx.fillStyle = cor[7911];ctx.fillRect(110,790, 10, 10) ctx.fillStyle = cor[7912];ctx.fillRect(120,790, 10, 10) ctx.fillStyle = cor[7913];ctx.fillRect(130,790, 10, 10) ctx.fillStyle = cor[7914];ctx.fillRect(140,790, 10, 10) ctx.fillStyle = cor[7915];ctx.fillRect(150,790, 10, 10) ctx.fillStyle = cor[7916];ctx.fillRect(160,790, 10, 10) ctx.fillStyle = cor[7917];ctx.fillRect(170,790, 10, 10) ctx.fillStyle = cor[7918];ctx.fillRect(180,790, 10, 10) ctx.fillStyle = cor[7919];ctx.fillRect(190,790, 10, 10) ctx.fillStyle = cor[7920];ctx.fillRect(200,790, 10, 10) ctx.fillStyle = cor[7921];ctx.fillRect(210,790, 10, 10) ctx.fillStyle = cor[7922];ctx.fillRect(220,790, 10, 10) ctx.fillStyle = cor[7923];ctx.fillRect(230,790, 10, 10) ctx.fillStyle = cor[7924];ctx.fillRect(240,790, 10, 10) ctx.fillStyle = cor[7925];ctx.fillRect(250,790, 10, 10) ctx.fillStyle = cor[7926];ctx.fillRect(260,790, 10, 10) ctx.fillStyle = cor[7927];ctx.fillRect(270,790, 10, 10) ctx.fillStyle = cor[7928];ctx.fillRect(280,790, 10, 10) ctx.fillStyle = cor[7929];ctx.fillRect(290,790, 10, 10) ctx.fillStyle = cor[7930];ctx.fillRect(300,790, 10, 10) ctx.fillStyle = cor[7931];ctx.fillRect(310,790, 10, 10) ctx.fillStyle = cor[7932];ctx.fillRect(320,790, 10, 10) ctx.fillStyle = cor[7933];ctx.fillRect(330,790, 10, 10) ctx.fillStyle = cor[7934];ctx.fillRect(340,790, 10, 10) ctx.fillStyle = cor[7935];ctx.fillRect(350,790, 10, 10) ctx.fillStyle = cor[7936];ctx.fillRect(360,790, 10, 10) ctx.fillStyle = cor[7937];ctx.fillRect(370,790, 10, 10) ctx.fillStyle = cor[7938];ctx.fillRect(380,790, 10, 10) ctx.fillStyle = cor[7939];ctx.fillRect(390,790, 10, 10) ctx.fillStyle = cor[7940];ctx.fillRect(400,790, 10, 10) ctx.fillStyle = cor[7941];ctx.fillRect(410,790, 10, 10) ctx.fillStyle = cor[7942];ctx.fillRect(420,790, 10, 10) ctx.fillStyle = cor[7943];ctx.fillRect(430,790, 10, 10) ctx.fillStyle = cor[7944];ctx.fillRect(440,790, 10, 10) ctx.fillStyle = cor[7945];ctx.fillRect(450,790, 10, 10) ctx.fillStyle = cor[7946];ctx.fillRect(460,790, 10, 10) ctx.fillStyle = cor[7947];ctx.fillRect(470,790, 10, 10) ctx.fillStyle = cor[7948];ctx.fillRect(480,790, 10, 10) ctx.fillStyle = cor[7949];ctx.fillRect(490,790, 10, 10) ctx.fillStyle = cor[7950];ctx.fillRect(500,790, 10, 10) ctx.fillStyle = cor[7951];ctx.fillRect(510,790, 10, 10) ctx.fillStyle = cor[7952];ctx.fillRect(520,790, 10, 10) ctx.fillStyle = cor[7953];ctx.fillRect(530,790, 10, 10) ctx.fillStyle = cor[7954];ctx.fillRect(540,790, 10, 10) ctx.fillStyle = cor[7955];ctx.fillRect(550,790, 10, 10) ctx.fillStyle = cor[7956];ctx.fillRect(560,790, 10, 10) ctx.fillStyle = cor[7957];ctx.fillRect(570,790, 10, 10) ctx.fillStyle = cor[7958];ctx.fillRect(580,790, 10, 10) ctx.fillStyle = cor[7959];ctx.fillRect(590,790, 10, 10) ctx.fillStyle = cor[7960];ctx.fillRect(600,790, 10, 10) ctx.fillStyle = cor[7961];ctx.fillRect(610,790, 10, 10) ctx.fillStyle = cor[7962];ctx.fillRect(620,790, 10, 10) ctx.fillStyle = cor[7963];ctx.fillRect(630,790, 10, 10) ctx.fillStyle = cor[7964];ctx.fillRect(640,790, 10, 10) ctx.fillStyle = cor[7965];ctx.fillRect(650,790, 10, 10) ctx.fillStyle = cor[7966];ctx.fillRect(660,790, 10, 10) ctx.fillStyle = cor[7967];ctx.fillRect(670,790, 10, 10) ctx.fillStyle = cor[7968];ctx.fillRect(680,790, 10, 10) ctx.fillStyle = cor[7969];ctx.fillRect(690,790, 10, 10) ctx.fillStyle = cor[7970];ctx.fillRect(700,790, 10, 10) ctx.fillStyle = cor[7971];ctx.fillRect(710,790, 10, 10) ctx.fillStyle = cor[7972];ctx.fillRect(720,790, 10, 10) ctx.fillStyle = cor[7973];ctx.fillRect(730,790, 10, 10) ctx.fillStyle = cor[7974];ctx.fillRect(740,790, 10, 10) ctx.fillStyle = cor[7975];ctx.fillRect(750,790, 10, 10) ctx.fillStyle = cor[7976];ctx.fillRect(760,790, 10, 10) ctx.fillStyle = cor[7977];ctx.fillRect(770,790, 10, 10) ctx.fillStyle = cor[7978];ctx.fillRect(780,790, 10, 10) ctx.fillStyle = cor[7979];ctx.fillRect(790,790, 10, 10) ctx.fillStyle = cor[7980];ctx.fillRect(800,790, 10, 10) ctx.fillStyle = cor[7981];ctx.fillRect(810,790, 10, 10) ctx.fillStyle = cor[7982];ctx.fillRect(820,790, 10, 10) ctx.fillStyle = cor[7983];ctx.fillRect(830,790, 10, 10) ctx.fillStyle = cor[7984];ctx.fillRect(840,790, 10, 10) ctx.fillStyle = cor[7985];ctx.fillRect(850,790, 10, 10) ctx.fillStyle = cor[7986];ctx.fillRect(860,790, 10, 10) ctx.fillStyle = cor[7987];ctx.fillRect(870,790, 10, 10) ctx.fillStyle = cor[7988];ctx.fillRect(880,790, 10, 10) ctx.fillStyle = cor[7989];ctx.fillRect(890,790, 10, 10) ctx.fillStyle = cor[7990];ctx.fillRect(900,790, 10, 10) ctx.fillStyle = cor[7991];ctx.fillRect(910,790, 10, 10) ctx.fillStyle = cor[7992];ctx.fillRect(920,790, 10, 10) ctx.fillStyle = cor[7993];ctx.fillRect(930,790, 10, 10) ctx.fillStyle = cor[7994];ctx.fillRect(940,790, 10, 10) ctx.fillStyle = cor[7995];ctx.fillRect(950,790, 10, 10) ctx.fillStyle = cor[7996];ctx.fillRect(960,790, 10, 10) ctx.fillStyle = cor[7997];ctx.fillRect(970,790, 10, 10) ctx.fillStyle = cor[7998];ctx.fillRect(980,790, 10, 10) ctx.fillStyle = cor[7999];ctx.fillRect(990,790, 10, 10) ctx.fillStyle = cor[8000];ctx.fillRect(0,800, 10, 10) ctx.fillStyle = cor[8001];ctx.fillRect(10,800, 10, 10) ctx.fillStyle = cor[8002];ctx.fillRect(20,800, 10, 10) ctx.fillStyle = cor[8003];ctx.fillRect(30,800, 10, 10) ctx.fillStyle = cor[8004];ctx.fillRect(40,800, 10, 10) ctx.fillStyle = cor[8005];ctx.fillRect(50,800, 10, 10) ctx.fillStyle = cor[8006];ctx.fillRect(60,800, 10, 10) ctx.fillStyle = cor[8007];ctx.fillRect(70,800, 10, 10) ctx.fillStyle = cor[8008];ctx.fillRect(80,800, 10, 10) ctx.fillStyle = cor[8009];ctx.fillRect(90,800, 10, 10) ctx.fillStyle = cor[8010];ctx.fillRect(100,800, 10, 10) ctx.fillStyle = cor[8011];ctx.fillRect(110,800, 10, 10) ctx.fillStyle = cor[8012];ctx.fillRect(120,800, 10, 10) ctx.fillStyle = cor[8013];ctx.fillRect(130,800, 10, 10) ctx.fillStyle = cor[8014];ctx.fillRect(140,800, 10, 10) ctx.fillStyle = cor[8015];ctx.fillRect(150,800, 10, 10) ctx.fillStyle = cor[8016];ctx.fillRect(160,800, 10, 10) ctx.fillStyle = cor[8017];ctx.fillRect(170,800, 10, 10) ctx.fillStyle = cor[8018];ctx.fillRect(180,800, 10, 10) ctx.fillStyle = cor[8019];ctx.fillRect(190,800, 10, 10) ctx.fillStyle = cor[8020];ctx.fillRect(200,800, 10, 10) ctx.fillStyle = cor[8021];ctx.fillRect(210,800, 10, 10) ctx.fillStyle = cor[8022];ctx.fillRect(220,800, 10, 10) ctx.fillStyle = cor[8023];ctx.fillRect(230,800, 10, 10) ctx.fillStyle = cor[8024];ctx.fillRect(240,800, 10, 10) ctx.fillStyle = cor[8025];ctx.fillRect(250,800, 10, 10) ctx.fillStyle = cor[8026];ctx.fillRect(260,800, 10, 10) ctx.fillStyle = cor[8027];ctx.fillRect(270,800, 10, 10) ctx.fillStyle = cor[8028];ctx.fillRect(280,800, 10, 10) ctx.fillStyle = cor[8029];ctx.fillRect(290,800, 10, 10) ctx.fillStyle = cor[8030];ctx.fillRect(300,800, 10, 10) ctx.fillStyle = cor[8031];ctx.fillRect(310,800, 10, 10) ctx.fillStyle = cor[8032];ctx.fillRect(320,800, 10, 10) ctx.fillStyle = cor[8033];ctx.fillRect(330,800, 10, 10) ctx.fillStyle = cor[8034];ctx.fillRect(340,800, 10, 10) ctx.fillStyle = cor[8035];ctx.fillRect(350,800, 10, 10) ctx.fillStyle = cor[8036];ctx.fillRect(360,800, 10, 10) ctx.fillStyle = cor[8037];ctx.fillRect(370,800, 10, 10) ctx.fillStyle = cor[8038];ctx.fillRect(380,800, 10, 10) ctx.fillStyle = cor[8039];ctx.fillRect(390,800, 10, 10) ctx.fillStyle = cor[8040];ctx.fillRect(400,800, 10, 10) ctx.fillStyle = cor[8041];ctx.fillRect(410,800, 10, 10) ctx.fillStyle = cor[8042];ctx.fillRect(420,800, 10, 10) ctx.fillStyle = cor[8043];ctx.fillRect(430,800, 10, 10) ctx.fillStyle = cor[8044];ctx.fillRect(440,800, 10, 10) ctx.fillStyle = cor[8045];ctx.fillRect(450,800, 10, 10) ctx.fillStyle = cor[8046];ctx.fillRect(460,800, 10, 10) ctx.fillStyle = cor[8047];ctx.fillRect(470,800, 10, 10) ctx.fillStyle = cor[8048];ctx.fillRect(480,800, 10, 10) ctx.fillStyle = cor[8049];ctx.fillRect(490,800, 10, 10) ctx.fillStyle = cor[8050];ctx.fillRect(500,800, 10, 10) ctx.fillStyle = cor[8051];ctx.fillRect(510,800, 10, 10) ctx.fillStyle = cor[8052];ctx.fillRect(520,800, 10, 10) ctx.fillStyle = cor[8053];ctx.fillRect(530,800, 10, 10) ctx.fillStyle = cor[8054];ctx.fillRect(540,800, 10, 10) ctx.fillStyle = cor[8055];ctx.fillRect(550,800, 10, 10) ctx.fillStyle = cor[8056];ctx.fillRect(560,800, 10, 10) ctx.fillStyle = cor[8057];ctx.fillRect(570,800, 10, 10) ctx.fillStyle = cor[8058];ctx.fillRect(580,800, 10, 10) ctx.fillStyle = cor[8059];ctx.fillRect(590,800, 10, 10) ctx.fillStyle = cor[8060];ctx.fillRect(600,800, 10, 10) ctx.fillStyle = cor[8061];ctx.fillRect(610,800, 10, 10) ctx.fillStyle = cor[8062];ctx.fillRect(620,800, 10, 10) ctx.fillStyle = cor[8063];ctx.fillRect(630,800, 10, 10) ctx.fillStyle = cor[8064];ctx.fillRect(640,800, 10, 10) ctx.fillStyle = cor[8065];ctx.fillRect(650,800, 10, 10) ctx.fillStyle = cor[8066];ctx.fillRect(660,800, 10, 10) ctx.fillStyle = cor[8067];ctx.fillRect(670,800, 10, 10) ctx.fillStyle = cor[8068];ctx.fillRect(680,800, 10, 10) ctx.fillStyle = cor[8069];ctx.fillRect(690,800, 10, 10) ctx.fillStyle = cor[8070];ctx.fillRect(700,800, 10, 10) ctx.fillStyle = cor[8071];ctx.fillRect(710,800, 10, 10) ctx.fillStyle = cor[8072];ctx.fillRect(720,800, 10, 10) ctx.fillStyle = cor[8073];ctx.fillRect(730,800, 10, 10) ctx.fillStyle = cor[8074];ctx.fillRect(740,800, 10, 10) ctx.fillStyle = cor[8075];ctx.fillRect(750,800, 10, 10) ctx.fillStyle = cor[8076];ctx.fillRect(760,800, 10, 10) ctx.fillStyle = cor[8077];ctx.fillRect(770,800, 10, 10) ctx.fillStyle = cor[8078];ctx.fillRect(780,800, 10, 10) ctx.fillStyle = cor[8079];ctx.fillRect(790,800, 10, 10) ctx.fillStyle = cor[8080];ctx.fillRect(800,800, 10, 10) ctx.fillStyle = cor[8081];ctx.fillRect(810,800, 10, 10) ctx.fillStyle = cor[8082];ctx.fillRect(820,800, 10, 10) ctx.fillStyle = cor[8083];ctx.fillRect(830,800, 10, 10) ctx.fillStyle = cor[8084];ctx.fillRect(840,800, 10, 10) ctx.fillStyle = cor[8085];ctx.fillRect(850,800, 10, 10) ctx.fillStyle = cor[8086];ctx.fillRect(860,800, 10, 10) ctx.fillStyle = cor[8087];ctx.fillRect(870,800, 10, 10) ctx.fillStyle = cor[8088];ctx.fillRect(880,800, 10, 10) ctx.fillStyle = cor[8089];ctx.fillRect(890,800, 10, 10) ctx.fillStyle = cor[8090];ctx.fillRect(900,800, 10, 10) ctx.fillStyle = cor[8091];ctx.fillRect(910,800, 10, 10) ctx.fillStyle = cor[8092];ctx.fillRect(920,800, 10, 10) ctx.fillStyle = cor[8093];ctx.fillRect(930,800, 10, 10) ctx.fillStyle = cor[8094];ctx.fillRect(940,800, 10, 10) ctx.fillStyle = cor[8095];ctx.fillRect(950,800, 10, 10) ctx.fillStyle = cor[8096];ctx.fillRect(960,800, 10, 10) ctx.fillStyle = cor[8097];ctx.fillRect(970,800, 10, 10) ctx.fillStyle = cor[8098];ctx.fillRect(980,800, 10, 10) ctx.fillStyle = cor[8099];ctx.fillRect(990,800, 10, 10) ctx.fillStyle = cor[8100];ctx.fillRect(0,810, 10, 10) ctx.fillStyle = cor[8101];ctx.fillRect(10,810, 10, 10) ctx.fillStyle = cor[8102];ctx.fillRect(20,810, 10, 10) ctx.fillStyle = cor[8103];ctx.fillRect(30,810, 10, 10) ctx.fillStyle = cor[8104];ctx.fillRect(40,810, 10, 10) ctx.fillStyle = cor[8105];ctx.fillRect(50,810, 10, 10) ctx.fillStyle = cor[8106];ctx.fillRect(60,810, 10, 10) ctx.fillStyle = cor[8107];ctx.fillRect(70,810, 10, 10) ctx.fillStyle = cor[8108];ctx.fillRect(80,810, 10, 10) ctx.fillStyle = cor[8109];ctx.fillRect(90,810, 10, 10) ctx.fillStyle = cor[8110];ctx.fillRect(100,810, 10, 10) ctx.fillStyle = cor[8111];ctx.fillRect(110,810, 10, 10) ctx.fillStyle = cor[8112];ctx.fillRect(120,810, 10, 10) ctx.fillStyle = cor[8113];ctx.fillRect(130,810, 10, 10) ctx.fillStyle = cor[8114];ctx.fillRect(140,810, 10, 10) ctx.fillStyle = cor[8115];ctx.fillRect(150,810, 10, 10) ctx.fillStyle = cor[8116];ctx.fillRect(160,810, 10, 10) ctx.fillStyle = cor[8117];ctx.fillRect(170,810, 10, 10) ctx.fillStyle = cor[8118];ctx.fillRect(180,810, 10, 10) ctx.fillStyle = cor[8119];ctx.fillRect(190,810, 10, 10) ctx.fillStyle = cor[8120];ctx.fillRect(200,810, 10, 10) ctx.fillStyle = cor[8121];ctx.fillRect(210,810, 10, 10) ctx.fillStyle = cor[8122];ctx.fillRect(220,810, 10, 10) ctx.fillStyle = cor[8123];ctx.fillRect(230,810, 10, 10) ctx.fillStyle = cor[8124];ctx.fillRect(240,810, 10, 10) ctx.fillStyle = cor[8125];ctx.fillRect(250,810, 10, 10) ctx.fillStyle = cor[8126];ctx.fillRect(260,810, 10, 10) ctx.fillStyle = cor[8127];ctx.fillRect(270,810, 10, 10) ctx.fillStyle = cor[8128];ctx.fillRect(280,810, 10, 10) ctx.fillStyle = cor[8129];ctx.fillRect(290,810, 10, 10) ctx.fillStyle = cor[8130];ctx.fillRect(300,810, 10, 10) ctx.fillStyle = cor[8131];ctx.fillRect(310,810, 10, 10) ctx.fillStyle = cor[8132];ctx.fillRect(320,810, 10, 10) ctx.fillStyle = cor[8133];ctx.fillRect(330,810, 10, 10) ctx.fillStyle = cor[8134];ctx.fillRect(340,810, 10, 10) ctx.fillStyle = cor[8135];ctx.fillRect(350,810, 10, 10) ctx.fillStyle = cor[8136];ctx.fillRect(360,810, 10, 10) ctx.fillStyle = cor[8137];ctx.fillRect(370,810, 10, 10) ctx.fillStyle = cor[8138];ctx.fillRect(380,810, 10, 10) ctx.fillStyle = cor[8139];ctx.fillRect(390,810, 10, 10) ctx.fillStyle = cor[8140];ctx.fillRect(400,810, 10, 10) ctx.fillStyle = cor[8141];ctx.fillRect(410,810, 10, 10) ctx.fillStyle = cor[8142];ctx.fillRect(420,810, 10, 10) ctx.fillStyle = cor[8143];ctx.fillRect(430,810, 10, 10) ctx.fillStyle = cor[8144];ctx.fillRect(440,810, 10, 10) ctx.fillStyle = cor[8145];ctx.fillRect(450,810, 10, 10) ctx.fillStyle = cor[8146];ctx.fillRect(460,810, 10, 10) ctx.fillStyle = cor[8147];ctx.fillRect(470,810, 10, 10) ctx.fillStyle = cor[8148];ctx.fillRect(480,810, 10, 10) ctx.fillStyle = cor[8149];ctx.fillRect(490,810, 10, 10) ctx.fillStyle = cor[8150];ctx.fillRect(500,810, 10, 10) ctx.fillStyle = cor[8151];ctx.fillRect(510,810, 10, 10) ctx.fillStyle = cor[8152];ctx.fillRect(520,810, 10, 10) ctx.fillStyle = cor[8153];ctx.fillRect(530,810, 10, 10) ctx.fillStyle = cor[8154];ctx.fillRect(540,810, 10, 10) ctx.fillStyle = cor[8155];ctx.fillRect(550,810, 10, 10) ctx.fillStyle = cor[8156];ctx.fillRect(560,810, 10, 10) ctx.fillStyle = cor[8157];ctx.fillRect(570,810, 10, 10) ctx.fillStyle = cor[8158];ctx.fillRect(580,810, 10, 10) ctx.fillStyle = cor[8159];ctx.fillRect(590,810, 10, 10) ctx.fillStyle = cor[8160];ctx.fillRect(600,810, 10, 10) ctx.fillStyle = cor[8161];ctx.fillRect(610,810, 10, 10) ctx.fillStyle = cor[8162];ctx.fillRect(620,810, 10, 10) ctx.fillStyle = cor[8163];ctx.fillRect(630,810, 10, 10) ctx.fillStyle = cor[8164];ctx.fillRect(640,810, 10, 10) ctx.fillStyle = cor[8165];ctx.fillRect(650,810, 10, 10) ctx.fillStyle = cor[8166];ctx.fillRect(660,810, 10, 10) ctx.fillStyle = cor[8167];ctx.fillRect(670,810, 10, 10) ctx.fillStyle = cor[8168];ctx.fillRect(680,810, 10, 10) ctx.fillStyle = cor[8169];ctx.fillRect(690,810, 10, 10) ctx.fillStyle = cor[8170];ctx.fillRect(700,810, 10, 10) ctx.fillStyle = cor[8171];ctx.fillRect(710,810, 10, 10) ctx.fillStyle = cor[8172];ctx.fillRect(720,810, 10, 10) ctx.fillStyle = cor[8173];ctx.fillRect(730,810, 10, 10) ctx.fillStyle = cor[8174];ctx.fillRect(740,810, 10, 10) ctx.fillStyle = cor[8175];ctx.fillRect(750,810, 10, 10) ctx.fillStyle = cor[8176];ctx.fillRect(760,810, 10, 10) ctx.fillStyle = cor[8177];ctx.fillRect(770,810, 10, 10) ctx.fillStyle = cor[8178];ctx.fillRect(780,810, 10, 10) ctx.fillStyle = cor[8179];ctx.fillRect(790,810, 10, 10) ctx.fillStyle = cor[8180];ctx.fillRect(800,810, 10, 10) ctx.fillStyle = cor[8181];ctx.fillRect(810,810, 10, 10) ctx.fillStyle = cor[8182];ctx.fillRect(820,810, 10, 10) ctx.fillStyle = cor[8183];ctx.fillRect(830,810, 10, 10) ctx.fillStyle = cor[8184];ctx.fillRect(840,810, 10, 10) ctx.fillStyle = cor[8185];ctx.fillRect(850,810, 10, 10) ctx.fillStyle = cor[8186];ctx.fillRect(860,810, 10, 10) ctx.fillStyle = cor[8187];ctx.fillRect(870,810, 10, 10) ctx.fillStyle = cor[8188];ctx.fillRect(880,810, 10, 10) ctx.fillStyle = cor[8189];ctx.fillRect(890,810, 10, 10) ctx.fillStyle = cor[8190];ctx.fillRect(900,810, 10, 10) ctx.fillStyle = cor[8191];ctx.fillRect(910,810, 10, 10) ctx.fillStyle = cor[8192];ctx.fillRect(920,810, 10, 10) ctx.fillStyle = cor[8193];ctx.fillRect(930,810, 10, 10) ctx.fillStyle = cor[8194];ctx.fillRect(940,810, 10, 10) ctx.fillStyle = cor[8195];ctx.fillRect(950,810, 10, 10) ctx.fillStyle = cor[8196];ctx.fillRect(960,810, 10, 10) ctx.fillStyle = cor[8197];ctx.fillRect(970,810, 10, 10) ctx.fillStyle = cor[8198];ctx.fillRect(980,810, 10, 10) ctx.fillStyle = cor[8199];ctx.fillRect(990,810, 10, 10) ctx.fillStyle = cor[8200];ctx.fillRect(0,820, 10, 10) ctx.fillStyle = cor[8201];ctx.fillRect(10,820, 10, 10) ctx.fillStyle = cor[8202];ctx.fillRect(20,820, 10, 10) ctx.fillStyle = cor[8203];ctx.fillRect(30,820, 10, 10) ctx.fillStyle = cor[8204];ctx.fillRect(40,820, 10, 10) ctx.fillStyle = cor[8205];ctx.fillRect(50,820, 10, 10) ctx.fillStyle = cor[8206];ctx.fillRect(60,820, 10, 10) ctx.fillStyle = cor[8207];ctx.fillRect(70,820, 10, 10) ctx.fillStyle = cor[8208];ctx.fillRect(80,820, 10, 10) ctx.fillStyle = cor[8209];ctx.fillRect(90,820, 10, 10) ctx.fillStyle = cor[8210];ctx.fillRect(100,820, 10, 10) ctx.fillStyle = cor[8211];ctx.fillRect(110,820, 10, 10) ctx.fillStyle = cor[8212];ctx.fillRect(120,820, 10, 10) ctx.fillStyle = cor[8213];ctx.fillRect(130,820, 10, 10) ctx.fillStyle = cor[8214];ctx.fillRect(140,820, 10, 10) ctx.fillStyle = cor[8215];ctx.fillRect(150,820, 10, 10) ctx.fillStyle = cor[8216];ctx.fillRect(160,820, 10, 10) ctx.fillStyle = cor[8217];ctx.fillRect(170,820, 10, 10) ctx.fillStyle = cor[8218];ctx.fillRect(180,820, 10, 10) ctx.fillStyle = cor[8219];ctx.fillRect(190,820, 10, 10) ctx.fillStyle = cor[8220];ctx.fillRect(200,820, 10, 10) ctx.fillStyle = cor[8221];ctx.fillRect(210,820, 10, 10) ctx.fillStyle = cor[8222];ctx.fillRect(220,820, 10, 10) ctx.fillStyle = cor[8223];ctx.fillRect(230,820, 10, 10) ctx.fillStyle = cor[8224];ctx.fillRect(240,820, 10, 10) ctx.fillStyle = cor[8225];ctx.fillRect(250,820, 10, 10) ctx.fillStyle = cor[8226];ctx.fillRect(260,820, 10, 10) ctx.fillStyle = cor[8227];ctx.fillRect(270,820, 10, 10) ctx.fillStyle = cor[8228];ctx.fillRect(280,820, 10, 10) ctx.fillStyle = cor[8229];ctx.fillRect(290,820, 10, 10) ctx.fillStyle = cor[8230];ctx.fillRect(300,820, 10, 10) ctx.fillStyle = cor[8231];ctx.fillRect(310,820, 10, 10) ctx.fillStyle = cor[8232];ctx.fillRect(320,820, 10, 10) ctx.fillStyle = cor[8233];ctx.fillRect(330,820, 10, 10) ctx.fillStyle = cor[8234];ctx.fillRect(340,820, 10, 10) ctx.fillStyle = cor[8235];ctx.fillRect(350,820, 10, 10) ctx.fillStyle = cor[8236];ctx.fillRect(360,820, 10, 10) ctx.fillStyle = cor[8237];ctx.fillRect(370,820, 10, 10) ctx.fillStyle = cor[8238];ctx.fillRect(380,820, 10, 10) ctx.fillStyle = cor[8239];ctx.fillRect(390,820, 10, 10) ctx.fillStyle = cor[8240];ctx.fillRect(400,820, 10, 10) ctx.fillStyle = cor[8241];ctx.fillRect(410,820, 10, 10) ctx.fillStyle = cor[8242];ctx.fillRect(420,820, 10, 10) ctx.fillStyle = cor[8243];ctx.fillRect(430,820, 10, 10) ctx.fillStyle = cor[8244];ctx.fillRect(440,820, 10, 10) ctx.fillStyle = cor[8245];ctx.fillRect(450,820, 10, 10) ctx.fillStyle = cor[8246];ctx.fillRect(460,820, 10, 10) ctx.fillStyle = cor[8247];ctx.fillRect(470,820, 10, 10) ctx.fillStyle = cor[8248];ctx.fillRect(480,820, 10, 10) ctx.fillStyle = cor[8249];ctx.fillRect(490,820, 10, 10) ctx.fillStyle = cor[8250];ctx.fillRect(500,820, 10, 10) ctx.fillStyle = cor[8251];ctx.fillRect(510,820, 10, 10) ctx.fillStyle = cor[8252];ctx.fillRect(520,820, 10, 10) ctx.fillStyle = cor[8253];ctx.fillRect(530,820, 10, 10) ctx.fillStyle = cor[8254];ctx.fillRect(540,820, 10, 10) ctx.fillStyle = cor[8255];ctx.fillRect(550,820, 10, 10) ctx.fillStyle = cor[8256];ctx.fillRect(560,820, 10, 10) ctx.fillStyle = cor[8257];ctx.fillRect(570,820, 10, 10) ctx.fillStyle = cor[8258];ctx.fillRect(580,820, 10, 10) ctx.fillStyle = cor[8259];ctx.fillRect(590,820, 10, 10) ctx.fillStyle = cor[8260];ctx.fillRect(600,820, 10, 10) ctx.fillStyle = cor[8261];ctx.fillRect(610,820, 10, 10) ctx.fillStyle = cor[8262];ctx.fillRect(620,820, 10, 10) ctx.fillStyle = cor[8263];ctx.fillRect(630,820, 10, 10) ctx.fillStyle = cor[8264];ctx.fillRect(640,820, 10, 10) ctx.fillStyle = cor[8265];ctx.fillRect(650,820, 10, 10) ctx.fillStyle = cor[8266];ctx.fillRect(660,820, 10, 10) ctx.fillStyle = cor[8267];ctx.fillRect(670,820, 10, 10) ctx.fillStyle = cor[8268];ctx.fillRect(680,820, 10, 10) ctx.fillStyle = cor[8269];ctx.fillRect(690,820, 10, 10) ctx.fillStyle = cor[8270];ctx.fillRect(700,820, 10, 10) ctx.fillStyle = cor[8271];ctx.fillRect(710,820, 10, 10) ctx.fillStyle = cor[8272];ctx.fillRect(720,820, 10, 10) ctx.fillStyle = cor[8273];ctx.fillRect(730,820, 10, 10) ctx.fillStyle = cor[8274];ctx.fillRect(740,820, 10, 10) ctx.fillStyle = cor[8275];ctx.fillRect(750,820, 10, 10) ctx.fillStyle = cor[8276];ctx.fillRect(760,820, 10, 10) ctx.fillStyle = cor[8277];ctx.fillRect(770,820, 10, 10) ctx.fillStyle = cor[8278];ctx.fillRect(780,820, 10, 10) ctx.fillStyle = cor[8279];ctx.fillRect(790,820, 10, 10) ctx.fillStyle = cor[8280];ctx.fillRect(800,820, 10, 10) ctx.fillStyle = cor[8281];ctx.fillRect(810,820, 10, 10) ctx.fillStyle = cor[8282];ctx.fillRect(820,820, 10, 10) ctx.fillStyle = cor[8283];ctx.fillRect(830,820, 10, 10) ctx.fillStyle = cor[8284];ctx.fillRect(840,820, 10, 10) ctx.fillStyle = cor[8285];ctx.fillRect(850,820, 10, 10) ctx.fillStyle = cor[8286];ctx.fillRect(860,820, 10, 10) ctx.fillStyle = cor[8287];ctx.fillRect(870,820, 10, 10) ctx.fillStyle = cor[8288];ctx.fillRect(880,820, 10, 10) ctx.fillStyle = cor[8289];ctx.fillRect(890,820, 10, 10) ctx.fillStyle = cor[8290];ctx.fillRect(900,820, 10, 10) ctx.fillStyle = cor[8291];ctx.fillRect(910,820, 10, 10) ctx.fillStyle = cor[8292];ctx.fillRect(920,820, 10, 10) ctx.fillStyle = cor[8293];ctx.fillRect(930,820, 10, 10) ctx.fillStyle = cor[8294];ctx.fillRect(940,820, 10, 10) ctx.fillStyle = cor[8295];ctx.fillRect(950,820, 10, 10) ctx.fillStyle = cor[8296];ctx.fillRect(960,820, 10, 10) ctx.fillStyle = cor[8297];ctx.fillRect(970,820, 10, 10) ctx.fillStyle = cor[8298];ctx.fillRect(980,820, 10, 10) ctx.fillStyle = cor[8299];ctx.fillRect(990,820, 10, 10) ctx.fillStyle = cor[8300];ctx.fillRect(0,830, 10, 10) ctx.fillStyle = cor[8301];ctx.fillRect(10,830, 10, 10) ctx.fillStyle = cor[8302];ctx.fillRect(20,830, 10, 10) ctx.fillStyle = cor[8303];ctx.fillRect(30,830, 10, 10) ctx.fillStyle = cor[8304];ctx.fillRect(40,830, 10, 10) ctx.fillStyle = cor[8305];ctx.fillRect(50,830, 10, 10) ctx.fillStyle = cor[8306];ctx.fillRect(60,830, 10, 10) ctx.fillStyle = cor[8307];ctx.fillRect(70,830, 10, 10) ctx.fillStyle = cor[8308];ctx.fillRect(80,830, 10, 10) ctx.fillStyle = cor[8309];ctx.fillRect(90,830, 10, 10) ctx.fillStyle = cor[8310];ctx.fillRect(100,830, 10, 10) ctx.fillStyle = cor[8311];ctx.fillRect(110,830, 10, 10) ctx.fillStyle = cor[8312];ctx.fillRect(120,830, 10, 10) ctx.fillStyle = cor[8313];ctx.fillRect(130,830, 10, 10) ctx.fillStyle = cor[8314];ctx.fillRect(140,830, 10, 10) ctx.fillStyle = cor[8315];ctx.fillRect(150,830, 10, 10) ctx.fillStyle = cor[8316];ctx.fillRect(160,830, 10, 10) ctx.fillStyle = cor[8317];ctx.fillRect(170,830, 10, 10) ctx.fillStyle = cor[8318];ctx.fillRect(180,830, 10, 10) ctx.fillStyle = cor[8319];ctx.fillRect(190,830, 10, 10) ctx.fillStyle = cor[8320];ctx.fillRect(200,830, 10, 10) ctx.fillStyle = cor[8321];ctx.fillRect(210,830, 10, 10) ctx.fillStyle = cor[8322];ctx.fillRect(220,830, 10, 10) ctx.fillStyle = cor[8323];ctx.fillRect(230,830, 10, 10) ctx.fillStyle = cor[8324];ctx.fillRect(240,830, 10, 10) ctx.fillStyle = cor[8325];ctx.fillRect(250,830, 10, 10) ctx.fillStyle = cor[8326];ctx.fillRect(260,830, 10, 10) ctx.fillStyle = cor[8327];ctx.fillRect(270,830, 10, 10) ctx.fillStyle = cor[8328];ctx.fillRect(280,830, 10, 10) ctx.fillStyle = cor[8329];ctx.fillRect(290,830, 10, 10) ctx.fillStyle = cor[8330];ctx.fillRect(300,830, 10, 10) ctx.fillStyle = cor[8331];ctx.fillRect(310,830, 10, 10) ctx.fillStyle = cor[8332];ctx.fillRect(320,830, 10, 10) ctx.fillStyle = cor[8333];ctx.fillRect(330,830, 10, 10) ctx.fillStyle = cor[8334];ctx.fillRect(340,830, 10, 10) ctx.fillStyle = cor[8335];ctx.fillRect(350,830, 10, 10) ctx.fillStyle = cor[8336];ctx.fillRect(360,830, 10, 10) ctx.fillStyle = cor[8337];ctx.fillRect(370,830, 10, 10) ctx.fillStyle = cor[8338];ctx.fillRect(380,830, 10, 10) ctx.fillStyle = cor[8339];ctx.fillRect(390,830, 10, 10) ctx.fillStyle = cor[8340];ctx.fillRect(400,830, 10, 10) ctx.fillStyle = cor[8341];ctx.fillRect(410,830, 10, 10) ctx.fillStyle = cor[8342];ctx.fillRect(420,830, 10, 10) ctx.fillStyle = cor[8343];ctx.fillRect(430,830, 10, 10) ctx.fillStyle = cor[8344];ctx.fillRect(440,830, 10, 10) ctx.fillStyle = cor[8345];ctx.fillRect(450,830, 10, 10) ctx.fillStyle = cor[8346];ctx.fillRect(460,830, 10, 10) ctx.fillStyle = cor[8347];ctx.fillRect(470,830, 10, 10) ctx.fillStyle = cor[8348];ctx.fillRect(480,830, 10, 10) ctx.fillStyle = cor[8349];ctx.fillRect(490,830, 10, 10) ctx.fillStyle = cor[8350];ctx.fillRect(500,830, 10, 10) ctx.fillStyle = cor[8351];ctx.fillRect(510,830, 10, 10) ctx.fillStyle = cor[8352];ctx.fillRect(520,830, 10, 10) ctx.fillStyle = cor[8353];ctx.fillRect(530,830, 10, 10) ctx.fillStyle = cor[8354];ctx.fillRect(540,830, 10, 10) ctx.fillStyle = cor[8355];ctx.fillRect(550,830, 10, 10) ctx.fillStyle = cor[8356];ctx.fillRect(560,830, 10, 10) ctx.fillStyle = cor[8357];ctx.fillRect(570,830, 10, 10) ctx.fillStyle = cor[8358];ctx.fillRect(580,830, 10, 10) ctx.fillStyle = cor[8359];ctx.fillRect(590,830, 10, 10) ctx.fillStyle = cor[8360];ctx.fillRect(600,830, 10, 10) ctx.fillStyle = cor[8361];ctx.fillRect(610,830, 10, 10) ctx.fillStyle = cor[8362];ctx.fillRect(620,830, 10, 10) ctx.fillStyle = cor[8363];ctx.fillRect(630,830, 10, 10) ctx.fillStyle = cor[8364];ctx.fillRect(640,830, 10, 10) ctx.fillStyle = cor[8365];ctx.fillRect(650,830, 10, 10) ctx.fillStyle = cor[8366];ctx.fillRect(660,830, 10, 10) ctx.fillStyle = cor[8367];ctx.fillRect(670,830, 10, 10) ctx.fillStyle = cor[8368];ctx.fillRect(680,830, 10, 10) ctx.fillStyle = cor[8369];ctx.fillRect(690,830, 10, 10) ctx.fillStyle = cor[8370];ctx.fillRect(700,830, 10, 10) ctx.fillStyle = cor[8371];ctx.fillRect(710,830, 10, 10) ctx.fillStyle = cor[8372];ctx.fillRect(720,830, 10, 10) ctx.fillStyle = cor[8373];ctx.fillRect(730,830, 10, 10) ctx.fillStyle = cor[8374];ctx.fillRect(740,830, 10, 10) ctx.fillStyle = cor[8375];ctx.fillRect(750,830, 10, 10) ctx.fillStyle = cor[8376];ctx.fillRect(760,830, 10, 10) ctx.fillStyle = cor[8377];ctx.fillRect(770,830, 10, 10) ctx.fillStyle = cor[8378];ctx.fillRect(780,830, 10, 10) ctx.fillStyle = cor[8379];ctx.fillRect(790,830, 10, 10) ctx.fillStyle = cor[8380];ctx.fillRect(800,830, 10, 10) ctx.fillStyle = cor[8381];ctx.fillRect(810,830, 10, 10) ctx.fillStyle = cor[8382];ctx.fillRect(820,830, 10, 10) ctx.fillStyle = cor[8383];ctx.fillRect(830,830, 10, 10) ctx.fillStyle = cor[8384];ctx.fillRect(840,830, 10, 10) ctx.fillStyle = cor[8385];ctx.fillRect(850,830, 10, 10) ctx.fillStyle = cor[8386];ctx.fillRect(860,830, 10, 10) ctx.fillStyle = cor[8387];ctx.fillRect(870,830, 10, 10) ctx.fillStyle = cor[8388];ctx.fillRect(880,830, 10, 10) ctx.fillStyle = cor[8389];ctx.fillRect(890,830, 10, 10) ctx.fillStyle = cor[8390];ctx.fillRect(900,830, 10, 10) ctx.fillStyle = cor[8391];ctx.fillRect(910,830, 10, 10) ctx.fillStyle = cor[8392];ctx.fillRect(920,830, 10, 10) ctx.fillStyle = cor[8393];ctx.fillRect(930,830, 10, 10) ctx.fillStyle = cor[8394];ctx.fillRect(940,830, 10, 10) ctx.fillStyle = cor[8395];ctx.fillRect(950,830, 10, 10) ctx.fillStyle = cor[8396];ctx.fillRect(960,830, 10, 10) ctx.fillStyle = cor[8397];ctx.fillRect(970,830, 10, 10) ctx.fillStyle = cor[8398];ctx.fillRect(980,830, 10, 10) ctx.fillStyle = cor[8399];ctx.fillRect(990,830, 10, 10) ctx.fillStyle = cor[8400];ctx.fillRect(0,840, 10, 10) ctx.fillStyle = cor[8401];ctx.fillRect(10,840, 10, 10) ctx.fillStyle = cor[8402];ctx.fillRect(20,840, 10, 10) ctx.fillStyle = cor[8403];ctx.fillRect(30,840, 10, 10) ctx.fillStyle = cor[8404];ctx.fillRect(40,840, 10, 10) ctx.fillStyle = cor[8405];ctx.fillRect(50,840, 10, 10) ctx.fillStyle = cor[8406];ctx.fillRect(60,840, 10, 10) ctx.fillStyle = cor[8407];ctx.fillRect(70,840, 10, 10) ctx.fillStyle = cor[8408];ctx.fillRect(80,840, 10, 10) ctx.fillStyle = cor[8409];ctx.fillRect(90,840, 10, 10) ctx.fillStyle = cor[8410];ctx.fillRect(100,840, 10, 10) ctx.fillStyle = cor[8411];ctx.fillRect(110,840, 10, 10) ctx.fillStyle = cor[8412];ctx.fillRect(120,840, 10, 10) ctx.fillStyle = cor[8413];ctx.fillRect(130,840, 10, 10) ctx.fillStyle = cor[8414];ctx.fillRect(140,840, 10, 10) ctx.fillStyle = cor[8415];ctx.fillRect(150,840, 10, 10) ctx.fillStyle = cor[8416];ctx.fillRect(160,840, 10, 10) ctx.fillStyle = cor[8417];ctx.fillRect(170,840, 10, 10) ctx.fillStyle = cor[8418];ctx.fillRect(180,840, 10, 10) ctx.fillStyle = cor[8419];ctx.fillRect(190,840, 10, 10) ctx.fillStyle = cor[8420];ctx.fillRect(200,840, 10, 10) ctx.fillStyle = cor[8421];ctx.fillRect(210,840, 10, 10) ctx.fillStyle = cor[8422];ctx.fillRect(220,840, 10, 10) ctx.fillStyle = cor[8423];ctx.fillRect(230,840, 10, 10) ctx.fillStyle = cor[8424];ctx.fillRect(240,840, 10, 10) ctx.fillStyle = cor[8425];ctx.fillRect(250,840, 10, 10) ctx.fillStyle = cor[8426];ctx.fillRect(260,840, 10, 10) ctx.fillStyle = cor[8427];ctx.fillRect(270,840, 10, 10) ctx.fillStyle = cor[8428];ctx.fillRect(280,840, 10, 10) ctx.fillStyle = cor[8429];ctx.fillRect(290,840, 10, 10) ctx.fillStyle = cor[8430];ctx.fillRect(300,840, 10, 10) ctx.fillStyle = cor[8431];ctx.fillRect(310,840, 10, 10) ctx.fillStyle = cor[8432];ctx.fillRect(320,840, 10, 10) ctx.fillStyle = cor[8433];ctx.fillRect(330,840, 10, 10) ctx.fillStyle = cor[8434];ctx.fillRect(340,840, 10, 10) ctx.fillStyle = cor[8435];ctx.fillRect(350,840, 10, 10) ctx.fillStyle = cor[8436];ctx.fillRect(360,840, 10, 10) ctx.fillStyle = cor[8437];ctx.fillRect(370,840, 10, 10) ctx.fillStyle = cor[8438];ctx.fillRect(380,840, 10, 10) ctx.fillStyle = cor[8439];ctx.fillRect(390,840, 10, 10) ctx.fillStyle = cor[8440];ctx.fillRect(400,840, 10, 10) ctx.fillStyle = cor[8441];ctx.fillRect(410,840, 10, 10) ctx.fillStyle = cor[8442];ctx.fillRect(420,840, 10, 10) ctx.fillStyle = cor[8443];ctx.fillRect(430,840, 10, 10) ctx.fillStyle = cor[8444];ctx.fillRect(440,840, 10, 10) ctx.fillStyle = cor[8445];ctx.fillRect(450,840, 10, 10) ctx.fillStyle = cor[8446];ctx.fillRect(460,840, 10, 10) ctx.fillStyle = cor[8447];ctx.fillRect(470,840, 10, 10) ctx.fillStyle = cor[8448];ctx.fillRect(480,840, 10, 10) ctx.fillStyle = cor[8449];ctx.fillRect(490,840, 10, 10) ctx.fillStyle = cor[8450];ctx.fillRect(500,840, 10, 10) ctx.fillStyle = cor[8451];ctx.fillRect(510,840, 10, 10) ctx.fillStyle = cor[8452];ctx.fillRect(520,840, 10, 10) ctx.fillStyle = cor[8453];ctx.fillRect(530,840, 10, 10) ctx.fillStyle = cor[8454];ctx.fillRect(540,840, 10, 10) ctx.fillStyle = cor[8455];ctx.fillRect(550,840, 10, 10) ctx.fillStyle = cor[8456];ctx.fillRect(560,840, 10, 10) ctx.fillStyle = cor[8457];ctx.fillRect(570,840, 10, 10) ctx.fillStyle = cor[8458];ctx.fillRect(580,840, 10, 10) ctx.fillStyle = cor[8459];ctx.fillRect(590,840, 10, 10) ctx.fillStyle = cor[8460];ctx.fillRect(600,840, 10, 10) ctx.fillStyle = cor[8461];ctx.fillRect(610,840, 10, 10) ctx.fillStyle = cor[8462];ctx.fillRect(620,840, 10, 10) ctx.fillStyle = cor[8463];ctx.fillRect(630,840, 10, 10) ctx.fillStyle = cor[8464];ctx.fillRect(640,840, 10, 10) ctx.fillStyle = cor[8465];ctx.fillRect(650,840, 10, 10) ctx.fillStyle = cor[8466];ctx.fillRect(660,840, 10, 10) ctx.fillStyle = cor[8467];ctx.fillRect(670,840, 10, 10) ctx.fillStyle = cor[8468];ctx.fillRect(680,840, 10, 10) ctx.fillStyle = cor[8469];ctx.fillRect(690,840, 10, 10) ctx.fillStyle = cor[8470];ctx.fillRect(700,840, 10, 10) ctx.fillStyle = cor[8471];ctx.fillRect(710,840, 10, 10) ctx.fillStyle = cor[8472];ctx.fillRect(720,840, 10, 10) ctx.fillStyle = cor[8473];ctx.fillRect(730,840, 10, 10) ctx.fillStyle = cor[8474];ctx.fillRect(740,840, 10, 10) ctx.fillStyle = cor[8475];ctx.fillRect(750,840, 10, 10) ctx.fillStyle = cor[8476];ctx.fillRect(760,840, 10, 10) ctx.fillStyle = cor[8477];ctx.fillRect(770,840, 10, 10) ctx.fillStyle = cor[8478];ctx.fillRect(780,840, 10, 10) ctx.fillStyle = cor[8479];ctx.fillRect(790,840, 10, 10) ctx.fillStyle = cor[8480];ctx.fillRect(800,840, 10, 10) ctx.fillStyle = cor[8481];ctx.fillRect(810,840, 10, 10) ctx.fillStyle = cor[8482];ctx.fillRect(820,840, 10, 10) ctx.fillStyle = cor[8483];ctx.fillRect(830,840, 10, 10) ctx.fillStyle = cor[8484];ctx.fillRect(840,840, 10, 10) ctx.fillStyle = cor[8485];ctx.fillRect(850,840, 10, 10) ctx.fillStyle = cor[8486];ctx.fillRect(860,840, 10, 10) ctx.fillStyle = cor[8487];ctx.fillRect(870,840, 10, 10) ctx.fillStyle = cor[8488];ctx.fillRect(880,840, 10, 10) ctx.fillStyle = cor[8489];ctx.fillRect(890,840, 10, 10) ctx.fillStyle = cor[8490];ctx.fillRect(900,840, 10, 10) ctx.fillStyle = cor[8491];ctx.fillRect(910,840, 10, 10) ctx.fillStyle = cor[8492];ctx.fillRect(920,840, 10, 10) ctx.fillStyle = cor[8493];ctx.fillRect(930,840, 10, 10) ctx.fillStyle = cor[8494];ctx.fillRect(940,840, 10, 10) ctx.fillStyle = cor[8495];ctx.fillRect(950,840, 10, 10) ctx.fillStyle = cor[8496];ctx.fillRect(960,840, 10, 10) ctx.fillStyle = cor[8497];ctx.fillRect(970,840, 10, 10) ctx.fillStyle = cor[8498];ctx.fillRect(980,840, 10, 10) ctx.fillStyle = cor[8499];ctx.fillRect(990,840, 10, 10) ctx.fillStyle = cor[8500];ctx.fillRect(0,850, 10, 10) ctx.fillStyle = cor[8501];ctx.fillRect(10,850, 10, 10) ctx.fillStyle = cor[8502];ctx.fillRect(20,850, 10, 10) ctx.fillStyle = cor[8503];ctx.fillRect(30,850, 10, 10) ctx.fillStyle = cor[8504];ctx.fillRect(40,850, 10, 10) ctx.fillStyle = cor[8505];ctx.fillRect(50,850, 10, 10) ctx.fillStyle = cor[8506];ctx.fillRect(60,850, 10, 10) ctx.fillStyle = cor[8507];ctx.fillRect(70,850, 10, 10) ctx.fillStyle = cor[8508];ctx.fillRect(80,850, 10, 10) ctx.fillStyle = cor[8509];ctx.fillRect(90,850, 10, 10) ctx.fillStyle = cor[8510];ctx.fillRect(100,850, 10, 10) ctx.fillStyle = cor[8511];ctx.fillRect(110,850, 10, 10) ctx.fillStyle = cor[8512];ctx.fillRect(120,850, 10, 10) ctx.fillStyle = cor[8513];ctx.fillRect(130,850, 10, 10) ctx.fillStyle = cor[8514];ctx.fillRect(140,850, 10, 10) ctx.fillStyle = cor[8515];ctx.fillRect(150,850, 10, 10) ctx.fillStyle = cor[8516];ctx.fillRect(160,850, 10, 10) ctx.fillStyle = cor[8517];ctx.fillRect(170,850, 10, 10) ctx.fillStyle = cor[8518];ctx.fillRect(180,850, 10, 10) ctx.fillStyle = cor[8519];ctx.fillRect(190,850, 10, 10) ctx.fillStyle = cor[8520];ctx.fillRect(200,850, 10, 10) ctx.fillStyle = cor[8521];ctx.fillRect(210,850, 10, 10) ctx.fillStyle = cor[8522];ctx.fillRect(220,850, 10, 10) ctx.fillStyle = cor[8523];ctx.fillRect(230,850, 10, 10) ctx.fillStyle = cor[8524];ctx.fillRect(240,850, 10, 10) ctx.fillStyle = cor[8525];ctx.fillRect(250,850, 10, 10) ctx.fillStyle = cor[8526];ctx.fillRect(260,850, 10, 10) ctx.fillStyle = cor[8527];ctx.fillRect(270,850, 10, 10) ctx.fillStyle = cor[8528];ctx.fillRect(280,850, 10, 10) ctx.fillStyle = cor[8529];ctx.fillRect(290,850, 10, 10) ctx.fillStyle = cor[8530];ctx.fillRect(300,850, 10, 10) ctx.fillStyle = cor[8531];ctx.fillRect(310,850, 10, 10) ctx.fillStyle = cor[8532];ctx.fillRect(320,850, 10, 10) ctx.fillStyle = cor[8533];ctx.fillRect(330,850, 10, 10) ctx.fillStyle = cor[8534];ctx.fillRect(340,850, 10, 10) ctx.fillStyle = cor[8535];ctx.fillRect(350,850, 10, 10) ctx.fillStyle = cor[8536];ctx.fillRect(360,850, 10, 10) ctx.fillStyle = cor[8537];ctx.fillRect(370,850, 10, 10) ctx.fillStyle = cor[8538];ctx.fillRect(380,850, 10, 10) ctx.fillStyle = cor[8539];ctx.fillRect(390,850, 10, 10) ctx.fillStyle = cor[8540];ctx.fillRect(400,850, 10, 10) ctx.fillStyle = cor[8541];ctx.fillRect(410,850, 10, 10) ctx.fillStyle = cor[8542];ctx.fillRect(420,850, 10, 10) ctx.fillStyle = cor[8543];ctx.fillRect(430,850, 10, 10) ctx.fillStyle = cor[8544];ctx.fillRect(440,850, 10, 10) ctx.fillStyle = cor[8545];ctx.fillRect(450,850, 10, 10) ctx.fillStyle = cor[8546];ctx.fillRect(460,850, 10, 10) ctx.fillStyle = cor[8547];ctx.fillRect(470,850, 10, 10) ctx.fillStyle = cor[8548];ctx.fillRect(480,850, 10, 10) ctx.fillStyle = cor[8549];ctx.fillRect(490,850, 10, 10) ctx.fillStyle = cor[8550];ctx.fillRect(500,850, 10, 10) ctx.fillStyle = cor[8551];ctx.fillRect(510,850, 10, 10) ctx.fillStyle = cor[8552];ctx.fillRect(520,850, 10, 10) ctx.fillStyle = cor[8553];ctx.fillRect(530,850, 10, 10) ctx.fillStyle = cor[8554];ctx.fillRect(540,850, 10, 10) ctx.fillStyle = cor[8555];ctx.fillRect(550,850, 10, 10) ctx.fillStyle = cor[8556];ctx.fillRect(560,850, 10, 10) ctx.fillStyle = cor[8557];ctx.fillRect(570,850, 10, 10) ctx.fillStyle = cor[8558];ctx.fillRect(580,850, 10, 10) ctx.fillStyle = cor[8559];ctx.fillRect(590,850, 10, 10) ctx.fillStyle = cor[8560];ctx.fillRect(600,850, 10, 10) ctx.fillStyle = cor[8561];ctx.fillRect(610,850, 10, 10) ctx.fillStyle = cor[8562];ctx.fillRect(620,850, 10, 10) ctx.fillStyle = cor[8563];ctx.fillRect(630,850, 10, 10) ctx.fillStyle = cor[8564];ctx.fillRect(640,850, 10, 10) ctx.fillStyle = cor[8565];ctx.fillRect(650,850, 10, 10) ctx.fillStyle = cor[8566];ctx.fillRect(660,850, 10, 10) ctx.fillStyle = cor[8567];ctx.fillRect(670,850, 10, 10) ctx.fillStyle = cor[8568];ctx.fillRect(680,850, 10, 10) ctx.fillStyle = cor[8569];ctx.fillRect(690,850, 10, 10) ctx.fillStyle = cor[8570];ctx.fillRect(700,850, 10, 10) ctx.fillStyle = cor[8571];ctx.fillRect(710,850, 10, 10) ctx.fillStyle = cor[8572];ctx.fillRect(720,850, 10, 10) ctx.fillStyle = cor[8573];ctx.fillRect(730,850, 10, 10) ctx.fillStyle = cor[8574];ctx.fillRect(740,850, 10, 10) ctx.fillStyle = cor[8575];ctx.fillRect(750,850, 10, 10) ctx.fillStyle = cor[8576];ctx.fillRect(760,850, 10, 10) ctx.fillStyle = cor[8577];ctx.fillRect(770,850, 10, 10) ctx.fillStyle = cor[8578];ctx.fillRect(780,850, 10, 10) ctx.fillStyle = cor[8579];ctx.fillRect(790,850, 10, 10) ctx.fillStyle = cor[8580];ctx.fillRect(800,850, 10, 10) ctx.fillStyle = cor[8581];ctx.fillRect(810,850, 10, 10) ctx.fillStyle = cor[8582];ctx.fillRect(820,850, 10, 10) ctx.fillStyle = cor[8583];ctx.fillRect(830,850, 10, 10) ctx.fillStyle = cor[8584];ctx.fillRect(840,850, 10, 10) ctx.fillStyle = cor[8585];ctx.fillRect(850,850, 10, 10) ctx.fillStyle = cor[8586];ctx.fillRect(860,850, 10, 10) ctx.fillStyle = cor[8587];ctx.fillRect(870,850, 10, 10) ctx.fillStyle = cor[8588];ctx.fillRect(880,850, 10, 10) ctx.fillStyle = cor[8589];ctx.fillRect(890,850, 10, 10) ctx.fillStyle = cor[8590];ctx.fillRect(900,850, 10, 10) ctx.fillStyle = cor[8591];ctx.fillRect(910,850, 10, 10) ctx.fillStyle = cor[8592];ctx.fillRect(920,850, 10, 10) ctx.fillStyle = cor[8593];ctx.fillRect(930,850, 10, 10) ctx.fillStyle = cor[8594];ctx.fillRect(940,850, 10, 10) ctx.fillStyle = cor[8595];ctx.fillRect(950,850, 10, 10) ctx.fillStyle = cor[8596];ctx.fillRect(960,850, 10, 10) ctx.fillStyle = cor[8597];ctx.fillRect(970,850, 10, 10) ctx.fillStyle = cor[8598];ctx.fillRect(980,850, 10, 10) ctx.fillStyle = cor[8599];ctx.fillRect(990,850, 10, 10) ctx.fillStyle = cor[8600];ctx.fillRect(0,860, 10, 10) ctx.fillStyle = cor[8601];ctx.fillRect(10,860, 10, 10) ctx.fillStyle = cor[8602];ctx.fillRect(20,860, 10, 10) ctx.fillStyle = cor[8603];ctx.fillRect(30,860, 10, 10) ctx.fillStyle = cor[8604];ctx.fillRect(40,860, 10, 10) ctx.fillStyle = cor[8605];ctx.fillRect(50,860, 10, 10) ctx.fillStyle = cor[8606];ctx.fillRect(60,860, 10, 10) ctx.fillStyle = cor[8607];ctx.fillRect(70,860, 10, 10) ctx.fillStyle = cor[8608];ctx.fillRect(80,860, 10, 10) ctx.fillStyle = cor[8609];ctx.fillRect(90,860, 10, 10) ctx.fillStyle = cor[8610];ctx.fillRect(100,860, 10, 10) ctx.fillStyle = cor[8611];ctx.fillRect(110,860, 10, 10) ctx.fillStyle = cor[8612];ctx.fillRect(120,860, 10, 10) ctx.fillStyle = cor[8613];ctx.fillRect(130,860, 10, 10) ctx.fillStyle = cor[8614];ctx.fillRect(140,860, 10, 10) ctx.fillStyle = cor[8615];ctx.fillRect(150,860, 10, 10) ctx.fillStyle = cor[8616];ctx.fillRect(160,860, 10, 10) ctx.fillStyle = cor[8617];ctx.fillRect(170,860, 10, 10) ctx.fillStyle = cor[8618];ctx.fillRect(180,860, 10, 10) ctx.fillStyle = cor[8619];ctx.fillRect(190,860, 10, 10) ctx.fillStyle = cor[8620];ctx.fillRect(200,860, 10, 10) ctx.fillStyle = cor[8621];ctx.fillRect(210,860, 10, 10) ctx.fillStyle = cor[8622];ctx.fillRect(220,860, 10, 10) ctx.fillStyle = cor[8623];ctx.fillRect(230,860, 10, 10) ctx.fillStyle = cor[8624];ctx.fillRect(240,860, 10, 10) ctx.fillStyle = cor[8625];ctx.fillRect(250,860, 10, 10) ctx.fillStyle = cor[8626];ctx.fillRect(260,860, 10, 10) ctx.fillStyle = cor[8627];ctx.fillRect(270,860, 10, 10) ctx.fillStyle = cor[8628];ctx.fillRect(280,860, 10, 10) ctx.fillStyle = cor[8629];ctx.fillRect(290,860, 10, 10) ctx.fillStyle = cor[8630];ctx.fillRect(300,860, 10, 10) ctx.fillStyle = cor[8631];ctx.fillRect(310,860, 10, 10) ctx.fillStyle = cor[8632];ctx.fillRect(320,860, 10, 10) ctx.fillStyle = cor[8633];ctx.fillRect(330,860, 10, 10) ctx.fillStyle = cor[8634];ctx.fillRect(340,860, 10, 10) ctx.fillStyle = cor[8635];ctx.fillRect(350,860, 10, 10) ctx.fillStyle = cor[8636];ctx.fillRect(360,860, 10, 10) ctx.fillStyle = cor[8637];ctx.fillRect(370,860, 10, 10) ctx.fillStyle = cor[8638];ctx.fillRect(380,860, 10, 10) ctx.fillStyle = cor[8639];ctx.fillRect(390,860, 10, 10) ctx.fillStyle = cor[8640];ctx.fillRect(400,860, 10, 10) ctx.fillStyle = cor[8641];ctx.fillRect(410,860, 10, 10) ctx.fillStyle = cor[8642];ctx.fillRect(420,860, 10, 10) ctx.fillStyle = cor[8643];ctx.fillRect(430,860, 10, 10) ctx.fillStyle = cor[8644];ctx.fillRect(440,860, 10, 10) ctx.fillStyle = cor[8645];ctx.fillRect(450,860, 10, 10) ctx.fillStyle = cor[8646];ctx.fillRect(460,860, 10, 10) ctx.fillStyle = cor[8647];ctx.fillRect(470,860, 10, 10) ctx.fillStyle = cor[8648];ctx.fillRect(480,860, 10, 10) ctx.fillStyle = cor[8649];ctx.fillRect(490,860, 10, 10) ctx.fillStyle = cor[8650];ctx.fillRect(500,860, 10, 10) ctx.fillStyle = cor[8651];ctx.fillRect(510,860, 10, 10) ctx.fillStyle = cor[8652];ctx.fillRect(520,860, 10, 10) ctx.fillStyle = cor[8653];ctx.fillRect(530,860, 10, 10) ctx.fillStyle = cor[8654];ctx.fillRect(540,860, 10, 10) ctx.fillStyle = cor[8655];ctx.fillRect(550,860, 10, 10) ctx.fillStyle = cor[8656];ctx.fillRect(560,860, 10, 10) ctx.fillStyle = cor[8657];ctx.fillRect(570,860, 10, 10) ctx.fillStyle = cor[8658];ctx.fillRect(580,860, 10, 10) ctx.fillStyle = cor[8659];ctx.fillRect(590,860, 10, 10) ctx.fillStyle = cor[8660];ctx.fillRect(600,860, 10, 10) ctx.fillStyle = cor[8661];ctx.fillRect(610,860, 10, 10) ctx.fillStyle = cor[8662];ctx.fillRect(620,860, 10, 10) ctx.fillStyle = cor[8663];ctx.fillRect(630,860, 10, 10) ctx.fillStyle = cor[8664];ctx.fillRect(640,860, 10, 10) ctx.fillStyle = cor[8665];ctx.fillRect(650,860, 10, 10) ctx.fillStyle = cor[8666];ctx.fillRect(660,860, 10, 10) ctx.fillStyle = cor[8667];ctx.fillRect(670,860, 10, 10) ctx.fillStyle = cor[8668];ctx.fillRect(680,860, 10, 10) ctx.fillStyle = cor[8669];ctx.fillRect(690,860, 10, 10) ctx.fillStyle = cor[8670];ctx.fillRect(700,860, 10, 10) ctx.fillStyle = cor[8671];ctx.fillRect(710,860, 10, 10) ctx.fillStyle = cor[8672];ctx.fillRect(720,860, 10, 10) ctx.fillStyle = cor[8673];ctx.fillRect(730,860, 10, 10) ctx.fillStyle = cor[8674];ctx.fillRect(740,860, 10, 10) ctx.fillStyle = cor[8675];ctx.fillRect(750,860, 10, 10) ctx.fillStyle = cor[8676];ctx.fillRect(760,860, 10, 10) ctx.fillStyle = cor[8677];ctx.fillRect(770,860, 10, 10) ctx.fillStyle = cor[8678];ctx.fillRect(780,860, 10, 10) ctx.fillStyle = cor[8679];ctx.fillRect(790,860, 10, 10) ctx.fillStyle = cor[8680];ctx.fillRect(800,860, 10, 10) ctx.fillStyle = cor[8681];ctx.fillRect(810,860, 10, 10) ctx.fillStyle = cor[8682];ctx.fillRect(820,860, 10, 10) ctx.fillStyle = cor[8683];ctx.fillRect(830,860, 10, 10) ctx.fillStyle = cor[8684];ctx.fillRect(840,860, 10, 10) ctx.fillStyle = cor[8685];ctx.fillRect(850,860, 10, 10) ctx.fillStyle = cor[8686];ctx.fillRect(860,860, 10, 10) ctx.fillStyle = cor[8687];ctx.fillRect(870,860, 10, 10) ctx.fillStyle = cor[8688];ctx.fillRect(880,860, 10, 10) ctx.fillStyle = cor[8689];ctx.fillRect(890,860, 10, 10) ctx.fillStyle = cor[8690];ctx.fillRect(900,860, 10, 10) ctx.fillStyle = cor[8691];ctx.fillRect(910,860, 10, 10) ctx.fillStyle = cor[8692];ctx.fillRect(920,860, 10, 10) ctx.fillStyle = cor[8693];ctx.fillRect(930,860, 10, 10) ctx.fillStyle = cor[8694];ctx.fillRect(940,860, 10, 10) ctx.fillStyle = cor[8695];ctx.fillRect(950,860, 10, 10) ctx.fillStyle = cor[8696];ctx.fillRect(960,860, 10, 10) ctx.fillStyle = cor[8697];ctx.fillRect(970,860, 10, 10) ctx.fillStyle = cor[8698];ctx.fillRect(980,860, 10, 10) ctx.fillStyle = cor[8699];ctx.fillRect(990,860, 10, 10) ctx.fillStyle = cor[8700];ctx.fillRect(0,870, 10, 10) ctx.fillStyle = cor[8701];ctx.fillRect(10,870, 10, 10) ctx.fillStyle = cor[8702];ctx.fillRect(20,870, 10, 10) ctx.fillStyle = cor[8703];ctx.fillRect(30,870, 10, 10) ctx.fillStyle = cor[8704];ctx.fillRect(40,870, 10, 10) ctx.fillStyle = cor[8705];ctx.fillRect(50,870, 10, 10) ctx.fillStyle = cor[8706];ctx.fillRect(60,870, 10, 10) ctx.fillStyle = cor[8707];ctx.fillRect(70,870, 10, 10) ctx.fillStyle = cor[8708];ctx.fillRect(80,870, 10, 10) ctx.fillStyle = cor[8709];ctx.fillRect(90,870, 10, 10) ctx.fillStyle = cor[8710];ctx.fillRect(100,870, 10, 10) ctx.fillStyle = cor[8711];ctx.fillRect(110,870, 10, 10) ctx.fillStyle = cor[8712];ctx.fillRect(120,870, 10, 10) ctx.fillStyle = cor[8713];ctx.fillRect(130,870, 10, 10) ctx.fillStyle = cor[8714];ctx.fillRect(140,870, 10, 10) ctx.fillStyle = cor[8715];ctx.fillRect(150,870, 10, 10) ctx.fillStyle = cor[8716];ctx.fillRect(160,870, 10, 10) ctx.fillStyle = cor[8717];ctx.fillRect(170,870, 10, 10) ctx.fillStyle = cor[8718];ctx.fillRect(180,870, 10, 10) ctx.fillStyle = cor[8719];ctx.fillRect(190,870, 10, 10) ctx.fillStyle = cor[8720];ctx.fillRect(200,870, 10, 10) ctx.fillStyle = cor[8721];ctx.fillRect(210,870, 10, 10) ctx.fillStyle = cor[8722];ctx.fillRect(220,870, 10, 10) ctx.fillStyle = cor[8723];ctx.fillRect(230,870, 10, 10) ctx.fillStyle = cor[8724];ctx.fillRect(240,870, 10, 10) ctx.fillStyle = cor[8725];ctx.fillRect(250,870, 10, 10) ctx.fillStyle = cor[8726];ctx.fillRect(260,870, 10, 10) ctx.fillStyle = cor[8727];ctx.fillRect(270,870, 10, 10) ctx.fillStyle = cor[8728];ctx.fillRect(280,870, 10, 10) ctx.fillStyle = cor[8729];ctx.fillRect(290,870, 10, 10) ctx.fillStyle = cor[8730];ctx.fillRect(300,870, 10, 10) ctx.fillStyle = cor[8731];ctx.fillRect(310,870, 10, 10) ctx.fillStyle = cor[8732];ctx.fillRect(320,870, 10, 10) ctx.fillStyle = cor[8733];ctx.fillRect(330,870, 10, 10) ctx.fillStyle = cor[8734];ctx.fillRect(340,870, 10, 10) ctx.fillStyle = cor[8735];ctx.fillRect(350,870, 10, 10) ctx.fillStyle = cor[8736];ctx.fillRect(360,870, 10, 10) ctx.fillStyle = cor[8737];ctx.fillRect(370,870, 10, 10) ctx.fillStyle = cor[8738];ctx.fillRect(380,870, 10, 10) ctx.fillStyle = cor[8739];ctx.fillRect(390,870, 10, 10) ctx.fillStyle = cor[8740];ctx.fillRect(400,870, 10, 10) ctx.fillStyle = cor[8741];ctx.fillRect(410,870, 10, 10) ctx.fillStyle = cor[8742];ctx.fillRect(420,870, 10, 10) ctx.fillStyle = cor[8743];ctx.fillRect(430,870, 10, 10) ctx.fillStyle = cor[8744];ctx.fillRect(440,870, 10, 10) ctx.fillStyle = cor[8745];ctx.fillRect(450,870, 10, 10) ctx.fillStyle = cor[8746];ctx.fillRect(460,870, 10, 10) ctx.fillStyle = cor[8747];ctx.fillRect(470,870, 10, 10) ctx.fillStyle = cor[8748];ctx.fillRect(480,870, 10, 10) ctx.fillStyle = cor[8749];ctx.fillRect(490,870, 10, 10) ctx.fillStyle = cor[8750];ctx.fillRect(500,870, 10, 10) ctx.fillStyle = cor[8751];ctx.fillRect(510,870, 10, 10) ctx.fillStyle = cor[8752];ctx.fillRect(520,870, 10, 10) ctx.fillStyle = cor[8753];ctx.fillRect(530,870, 10, 10) ctx.fillStyle = cor[8754];ctx.fillRect(540,870, 10, 10) ctx.fillStyle = cor[8755];ctx.fillRect(550,870, 10, 10) ctx.fillStyle = cor[8756];ctx.fillRect(560,870, 10, 10) ctx.fillStyle = cor[8757];ctx.fillRect(570,870, 10, 10) ctx.fillStyle = cor[8758];ctx.fillRect(580,870, 10, 10) ctx.fillStyle = cor[8759];ctx.fillRect(590,870, 10, 10) ctx.fillStyle = cor[8760];ctx.fillRect(600,870, 10, 10) ctx.fillStyle = cor[8761];ctx.fillRect(610,870, 10, 10) ctx.fillStyle = cor[8762];ctx.fillRect(620,870, 10, 10) ctx.fillStyle = cor[8763];ctx.fillRect(630,870, 10, 10) ctx.fillStyle = cor[8764];ctx.fillRect(640,870, 10, 10) ctx.fillStyle = cor[8765];ctx.fillRect(650,870, 10, 10) ctx.fillStyle = cor[8766];ctx.fillRect(660,870, 10, 10) ctx.fillStyle = cor[8767];ctx.fillRect(670,870, 10, 10) ctx.fillStyle = cor[8768];ctx.fillRect(680,870, 10, 10) ctx.fillStyle = cor[8769];ctx.fillRect(690,870, 10, 10) ctx.fillStyle = cor[8770];ctx.fillRect(700,870, 10, 10) ctx.fillStyle = cor[8771];ctx.fillRect(710,870, 10, 10) ctx.fillStyle = cor[8772];ctx.fillRect(720,870, 10, 10) ctx.fillStyle = cor[8773];ctx.fillRect(730,870, 10, 10) ctx.fillStyle = cor[8774];ctx.fillRect(740,870, 10, 10) ctx.fillStyle = cor[8775];ctx.fillRect(750,870, 10, 10) ctx.fillStyle = cor[8776];ctx.fillRect(760,870, 10, 10) ctx.fillStyle = cor[8777];ctx.fillRect(770,870, 10, 10) ctx.fillStyle = cor[8778];ctx.fillRect(780,870, 10, 10) ctx.fillStyle = cor[8779];ctx.fillRect(790,870, 10, 10) ctx.fillStyle = cor[8780];ctx.fillRect(800,870, 10, 10) ctx.fillStyle = cor[8781];ctx.fillRect(810,870, 10, 10) ctx.fillStyle = cor[8782];ctx.fillRect(820,870, 10, 10) ctx.fillStyle = cor[8783];ctx.fillRect(830,870, 10, 10) ctx.fillStyle = cor[8784];ctx.fillRect(840,870, 10, 10) ctx.fillStyle = cor[8785];ctx.fillRect(850,870, 10, 10) ctx.fillStyle = cor[8786];ctx.fillRect(860,870, 10, 10) ctx.fillStyle = cor[8787];ctx.fillRect(870,870, 10, 10) ctx.fillStyle = cor[8788];ctx.fillRect(880,870, 10, 10) ctx.fillStyle = cor[8789];ctx.fillRect(890,870, 10, 10) ctx.fillStyle = cor[8790];ctx.fillRect(900,870, 10, 10) ctx.fillStyle = cor[8791];ctx.fillRect(910,870, 10, 10) ctx.fillStyle = cor[8792];ctx.fillRect(920,870, 10, 10) ctx.fillStyle = cor[8793];ctx.fillRect(930,870, 10, 10) ctx.fillStyle = cor[8794];ctx.fillRect(940,870, 10, 10) ctx.fillStyle = cor[8795];ctx.fillRect(950,870, 10, 10) ctx.fillStyle = cor[8796];ctx.fillRect(960,870, 10, 10) ctx.fillStyle = cor[8797];ctx.fillRect(970,870, 10, 10) ctx.fillStyle = cor[8798];ctx.fillRect(980,870, 10, 10) ctx.fillStyle = cor[8799];ctx.fillRect(990,870, 10, 10) ctx.fillStyle = cor[8800];ctx.fillRect(0,880, 10, 10) ctx.fillStyle = cor[8801];ctx.fillRect(10,880, 10, 10) ctx.fillStyle = cor[8802];ctx.fillRect(20,880, 10, 10) ctx.fillStyle = cor[8803];ctx.fillRect(30,880, 10, 10) ctx.fillStyle = cor[8804];ctx.fillRect(40,880, 10, 10) ctx.fillStyle = cor[8805];ctx.fillRect(50,880, 10, 10) ctx.fillStyle = cor[8806];ctx.fillRect(60,880, 10, 10) ctx.fillStyle = cor[8807];ctx.fillRect(70,880, 10, 10) ctx.fillStyle = cor[8808];ctx.fillRect(80,880, 10, 10) ctx.fillStyle = cor[8809];ctx.fillRect(90,880, 10, 10) ctx.fillStyle = cor[8810];ctx.fillRect(100,880, 10, 10) ctx.fillStyle = cor[8811];ctx.fillRect(110,880, 10, 10) ctx.fillStyle = cor[8812];ctx.fillRect(120,880, 10, 10) ctx.fillStyle = cor[8813];ctx.fillRect(130,880, 10, 10) ctx.fillStyle = cor[8814];ctx.fillRect(140,880, 10, 10) ctx.fillStyle = cor[8815];ctx.fillRect(150,880, 10, 10) ctx.fillStyle = cor[8816];ctx.fillRect(160,880, 10, 10) ctx.fillStyle = cor[8817];ctx.fillRect(170,880, 10, 10) ctx.fillStyle = cor[8818];ctx.fillRect(180,880, 10, 10) ctx.fillStyle = cor[8819];ctx.fillRect(190,880, 10, 10) ctx.fillStyle = cor[8820];ctx.fillRect(200,880, 10, 10) ctx.fillStyle = cor[8821];ctx.fillRect(210,880, 10, 10) ctx.fillStyle = cor[8822];ctx.fillRect(220,880, 10, 10) ctx.fillStyle = cor[8823];ctx.fillRect(230,880, 10, 10) ctx.fillStyle = cor[8824];ctx.fillRect(240,880, 10, 10) ctx.fillStyle = cor[8825];ctx.fillRect(250,880, 10, 10) ctx.fillStyle = cor[8826];ctx.fillRect(260,880, 10, 10) ctx.fillStyle = cor[8827];ctx.fillRect(270,880, 10, 10) ctx.fillStyle = cor[8828];ctx.fillRect(280,880, 10, 10) ctx.fillStyle = cor[8829];ctx.fillRect(290,880, 10, 10) ctx.fillStyle = cor[8830];ctx.fillRect(300,880, 10, 10) ctx.fillStyle = cor[8831];ctx.fillRect(310,880, 10, 10) ctx.fillStyle = cor[8832];ctx.fillRect(320,880, 10, 10) ctx.fillStyle = cor[8833];ctx.fillRect(330,880, 10, 10) ctx.fillStyle = cor[8834];ctx.fillRect(340,880, 10, 10) ctx.fillStyle = cor[8835];ctx.fillRect(350,880, 10, 10) ctx.fillStyle = cor[8836];ctx.fillRect(360,880, 10, 10) ctx.fillStyle = cor[8837];ctx.fillRect(370,880, 10, 10) ctx.fillStyle = cor[8838];ctx.fillRect(380,880, 10, 10) ctx.fillStyle = cor[8839];ctx.fillRect(390,880, 10, 10) ctx.fillStyle = cor[8840];ctx.fillRect(400,880, 10, 10) ctx.fillStyle = cor[8841];ctx.fillRect(410,880, 10, 10) ctx.fillStyle = cor[8842];ctx.fillRect(420,880, 10, 10) ctx.fillStyle = cor[8843];ctx.fillRect(430,880, 10, 10) ctx.fillStyle = cor[8844];ctx.fillRect(440,880, 10, 10) ctx.fillStyle = cor[8845];ctx.fillRect(450,880, 10, 10) ctx.fillStyle = cor[8846];ctx.fillRect(460,880, 10, 10) ctx.fillStyle = cor[8847];ctx.fillRect(470,880, 10, 10) ctx.fillStyle = cor[8848];ctx.fillRect(480,880, 10, 10) ctx.fillStyle = cor[8849];ctx.fillRect(490,880, 10, 10) ctx.fillStyle = cor[8850];ctx.fillRect(500,880, 10, 10) ctx.fillStyle = cor[8851];ctx.fillRect(510,880, 10, 10) ctx.fillStyle = cor[8852];ctx.fillRect(520,880, 10, 10) ctx.fillStyle = cor[8853];ctx.fillRect(530,880, 10, 10) ctx.fillStyle = cor[8854];ctx.fillRect(540,880, 10, 10) ctx.fillStyle = cor[8855];ctx.fillRect(550,880, 10, 10) ctx.fillStyle = cor[8856];ctx.fillRect(560,880, 10, 10) ctx.fillStyle = cor[8857];ctx.fillRect(570,880, 10, 10) ctx.fillStyle = cor[8858];ctx.fillRect(580,880, 10, 10) ctx.fillStyle = cor[8859];ctx.fillRect(590,880, 10, 10) ctx.fillStyle = cor[8860];ctx.fillRect(600,880, 10, 10) ctx.fillStyle = cor[8861];ctx.fillRect(610,880, 10, 10) ctx.fillStyle = cor[8862];ctx.fillRect(620,880, 10, 10) ctx.fillStyle = cor[8863];ctx.fillRect(630,880, 10, 10) ctx.fillStyle = cor[8864];ctx.fillRect(640,880, 10, 10) ctx.fillStyle = cor[8865];ctx.fillRect(650,880, 10, 10) ctx.fillStyle = cor[8866];ctx.fillRect(660,880, 10, 10) ctx.fillStyle = cor[8867];ctx.fillRect(670,880, 10, 10) ctx.fillStyle = cor[8868];ctx.fillRect(680,880, 10, 10) ctx.fillStyle = cor[8869];ctx.fillRect(690,880, 10, 10) ctx.fillStyle = cor[8870];ctx.fillRect(700,880, 10, 10) ctx.fillStyle = cor[8871];ctx.fillRect(710,880, 10, 10) ctx.fillStyle = cor[8872];ctx.fillRect(720,880, 10, 10) ctx.fillStyle = cor[8873];ctx.fillRect(730,880, 10, 10) ctx.fillStyle = cor[8874];ctx.fillRect(740,880, 10, 10) ctx.fillStyle = cor[8875];ctx.fillRect(750,880, 10, 10) ctx.fillStyle = cor[8876];ctx.fillRect(760,880, 10, 10) ctx.fillStyle = cor[8877];ctx.fillRect(770,880, 10, 10) ctx.fillStyle = cor[8878];ctx.fillRect(780,880, 10, 10) ctx.fillStyle = cor[8879];ctx.fillRect(790,880, 10, 10) ctx.fillStyle = cor[8880];ctx.fillRect(800,880, 10, 10) ctx.fillStyle = cor[8881];ctx.fillRect(810,880, 10, 10) ctx.fillStyle = cor[8882];ctx.fillRect(820,880, 10, 10) ctx.fillStyle = cor[8883];ctx.fillRect(830,880, 10, 10) ctx.fillStyle = cor[8884];ctx.fillRect(840,880, 10, 10) ctx.fillStyle = cor[8885];ctx.fillRect(850,880, 10, 10) ctx.fillStyle = cor[8886];ctx.fillRect(860,880, 10, 10) ctx.fillStyle = cor[8887];ctx.fillRect(870,880, 10, 10) ctx.fillStyle = cor[8888];ctx.fillRect(880,880, 10, 10) ctx.fillStyle = cor[8889];ctx.fillRect(890,880, 10, 10) ctx.fillStyle = cor[8890];ctx.fillRect(900,880, 10, 10) ctx.fillStyle = cor[8891];ctx.fillRect(910,880, 10, 10) ctx.fillStyle = cor[8892];ctx.fillRect(920,880, 10, 10) ctx.fillStyle = cor[8893];ctx.fillRect(930,880, 10, 10) ctx.fillStyle = cor[8894];ctx.fillRect(940,880, 10, 10) ctx.fillStyle = cor[8895];ctx.fillRect(950,880, 10, 10) ctx.fillStyle = cor[8896];ctx.fillRect(960,880, 10, 10) ctx.fillStyle = cor[8897];ctx.fillRect(970,880, 10, 10) ctx.fillStyle = cor[8898];ctx.fillRect(980,880, 10, 10) ctx.fillStyle = cor[8899];ctx.fillRect(990,880, 10, 10) ctx.fillStyle = cor[8900];ctx.fillRect(0,890, 10, 10) ctx.fillStyle = cor[8901];ctx.fillRect(10,890, 10, 10) ctx.fillStyle = cor[8902];ctx.fillRect(20,890, 10, 10) ctx.fillStyle = cor[8903];ctx.fillRect(30,890, 10, 10) ctx.fillStyle = cor[8904];ctx.fillRect(40,890, 10, 10) ctx.fillStyle = cor[8905];ctx.fillRect(50,890, 10, 10) ctx.fillStyle = cor[8906];ctx.fillRect(60,890, 10, 10) ctx.fillStyle = cor[8907];ctx.fillRect(70,890, 10, 10) ctx.fillStyle = cor[8908];ctx.fillRect(80,890, 10, 10) ctx.fillStyle = cor[8909];ctx.fillRect(90,890, 10, 10) ctx.fillStyle = cor[8910];ctx.fillRect(100,890, 10, 10) ctx.fillStyle = cor[8911];ctx.fillRect(110,890, 10, 10) ctx.fillStyle = cor[8912];ctx.fillRect(120,890, 10, 10) ctx.fillStyle = cor[8913];ctx.fillRect(130,890, 10, 10) ctx.fillStyle = cor[8914];ctx.fillRect(140,890, 10, 10) ctx.fillStyle = cor[8915];ctx.fillRect(150,890, 10, 10) ctx.fillStyle = cor[8916];ctx.fillRect(160,890, 10, 10) ctx.fillStyle = cor[8917];ctx.fillRect(170,890, 10, 10) ctx.fillStyle = cor[8918];ctx.fillRect(180,890, 10, 10) ctx.fillStyle = cor[8919];ctx.fillRect(190,890, 10, 10) ctx.fillStyle = cor[8920];ctx.fillRect(200,890, 10, 10) ctx.fillStyle = cor[8921];ctx.fillRect(210,890, 10, 10) ctx.fillStyle = cor[8922];ctx.fillRect(220,890, 10, 10) ctx.fillStyle = cor[8923];ctx.fillRect(230,890, 10, 10) ctx.fillStyle = cor[8924];ctx.fillRect(240,890, 10, 10) ctx.fillStyle = cor[8925];ctx.fillRect(250,890, 10, 10) ctx.fillStyle = cor[8926];ctx.fillRect(260,890, 10, 10) ctx.fillStyle = cor[8927];ctx.fillRect(270,890, 10, 10) ctx.fillStyle = cor[8928];ctx.fillRect(280,890, 10, 10) ctx.fillStyle = cor[8929];ctx.fillRect(290,890, 10, 10) ctx.fillStyle = cor[8930];ctx.fillRect(300,890, 10, 10) ctx.fillStyle = cor[8931];ctx.fillRect(310,890, 10, 10) ctx.fillStyle = cor[8932];ctx.fillRect(320,890, 10, 10) ctx.fillStyle = cor[8933];ctx.fillRect(330,890, 10, 10) ctx.fillStyle = cor[8934];ctx.fillRect(340,890, 10, 10) ctx.fillStyle = cor[8935];ctx.fillRect(350,890, 10, 10) ctx.fillStyle = cor[8936];ctx.fillRect(360,890, 10, 10) ctx.fillStyle = cor[8937];ctx.fillRect(370,890, 10, 10) ctx.fillStyle = cor[8938];ctx.fillRect(380,890, 10, 10) ctx.fillStyle = cor[8939];ctx.fillRect(390,890, 10, 10) ctx.fillStyle = cor[8940];ctx.fillRect(400,890, 10, 10) ctx.fillStyle = cor[8941];ctx.fillRect(410,890, 10, 10) ctx.fillStyle = cor[8942];ctx.fillRect(420,890, 10, 10) ctx.fillStyle = cor[8943];ctx.fillRect(430,890, 10, 10) ctx.fillStyle = cor[8944];ctx.fillRect(440,890, 10, 10) ctx.fillStyle = cor[8945];ctx.fillRect(450,890, 10, 10) ctx.fillStyle = cor[8946];ctx.fillRect(460,890, 10, 10) ctx.fillStyle = cor[8947];ctx.fillRect(470,890, 10, 10) ctx.fillStyle = cor[8948];ctx.fillRect(480,890, 10, 10) ctx.fillStyle = cor[8949];ctx.fillRect(490,890, 10, 10) ctx.fillStyle = cor[8950];ctx.fillRect(500,890, 10, 10) ctx.fillStyle = cor[8951];ctx.fillRect(510,890, 10, 10) ctx.fillStyle = cor[8952];ctx.fillRect(520,890, 10, 10) ctx.fillStyle = cor[8953];ctx.fillRect(530,890, 10, 10) ctx.fillStyle = cor[8954];ctx.fillRect(540,890, 10, 10) ctx.fillStyle = cor[8955];ctx.fillRect(550,890, 10, 10) ctx.fillStyle = cor[8956];ctx.fillRect(560,890, 10, 10) ctx.fillStyle = cor[8957];ctx.fillRect(570,890, 10, 10) ctx.fillStyle = cor[8958];ctx.fillRect(580,890, 10, 10) ctx.fillStyle = cor[8959];ctx.fillRect(590,890, 10, 10) ctx.fillStyle = cor[8960];ctx.fillRect(600,890, 10, 10) ctx.fillStyle = cor[8961];ctx.fillRect(610,890, 10, 10) ctx.fillStyle = cor[8962];ctx.fillRect(620,890, 10, 10) ctx.fillStyle = cor[8963];ctx.fillRect(630,890, 10, 10) ctx.fillStyle = cor[8964];ctx.fillRect(640,890, 10, 10) ctx.fillStyle = cor[8965];ctx.fillRect(650,890, 10, 10) ctx.fillStyle = cor[8966];ctx.fillRect(660,890, 10, 10) ctx.fillStyle = cor[8967];ctx.fillRect(670,890, 10, 10) ctx.fillStyle = cor[8968];ctx.fillRect(680,890, 10, 10) ctx.fillStyle = cor[8969];ctx.fillRect(690,890, 10, 10) ctx.fillStyle = cor[8970];ctx.fillRect(700,890, 10, 10) ctx.fillStyle = cor[8971];ctx.fillRect(710,890, 10, 10) ctx.fillStyle = cor[8972];ctx.fillRect(720,890, 10, 10) ctx.fillStyle = cor[8973];ctx.fillRect(730,890, 10, 10) ctx.fillStyle = cor[8974];ctx.fillRect(740,890, 10, 10) ctx.fillStyle = cor[8975];ctx.fillRect(750,890, 10, 10) ctx.fillStyle = cor[8976];ctx.fillRect(760,890, 10, 10) ctx.fillStyle = cor[8977];ctx.fillRect(770,890, 10, 10) ctx.fillStyle = cor[8978];ctx.fillRect(780,890, 10, 10) ctx.fillStyle = cor[8979];ctx.fillRect(790,890, 10, 10) ctx.fillStyle = cor[8980];ctx.fillRect(800,890, 10, 10) ctx.fillStyle = cor[8981];ctx.fillRect(810,890, 10, 10) ctx.fillStyle = cor[8982];ctx.fillRect(820,890, 10, 10) ctx.fillStyle = cor[8983];ctx.fillRect(830,890, 10, 10) ctx.fillStyle = cor[8984];ctx.fillRect(840,890, 10, 10) ctx.fillStyle = cor[8985];ctx.fillRect(850,890, 10, 10) ctx.fillStyle = cor[8986];ctx.fillRect(860,890, 10, 10) ctx.fillStyle = cor[8987];ctx.fillRect(870,890, 10, 10) ctx.fillStyle = cor[8988];ctx.fillRect(880,890, 10, 10) ctx.fillStyle = cor[8989];ctx.fillRect(890,890, 10, 10) ctx.fillStyle = cor[8990];ctx.fillRect(900,890, 10, 10) ctx.fillStyle = cor[8991];ctx.fillRect(910,890, 10, 10) ctx.fillStyle = cor[8992];ctx.fillRect(920,890, 10, 10) ctx.fillStyle = cor[8993];ctx.fillRect(930,890, 10, 10) ctx.fillStyle = cor[8994];ctx.fillRect(940,890, 10, 10) ctx.fillStyle = cor[8995];ctx.fillRect(950,890, 10, 10) ctx.fillStyle = cor[8996];ctx.fillRect(960,890, 10, 10) ctx.fillStyle = cor[8997];ctx.fillRect(970,890, 10, 10) ctx.fillStyle = cor[8998];ctx.fillRect(980,890, 10, 10) ctx.fillStyle = cor[8999];ctx.fillRect(990,890, 10, 10) ctx.fillStyle = cor[9000];ctx.fillRect(0,900, 10, 10) ctx.fillStyle = cor[9001];ctx.fillRect(10,900, 10, 10) ctx.fillStyle = cor[9002];ctx.fillRect(20,900, 10, 10) ctx.fillStyle = cor[9003];ctx.fillRect(30,900, 10, 10) ctx.fillStyle = cor[9004];ctx.fillRect(40,900, 10, 10) ctx.fillStyle = cor[9005];ctx.fillRect(50,900, 10, 10) ctx.fillStyle = cor[9006];ctx.fillRect(60,900, 10, 10) ctx.fillStyle = cor[9007];ctx.fillRect(70,900, 10, 10) ctx.fillStyle = cor[9008];ctx.fillRect(80,900, 10, 10) ctx.fillStyle = cor[9009];ctx.fillRect(90,900, 10, 10) ctx.fillStyle = cor[9010];ctx.fillRect(100,900, 10, 10) ctx.fillStyle = cor[9011];ctx.fillRect(110,900, 10, 10) ctx.fillStyle = cor[9012];ctx.fillRect(120,900, 10, 10) ctx.fillStyle = cor[9013];ctx.fillRect(130,900, 10, 10) ctx.fillStyle = cor[9014];ctx.fillRect(140,900, 10, 10) ctx.fillStyle = cor[9015];ctx.fillRect(150,900, 10, 10) ctx.fillStyle = cor[9016];ctx.fillRect(160,900, 10, 10) ctx.fillStyle = cor[9017];ctx.fillRect(170,900, 10, 10) ctx.fillStyle = cor[9018];ctx.fillRect(180,900, 10, 10) ctx.fillStyle = cor[9019];ctx.fillRect(190,900, 10, 10) ctx.fillStyle = cor[9020];ctx.fillRect(200,900, 10, 10) ctx.fillStyle = cor[9021];ctx.fillRect(210,900, 10, 10) ctx.fillStyle = cor[9022];ctx.fillRect(220,900, 10, 10) ctx.fillStyle = cor[9023];ctx.fillRect(230,900, 10, 10) ctx.fillStyle = cor[9024];ctx.fillRect(240,900, 10, 10) ctx.fillStyle = cor[9025];ctx.fillRect(250,900, 10, 10) ctx.fillStyle = cor[9026];ctx.fillRect(260,900, 10, 10) ctx.fillStyle = cor[9027];ctx.fillRect(270,900, 10, 10) ctx.fillStyle = cor[9028];ctx.fillRect(280,900, 10, 10) ctx.fillStyle = cor[9029];ctx.fillRect(290,900, 10, 10) ctx.fillStyle = cor[9030];ctx.fillRect(300,900, 10, 10) ctx.fillStyle = cor[9031];ctx.fillRect(310,900, 10, 10) ctx.fillStyle = cor[9032];ctx.fillRect(320,900, 10, 10) ctx.fillStyle = cor[9033];ctx.fillRect(330,900, 10, 10) ctx.fillStyle = cor[9034];ctx.fillRect(340,900, 10, 10) ctx.fillStyle = cor[9035];ctx.fillRect(350,900, 10, 10) ctx.fillStyle = cor[9036];ctx.fillRect(360,900, 10, 10) ctx.fillStyle = cor[9037];ctx.fillRect(370,900, 10, 10) ctx.fillStyle = cor[9038];ctx.fillRect(380,900, 10, 10) ctx.fillStyle = cor[9039];ctx.fillRect(390,900, 10, 10) ctx.fillStyle = cor[9040];ctx.fillRect(400,900, 10, 10) ctx.fillStyle = cor[9041];ctx.fillRect(410,900, 10, 10) ctx.fillStyle = cor[9042];ctx.fillRect(420,900, 10, 10) ctx.fillStyle = cor[9043];ctx.fillRect(430,900, 10, 10) ctx.fillStyle = cor[9044];ctx.fillRect(440,900, 10, 10) ctx.fillStyle = cor[9045];ctx.fillRect(450,900, 10, 10) ctx.fillStyle = cor[9046];ctx.fillRect(460,900, 10, 10) ctx.fillStyle = cor[9047];ctx.fillRect(470,900, 10, 10) ctx.fillStyle = cor[9048];ctx.fillRect(480,900, 10, 10) ctx.fillStyle = cor[9049];ctx.fillRect(490,900, 10, 10) ctx.fillStyle = cor[9050];ctx.fillRect(500,900, 10, 10) ctx.fillStyle = cor[9051];ctx.fillRect(510,900, 10, 10) ctx.fillStyle = cor[9052];ctx.fillRect(520,900, 10, 10) ctx.fillStyle = cor[9053];ctx.fillRect(530,900, 10, 10) ctx.fillStyle = cor[9054];ctx.fillRect(540,900, 10, 10) ctx.fillStyle = cor[9055];ctx.fillRect(550,900, 10, 10) ctx.fillStyle = cor[9056];ctx.fillRect(560,900, 10, 10) ctx.fillStyle = cor[9057];ctx.fillRect(570,900, 10, 10) ctx.fillStyle = cor[9058];ctx.fillRect(580,900, 10, 10) ctx.fillStyle = cor[9059];ctx.fillRect(590,900, 10, 10) ctx.fillStyle = cor[9060];ctx.fillRect(600,900, 10, 10) ctx.fillStyle = cor[9061];ctx.fillRect(610,900, 10, 10) ctx.fillStyle = cor[9062];ctx.fillRect(620,900, 10, 10) ctx.fillStyle = cor[9063];ctx.fillRect(630,900, 10, 10) ctx.fillStyle = cor[9064];ctx.fillRect(640,900, 10, 10) ctx.fillStyle = cor[9065];ctx.fillRect(650,900, 10, 10) ctx.fillStyle = cor[9066];ctx.fillRect(660,900, 10, 10) ctx.fillStyle = cor[9067];ctx.fillRect(670,900, 10, 10) ctx.fillStyle = cor[9068];ctx.fillRect(680,900, 10, 10) ctx.fillStyle = cor[9069];ctx.fillRect(690,900, 10, 10) ctx.fillStyle = cor[9070];ctx.fillRect(700,900, 10, 10) ctx.fillStyle = cor[9071];ctx.fillRect(710,900, 10, 10) ctx.fillStyle = cor[9072];ctx.fillRect(720,900, 10, 10) ctx.fillStyle = cor[9073];ctx.fillRect(730,900, 10, 10) ctx.fillStyle = cor[9074];ctx.fillRect(740,900, 10, 10) ctx.fillStyle = cor[9075];ctx.fillRect(750,900, 10, 10) ctx.fillStyle = cor[9076];ctx.fillRect(760,900, 10, 10) ctx.fillStyle = cor[9077];ctx.fillRect(770,900, 10, 10) ctx.fillStyle = cor[9078];ctx.fillRect(780,900, 10, 10) ctx.fillStyle = cor[9079];ctx.fillRect(790,900, 10, 10) ctx.fillStyle = cor[9080];ctx.fillRect(800,900, 10, 10) ctx.fillStyle = cor[9081];ctx.fillRect(810,900, 10, 10) ctx.fillStyle = cor[9082];ctx.fillRect(820,900, 10, 10) ctx.fillStyle = cor[9083];ctx.fillRect(830,900, 10, 10) ctx.fillStyle = cor[9084];ctx.fillRect(840,900, 10, 10) ctx.fillStyle = cor[9085];ctx.fillRect(850,900, 10, 10) ctx.fillStyle = cor[9086];ctx.fillRect(860,900, 10, 10) ctx.fillStyle = cor[9087];ctx.fillRect(870,900, 10, 10) ctx.fillStyle = cor[9088];ctx.fillRect(880,900, 10, 10) ctx.fillStyle = cor[9089];ctx.fillRect(890,900, 10, 10) ctx.fillStyle = cor[9090];ctx.fillRect(900,900, 10, 10) ctx.fillStyle = cor[9091];ctx.fillRect(910,900, 10, 10) ctx.fillStyle = cor[9092];ctx.fillRect(920,900, 10, 10) ctx.fillStyle = cor[9093];ctx.fillRect(930,900, 10, 10) ctx.fillStyle = cor[9094];ctx.fillRect(940,900, 10, 10) ctx.fillStyle = cor[9095];ctx.fillRect(950,900, 10, 10) ctx.fillStyle = cor[9096];ctx.fillRect(960,900, 10, 10) ctx.fillStyle = cor[9097];ctx.fillRect(970,900, 10, 10) ctx.fillStyle = cor[9098];ctx.fillRect(980,900, 10, 10) ctx.fillStyle = cor[9099];ctx.fillRect(990,900, 10, 10) ctx.fillStyle = cor[9100];ctx.fillRect(0,910, 10, 10) ctx.fillStyle = cor[9101];ctx.fillRect(10,910, 10, 10) ctx.fillStyle = cor[9102];ctx.fillRect(20,910, 10, 10) ctx.fillStyle = cor[9103];ctx.fillRect(30,910, 10, 10) ctx.fillStyle = cor[9104];ctx.fillRect(40,910, 10, 10) ctx.fillStyle = cor[9105];ctx.fillRect(50,910, 10, 10) ctx.fillStyle = cor[9106];ctx.fillRect(60,910, 10, 10) ctx.fillStyle = cor[9107];ctx.fillRect(70,910, 10, 10) ctx.fillStyle = cor[9108];ctx.fillRect(80,910, 10, 10) ctx.fillStyle = cor[9109];ctx.fillRect(90,910, 10, 10) ctx.fillStyle = cor[9110];ctx.fillRect(100,910, 10, 10) ctx.fillStyle = cor[9111];ctx.fillRect(110,910, 10, 10) ctx.fillStyle = cor[9112];ctx.fillRect(120,910, 10, 10) ctx.fillStyle = cor[9113];ctx.fillRect(130,910, 10, 10) ctx.fillStyle = cor[9114];ctx.fillRect(140,910, 10, 10) ctx.fillStyle = cor[9115];ctx.fillRect(150,910, 10, 10) ctx.fillStyle = cor[9116];ctx.fillRect(160,910, 10, 10) ctx.fillStyle = cor[9117];ctx.fillRect(170,910, 10, 10) ctx.fillStyle = cor[9118];ctx.fillRect(180,910, 10, 10) ctx.fillStyle = cor[9119];ctx.fillRect(190,910, 10, 10) ctx.fillStyle = cor[9120];ctx.fillRect(200,910, 10, 10) ctx.fillStyle = cor[9121];ctx.fillRect(210,910, 10, 10) ctx.fillStyle = cor[9122];ctx.fillRect(220,910, 10, 10) ctx.fillStyle = cor[9123];ctx.fillRect(230,910, 10, 10) ctx.fillStyle = cor[9124];ctx.fillRect(240,910, 10, 10) ctx.fillStyle = cor[9125];ctx.fillRect(250,910, 10, 10) ctx.fillStyle = cor[9126];ctx.fillRect(260,910, 10, 10) ctx.fillStyle = cor[9127];ctx.fillRect(270,910, 10, 10) ctx.fillStyle = cor[9128];ctx.fillRect(280,910, 10, 10) ctx.fillStyle = cor[9129];ctx.fillRect(290,910, 10, 10) ctx.fillStyle = cor[9130];ctx.fillRect(300,910, 10, 10) ctx.fillStyle = cor[9131];ctx.fillRect(310,910, 10, 10) ctx.fillStyle = cor[9132];ctx.fillRect(320,910, 10, 10) ctx.fillStyle = cor[9133];ctx.fillRect(330,910, 10, 10) ctx.fillStyle = cor[9134];ctx.fillRect(340,910, 10, 10) ctx.fillStyle = cor[9135];ctx.fillRect(350,910, 10, 10) ctx.fillStyle = cor[9136];ctx.fillRect(360,910, 10, 10) ctx.fillStyle = cor[9137];ctx.fillRect(370,910, 10, 10) ctx.fillStyle = cor[9138];ctx.fillRect(380,910, 10, 10) ctx.fillStyle = cor[9139];ctx.fillRect(390,910, 10, 10) ctx.fillStyle = cor[9140];ctx.fillRect(400,910, 10, 10) ctx.fillStyle = cor[9141];ctx.fillRect(410,910, 10, 10) ctx.fillStyle = cor[9142];ctx.fillRect(420,910, 10, 10) ctx.fillStyle = cor[9143];ctx.fillRect(430,910, 10, 10) ctx.fillStyle = cor[9144];ctx.fillRect(440,910, 10, 10) ctx.fillStyle = cor[9145];ctx.fillRect(450,910, 10, 10) ctx.fillStyle = cor[9146];ctx.fillRect(460,910, 10, 10) ctx.fillStyle = cor[9147];ctx.fillRect(470,910, 10, 10) ctx.fillStyle = cor[9148];ctx.fillRect(480,910, 10, 10) ctx.fillStyle = cor[9149];ctx.fillRect(490,910, 10, 10) ctx.fillStyle = cor[9150];ctx.fillRect(500,910, 10, 10) ctx.fillStyle = cor[9151];ctx.fillRect(510,910, 10, 10) ctx.fillStyle = cor[9152];ctx.fillRect(520,910, 10, 10) ctx.fillStyle = cor[9153];ctx.fillRect(530,910, 10, 10) ctx.fillStyle = cor[9154];ctx.fillRect(540,910, 10, 10) ctx.fillStyle = cor[9155];ctx.fillRect(550,910, 10, 10) ctx.fillStyle = cor[9156];ctx.fillRect(560,910, 10, 10) ctx.fillStyle = cor[9157];ctx.fillRect(570,910, 10, 10) ctx.fillStyle = cor[9158];ctx.fillRect(580,910, 10, 10) ctx.fillStyle = cor[9159];ctx.fillRect(590,910, 10, 10) ctx.fillStyle = cor[9160];ctx.fillRect(600,910, 10, 10) ctx.fillStyle = cor[9161];ctx.fillRect(610,910, 10, 10) ctx.fillStyle = cor[9162];ctx.fillRect(620,910, 10, 10) ctx.fillStyle = cor[9163];ctx.fillRect(630,910, 10, 10) ctx.fillStyle = cor[9164];ctx.fillRect(640,910, 10, 10) ctx.fillStyle = cor[9165];ctx.fillRect(650,910, 10, 10) ctx.fillStyle = cor[9166];ctx.fillRect(660,910, 10, 10) ctx.fillStyle = cor[9167];ctx.fillRect(670,910, 10, 10) ctx.fillStyle = cor[9168];ctx.fillRect(680,910, 10, 10) ctx.fillStyle = cor[9169];ctx.fillRect(690,910, 10, 10) ctx.fillStyle = cor[9170];ctx.fillRect(700,910, 10, 10) ctx.fillStyle = cor[9171];ctx.fillRect(710,910, 10, 10) ctx.fillStyle = cor[9172];ctx.fillRect(720,910, 10, 10) ctx.fillStyle = cor[9173];ctx.fillRect(730,910, 10, 10) ctx.fillStyle = cor[9174];ctx.fillRect(740,910, 10, 10) ctx.fillStyle = cor[9175];ctx.fillRect(750,910, 10, 10) ctx.fillStyle = cor[9176];ctx.fillRect(760,910, 10, 10) ctx.fillStyle = cor[9177];ctx.fillRect(770,910, 10, 10) ctx.fillStyle = cor[9178];ctx.fillRect(780,910, 10, 10) ctx.fillStyle = cor[9179];ctx.fillRect(790,910, 10, 10) ctx.fillStyle = cor[9180];ctx.fillRect(800,910, 10, 10) ctx.fillStyle = cor[9181];ctx.fillRect(810,910, 10, 10) ctx.fillStyle = cor[9182];ctx.fillRect(820,910, 10, 10) ctx.fillStyle = cor[9183];ctx.fillRect(830,910, 10, 10) ctx.fillStyle = cor[9184];ctx.fillRect(840,910, 10, 10) ctx.fillStyle = cor[9185];ctx.fillRect(850,910, 10, 10) ctx.fillStyle = cor[9186];ctx.fillRect(860,910, 10, 10) ctx.fillStyle = cor[9187];ctx.fillRect(870,910, 10, 10) ctx.fillStyle = cor[9188];ctx.fillRect(880,910, 10, 10) ctx.fillStyle = cor[9189];ctx.fillRect(890,910, 10, 10) ctx.fillStyle = cor[9190];ctx.fillRect(900,910, 10, 10) ctx.fillStyle = cor[9191];ctx.fillRect(910,910, 10, 10) ctx.fillStyle = cor[9192];ctx.fillRect(920,910, 10, 10) ctx.fillStyle = cor[9193];ctx.fillRect(930,910, 10, 10) ctx.fillStyle = cor[9194];ctx.fillRect(940,910, 10, 10) ctx.fillStyle = cor[9195];ctx.fillRect(950,910, 10, 10) ctx.fillStyle = cor[9196];ctx.fillRect(960,910, 10, 10) ctx.fillStyle = cor[9197];ctx.fillRect(970,910, 10, 10) ctx.fillStyle = cor[9198];ctx.fillRect(980,910, 10, 10) ctx.fillStyle = cor[9199];ctx.fillRect(990,910, 10, 10) ctx.fillStyle = cor[9200];ctx.fillRect(0,920, 10, 10) ctx.fillStyle = cor[9201];ctx.fillRect(10,920, 10, 10) ctx.fillStyle = cor[9202];ctx.fillRect(20,920, 10, 10) ctx.fillStyle = cor[9203];ctx.fillRect(30,920, 10, 10) ctx.fillStyle = cor[9204];ctx.fillRect(40,920, 10, 10) ctx.fillStyle = cor[9205];ctx.fillRect(50,920, 10, 10) ctx.fillStyle = cor[9206];ctx.fillRect(60,920, 10, 10) ctx.fillStyle = cor[9207];ctx.fillRect(70,920, 10, 10) ctx.fillStyle = cor[9208];ctx.fillRect(80,920, 10, 10) ctx.fillStyle = cor[9209];ctx.fillRect(90,920, 10, 10) ctx.fillStyle = cor[9210];ctx.fillRect(100,920, 10, 10) ctx.fillStyle = cor[9211];ctx.fillRect(110,920, 10, 10) ctx.fillStyle = cor[9212];ctx.fillRect(120,920, 10, 10) ctx.fillStyle = cor[9213];ctx.fillRect(130,920, 10, 10) ctx.fillStyle = cor[9214];ctx.fillRect(140,920, 10, 10) ctx.fillStyle = cor[9215];ctx.fillRect(150,920, 10, 10) ctx.fillStyle = cor[9216];ctx.fillRect(160,920, 10, 10) ctx.fillStyle = cor[9217];ctx.fillRect(170,920, 10, 10) ctx.fillStyle = cor[9218];ctx.fillRect(180,920, 10, 10) ctx.fillStyle = cor[9219];ctx.fillRect(190,920, 10, 10) ctx.fillStyle = cor[9220];ctx.fillRect(200,920, 10, 10) ctx.fillStyle = cor[9221];ctx.fillRect(210,920, 10, 10) ctx.fillStyle = cor[9222];ctx.fillRect(220,920, 10, 10) ctx.fillStyle = cor[9223];ctx.fillRect(230,920, 10, 10) ctx.fillStyle = cor[9224];ctx.fillRect(240,920, 10, 10) ctx.fillStyle = cor[9225];ctx.fillRect(250,920, 10, 10) ctx.fillStyle = cor[9226];ctx.fillRect(260,920, 10, 10) ctx.fillStyle = cor[9227];ctx.fillRect(270,920, 10, 10) ctx.fillStyle = cor[9228];ctx.fillRect(280,920, 10, 10) ctx.fillStyle = cor[9229];ctx.fillRect(290,920, 10, 10) ctx.fillStyle = cor[9230];ctx.fillRect(300,920, 10, 10) ctx.fillStyle = cor[9231];ctx.fillRect(310,920, 10, 10) ctx.fillStyle = cor[9232];ctx.fillRect(320,920, 10, 10) ctx.fillStyle = cor[9233];ctx.fillRect(330,920, 10, 10) ctx.fillStyle = cor[9234];ctx.fillRect(340,920, 10, 10) ctx.fillStyle = cor[9235];ctx.fillRect(350,920, 10, 10) ctx.fillStyle = cor[9236];ctx.fillRect(360,920, 10, 10) ctx.fillStyle = cor[9237];ctx.fillRect(370,920, 10, 10) ctx.fillStyle = cor[9238];ctx.fillRect(380,920, 10, 10) ctx.fillStyle = cor[9239];ctx.fillRect(390,920, 10, 10) ctx.fillStyle = cor[9240];ctx.fillRect(400,920, 10, 10) ctx.fillStyle = cor[9241];ctx.fillRect(410,920, 10, 10) ctx.fillStyle = cor[9242];ctx.fillRect(420,920, 10, 10) ctx.fillStyle = cor[9243];ctx.fillRect(430,920, 10, 10) ctx.fillStyle = cor[9244];ctx.fillRect(440,920, 10, 10) ctx.fillStyle = cor[9245];ctx.fillRect(450,920, 10, 10) ctx.fillStyle = cor[9246];ctx.fillRect(460,920, 10, 10) ctx.fillStyle = cor[9247];ctx.fillRect(470,920, 10, 10) ctx.fillStyle = cor[9248];ctx.fillRect(480,920, 10, 10) ctx.fillStyle = cor[9249];ctx.fillRect(490,920, 10, 10) ctx.fillStyle = cor[9250];ctx.fillRect(500,920, 10, 10) ctx.fillStyle = cor[9251];ctx.fillRect(510,920, 10, 10) ctx.fillStyle = cor[9252];ctx.fillRect(520,920, 10, 10) ctx.fillStyle = cor[9253];ctx.fillRect(530,920, 10, 10) ctx.fillStyle = cor[9254];ctx.fillRect(540,920, 10, 10) ctx.fillStyle = cor[9255];ctx.fillRect(550,920, 10, 10) ctx.fillStyle = cor[9256];ctx.fillRect(560,920, 10, 10) ctx.fillStyle = cor[9257];ctx.fillRect(570,920, 10, 10) ctx.fillStyle = cor[9258];ctx.fillRect(580,920, 10, 10) ctx.fillStyle = cor[9259];ctx.fillRect(590,920, 10, 10) ctx.fillStyle = cor[9260];ctx.fillRect(600,920, 10, 10) ctx.fillStyle = cor[9261];ctx.fillRect(610,920, 10, 10) ctx.fillStyle = cor[9262];ctx.fillRect(620,920, 10, 10) ctx.fillStyle = cor[9263];ctx.fillRect(630,920, 10, 10) ctx.fillStyle = cor[9264];ctx.fillRect(640,920, 10, 10) ctx.fillStyle = cor[9265];ctx.fillRect(650,920, 10, 10) ctx.fillStyle = cor[9266];ctx.fillRect(660,920, 10, 10) ctx.fillStyle = cor[9267];ctx.fillRect(670,920, 10, 10) ctx.fillStyle = cor[9268];ctx.fillRect(680,920, 10, 10) ctx.fillStyle = cor[9269];ctx.fillRect(690,920, 10, 10) ctx.fillStyle = cor[9270];ctx.fillRect(700,920, 10, 10) ctx.fillStyle = cor[9271];ctx.fillRect(710,920, 10, 10) ctx.fillStyle = cor[9272];ctx.fillRect(720,920, 10, 10) ctx.fillStyle = cor[9273];ctx.fillRect(730,920, 10, 10) ctx.fillStyle = cor[9274];ctx.fillRect(740,920, 10, 10) ctx.fillStyle = cor[9275];ctx.fillRect(750,920, 10, 10) ctx.fillStyle = cor[9276];ctx.fillRect(760,920, 10, 10) ctx.fillStyle = cor[9277];ctx.fillRect(770,920, 10, 10) ctx.fillStyle = cor[9278];ctx.fillRect(780,920, 10, 10) ctx.fillStyle = cor[9279];ctx.fillRect(790,920, 10, 10) ctx.fillStyle = cor[9280];ctx.fillRect(800,920, 10, 10) ctx.fillStyle = cor[9281];ctx.fillRect(810,920, 10, 10) ctx.fillStyle = cor[9282];ctx.fillRect(820,920, 10, 10) ctx.fillStyle = cor[9283];ctx.fillRect(830,920, 10, 10) ctx.fillStyle = cor[9284];ctx.fillRect(840,920, 10, 10) ctx.fillStyle = cor[9285];ctx.fillRect(850,920, 10, 10) ctx.fillStyle = cor[9286];ctx.fillRect(860,920, 10, 10) ctx.fillStyle = cor[9287];ctx.fillRect(870,920, 10, 10) ctx.fillStyle = cor[9288];ctx.fillRect(880,920, 10, 10) ctx.fillStyle = cor[9289];ctx.fillRect(890,920, 10, 10) ctx.fillStyle = cor[9290];ctx.fillRect(900,920, 10, 10) ctx.fillStyle = cor[9291];ctx.fillRect(910,920, 10, 10) ctx.fillStyle = cor[9292];ctx.fillRect(920,920, 10, 10) ctx.fillStyle = cor[9293];ctx.fillRect(930,920, 10, 10) ctx.fillStyle = cor[9294];ctx.fillRect(940,920, 10, 10) ctx.fillStyle = cor[9295];ctx.fillRect(950,920, 10, 10) ctx.fillStyle = cor[9296];ctx.fillRect(960,920, 10, 10) ctx.fillStyle = cor[9297];ctx.fillRect(970,920, 10, 10) ctx.fillStyle = cor[9298];ctx.fillRect(980,920, 10, 10) ctx.fillStyle = cor[9299];ctx.fillRect(990,920, 10, 10) ctx.fillStyle = cor[9300];ctx.fillRect(0,930, 10, 10) ctx.fillStyle = cor[9301];ctx.fillRect(10,930, 10, 10) ctx.fillStyle = cor[9302];ctx.fillRect(20,930, 10, 10) ctx.fillStyle = cor[9303];ctx.fillRect(30,930, 10, 10) ctx.fillStyle = cor[9304];ctx.fillRect(40,930, 10, 10) ctx.fillStyle = cor[9305];ctx.fillRect(50,930, 10, 10) ctx.fillStyle = cor[9306];ctx.fillRect(60,930, 10, 10) ctx.fillStyle = cor[9307];ctx.fillRect(70,930, 10, 10) ctx.fillStyle = cor[9308];ctx.fillRect(80,930, 10, 10) ctx.fillStyle = cor[9309];ctx.fillRect(90,930, 10, 10) ctx.fillStyle = cor[9310];ctx.fillRect(100,930, 10, 10) ctx.fillStyle = cor[9311];ctx.fillRect(110,930, 10, 10) ctx.fillStyle = cor[9312];ctx.fillRect(120,930, 10, 10) ctx.fillStyle = cor[9313];ctx.fillRect(130,930, 10, 10) ctx.fillStyle = cor[9314];ctx.fillRect(140,930, 10, 10) ctx.fillStyle = cor[9315];ctx.fillRect(150,930, 10, 10) ctx.fillStyle = cor[9316];ctx.fillRect(160,930, 10, 10) ctx.fillStyle = cor[9317];ctx.fillRect(170,930, 10, 10) ctx.fillStyle = cor[9318];ctx.fillRect(180,930, 10, 10) ctx.fillStyle = cor[9319];ctx.fillRect(190,930, 10, 10) ctx.fillStyle = cor[9320];ctx.fillRect(200,930, 10, 10) ctx.fillStyle = cor[9321];ctx.fillRect(210,930, 10, 10) ctx.fillStyle = cor[9322];ctx.fillRect(220,930, 10, 10) ctx.fillStyle = cor[9323];ctx.fillRect(230,930, 10, 10) ctx.fillStyle = cor[9324];ctx.fillRect(240,930, 10, 10) ctx.fillStyle = cor[9325];ctx.fillRect(250,930, 10, 10) ctx.fillStyle = cor[9326];ctx.fillRect(260,930, 10, 10) ctx.fillStyle = cor[9327];ctx.fillRect(270,930, 10, 10) ctx.fillStyle = cor[9328];ctx.fillRect(280,930, 10, 10) ctx.fillStyle = cor[9329];ctx.fillRect(290,930, 10, 10) ctx.fillStyle = cor[9330];ctx.fillRect(300,930, 10, 10) ctx.fillStyle = cor[9331];ctx.fillRect(310,930, 10, 10) ctx.fillStyle = cor[9332];ctx.fillRect(320,930, 10, 10) ctx.fillStyle = cor[9333];ctx.fillRect(330,930, 10, 10) ctx.fillStyle = cor[9334];ctx.fillRect(340,930, 10, 10) ctx.fillStyle = cor[9335];ctx.fillRect(350,930, 10, 10) ctx.fillStyle = cor[9336];ctx.fillRect(360,930, 10, 10) ctx.fillStyle = cor[9337];ctx.fillRect(370,930, 10, 10) ctx.fillStyle = cor[9338];ctx.fillRect(380,930, 10, 10) ctx.fillStyle = cor[9339];ctx.fillRect(390,930, 10, 10) ctx.fillStyle = cor[9340];ctx.fillRect(400,930, 10, 10) ctx.fillStyle = cor[9341];ctx.fillRect(410,930, 10, 10) ctx.fillStyle = cor[9342];ctx.fillRect(420,930, 10, 10) ctx.fillStyle = cor[9343];ctx.fillRect(430,930, 10, 10) ctx.fillStyle = cor[9344];ctx.fillRect(440,930, 10, 10) ctx.fillStyle = cor[9345];ctx.fillRect(450,930, 10, 10) ctx.fillStyle = cor[9346];ctx.fillRect(460,930, 10, 10) ctx.fillStyle = cor[9347];ctx.fillRect(470,930, 10, 10) ctx.fillStyle = cor[9348];ctx.fillRect(480,930, 10, 10) ctx.fillStyle = cor[9349];ctx.fillRect(490,930, 10, 10) ctx.fillStyle = cor[9350];ctx.fillRect(500,930, 10, 10) ctx.fillStyle = cor[9351];ctx.fillRect(510,930, 10, 10) ctx.fillStyle = cor[9352];ctx.fillRect(520,930, 10, 10) ctx.fillStyle = cor[9353];ctx.fillRect(530,930, 10, 10) ctx.fillStyle = cor[9354];ctx.fillRect(540,930, 10, 10) ctx.fillStyle = cor[9355];ctx.fillRect(550,930, 10, 10) ctx.fillStyle = cor[9356];ctx.fillRect(560,930, 10, 10) ctx.fillStyle = cor[9357];ctx.fillRect(570,930, 10, 10) ctx.fillStyle = cor[9358];ctx.fillRect(580,930, 10, 10) ctx.fillStyle = cor[9359];ctx.fillRect(590,930, 10, 10) ctx.fillStyle = cor[9360];ctx.fillRect(600,930, 10, 10) ctx.fillStyle = cor[9361];ctx.fillRect(610,930, 10, 10) ctx.fillStyle = cor[9362];ctx.fillRect(620,930, 10, 10) ctx.fillStyle = cor[9363];ctx.fillRect(630,930, 10, 10) ctx.fillStyle = cor[9364];ctx.fillRect(640,930, 10, 10) ctx.fillStyle = cor[9365];ctx.fillRect(650,930, 10, 10) ctx.fillStyle = cor[9366];ctx.fillRect(660,930, 10, 10) ctx.fillStyle = cor[9367];ctx.fillRect(670,930, 10, 10) ctx.fillStyle = cor[9368];ctx.fillRect(680,930, 10, 10) ctx.fillStyle = cor[9369];ctx.fillRect(690,930, 10, 10) ctx.fillStyle = cor[9370];ctx.fillRect(700,930, 10, 10) ctx.fillStyle = cor[9371];ctx.fillRect(710,930, 10, 10) ctx.fillStyle = cor[9372];ctx.fillRect(720,930, 10, 10) ctx.fillStyle = cor[9373];ctx.fillRect(730,930, 10, 10) ctx.fillStyle = cor[9374];ctx.fillRect(740,930, 10, 10) ctx.fillStyle = cor[9375];ctx.fillRect(750,930, 10, 10) ctx.fillStyle = cor[9376];ctx.fillRect(760,930, 10, 10) ctx.fillStyle = cor[9377];ctx.fillRect(770,930, 10, 10) ctx.fillStyle = cor[9378];ctx.fillRect(780,930, 10, 10) ctx.fillStyle = cor[9379];ctx.fillRect(790,930, 10, 10) ctx.fillStyle = cor[9380];ctx.fillRect(800,930, 10, 10) ctx.fillStyle = cor[9381];ctx.fillRect(810,930, 10, 10) ctx.fillStyle = cor[9382];ctx.fillRect(820,930, 10, 10) ctx.fillStyle = cor[9383];ctx.fillRect(830,930, 10, 10) ctx.fillStyle = cor[9384];ctx.fillRect(840,930, 10, 10) ctx.fillStyle = cor[9385];ctx.fillRect(850,930, 10, 10) ctx.fillStyle = cor[9386];ctx.fillRect(860,930, 10, 10) ctx.fillStyle = cor[9387];ctx.fillRect(870,930, 10, 10) ctx.fillStyle = cor[9388];ctx.fillRect(880,930, 10, 10) ctx.fillStyle = cor[9389];ctx.fillRect(890,930, 10, 10) ctx.fillStyle = cor[9390];ctx.fillRect(900,930, 10, 10) ctx.fillStyle = cor[9391];ctx.fillRect(910,930, 10, 10) ctx.fillStyle = cor[9392];ctx.fillRect(920,930, 10, 10) ctx.fillStyle = cor[9393];ctx.fillRect(930,930, 10, 10) ctx.fillStyle = cor[9394];ctx.fillRect(940,930, 10, 10) ctx.fillStyle = cor[9395];ctx.fillRect(950,930, 10, 10) ctx.fillStyle = cor[9396];ctx.fillRect(960,930, 10, 10) ctx.fillStyle = cor[9397];ctx.fillRect(970,930, 10, 10) ctx.fillStyle = cor[9398];ctx.fillRect(980,930, 10, 10) ctx.fillStyle = cor[9399];ctx.fillRect(990,930, 10, 10) ctx.fillStyle = cor[9400];ctx.fillRect(0,940, 10, 10) ctx.fillStyle = cor[9401];ctx.fillRect(10,940, 10, 10) ctx.fillStyle = cor[9402];ctx.fillRect(20,940, 10, 10) ctx.fillStyle = cor[9403];ctx.fillRect(30,940, 10, 10) ctx.fillStyle = cor[9404];ctx.fillRect(40,940, 10, 10) ctx.fillStyle = cor[9405];ctx.fillRect(50,940, 10, 10) ctx.fillStyle = cor[9406];ctx.fillRect(60,940, 10, 10) ctx.fillStyle = cor[9407];ctx.fillRect(70,940, 10, 10) ctx.fillStyle = cor[9408];ctx.fillRect(80,940, 10, 10) ctx.fillStyle = cor[9409];ctx.fillRect(90,940, 10, 10) ctx.fillStyle = cor[9410];ctx.fillRect(100,940, 10, 10) ctx.fillStyle = cor[9411];ctx.fillRect(110,940, 10, 10) ctx.fillStyle = cor[9412];ctx.fillRect(120,940, 10, 10) ctx.fillStyle = cor[9413];ctx.fillRect(130,940, 10, 10) ctx.fillStyle = cor[9414];ctx.fillRect(140,940, 10, 10) ctx.fillStyle = cor[9415];ctx.fillRect(150,940, 10, 10) ctx.fillStyle = cor[9416];ctx.fillRect(160,940, 10, 10) ctx.fillStyle = cor[9417];ctx.fillRect(170,940, 10, 10) ctx.fillStyle = cor[9418];ctx.fillRect(180,940, 10, 10) ctx.fillStyle = cor[9419];ctx.fillRect(190,940, 10, 10) ctx.fillStyle = cor[9420];ctx.fillRect(200,940, 10, 10) ctx.fillStyle = cor[9421];ctx.fillRect(210,940, 10, 10) ctx.fillStyle = cor[9422];ctx.fillRect(220,940, 10, 10) ctx.fillStyle = cor[9423];ctx.fillRect(230,940, 10, 10) ctx.fillStyle = cor[9424];ctx.fillRect(240,940, 10, 10) ctx.fillStyle = cor[9425];ctx.fillRect(250,940, 10, 10) ctx.fillStyle = cor[9426];ctx.fillRect(260,940, 10, 10) ctx.fillStyle = cor[9427];ctx.fillRect(270,940, 10, 10) ctx.fillStyle = cor[9428];ctx.fillRect(280,940, 10, 10) ctx.fillStyle = cor[9429];ctx.fillRect(290,940, 10, 10) ctx.fillStyle = cor[9430];ctx.fillRect(300,940, 10, 10) ctx.fillStyle = cor[9431];ctx.fillRect(310,940, 10, 10) ctx.fillStyle = cor[9432];ctx.fillRect(320,940, 10, 10) ctx.fillStyle = cor[9433];ctx.fillRect(330,940, 10, 10) ctx.fillStyle = cor[9434];ctx.fillRect(340,940, 10, 10) ctx.fillStyle = cor[9435];ctx.fillRect(350,940, 10, 10) ctx.fillStyle = cor[9436];ctx.fillRect(360,940, 10, 10) ctx.fillStyle = cor[9437];ctx.fillRect(370,940, 10, 10) ctx.fillStyle = cor[9438];ctx.fillRect(380,940, 10, 10) ctx.fillStyle = cor[9439];ctx.fillRect(390,940, 10, 10) ctx.fillStyle = cor[9440];ctx.fillRect(400,940, 10, 10) ctx.fillStyle = cor[9441];ctx.fillRect(410,940, 10, 10) ctx.fillStyle = cor[9442];ctx.fillRect(420,940, 10, 10) ctx.fillStyle = cor[9443];ctx.fillRect(430,940, 10, 10) ctx.fillStyle = cor[9444];ctx.fillRect(440,940, 10, 10) ctx.fillStyle = cor[9445];ctx.fillRect(450,940, 10, 10) ctx.fillStyle = cor[9446];ctx.fillRect(460,940, 10, 10) ctx.fillStyle = cor[9447];ctx.fillRect(470,940, 10, 10) ctx.fillStyle = cor[9448];ctx.fillRect(480,940, 10, 10) ctx.fillStyle = cor[9449];ctx.fillRect(490,940, 10, 10) ctx.fillStyle = cor[9450];ctx.fillRect(500,940, 10, 10) ctx.fillStyle = cor[9451];ctx.fillRect(510,940, 10, 10) ctx.fillStyle = cor[9452];ctx.fillRect(520,940, 10, 10) ctx.fillStyle = cor[9453];ctx.fillRect(530,940, 10, 10) ctx.fillStyle = cor[9454];ctx.fillRect(540,940, 10, 10) ctx.fillStyle = cor[9455];ctx.fillRect(550,940, 10, 10) ctx.fillStyle = cor[9456];ctx.fillRect(560,940, 10, 10) ctx.fillStyle = cor[9457];ctx.fillRect(570,940, 10, 10) ctx.fillStyle = cor[9458];ctx.fillRect(580,940, 10, 10) ctx.fillStyle = cor[9459];ctx.fillRect(590,940, 10, 10) ctx.fillStyle = cor[9460];ctx.fillRect(600,940, 10, 10) ctx.fillStyle = cor[9461];ctx.fillRect(610,940, 10, 10) ctx.fillStyle = cor[9462];ctx.fillRect(620,940, 10, 10) ctx.fillStyle = cor[9463];ctx.fillRect(630,940, 10, 10) ctx.fillStyle = cor[9464];ctx.fillRect(640,940, 10, 10) ctx.fillStyle = cor[9465];ctx.fillRect(650,940, 10, 10) ctx.fillStyle = cor[9466];ctx.fillRect(660,940, 10, 10) ctx.fillStyle = cor[9467];ctx.fillRect(670,940, 10, 10) ctx.fillStyle = cor[9468];ctx.fillRect(680,940, 10, 10) ctx.fillStyle = cor[9469];ctx.fillRect(690,940, 10, 10) ctx.fillStyle = cor[9470];ctx.fillRect(700,940, 10, 10) ctx.fillStyle = cor[9471];ctx.fillRect(710,940, 10, 10) ctx.fillStyle = cor[9472];ctx.fillRect(720,940, 10, 10) ctx.fillStyle = cor[9473];ctx.fillRect(730,940, 10, 10) ctx.fillStyle = cor[9474];ctx.fillRect(740,940, 10, 10) ctx.fillStyle = cor[9475];ctx.fillRect(750,940, 10, 10) ctx.fillStyle = cor[9476];ctx.fillRect(760,940, 10, 10) ctx.fillStyle = cor[9477];ctx.fillRect(770,940, 10, 10) ctx.fillStyle = cor[9478];ctx.fillRect(780,940, 10, 10) ctx.fillStyle = cor[9479];ctx.fillRect(790,940, 10, 10) ctx.fillStyle = cor[9480];ctx.fillRect(800,940, 10, 10) ctx.fillStyle = cor[9481];ctx.fillRect(810,940, 10, 10) ctx.fillStyle = cor[9482];ctx.fillRect(820,940, 10, 10) ctx.fillStyle = cor[9483];ctx.fillRect(830,940, 10, 10) ctx.fillStyle = cor[9484];ctx.fillRect(840,940, 10, 10) ctx.fillStyle = cor[9485];ctx.fillRect(850,940, 10, 10) ctx.fillStyle = cor[9486];ctx.fillRect(860,940, 10, 10) ctx.fillStyle = cor[9487];ctx.fillRect(870,940, 10, 10) ctx.fillStyle = cor[9488];ctx.fillRect(880,940, 10, 10) ctx.fillStyle = cor[9489];ctx.fillRect(890,940, 10, 10) ctx.fillStyle = cor[9490];ctx.fillRect(900,940, 10, 10) ctx.fillStyle = cor[9491];ctx.fillRect(910,940, 10, 10) ctx.fillStyle = cor[9492];ctx.fillRect(920,940, 10, 10) ctx.fillStyle = cor[9493];ctx.fillRect(930,940, 10, 10) ctx.fillStyle = cor[9494];ctx.fillRect(940,940, 10, 10) ctx.fillStyle = cor[9495];ctx.fillRect(950,940, 10, 10) ctx.fillStyle = cor[9496];ctx.fillRect(960,940, 10, 10) ctx.fillStyle = cor[9497];ctx.fillRect(970,940, 10, 10) ctx.fillStyle = cor[9498];ctx.fillRect(980,940, 10, 10) ctx.fillStyle = cor[9499];ctx.fillRect(990,940, 10, 10) ctx.fillStyle = cor[9500];ctx.fillRect(0,950, 10, 10) ctx.fillStyle = cor[9501];ctx.fillRect(10,950, 10, 10) ctx.fillStyle = cor[9502];ctx.fillRect(20,950, 10, 10) ctx.fillStyle = cor[9503];ctx.fillRect(30,950, 10, 10) ctx.fillStyle = cor[9504];ctx.fillRect(40,950, 10, 10) ctx.fillStyle = cor[9505];ctx.fillRect(50,950, 10, 10) ctx.fillStyle = cor[9506];ctx.fillRect(60,950, 10, 10) ctx.fillStyle = cor[9507];ctx.fillRect(70,950, 10, 10) ctx.fillStyle = cor[9508];ctx.fillRect(80,950, 10, 10) ctx.fillStyle = cor[9509];ctx.fillRect(90,950, 10, 10) ctx.fillStyle = cor[9510];ctx.fillRect(100,950, 10, 10) ctx.fillStyle = cor[9511];ctx.fillRect(110,950, 10, 10) ctx.fillStyle = cor[9512];ctx.fillRect(120,950, 10, 10) ctx.fillStyle = cor[9513];ctx.fillRect(130,950, 10, 10) ctx.fillStyle = cor[9514];ctx.fillRect(140,950, 10, 10) ctx.fillStyle = cor[9515];ctx.fillRect(150,950, 10, 10) ctx.fillStyle = cor[9516];ctx.fillRect(160,950, 10, 10) ctx.fillStyle = cor[9517];ctx.fillRect(170,950, 10, 10) ctx.fillStyle = cor[9518];ctx.fillRect(180,950, 10, 10) ctx.fillStyle = cor[9519];ctx.fillRect(190,950, 10, 10) ctx.fillStyle = cor[9520];ctx.fillRect(200,950, 10, 10) ctx.fillStyle = cor[9521];ctx.fillRect(210,950, 10, 10) ctx.fillStyle = cor[9522];ctx.fillRect(220,950, 10, 10) ctx.fillStyle = cor[9523];ctx.fillRect(230,950, 10, 10) ctx.fillStyle = cor[9524];ctx.fillRect(240,950, 10, 10) ctx.fillStyle = cor[9525];ctx.fillRect(250,950, 10, 10) ctx.fillStyle = cor[9526];ctx.fillRect(260,950, 10, 10) ctx.fillStyle = cor[9527];ctx.fillRect(270,950, 10, 10) ctx.fillStyle = cor[9528];ctx.fillRect(280,950, 10, 10) ctx.fillStyle = cor[9529];ctx.fillRect(290,950, 10, 10) ctx.fillStyle = cor[9530];ctx.fillRect(300,950, 10, 10) ctx.fillStyle = cor[9531];ctx.fillRect(310,950, 10, 10) ctx.fillStyle = cor[9532];ctx.fillRect(320,950, 10, 10) ctx.fillStyle = cor[9533];ctx.fillRect(330,950, 10, 10) ctx.fillStyle = cor[9534];ctx.fillRect(340,950, 10, 10) ctx.fillStyle = cor[9535];ctx.fillRect(350,950, 10, 10) ctx.fillStyle = cor[9536];ctx.fillRect(360,950, 10, 10) ctx.fillStyle = cor[9537];ctx.fillRect(370,950, 10, 10) ctx.fillStyle = cor[9538];ctx.fillRect(380,950, 10, 10) ctx.fillStyle = cor[9539];ctx.fillRect(390,950, 10, 10) ctx.fillStyle = cor[9540];ctx.fillRect(400,950, 10, 10) ctx.fillStyle = cor[9541];ctx.fillRect(410,950, 10, 10) ctx.fillStyle = cor[9542];ctx.fillRect(420,950, 10, 10) ctx.fillStyle = cor[9543];ctx.fillRect(430,950, 10, 10) ctx.fillStyle = cor[9544];ctx.fillRect(440,950, 10, 10) ctx.fillStyle = cor[9545];ctx.fillRect(450,950, 10, 10) ctx.fillStyle = cor[9546];ctx.fillRect(460,950, 10, 10) ctx.fillStyle = cor[9547];ctx.fillRect(470,950, 10, 10) ctx.fillStyle = cor[9548];ctx.fillRect(480,950, 10, 10) ctx.fillStyle = cor[9549];ctx.fillRect(490,950, 10, 10) ctx.fillStyle = cor[9550];ctx.fillRect(500,950, 10, 10) ctx.fillStyle = cor[9551];ctx.fillRect(510,950, 10, 10) ctx.fillStyle = cor[9552];ctx.fillRect(520,950, 10, 10) ctx.fillStyle = cor[9553];ctx.fillRect(530,950, 10, 10) ctx.fillStyle = cor[9554];ctx.fillRect(540,950, 10, 10) ctx.fillStyle = cor[9555];ctx.fillRect(550,950, 10, 10) ctx.fillStyle = cor[9556];ctx.fillRect(560,950, 10, 10) ctx.fillStyle = cor[9557];ctx.fillRect(570,950, 10, 10) ctx.fillStyle = cor[9558];ctx.fillRect(580,950, 10, 10) ctx.fillStyle = cor[9559];ctx.fillRect(590,950, 10, 10) ctx.fillStyle = cor[9560];ctx.fillRect(600,950, 10, 10) ctx.fillStyle = cor[9561];ctx.fillRect(610,950, 10, 10) ctx.fillStyle = cor[9562];ctx.fillRect(620,950, 10, 10) ctx.fillStyle = cor[9563];ctx.fillRect(630,950, 10, 10) ctx.fillStyle = cor[9564];ctx.fillRect(640,950, 10, 10) ctx.fillStyle = cor[9565];ctx.fillRect(650,950, 10, 10) ctx.fillStyle = cor[9566];ctx.fillRect(660,950, 10, 10) ctx.fillStyle = cor[9567];ctx.fillRect(670,950, 10, 10) ctx.fillStyle = cor[9568];ctx.fillRect(680,950, 10, 10) ctx.fillStyle = cor[9569];ctx.fillRect(690,950, 10, 10) ctx.fillStyle = cor[9570];ctx.fillRect(700,950, 10, 10) ctx.fillStyle = cor[9571];ctx.fillRect(710,950, 10, 10) ctx.fillStyle = cor[9572];ctx.fillRect(720,950, 10, 10) ctx.fillStyle = cor[9573];ctx.fillRect(730,950, 10, 10) ctx.fillStyle = cor[9574];ctx.fillRect(740,950, 10, 10) ctx.fillStyle = cor[9575];ctx.fillRect(750,950, 10, 10) ctx.fillStyle = cor[9576];ctx.fillRect(760,950, 10, 10) ctx.fillStyle = cor[9577];ctx.fillRect(770,950, 10, 10) ctx.fillStyle = cor[9578];ctx.fillRect(780,950, 10, 10) ctx.fillStyle = cor[9579];ctx.fillRect(790,950, 10, 10) ctx.fillStyle = cor[9580];ctx.fillRect(800,950, 10, 10) ctx.fillStyle = cor[9581];ctx.fillRect(810,950, 10, 10) ctx.fillStyle = cor[9582];ctx.fillRect(820,950, 10, 10) ctx.fillStyle = cor[9583];ctx.fillRect(830,950, 10, 10) ctx.fillStyle = cor[9584];ctx.fillRect(840,950, 10, 10) ctx.fillStyle = cor[9585];ctx.fillRect(850,950, 10, 10) ctx.fillStyle = cor[9586];ctx.fillRect(860,950, 10, 10) ctx.fillStyle = cor[9587];ctx.fillRect(870,950, 10, 10) ctx.fillStyle = cor[9588];ctx.fillRect(880,950, 10, 10) ctx.fillStyle = cor[9589];ctx.fillRect(890,950, 10, 10) ctx.fillStyle = cor[9590];ctx.fillRect(900,950, 10, 10) ctx.fillStyle = cor[9591];ctx.fillRect(910,950, 10, 10) ctx.fillStyle = cor[9592];ctx.fillRect(920,950, 10, 10) ctx.fillStyle = cor[9593];ctx.fillRect(930,950, 10, 10) ctx.fillStyle = cor[9594];ctx.fillRect(940,950, 10, 10) ctx.fillStyle = cor[9595];ctx.fillRect(950,950, 10, 10) ctx.fillStyle = cor[9596];ctx.fillRect(960,950, 10, 10) ctx.fillStyle = cor[9597];ctx.fillRect(970,950, 10, 10) ctx.fillStyle = cor[9598];ctx.fillRect(980,950, 10, 10) ctx.fillStyle = cor[9599];ctx.fillRect(990,950, 10, 10) ctx.fillStyle = cor[9600];ctx.fillRect(0,960, 10, 10) ctx.fillStyle = cor[9601];ctx.fillRect(10,960, 10, 10) ctx.fillStyle = cor[9602];ctx.fillRect(20,960, 10, 10) ctx.fillStyle = cor[9603];ctx.fillRect(30,960, 10, 10) ctx.fillStyle = cor[9604];ctx.fillRect(40,960, 10, 10) ctx.fillStyle = cor[9605];ctx.fillRect(50,960, 10, 10) ctx.fillStyle = cor[9606];ctx.fillRect(60,960, 10, 10) ctx.fillStyle = cor[9607];ctx.fillRect(70,960, 10, 10) ctx.fillStyle = cor[9608];ctx.fillRect(80,960, 10, 10) ctx.fillStyle = cor[9609];ctx.fillRect(90,960, 10, 10) ctx.fillStyle = cor[9610];ctx.fillRect(100,960, 10, 10) ctx.fillStyle = cor[9611];ctx.fillRect(110,960, 10, 10) ctx.fillStyle = cor[9612];ctx.fillRect(120,960, 10, 10) ctx.fillStyle = cor[9613];ctx.fillRect(130,960, 10, 10) ctx.fillStyle = cor[9614];ctx.fillRect(140,960, 10, 10) ctx.fillStyle = cor[9615];ctx.fillRect(150,960, 10, 10) ctx.fillStyle = cor[9616];ctx.fillRect(160,960, 10, 10) ctx.fillStyle = cor[9617];ctx.fillRect(170,960, 10, 10) ctx.fillStyle = cor[9618];ctx.fillRect(180,960, 10, 10) ctx.fillStyle = cor[9619];ctx.fillRect(190,960, 10, 10) ctx.fillStyle = cor[9620];ctx.fillRect(200,960, 10, 10) ctx.fillStyle = cor[9621];ctx.fillRect(210,960, 10, 10) ctx.fillStyle = cor[9622];ctx.fillRect(220,960, 10, 10) ctx.fillStyle = cor[9623];ctx.fillRect(230,960, 10, 10) ctx.fillStyle = cor[9624];ctx.fillRect(240,960, 10, 10) ctx.fillStyle = cor[9625];ctx.fillRect(250,960, 10, 10) ctx.fillStyle = cor[9626];ctx.fillRect(260,960, 10, 10) ctx.fillStyle = cor[9627];ctx.fillRect(270,960, 10, 10) ctx.fillStyle = cor[9628];ctx.fillRect(280,960, 10, 10) ctx.fillStyle = cor[9629];ctx.fillRect(290,960, 10, 10) ctx.fillStyle = cor[9630];ctx.fillRect(300,960, 10, 10) ctx.fillStyle = cor[9631];ctx.fillRect(310,960, 10, 10) ctx.fillStyle = cor[9632];ctx.fillRect(320,960, 10, 10) ctx.fillStyle = cor[9633];ctx.fillRect(330,960, 10, 10) ctx.fillStyle = cor[9634];ctx.fillRect(340,960, 10, 10) ctx.fillStyle = cor[9635];ctx.fillRect(350,960, 10, 10) ctx.fillStyle = cor[9636];ctx.fillRect(360,960, 10, 10) ctx.fillStyle = cor[9637];ctx.fillRect(370,960, 10, 10) ctx.fillStyle = cor[9638];ctx.fillRect(380,960, 10, 10) ctx.fillStyle = cor[9639];ctx.fillRect(390,960, 10, 10) ctx.fillStyle = cor[9640];ctx.fillRect(400,960, 10, 10) ctx.fillStyle = cor[9641];ctx.fillRect(410,960, 10, 10) ctx.fillStyle = cor[9642];ctx.fillRect(420,960, 10, 10) ctx.fillStyle = cor[9643];ctx.fillRect(430,960, 10, 10) ctx.fillStyle = cor[9644];ctx.fillRect(440,960, 10, 10) ctx.fillStyle = cor[9645];ctx.fillRect(450,960, 10, 10) ctx.fillStyle = cor[9646];ctx.fillRect(460,960, 10, 10) ctx.fillStyle = cor[9647];ctx.fillRect(470,960, 10, 10) ctx.fillStyle = cor[9648];ctx.fillRect(480,960, 10, 10) ctx.fillStyle = cor[9649];ctx.fillRect(490,960, 10, 10) ctx.fillStyle = cor[9650];ctx.fillRect(500,960, 10, 10) ctx.fillStyle = cor[9651];ctx.fillRect(510,960, 10, 10) ctx.fillStyle = cor[9652];ctx.fillRect(520,960, 10, 10) ctx.fillStyle = cor[9653];ctx.fillRect(530,960, 10, 10) ctx.fillStyle = cor[9654];ctx.fillRect(540,960, 10, 10) ctx.fillStyle = cor[9655];ctx.fillRect(550,960, 10, 10) ctx.fillStyle = cor[9656];ctx.fillRect(560,960, 10, 10) ctx.fillStyle = cor[9657];ctx.fillRect(570,960, 10, 10) ctx.fillStyle = cor[9658];ctx.fillRect(580,960, 10, 10) ctx.fillStyle = cor[9659];ctx.fillRect(590,960, 10, 10) ctx.fillStyle = cor[9660];ctx.fillRect(600,960, 10, 10) ctx.fillStyle = cor[9661];ctx.fillRect(610,960, 10, 10) ctx.fillStyle = cor[9662];ctx.fillRect(620,960, 10, 10) ctx.fillStyle = cor[9663];ctx.fillRect(630,960, 10, 10) ctx.fillStyle = cor[9664];ctx.fillRect(640,960, 10, 10) ctx.fillStyle = cor[9665];ctx.fillRect(650,960, 10, 10) ctx.fillStyle = cor[9666];ctx.fillRect(660,960, 10, 10) ctx.fillStyle = cor[9667];ctx.fillRect(670,960, 10, 10) ctx.fillStyle = cor[9668];ctx.fillRect(680,960, 10, 10) ctx.fillStyle = cor[9669];ctx.fillRect(690,960, 10, 10) ctx.fillStyle = cor[9670];ctx.fillRect(700,960, 10, 10) ctx.fillStyle = cor[9671];ctx.fillRect(710,960, 10, 10) ctx.fillStyle = cor[9672];ctx.fillRect(720,960, 10, 10) ctx.fillStyle = cor[9673];ctx.fillRect(730,960, 10, 10) ctx.fillStyle = cor[9674];ctx.fillRect(740,960, 10, 10) ctx.fillStyle = cor[9675];ctx.fillRect(750,960, 10, 10) ctx.fillStyle = cor[9676];ctx.fillRect(760,960, 10, 10) ctx.fillStyle = cor[9677];ctx.fillRect(770,960, 10, 10) ctx.fillStyle = cor[9678];ctx.fillRect(780,960, 10, 10) ctx.fillStyle = cor[9679];ctx.fillRect(790,960, 10, 10) ctx.fillStyle = cor[9680];ctx.fillRect(800,960, 10, 10) ctx.fillStyle = cor[9681];ctx.fillRect(810,960, 10, 10) ctx.fillStyle = cor[9682];ctx.fillRect(820,960, 10, 10) ctx.fillStyle = cor[9683];ctx.fillRect(830,960, 10, 10) ctx.fillStyle = cor[9684];ctx.fillRect(840,960, 10, 10) ctx.fillStyle = cor[9685];ctx.fillRect(850,960, 10, 10) ctx.fillStyle = cor[9686];ctx.fillRect(860,960, 10, 10) ctx.fillStyle = cor[9687];ctx.fillRect(870,960, 10, 10) ctx.fillStyle = cor[9688];ctx.fillRect(880,960, 10, 10) ctx.fillStyle = cor[9689];ctx.fillRect(890,960, 10, 10) ctx.fillStyle = cor[9690];ctx.fillRect(900,960, 10, 10) ctx.fillStyle = cor[9691];ctx.fillRect(910,960, 10, 10) ctx.fillStyle = cor[9692];ctx.fillRect(920,960, 10, 10) ctx.fillStyle = cor[9693];ctx.fillRect(930,960, 10, 10) ctx.fillStyle = cor[9694];ctx.fillRect(940,960, 10, 10) ctx.fillStyle = cor[9695];ctx.fillRect(950,960, 10, 10) ctx.fillStyle = cor[9696];ctx.fillRect(960,960, 10, 10) ctx.fillStyle = cor[9697];ctx.fillRect(970,960, 10, 10) ctx.fillStyle = cor[9698];ctx.fillRect(980,960, 10, 10) ctx.fillStyle = cor[9699];ctx.fillRect(990,960, 10, 10) ctx.fillStyle = cor[9700];ctx.fillRect(0,970, 10, 10) ctx.fillStyle = cor[9701];ctx.fillRect(10,970, 10, 10) ctx.fillStyle = cor[9702];ctx.fillRect(20,970, 10, 10) ctx.fillStyle = cor[9703];ctx.fillRect(30,970, 10, 10) ctx.fillStyle = cor[9704];ctx.fillRect(40,970, 10, 10) ctx.fillStyle = cor[9705];ctx.fillRect(50,970, 10, 10) ctx.fillStyle = cor[9706];ctx.fillRect(60,970, 10, 10) ctx.fillStyle = cor[9707];ctx.fillRect(70,970, 10, 10) ctx.fillStyle = cor[9708];ctx.fillRect(80,970, 10, 10) ctx.fillStyle = cor[9709];ctx.fillRect(90,970, 10, 10) ctx.fillStyle = cor[9710];ctx.fillRect(100,970, 10, 10) ctx.fillStyle = cor[9711];ctx.fillRect(110,970, 10, 10) ctx.fillStyle = cor[9712];ctx.fillRect(120,970, 10, 10) ctx.fillStyle = cor[9713];ctx.fillRect(130,970, 10, 10) ctx.fillStyle = cor[9714];ctx.fillRect(140,970, 10, 10) ctx.fillStyle = cor[9715];ctx.fillRect(150,970, 10, 10) ctx.fillStyle = cor[9716];ctx.fillRect(160,970, 10, 10) ctx.fillStyle = cor[9717];ctx.fillRect(170,970, 10, 10) ctx.fillStyle = cor[9718];ctx.fillRect(180,970, 10, 10) ctx.fillStyle = cor[9719];ctx.fillRect(190,970, 10, 10) ctx.fillStyle = cor[9720];ctx.fillRect(200,970, 10, 10) ctx.fillStyle = cor[9721];ctx.fillRect(210,970, 10, 10) ctx.fillStyle = cor[9722];ctx.fillRect(220,970, 10, 10) ctx.fillStyle = cor[9723];ctx.fillRect(230,970, 10, 10) ctx.fillStyle = cor[9724];ctx.fillRect(240,970, 10, 10) ctx.fillStyle = cor[9725];ctx.fillRect(250,970, 10, 10) ctx.fillStyle = cor[9726];ctx.fillRect(260,970, 10, 10) ctx.fillStyle = cor[9727];ctx.fillRect(270,970, 10, 10) ctx.fillStyle = cor[9728];ctx.fillRect(280,970, 10, 10) ctx.fillStyle = cor[9729];ctx.fillRect(290,970, 10, 10) ctx.fillStyle = cor[9730];ctx.fillRect(300,970, 10, 10) ctx.fillStyle = cor[9731];ctx.fillRect(310,970, 10, 10) ctx.fillStyle = cor[9732];ctx.fillRect(320,970, 10, 10) ctx.fillStyle = cor[9733];ctx.fillRect(330,970, 10, 10) ctx.fillStyle = cor[9734];ctx.fillRect(340,970, 10, 10) ctx.fillStyle = cor[9735];ctx.fillRect(350,970, 10, 10) ctx.fillStyle = cor[9736];ctx.fillRect(360,970, 10, 10) ctx.fillStyle = cor[9737];ctx.fillRect(370,970, 10, 10) ctx.fillStyle = cor[9738];ctx.fillRect(380,970, 10, 10) ctx.fillStyle = cor[9739];ctx.fillRect(390,970, 10, 10) ctx.fillStyle = cor[9740];ctx.fillRect(400,970, 10, 10) ctx.fillStyle = cor[9741];ctx.fillRect(410,970, 10, 10) ctx.fillStyle = cor[9742];ctx.fillRect(420,970, 10, 10) ctx.fillStyle = cor[9743];ctx.fillRect(430,970, 10, 10) ctx.fillStyle = cor[9744];ctx.fillRect(440,970, 10, 10) ctx.fillStyle = cor[9745];ctx.fillRect(450,970, 10, 10) ctx.fillStyle = cor[9746];ctx.fillRect(460,970, 10, 10) ctx.fillStyle = cor[9747];ctx.fillRect(470,970, 10, 10) ctx.fillStyle = cor[9748];ctx.fillRect(480,970, 10, 10) ctx.fillStyle = cor[9749];ctx.fillRect(490,970, 10, 10) ctx.fillStyle = cor[9750];ctx.fillRect(500,970, 10, 10) ctx.fillStyle = cor[9751];ctx.fillRect(510,970, 10, 10) ctx.fillStyle = cor[9752];ctx.fillRect(520,970, 10, 10) ctx.fillStyle = cor[9753];ctx.fillRect(530,970, 10, 10) ctx.fillStyle = cor[9754];ctx.fillRect(540,970, 10, 10) ctx.fillStyle = cor[9755];ctx.fillRect(550,970, 10, 10) ctx.fillStyle = cor[9756];ctx.fillRect(560,970, 10, 10) ctx.fillStyle = cor[9757];ctx.fillRect(570,970, 10, 10) ctx.fillStyle = cor[9758];ctx.fillRect(580,970, 10, 10) ctx.fillStyle = cor[9759];ctx.fillRect(590,970, 10, 10) ctx.fillStyle = cor[9760];ctx.fillRect(600,970, 10, 10) ctx.fillStyle = cor[9761];ctx.fillRect(610,970, 10, 10) ctx.fillStyle = cor[9762];ctx.fillRect(620,970, 10, 10) ctx.fillStyle = cor[9763];ctx.fillRect(630,970, 10, 10) ctx.fillStyle = cor[9764];ctx.fillRect(640,970, 10, 10) ctx.fillStyle = cor[9765];ctx.fillRect(650,970, 10, 10) ctx.fillStyle = cor[9766];ctx.fillRect(660,970, 10, 10) ctx.fillStyle = cor[9767];ctx.fillRect(670,970, 10, 10) ctx.fillStyle = cor[9768];ctx.fillRect(680,970, 10, 10) ctx.fillStyle = cor[9769];ctx.fillRect(690,970, 10, 10) ctx.fillStyle = cor[9770];ctx.fillRect(700,970, 10, 10) ctx.fillStyle = cor[9771];ctx.fillRect(710,970, 10, 10) ctx.fillStyle = cor[9772];ctx.fillRect(720,970, 10, 10) ctx.fillStyle = cor[9773];ctx.fillRect(730,970, 10, 10) ctx.fillStyle = cor[9774];ctx.fillRect(740,970, 10, 10) ctx.fillStyle = cor[9775];ctx.fillRect(750,970, 10, 10) ctx.fillStyle = cor[9776];ctx.fillRect(760,970, 10, 10) ctx.fillStyle = cor[9777];ctx.fillRect(770,970, 10, 10) ctx.fillStyle = cor[9778];ctx.fillRect(780,970, 10, 10) ctx.fillStyle = cor[9779];ctx.fillRect(790,970, 10, 10) ctx.fillStyle = cor[9780];ctx.fillRect(800,970, 10, 10) ctx.fillStyle = cor[9781];ctx.fillRect(810,970, 10, 10) ctx.fillStyle = cor[9782];ctx.fillRect(820,970, 10, 10) ctx.fillStyle = cor[9783];ctx.fillRect(830,970, 10, 10) ctx.fillStyle = cor[9784];ctx.fillRect(840,970, 10, 10) ctx.fillStyle = cor[9785];ctx.fillRect(850,970, 10, 10) ctx.fillStyle = cor[9786];ctx.fillRect(860,970, 10, 10) ctx.fillStyle = cor[9787];ctx.fillRect(870,970, 10, 10) ctx.fillStyle = cor[9788];ctx.fillRect(880,970, 10, 10) ctx.fillStyle = cor[9789];ctx.fillRect(890,970, 10, 10) ctx.fillStyle = cor[9790];ctx.fillRect(900,970, 10, 10) ctx.fillStyle = cor[9791];ctx.fillRect(910,970, 10, 10) ctx.fillStyle = cor[9792];ctx.fillRect(920,970, 10, 10) ctx.fillStyle = cor[9793];ctx.fillRect(930,970, 10, 10) ctx.fillStyle = cor[9794];ctx.fillRect(940,970, 10, 10) ctx.fillStyle = cor[9795];ctx.fillRect(950,970, 10, 10) ctx.fillStyle = cor[9796];ctx.fillRect(960,970, 10, 10) ctx.fillStyle = cor[9797];ctx.fillRect(970,970, 10, 10) ctx.fillStyle = cor[9798];ctx.fillRect(980,970, 10, 10) ctx.fillStyle = cor[9799];ctx.fillRect(990,970, 10, 10) ctx.fillStyle = cor[9800];ctx.fillRect(0,980, 10, 10) ctx.fillStyle = cor[9801];ctx.fillRect(10,980, 10, 10) ctx.fillStyle = cor[9802];ctx.fillRect(20,980, 10, 10) ctx.fillStyle = cor[9803];ctx.fillRect(30,980, 10, 10) ctx.fillStyle = cor[9804];ctx.fillRect(40,980, 10, 10) ctx.fillStyle = cor[9805];ctx.fillRect(50,980, 10, 10) ctx.fillStyle = cor[9806];ctx.fillRect(60,980, 10, 10) ctx.fillStyle = cor[9807];ctx.fillRect(70,980, 10, 10) ctx.fillStyle = cor[9808];ctx.fillRect(80,980, 10, 10) ctx.fillStyle = cor[9809];ctx.fillRect(90,980, 10, 10) ctx.fillStyle = cor[9810];ctx.fillRect(100,980, 10, 10) ctx.fillStyle = cor[9811];ctx.fillRect(110,980, 10, 10) ctx.fillStyle = cor[9812];ctx.fillRect(120,980, 10, 10) ctx.fillStyle = cor[9813];ctx.fillRect(130,980, 10, 10) ctx.fillStyle = cor[9814];ctx.fillRect(140,980, 10, 10) ctx.fillStyle = cor[9815];ctx.fillRect(150,980, 10, 10) ctx.fillStyle = cor[9816];ctx.fillRect(160,980, 10, 10) ctx.fillStyle = cor[9817];ctx.fillRect(170,980, 10, 10) ctx.fillStyle = cor[9818];ctx.fillRect(180,980, 10, 10) ctx.fillStyle = cor[9819];ctx.fillRect(190,980, 10, 10) ctx.fillStyle = cor[9820];ctx.fillRect(200,980, 10, 10) ctx.fillStyle = cor[9821];ctx.fillRect(210,980, 10, 10) ctx.fillStyle = cor[9822];ctx.fillRect(220,980, 10, 10) ctx.fillStyle = cor[9823];ctx.fillRect(230,980, 10, 10) ctx.fillStyle = cor[9824];ctx.fillRect(240,980, 10, 10) ctx.fillStyle = cor[9825];ctx.fillRect(250,980, 10, 10) ctx.fillStyle = cor[9826];ctx.fillRect(260,980, 10, 10) ctx.fillStyle = cor[9827];ctx.fillRect(270,980, 10, 10) ctx.fillStyle = cor[9828];ctx.fillRect(280,980, 10, 10) ctx.fillStyle = cor[9829];ctx.fillRect(290,980, 10, 10) ctx.fillStyle = cor[9830];ctx.fillRect(300,980, 10, 10) ctx.fillStyle = cor[9831];ctx.fillRect(310,980, 10, 10) ctx.fillStyle = cor[9832];ctx.fillRect(320,980, 10, 10) ctx.fillStyle = cor[9833];ctx.fillRect(330,980, 10, 10) ctx.fillStyle = cor[9834];ctx.fillRect(340,980, 10, 10) ctx.fillStyle = cor[9835];ctx.fillRect(350,980, 10, 10) ctx.fillStyle = cor[9836];ctx.fillRect(360,980, 10, 10) ctx.fillStyle = cor[9837];ctx.fillRect(370,980, 10, 10) ctx.fillStyle = cor[9838];ctx.fillRect(380,980, 10, 10) ctx.fillStyle = cor[9839];ctx.fillRect(390,980, 10, 10) ctx.fillStyle = cor[9840];ctx.fillRect(400,980, 10, 10) ctx.fillStyle = cor[9841];ctx.fillRect(410,980, 10, 10) ctx.fillStyle = cor[9842];ctx.fillRect(420,980, 10, 10) ctx.fillStyle = cor[9843];ctx.fillRect(430,980, 10, 10) ctx.fillStyle = cor[9844];ctx.fillRect(440,980, 10, 10) ctx.fillStyle = cor[9845];ctx.fillRect(450,980, 10, 10) ctx.fillStyle = cor[9846];ctx.fillRect(460,980, 10, 10) ctx.fillStyle = cor[9847];ctx.fillRect(470,980, 10, 10) ctx.fillStyle = cor[9848];ctx.fillRect(480,980, 10, 10) ctx.fillStyle = cor[9849];ctx.fillRect(490,980, 10, 10) ctx.fillStyle = cor[9850];ctx.fillRect(500,980, 10, 10) ctx.fillStyle = cor[9851];ctx.fillRect(510,980, 10, 10) ctx.fillStyle = cor[9852];ctx.fillRect(520,980, 10, 10) ctx.fillStyle = cor[9853];ctx.fillRect(530,980, 10, 10) ctx.fillStyle = cor[9854];ctx.fillRect(540,980, 10, 10) ctx.fillStyle = cor[9855];ctx.fillRect(550,980, 10, 10) ctx.fillStyle = cor[9856];ctx.fillRect(560,980, 10, 10) ctx.fillStyle = cor[9857];ctx.fillRect(570,980, 10, 10) ctx.fillStyle = cor[9858];ctx.fillRect(580,980, 10, 10) ctx.fillStyle = cor[9859];ctx.fillRect(590,980, 10, 10) ctx.fillStyle = cor[9860];ctx.fillRect(600,980, 10, 10) ctx.fillStyle = cor[9861];ctx.fillRect(610,980, 10, 10) ctx.fillStyle = cor[9862];ctx.fillRect(620,980, 10, 10) ctx.fillStyle = cor[9863];ctx.fillRect(630,980, 10, 10) ctx.fillStyle = cor[9864];ctx.fillRect(640,980, 10, 10) ctx.fillStyle = cor[9865];ctx.fillRect(650,980, 10, 10) ctx.fillStyle = cor[9866];ctx.fillRect(660,980, 10, 10) ctx.fillStyle = cor[9867];ctx.fillRect(670,980, 10, 10) ctx.fillStyle = cor[9868];ctx.fillRect(680,980, 10, 10) ctx.fillStyle = cor[9869];ctx.fillRect(690,980, 10, 10) ctx.fillStyle = cor[9870];ctx.fillRect(700,980, 10, 10) ctx.fillStyle = cor[9871];ctx.fillRect(710,980, 10, 10) ctx.fillStyle = cor[9872];ctx.fillRect(720,980, 10, 10) ctx.fillStyle = cor[9873];ctx.fillRect(730,980, 10, 10) ctx.fillStyle = cor[9874];ctx.fillRect(740,980, 10, 10) ctx.fillStyle = cor[9875];ctx.fillRect(750,980, 10, 10) ctx.fillStyle = cor[9876];ctx.fillRect(760,980, 10, 10) ctx.fillStyle = cor[9877];ctx.fillRect(770,980, 10, 10) ctx.fillStyle = cor[9878];ctx.fillRect(780,980, 10, 10) ctx.fillStyle = cor[9879];ctx.fillRect(790,980, 10, 10) ctx.fillStyle = cor[9880];ctx.fillRect(800,980, 10, 10) ctx.fillStyle = cor[9881];ctx.fillRect(810,980, 10, 10) ctx.fillStyle = cor[9882];ctx.fillRect(820,980, 10, 10) ctx.fillStyle = cor[9883];ctx.fillRect(830,980, 10, 10) ctx.fillStyle = cor[9884];ctx.fillRect(840,980, 10, 10) ctx.fillStyle = cor[9885];ctx.fillRect(850,980, 10, 10) ctx.fillStyle = cor[9886];ctx.fillRect(860,980, 10, 10) ctx.fillStyle = cor[9887];ctx.fillRect(870,980, 10, 10) ctx.fillStyle = cor[9888];ctx.fillRect(880,980, 10, 10) ctx.fillStyle = cor[9889];ctx.fillRect(890,980, 10, 10) ctx.fillStyle = cor[9890];ctx.fillRect(900,980, 10, 10) ctx.fillStyle = cor[9891];ctx.fillRect(910,980, 10, 10) ctx.fillStyle = cor[9892];ctx.fillRect(920,980, 10, 10) ctx.fillStyle = cor[9893];ctx.fillRect(930,980, 10, 10) ctx.fillStyle = cor[9894];ctx.fillRect(940,980, 10, 10) ctx.fillStyle = cor[9895];ctx.fillRect(950,980, 10, 10) ctx.fillStyle = cor[9896];ctx.fillRect(960,980, 10, 10) ctx.fillStyle = cor[9897];ctx.fillRect(970,980, 10, 10) ctx.fillStyle = cor[9898];ctx.fillRect(980,980, 10, 10) ctx.fillStyle = cor[9899];ctx.fillRect(990,980, 10, 10) ctx.fillStyle = cor[9900];ctx.fillRect(0,990, 10, 10) ctx.fillStyle = cor[9901];ctx.fillRect(10,990, 10, 10) ctx.fillStyle = cor[9902];ctx.fillRect(20,990, 10, 10) ctx.fillStyle = cor[9903];ctx.fillRect(30,990, 10, 10) ctx.fillStyle = cor[9904];ctx.fillRect(40,990, 10, 10) ctx.fillStyle = cor[9905];ctx.fillRect(50,990, 10, 10) ctx.fillStyle = cor[9906];ctx.fillRect(60,990, 10, 10) ctx.fillStyle = cor[9907];ctx.fillRect(70,990, 10, 10) ctx.fillStyle = cor[9908];ctx.fillRect(80,990, 10, 10) ctx.fillStyle = cor[9909];ctx.fillRect(90,990, 10, 10) ctx.fillStyle = cor[9910];ctx.fillRect(100,990, 10, 10) ctx.fillStyle = cor[9911];ctx.fillRect(110,990, 10, 10) ctx.fillStyle = cor[9912];ctx.fillRect(120,990, 10, 10) ctx.fillStyle = cor[9913];ctx.fillRect(130,990, 10, 10) ctx.fillStyle = cor[9914];ctx.fillRect(140,990, 10, 10) ctx.fillStyle = cor[9915];ctx.fillRect(150,990, 10, 10) ctx.fillStyle = cor[9916];ctx.fillRect(160,990, 10, 10) ctx.fillStyle = cor[9917];ctx.fillRect(170,990, 10, 10) ctx.fillStyle = cor[9918];ctx.fillRect(180,990, 10, 10) ctx.fillStyle = cor[9919];ctx.fillRect(190,990, 10, 10) ctx.fillStyle = cor[9920];ctx.fillRect(200,990, 10, 10) ctx.fillStyle = cor[9921];ctx.fillRect(210,990, 10, 10) ctx.fillStyle = cor[9922];ctx.fillRect(220,990, 10, 10) ctx.fillStyle = cor[9923];ctx.fillRect(230,990, 10, 10) ctx.fillStyle = cor[9924];ctx.fillRect(240,990, 10, 10) ctx.fillStyle = cor[9925];ctx.fillRect(250,990, 10, 10) ctx.fillStyle = cor[9926];ctx.fillRect(260,990, 10, 10) ctx.fillStyle = cor[9927];ctx.fillRect(270,990, 10, 10) ctx.fillStyle = cor[9928];ctx.fillRect(280,990, 10, 10) ctx.fillStyle = cor[9929];ctx.fillRect(290,990, 10, 10) ctx.fillStyle = cor[9930];ctx.fillRect(300,990, 10, 10) ctx.fillStyle = cor[9931];ctx.fillRect(310,990, 10, 10) ctx.fillStyle = cor[9932];ctx.fillRect(320,990, 10, 10) ctx.fillStyle = cor[9933];ctx.fillRect(330,990, 10, 10) ctx.fillStyle = cor[9934];ctx.fillRect(340,990, 10, 10) ctx.fillStyle = cor[9935];ctx.fillRect(350,990, 10, 10) ctx.fillStyle = cor[9936];ctx.fillRect(360,990, 10, 10) ctx.fillStyle = cor[9937];ctx.fillRect(370,990, 10, 10) ctx.fillStyle = cor[9938];ctx.fillRect(380,990, 10, 10) ctx.fillStyle = cor[9939];ctx.fillRect(390,990, 10, 10) ctx.fillStyle = cor[9940];ctx.fillRect(400,990, 10, 10) ctx.fillStyle = cor[9941];ctx.fillRect(410,990, 10, 10) ctx.fillStyle = cor[9942];ctx.fillRect(420,990, 10, 10) ctx.fillStyle = cor[9943];ctx.fillRect(430,990, 10, 10) ctx.fillStyle = cor[9944];ctx.fillRect(440,990, 10, 10) ctx.fillStyle = cor[9945];ctx.fillRect(450,990, 10, 10) ctx.fillStyle = cor[9946];ctx.fillRect(460,990, 10, 10) ctx.fillStyle = cor[9947];ctx.fillRect(470,990, 10, 10) ctx.fillStyle = cor[9948];ctx.fillRect(480,990, 10, 10) ctx.fillStyle = cor[9949];ctx.fillRect(490,990, 10, 10) ctx.fillStyle = cor[9950];ctx.fillRect(500,990, 10, 10) ctx.fillStyle = cor[9951];ctx.fillRect(510,990, 10, 10) ctx.fillStyle = cor[9952];ctx.fillRect(520,990, 10, 10) ctx.fillStyle = cor[9953];ctx.fillRect(530,990, 10, 10) ctx.fillStyle = cor[9954];ctx.fillRect(540,990, 10, 10) ctx.fillStyle = cor[9955];ctx.fillRect(550,990, 10, 10) ctx.fillStyle = cor[9956];ctx.fillRect(560,990, 10, 10) ctx.fillStyle = cor[9957];ctx.fillRect(570,990, 10, 10) ctx.fillStyle = cor[9958];ctx.fillRect(580,990, 10, 10) ctx.fillStyle = cor[9959];ctx.fillRect(590,990, 10, 10) ctx.fillStyle = cor[9960];ctx.fillRect(600,990, 10, 10) ctx.fillStyle = cor[9961];ctx.fillRect(610,990, 10, 10) ctx.fillStyle = cor[9962];ctx.fillRect(620,990, 10, 10) ctx.fillStyle = cor[9963];ctx.fillRect(630,990, 10, 10) ctx.fillStyle = cor[9964];ctx.fillRect(640,990, 10, 10) ctx.fillStyle = cor[9965];ctx.fillRect(650,990, 10, 10) ctx.fillStyle = cor[9966];ctx.fillRect(660,990, 10, 10) ctx.fillStyle = cor[9967];ctx.fillRect(670,990, 10, 10) ctx.fillStyle = cor[9968];ctx.fillRect(680,990, 10, 10) ctx.fillStyle = cor[9969];ctx.fillRect(690,990, 10, 10) ctx.fillStyle = cor[9970];ctx.fillRect(700,990, 10, 10) ctx.fillStyle = cor[9971];ctx.fillRect(710,990, 10, 10) ctx.fillStyle = cor[9972];ctx.fillRect(720,990, 10, 10) ctx.fillStyle = cor[9973];ctx.fillRect(730,990, 10, 10) ctx.fillStyle = cor[9974];ctx.fillRect(740,990, 10, 10) ctx.fillStyle = cor[9975];ctx.fillRect(750,990, 10, 10) ctx.fillStyle = cor[9976];ctx.fillRect(760,990, 10, 10) ctx.fillStyle = cor[9977];ctx.fillRect(770,990, 10, 10) ctx.fillStyle = cor[9978];ctx.fillRect(780,990, 10, 10) ctx.fillStyle = cor[9979];ctx.fillRect(790,990, 10, 10) ctx.fillStyle = cor[9980];ctx.fillRect(800,990, 10, 10) ctx.fillStyle = cor[9981];ctx.fillRect(810,990, 10, 10) ctx.fillStyle = cor[9982];ctx.fillRect(820,990, 10, 10) ctx.fillStyle = cor[9983];ctx.fillRect(830,990, 10, 10) ctx.fillStyle = cor[9984];ctx.fillRect(840,990, 10, 10) ctx.fillStyle = cor[9985];ctx.fillRect(850,990, 10, 10) ctx.fillStyle = cor[9986];ctx.fillRect(860,990, 10, 10) ctx.fillStyle = cor[9987];ctx.fillRect(870,990, 10, 10) ctx.fillStyle = cor[9988];ctx.fillRect(880,990, 10, 10) ctx.fillStyle = cor[9989];ctx.fillRect(890,990, 10, 10) ctx.fillStyle = cor[9990];ctx.fillRect(900,990, 10, 10) ctx.fillStyle = cor[9991];ctx.fillRect(910,990, 10, 10) ctx.fillStyle = cor[9992];ctx.fillRect(920,990, 10, 10) ctx.fillStyle = cor[9993];ctx.fillRect(930,990, 10, 10) ctx.fillStyle = cor[9994];ctx.fillRect(940,990, 10, 10) ctx.fillStyle = cor[9995];ctx.fillRect(950,990, 10, 10) ctx.fillStyle = cor[9996];ctx.fillRect(960,990, 10, 10) ctx.fillStyle = cor[9997];ctx.fillRect(970,990, 10, 10) ctx.fillStyle = cor[9998];ctx.fillRect(980,990, 10, 10) ctx.fillStyle = cor[9999];ctx.fillRect(990,990, 10, 10)
58.415592
20,000
0.692636
1961454747468f6e68fe2160556261a8e71403a9
1,929
js
JavaScript
lib/utils.js
borracciaBlu/njk
d0533f66fc9cbb03a1913c0c494db3e0550b0199
[ "MIT" ]
null
null
null
lib/utils.js
borracciaBlu/njk
d0533f66fc9cbb03a1913c0c494db3e0550b0199
[ "MIT" ]
null
null
null
lib/utils.js
borracciaBlu/njk
d0533f66fc9cbb03a1913c0c494db3e0550b0199
[ "MIT" ]
null
null
null
const path = require('path') const fs = require('fs-extra') const { gzipSync } = require('zlib') const logger = require('./logger') /** * Type of paths passed as arguments * @type {object} */ module.exports.pathtype = { SOURCES: 'sources', TEMPLATES: 'templates' } /** * Filter all existing files * @param {object} files files to be added * @param {string} pathtype pathtype of files for logging * @return {object} filtered list */ module.exports.getExisting = (files, pathtype) => { if (files && files.length) { return files.map(file => path.resolve(file)).filter(fs.existsSync) } else { logger.warn(`Using current directory for ${pathtype}`) return [process.cwd()] } } /** * Check if a file is inside one of the folders of a list * @param {string} file file to check existence * @param {object} list list of paths to look inside * @return {string} path containing file */ module.exports.isInside = (file, list) => { const _file = path.resolve(file) let parent = false list.forEach(item => { if (_file.includes(item)) { parent = parent && item.includes(parent) ? parent : item } }) return parent } /** * Convert gzip file size to human readable format * @param {string} file file to calculate size for * @return {string} human readable size */ module.exports.humanSize = file => { const size = gzipSync(fs.readFileSync(file, 'utf8')).length if (size >> 20) { return `${(size / (1024 * 1024)).toFixed(2)} MB` } if (size >> 10) { return `${(size / 1024).toFixed(2)} KB` } return `${size} B` } /** * convert time difference of `process.hrtime` to human readable time * @param {object} td time difference of `process.hrtime` * @return {string} human readable time */ module.exports.humanTime = td => { if (td[0]) { return `${(td[0] + td[1] / 1e9).toFixed(2)}s` } return `${(td[1] / 1e6).toFixed(2)}ms` }
26.067568
70
0.634526
196226f1ce9254164737c26df37b02054cd01fc5
516
js
JavaScript
spec/SpecHelper.js
hkp108/jsfizz
343a99b1585018c3497fac14cab8bc1743934196
[ "MIT" ]
null
null
null
spec/SpecHelper.js
hkp108/jsfizz
343a99b1585018c3497fac14cab8bc1743934196
[ "MIT" ]
null
null
null
spec/SpecHelper.js
hkp108/jsfizz
343a99b1585018c3497fac14cab8bc1743934196
[ "MIT" ]
null
null
null
// beforeEach(function () { // jasmine.addMatchers({ // toBePlaying: function () { // return { // compare: function (actual, expected) { // var player = actual; // // return { // pass: player.currentlyPlayingSong === expected && player.isPlaying // }; // } // }; // } // }); // }); // describe("Fizzbuzz", function() { // it("should list the numbers from 1 to 100", function() { // expect(fizzbuzz()).toBe(true) // }); // })
23.454545
81
0.484496
1962f2a41b5a47e348ff900410a19f11bf1bc43c
454
js
JavaScript
dist/others/keywords.js
sathishrazor/BASIC-JS-Interpretor
6116d57d3e5acf72a22616bd2f1ba7c54755b112
[ "MIT" ]
null
null
null
dist/others/keywords.js
sathishrazor/BASIC-JS-Interpretor
6116d57d3e5acf72a22616bd2f1ba7c54755b112
[ "MIT" ]
null
null
null
dist/others/keywords.js
sathishrazor/BASIC-JS-Interpretor
6116d57d3e5acf72a22616bd2f1ba7c54755b112
[ "MIT" ]
2
2020-03-05T09:37:55.000Z
2021-03-29T05:00:25.000Z
define(["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LANG_KEYWORDS = [ "VAR", "AND", "OR", "NOT", "IF", "ELIF", "ELSE", "FOR", "TO", "STEP", "WHILE", "FUN", "THEN", "END", "RETURN", "CONTINUE", "BREAK" ]; });
18.916667
66
0.398678
1963e687f4e22a180e15a9cbf107217cea27c93f
351
js
JavaScript
components/time.js
NawrasseDahman/Craft-Dog
34ac79079e1f96bd3d208c3bd382f00192006d38
[ "MIT" ]
null
null
null
components/time.js
NawrasseDahman/Craft-Dog
34ac79079e1f96bd3d208c3bd382f00192006d38
[ "MIT" ]
1
2022-02-18T01:53:56.000Z
2022-02-18T01:53:56.000Z
components/time.js
NawrasseDahman/Nawrasse-Portfolio
34ac79079e1f96bd3d208c3bd382f00192006d38
[ "MIT" ]
null
null
null
const bday = new Date('17 July 2004 05:00:00 GMT'); const ageMilliseconds = Date.now() - bday.getTime(); export const MILLISECOND = 1; export const SECOND = MILLISECOND * 1000; export const MINUTE = SECOND * 60; export const HOUR = MINUTE * 60; export const DAY = HOUR * 24; export const YEAR = DAY * 365; export const age = ageMilliseconds / YEAR;
29.25
52
0.712251
19655d12a0d62685f1ed6a56e6a321a1356cb267
601
js
JavaScript
public/js/dashboard.js
mgmcintyre777/your-care
cec8298bed4f57b8e633c5fbaf5120657977b754
[ "MIT" ]
null
null
null
public/js/dashboard.js
mgmcintyre777/your-care
cec8298bed4f57b8e633c5fbaf5120657977b754
[ "MIT" ]
null
null
null
public/js/dashboard.js
mgmcintyre777/your-care
cec8298bed4f57b8e633c5fbaf5120657977b754
[ "MIT" ]
null
null
null
const contentDiv = $("#page-section"); const surveyListDiv = $("#survey-list-div"); const surveyList = $("#survey-list"); $(document).ready(() => { surveyListDiv.hide(); $.getJSON("/api/getSurveys", data => { loadSurveyList(data); }); }); function loadSurveyList(data) { data.forEach(survey => { let listItem = $("<li>") .attr({ sid: survey._id }) .html(survey.name) .on("click", function(e) { console.log("redirect:", $(this).attr("sid")) //loadSurvey($(this).attr("sid")); }); surveyList.append(listItem); }); surveyListDiv.show(); }
25.041667
53
0.577371
1965c183bc903c5f366629a4ddc76b52bdd38376
2,875
js
JavaScript
dataprep-webapp/src/app/components/widgets/confirm/widget-confirm-controller.spec.js
ddstest/ddsprep
0b16d8487288df6ed71cdbac9c334a88195360af
[ "Apache-2.0" ]
null
null
null
dataprep-webapp/src/app/components/widgets/confirm/widget-confirm-controller.spec.js
ddstest/ddsprep
0b16d8487288df6ed71cdbac9c334a88195360af
[ "Apache-2.0" ]
null
null
null
dataprep-webapp/src/app/components/widgets/confirm/widget-confirm-controller.spec.js
ddstest/ddsprep
0b16d8487288df6ed71cdbac9c334a88195360af
[ "Apache-2.0" ]
null
null
null
/* ============================================================================ Copyright (C) 2006-2018 Talend Inc. - www.talend.com This source code is available under agreement available at https://github.com/Talend/data-prep/blob/master/LICENSE You should have received a copy of the agreement along with this program; if not, write to Talend SA 9 rue Pages 92150 Suresnes, France ============================================================================*/ describe('Confirm directive', function () { 'use strict'; var ctrl; var createController; var scope; beforeEach(angular.mock.module('talend.widget')); beforeEach(inject(function ($rootScope, $controller, TalendConfirmService) { scope = $rootScope.$new(); createController = function () { return $controller('TalendConfirmCtrl', { $scope: scope, }); }; spyOn(TalendConfirmService, 'resolve').and.returnValue(null); spyOn(TalendConfirmService, 'reject').and.returnValue(null); })); it('should init modal state and button clicked flag', function () { //when ctrl = createController(); //then expect(ctrl.modalState).toBeTruthy(); expect(ctrl.buttonClicked).toBeFalsy(); }); it('should set clicked flag and call service resolve', inject(function (TalendConfirmService) { //given ctrl = createController(); expect(ctrl.buttonClicked).toBeFalsy(); //when ctrl.valid(); //then expect(TalendConfirmService.resolve).toHaveBeenCalled(); expect(ctrl.buttonClicked).toBeTruthy(); })); it('should set clicked flag and call service reject', inject(function (TalendConfirmService) { //given ctrl = createController(); expect(ctrl.buttonClicked).toBeFalsy(); //when ctrl.cancel(); //then expect(TalendConfirmService.reject).toHaveBeenCalled(); expect(ctrl.buttonClicked).toBeTruthy(); })); it('should set call service reject on modal dismiss', inject(function (TalendConfirmService) { //given ctrl = createController(); expect(ctrl.buttonClicked).toBeFalsy(); //when ctrl.modalState = false; scope.$digest(); //then expect(TalendConfirmService.reject).toHaveBeenCalledWith('dismiss'); expect(ctrl.buttonClicked).toBeFalsy(); })); it('should do nothing on modal dismiss if one of the button has been clicked', inject(function (TalendConfirmService) { //given ctrl = createController(); ctrl.buttonClicked = true; //when ctrl.modalState = false; scope.$digest(); //then expect(TalendConfirmService.reject).not.toHaveBeenCalled(); })); });
29.336735
123
0.590957
1966808c45a0c5ed73cc7998f58bfd4fdb2b3c61
7,378
js
JavaScript
bin/lynn-cli.js
davidahouse/lynn-cli
957c90565be7c58777084f9bbf7520659c401aaa
[ "MIT" ]
1
2019-03-05T23:12:52.000Z
2019-03-05T23:12:52.000Z
bin/lynn-cli.js
davidahouse/lynn-cli
957c90565be7c58777084f9bbf7520659c401aaa
[ "MIT" ]
53
2019-03-05T14:42:01.000Z
2020-05-16T01:17:46.000Z
bin/lynn-cli.js
davidahouse/lynn-cli
957c90565be7c58777084f9bbf7520659c401aaa
[ "MIT" ]
null
null
null
#!/usr/bin/env node const fs = require("fs"); const chalk = require("chalk"); const clear = require("clear"); const figlet = require("figlet"); const vorpal = require("vorpal")(); const Ora = require("ora"); const jp = require("jsonpath"); const ptr = require("json-ptr"); const pkginfo = require("pkginfo")(module); const Queue = require("better-queue"); const conf = require("rc")("lynn", { // defaults workingFolder: process.env.HOME + "/.lynn", autoSave: false, interactive: true }); // Internal helpers const files = require("../lib/files"); const request = require("../lib/request"); const state = require("../lib/state"); // Commands const commandEnvironment = require("../commands/environment"); const commandResponse = require("../commands/response"); const commandAutoSave = require("../commands/autoSave"); const commandReset = require("../commands/reset"); const commandQuery = require("../commands/query"); const commandSet = require("../commands/set"); const commandEval = require("../commands/eval"); const commandSetArray = require("../commands/setArray"); const commandAppend = require("../commands/append"); const commandGenerate = require("../commands/generate"); const commandSchema = require("../commands/schema"); const commandMatrix = require("../commands/matrix"); const commandConfig = require("../commands/config"); const commandRequests = require("../commands/requests"); const commandRequest = require("../commands/request"); const commandForEach = require("../commands/forEach"); const commandSave = require("../commands/save"); clear(); console.log( chalk.yellow(figlet.textSync("lynn", { horizontalLayout: "full" })) ); console.log(chalk.yellow(module.exports.version)); // Setup our initial state let currentState = state.initializeState(conf); // Handle bool conf values from the command line (or other places) if (conf.interactive === "false") { conf.interactive = false; } if (conf.autoSave === "true") { conf.autoSave = true; } if (conf.interactive) { vorpal .command( "environment [env]", "Add to current environment or display current environment" ) .autocomplete({ data: function() { return files.listFiles(conf.workingFolder, "environment"); } }) .action(function(args, callback) { commandEnvironment.handle(args.env, conf, currentState, vorpal, callback); }); vorpal .command("reset", "Reset any saved config") .action(function(args, callback) { commandReset.handle(currentState, vorpal, callback); }); vorpal .command("response [key]", "View the contents of the last response") .action(function(args, callback) { commandResponse.handle(args.key, currentState, vorpal, callback); }); vorpal .command("autoSave [save]", "Turn on/off saving of responses") .action(function(args, callback) { commandAutoSave.handle(args.save, currentState, vorpal, callback); }); vorpal .command("query <path>", "Query the last response using jsonpath syntax") .action(function(args, callback) { commandQuery.handle(args.path, currentState, vorpal, callback); }); vorpal .command("set <variable> <value>", "Set a value in the current environment") .action(function(args, callback) { commandSet.handle( args.variable, args.value, currentState, vorpal, callback ); }); vorpal .command( "eval <variable> <value>", "Set a value in the current environment by evaluating a javascript statement" ) .action(function(args, callback) { commandEval.handle( args.variable, args.value, currentState, vorpal, callback ); }); vorpal .command( "setArray <variable>", "Make an entry in the environment an empty array" ) .action(function(args, callback) { commandSetArray.handle(args.variable, currentState, vorpal, callback); }); vorpal .command( "append <variable> <value>", "Appends a value to an existing array" ) .action(function(args, callback) { commandAppend.handle( args.variable, args.value, currentState, vorpal, callback ); }); vorpal .command("generate", "Generate the docs for this project") .action(function(args, callback) { commandGenerate.handle(currentState, vorpal, callback); }); vorpal .command( "schema", "Generate the list of paths found in the response data json" ) .action(function(args, callback) { commandSchema.handle(currentState, vorpal, callback); }); vorpal .command( "matrix <request> <xaxis> <yaxis>", "Execute a series of requests with a combination of environment files" ) .action(function(args, callback) { commandMatrix.handle( args.request, args.xaxis, args.yaxis, currentState, vorpal, callback ); }); vorpal .command("config", "Show the current config") .action(function(args, callback) { commandConfig.handle(currentState, vorpal, callback); }); vorpal .command("requests", "List all the requests available") .action(function(args, callback) { commandRequests.handle(currentState, vorpal, callback); }); vorpal .command("request <name>", "Execute a request inside an OpenAPI spec") .autocomplete({ data: function() { return Object.keys(requests); } }) .action(function(args, callback) { commandRequest.handle(args.name, currentState, vorpal, callback); }); vorpal .command( "forEach <variable> <request>", "Execute a series of requests based on an environment variable array" ) .autocomplete({ data: function() { return Object.keys(requests).concat(Object.keys(currentEnvironment)); } }) .action(function(args, callback) { commandForEach.handle( args.variable, args.request, currentState, vorpal, callback ); }); vorpal .command("save", "Saves the most recent response") .action(function(args, callback) { commandSave.handle(currentState, vorpal, callback); }); vorpal.history("stampede-cli"); vorpal.delimiter("lynn-cli>").show(); } else { if (conf.request != null) { const spinner = new Ora("--> " + conf.request, "clock").start(); const rootPath = files.rootPath(conf.workingFolder, "requests"); const apiFile = request.parseApiFile( rootPath + "/" + requests[conf.request].file ); if (apiFile != null) { request.executeRequest( conf.workingFolder, currentEnvironment, apiFile, conf.request, conf.autoSave, function(result, response) { if (result.statusCode) { if (result.statusCode < 300) { spinner.color = "green"; spinner.succeed("--> " + chalk.green(response)); } else if (result.statusCode > 300) { spinner.fail("--> " + chalk.red(response)); } } else { spinner.fail("--> " + chalk.red(result.error)); } } ); } else { spinner.fail("--> " + chalk.red("request not found")); } } }
28.160305
83
0.626321
1966b0e5d2294106b4572d44e31997cb7069feb8
235
js
JavaScript
test/mkDirAsync.js
assapir/mkdir-native
fc4896225a8e5c31ea1d34ab35e2d18e73ee91f7
[ "MIT" ]
null
null
null
test/mkDirAsync.js
assapir/mkdir-native
fc4896225a8e5c31ea1d34ab35e2d18e73ee91f7
[ "MIT" ]
null
null
null
test/mkDirAsync.js
assapir/mkdir-native
fc4896225a8e5c31ea1d34ab35e2d18e73ee91f7
[ "MIT" ]
null
null
null
const assert = require('assert') const fs = require('fs') const mkdir = require('../index') const test = () => { mkdir('this/app/a/b', (err, msg) => { if (err) throw err assert.ok(fs.statSync('this/app/a/b')) }) } test()
18.076923
42
0.574468
19670a8f36a59c47751523924403a57af51aeb22
1,253
js
JavaScript
app/routes/index.js
ajohn1215/personal-site
2a7ebfbec0b2f2161ca52fedfe15ca7305247581
[ "MIT" ]
null
null
null
app/routes/index.js
ajohn1215/personal-site
2a7ebfbec0b2f2161ca52fedfe15ca7305247581
[ "MIT" ]
null
null
null
app/routes/index.js
ajohn1215/personal-site
2a7ebfbec0b2f2161ca52fedfe15ca7305247581
[ "MIT" ]
null
null
null
'use strict'; var path = process.cwd(); module.exports = function (app, db) { app.route('/') .get(function (req, res) { res.sendFile(path + '/public/index.html'); }); app.route('/api/map') .get(function (req, res) { var map = db.collection('site'); map.find({}).toArray((err, results) => { if(err) throw err; res.send(results); }); }); app.route('/api/app/users') .get(function (req,res) { var users = db.collection('users'); users.find({}).toArray((err, results) => { if(err) throw err; res.send(results); }); }); app.route('/api/app/users') .post(function (req, res) { var users = db.collection('users'); console.log(req.body); users.insert(req.body, (err, results) => { if(err)throw err; res.send(results); }); }); app.route('/api/app/questions') .get(function(req, res) { var questions = db.collection('questions'); questions.find({}).toArray((err, results) => { if(err) throw err; res.send(results); }); }); app.route('/api/app/question') .post(function(req, res) { var questions = db.collection('questions'); questions.insert(req.body, (err, results) => { if (err) throw err; res.send(results); }); }); };
21.237288
49
0.575419
19675246473ab0b1376d3e479a76f5424594ba36
8,268
js
JavaScript
zen-day-3/json-iteration.js
pammalPrasanna/guvi
38ec597e4e28c6a904c342ddf174e504ad3ebd40
[ "Apache-2.0" ]
null
null
null
zen-day-3/json-iteration.js
pammalPrasanna/guvi
38ec597e4e28c6a904c342ddf174e504ad3ebd40
[ "Apache-2.0" ]
null
null
null
zen-day-3/json-iteration.js
pammalPrasanna/guvi
38ec597e4e28c6a904c342ddf174e504ad3ebd40
[ "Apache-2.0" ]
null
null
null
const result = {"response_code":0,"results":[{"category":"History","type":"multiple","difficulty":"medium","question":"Which of these countries was sea charted in 1500 by the Portuguese maritime explorations?","correct_answer":"Brazil","incorrect_answers":["India","Mozambique","Madagascar"]},{"category":"Entertainment: Video Games","type":"multiple","difficulty":"medium","question":"What is the name the location-based augmented reality game developed by Niantic before Pok&eacute;mon GO?","correct_answer":"Ingress","incorrect_answers":["Aggress","Regress","Digress"]},{"category":"Science & Nature","type":"multiple","difficulty":"hard","question":"What is the scientific name of the red fox?","correct_answer":"Vulpes Vulpes","incorrect_answers":["Vulpes Redus","Red Fox","Vulpes Vulpie"]},{"category":"History","type":"multiple","difficulty":"medium","question":"Who tutored Alexander the Great?","correct_answer":"Aristotle","incorrect_answers":["Socrates","Plato","King Philip"]},{"category":"Entertainment: Video Games","type":"multiple","difficulty":"medium","question":"Final Fantasy VI was originally released outside Japan under what name?","correct_answer":"Final Fantasy III","incorrect_answers":["Final Fantasy VI","Final Fantasy V","Final Fantasy II"]},{"category":"General Knowledge","type":"multiple","difficulty":"medium","question":"What was the soft drink Pepsi originally introduced as?","correct_answer":"Brad&#039;s Drink","incorrect_answers":["Pepsin Pop","Carolina Cola","Pepsin Syrup"]},{"category":"Entertainment: Comics","type":"multiple","difficulty":"medium","question":"In Calvin and Hobbes, what is the name of Susie&#039;s stuffed rabbit?","correct_answer":"Mr. Bun","incorrect_answers":["Mr. Bunbun","Mr. Rabbit","Mr. Hoppy"]},{"category":"Entertainment: Music","type":"boolean","difficulty":"hard","question":"The song Scatman&#039;s World was released after Scatman (Ski-Ba-Bop-Ba-Dop-Bop).","correct_answer":"True","incorrect_answers":["False"]},{"category":"History","type":"multiple","difficulty":"easy","question":"What is the historical name of Sri Lanka?","correct_answer":"Ceylon","incorrect_answers":["Myanmar","Colombo","Badulla"]},{"category":"General Knowledge","type":"multiple","difficulty":"hard","question":"How many notes are there on a standard grand piano?","correct_answer":"88","incorrect_answers":["98","108","78"]}]} //getting the results array from the json response const questions = result.results; //Using forEach to print only the question and choice with "difficulty":"medium" // with question no. (index starts from 1) questions.forEach((question, index) => { if(question.difficulty === 'medium'){ console.log(`Question ${index+1}: `, question.question); console.log('Choices: ', `${question.correct_answer}, ${question.incorrect_answers.join(", ")}`); } }) //output // Question 1: Which of these countries was sea charted in 1500 by the Portuguese maritime explorations? // Choices: Brazil, India, Mozambique, Madagascar // Question 2: What is the name the location-based augmented reality game developed by Niantic before Pok&eacute;mon GO? // Choices: Ingress, Aggress, Regress, Digress // Question 4: Who tutored Alexander the Great? // Choices: Aristotle, Socrates, Plato, King Philip // Question 5: Final Fantasy VI was originally released outside Japan under what name? // Choices: Final Fantasy III, Final Fantasy VI, Final Fantasy V, Final Fantasy II // Question 6: What was the soft drink Pepsi originally introduced as? // Choices: Brad&#039;s Drink, Pepsin Pop, Carolina Cola, Pepsin Syrup // Question 7: In Calvin and Hobbes, what is the name of Susie&#039;s stuffed rabbit? // Choices: Mr. Bun, Mr. Bunbun, Mr. Rabbit, Mr. Hoppy console.log('================================================================================') //Using for...of to print only the category, question and choice with "category":"history" console.log('\nCategory: ', 'History'); for(const question of questions){ if(question.category === 'History'){ console.log(`Question : `, question.question); console.log('Choices: ', `${question.correct_answer}, ${question.incorrect_answers.join(", ")}`); } } //output // Category: History // Question : Which of these countries was sea charted in 1500 by the Portuguese maritime explorations? // Choices: Brazil, India, Mozambique, Madagascar // Question : Who tutored Alexander the Great? // Choices: Aristotle, Socrates, Plato, King Philip // Question : What is the historical name of Sri Lanka? // Choices: Ceylon, Myanmar, Colombo, Badulla console.log('================================================================================') //using for...in to print question and correct answer console.log('\nQuestions with answers') for(const question in questions){ console.log(`Question : `, questions[question]['question']); console.log(`Answer : `, questions[question]['correct_answer']); } //output // Questions with answers // Question : Which of these countries was sea charted in 1500 by the Portuguese maritime explorations? // Answer : Brazil // Question : What is the name the location-based augmented reality game developed by Niantic before Pok&eacute;mon GO? // Answer : Ingress // Question : What is the scientific name of the red fox? // Answer : Vulpes Vulpes // Question : Who tutored Alexander the Great? // Answer : Aristotle // Question : Final Fantasy VI was originally released outside Japan under what name? // Answer : Final Fantasy III // Question : What was the soft drink Pepsi originally introduced as? // Answer : Brad&#039;s Drink // Question : In Calvin and Hobbes, what is the name of Susie&#039;s stuffed rabbit? // Answer : Mr. Bun // Question : The song Scatman&#039;s World was released after Scatman (Ski-Ba-Bop-Ba-Dop-Bop). // Answer : True // Question : What is the historical name of Sri Lanka? // Answer : Ceylon // Question : How many notes are there on a standard grand piano? // Answer : 88 console.log('================================================================================') //using for to print the correct and incorrect answers of a question console.log('\nQuestions with correct and incorrect answers '); for(let i=0; i<questions.length; i++){ console.log('Question: ' , questions[i]['question']); console.log('Correct answer: ', questions[i]['correct_answer']); console.log('Incorrect answer: ', questions[i]['incorrect_answers']); } //output // Questions with correct and incorrect answers // Question: Which of these countries was sea charted in 1500 by the Portuguese maritime explorations? // Correct answer: Brazil // Incorrect answer: [ 'India', 'Mozambique', 'Madagascar' ] // Question: What is the name the location-based augmented reality game developed by Niantic before Pok&eacute;mon GO? // Correct answer: Ingress // Incorrect answer: [ 'Aggress', 'Regress', 'Digress' ] // Question: What is the scientific name of the red fox? // Correct answer: Vulpes Vulpes // Incorrect answer: [ 'Vulpes Redus', 'Red Fox', 'Vulpes Vulpie' ] // Question: Who tutored Alexander the Great? // Correct answer: Aristotle // Incorrect answer: [ 'Socrates', 'Plato', 'King Philip' ] // Question: Final Fantasy VI was originally released outside Japan under what name? // Correct answer: Final Fantasy III // Incorrect answer: [ 'Final Fantasy VI', 'Final Fantasy V', 'Final Fantasy II' ] // Question: What was the soft drink Pepsi originally introduced as? // Correct answer: Brad&#039;s Drink // Incorrect answer: [ 'Pepsin Pop', 'Carolina Cola', 'Pepsin Syrup' ] // Question: In Calvin and Hobbes, what is the name of Susie&#039;s stuffed rabbit? // Correct answer: Mr. Bun // Incorrect answer: [ 'Mr. Bunbun', 'Mr. Rabbit', 'Mr. Hoppy' ] // Question: The song Scatman&#039;s World was released after Scatman (Ski-Ba-Bop-Ba-Dop-Bop). // Correct answer: True // Incorrect answer: [ 'False' ] // Question: What is the historical name of Sri Lanka? // Correct answer: Ceylon // Incorrect answer: [ 'Myanmar', 'Colombo', 'Badulla' ] // Question: How many notes are there on a standard grand piano? // Correct answer: 88 // Incorrect answer: [ '98', '108', '78' ]
67.770492
2,377
0.696541
1967bcd35645bc452e479bc851f69dfe98eda8f3
5,216
js
JavaScript
routes/index.js
alvin9453/NTS_Final
56455a7aa997b1fe1e4262ce0fc863a49e1de642
[ "MIT" ]
1
2018-08-02T11:54:19.000Z
2018-08-02T11:54:19.000Z
routes/index.js
alvin9453/NTS_Final
56455a7aa997b1fe1e4262ce0fc863a49e1de642
[ "MIT" ]
null
null
null
routes/index.js
alvin9453/NTS_Final
56455a7aa997b1fe1e4262ce0fc863a49e1de642
[ "MIT" ]
null
null
null
var express = require('express'); var router = express.Router(); var firebase = require('firebase'); module.exports = function(passport){ /* GET home page. */ router.get('/', function(req, res, next) { res.render('index', { user: req.user , message : req.flash('message')}); }); router.get('/admin',ensureAuthenticated, function(req, res) { res.render('admin', { user: req.user } ); }); router.post('/admin', passport.authenticate('local', { successRedirect: '/admin', failureRedirect: '/', failureFlash : true })); // GET /auth/google // Use passport.authenticate() as route middleware to authenticate the // request. The first step in Google authentication will involve // redirecting the user to google.com. After authorization, Google // will redirect the user back to this application at /auth/google/callback router.get('/auth/google', passport.authenticate('google', { scope: ['openid email profile'] })); // GET /auth/google/callback // Use passport.authenticate() as route middleware to authenticate the // request. If authentication fails, the user will be redirected back to the // login page. Otherwise, the primary route function function will be called, // which, in this example, will redirect the user to the home page. router.get('/auth/google/callback', passport.authenticate('google', { failureRedirect: '/' }), function(req, res) { // Authenticated successfully var userEmail = req.user.emails[0].value; var userExistsPromise = new Promise(function(resolve,reject){ var usersRef = firebase.database().ref("users/"); usersRef.orderByChild('email').equalTo(userEmail).once('value', function(snapshot) { var exists = (snapshot.val() !== null); resolve(exists); }); }); userExistsPromise.then(isExists => { if (isExists) { res.redirect('/home'); } else { var addUserPromise = new Promise(function(resolve,reject){ var userRef = firebase.database().ref("users/"); var newUserKey = firebase.database().ref("users/").push().key; var postData = { name : req.user.displayName, character : 'student', email : userEmail }; var updates = {}; updates[newUserKey] = postData; userRef.update(updates); resolve("Add Ner User Success"); }); addUserPromise.then( message => { console.log(message); res.redirect('/home'); }); } }); }); router.get('/home', ensureAuthenticated, function(req, res) { res.render('home', { user: req.user }); }); router.get('/logout', function(req, res) { req.logout(); res.redirect('/'); }); router.get('/tutorials', function(req, res) { res.render('tutorials'); }); router.get('/note', function(req, res) { res.redirect('/home'); }); router.get('/addSlide', function(req, res) { res.render('addSlide', { user: req.user } ); }); router.get('/irs-teacher', ensureAuthenticated , function(req, res) { res.render('irs-teacher', { user: req.user } ); }); router.get('/irs-student', ensureAuthenticated,function(req, res) { res.render('irs-student', { user: req.user } ); }); router.post('/note-taking', ensureAuthenticated, function(req, res) { res.render('note-taking', { user: req.user, title : req.body.title, }); }); router.post('/note', ensureAuthenticated, function(req, res) { var charaRef = firebase.database().ref("users/"); charaRef.orderByChild('email').equalTo(req.user.emails[0].value).on('child_added',function(data){ if(data.val().character == "teacher"){ res.render('note-watching', { user: req.user, title : req.body.title, pptUrl : req.body.pptUrl, courseName : req.body.courseName, character : "teacher" }); }else{ res.render('note-taking', { user: req.user, title : req.body.title, pptUrl : req.body.pptUrl, courseName : req.body.courseName, character : "student" }); } }); }); router.post('/addSlide', function(req, res) { var courseName = req.body.courseName; var pptTitle = req.body.pptTitle; var pptUrl = req.body.pptUrl; pptUrl = pptUrl.replace(/\"/g,"'"); pptUrl = pptUrl.replace(/\&amp;/g,"\&"); var courseRef = firebase.database().ref('courses/' + courseName + '/slides/'); var newCourseKey = firebase.database().ref('courses/' + courseName + '/slides/').push().key; var postData = { title : pptTitle, url : pptUrl }; var updates = {}; updates[newCourseKey] = postData; courseRef.update(updates); res.render('./addSlideRedirect'); }); return router; } // Simple route middleware to ensure user is authenticated. function ensureAuthenticated(req, res, next) { if (req.isAuthenticated()) { return next(); } res.redirect('/'); }
30.682353
101
0.590107
1967cebceadd87c94eb97f4d48c648537b827c91
1,254
js
JavaScript
src/lib/fp/index.js
Lukasz-pluszczewski/perfect-immutable
998e625a697cd4f74a238fb08a6ba3487ac28c56
[ "MIT" ]
7
2017-12-14T09:46:02.000Z
2019-06-20T19:56:39.000Z
src/lib/fp/index.js
Lukasz-pluszczewski/perfect-immutable
998e625a697cd4f74a238fb08a6ba3487ac28c56
[ "MIT" ]
6
2017-12-17T07:56:43.000Z
2021-06-05T22:35:26.000Z
src/lib/fp/index.js
Lukasz-pluszczewski/perfect-immutable
998e625a697cd4f74a238fb08a6ba3487ac28c56
[ "MIT" ]
1
2018-01-23T10:23:27.000Z
2018-01-23T10:23:27.000Z
import curryRight from "lodash/curryRight"; import immuSet from "../set"; import immuSplice from "../splice"; import immuPush from "../push"; import immuPop from "../pop"; import immuShift from "../shift"; import immuUnshift from "../unshift"; import immuSort from "../sort"; import immuReverse from "../reverse"; import immuDelete from "../delete"; import immuFilter from "../filter"; export const set = (path, value, setFunction) => (target) => immuSet(target, path, value, setFunction); export const splice = (start, deleteCount, ...items) => (arr) => immuSplice(arr, start, deleteCount, ...items); export const push = (...newEntries) => (arr) => immuPush(arr, ...newEntries); export const pop = curryRight(immuPop); export const shift = curryRight(immuShift); export const unshift = (...newEntries) => (arr) => immuUnshift(arr, ...newEntries); export const sort = curryRight(immuSort); export const reverse = curryRight(immuReverse); export const immutableDelete = curryRight(immuDelete); export const filter = curryRight(immuFilter); export const placeholder = curryRight.placeholder; export default { set, splice, push, pop, shift, unshift, sort, reverse, immutableDelete, filter, placeholder, };
25.591837
60
0.700159
19680b4df721b8a63ce822a103c020c89d09909f
5,071
js
JavaScript
tests/versioned/apollo-federation/transaction-naming.test.js
alanhr/newrelic-node-apollo-server-plugin
036c5cf3ed32a4701db84972cd857a2b33ce28be
[ "Apache-2.0" ]
45
2020-09-09T07:11:28.000Z
2022-03-24T12:31:08.000Z
tests/versioned/apollo-federation/transaction-naming.test.js
alanhr/newrelic-node-apollo-server-plugin
036c5cf3ed32a4701db84972cd857a2b33ce28be
[ "Apache-2.0" ]
92
2020-09-01T20:51:13.000Z
2022-03-30T23:00:18.000Z
tests/versioned/apollo-federation/transaction-naming.test.js
alanhr/newrelic-node-apollo-server-plugin
036c5cf3ed32a4701db84972cd857a2b33ce28be
[ "Apache-2.0" ]
15
2020-09-01T21:42:15.000Z
2022-02-24T03:24:05.000Z
/* * Copyright 2020 New Relic Corporation. All rights reserved. * SPDX-License-Identifier: Apache-2.0 */ 'use strict' const { executeQuery, executeQueryBatch } = require('../../test-client') const ANON_PLACEHOLDER = '<anonymous>' const { setupFederatedGatewayServerTests } = require('./federated-gateway-server-setup') const { checkResult, shouldSkipTransaction } = require('../common') setupFederatedGatewayServerTests({ suiteName: 'federated transaction names', createTests: createFederatedTransactionNamingTests }) /** * Creates a set of standard transaction naming tests to run * against express-based apollo-server libraries. * It is required that t.context.helper and t.context.serverUrl are set. * @param {*} t a tap test instance */ function createFederatedTransactionNamingTests(t, frameworkName) { const TRANSACTION_PREFIX = `WebTransaction/${frameworkName}/POST` t.test('anonymous query, multi selections should return deepest unique path', (t) => { const { helper, serverUrl } = t.context const query = `query { libraries { branch booksInStock { isbn, title, author } magazinesInStock { issue, title } } }` helper.agent.on('transactionFinished', (transaction) => { if (shouldSkipTransaction(transaction)) { return } const operationPart = `query/${ANON_PLACEHOLDER}/libraries` t.equal(transaction.name, `${TRANSACTION_PREFIX}//${operationPart}`) }) executeQuery(serverUrl, query, (err, result) => { t.error(err) checkResult(t, result, () => { t.end() }) }) }) t.test('anonymous query, single selections should return deepest unique path', (t) => { const { helper, serverUrl } = t.context const query = `query { libraries { booksInStock { title } } }` helper.agent.on('transactionFinished', (transaction) => { if (shouldSkipTransaction(transaction)) { return } const operationPart = `query/${ANON_PLACEHOLDER}/libraries.booksInStock.title` t.equal(transaction.name, `${TRANSACTION_PREFIX}//${operationPart}`) }) executeQuery(serverUrl, query, (err, result) => { t.error(err) checkResult(t, result, () => { t.end() }) }) }) t.test('named query, multi selections should return deepest unique path', (t) => { const { helper, serverUrl } = t.context const query = `query booksInStock { libraries { branch booksInStock { title, author } } }` helper.agent.on('transactionFinished', (transaction) => { if (shouldSkipTransaction(transaction)) { return } const operationPart = 'query/booksInStock/libraries' t.equal(transaction.name, `${TRANSACTION_PREFIX}//${operationPart}`) }) executeQuery(serverUrl, query, (err, result) => { t.error(err) checkResult(t, result, () => { t.end() }) }) }) t.test('named query, single selections should return deepest unique path', (t) => { const { helper, serverUrl } = t.context const query = `query booksInStock { libraries { booksInStock { title } } }` helper.agent.on('transactionFinished', (transaction) => { if (shouldSkipTransaction(transaction)) { return } const operationPart = 'query/booksInStock/libraries.booksInStock.title' t.equal(transaction.name, `${TRANSACTION_PREFIX}//${operationPart}`) }) executeQuery(serverUrl, query, (err, result) => { t.error(err) checkResult(t, result, () => { t.end() }) }) }) t.test('should properly name transaction when a named, batch federated query', (t) => { const { helper, serverUrl } = t.context const booksQueryName = 'GetBooksForLibraries' const booksQuery = `query ${booksQueryName} { libraries { booksInStock { isbn, title, author } } }` const magazineQueryName = 'GetMagazinesForLibraries' const magazineQuery = `query ${magazineQueryName} { libraries { magazinesInStock { issue, title } } }` const queries = [booksQuery, magazineQuery] helper.agent.on('transactionFinished', (transaction) => { if (shouldSkipTransaction(transaction)) { return } const operationPart1 = `query/${booksQueryName}/libraries.booksInStock` const operationPart2 = `query/${magazineQueryName}/libraries.magazinesInStock` const batchTransactionPrefix = `${TRANSACTION_PREFIX}//batch` t.equal(transaction.name, `${batchTransactionPrefix}/${operationPart1}/${operationPart2}`) }) executeQueryBatch(serverUrl, queries, (err, result) => { t.error(err) checkResult(t, result, () => { t.equal(result.length, 2) t.end() }) }) }) }
25.611111
96
0.608558
1968769757d0f57030717826292e5f85344a9fa9
494
js
JavaScript
webpack.mix.js
lactobasilusprotectus/laravel.io
b7d7f661c0e753dcd7847df454568d356cffc146
[ "MIT" ]
1
2020-05-10T15:49:39.000Z
2020-05-10T15:49:39.000Z
webpack.mix.js
atunjeafolabi/laravel.io
b8ea372bbd6a99c64442ae0aee2b7e0e3e9bb9fa
[ "MIT" ]
null
null
null
webpack.mix.js
atunjeafolabi/laravel.io
b8ea372bbd6a99c64442ae0aee2b7e0e3e9bb9fa
[ "MIT" ]
null
null
null
const mix = require('laravel-mix'); const FlareWebpackPluginSourcemap = require("@flareapp/flare-webpack-plugin-sourcemap"); mix.js('resources/js/app.js', 'public/js') .webpackConfig({ plugins: [ new FlareWebpackPluginSourcemap({ key: process.env.MIX_FLARE_KEY }) ], }) .sourceMaps(true, 'hidden-source-map') .postCss('resources/css/app.css', 'public/css', [ require('postcss-import'), require('tailwindcss'), ]) .version();
30.875
88
0.631579
196882eed79bb50b39f6614761ba83f597f455ff
2,047
js
JavaScript
src/store/actions.test.js
mykulyak/warsawjs-workshop-24-project
19d23a2d4cfeb0bca8da7f5f127cd1cb97a542c7
[ "MIT" ]
null
null
null
src/store/actions.test.js
mykulyak/warsawjs-workshop-24-project
19d23a2d4cfeb0bca8da7f5f127cd1cb97a542c7
[ "MIT" ]
null
null
null
src/store/actions.test.js
mykulyak/warsawjs-workshop-24-project
19d23a2d4cfeb0bca8da7f5f127cd1cb97a542c7
[ "MIT" ]
null
null
null
import configureStore from 'redux-mock-store'; import thunkMiddleware from 'redux-thunk'; import { createStore, applyMiddleware } from 'redux'; jest.mock('./api'); import * as TYPES from './constants'; import { readSettings as apiReadSettings } from './api'; import { readSettings } from './actions'; import reducer from './reducers'; import { getSettings } from './selectors'; describe('readSettings - mock store', () => { const mockStore = configureStore([thunkMiddleware]); let store; beforeEach(() => { store = mockStore({}); store.replaceReducer(reducer); }); afterEach(() => { store = null; }); test('should log actions', async () => { expect(store.getActions()).toEqual([]); expect(apiReadSettings).not.toHaveBeenCalled(); await store.dispatch(readSettings()) .then(() => { expect(store.getActions()).toEqual([ { type: TYPES.READ_SETTINGS_START }, { type: TYPES.READ_SETTINGS_END, payload: { status: 'ok' } }, ]); expect(apiReadSettings).toHaveBeenCalled(); }); }); }); describe('readSettings - using real store', () => { let store; let actions = []; // Redux middleware that logs dispatched actions const actionLoggerMiddleware = store => next => action => { actions.push(action); return next(action); }; beforeEach(() => { store = createStore( reducer, applyMiddleware(thunkMiddleware, actionLoggerMiddleware), ); apiReadSettings.mockClear(); }); afterEach(() => { actions = []; store = null; }); test('should log actions and state', async () => { expect(apiReadSettings).not.toHaveBeenCalled(); await store.dispatch(readSettings()) .then(() => { expect(actions).toEqual([ { type: TYPES.READ_SETTINGS_START }, { type: TYPES.READ_SETTINGS_END, payload: { status: 'ok' } }, ]); expect(getSettings(store.getState())).toEqual({ status: 'ok' }); expect(apiReadSettings).toHaveBeenCalled(); }); }); });
26.934211
72
0.617978
19695e3d073c90bc2cbf4b0ac7b356b60271663e
264
js
JavaScript
node_modules/polymer-modulizer/lib/import-with-document.js
iteaky/random
7de7795493b147743cea5657bdc48f7f63d1c50e
[ "Unlicense" ]
null
null
null
node_modules/polymer-modulizer/lib/import-with-document.js
iteaky/random
7de7795493b147743cea5657bdc48f7f63d1c50e
[ "Unlicense" ]
7
2021-03-09T22:36:52.000Z
2022-02-18T14:28:36.000Z
node_modules/polymer-modulizer/lib/import-with-document.js
iteaky/random
7de7795493b147743cea5657bdc48f7f63d1c50e
[ "Unlicense" ]
null
null
null
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function isImportWithDocument(import_) { return import_.document !== undefined; } exports.isImportWithDocument = isImportWithDocument; //# sourceMappingURL=import-with-document.js.map
37.714286
62
0.780303
196b0ae2fdf26c6185c98dcd584ca760027b0ab1
2,553
js
JavaScript
src/templates/Track/components/Lyrics/Lyrics.test.js
toxox/gatsby-genius
9c1da6d8714b17e1e49a7dd235e18ed216db7de9
[ "MIT" ]
1
2021-01-03T15:03:55.000Z
2021-01-03T15:03:55.000Z
src/templates/Track/components/Lyrics/Lyrics.test.js
toxox/gatsby-genius
9c1da6d8714b17e1e49a7dd235e18ed216db7de9
[ "MIT" ]
null
null
null
src/templates/Track/components/Lyrics/Lyrics.test.js
toxox/gatsby-genius
9c1da6d8714b17e1e49a7dd235e18ed216db7de9
[ "MIT" ]
null
null
null
import 'jest-dom/extend-expect'; import 'react-testing-library/cleanup-after-each'; import React from 'react'; import { render, fireEvent } from 'react-testing-library'; import { lorem, helpers } from 'faker'; import { matchers } from 'jest-emotion'; import Lyrics from './index'; // import theme from '../../../../utils/theme'; expect.extend(matchers); // export const AnnotationPropType = PropTypes.shape({ // id: PropTypes.number, // range: PropTypes.string, // text: PropTypes.string, // }); // export const TrackPropType = PropTypes.shape({ // coverArt: ImagePropType, // description: PropTypes.string, // lyrics: PropTypes.string, // slug: PropTypes.string, // title: PropTypes.string, // }); // export const ArtistPropType = PropTypes.shape({ // image: ImagePropType, // id: PropTypes.string, // name: PropTypes.string, // slug: PropTypes.string, // tracks: PropTypes.arrayOf(TrackPropType), // }); const trackTitle = lorem.words(); const mockTrack = { coverArt: null, description: lorem.sentence(), title: trackTitle, slug: helpers.slugify(trackTitle), }; const annotatedLyric = lorem.sentence(); mockTrack.lyrics = `${lorem.sentences()} ${annotatedLyric} ${lorem.sentences()}`; mockTrack.annotations = [ { id: 1, range: annotatedLyric, text: lorem.sentences(), }, ]; describe('Lyrics component', () => { test('displays annotation when mark is clicked', () => { const { getByTestId, queryByTestId } = render(<Lyrics track={mockTrack} />); const mark = getByTestId('annotation-mark'); expect(queryByTestId('track-description')).toBeInTheDocument(); expect(queryByTestId('annotation-panel')).not.toBeInTheDocument(); fireEvent.click(mark); expect(queryByTestId('track-description')).not.toBeInTheDocument(); expect(queryByTestId('annotation-panel')).toBeInTheDocument(); expect(queryByTestId('annotation-panel')).toHaveTextContent( mockTrack.annotations[0].text ); // click the same mark fireEvent.click(mark); expect(queryByTestId('annotation-panel')).toBeInTheDocument(); }); test('hides annotation when ESC key is pressed', () => { const { getByTestId, queryByTestId } = render(<Lyrics track={mockTrack} />); const mark = getByTestId('annotation-mark'); fireEvent.click(mark); expect(queryByTestId('annotation-panel')).toBeInTheDocument(); fireEvent.keyDown(mark, { key: 'Escape' }); expect(queryByTestId('annotation-panel')).not.toBeInTheDocument(); }); });
30.759036
81
0.678026
aeb769b65df07b95bc10ed3cfff7aa3bae19c29f
418
js
JavaScript
gulpfile.js
lrks/tabooular
b157b306309efae0ff27d8f414d873075055298c
[ "MIT" ]
null
null
null
gulpfile.js
lrks/tabooular
b157b306309efae0ff27d8f414d873075055298c
[ "MIT" ]
5
2018-02-10T09:06:06.000Z
2018-08-02T12:32:56.000Z
gulpfile.js
lrks/tabooular
b157b306309efae0ff27d8f414d873075055298c
[ "MIT" ]
null
null
null
'use strict'; var gulp = require('gulp'); var browserify = require('browserify'); var source = require('vinyl-source-stream'); var peg = require('gulp-peg'); gulp.task('build', function() { gulp.src([ './lib/table.pegjs' ]).pipe(peg()).pipe(gulp.dest('./lib')); browserify({ 'entries': ['./docs/demo.js'] }).bundle().pipe(source('packed.js')).pipe(gulp.dest('./docs')); }); gulp.task('default', ['build']);
24.588235
65
0.62201
aeb7852132b30ad22b481fcbaae4dfd882410152
783
js
JavaScript
app/components/textTypes.js
sam201994/idex_react_app
4d780294f20b1f489289403b7f7c2b54e36c27da
[ "MIT" ]
null
null
null
app/components/textTypes.js
sam201994/idex_react_app
4d780294f20b1f489289403b7f7c2b54e36c27da
[ "MIT" ]
3
2020-07-20T18:28:13.000Z
2022-03-26T17:43:49.000Z
app/components/textTypes.js
sam201994/idex_react_app
4d780294f20b1f489289403b7f7c2b54e36c27da
[ "MIT" ]
null
null
null
import styled from 'styled-components'; export const GreyText = styled.div` color: #d3d3d3; font-size: ${props => `${props.size}px`}; font-weight: bold; `; export const BlackText = styled.div` color: #262626; font-size: ${props => `${props.size}px`}; font-weight: bold; `; export const BlueText = styled.div` color: #0066ff; font-size: ${props => `${props.size}px`}; font-weight: bold; `; export const WhiteText = styled.div` color: #ffffff; font-size: ${props => `${props.size}px`}; `; export const DarkGrey = styled.div` color: #828282; font-size: ${props => `${props.size}px`}; `; export const InputBox = styled.div` margin-top: 5px; input { color: #262626; font-size: ${props => `${props.size}px`}; border: 1px solid #f2f2f2; } `;
21.162162
45
0.627075
aeb848ee09748bfd2503d2aefa50b1c2c0e1302f
103
js
JavaScript
templates/component-boilerplate/src-sass-variables.js
bbcreatv/origami-build-tools
37a3c3d75ee63f1c58f0e815f536017eaad3e9c6
[ "MIT" ]
1
2019-10-17T15:02:02.000Z
2019-10-17T15:02:02.000Z
templates/component-boilerplate/src-sass-variables.js
cnk-digital-solutions/origami-build-tools
37a3c3d75ee63f1c58f0e815f536017eaad3e9c6
[ "MIT" ]
null
null
null
templates/component-boilerplate/src-sass-variables.js
cnk-digital-solutions/origami-build-tools
37a3c3d75ee63f1c58f0e815f536017eaad3e9c6
[ "MIT" ]
null
null
null
'use strict'; module.exports = (name) => { return `$${name.original}-is-silent: true !default; `; };
14.714286
52
0.61165
aeb9b67342dab758ea61701d362971fa1c0c4c30
759
js
JavaScript
app/app.js
RenuNegi/HolidayApplication
3c6f0c7025de9ecdc19a454e4887819f27fede33
[ "MIT" ]
null
null
null
app/app.js
RenuNegi/HolidayApplication
3c6f0c7025de9ecdc19a454e4887819f27fede33
[ "MIT" ]
null
null
null
app/app.js
RenuNegi/HolidayApplication
3c6f0c7025de9ecdc19a454e4887819f27fede33
[ "MIT" ]
null
null
null
'use strict'; // Declare app level module which depends on views, and components angular.module('myApp', [ 'ui.router', 'ngMaterial' ]) .config(function ($stateProvider, $urlRouterProvider) { $urlRouterProvider.otherwise("/holidayList"); var states = [ { name: 'holidayList', url: '/holidayList', // Using component: instead of template: component: 'holidayList' }, { name: 'holidayDetail', url: '/holidayDetail?date&name', component: 'holidayDetail' } ] states.forEach(function (state) { $stateProvider.state(state); }); }) .value('$routerRootComponent', 'main') .component('main', { template: '<ui-view></ui-view>\n' });
20.513514
66
0.582345
aeb9cd8b8822f76ae957a0dedf4df87e87322235
846
js
JavaScript
client/store/index.js
LindaEng/grace-shopper
267cdd6aa89005253e58dfacf54dac991293ff3a
[ "MIT" ]
null
null
null
client/store/index.js
LindaEng/grace-shopper
267cdd6aa89005253e58dfacf54dac991293ff3a
[ "MIT" ]
28
2020-06-16T15:12:21.000Z
2020-06-23T21:55:19.000Z
client/store/index.js
LindaEng/grace-shopper
267cdd6aa89005253e58dfacf54dac991293ff3a
[ "MIT" ]
1
2020-06-16T14:23:58.000Z
2020-06-16T14:23:58.000Z
import {createStore, combineReducers, applyMiddleware} from 'redux' import {createLogger} from 'redux-logger' import thunkMiddleware from 'redux-thunk' import {composeWithDevTools} from 'redux-devtools-extension' import userReducer from './user' import keyboardsReducer from './keyboards' import singleKeyboardReducer from './singleKeyboard' import cartReducer from './cart' import ordersReducer from './orders' const reducer = combineReducers({ user: userReducer, keyboards: keyboardsReducer, singleKeyboard: singleKeyboardReducer, cart: cartReducer, orders: ordersReducer }) const middleware = composeWithDevTools( applyMiddleware(thunkMiddleware, createLogger({collapsed: true})) ) const store = createStore(reducer, middleware) export default store export * from './user' export * from './cart' export * from './singleKeyboard'
31.333333
67
0.788416
aebacd19a09aacdd0d79589fe1ec492b89f24d28
2,461
js
JavaScript
src/components/datatable/AbstractCell.js
openlattice/lattice-edm
8c16c97d4057d071780b90170e01d9a870392efa
[ "Apache-2.0" ]
null
null
null
src/components/datatable/AbstractCell.js
openlattice/lattice-edm
8c16c97d4057d071780b90170e01d9a870392efa
[ "Apache-2.0" ]
963
2018-01-17T03:55:12.000Z
2021-09-24T20:53:47.000Z
src/components/datatable/AbstractCell.js
openlattice/lattice-edm
8c16c97d4057d071780b90170e01d9a870392efa
[ "Apache-2.0" ]
null
null
null
/* * @flow */ import React from 'react'; import type { Node } from 'react'; import styled, { css } from 'styled-components'; /* * constants */ const CELL_PADDING :number = 10; const TYPES = { BODY: 'body', HEAD: 'head' }; /* * helper functions */ const getBackgroundStyles = ({ highlight }) => { if (highlight === true) { return css` background-color: #edf6ff; `; } return ''; }; const getBorderStyles = ({ type }) => { if (type === TYPES.BODY) { return css` border-top: 1px solid #c5d5e5; `; } if (type === TYPES.HEAD) { return css` border-bottom: 1px solid #516a83; `; } return ''; }; const getFontWeight = ({ type }) => { if (type === TYPES.HEAD) { return css` font-weight: 600; `; } return ''; }; /* * styled components */ const CellWrapper = styled.div` align-items: center; display: flex; font-size: 14px; justify-content: ${({ justifyContent }) => justifyContent}; padding: ${CELL_PADDING}px; ${getBackgroundStyles} ${getBorderStyles} ${getFontWeight} `; const CellValueWrapper = styled.div` cursor: default; line-height: normal; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; `; /* * types */ type Props = { highlight ?:boolean; justifyContent ?:string; style :Object; type :string; value :Node; onMouseDown ?:() => void; onMouseLeave ?:() => void; onMouseOver ?:() => void; } class AbstractCell extends React.Component<Props> { static defaultProps = { highlight: false, justifyContent: 'flex-start', onMouseDown: undefined, onMouseLeave: undefined, onMouseOver: undefined, } render() { const { highlight, justifyContent, style, type, value, onMouseDown, onMouseLeave, onMouseOver } = this.props; // TODO: hover effects // possible red: #f44c44; /* eslint-disable jsx-a11y/mouse-events-have-key-events */ return ( <CellWrapper highlight={highlight} justifyContent={justifyContent} type={type} style={style} onMouseDown={onMouseDown} onMouseLeave={onMouseLeave} onMouseOver={onMouseOver}> <CellValueWrapper> { value } </CellValueWrapper> </CellWrapper> ); /* eslint-enable */ } } export default AbstractCell; export { TYPES as AbstractCellTypes };
16.406667
62
0.591629
aebbd751890fde607243e6151764046156f34f42
213
js
JavaScript
web-client/src/actions/services/news.service.js
yuchiu/Latest-News
1cdbf9c9cc0738d1b5641f921dc5f8bc59b36456
[ "MIT" ]
6
2019-12-25T19:04:54.000Z
2021-06-16T08:43:56.000Z
web-client/src/actions/services/news.service.js
yuchiu/Latest-News
1cdbf9c9cc0738d1b5641f921dc5f8bc59b36456
[ "MIT" ]
null
null
null
web-client/src/actions/services/news.service.js
yuchiu/Latest-News
1cdbf9c9cc0738d1b5641f921dc5f8bc59b36456
[ "MIT" ]
7
2019-01-04T13:59:04.000Z
2020-08-15T09:16:34.000Z
import { apiV1 } from "./API"; const newsService = { fetchNews: async currentIndex => { const response = await apiV1().get(`/news/${currentIndex}`); return response; } }; export default newsService;
19.363636
64
0.657277
aebca8330380792c98058d53ed49da8e9389bf71
1,359
js
JavaScript
forest_lite/client/src/Select.js
uk-gov-mirror/MetOffice.forest-lite
9406b53f7e6a9651eb675e0ac2e5945421b25557
[ "BSD-3-Clause" ]
6
2020-08-05T16:12:57.000Z
2022-01-06T01:34:19.000Z
forest_lite/client/src/Select.js
uk-gov-mirror/MetOffice.forest-lite
9406b53f7e6a9651eb675e0ac2e5945421b25557
[ "BSD-3-Clause" ]
49
2020-08-14T13:58:32.000Z
2021-06-29T11:42:32.000Z
forest_lite/client/src/Select.js
uk-gov-mirror/MetOffice.forest-lite
9406b53f7e6a9651eb675e0ac2e5945421b25557
[ "BSD-3-Clause" ]
2
2020-12-03T09:24:13.000Z
2021-04-11T06:10:36.000Z
import React from "react" import "./Select.css" /** * HTML Select widget */ const Select = ({ value, values = [], label, callback = null }) => { const onChange = ev => { if (callback != null) { callback(ev.target.value) } } const options = values.map(option => { // TODO: Support optgroup if (typeof option !== "object") { return <option key={ option } value={ option }>{ option }</option> } else { const { label="", values=[] } = option const subOptions = values.map(value => { const key = JSON.stringify({ label, value }) return <option key={ key } value={ key }>{ value }</option> }) return <optgroup key={ label } label={ label }>{ subOptions }</optgroup> } }) return (<div className="select__container"> <label className="select__label" htmlFor="unique-select">{ label }</label> <select id="unique-select" data-testid="select" onChange={ onChange } className="select__select" value={ value || "" }> <option value="">Please select</option> { options } </select> </div>) } export default Select
29.543478
84
0.487859
aebd71765bb143b6566d03649794da5159cc5163
18,981
js
JavaScript
bitrix/modules/main/install/components/bitrix/main.post.list/templates/mobile_app/script.map.js
lena1687/furniture-store
3afdb86a6e2fca4574a215f66d8fc9eb7daff5d4
[ "MIT" ]
null
null
null
bitrix/modules/main/install/components/bitrix/main.post.list/templates/mobile_app/script.map.js
lena1687/furniture-store
3afdb86a6e2fca4574a215f66d8fc9eb7daff5d4
[ "MIT" ]
null
null
null
bitrix/modules/main/install/components/bitrix/main.post.list/templates/mobile_app/script.map.js
lena1687/furniture-store
3afdb86a6e2fca4574a215f66d8fc9eb7daff5d4
[ "MIT" ]
null
null
null
{"version":3,"file":"script.min.js","sources":["script.js"],"names":["window","BX","repo","entityId","text","form","list","comments","commentExemplarId","makeId","ENTITY_XMIL_ID","ID","setText","type","isNotEmptyString","res","localStorage","get","set","getText","addCustomEvent","BXMobileApp","isArray","inner","keyBoardIsShown","mention","appendToForm","fd","key","val","ii","hasOwnProperty","append","app","exec","id","node","join","removeClass","commentObj","attachments","this","mentions","prototype","getInstance","___id","removeInstance","comment","MPFForm","bindEvents","handlerId","entitiesId","handler","handlerEvents","onMPFUserIsWriting","delegate","writing","onMPFHasBeenDestroyed","reboot","visible","bindHandler","jsCommentId","util","getRandomString","removeCustomEvent","closeWait","onCustomEvent","windowEvents","OnUCUserReply","authorId","authorName","parseInt","initComment","simpleForm","writingParams","show","OnUCAfterRecordEdit","data","act","showError","showNote","oldObj","newObj","linkEntity","_linkEntity","f","proxy","str","reinitComment","init","UI","Page","TextPanel","submitClear","submitStart","submit","c","entityHdl","post_data","getForm","ENTITY_XML_ID","REVIEW_TEXT","NOREDIRECT","MODE","AJAX_POST","sessid","bitrix_sessid","SITE_ID","message","LANGUAGE_ID","post","MobileAjaxWrapper","FormData","ij","length","Wrap","method","url","processData","start","preparePost","callback","callback_failure","xhr","send","addClass","bind","e","unbindAll","handleAppData","showWait","hide","link","mobileShowActions","event","isKeyboardShown","enableInVersion","platform","BXMobileAppContext","target","tagName","toUpperCase","getAttribute","eventCancelBubble","PreventDefault","menu","action","push","title","reply","like","RatingLikeComments","getById","vote","voted","List","hidden","replace","oMSL","createTask","entityType","ActionSheet","buttons","mobileReply","mobileExpand","el2","previousSibling","el","parentNode","fxStart","fxFinish","offsetHeight","start1","height","finish1","remove","time","style","maxHeight","overflow","duration","finish","transition","easing","makeEaseOut","transitions","quart","step","state","opacity","complete","cssText","LazyLoad","showImages","animate","MPL","params","staticParams","formParams","superclass","constructor","apply","arguments","template","thumb","thumbForFile","postCounter","ENTITY_ID","obj","makeThumb","pullNewRecords","add","clearThumb","command","exemplarId","in_array","pullNewRecord","pullNewAuthor","extend","txt","container","isString","htmlspecialchars","html","fcParseTemplate","messageFields","FULL_ID","POST_MESSAGE_TEXT","POST_TIMESTAMP","Date","getTime","DATE_TIME_FORMAT","RIGHTS","rights","ob","processHTML","create","attrs","className","HTML","appendChild","curPos","pos","size","GetWindowInnerSize","top","innerHeight","GetWindowScrollPos","scrollTo","scroll","scrollHeight","scrollTop","display","cnt","func","childNodes","ajax","processScripts","SCRIPT","defer","newId","setAttribute","setTimeout","BitrixMobile","nav","build","createInstance","entity_xml_id"],"mappings":"CAAC,WACA,IAAKA,OAAO,OAASA,OAAO,MAAM,aAAeA,OAAO,OACvD,MAED,IAAIC,GAAKD,OAAO,MACfE,GACCC,SAAW,EACXC,KAAO,GACPC,QACAC,QACAC,YACAC,sBAEDC,EAAS,SAASC,EAAgBC,GACjC,MAAOD,GAAiB,KAAOC,EAAK,EAAIA,EAAK,KAE/C,IAAIC,GAAU,SAASR,GACtBF,EAAKE,KAAQH,EAAGY,KAAKC,iBAAiBV,GAAQA,EAAO,EACrD,IAAIH,EAAG,iBAAmBC,EAAKC,SAC/B,CACC,GAAIY,GAAMd,EAAGe,aAAaC,IAAI,sBAC9BF,GAAOA,KACP,IAAId,EAAGY,KAAKC,iBAAiBZ,EAAKE,MAClC,CACCW,EAAIb,EAAKC,UAAYD,EAAKE,SAG3B,OACQW,GAAIb,EAAKC,UAEjBF,EAAGe,aAAaE,IAAI,sBAAuBH,KAG7CI,EAAU,SAAShB,GAClB,GAAIC,GAAO,EACX,IAAIH,EAAG,iBAAmBE,EAC1B,CACC,GAAIY,GAAMd,EAAGe,aAAaC,IAAI,sBAC9B,IAAIF,EACJ,CACCX,EAAQW,EAAIZ,IAAa,SAClBY,GAAIZ,EACXF,GAAGe,aAAaE,IAAI,sBAAuBH,IAG7C,MAAOX,GAERH,GAAGmB,eAAepB,OAAQ,iBAAkB,WAAYY,EAAQ,KAEhES,aAAYD,eAAe,sBAAuB,SAAShB,GAC1DA,EAAOH,EAAGY,KAAKS,QAAQlB,GAAQA,EAAK,GAAKA,CACzCQ,GAAQR,IAET,IAAImB,IACHC,gBAAkB,MAClBC,YAEAC,EAAe,SAASC,EAAIC,EAAKC,GACjC,KAAMA,SAAcA,IAAO,SAC3B,CACC,IAAK,GAAIC,KAAMD,GACf,CACC,GAAIA,EAAIE,eAAeD,GACvB,CACCJ,EAAaC,EAAIC,EAAM,IAAME,EAAK,IAAKD,EAAIC,UAK9C,CACCH,EAAGK,OAAOJ,IAAQC,EAAMA,EAAM,KAGhC7B,QAAOiC,IAAIC,KAAK,wBAAyB,KACzCjC,GAAGmB,eAAe,qBAAsB,WAAaG,EAAMC,gBAAkB,MAC7EvB,GAAGmB,eAAe,oBAAqB,WAAaG,EAAMC,gBAAkB,OAC5EvB,GAAGmB,eAAe,qBAAsB,SAASe,GAChD,GAAIC,GAAOnC,EAAG,UAAYkC,EAAGE,KAAK,KAClC,IAAID,EACJ,CACCnC,EAAGqC,YAAYF,EAAM,4BAIvB,IAAIG,GAAa,SAASJ,EAAI/B,EAAMoC,GACnCC,KAAKN,GAAKA,CACVM,MAAKrC,KAAQA,GAAQ,EACrBqC,MAAKD,YAAeA,KACpBC,MAAKC,YAENH,GAAWI,WACVvC,KAAO,GACPoC,eACAJ,KAAO,KACPjB,QAAU,WACT,MAAOsB,MAAKrC,MAMdmC,GAAWK,YAAc,SAAST,EAAI/B,EAAMoC,GAC3C,GAAIzB,GAAM,IACV,KAAKd,EAAGY,KAAKS,QAAQa,IAAOA,GAAMA,EAAG,UAAYjC,EAAK,YAAYiC,EAAG,UACrE,CACCpB,EAAMoB,MAEF,IAAIjC,EAAK,YAAYiC,EAAGE,KAAK,MAClC,CACCtB,EAAMb,EAAK,YAAYiC,EAAGE,KAAK,UAGhC,CACCtB,EAAM,GAAIwB,GAAWJ,EAAI/B,EAAMoC,EAC/BzB,GAAI8B,MAAQV,EAAGE,KAAK,IACpBnC,GAAK,YAAYiC,EAAGE,KAAK,MAAQtB,EAElC,MAAOA,GAERwB,GAAWO,eAAiB,SAASC,GACpC,GAAIA,GAAWA,EAAQ,eACf7C,GAAK,YAAY6C,EAAQ,UAElC,IAAIC,GAAU,SAASb,GACtBM,KAAKQ,YACL/C,GAAK,QAAQuC,KAAKS,WAAaT,IAC/BA,MAAKU,aAELV,MAAKM,QAAU,IAEfN,MAAKS,UAAYf,CACjBM,MAAKW,QAAU,IACfX,MAAKY,eACJC,mBAAqBrD,EAAGsD,SAASd,KAAKe,QAASf,MAC/CgB,sBAAwBxD,EAAGsD,SAASd,KAAKiB,OAAQjB,MAGlDA,MAAKkB,QAAU,KAEflB,MAAKmB,YAAc3D,EAAGsD,SAASd,KAAKmB,YAAanB,KACjDxC,GAAGmB,eAAepB,OAAQ,qBAAsByC,KAAKmB,YACrD,IAAI3D,EAAG,OACNwC,KAAKmB,YAAY3D,EAAG,OAAO2C,YAAYH,KAAKS,WAC7CT,MAAKoB,YAAc5D,EAAG6D,KAAKC,gBAAgB,IAE5Cf,GAAQL,WACPiB,YAAc,SAASR,GACtB,GAAIA,GAAWA,EAAQjB,IAAMM,KAAKS,UAClC,CACCT,KAAKW,QAAUA,CAEfnD,GAAG+D,kBAAkBhE,OAAQ,qBAAsByC,KAAKmB,YAExD,KAAK,GAAI9B,KAAMW,MAAKY,cACpB,CACC,GAAIZ,KAAKY,cAActB,eAAeD,GACtC,CACC7B,EAAGmB,eAAeqB,KAAKW,QAAStB,EAAIW,KAAKY,cAAcvB,KAIzDW,KAAKwB,WACLhE,GAAGiE,cAAczB,KAAM,gBAAiBA,SAG1CQ,WAAa,WACZR,KAAK0B,cACJC,cAAgBnE,EAAGsD,SAAS,SAASpD,EAAUkE,EAAUC,GACxD,GAAI7B,KAAKU,WAAWhD,GACpB,CACC,GAAI4C,IAAW5C,EAAU,EACzBkE,GAAWE,SAASF,EACpB,IAAIA,EAAW,GAAKC,EACpB,CACCvB,EAAUN,KAAK+B,YAAYzB,EAAS,GAAI,MACxCA,GAAQL,SAAS4B,GAAc,SAAWD,EAAW,IAAMC,EAAa,SACxE,IAAIlE,GAAQqC,KAAKW,SAAWX,KAAKW,QAAQqB,WAAahC,KAAKW,QAAQqB,WAAWC,cAAc,SAAW3B,EAAQ3C,IAC/G2C,GAAQ3C,KAAOA,GAAQA,GAAQ,GAAK,GAAK,KAAO,SAAWiE,EAAW,IAAMC,EAAa,UAAY,KAEtG7B,KAAKkC,KAAK5B,EAASA,EAAQ3C,KAAM,SAEhCqC,MAEHmC,oBAAsB3E,EAAGsD,SAAS,SAASpD,EAAUgC,EAAI0C,EAAMC,GAE9D,GAAIrC,KAAKU,WAAWhD,GAAW,CAC9B,GAAI2E,IAAQ,OACZ,CACCrC,KAAKkC,MAAMxE,EAAUgC,GAAK0C,EAAK,iBAAkBA,EAAK,sBAElD,IAAIA,EAAK,gBACd,CACCpC,KAAKsC,WAAW5E,EAAUgC,GAAK0C,EAAK,qBAEhC,IAAIA,EAAK,aACd,CACCpC,KAAKuC,UAAU7E,EAAUgC,GAAK0C,EAAK,iBAGnCpC,MAGJxC,GAAGmB,eAAepB,OAAQ,gBAAiByC,KAAK0B,aAAaC,cAC7DnE,GAAGmB,eAAepB,OAAQ,sBAAuByC,KAAK0B,aAAaS,sBAEpElB,OAAS,SAASvB,EAAI8C,EAAQC,GAC7B,IAAK,GAAIpD,KAAMW,MAAKY,cACpB,CACC,GAAIZ,KAAKY,cAActB,eAAeD,GACtC,CACC7B,EAAG+D,kBAAkBvB,KAAKW,QAAStB,EAAIW,KAAKY,cAAcvB,KAG5DW,KAAKmB,YAAYsB,IAElBC,WAAa,SAAShD,EAAI0C,GACzB,GAAIpC,KAAKW,UAAY,KACrB,CACCX,KAAK2C,YAAcnF,EAAGsD,SAAS,WAAWd,KAAK0C,WAAWhD,EAAI0C,IAASpC,KACvExC,GAAGmB,eAAeqB,KAAM,eAAgBA,KAAK2C,iBAG9C,CACC,GAAI3C,KAAK,eACRxC,EAAG+D,kBAAkBvB,KAAM,eAAgBA,KAAK,eACjDA,MAAKU,WAAWhB,GAAM0C,CACtB3E,GAAKC,SAAWgC,CAEhB,IAAIkD,GAAIpF,EAAGqF,MAAM,SAASC,GACzB9C,KAAKM,QAAUN,KAAK+C,eAAerD,IAAMA,EAAI,GAAI/B,KAAOmF,GACxD9C,MAAKM,QAAQ3C,KAAOmF,CACpB9C,MAAKW,QAAQqC,KAAKhD,KAAKM,UACrBN,KAEH,IAAI,OAASzC,OAAO,aAAe,MACnC,CACCA,OAAOqB,YAAYqE,GAAGC,KAAKC,UAAUzE,QAAQkE,OAG9C,CACCA,EAAElE,EAAQgB,OAIbqB,QAAU,SAAST,GAClB9C,EAAGiE,cAAclE,OAAQ,qBAAsB+C,EAAQ,MAAM,GAAIA,EAAQ,MAAM,GAAIN,KAAKoB,eAEzF2B,cAAgB,SAASzC,GACxB,GAAIZ,IAAMY,EAAQ,MAAM,GAAI,GAC3B3C,EAAQ2C,EAAQ,SAAW,EAC5BR,GAAWO,eAAeC,EAC1B,OAAON,MAAK+B,YAAYrC,EAAI/B,OAE7BoE,YAAc,SAASrC,EAAI/B,EAAMyE,GAChC,GAAI9B,GAAUR,EAAWK,YAAYT,EAAI/B,EAAMyE,EAC/C,IAAI9B,EAAQ,WAAa,IACzB,CACC9C,EAAGmB,eAAe2B,EAAS,WAAY9C,EAAGsD,SAAStD,EAAGsD,SAASd,KAAKoD,YAAapD,OACjFxC,GAAGmB,eAAe2B,EAAS,UAAW9C,EAAGsD,SAAStD,EAAGsD,SAASd,KAAKqD,YAAarD,OAChFxC,GAAGmB,eAAe2B,EAAS,WAAY9C,EAAGsD,SAAStD,EAAGsD,SAASd,KAAKsD,OAAQtD,OAC5ExC,GAAGmB,eAAe2B,EAAS,UAAW9C,EAAGsD,SAAStD,EAAGsD,SAAS,SAASyC,EAAG5F,GACzEqC,KAAKsC,UAAUhC,EAAS3C,EACxBqC,MAAKoD,YAAY9C,IACfN,OACHM,GAAQ,SAAW,IAEpB,MAAOA,IAER4B,KAAO,SAASxC,EAAI/B,EAAMyE,GACzBpC,KAAKM,QAAUN,KAAK+B,YAAYrC,EAAI/B,EAAMyE,EAC1CpC,MAAKoB,YAAc5D,EAAG6D,KAAKC,gBAAgB,GAC3C9D,GAAGiE,cAAczB,KAAKW,QAAS,sBAAuBX,KAAMrC,EAAMyE,GAClE3E,GAAKC,SAAWgC,EAAG,EACnBM,MAAKW,QAAQuB,KAAKlC,KAAKM,UAAY8B,EACnC5E,GAAGiE,cAAczB,KAAKW,QAAS,qBAAsBX,KAAMrC,EAAMyE,GACjE,OAAO,OAERgB,YAAc,SAAS9C,GACtBR,EAAWO,eAAeC,EAC1BN,MAAKoB,YAAc5D,EAAG6D,KAAKC,gBAAgB,GAC3C,IAAItB,KAAKM,SAAWA,EACpB,CAECN,KAAKM,QAAUN,KAAK+B,aAAazB,EAAQZ,GAAG,GAAI,GAAI,MACpDjC,GAAKC,SAAW4C,EAAQZ,GAAG,EAC3BM,MAAKW,QAAQqC,KAAKhD,KAAKM,WAGzB+C,YAAc,SAAS/C,EAAS3C,EAAMoC,GACrCvC,EAAGiE,cAAclE,OAAQ,wBAAyB+C,EAAQZ,GAAG,GAAIY,EAAQZ,GAAG,GAAIY,EAASN,KAAMrC,EAAMoC,KAEtGuD,OAAS,SAAShD,GACjB,GAAI3C,GAAO2C,EAAQ5B,UAClBqB,EAAcO,EAAQP,YACtByD,EAAYxD,KAAKU,WAAWJ,EAAQZ,GAAG,IACvC+D,EAAYzD,KAAKW,QAAQ+C,SACxBC,cAAgBrD,EAAQZ,GAAG,GAC3BkE,YAAcjG,EACdkG,WAAa,IACbC,KAAO,SACPC,UAAY,IACZrE,GAAKY,EAAQZ,GACbsE,OAASxG,EAAGyG,gBACZC,QAAU1G,EAAG2G,QAAQ,WACrBC,YAAc5G,EAAG2G,QAAQ,iBAE1BE,EAAO,GAAI9G,QAAO+G,kBAClBpF,EAAK,GAAI3B,QAAOgH,SAChBlF,CACD,IAAIW,KAAKoB,cAAgB,KACxBqC,EAAU,uBAAyBzD,KAAKoB,WAEzC,IAAId,EAAQZ,GAAG,GAAK,EACpB,CACC+D,EAAU,iBAAmB,MAC7BA,GAAU,WAAavF,GAAKoC,EAAQZ,GAAG,GACvC,IAAI+D,EAAU,OACd,CACCA,EAAU,OAAS,MACnBA,GAAU,WAAanD,EAAQZ,GAAG,IAGpC,GAAI8D,EAAU,UACd,CACC,IAAKnE,IAAMmE,GAAU,UACrB,CACC,GAAIA,EAAU,UAAUlE,eAAeD,GACvC,CACCoE,EAAUpE,GAAMmE,EAAU,UAAUnE,KAKvC7B,EAAGiE,cAAclE,OAAQ,kBAAmB+C,EAAQZ,GAAG,GAAIY,EAAQZ,GAAG,GAAIM,KAAMyD,GAChF,KAAKpE,IAAMoE,GACX,CACC,GAAIA,EAAUnE,eAAeD,GAC7B,CACCJ,EAAaC,EAAIG,EAAIoE,EAAUpE,KAGjC,GAAIU,EACJ,CACC,IAAK,GAAIyE,GAAK,EAAGA,EAAKzE,EAAY0E,OAAQD,IAC1C,CACCvF,EAAaC,EAAIa,EAAYyE,GAAI,aAAczE,EAAYyE,GAAI,gBAIjEH,EAAKK,MACJC,OAAQ,OACRC,IAAKpB,EAAU,OACfpB,QACAhE,KAAM,OACNyG,YAAc,KACdC,MAAQ,MACRC,YAAc,MACdC,SAAUxH,EAAGqF,MAAM,SAAST,GAC3B5E,EAAGiE,cAAclE,OAAQ,oBAAqB+C,EAAQZ,GAAG,GAAIY,EAAQZ,GAAG,GAAIM,KAAMoC,EAAM9B,GACxF,IAAI8B,EAAK,gBACRpC,KAAKsC,UAAUhC,EAAS8B,EAAK,qBAE7B5E,GAAGiE,cAAclE,OAAQ,sBAAuB+C,EAAQZ,GAAG,GAAIY,EAAQZ,GAAG,GAAIM,KAAMoC,EAAM9B,KACzFN,MACHiF,iBAAkBzH,EAAGsD,SAAS,SAASsB,GACtC5E,EAAGiE,cAAclE,OAAQ,oBAAqB+C,EAAQZ,GAAG,GAAIY,EAAQZ,GAAG,GAAIM,KAAMoC,EAAM9B,GACxFN,MAAKsC,UAAUhC,EAAS9C,EAAG2G,QAAQ,+BACjCnE,OAEJqE,GAAKa,IAAIC,KAAKjG,EAEdc,MAAKoD,YAAY9C,IAElBgC,UAAY,SAAShC,EAAS3C,GAC7B,GAAIH,EAAGY,KAAKS,QAAQyB,GACnBA,EAAUN,KAAK+B,YAAYzB,EAAS,MAErC3C,GAAO,2EACL,MAAQH,EAAG2G,QAAQ,YAAc,aAAexG,EAAO,QACzD,IAAI2C,GAAWA,EAAQX,KACvB,CACCnC,EAAG4H,SAAS9E,EAAQX,KAAM,mCAC1B,UACQW,GAAQP,aAAe,aAC3BO,EAAQP,YAAY0E,QAAU,EAElC,CACCjH,EAAG6H,KAAK/E,EAAQX,KAAM,QAASnC,EAAGqF,MAAM,SAASyC,GAChD9H,EAAG+H,UAAUjF,EAAQX,KACrBnC,GAAGqC,YAAYS,EAAQX,KAAM,mCAC7BK,MAAKW,QAAQL,QAAUA,CACvBN,MAAKW,QAAQqB,WAAWwD,cAAclF,EAAQ3C,KAAM,OAClDqC,YAQA,IAAIrC,EACT,IASD4E,SAAW,SAAS7C,EAAI/B,KAexB8H,SAAW,WACVzF,KAAKW,QAAQ+E,MACb1F,MAAKW,QAAQ8E,YAEdjE,UAAY,WACXxB,KAAKW,QAAQa,aAGfjB,GAAQoF,KAAO,SAAShC,EAAe/F,GACtC,GAAI8B,GAAK9B,EAAK,KACdH,GAAK,QAAQiC,GAAOjC,EAAK,QAAQiC,IAAO,GAAKa,GAAQb,EACrDjC,GAAK,QAAQiC,GAAIgD,WAAWiB,EAAe/F,GAG5CL,QAAOqI,kBAAoB,SAASjC,EAAezF,EAAIoH,GACtDA,EAAIA,GAAK/H,OAAOsI,KAEhB,IAAIC,GAAmBvI,OAAOiC,IAAIuG,gBAAgB,KAAOxI,OAAOyI,UAAY,MACpEzI,OAAO0I,mBAAmBH,kBAC1BhH,EAAMC,eAGd,IAAG+G,EACH,CACC,MAAO,MAGR,GACCR,GACGA,EAAEY,QACFZ,EAAEY,OAAOC,UAEXb,EAAEY,OAAOC,QAAQC,eAAiB,KAEjCd,EAAEY,OAAOC,QAAQC,eAAiB,OAC9B5I,EAAGY,KAAKC,iBAAiBiH,EAAEY,OAAOG,aAAa,mBAItD,CACC,MAAO,MAGR7I,EAAG8I,kBAAkBhB,EACrB9H,GAAG+I,eAAejB,EAElB,IAAI3F,GAAOnC,EAAG,UAAYQ,EAAO2F,EAAezF,IAC/CsI,KAAWC,CAEZ,IAAI9G,EAAK0G,aAAa,sBAAwB,IAC7CG,EAAKE,MACJC,MAAOnJ,EAAG2G,QAAQ,gBAClBa,SAAU,WACTvH,EAAK,QAAQkG,GAAeiD,MAAMpJ,EAAG,UAAYQ,EAAO2F,EAAezF,GAAM,oBAGhF,IAAI2I,EACJ,IAAKlH,EAAK0G,aAAa,mBAAqB,aAAgB9I,OAAO,wBACjEsJ,EAAOtJ,OAAOuJ,mBAAmBC,QAAQpH,EAAK0G,aAAa,qBAAuBQ,EACpF,CACCA,EAAK,uBAA0BA,EAAK,wBAA0BrJ,EAAGsD,SAAS+F,EAAKG,KAAMH,EACrFL,GAAKE,MAAMC,MAAQE,EAAKI,MAAQzJ,EAAG2G,QAAQ,iBAAmB3G,EAAG2G,QAAQ,iBACxEa,SAAU6B,EAAK,wBAChBL,GAAKE,MAAOC,MAAOnJ,EAAG2G,QAAQ,gBAC7Ba,SAAU,WAAazH,OAAOuJ,mBAAmBI,KAAKvH,EAAK0G,aAAa,sBAG1E,GAAI1G,EAAK0G,aAAa,qBAAuB,IAC5CG,EAAKE,MACJC,MAAOnJ,EAAG2G,QAAQ,gBAClBa,SAAU,WAAavH,EAAK,QAAQkG,GAAetB,IAAI1C,EAAK0G,aAAa,mBAAoBnI,EAAI,UACnG,IAAIyB,EAAK0G,aAAa,yBAA2B,IACjD,CACC,GAAIc,GAASxH,EAAK0G,aAAa,6BAA+B,QAC9DG,GAAKE,MACJC,MAAQQ,EAAS3J,EAAG2G,QAAQ,gBAAkB3G,EAAG2G,QAAQ,gBACzDa,SAAU,WACTvH,EAAK,QAAQkG,GAAetB,IAAI1C,EAAK0G,aAAa,uBACjDe,QAAQ,WAAaD,EAAS,OAAS,QACvCC,QAAQ,WAAaD,EAAS,OAAS,QACvCjJ,EAAI,eAIR,GAAIyB,EAAK0G,aAAa,uBAAyB,IAC9CG,EAAKE,MACJC,MAAOnJ,EAAG2G,QAAQ,kBAClBa,SAAU,WAAavH,EAAK,QAAQkG,GAAetB,IAAI1C,EAAK0G,aAAa,qBAAsBnI,EAAI,YACrG,IAAIyB,EAAK0G,aAAa,2BAA6B,IAClDG,EAAKE,MACJC,MAAOnJ,EAAG2G,QAAQ,sBAClBa,SAAU,WACT,SAAWqC,OAAQ,YACnB,CACCA,KAAKC,YACJC,WAAY,eACZ7J,SAAUQ,OAIf,IAAIsI,EAAK/B,OAAS,EAClB,CACCgC,EAAS,GAAIlJ,QAAOqB,YAAYqE,GAAGuE,aAAcC,QAASjB,GAAQ,eAClEC,GAAOvE,OAER,MAAO,OAER3E,QAAOmK,YAAc,SAAS/D,EAAe2B,GAC5C9H,EAAG8I,kBAAkBhB,EACrB9H,GAAG+I,eAAejB,EAClB7H,GAAK,QAAQkG,GAAeiD,MAAMtB,EAAEY,OACpC,OAAO,OAER3I,QAAOoK,aAAe,SAAShI,EAAM2F,GACpC9H,EAAG8I,kBAAkBhB,EACrB9H,GAAG+I,eAAejB,EAElB,IAAIsC,GAAOpK,EAAGmC,GAAQA,EAAKkI,gBAAkB,IAC7C,IAAIrK,EAAGoK,GACP,CACC,GAAIE,GAAKF,EAAIG,WACZC,EAAU,IACVC,EAAWnG,SAAS8F,EAAIM,cACxBC,GAAUC,OAAOJ,GACjBK,GAAWD,OAAOH,EAEnBzK,GAAG8K,OAAO3I,EAEV,IAAI4I,IAAQN,EAAWD,IAAY,IAAOA,EAC1CO,GAAQA,EAAO,GAAM,GAAOA,EAAO,GAAM,GAAMA,CAE/CT,GAAGU,MAAMC,UAAYN,EAAOC,OAAO,IACnCN,GAAGU,MAAME,SAAW,QAEpB,IAAKlL,GAAG,WACPmL,SAAWJ,EAAK,IAChBzD,MAAQqD,EACRS,OAASP,EACTQ,WAAarL,EAAGsL,OAAOC,YAAYvL,EAAGsL,OAAOE,YAAYC,OACzDC,KAAO,SAASC,GACfrB,EAAGU,MAAMC,UAAYU,EAAMf,OAAS,IACpCN,GAAGU,MAAMY,QAAUD,EAAMC,QAAU,KAEpCC,SAAW,WACVvB,EAAGU,MAAMc,QAAU,EACnBxB,GAAGU,MAAMC,UAAY,MACrBjL,GAAGiE,cAAclE,OAAQ,yBAA0BuK,GACnDtK,GAAG+L,SAASC,WAAW,SAErBC,UAGL,MAAO,OAGR,IAAIzG,GAAO,SAASzF,GACnBC,EAAGkM,IAAM,SAASC,EAAQC,EAAcC,GAEvCrM,EAAGkM,IAAII,WAAWC,YAAYC,MAAMhK,KAAMiK,UAE1CjK,MAAKkK,SAAW1M,EAAG2G,QAAQ,sBAC3BnE,MAAKmK,MAAQ3M,EAAG2G,QAAQ,mBACxBnE,MAAKoK,aAAe5M,EAAG2G,QAAQ,wBAE/B3G,GAAG+D,kBAAkBhE,EAAQ,qBAAsByC,KAAK0B,aAAa,sBACrElE,GAAG+D,kBAAkBhE,EAAQ,mBAAoByC,KAAK0B,aAAa,oBAEnE1B,MAAKqK,YAAc,CACnBrK,MAAK0B,aAAa,wBAA0BlE,EAAGsD,SAAS,SAAS6C,EAAe2G,EAAWhK,EAASiK,EAAK5M,EAAMoC,GAC9G,GAAIC,KAAK2D,eAAiBA,EAAe,CACxC,GAAIjE,IAAMiE,EAAgB2G,EAAY,EAAIA,EAAY,OAAStK,KAAKqK,cACpErK,MAAKwK,UAAU9K,EAAIY,EAAS3C,EAAMoC,EAClCC,MAAKyK,eAAe9G,EAAgB,IAAM2G,GAAa,SAEtDtK,KACHA,MAAK0B,aAAa,sBAAwBlE,EAAGsD,SAAS,SAAS6C,EAAe2G,EAAWC,EAAKnI,EAAM9B,GACnG,GAAIN,KAAK2D,eAAiBA,EAAe,CACxC3D,KAAK0K,IAAIpK,EAAS8B,EAAK,aAAcA,EAAM,KAAM,YAEhDpC,KACHA,MAAK0B,aAAa,oBAAsBlE,EAAGsD,SAAS,SAAS6C,EAAe2G,EAAWC,EAAKnI,EAAM9B,GACjG,GAAIN,KAAK2D,eAAiBA,EAC1B,CACC3D,KAAKyK,eAAe9G,EAAgB,MAAQ,OAC5C3D,MAAKyK,eAAe9G,EAAgB,IAAM2G,GAAa,MACvDtK,MAAK2K,WAAWrK,KAEfN,KACHA,MAAK0B,aAAa,sBAAwBlE,EAAGsD,SAAS,SAASsB,GAC9D,GAAIuH,GAASvH,EAAKuH,MAClB,IACCvH,EAAKwI,SAAW,kBACbjB,EAAO,kBAAoB3J,KAAK2D,gBAEhCgG,EAAO,WAAa,IAAQnM,EAAG2G,QAAQ,WAAa,IAEpDwF,EAAO,gBAAkBA,EAAO,gBAAkB3J,KAAK6K,kBAGjDlB,GAAO,QAAU,aACrBnM,EAAG6D,KAAKyJ,SAASnB,EAAO,QAAS,aAAc,iBAIrD,CACC,GAAIvH,EAAKwI,SAAW,kBAAoBjB,EAAO,MAC/C,CACC,GAAIA,EAAO,uBACVlM,EAAKM,kBAAkB4L,EAAO,iBAAmB,IAAMA,EAAO,wBAA0B,IACzF3J,MAAK+K,cAAcpB,OAEf,IAAIvH,EAAKwI,UAAY,UACvBjB,EAAO,WAAa,KAASnM,EAAG2G,QAAQ,WAAa,MACrDwF,EAAO,wBAA0BlM,EAAKM,kBAAkB4L,EAAO,iBAAmB,IAAMA,EAAO,0BAA4B,MAE9H,CACC3J,KAAKgL,cAAcrB,EAAO,WAAYA,EAAO,QAASA,EAAO,cAG7D3J,KAEHxC,GAAGmB,eAAepB,EAAQ,mBAAoByC,KAAK0B,aAAa,oBAChElE,GAAGmB,eAAepB,EAAQ,qBAAsByC,KAAK0B,aAAa,sBAClElE,GAAGmB,eAAepB,EAAQ,uBAAwByC,KAAK0B,aAAa,wBACpE9C,aAAYD,eAAepB,EAAQ,qBAAsByC,KAAK0B,aAAa,sBAE3E,IAAIkI,EAAa,mBAAqB,IACrCrJ,EAAQoF,KAAK3F,KAAK2D,cAAekG,EAElCpM,GAAK,QAAQuC,KAAK2D,eAAiB3D,IACnC,OAAOA,MAERxC,GAAGyN,OAAOzN,EAAGkM,IAAKnM,EAAO,UACzBC,GAAGkM,IAAIxJ,UAAU8C,KAAO,YACxBxF,GAAGkM,IAAIxJ,UAAU0E,IAAI,YAAcpH,EAAG2G,QAAQ,YAAc,wCAC5D3G,GAAGkM,IAAIxJ,UAAUsK,UAAY,SAAS9K,EAAIyE,EAAS+G,EAAKnL,GACvD,GAAIoL,GAAahH,EAAQxE,MAAQnC,EAAG,UAAYkC,EAAGE,KAAK,KAAO,SAC/D,KAAKuL,EACL,CACC,GAAIxN,GAAQH,EAAGY,KAAKgN,SAASF,GAAOA,EAAM,EAC1CvN,GAAOH,EAAG6D,KAAKgK,iBAAiB1N,GAAMyJ,QAAQ,OAAQ,SACtDzJ,GAAOA,EAAKyJ,QAAQ,OAAQ,IAC3BA,QAAQ,iBAAkB,KAC1BA,QAAQ,qCAAsC,MAC9CA,QAAQ,OAAQ,UAEjB,IAAIkE,GAAO/N,EAAOgO,iBACfC,eAAkBC,QAAU/L,EAAIgM,kBAAoB/N,EAAMgO,gBAAkB,GAAIC,OAAOC,UAAY,OACnGC,iBAAmB9L,KAAK2J,OAAOmC,iBAAkBC,OAAS/L,KAAKgM,QAChExO,EAAGY,KAAKS,QAAQkB,IAAgBA,EAAY0E,OAAS,EAAIzE,KAAKoK,aAAepK,KAAKmK,OAAS8B,CAE7FA,GAAKzO,EAAG0O,YAAYZ,EAAM,MAC1BH,GAAY3N,EAAG2O,OAAO,OACrBC,OAAS1M,GAAM,UAAYA,EAAGE,KAAK,KAAO,SAAWyM,UAAc,wBACnE7D,OAASY,QAAU,EAAGhB,OAAS,EAAGM,SAAU,UAC5C4C,KAAOW,EAAGK,MACX9O,GAAG,UAAYkC,EAAG,GAAK,QAAQ6M,YAAYpB,EAE3C,IAAIxL,GAAOwL,EACVqB,EAAShP,EAAGiP,IAAI9M,GAChB+M,EAAOlP,EAAGmP,qBACVC,EAAOJ,EAAOI,IAAMF,EAAKG,WAE1B,IAAIrP,EAAGsP,qBAAqB,aAAeF,EAC1CrP,EAAOwP,SAAS,EAAGH,EAEpB,IAAII,GAASxP,EAAGsP,oBAEhB,IAAKtP,GAAG,WACPmL,SAAW,IACX7D,OAAUsE,QAAU,EAAGhB,OAAS,GAChCQ,QAAWQ,QAAS,IAAKhB,OAASzI,EAAKsN,cACvCpE,WAAarL,EAAGsL,OAAOC,YAAYvL,EAAGsL,OAAOE,YAAYC,OACzDC,KAAO,SAASC,GACfxJ,EAAK6I,MAAMJ,OAASe,EAAMf,OAAS,IACnCzI,GAAK6I,MAAMY,QAAUD,EAAMC,QAAU,GACrC,IAAK4D,EAAOE,UAAYR,EAAKG,YAAgBL,EAAOI,IAAMzD,EAAMf,OAChE,CACC7K,EAAOwP,SAAS,EAAIH,EAAMzD,EAAMf,UAIlCiB,SAAW,WACV,GAAI1J,EAAK6I,MAAM2E,UAAY,OAC1BxN,EAAK6I,MAAMc,QAAU,MAEpBG,SAEJ,IAAI2D,GAAM,EACVC,EAAO,WAEND,GACA,IAAIA,EAAM,IACV,CACC,GAAIzN,GAAOnC,EAAG,UAAYkC,EAAGE,KAAK,KAAO,SACzC,IAAID,GAAQA,EAAK2N,WAAW7I,OAAS,EACpCjH,EAAG+P,KAAKC,eAAevB,EAAGwB,YAE1BjQ,GAAGkQ,MAAML,EAAMrN,SAGlBxC,GAAGkQ,MAAML,EAAMrN,QAEhBxC,EAAG4H,SAAS+F,EAAW,4BACvBhH,GAAQxE,KAAOwL,CACf,OAAOA,GAER3N,GAAGkM,IAAIxJ,UAAUyK,WAAa,SAASxG,GACtC,GAAIA,GAAW3G,EAAG2G,EAAQxE,MAC1B,CACCnC,EAAGqC,YAAYsE,EAAQxE,KAAM,8BAG/BnC,GAAGkM,IAAIxJ,UAAUwK,IAAM,SAASpK,EAASqN,EAAOvL,GAC/C,GAAI5E,EAAGY,KAAKS,QAAQyB,GACpB,CACC9C,EAAGkM,IAAII,WAAWY,IAAIV,MAAMhK,KAAMiK,eAE9B,IAAIzM,EAAG8C,EAAQ,SACpB,CACCA,EAAQ,QAAQsN,aAAa,KAAM,UAAYD,EAAM/N,KAAK,KAAO,SACjEpC,GAAGkM,IAAII,WAAWY,IAAIV,MAAMhK,MAAO2N,EAAOvL,EAAM,KAAM,eAGvD,CACC5E,EAAGkM,IAAII,WAAWY,IAAIV,MAAMhK,MAAO2N,EAAOvL,IAE3C,GAAI7E,EAAO,iBAAmBA,EAAO,gBAAgB,YACpDsQ,WAAW,WAAatQ,EAAOuQ,aAAavE,SAASC,cAAiB,KAExEhM,GAAGkM,IAAIxJ,UAAUiF,KAAO,WACvB,GAAI3H,EAAGwC,KAAK+N,KACXvQ,EAAG4H,SAASpF,KAAK+N,IAAIhG,WAAY,8BAClCvK,GAAGkM,IAAII,WAAW3E,KAAK6E,MAAMhK,KAAMiK,WAEpCzM,GAAGkM,IAAIxJ,UAAU8N,MAAQ,WACxB,GAAIxQ,EAAGwC,KAAK+N,KACXvQ,EAAGqC,YAAYG,KAAK+N,IAAIhG,WAAY,8BACrCvK,GAAGkM,IAAII,WAAWkE,MAAMhE,MAAMhK,KAAMiK,WAErCzM,GAAGkM,IAAIxJ,UAAUmJ,SAAW,WAC3B,GAAI7L,EAAGwC,KAAK+N,KACXvQ,EAAGqC,YAAYG,KAAK+N,IAAIhG,WAAY,8BACrCvK,GAAGkM,IAAII,WAAWT,SAASW,MAAMhK,KAAMiK,WAExCzM,GAAGkM,IAAIxJ,UAAUuF,SAAW,SAAS/F,GACpC,GAAIyL,GAAY3N,EAAG,UAAYwC,KAAK2D,cAAgB,IAAMjE,EAAK,SAC/D,IAAIA,EAAK,GAAKyL,EACb3N,EAAG4H,SAAS+F,EAAW,6BAEzB3N,GAAGkM,IAAIxJ,UAAUsB,UAAY,SAAS9B,GACrC,GAAIyL,GAAY3N,EAAG,UAAYwC,KAAK2D,cAAgB,IAAMjE,EAAK,SAC/D,IAAIA,EAAK,GAAKyL,EACb3N,EAAGqC,YAAYsL,EAAW,6BAE5B3N,GAAGkM,IAAIuE,eAAiB,SAAStE,EAAQC,EAAcC,GACtD,MAAO,IAAKrM,GAAGkM,IAAIC,EAAQC,EAAcC,GAG1CrM,GAAGkM,IAAIvJ,YAAc,SAAS+N,GAC7B,MAAOzQ,GAAK,QAAQyQ,GAGrB1Q,GAAGmB,eAAepB,EAAQ,uBAAwB,SAASoG,SACnDlG,GAAK,QAAQkG,IAErBnG,GAAGiE,cAAc,yBAA0B,aAC3CjE,GAAG+D,kBAAkB,yBAA0B,WAAYyB,EAAKzF,KAEjEC,GAAGmB,eAAe,yBAA0B,WAAYqE,EAAKzF,SAC7D,IAAIA,OAAO,UACVyF,EAAKzF"}
18,981
18,981
0.820874
aebd7ebaced3c442c6afd31c34c806d1b2104efb
190
js
JavaScript
src/components/Translation/styles.js
bryaneaton13/flash-verses
5aa3ba7785757cf3b93e21ecf34dcd44273a3ba6
[ "MIT" ]
null
null
null
src/components/Translation/styles.js
bryaneaton13/flash-verses
5aa3ba7785757cf3b93e21ecf34dcd44273a3ba6
[ "MIT" ]
null
null
null
src/components/Translation/styles.js
bryaneaton13/flash-verses
5aa3ba7785757cf3b93e21ecf34dcd44273a3ba6
[ "MIT" ]
null
null
null
import { StyleSheet } from 'react-native'; import COLORS from '../../colors'; module.exports = StyleSheet.create({ translation: { fontSize: 13, color: COLORS.DARK_GREY, }, });
17.272727
42
0.647368
aebde398a57534f04cae19bdc42cba32e45471f2
93,277
js
JavaScript
dist/vendor.54f01e7571327264504c.min.js
Jeffrey-H/vue-typer
d2aa5ea77f6084d51aa9b7334e456381376449da
[ "MIT" ]
null
null
null
dist/vendor.54f01e7571327264504c.min.js
Jeffrey-H/vue-typer
d2aa5ea77f6084d51aa9b7334e456381376449da
[ "MIT" ]
null
null
null
dist/vendor.54f01e7571327264504c.min.js
Jeffrey-H/vue-typer
d2aa5ea77f6084d51aa9b7334e456381376449da
[ "MIT" ]
null
null
null
webpackJsonp([1],{"+E39":function(e,t,n){e.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+ZMJ":function(e,t,n){var r=n("lOnJ");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,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"/5sW":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){/*! * Vue.js v2.3.3 * (c) 2014-2017 Evan You * Released under the MIT License. */ function n(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function o(e){return!0===e}function i(e){return!1===e}function a(e){return"string"==typeof e||"number"==typeof e}function s(e){return null!==e&&"object"==typeof e}function u(e){return"[object Object]"===Zn.call(e)}function c(e){return"[object RegExp]"===Zn.call(e)}function l(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function f(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}function d(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function h(e,t){return er.call(e,t)}function v(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function m(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function g(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function y(e,t){for(var n in t)e[n]=t[n];return e}function _(e){for(var t={},n=0;n<e.length;n++)e[n]&&y(t,e[n]);return t}function b(){}function w(e,t){var n=s(e),r=s(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{return JSON.stringify(e)===JSON.stringify(t)}catch(n){return e===t}}function k(e,t){for(var n=0;n<e.length;n++)if(w(e[n],t))return n;return-1}function x(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function C(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function A(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function O(e){if(!dr.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}function S(e,t,n){if(fr.errorHandler)fr.errorHandler.call(null,e,t,n);else{if(hr("Error in "+n+': "'+e.toString()+'"',t),!xr||"undefined"==typeof console)throw e;console.error(e)}}function $(e){return"function"==typeof e&&/native code/.test(e.toString())}function j(e){Ur.target&&Fr.push(Ur.target),Ur.target=e}function E(){Ur.target=Fr.pop()}function T(e,t){e.__proto__=t}function L(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];A(e,i,t[i])}}function M(e,t){if(s(e)){var n;return h(e,"__ob__")&&e.__ob__ instanceof qr?n=e.__ob__:zr.shouldConvert&&!Dr()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new qr(e)),t&&n&&n.vmCount++,n}}function N(e,t,n,r){var o=new Ur,i=Object.getOwnPropertyDescriptor(e,t);if(!i||!1!==i.configurable){var a=i&&i.get,s=i&&i.set,u=M(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=a?a.call(e):n;return Ur.target&&(o.depend(),u&&u.dep.depend(),Array.isArray(t)&&I(t)),t},set:function(t){var i=a?a.call(e):n;t===i||t!==t&&i!==i||(r&&r(),s?s.call(e,t):n=t,u=M(t),o.notify())}})}}function D(e,t,n){if(Array.isArray(e)&&"number"==typeof t)return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(h(e,t))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?(hr("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),n):r?(N(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function P(e,t){if(Array.isArray(e)&&"number"==typeof t)return void e.splice(t,1);var n=e.__ob__;if(e._isVue||n&&n.vmCount)return void hr("Avoid deleting properties on a Vue instance or its root $data - just set it to null.");h(e,t)&&(delete e[t],n&&n.dep.notify())}function I(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&I(t)}function B(e,t){if(!t)return e;for(var n,r,o,i=Object.keys(t),a=0;a<i.length;a++)n=i[a],r=e[n],o=t[n],h(e,n)?u(r)&&u(o)&&B(r,o):D(e,n,o);return e}function R(e,t){return t?e?e.concat(t):Array.isArray(t)?t:[t]:e}function U(e,t){var n=Object.create(e||null);return t?y(n,t):n}function F(e){for(var t in e.components){var n=t.toLowerCase();(Xn(n)||fr.isReservedTag(n))&&hr("Do not use built-in or reserved HTML elements as component id: "+t)}}function W(e){var t=e.props;if(t){var n,r,o,i={};if(Array.isArray(t))for(n=t.length;n--;)r=t[n],"string"==typeof r?(o=nr(r),i[o]={type:null}):hr("props must be strings when using array syntax.");else if(u(t))for(var a in t)r=t[a],o=nr(a),i[o]=u(r)?r:{type:r};e.props=i}}function G(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}function V(e,t,n){function r(r){var o=Hr[r]||Kr;u[r]=o(e[r],t[r],n,r)}F(t),"function"==typeof t&&(t=t.options),W(t),G(t);var o=t.extends;if(o&&(e=V(e,o,n)),t.mixins)for(var i=0,a=t.mixins.length;i<a;i++)e=V(e,t.mixins[i],n);var s,u={};for(s in e)r(s);for(s in t)h(e,s)||r(s);return u}function z(e,t,n,r){if("string"==typeof n){var o=e[t];if(h(o,n))return o[n];var i=nr(n);if(h(o,i))return o[i];var a=rr(i);if(h(o,a))return o[a];var s=o[n]||o[i]||o[a];return r&&!s&&hr("Failed to resolve "+t.slice(0,-1)+": "+n,e),s}}function q(e,t,n,r){var o=t[e],i=!h(n,e),a=n[e];if(Y(Boolean,o.type)&&(i&&!h(o,"default")?a=!1:Y(String,o.type)||""!==a&&a!==ir(e)||(a=!0)),void 0===a){a=H(r,o,e);var s=zr.shouldConvert;zr.shouldConvert=!0,M(a),zr.shouldConvert=s}return J(o,e,a,r,i),a}function H(e,t,n){if(h(t,"default")){var r=t.default;return s(r)&&hr('Invalid default value for prop "'+n+'": Props with type Object/Array must use a factory function to return the default value.',e),e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"==typeof r&&"Function"!==Q(t.type)?r.call(e):r}}function J(e,t,n,r,o){if(e.required&&o)return void hr('Missing required prop: "'+t+'"',r);if(null!=n||e.required){var i=e.type,a=!i||!0===i,s=[];if(i){Array.isArray(i)||(i=[i]);for(var u=0;u<i.length&&!a;u++){var c=K(n,i[u]);s.push(c.expectedType||""),a=c.valid}}if(!a)return void hr('Invalid prop: type check failed for prop "'+t+'". Expected '+s.map(rr).join(", ")+", got "+Object.prototype.toString.call(n).slice(8,-1)+".",r);var l=e.validator;l&&(l(n)||hr('Invalid prop: custom validator check failed for prop "'+t+'".',r))}}function K(e,t){var n,r=Q(t);return n=Qr.test(r)?typeof e===r.toLowerCase():"Object"===r?u(e):"Array"===r?Array.isArray(e):e instanceof t,{valid:n,expectedType:r}}function Q(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Y(e,t){if(!Array.isArray(t))return Q(t)===Q(e);for(var n=0,r=t.length;n<r;n++)if(Q(t[n])===Q(e))return!0;return!1}function Z(e){return new ao(void 0,void 0,void 0,String(e))}function X(e){var t=new ao(e.tag,e.data,e.children,e.text,e.elm,e.context,e.componentOptions);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.isCloned=!0,t}function ee(e){for(var t=e.length,n=new Array(t),r=0;r<t;r++)n[r]=X(e[r]);return n}function te(e){function t(){var e=arguments,n=t.fns;if(!Array.isArray(n))return n.apply(null,arguments);for(var r=0;r<n.length;r++)n[r].apply(null,e)}return t.fns=e,t}function ne(e,t,r,o,i){var a,s,u,c;for(a in e)s=e[a],u=t[a],c=lo(a),n(s)?hr('Invalid handler for event "'+c.name+'": got '+String(s),i):n(u)?(n(s.fns)&&(s=e[a]=te(s)),r(c.name,s,c.once,c.capture,c.passive)):s!==u&&(u.fns=s,e[a]=u);for(a in t)n(e[a])&&(c=lo(a),o(c.name,t[a],c.capture))}function re(e,t,i){function a(){i.apply(this,arguments),d(s.fns,a)}var s,u=e[t];n(u)?s=te([a]):r(u.fns)&&o(u.merged)?(s=u,s.fns.push(a)):s=te([u,a]),s.merged=!0,e[t]=s}function oe(e,t,o){var i=t.options.props;if(!n(i)){var a={},s=e.attrs,u=e.props;if(r(s)||r(u))for(var c in i){var l=ir(c),f=c.toLowerCase();c!==f&&s&&h(s,f)&&vr('Prop "'+f+'" is passed to component '+mr(o||t)+', but the declared prop name is "'+c+'". Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates. You should probably use "'+l+'" instead of "'+c+'".'),ie(a,u,c,l,!0)||ie(a,s,c,l,!1)}return a}}function ie(e,t,n,o,i){if(r(t)){if(h(t,n))return e[n]=t[n],i||delete t[n],!0;if(h(t,o))return e[n]=t[o],i||delete t[o],!0}return!1}function ae(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function se(e){return a(e)?[Z(e)]:Array.isArray(e)?ce(e):void 0}function ue(e){return r(e)&&r(e.text)&&i(e.isComment)}function ce(e,t){var i,s,u,c=[];for(i=0;i<e.length;i++)s=e[i],n(s)||"boolean"==typeof s||(u=c[c.length-1],Array.isArray(s)?c.push.apply(c,ce(s,(t||"")+"_"+i)):a(s)?ue(u)?u.text+=String(s):""!==s&&c.push(Z(s)):ue(s)&&ue(u)?c[c.length-1]=Z(u.text+s.text):(o(e._isVList)&&r(s.tag)&&n(s.key)&&r(t)&&(s.key="__vlist"+t+"_"+i+"__"),c.push(s)));return c}function le(e,t){return s(e)?t.extend(e):e}function fe(e,t,i){if(o(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;if(o(e.loading)&&r(e.loadingComp))return e.loadingComp;if(!r(e.contexts)){var a=e.contexts=[i],u=!0,c=function(){for(var e=0,t=a.length;e<t;e++)a[e].$forceUpdate()},l=x(function(n){e.resolved=le(n,t),u||c()}),f=x(function(t){hr("Failed to resolve async component: "+String(e)+(t?"\nReason: "+t:"")),r(e.errorComp)&&(e.error=!0,c())}),p=e(l,f);return s(p)&&("function"==typeof p.then?n(e.resolved)&&p.then(l,f):r(p.component)&&"function"==typeof p.component.then&&(p.component.then(l,f),r(p.error)&&(e.errorComp=le(p.error,t)),r(p.loading)&&(e.loadingComp=le(p.loading,t),0===p.delay?e.loading=!0:setTimeout(function(){n(e.resolved)&&n(e.error)&&(e.loading=!0,c())},p.delay||200)),r(p.timeout)&&setTimeout(function(){n(e.resolved)&&f("timeout ("+p.timeout+"ms)")},p.timeout))),u=!1,e.loading?e.loadingComp:e.resolved}e.contexts.push(i)}function pe(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&r(n.componentOptions))return n}}function de(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&me(e,t)}function he(e,t,n){n?uo.$once(e,t):uo.$on(e,t)}function ve(e,t){uo.$off(e,t)}function me(e,t,n){uo=e,ne(t,n||{},he,ve,e)}function ge(e,t){var n={};if(!e)return n;for(var r=[],o=0,i=e.length;o<i;o++){var a=e[o];if(a.context!==t&&a.functionalContext!==t||!a.data||null==a.data.slot)r.push(a);else{var s=a.data.slot,u=n[s]||(n[s]=[]);"template"===a.tag?u.push.apply(u,a.children):u.push(a)}}return r.every(ye)||(n.default=r),n}function ye(e){return e.isComment||" "===e.text}function _e(e,t){t=t||{};for(var n=0;n<e.length;n++)Array.isArray(e[n])?_e(e[n],t):t[e[n].key]=e[n].fn;return t}function be(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function we(e,t,n){e.$el=t,e.$options.render||(e.$options.render=co,e.$options.template&&"#"!==e.$options.template.charAt(0)||e.$options.el||t?hr("You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",e):hr("Failed to mount component: template or render function not defined.",e)),Oe(e,"beforeMount");var r;return r=fr.performance&&ro?function(){var t=e._name,r=e._uid,o="vue-perf-start:"+r,i="vue-perf-end:"+r;ro(o);var a=e._render();ro(i),oo(t+" render",o,i),ro(o),e._update(a,n),ro(i),oo(t+" patch",o,i)}:function(){e._update(e._render(),n)},e._watcher=new ko(e,r,b),n=!1,null==e.$vnode&&(e._isMounted=!0,Oe(e,"mounted")),e}function ke(e,t,n,r,o){var i=!!(o||e.$options._renderChildren||r.data.scopedSlots||e.$scopedSlots!==pr);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=o,t&&e.$options.props){zr.shouldConvert=!1,zr.isSettingProps=!0;for(var a=e._props,s=e.$options._propKeys||[],u=0;u<s.length;u++){var c=s[u];a[c]=q(c,e.$options.props,t,e)}zr.shouldConvert=!0,zr.isSettingProps=!1,e.$options.propsData=t}if(n){var l=e.$options._parentListeners;e.$options._parentListeners=n,me(e,n,l)}i&&(e.$slots=ge(o,r.context),e.$forceUpdate())}function xe(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Ce(e,t){if(t){if(e._directInactive=!1,xe(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Ce(e.$children[n]);Oe(e,"activated")}}function Ae(e,t){if(!(t&&(e._directInactive=!0,xe(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Ae(e.$children[n]);Oe(e,"deactivated")}}function Oe(e,t){var n=e.$options[t];if(n)for(var r=0,o=n.length;r<o;r++)try{n[r].call(e)}catch(n){S(n,e,t+" hook")}e._hasHookEvent&&e.$emit("hook:"+t)}function Se(){bo=ho.length=vo.length=0,mo={},go={},yo=_o=!1}function $e(){_o=!0;var e,t;for(ho.sort(function(e,t){return e.id-t.id}),bo=0;bo<ho.length;bo++)if(e=ho[bo],t=e.id,mo[t]=null,e.run(),null!=mo[t]&&(go[t]=(go[t]||0)+1,go[t]>po)){hr("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}var n=vo.slice(),r=ho.slice();Se(),Te(n),je(r),Pr&&fr.devtools&&Pr.emit("flush")}function je(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&Oe(r,"updated")}}function Ee(e){e._inactive=!1,vo.push(e)}function Te(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Ce(e[t],!0)}function Le(e){var t=e.id;if(null==mo[t]){if(mo[t]=!0,_o){for(var n=ho.length-1;n>bo&&ho[n].id>e.id;)n--;ho.splice(n+1,0,e)}else ho.push(e);yo||(yo=!0,Br($e))}}function Me(e){xo.clear(),Ne(e,xo)}function Ne(e,t){var n,r,o=Array.isArray(e);if((o||s(e))&&Object.isExtensible(e)){if(e.__ob__){var i=e.__ob__.dep.id;if(t.has(i))return;t.add(i)}if(o)for(n=e.length;n--;)Ne(e[n],t);else for(r=Object.keys(e),n=r.length;n--;)Ne(e[r[n]],t)}}function De(e,t,n){Co.get=function(){return this[t][n]},Co.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Co)}function Pe(e){e._watchers=[];var t=e.$options;t.props&&Ie(e,t.props),t.methods&&Ge(e,t.methods),t.data?Be(e):M(e._data={},!0),t.computed&&Ue(e,t.computed),t.watch&&Ve(e,t.watch)}function Ie(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;zr.shouldConvert=i;for(var a in t)!function(i){o.push(i);var a=q(i,t,n,e);(Ao[i]||fr.isReservedAttr(i))&&hr('"'+i+'" is a reserved attribute and cannot be used as component prop.',e),N(r,i,a,function(){e.$parent&&!zr.isSettingProps&&hr("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+i+'"',e)}),i in e||De(e,"_props",i)}(a);zr.shouldConvert=!0}function Be(e){var t=e.$options.data;t=e._data="function"==typeof t?Re(t,e):t||{},u(t)||(t={},hr("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));for(var n=Object.keys(t),r=e.$options.props,o=n.length;o--;)r&&h(r,n[o])?hr('The data property "'+n[o]+'" is already declared as a prop. Use prop default value instead.',e):C(n[o])||De(e,"_data",n[o]);M(t,!0)}function Re(e,t){try{return e.call(t)}catch(e){return S(e,t,"data()"),{}}}function Ue(e,t){var n=e._computedWatchers=Object.create(null);for(var r in t){var o=t[r],i="function"==typeof o?o:o.get;void 0===i&&(hr('No getter function has been defined for computed property "'+r+'".',e),i=b),n[r]=new ko(e,i,b,Oo),r in e?r in e.$data?hr('The computed property "'+r+'" is already defined in data.',e):e.$options.props&&r in e.$options.props&&hr('The computed property "'+r+'" is already defined as a prop.',e):Fe(e,r,o)}}function Fe(e,t,n){"function"==typeof n?(Co.get=We(t),Co.set=b):(Co.get=n.get?!1!==n.cache?We(t):n.get:b,Co.set=n.set?n.set:b),Object.defineProperty(e,t,Co)}function We(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Ur.target&&t.depend(),t.value}}function Ge(e,t){var n=e.$options.props;for(var r in t)e[r]=null==t[r]?b:m(t[r],e),null==t[r]&&hr('method "'+r+'" has an undefined value in the component definition. Did you reference the function correctly?',e),n&&h(n,r)&&hr('method "'+r+'" has already been defined as a prop.',e)}function Ve(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)ze(e,n,r[o]);else ze(e,n,r)}}function ze(e,t,n){var r;u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function qe(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}function He(e){var t=Je(e.$options.inject,e);t&&Object.keys(t).forEach(function(n){N(e,n,t[n],function(){hr('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+n+'"',e)})})}function Je(e,t){if(e){for(var n=Array.isArray(e),r=Object.create(null),o=n?e:Ir?Reflect.ownKeys(e):Object.keys(e),i=0;i<o.length;i++)for(var a=o[i],s=n?a:e[a],u=t;u;){if(u._provided&&s in u._provided){r[a]=u._provided[s];break}u=u.$parent}return r}}function Ke(e,t,n,o,i){var a={},s=e.options.props;if(r(s))for(var u in s)a[u]=q(u,s,t||{});else r(n.attrs)&&Qe(a,n.attrs),r(n.props)&&Qe(a,n.props);var c=Object.create(o),l=function(e,t,n,r){return nt(c,e,t,n,r,!0)},f=e.options.render.call(null,l,{data:n,props:a,children:i,parent:o,listeners:n.on||{},injections:Je(e.options.inject,o),slots:function(){return ge(i,o)}});return f instanceof ao&&(f.functionalContext=o,f.functionalOptions=e.options,n.slot&&((f.data||(f.data={})).slot=n.slot)),f}function Qe(e,t){for(var n in t)e[nr(n)]=t[n]}function Ye(e,t,i,a,u){if(!n(e)){var c=i.$options._base;if(s(e)&&(e=c.extend(e)),"function"!=typeof e)return void hr("Invalid Component definition: "+String(e),i);if(!n(e.cid)||void 0!==(e=fe(e,c,i))){mt(e),t=t||{},r(t.model)&&tt(e.options,t);var l=oe(t,e,u);if(o(e.options.functional))return Ke(e,l,t,i,a);var f=t.on;t.on=t.nativeOn,o(e.options.abstract)&&(t={}),Xe(t);var p=e.options.name||u;return new ao("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,i,{Ctor:e,propsData:l,listeners:f,tag:u,children:a})}}}function Ze(e,t,n,o){var i=e.componentOptions,a={_isComponent:!0,parent:t,propsData:i.propsData,_componentTag:i.tag,_parentVnode:e,_parentListeners:i.listeners,_renderChildren:i.children,_parentElm:n||null,_refElm:o||null},s=e.data.inlineTemplate;return r(s)&&(a.render=s.render,a.staticRenderFns=s.staticRenderFns),new i.Ctor(a)}function Xe(e){e.hook||(e.hook={});for(var t=0;t<$o.length;t++){var n=$o[t],r=e.hook[n],o=So[n];e.hook[n]=r?et(o,r):o}}function et(e,t){return function(n,r,o,i){e(n,r,o,i),t(n,r,o,i)}}function tt(e,t){var n=e.model&&e.model.prop||"value",o=e.model&&e.model.event||"input";(t.props||(t.props={}))[n]=t.model.value;var i=t.on||(t.on={});r(i[o])?i[o]=[t.model.callback].concat(i[o]):i[o]=t.model.callback}function nt(e,t,n,r,i,s){return(Array.isArray(n)||a(n))&&(i=r,r=n,n=void 0),o(s)&&(i=Eo),rt(e,t,n,r,i)}function rt(e,t,n,o,i){if(r(n)&&r(n.__ob__))return hr("Avoid using observed data object as vnode data: "+JSON.stringify(n)+"\nAlways create fresh vnode data objects in each render!",e),co();if(!t)return co();Array.isArray(o)&&"function"==typeof o[0]&&(n=n||{},n.scopedSlots={default:o[0]},o.length=0),i===Eo?o=se(o):i===jo&&(o=ae(o));var a,s;if("string"==typeof t){var u;s=fr.getTagNamespace(t),a=fr.isReservedTag(t)?new ao(fr.parsePlatformTagName(t),n,o,void 0,void 0,e):r(u=z(e.$options,"components",t))?Ye(u,n,e,o,t):new ao(t,n,o,void 0,void 0,e)}else a=Ye(t,n,e,o);return r(a)?(s&&ot(a,s),a):co()}function ot(e,t){if(e.ns=t,"foreignObject"!==e.tag&&r(e.children))for(var o=0,i=e.children.length;o<i;o++){var a=e.children[o];r(a.tag)&&n(a.ns)&&ot(a,t)}}function it(e,t){var n,o,i,a,u;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),o=0,i=e.length;o<i;o++)n[o]=t(e[o],o);else if("number"==typeof e)for(n=new Array(e),o=0;o<e;o++)n[o]=t(o+1,o);else if(s(e))for(a=Object.keys(e),n=new Array(a.length),o=0,i=a.length;o<i;o++)u=a[o],n[o]=t(e[u],u,o);return r(n)&&(n._isVList=!0),n}function at(e,t,n,r){var o=this.$scopedSlots[e];if(o)return n=n||{},r&&y(n,r),o(n)||t;var i=this.$slots[e];return i&&(i._rendered&&hr('Duplicate presence of slot "'+e+'" found in the same render tree - this will likely cause render errors.',this),i._rendered=!0),i||t}function st(e){return z(this.$options,"filters",e,!0)||sr}function ut(e,t,n){var r=fr.keyCodes[t]||n;return Array.isArray(r)?-1===r.indexOf(e):r!==e}function ct(e,t,n,r){if(n)if(s(n)){Array.isArray(n)&&(n=_(n));var o;for(var i in n){if("class"===i||"style"===i)o=e;else{var a=e.attrs&&e.attrs.type;o=r||fr.mustUseProp(t,a,i)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}i in o||(o[i]=n[i])}}else hr("v-bind without argument expects an Object or Array value",this);return e}function lt(e,t){var n=this._staticTrees[e];return n&&!t?Array.isArray(n)?ee(n):X(n):(n=this._staticTrees[e]=this.$options.staticRenderFns[e].call(this._renderProxy),pt(n,"__static__"+e,!1),n)}function ft(e,t,n){return pt(e,"__once__"+t+(n?"_"+n:""),!0),e}function pt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&dt(e[r],t+"_"+r,n);else dt(e,t,n)}function dt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function ht(e){e._vnode=null,e._staticTrees=null;var t=e.$vnode=e.$options._parentVnode,n=t&&t.context;e.$slots=ge(e.$options._renderChildren,n),e.$scopedSlots=pr,e._c=function(t,n,r,o){return nt(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return nt(e,t,n,r,o,!0)}}function vt(e,t){var n=e.$options=Object.create(e.constructor.options);n.parent=t.parent,n.propsData=t.propsData,n._parentVnode=t._parentVnode,n._parentListeners=t._parentListeners,n._renderChildren=t._renderChildren,n._componentTag=t._componentTag,n._parentElm=t._parentElm,n._refElm=t._refElm,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function mt(e){var t=e.options;if(e.super){var n=mt(e.super);if(n!==e.superOptions){e.superOptions=n;var r=gt(e);r&&y(e.extendOptions,r),t=e.options=V(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function gt(e){var t,n=e.options,r=e.extendOptions,o=e.sealedOptions;for(var i in n)n[i]!==o[i]&&(t||(t={}),t[i]=yt(n[i],r[i],o[i]));return t}function yt(e,t,n){if(Array.isArray(e)){var r=[];n=Array.isArray(n)?n:[n],t=Array.isArray(t)?t:[t];for(var o=0;o<e.length;o++)(t.indexOf(e[o])>=0||n.indexOf(e[o])<0)&&r.push(e[o]);return r}return e}function _t(e){this instanceof _t||hr("Vue is a constructor and should be called with the `new` keyword"),this._init(e)}function bt(e){e.use=function(e){if(e.installed)return this;var t=g(arguments,1);return t.unshift(this),"function"==typeof e.install?e.install.apply(e,t):"function"==typeof e&&e.apply(null,t),e.installed=!0,this}}function wt(e){e.mixin=function(e){return this.options=V(this.options,e),this}}function kt(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name;/^[a-zA-Z][\w-]*$/.test(i)||hr('Invalid component name: "'+i+'". Component names can only contain alphanumeric characters and the hyphen, and must start with a letter.');var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=V(n.options,e),a.super=n,a.options.props&&xt(a),a.options.computed&&Ct(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,cr.forEach(function(e){a[e]=n[e]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=y({},a.options),o[r]=a,a}}function xt(e){var t=e.options.props;for(var n in t)De(e.prototype,"_props",n)}function Ct(e){var t=e.options.computed;for(var n in t)Fe(e.prototype,n,t[n])}function At(e){cr.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&fr.isReservedTag(e)&&hr("Do not use built-in or reserved HTML elements as component id: "+e),"component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function Ot(e){return e&&(e.Ctor.options.name||e.tag)}function St(e,t){return"string"==typeof e?e.split(",").indexOf(t)>-1:!!c(e)&&e.test(t)}function $t(e,t,n){for(var r in e){var o=e[r];if(o){var i=Ot(o.componentOptions);i&&!n(i)&&(o!==t&&jt(o),e[r]=null)}}}function jt(e){e&&e.componentInstance.$destroy()}function Et(e){for(var t=e.data,n=e,o=e;r(o.componentInstance);)o=o.componentInstance._vnode,o.data&&(t=Tt(o.data,t));for(;r(n=n.parent);)n.data&&(t=Tt(t,n.data));return Lt(t)}function Tt(e,t){return{staticClass:Mt(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Lt(e){var t=e.class,n=e.staticClass;return r(n)||r(t)?Mt(n,Nt(t)):""}function Mt(e,t){return e?t?e+" "+t:e:t||""}function Nt(e){if(n(e))return"";if("string"==typeof e)return e;var t="";if(Array.isArray(e)){for(var o,i=0,a=e.length;i<a;i++)r(e[i])&&r(o=Nt(e[i]))&&""!==o&&(t+=o+" ");return t.slice(0,-1)}if(s(e)){for(var u in e)e[u]&&(t+=u+" ");return t.slice(0,-1)}return t}function Dt(e){return Jo(e)?"svg":"math"===e?"math":void 0}function Pt(e){if(!xr)return!0;if(Ko(e))return!1;if(e=e.toLowerCase(),null!=Qo[e])return Qo[e];var t=document.createElement(e);return e.indexOf("-")>-1?Qo[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Qo[e]=/HTMLUnknownElement/.test(t.toString())}function It(e){if("string"==typeof e){var t=document.querySelector(e);return t||(hr("Cannot find element: "+e),document.createElement("div"))}return e}function Bt(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Rt(e,t){return document.createElementNS(qo[e],t)}function Ut(e){return document.createTextNode(e)}function Ft(e){return document.createComment(e)}function Wt(e,t,n){e.insertBefore(t,n)}function Gt(e,t){e.removeChild(t)}function Vt(e,t){e.appendChild(t)}function zt(e){return e.parentNode}function qt(e){return e.nextSibling}function Ht(e){return e.tagName}function Jt(e,t){e.textContent=t}function Kt(e,t,n){e.setAttribute(t,n)}function Qt(e,t){var n=e.data.ref;if(n){var r=e.context,o=e.componentInstance||e.elm,i=r.$refs;t?Array.isArray(i[n])?d(i[n],o):i[n]===o&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])&&i[n].indexOf(o)<0?i[n].push(o):i[n]=[o]:i[n]=o}}function Yt(e,t){return e.key===t.key&&e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&Zt(e,t)}function Zt(e,t){if("input"!==e.tag)return!0;var n;return(r(n=e.data)&&r(n=n.attrs)&&n.type)===(r(n=t.data)&&r(n=n.attrs)&&n.type)}function Xt(e,t,n){var o,i,a={};for(o=t;o<=n;++o)i=e[o].key,r(i)&&(a[i]=o);return a}function en(e,t){(e.data.directives||t.data.directives)&&tn(e,t)}function tn(e,t){var n,r,o,i=e===Xo,a=t===Xo,s=nn(e.data.directives,e.context),u=nn(t.data.directives,t.context),c=[],l=[];for(n in u)r=s[n],o=u[n],r?(o.oldValue=r.value,on(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(on(o,"bind",t,e),o.def&&o.def.inserted&&c.push(o));if(c.length){var f=function(){for(var n=0;n<c.length;n++)on(c[n],"inserted",t,e)};i?re(t.data.hook||(t.data.hook={}),"insert",f):f()}if(l.length&&re(t.data.hook||(t.data.hook={}),"postpatch",function(){for(var n=0;n<l.length;n++)on(l[n],"componentUpdated",t,e)}),!i)for(n in s)u[n]||on(s[n],"unbind",e,e,a)}function nn(e,t){var n=Object.create(null);if(!e)return n;var r,o;for(r=0;r<e.length;r++)o=e[r],o.modifiers||(o.modifiers=ni),n[rn(o)]=o,o.def=z(t.$options,"directives",o.name,!0);return n}function rn(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function on(e,t,n,r,o){var i=e.def&&e.def[t];if(i)try{i(n.elm,e,n,r,o)}catch(r){S(r,n.context,"directive "+e.name+" "+t+" hook")}}function an(e,t){if(!n(e.data.attrs)||!n(t.data.attrs)){var o,i,a=t.elm,s=e.data.attrs||{},u=t.data.attrs||{};r(u.__ob__)&&(u=t.data.attrs=y({},u));for(o in u)i=u[o],s[o]!==i&&sn(a,o,i);Or&&u.value!==s.value&&sn(a,"value",u.value);for(o in s)n(u[o])&&(Go(o)?a.removeAttributeNS(Wo,Vo(o)):Uo(o)||a.removeAttribute(o))}}function sn(e,t,n){Fo(t)?zo(n)?e.removeAttribute(t):e.setAttribute(t,t):Uo(t)?e.setAttribute(t,zo(n)||"false"===n?"false":"true"):Go(t)?zo(n)?e.removeAttributeNS(Wo,Vo(t)):e.setAttributeNS(Wo,t,n):zo(n)?e.removeAttribute(t):e.setAttribute(t,n)}function un(e,t){var o=t.elm,i=t.data,a=e.data;if(!(n(i.staticClass)&&n(i.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=Et(t),u=o._transitionClasses;r(u)&&(s=Mt(s,Nt(u))),s!==o._prevClass&&(o.setAttribute("class",s),o._prevClass=s)}}function cn(e){var t;r(e[ai])&&(t=Ar?"change":"input",e[t]=[].concat(e[ai],e[t]||[]),delete e[ai]),r(e[si])&&(t=Er?"click":"change",e[t]=[].concat(e[si],e[t]||[]),delete e[si])}function ln(e,t,n,r,o){if(n){var i=t,a=Do;t=function(n){null!==(1===arguments.length?i(n):i.apply(null,arguments))&&fn(e,t,r,a)}}Do.addEventListener(e,t,Tr?{capture:r,passive:o}:r)}function fn(e,t,n,r){(r||Do).removeEventListener(e,t,n)}function pn(e,t){if(!n(e.data.on)||!n(t.data.on)){var r=t.data.on||{},o=e.data.on||{};Do=t.elm,cn(r),ne(r,o,ln,fn,t.context)}}function dn(e,t){if(!n(e.data.domProps)||!n(t.data.domProps)){var o,i,a=t.elm,s=e.data.domProps||{},u=t.data.domProps||{};r(u.__ob__)&&(u=t.data.domProps=y({},u));for(o in s)n(u[o])&&(a[o]="");for(o in u)if(i=u[o],"textContent"!==o&&"innerHTML"!==o||(t.children&&(t.children.length=0),i!==s[o]))if("value"===o){a._value=i;var c=n(i)?"":String(i);hn(a,t,c)&&(a.value=c)}else a[o]=i}}function hn(e,t,n){return!e.composing&&("option"===t.tag||vn(e,n)||mn(e,n))}function vn(e,t){return document.activeElement!==e&&e.value!==t}function mn(e,t){var n=e.value,o=e._vModifiers;return r(o)&&o.number||"number"===e.type?f(n)!==f(t):r(o)&&o.trim?n.trim()!==t.trim():n!==t}function gn(e){var t=yn(e.style);return e.staticStyle?y(e.staticStyle,t):t}function yn(e){return Array.isArray(e)?_(e):"string"==typeof e?li(e):e}function _n(e,t){var n,r={};if(t)for(var o=e;o.componentInstance;)o=o.componentInstance._vnode,o.data&&(n=gn(o.data))&&y(r,n);(n=gn(e.data))&&y(r,n);for(var i=e;i=i.parent;)i.data&&(n=gn(i.data))&&y(r,n);return r}function bn(e,t){var o=t.data,i=e.data;if(!(n(o.staticStyle)&&n(o.style)&&n(i.staticStyle)&&n(i.style))){var a,s,u=t.elm,c=i.staticStyle,l=i.normalizedStyle||i.style||{},f=c||l,p=yn(t.data.style)||{};t.data.normalizedStyle=r(p.__ob__)?y({},p):p;var d=_n(t,!0);for(s in f)n(d[s])&&di(u,s,"");for(s in d)(a=d[s])!==f[s]&&di(u,s,null==a?"":a)}}function wn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function kn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t);else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");e.setAttribute("class",n.trim())}}function xn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&y(t,gi(e.name||"v")),y(t,e),t}return"string"==typeof e?gi(e):void 0}}function Cn(e){Ai(function(){Ai(e)})}function An(e,t){(e._transitionClasses||(e._transitionClasses=[])).push(t),wn(e,t)}function On(e,t){e._transitionClasses&&d(e._transitionClasses,t),kn(e,t)}function Sn(e,t,n){var r=$n(e,t),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===_i?ki:Ci,u=0,c=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++u>=a&&c()};setTimeout(function(){u<a&&c()},i+1),e.addEventListener(s,l)}function $n(e,t){var n,r=window.getComputedStyle(e),o=r[wi+"Delay"].split(", "),i=r[wi+"Duration"].split(", "),a=jn(o,i),s=r[xi+"Delay"].split(", "),u=r[xi+"Duration"].split(", "),c=jn(s,u),l=0,f=0;return t===_i?a>0&&(n=_i,l=a,f=i.length):t===bi?c>0&&(n=bi,l=c,f=u.length):(l=Math.max(a,c),n=l>0?a>c?_i:bi:null,f=n?n===_i?i.length:u.length:0),{type:n,timeout:l,propCount:f,hasTransform:n===_i&&Oi.test(r[wi+"Property"])}}function jn(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(t,n){return En(t)+En(e[n])}))}function En(e){return 1e3*Number(e.slice(0,-1))}function Tn(e,t){var o=e.elm;r(o._leaveCb)&&(o._leaveCb.cancelled=!0,o._leaveCb());var i=xn(e.data.transition);if(!n(i)&&!r(o._enterCb)&&1===o.nodeType){for(var a=i.css,u=i.type,c=i.enterClass,l=i.enterToClass,p=i.enterActiveClass,d=i.appearClass,h=i.appearToClass,v=i.appearActiveClass,m=i.beforeEnter,g=i.enter,y=i.afterEnter,_=i.enterCancelled,b=i.beforeAppear,w=i.appear,k=i.afterAppear,C=i.appearCancelled,A=i.duration,O=fo,S=fo.$vnode;S&&S.parent;)S=S.parent,O=S.context;var $=!O._isMounted||!e.isRootInsert;if(!$||w||""===w){var j=$&&d?d:c,E=$&&v?v:p,T=$&&h?h:l,L=$?b||m:m,M=$&&"function"==typeof w?w:g,N=$?k||y:y,D=$?C||_:_,P=f(s(A)?A.enter:A);null!=P&&Mn(P,"enter",e);var I=!1!==a&&!Or,B=Dn(M),R=o._enterCb=x(function(){I&&(On(o,T),On(o,E)),R.cancelled?(I&&On(o,j),D&&D(o)):N&&N(o),o._enterCb=null});e.data.show||re(e.data.hook||(e.data.hook={}),"insert",function(){var t=o.parentNode,n=t&&t._pending&&t._pending[e.key];n&&n.tag===e.tag&&n.elm._leaveCb&&n.elm._leaveCb(),M&&M(o,R)}),L&&L(o),I&&(An(o,j),An(o,E),Cn(function(){An(o,T),On(o,j),R.cancelled||B||(Nn(P)?setTimeout(R,P):Sn(o,u,R))})),e.data.show&&(t&&t(),M&&M(o,R)),I||B||R()}}}function Ln(e,t){function o(){C.cancelled||(e.data.show||((i.parentNode._pending||(i.parentNode._pending={}))[e.key]=e),h&&h(i),b&&(An(i,l),An(i,d),Cn(function(){An(i,p),On(i,l),C.cancelled||w||(Nn(k)?setTimeout(C,k):Sn(i,c,C))})),v&&v(i,C),b||w||C())}var i=e.elm;r(i._enterCb)&&(i._enterCb.cancelled=!0,i._enterCb());var a=xn(e.data.transition);if(n(a))return t();if(!r(i._leaveCb)&&1===i.nodeType){var u=a.css,c=a.type,l=a.leaveClass,p=a.leaveToClass,d=a.leaveActiveClass,h=a.beforeLeave,v=a.leave,m=a.afterLeave,g=a.leaveCancelled,y=a.delayLeave,_=a.duration,b=!1!==u&&!Or,w=Dn(v),k=f(s(_)?_.leave:_);r(k)&&Mn(k,"leave",e);var C=i._leaveCb=x(function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[e.key]=null),b&&(On(i,p),On(i,d)),C.cancelled?(b&&On(i,l),g&&g(i)):(t(),m&&m(i)),i._leaveCb=null});y?y(o):o()}}function Mn(e,t,n){"number"!=typeof e?hr("<transition> explicit "+t+" duration is not a valid number - got "+JSON.stringify(e)+".",n.context):isNaN(e)&&hr("<transition> explicit "+t+" duration is NaN - the duration expression might be incorrect.",n.context)}function Nn(e){return"number"==typeof e&&!isNaN(e)}function Dn(e){if(n(e))return!1;var t=e.fns;return r(t)?Dn(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Pn(e,t){!0!==t.data.show&&Tn(t)}function In(e,t,n){var r=t.value,o=e.multiple;if(o&&!Array.isArray(r))return void hr('<select multiple v-model="'+t.expression+'"> expects an Array value for its binding, but got '+Object.prototype.toString.call(r).slice(8,-1),n);for(var i,a,s=0,u=e.options.length;s<u;s++)if(a=e.options[s],o)i=k(r,Rn(a))>-1,a.selected!==i&&(a.selected=i);else if(w(Rn(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}function Bn(e,t){for(var n=0,r=t.length;n<r;n++)if(w(Rn(t[n]),e))return!1;return!0}function Rn(e){return"_value"in e?e._value:e.value}function Un(e){e.target.composing=!0}function Fn(e){e.target.composing&&(e.target.composing=!1,Wn(e.target,"input"))}function Wn(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Gn(e){return!e.componentInstance||e.data&&e.data.transition?e:Gn(e.componentInstance._vnode)}function Vn(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Vn(pe(t.children)):e}function zn(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var o=n._parentListeners;for(var i in o)t[nr(i)]=o[i];return t}function qn(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Hn(e){for(;e=e.parent;)if(e.data.transition)return!0}function Jn(e,t){return t.key===e.key&&t.tag===e.tag}function Kn(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Qn(e){e.data.newPos=e.elm.getBoundingClientRect()}function Yn(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}var Zn=Object.prototype.toString,Xn=p("slot,component",!0),er=Object.prototype.hasOwnProperty,tr=/-(\w)/g,nr=v(function(e){return e.replace(tr,function(e,t){return t?t.toUpperCase():""})}),rr=v(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),or=/([^-])([A-Z])/g,ir=v(function(e){return e.replace(or,"$1-$2").replace(or,"$1-$2").toLowerCase()}),ar=function(){return!1},sr=function(e){return e},ur="data-server-rendered",cr=["component","directive","filter"],lr=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],fr={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!0,devtools:!0,performance:!1,errorHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:ar,isReservedAttr:ar,isUnknownElement:ar,getTagNamespace:b,parsePlatformTagName:sr,mustUseProp:ar,_lifecycleHooks:lr},pr=Object.freeze({}),dr=/[^\w.$]/,hr=b,vr=b,mr=null,gr="undefined"!=typeof console,yr=/(?:^|[-_])(\w)/g,_r=function(e){return e.replace(yr,function(e){return e.toUpperCase()}).replace(/[-_]/g,"")};hr=function(e,t){gr&&!fr.silent&&console.error("[Vue warn]: "+e+(t?wr(t):""))},vr=function(e,t){gr&&!fr.silent&&console.warn("[Vue tip]: "+e+(t?wr(t):""))},mr=function(e,t){if(e.$root===e)return"<Root>";var n="string"==typeof e?e:"function"==typeof e&&e.options?e.options.name:e._isVue?e.$options.name||e.$options._componentTag:e.name,r=e._isVue&&e.$options.__file;if(!n&&r){var o=r.match(/([^\/\\]+)\.vue$/);n=o&&o[1]}return(n?"<"+_r(n)+">":"<Anonymous>")+(r&&!1!==t?" at "+r:"")};var br=function(e,t){for(var n="";t;)t%2==1&&(n+=e),t>1&&(e+=e),t>>=1;return n},wr=function(e){if(e._isVue&&e.$parent){for(var t=[],n=0;e;){if(t.length>0){var r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map(function(e,t){return""+(0===t?"---\x3e ":br(" ",5+2*t))+(Array.isArray(e)?mr(e[0])+"... ("+e[1]+" recursive calls)":mr(e))}).join("\n")}return"\n\n(found in "+mr(e)+")"},kr="__proto__"in{},xr="undefined"!=typeof window,Cr=xr&&window.navigator.userAgent.toLowerCase(),Ar=Cr&&/msie|trident/.test(Cr),Or=Cr&&Cr.indexOf("msie 9.0")>0,Sr=Cr&&Cr.indexOf("edge/")>0,$r=Cr&&Cr.indexOf("android")>0,jr=Cr&&/iphone|ipad|ipod|ios/.test(Cr),Er=Cr&&/chrome\/\d+/.test(Cr)&&!Sr,Tr=!1;if(xr)try{var Lr={};Object.defineProperty(Lr,"passive",{get:function(){Tr=!0}}),window.addEventListener("test-passive",null,Lr)}catch(e){}var Mr,Nr,Dr=function(){return void 0===Mr&&(Mr=!xr&&void 0!==e&&"server"===e.process.env.VUE_ENV),Mr},Pr=xr&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ir="undefined"!=typeof Symbol&&$(Symbol)&&"undefined"!=typeof Reflect&&$(Reflect.ownKeys),Br=function(){function e(){r=!1;var e=n.slice(0);n.length=0;for(var t=0;t<e.length;t++)e[t]()}var t,n=[],r=!1;if("undefined"!=typeof Promise&&$(Promise)){var o=Promise.resolve(),i=function(e){console.error(e)};t=function(){o.then(e).catch(i),jr&&setTimeout(b)}}else if("undefined"==typeof MutationObserver||!$(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())t=function(){setTimeout(e,0)};else{var a=1,s=new MutationObserver(e),u=document.createTextNode(String(a));s.observe(u,{characterData:!0}),t=function(){a=(a+1)%2,u.data=String(a)}}return function(e,o){var i;if(n.push(function(){if(e)try{e.call(o)}catch(e){S(e,o,"nextTick")}else i&&i(o)}),r||(r=!0,t()),!e&&"undefined"!=typeof Promise)return new Promise(function(e,t){i=e})}}();Nr="undefined"!=typeof Set&&$(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Rr=0,Ur=function(){this.id=Rr++,this.subs=[]};Ur.prototype.addSub=function(e){this.subs.push(e)},Ur.prototype.removeSub=function(e){d(this.subs,e)},Ur.prototype.depend=function(){Ur.target&&Ur.target.addDep(this)},Ur.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},Ur.target=null;var Fr=[],Wr=Array.prototype,Gr=Object.create(Wr);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){var t=Wr[e];A(Gr,e,function(){for(var n=arguments,r=arguments.length,o=new Array(r);r--;)o[r]=n[r];var i,a=t.apply(this,o),s=this.__ob__;switch(e){case"push":case"unshift":i=o;break;case"splice":i=o.slice(2)}return i&&s.observeArray(i),s.dep.notify(),a})});var Vr=Object.getOwnPropertyNames(Gr),zr={shouldConvert:!0,isSettingProps:!1},qr=function(e){if(this.value=e,this.dep=new Ur,this.vmCount=0,A(e,"__ob__",this),Array.isArray(e)){(kr?T:L)(e,Gr,Vr),this.observeArray(e)}else this.walk(e)};qr.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)N(e,t[n],e[t[n]])},qr.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)M(e[t])};var Hr=fr.optionMergeStrategies;Hr.el=Hr.propsData=function(e,t,n,r){return n||hr('option "'+r+'" can only be used during instance creation with the `new` keyword.'),Kr(e,t)},Hr.data=function(e,t,n){return n?e||t?function(){var r="function"==typeof t?t.call(n):t,o="function"==typeof e?e.call(n):void 0;return r?B(r,o):o}:void 0:t?"function"!=typeof t?(hr('The "data" option should be a function that returns a per-instance value in component definitions.',n),e):e?function(){return B(t.call(this),e.call(this))}:t:e},lr.forEach(function(e){Hr[e]=R}),cr.forEach(function(e){Hr[e+"s"]=U}),Hr.watch=function(e,t){if(!t)return Object.create(e||null);if(!e)return t;var n={};y(n,e);for(var r in t){var o=n[r],i=t[r];o&&!Array.isArray(o)&&(o=[o]),n[r]=o?o.concat(i):[i]}return n},Hr.props=Hr.methods=Hr.computed=function(e,t){if(!t)return Object.create(e||null);if(!e)return t;var n=Object.create(null);return y(n,e),y(n,t),n};var Jr,Kr=function(e,t){return void 0===t?e:t},Qr=/^(String|Number|Boolean|Function|Symbol)$/,Yr=p("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require"),Zr=function(e,t){hr('Property or method "'+t+'" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.',e)},Xr="undefined"!=typeof Proxy&&Proxy.toString().match(/native code/);if(Xr){var eo=p("stop,prevent,self,ctrl,shift,alt,meta");fr.keyCodes=new Proxy(fr.keyCodes,{set:function(e,t,n){return eo(t)?(hr("Avoid overwriting built-in modifier in config.keyCodes: ."+t),!1):(e[t]=n,!0)}})}var to={has:function(e,t){var n=t in e,r=Yr(t)||"_"===t.charAt(0);return n||r||Zr(e,t),n||!r}},no={get:function(e,t){return"string"!=typeof t||t in e||Zr(e,t),e[t]}};Jr=function(e){if(Xr){var t=e.$options,n=t.render&&t.render._withStripped?no:to;e._renderProxy=new Proxy(e,n)}else e._renderProxy=e};var ro,oo,io=xr&&window.performance;io&&io.mark&&io.measure&&io.clearMarks&&io.clearMeasures&&(ro=function(e){return io.mark(e)},oo=function(e,t,n){io.measure(e,t,n),io.clearMarks(t),io.clearMarks(n),io.clearMeasures(e)});var ao=function(e,t,n,r,o,i,a){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.functionalContext=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1},so={child:{}};so.child.get=function(){return this.componentInstance},Object.defineProperties(ao.prototype,so);var uo,co=function(){var e=new ao;return e.text="",e.isComment=!0,e},lo=v(function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}),fo=null,po=100,ho=[],vo=[],mo={},go={},yo=!1,_o=!1,bo=0,wo=0,ko=function(e,t,n,r){this.vm=e,e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++wo,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Nr,this.newDepIds=new Nr,this.expression=t.toString(),"function"==typeof t?this.getter=t:(this.getter=O(t),this.getter||(this.getter=function(){},hr('Failed watching path: "'+t+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',e))),this.value=this.lazy?void 0:this.get()};ko.prototype.get=function(){j(this);var e,t=this.vm;if(this.user)try{e=this.getter.call(t,t)}catch(e){S(e,t,'getter for watcher "'+this.expression+'"')}else e=this.getter.call(t,t);return this.deep&&Me(e),E(),this.cleanupDeps(),e},ko.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},ko.prototype.cleanupDeps=function(){for(var e=this,t=this.deps.length;t--;){var n=e.deps[t];e.newDepIds.has(n.id)||n.removeSub(e)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},ko.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Le(this)},ko.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){S(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},ko.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ko.prototype.depend=function(){for(var e=this,t=this.deps.length;t--;)e.deps[t].depend()},ko.prototype.teardown=function(){var e=this;if(this.active){this.vm._isBeingDestroyed||d(this.vm._watchers,this);for(var t=this.deps.length;t--;)e.deps[t].removeSub(e);this.active=!1}};var xo=new Nr,Co={enumerable:!0,configurable:!0,get:b,set:b},Ao={key:1,ref:1,slot:1},Oo={lazy:!0},So={init:function(e,t,n,r){if(!e.componentInstance||e.componentInstance._isDestroyed){(e.componentInstance=Ze(e,fo,n,r)).$mount(t?e.elm:void 0,t)}else if(e.data.keepAlive){var o=e;So.prepatch(o,o)}},prepatch:function(e,t){var n=t.componentOptions;ke(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,Oe(n,"mounted")),e.data.keepAlive&&(t._isMounted?Ee(n):Ce(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Ae(t,!0):t.$destroy())}},$o=Object.keys(So),jo=1,Eo=2,To=0;!function(e){e.prototype._init=function(e){var t=this;t._uid=To++;var n,r;fr.performance&&ro&&(n="vue-perf-init:"+t._uid,r="vue-perf-end:"+t._uid,ro(n)),t._isVue=!0,e&&e._isComponent?vt(t,e):t.$options=V(mt(t.constructor),e||{},t),Jr(t),t._self=t,be(t),de(t),ht(t),Oe(t,"beforeCreate"),He(t),Pe(t),qe(t),Oe(t,"created"),fr.performance&&ro&&(t._name=mr(t,!1),ro(r),oo(t._name+" init",n,r)),t.$options.el&&t.$mount(t.$options.el)}}(_t),function(e){var t={};t.get=function(){return this._data};var n={};n.get=function(){return this._props},t.set=function(e){hr("Avoid replacing instance root $data. Use nested data properties instead.",this)},n.set=function(){hr("$props is readonly.",this)},Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=D,e.prototype.$delete=P,e.prototype.$watch=function(e,t,n){var r=this;n=n||{},n.user=!0;var o=new ko(r,e,t,n);return n.immediate&&t.call(r,o.value),function(){o.teardown()}}}(_t),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this,o=this;if(Array.isArray(e))for(var i=0,a=e.length;i<a;i++)r.$on(e[i],n);else(o._events[e]||(o._events[e]=[])).push(n),t.test(e)&&(o._hasHookEvent=!0);return o},e.prototype.$once=function(e,t){function n(){r.$off(e,n),t.apply(r,arguments)}var r=this;return n.fn=t,r.$on(e,n),r},e.prototype.$off=function(e,t){var n=this,r=this;if(!arguments.length)return r._events=Object.create(null),r;if(Array.isArray(e)){for(var o=0,i=e.length;o<i;o++)n.$off(e[o],t);return r}var a=r._events[e];if(!a)return r;if(1===arguments.length)return r._events[e]=null,r;for(var s,u=a.length;u--;)if((s=a[u])===t||s.fn===t){a.splice(u,1);break}return r},e.prototype.$emit=function(e){var t=this,n=e.toLowerCase();n!==e&&t._events[n]&&vr('Event "'+n+'" is emitted in component '+mr(t)+' but the handler is registered for "'+e+'". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "'+ir(e)+'" instead of "'+e+'".');var r=t._events[e];if(r){r=r.length>1?g(r):r;for(var o=g(arguments,1),i=0,a=r.length;i<a;i++)r[i].apply(t,o)}return t}}(_t),function(e){e.prototype._update=function(e,t){var n=this;n._isMounted&&Oe(n,"beforeUpdate");var r=n.$el,o=n._vnode,i=fo;fo=n,n._vnode=e,n.$el=o?n.__patch__(o,e):n.__patch__(n.$el,e,t,!1,n.$options._parentElm,n.$options._refElm),fo=i,r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Oe(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||d(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Oe(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$options._parentElm=e.$options._refElm=null}}}(_t),function(e){e.prototype.$nextTick=function(e){return Br(e,this)},e.prototype._render=function(){var e=this,t=e.$options,n=t.render,r=t.staticRenderFns,o=t._parentVnode;if(e._isMounted)for(var i in e.$slots)e.$slots[i]=ee(e.$slots[i]);e.$scopedSlots=o&&o.data.scopedSlots||pr,r&&!e._staticTrees&&(e._staticTrees=[]),e.$vnode=o;var a;try{a=n.call(e._renderProxy,e.$createElement)}catch(t){S(t,e,"render function"),a=e.$options.renderError?e.$options.renderError.call(e._renderProxy,e.$createElement,t):e._vnode}return a instanceof ao||(Array.isArray(a)&&hr("Multiple root nodes returned from render function. Render function should return a single root node.",e),a=co()),a.parent=o,a},e.prototype._o=ft,e.prototype._n=f,e.prototype._s=l,e.prototype._l=it,e.prototype._t=at,e.prototype._q=w,e.prototype._i=k,e.prototype._m=lt,e.prototype._f=st,e.prototype._k=ut,e.prototype._b=ct,e.prototype._v=Z,e.prototype._e=co,e.prototype._u=_e}(_t);var Lo=[String,RegExp],Mo={name:"keep-alive",abstract:!0,props:{include:Lo,exclude:Lo},created:function(){this.cache=Object.create(null)},destroyed:function(){var e=this;for(var t in e.cache)jt(e.cache[t])},watch:{include:function(e){$t(this.cache,this._vnode,function(t){return St(e,t)})},exclude:function(e){$t(this.cache,this._vnode,function(t){return!St(e,t)})}},render:function(){var e=pe(this.$slots.default),t=e&&e.componentOptions;if(t){var n=Ot(t);if(n&&(this.include&&!St(this.include,n)||this.exclude&&St(this.exclude,n)))return e;var r=null==e.key?t.Ctor.cid+(t.tag?"::"+t.tag:""):e.key;this.cache[r]?e.componentInstance=this.cache[r].componentInstance:this.cache[r]=e,e.data.keepAlive=!0}return e}},No={KeepAlive:Mo};!function(e){var t={};t.get=function(){return fr},t.set=function(){hr("Do not replace the Vue.config object, set individual fields instead.")},Object.defineProperty(e,"config",t),e.util={warn:hr,extend:y,mergeOptions:V,defineReactive:N},e.set=D,e.delete=P,e.nextTick=Br,e.options=Object.create(null),cr.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,y(e.options.components,No),bt(e),wt(e),kt(e),At(e)}(_t),Object.defineProperty(_t.prototype,"$isServer",{get:Dr}),Object.defineProperty(_t.prototype,"$ssrContext",{get:function(){return this.$vnode.ssrContext}}),_t.version="2.3.3";var Do,Po,Io=p("style,class"),Bo=p("input,textarea,option,select"),Ro=function(e,t,n){return"value"===n&&Bo(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Uo=p("contenteditable,draggable,spellcheck"),Fo=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Wo="http://www.w3.org/1999/xlink",Go=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Vo=function(e){return Go(e)?e.slice(6,e.length):""},zo=function(e){return null==e||!1===e},qo={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Ho=p("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template"),Jo=p("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Ko=function(e){return Ho(e)||Jo(e)},Qo=Object.create(null),Yo=Object.freeze({createElement:Bt,createElementNS:Rt,createTextNode:Ut,createComment:Ft,insertBefore:Wt,removeChild:Gt,appendChild:Vt,parentNode:zt,nextSibling:qt,tagName:Ht,setTextContent:Jt,setAttribute:Kt}),Zo={create:function(e,t){Qt(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Qt(e,!0),Qt(t))},destroy:function(e){Qt(e,!0)}},Xo=new ao("",{},[]),ei=["create","activate","update","remove","destroy"],ti={create:en,update:en,destroy:function(e){en(e,Xo)}},ni=Object.create(null),ri=[Zo,ti],oi={create:an,update:an},ii={create:un,update:un},ai="__r",si="__c",ui={create:pn,update:pn},ci={create:dn,update:dn},li=v(function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach(function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}),fi=/^--/,pi=/\s*!important$/,di=function(e,t,n){if(fi.test(t))e.style.setProperty(t,n);else if(pi.test(n))e.style.setProperty(t,n.replace(pi,""),"important");else{var r=vi(t);if(Array.isArray(n))for(var o=0,i=n.length;o<i;o++)e.style[r]=n[o];else e.style[r]=n}},hi=["Webkit","Moz","ms"],vi=v(function(e){if(Po=Po||document.createElement("div"),"filter"!==(e=nr(e))&&e in Po.style)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<hi.length;n++){var r=hi[n]+t;if(r in Po.style)return r}}),mi={create:bn,update:bn},gi=v(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),yi=xr&&!Or,_i="transition",bi="animation",wi="transition",ki="transitionend",xi="animation",Ci="animationend";yi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(wi="WebkitTransition",ki="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(xi="WebkitAnimation",Ci="webkitAnimationEnd"));var Ai=xr&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout,Oi=/\b(transform|all)(,|$)/,Si=xr?{create:Pn,activate:Pn,remove:function(e,t){!0!==e.data.show?Ln(e,t):t()}}:{},$i=[oi,ii,ui,ci,mi,Si],ji=$i.concat(ri),Ei=function(e){function t(e){return new ao(T.tagName(e).toLowerCase(),{},[],void 0,e)}function i(e,t){function n(){0==--n.listeners&&s(e)}return n.listeners=t,n}function s(e){var t=T.parentNode(e);r(t)&&T.removeChild(t,e)}function u(e,t,n,i,a){if(e.isRootInsert=!a,!c(e,t,n,i)){var s=e.data,u=e.children,l=e.tag;r(l)?(s&&s.pre&&L++,L||e.ns||fr.ignoredElements.length&&fr.ignoredElements.indexOf(l)>-1||!fr.isUnknownElement(l)||hr("Unknown custom element: <"+l+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',e.context),e.elm=e.ns?T.createElementNS(e.ns,l):T.createElement(l,e),g(e),h(e,u,t),r(s)&&m(e,t),d(n,e.elm,i),s&&s.pre&&L--):o(e.isComment)?(e.elm=T.createComment(e.text),d(n,e.elm,i)):(e.elm=T.createTextNode(e.text),d(n,e.elm,i))}}function c(e,t,n,i){var a=e.data;if(r(a)){var s=r(e.componentInstance)&&a.keepAlive;if(r(a=a.hook)&&r(a=a.init)&&a(e,!1,n,i),r(e.componentInstance))return l(e,t),o(s)&&f(e,t,n,i),!0}}function l(e,t){r(e.data.pendingInsert)&&t.push.apply(t,e.data.pendingInsert),e.elm=e.componentInstance.$el,v(e)?(m(e,t),g(e)):(Qt(e),t.push(e))}function f(e,t,n,o){for(var i,a=e;a.componentInstance;)if(a=a.componentInstance._vnode,r(i=a.data)&&r(i=i.transition)){for(i=0;i<j.activate.length;++i)j.activate[i](Xo,a);t.push(a);break}d(n,e.elm,o)}function d(e,t,n){r(e)&&(r(n)?n.parentNode===e&&T.insertBefore(e,t,n):T.appendChild(e,t))}function h(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)u(t[r],n,e.elm,null,!0);else a(e.text)&&T.appendChild(e.elm,T.createTextNode(e.text))}function v(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return r(e.tag)}function m(e,t){for(var n=0;n<j.create.length;++n)j.create[n](Xo,e);S=e.data.hook,r(S)&&(r(S.create)&&S.create(Xo,e),r(S.insert)&&t.push(e))}function g(e){for(var t,n=e;n;)r(t=n.context)&&r(t=t.$options._scopeId)&&T.setAttribute(e.elm,t,""),n=n.parent;r(t=fo)&&t!==e.context&&r(t=t.$options._scopeId)&&T.setAttribute(e.elm,t,"")}function y(e,t,n,r,o,i){for(;r<=o;++r)u(n[r],i,e,t)}function _(e){var t,n,o=e.data;if(r(o))for(r(t=o.hook)&&r(t=t.destroy)&&t(e),t=0;t<j.destroy.length;++t)j.destroy[t](e);if(r(t=e.children))for(n=0;n<e.children.length;++n)_(e.children[n])}function b(e,t,n,o){for(;n<=o;++n){var i=t[n];r(i)&&(r(i.tag)?(w(i),_(i)):s(i.elm))}}function w(e,t){if(r(t)||r(e.data)){var n,o=j.remove.length+1;for(r(t)?t.listeners+=o:t=i(e.elm,o),r(n=e.componentInstance)&&r(n=n._vnode)&&r(n.data)&&w(n,t),n=0;n<j.remove.length;++n)j.remove[n](e,t);r(n=e.data.hook)&&r(n=n.remove)?n(e,t):t()}else s(e.elm)}function k(e,t,o,i,a){for(var s,c,l,f,p=0,d=0,h=t.length-1,v=t[0],m=t[h],g=o.length-1,_=o[0],w=o[g],k=!a;p<=h&&d<=g;)n(v)?v=t[++p]:n(m)?m=t[--h]:Yt(v,_)?(x(v,_,i),v=t[++p],_=o[++d]):Yt(m,w)?(x(m,w,i),m=t[--h],w=o[--g]):Yt(v,w)?(x(v,w,i),k&&T.insertBefore(e,v.elm,T.nextSibling(m.elm)),v=t[++p],w=o[--g]):Yt(m,_)?(x(m,_,i),k&&T.insertBefore(e,m.elm,v.elm),m=t[--h],_=o[++d]):(n(s)&&(s=Xt(t,p,h)),c=r(_.key)?s[_.key]:null,n(c)?(u(_,i,e,v.elm),_=o[++d]):(l=t[c],l||hr("It seems there are duplicate keys that is causing an update error. Make sure each v-for item has a unique key."),Yt(l,_)?(x(l,_,i),t[c]=void 0,k&&T.insertBefore(e,_.elm,v.elm),_=o[++d]):(u(_,i,e,v.elm),_=o[++d])));p>h?(f=n(o[g+1])?null:o[g+1].elm,y(e,f,o,d,g,i)):d>g&&b(e,t,p,h)}function x(e,t,i,a){if(e!==t){if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))return t.elm=e.elm,void(t.componentInstance=e.componentInstance);var s,u=t.data;r(u)&&r(s=u.hook)&&r(s=s.prepatch)&&s(e,t);var c=t.elm=e.elm,l=e.children,f=t.children;if(r(u)&&v(t)){for(s=0;s<j.update.length;++s)j.update[s](e,t);r(s=u.hook)&&r(s=s.update)&&s(e,t)}n(t.text)?r(l)&&r(f)?l!==f&&k(c,l,f,i,a):r(f)?(r(e.text)&&T.setTextContent(c,""),y(c,null,f,0,f.length-1,i)):r(l)?b(c,l,0,l.length-1):r(e.text)&&T.setTextContent(c,""):e.text!==t.text&&T.setTextContent(c,t.text),r(u)&&r(s=u.hook)&&r(s=s.postpatch)&&s(e,t)}}function C(e,t,n){if(o(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}function A(e,t,n){if(!O(e,t))return!1;t.elm=e;var o=t.tag,i=t.data,a=t.children;if(r(i)&&(r(S=i.hook)&&r(S=S.init)&&S(t,!0),r(S=t.componentInstance)))return l(t,n),!0;if(r(o)){if(r(a))if(e.hasChildNodes()){for(var s=!0,u=e.firstChild,c=0;c<a.length;c++){if(!u||!A(u,a[c],n)){s=!1;break}u=u.nextSibling}if(!s||u)return"undefined"==typeof console||M||(M=!0,console.warn("Parent: ",e),console.warn("Mismatching childNodes vs. VNodes: ",e.childNodes,a)),!1}else h(t,a,n);if(r(i))for(var f in i)if(!N(f)){m(t,n);break}}else e.data!==t.text&&(e.data=t.text);return!0}function O(e,t){return r(t.tag)?0===t.tag.indexOf("vue-component")||t.tag.toLowerCase()===(e.tagName&&e.tagName.toLowerCase()):e.nodeType===(t.isComment?8:3)}var S,$,j={},E=e.modules,T=e.nodeOps;for(S=0;S<ei.length;++S)for(j[ei[S]]=[],$=0;$<E.length;++$)r(E[$][ei[S]])&&j[ei[S]].push(E[$][ei[S]]);var L=0,M=!1,N=p("attrs,style,class,staticClass,staticStyle,key");return function(e,i,a,s,c,l){if(n(i))return void(r(e)&&_(e));var f=!1,p=[];if(n(e))f=!0,u(i,p,c,l);else{var d=r(e.nodeType);if(!d&&Yt(e,i))x(e,i,p,s);else{if(d){if(1===e.nodeType&&e.hasAttribute(ur)&&(e.removeAttribute(ur),a=!0),o(a)){if(A(e,i,p))return C(i,p,!0),e;hr("The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.")}e=t(e)}var h=e.elm,m=T.parentNode(h);if(u(i,p,h._leaveCb?null:m,T.nextSibling(h)),r(i.parent)){for(var g=i.parent;g;)g.elm=i.elm,g=g.parent;if(v(i))for(var y=0;y<j.create.length;++y)j.create[y](Xo,i.parent)}r(m)?b(m,[e],0,0):r(e.tag)&&_(e)}}return C(i,p,f),i.elm}}({nodeOps:Yo,modules:ji});Or&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Wn(e,"input")});var Ti={inserted:function(e,t,n){if("select"===n.tag){var r=function(){In(e,t,n.context)};r(),(Ar||Sr)&&setTimeout(r,0)}else"textarea"!==n.tag&&"text"!==e.type&&"password"!==e.type||(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("change",Fn),$r||(e.addEventListener("compositionstart",Un),e.addEventListener("compositionend",Fn)),Or&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){In(e,t,n.context);(e.multiple?t.value.some(function(t){return Bn(t,e.options)}):t.value!==t.oldValue&&Bn(t.value,e.options))&&Wn(e,"change")}}},Li={bind:function(e,t,n){var r=t.value;n=Gn(n);var o=n.data&&n.data.transition,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&o&&!Or?(n.data.show=!0,Tn(n,function(){e.style.display=i})):e.style.display=r?i:"none"},update:function(e,t,n){var r=t.value;r!==t.oldValue&&(n=Gn(n),n.data&&n.data.transition&&!Or?(n.data.show=!0,r?Tn(n,function(){e.style.display=e.__vOriginalDisplay}):Ln(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},Mi={model:Ti,show:Li},Ni={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]},Di={name:"transition",props:Ni,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(function(e){return e.tag}),n.length)){n.length>1&&hr("<transition> can only be used on a single element. Use <transition-group> for lists.",this.$parent);var r=this.mode;r&&"in-out"!==r&&"out-in"!==r&&hr("invalid <transition> mode: "+r,this.$parent);var o=n[0];if(Hn(this.$vnode))return o;var i=Vn(o);if(!i)return o;if(this._leaving)return qn(e,o);var s="__transition-"+this._uid+"-";i.key=null==i.key?s+i.tag:a(i.key)?0===String(i.key).indexOf(s)?i.key:s+i.key:i.key;var u=(i.data||(i.data={})).transition=zn(this),c=this._vnode,l=Vn(c);if(i.data.directives&&i.data.directives.some(function(e){return"show"===e.name})&&(i.data.show=!0),l&&l.data&&!Jn(i,l)){var f=l&&(l.data.transition=y({},u));if("out-in"===r)return this._leaving=!0,re(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),qn(e,o);if("in-out"===r){var p,d=function(){p()};re(u,"afterEnter",d),re(u,"enterCancelled",d),re(f,"delayLeave",function(e){p=e})}}return o}}},Pi=y({tag:String,moveClass:String},Ni);delete Pi.mode;var Ii={props:Pi,render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=zn(this),s=0;s<o.length;s++){var u=o[s];if(u.tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))i.push(u),n[u.key]=u,(u.data||(u.data={})).transition=a;else{var c=u.componentOptions,l=c?c.Ctor.options.name||c.tag||"":u.tag;hr("<transition-group> children must be keyed: <"+l+">")}}if(r){for(var f=[],p=[],d=0;d<r.length;d++){var h=r[d];h.data.transition=a,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?f.push(h):p.push(h)}this.kept=e(t,null,f),this.removed=p}return e(t,null,i)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";if(e.length&&this.hasMove(e[0].elm,t)){e.forEach(Kn),e.forEach(Qn),e.forEach(Yn);var n=document.body;n.offsetHeight;e.forEach(function(e){if(e.data.moved){var n=e.elm,r=n.style;An(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(ki,n._moveCb=function e(r){r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(ki,e),n._moveCb=null,On(n,t))})}})}},methods:{hasMove:function(e,t){if(!yi)return!1;if(null!=this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){kn(n,e)}),wn(n,t),n.style.display="none",this.$el.appendChild(n);var r=$n(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}},Bi={Transition:Di,TransitionGroup:Ii};_t.config.mustUseProp=Ro,_t.config.isReservedTag=Ko,_t.config.isReservedAttr=Io,_t.config.getTagNamespace=Dt,_t.config.isUnknownElement=Pt,y(_t.options.directives,Mi),y(_t.options.components,Bi),_t.prototype.__patch__=xr?Ei:b,_t.prototype.$mount=function(e,t){return e=e&&xr?It(e):void 0,we(this,e,t)},setTimeout(function(){fr.devtools&&(Pr?Pr.emit("init",_t):Er&&console[console.info?"info":"log"]("Download the Vue Devtools extension for a better development experience:\nhttps://github.com/vuejs/vue-devtools")),!1!==fr.productionTip&&xr&&"undefined"!=typeof console&&console[console.info?"info":"log"]("You are running Vue in development mode.\nMake sure to turn on production mode when deploying for production.\nSee more tips at https://vuejs.org/guide/deployment.html")},0),t.default=_t}.call(t,n("DuR2"))},"/Ur6":function(e,t){},0:function(e,t,n){n("/5sW"),n("l/08"),e.exports=n("cmFa")},"1kS7":function(e,t){t.f=Object.getOwnPropertySymbols},"3Eo+":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"52gC":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"77Pl":function(e,t,n){var r=n("EqjI");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"7KvD":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)},Cdx3:function(e,t,n){var r=n("sB3e"),o=n("lktj");n("uqUo")("keys",function(){return function(e){return o(r(e))}})},D2L2:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},DuR2: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},EqjI:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"FZ+f":function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},FeBl:function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},Ibhu:function(e,t,n){var r=n("D2L2"),o=n("TcQ7"),i=n("vFc/")(!1),a=n("ax3d")("IE_PROTO");e.exports=function(e,t){var n,s=o(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~i(c,n)||c.push(n));return c}},MU5D:function(e,t,n){var r=n("R9M2");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},MmMw:function(e,t,n){var r=n("EqjI");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},NpIQ:function(e,t){t.f={}.propertyIsEnumerable},ON07:function(e,t,n){var r=n("EqjI"),o=n("7KvD").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},QRG4:function(e,t,n){var r=n("UuGF"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},QyNh:function(e,t,n){var r=n("UuGF"),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},R4wc:function(e,t,n){var r=n("kM2E");r(r.S+r.F,"Object",{assign:n("To3L")})},R9M2:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},S82l:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},SfB7:function(e,t,n){e.exports=!n("+E39")&&!n("S82l")(function(){return 7!=Object.defineProperty(n("ON07")("div"),"a",{get:function(){return 7}}).a})},TcQ7:function(e,t,n){var r=n("MU5D"),o=n("52gC");e.exports=function(e){return r(o(e))}},To3L:function(e,t,n){"use strict";var r=n("lktj"),o=n("1kS7"),i=n("NpIQ"),a=n("sB3e"),s=n("MU5D"),u=Object.assign;e.exports=!u||n("S82l")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=a(e),u=arguments.length,c=1,l=o.f,f=i.f;u>c;)for(var p,d=s(arguments[c++]),h=l?r(d).concat(l(d)):r(d),v=h.length,m=0;v>m;)f.call(d,p=h[m++])&&(n[p]=d[p]);return n}:u},UuGF:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},V3tA:function(e,t,n){n("R4wc"),e.exports=n("FeBl").Object.assign},"WEk/":function(e,t){},X8DO:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},ax3d:function(e,t,n){var r=n("e8AB")("keys"),o=n("3Eo+");e.exports=function(e){return r[e]||(r[e]=o(e))}},cmFa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("/Ur6");var r=n("jzoA"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=o.default},e8AB:function(e,t,n){var r=n("7KvD"),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},evD5:function(e,t,n){var r=n("77Pl"),o=n("SfB7"),i=n("MmMw"),a=Object.defineProperty;t.f=n("+E39")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(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}},fZjL:function(e,t,n){e.exports={default:n("jFbC"),__esModule:!0}},fjbf:function(e,t){function n(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=p[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(u(r.parts[i],t))}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(u(r.parts[i],t));p[r.id]={id:r.id,refs:1,parts:a}}}}function r(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],a=o[1],s=o[2],u=o[3],c={css:a,media:s,sourceMap:u};n[i]?n[i].parts.push(c):t.push(n[i]={id:i,parts:[c]})}return t}function o(e,t){var n=v(),r=y[y.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}function u(e,t){var n,r,o;if(t.singleton){var u=g++;n=m||(m=a(t)),r=c.bind(null,n,u,!1),o=c.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),r=f.bind(null,n),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),r=l.bind(null,n),o=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function c(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function l(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var p={},d=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},h=d(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),v=d(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,g=0,y=[];e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},void 0===t.singleton&&(t.singleton=h()),void 0===t.insertAt&&(t.insertAt="bottom");var o=r(e);return n(o,t),function(e){for(var i=[],a=0;a<o.length;a++){var s=o[a],u=p[s.id];u.refs--,i.push(u)}if(e){n(r(e),t)}for(var a=0;a<i.length;a++){var u=i[a];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete p[u.id]}}}};var _=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},hJx8:function(e,t,n){var r=n("evD5"),o=n("X8DO");e.exports=n("+E39")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},jFbC:function(e,t,n){n("Cdx3"),e.exports=n("FeBl").Object.keys},jzoA:function(e,t,n){"use strict";(function(t){function r(e){return e&&e.__esModule?e:{default:e}}var o=n("woOf"),i=r(o),a=n("fZjL"),s=r(a),u=n("mvHQ"),c=r(u),l="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},f=function(){var e=/\blang(?:uage)?-(\w+)\b/i,t=0,n=l.Prism={util:{encode:function(e){return e instanceof r?new r(e.type,n.util.encode(e.content),e.alias):"Array"===n.util.type(e)?e.map(n.util.encode):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function(e){switch(n.util.type(e)){case"Object":var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=n.util.clone(e[r]));return t;case"Array":return e.map&&e.map(function(e){return n.util.clone(e)})}return e}},languages:{extend:function(e,t){var r=n.util.clone(n.languages[e]);for(var o in t)r[o]=t[o];return r},insertBefore:function(e,t,r,o){o=o||n.languages;var i=o[e];if(2==arguments.length){r=arguments[1];for(var a in r)r.hasOwnProperty(a)&&(i[a]=r[a]);return i}var s={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var a in r)r.hasOwnProperty(a)&&(s[a]=r[a]);s[u]=i[u]}return n.languages.DFS(n.languages,function(t,n){n===o[e]&&t!=e&&(this[t]=s)}),o[e]=s},DFS:function(e,t,r,o){o=o||{};for(var i in e)e.hasOwnProperty(i)&&(t.call(e,i,e[i],r||i),"Object"!==n.util.type(e[i])||o[n.util.objId(e[i])]?"Array"!==n.util.type(e[i])||o[n.util.objId(e[i])]||(o[n.util.objId(e[i])]=!0,n.languages.DFS(e[i],t,i,o)):(o[n.util.objId(e[i])]=!0,n.languages.DFS(e[i],t,null,o)))}},plugins:{},highlightAll:function(e,t){var r={callback:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",r);for(var o,i=r.elements||document.querySelectorAll(r.selector),a=0;o=i[a++];)n.highlightElement(o,!0===e,r.callback)},highlightElement:function(t,r,o){for(var i,a,s=t;s&&!e.test(s.className);)s=s.parentNode;s&&(i=(s.className.match(e)||[,""])[1].toLowerCase(),a=n.languages[i]),t.className=t.className.replace(e,"").replace(/\s+/g," ")+" language-"+i,s=t.parentNode,/pre/i.test(s.nodeName)&&(s.className=s.className.replace(e,"").replace(/\s+/g," ")+" language-"+i);var u=t.textContent,f={element:t,language:i,grammar:a,code:u};if(n.hooks.run("before-sanity-check",f),!f.code||!f.grammar)return f.code&&(f.element.textContent=f.code),void n.hooks.run("complete",f);if(n.hooks.run("before-highlight",f),r&&l.Worker){var p=new Worker(n.filename);p.onmessage=function(e){f.highlightedCode=e.data,n.hooks.run("before-insert",f),f.element.innerHTML=f.highlightedCode,o&&o.call(f.element),n.hooks.run("after-highlight",f),n.hooks.run("complete",f)},p.postMessage((0,c.default)({language:f.language,code:f.code,immediateClose:!0}))}else f.highlightedCode=n.highlight(f.code,f.grammar,f.language),n.hooks.run("before-insert",f),f.element.innerHTML=f.highlightedCode,o&&o.call(t),n.hooks.run("after-highlight",f),n.hooks.run("complete",f)},highlight:function(e,t,o){var i=n.tokenize(e,t);return r.stringify(n.util.encode(i),o)},tokenize:function(e,t){var r=n.Token,o=[e],i=t.rest;if(i){for(var a in i)t[a]=i[a];delete t.rest}e:for(var a in t)if(t.hasOwnProperty(a)&&t[a]){var s=t[a];s="Array"===n.util.type(s)?s:[s];for(var u=0;u<s.length;++u){var c=s[u],l=c.inside,f=!!c.lookbehind,p=!!c.greedy,d=0,h=c.alias;if(p&&!c.pattern.global){var v=c.pattern.toString().match(/[imuy]*$/)[0];c.pattern=RegExp(c.pattern.source,v+"g")}c=c.pattern||c;for(var m=0,g=0;m<o.length;g+=o[m].length,++m){var y=o[m];if(o.length>e.length)break e;if(!(y instanceof r)){c.lastIndex=0;var _=c.exec(y),b=1;if(!_&&p&&m!=o.length-1){if(c.lastIndex=g,!(_=c.exec(e)))break;for(var w=_.index+(f?_[1].length:0),k=_.index+_[0].length,x=m,C=g,A=o.length;A>x&&k>C;++x)C+=o[x].length,w>=C&&(++m,g=C);if(o[m]instanceof r||o[x-1].greedy)continue;b=x-m,y=e.slice(g,C),_.index-=g}if(_){f&&(d=_[1].length);var w=_.index+d,_=_[0].slice(d),k=w+_.length,O=y.slice(0,w),S=y.slice(k),$=[m,b];O&&$.push(O);var j=new r(a,l?n.tokenize(_,l):_,h,_,p);$.push(j),S&&$.push(S),Array.prototype.splice.apply(o,$)}}}}}return o},hooks:{all:{},add:function(e,t){var r=n.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=n.hooks.all[e];if(r&&r.length)for(var o,i=0;o=r[i++];)o(t)}}},r=n.Token=function(e,t,n,r,o){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!o};if(r.stringify=function(e,t,o){if("string"==typeof e)return e;if("Array"===n.util.type(e))return e.map(function(n){return r.stringify(n,t,e)}).join("");var i={type:e.type,content:r.stringify(e.content,t,o),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:o};if("comment"==i.type&&(i.attributes.spellcheck="true"),e.alias){var a="Array"===n.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(i.classes,a)}n.hooks.run("wrap",i);var u=(0,s.default)(i.attributes).map(function(e){return e+'="'+(i.attributes[e]||"").replace(/"/g,"&quot;")+'"'}).join(" ");return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+(u?" "+u:"")+">"+i.content+"</"+i.tag+">"},!l.document)return l.addEventListener?(l.addEventListener("message",function(e){var t=JSON.parse(e.data),r=t.language,o=t.code,i=t.immediateClose;l.postMessage(n.highlight(o,n.languages[r],r)),i&&l.close()},!1),l.Prism):l.Prism;var o=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return o&&(n.filename=o.src,document.addEventListener&&!o.hasAttribute("data-manual")&&("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(n.highlightAll):window.setTimeout(n.highlightAll,16):document.addEventListener("DOMContentLoaded",n.highlightAll))),l.Prism}();void 0!==e&&e.exports&&(e.exports=f),void 0!==t&&(t.Prism=f),f.languages.markup={comment:/<!--[\w\W]*?-->/,prolog:/<\?[\w\W]+?\?>/,doctype:/<!DOCTYPE[\w\W]+?>/i,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},f.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),f.languages.xml=f.languages.markup,f.languages.html=f.languages.markup,f.languages.mathml=f.languages.markup,f.languages.svg=f.languages.markup,f.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:{pattern:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},f.languages.css.atrule.inside.rest=f.util.clone(f.languages.css),f.languages.markup&&(f.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\w\W]*?>)[\w\W]*?(?=<\/style>)/i,lookbehind:!0,inside:f.languages.css,alias:"language-css"}}),f.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|').*?\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:f.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:f.languages.css}},alias:"language-css"}},f.languages.markup.tag)),function(){if("undefined"!=typeof self&&self.Prism&&self.document&&Function.prototype.bind){var e=function(e){var t=0,n=0,r=e;if(r.parentNode){do{t+=r.offsetLeft,n+=r.offsetTop}while((r=r.offsetParent)&&r.nodeType<9);r=e;do{t-=r.scrollLeft,n-=r.scrollTop}while((r=r.parentNode)&&!/body/i.test(r.nodeName))}return{top:n,right:innerWidth-t-e.offsetWidth,bottom:innerHeight-n-e.offsetHeight,left:t}},t=/(?:^|\s)token(?=$|\s)/,n=/(?:^|\s)active(?=$|\s)/g,r=/(?:^|\s)flipped(?=$|\s)/g,o=function e(t,n,r,o){this._elt=null,this._type=t,this._clsRegexp=RegExp("(?:^|\\s)"+t+"(?=$|\\s)"),this._token=null,this.updater=n,this._mouseout=this.mouseout.bind(this),this.initializer=o;var i=this;r||(r=["*"]),"Array"!==f.util.type(r)&&(r=[r]),r.forEach(function(t){"string"!=typeof t&&(t=t.lang),e.byLanguages[t]||(e.byLanguages[t]=[]),e.byLanguages[t].indexOf(i)<0&&e.byLanguages[t].push(i)}),e.byType[t]=this};o.prototype.init=function(){this._elt||(this._elt=document.createElement("div"),this._elt.className="prism-previewer prism-previewer-"+this._type,document.body.appendChild(this._elt),this.initializer&&this.initializer())},o.prototype.check=function(e){do{if(t.test(e.className)&&this._clsRegexp.test(e.className))break}while(e=e.parentNode);e&&e!==this._token&&(this._token=e,this.show())},o.prototype.mouseout=function(){this._token.removeEventListener("mouseout",this._mouseout,!1),this._token=null,this.hide()},o.prototype.show=function(){if(this._elt||this.init(),this._token)if(this.updater.call(this._elt,this._token.textContent)){this._token.addEventListener("mouseout",this._mouseout,!1);var t=e(this._token);this._elt.className+=" active",t.top-this._elt.offsetHeight>0?(this._elt.className=this._elt.className.replace(r,""),this._elt.style.top=t.top+"px",this._elt.style.bottom=""):(this._elt.className+=" flipped",this._elt.style.bottom=t.bottom+"px",this._elt.style.top=""),this._elt.style.left=t.left+Math.min(200,this._token.offsetWidth/2)+"px"}else this.hide()},o.prototype.hide=function(){this._elt.className=this._elt.className.replace(n,"")},o.byLanguages={},o.byType={},o.initEvents=function(e,t){var n=[];o.byLanguages[t]&&(n=n.concat(o.byLanguages[t])),o.byLanguages["*"]&&(n=n.concat(o.byLanguages["*"])),e.addEventListener("mouseover",function(e){var t=e.target;n.forEach(function(e){e.check(t)})},!1)},f.plugins.Previewer=o,f.hooks.add("after-highlight",function(e){(o.byLanguages["*"]||o.byLanguages[e.language])&&o.initEvents(e.element,e.language)})}}(),function(){if(("undefined"==typeof self||self.Prism)&&(void 0===t||t.Prism)){var e={css:!0,less:!0,markup:{lang:"markup",before:"punctuation",inside:"inside",root:f.languages.markup&&f.languages.markup.tag.inside["attr-value"]},sass:[{lang:"sass",before:"punctuation",inside:"inside",root:f.languages.sass&&f.languages.sass["variable-line"]},{lang:"sass",inside:"inside",root:f.languages.sass&&f.languages.sass["property-line"]}],scss:!0,stylus:[{lang:"stylus",before:"hexcode",inside:"rest",root:f.languages.stylus&&f.languages.stylus["property-declaration"].inside},{lang:"stylus",before:"hexcode",inside:"rest",root:f.languages.stylus&&f.languages.stylus["variable-declaration"].inside}]};f.hooks.add("before-highlight",function(t){if(t.language&&e[t.language]&&!e[t.language].initialized){var n=e[t.language];"Array"!==f.util.type(n)&&(n=[n]),n.forEach(function(n){var r,o,i,a;!0===n?(r="important",o=t.language,n=t.language):(r=n.before||"important",o=n.inside||n.lang,i=n.root||f.languages,a=n.skip,n=t.language),!a&&f.languages[n]&&(f.languages.insertBefore(o,r,{color:/\B#(?:[0-9a-f]{3}){1,2}\b|\b(?:rgb|hsl)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:rgb|hsl)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B|\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGray|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGray|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGray|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gray|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGray|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGray|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGray|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i},i),t.grammar=f.languages[n],e[t.language]={initialized:!0})})}}),f.plugins.Previewer&&new f.plugins.Previewer("color",function(e){return this.style.backgroundColor="",this.style.backgroundColor=e,!!this.style.backgroundColor})}}(),function(){function e(e){this.defaults=r({},e)}function t(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function n(e){for(var t=0,n=0;n<e.length;++n)e.charCodeAt(n)=="\t".charCodeAt(0)&&(t+=3);return e.length+t}if("undefined"!=typeof self&&self.Prism&&self.document){var r=i.default||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e};e.prototype={setDefaults:function(e){this.defaults=r(this.defaults,e)},normalize:function(e,n){n=r(this.defaults,n);for(var o in n){var i=t(o);"normalize"!==o&&"setDefaults"!==i&&n[o]&&this[i]&&(e=this[i].call(this,e,n[o]))}return e},leftTrim:function(e){return e.replace(/^\s+/,"")},rightTrim:function(e){return e.replace(/\s+$/,"")},tabsToSpaces:function(e,t){return t=0|t||4,e.replace(/\t/g,new Array(++t).join(" "))},spacesToTabs:function(e,t){return t=0|t||4,e.replace(new RegExp(" {"+t+"}","g"),"\t")},removeTrailing:function(e){return e.replace(/\s*?$/gm,"")},removeInitialLineFeed:function(e){return e.replace(/^(?:\r?\n|\r)/,"")},removeIndent:function(e){var t=e.match(/^[^\S\n\r]*(?=\S)/gm);return t&&t[0].length?(t.sort(function(e,t){return e.length-t.length}),t[0].length?e.replace(new RegExp("^"+t[0],"gm"),""):e):e},indent:function(e,t){return e.replace(/^[^\S\n\r]*(?=\S)/gm,new Array(++t).join("\t")+"$&")},breakLines:function(e,t){t=!0===t?80:0|t||80;for(var r=e.split("\n"),o=0;o<r.length;++o)if(!(n(r[o])<=t)){for(var i=r[o].split(/(\s+)/g),a=0,s=0;s<i.length;++s){var u=n(i[s]);(a+=u)>t&&(i[s]="\n"+i[s],a=u)}r[o]=i.join("")}return r.join("\n")}},f.plugins.NormalizeWhitespace=new e({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),f.hooks.add("before-sanity-check",function(e){var t=e.element.parentNode,n=/\bno-whitespace-normalization\b/;if(!(!e.code||!t||"pre"!==t.nodeName.toLowerCase()||e.settings&&!1===e.settings["whitespace-normalization"]||n.test(t.className)||n.test(e.element.className))){for(var r=t.childNodes,o="",i="",a=!1,s=f.plugins.NormalizeWhitespace,u=0;u<r.length;++u){var c=r[u];c==e.element?a=!0:"#text"===c.nodeName&&(a?i+=c.nodeValue:o+=c.nodeValue,t.removeChild(c),--u)}if(e.element.children.length&&f.plugins.KeepMarkup){var l=o+e.element.innerHTML+i;e.element.innerHTML=s.normalize(l,e.settings),e.code=e.element.textContent}else e.code=o+e.code+i,e.code=s.normalize(e.code,e.settings)}})}}()}).call(t,n("DuR2"))},kM2E:function(e,t,n){var r=n("7KvD"),o=n("FeBl"),i=n("+ZMJ"),a=n("hJx8"),s=function(e,t,n){var u,c,l,f=e&s.F,p=e&s.G,d=e&s.S,h=e&s.P,v=e&s.B,m=e&s.W,g=p?o:o[t]||(o[t]={}),y=g.prototype,_=p?r:d?r[t]:(r[t]||{}).prototype;p&&(n=t);for(u in n)(c=!f&&_&&void 0!==_[u])&&u in g||(l=c?_[u]:n[u],g[u]=p&&"function"!=typeof _[u]?n[u]:v&&c?i(l,r):m&&_[u]==l?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((g.virtual||(g.virtual={}))[u]=l,e&s.R&&y&&!y[u]&&a(y,u,l)))};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},"l/08":function(e,t,n){"use strict";n("WEk/")},lOnJ:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},lktj:function(e,t,n){var r=n("Ibhu"),o=n("xnc9");e.exports=Object.keys||function(e){return r(e,o)}},mvHQ:function(e,t,n){e.exports={default:n("qkKv"),__esModule:!0}},qkKv:function(e,t,n){var r=n("FeBl"),o=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return o.stringify.apply(o,arguments)}},sB3e:function(e,t,n){var r=n("52gC");e.exports=function(e){return Object(r(e))}},uqUo:function(e,t,n){var r=n("kM2E"),o=n("FeBl"),i=n("S82l");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},"vFc/":function(e,t,n){var r=n("TcQ7"),o=n("QRG4"),i=n("QyNh");e.exports=function(e){return function(t,n,a){var s,u=r(t),c=o(u.length),l=i(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},woOf:function(e,t,n){e.exports={default:n("V3tA"),__esModule:!0}},xnc9:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")}},[0]); //# sourceMappingURL=vendor.54f01e7571327264504c.min.js.map
13,325.285714
92,587
0.676887
aebf0de40a45131ec5798b55b1261993b8dea0ea
2,109
js
JavaScript
portfolio/src/main/webapp/script.js
stephanieopon/my-portfolio
a39b3a37716b602fdd1b35735d068d95802febc4
[ "Apache-2.0" ]
null
null
null
portfolio/src/main/webapp/script.js
stephanieopon/my-portfolio
a39b3a37716b602fdd1b35735d068d95802febc4
[ "Apache-2.0" ]
1
2020-02-24T01:31:35.000Z
2020-02-25T16:06:13.000Z
portfolio/src/main/webapp/script.js
stephanieopon/my-portfolio
a39b3a37716b602fdd1b35735d068d95802febc4
[ "Apache-2.0" ]
null
null
null
// Copyright 2019 Google LLC // // 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 // // https://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. /** * Adds a random greeting to the page. */ function addRandomFact() { const greetings = ['Hello world!', '¡Hola Mundo!', '你好,世界!', 'Bonjour le monde!']; const facts = ['I cannot swallow pills' , 'I do not know how to ride a bike', 'I have 2 dogs', 'I have watched every episode of Gossip Girl at least four times.', 'I was hungry as I was typing these facts.'] // Pick a random fact. const fact = facts[Math.floor(Math.random() * facts.length)]; // Add it to the page. const factContainer = document.getElementById('fact-container'); factContainer.innerText = fact; } function requestHello() { fetch('/data').then(response => response.text()).then((hello)=> { document.getElementById('hello-container').innerHTML = hello; //location.replace('/data'); addToDom(hello); console.log("this function works"); }); /*const response = await fetch('/data'); const hello = await response.text(); document.getElementById('hello-container').innerText = hello; location.replace('/data') addToDom(hello)*/ } function addToDom(hello) { console.log('Adding msg to dom: ' + hello); const helloContainer = document.getElementById('hello-container'); helloContainer.innerText = hello; } function fetchJSON() { fetch('/data').then(response => response.json()).then((data) => { document.getElementById('json-container').innerHTML = data.join("<br>"+ "<br>"); console.log('Output: '+ data); }); console.log("this function works"); }
33.47619
199
0.682314
aebf2e1115af60139de24bbeffa51978cdf90c8b
265
js
JavaScript
WoNeCa_files/noconflict.js
plassart/Woneca2022
439f7ae38777e73e5b00b21d9c8996a1245198b6
[ "MIT" ]
null
null
null
WoNeCa_files/noconflict.js
plassart/Woneca2022
439f7ae38777e73e5b00b21d9c8996a1245198b6
[ "MIT" ]
null
null
null
WoNeCa_files/noconflict.js
plassart/Woneca2022
439f7ae38777e73e5b00b21d9c8996a1245198b6
[ "MIT" ]
null
null
null
/** * @author JoomlaShine.com http://www.joomlashine.com * @copyright Copyright (C) 2008 - 2011 JoomlaShine.com. All rights reserved. * @license GNU/GPL v2 http://www.gnu.org/licenses/gpl-2.0.html */ if (typeof(jQuery) !== "undefined") { jQuery.noConflict(); }
44.166667
76
0.690566
aebf52e1d753a91335576cf8110de9061e8dbb79
3,583
js
JavaScript
api/controllers/faucetController.js
PhantomCore/Faucet
1db39050eff23adbf24c73e3ba8b310815f7f400
[ "Unlicense", "MIT" ]
null
null
null
api/controllers/faucetController.js
PhantomCore/Faucet
1db39050eff23adbf24c73e3ba8b310815f7f400
[ "Unlicense", "MIT" ]
null
null
null
api/controllers/faucetController.js
PhantomCore/Faucet
1db39050eff23adbf24c73e3ba8b310815f7f400
[ "Unlicense", "MIT" ]
null
null
null
"use strict"; const repo = require("../repos/faucetRepo"); const logRepo = require("../repos/logRepo"); const moment = require("moment"); const util = require("../util"); const createLog = (IP, address, amount, rollTime) => { const log = { IP: IP, address: address, amount: amount, rollTime: rollTime }; console.log(`[${rollTime}] ${address} (${IP}) +${PAY_PER_CLICK} XNC`); return log; }; const timeDiff = (now, lastRollTime, cooldown) => { const diff = now.diff(lastRollTime, "seconds"); return { canRoll: diff > cooldown, diff: diff }; }; exports.useFaucet = (req, res) => { const address = req.body.address; if(!util.isAddress(address)) return util.reject(res, "400", "Invalid Phantom address"); recaptcha.verify(req, async (err, data) => { if(err) return util.reject(res, "403", "reCaptcha verification failed"); const IP = req.connection.remoteAddress; const now = moment(); const [ faucetAcct, unpaidBal, ipRollRow, addrRollRow ] = await Promise.all([util.getFaucetAccountInfo(), repo.sumUnpaidBalance(), repo.getRollTimeByIp(IP), repo.getRollTimeByAddress(address)]); let timeDifference = { canRoll:true, diff: 0 }; //Check if IP cooldown is up if(ipRollRow.length > 0) { timeDifference = timeDiff(now, moment(ipRollRow[0].lastRoll), COOLDOWN); if(!timeDifference.canRoll) return util.reject(res, "403", "Try again later"); } //Check if address was already rolled for recently if(addrRollRow.length > 0) { timeDifference = timeDiff(now, moment(addrRollRow[0].lastRoll), COOLDOWN); if(!timeDifference.canRoll) return util.reject(res, "403", "Try again later"); } //Make sure we don't become insolvent if(unpaidBal.sum + PAY_PER_CLICK >= faucetAcct.balance) return util.reject(res, "403", "Faucet is empty, please check back later"); //Checks passed, credit them now const updatePendingP = repo.updateUnpaidBalance(address, PAY_PER_CLICK); const updateRollTimeP = repo.updateRollTime(IP, now.toDate(), address); logRepo.addLog(createLog(IP, address, PAY_PER_CLICK, now.toDate())); await Promise.all([updatePendingP, updateRollTimeP]); return res.send({ timeDiff: timeDifference.diff }); }); }; exports.getStatus = async (req, res) => { const IP = req.connection.remoteAddress; const resp = await repo.getRollTimeByIp(IP); if(resp.length == 0) return res.send({canRoll: true}); const lastRollTime = moment(resp[0].lastRoll); const timeDifference = timeDiff(moment(), lastRollTime, COOLDOWN); if(timeDifference.canRoll) return res.send({canRoll: true}); else return res.send({canRoll: false, timeDiff: timeDifference.diff}); }; exports.getInfo = (req, res) => { const faucetInfo = { address: FAUCET_ADDR, payPerClick: PAY_PER_CLICK, cooldown: COOLDOWN }; res.send(faucetInfo); }; exports.getRecentLogs = async (req, res) => { return res.send(await logRepo.getRecentLogs(10)); }; exports.getCaptcha = (req, res) => { res.send({ captcha: recaptcha.render() }); };
33.175926
113
0.583031
aec01831d7fae5cd91d9302262657a028a2edebd
4,874
js
JavaScript
test/options.js
StellarTime/mte-kernel
89aa44635655cb38b3b67f9c47b1167f6bc20329
[ "MIT" ]
59
2018-02-01T07:09:18.000Z
2022-03-29T11:38:50.000Z
test/options.js
StellarTime/mte-kernel
89aa44635655cb38b3b67f9c47b1167f6bc20329
[ "MIT" ]
2
2018-06-15T15:34:01.000Z
2020-10-24T13:36:03.000Z
test/options.js
StellarTime/mte-kernel
89aa44635655cb38b3b67f9c47b1167f6bc20329
[ "MIT" ]
8
2018-02-08T12:11:39.000Z
2021-09-13T06:56:05.000Z
import { expect } from "chai"; import { DefaultAlignment, HeaderAlignment } from "../lib/alignment.js"; import { FormatType } from "../lib/formatter.js"; import { _value, _values, options } from "../lib/options.js"; /** * @test {_value} */ describe("_value(obj, key, defaultVal)", () => { it("should read a value from the object or use the default value if not exists", () => { const obj = { foo: 1 }; expect(_value(obj, "foo", 2)).to.equal(1); expect(_value(obj, "bar", 2)).to.equal(2); }); it("should return the default value if obj is not an object", () => { expect(_value(undefined, "foo", 2)).to.equal(2); expect(_value(null, "foo", 2)).to.equal(2); }); }); /** * @test {_values} */ describe("_values(obj, keys)", () => { it("should read multiple values from the object or use the default values if not exist", () => { const obj = { foo : 1, bar : 2, dummy: 0 }; expect(_values(obj, { foo: 3, bar: 4, baz: 5 })).to.deep.equal({ foo: 1, bar: 2, baz: 5 }); }); it("should use the default values if obj is not an object", () => { expect(_values(undefined, { foo: 3, bar: 4, baz: 5 })).to.deep.equal({ foo: 3, bar: 4, baz: 5 }); expect(_values(null, { foo: 3, bar: 4, baz: 5 })).to.deep.equal({ foo: 3, bar: 4, baz: 5 }); }); }); /** * @test {options} */ describe("options(obj)", () => { it("should read options from the object and return an object that contains complete options", () => { { const obj = {}; expect(options(obj)).to.deep.equal({ leftMarginChars : new Set(), formatType : FormatType.NORMAL, minDelimiterWidth: 3, defaultAlignment : DefaultAlignment.LEFT, headerAlignment : HeaderAlignment.FOLLOW, smartCursor : false, textWidthOptions : { normalize : true, wideChars : new Set(), narrowChars : new Set(), ambiguousAsWide: false } }); } { const obj = { leftMarginChars : new Set("*"), formatType : FormatType.WEAK, minDelimiterWidth: 5 }; expect(options(obj)).to.deep.equal({ leftMarginChars : new Set("*"), formatType : FormatType.WEAK, minDelimiterWidth: 5, defaultAlignment : DefaultAlignment.LEFT, headerAlignment : HeaderAlignment.FOLLOW, smartCursor : false, textWidthOptions : { normalize : true, wideChars : new Set(), narrowChars : new Set(), ambiguousAsWide: false } }); } { const obj = { textWidthOptions: {} }; expect(options(obj)).to.deep.equal({ leftMarginChars : new Set(), formatType : FormatType.NORMAL, minDelimiterWidth: 3, defaultAlignment : DefaultAlignment.LEFT, headerAlignment : HeaderAlignment.FOLLOW, smartCursor : false, textWidthOptions : { normalize : true, wideChars : new Set(), narrowChars : new Set(), ambiguousAsWide: false } }); } { const obj = { textWidthOptions: { normalize : false, ambiguousAsWide: true } }; expect(options(obj)).to.deep.equal({ leftMarginChars : new Set(), formatType : FormatType.NORMAL, minDelimiterWidth: 3, defaultAlignment : DefaultAlignment.LEFT, headerAlignment : HeaderAlignment.FOLLOW, smartCursor : false, textWidthOptions : { normalize : false, wideChars : new Set(), narrowChars : new Set(), ambiguousAsWide: true } }); } { const obj = { leftMarginChars : new Set("*"), formatType : FormatType.WEAK, minDelimiterWidth: 5, defaultAlignment : DefaultAlignment.CENTER, headerAlignment : HeaderAlignment.CENTER, smartCursor : true, textWidthOptions : { normalize : false, wideChars : new Set("→"), narrowChars : new Set("λ"), ambiguousAsWide: true } }; expect(options(obj)).to.deep.equal({ leftMarginChars : new Set("*"), formatType : FormatType.WEAK, minDelimiterWidth: 5, defaultAlignment : DefaultAlignment.CENTER, headerAlignment : HeaderAlignment.CENTER, smartCursor : true, textWidthOptions : { normalize : false, wideChars : new Set("→"), narrowChars : new Set("λ"), ambiguousAsWide: true } }); } }); });
28.337209
103
0.526672
aec08670cdaa28758f7b470364bb67ece28cecb1
1,930
js
JavaScript
dist/tiposDatos.js
kev-aron-28/Typescript-basics
cad2d2b2225658e05f868f7d7eae77cb3f45e6ce
[ "MIT" ]
null
null
null
dist/tiposDatos.js
kev-aron-28/Typescript-basics
cad2d2b2225658e05f868f7d7eae77cb3f45e6ce
[ "MIT" ]
null
null
null
dist/tiposDatos.js
kev-aron-28/Typescript-basics
cad2d2b2225658e05f868f7d7eae77cb3f45e6ce
[ "MIT" ]
null
null
null
"use strict"; // Number //*Explicito var phone; phone = 123445; console.log(phone); //*Inferido var phoneNumber = 1234; //Boolean var bool = true; //String var user = "Kevin"; //Any var idUser = "Kevin123"; idUser = true; idUser = 1; //Void function showInfo(user) { console.log("User Info\n " + user.id + "\n " + user.name); } showInfo({ id: 1, name: "Kevin" }); //never function handleError(code, message) { throw new Error(message + ", Code: " + code); } // handleError(404, 'Not Found'); //Null var nul = null; var ob = {}; // console.log(ob) //Arrays var num; num = [1, 2, 3, 4]; var other = [1, true, "false"]; console.log(other); console.log(num); // Arrays<> var arr = [1, 2, 4, 5]; //tuplas var tupla = [1, 2]; console.log(tupla); //Varios valores var userInfo = []; userInfo.push([1, "kevin"]); userInfo.push([2, "aron"]); userInfo.push([3, "jane"]); console.log(userInfo); //enum var Countries; (function (Countries) { Countries[Countries["Mex"] = 0] = "Mex"; Countries[Countries["Col"] = 1] = "Col"; Countries[Countries["Arg"] = 2] = "Arg"; })(Countries || (Countries = {})); var Numbers; (function (Numbers) { Numbers[Numbers["Uno"] = 0] = "Uno"; Numbers[Numbers["Dos"] = 1] = "Dos"; Numbers[Numbers["Tres"] = 2] = "Tres"; })(Numbers || (Numbers = {})); console.log(Countries.Mex); console.log(Countries[0]); //Union de tipos var userId = 1; userId = "1"; function getId(id) { return "kevinTapia"; } var userCountry = "MEX"; //Asersiones de tipo var nameU = "kevin"; var data = 1; var message = nameU.length > 5 ? "Hola " : "Adiós"; console.log(message); var datCom = data < 0 ? "HOlA " : "ADIOS"; console.log(datCom); //funciones function info(name, age) { console.log(name, age); } var showInfoUser = function (name, age) { return { name: name, age: age }; }; var information = showInfoUser("KEVIN", 19); console.log(information);
21.685393
76
0.610881
aec16acc39abbd19d597fc314fc2b920f22f12c5
113
js
JavaScript
src/wordpress/wp-content/plugins/mailster/assets/js/addons-script.min.js
codemaster08240328/boaty_nuxt
a43eb5998f0606947a28a143224a5c5433b5e9d8
[ "MIT" ]
null
null
null
src/wordpress/wp-content/plugins/mailster/assets/js/addons-script.min.js
codemaster08240328/boaty_nuxt
a43eb5998f0606947a28a143224a5c5433b5e9d8
[ "MIT" ]
null
null
null
src/wordpress/wp-content/plugins/mailster/assets/js/addons-script.min.js
codemaster08240328/boaty_nuxt
a43eb5998f0606947a28a143224a5c5433b5e9d8
[ "MIT" ]
null
null
null
jQuery(document).ready(function(a){a("a.external").on("click",function(){window.open(this.href);return false})});
113
113
0.725664
aec28240dfbf8ff8c99d7b88a388773556746347
3,703
js
JavaScript
server.js
dakrbo/landscapeapp
417ce0db071d807f28f6f8b398162d47786892db
[ "Apache-2.0" ]
null
null
null
server.js
dakrbo/landscapeapp
417ce0db071d807f28f6f8b398162d47786892db
[ "Apache-2.0" ]
null
null
null
server.js
dakrbo/landscapeapp
417ce0db071d807f28f6f8b398162d47786892db
[ "Apache-2.0" ]
null
null
null
// acts as a dev server and a dist server // netlify does not use this const projectPath = process.env.PROJECT_PATH; const http = require('http'); const fs = require('fs'); const path = require('path'); http.createServer(function (request, response) { if (request.url.indexOf('/api/ids') !== -1) { console.log('api request starting...', request.url); const query = request.url.split('?')[1] || ''; if (!process.env.INLINE_API) { require('child_process').exec(`babel-node src/api/ids.js '${query}'`, {}, function(e, output, err) { response.writeHead(200, { 'Content-Type': 'application/json' }); response.end(output); }); } else { const output = require('./src/api/ids.js').processRequest(query); response.writeHead(200, { 'Content-Type': 'application/json' }); response.end(JSON.stringify(output)); } return; } if (request.url.indexOf('/api/export') !== -1) { console.log('api request starting...', request.url); const query = request.url.split('?')[1] || ''; if (!process.env.INLINE_API) { require('child_process').exec(`babel-node src/api/export.js '${query}'`, {}, function(e, output, err) { response.writeHead(200, { 'Content-Type': 'text/css', 'Content-Disposition': 'attachment; filename=interactive-landscape.csv' }); response.end(output); }); } else { const output = require('./src/api/export.js').processRequest(query); response.writeHead(200, { 'Content-Type': 'text/css', 'Content-Disposition': 'attachment; filename=interactive-landscape.csv' }); response.end(output); } return; } let filePath = path.join(process.env.PROJECT_PATH, 'dist', request.url.split('?')[0]); if (fs.existsSync(path.resolve(filePath, 'index.html'))) { filePath = path.resolve(filePath, 'index.html'); } else if (fs.existsSync(filePath + '.html')) { filePath = filePath + '.html' } const extname = path.extname(filePath); let encoding = 'utf-8'; var contentType = 'text/html; charset=utf-8'; switch (extname) { case '.js': contentType = 'text/javascript; charset=utf-8'; break; case '.css': contentType = 'text/css; charset=utf-8'; break; case '.json': contentType = 'application/json; charset=utf-8'; break; case '.svg': contentType = 'image/svg+xml; charset=utf-8'; break; case '.jpg': contentType = 'image/jpg'; encoding = undefined; break; case '.png': contentType = 'image/png'; encoding = undefined; break; case '.pdf': contentType = 'application/pdf'; encoding = undefined; break; } fs.readFile(filePath, encoding, function(error, content) { if (error) { const extraPath = filePath + '.html'; fs.readFile(extraPath, encoding, function(error, content) { if (error) { if(error.code == 'ENOENT') { response.writeHead(200, { 'Content-Type': contentType }); response.end('404. Not found. ', 'utf-8'); } else { response.writeHead(500); response.end('Sorry, check with the site admin for error: '+error.code+' ..\n'); response.end(); } } else { response.writeHead(200, { 'Content-Type': contentType }); response.end(content, 'utf-8'); } }); } else { response.writeHead(200, { 'Content-Type': contentType }); response.end(content, 'utf-8'); } }); }).listen(process.env.PORT || 8001); console.log(`Development server running at http://127.0.0.1:${process.env.PORT || 8001}/`);
33.0625
109
0.588712
aec3a62b443494141d973d470a5f2b79ec5a028c
8,936
js
JavaScript
rails5_api/public/docs-designer/scenario/test/lib/shelf-helper.js
hadwinzhy/common_platform
5ac3ee7a00a3d235dbb1d8a5dbb68602fdde7e96
[ "MIT" ]
null
null
null
rails5_api/public/docs-designer/scenario/test/lib/shelf-helper.js
hadwinzhy/common_platform
5ac3ee7a00a3d235dbb1d8a5dbb68602fdde7e96
[ "MIT" ]
null
null
null
rails5_api/public/docs-designer/scenario/test/lib/shelf-helper.js
hadwinzhy/common_platform
5ac3ee7a00a3d235dbb1d8a5dbb68602fdde7e96
[ "MIT" ]
null
null
null
'use strict'; var webdriver = require('selenium-webdriver'); function ShelfHelper() { this.elemRamlVersion = ['#%RAML 0.8']; this.elemRamlByGroup = ''; //Root Elements this.elemRootLevelRoot = ['baseUri','mediaType','protocols','title','version']; this.elemRootLevelDocs = ['documentation']; this.elemRootLevelParameters = ['baseUriParameters']; this.elemRootLevelSecurity = ['securedBy','securitySchemes']; this.elemRootLevelResources = ['New Resource']; this.elemRootLevelTraitsAndTypes = ['resourceTypes','traits']; this.elemRootLevelSchemas = ['schemas']; this.elemRootLevel = this.elemRootLevelRoot.concat(this.elemRootLevelDocs,this.elemRootLevelParameters,this.elemRootLevelSecurity,this.elemRootLevelResources,this.elemRootLevelTraitsAndTypes,this.elemRootLevelSchemas); this.elemRootLevelWithoutNewResource = this.elemRootLevelRoot.concat(this.elemRootLevelDocs,this.elemRootLevelParameters,this.elemRootLevelSecurity,this.elemRootLevelTraitsAndTypes,this.elemRootLevelSchemas); this.elemRootByGroup = ' root (5) baseUrimediaTypeprotocolstitleversion docs (1) documentation parameters (1) baseUriParameters security (2) securedBysecuritySchemes resources (1) New Resource traits and types (2) resourceTypestraits schemas (1) schemas '; //Named Parameter this.elemNamedParametersLevelDocs = ['description','displayName','example']; this.elemNamedParametersLevelParameters = ['default','enum','maxLength','maximum','minLength','minimum','pattern','required','type']; this.elemNamedParametersLevel = this.elemNamedParametersLevelDocs.concat(this.elemNamedParametersLevelParameters); this.elemNamedParametersByGroups = ' docs (3) descriptiondisplayNameexample parameters (9) defaultenummaxLengthmaximumminLengthminimumpatternrequiredtype '; //traits this.elemTraitsLevelRoot =['protocols']; this.elemTraitsLevelDocs = ['description','displayName','usage']; this.elemTraitsLevelParameters = ['baseUriParameters', 'headers', 'queryParameters']; this.elemTraitsLevelResponses = ['responses']; this.elemTraitsLevelSecurity = ['securedBy']; this.elemTraitsLevelBody = ['body']; this.elemTraitsLevel = this.elemTraitsLevelRoot.concat(this.elemTraitsLevelDocs,this.elemTraitsLevelParameters, this.elemTraitsLevelResponses,this.elemTraitsLevelSecurity,this.elemTraitsLevelBody); this.elemTraitsByGroup = ' root (1) protocols docs (3) descriptiondisplayNameusage parameters (3) baseUriParametersheadersqueryParameters responses (1) responses security (1) securedBy body (1) body '; //Methods this.elemMethodLevelRoot = ['protocols']; this.elemMethodLevelDocs = ['description']; this.elemMethodLevelParameters = ['baseUriParameters','headers','queryParameters']; this.elemMethodLevelResponses = ['responses']; this.elemMethodLevelSecurity = ['securedBy']; this.elemMethodLevelTraitsAndTypes = ['is']; this.elemMethodLevelBody = ['body']; this.elemMethodLevel = this.elemMethodLevelRoot.concat(this.elemMethodLevelDocs,this.elemMethodLevelParameters,this.elemMethodLevelResponses,this.elemMethodLevelSecurity,this.elemMethodLevelTraitsAndTypes,this.elemMethodLevelBody); this.elemMethodByGroup = ' root (1) protocols docs (1) description parameters (3) baseUriParametersheadersqueryParameters responses (1) responses security (1) securedBy traits and types (1) is body (1) body '; // RT Methods this.elemRtMethodLevelRoot = this.elemMethodLevelRoot; this.elemRtMethodLevelDocs = this.elemMethodLevelDocs; this.elemRtMethodLevelParameters = this.elemMethodLevelParameters; this.elemRtMethodLevelResponses = this.elemMethodLevelResponses; this.elemRtMethodLevelSecurity = this.elemMethodLevelSecurity; this.elemRtMethodLevelTraitsAndTypes = this.elemMethodLevelTraitsAndTypes; this.elemRtMethodLevelBody = this.elemMethodLevelBody; this.elemRtMethodLevel = this.elemRtMethodLevelRoot.concat(this.elemRtMethodLevelDocs,this.elemRtMethodLevelParameters,this.elemRtMethodLevelResponses,this.elemRtMethodLevelSecurity,this.elemRtMethodLevelTraitsAndTypes,this.elemRtMethodLevelBody); this.elemRtMethodByGroup = ' root (1) protocols docs (1) description parameters (3) baseUriParametersheadersqueryParameters responses (1) responses security (1) securedBy traits and types (1) is body (1) body '; // Resource Root this.elemResourceLevelDocs = ['description','displayName']; this.elemResourceLevelMethods = ['connect','delete','get','head','options','patch','post','put','trace']; this.elemResourceLevelParameters = ['baseUriParameters','uriParameters']; this.elemResourceLevelSecurity = ['securedBy']; this.elemResourceLevelResources = ['New Resource']; this.elemResourceLevelTraitsAndTypes = ['is', 'type']; this.elemResourceLevel = this.elemResourceLevelDocs.concat(this.elemResourceLevelMethods,this.elemResourceLevelParameters,this.elemResourceLevelSecurity,this.elemResourceLevelResources,this.elemResourceLevelTraitsAndTypes); this.elemResourceLevelWithoutNewReosurce = this.elemResourceLevelDocs.concat(this.elemResourceLevelMethods,this.elemResourceLevelParameters,this.elemResourceLevelSecurity,this.elemResourceLevelTraitsAndTypes); this.elemResourceByGroup = ' docs (2) descriptiondisplayName methods (9) connectdeletegetheadoptionspatchpostputtrace parameters (2) baseUriParametersuriParameters security (1) securedBy resources (1) New Resource traits and types (2) istype '; // RT root this.elemResourceTypeLevelDocs = this.elemResourceLevelDocs.concat('usage'); this.elemResourceTypeLevelMethods = this.elemResourceLevelMethods; this.elemResourceTypeLevelParameters = this.elemResourceLevelParameters; this.elemResourceTypeLevelSecurity = this.elemResourceLevelSecurity; this.elemResourceTypeLevelTraitsAndTypes = this.elemResourceLevelTraitsAndTypes; this.elemResourceTypeLevel = this.elemResourceTypeLevelDocs.concat(this.elemResourceTypeLevelMethods,this.elemResourceTypeLevelParameters,this.elemResourceTypeLevelSecurity,this.elemResourceTypeLevelTraitsAndTypes); this.elemResourceTypeTypeByGroup = ' docs (3) descriptiondisplayNameusage methods (9) connectdeletegetheadoptionspatchpostputtrace parameters (2) baseUriParametersuriParameters security (1) securedBy traits and types (2) istype '; //Responses this.elemResponsesLevelDocs = ['description']; this.elemResponsesLevelBody = ['body']; this.elemResponsesLevel = this.elemResponsesLevelDocs.concat(this.elemResponsesLevelBody); this.elemResponsesByGroup = ' docs (1) description responses (1) body '; // body this.elemBodyLevelDocs = ['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'multipart/form-data' ]; this.elemBodyLevel = this.elemBodyLevelDocs; this.elemBodyByGroup = ''; // Documentation this.elemDocumentationLevelDocs = ['content','title']; this.elemDocumentationLevel = this.elemDocumentationLevelDocs; // protocols this.elemProtocolsLevel = ['HTTP', 'HTTPS']; this.elemProtocolsByGroup = ' (2) HTTPHTTPS '; this.elemlistCss = '[ng-repeat=\'item in section.items\'] span'; } ShelfHelper.prototype = {}; ShelfHelper.prototype.getElementsPromise = function getElementsPromise(){ var that = this; return element.all(by.css(that.elemlistCss)); }; ShelfHelper.prototype.getElements = function getElements(){ return browser.executeScript(function () { var list = []; $('[ng-repeat="item in section.items"] span').text(function( index,text ) { list[index] =text; }); return list; }); }; ShelfHelper.prototype.selectFirstElem = function selectFirstElem(){ var that = this; return browser.wait(function(){ return browser.isElementPresent(by.css(that.elemlistCss)); }).then(function () { that.getElementsPromise().then(function(list){ list[0].click(); }); }); }; ShelfHelper.prototype.clickShelfElemByPos = function clickShelfElemByPos(pos){ var that = this; var d = webdriver.promise.defer(); browser.wait(function(){ return browser.isElementPresent(by.css(that.elemlistCss)); }).then(function(){ that.getElementsPromise().then(function(list){ list[pos].click().then(function(){ d.fulfill('done'); },function(){ d.fulfill('error'); }); }); }); return d.promise; }; ShelfHelper.prototype.selectShelfElemByPos = function selectShelfElemByPos(pos){ this.clickShelfElemByPos(pos).then(function(text){ expect(text).toEqual('done'); }); }; ShelfHelper.prototype.getElementsByGroup = function getElementsByGroup(group){ return element.all(by.css('.'+group+' ul li span')); }; ShelfHelper.prototype.getSections = function getSections(){ return element.all(by.css('[role=\'section\']')); }; ShelfHelper.prototype.itemsInSection = function itemsInSection(){ return '[role=\'items\'] li span'; }; ShelfHelper.prototype.getTextFromShelf = function getTextFromShelf(){ return element.all(by.css('[role=\'shelf-container\']')); }; exports.ShelfHelper = ShelfHelper;
55.503106
258
0.786482
aec3ca5339ead8254e5e4ebcd160e42826efa14b
303
js
JavaScript
src/components/header/header.js
cottmar/portfolio
7af56258707205bbd2d33a87ddd33df47bc85e43
[ "MIT" ]
null
null
null
src/components/header/header.js
cottmar/portfolio
7af56258707205bbd2d33a87ddd33df47bc85e43
[ "MIT" ]
null
null
null
src/components/header/header.js
cottmar/portfolio
7af56258707205bbd2d33a87ddd33df47bc85e43
[ "MIT" ]
null
null
null
import React from 'react'; import { Link } from 'react-router-dom'; export default class Header extends React.Component { render() { return ( <header className='topNavBar'> <h1 className="title"><Link to='/'>Cara Ottmar</Link></h1> <p>Cara Ottmar</p> </header> ) } }
23.307692
64
0.610561
aec44fdbb19af7cca6e07714744ff596934804d2
539
js
JavaScript
src/routes/User.js
unscribe/unscribe
6c183c8fc1ce6c27abf553a4e682422efa7a049b
[ "MIT" ]
null
null
null
src/routes/User.js
unscribe/unscribe
6c183c8fc1ce6c27abf553a4e682422efa7a049b
[ "MIT" ]
null
null
null
src/routes/User.js
unscribe/unscribe
6c183c8fc1ce6c27abf553a4e682422efa7a049b
[ "MIT" ]
null
null
null
import React, { Component } from 'react' import db, { getUserRef } from "../firebase/db" import auth from "../firebase/auth" import Sidebar from "../containers/Sidebar" export default class User extends Component { constructor(props) { super(props) this.state = { data: "" } } signOut() { auth.signOut() } render() { return ( <> <Sidebar /> <div> <h1>user</h1> <button onClick={ e => this.signOut(e) }>sign out</button> </div> </> ) } }
17.387097
68
0.534323
aec4bb6b9b634c85dcdde49acd2922916dce76ff
7,397
js
JavaScript
js/custom/canvasscript.js
martinjakubik/ponk
7e066bf83e646415830ba85cb5245df4e29b3014
[ "Apache-2.0" ]
null
null
null
js/custom/canvasscript.js
martinjakubik/ponk
7e066bf83e646415830ba85cb5245df4e29b3014
[ "Apache-2.0" ]
null
null
null
js/custom/canvasscript.js
martinjakubik/ponk
7e066bf83e646415830ba85cb5245df4e29b3014
[ "Apache-2.0" ]
null
null
null
function drawScript(oCanvas, x, y, character, drawingLayer, drawBlockSize) { this.context = oCanvas.getContext('2d'); var nDrawX = x; var nDrawY = y; var nPixel = 0; var nX = 0, nY = 0; // checks if char is a number if (!isNaN(parseInt(character, 10))) { // draws the number for (nPixel = 0; nPixel < d3x5[0].length; nPixel++) { nX = nPixel % 3; nY = Math.floor(nPixel / 3); if (d3x5[ character ][ nPixel ] === '*') { // draws a filled square this.context.fillStyle = '#ffffff'; this.context.fillRect((nDrawX + nX) * drawBlockSize, (nDrawY + nY) * drawBlockSize, drawBlockSize, drawBlockSize); // stores a filled square at this position drawingLayer.grid[(nDrawX + nX)][(nDrawY + nY)] = '#ffffff'; } else { // draws a clear square this.context.fillStyle = 'black'; this.context.fillRect((nDrawX + nX) * drawBlockSize, (nDrawY + nY) * drawBlockSize, drawBlockSize, drawBlockSize); // stores a clear square at this position drawingLayer.grid[(nDrawX + nX)][(nDrawY + nY)] = 'black'; } } } else { // converts the letter to an index in the array (a = 0, b = 1, ...) var nCharCode = character.charCodeAt(0); var nLetterIndex = nCharCode - 97; // draws the letter for (nPixel = 0; nPixel < s3x5[ 0 ].length; nPixel++) { nX = nPixel % 3; nY = Math.floor(nPixel / 3); if (s3x5[ nLetterIndex ][ nPixel ] === '*') { // draws a filled square this.context.fillStyle = '#ffffff'; this.context.fillRect((nDrawX + nX) * drawBlockSize, (nDrawY + nY) * drawBlockSize, drawBlockSize, drawBlockSize); // stores a filled square at this position drawingLayer.grid[(nDrawX + nX)][(nDrawY + nY)] = '#ffffff'; } else { // draws a clear square this.context.fillStyle = 'black'; this.context.fillRect((nDrawX + nX) * drawBlockSize, (nDrawY + nY) * drawBlockSize, drawBlockSize, drawBlockSize); // stores a clear square at this position drawingLayer.grid[(nDrawX + nX)][(nDrawY + nY)] = 'black'; } } } } var s3x5 = [ // A [ ' ', '*', ' ', '*', ' ', '*', '*', '*', '*', '*', ' ', '*', '*', ' ', '*' ], // B [ '*', '*', ' ', '*', ' ', '*', '*', '*', ' ', '*', ' ', '*', '*', '*', ' ' ], // C [ ' ', '*', ' ', '*', ' ', '*', '*', ' ', ' ', '*', ' ', '*', ' ', '*', ' ' ], // D [ '*', '*', ' ', '*', ' ', '*', '*', ' ', '*', '*', ' ', '*', '*', '*', ' ' ], // E [ '*', '*', '*', '*', ' ', ' ', '*', '*', ' ', '*', ' ', ' ', '*', '*', '*' ], // F [ '*', '*', '*', '*', ' ', ' ', '*', '*', ' ', '*', ' ', ' ', '*', ' ', ' ' ], // G [ '*', '*', '*', '*', ' ', ' ', '*', ' ', '*', '*', ' ', '*', '*', '*', '*' ], // H [ '*', ' ', '*', '*', ' ', '*', '*', '*', '*', '*', ' ', '*', '*', ' ', '*' ], // I [ '*', '*', '*', ' ', '*', ' ', ' ', '*', ' ', ' ', '*', ' ', '*', '*', '*' ], // J [ '*', '*', '*', ' ', '*', ' ', ' ', '*', ' ', ' ', '*', ' ', '*', '*', ' ' ], // K [ '*', ' ', '*', '*', '*', ' ', '*', '*', ' ', '*', '*', ' ', '*', ' ', '*' ], // L [ '*', ' ', ' ', '*', ' ', ' ', '*', ' ', ' ', '*', ' ', ' ', '*', '*', '*' ], // M [ '*', ' ', '*', '*', '*', '*', '*', ' ', '*', '*', ' ', '*', '*', ' ', '*' ], // N [ '*', ' ', '*', '*', ' ', '*', '*', '*', '*', '*', ' ', '*', '*', ' ', '*' ], // O [ '*', '*', '*', '*', ' ', '*', '*', ' ', '*', '*', ' ', '*', '*', '*', '*' ], // P [ '*', '*', '*', '*', ' ', '*', '*', '*', '*', '*', ' ', ' ', '*', ' ', ' ' ], // Q [ '*', '*', '*', '*', ' ', '*', '*', ' ', '*', '*', '*', '*', '*', '*', '*' ], // R [ '*', '*', '*', '*', ' ', '*', '*', '*', '*', '*', '*', ' ', '*', ' ', '*' ], // S [ '*', '*', '*', '*', ' ', ' ', '*', '*', '*', ' ', ' ', '*', '*', '*', '*' ], // T [ '*', '*', '*', ' ', '*', ' ', ' ', '*', ' ', ' ', '*', ' ', ' ', '*', ' ' ], // U [ '*', ' ', '*', '*', ' ', '*', '*', ' ', '*', '*', ' ', '*', '*', '*', '*' ], // V [ '*', ' ', '*', '*', ' ', '*', '*', ' ', '*', '*', ' ', '*', ' ', '*', ' ' ], // W [ '*', ' ', '*', '*', ' ', '*', '*', ' ', '*', '*', '*', '*', '*', ' ', '*' ], // X [ '*', ' ', '*', '*', ' ', '*', ' ', '*', ' ', '*', ' ', '*', '*', ' ', '*' ], // Y [ '*', ' ', '*', '*', ' ', '*', ' ', '*', ' ', ' ', '*', ' ', ' ', '*', ' ' ], // Z [ '*', '*', '*', ' ', ' ', '*', ' ', '*', ' ', '*', ' ', ' ', '*', '*', '*' ] ]; var d3x5 = [ // 0 [ ' ', '*', ' ', '*', ' ', '*', '*', ' ', '*', '*', ' ', '*', ' ', '*', ' ' ], // 1 [ ' ', '*', ' ', '*', '*', ' ', ' ', '*', ' ', ' ', '*', ' ', ' ', '*', ' ' ], // 2 [ ' ', '*', ' ', '*', ' ', '*', ' ', '*', ' ', '*', ' ', ' ', '*', '*', '*' ], // 3 [ '*', '*', '*', ' ', ' ', '*', ' ', '*', ' ', '*', ' ', '*', ' ', '*', ' ' ], // 4 [ '*', ' ', '*', '*', ' ', '*', '*', '*', '*', ' ', ' ', '*', ' ', ' ', '*' ], // 5 [ '*', '*', '*', '*', ' ', ' ', '*', '*', '*', ' ', ' ', '*', '*', '*', '*' ], // 6 [ '*', '*', '*', '*', ' ', ' ', '*', '*', '*', '*', ' ', '*', '*', '*', '*' ], // 7 [ '*', '*', '*', ' ', ' ', '*', '*', '*', '*', ' ', ' ', '*', ' ', ' ', '*' ], // 8 [ '*', '*', '*', '*', ' ', '*', '*', '*', '*', '*', ' ', '*', '*', '*', '*' ], // 9 [ '*', '*', '*', '*', ' ', '*', '*', '*', '*', ' ', ' ', '*', '*', '*', '*' ] ];
18.966667
130
0.179803
aec51434b234c08026b28d332159c7f48e4d8347
3,565
js
JavaScript
.shadow-cljs/builds/app/release/shadow-js/module$node_modules$mathjs$lib$cjs$entry$dependenciesAny$dependenciesCoth_generated.js
hkmin27/contactcalc
1c91bc09a41908235b629010ea9dd74ea39c28af
[ "MIT" ]
null
null
null
.shadow-cljs/builds/app/release/shadow-js/module$node_modules$mathjs$lib$cjs$entry$dependenciesAny$dependenciesCoth_generated.js
hkmin27/contactcalc
1c91bc09a41908235b629010ea9dd74ea39c28af
[ "MIT" ]
null
null
null
.shadow-cljs/builds/app/release/shadow-js/module$node_modules$mathjs$lib$cjs$entry$dependenciesAny$dependenciesCoth_generated.js
hkmin27/contactcalc
1c91bc09a41908235b629010ea9dd74ea39c28af
[ "MIT" ]
null
null
null
["^ ","~:resource-id",["~:shadow.build.npm/resource","node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCoth.generated.js"],"~:js","shadow$provide[761]=function(c,b,y,a){Object.defineProperty(a,\"__esModule\",{value:!0});a.cothDependencies=void 0;c=b(597);y=b(602);b=b(593);a.cothDependencies={BigNumberDependencies:c.BigNumberDependencies,typedDependencies:y.typedDependencies,createCoth:b.createCoth}}","~:source","shadow$provide[761] = function(global,require,module,exports) {\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cothDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar cothDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCoth: _factoriesAny.createCoth\n};\nexports.cothDependencies = cothDependencies;\n};","~:removed-requires",["~#set",[]],"~:actual-requires",["^5",["~$module$node_modules$mathjs$lib$cjs$entry$dependenciesAny$dependenciesTyped_generated","~$module$node_modules$mathjs$lib$cjs$factoriesAny","~$shadow.js","~$module$node_modules$mathjs$lib$cjs$entry$dependenciesAny$dependenciesBigNumberClass_generated"]],"~:properties",["^5",["createCoth","__esModule","BigNumberDependencies","cothDependencies","value","typedDependencies"]],"~:compiled-at",1619135724080,"~:source-map-json","{\n\"version\":3,\n\"file\":\"module$node_modules$mathjs$lib$cjs$entry$dependenciesAny$dependenciesCoth_generated.js\",\n\"lineCount\":1,\n\"mappings\":\"AAAAA,cAAA,CAAe,GAAf,CAAA,CAAsB,QAAQ,CAACC,CAAD,CAAQC,CAAR,CAAgBC,CAAhB,CAAuBC,CAAvB,CAAgC,CAG9DC,MAAOC,CAAAA,cAAP,CAAsBF,CAAtB,CAA+B,YAA/B,CAA6C,CAC3CG,MAAO,CAAA,CADoC,CAA7C,CAGAH,EAAQI,CAAAA,gBAAR,CAA2B,IAAK,EAE5BC,EAAAA,CAAuCP,CAAA,CAAQ,GAAR,CAEvCQ,EAAAA,CAA8BR,CAAA,CAAQ,GAAR,CAE9BS,EAAAA,CAAgBT,CAAA,CAAQ,GAAR,CAWpBE,EAAQI,CAAAA,gBAAR,CALuBA,CACrBI,sBAAuBH,CAAqCG,CAAAA,qBADvCJ,CAErBK,kBAAmBH,CAA4BG,CAAAA,iBAF1BL,CAGrBM,WAAYH,CAAcG,CAAAA,UAHLN,CAlBuC;\",\n\"sources\":[\"node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCoth.generated.js\"],\n\"sourcesContent\":[\"shadow$provide[761] = function(global,require,module,exports) {\\n\\\"use strict\\\";\\n\\nObject.defineProperty(exports, \\\"__esModule\\\", {\\n value: true\\n});\\nexports.cothDependencies = void 0;\\n\\nvar _dependenciesBigNumberClassGenerated = require(\\\"./dependenciesBigNumberClass.generated.js\\\");\\n\\nvar _dependenciesTypedGenerated = require(\\\"./dependenciesTyped.generated.js\\\");\\n\\nvar _factoriesAny = require(\\\"../../factoriesAny.js\\\");\\n\\n/**\\n * THIS FILE IS AUTO-GENERATED\\n * DON'T MAKE CHANGES HERE\\n */\\nvar cothDependencies = {\\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\\n createCoth: _factoriesAny.createCoth\\n};\\nexports.cothDependencies = cothDependencies;\\n};\"],\n\"names\":[\"shadow$provide\",\"global\",\"require\",\"module\",\"exports\",\"Object\",\"defineProperty\",\"value\",\"cothDependencies\",\"_dependenciesBigNumberClassGenerated\",\"_dependenciesTypedGenerated\",\"_factoriesAny\",\"BigNumberDependencies\",\"typedDependencies\",\"createCoth\"]\n}\n"]
3,565
3,565
0.764937
aec56edd43fec2c19887e9c2548c607a8122bf20
2,790
js
JavaScript
sw_app/src/App.js
roberuto/mono_repo_example
4f7738a66677e6ac0eff9035196abe80a3740f81
[ "MIT" ]
null
null
null
sw_app/src/App.js
roberuto/mono_repo_example
4f7738a66677e6ac0eff9035196abe80a3740f81
[ "MIT" ]
null
null
null
sw_app/src/App.js
roberuto/mono_repo_example
4f7738a66677e6ac0eff9035196abe80a3740f81
[ "MIT" ]
13
2019-01-17T12:00:25.000Z
2019-01-24T12:05:48.000Z
// @flow import React, { Component } from 'react'; import { ListWrapper, Tile, Modal, Pagination, AppContainer, DataSource, Header } from '@qh4r/library'; import { LocalizationProvider } from '@qh4r/localization'; import logo from './starwars.png'; import * as styles from './App.module.scss'; import { CharacterDetails } from './character-details/character-details.component'; type AppProps = {}; type AppState = { page: number, selectionUrl: ?string, }; class App extends Component<AppProps, AppState> { state = { page: 1, selectionUrl: null, }; updatePage = (page: number) => { this.setState({ page, }); }; onCharacterSelection = (selectionUrl: string) => { this.setState({ selectionUrl, }); }; onClose = () => { this.setState({ selectionUrl: null, }); }; render() { return ( <AppContainer className={styles.appBackground}> <DataSource url="http://localhost:3000/localizations"> {localization => ( <LocalizationProvider localization={localization} lang="pl"> <Header img={logo} /> <ListWrapper fadeFrom="rgba(0, 0, 0, 1)" fadeTo="rgba(0, 0, 0, 0)"> <DataSource url={`https://swapi.co/api/people/?page=${this.state.page}`}> {(data: *) => data.results.map(character => ( <Tile key={character.name} {...character} className={styles.characterTile} onClick={this.onCharacterSelection} /> )) } </DataSource> </ListWrapper> <div className={styles.appFooter}> <Pagination pageSize={1} current={this.state.page} total={9} onChange={this.updatePage} colors={{ color: 'rgba(251, 221, 42, 1)', backgroundColor: 'black', colorActive: 'black', backgroundColorActive: 'rgba(251, 221, 42, 1)', }} /> </div> <Modal className={styles.modalBody} visible={!!this.state.selectionUrl} onCancel={this.onClose}> {this.state.selectionUrl && ( <DataSource url={this.state.selectionUrl}> {(data: *) => { return <CharacterDetails {...data} />; }} </DataSource> )} </Modal> </LocalizationProvider> )} </DataSource> </AppContainer> ); } } export default App;
30
110
0.485663
aec64b9762a47551435133544e0b2dcb8919f1f4
2,828
js
JavaScript
addons/lunch/static/src/js/lunch_model_extension.js
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/lunch/static/src/js/lunch_model_extension.js
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/lunch/static/src/js/lunch_model_extension.js
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
odoo.define("lunch/static/src/js/lunch_model_extension.js", function (require) { "use strict"; const ActionModel = require("web/static/src/js/views/action_model.js"); class LunchModelExtension extends ActionModel.Extension { //--------------------------------------------------------------------- // Public //--------------------------------------------------------------------- /** * @override * @returns {any} */ get(property) { switch (property) { case "domain": return this.getDomain(); case "userId": return this.state.userId; } } /** * @override */ async load() { await this._updateLocationId(); } /** * @override */ prepareState() { Object.assign(this.state, { locationId: null, userId: null, }); } //--------------------------------------------------------------------- // Actions / Getters //--------------------------------------------------------------------- /** * @returns {Array[] | null} */ getDomain() { if (this.state.locationId) { return [["is_available_at", "in", [this.state.locationId]]]; } return null; } /** * @param {number} locationId * @returns {Promise} */ setLocationId(locationId) { this.state.locationId = locationId; this.env.services.rpc({ route: "/lunch/user_location_set", params: { context: this.env.session.user_context, location_id: this.state.locationId, user_id: this.state.userId, }, }); } /** * @param {number} userId * @returns {Promise} */ updateUserId(userId) { this.state.userId = userId; this.shouldLoad = true; } //--------------------------------------------------------------------- // Private //--------------------------------------------------------------------- /** * @returns {Promise} */ async _updateLocationId() { this.state.locationId = await this.env.services.rpc({ route: "/lunch/user_location_get", params: { context: this.env.session.user_context, user_id: this.state.userId, }, }); } } ActionModel.registry.add("Lunch", LunchModelExtension, 20); return LunchModelExtension; });
28
80
0.376945
aec6c12d05b09cd002b5d6d5964690310bb66b80
991
js
JavaScript
public/js/views/statisticPeriod.js
Marina-Aksenova/myfz139
2a645fe35e4297d00053c988667e7d58f2e4ce52
[ "BSD-3-Clause" ]
null
null
null
public/js/views/statisticPeriod.js
Marina-Aksenova/myfz139
2a645fe35e4297d00053c988667e7d58f2e4ce52
[ "BSD-3-Clause" ]
null
null
null
public/js/views/statisticPeriod.js
Marina-Aksenova/myfz139
2a645fe35e4297d00053c988667e7d58f2e4ce52
[ "BSD-3-Clause" ]
null
null
null
$(document).ready(function() { var period = $('select').val(); if(period == '5'){ $("input[name='dateCalendarFirst']").parent().show(); $("input[name='dateCalendarLast']").parent().show(); } else { $("input[name='dateCalendarFirst']").parent().hide(); $("input[name='dateCalendarLast']").parent().hide(); } }); $(document).on('click', 'select', function() { var period = $('select').val(); if(period == '5'){ $("input[name='dateCalendarFirst']").parent().show(); $("input[name='dateCalendarLast']").parent().show(); } else { $("input[name='dateCalendarFirst']").parent().hide(); $("input[name='dateCalendarLast']").parent().hide(); } }); $(function () { $("input[name='dateCalendarFirst']").datepicker({ maxDate: 0, dateFormat: "dd.mm.yy" }); $("input[name='dateCalendarLast']").datepicker({ maxDate: 0, dateFormat: "dd.mm.yy" }); });
26.783784
61
0.52775
aec7a1e27ffafefe41e70004b3b3105be9ebdab5
1,127
js
JavaScript
components/Navigation/Navigation.js
palcisto/draftKingReactUI
ad193e9ca698ebaf5a0746620497a2ec447d882d
[ "MIT" ]
null
null
null
components/Navigation/Navigation.js
palcisto/draftKingReactUI
ad193e9ca698ebaf5a0746620497a2ec447d882d
[ "MIT" ]
null
null
null
components/Navigation/Navigation.js
palcisto/draftKingReactUI
ad193e9ca698ebaf5a0746620497a2ec447d882d
[ "MIT" ]
null
null
null
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React from 'react'; import './Navigation.scss'; import Link from '../Link'; function Navigation() { return ( <ul className="c-navigation" role="menu"> <li className="c-navigation__item"> <a className="c-navigation__link" href="/" onClick={Link.handleClick}>Lobby</a> </li> <li className="c-navigation__item"> <a className="c-navigation__link" href="/lineup" onClick={Link.handleClick}>My Lineups</a> </li> <li className="c-navigation__item"> <a className="c-navigation__link" href="/mycontests" onClick={Link.handleClick}>My Contests</a> </li> <li className="c-navigation__item"> <a className="c-navigation__link" href="/leagehub" onClick={Link.handleClick}>League Hub</a> </li> <li className="c-navigation__item"> <a className="c-navigation__link" href="/promotions" onClick={Link.handleClick}>Promotions</a> </li> </ul> ); } export default Navigation;
33.147059
103
0.658385
aec7d83e0c898149742a857415513930f4f87776
1,560
js
JavaScript
test/jsverify-env.js
fangel/Herbie
90637d4b06503d8b24b30c8d3890a2ebb9f66e11
[ "MIT" ]
6
2015-05-31T21:24:41.000Z
2020-01-10T01:33:46.000Z
test/jsverify-env.js
fangel/Herbie
90637d4b06503d8b24b30c8d3890a2ebb9f66e11
[ "MIT" ]
null
null
null
test/jsverify-env.js
fangel/Herbie
90637d4b06503d8b24b30c8d3890a2ebb9f66e11
[ "MIT" ]
null
null
null
var jsc = require("jsverify") , _ = require("lodash") , G_Counter = require("../lib/g-counter") var set = function (arb) { var arrayArb = jsc.array(arb); return { generator: arrayArb.generator.map(_.uniq), shrink: arrayArb.shrink.isomap(_.uniq, _.identity), show: arrayArb.show } } function fromArray(arrayOfPairs) { var res = {}; arrayOfPairs.forEach(function (p) { if (p[0] !== '') res[p[0]] = p[1]; }); return G_Counter.fromJS({type: 'g-counter', e: res}) } function toArray(m) { var res = []; var m_obj = m.toJS() Object.keys(m_obj.e).forEach(function (k) { res.push([k, m_obj.e[k]]); }); return res; } var g_counter = function(maxsize) { var natArbitrary = jsc.nat(maxsize) , pairArbitrary = jsc.pair(jsc.asciichar, natArbitrary) , arrayArbitrary = jsc.array(pairArbitrary) return { generator: arrayArbitrary.generator.map(fromArray), shrink: arrayArbitrary.shrink.isomap(fromArray, toArray), show: function (m) { var m_payload = m.toJS().e return "{" + Object.keys(m_payload).map(function (k) { return k + ": " + natArbitrary.show(m_payload[k]); }).join(", ") + "}"; } } } module.exports = { 'set': set, 'g_counter': g_counter } if (describe) { describe("The extra JSVerify generator", function() { describe("G-Counter", function() { it("produces instances of G_Counter", function() { jsc.assert(jsc.forall('g_counter', module.exports, function(X) { return G_Counter.is(X) })) }) }) }) }
24
72
0.610897