code
stringlengths 2
1.05M
|
|---|
/**
* @license
* v1.2.10-5
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)
* Copyright (c) 2019 Microsoft
* docs: https://pnp.github.io/pnpjs/
* source: https://github.com/pnp/pnpjs
* bugs: https://github.com/pnp/pnpjs/issues
*/
import { extend, objectDefinedNotNull, getAttrValueFromString, jsS, hOP, combine, getGUID, mergeHeaders, mergeOptions, getHashCode, stringIsNullOrEmpty } from '@pnp/common';
import { CachingOptions, Queryable, CachingParserWrapper, ODataBatch } from '@pnp/odata';
import { SPHttpClient, toAbsoluteUrl } from '@pnp/sp';
import { Logger } from '@pnp/logging';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
function objectPath() {
return "<ObjectPath Id=\"$$ID$$\" ObjectPathId=\"$$PATH_ID$$\" />";
}
function identityQuery() {
return "<ObjectIdentityQuery Id=\"$$ID$$\" ObjectPathId=\"$$PATH_ID$$\" />";
}
function opQuery(selectProperties, childSelectProperties) {
// this is fairly opaque behavior, but is the simplest way to convey the required information.
// if selectProperties.length === 0 or null then select all
// else select indicated properties
if (selectProperties === void 0) { selectProperties = null; }
if (childSelectProperties === void 0) { childSelectProperties = null; }
// if childSelectProperties === null do not include that block
// if childSelectProperties.length === 0 then select all
// else select indicated properties
var builder = [];
builder.push("<Query Id=\"$$ID$$\" ObjectPathId=\"$$PATH_ID$$\">");
if (selectProperties === null || selectProperties.length < 1) {
builder.push("<Query SelectAllProperties=\"true\" >");
builder.push("<Properties />");
builder.push("</Query >");
}
else {
builder.push("<Query SelectAllProperties=\"false\" >");
builder.push("<Properties>");
[].push.apply(builder, selectProperties.map(function (p) { return "<Property Name=\"" + p + "\" SelectAll=\"true\" />"; }));
builder.push("</Properties>");
builder.push("</Query >");
}
if (childSelectProperties !== null) {
if (childSelectProperties.length < 1) {
builder.push("<ChildItemQuery SelectAllProperties=\"true\" >");
builder.push("<Properties />");
builder.push("</ChildItemQuery >");
}
else {
builder.push("<ChildItemQuery SelectAllProperties=\"false\" >");
builder.push("<Properties>");
[].push.apply(builder, childSelectProperties.map(function (p) { return "<Property Name=\"" + p + "\" SelectAll=\"true\" />"; }));
builder.push("</Properties>");
builder.push("</ChildItemQuery >");
}
}
builder.push("</Query >");
return builder.join("");
}
function setProperty(name, type, value) {
var builder = [];
builder.push("<SetProperty Id=\"$$ID$$\" ObjectPathId=\"$$PATH_ID$$\" Name=\"" + name + "\">");
builder.push("<Parameter Type=\"" + type + "\">" + value + "</Parameter>");
builder.push("</SetProperty>");
return builder.join("");
}
function methodAction(name, params) {
var builder = [];
builder.push("<Method Id=\"$$ID$$\" ObjectPathId=\"$$PATH_ID$$\" Name=\"" + name + "\">");
if (params !== null) {
var arrParams = params.toArray();
if (arrParams.length < 1) {
builder.push("<Parameters />");
}
else {
builder.push("<Parameters>");
[].push.apply(builder, arrParams.map(function (p) { return "<Parameter Type=\"" + p.type + "\">" + p.value + "</Parameter>"; }));
builder.push("</Parameters>");
}
}
builder.push("</Method>");
return builder.join("");
}
function objectProperties(o) {
return Object.getOwnPropertyNames(o).map(function (name) {
var value = o[name];
if (typeof value === "boolean") {
return setProperty(name, "Boolean", "" + value);
}
else if (typeof value === "number") {
return setProperty(name, "Number", "" + value);
}
else if (typeof value === "string") {
return setProperty(name, "String", "" + value);
}
return "";
}, []);
}
function property(name) {
var actions = [];
for (var _i = 1; _i < arguments.length; _i++) {
actions[_i - 1] = arguments[_i];
}
return new ObjectPath("<Property Id=\"$$ID$$\" ParentId=\"$$PARENT_ID$$\" Name=\"" + name + "\" />", actions);
}
function staticMethod(name, typeId) {
var actions = [];
for (var _i = 2; _i < arguments.length; _i++) {
actions[_i - 2] = arguments[_i];
}
return new ObjectPath("<StaticMethod Id=\"$$ID$$\" Name=\"" + name + "\" TypeId=\"" + typeId + "\" />", actions);
}
function staticProperty(name, typeId) {
var actions = [];
for (var _i = 2; _i < arguments.length; _i++) {
actions[_i - 2] = arguments[_i];
}
return new ObjectPath("<StaticProperty Id=\"$$ID$$\" Name=\"" + name + "\" TypeId=\"" + typeId + "\" />", actions);
}
function objConstructor(typeId) {
var actions = [];
for (var _i = 1; _i < arguments.length; _i++) {
actions[_i - 1] = arguments[_i];
}
return new ObjectPath("<Constructor Id=\"$$ID$$\" TypeId=\"" + typeId + "\" />", actions);
}
/**
* Used to build parameters when calling methods
*/
var MethodParams = /** @class */ (function () {
function MethodParams(_p) {
if (_p === void 0) { _p = []; }
this._p = _p;
}
MethodParams.build = function (initValues) {
if (initValues === void 0) { initValues = []; }
var params = new MethodParams();
[].push.apply(params._p, initValues);
return params;
};
MethodParams.prototype.string = function (value) {
return this.a("String", value);
};
MethodParams.prototype.number = function (value) {
return this.a("Number", value.toString());
};
MethodParams.prototype.boolean = function (value) {
return this.a("Boolean", value.toString());
};
MethodParams.prototype.strArray = function (values) {
return this.a("Array", values.map(function (v) { return "<Object Type=\"String\">" + v + "</Object>"; }).join(""));
};
MethodParams.prototype.objectPath = function (inputIndex) {
return this.a("ObjectPath", inputIndex.toString());
};
MethodParams.prototype.toArray = function () {
return this._p;
};
MethodParams.prototype.a = function (type, value) {
this._p.push({ type: type, value: value });
return this;
};
return MethodParams;
}());
function method(name, params) {
var actions = [];
for (var _i = 2; _i < arguments.length; _i++) {
actions[_i - 2] = arguments[_i];
}
var builder = [];
builder.push("<Method Id=\"$$ID$$\" ParentId=\"$$PARENT_ID$$\" Name=\"" + name + "\">");
if (params !== null) {
var arrParams = params.toArray();
if (arrParams.length < 1) {
builder.push("<Parameters />");
}
else {
builder.push("<Parameters>");
[].push.apply(builder, arrParams.map(function (p) {
if (p.type === "ObjectPath") {
return "<Parameter ObjectPathId=\"$$OP_PARAM_ID_" + p.value + "$$\" />";
}
return "<Parameter Type=\"" + p.type + "\">" + p.value + "</Parameter>";
}));
builder.push("</Parameters>");
}
}
builder.push("</Method>");
return new ObjectPath(builder.join(""), actions);
}
/**
* Transforms an array of object paths into a request xml body. Does not do placeholder substitutions.
*
* @param objectPaths The object paths for which we want to generate a body
*/
function writeObjectPathBody(objectPaths) {
var actions = [];
var paths = [];
objectPaths.forEach(function (op) {
paths.push(op.path);
actions.push.apply(actions, op.actions);
});
// create our xml payload
return [
"<Request xmlns=\"http://schemas.microsoft.com/sharepoint/clientquery/2009\" SchemaVersion=\"15.0.0.0\" LibraryVersion=\"16.0.0.0\" ApplicationName=\"PnPjs\">",
"<Actions>",
actions.join(""),
"</Actions>",
"<ObjectPaths>",
paths.join(""),
"</ObjectPaths>",
"</Request>",
].join("");
}
/**
* Represents an ObjectPath used when querying ProcessQuery
*/
var ObjectPath = /** @class */ (function () {
function ObjectPath(path, actions, id, replaceAfter) {
if (actions === void 0) { actions = []; }
if (id === void 0) { id = -1; }
if (replaceAfter === void 0) { replaceAfter = []; }
this.path = path;
this.actions = actions;
this.id = id;
this.replaceAfter = replaceAfter;
}
return ObjectPath;
}());
/**
* Replaces all found instance of the $$ID$$ placeholder in the supplied xml string
*
* @param id New value to be insterted
* @param xml The existing xml fragment in which the replace should occur
*/
function opSetId(id, xml) {
return xml.replace(/\$\$ID\$\$/g, id);
}
/**
* Replaces all found instance of the $$PATH_ID$$ placeholder in the supplied xml string
*
* @param id New value to be insterted
* @param xml The existing xml fragment in which the replace should occur
*/
function opSetPathId(id, xml) {
return xml.replace(/\$\$PATH_ID\$\$/g, id);
}
/**
* Replaces all found instance of the $$PARENT_ID$$ placeholder in the supplied xml string
*
* @param id New value to be insterted
* @param xml The existing xml fragment in which the replace should occur
*/
function opSetParentId(id, xml) {
return xml.replace(/\$\$PARENT_ID\$\$/g, id);
}
/**
* Replaces all found instance of the $$OP_PARAM_ID$$ placeholder in the supplied xml string
*
* @param map A mapping where [index] = replaced_object_path_id
* @param xml The existing xml fragment in which the replace should occur
* @param indexMapper Used when creating batches, not meant for direct use external to this library
*/
function opSetPathParamId(map, xml, indexMapper) {
if (indexMapper === void 0) { indexMapper = function (n) { return n; }; }
// this approach works because input params must come before the things that need them
// meaning the right id will always be in the map
var matches = /\$\$OP_PARAM_ID_(\d+)\$\$/ig.exec(xml);
if (matches !== null) {
for (var i = 1; i < matches.length; i++) {
var index = parseInt(matches[i], 10);
var regex = new RegExp("\\$\\$OP_PARAM_ID_" + index + "\\$\\$", "ig");
xml = xml.replace(regex, map[indexMapper(index)].toString());
}
}
return xml;
}
/**
* Represents a collection of IObjectPaths
*/
var ObjectPathQueue = /** @class */ (function () {
function ObjectPathQueue(_paths, _relationships) {
if (_paths === void 0) { _paths = []; }
if (_relationships === void 0) { _relationships = {}; }
this._paths = _paths;
this._relationships = _relationships;
this._contextIndex = -1;
this._siteIndex = -1;
this._webIndex = -1;
}
/**
* Adds an object path to the queue
*
* @param op The action to add
* @returns The index of the added object path
*/
ObjectPathQueue.prototype.add = function (op) {
this.dirty();
this._paths.push(op);
return this.lastIndex;
};
ObjectPathQueue.prototype.addChildRelationship = function (parentIndex, childIndex) {
if (objectDefinedNotNull(this._relationships["_" + parentIndex])) {
this._relationships["_" + parentIndex].push(childIndex);
}
else {
this._relationships["_" + parentIndex] = [childIndex];
}
};
ObjectPathQueue.prototype.getChildRelationship = function (parentIndex) {
if (objectDefinedNotNull(this._relationships["_" + parentIndex])) {
return this._relationships["_" + parentIndex];
}
else {
return [];
}
};
ObjectPathQueue.prototype.getChildRelationships = function () {
return this._relationships;
};
/**
* Appends an action to the supplied IObjectPath, replacing placeholders
*
* @param op IObjectPath to which the action will be appended
* @param action The action to append
*/
ObjectPathQueue.prototype.appendAction = function (op, action) {
this.dirty();
op.actions.push(action);
return this;
};
/**
* Appends an action to the last IObjectPath in the collection
*
* @param action
*/
ObjectPathQueue.prototype.appendActionToLast = function (action) {
return this.appendAction(this.last, action);
};
/**
* Creates a linked copy of this ObjectPathQueue
*/
ObjectPathQueue.prototype.copy = function () {
var copy = new ObjectPathQueue(this.toArray(), extend({}, this._relationships));
copy._contextIndex = this._contextIndex;
copy._siteIndex = this._siteIndex;
copy._webIndex = this._webIndex;
return copy;
};
/**
* Creates an independent clone of this ObjectPathQueue
*/
ObjectPathQueue.prototype.clone = function () {
var clone = new ObjectPathQueue(this.toArray().map(function (p) { return Object.assign({}, p); }), extend({}, this._relationships));
clone._contextIndex = this._contextIndex;
clone._siteIndex = this._siteIndex;
clone._webIndex = this._webIndex;
return clone;
};
/**
* Gets a copy of this instance's paths
*/
ObjectPathQueue.prototype.toArray = function () {
return this._paths.slice(0);
};
Object.defineProperty(ObjectPathQueue.prototype, "last", {
/**
* The last IObjectPath instance added to this collection
*/
get: function () {
if (this._paths.length < 1) {
return null;
}
return this._paths[this.lastIndex];
},
enumerable: true,
configurable: true
});
Object.defineProperty(ObjectPathQueue.prototype, "lastIndex", {
/**
* Index of the last IObjectPath added to the queue
*/
get: function () {
return this._paths.length - 1;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ObjectPathQueue.prototype, "siteIndex", {
/**
* Gets the index of the current site in the queue
*/
get: function () {
if (this._siteIndex < 0) {
// this needs to be here in case we create it
var contextIndex = this.contextIndex;
this._siteIndex = this.add(property("Site",
// actions
objectPath()));
this.addChildRelationship(contextIndex, this._siteIndex);
}
return this._siteIndex;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ObjectPathQueue.prototype, "webIndex", {
/**
* Gets the index of the current web in the queue
*/
get: function () {
if (this._webIndex < 0) {
// this needs to be here in case we create it
var contextIndex = this.contextIndex;
this._webIndex = this.add(property("Web",
// actions
objectPath()));
this.addChildRelationship(contextIndex, this._webIndex);
}
return this._webIndex;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ObjectPathQueue.prototype, "contextIndex", {
/**
* Gets the index of the Current context in the queue, can be used to establish parent -> child rels
*/
get: function () {
if (this._contextIndex < 0) {
this._contextIndex = this.add(staticProperty("Current", "{3747adcd-a3c3-41b9-bfab-4a64dd2f1e0a}",
// actions
objectPath()));
}
return this._contextIndex;
},
enumerable: true,
configurable: true
});
ObjectPathQueue.prototype.toBody = function () {
if (objectDefinedNotNull(this._xml)) {
return this._xml;
}
// create our xml payload
this._xml = writeObjectPathBody(this.toIndexedTree());
return this._xml;
};
/**
* Conducts the string replacements for id, parent id, and path id
*
* @returns The tree with all string replacements made
*/
ObjectPathQueue.prototype.toIndexedTree = function () {
var _this = this;
var builderIndex = -1;
var lastOpId = -1;
var idIndexMap = [];
return this.toArray().map(function (op, index, arr) {
var opId = ++builderIndex;
// track the array index => opId relationship
idIndexMap.push(opId);
// do path replacements
op.path = opSetPathParamId(idIndexMap, opSetId(opId.toString(), op.path));
if (lastOpId >= 0) {
// if we have a parent do the replace
op.path = opSetParentId(lastOpId.toString(), op.path);
}
// rewrite actions with placeholders replaced
op.actions = op.actions.map(function (a) {
var actionId = ++builderIndex;
return opSetId(actionId.toString(), opSetPathId(opId.toString(), a));
});
// handle any specific child relationships
_this.getChildRelationship(index).forEach(function (childIndex) {
// set the parent id for our non-immediate children, thus removing the token so it isn't overwritten
arr[childIndex].path = opSetParentId(opId.toString(), arr[childIndex].path);
});
// and remember our last object path id for the parent replace above
lastOpId = opId;
return op;
});
};
/**
* Dirties this queue clearing any cached data
*/
ObjectPathQueue.prototype.dirty = function () {
this._xml = null;
};
return ObjectPathQueue;
}());
/**
* Used within the request pipeline to parse ProcessQuery results
*/
var ProcessQueryParser = /** @class */ (function () {
function ProcessQueryParser(op) {
this.op = op;
}
/**
* Parses the response checking for errors
*
* @param r Response object
*/
ProcessQueryParser.prototype.parse = function (r) {
var _this = this;
return r.text().then(function (t) {
if (!r.ok) {
throw Error(t);
}
try {
return JSON.parse(t);
}
catch (e) {
// special case in ProcessQuery where we got an error back, but it is not in json format
throw Error(t);
}
}).then(function (parsed) {
// here we need to check for an error body
if (parsed.length > 0 && hOP(parsed[0], "ErrorInfo") && parsed[0].ErrorInfo !== null) {
throw Error(jsS(parsed[0].ErrorInfo));
}
return _this.findResult(parsed);
});
};
ProcessQueryParser.prototype.findResult = function (json) {
for (var i = 0; i < this.op.actions.length; i++) {
var a = this.op.actions[i];
// let's see if the result is null based on the ObjectPath action, if it exists
// <ObjectPath Id="8" ObjectPathId="7" />
if (/^<ObjectPath /i.test(a)) {
var result = this.getParsedResultById(json, parseInt(getAttrValueFromString(a, "Id"), 10));
if (!result || (result && result.IsNull)) {
return Promise.resolve(null);
}
}
// let's see if we have a query result
// <Query Id="5" ObjectPathId = "3" >
if (/^<Query /i.test(a)) {
var result = this.getParsedResultById(json, parseInt(getAttrValueFromString(a, "Id"), 10));
if (result && hOP(result, "_Child_Items_")) {
// this is a collection result
/* tslint:disable:no-string-literal */
return Promise.resolve(result["_Child_Items_"]);
/* tslint:enable:no-string-literal */
}
else {
// this is an instance result
return Promise.resolve(result);
}
}
// this is an invokeMethodAction so the last method action corresponds to our result
if (i === (this.op.actions.length - 1) && /^<Method /i.test(a)) {
return Promise.resolve(this.getParsedResultById(json, parseInt(getAttrValueFromString(a, "Id"), 10)));
}
}
// no result could be found so we are effectively returning void
// issue is we really don't know if we should be returning void (a method invocation with a void return) or
// if we just didn't find something above. We will let downstream things worry about that
};
/**
* Locates a result by ObjectPath id
*
* @param parsed the parsed JSON body from the response
* @param id The ObjectPath id whose result we want
*/
ProcessQueryParser.prototype.getParsedResultById = function (parsed, id) {
for (var i = 0; i < parsed.length; i++) {
if (parsed[i] === id) {
return parsed[i + 1];
}
}
return null;
};
return ProcessQueryParser;
}());
var ProcessQueryPath = "_vti_bin/client.svc/ProcessQuery";
var ClientSvcQueryable = /** @class */ (function (_super) {
__extends(ClientSvcQueryable, _super);
function ClientSvcQueryable(parent, _objectPaths) {
if (parent === void 0) { parent = ""; }
if (_objectPaths === void 0) { _objectPaths = null; }
var _this = _super.call(this) || this;
_this._objectPaths = _objectPaths;
_this._selects = [];
_this._batch = null;
_this._batchDependency = null;
if (typeof parent === "string") {
// we assume the parent here is an absolute url to a web
_this._parentUrl = parent;
_this._url = combine(parent.replace(ProcessQueryPath, ""), ProcessQueryPath);
if (!objectDefinedNotNull(_this._objectPaths)) {
_this._objectPaths = new ObjectPathQueue();
}
}
else {
_this._parentUrl = parent._parentUrl;
_this._url = combine(parent._parentUrl, ProcessQueryPath);
if (!objectDefinedNotNull(_objectPaths)) {
_this._objectPaths = parent._objectPaths.clone();
}
_this.configureFrom(parent);
}
return _this;
}
/**
* Choose which fields to return
*
* @param selects One or more fields to return
*/
ClientSvcQueryable.prototype.select = function () {
var selects = [];
for (var _i = 0; _i < arguments.length; _i++) {
selects[_i] = arguments[_i];
}
[].push.apply(this._selects, selects);
return this;
};
/**
* Adds this query to the supplied batch
*
*/
ClientSvcQueryable.prototype.inBatch = function (batch) {
if (this.batch !== null) {
throw Error("This query is already part of a batch.");
}
if (objectDefinedNotNull(batch)) {
this._batch = batch;
this._batchDependency = batch.addDependency();
}
return this;
};
/**
* Gets the full url with query information
*
*/
ClientSvcQueryable.prototype.toUrlAndQuery = function () {
return _super.prototype.toUrl.call(this) + "?" + Array.from(this.query).map(function (v) { return v[0] + "=" + v[1]; }).join("&");
};
ClientSvcQueryable.prototype.getSelects = function () {
return objectDefinedNotNull(this._selects) ? this._selects : [];
};
/**
* Gets a child object based on this instance's paths and the supplied paramters
*
* @param factory Instance factory of the child type
* @param methodName Name of the method used to load the child
* @param params Parameters required by the method to load the child
*/
ClientSvcQueryable.prototype.getChild = function (factory, methodName, params) {
var objectPaths = this._objectPaths.copy();
objectPaths.add(method(methodName, params,
// actions
objectPath()));
return new factory(this, objectPaths);
};
/**
* Gets a property of the current instance
*
* @param factory Instance factory of the child type
* @param propertyName Name of the property to load
*/
ClientSvcQueryable.prototype.getChildProperty = function (factory, propertyName) {
var objectPaths = this._objectPaths.copy();
objectPaths.add(property(propertyName));
return new factory(this, objectPaths);
};
/**
* Sends a request
*
* @param op
* @param options
* @param parser
*/
ClientSvcQueryable.prototype.send = function (objectPaths, options, parser) {
if (options === void 0) { options = {}; }
if (parser === void 0) { parser = null; }
// here we need to create a clone because all the string indexes and references
// will be updated and all need to relate for this operation being sent. The parser
// and the postCore method need to share an independent value of the objectPaths
// See for https://github.com/pnp/pnpjs/issues/419 for details
var clonedOps = objectPaths.clone();
if (!objectDefinedNotNull(parser)) {
// we assume here that we want to return for this index path
parser = new ProcessQueryParser(clonedOps.last);
}
if (this.hasBatch) {
// this is using the options variable to pass some extra information downstream to the batch
options = extend(options, {
clientsvc_ObjectPaths: clonedOps,
});
}
else {
if (!hOP(options, "body")) {
options = extend(options, {
body: clonedOps.toBody(),
});
}
}
return _super.prototype.postCore.call(this, options, parser);
};
/**
* Sends the request, merging the result data with a new instance of factory
*/
ClientSvcQueryable.prototype.sendGet = function (factory) {
var _this = this;
var ops = this._objectPaths.copy().appendActionToLast(opQuery(this.getSelects()));
return this.send(ops).then(function (r) { return extend(new factory(_this), r); });
};
/**
* Sends the request, merging the result data array with a new instances of factory
*/
ClientSvcQueryable.prototype.sendGetCollection = function (factory) {
var ops = this._objectPaths.copy().appendActionToLast(opQuery([], this.getSelects()));
return this.send(ops).then(function (r) { return r.map(function (d) { return extend(factory(d), d); }); });
};
/**
* Invokes the specified method on the server and returns the result
*
* @param methodName Name of the method to invoke
* @param params Method parameters
* @param actions Any additional actions to execute in addition to the method invocation (set property for example)
*/
ClientSvcQueryable.prototype.invokeMethod = function (methodName, params) {
if (params === void 0) { params = null; }
var actions = [];
for (var _i = 2; _i < arguments.length; _i++) {
actions[_i - 2] = arguments[_i];
}
return this.invokeMethodImpl(methodName, params, actions, opQuery([], null));
};
/**
* Invokes a method action that returns a single result and does not have an associated query (ex: GetDescription on Term)
*
* @param methodName Name of the method to invoke
* @param params Method parameters
* @param actions Any additional actions to execute in addition to the method invocation (set property for example)
*/
ClientSvcQueryable.prototype.invokeMethodAction = function (methodName, params) {
if (params === void 0) { params = null; }
var actions = [];
for (var _i = 2; _i < arguments.length; _i++) {
actions[_i - 2] = arguments[_i];
}
return this.invokeMethodImpl(methodName, params, actions, null, true);
};
/**
* Invokes the specified non-query method on the server
*
* @param methodName Name of the method to invoke
* @param params Method parameters
* @param actions Any additional actions to execute in addition to the method invocation (set property for example)
*/
ClientSvcQueryable.prototype.invokeNonQuery = function (methodName, params) {
if (params === void 0) { params = null; }
var actions = [];
for (var _i = 2; _i < arguments.length; _i++) {
actions[_i - 2] = arguments[_i];
}
// by definition we are not returning anything from these calls so we should not be caching the results
this._useCaching = false;
return this.invokeMethodImpl(methodName, params, actions, null, true);
};
/**
* Invokes the specified method on the server and returns the resulting collection
*
* @param methodName Name of the method to invoke
* @param params Method parameters
* @param actions Any additional actions to execute in addition to the method invocation (set property for example)
*/
ClientSvcQueryable.prototype.invokeMethodCollection = function (methodName, params) {
if (params === void 0) { params = null; }
var actions = [];
for (var _i = 2; _i < arguments.length; _i++) {
actions[_i - 2] = arguments[_i];
}
return this.invokeMethodImpl(methodName, params, actions, opQuery([], []));
};
/**
* Updates this instance, returning a copy merged with the updated data after the update
*
* @param properties Plain object of the properties and values to update
* @param factory Factory method use to create a new instance of FactoryType
*/
ClientSvcQueryable.prototype.invokeUpdate = function (properties, factory) {
var _this = this;
var ops = this._objectPaths.copy();
// append setting all the properties to this instance
objectProperties(properties).map(function (a) { return ops.appendActionToLast(a); });
ops.appendActionToLast(opQuery([], null));
return this.send(ops).then(function (r) { return extend(new factory(_this), r); });
};
/**
* Converts the current instance to a request context
*
* @param verb The request verb
* @param options The set of supplied request options
* @param parser The supplied ODataParser instance
* @param pipeline Optional request processing pipeline
*/
ClientSvcQueryable.prototype.toRequestContext = function (verb, options, parser, pipeline) {
var _this = this;
return toAbsoluteUrl(this.toUrlAndQuery()).then(function (url) {
mergeOptions(options, _this._options);
var headers = new Headers();
mergeHeaders(headers, options.headers);
mergeHeaders(headers, {
"accept": "*/*",
"content-type": "text/xml",
});
options = extend(options, { headers: headers });
// we need to do some special cache handling to ensure we have a good key
if (_this._useCaching) {
var keyStr = options.body;
if (stringIsNullOrEmpty(keyStr)) {
if (hOP(options, "clientsvc_ObjectPaths")) {
// if we are using caching and batching together we need to create our string from the paths stored for the
// batching operation (see: https://github.com/pnp/pnpjs/issues/449) but not update the ones passed to
// the batch as they will be indexed during the batch creation process
keyStr = options.clientsvc_ObjectPaths.clone().toBody();
}
else {
// this case shouldn't happen
keyStr = "";
}
}
// because all the requests use the same url they would collide in the cache we use a special key
var cacheKey = "PnPjs.ProcessQueryClient(" + getHashCode(keyStr) + ")";
if (objectDefinedNotNull(_this._cachingOptions)) {
// if our key ends in the ProcessQuery url we overwrite it
if (/\/client\.svc\/ProcessQuery\?$/i.test(_this._cachingOptions.key)) {
_this._cachingOptions.key = cacheKey;
}
}
else {
_this._cachingOptions = new CachingOptions(cacheKey);
}
}
var dependencyDispose = _this.hasBatch ? _this._batchDependency : function () { return; };
// build our request context
var context = {
batch: _this.batch,
batchDependency: dependencyDispose,
cachingOptions: _this._cachingOptions,
clientFactory: function () { return new SPHttpClient(); },
isBatched: _this.hasBatch,
isCached: _this._useCaching,
options: options,
parser: parser,
pipeline: pipeline,
requestAbsoluteUrl: url,
requestId: getGUID(),
verb: verb,
};
return context;
});
};
/**
* Blocks a batch call from occuring, MUST be cleared by calling the returned function
*/
ClientSvcQueryable.prototype.addBatchDependency = function () {
if (this._batch !== null) {
return this._batch.addDependency();
}
return function () { return null; };
};
Object.defineProperty(ClientSvcQueryable.prototype, "hasBatch", {
/**
* Indicates if the current query has a batch associated
*
*/
get: function () {
return objectDefinedNotNull(this._batch);
},
enumerable: true,
configurable: true
});
Object.defineProperty(ClientSvcQueryable.prototype, "batch", {
/**
* The batch currently associated with this query or null
*
*/
get: function () {
return this.hasBatch ? this._batch : null;
},
enumerable: true,
configurable: true
});
/**
* Executes the actual invoke method call
*
* @param methodName Name of the method to invoke
* @param params Method parameters
* @param queryAction Specifies the query action to take
*/
ClientSvcQueryable.prototype.invokeMethodImpl = function (methodName, params, actions, queryAction, isAction) {
if (isAction === void 0) { isAction = false; }
var ops = this._objectPaths.copy();
if (isAction) {
ops.appendActionToLast(methodAction(methodName, params));
}
else {
ops.add(method.apply(void 0, [methodName, params].concat([objectPath()].concat(actions, [queryAction]))));
}
return this.send(ops);
};
return ClientSvcQueryable;
}(Queryable));
/**
* Implements ODataBatch for use with the ObjectPath framework
*/
var ObjectPathBatch = /** @class */ (function (_super) {
__extends(ObjectPathBatch, _super);
function ObjectPathBatch(parentUrl, _batchId) {
var _this = _super.call(this, _batchId) || this;
_this.parentUrl = parentUrl;
return _this;
}
ObjectPathBatch.prototype.executeImpl = function () {
// if we don't have any requests, don't bother sending anything
// this could be due to caching further upstream, or just an empty batch
if (this.requests.length < 1) {
Logger.write("Resolving empty batch.", 1 /* Info */);
return Promise.resolve();
}
var executor = new BatchExecutor(this.parentUrl, this.batchId);
executor.appendRequests(this.requests);
return executor.execute();
};
return ObjectPathBatch;
}(ODataBatch));
var BatchExecutor = /** @class */ (function (_super) {
__extends(BatchExecutor, _super);
function BatchExecutor(parentUrl, batchId) {
var _this = _super.call(this, parentUrl) || this;
_this.batchId = batchId;
_this._requests = [];
_this._builderIndex = 1;
// we add our session object path and hard code in the IDs so we can reference it
var method$$1 = staticMethod("GetTaxonomySession", "{981cbc68-9edc-4f8d-872f-71146fcbb84f}");
method$$1.path = opSetId("0", method$$1.path);
method$$1.actions.push(opSetId("1", opSetPathId("0", objectPath())));
_this._objectPaths.add(method$$1);
return _this;
}
BatchExecutor.prototype.appendRequests = function (requests) {
var _this = this;
requests.forEach(function (request) {
// grab the special property we added to options when we created the batch info
var pathQueue = request.options.clientsvc_ObjectPaths;
var paths = pathQueue.toArray();
// getChildRelationships
if (paths.length < 0) {
return;
}
var indexMappingFunction = function (n) { return n; };
if (/GetTaxonomySession/i.test(paths[0].path)) {
// drop the first thing as it is a get session object path, which we add once for the entire batch
paths = paths.slice(1);
// replace the next item's parent id with 0, which will be the id of the session call at the root of this request
paths[0].path = opSetParentId("0", paths[0].path);
indexMappingFunction = function (n) { return n - 1; };
}
var lastOpId = -1;
var idIndexMap = [];
paths.map(function (op, index, arr) {
// rewrite the path string
var opId = ++_this._builderIndex;
// track the array index => opId relationship
idIndexMap.push(opId);
var path = opSetPathParamId(idIndexMap, opSetId(opId.toString(), op.path), indexMappingFunction);
if (lastOpId >= 0) {
path = opSetParentId(lastOpId.toString(), path);
}
// rewrite actions with placeholders replaced
var opActions = op.actions.map(function (a) {
var actionId = ++_this._builderIndex;
return opSetId(actionId.toString(), opSetPathId(opId.toString(), a));
});
// handle any specific child relationships
// the childIndex is reduced by 1 because we are removing the Session Path
pathQueue.getChildRelationship(index + 1).map(function (i) { return i - 1; }).forEach(function (childIndex) {
// set the parent id for our non-immediate children
arr[childIndex].path = opSetParentId(opId.toString(), arr[childIndex].path);
});
// and remember our last object path id for the parent replace above
lastOpId = opId;
// return our now substituted path and actions as a new object path instance
return new ObjectPath(path, opActions);
}).forEach(function (op) { return _this._objectPaths.add(op); });
// get this once
var obPaths = _this._objectPaths.toArray();
// create a new parser to handle finding the result based on the path
var parser = new ProcessQueryParser(obPaths[obPaths.length - 1]);
if (request.parser instanceof CachingParserWrapper) {
// handle special case of caching
request.parser = new ProcessQueryCachingParserWrapper(parser, request.parser);
}
else {
request.parser = parser;
}
// add the request to our batch requests
_this._requests.push(request);
// remove the temp property
delete request.options.clientsvc_ObjectPaths;
});
};
BatchExecutor.prototype.execute = function () {
var _this = this;
Logger.write("[" + this.batchId + "] (" + (new Date()).getTime() + ") Executing batch with " + this._requests.length + " requests.", 1 /* Info */);
// create our request body from all the merged object paths
var options = {
body: writeObjectPathBody(this._objectPaths.toArray()),
};
Logger.write("[" + this.batchId + "] (" + (new Date()).getTime() + ") Sending batch request.", 1 /* Info */);
// send the batch
return _super.prototype.postCore.call(this, options, new BatchParser()).then(function (rawResponse) {
Logger.write("[" + _this.batchId + "] (" + (new Date()).getTime() + ") Resolving batched requests.", 1 /* Info */);
return _this._requests.reduce(function (chain, request) {
Logger.write("[" + request.id + "] (" + (new Date()).getTime() + ") Resolving request in batch " + _this.batchId + ".", 1 /* Info */);
return chain.then(function (_) { return request.parser.findResult(rawResponse).then(request.resolve).catch(request.reject); });
}, Promise.resolve());
});
};
return BatchExecutor;
}(ClientSvcQueryable));
/**
* Used to return the raw results from parsing the batch
*/
var BatchParser = /** @class */ (function (_super) {
__extends(BatchParser, _super);
function BatchParser() {
return _super.call(this, null) || this;
}
BatchParser.prototype.findResult = function (json) {
// we leave it to the individual request parsers to find their results in the raw json body
return json;
};
return BatchParser;
}(ProcessQueryParser));
/**
* Handles processing batched results that are also cached
*/
var ProcessQueryCachingParserWrapper = /** @class */ (function (_super) {
__extends(ProcessQueryCachingParserWrapper, _super);
function ProcessQueryCachingParserWrapper(parser, wrapper) {
return _super.call(this, parser, wrapper.cacheOptions) || this;
}
ProcessQueryCachingParserWrapper.prototype.findResult = function (json) {
var _this = this;
return this.parser.findResult(json).then(function (d) { return _this.cacheData(d); });
};
return ProcessQueryCachingParserWrapper;
}(CachingParserWrapper));
export { ObjectPathBatch, ClientSvcQueryable, ObjectPath, opSetId, opSetPathId, opSetParentId, opSetPathParamId, ObjectPathQueue, objectPath, identityQuery, opQuery, setProperty, methodAction, objectProperties, property, staticMethod, staticProperty, objConstructor, MethodParams, method, ProcessQueryParser, writeObjectPathBody };
//# sourceMappingURL=sp-clientsvc.es5.js.map
|
import React from 'react';
import MediaBox from '../src/MediaBox';
export default
<MediaBox src="assets/sample-1.jpg" caption="A demo media box1" width="650"/>;
|
Object.defineProperty(exports, "__esModule", { value: true });
var observable_1 = require("../../../data/observable");
var style_1 = require("../../styling/style");
exports.Style = style_1.Style;
exports.unsetValue = new Object();
var symbolPropertyMap = {};
var cssSymbolPropertyMap = {};
var inheritableProperties = new Array();
var inheritableCssProperties = new Array();
function print(map) {
var symbols = Object.getOwnPropertySymbols(map);
for (var _i = 0, symbols_1 = symbols; _i < symbols_1.length; _i++) {
var symbol = symbols_1[_i];
var prop = map[symbol];
if (!prop.registered) {
console.log("Property " + prop.name + " not Registered!!!!!");
}
}
}
function _printUnregisteredProperties() {
print(symbolPropertyMap);
print(cssSymbolPropertyMap);
}
exports._printUnregisteredProperties = _printUnregisteredProperties;
var Property = (function () {
function Property(options) {
this.enumerable = true;
this.configurable = true;
var name = options.name;
this.name = name;
var key = Symbol(name + ":propertyKey");
this.key = key;
var getDefault = Symbol(name + ":getDefault");
this.getDefault = getDefault;
var setNative = Symbol(name + ":setNative");
this.setNative = setNative;
var defaultValueKey = Symbol(name + ":nativeDefaultValue");
this.defaultValueKey = defaultValueKey;
var defaultValue = options.defaultValue;
this.defaultValue = defaultValue;
var eventName = name + "Change";
var equalityComparer = options.equalityComparer;
var affectsLayout = options.affectsLayout;
var valueChanged = options.valueChanged;
var valueConverter = options.valueConverter;
this.set = function (value) {
var reset = value === exports.unsetValue;
var unboxedValue;
var wrapped;
if (reset) {
unboxedValue = defaultValue;
}
else {
wrapped = value && value.wrapped;
unboxedValue = wrapped ? observable_1.WrappedValue.unwrap(value) : value;
if (valueConverter && typeof unboxedValue === "string") {
unboxedValue = valueConverter(unboxedValue);
}
}
var currentValue = key in this ? this[key] : defaultValue;
var changed = equalityComparer ? !equalityComparer(currentValue, unboxedValue) : currentValue !== unboxedValue;
if (wrapped || changed) {
var setNativeValue = this.nativeView && this[setNative];
if (reset) {
delete this[key];
if (valueChanged) {
valueChanged(this, currentValue, unboxedValue);
}
if (setNativeValue) {
if (defaultValueKey in this) {
this[setNative](this[defaultValueKey]);
delete this[defaultValueKey];
}
else {
this[setNative](defaultValue);
}
}
}
else {
this[key] = unboxedValue;
if (valueChanged) {
valueChanged(this, currentValue, unboxedValue);
}
if (setNativeValue) {
if (!(defaultValueKey in this)) {
this[defaultValueKey] = this[getDefault] ? this[getDefault]() : defaultValue;
}
this[setNative](unboxedValue);
}
}
if (this.hasListeners(eventName)) {
this.notify({
eventName: eventName,
propertyName: name,
object: this,
value: unboxedValue,
oldValue: currentValue
});
}
if (affectsLayout) {
this.requestLayout();
}
}
};
this.get = function () {
return key in this ? this[key] : defaultValue;
};
this.nativeValueChange = function (owner, value) {
var currentValue = key in owner ? owner[key] : defaultValue;
var changed = equalityComparer ? !equalityComparer(currentValue, value) : currentValue !== value;
if (changed) {
owner[key] = value;
if (valueChanged) {
valueChanged(owner, currentValue, value);
}
if (owner.nativeView && !(defaultValueKey in owner)) {
owner[defaultValueKey] = owner[getDefault] ? owner[getDefault]() : defaultValue;
}
if (owner.hasListeners(eventName)) {
owner.notify({
eventName: eventName,
propertyName: name,
object: owner,
value: value,
oldValue: currentValue
});
}
if (affectsLayout) {
owner.requestLayout();
}
}
};
symbolPropertyMap[key] = this;
}
Property.prototype.register = function (cls) {
if (this.registered) {
throw new Error("Property " + this.name + " already registered.");
}
this.registered = true;
Object.defineProperty(cls.prototype, this.name, this);
};
Property.prototype.isSet = function (instance) {
return this.key in instance;
};
return Property;
}());
exports.Property = Property;
var CoercibleProperty = (function (_super) {
__extends(CoercibleProperty, _super);
function CoercibleProperty(options) {
var _this = _super.call(this, options) || this;
var name = options.name;
var key = _this.key;
var getDefault = _this.getDefault;
var setNative = _this.setNative;
var defaultValueKey = _this.defaultValueKey;
var defaultValue = _this.defaultValue;
var coerceKey = Symbol(name + ":coerceKey");
var eventName = name + "Change";
var affectsLayout = options.affectsLayout;
var equalityComparer = options.equalityComparer;
var valueChanged = options.valueChanged;
var valueConverter = options.valueConverter;
var coerceCallback = options.coerceValue;
_this.coerce = function (target) {
var originalValue = coerceKey in target ? target[coerceKey] : defaultValue;
target[name] = originalValue;
};
_this.set = function (value) {
var reset = value === exports.unsetValue;
var unboxedValue;
var wrapped;
if (reset) {
unboxedValue = defaultValue;
delete this[coerceKey];
}
else {
wrapped = value && value.wrapped;
unboxedValue = wrapped ? observable_1.WrappedValue.unwrap(value) : value;
if (valueConverter && typeof unboxedValue === "string") {
unboxedValue = valueConverter(unboxedValue);
}
this[coerceKey] = unboxedValue;
unboxedValue = coerceCallback(this, unboxedValue);
}
var currentValue = key in this ? this[key] : defaultValue;
var changed = equalityComparer ? !equalityComparer(currentValue, unboxedValue) : currentValue !== unboxedValue;
if (wrapped || changed) {
var setNativeValue = this.nativeView && this[setNative];
if (reset) {
delete this[key];
if (valueChanged) {
valueChanged(this, currentValue, unboxedValue);
}
if (setNativeValue) {
if (defaultValueKey in this) {
this[setNative](this[defaultValueKey]);
delete this[defaultValueKey];
}
else {
this[setNative](defaultValue);
}
}
}
else {
this[key] = unboxedValue;
if (valueChanged) {
valueChanged(this, currentValue, unboxedValue);
}
if (setNativeValue) {
if (!(defaultValueKey in this)) {
this[defaultValueKey] = this[getDefault] ? this[getDefault]() : defaultValue;
}
this[setNative](unboxedValue);
}
}
if (this.hasListeners(eventName)) {
this.notify({
eventName: eventName,
propertyName: name,
object: this,
value: unboxedValue,
oldValue: currentValue
});
}
if (affectsLayout) {
this.requestLayout();
}
}
};
return _this;
}
return CoercibleProperty;
}(Property));
exports.CoercibleProperty = CoercibleProperty;
var InheritedProperty = (function (_super) {
__extends(InheritedProperty, _super);
function InheritedProperty(options) {
var _this = _super.call(this, options) || this;
var name = options.name;
var key = _this.key;
var defaultValue = options.defaultValue;
var sourceKey = Symbol(name + ":valueSourceKey");
_this.sourceKey = sourceKey;
var setBase = _this.set;
var setFunc = function (valueSource) { return function (value) {
var that = this;
var unboxedValue;
var newValueSource;
if (value === exports.unsetValue) {
var parent_1 = that.parent;
if (parent_1 && parent_1[sourceKey] !== 0) {
unboxedValue = parent_1[name];
newValueSource = 1;
}
else {
unboxedValue = defaultValue;
newValueSource = 0;
}
}
else {
unboxedValue = value;
newValueSource = valueSource;
}
var currentValue = that[key];
setBase.call(that, unboxedValue);
var newValue = that[key];
that[sourceKey] = newValueSource;
if (currentValue !== newValue) {
var reset_1 = newValueSource === 0;
that.eachChild(function (child) {
var childValueSource = child[sourceKey] || 0;
if (reset_1) {
if (childValueSource === 1) {
setFunc.call(child, exports.unsetValue);
}
}
else {
if (childValueSource <= 1) {
setInheritedValue.call(child, newValue);
}
}
return true;
});
}
}; };
var setInheritedValue = setFunc(1);
_this.setInheritedValue = setInheritedValue;
_this.set = setFunc(3);
inheritableProperties.push(_this);
return _this;
}
return InheritedProperty;
}(Property));
exports.InheritedProperty = InheritedProperty;
var CssProperty = (function () {
function CssProperty(options) {
var name = options.name;
this.name = name;
this.cssName = "css:" + options.cssName;
this.cssLocalName = options.cssName;
var key = Symbol(name + ":propertyKey");
this.key = key;
var sourceKey = Symbol(name + ":valueSourceKey");
this.sourceKey = sourceKey;
var getDefault = Symbol(name + ":getDefault");
this.getDefault = getDefault;
var setNative = Symbol(name + ":setNative");
this.setNative = setNative;
var defaultValueKey = Symbol(name + ":nativeDefaultValue");
this.defaultValueKey = defaultValueKey;
var defaultValue = options.defaultValue;
this.defaultValue = defaultValue;
var eventName = name + "Change";
var affectsLayout = options.affectsLayout;
var equalityComparer = options.equalityComparer;
var valueChanged = options.valueChanged;
var valueConverter = options.valueConverter;
function setLocalValue(value) {
var reset = value === exports.unsetValue;
if (reset) {
value = defaultValue;
delete this[sourceKey];
}
else {
this[sourceKey] = 3;
if (valueConverter && typeof value === "string") {
value = valueConverter(value);
}
}
var currentValue = key in this ? this[key] : defaultValue;
var changed = equalityComparer ? !equalityComparer(currentValue, value) : currentValue !== value;
if (changed) {
var view = this.view;
var setNativeValue = view.nativeView && view[setNative];
if (reset) {
delete this[key];
if (valueChanged) {
valueChanged(this, currentValue, value);
}
if (setNativeValue) {
if (defaultValueKey in this) {
view[setNative](this[defaultValueKey]);
delete this[defaultValueKey];
}
else {
view[setNative](defaultValue);
}
}
}
else {
this[key] = value;
if (valueChanged) {
valueChanged(this, currentValue, value);
}
if (setNativeValue) {
if (!(defaultValueKey in this)) {
this[defaultValueKey] = view[getDefault] ? view[getDefault]() : defaultValue;
}
view[setNative](value);
}
}
if (this.hasListeners(eventName)) {
this.notify({
eventName: eventName,
propertyName: name,
object: this,
value: value,
oldValue: currentValue
});
}
if (affectsLayout) {
view.requestLayout();
}
}
}
function setCssValue(value) {
var reset = value === exports.unsetValue;
var currentValueSource = this[sourceKey] || 0;
if (currentValueSource === 3) {
return;
}
if (reset) {
value = defaultValue;
delete this[sourceKey];
}
else {
if (valueConverter && typeof value === "string") {
value = valueConverter(value);
}
this[sourceKey] = 2;
}
var currentValue = key in this ? this[key] : defaultValue;
var changed = equalityComparer ? !equalityComparer(currentValue, value) : currentValue !== value;
if (changed) {
var view = this.view;
var setNativeValue = view.nativeView && view[setNative];
if (reset) {
delete this[key];
if (valueChanged) {
valueChanged(this, currentValue, value);
}
if (setNativeValue) {
if (defaultValueKey in this) {
view[setNative](this[defaultValueKey]);
delete this[defaultValueKey];
}
else {
view[setNative](defaultValue);
}
}
}
else {
this[key] = value;
if (valueChanged) {
valueChanged(this, currentValue, value);
}
if (setNativeValue) {
if (!(defaultValueKey in this)) {
this[defaultValueKey] = view[getDefault] ? view[getDefault]() : defaultValue;
}
view[setNative](value);
}
}
if (this.hasListeners(eventName)) {
this.notify({
eventName: eventName,
propertyName: name,
object: this,
value: value,
oldValue: currentValue
});
}
if (affectsLayout) {
view.requestLayout();
}
}
}
function get() {
return key in this ? this[key] : defaultValue;
}
this.cssValueDescriptor = {
enumerable: true,
configurable: true,
get: get,
set: setCssValue
};
this.localValueDescriptor = {
enumerable: true,
configurable: true,
get: get,
set: setLocalValue
};
cssSymbolPropertyMap[key] = this;
}
CssProperty.prototype.register = function (cls) {
if (this.registered) {
throw new Error("Property " + this.name + " already registered.");
}
this.registered = true;
Object.defineProperty(cls.prototype, this.name, this.localValueDescriptor);
Object.defineProperty(cls.prototype, this.cssName, this.cssValueDescriptor);
if (this.cssLocalName !== this.cssName) {
Object.defineProperty(cls.prototype, this.cssLocalName, this.localValueDescriptor);
}
};
CssProperty.prototype.isSet = function (instance) {
return this.key in instance;
};
return CssProperty;
}());
exports.CssProperty = CssProperty;
var CssAnimationProperty = (function () {
function CssAnimationProperty(options) {
this.options = options;
var valueConverter = options.valueConverter, equalityComparer = options.equalityComparer, valueChanged = options.valueChanged, defaultValue = options.defaultValue;
var propertyName = options.name;
this.name = propertyName;
CssAnimationProperty.properties[propertyName] = this;
if (options.cssName && options.cssName !== propertyName) {
CssAnimationProperty.properties[options.cssName] = this;
}
this._valueConverter = options.valueConverter;
var cssName = "css:" + (options.cssName || propertyName);
this.cssName = cssName;
var keyframeName = "keyframe:" + propertyName;
this.keyframe = keyframeName;
var defaultName = "default:" + propertyName;
var defaultValueKey = Symbol(defaultName);
this.defaultValueKey = defaultValueKey;
this.defaultValue = defaultValue;
var cssValue = Symbol(cssName);
var styleValue = Symbol(propertyName);
var keyframeValue = Symbol(keyframeName);
var computedValue = Symbol("computed-value:" + propertyName);
this.computedValueKey = computedValue;
var computedSource = Symbol("computed-source:" + propertyName);
this.getDefault = Symbol(propertyName + ":getDefault");
var setNative = this.setNative = Symbol(propertyName + ":setNative");
var eventName = propertyName + "Change";
function descriptor(symbol, propertySource, enumerable, configurable, getsComputed) {
return {
enumerable: enumerable, configurable: configurable,
get: getsComputed ? function () { return this[computedValue]; } : function () { return this[symbol]; },
set: function (value) {
var prev = this[computedValue];
if (value === exports.unsetValue) {
this[symbol] = exports.unsetValue;
if (this[computedSource] === propertySource) {
if (this[styleValue] !== exports.unsetValue) {
this[computedSource] = 3;
this[computedValue] = this[styleValue];
}
else if (this[cssValue] !== exports.unsetValue) {
this[computedSource] = 2;
this[computedValue] = this[cssValue];
}
else {
this[computedSource] = 0;
this[computedValue] = defaultValue;
}
}
}
else {
if (valueConverter && typeof value === "string") {
value = valueConverter(value);
}
this[symbol] = value;
if (this[computedSource] <= propertySource) {
this[computedSource] = propertySource;
this[computedValue] = value;
}
}
var next = this[computedValue];
if (prev !== next && (!equalityComparer || !equalityComparer(prev, next))) {
if (valueChanged) {
valueChanged(this, prev, next);
}
if (this.view.nativeView && this.view[setNative]) {
this.view[setNative](next);
}
if (this.hasListeners(eventName)) {
this.notify({ eventName: eventName, object: this, propertyName: propertyName, value: value, oldValue: prev });
}
}
}
};
}
var defaultPropertyDescriptor = descriptor(defaultValueKey, 0, false, false, false);
var cssPropertyDescriptor = descriptor(cssValue, 2, false, false, false);
var stylePropertyDescriptor = descriptor(styleValue, 3, true, true, true);
var keyframePropertyDescriptor = descriptor(keyframeValue, 4, false, false, false);
symbolPropertyMap[computedValue] = this;
cssSymbolPropertyMap[computedValue] = this;
this.register = function (cls) {
cls.prototype[defaultValueKey] = options.defaultValue;
cls.prototype[computedValue] = options.defaultValue;
cls.prototype[computedSource] = 0;
cls.prototype[cssValue] = exports.unsetValue;
cls.prototype[styleValue] = exports.unsetValue;
cls.prototype[keyframeValue] = exports.unsetValue;
Object.defineProperty(cls.prototype, defaultName, defaultPropertyDescriptor);
Object.defineProperty(cls.prototype, cssName, cssPropertyDescriptor);
Object.defineProperty(cls.prototype, propertyName, stylePropertyDescriptor);
if (options.cssName && options.cssName !== options.name) {
Object.defineProperty(cls.prototype, options.cssName, stylePropertyDescriptor);
}
Object.defineProperty(cls.prototype, keyframeName, keyframePropertyDescriptor);
};
}
CssAnimationProperty._getByCssName = function (name) {
return this.properties[name];
};
CssAnimationProperty.prototype.isSet = function (instance) {
return instance[this.computedValueKey] !== exports.unsetValue;
};
return CssAnimationProperty;
}());
CssAnimationProperty.properties = {};
exports.CssAnimationProperty = CssAnimationProperty;
var InheritedCssProperty = (function (_super) {
__extends(InheritedCssProperty, _super);
function InheritedCssProperty(options) {
var _this = _super.call(this, options) || this;
var name = options.name;
var key = _this.key;
var sourceKey = _this.sourceKey;
var getDefault = _this.getDefault;
var setNative = _this.setNative;
var defaultValueKey = _this.defaultValueKey;
var eventName = name + "Change";
var defaultValue = options.defaultValue;
var affectsLayout = options.affectsLayout;
var equalityComparer = options.equalityComparer;
var valueChanged = options.valueChanged;
var valueConverter = options.valueConverter;
var setFunc = function (valueSource) { return function (value) {
var reset = value === exports.unsetValue;
var currentValueSource = this[sourceKey] || 0;
if (reset) {
if (valueSource === 2 && currentValueSource === 3) {
return;
}
}
else {
if (currentValueSource > valueSource) {
return;
}
}
var view = this.view;
var newValue;
if (reset) {
var parent_2 = view.parent;
var style = parent_2 ? parent_2.style : null;
if (style && style[sourceKey] > 0) {
newValue = style[name];
this[sourceKey] = 1;
}
else {
newValue = defaultValue;
delete this[sourceKey];
}
}
else {
this[sourceKey] = valueSource;
if (valueConverter && typeof value === "string") {
newValue = valueConverter(value);
}
else {
newValue = value;
}
}
var currentValue = key in this ? this[key] : defaultValue;
var changed = equalityComparer ? !equalityComparer(currentValue, newValue) : currentValue !== newValue;
if (changed) {
var view_1 = this.view;
var setNativeValue = view_1.nativeView && view_1[setNative];
if (reset) {
delete this[key];
if (valueChanged) {
valueChanged(this, currentValue, newValue);
}
if (setNativeValue) {
if (defaultValueKey in this) {
view_1[setNative](this[defaultValueKey]);
delete this[defaultValueKey];
}
else {
view_1[setNative](defaultValue);
}
}
}
else {
this[key] = newValue;
if (valueChanged) {
valueChanged(this, currentValue, newValue);
}
if (setNativeValue) {
if (!(defaultValueKey in this)) {
this[defaultValueKey] = view_1[getDefault] ? view_1[getDefault]() : defaultValue;
}
view_1[setNative](newValue);
}
}
if (this.hasListeners(eventName)) {
this.notify({
eventName: eventName,
propertyName: name,
object: this,
value: newValue,
oldValue: currentValue
});
}
if (affectsLayout) {
view_1.requestLayout();
}
view_1.eachChild(function (child) {
var childStyle = child.style;
var childValueSource = childStyle[sourceKey] || 0;
if (reset) {
if (childValueSource === 1) {
setDefaultFunc.call(childStyle, exports.unsetValue);
}
}
else {
if (childValueSource <= 1) {
setInheritedFunc.call(childStyle, newValue);
}
}
return true;
});
}
}; };
var setDefaultFunc = setFunc(0);
var setInheritedFunc = setFunc(1);
_this.setInheritedValue = setInheritedFunc;
_this.cssValueDescriptor.set = setFunc(2);
_this.localValueDescriptor.set = setFunc(3);
inheritableCssProperties.push(_this);
return _this;
}
return InheritedCssProperty;
}(CssProperty));
exports.InheritedCssProperty = InheritedCssProperty;
var ShorthandProperty = (function () {
function ShorthandProperty(options) {
this.name = options.name;
var key = Symbol(this.name + ":propertyKey");
this.key = key;
this.cssName = "css:" + options.cssName;
this.cssLocalName = "" + options.cssName;
var converter = options.converter;
function setLocalValue(value) {
if (this[key] !== value) {
this[key] = value;
for (var _i = 0, _a = converter(value); _i < _a.length; _i++) {
var _b = _a[_i], p = _b[0], v = _b[1];
this[p.name] = v;
}
}
}
function setCssValue(value) {
if (this[key] !== value) {
this[key] = value;
for (var _i = 0, _a = converter(value); _i < _a.length; _i++) {
var _b = _a[_i], p = _b[0], v = _b[1];
this[p.cssName] = v;
}
}
}
this.cssValueDescriptor = {
enumerable: true,
configurable: true,
get: options.getter,
set: setCssValue
};
this.localValueDescriptor = {
enumerable: true,
configurable: true,
get: options.getter,
set: setLocalValue
};
cssSymbolPropertyMap[key] = this;
}
ShorthandProperty.prototype.register = function (cls) {
if (this.registered) {
throw new Error("Property " + this.name + " already registered.");
}
this.registered = true;
Object.defineProperty(cls.prototype, this.name, this.localValueDescriptor);
Object.defineProperty(cls.prototype, this.cssName, this.cssValueDescriptor);
if (this.cssLocalName !== this.cssName) {
Object.defineProperty(cls.prototype, this.cssLocalName, this.localValueDescriptor);
}
};
return ShorthandProperty;
}());
exports.ShorthandProperty = ShorthandProperty;
function inheritablePropertyValuesOn(view) {
var array = new Array();
for (var _i = 0, inheritableProperties_1 = inheritableProperties; _i < inheritableProperties_1.length; _i++) {
var prop = inheritableProperties_1[_i];
var sourceKey = prop.sourceKey;
var valueSource = view[sourceKey] || 0;
if (valueSource !== 0) {
array.push({ property: prop, value: view[prop.name] });
}
}
return array;
}
function inheritableCssPropertyValuesOn(style) {
var array = new Array();
for (var _i = 0, inheritableCssProperties_1 = inheritableCssProperties; _i < inheritableCssProperties_1.length; _i++) {
var prop = inheritableCssProperties_1[_i];
var sourceKey = prop.sourceKey;
var valueSource = style[sourceKey] || 0;
if (valueSource !== 0) {
array.push({ property: prop, value: style[prop.name] });
}
}
return array;
}
function initNativeView(view) {
var symbols = Object.getOwnPropertySymbols(view);
for (var _i = 0, symbols_2 = symbols; _i < symbols_2.length; _i++) {
var symbol = symbols_2[_i];
var property = symbolPropertyMap[symbol];
if (!property) {
continue;
}
var setNative = property.setNative;
var getDefault = property.getDefault;
if (setNative in view) {
var defaultValueKey = property.defaultValueKey;
if (!(defaultValueKey in view)) {
view[defaultValueKey] = view[getDefault] ? view[getDefault]() : property.defaultValue;
}
var value = view[symbol];
view[setNative](value);
}
}
var style = view.style;
symbols = Object.getOwnPropertySymbols(style);
for (var _a = 0, symbols_3 = symbols; _a < symbols_3.length; _a++) {
var symbol = symbols_3[_a];
var property = cssSymbolPropertyMap[symbol];
if (!property) {
continue;
}
if (view[property.setNative]) {
if (view[property.getDefault]) {
var defaultValueKey = property.defaultValueKey;
if (!(defaultValueKey in style)) {
style[defaultValueKey] = view[property.getDefault] ? view[property.getDefault]() : property.defaultValue;
}
}
var value = style[symbol];
view[property.setNative](value);
}
}
}
exports.initNativeView = initNativeView;
function resetNativeView(view) {
var symbols = Object.getOwnPropertySymbols(view);
for (var _i = 0, symbols_4 = symbols; _i < symbols_4.length; _i++) {
var symbol = symbols_4[_i];
var property = symbolPropertyMap[symbol];
if (!property) {
continue;
}
if (view[property.setNative]) {
if (property.defaultValueKey in view) {
view[property.setNative](view[property.defaultValueKey]);
delete view[property.defaultValueKey];
}
else {
view[property.setNative](property.defaultValue);
}
}
}
var style = view.style;
symbols = Object.getOwnPropertySymbols(style);
for (var _a = 0, symbols_5 = symbols; _a < symbols_5.length; _a++) {
var symbol = symbols_5[_a];
var property = cssSymbolPropertyMap[symbol];
if (!property) {
continue;
}
if (view[property.setNative]) {
if (property.defaultValueKey in style) {
view[property.setNative](style[property.defaultValueKey]);
delete style[property.defaultValueKey];
}
else {
view[property.setNative](property.defaultValue);
}
}
}
}
exports.resetNativeView = resetNativeView;
function clearInheritedProperties(view) {
for (var _i = 0, inheritableProperties_2 = inheritableProperties; _i < inheritableProperties_2.length; _i++) {
var prop = inheritableProperties_2[_i];
var sourceKey = prop.sourceKey;
if (view[sourceKey] === 1) {
prop.set.call(view, exports.unsetValue);
}
}
var style = view.style;
for (var _a = 0, inheritableCssProperties_2 = inheritableCssProperties; _a < inheritableCssProperties_2.length; _a++) {
var prop = inheritableCssProperties_2[_a];
var sourceKey = prop.sourceKey;
if (style[sourceKey] === 1) {
prop.setInheritedValue.call(style, exports.unsetValue);
}
}
}
exports.clearInheritedProperties = clearInheritedProperties;
function resetCSSProperties(style) {
var symbols = Object.getOwnPropertySymbols(style);
for (var _i = 0, symbols_6 = symbols; _i < symbols_6.length; _i++) {
var symbol = symbols_6[_i];
var cssProperty = void 0;
if (cssProperty = cssSymbolPropertyMap[symbol]) {
style[cssProperty.cssName] = exports.unsetValue;
if (cssProperty instanceof CssAnimationProperty) {
style[cssProperty.keyframe] = exports.unsetValue;
}
}
}
}
exports.resetCSSProperties = resetCSSProperties;
function propagateInheritableProperties(view, child) {
var inheritablePropertyValues = inheritablePropertyValuesOn(view);
for (var _i = 0, inheritablePropertyValues_1 = inheritablePropertyValues; _i < inheritablePropertyValues_1.length; _i++) {
var pair = inheritablePropertyValues_1[_i];
var prop = pair.property;
var sourceKey = prop.sourceKey;
var currentValueSource = child[sourceKey] || 0;
if (currentValueSource <= 1) {
prop.setInheritedValue.call(child, pair.value);
}
}
}
exports.propagateInheritableProperties = propagateInheritableProperties;
function propagateInheritableCssProperties(parentStyle, childStyle) {
var inheritableCssPropertyValues = inheritableCssPropertyValuesOn(parentStyle);
for (var _i = 0, inheritableCssPropertyValues_1 = inheritableCssPropertyValues; _i < inheritableCssPropertyValues_1.length; _i++) {
var pair = inheritableCssPropertyValues_1[_i];
var prop = pair.property;
var sourceKey = prop.sourceKey;
var currentValueSource = childStyle[sourceKey] || 0;
if (currentValueSource <= 1) {
prop.setInheritedValue.call(childStyle, pair.value, 1);
}
}
}
exports.propagateInheritableCssProperties = propagateInheritableCssProperties;
function makeValidator() {
var values = [];
for (var _i = 0; _i < arguments.length; _i++) {
values[_i] = arguments[_i];
}
var set = new Set(values);
return function (value) { return set.has(value); };
}
exports.makeValidator = makeValidator;
function makeParser(isValid) {
return function (value) {
var lower = value && value.toLowerCase();
if (isValid(lower)) {
return lower;
}
else {
throw new Error("Invalid value: " + value);
}
};
}
exports.makeParser = makeParser;
//# sourceMappingURL=properties.js.map
|
/**
* @license Highcharts JS v7.1.3 (2019-08-14)
*
* Dot plot series type for Highcharts
*
* (c) 2010-2019 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.exports = factory;
} else if (typeof define === 'function' && define.amd) {
define('highcharts/modules/dotplot', ['highcharts'], function (Highcharts) {
factory(Highcharts);
factory.Highcharts = Highcharts;
return factory;
});
} else {
factory(typeof Highcharts !== 'undefined' ? Highcharts : undefined);
}
}(function (Highcharts) {
var _modules = Highcharts ? Highcharts._modules : {};
function _registerModule(obj, path, args, fn) {
if (!obj.hasOwnProperty(path)) {
obj[path] = fn.apply(null, args);
}
}
_registerModule(_modules, 'modules/dotplot.src.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {
/* *
*
* (c) 2009-2019 Torstein Honsi
*
* Dot plot series type for Highcharts
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
/**
* @private
* @todo
* - Check update, remove etc.
* - Custom icons like persons, carts etc. Either as images, font icons or
* Highcharts symbols.
*/
var objectEach = U.objectEach;
var extend = H.extend, pick = H.pick, seriesType = H.seriesType;
/**
* @private
* @class
* @name Highcharts.seriesTypes.dotplot
*
* @augments Highcharts.Series
*/
seriesType('dotplot', 'column', {
itemPadding: 0.2,
marker: {
symbol: 'circle',
states: {
hover: {},
select: {}
}
}
}, {
drawPoints: function () {
var series = this, renderer = series.chart.renderer, seriesMarkerOptions = this.options.marker, itemPaddingTranslated = this.yAxis.transA *
series.options.itemPadding, borderWidth = this.borderWidth, crisp = borderWidth % 2 ? 0.5 : 1;
this.points.forEach(function (point) {
var yPos, attr, graphics, itemY, pointAttr, pointMarkerOptions = point.marker || {}, symbol = (pointMarkerOptions.symbol ||
seriesMarkerOptions.symbol), radius = pick(pointMarkerOptions.radius, seriesMarkerOptions.radius), size, yTop, isSquare = symbol !== 'rect', x, y;
point.graphics = graphics = point.graphics || {};
pointAttr = point.pointAttr ?
(point.pointAttr[point.selected ? 'selected' : ''] ||
series.pointAttr['']) :
series.pointAttribs(point, point.selected && 'select');
delete pointAttr.r;
if (series.chart.styledMode) {
delete pointAttr.stroke;
delete pointAttr['stroke-width'];
}
if (point.y !== null) {
if (!point.graphic) {
point.graphic = renderer.g('point').add(series.group);
}
itemY = point.y;
yTop = pick(point.stackY, point.y);
size = Math.min(point.pointWidth, series.yAxis.transA - itemPaddingTranslated);
for (yPos = yTop; yPos > yTop - point.y; yPos--) {
x = point.barX + (isSquare ?
point.pointWidth / 2 - size / 2 :
0);
y = series.yAxis.toPixels(yPos, true) +
itemPaddingTranslated / 2;
if (series.options.crisp) {
x = Math.round(x) - crisp;
y = Math.round(y) + crisp;
}
attr = {
x: x,
y: y,
width: Math.round(isSquare ? size : point.pointWidth),
height: Math.round(size),
r: radius
};
if (graphics[itemY]) {
graphics[itemY].animate(attr);
}
else {
graphics[itemY] = renderer.symbol(symbol)
.attr(extend(attr, pointAttr))
.add(point.graphic);
}
graphics[itemY].isActive = true;
itemY--;
}
}
objectEach(graphics, function (graphic, key) {
if (!graphic.isActive) {
graphic.destroy();
delete graphic[key];
}
else {
graphic.isActive = false;
}
});
});
}
});
H.SVGRenderer.prototype.symbols.rect = function (x, y, w, h, options) {
return H.SVGRenderer.prototype.symbols.callout(x, y, w, h, options);
};
});
_registerModule(_modules, 'masters/modules/dotplot.src.js', [], function () {
});
}));
|
#!/usr/bin/env node
/*global require, global*/
var test = require('tape');
var Promise = require('bluebird');
var util = require('base-widget/spec/util');
var cli = require('../lib/cli');
var Slap = require('../lib/ui/Slap');
test("cli", function (t) {
Promise.using(cli({screen: util.screenFactory()}), function (slap) {
t.test("should create an instance of slap", function (st) {
st.plan(1);
st.ok(slap instanceof Slap);
});
return new Promise(function (resolve) { t.on('end', resolve); });
}).done();
});
|
import React, { Component } from 'react'
import { Dropdown } from 'semantic-ui-react'
const options = [
{ key: 'English', text: 'English', value: 'English' },
{ key: 'French', text: 'French', value: 'French' },
{ key: 'Spanish', text: 'Spanish', value: 'Spanish' },
{ key: 'German', text: 'German', value: 'German' },
{ key: 'Chinese', text: 'Chinese', value: 'Chinese' },
]
class DropdownExampleAdditionLabelComponent extends Component {
state = { options }
handleAddition = (e, { value }) => {
this.setState({
options: [{ text: value, value }, ...this.state.options],
})
}
handleChange = (e, { value }) => this.setState({ currentValue: value })
render() {
const { currentValue } = this.state
return (
<Dropdown
options={this.state.options}
placeholder='Choose Language'
search
selection
fluid
allowAdditions
additionLabel={<i style={{ color: 'red' }}>Custom Language: </i>}
value={currentValue}
onAddItem={this.handleAddition}
onChange={this.handleChange}
/>
)
}
}
export default DropdownExampleAdditionLabelComponent
|
import _curry2 from './internal/_curry2.js';
/**
* Divides the first parameter by the second and returns the remainder. Note
* that this function preserves the JavaScript-style behavior for modulo. For
* mathematical modulo see [`mathMod`](#mathMod).
*
* @func
* @memberOf R
* @since v0.1.1
* @category Math
* @sig Number -> Number -> Number
* @param {Number} a The value to the divide.
* @param {Number} b The pseudo-modulus
* @return {Number} The result of `b % a`.
* @see R.mathMod
* @example
*
* R.modulo(17, 3); //=> 2
* // JS behavior:
* R.modulo(-17, 3); //=> -2
* R.modulo(17, -3); //=> 2
*
* const isOdd = R.modulo(R.__, 2);
* isOdd(42); //=> 0
* isOdd(21); //=> 1
*/
var modulo = _curry2(function modulo(a, b) { return a % b; });
export default modulo;
|
angular.module('controller.settingctrl', [])
.controller('SettingCtrl', function($scope, $rootScope, Util, Purchase, $ionicHistory, $translate,
$ionicSideMenuDelegate, $ionicPopup, $location) {
var menuContent = null;
var strOkay = "OK";
var strCancel = "Cancel";
$translate(['LOC_OK', 'LOC_CANCEL']).then(function (translations) {
strOkay = translations.LOC_OK;
strCancel = translations.LOC_CANCEL;
}, function (translationIds) {
console.log("Fail to translate : "+JSON.stringify(translationIds));
});
function init() {
if (ionic.Platform.isIOS()) {
menuContent = angular.element(document.getElementsByClassName('menu-content')[0]);
}
$scope.startupPage = localStorage.getItem("startupPage");
if ($scope.startupPage === null) {
$scope.startupPage = "0"; //시간별날씨
}
$scope.refreshInterval = localStorage.getItem("refreshInterval");
if ($scope.refreshInterval === null) {
$scope.refreshInterval = "0"; //수동
}
}
$scope.clickMenu = function (menu) {
if (ionic.Platform.isIOS()) {
if (menuContent !== null && menuContent.hasClass('keyboard-up')) {
return;
}
}
if (menu === 'sendMail') {
$ionicSideMenuDelegate.toggleLeft();
sendMail();
} else if (menu === 'openMarket') {
$ionicSideMenuDelegate.toggleLeft();
openMarket();
} else if (menu === 'openInfo') {
openInfo();
} else {
$ionicSideMenuDelegate.toggleLeft();
$location.path('/' + menu);
}
};
$scope.setStartupPage = function(startupPage) {
localStorage.setItem("startupPage", startupPage);
};
$scope.setRefreshInterval = function(refreshInterval) {
localStorage.setItem("refreshInterval", refreshInterval);
$rootScope.$broadcast('reloadEvent', 'setRefreshInterval');
};
var sendMail = function() {
var to = twClientConfig.mailTo;
var subject = 'Send feedback';
var body = '\n====================\nApp Version : ' + Util.version + '\nUUID : ' + window.device.uuid
+ '\nUA : ' + ionic.Platform.ua + '\n====================\n';
$translate('LOC_SEND_FEEDBACK').then(function (translations) {
subject = translations;
}, function (translationIds) {
subject = translationIds;
}).finally(function () {
window.location.href = 'mailto:' + to + '?subject=' + subject + '&body=' + encodeURIComponent(body);
});
Util.ga.trackEvent('action', 'click', 'send mail');
};
var openMarket = function() {
var src = "";
if (ionic.Platform.isIOS()) {
src = twClientConfig.iOSStoreUrl;
}
else if (ionic.Platform.isAndroid()) {
src = twClientConfig.androidStoreUrl;
}
else {
src = twClientConfig.etcUrl;
}
console.log('market='+src);
if (window.cordova && cordova.InAppBrowser) {
cordova.InAppBrowser.open(src, "_system");
Util.ga.trackEvent('action', 'click', 'open market');
}
else {
Util.ga.trackEvent("inappbrowser", "error", "loadPlugin");
var options = {
location: "yes",
clearcache: "yes",
toolbar: "no"
};
window.open(src, "_blank", options);
}
};
/**
* 설정에 정보 팝업으로, 늦게 로딩되어도 상관없고 호출될 가능성이 적으므로 그냥 현상태 유지.
*/
var openInfo = function() {
var strTitle = "TodayWeather";
var strMsg;
$translate(['LOC_TODAYWEATHER','LOC_WEATHER_INFORMATION', 'LOC_KOREA_METEOROLOGICAL_ADMINISTRATION', 'LOC_AQI_INFORMATION', 'LOC_KOREA_ENVIRONMENT_CORPORATION', 'LOC_IT_IS_UNAUTHENTICATED_REALTIME_DATA_THERE_MAY_BE_ERRORS']).then(function (translations) {
strTitle = translations.LOC_TODAYWEATHER;
strMsg = translations.LOC_WEATHER_INFORMATION + " : " + translations.LOC_KOREA_METEOROLOGICAL_ADMINISTRATION;
strMsg += "<br>";
strMsg += translations.LOC_AQI_INFORMATION + " : " + translations.LOC_KOREA_ENVIRONMENT_CORPORATION;
strMsg += "<br>";
strMsg += translations.LOC_IT_IS_UNAUTHENTICATED_REALTIME_DATA_THERE_MAY_BE_ERRORS;
}, function (translationIds) {
strTitle = translationIds.LOC_TODAYWEATHER;
strMsg = translationIds.LOC_WEATHER_INFORMATION + " : " + translationIds.LOC_KOREA_METEOROLOGICAL_ADMINISTRATION;
strMsg += "<br>";
strMsg += translationIds.LOC_AQI_INFORMATION + " : " + translationIds.LOC_KOREA_ENVIRONMENT_CORPORATION;
strMsg += "<br>";
strMsg += translationIds.LOC_IT_IS_UNAUTHENTICATED_REALTIME_DATA_THERE_MAY_BE_ERRORS;
}).finally(function () {
$rootScope.showAlert(strTitle, strMsg);
});
};
$scope.hasInAppPurchase = function () {
return Purchase.hasInAppPurchase || Purchase.paidAppUrl.length > 0;
};
$scope.showAbout = function () {
return Util.language.indexOf("ko") != -1;
};
$rootScope.isAndroid = function () {
return ionic.Platform.isAndroid();
};
$rootScope.isMenuOpen = function() {
var isOpen = $ionicSideMenuDelegate.isOpen();
if (ionic.Platform.isIOS()) {
if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
if (isOpen) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
} else {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
}
}
return isOpen;
};
$rootScope.showAlert = function(title, msg, callback) {
var alertPopup = $ionicPopup.alert({
title: title,
template: msg,
okText: strOkay
});
alertPopup.then(function() {
console.log("alertPopup close");
if (callback != undefined) {
callback();
}
});
};
$rootScope.showConfirm = function(title, template, callback) {
var confirmPopup = $ionicPopup.confirm({
title: title,
template: template,
okText: strOkay,
cancelText: strCancel
});
confirmPopup.then(function (res) {
if (res) {
console.log("You are sure");
} else {
console.log("You are not sure");
}
callback(res);
});
};
init();
});
|
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
frappe.ui.form.Footer = Class.extend({
init: function(opts) {
var me = this;
$.extend(this, opts);
this.make();
this.make_assignments();
this.make_attachments();
this.make_tags();
this.make_comments();
// render-complete
$(this.frm.wrapper).on("render_complete", function() {
me.refresh();
})
},
make: function() {
var me = this;
this.wrapper = $('<div class="form-footer container">\
<!--i class="icon-cut" style="margin-top: -23px; margin-bottom: 23px; \
display: block; margin-left: 15px;"></i-->\
<div>\
<div class="help-area"></div>\
</div>\
<div class="after-save row">\
<div class="col-md-8">\
<div class="form-comments">\
<h5><i class="icon-comments"></i> '+__("Comments")+'</h5>\
</div>\
</div>\
<div class="col-md-4">\
<div class="form-tags">\
<h5 style="display: inline-block"><i class="icon-tag"></i> '+__("Tags")+'</h5>\
<span class="tag-area"></span><br>\
</div><br><br>\
<div class="form-assignments" style="margin-bottom: 7px;">\
<h5>\
<i class="icon-flag"></i> '+__("Assigned To")+': \
<button class="btn small btn-default pull-right"\
style="margin-top:-7px;">'+__("Add")+'</button>\
</h5>\
</div><br><br>\
<div class="form-attachments">\
<h5>\
<i class="icon-paper-clip"></i> '+__("Attachments")+':\
<button class="btn small btn-default pull-right"\
style="margin-top:-7px;">'+__("Add")+'</button>\
</h5>\
</div>\
</div>\
</div>\
</div>')
.appendTo(this.parent);
this.wrapper.find(".btn-save").click(function() {
me.frm.save('Save', null, this);
})
this.help_area = this.wrapper.find(".help-area").get(0);
},
make_tags: function() {
this.frm.tags = new frappe.ui.TagEditor({
parent: this.wrapper.find(".tag-area"),
frm: this.frm,
})
},
make_attachments: function() {
this.frm.attachments = new frappe.ui.form.Attachments({
parent: this.wrapper.find(".form-attachments"),
frm: this.frm
});
},
make_assignments: function() {
this.frm.assign_to = new frappe.ui.form.AssignTo({
parent: this.wrapper.find(".form-assignments"),
frm: this.frm
});
},
make_comments: function() {
this.frm.comments = new frappe.ui.form.Comments({
parent: this.wrapper.find(".form-comments"),
frm: this.frm
})
},
refresh: function() {
if(this.frm.doc.__islocal) {
this.parent.addClass("hide");
} else {
this.parent.removeClass("hide");
this.frm.attachments.refresh();
this.frm.comments.refresh();
this.frm.assign_to.refresh();
this.frm.tags.refresh();
}
},
});
|
define(
//begin v1.x content
{
"dateFormatItem-yM": "MM/yyyy GGGGG",
"dateFormatItem-yQ": "Q yyyy GGGGG",
"dayPeriods-format-wide-pm": "p.m.",
"eraNames": [
"eB"
],
"dateFormatItem-MMMEd": "E d MMM",
"dateFormatItem-hms": "h:mm:ss a",
"dateFormatItem-yQQQ": "QQQ y G",
"days-standAlone-wide": [
"Diumenge",
"Dilluns",
"Dimarts",
"Dimecres",
"Dijous",
"Divendres",
"Dissabte"
],
"dateFormatItem-MMM": "LLL",
"months-standAlone-narrow": [
"g",
"f",
"m",
"a",
"m",
"j",
"j",
"a",
"s",
"o",
"n",
"d"
],
"dayPeriods-format-wide-am": "a.m.",
"quarters-standAlone-abbr": [
"1T",
"2T",
"3T",
"4T"
],
"dateFormatItem-y": "y G",
"timeFormat-full": "H.mm.ss zzzz",
"months-standAlone-abbr": [
"gen.",
"febr.",
"març",
"abr.",
"maig",
"juny",
"jul.",
"ag.",
"set.",
"oct.",
"nov.",
"des."
],
"dateFormatItem-Ed": "E d",
"dateFormatItem-yMMM": "MMM y G",
"days-standAlone-narrow": [
"dg",
"dl",
"dt",
"dc",
"dj",
"dv",
"ds"
],
"eraAbbr": [
"eB"
],
"dateFormat-long": "d MMMM y G",
"timeFormat-medium": "H.mm.ss",
"dateFormatItem-Hm": "HH:mm",
"dateFormat-medium": "d MMM y G",
"dateFormatItem-Hms": "HH:mm:ss",
"dayPeriods-format-narrow-pm": "p.m.",
"dateFormatItem-yMd": "d/M/yyyy",
"quarters-standAlone-wide": [
"1r trimestre",
"2n trimestre",
"3r trimestre",
"4t trimestre"
],
"dateFormatItem-ms": "mm:ss",
"dayPeriods-format-narrow-am": "a.m.",
"months-standAlone-wide": [
"gener",
"febrer",
"març",
"abril",
"maig",
"juny",
"juliol",
"agost",
"setembre",
"octubre",
"novembre",
"desembre"
],
"dateFormatItem-MMMd": "d MMM",
"timeFormat-long": "H.mm.ss z",
"months-format-abbr": [
"de gen.",
"de febr.",
"de març",
"d’abr.",
"de maig",
"de juny",
"de jul.",
"d’ag.",
"de set.",
"d’oct.",
"de nov.",
"de des."
],
"timeFormat-short": "H.mm",
"dateFormatItem-H": "HH",
"quarters-format-abbr": [
"1T",
"2T",
"3T",
"4T"
],
"days-format-abbr": [
"dg.",
"dl.",
"dt.",
"dc.",
"dj.",
"dv.",
"ds."
],
"dateFormatItem-M": "L",
"days-format-narrow": [
"dg",
"dl",
"dt",
"dc",
"dj",
"dv",
"ds"
],
"dateFormatItem-yMMMd": "d MMM y",
"dateFormatItem-MEd": "E, d/M",
"months-format-narrow": [
"G",
"F",
"M",
"A",
"M",
"J",
"J",
"A",
"S",
"O",
"N",
"D"
],
"days-standAlone-short": [
"dg.",
"dl.",
"dm.",
"dc.",
"dj.",
"dv.",
"ds."
],
"dateFormatItem-hm": "h:mm a",
"days-standAlone-abbr": [
"dg",
"dl",
"dt",
"dc",
"dj",
"dv",
"ds"
],
"dateFormat-short": "dd/MM/yyyy GGGGG",
"dateFormatItem-yMMMEd": "E, d MMM y G",
"dateFormat-full": "EEEE, dd MMMM y G",
"dateFormatItem-Md": "d/M",
"dateFormatItem-yMEd": "E, dd/MM/yyyy GGGGG",
"months-format-wide": [
"de gener",
"de febrer",
"de març",
"d’abril",
"de maig",
"de juny",
"de juliol",
"d’agost",
"de setembre",
"d’octubre",
"de novembre",
"de desembre"
],
"days-format-short": [
"dg.",
"dl.",
"dt.",
"dc.",
"dj.",
"dv.",
"ds."
],
"dateFormatItem-d": "d",
"quarters-format-wide": [
"1r trimestre",
"2n trimestre",
"3r trimestre",
"4t trimestre"
],
"eraNarrow": [
"eB"
],
"days-format-wide": [
"diumenge",
"dilluns",
"dimarts",
"dimecres",
"dijous",
"divendres",
"dissabte"
],
"dateFormatItem-h": "h a"
}
//end v1.x content
);
|
module.exports=/[\u0300-\u036F\u0485\u0486\u064B-\u0655\u0670\u0951\u0952\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1DC0-\u1DE6\u1DFC-\u1DFF\u200C\u200D\u20D0-\u20F0\u302A-\u302D\u3099\u309A\uFE00-\uFE0F\uFE20-\uFE26]|\uD800\uDDFD|\uD834[\uDD67-\uDD69\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD]|\uDB40[\uDD00-\uDDEF]/
|
(function() {
var Tabs = function(element, options) {
this.element = element;
this.$element = $(element);
this.options = options;
this.metadata = this.$element.data('options');
};
Tabs.prototype = {
defaults: {
tabListClass: ".list__tabs", // The selector for the list of buttons
tabItemClass: ".list__link", // The selector for a button item
btnIndexAttr: "href", // The attribute on the button to use that matches up to the content id (prefix with 'data-' if applicable)
tabContentClass: ".tabs__content", // The selector for the list of tabbed contents
tabBodyClass: ".tabs__body", // The selector for a tabbed content item
activeClass: "active", // The class to use when an element is active
inactiveClass: "inactive", // The class to use when an element is inactive
defaultTab: undefined // The id of the tab which is to be selected by default
},
_init: function() {
this.config = $.extend({}, this.defaults, this.options, this.metadata);
// Set a default tab value if none is set
if (this.config.defaultTab === undefined) {
var $btns = this.$element.find(this.config.tabListClass + " " + this.config.tabItemClass);
if ($btns.length > 0) { this.config.defaultTab = this._getButtonIndex($btns[0]); }
}
// Default all tabs and content to be displayed on load
this._updateAll(this.config.defaultTab);
var that = this;
// Initialise the handle click of buttons
this.$element.find(this.config.tabListClass + " " + this.config.tabItemClass).click(function(e) { e.preventDefault(); that._handleClick(this); });
ALLOY.Logger.startup('ALLOY.Tabs Started');
},
_getButtonIndex: function(btn) {
if (this.config.btnIndexAttr.substring(0, 5) === "data-") {
var att = this.config.btnIndexAttr.substring(5);
return $(btn).data(att);
}
else { return $(btn).attr(this.config.btnIndexAttr); }
},
_handleClick: function(el) {
var id = this._getButtonIndex($(el).closest(this.config.tabListClass + " " + this.config.tabItemClass)[0]);
this._updateAll(id);
},
_setBtnActive: function(btn, id, content) {
var elId = this._getButtonIndex($(btn)[0]);
if (elId === id) { $(btn).removeClass(this.config.inactiveClass).addClass(this.config.activeClass); }
else { $(btn).removeClass(this.config.activeClass).addClass(this.config.inactiveClass); }
},
_updateAll: function(id) {
var that = this;
this.$element.find(this.config.tabListClass + " " + this.config.tabItemClass).each(function() { that._setBtnActive(this, id, false); });
this.$element.find(this.config.tabContentClass + " " + this.config.tabBodyClass).removeClass(this.config.activeClass).addClass(this.config.inactiveClass);
$(id).removeClass(this.config.inactiveClass).addClass(this.config.activeClass);
}
};
Tabs.defaults = Tabs.prototype.defaults;
$.fn.tabs = function(options) {
return this.each(function() {
new Tabs(this, options)._init();
});
};
// Autostart Plugin
ALLOY.Logger.trace('ALLOY.Tabs Initializing');
$(".tabs").tabs();
})();
|
for (var i = 1; i <= 100; i++) {
if (i % 15 === 0) {
console.log('FizzBuzz');
} else if (i % 3 === 0) {
console.log('Fizz');
} else if (i % 5 === 0) {
console.log('Buzz');
} else {
console.log(i);
}
}
|
(function() {
'use strict';
angular.module('formlyApp').factory('province', province);
function province() {
function getProvinces() {
return [{
"name": "Alberta",
"value": "alberta"
}, {
"name": "British Columbia",
"value": "british_columbia"
}, {
"name": "Manitoba",
"value": "manitoba"
}, {
"name": "New Brunswick",
"value": "new_brunswick"
}, {
"name": "Newfoundland and Labrador",
"value": "newfoundland_and_labrador"
}, {
"name": "Northwest Territories",
"value": "northwest_territories"
}, {
"name": "Nova Scotia",
"value": "nova_scotia"
}, {
"name": "Nunavut",
"value": "nunavut"
}, {
"name": "Ontario",
"value": "ontario"
}, {
"name": "Prince Edward Island",
"value": "prince_edward_island"
}, {
"name": "Quebec",
"value": "quebec"
}, {
"name": "Saskatchewan",
"value": "saskatchewan"
}, {
"name": "Yukon",
"value": "Yukon"
}];
}
return {
getProvinces: getProvinces
}
}
})();
|
// Parser for TypeScript-style definition files
//
// Takes a TypeScript file as, for example, found in
// github.com/borisyankov/DefinitelyTyped , and spits out Tern type
// description JSON data.
var fs = require("fs");
// The TypeScript code is all there in the npm package, but it's not
// exporting anything as a CommonJS module, so we use this kludge to
// get at its internals.
var tsFileName = __dirname + "/../node_modules/typescript/bin/typescript.js";
var box = {};
for (var prop in global) box[prop] = global[prop];
require('vm').runInNewContext(fs.readFileSync(tsFileName, "utf8"), box, {filename: tsFileName});
var ts = box.TypeScript;
var nt = ts.SyntaxKind;
var definitions;
function parseFile(text, name) {
if (text.charCodeAt(0) == 0xfeff) text = text.slice(1); // Kill byte-order-mark
return new ts.Parser.parse(name, new ts.SimpleText.fromString(text), false, new ts.ParseOptions(null, true));
}
function lookup(name, cx) {
for (; cx; cx = cx.prev)
if (cx.name == name) return cx.value;
}
function buildPath(cx) {
for (var path = ""; cx; cx = cx.prev) {
var part = cx.enter && cx.enter.replace(/[^\w$]/g, "");
if (part) path = path ? part + "." + path : part;
}
return path;
}
function functionType(node, cx) {
var type = "fn(";
var args = node.parameterList.parameters;
for (var i = 0, e = args.childCount(); i < e; ++i) {
var arg = args.childAt(i);
if (!arg.identifier) continue;
if (i) type += ", ";
var name = arg.identifier.text();
if (arg.questionToken) name += "?";
type += name + ": " + walk_(arg.typeAnnotation, {enter: name, prev: cx});
}
type += ")";
var ret = node.typeAnnotation && node.typeAnnotation.type;
if (ret && ret.kind() != nt.VoidKeyword) // FIXME filter out void
type += " -> " + flat(ret, {enter: "!ret", prev: cx});
return type;
}
function addToObj(data, identifier, val) {
var known = data[name];
var name = identifier.text();
if (/^".*"$/.test(name)) name = name.slice(1, name.length - 1);
if (known) {
if (typeof known != "string" && typeof val == "string" && !known["!type"]) {
known["!type"] = val;
} else if (typeof known == "string" && typeof val != "string") {
data[name] = val;
val["!type"] = known;
}
} else {
data[name] = val;
}
}
function isStatic(node) {
if (node.modifiers) for (var i = 0, e = node.modifiers.childCount(); i < e; i++)
if (node.modifiers.childAt(i).value() == "static") return true;
}
function objType(list, cx, cls) {
var data = {};
for (var i = 0, e = list.childCount(); i < e; ++i) {
var field = list.childAt(i);
var target = cls && isStatic(field) ? cls : data;
switch (field.kind()) {
case nt.ImportDeclaration:
var mod = flat(field.moduleReference(), cx);
cx = {name: field.identifier.text(), value: mod, prev: cx};
break;
case nt.FunctionDeclaration:
addToObj(target, field.identifier, functionType(field.callSignature, cx));
break;
case nt.MemberFunctionDeclaration:
case nt.MethodSignature:
addToObj(target, field.propertyName, functionType(field.callSignature, cx));
break;
case nt.ModuleDeclaration:
addToObj(target, field.name || field.stringLiteral, objType(field.moduleElements, cx));
break;
case nt.InterfaceDeclaration:
addToObj(target, field.identifier, objType(field.body.typeMembers, cx));
break;
case nt.ClassDeclaration:
var inner = {};
var proto = inner.prototype = objType(field.classElements, cx, inner);
addToObj(target, field.identifier, inner);
break;
case nt.PropertySignature:
addToObj(target, field.propertyName, walk_(field.typeAnnotation, cx));
break;
case nt.MemberVariableDeclaration:
addToObj(target, field.variableDeclarator.propertyName, walk_(field.variableDeclarator.typeAnnotation, cx));
break;
case nt.EnumDeclaration:
addToObj(target, field.identifier, "number");
break;
case nt.VariableStatement:
var decls = field.variableDeclaration.variableDeclarators;
for (var j = 0, ej = decls.childCount(); j < ej; j++) {
var decl = decls.childAt(j);
addToObj(target, decl.propertyName, walk_(decl.typeAnnotation, cx));
}
break;
case nt.ConstructorDeclaration:
if (cls && !cls["!type"]) cls["!type"] = functionType(field, cx);
break;
case nt.ExportAssignment:
return walk(field.identifier, cx);
// FIXME not sure what these are doing in declaration files
case nt.CallSignature:
case nt.ConstructSignature:
case nt.IndexSignature:
case nt.SemicolonToken:
case nt.EmptyStatement:
break;
default:
throw new Error("Unknown field type: " + nt[field.kind()]);
}
}
return data;
}
function walk(node, cx) {
switch (node.kind()) {
case nt.IdentifierName:
return lookup(node.text(), cx) || node.text();
case nt.QualifiedName:
return flat(node.left, cx) + "." + flat(node.right, null);
case nt.ObjectType:
return objType(node.typeMembers, cx);
case nt.ArrayType:
return "[" + flat(node.type, cx) + "]";
case nt.FunctionType:
return functionType(node, cx);
case nt.DotToken:
return flat(node.operand1, cx) + "." + flat(node.operand2, cx);
case nt.StringLiteral:
case nt.StringKeyword:
return "string";
case nt.NumberKeyword:
return "number";
case nt.BooleanKeyword:
return "bool";
case nt.AnyKeyword:
case nt.VoidKeyword:
return "?";
case nt.TypeQuery:
return walk(node.name);
case nt.FirstTypeScriptKeyword:
case nt.LastTypeScriptKeyword:
case nt.FirstKeyword:
case nt.LastKeyword:
return node.value();
default:
throw new Error("Unrecognized type: " + nt[node.kind()]);
}
}
function walk_(typeAnn, cx) {
if (typeAnn && typeAnn.type) return walk(typeAnn.type, cx);
return "?";
}
function flat(node, cx) {
var type = walk(node, cx);
if (typeof type == "string") return type;
var name = buildPath(cx);
for (var i = 0; ; ++i) {
var uniq = name + (i || "");
if (!definitions.hasOwnProperty(uniq)) { name = uniq; break; }
}
definitions[name] = type;
return name;
}
var defaultCx = {name: "any", value: "?", prev: {name: "null", value: "?", prev: null}};
exports.translate = function(text, name) {
definitions = {};
var tree = parseFile(text, name).sourceUnit();
var data = objType(tree.moduleElements, defaultCx);
data["!name"] = name;
var hasDefs = false;
for (var _d in definitions) { hasDefs = true; break; }
if (hasDefs) data["!define"] = definitions;
return data;
};
|
var parent = require('../../actual/instance/replace-all');
module.exports = parent;
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDefault(_SvgIcon);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var ContentRemoveCircle = function ContentRemoveCircle(props) {
return _react2.default.createElement(
_SvgIcon2.default,
props,
_react2.default.createElement('path', { d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z' })
);
};
ContentRemoveCircle = (0, _pure2.default)(ContentRemoveCircle);
ContentRemoveCircle.displayName = 'ContentRemoveCircle';
exports.default = ContentRemoveCircle;
|
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
define([
'ko',
'underscore'
], function (ko, _) {
'use strict';
function iterator(callback, args, elem) {
callback = elem[callback];
if (_.isFunction(callback)) {
return callback.apply(elem, args);
}
return callback;
}
function wrapper(method) {
return function (iteratee) {
var callback = iteratee,
elems = this(),
args = _.toArray(arguments);
if (_.isString(iteratee)) {
callback = iterator.bind(null, iteratee, args.slice(1));
args.unshift(callback);
}
args.unshift(elems);
return _[method].apply(_, args);
};
}
_.extend(ko.observableArray.fn, {
each: wrapper('each'),
map: wrapper('map'),
filter: wrapper('filter'),
some: wrapper('some'),
every: wrapper('every'),
groupBy: wrapper('groupBy'),
sortBy: wrapper('sortBy'),
findWhere: function (properties) {
return _.findWhere(this(), properties);
},
contains: function (value) {
return _.contains(this(), value);
},
hasNo: function () {
return !this.contains.apply(this, arguments);
},
getLength: function () {
return this().length;
},
indexBy: function (key) {
return _.indexBy(this(), key);
},
without: function () {
var args = Array.prototype.slice.call(arguments);
args.unshift(this());
return _.without.apply(_, args);
},
first: function () {
return _.first(this());
},
last: function () {
return _.last(this());
},
pluck: function () {
var args = Array.prototype.slice.call(arguments);
args.unshift(this());
return _.pluck.apply(_, args);
}
});
});
|
if (typeof ColumnsPlugins === 'undefined') var ColumnsPlugins = {};
ColumnsPlugins.gotopage = {
init: function() {
var $this = this;
$this.$el.one('keyup', '.gotopage', function() {
$this.gotoPage(parseInt($(this).val()));
});
},
create: function() {
this.view.currentPage = this.page;
this.view.totalPages = this.pages;
}
}
|
var fs = require('fs');
var spawn = require('child_process').spawn;
var path = require('path');
var Promise = require('bluebird');
module.exports = function(log) {
var install = function (project, options) {
options = options || {};
return new Promise(function(resolve, reject){
var bowerJson = JSON.stringify({
dependencies: project.bower.dependencies,
devDependencies: options.production ? [] : project.bower.devDependencies,
resolutions: project.bower.resolutions,
name: project.name
}, null, 4);
var errorLog = '';
log.info('Bower Installing:', project.name);
// TODO: remove sync methods
fs.writeFileSync(project.tempPath + '/bower.json', bowerJson);
if (project.bower.rc) {
fs.writeFileSync(project.tempPath + '/.bowerrc', JSON.stringify(project.bower.rc));
}
var cmd = path.join(__dirname, '..', '..', 'node_modules', '.bin', 'bower');
var args = ['install', '--config.interactive=false'];
if (options.production) {
args.push('--production');
}
var cli = spawn(cmd, args, { cwd: project.tempPath });
cli.stdout.on('data', function (data) {
if (data && data.length > 0) {
log.debug(data.toString().trim());
}
});
cli.stderr.on('data', function (data) {
if (data && data.length > 0) {
errorLog += data.toString().trim();
log.debug(data.toString().trim());
}
});
cli.on('close', function (code) {
cli.kill('SIGINT');
if (code === 0) {
log.info('Bower Install complete:', project.name);
fs.unlink(project.tempPath + '/bower.json', function () {
fs.unlink(project.tempPath + '/.bowerrc', function () {
return resolve();
});
});
} else {
return reject(errorLog);
}
});
});
};
return {
install: install
}
};
|
// Base 64 encoding
const BASE_64_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
const BASE_64_VALS = Object.create(null);
const getChar = val => BASE_64_CHARS.charAt(val);
const getVal = ch => ch === '=' ? -1 : BASE_64_VALS[ch];
for (let i = 0; i < BASE_64_CHARS.length; i++) {
BASE_64_VALS[getChar(i)] = i;
};
const encode = array => {
if (typeof array === "string") {
const str = array;
array = newBinary(str.length);
for (let i = 0; i < str.length; i++) {
const ch = str.charCodeAt(i);
if (ch > 0xFF) {
throw new Error(
"Not ascii. Base64.encode can only take ascii strings.");
}
array[i] = ch;
}
}
const answer = [];
let a = null;
let b = null;
let c = null;
let d = null;
for (let i = 0; i < array.length; i++) {
switch (i % 3) {
case 0:
a = (array[i] >> 2) & 0x3F;
b = (array[i] & 0x03) << 4;
break;
case 1:
b = b | (array[i] >> 4) & 0xF;
c = (array[i] & 0xF) << 2;
break;
case 2:
c = c | (array[i] >> 6) & 0x03;
d = array[i] & 0x3F;
answer.push(getChar(a));
answer.push(getChar(b));
answer.push(getChar(c));
answer.push(getChar(d));
a = null;
b = null;
c = null;
d = null;
break;
}
}
if (a != null) {
answer.push(getChar(a));
answer.push(getChar(b));
if (c == null) {
answer.push('=');
} else {
answer.push(getChar(c));
}
if (d == null) {
answer.push('=');
}
}
return answer.join("");
};
// XXX This is a weird place for this to live, but it's used both by
// this package and 'ejson', and we can't put it in 'ejson' without
// introducing a circular dependency. It should probably be in its own
// package or as a helper in a package that both 'base64' and 'ejson'
// use.
const newBinary = len => {
if (typeof Uint8Array === 'undefined' || typeof ArrayBuffer === 'undefined') {
const ret = [];
for (let i = 0; i < len; i++) {
ret.push(0);
}
ret.$Uint8ArrayPolyfill = true;
return ret;
}
return new Uint8Array(new ArrayBuffer(len));
};
const decode = str => {
let len = Math.floor((str.length * 3) / 4);
if (str.charAt(str.length - 1) == '=') {
len--;
if (str.charAt(str.length - 2) == '=') {
len--;
}
}
const arr = newBinary(len);
let one = null;
let two = null;
let three = null;
let j = 0;
for (let i = 0; i < str.length; i++) {
const c = str.charAt(i);
const v = getVal(c);
switch (i % 4) {
case 0:
if (v < 0) {
throw new Error('invalid base64 string');
}
one = v << 2;
break;
case 1:
if (v < 0) {
throw new Error('invalid base64 string');
}
one = one | (v >> 4);
arr[j++] = one;
two = (v & 0x0F) << 4;
break;
case 2:
if (v >= 0) {
two = two | (v >> 2);
arr[j++] = two;
three = (v & 0x03) << 6;
}
break;
case 3:
if (v >= 0) {
arr[j++] = three | v;
}
break;
}
}
return arr;
};
export const Base64 = { encode, decode, newBinary };
|
var fs = require('fs')
var path = require('path')
var compiler = require('../lib/compiler')
var assert = require('assert')
var hash = require('hash-sum')
// test custom transform
compiler.applyConfig({
customCompilers: {
test: function (content, cb) {
content = content.replace('not ', '')
cb(null, content)
}
}
})
function read (file) {
return fs.readFileSync(path.resolve(__dirname, file), 'utf-8')
}
function test (name) {
it(name, function (done) {
var filePath = 'fixtures/' + name + '.vue'
var fileContent = read(filePath)
var expected = read('expects/' + name + '.js')
.replace(/\{\{id\}\}/g, '_v-' + hash(require.resolve('./' + filePath)))
// test registering dependency
var deps = []
function addDep (file) {
deps.push(file)
}
compiler.on('dependency', addDep)
process.env.VUEIFY_TEST = true
process.env.NODE_ENV = name === 'non-minified'
? 'development'
: 'production'
compiler.compile(
fileContent,
path.resolve(__dirname, filePath),
function (err, result) {
// the cb is handled by a Promise, so the assertion
// errors gets swallowed and the test never fails.
// do it in a separate tick.
setTimeout(function () {
if (err) throw err
assert.equal(result, expected, 'should compile correctly')
// check src
if (name === 'src') {
assert.equal(deps[0], __dirname + '/fixtures/test.html')
assert.equal(deps[1], __dirname + '/fixtures/test.styl')
assert.equal(deps[2], __dirname + '/fixtures/src/test.js')
}
if (name === 'less' || name === 'sass' || name === 'styl') {
assert.equal(deps[0], __dirname + '/fixtures/imports/import.' + name)
}
compiler.removeListener('dependency', addDep)
done()
}, 0)
}
)
})
}
describe('Vueify compiler', function () {
fs.readdirSync(path.resolve(__dirname, 'expects'))
.forEach(function (file) {
test(path.basename(file, '.js'))
})
})
|
var foo = function () {
var ref = babelHelpers.asyncToGenerator(function* () {
var wat = yield bar();
});
return function foo() {
return ref.apply(this, arguments);
};
}();
|
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
if (!common.enoughTestMem)
common.skip('Insufficient memory for TLS benchmark test');
// Because the TLS benchmarks use hardcoded ports, this should be in sequential
// rather than parallel to make sure it does not conflict with tests that choose
// random available ports.
const runBenchmark = require('../common/benchmark');
runBenchmark('tls', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|
import isBrowser from 'src/lib/isBrowser'
describe('isBrowser', () => {
it('should return true in a browser', () => {
// tests are run in a browser, this should be true
isBrowser.should.be.true()
})
it('should return false when there is no document', () => {
require('imports?document=>undefined!src/lib/isBrowser').default.should.be.false()
require('imports?document=>null!src/lib/isBrowser').default.should.be.false()
})
it('should return false when there is no window', () => {
require('imports?window=>undefined!src/lib/isBrowser').default.should.be.false()
require('imports?window=>null!src/lib/isBrowser').default.should.be.false()
})
})
|
/* *
*
* (c) 2009-2020 Torstein Honsi
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import H from '../parts/Globals.js';
/**
* Containing the position of a box that should be avoided by labels.
*
* @interface Highcharts.LabelIntersectBoxObject
*/ /**
* @name Highcharts.LabelIntersectBoxObject#bottom
* @type {number}
*/ /**
* @name Highcharts.LabelIntersectBoxObject#left
* @type {number}
*/ /**
* @name Highcharts.LabelIntersectBoxObject#right
* @type {number}
*/ /**
* @name Highcharts.LabelIntersectBoxObject#top
* @type {number}
*/
/*
* Highcharts module to place labels next to a series in a natural position.
*
* TODO:
* - add column support (box collision detection, boxesToAvoid logic)
* - avoid data labels, when data labels above, show series label below.
* - add more options (connector, format, formatter)
*
* https://jsfiddle.net/highcharts/L2u9rpwr/
* https://jsfiddle.net/highcharts/y5A37/
* https://jsfiddle.net/highcharts/264Nm/
* https://jsfiddle.net/highcharts/y5A37/
*/
import U from '../parts/Utilities.js';
var addEvent = U.addEvent, animObject = U.animObject, extend = U.extend, isNumber = U.isNumber, pick = U.pick, syncTimeout = U.syncTimeout;
import '../parts/Chart.js';
import '../parts/Series.js';
var labelDistance = 3, Series = H.Series, SVGRenderer = H.SVGRenderer, Chart = H.Chart;
H.setOptions({
/**
* @optionparent plotOptions
*
* @private
*/
plotOptions: {
series: {
/**
* Series labels are placed as close to the series as possible in a
* natural way, seeking to avoid other series. The goal of this
* feature is to make the chart more easily readable, like if a
* human designer placed the labels in the optimal position.
*
* The series labels currently work with series types having a
* `graph` or an `area`.
*
* @sample highcharts/series-label/line-chart
* Line chart
* @sample highcharts/demo/streamgraph
* Stream graph
* @sample highcharts/series-label/stock-chart
* Stock chart
*
* @declare Highcharts.SeriesLabelOptionsObject
* @since 6.0.0
* @product highcharts highstock gantt
* @requires modules/series-label
*/
label: {
/**
* Enable the series label per series.
*/
enabled: true,
/**
* Allow labels to be placed distant to the graph if necessary,
* and draw a connector line to the graph. Setting this option
* to true may decrease the performance significantly, since the
* algorithm with systematically search for open spaces in the
* whole plot area. Visually, it may also result in a more
* cluttered chart, though more of the series will be labeled.
*/
connectorAllowed: false,
/**
* If the label is closer than this to a neighbour graph, draw a
* connector.
*/
connectorNeighbourDistance: 24,
/**
* For area-like series, allow the font size to vary so that
* small areas get a smaller font size. The default applies this
* effect to area-like series but not line-like series.
*
* @type {number|null}
*/
minFontSize: null,
/**
* For area-like series, allow the font size to vary so that
* small areas get a smaller font size. The default applies this
* effect to area-like series but not line-like series.
*
* @type {number|null}
*/
maxFontSize: null,
/**
* Draw the label on the area of an area series. By default it
* is drawn on the area. Set it to `false` to draw it next to
* the graph instead.
*
* @type {boolean|null}
*/
onArea: null,
/**
* Styles for the series label. The color defaults to the series
* color, or a contrast color if `onArea`.
*
* @type {Highcharts.CSSObject}
*/
style: {
/** @internal */
fontWeight: 'bold'
},
/**
* An array of boxes to avoid when laying out the labels. Each
* item has a `left`, `right`, `top` and `bottom` property.
*
* @type {Array<Highcharts.LabelIntersectBoxObject>}
*/
boxesToAvoid: []
}
}
}
});
/* eslint-disable valid-jsdoc */
/**
* Counter-clockwise, part of the fast line intersection logic.
*
* @private
* @function ccw
*/
function ccw(x1, y1, x2, y2, x3, y3) {
var cw = ((y3 - y1) * (x2 - x1)) - ((y2 - y1) * (x3 - x1));
return cw > 0 ? true : !(cw < 0);
}
/**
* Detect if two lines intersect.
*
* @private
* @function intersectLine
*/
function intersectLine(x1, y1, x2, y2, x3, y3, x4, y4) {
return ccw(x1, y1, x3, y3, x4, y4) !== ccw(x2, y2, x3, y3, x4, y4) &&
ccw(x1, y1, x2, y2, x3, y3) !== ccw(x1, y1, x2, y2, x4, y4);
}
/**
* Detect if a box intersects with a line.
*
* @private
* @function boxIntersectLine
*/
function boxIntersectLine(x, y, w, h, x1, y1, x2, y2) {
return (intersectLine(x, y, x + w, y, x1, y1, x2, y2) || // top of label
intersectLine(x + w, y, x + w, y + h, x1, y1, x2, y2) || // right
intersectLine(x, y + h, x + w, y + h, x1, y1, x2, y2) || // bottom
intersectLine(x, y, x, y + h, x1, y1, x2, y2) // left of label
);
}
/**
* General symbol definition for labels with connector.
*
* @private
* @function Highcharts.SVGRenderer#symbols.connector
*/
SVGRenderer.prototype.symbols.connector = function (x, y, w, h, options) {
var anchorX = options && options.anchorX, anchorY = options && options.anchorY, path, yOffset, lateral = w / 2;
if (isNumber(anchorX) && isNumber(anchorY)) {
path = ['M', anchorX, anchorY];
// Prefer 45 deg connectors
yOffset = y - anchorY;
if (yOffset < 0) {
yOffset = -h - yOffset;
}
if (yOffset < w) {
lateral = anchorX < x + (w / 2) ? yOffset : w - yOffset;
}
// Anchor below label
if (anchorY > y + h) {
path.push('L', x + lateral, y + h);
// Anchor above label
}
else if (anchorY < y) {
path.push('L', x + lateral, y);
// Anchor left of label
}
else if (anchorX < x) {
path.push('L', x, y + h / 2);
// Anchor right of label
}
else if (anchorX > x + w) {
path.push('L', x + w, y + h / 2);
}
}
return path || [];
};
/**
* Points to avoid. In addition to actual data points, the label should avoid
* interpolated positions.
*
* @private
* @function Highcharts.Series#getPointsOnGraph
*/
Series.prototype.getPointsOnGraph = function () {
if (!this.xAxis && !this.yAxis) {
return;
}
var distance = 16, points = this.points, point, last, interpolated = [], i, deltaX, deltaY, delta, len, n, j, d, graph = this.graph || this.area, node = graph.element, inverted = this.chart.inverted, xAxis = this.xAxis, yAxis = this.yAxis, paneLeft = inverted ? yAxis.pos : xAxis.pos, paneTop = inverted ? xAxis.pos : yAxis.pos, onArea = pick(this.options.label.onArea, !!this.area), translatedThreshold = yAxis.getThreshold(this.options.threshold), grid = {};
/**
* Push the point to the interpolated points, but only if that position in
* the grid has not been occupied. As a performance optimization, we divide
* the plot area into a grid and only add one point per series (#9815).
* @private
*/
function pushDiscrete(point) {
var cellSize = 8, key = Math.round(point.plotX / cellSize) + ',' +
Math.round(point.plotY / cellSize);
if (!grid[key]) {
grid[key] = 1;
interpolated.push(point);
}
}
// For splines, get the point at length (possible caveat: peaks are not
// correctly detected)
if (this.getPointSpline &&
node.getPointAtLength &&
!onArea &&
// Not performing well on complex series, node.getPointAtLength is too
// heavy (#9815)
points.length < this.chart.plotSizeX / distance) {
// If it is animating towards a path definition, use that briefly, and
// reset
if (graph.toD) {
d = graph.attr('d');
graph.attr({ d: graph.toD });
}
len = node.getTotalLength();
for (i = 0; i < len; i += distance) {
point = node.getPointAtLength(i);
pushDiscrete({
chartX: paneLeft + point.x,
chartY: paneTop + point.y,
plotX: point.x,
plotY: point.y
});
}
if (d) {
graph.attr({ d: d });
}
// Last point
point = points[points.length - 1];
point.chartX = paneLeft + point.plotX;
point.chartY = paneTop + point.plotY;
pushDiscrete(point);
// Interpolate
}
else {
len = points.length;
for (i = 0; i < len; i += 1) {
point = points[i];
last = points[i - 1];
// Absolute coordinates so we can compare different panes
point.chartX = paneLeft + point.plotX;
point.chartY = paneTop + point.plotY;
if (onArea) {
// Vertically centered inside area
point.chartCenterY = paneTop + (point.plotY +
pick(point.yBottom, translatedThreshold)) / 2;
}
// Add interpolated points
if (i > 0) {
deltaX = Math.abs(point.chartX - last.chartX);
deltaY = Math.abs(point.chartY - last.chartY);
delta = Math.max(deltaX, deltaY);
if (delta > distance) {
n = Math.ceil(delta / distance);
for (j = 1; j < n; j += 1) {
pushDiscrete({
chartX: last.chartX +
(point.chartX - last.chartX) *
(j / n),
chartY: last.chartY +
(point.chartY - last.chartY) *
(j / n),
chartCenterY: last.chartCenterY +
(point.chartCenterY -
last.chartCenterY) * (j / n),
plotX: last.plotX +
(point.plotX - last.plotX) *
(j / n),
plotY: last.plotY +
(point.plotY - last.plotY) *
(j / n)
});
}
}
}
// Add the real point in order to find positive and negative peaks
if (isNumber(point.plotY)) {
pushDiscrete(point);
}
}
}
// Get the bounding box so we can do a quick check first if the bounding
// boxes overlap.
/*
interpolated.bBox = node.getBBox();
interpolated.bBox.x += paneLeft;
interpolated.bBox.y += paneTop;
*/
return interpolated;
};
/**
* Overridable function to return series-specific font sizes for the labels. By
* default it returns bigger font sizes for series with the greater sum of y
* values.
*
* @private
* @function Highcharts.Series#labelFontSize
*/
Series.prototype.labelFontSize = function (minFontSize, maxFontSize) {
return minFontSize + ((this.sum / this.chart.labelSeriesMaxSum) *
(maxFontSize - minFontSize)) + 'px';
};
/**
* Check whether a proposed label position is clear of other elements.
*
* @private
* @function Highcharts.Series#checkClearPoint
*/
Series.prototype.checkClearPoint = function (x, y, bBox, checkDistance) {
var distToOthersSquared = Number.MAX_VALUE, // distance to other graphs
distToPointSquared = Number.MAX_VALUE, dist, connectorPoint, onArea = pick(this.options.label.onArea, !!this.area), findDistanceToOthers = (onArea || this.options.label.connectorAllowed), chart = this.chart, series, points, leastDistance = 16, withinRange, xDist, yDist, i, j;
/**
* @private
*/
function intersectRect(r1, r2) {
return !(r2.left > r1.right ||
r2.right < r1.left ||
r2.top > r1.bottom ||
r2.bottom < r1.top);
}
/**
* Get the weight in order to determine the ideal position. Larger distance
* to other series gives more weight. Smaller distance to the actual point
* (connector points only) gives more weight.
* @private
*/
function getWeight(distToOthersSquared, distToPointSquared) {
return distToOthersSquared - distToPointSquared;
}
// First check for collision with existing labels
for (i = 0; i < chart.boxesToAvoid.length; i += 1) {
if (intersectRect(chart.boxesToAvoid[i], {
left: x,
right: x + bBox.width,
top: y,
bottom: y + bBox.height
})) {
return false;
}
}
// For each position, check if the lines around the label intersect with any
// of the graphs.
for (i = 0; i < chart.series.length; i += 1) {
series = chart.series[i];
points = series.interpolatedPoints;
if (series.visible && points) {
for (j = 1; j < points.length; j += 1) {
if (
// To avoid processing, only check intersection if the X
// values are close to the box.
points[j].chartX >= x - leastDistance &&
points[j - 1].chartX <= x + bBox.width +
leastDistance
/* @todo condition above is not the same as below
(
(points[j].chartX as any) >=
(x - leastDistance)
) && (
(points[j - 1].chartX as any) <=
(x + bBox.width + leastDistance)
) */
) {
// If any of the box sides intersect with the line, return.
if (boxIntersectLine(x, y, bBox.width, bBox.height, points[j - 1].chartX, points[j - 1].chartY, points[j].chartX, points[j].chartY)) {
return false;
}
// But if it is too far away (a padded box doesn't
// intersect), also return.
if (this === series && !withinRange && checkDistance) {
withinRange = boxIntersectLine(x - leastDistance, y - leastDistance, bBox.width + 2 * leastDistance, bBox.height + 2 * leastDistance, points[j - 1].chartX, points[j - 1].chartY, points[j].chartX, points[j].chartY);
}
}
// Find the squared distance from the center of the label. On
// area series, avoid its own graph.
if ((findDistanceToOthers || withinRange) &&
(this !== series || onArea)) {
xDist = x + bBox.width / 2 - points[j].chartX;
yDist = y + bBox.height / 2 - points[j].chartY;
distToOthersSquared = Math.min(distToOthersSquared, xDist * xDist + yDist * yDist);
}
}
// Do we need a connector?
if (!onArea &&
findDistanceToOthers &&
this === series &&
((checkDistance && !withinRange) ||
distToOthersSquared < Math.pow(this.options.label.connectorNeighbourDistance, 2))) {
for (j = 1; j < points.length; j += 1) {
dist = Math.min((Math.pow(x + bBox.width / 2 - points[j].chartX, 2) +
Math.pow(y + bBox.height / 2 - points[j].chartY, 2)), (Math.pow(x - points[j].chartX, 2) +
Math.pow(y - points[j].chartY, 2)), (Math.pow(x + bBox.width - points[j].chartX, 2) +
Math.pow(y - points[j].chartY, 2)), (Math.pow(x + bBox.width - points[j].chartX, 2) +
Math.pow(y + bBox.height - points[j].chartY, 2)), (Math.pow(x - points[j].chartX, 2) +
Math.pow(y + bBox.height - points[j].chartY, 2)));
if (dist < distToPointSquared) {
distToPointSquared = dist;
connectorPoint = points[j];
}
}
withinRange = true;
}
}
}
return !checkDistance || withinRange ? {
x: x,
y: y,
weight: getWeight(distToOthersSquared, connectorPoint ? distToPointSquared : 0),
connectorPoint: connectorPoint
} : false;
};
/**
* The main initialize method that runs on chart level after initialization and
* redraw. It runs in a timeout to prevent locking, and loops over all series,
* taking all series and labels into account when placing the labels.
*
* @private
* @function Highcharts.Chart#drawSeriesLabels
*/
Chart.prototype.drawSeriesLabels = function () {
// console.time('drawSeriesLabels');
var chart = this, labelSeries = this.labelSeries;
chart.boxesToAvoid = [];
// Build the interpolated points
labelSeries.forEach(function (series) {
series.interpolatedPoints = series.getPointsOnGraph();
(series.options.label.boxesToAvoid || []).forEach(function (box) {
chart.boxesToAvoid.push(box);
});
});
chart.series.forEach(function (series) {
if (!series.xAxis && !series.yAxis) {
return;
}
var bBox, x, y, results = [], clearPoint, i, best, labelOptions = series.options.label, inverted = chart.inverted, paneLeft = (inverted ? series.yAxis.pos : series.xAxis.pos), paneTop = (inverted ? series.xAxis.pos : series.yAxis.pos), paneWidth = chart.inverted ? series.yAxis.len : series.xAxis.len, paneHeight = chart.inverted ? series.xAxis.len : series.yAxis.len, points = series.interpolatedPoints, onArea = pick(labelOptions.onArea, !!series.area), label = series.labelBySeries, isNew = !label, minFontSize = labelOptions.minFontSize, maxFontSize = labelOptions.maxFontSize, dataExtremes, areaMin, areaMax, colorClass = 'highcharts-color-' + pick(series.colorIndex, 'none');
// Stay within the area data bounds (#10038)
if (onArea && !inverted) {
dataExtremes = [
series.xAxis.toPixels(series.xData[0]),
series.xAxis.toPixels(series.xData[series.xData.length - 1])
];
areaMin = Math.min.apply(Math, dataExtremes);
areaMax = Math.max.apply(Math, dataExtremes);
}
/**
* @private
*/
function insidePane(x, y, bBox) {
var leftBound = Math.max(paneLeft, pick(areaMin, -Infinity)), rightBound = Math.min(paneLeft + paneWidth, pick(areaMax, Infinity));
return (x > leftBound &&
x <= rightBound - bBox.width &&
y >= paneTop &&
y <= paneTop + paneHeight - bBox.height);
}
/**
* @private
*/
function destroyLabel() {
if (label) {
series.labelBySeries = label.destroy();
}
}
if (series.visible && !series.isSeriesBoosting && points) {
if (!label) {
series.labelBySeries = label = chart.renderer
.label(series.name, 0, -9999, 'connector')
.addClass('highcharts-series-label ' +
'highcharts-series-label-' + series.index + ' ' +
(series.options.className || '') +
colorClass);
if (!chart.renderer.styledMode) {
label.css(extend({
color: onArea ?
chart.renderer.getContrast(series.color) :
series.color
}, series.options.label.style));
}
// Adapt label sizes to the sum of the data
if (minFontSize && maxFontSize) {
label.css({
fontSize: series.labelFontSize(minFontSize, maxFontSize)
});
}
label
.attr({
padding: 0,
opacity: chart.renderer.forExport ? 1 : 0,
stroke: series.color,
'stroke-width': 1,
zIndex: 3
})
.add();
}
bBox = label.getBBox();
bBox.width = Math.round(bBox.width);
// Ideal positions are centered above or below a point on right side
// of chart
for (i = points.length - 1; i > 0; i -= 1) {
if (onArea) {
// Centered
x = points[i].chartX - bBox.width / 2;
y = points[i].chartCenterY - bBox.height / 2;
if (insidePane(x, y, bBox)) {
best = series.checkClearPoint(x, y, bBox);
}
if (best) {
results.push(best);
}
}
else {
// Right - up
x = points[i].chartX + labelDistance;
y = points[i].chartY - bBox.height - labelDistance;
if (insidePane(x, y, bBox)) {
best = series.checkClearPoint(x, y, bBox, true);
}
if (best) {
results.push(best);
}
// Right - down
x = points[i].chartX + labelDistance;
y = points[i].chartY + labelDistance;
if (insidePane(x, y, bBox)) {
best = series.checkClearPoint(x, y, bBox, true);
}
if (best) {
results.push(best);
}
// Left - down
x = points[i].chartX - bBox.width - labelDistance;
y = points[i].chartY + labelDistance;
if (insidePane(x, y, bBox)) {
best = series.checkClearPoint(x, y, bBox, true);
}
if (best) {
results.push(best);
}
// Left - up
x = points[i].chartX - bBox.width - labelDistance;
y = points[i].chartY - bBox.height - labelDistance;
if (insidePane(x, y, bBox)) {
best = series.checkClearPoint(x, y, bBox, true);
}
if (best) {
results.push(best);
}
}
}
// Brute force, try all positions on the chart in a 16x16 grid
if (labelOptions.connectorAllowed && !results.length && !onArea) {
for (x = paneLeft + paneWidth - bBox.width; x >= paneLeft; x -= 16) {
for (y = paneTop; y < paneTop + paneHeight - bBox.height; y += 16) {
clearPoint = series.checkClearPoint(x, y, bBox, true);
if (clearPoint) {
results.push(clearPoint);
}
}
}
}
if (results.length) {
results.sort(function (a, b) {
return b.weight - a.weight;
});
best = results[0];
chart.boxesToAvoid.push({
left: best.x,
right: best.x + bBox.width,
top: best.y,
bottom: best.y + bBox.height
});
// Move it if needed
var dist = Math.sqrt(Math.pow(Math.abs(best.x - label.x), 2), Math.pow(Math.abs(best.y - label.y), 2));
if (dist) {
// Move fast and fade in - pure animation movement is
// distractive...
var attr = {
opacity: chart.renderer.forExport ? 1 : 0,
x: best.x,
y: best.y
}, anim = {
opacity: 1
};
// ... unless we're just moving a short distance
if (dist <= 10) {
anim = {
x: attr.x,
y: attr.y
};
attr = {};
}
series.labelBySeries
.attr(extend(attr, {
anchorX: best.connectorPoint &&
best.connectorPoint.plotX + paneLeft,
anchorY: best.connectorPoint &&
best.connectorPoint.plotY + paneTop
}))
.animate(anim, isNew ?
// Default initial animation to a fraction of
// the series animation (#9396)
animObject(series.options.animation).duration * 0.2 :
// On updating, default to the general chart
// animation
chart.renderer.globalAnimation);
// Record closest point to stick to for sync redraw
series.options.kdNow = true;
series.buildKDTree();
var closest = series.searchPoint({
chartX: best.x,
chartY: best.y
}, true);
label.closest = [
closest,
best.x - closest.plotX,
best.y - closest.plotY
];
}
}
else {
destroyLabel();
}
}
else {
destroyLabel();
}
});
H.fireEvent(chart, 'afterDrawSeriesLabels');
// console.timeEnd('drawSeriesLabels');
};
/* eslint-disable no-invalid-this */
/**
* Prepare drawing series labels.
*
* @private
* @function drawLabels
*/
function drawLabels(e) {
var chart = this, delay = animObject(chart.renderer.globalAnimation).duration;
chart.labelSeries = [];
chart.labelSeriesMaxSum = 0;
U.clearTimeout(chart.seriesLabelTimer);
// Which series should have labels
chart.series.forEach(function (series) {
var options = series.options.label, label = series.labelBySeries, closest = label && label.closest;
if (options.enabled &&
series.visible &&
(series.graph || series.area) &&
!series.isSeriesBoosting) {
chart.labelSeries.push(series);
if (options.minFontSize && options.maxFontSize) {
series.sum = series.yData.reduce(function (pv, cv) {
return (pv || 0) + (cv || 0);
}, 0);
chart.labelSeriesMaxSum = Math.max(chart.labelSeriesMaxSum, series.sum);
}
// The labels are processing heavy, wait until the animation is done
if (e.type === 'load') {
delay = Math.max(delay, animObject(series.options.animation).duration);
}
// Keep the position updated to the axis while redrawing
if (closest) {
if (typeof closest[0].plotX !== 'undefined') {
label.animate({
x: closest[0].plotX + closest[1],
y: closest[0].plotY + closest[2]
});
}
else {
label.attr({ opacity: 0 });
}
}
}
});
chart.seriesLabelTimer = syncTimeout(function () {
if (chart.series && chart.labelSeries) { // #7931, chart destroyed
chart.drawSeriesLabels();
}
}, chart.renderer.forExport || !delay ? 0 : delay);
}
// Leave both events, we handle animation differently (#9815)
addEvent(Chart, 'load', drawLabels);
addEvent(Chart, 'redraw', drawLabels);
|
// References:
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// https://gist.github.com/1579671
// http://updates.html5rocks.com/2012/05/requestAnimationFrame-API-now-with-sub-millisecond-precision
// https://gist.github.com/timhall/4078614
// https://github.com/Financial-Times/polyfill-service/tree/master/polyfills/requestAnimationFrame
// requestAnimationFrame
var lastTime = Date.now();
var vendors = [ 'ms', 'moz', 'webkit', 'o' ];
for (var x = 0; x < vendors.length && !window.requestAnimationFrame; x++)
{
window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'];
window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] || window[vendors[x] + 'CancelRequestAnimationFrame'];
}
if (!window.requestAnimationFrame)
{
window.requestAnimationFrame = function (callback)
{
if (typeof callback !== 'function')
{
throw new TypeError(callback + 'is not a function');
}
var currentTime = Date.now();
var delay = 16 + lastTime - currentTime;
if (delay < 0)
{
delay = 0;
}
lastTime = currentTime;
return setTimeout(function () {
lastTime = Date.now();
callback(performance.now());
}, delay);
};
}
if (!window.cancelAnimationFrame)
{
window.cancelAnimationFrame = function(id)
{
clearTimeout(id);
};
}
|
/**
* Filter to keep request sequence.
*/
var logger = require('pomelo-logger').getLogger('pomelo', __filename);
var taskManager = require('../../common/manager/taskManager');
module.exports = function() {
return new Filter();
};
var Filter = function() {
};
/**
* request serialization after filter
*/
Filter.prototype.before = function(msg, session, next) {
taskManager.addTask(session.id, function(task) {
session.__serialTask__ = task;
next();
}, function() {
logger.error('[serial filter] msg timeout, msg:' + JSON.stringify(msg));
});
};
/**
* request serialization after filter
*/
Filter.prototype.after = function(err, msg, session, resp, next) {
var task = session.__serialTask__;
if(task) {
if(!task.done() && !err) {
err = new Error('task time out. msg:' + JSON.stringify(msg));
}
}
next(err);
};
|
var SCRATCH_UUID = 'a495ff20c5b14b44b5121370f02d74de';
var SCRATCH_ONE = 'a495ff21c5b14b44b5121370f02d74de';
function ScratchOne() {
}
ScratchOne.prototype.readOne = function(callback) {
this.readDataCharacteristic(SCRATCH_UUID, SCRATCH_ONE, callback);
};
ScratchOne.prototype.writeOne = function(data, callback) {
this.writeDataCharacteristic(SCRATCH_UUID, SCRATCH_ONE, data, callback);
};
ScratchOne.prototype.notifyOne = function(onRead, callback) {
this.notifyCharacteristic(SCRATCH_UUID, SCRATCH_ONE, true, onRead, callback);
};
ScratchOne.prototype.unnotifyOne = function(onRead, callback) {
this.notifyCharacteristic(SCRATCH_UUID, SCRATCH_ONE, false, onRead, callback);
};
module.exports = ScratchOne;
|
var FRAME_RATE = 50;
var MY_RADIUS = 10;
var MAX_SPEED = 10;
var walkerManagers = [];
function Walker(x, y, radius, index) {
this.x = x;
this.y = y;
this.radius = radius;
this.index = index;
}
Walker.prototype.update = function(time) {
this.x += (sin(this.index + time) + map(noise(time, this.index), 0, 1, -2, 2));
this.y += (cos(this.index + time) + map(noise(time, this.index), 0, 1, -2, 2));
this.radius -= 0.08;
}
Walker.prototype.render = function() {
noStroke();
fill(206, 33, 89, 90);
ellipse(this.x, this.y, this.radius + 2, this.radius + 2);
fill(206, 33, 89);
ellipse(this.x, this.y, this.radius, this.radius);
}
function WalkerManager(x, y) {
this.x = x;
this.y = y;
this.loc = createVector(random(x), random(y));
this.loc.x = constrain(this.loc.x, MY_RADIUS, width - MY_RADIUS);
this.loc.y = constrain(this.loc.y, MY_RADIUS, height - MY_RADIUS);
this.noff = createVector(random(10), random(10));
this.counter = 0;
this.history = [];
}
WalkerManager.prototype.walk = function (time) {
if (isMousePressed) {
var easing = createVector(mouseX, mouseY).sub(this.loc).mult(0.06);
this.loc.add(easing);
} else {
var lerpX = map(noise(this.noff.y, this.noff.x), 0, 1, MAX_SPEED * -1, MAX_SPEED);
var lerpY = map(noise(this.noff.x, this.noff.y), 0, 1, MAX_SPEED * -1, MAX_SPEED);
this.loc.add(createVector(lerpX, lerpY));
this.loc.x = constrain(this.loc.x, MY_RADIUS, width - MY_RADIUS);
this.loc.y = constrain(this.loc.y, MY_RADIUS, height - MY_RADIUS);
var nLerp = map(noise(this.counter), 0, 1, 0, 0.01);
this.noff.add(nLerp, nLerp);
}
this.radius = noise(time) * 40;
this.history.push(new Walker(this.loc.x, this.loc.y, this.radius, this.counter));
this.counter++;
};
WalkerManager.prototype.update = function(time) {
this.history.forEach(function(walker, index) {
if (index === this.history.length - 1) {
return;
}
walker.update(time);
if (walker.radius <= 0) {
this.history.splice(index, 1);
}
}.bind(this));
}
WalkerManager.prototype.render = function () {
this.history.forEach(function(walker, index) {
walker.render();
});
var lastWalker = this.history[this.history.length - 1];
var radius = Math.min(lastWalker.radius + 6, MY_RADIUS * 2);
fill(206, 33, 89, 90);
ellipse(lastWalker.x, lastWalker.y, radius, radius);
};
function setup() {
createCanvas(windowWidth, windowHeight);
frameRate(FRAME_RATE);
background(255);
for(var i = 0; i < 1; i++) {
walkerManagers.push(new WalkerManager(width, height));
}
}
function draw() {
background(255);
walkerManagers.forEach(function(walkerManager) {
walkerManager.walk(frameCount * 0.1);
walkerManager.render();
walkerManager.update(frameCount * 0.1);
});
}
|
import{__decorate,__metadata}from"tslib";import{ɵɵdefineInjectable,ɵɵinject,Injectable}from"@angular/core";import{Angulartics2}from"angulartics2";var facebookEventList=["ViewContent","Search","AddToCart","AddToWishlist","InitiateCheckout","AddPaymentInfo","Purchase","Lead","CompleteRegistration"],Angulartics2Facebook=function(){function t(t){this.angulartics2=t}return t.prototype.startTracking=function(){var t=this;this.angulartics2.eventTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(function(e){return t.eventTrack(e.action,e.properties)})},t.prototype.eventTrack=function(t,e){if(void 0===e&&(e={}),"undefined"!=typeof fbq)return-1===facebookEventList.indexOf(t)?fbq("trackCustom",t,e):fbq("track",t,e)},t.ngInjectableDef=ɵɵdefineInjectable({factory:function(){return new t(ɵɵinject(Angulartics2))},token:t,providedIn:"root"}),t=__decorate([Injectable({providedIn:"root"}),__metadata("design:paramtypes",[Angulartics2])],t)}();export{Angulartics2Facebook};
|
/**
* uri validator
*
* @link http://formvalidation.io/validators/uri/
* @author https://twitter.com/formvalidation
* @copyright (c) 2013 - 2015 Nguyen Huu Phuoc
* @license http://formvalidation.io/license/
*/
(function($) {
FormValidation.I18n = $.extend(true, FormValidation.I18n || {}, {
'en_US': {
uri: {
'default': 'Please enter a valid URI'
}
}
});
FormValidation.Validator.uri = {
html5Attributes: {
message: 'message',
allowlocal: 'allowLocal',
allowemptyprotocol: 'allowEmptyProtocol',
protocol: 'protocol'
},
enableByHtml5: function($field) {
return ('url' === $field.attr('type'));
},
/**
* Return true if the input value is a valid URL
*
* @param {FormValidation.Base} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options
* - message: The error message
* - allowLocal: Allow the private and local network IP. Default to false
* - allowEmptyProtocol: Allow the URI without protocol. Default to false
* - protocol: The protocols, separated by a comma. Default to "http, https, ftp"
* @returns {Boolean}
*/
validate: function(validator, $field, options, validatorName) {
var value = validator.getFieldValue($field, validatorName);
if (value === '') {
return true;
}
// Credit to https://gist.github.com/dperini/729294
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
//
// the regular expression composed & commented
// could be easily tweaked for RFC compliance,
// it was expressly modified to fit & satisfy
// these test for an URL shortener:
//
// http://mathiasbynens.be/demo/url-regex
//
// Notes on possible differences from a standard/generic validation:
//
// - utf-8 char class take in consideration the full Unicode range
// - TLDs are mandatory unless `allowLocal` is true
// - protocols have been restricted to ftp, http and https only as requested
//
// Changes:
//
// - IP address dotted notation validation, range: 1.0.0.0 - 223.255.255.255
// first and last IP address of each class is considered invalid
// (since they are broadcast/network addresses)
//
// - Added exclusion of private, reserved and/or local networks ranges
// unless `allowLocal` is true
//
// - Added possibility of choosing a custom protocol
//
// - Add option to validate without protocol
//
var allowLocal = options.allowLocal === true || options.allowLocal === 'true',
allowEmptyProtocol = options.allowEmptyProtocol === true || options.allowEmptyProtocol === 'true',
protocol = (options.protocol || 'http, https, ftp').split(',').join('|').replace(/\s/g, ''),
urlExp = new RegExp(
"^" +
// protocol identifier
"(?:(?:" + protocol + ")://)" +
// allow empty protocol
(allowEmptyProtocol ? '?' : '') +
// user:pass authentication
"(?:\\S+(?::\\S*)?@)?" +
"(?:" +
// IP address exclusion
// private & local networks
(allowLocal
? ''
: ("(?!(?:10|127)(?:\\.\\d{1,3}){3})" +
"(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})" +
"(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})")) +
// IP address dotted notation octets
// excludes loopback network 0.0.0.0
// excludes reserved space >= 224.0.0.0
// excludes network & broadcast addresses
// (first & last IP address of each class)
"(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])" +
"(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}" +
"(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))" +
"|" +
// host name
"(?:(?:[a-z\\u00a1-\\uffff0-9]-?)*[a-z\\u00a1-\\uffff0-9]+)" +
// domain name
"(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-?)*[a-z\\u00a1-\\uffff0-9])*" +
// TLD identifier
"(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))" +
// Allow intranet sites (no TLD) if `allowLocal` is true
(allowLocal ? '?' : '') +
")" +
// port number
"(?::\\d{2,5})?" +
// resource path
"(?:/[^\\s]*)?" +
"$", "i"
);
return urlExp.test(value);
}
};
}(jQuery));
|
/*
* Manages the control palette loading and displaying
*/
+function ($) { "use strict";
var Base = $.oc.foundation.base,
BaseProto = Base.prototype
var ControlPalette = function() {
Base.call(this)
this.controlPaletteMarkup = null
this.popoverMarkup = null
this.containerMarkup = null
this.$popoverContainer = null
}
ControlPalette.prototype = Object.create(BaseProto)
ControlPalette.prototype.constructor = ControlPalette
// INTERNAL METHODS
// ============================
ControlPalette.prototype.loadControlPalette = function(element, controlId) {
if (this.controlPaletteMarkup === null) {
var data = {
controlId: controlId
}
$.oc.stripeLoadIndicator.show()
$(element).request('onModelFormLoadControlPalette', {
data: data
}).done(
this.proxy(this.controlPaletteMarkupLoaded)
).always(function(){
$.oc.stripeLoadIndicator.hide()
})
}
else {
this.showControlPalette(controlId, true)
}
}
ControlPalette.prototype.controlPaletteMarkupLoaded = function(responseData) {
this.controlPaletteMarkup = responseData.markup
this.showControlPalette(responseData.controlId)
}
ControlPalette.prototype.getControlById = function(controlId) {
return document.body.querySelector('li[data-builder-control-id="'+controlId+'"]')
}
ControlPalette.prototype.showControlPalette = function(controlId, initControls) {
if (this.getContainerPreference()) {
this.showControlPalletteInContainer(controlId, initControls)
}
else {
this.showControlPalletteInPopup(controlId, initControls)
}
}
ControlPalette.prototype.assignControlIdToTemplate = function(template, controlId) {
return template.replace('%c', controlId)
}
ControlPalette.prototype.markPlaceholderPaletteOpen = function(control) {
$(control).addClass('control-palette-open')
}
ControlPalette.prototype.markPlaceholderPaletteNotOpen = function(control) {
$(control).removeClass('control-palette-open')
}
ControlPalette.prototype.getContainerPreference = function() {
return $.oc.inspector.manager.getContainerPreference()
}
ControlPalette.prototype.setContainerPreference = function(value) {
return $.oc.inspector.manager.setContainerPreference(value)
}
ControlPalette.prototype.addControl = function(ev) {
var $target = $(ev.currentTarget),
controlId = $target.closest('[data-control-palette-controlid]').attr('data-control-palette-controlid')
ev.preventDefault()
ev.stopPropagation()
if (!controlId) {
return false;
}
var control = this.getControlById(controlId)
if (!control) {
return false
}
if ($(control).hasClass('loading-control')) {
return false
}
$target.trigger('close.oc.popover')
var promise = $.oc.builder.formbuilder.controller.addControlFromControlPalette(controlId,
$target.data('builderControlType'),
$target.data('builderControlName'))
promise.done(function() {
$.oc.inspector.manager.createInspector(control)
$(control).trigger('change') // Set modified state for the form
})
return false
}
//
// Popover wrapper
//
ControlPalette.prototype.showControlPalletteInPopup = function(controlId, initControls) {
var control = this.getControlById(controlId)
if (!control) {
return
}
var $control = $(control)
$control.ocPopover({
content: this.assignControlIdToTemplate(this.getPopoverMarkup(), controlId),
highlightModalTarget: true,
modal: true,
placement: 'below',
containerClass: 'control-inspector',
offset: 15,
width: 400
})
var $popoverContainer = $control.data('oc.popover').$container
if (initControls) {
// Initialize the scrollpad control in the popup only when the
// popup is created from the cached markup string
$popoverContainer.trigger('render')
}
}
ControlPalette.prototype.getPopoverMarkup = function() {
if (this.popoverMarkup !== null) {
return this.popoverMarkup
}
var outerMarkup = $('script[data-template=control-palette-popover]').html()
this.popoverMarkup = outerMarkup.replace('%s', this.controlPaletteMarkup)
return this.popoverMarkup
}
ControlPalette.prototype.dockToContainer = function(ev) {
var $popoverBody = $(ev.target).closest('.control-popover'),
$controlIdContainer = $popoverBody.find('[data-control-palette-controlid]'),
controlId = $controlIdContainer.attr('data-control-palette-controlid'),
control = this.getControlById(controlId)
$popoverBody.trigger('close.oc.popover')
this.setContainerPreference(true)
if (control) {
this.loadControlPalette($(control), controlId)
}
}
//
// Container wrapper
//
ControlPalette.prototype.showControlPalletteInContainer = function(controlId, initControls) {
var control = this.getControlById(controlId)
if (!control) {
return
}
var inspectorManager = $.oc.inspector.manager,
$container = inspectorManager.getContainerElement($(control))
// If the container is already in use, apply values to the inspectable elements
if (!inspectorManager.applyValuesFromContainer($container) || !inspectorManager.containerHidingAllowed($container)) {
return
}
// Dispose existing Inspector
$.oc.foundation.controlUtils.disposeControls($container.get(0))
this.markPlaceholderPaletteOpen(control)
var template = this.assignControlIdToTemplate(this.getContainerMarkup(), controlId)
$container.append(template)
$container.find('[data-control-palette-controlid]').one('dispose-control', this.proxy(this.onRemovePaletteFromContainer))
if (initControls) {
// Initialize the scrollpad control in the container only when the
// palette is created from the cached markup string
$container.trigger('render')
}
}
ControlPalette.prototype.onRemovePaletteFromContainer = function(ev) {
this.removePaletteFromContainer($(ev.target))
}
ControlPalette.prototype.removePaletteFromContainer = function($container) {
var controlId = $container.attr('data-control-palette-controlid'),
control = this.getControlById(controlId)
if (control) {
this.markPlaceholderPaletteNotOpen(control)
}
var $parent = $container.parent()
$container.remove()
$parent.html('')
}
ControlPalette.prototype.getContainerMarkup = function() {
if (this.containerMarkup !== null) {
return this.containerMarkup
}
var outerMarkup = $('script[data-template=control-palette-container]').html()
this.containerMarkup = outerMarkup.replace('%s', this.controlPaletteMarkup)
return this.containerMarkup
}
ControlPalette.prototype.closeInContainer = function(ev) {
this.removePaletteFromContainer($(ev.target).closest('[data-control-palette-controlid]'))
}
ControlPalette.prototype.undockFromContainer = function(ev) {
var $container = $(ev.target).closest('[data-control-palette-controlid]'),
controlId = $container.attr('data-control-palette-controlid'),
control = this.getControlById(controlId)
this.removePaletteFromContainer($container)
this.setContainerPreference(false)
if (control) {
this.loadControlPalette($(control), controlId)
}
}
$(document).ready(function(){
// There is a single instance of the control palette manager.
$.oc.builder.formbuilder.controlPalette = new ControlPalette()
})
}(window.jQuery);
|
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/Main.js
*
* Copyright (c) 2009-2016 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
MathJax.OutputJax['HTML-CSS'].FONTDATA.FONTS['MathJax_SansSerif-bold'] = {
directory: 'SansSerif/Bold',
family: 'MathJax_SansSerif',
weight: 'bold',
testString: "MathJax SansSerif ^ _",
Ranges: [
[0x0,0x7F,"BasicLatin"],
[0x80,0xFFFF,"Other"],
[0x300,0x36F,"CombDiacritMarks"]
]
};
MathJax.Callback.Queue(
["initFont",MathJax.OutputJax["HTML-CSS"],"MathJax_SansSerif-bold"],
["loadComplete",MathJax.Ajax,MathJax.OutputJax["HTML-CSS"].fontDir+"/SansSerif/Bold/Main.js"]
);
|
import config from './config/environment'
import Ember from 'ember'
import loadInitializers from 'ember-load-initializers'
import Resolver from './resolver'
const {Application} = Ember
let App
Ember.MODEL_FACTORY_INJECTIONS = true
App = Application.extend({
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix,
Resolver
})
loadInitializers(App, config.modulePrefix)
export default App
|
run_spec(__dirname, null, ["typescript"]);
run_spec(__dirname, { trailingComma: "all" }, ["typescript"]);
run_spec(__dirname, { trailingComma: "es5" }, ["typescript"]);
|
var qs = require('querystring');
var url = require('url');
var Entities = require('html-entities').AllHtmlEntities;
var FORMATS = require('./formats');
var VIDEO_URL = 'https://www.youtube.com/watch?v=';
/**
* Parses a string representation of amount of milliseconds.
*
* @param {String} time
* @return {Number}
*/
var timeRegexp = /(?:(\d+)h)?(?:(\d+)m(?!s))?(?:(\d+)s)?(?:(\d+)(?:ms)?)?/;
exports.parseTime = function(time) {
var result = timeRegexp.exec(time.toString());
var hours = result[1] || 0;
var mins = result[2] || 0;
var secs = result[3] || 0;
var ms = result[4] || 0;
return hours * 3600000 + mins * 60000 + secs * 1000 + parseInt(ms, 10);
};
// Use these to help sort formats, higher is better.
var audioEncodingRanks = {
mp3: 1,
vorbis: 2,
aac: 3,
opus: 4,
flac: 5,
};
var videoEncodingRanks = {
'Sorenson H.283': 1,
'MPEG-4 Visual': 2,
'VP8': 3,
'VP9': 4,
'H.264': 5,
};
/**
* Sort formats from highest quality to lowest.
* By resolution, then video bitrate, then audio bitrate.
*
* @param {Object} a
* @param {Object} b
*/
exports.sortFormats = function(a, b) {
var ares = a.resolution ? parseInt(a.resolution.slice(0, -1), 10) : 0;
var bres = b.resolution ? parseInt(b.resolution.slice(0, -1), 10) : 0;
var afeats = ~~!!ares * 2 + ~~!!a.audioBitrate;
var bfeats = ~~!!bres * 2 + ~~!!b.audioBitrate;
function getBitrate(c) {
if (c.bitrate) {
var s = c.bitrate.split('-');
return parseFloat(s[s.length - 1], 10);
} else {
return 0;
}
}
function audioScore(c) {
var abitrate = c.audioBitrate || 0;
var aenc = audioEncodingRanks[c.audioEncoding] || 0;
return abitrate + aenc / 10;
}
if (afeats === bfeats) {
if (ares === bres) {
var avbitrate = getBitrate(a);
var bvbitrate = getBitrate(b);
if (avbitrate === bvbitrate) {
var aascore = audioScore(a);
var bascore = audioScore(b);
if (aascore === bascore) {
var avenc = videoEncodingRanks[a.encoding] || 0;
var bvenc = videoEncodingRanks[b.encoding] || 0;
return bvenc - avenc;
} else {
return bascore - aascore;
}
} else {
return bvbitrate - avbitrate;
}
} else {
return bres - ares;
}
} else {
return bfeats - afeats;
}
};
/**
* Choose a format depending on the given options.
*
* @param {Array.<Object>} formats
* @param {Object} options
* @return {Object|Error}
*/
exports.chooseFormat = function(formats, options) {
if (typeof options.format === 'object') {
return options.format;
}
if (options.filter) {
formats = exports.filterFormats(formats, options.filter);
if (formats.length === 0) {
return new Error('No formats found with custom filter');
}
}
var format;
var quality = options.quality || 'highest';
switch (quality) {
case 'highest':
format = formats[0];
break;
case 'lowest':
format = formats[formats.length - 1];
break;
default:
var getFormat = function(itag) {
for (var i = 0, len = formats.length; i < len; i++) {
if (formats[i].itag === '' + itag) {
return formats[i];
}
}
return null;
};
if (Array.isArray(quality)) {
for (var i = 0, len = quality.length; i < len; i++) {
format = getFormat(quality[i]);
if (format) { break; }
}
} else {
format = getFormat(quality);
}
}
if (!format) {
return new Error('No such format found: ' + quality);
} else if (format.rtmp) {
return new Error('rtmp protocol not supported');
}
return format;
};
/**
* @param {Array.<Object>} formats
* @param {Function} filter
* @return {Array.<Object>}
*/
exports.filterFormats = function(formats, filter) {
var fn;
switch (filter) {
case 'video':
fn = function(format) { return format.bitrate; };
break;
case 'videoonly':
fn = function(format) { return format.bitrate && !format.audioBitrate; };
break;
case 'audio':
fn = function(format) { return format.audioBitrate; };
break;
case 'audioonly':
fn = function(format) { return !format.bitrate && format.audioBitrate; };
break;
default:
fn = filter;
}
return formats.filter(fn);
};
/**
* Extract string inbetween another.
*
* @param {String} haystack
* @param {String} left
* @param {String} right
* @return {String}
*/
exports.between = function(haystack, left, right) {
var pos;
pos = haystack.indexOf(left);
if (pos === -1) { return ''; }
haystack = haystack.slice(pos + left.length);
pos = haystack.indexOf(right);
if (pos === -1) { return ''; }
haystack = haystack.slice(0, pos);
return haystack;
};
/**
* Get video ID.
*
* There are a few type of video URL formats.
* - http://www.youtube.com/watch?v=VIDEO_ID
* - http://m.youtube.com/watch?v=VIDEO_ID
* - http://youtu.be/VIDEO_ID
* - http://www.youtube.com/v/VIDEO_ID
* - http://www.youtube.com/embed/VIDEO_ID
*
* @param {String} link
* @return {String}
*/
var idRegex = /^[a-zA-Z0-9-_]{11}$/;
exports.getVideoID = function(link) {
if (idRegex.test(link)) {
return link;
}
var parsed = url.parse(link, true);
var id = parsed.query.v;
if (parsed.hostname === 'youtu.be' ||
(parsed.hostname === 'youtube.com' ||
parsed.hostname === 'www.youtube.com') && !id) {
var s = parsed.pathname.split('/');
id = s[s.length - 1];
}
if (!id) {
throw new Error('No video id found: ' + link);
}
if (!idRegex.test(id)) {
throw new Error('Video id (' + id + ') does not match expected format (' + idRegex.toString() + ')');
}
return id;
};
/**
* @param {Object} info
* @param {Boolean} debug
* @return {Array.<Object>}
*/
exports.parseFormats = function(info, debug) {
var formats = [];
if (info.url_encoded_fmt_stream_map) {
formats = formats
.concat(info.url_encoded_fmt_stream_map.split(','));
}
if (info.adaptive_fmts) {
formats = formats.concat(info.adaptive_fmts.split(','));
}
formats = formats
.map(function(format) {
var data = qs.parse(format);
var meta = FORMATS[data.itag];
if (!meta && debug) {
console.warn('No format metadata for itag ' + data.itag + ' found');
}
for (var key in meta) {
data[key] = meta[key];
}
return data;
});
delete info.url_encoded_fmt_stream_map;
delete info.adaptive_fmts;
return formats;
};
/**
* Get video description from html
*
* @param {String} html
* @return {String}
*/
exports.getVideoDescription = function(html) {
var regex = /<p.*?id="eow-description".*?>(.+?)<\/p>[\n\r\s]*?<\/div>/im;
var description = html.match(regex);
return description ? new Entities().decode(description[1]
.replace(/\n/g, ' ')
.replace(/\s*<\s*br\s*\/?\s*>\s*/gi, '\n')
.replace(/<\s*\/\s*p\s*>\s*<\s*p[^>]*>/gi, '\n')
.replace(/<.*?>/gi, '')).trim() : ''
;
};
/**
* Get video Owner from html.
*
* @param {String} body
* @return {Object}
*/
var authorRegexp = /<a href="\/channel\/([\w-]+)"[^>]+>(.+?(?=<\/a>))/;
var aliasRegExp = /<a href="\/user\/([^"]+)/;
exports.getAuthor = function(body) {
var ownerinfo = exports.between(body, '<div id="watch7-user-header" class=" spf-link ">', '<div id="watch8-action-buttons" class="watch-action-buttons clearfix">');
if (ownerinfo === '') {
return {};
}
ownerinfo = new Entities().decode(ownerinfo);
var channelMatch = ownerinfo.match(authorRegexp);
var userMatch = ownerinfo.match(aliasRegExp);
return {
id: channelMatch[1],
name: channelMatch[2],
avatar: url.resolve(VIDEO_URL, exports.between(ownerinfo, 'data-thumb="', '"')),
user: userMatch ? userMatch[1] : null,
channel_url: 'https://www.youtube.com/channel/' + channelMatch[1],
user_url: userMatch ? 'https://www.youtube.com/user/' + userMatch[1] : null,
};
};
/**
* Get video published at from html.
*
* @param {String} body
* @return {String}
*/
exports.getPublished = function(body) {
return Date.parse(exports.between(body, '<meta itemprop="datePublished" content="', '">'));
};
/**
* Get video published at from html.
* Credits to https://github.com/paixaop.
*
* @param {String} body
* @return {Array.<Object>}
*/
exports.getRelatedVideos = function(body) {
var jsonStr = exports.between(body, '\'RELATED_PLAYER_ARGS\': {"rvs":', '},');
try {
jsonStr = JSON.parse(jsonStr);
}
catch (err) {
return [];
}
return jsonStr.split(',').map(function(link) {
return qs.parse(link);
});
};
/**
* @param {Array.<Function>} funcs
* @param {Function(!Error, Array.<Object>)} callback
*/
exports.parallel = function(funcs, callback) {
var funcsDone = 0;
var len = funcs.length;
var errGiven = false;
var results = [];
function checkDone(index, err, result) {
if (errGiven) { return; }
if (err) {
errGiven = true;
callback(err);
return;
}
results[index] = result;
if (++funcsDone === len) {
callback(null, results);
}
}
if (len > 0) {
for (var i = 0; i < len; i++) {
funcs[i](checkDone.bind(null, i));
}
} else {
callback(null, results);
}
};
/**
* (Deep) assign object to another.
*
* @param {Object} target
* @param {Object} source
* @param {boolean} deep
*/
exports.objectAssign = function(target, source, deep) {
for (var key in source) {
if (deep && typeof source[key] === 'object' && source[key] != null &&
target[key]) {
exports.objectAssign(target[key], source[key]);
} else {
target[key] = source[key];
}
}
return target;
};
|
module.exports={title:"Google Earth",slug:"googleearth",svg:'<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>Google Earth icon</title><path d="M12 0c-1.326 0-2.597.22-3.787.613 4.94-1.243 8.575 1.72 11.096 5.606 1.725 2.695 2.813 2.83 4.207 2.412A11.956 11.956 0 0012 0zM7.658 2.156c-1.644.019-3.295.775-4.931 2.207A11.967 11.967 0 000 12c.184-2.823 2.163-5.128 4.87-5.07 2.104.044 4.648 1.518 7.13 5.289 4.87 7.468 10.917 5.483 11.863 1.51.081-.566.137-1.14.137-1.729 0-.176-.02-.347-.027-.521-1.645 1.725-4.899 2.35-8.264-2.97-2.59-4.363-5.31-6.383-8.05-6.353zM3.33 13.236c-1.675.13-2.657 1.804-2.242 3.756A11.955 11.955 0 0012 24c4.215 0 7.898-2.149 10.037-5.412v-.043c-2.836 3.49-8.946 4.255-13.855-2.182-1.814-2.386-3.544-3.228-4.852-3.127Z"/></svg>',get path(){return this.svg.match(/<path\s+d="([^"]*)/)[1]},source:"https://earth.google.com/web/",hex:"4285F4",license:void 0};
|
require("should");
var PurchaseRequest = require('../../data-util/purchasing/purchase-request-data-util');
var helper = require("../../helper");
var validate = require("dl-models").validator.purchasing.purchaseRequest;
var PurchaseRequestManager = require("../../../src/managers/purchasing/purchase-request-manager");
var purchaseRequestManager = null;
before('#00. connect db', function(done) {
helper.getDb()
.then(db => {
purchaseRequestManager = new PurchaseRequestManager(db, {
username: 'dev'
});
done();
})
.catch(e => {
done(e);
});
});
var purchaseRequest;
it('#01. should success when create new data', function(done) {
PurchaseRequest.getNewTestData()
.then(pr => {
purchaseRequest = pr;
validate(purchaseRequest);
done();
})
.catch(e => {
done(e);
});
});
it('#02. should success when post', function(done) {
purchaseRequestManager.post([purchaseRequest])
.then(purchaseRequests => {
var prId = purchaseRequests[0]._id;
purchaseRequestManager.getSingleById(prId)
.then(pr => {
purchaseRequest = pr;
validate(purchaseRequest);
purchaseRequest.isPosted.should.equal(true, "purchase-request.isPosted should be true after posted");
done();
})
.catch(e => {
done(e);
});
})
.catch(e => {
done(e);
});
});
|
/**! Qoopido.demand 5.1.1 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */
!function(d){"use strict";provide(["/demand/function/iterate"],function(e){function t(e){var t,n,r=e.match(c);r&&(t=function(e){var t,n=d.getItem(e);if(n&&(t=n.match(s)))return Array.prototype.slice.call(t,1)}((n=r[1],"["+a+"]["+n+"]["+i+"]")),this.push({id:r[1],version:t[0],size:parseInt(t[1],10),expires:t[2]?new Date(parseInt(t[2],10)):null,demand:t[3],accessed:new Date(parseInt(t[4],10))}))}var a="demand",i="state",c=new RegExp("^\\["+a+"\\]\\[(.+?)\\]\\["+i+"\\]$"),s=/^(.+?),(\d+),(\d*),(.+?),(\d+)$/;return function(){return e(d,t,[])}})}(localStorage);
//# sourceMappingURL=states.js.map
|
var nwmatcher = require("nwmatcher");
function addNwmatcher(document) {
if (!document._nwmatcher) {
document._nwmatcher = nwmatcher({ document: document });
}
return document._nwmatcher;
}
exports.applyQuerySelector = function(doc, dom) {
doc.querySelector = function(selector) {
return addNwmatcher(this).first(selector, this);
};
doc.querySelectorAll = function(selector) {
return new dom.NodeList(addNwmatcher(this).select(selector, this));
};
var _createElement = doc.createElement;
doc.createElement = function() {
var element = _createElement.apply(this, arguments);
element.querySelector = function(selector) {
return addNwmatcher(this.ownerDocument).first(selector, this);
};
element.querySelectorAll = function(selector) {
return new dom.NodeList(addNwmatcher(this.ownerDocument).select(selector, this));
};
element.matchesSelector = function(selector) {
return addNwmatcher(this.ownerDocument).match(this, selector);
};
return element;
};
};
|
(function ($) {
AjaxSolr.CalendarWidget = AjaxSolr.AbstractFacetWidget.extend({
afterRequest: function () {
var self = this;
$(this.target).datepicker('destroy').datepicker({
dateFormat: 'yy-mm-dd',
defaultDate: new Date(1987, 2, 1),
maxDate: $.datepicker.parseDate('yy-mm-dd', this.manager.store.get('facet.date.end').val().substr(0, 10)),
minDate: $.datepicker.parseDate('yy-mm-dd', this.manager.store.get('facet.date.start').val().substr(0, 10)),
nextText: '>',
prevText: '<',
beforeShowDay: function (date) {
var value = $.datepicker.formatDate('yy-mm-dd', date) + 'T00:00:00Z';
var count = self.manager.response.facet_counts.facet_dates[self.field][value];
return [ parseInt(count) > 0, '', count + ' documents found!' ];
},
onSelect: function (dateText, inst) {
if (self.add('[' + dateText + 'T00:00:00Z TO ' + dateText + 'T23:59:59Z]')) {
self.doRequest();
}
}
});
}
});
})(jQuery);
|
/*!
* migrate - Migration
* Copyright (c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
/**
* Expose `Migration`.
*/
module.exports = Migration;
function Migration(title, up, down) {
this.title = title;
this.up = up;
this.down = down;
}
|
var utils = require('../utils');
var prism = new (require('../prism'));
class CodeOutput {
constructor() {
this.container = utils.strToEl(
'<div class="code-output">' +
'<pre><code></code></pre>' +
'</div>' +
'');
this._codeEl = this.container.querySelector('code');
}
async setSvg(svgFile) {
this._codeEl.innerHTML = await prism.highlight(svgFile.text);
}
reset() {
this._codeEl.innerHTML = '';
}
}
module.exports = CodeOutput;
|
var five = require("../lib/johnny-five.js");
var board = new five.Board();
board.on("ready", function() {
var motors = new five.Motors([
{ controller: "EVS_EV3", pin: "BAM1" },
{ controller: "EVS_EV3", pin: "BBM1" },
]);
this.wait(2000, function() {
motors.rev();
this.wait(2000, function() {
motors.stop();
});
});
motors.fwd();
});
|
var Iconv = require("iconv").Iconv,
app = require("./app"),
Configurable = require("./configurable");
var iconv = new Iconv("UTF-8", "ASCII//TRANSLIT//IGNORE");
var wsReplacement = "-";
var overrides = {};
function getWhitespaceReplacement() {
// For future improvements
return "-";
}
var Namer = function () {
Configurable.call(this);
};
Namer.prototype = Object.create(Configurable.prototype);
Namer.prototype.wikify = function (str) {
var ret = str;
if (typeof ret != "string" || ret.trim() === "") {
return "";
}
wsReplacement = getWhitespaceReplacement();
var pc = this.getConfig().pages;
// Replace < and > with '' (Gollum replaces it with '-')
ret = ret.replace(/[<>]/g, '');
// Replace / with '+' (Gollum replaces it with '')
ret = ret.replace(/\//g, '+');
if (pc.title.asciiOnly) {
ret = iconv.convert(ret)
.toString()
.replace(/[^a-zA-Z0-9\- _]/g, "");
}
ret = ret.trim();
if (pc.title.lowercase) {
ret = ret.toLowerCase();
}
ret = ret.replace(/\s/g, wsReplacement);
return ret;
};
// Not symmetric by any chance, but still better than nothing
Namer.prototype.unwikify = function (str) {
var ret = str;
if (typeof ret != "string" || ret.trim() === "") {
return "";
}
var pc = this.getConfig().pages;
wsReplacement = getWhitespaceReplacement();
ret = ret.replace(new RegExp(wsReplacement, "g"), " ");
ret = ret.replace(/\+/g, "/");
if (pc.title.lowercase) {
// "something really hot" => "Something Really Hot"
ret = ret.split(/\b/).map(function (v) {
return v.slice(0,1).toUpperCase() + v.slice(1);
}).join("");
}
return ret;
};
module.exports = new Namer();
|
import { wrap as aesKw } from '../runtime/aeskw.js';
import * as ECDH from '../runtime/ecdhes.js';
import { encrypt as pbes2Kw } from '../runtime/pbes2kw.js';
import { encrypt as rsaEs } from '../runtime/rsaes.js';
import { encode as base64url } from '../runtime/base64url.js';
import generateCek, { bitLength as cekLength } from '../lib/cek.js';
import { JOSENotSupported } from '../util/errors.js';
import { exportJWK } from '../key/export.js';
import checkKeyType from './check_key_type.js';
import { wrap as aesGcmKw } from './aesgcmkw.js';
async function encryptKeyManagement(alg, enc, key, providedCek, providedParameters = {}) {
let encryptedKey;
let parameters;
let cek;
checkKeyType(alg, key, 'encrypt');
switch (alg) {
case 'dir': {
cek = key;
break;
}
case 'ECDH-ES':
case 'ECDH-ES+A128KW':
case 'ECDH-ES+A192KW':
case 'ECDH-ES+A256KW': {
if (!ECDH.ecdhAllowed(key)) {
throw new JOSENotSupported('ECDH-ES with the provided key is not allowed or not supported by your javascript runtime');
}
const { apu, apv } = providedParameters;
let { epk: ephemeralKey } = providedParameters;
ephemeralKey || (ephemeralKey = await ECDH.generateEpk(key));
const { x, y, crv, kty } = await exportJWK(ephemeralKey);
const sharedSecret = await ECDH.deriveKey(key, ephemeralKey, alg === 'ECDH-ES' ? enc : alg, parseInt(alg.substr(-5, 3), 10) || cekLength(enc), apu, apv);
parameters = { epk: { x, y, crv, kty } };
if (apu)
parameters.apu = base64url(apu);
if (apv)
parameters.apv = base64url(apv);
if (alg === 'ECDH-ES') {
cek = sharedSecret;
break;
}
cek = providedCek || generateCek(enc);
const kwAlg = alg.substr(-6);
encryptedKey = await aesKw(kwAlg, sharedSecret, cek);
break;
}
case 'RSA1_5':
case 'RSA-OAEP':
case 'RSA-OAEP-256':
case 'RSA-OAEP-384':
case 'RSA-OAEP-512': {
cek = providedCek || generateCek(enc);
encryptedKey = await rsaEs(alg, key, cek);
break;
}
case 'PBES2-HS256+A128KW':
case 'PBES2-HS384+A192KW':
case 'PBES2-HS512+A256KW': {
cek = providedCek || generateCek(enc);
const { p2c, p2s } = providedParameters;
({ encryptedKey, ...parameters } = await pbes2Kw(alg, key, cek, p2c, p2s));
break;
}
case 'A128KW':
case 'A192KW':
case 'A256KW': {
cek = providedCek || generateCek(enc);
encryptedKey = await aesKw(alg, key, cek);
break;
}
case 'A128GCMKW':
case 'A192GCMKW':
case 'A256GCMKW': {
cek = providedCek || generateCek(enc);
const { iv } = providedParameters;
({ encryptedKey, ...parameters } = await aesGcmKw(alg, key, cek, iv));
break;
}
default: {
throw new JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value');
}
}
return { cek, encryptedKey, parameters };
}
export default encryptKeyManagement;
|
'use strict';
/**
* @ngdoc directive
* @name ng.directive:select
* @restrict E
*
* @description
* HTML элемент `SELECT` с поддержкой связывания данных.
*
* # `ngOptions`
*
* Необязательный атрибут `ngOptions` может использоваться для динамической генерации списка элементов
* `<option>` для элемента `<select>` используя массив или объект, возвращенный заданным в `ngOptions` выражением.
*˝˝
* Когда элемент выбирается из списка, значение из массива элементов или свойство объекта привязывается к свойству,
* заданному с помощью директивы `ngModel` родительского меню и устанавливается атрибут selected.
*
* По желанию можно жестко задать один элемент `<option>`, значение которого установить в пустую строку, и
* вложить его в элемент `<select>`. Этот элемент будет соответствовать значению null или опции «not selected».
* Это продемонстрировано в примере ниже.
*
* Примечание: `ngOptions` предоставляет итератор для элемента `<option>` который должен использоваться вместо
* {@link ng.directive:ngRepeat ngRepeat} когда необходимо привязать модель `select` не к строковому значению.
* Это потому, что элемент option в настоящее время может быть привязан только к строковому значению.
*
* @param {string} ngModel Angular-выражение для привязки данных.
* @param {string=} name Имя свойства в родительской форме, под которым элемент управления в ней публикуется.
* @param {string=} required Это элемент управления будет считаться правильным, только если значение введено.
* @param {string=} ngRequired Добавляет `required` атрибут и `required` проверку содержимого элемента, когда
* выражение `ngRequired` возвращает true. Используйте `ngRequired` вместо `required` когда нужно привязать
* данные к атрибуту `required`.
* @param {comprehension_expression=} ngOptions в одной из следующих форм:
*
* * когда источник данных — массив:
* * `label` **`for`** `value` **`in`** `array`
* * `select` **`as`** `label` **`for`** `value` **`in`** `array`
* * `label` **`group by`** `group` **`for`** `value` **`in`** `array`
* * `select` **`as`** `label` **`group by`** `group` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`
* * когда источник данных — объект:
* * `label` **`for (`**`key` **`,`** `value`**`) in`** `object`
* * `select` **`as`** `label` **`for (`**`key` **`,`** `value`**`) in`** `object`
* * `label` **`group by`** `group` **`for (`**`key`**`,`** `value`**`) in`** `object`
* * `select` **`as`** `label` **`group by`** `group` **`for` `(`**`key`**`,`** `value`**`) in`** `object`
*
* где:
*
* * `array` / `object`: выражение, которое возвращает массив / объект для итерации.
* * `value`: локальная переменная, которая будет ссылаться на перечисляемый элемент в массиве `array`
* или перечисляемое значение свойства в объекте `object` при итерации.
* * `key`: локальная переменная, которая будет ссылаться на имя свойства в объекте `object`
* который используется для итерации.
* * `label`: выражение для вычисления результата, который будет размещен на метке элемента `<option>`.
* Это выражение должно ссылаться на переменную `value` (например, `value.propertyName`).
* * `select`: Выражения для вычисления результата, который будет привязан к модели родительского элемента
* `<select>` при выборе текущего элемента. Если не указано, выражение `select` будет по умолчанию равно
* переменной `value`.
* * `group`: Выражение для вычисления результата, который будет использоваться для группирования элементов
* `option` используя DOM элемент `<optgroup>`.
* * `trackexpr`: Используется при работе с объектами и массивами. Результат выполнения этого выражения
* будет использоваться для идентификации объекта или массива. `trackexpr` скорее всего относится к переменной
+ * `value` (напр.: `value.propertyName`).
*
* @example
<doc:example>
<doc:source>
<script>
function MyCntrl($scope) {
$scope.colors = [
{name:'black', shade:'dark'},
{name:'white', shade:'light'},
{name:'red', shade:'dark'},
{name:'blue', shade:'dark'},
{name:'yellow', shade:'light'}
];
$scope.color = $scope.colors[2]; // red
}
</script>
<div ng-controller="MyCntrl">
<ul>
<li ng-repeat="color in colors">
Name: <input ng-model="color.name">
[<a href ng-click="colors.splice($index, 1)">X</a>]
</li>
<li>
[<a href ng-click="colors.push({})">add</a>]
</li>
</ul>
<hr/>
Color (null not allowed):
<select ng-model="color" ng-options="c.name for c in colors"></select><br>
Color (null allowed):
<span class="nullable">
<select ng-model="color" ng-options="c.name for c in colors">
<option value="">-- chose color --</option>
</select>
</span><br/>
Color grouped by shade:
<select ng-model="color" ng-options="c.name group by c.shade for c in colors">
</select><br/>
Select <a href ng-click="color={name:'not in list'}">bogus</a>.<br>
<hr/>
Currently selected: {{ {selected_color:color} }}
<div style="border:solid 1px black; height:20px"
ng-style="{'background-color':color.name}">
</div>
</div>
</doc:source>
<doc:scenario>
it('should check ng-options', function() {
expect(binding('{selected_color:color}')).toMatch('red');
select('color').option('0');
expect(binding('{selected_color:color}')).toMatch('black');
using('.nullable').select('color').option('');
expect(binding('{selected_color:color}')).toMatch('null');
});
</doc:scenario>
</doc:example>
*/
var ngOptionsDirective = valueFn({ terminal: true });
var selectDirective = ['$compile', '$parse', function($compile, $parse) {
//0000111110000000000022220000000000000000000000333300000000000000444444444444444440000000005555555555555555500000006666666666666666600000000000000077770
var NG_OPTIONS_REGEXP = /^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w\d]*)|(?:\(\s*([\$\w][\$\w\d]*)\s*,\s*([\$\w][\$\w\d]*)\s*\)))\s+in\s+(.*)$/,
nullModelCtrl = {$setViewValue: noop};
return {
restrict: 'E',
require: ['select', '?ngModel'],
controller: ['$element', '$scope', '$attrs', function($element, $scope, $attrs) {
var self = this,
optionsMap = {},
ngModelCtrl = nullModelCtrl,
nullOption,
unknownOption;
self.databound = $attrs.ngModel;
self.init = function(ngModelCtrl_, nullOption_, unknownOption_) {
ngModelCtrl = ngModelCtrl_;
nullOption = nullOption_;
unknownOption = unknownOption_;
}
self.addOption = function(value) {
optionsMap[value] = true;
if (ngModelCtrl.$viewValue == value) {
$element.val(value);
if (unknownOption.parent()) unknownOption.remove();
}
};
self.removeOption = function(value) {
if (this.hasOption(value)) {
delete optionsMap[value];
if (ngModelCtrl.$viewValue == value) {
this.renderUnknownOption(value);
}
}
};
self.renderUnknownOption = function(val) {
var unknownVal = '? ' + hashKey(val) + ' ?';
unknownOption.val(unknownVal);
$element.prepend(unknownOption);
$element.val(unknownVal);
unknownOption.prop('selected', true); // needed for IE
}
self.hasOption = function(value) {
return optionsMap.hasOwnProperty(value);
}
$scope.$on('$destroy', function() {
// disable unknown option so that we don't do work when the whole select is being destroyed
self.renderUnknownOption = noop;
});
}],
link: function(scope, element, attr, ctrls) {
// if ngModel is not defined, we don't need to do anything
if (!ctrls[1]) return;
var selectCtrl = ctrls[0],
ngModelCtrl = ctrls[1],
multiple = attr.multiple,
optionsExp = attr.ngOptions,
nullOption = false, // if false, user will not be able to select it (used by ngOptions)
emptyOption,
// we can't just jqLite('<option>') since jqLite is not smart enough
// to create it in <select> and IE barfs otherwise.
optionTemplate = jqLite(document.createElement('option')),
optGroupTemplate =jqLite(document.createElement('optgroup')),
unknownOption = optionTemplate.clone();
// find "null" option
for(var i = 0, children = element.children(), ii = children.length; i < ii; i++) {
if (children[i].value == '') {
emptyOption = nullOption = children.eq(i);
break;
}
}
selectCtrl.init(ngModelCtrl, nullOption, unknownOption);
// required validator
if (multiple && (attr.required || attr.ngRequired)) {
var requiredValidator = function(value) {
ngModelCtrl.$setValidity('required', !attr.required || (value && value.length));
return value;
};
ngModelCtrl.$parsers.push(requiredValidator);
ngModelCtrl.$formatters.unshift(requiredValidator);
attr.$observe('required', function() {
requiredValidator(ngModelCtrl.$viewValue);
});
}
if (optionsExp) Options(scope, element, ngModelCtrl);
else if (multiple) Multiple(scope, element, ngModelCtrl);
else Single(scope, element, ngModelCtrl, selectCtrl);
////////////////////////////
function Single(scope, selectElement, ngModelCtrl, selectCtrl) {
ngModelCtrl.$render = function() {
var viewValue = ngModelCtrl.$viewValue;
if (selectCtrl.hasOption(viewValue)) {
if (unknownOption.parent()) unknownOption.remove();
selectElement.val(viewValue);
if (viewValue === '') emptyOption.prop('selected', true); // to make IE9 happy
} else {
if (isUndefined(viewValue) && emptyOption) {
selectElement.val('');
} else {
selectCtrl.renderUnknownOption(viewValue);
}
}
};
selectElement.bind('change', function() {
scope.$apply(function() {
if (unknownOption.parent()) unknownOption.remove();
ngModelCtrl.$setViewValue(selectElement.val());
});
});
}
function Multiple(scope, selectElement, ctrl) {
var lastView;
ctrl.$render = function() {
var items = new HashMap(ctrl.$viewValue);
forEach(selectElement.find('option'), function(option) {
option.selected = isDefined(items.get(option.value));
});
};
// we have to do it on each watch since ngModel watches reference, but
// we need to work of an array, so we need to see if anything was inserted/removed
scope.$watch(function selectMultipleWatch() {
if (!equals(lastView, ctrl.$viewValue)) {
lastView = copy(ctrl.$viewValue);
ctrl.$render();
}
});
selectElement.bind('change', function() {
scope.$apply(function() {
var array = [];
forEach(selectElement.find('option'), function(option) {
if (option.selected) {
array.push(option.value);
}
});
ctrl.$setViewValue(array);
});
});
}
function Options(scope, selectElement, ctrl) {
var match;
if (! (match = optionsExp.match(NG_OPTIONS_REGEXP))) {
throw Error(
"Expected ngOptions in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_'" +
" but got '" + optionsExp + "'.");
}
var displayFn = $parse(match[2] || match[1]),
valueName = match[4] || match[6],
keyName = match[5],
groupByFn = $parse(match[3] || ''),
valueFn = $parse(match[2] ? match[1] : valueName),
valuesFn = $parse(match[7]),
// This is an array of array of existing option groups in DOM. We try to reuse these if possible
// optionGroupsCache[0] is the options with no option group
// optionGroupsCache[?][0] is the parent: either the SELECT or OPTGROUP element
optionGroupsCache = [[{element: selectElement, label:''}]];
if (nullOption) {
// compile the element since there might be bindings in it
$compile(nullOption)(scope);
// remove the class, which is added automatically because we recompile the element and it
// becomes the compilation root
nullOption.removeClass('ng-scope');
// we need to remove it before calling selectElement.html('') because otherwise IE will
// remove the label from the element. wtf?
nullOption.remove();
}
// clear contents, we'll add what's needed based on the model
selectElement.html('');
selectElement.bind('change', function() {
scope.$apply(function() {
var optionGroup,
collection = valuesFn(scope) || [],
locals = {},
key, value, optionElement, index, groupIndex, length, groupLength;
if (multiple) {
value = [];
for (groupIndex = 0, groupLength = optionGroupsCache.length;
groupIndex < groupLength;
groupIndex++) {
// list of options for that group. (first item has the parent)
optionGroup = optionGroupsCache[groupIndex];
for(index = 1, length = optionGroup.length; index < length; index++) {
if ((optionElement = optionGroup[index].element)[0].selected) {
key = optionElement.val();
if (keyName) locals[keyName] = key;
locals[valueName] = collection[key];
value.push(valueFn(scope, locals));
}
}
}
} else {
key = selectElement.val();
if (key == '?') {
value = undefined;
} else if (key == ''){
value = null;
} else {
locals[valueName] = collection[key];
if (keyName) locals[keyName] = key;
value = valueFn(scope, locals);
}
}
ctrl.$setViewValue(value);
});
});
ctrl.$render = render;
// TODO(vojta): can't we optimize this ?
scope.$watch(render);
function render() {
var optionGroups = {'':[]}, // Temporary location for the option groups before we render them
optionGroupNames = [''],
optionGroupName,
optionGroup,
option,
existingParent, existingOptions, existingOption,
modelValue = ctrl.$modelValue,
values = valuesFn(scope) || [],
keys = keyName ? sortedKeys(values) : values,
groupLength, length,
groupIndex, index,
locals = {},
selected,
selectedSet = false, // nothing is selected yet
lastElement,
element,
label;
if (multiple) {
selectedSet = new HashMap(modelValue);
} else if (modelValue === null || nullOption) {
// if we are not multiselect, and we are null then we have to add the nullOption
optionGroups[''].push({selected:modelValue === null, id:'', label:''});
selectedSet = true;
}
// We now build up the list of options we need (we merge later)
for (index = 0; length = keys.length, index < length; index++) {
locals[valueName] = values[keyName ? locals[keyName]=keys[index]:index];
optionGroupName = groupByFn(scope, locals) || '';
if (!(optionGroup = optionGroups[optionGroupName])) {
optionGroup = optionGroups[optionGroupName] = [];
optionGroupNames.push(optionGroupName);
}
if (multiple) {
selected = selectedSet.remove(valueFn(scope, locals)) != undefined;
} else {
selected = modelValue === valueFn(scope, locals);
selectedSet = selectedSet || selected; // see if at least one item is selected
}
label = displayFn(scope, locals); // what will be seen by the user
label = label === undefined ? '' : label; // doing displayFn(scope, locals) || '' overwrites zero values
optionGroup.push({
id: keyName ? keys[index] : index, // either the index into array or key from object
label: label,
selected: selected // determine if we should be selected
});
}
if (!multiple && !selectedSet) {
// nothing was selected, we have to insert the undefined item
optionGroups[''].unshift({id:'?', label:'', selected:true});
}
// Now we need to update the list of DOM nodes to match the optionGroups we computed above
for (groupIndex = 0, groupLength = optionGroupNames.length;
groupIndex < groupLength;
groupIndex++) {
// current option group name or '' if no group
optionGroupName = optionGroupNames[groupIndex];
// list of options for that group. (first item has the parent)
optionGroup = optionGroups[optionGroupName];
if (optionGroupsCache.length <= groupIndex) {
// we need to grow the optionGroups
existingParent = {
element: optGroupTemplate.clone().attr('label', optionGroupName),
label: optionGroup.label
};
existingOptions = [existingParent];
optionGroupsCache.push(existingOptions);
selectElement.append(existingParent.element);
} else {
existingOptions = optionGroupsCache[groupIndex];
existingParent = existingOptions[0]; // either SELECT (no group) or OPTGROUP element
// update the OPTGROUP label if not the same.
if (existingParent.label != optionGroupName) {
existingParent.element.attr('label', existingParent.label = optionGroupName);
}
}
lastElement = null; // start at the beginning
for(index = 0, length = optionGroup.length; index < length; index++) {
option = optionGroup[index];
if ((existingOption = existingOptions[index+1])) {
// reuse elements
lastElement = existingOption.element;
if (existingOption.label !== option.label) {
lastElement.text(existingOption.label = option.label);
}
if (existingOption.id !== option.id) {
lastElement.val(existingOption.id = option.id);
}
if (existingOption.element.selected !== option.selected) {
lastElement.prop('selected', (existingOption.selected = option.selected));
}
} else {
// grow elements
// if it's a null option
if (option.id === '' && nullOption) {
// put back the pre-compiled element
element = nullOption;
} else {
// jQuery(v1.4.2) Bug: We should be able to chain the method calls, but
// in this version of jQuery on some browser the .text() returns a string
// rather then the element.
(element = optionTemplate.clone())
.val(option.id)
.attr('selected', option.selected)
.text(option.label);
}
existingOptions.push(existingOption = {
element: element,
label: option.label,
id: option.id,
selected: option.selected
});
if (lastElement) {
lastElement.after(element);
} else {
existingParent.element.append(element);
}
lastElement = element;
}
}
// remove any excessive OPTIONs in a group
index++; // increment since the existingOptions[0] is parent element not OPTION
while(existingOptions.length > index) {
existingOptions.pop().element.remove();
}
}
// remove any excessive OPTGROUPs from select
while(optionGroupsCache.length > groupIndex) {
optionGroupsCache.pop()[0].element.remove();
}
}
}
}
}
}];
var optionDirective = ['$interpolate', function($interpolate) {
var nullSelectCtrl = {
addOption: noop,
removeOption: noop
};
return {
restrict: 'E',
priority: 100,
compile: function(element, attr) {
if (isUndefined(attr.value)) {
var interpolateFn = $interpolate(element.text(), true);
if (!interpolateFn) {
attr.$set('value', element.text());
}
}
return function (scope, element, attr) {
var selectCtrlName = '$selectController',
parent = element.parent(),
selectCtrl = parent.data(selectCtrlName) ||
parent.parent().data(selectCtrlName); // in case we are in optgroup
if (selectCtrl && selectCtrl.databound) {
// For some reason Opera defaults to true and if not overridden this messes up the repeater.
// We don't want the view to drive the initialization of the model anyway.
element.prop('selected', false);
} else {
selectCtrl = nullSelectCtrl;
}
if (interpolateFn) {
scope.$watch(interpolateFn, function interpolateWatchAction(newVal, oldVal) {
attr.$set('value', newVal);
if (newVal !== oldVal) selectCtrl.removeOption(oldVal);
selectCtrl.addOption(newVal);
});
} else {
selectCtrl.addOption(attr.value);
}
element.bind('$destroy', function() {
selectCtrl.removeOption(attr.value);
});
};
}
}
}];
|
// tquery.js - https://github.com/jeromeetienne/tquery - MIT License
|
'use strict';
const gulp = require('gulp');
const path = require('path');
const tools = require('urbanjs-tools');
tools.tasks.nsp.register(gulp, 'nsp', {
packageFile: path.join(__dirname, 'package.json')
});
|
define("d3/test/xhr/json-test", ["dojo","dijit","dojox"], function(dojo,dijit,dojox){
var vows = require("vows"),
load = require("../load"),
assert = require("../assert");
var suite = vows.describe("d3.json");
suite.addBatch({
"json": {
topic: load("xhr/json").expression("d3.json").document(),
"on a sample file": {
topic: function(json) {
json("test/data/sample.json", this.callback);
},
"invokes the callback with the loaded JSON": function(json) {
assert.deepEqual(json, [{"Hello":42,"World":"\"fish\""}]);
},
"overrides the mime type to application/json": function(json) {
assert.equal(XMLHttpRequest._last._info.mimeType, "application/json");
}
},
"on a file that does not exist": {
topic: function(json) {
var callback = this.callback;
json("//does/not/exist.json", function(error, json) {
callback(null, {error: error, value: json});
});
},
"invokes the callback with undefined when an error occurs": function(result) {
assert.equal(result.error.status, 404);
assert.isUndefined(result.value);
}
},
"on a file with invalid JSON": {
topic: function(json) {
var callback = this.callback;
json("test/data/sample.tsv", function(error, json) {
callback(null, {error: error, value: json});
});
},
"invokes the callback with undefined when an error occurs": function(result) {
assert.equal(result.error.constructor.name, "SyntaxError");
assert.isUndefined(result.value);
}
}
}
});
suite.export(module);
});
|
function ctype_print(text) {
// discuss at: http://phpjs.org/functions/ctype_print/
// original by: Brett Zamir (http://brett-zamir.me)
// depends on: setlocale
// example 1: ctype_print('AbC!#12');
// returns 1: true
if (typeof text !== 'string') {
return false;
}
// BEGIN REDUNDANT
this.setlocale('LC_ALL', 0); // ensure setup of localization variables takes place
// END REDUNDANT
return text.search(this.php_js.locales[this.php_js.localeCategories.LC_CTYPE].LC_CTYPE.pr) !== -1;
}
|
var Vec3 = require('../math/Vec3');
module.exports = Spring;
/**
* A spring, connecting two bodies.
*
* @class Spring
* @constructor
* @param {Body} bodyA
* @param {Body} bodyB
* @param {Object} [options]
* @param {number} [options.restLength] A number > 0. Default: 1
* @param {number} [options.stiffness] A number >= 0. Default: 100
* @param {number} [options.damping] A number >= 0. Default: 1
* @param {Vec3} [options.worldAnchorA] Where to hook the spring to body A, in world coordinates.
* @param {Vec3} [options.worldAnchorB]
* @param {Vec3} [options.localAnchorA] Where to hook the spring to body A, in local body coordinates.
* @param {Vec3} [options.localAnchorB]
*/
function Spring(bodyA,bodyB,options){
options = options || {};
/**
* Rest length of the spring.
* @property restLength
* @type {number}
*/
this.restLength = typeof(options.restLength) === "number" ? options.restLength : 1;
/**
* Stiffness of the spring.
* @property stiffness
* @type {number}
*/
this.stiffness = options.stiffness || 100;
/**
* Damping of the spring.
* @property damping
* @type {number}
*/
this.damping = options.damping || 1;
/**
* First connected body.
* @property bodyA
* @type {Body}
*/
this.bodyA = bodyA;
/**
* Second connected body.
* @property bodyB
* @type {Body}
*/
this.bodyB = bodyB;
/**
* Anchor for bodyA in local bodyA coordinates.
* @property localAnchorA
* @type {Vec3}
*/
this.localAnchorA = new Vec3();
/**
* Anchor for bodyB in local bodyB coordinates.
* @property localAnchorB
* @type {Vec3}
*/
this.localAnchorB = new Vec3();
if(options.localAnchorA){
this.localAnchorA.copy(options.localAnchorA);
}
if(options.localAnchorB){
this.localAnchorB.copy(options.localAnchorB);
}
if(options.worldAnchorA){
this.setWorldAnchorA(options.worldAnchorA);
}
if(options.worldAnchorB){
this.setWorldAnchorB(options.worldAnchorB);
}
}
/**
* Set the anchor point on body A, using world coordinates.
* @method setWorldAnchorA
* @param {Vec3} worldAnchorA
*/
Spring.prototype.setWorldAnchorA = function(worldAnchorA){
this.bodyA.pointToLocalFrame(worldAnchorA,this.localAnchorA);
};
/**
* Set the anchor point on body B, using world coordinates.
* @method setWorldAnchorB
* @param {Vec3} worldAnchorB
*/
Spring.prototype.setWorldAnchorB = function(worldAnchorB){
this.bodyB.pointToLocalFrame(worldAnchorB,this.localAnchorB);
};
/**
* Get the anchor point on body A, in world coordinates.
* @method getWorldAnchorA
* @param {Vec3} result The vector to store the result in.
*/
Spring.prototype.getWorldAnchorA = function(result){
this.bodyA.pointToWorldFrame(this.localAnchorA,result);
};
/**
* Get the anchor point on body B, in world coordinates.
* @method getWorldAnchorB
* @param {Vec3} result The vector to store the result in.
*/
Spring.prototype.getWorldAnchorB = function(result){
this.bodyB.pointToWorldFrame(this.localAnchorB,result);
};
var applyForce_r = new Vec3(),
applyForce_r_unit = new Vec3(),
applyForce_u = new Vec3(),
applyForce_f = new Vec3(),
applyForce_worldAnchorA = new Vec3(),
applyForce_worldAnchorB = new Vec3(),
applyForce_ri = new Vec3(),
applyForce_rj = new Vec3(),
applyForce_ri_x_f = new Vec3(),
applyForce_rj_x_f = new Vec3(),
applyForce_tmp = new Vec3();
/**
* Apply the spring force to the connected bodies.
* @method applyForce
*/
Spring.prototype.applyForce = function(){
var k = this.stiffness,
d = this.damping,
l = this.restLength,
bodyA = this.bodyA,
bodyB = this.bodyB,
r = applyForce_r,
r_unit = applyForce_r_unit,
u = applyForce_u,
f = applyForce_f,
tmp = applyForce_tmp;
var worldAnchorA = applyForce_worldAnchorA,
worldAnchorB = applyForce_worldAnchorB,
ri = applyForce_ri,
rj = applyForce_rj,
ri_x_f = applyForce_ri_x_f,
rj_x_f = applyForce_rj_x_f;
// Get world anchors
this.getWorldAnchorA(worldAnchorA);
this.getWorldAnchorB(worldAnchorB);
// Get offset points
worldAnchorA.vsub(bodyA.position,ri);
worldAnchorB.vsub(bodyB.position,rj);
// Compute distance vector between world anchor points
worldAnchorB.vsub(worldAnchorA,r);
var rlen = r.norm();
r_unit.copy(r);
r_unit.normalize();
// Compute relative velocity of the anchor points, u
bodyB.velocity.vsub(bodyA.velocity,u);
// Add rotational velocity
bodyB.angularVelocity.cross(rj,tmp);
u.vadd(tmp,u);
bodyA.angularVelocity.cross(ri,tmp);
u.vsub(tmp,u);
// F = - k * ( x - L ) - D * ( u )
r_unit.mult(-k*(rlen-l) - d*u.dot(r_unit), f);
// Add forces to bodies
bodyA.force.vsub(f,bodyA.force);
bodyB.force.vadd(f,bodyB.force);
// Angular force
ri.cross(f,ri_x_f);
rj.cross(f,rj_x_f);
bodyA.torque.vsub(ri_x_f,bodyA.torque);
bodyB.torque.vadd(rj_x_f,bodyB.torque);
};
|
var parent = require('../../../stable/string/virtual/fontsize');
module.exports = parent;
|
version https://git-lfs.github.com/spec/v1
oid sha256:85c6e80fe290ea76de8396f8607df1301a71e2089a71a99fc90bfd9b7b159546
size 16638
|
/**
* https://github.com/mrdoob/eventdispatcher.js/
*/
THREE.EventDispatcher = function () {};
Object.assign( THREE.EventDispatcher.prototype, {
addEventListener: function ( type, listener ) {
if ( this._listeners === undefined ) this._listeners = {};
var listeners = this._listeners;
if ( listeners[ type ] === undefined ) {
listeners[ type ] = [];
}
if ( listeners[ type ].indexOf( listener ) === - 1 ) {
listeners[ type ].push( listener );
}
},
hasEventListener: function ( type, listener ) {
if ( this._listeners === undefined ) return false;
var listeners = this._listeners;
if ( listeners[ type ] !== undefined && listeners[ type ].indexOf( listener ) !== - 1 ) {
return true;
}
return false;
},
removeEventListener: function ( type, listener ) {
if ( this._listeners === undefined ) return;
var listeners = this._listeners;
var listenerArray = listeners[ type ];
if ( listenerArray !== undefined ) {
var index = listenerArray.indexOf( listener );
if ( index !== - 1 ) {
listenerArray.splice( index, 1 );
}
}
},
dispatchEvent: function ( event ) {
if ( this._listeners === undefined ) return;
var listeners = this._listeners;
var listenerArray = listeners[ event.type ];
if ( listenerArray !== undefined ) {
event.target = this;
var array = [], i = 0;
var length = listenerArray.length;
for ( i = 0; i < length; i ++ ) {
array[ i ] = listenerArray[ i ];
}
for ( i = 0; i < length; i ++ ) {
array[ i ].call( this, event );
}
}
}
} );
|
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'format', 'sl', {
label: 'Oblika',
panelTitle: 'Oblika',
tag_address: 'Napis',
tag_div: 'Navaden (DIV)',
tag_h1: 'Naslov 1',
tag_h2: 'Naslov 2',
tag_h3: 'Naslov 3',
tag_h4: 'Naslov 4',
tag_h5: 'Naslov 5',
tag_h6: 'Naslov 6',
tag_p: 'Navaden',
tag_pre: 'Oblikovan'
});
|
(function(window, undefined) {
window.tracking = window.tracking || {};
/**
* Inherit the prototype methods from one constructor into another.
*
* Usage:
* <pre>
* function ParentClass(a, b) { }
* ParentClass.prototype.foo = function(a) { }
*
* function ChildClass(a, b, c) {
* tracking.base(this, a, b);
* }
* tracking.inherits(ChildClass, ParentClass);
*
* var child = new ChildClass('a', 'b', 'c');
* child.foo();
* </pre>
*
* @param {Function} childCtor Child class.
* @param {Function} parentCtor Parent class.
*/
tracking.inherits = function(childCtor, parentCtor) {
function TempCtor() {
}
TempCtor.prototype = parentCtor.prototype;
childCtor.superClass_ = parentCtor.prototype;
childCtor.prototype = new TempCtor();
childCtor.prototype.constructor = childCtor;
/**
* Calls superclass constructor/method.
*
* This function is only available if you use tracking.inherits to express
* inheritance relationships between classes.
*
* @param {!object} me Should always be "this".
* @param {string} methodName The method name to call. Calling superclass
* constructor can be done with the special string 'constructor'.
* @param {...*} var_args The arguments to pass to superclass
* method/constructor.
* @return {*} The return value of the superclass method/constructor.
*/
childCtor.base = function(me, methodName) {
var args = Array.prototype.slice.call(arguments, 2);
return parentCtor.prototype[methodName].apply(me, args);
};
};
/**
* Captures the user camera when tracking a video element and set its source
* to the camera stream.
* @param {HTMLVideoElement} element Canvas element to track.
* @param {object} opt_options Optional configuration to the tracker.
*/
tracking.initUserMedia_ = function(element, opt_options) {
window.navigator.mediaDevices.getUserMedia({
video: true,
audio: (opt_options && opt_options.audio) ? true : false,
}).then(function(stream) {
element.srcObject = stream;
}).catch(function(err) {
throw Error('Cannot capture user camera.');
});
};
/**
* Tests whether the object is a dom node.
* @param {object} o Object to be tested.
* @return {boolean} True if the object is a dom node.
*/
tracking.isNode = function(o) {
return o.nodeType || this.isWindow(o);
};
/**
* Tests whether the object is the `window` object.
* @param {object} o Object to be tested.
* @return {boolean} True if the object is the `window` object.
*/
tracking.isWindow = function(o) {
return !!(o && o.alert && o.document);
};
/**
* Selects a dom node from a CSS3 selector using `document.querySelector`.
* @param {string} selector
* @param {object} opt_element The root element for the query. When not
* specified `document` is used as root element.
* @return {HTMLElement} The first dom element that matches to the selector.
* If not found, returns `null`.
*/
tracking.one = function(selector, opt_element) {
if (this.isNode(selector)) {
return selector;
}
return (opt_element || document).querySelector(selector);
};
/**
* Tracks a canvas, image or video element based on the specified `tracker`
* instance. This method extract the pixel information of the input element
* to pass to the `tracker` instance. When tracking a video, the
* `tracker.track(pixels, width, height)` will be in a
* `requestAnimationFrame` loop in order to track all video frames.
*
* Example:
* var tracker = new tracking.ColorTracker();
*
* tracking.track('#video', tracker);
* or
* tracking.track('#video', tracker, { camera: true });
*
* tracker.on('track', function(event) {
* // console.log(event.data[0].x, event.data[0].y)
* });
*
* @param {HTMLElement} element The element to track, canvas, image or
* video.
* @param {tracking.Tracker} tracker The tracker instance used to track the
* element.
* @param {object} opt_options Optional configuration to the tracker.
*/
tracking.track = function(element, tracker, opt_options) {
element = tracking.one(element);
if (!element) {
throw new Error('Element not found, try a different element or selector.');
}
if (!tracker) {
throw new Error('Tracker not specified, try `tracking.track(element, new tracking.FaceTracker())`.');
}
switch (element.nodeName.toLowerCase()) {
case 'canvas':
return this.trackCanvas_(element, tracker, opt_options);
case 'img':
return this.trackImg_(element, tracker, opt_options);
case 'video':
if (opt_options) {
if (opt_options.camera) {
this.initUserMedia_(element, opt_options);
}
}
return this.trackVideo_(element, tracker, opt_options);
default:
throw new Error('Element not supported, try in a canvas, img, or video.');
}
};
/**
* Tracks a canvas element based on the specified `tracker` instance and
* returns a `TrackerTask` for this track.
* @param {HTMLCanvasElement} element Canvas element to track.
* @param {tracking.Tracker} tracker The tracker instance used to track the
* element.
* @param {object} opt_options Optional configuration to the tracker.
* @return {tracking.TrackerTask}
* @private
*/
tracking.trackCanvas_ = function(element, tracker) {
var self = this;
var task = new tracking.TrackerTask(tracker);
task.on('run', function() {
self.trackCanvasInternal_(element, tracker);
});
return task.run();
};
/**
* Tracks a canvas element based on the specified `tracker` instance. This
* method extract the pixel information of the input element to pass to the
* `tracker` instance.
* @param {HTMLCanvasElement} element Canvas element to track.
* @param {tracking.Tracker} tracker The tracker instance used to track the
* element.
* @param {object} opt_options Optional configuration to the tracker.
* @private
*/
tracking.trackCanvasInternal_ = function(element, tracker) {
var width = element.width;
var height = element.height;
var context = element.getContext('2d');
var imageData = context.getImageData(0, 0, width, height);
tracker.track(imageData.data, width, height);
};
/**
* Tracks a image element based on the specified `tracker` instance. This
* method extract the pixel information of the input element to pass to the
* `tracker` instance.
* @param {HTMLImageElement} element Canvas element to track.
* @param {tracking.Tracker} tracker The tracker instance used to track the
* element.
* @param {object} opt_options Optional configuration to the tracker.
* @private
*/
tracking.trackImg_ = function(element, tracker) {
var width = element.width;
var height = element.height;
var canvas = document.createElement('canvas');
canvas.width = width;
canvas.height = height;
var task = new tracking.TrackerTask(tracker);
task.on('run', function() {
tracking.Canvas.loadImage(canvas, element.src, 0, 0, width, height, function() {
tracking.trackCanvasInternal_(canvas, tracker);
});
});
return task.run();
};
/**
* Tracks a video element based on the specified `tracker` instance. This
* method extract the pixel information of the input element to pass to the
* `tracker` instance. The `tracker.track(pixels, width, height)` will be in
* a `requestAnimationFrame` loop in order to track all video frames.
* @param {HTMLVideoElement} element Canvas element to track.
* @param {tracking.Tracker} tracker The tracker instance used to track the
* element.
* @param {object} opt_options Optional configuration to the tracker.
* @private
*/
tracking.trackVideo_ = function(element, tracker) {
var canvas = document.createElement('canvas');
var context = canvas.getContext('2d');
var width;
var height;
// FIXME here the video display size of the analysed size
var resizeCanvas_ = function() {
width = element.offsetWidth;
height = element.offsetHeight;
canvas.width = width;
canvas.height = height;
};
resizeCanvas_();
element.addEventListener('resize', resizeCanvas_);
// FIXME: do a process function - it is up to the caller to handle the frequency of detection
// it seems all handled in the tracking.TrackerTask..
// so in short, remove the tracking.TrackerTask from here
// if the user want to use it, it can create it himself
var requestId;
var requestAnimationFrame_ = function() {
requestId = window.requestAnimationFrame(function() {
if (element.readyState === element.HAVE_ENOUGH_DATA) {
try {
// Firefox v~30.0 gets confused with the video readyState firing an
// erroneous HAVE_ENOUGH_DATA just before HAVE_CURRENT_DATA state,
// hence keep trying to read it until resolved.
context.drawImage(element, 0, 0, width, height);
} catch (err) {}
tracking.trackCanvasInternal_(canvas, tracker);
}
requestAnimationFrame_();
});
};
var task = new tracking.TrackerTask(tracker);
task.on('stop', function() {
window.cancelAnimationFrame(requestId);
});
task.on('run', function() {
requestAnimationFrame_();
});
return task.run();
};
// Browser polyfills
//===================
if (!window.URL) {
window.URL = window.URL || window.webkitURL || window.msURL || window.oURL;
}
if (!navigator.getUserMedia) {
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia || navigator.msGetUserMedia;
}
}(window));
|
module.exports={A:{A:{"132":"K C G E A B YB"},B:{"2":"D w Z I M H"},C:{"2":"0 1 3 5 6 7 8 WB AB F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r s t u v z x UB OB"},D:{"289":"0 1 3 5 6 7 8 F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r s t u v z x BB IB DB FB ZB GB"},E:{"16":"F J HB CB","289":"K C G E A B JB KB LB MB NB g PB"},F:{"2":"4 9 E B D QB RB SB TB g VB","289":"I M H N O P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r s t u v"},G:{"16":"2 CB XB EB aB","289":"G bB cB dB eB fB gB hB iB"},H:{"2":"jB"},I:{"16":"kB lB","289":"2 AB F BB mB nB oB pB"},J:{"289":"C A"},K:{"2":"4 9 A B D g","289":"L"},L:{"289":"DB"},M:{"2":"x"},N:{"2":"A B"},O:{"289":"qB"},P:{"289":"F J rB"},Q:{"289":"sB"},R:{"289":"tB"}},B:7,C:"CSS scrollbar styling"};
|
// Github: https://github.com/shdwjk/Roll20API/blob/master/GroupInitiative/GroupInitiative.js
// By: The Aaron, Arcane Scriptomancer
// Contact: https://app.roll20.net/users/104025/the-aaron
var GroupInitiative = GroupInitiative || (function() {
'use strict';
var version = '0.9.18',
lastUpdate = 1455059736,
schemaVersion = 1.0,
bonusCache = {},
observers = {
turnOrderChange: []
},
sorters = {
'None': function(to) {
return to;
},
'Ascending': function(to){
return _.sortBy(to,function(i){
return (i.pr);
});
},
'Descending': function(to){
return _.sortBy(to,function(i){
return (-i.pr);
});
}
},
esRE = function (s) {
var escapeForRegexp = /(\\|\/|\[|\]|\(|\)|\{|\}|\?|\+|\*|\||\.|\^|\$)/g;
return s.replace(escapeForRegexp,"\\$1");
},
HE = (function(){
var entities={
//' ' : '&'+'nbsp'+';',
'<' : '&'+'lt'+';',
'>' : '&'+'gt'+';',
"'" : '&'+'#39'+';',
'@' : '&'+'#64'+';',
'{' : '&'+'#123'+';',
'|' : '&'+'#124'+';',
'}' : '&'+'#125'+';',
'[' : '&'+'#91'+';',
']' : '&'+'#93'+';',
'"' : '&'+'quot'+';'
},
re=new RegExp('('+_.map(_.keys(entities),esRE).join('|')+')','g');
return function(s){
return s.replace(re, function(c){ return entities[c] || c; });
};
}()),
observeTurnOrderChange = function(handler){
if(handler && _.isFunction(handler)){
observers.turnOrderChange.push(handler);
}
},
notifyObservers = function(event){
_.each(observers[event],function(handler){
handler();
});
},
formatDieRoll = function(rollData) {
var critFail = _.reduce(rollData.rolls,function(m,r){
return m || _.contains(r.rolls,1);
},false),
critSuccess = _.reduce(rollData.rolls,function(m,r){
return m || _.contains(r.rolls,r.sides);
},false),
highlight = ( (critFail && critSuccess)
? '#4A57ED'
: ( critFail
? '#B31515'
: ( critSuccess
? '#3FB315'
: '#FEF68E'
)
)
),
dicePart = _.reduce(rollData.rolls, function(m,r){
_.reduce(r.rolls,function(dm,dr){
var dielight=( 1 === dr
? '#ff0000'
: ( r.sides === dr
? '#00ff00'
: 'white'
)
);
dm.push('<span style="font-weight:bold;color:'+dielight+';">'+dr+'</span>');
return dm;
},m);
return m;
},[]).join(' + ');
return '<span class="inlinerollresult showtip tipsy" style="min-width:1em;display: inline-block; border: 2px solid '+
highlight+
'; background-color: #FEF68E;color: #404040; font-weight:bold;padding: 0px 3px;cursor: help"'+
' title="'+
HE(HE(
'<span style="color:white;">'+
dicePart+' [init] '+
(rollData.bonus>=0 ? '+' :'-')+' <span style="font-weight:bold;">'+Math.abs(rollData.bonus)+'</span> [bonus]'+
'</span>'
))+'">'+
rollData.total+
'</span>';
},
buildAnnounceGroups = function(l) {
var groupColors = {
npc: '#eef',
character: '#efe',
gmlayer: '#aaa'
};
return _.reduce(l,function(m,s){
var type= ('gmlayer' === s.token.get('layer')
? 'gmlayer'
: ( (s.character && _.filter(s.character.get('controlledby').split(/,/),function(c){
return 'all' === c || ('' !== c && !playerIsGM(c) );
}).length>0) || false
? 'character'
: 'npc'
));
if('graphic'!==s.token.get('type') || 'token' !==s.token.get('subtype')) {
return m;
}
m[type].push('<div style="float: left;display: inline-block;border: 1px solid #888;border-radius:5px; padding: 1px 3px;background-color:'+groupColors[type]+';">'+
'<div style="font-weight:bold; font-size: 1.3em;">'+
'<img src="'+(s.token && s.token.get('imgsrc'))+'" style="height: 2.5em;float:left;margin-right:2px;">'+
((s.token && s.token.get('name')) || (s.character && s.character.get('name')) || '(Creature)')+
'</div>'+
'<div>'+
formatDieRoll(s.rollResults)+
'</div>'+
'<div style="clear: both;"></div>'+
'</div>');
return m;
},{npc:[],character:[],gmlayer:[]});
},
announcers = {
'None': function() {
},
'Hidden': function(l) {
var groups=buildAnnounceGroups(l);
sendChat('GroupInit','/w gm '+
'<div>'+
groups.character.join('')+
groups.npc.join('')+
groups.gmlayer.join('')+
'<div style="clear:both;"></div>'+
'</div>');
},
'Partial': function(l) {
var groups=buildAnnounceGroups(l);
sendChat('GroupInit','/direct '+
'<div>'+
groups.character.join('')+
'<div style="clear:both;"></div>'+
'</div>');
sendChat('GroupInit','/w gm '+
'<div>'+
groups.npc.join('')+
groups.gmlayer.join('')+
'<div style="clear:both;"></div>'+
'</div>');
},
'Visible': function(l) {
var groups=buildAnnounceGroups(l);
sendChat('GroupInit','/direct '+
'<div>'+
groups.character.join('')+
groups.npc.join('')+
'<div style="clear:both;"></div>'+
'</div>');
sendChat('GroupInit','/w gm '+
'<div>'+
groups.gmlayer.join('')+
'<div style="clear:both;"></div>'+
'</div>');
}
},
statAdjustments = {
'Stat-DnD': {
func: function(v) {
return 'floor((('+v+')-10)/2)';
},
desc: 'Calculates the bonus as if the value were a DnD Stat.'
},
'Bare': {
func: function(v) {
return v;
},
desc: 'No Adjustment.'
},
'Floor': {
func: function(v) {
return 'floor('+v+')';
},
desc: 'Rounds down to the nearest integer.'
},
'Tie-Breaker': {
func: function(v) {
return '(0.01*('+v+'))';
},
desc: 'Adds the accompanying attribute as a decimal (0.01)'
},
'Ceiling': {
func: function(v) {
return 'ceil('+v+')';
},
desc: 'Rounds up to the nearest integer.'
},
'Bounded': {
func: function(v) {
return v;
},
desc: '<b>DEPREICATED - will not work with expresions.</b>'
}
},
buildInitDiceExpression = function(s){
var stat=(''!== state.GroupInitiative.config.diceCountAttribute && s.character && getAttrByName(s.character.id, state.GroupInitiative.config.diceCountAttribute, 'current'));
if(stat ) {
stat = (_.isString(stat) ? stat : stat+'');
if('0' !== stat) {
stat = stat.replace(/@\{([^\|]*?|[^\|]*?\|max|[^\|]*?\|current)\}/g, '@{'+(s.character.get('name'))+'|$1}');
return '('+stat+')d'+state.GroupInitiative.config.dieSize;
}
}
return state.GroupInitiative.config.diceCount+'d'+state.GroupInitiative.config.dieSize;
},
rollers = {
'Least-All-Roll':{
mutator: function(l){
var min=_.reduce(l,function(m,r){
if(!m || (r.total < m.total)) {
return r;
}
return m;
},false);
return _.times(l.length, function(){
return min;
});
},
func: function(s){
return buildInitDiceExpression(s);
},
desc: 'Sets the initiative to the lowest of all initiatives rolled for the group.'
},
'Mean-All-Roll':{
mutator: function(l){
var mean = l[Math.round((l.length/2)-0.5)];
return _.times(l.length, function(){
return mean;
});
},
func: function(s){
return buildInitDiceExpression(s);
},
desc: 'Sets the initiative to the mean (average) of all initiatives rolled for the group.'
},
'Individual-Roll': {
mutator: function(l){
return l;
},
func: function(s){
return buildInitDiceExpression(s);
},
desc: 'Sets the initiative individually for each member of the group.'
},
'Constant-By-Stat': {
mutator: function(l){
return l;
},
func: function(){
return '0';
},
desc: 'Sets the initiative individually for each member of the group to their bonus with no roll.'
}
},
checkInstall = function() {
log('-=> GroupInitiative v'+version+' <=- ['+(new Date(lastUpdate*1000))+']');
if( ! _.has(state,'GroupInitiative') || state.GroupInitiative.version !== schemaVersion) {
log(' > Updating Schema to v'+schemaVersion+' <');
switch(state.GroupInitiative && state.GroupInitiative.version) {
case 0.5:
state.GroupInitiative.replaceRoll = false;
/* break; // intentional dropthrough */
case 0.6:
state.GroupInitiative.config = {
rollType: state.GroupInitiative.rollType,
replaceRoll: state.GroupInitiative.replaceRoll,
dieSize: 20,
autoOpenInit: true,
sortOption: 'Descending'
};
delete state.GroupInitiative.replaceRoll;
delete state.GroupInitiative.rollType;
/* break; // intentional dropthrough */
case 0.7:
state.GroupInitiative.config.announcer = 'Partial';
/* break; // intentional dropthrough */
case 0.8:
state.GroupInitiative.config.diceCount = 1;
state.GroupInitiative.config.maxDecimal = 2;
/* break; // intentional dropthrough */
case 0.9:
state.GroupInitiative.config.diceCountAttribute = '';
/* break; // intentional dropthrough */
case 0.10:
if(_.has(state.GroupInitiative.config,'dieCountAttribute')){
delete state.GroupInitiative.config.dieCountAttribute;
state.GroupInitiative.config.diceCountAttribute = '';
}
if(_.has(state.GroupInitiative.config,'dieCount')){
delete state.GroupInitiative.config.dieCount;
state.GroupInitiative.config.diceCount = 1;
}
/* break; // intentional dropthrough */
case 'UpdateSchemaVersion':
state.GroupInitiative.version = schemaVersion;
break;
default:
state.GroupInitiative = {
version: schemaVersion,
bonusStatGroups: [
[
{
attribute: 'dexterity'
}
]
],
config: {
rollType: 'Individual-Roll',
replaceRoll: false,
dieSize: 20,
diceCount: 1,
maxDecimal: 2,
diceCountAttribute: '',
autoOpenInit: true,
sortOption: 'Descending',
announcer: 'Partial'
}
};
break;
}
}
},
ch = function (c) {
var entities = {
'<' : 'lt',
'>' : 'gt',
"'" : '#39',
'@' : '#64',
'{' : '#123',
'|' : '#124',
'}' : '#125',
'[' : '#91',
']' : '#93',
'"' : 'quot',
'-' : 'mdash',
' ' : 'nbsp'
};
if(_.has(entities,c) ){
return ('&'+entities[c]+';');
}
return '';
},
buildBonusStatGroupRows = function() {
return _.reduce(state.GroupInitiative.bonusStatGroups, function(memo,bsg){
return memo + '<li><span style="border: 1px solid #999;background-color:#eee;padding: 0px 3px;">'+_.chain(bsg)
.map(function(s){
var attr=s.attribute+'|'+( _.has(s,'type') ? s.type : 'current' );
if(_.has(s,'adjustments')) {
attr=_.reduce(s.adjustments, function(memo2,a) {
return a+'( '+memo2+' )';
}, attr);
}
return attr;
})
.value()
.join('</span> + <span style="border: 1px solid #999;background-color:#eee;padding: 0px 3px;">')
+'</span></li>';
},"");
},
buildStatAdjustmentRows = function() {
return _.reduce(statAdjustments,function(memo,r,n){
return memo+"<li><b>"+n+"</b> — "+r.desc+"</li>";
},"");
},
getConfigOption_SortOptions = function() {
var text = state.GroupInitiative.config.sortOption;
return '<div>'+
'Sort Options is currently <b>'+
text+
'</b>.'+
'<div>'+
_.map(_.keys(sorters),function(so){
return '<a href="!group-init-config --sort-option|'+so+'">'+
so+
'</a>';
}).join(' ')+
'</div>'+
'</div>';
},
getConfigOption_DieSize = function() {
return '<div>'
+'Initiative Die size is currently <b>'
+state.GroupInitiative.config.dieSize
+'</b> '
+'<a href="!group-init-config --set-die-size|?{Number of sides the initiative die has:|'+state.GroupInitiative.config.dieSize+'}">'
+'Set Die Size'
+'</a>'
+'</div>';
},
getConfigOption_DiceCount = function() {
return '<div>'
+'Initiative Dice Count is currently <b>'
+state.GroupInitiative.config.diceCount
+'</b> '
+'<a href="!group-init-config --set-dice-count|?{Number of initiative dice to roll:|'+state.GroupInitiative.config.diceCount+'}">'
+'Set Dice Count'
+'</a>'
+'</div>';
},
getConfigOption_MaxDecimal = function() {
return '<div>'
+'Max decimal places <b>'
+state.GroupInitiative.config.maxDecimal
+'</b> '
+'<a href="!group-init-config --set-max-decimal|?{Maximum number of decimal places:|'+state.GroupInitiative.config.maxDecimal+'}">'
+'Set Max Decimal'
+'</a>'
+'</div>';
},
getConfigOption_DiceCountAttribute = function() {
var text = (state.GroupInitiative.config.diceCountAttribute.length ? state.GroupInitiative.config.diceCountAttribute : 'DISABLED');
return '<div>'
+'Dice Count Attribute: <b>'
+text
+'</b> '
+'<a href="!group-init-config --set-dice-count-attribute|?{Attribute to use for number of initiative dice to roll (Blank to disable):|'+state.GroupInitiative.config.diceCountAttribute+'}">'
+'Set Attribute'
+'</a>'
+'</div>';
},
getConfigOption_AutoOpenInit = function() {
var text = (state.GroupInitiative.config.autoOpenInit ? 'On' : 'Off' );
return '<div>'
+'Auto Open Init is currently <b>'
+text
+'</b> '
+'<a href="!group-init-config --toggle-auto-open-init">'
+'Toggle'
+'</a>'
+'</div>';
},
getConfigOption_ReplaceRoll = function() {
var text = (state.GroupInitiative.config.replaceRoll ? 'On' : 'Off' );
return '<div>'
+'Replace Roll is currently <b>'
+text
+'</b> '
+'<a href="!group-init-config --toggle-replace-roll">'
+'Toggle'
+'</a>'
+'<p>Sets whether initative scores for selected tokens replace their current scores.</p>'
+'</div>';
},
getConfigOption_RollerOptions = function() {
var text = state.GroupInitiative.config.rollType;
return '<div>'+
'Roller is currently <b>'+
text+
'</b>.'+
'<div>'+
_.map(_.keys(rollers),function(r){
return '<a href="!group-init-config --set-roller|'+r+'">'+
r+
'</a>';
}).join(' ')+
'</div>'+
'</div>';
},
getConfigOption_AnnounceOptions = function() {
var text = state.GroupInitiative.config.announcer;
return '<div>'+
'Announcer is currently <b>'+
text+
'</b>.'+
'<div>'+
_.map(_.keys(announcers),function(an){
return '<a href="!group-init-config --set-announcer|'+an+'">'+
an+
'</a>';
}).join(' ')+
'</div>'+
'</div>';
},
getAllConfigOptions = function() {
return getConfigOption_RollerOptions() +
getConfigOption_SortOptions() +
getConfigOption_DieSize() +
getConfigOption_DiceCount() +
getConfigOption_DiceCountAttribute() +
getConfigOption_MaxDecimal() +
getConfigOption_AutoOpenInit() +
getConfigOption_ReplaceRoll() +
getConfigOption_AnnounceOptions();
},
showHelp = function() {
var rollerRows=_.reduce(rollers,function(memo,r,n){
var selected=((state.GroupInitiative.config.rollType === n) ?
'<div style="float:right;width:90px;border:1px solid black;background-color:#ffc;text-align:center;"><span style="color: red; font-weight:bold; padding: 0px 4px;">Selected</span></div>'
: '' ),
selectedStyleExtra=((state.GroupInitiative.config.rollType === n) ? ' style="border: 1px solid #aeaeae;background-color:#8bd87a;"' : '');
return memo+selected+"<li "+selectedStyleExtra+"><b>"+n+"</b> - "+r.desc+"</li>";
},""),
statAdjustmentRows = buildStatAdjustmentRows(),
bonusStatGroupRows = buildBonusStatGroupRows();
sendChat('',
'/w gm '
+'<div style="border: 1px solid black; background-color: white; padding: 3px 3px;">'
+'<div style="font-weight: bold; border-bottom: 1px solid black;font-size: 130%;">'
+'GroupInitiative v'+version
+'</div>'
+'<div style="padding-left:10px;margin-bottom:3px;">'
+'<p>Rolls initiative for the selected tokens and adds them '
+'to the turn order if they don'+ch("'")+'t have a turn yet.</p>'
+'<p>The calculation of initiative is handled by the '
+'combination of Roller (See <b>Roller Options</b> below) and '
+'a Bonus. The Bonus is determined based on an ordered list '
+'of Stat Groups (See <b>Bonus Stat Groups</b> below). Stat '
+'Groups are evaluated in order. The bonus computed by the first '
+'Stat Group for which all attributes exist and have a '
+'numeric value is used. This allows you to have several '
+'Stat Groups that apply to different types of characters. '
+'In practice you will probably only have one, but more are '
+'there if you need them.</p>'
+'</div>'
+'<b>Commands</b>'
+'<div style="padding-left:10px;">'
+'<b><span style="font-family: serif;">!group-init</span></b>'
+'<div style="padding-left: 10px;padding-right:20px">'
+'<p>This command uses the configured Roller to '
+'determine the initiative order for all selected '
+'tokens.</p>'
+'</div>'
+'</div>'
+'<div style="padding-left:10px;">'
+'<b><span style="font-family: serif;">!group-init <i>--help</i></span></b>'
+'<div style="padding-left: 10px;padding-right:20px">'
+'<p>This command displays the help.</p>'
+'</div>'
+'</div>'
+'<div style="padding-left:10px;">'
+'<b><span style="font-family: serif;">!group-init <i>--promote</i> '+ch('<')+'index'+ch('>')+'</span></b>'
+'<div style="padding-left: 10px;padding-right:20px">'
+'<p>Increases the importance the specified Bonus Stat Group.</p>'
+'This command requires 1 parameter:'
+'<ul>'
+'<li style="border-top: 1px solid #ccc;border-bottom: 1px solid #ccc;">'
+'<b><span style="font-family: serif;">index</span></b> -- The numeric index of the Bonus Stat Group to promote. See <b>Bonus Stat Groups</b> below.'
+'</li> '
+'</ul>'
+'</div>'
+'</div>'
+'<div style="padding-left:10px;">'
+'<b><span style="font-family: serif;">!group-init <i>--del-group</i> '+ch('<')+'index'+ch('>')+'</span></b>'
+'<div style="padding-left: 10px;padding-right:20px">'
+'<p>Deletes the specified Bonus Stat Group.</p>'
+'This command requires 1 parameter:'
+'<ul>'
+'<li style="border-top: 1px solid #ccc;border-bottom: 1px solid #ccc;">'
+'<b><span style="font-family: serif;">index</span></b> -- The numeric index of the Bonus Stat Group to delete. See <b>Bonus Stat Groups</b> below.'
+'</li> '
+'</ul>'
+'</div>'
+'</div>'
+'<div style="padding-left:10px;">'
+'<b><span style="font-family: serif;">!group-init <i>--add-group</i> --'+ch('<')+'adjustment'+ch('>')+' [--'+ch('<')+'adjustment'+ch('>')+'] '+ch('<')+'attribute name[|'+ch('<')+'max|current'+ch('>')+']'+ch('>')+' [--'+ch('<')+'adjustment'+ch('>')+' [--'+ch('<')+'adjustment'+ch('>')+'] '+ch('<')+'attribute name[|'+ch('<')+'max|current'+ch('>')+']'+ch('>')+' ...] </span></b>'
+'<div style="padding-left: 10px;padding-right:20px">'
+'<p>Adds a new Bonus Stat Group to the end of the list. Each adjustment operation can be followed by another adjustment operation, but eventually must end in an attriute name. Adjustment operations are applied to the result of the adjustment operations that follow them.</p>'
+'<p>For example: <span style="border:1px solid #ccc; background-color: #eec; padding: 0px 3px;">--Bounded:-2:2 --Stat-DnD wisdom|max</span> would first computer the DnD Stat bonus for the max field of the wisdom attribute, then bound it between -2 and +2.</p>'
+'This command takes multiple parameters:'
+'<ul>'
+'<li style="border-top: 1px solid #ccc;border-bottom: 1px solid #ccc;">'
+'<b><span style="font-family: serif;">adjustment</span></b> -- One of the Stat Adjustment Options. See <b>Stat Adjustment Options</b> below.'
+'</li> '
+'<li style="border-top: 1px solid #ccc;border-bottom: 1px solid #ccc;">'
+'<b><span style="font-family: serif;">attribute name</span></b> -- The name of an attribute. You can specify |max or |current on the end to target those specific fields (defaults to |current).'
+'</li> '
+'</ul>'
+'</div>'
+'</div>'
+'<div style="padding-left:10px;">'
+'<b><span style="font-family: serif;">!group-init <i>--reroll</i></span></b>'
+'<div style="padding-left: 10px;padding-right:20px">'
+'<p>Rerolls all the tokens in the turn order as if they were selected when you executed the bare <b>!group-init</b> command.</p>'
+'</div>'
+'</div>'
+'<div style="padding-left:10px;">'
+'<b><span style="font-family: serif;">!group-init <i>--clear</i></span></b>'
+'<div style="padding-left: 10px;padding-right:20px">'
+'<p>Removes all tokens from the turn order. If Auto Open Init is enabled it will also close the turn order box.</p>'
+'</div>'
+'</div>'
+'<b>Roller Options</b>'
+'<div style="padding-left:10px;">'
+'<ul>'
+rollerRows
+'</ul>'
+'</div>'
+'<b>Stat Adjustment Options</b>'
+'<div style="padding-left:10px;">'
+'<ul>'
+statAdjustmentRows
+'</ul>'
+'</div>'
+'<b>Bonus Stat Groups</b>'
+'<div style="padding-left:10px;">'
+'<ol>'
+bonusStatGroupRows
+'</ol>'
+'</div>'
+getAllConfigOptions()
+'</div>'
);
},
findInitiativeBonus = function(charObj,token) {
var bonus = '';
if(_.has(bonusCache,charObj.id)) {
return bonusCache[charObj.id];
}
_.find(state.GroupInitiative.bonusStatGroups, function(group){
bonus = _.chain(group)
.map(function(details){
var stat=getAttrByName(charObj.id,details.attribute, details.type||'current');
if( ! _.isUndefined(stat) && !_.isNull(stat) ) {
stat = (stat+'').replace(/@\{([^\|]*?|[^\|]*?\|max|[^\|]*?\|current)\}/g, '@{'+(charObj.get('name'))+'|$1}');
stat = _.reduce(details.adjustments || [],function(memo,a){
var args,adjustment,func;
if(memo) {
args=a.split(':');
adjustment=args.shift();
args.unshift(memo);
func=statAdjustments[adjustment].func;
if(_.isFunction(func)) {
memo =func.apply({},args);
}
}
return memo;
},stat);
return stat;
}
return undefined;
})
.value();
if(_.contains(bonus,undefined) || _.contains(bonus,null) || _.contains(bonus,NaN)) {
bonus='';
return false;
}
bonus = bonus.join('+');
return true;
});
bonusCache[charObj.id]=bonus;
return bonus;
},
handleInput = function(msg_orig) {
var msg = _.clone(msg_orig),
args,
cmds,
workgroup,
workvar,
turnorder,
pageid=false,
error=false,
initFunc,
rollSetup,
initRolls,
cont=false,
manualBonus=0,
turnEntries,
finalize,
isReroll=false
;
if (msg.type !== "api" ) {
return;
}
if(_.has(msg,'inlinerolls')){
msg.content = _.chain(msg.inlinerolls)
.reduce(function(m,v,k){
m['$[['+k+']]']=v.results.total || 0;
return m;
},{})
.reduce(function(m,v,k){
return m.replace(k,v);
},msg.content)
.value();
}
args = msg.content.split(/\s+--/);
switch(args.shift()) {
case '!group-init':
if(args.length > 0) {
cmds=args.shift().split(/\s+/);
switch(cmds[0]) {
case 'help':
if(!playerIsGM(msg.playerid)){
return;
}
showHelp();
break;
case 'add-group':
if(!playerIsGM(msg.playerid)){
return;
}
workgroup=[];
workvar={};
_.each(args,function(arg){
var a=arg.split(/\s+(.+)/),
b,
c=a[0].split(/:/);
if(_.has(statAdjustments,c[0])) {
if('Bare' !== c[0]) {
if(!_.has(workvar,'adjustments')) {
workvar.adjustments=[];
}
workvar.adjustments.unshift(a[0]);
}
if(a.length > 1){
b=a[1].split(/\|/);
workvar.attribute=b[0];
if('max'===b[1]) {
workvar.type = 'max';
}
workgroup.push(workvar);
workvar={};
}
} else {
sendChat('!group-init --add-group', '/w gm '
+'<div style="padding:1px 3px;border: 1px solid #8B4513;background: #eeffee; color: #8B4513; font-size: 80%;">'
+'Unknown Stat Adjustment: '+c[0]+'<br>'
+'Use one of the following:'
+'<ul>'
+buildStatAdjustmentRows()
+'</ul>'
+'</div>'
);
error=true;
}
});
if(!error) {
if(!_.has(workvar,'adjustments')){
state.GroupInitiative.bonusStatGroups.push(workgroup);
sendChat('GroupInitiative', '/w gm '
+'<div style="padding:1px 3px;border: 1px solid #8B4513;background: #eeffee; color: #8B4513; font-size: 80%;">'
+'Updated Bonus Stat Group Ordering:'
+'<ol>'
+buildBonusStatGroupRows()
+'</ol>'
+'</div>'
);
} else {
sendChat('!group-init --add-group', '/w gm '
+'<div style="padding:1px 3px;border: 1px solid #8B4513;background: #eeffee; color: #8B4513; font-size: 80%;">'
+'All Stat Adjustments must have a final attribute name as an argument. Please add an attribute name after --'+args.pop()
+'</div>'
);
}
}
break;
case 'promote':
if(!playerIsGM(msg.playerid)){
return;
}
cmds[1]=Math.max(parseInt(cmds[1],10),1);
if(state.GroupInitiative.bonusStatGroups.length >= cmds[1]) {
if(1 !== cmds[1]) {
workvar=state.GroupInitiative.bonusStatGroups[cmds[1]-1];
state.GroupInitiative.bonusStatGroups[cmds[1]-1] = state.GroupInitiative.bonusStatGroups[cmds[1]-2];
state.GroupInitiative.bonusStatGroups[cmds[1]-2] = workvar;
}
sendChat('GroupInitiative', '/w gm '
+'<div style="padding:1px 3px;border: 1px solid #8B4513;background: #eeffee; color: #8B4513; font-size: 80%;">'
+'Updated Bonus Stat Group Ordering:'
+'<ol>'
+buildBonusStatGroupRows()
+'</ol>'
+'</div>'
);
} else {
sendChat('!group-init --promote', '/w gm '
+'<div style="padding:1px 3px;border: 1px solid #8B4513;background: #eeffee; color: #8B4513; font-size: 80%;">'
+'Please specify one of the following by number:'
+'<ol>'
+buildBonusStatGroupRows()
+'</ol>'
+'</div>'
);
}
break;
case 'del-group':
if(!playerIsGM(msg.playerid)){
return;
}
cmds[1]=Math.max(parseInt(cmds[1],10),1);
if(state.GroupInitiative.bonusStatGroups.length >= cmds[1]) {
state.GroupInitiative.bonusStatGroups=_.filter(state.GroupInitiative.bonusStatGroups, function(v,k){
return (k !== (cmds[1]-1));
});
sendChat('GroupInitiative', '/w gm '
+'<div style="padding:1px 3px;border: 1px solid #8B4513;background: #eeffee; color: #8B4513; font-size: 80%;">'
+'Updated Bonus Stat Group Ordering:'
+'<ol>'
+buildBonusStatGroupRows()
+'</ol>'
+'</div>'
);
} else {
sendChat('!group-init --del-group', '/w gm '
+'<div style="padding:1px 3px;border: 1px solid #8B4513;background: #eeffee; color: #8B4513; font-size: 80%;">'
+'Please specify one of the following by number:'
+'<ol>'
+buildBonusStatGroupRows()
+'</ol>'
+'</div>'
);
}
break;
case 'reroll':
isReroll=true;
msg.selected= _.chain(JSON.parse(Campaign().get('turnorder'))||[])
.filter(function(e){
return '-1' !== e.id;
})
.map(function(e){
return {_type: 'graphic', _id: e.id};
})
.value();
cont=true;
break;
case 'clear':
Campaign().set({
turnorder: '[]',
initiativepage: (state.GroupInitiative.config.autoOpenInit ? false : Campaign().get('initiativepage'))
});
notifyObservers('turnOrderChange');
break;
case 'bonus':
if(cmds[1] && cmds[1].match(/^[\-\+]?\d+(\.\d+)?$/)){
manualBonus=parseFloat(cmds[1]);
cont=true;
} else {
sendChat('GroupInitiative', '/w gm '
+'<div style="padding:1px 3px;border: 1px solid #8B4513;background: #eeffee; color: #8B4513; font-size: 80%;">'
+'Not a valid bonus: <b>'+cmds[1]+'</b>'
+'</div>'
);
}
break;
default:
if(!playerIsGM(msg.playerid)){
return;
}
sendChat('GroupInitiative', '/w gm '
+'<div style="padding:1px 3px;border: 1px solid #8B4513;background: #eeffee; color: #8B4513; font-size: 80%;">'
+'Not a valid command: <b>'+cmds[0]+'</b>'
+'</div>'
);
break;
}
} else {
cont=true;
}
if(cont) {
if(_.has(msg,'selected')) {
bonusCache = {};
turnorder = Campaign().get('turnorder');
turnorder = ('' === turnorder) ? [] : JSON.parse(turnorder);
if(state.GroupInitiative.config.replaceRoll || isReroll) {
turnorder=_.reject(turnorder,function(i){
return _.contains(_.pluck(msg.selected, '_id'),i.id);
});
}
initFunc=rollers[state.GroupInitiative.config.rollType].func;
rollSetup = _.chain(msg.selected)
.map(function(s){
return getObj(s._type,s._id);
})
.reject(_.isUndefined)
.reject(function(s){
return _.contains(_.pluck(turnorder,'id'),s.id);
})
.map(function(s){
pageid=pageid || s.get('pageid');
return {
token: s,
character: getObj('character',s.get('represents'))
};
})
.map(function(s){
s.roll=[];
if(s.character) {
s.roll.push( findInitiativeBonus(s.character,s.token) );
}
if(manualBonus) {
s.roll.push( manualBonus );
}
s.roll.push( initFunc(s) );
return s;
})
.value();
initRolls = _.map(rollSetup,function(rs,i){
return {
index: i,
roll: ('[[('+ _.reject(rs.roll,function(r){
return _.isString(r) && _.isEmpty(r);
})
.join(') + (')+')]]')
.replace(/\[\[\[/g, "[[ [")
};
});
turnEntries = [];
finalize = _.after(initRolls.length,function(){
turnEntries = _.sortBy(turnEntries,'order');
turnEntries = rollers[state.GroupInitiative.config.rollType].mutator(turnEntries);
Campaign().set({
turnorder: JSON.stringify(
sorters[state.GroupInitiative.config.sortOption](
turnorder.concat(
_.chain(rollSetup)
.map(function(s){
s.rollResults=turnEntries.shift();
return s;
})
.tap(announcers[state.GroupInitiative.config.announcer])
.map(function(s){
return {
id: s.token.id,
pr: s.rollResults.total,
custom: ''
};
})
.value()
)
)
)
});
notifyObservers('turnOrderChange');
if(state.GroupInitiative.config.autoOpenInit && !Campaign().get('initativepage')) {
Campaign().set({
initiativepage: pageid
});
}
});
_.each(initRolls, function(ir){
sendChat('',ir.index+':'+ir.roll,function(msg){
var parts = msg[0].content.split(/:/),
ird = msg[0].inlinerolls[parts[1].match(/\d+/)],
rdata = {
order: parseInt(parts[0],10),
total: (ird.results.total%1===0
? ird.results.total
: parseFloat(ird.results.total.toFixed(state.GroupInitiative.config.maxDecimal))),
rolls: _.reduce(ird.results.rolls,function(m,rs){
if('R' === rs.type) {
m.push({
sides: rs.sides,
rolls: _.pluck(rs.results,'v')
});
}
return m;
},[])
};
rdata.bonus = (ird.results.total - (_.reduce(rdata.rolls,function(m,r){
m+=_.reduce(r.rolls,function(s,dieroll){
return s+dieroll;
},0);
return m;
},0)));
rdata.bonus = (rdata.bonus%1===0
? rdata.bonus
: parseFloat(rdata.bonus.toFixed(state.GroupInitiative.config.maxDecimal)));
turnEntries.push(rdata);
finalize();
});
});
} else {
showHelp();
}
}
break;
case '!group-init-config':
if(!playerIsGM(msg.playerid)){
return;
}
if(_.contains(args,'--help')) {
showHelp();
return;
}
if(!args.length) {
sendChat('','/w gm '
+'<div style="border: 1px solid black; background-color: white; padding: 3px 3px;">'
+'<div style="font-weight: bold; border-bottom: 1px solid black;font-size: 130%;">'
+'GroupInitiative v'+version
+'</div>'
+getAllConfigOptions()
+'</div>'
);
return;
}
_.each(args,function(a){
var opt=a.split(/\|/),
omsg='';
switch(opt.shift()) {
case 'sort-option':
if(sorters[opt[0]]) {
state.GroupInitiative.config.sortOption=opt[0];
} else {
omsg='<div><b>Error:</b> Not a valid sort method: '+opt[0]+'</div>';
}
sendChat('','/w gm '
+'<div style="border: 1px solid black; background-color: white; padding: 3px 3px;">'
+omsg
+getConfigOption_SortOptions()
+'</div>'
);
break;
case 'set-die-size':
if(opt[0].match(/^\d+$/)) {
state.GroupInitiative.config.dieSize=parseInt(opt[0],10);
} else {
omsg='<div><b>Error:</b> Not a die size: '+opt[0]+'</div>';
}
sendChat('','/w gm '
+'<div style="border: 1px solid black; background-color: white; padding: 3px 3px;">'
+omsg
+getConfigOption_DieSize()
+'</div>'
);
break;
case 'set-max-decimal':
if(opt[0].match(/^\d+$/)) {
state.GroupInitiative.config.maxDecimal=parseInt(opt[0],10);
} else {
omsg='<div><b>Error:</b> Not a valid decimal count: '+opt[0]+'</div>';
}
sendChat('','/w gm '
+'<div style="border: 1px solid black; background-color: white; padding: 3px 3px;">'
+omsg
+getConfigOption_MaxDecimal()
+'</div>'
);
break;
case 'set-dice-count':
if(opt[0].match(/^\d+$/)) {
state.GroupInitiative.config.diceCount=parseInt(opt[0],10);
} else {
omsg='<div><b>Error:</b> Not a valid dice count: '+opt[0]+'</div>';
}
sendChat('','/w gm '
+'<div style="border: 1px solid black; background-color: white; padding: 3px 3px;">'
+omsg
+getConfigOption_DiceCount()
+'</div>'
);
break;
case 'set-dice-count-attribute':
if(opt[0]) {
state.GroupInitiative.config.diceCountAttribute=opt[0];
} else {
state.GroupInitiative.config.diceCountAttribute='';
omsg='<div>Cleared Dice Count Attribute.</div>';
}
sendChat('','/w gm '
+'<div style="border: 1px solid black; background-color: white; padding: 3px 3px;">'
+omsg
+getConfigOption_DiceCountAttribute()
+'</div>'
);
break;
case 'toggle-auto-open-init':
state.GroupInitiative.config.autoOpenInit = !state.GroupInitiative.config.autoOpenInit;
sendChat('','/w gm '
+'<div style="border: 1px solid black; background-color: white; padding: 3px 3px;">'
+getConfigOption_AutoOpenInit()
+'</div>'
);
break;
case 'toggle-replace-roll':
state.GroupInitiative.config.replaceRoll = !state.GroupInitiative.config.replaceRoll;
sendChat('','/w gm '
+'<div style="border: 1px solid black; background-color: white; padding: 3px 3px;">'
+getConfigOption_ReplaceRoll()
+'</div>'
);
break;
case 'set-announcer':
if(announcers[opt[0]]) {
state.GroupInitiative.config.announcer=opt[0];
} else {
omsg='<div><b>Error:</b> Not a valid announcer: '+opt[0]+'</div>';
}
sendChat('','/w gm '
+'<div style="border: 1px solid black; background-color: white; padding: 3px 3px;">'
+omsg
+getConfigOption_AnnounceOptions()
+'</div>'
);
break;
case 'set-roller':
if(rollers[opt[0]]) {
state.GroupInitiative.config.rollType=opt[0];
} else {
omsg='<div><b>Error:</b> Not a valid roller: '+opt[0]+'</div>';
}
sendChat('','/w gm '
+'<div style="border: 1px solid black; background-color: white; padding: 3px 3px;">'
+omsg
+getConfigOption_RollerOptions()
+'</div>'
);
break;
default:
sendChat('','/w gm '
+'<div><b>Unsupported Option:</div> '+a+'</div>'
);
}
});
break;
}
},
registerEventHandlers = function() {
on('chat:message', handleInput);
};
return {
RegisterEventHandlers: registerEventHandlers,
ObserveTurnOrderChange: observeTurnOrderChange,
CheckInstall: checkInstall
};
}());
on("ready",function(){
'use strict';
GroupInitiative.CheckInstall();
GroupInitiative.RegisterEventHandlers();
});
|
var searchData=
[
['addcallcompletedcallback',['AddCallCompletedCallback',['../classv8_1_1_v8.html#a3f70d920e58ac54b56f06363b5130fa3',1,'v8::V8']]],
['addgcepiloguecallback',['AddGCEpilogueCallback',['../classv8_1_1_v8.html#a37aadf3536c772eb5bbf67fa7822679a',1,'v8::V8']]],
['addgcprologuecallback',['AddGCPrologueCallback',['../classv8_1_1_v8.html#a49c016f17c67f700387f801b2b29b5ab',1,'v8::V8']]],
['addimplicitreferences',['AddImplicitReferences',['../classv8_1_1_v8.html#a34e0158e2e7f0d1fa2641cba68ceac5b',1,'v8::V8']]],
['addmemoryallocationcallback',['AddMemoryAllocationCallback',['../classv8_1_1_v8.html#ac9718f8dc3f3c498bf07282eb7c1618e',1,'v8::V8']]],
['addmessagelistener',['AddMessageListener',['../classv8_1_1_v8.html#a125dadf8feb6178a42333f2a6412ea73',1,'v8::V8']]],
['addobjectgroup',['AddObjectGroup',['../classv8_1_1_v8.html#a1ff0fce14ab8124c60d3ff16a9a91c4c',1,'v8::V8']]],
['adjustamountofexternalallocatedmemory',['AdjustAmountOfExternalAllocatedMemory',['../classv8_1_1_v8.html#a8e6f2e66c028d1ffa3f5e8a799790bc5',1,'v8::V8']]],
['allowcodegenerationfromstrings',['AllowCodeGenerationFromStrings',['../classv8_1_1_context.html#a794ccc42113566f5d363f89c8b0d3c2c',1,'v8::Context']]],
['asarray',['AsArray',['../classv8_1_1_stack_trace.html#abd36f712b3ab986b572aa259b06bf5bd',1,'v8::StackTrace']]]
];
|
// Copyright 2010 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// 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.
/**
* @fileoverview Event Types.
*
* @author arv@google.com (Erik Arvidsson)
* @author mirkov@google.com (Mirko Visontai)
*/
goog.provide('goog.events.EventType');
goog.require('goog.userAgent');
/**
* Constants for event names.
* @enum {string}
*/
goog.events.EventType = {
// Mouse events
CLICK: 'click',
DBLCLICK: 'dblclick',
MOUSEDOWN: 'mousedown',
MOUSEUP: 'mouseup',
MOUSEOVER: 'mouseover',
MOUSEOUT: 'mouseout',
MOUSEMOVE: 'mousemove',
SELECTSTART: 'selectstart', // IE, Safari, Chrome
// Key events
KEYPRESS: 'keypress',
KEYDOWN: 'keydown',
KEYUP: 'keyup',
// Focus
BLUR: 'blur',
FOCUS: 'focus',
DEACTIVATE: 'deactivate', // IE only
// NOTE: The following two events are not stable in cross-browser usage.
// WebKit and Opera implement DOMFocusIn/Out.
// IE implements focusin/out.
// Gecko implements neither see bug at
// https://bugzilla.mozilla.org/show_bug.cgi?id=396927.
// The DOM Events Level 3 Draft deprecates DOMFocusIn in favor of focusin:
// http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html
// You can use FOCUS in Capture phase until implementations converge.
FOCUSIN: goog.userAgent.IE ? 'focusin' : 'DOMFocusIn',
FOCUSOUT: goog.userAgent.IE ? 'focusout' : 'DOMFocusOut',
// Forms
CHANGE: 'change',
SELECT: 'select',
SUBMIT: 'submit',
INPUT: 'input',
PROPERTYCHANGE: 'propertychange', // IE only
// Drag and drop
DRAGSTART: 'dragstart',
DRAG: 'drag',
DRAGENTER: 'dragenter',
DRAGOVER: 'dragover',
DRAGLEAVE: 'dragleave',
DROP: 'drop',
DRAGEND: 'dragend',
// WebKit touch events.
TOUCHSTART: 'touchstart',
TOUCHMOVE: 'touchmove',
TOUCHEND: 'touchend',
TOUCHCANCEL: 'touchcancel',
// Misc
BEFOREUNLOAD: 'beforeunload',
CONTEXTMENU: 'contextmenu',
ERROR: 'error',
HELP: 'help',
LOAD: 'load',
LOSECAPTURE: 'losecapture',
READYSTATECHANGE: 'readystatechange',
RESIZE: 'resize',
SCROLL: 'scroll',
UNLOAD: 'unload',
// HTML 5 History events
// See http://www.w3.org/TR/html5/history.html#event-definitions
HASHCHANGE: 'hashchange',
PAGEHIDE: 'pagehide',
PAGESHOW: 'pageshow',
POPSTATE: 'popstate',
// Copy and Paste
// Support is limited. Make sure it works on your favorite browser
// before using.
// http://www.quirksmode.org/dom/events/cutcopypaste.html
COPY: 'copy',
PASTE: 'paste',
CUT: 'cut',
BEFORECOPY: 'beforecopy',
BEFORECUT: 'beforecut',
BEFOREPASTE: 'beforepaste',
// HTML5 online/offline events.
// http://www.w3.org/TR/offline-webapps/#related
ONLINE: 'online',
OFFLINE: 'offline',
// HTML 5 worker events
MESSAGE: 'message',
CONNECT: 'connect',
// CSS transition events. Based on the browser support described at:
// https://developer.mozilla.org/en/css/css_transitions#Browser_compatibility
TRANSITIONEND: goog.userAgent.WEBKIT ? 'webkitTransitionEnd' :
(goog.userAgent.OPERA ? 'oTransitionEnd' : 'transitionend'),
// IE specific events.
// See http://msdn.microsoft.com/en-us/library/ie/hh673557(v=vs.85).aspx
MSGESTURECHANGE: 'MSGestureChange',
MSGESTUREEND: 'MSGestureEnd',
MSGESTUREHOLD: 'MSGestureHold',
MSGESTURESTART: 'MSGestureStart',
MSGESTURETAP: 'MSGestureTap',
MSGOTPOINTERCAPTURE: 'MSGotPointerCapture',
MSINERTIASTART: 'MSInertiaStart',
MSLOSTPOINTERCAPTURE: 'MSLostPointerCapture',
MSPOINTERCANCEL: 'MSPointerCancel',
MSPOINTERDOWN: 'MSPointerDown',
MSPOINTERMOVE: 'MSPointerMove',
MSPOINTEROVER: 'MSPointerOver',
MSPOINTEROUT: 'MSPointerOut',
MSPOINTERUP: 'MSPointerUp'
};
|
// Generated by CoffeeScript 1.3.3
(function() {
var Event, EventEmitter, EventEmitterEnhanced, EventSystem, balUtilFlow, balUtilTypes, debug,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
__slice = [].slice;
EventEmitter = require('events').EventEmitter;
balUtilFlow = require(__dirname + '/flow');
balUtilTypes = require(__dirname + '/types');
debug = false;
EventEmitterEnhanced = (function(_super) {
__extends(EventEmitterEnhanced, _super);
function EventEmitterEnhanced() {
return EventEmitterEnhanced.__super__.constructor.apply(this, arguments);
}
EventEmitterEnhanced.prototype.emitAsync = function(eventName, data, next) {
var listener, listeners, tasks, _i, _len;
listeners = this.listeners(eventName);
tasks = new balUtilFlow.Group(next);
for (_i = 0, _len = listeners.length; _i < _len; _i++) {
listener = listeners[_i];
tasks.push({
listener: listener
}, function(complete) {
return balUtilFlow.fireWithOptionalCallback(this.listener, [data, complete]);
});
}
tasks.async();
return this;
};
EventEmitterEnhanced.prototype.emitSync = function(eventName, data, next) {
var listener, listeners, tasks, _i, _len;
listeners = this.listeners(eventName);
tasks = new balUtilFlow.Group(next);
for (_i = 0, _len = listeners.length; _i < _len; _i++) {
listener = listeners[_i];
tasks.push({
listener: listener
}, function(complete) {
return balUtilFlow.fireWithOptionalCallback(this.listener, [data, complete]);
});
}
tasks.sync();
return this;
};
return EventEmitterEnhanced;
})(EventEmitter);
Event = (function() {
Event.prototype.name = null;
Event.prototype.locked = false;
Event.prototype.finished = false;
function Event(_arg) {
this.name = _arg.name;
}
return Event;
})();
EventSystem = (function(_super) {
__extends(EventSystem, _super);
function EventSystem() {
return EventSystem.__super__.constructor.apply(this, arguments);
}
EventSystem.prototype._eventSystemEvents = null;
EventSystem.prototype.event = function(eventName) {
var _base;
this._eventSystemEvents || (this._eventSystemEvents = {});
return (_base = this._eventSystemEvents)[eventName] || (_base[eventName] = new Event(eventName));
};
EventSystem.prototype.lock = function(eventName, next) {
var event,
_this = this;
event = this.event(eventName);
if (event.locked === false) {
event.locked = true;
try {
this.emit(eventName + ':locked');
} catch (err) {
next(err);
return this;
} finally {
next();
}
} else {
this.onceUnlocked(eventName, function(err) {
if (err) {
return next(err);
}
return _this.lock(eventName, next);
});
}
return this;
};
EventSystem.prototype.unlock = function(eventName, next) {
var event;
event = this.event(eventName);
event.locked = false;
try {
this.emit(eventName + ':unlocked');
} catch (err) {
next(err);
return this;
} finally {
next();
}
return this;
};
EventSystem.prototype.start = function(eventName, next) {
var _this = this;
this.lock(eventName, function(err) {
var event;
if (err) {
return next(err);
}
event = _this.event(eventName);
event.finished = false;
try {
return _this.emit(eventName + ':started');
} catch (err) {
next(err);
return _this;
} finally {
next();
}
});
return this;
};
EventSystem.prototype.finish = function() {
var args;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
return this.finished.apply(this, args);
};
EventSystem.prototype.finished = function(eventName, next) {
var event,
_this = this;
event = this.event(eventName);
event.finished = true;
this.unlock(eventName, function(err) {
if (err) {
return next(err);
}
try {
return _this.emit(eventName + ':finished');
} catch (err) {
next(err);
return _this;
} finally {
next();
}
});
return this;
};
EventSystem.prototype.onceUnlocked = function(eventName, next) {
var event;
if (debug) {
console.log("onceUnlocked " + eventName);
}
event = this.event(eventName);
if (event.locked) {
this.once(eventName + ':unlocked', next);
} else {
next();
}
return this;
};
EventSystem.prototype.onceFinished = function(eventName, next) {
var event;
event = this.event(eventName);
if (event.finished) {
next();
} else {
this.once(eventName + ':finished', next);
}
return this;
};
EventSystem.prototype.whenFinished = function(eventName, next) {
var event;
event = this.event(eventName);
if (event.finished) {
next();
}
this.on(eventName + ':finished', next);
return this;
};
EventSystem.prototype.when = function() {
var args;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
return this.on.apply(this, args);
};
EventSystem.prototype.block = function(eventNames, next) {
var done, err, eventName, total, _i, _len;
if (!balUtilTypes.isArray(eventNames)) {
if (balUtilTypes.isString(eventNames)) {
eventNames = eventNames.split(/[,\s]+/g);
} else {
err = new Error('Unknown eventNames type');
return next(err);
}
}
total = eventNames.length;
done = 0;
for (_i = 0, _len = eventNames.length; _i < _len; _i++) {
eventName = eventNames[_i];
this.lock(eventName, function(err) {
if (err) {
done = total;
return next(err);
}
done++;
if (done === total) {
return next();
}
});
}
return this;
};
EventSystem.prototype.unblock = function(eventNames, next) {
var done, err, eventName, total, _i, _len;
if (!balUtilTypes.isArray(eventNames)) {
if (balUtilTypes.isString(eventNames)) {
eventNames = eventNames.split(/[,\s]+/g);
} else {
err = new Error('Unknown eventNames type');
return next(err);
}
}
total = eventNames.length;
done = 0;
for (_i = 0, _len = eventNames.length; _i < _len; _i++) {
eventName = eventNames[_i];
this.unlock(eventName, function(err) {
if (err) {
done = total;
return next(err);
}
done++;
if (done === total) {
return next();
}
});
}
return this;
};
return EventSystem;
})(EventEmitterEnhanced);
module.exports = {
EventEmitterEnhanced: EventEmitterEnhanced,
Event: Event,
EventSystem: EventSystem
};
}).call(this);
|
/*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("series-spline",function(e,t){e.SplineSeries=e.Base.create("splineSeries",e.LineSeries,[e.CurveUtil,e.Lines],{drawSeries:function(){this.drawSpline()}},{ATTRS:{type:{value:"spline"}}})},"3.17.2",{requires:["series-line","series-curve-util"]});
|
require('./harness').run();
var recvCount = 0;
var body = "hello world";
connection.addListener('ready', function () {
puts("connected to " + connection.serverProperties.product);
var q = connection.queue('node-default-exchange', function() {
q.bind("#"); // bind to queue
q.on('queueBindOk', function() { // wait until queue is bound
q.on('basicConsumeOk', function () { // wait until consumer is registered
puts("publishing 2 msg messages");
connection.publish('message.msg1', {two:2, one:1});
connection.publish('message.msg2', {foo:'bar', hello: 'world'});
setTimeout(function () {
// wait one second to receive the message, then quit
connection.end();
}, 1000);
});
q.subscribe({ routingKeyInPayload: true },
function (msg) { // register consumer
recvCount++;
switch (msg._routingKey) {
case 'message.msg1':
assert.equal(1, msg.one);
assert.equal(2, msg.two);
break;
case 'message.msg2':
assert.equal('world', msg.hello);
assert.equal('bar', msg.foo);
break;
default:
throw new Error('unexpected routing key: ' + msg._routingKey);
}
})
});
});
});
process.addListener('exit', function () {
assert.equal(2, recvCount);
});
|
// HTML5 entities map: { name -> utf16string }
//
'use strict';
/*eslint quotes:0*/
module.exports = require('entities/lib/maps/entities.json');
|
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.default = void 0;
function _child_process() {
const data = require('child_process');
_child_process = function () {
return data;
};
return data;
}
function _stream() {
const data = require('stream');
_stream = function () {
return data;
};
return data;
}
function _mergeStream() {
const data = _interopRequireDefault(require('merge-stream'));
_mergeStream = function () {
return data;
};
return data;
}
function _supportsColor() {
const data = require('supports-color');
_supportsColor = function () {
return data;
};
return data;
}
function _types() {
const data = require('../types');
_types = function () {
return data;
};
return data;
}
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
}
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
const SIGNAL_BASE_EXIT_CODE = 128;
const SIGKILL_EXIT_CODE = SIGNAL_BASE_EXIT_CODE + 9;
const SIGTERM_EXIT_CODE = SIGNAL_BASE_EXIT_CODE + 15; // How long to wait after SIGTERM before sending SIGKILL
const SIGKILL_DELAY = 500;
/**
* This class wraps the child process and provides a nice interface to
* communicate with. It takes care of:
*
* - Re-spawning the process if it dies.
* - Queues calls while the worker is busy.
* - Re-sends the requests if the worker blew up.
*
* The reason for queueing them here (since childProcess.send also has an
* internal queue) is because the worker could be doing asynchronous work, and
* this would lead to the child process to read its receiving buffer and start a
* second call. By queueing calls here, we don't send the next call to the
* children until we receive the result of the previous one.
*
* As soon as a request starts to be processed by a worker, its "processed"
* field is changed to "true", so that other workers which might encounter the
* same call skip it.
*/
class ChildProcessWorker {
constructor(options) {
_defineProperty(this, '_child', void 0);
_defineProperty(this, '_options', void 0);
_defineProperty(this, '_request', void 0);
_defineProperty(this, '_retries', void 0);
_defineProperty(this, '_onProcessEnd', void 0);
_defineProperty(this, '_onCustomMessage', void 0);
_defineProperty(this, '_fakeStream', void 0);
_defineProperty(this, '_stdout', void 0);
_defineProperty(this, '_stderr', void 0);
_defineProperty(this, '_exitPromise', void 0);
_defineProperty(this, '_resolveExitPromise', void 0);
this._options = options;
this._request = null;
this._fakeStream = null;
this._stdout = null;
this._stderr = null;
this._exitPromise = new Promise(resolve => {
this._resolveExitPromise = resolve;
});
this.initialize();
}
initialize() {
const forceColor = _supportsColor().stdout
? {
FORCE_COLOR: '1'
}
: {};
const child = (0, _child_process().fork)(
require.resolve('./processChild'),
[],
{
cwd: process.cwd(),
env: {
...process.env,
JEST_WORKER_ID: String(this._options.workerId + 1),
// 0-indexed workerId, 1-indexed JEST_WORKER_ID
...forceColor
},
// Suppress --debug / --inspect flags while preserving others (like --harmony).
execArgv: process.execArgv.filter(v => !/^--(debug|inspect)/.test(v)),
silent: true,
...this._options.forkOptions
}
);
if (child.stdout) {
if (!this._stdout) {
// We need to add a permanent stream to the merged stream to prevent it
// from ending when the subprocess stream ends
this._stdout = (0, _mergeStream().default)(this._getFakeStream());
}
this._stdout.add(child.stdout);
}
if (child.stderr) {
if (!this._stderr) {
// We need to add a permanent stream to the merged stream to prevent it
// from ending when the subprocess stream ends
this._stderr = (0, _mergeStream().default)(this._getFakeStream());
}
this._stderr.add(child.stderr);
}
child.on('message', this._onMessage.bind(this));
child.on('exit', this._onExit.bind(this));
child.send([
_types().CHILD_MESSAGE_INITIALIZE,
false,
this._options.workerPath,
this._options.setupArgs
]);
this._child = child;
this._retries++; // If we exceeded the amount of retries, we will emulate an error reply
// coming from the child. This avoids code duplication related with cleaning
// the queue, and scheduling the next call.
if (this._retries > this._options.maxRetries) {
const error = new Error('Call retries were exceeded');
this._onMessage([
_types().PARENT_MESSAGE_CLIENT_ERROR,
error.name,
error.message,
error.stack,
{
type: 'WorkerError'
}
]);
}
}
_shutdown() {
// End the temporary streams so the merged streams end too
if (this._fakeStream) {
this._fakeStream.end();
this._fakeStream = null;
}
this._resolveExitPromise();
}
_onMessage(response) {
// TODO: Add appropriate type check
let error;
switch (response[0]) {
case _types().PARENT_MESSAGE_OK:
this._onProcessEnd(null, response[1]);
break;
case _types().PARENT_MESSAGE_CLIENT_ERROR:
error = response[4];
if (error != null && typeof error === 'object') {
const extra = error; // @ts-expect-error: no index
const NativeCtor = global[response[1]];
const Ctor = typeof NativeCtor === 'function' ? NativeCtor : Error;
error = new Ctor(response[2]);
error.type = response[1];
error.stack = response[3];
for (const key in extra) {
error[key] = extra[key];
}
}
this._onProcessEnd(error, null);
break;
case _types().PARENT_MESSAGE_SETUP_ERROR:
error = new Error('Error when calling setup: ' + response[2]);
error.type = response[1];
error.stack = response[3];
this._onProcessEnd(error, null);
break;
case _types().PARENT_MESSAGE_CUSTOM:
this._onCustomMessage(response[1]);
break;
default:
throw new TypeError('Unexpected response from worker: ' + response[0]);
}
}
_onExit(exitCode) {
if (
exitCode !== 0 &&
exitCode !== SIGTERM_EXIT_CODE &&
exitCode !== SIGKILL_EXIT_CODE
) {
this.initialize();
if (this._request) {
this._child.send(this._request);
}
} else {
this._shutdown();
}
}
send(request, onProcessStart, onProcessEnd, onCustomMessage) {
onProcessStart(this);
this._onProcessEnd = (...args) => {
// Clean the request to avoid sending past requests to workers that fail
// while waiting for a new request (timers, unhandled rejections...)
this._request = null;
return onProcessEnd(...args);
};
this._onCustomMessage = (...arg) => onCustomMessage(...arg);
this._request = request;
this._retries = 0;
this._child.send(request);
}
waitForExit() {
return this._exitPromise;
}
forceExit() {
this._child.kill('SIGTERM');
const sigkillTimeout = setTimeout(
() => this._child.kill('SIGKILL'),
SIGKILL_DELAY
);
this._exitPromise.then(() => clearTimeout(sigkillTimeout));
}
getWorkerId() {
return this._options.workerId;
}
getStdout() {
return this._stdout;
}
getStderr() {
return this._stderr;
}
_getFakeStream() {
if (!this._fakeStream) {
this._fakeStream = new (_stream().PassThrough)();
}
return this._fakeStream;
}
}
exports.default = ChildProcessWorker;
|
(function (global) {
var babelHelpers = global.babelHelpers = {};
babelHelpers.inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) subClass.__proto__ = superClass;
};
babelHelpers.defaults = function (obj, defaults) {
var keys = Object.getOwnPropertyNames(defaults);
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
var value = Object.getOwnPropertyDescriptor(defaults, key);
if (value && value.configurable && obj[key] === undefined) {
Object.defineProperty(obj, key, value);
}
}
return obj;
};
babelHelpers.createClass = (function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
})();
babelHelpers.createDecoratedClass = (function () {
function defineProperties(target, descriptors, initializers) {
for (var i = 0; i < descriptors.length; i++) {
var descriptor = descriptors[i];
var decorators = descriptor.decorators;
var key = descriptor.key;
delete descriptor.key;
delete descriptor.decorators;
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor || descriptor.initializer) descriptor.writable = true;
if (decorators) {
for (var f = 0; f < decorators.length; f++) {
var decorator = decorators[f];
if (typeof decorator === "function") {
descriptor = decorator(target, key, descriptor) || descriptor;
} else {
throw new TypeError("The decorator for method " + descriptor.key + " is of the invalid type " + typeof decorator);
}
}
if (descriptor.initializer !== undefined) {
initializers[key] = descriptor;
continue;
}
}
Object.defineProperty(target, key, descriptor);
}
}
return function (Constructor, protoProps, staticProps, protoInitializers, staticInitializers) {
if (protoProps) defineProperties(Constructor.prototype, protoProps, protoInitializers);
if (staticProps) defineProperties(Constructor, staticProps, staticInitializers);
return Constructor;
};
})();
babelHelpers.createDecoratedObject = function (descriptors) {
var target = {};
for (var i = 0; i < descriptors.length; i++) {
var descriptor = descriptors[i];
var decorators = descriptor.decorators;
var key = descriptor.key;
delete descriptor.key;
delete descriptor.decorators;
descriptor.enumerable = true;
descriptor.configurable = true;
descriptor.writable = true;
if (decorators) {
for (var f = 0; f < decorators.length; f++) {
var decorator = decorators[f];
if (typeof decorator === "function") {
descriptor = decorator(target, key, descriptor) || descriptor;
} else {
throw new TypeError("The decorator for method " + descriptor.key + " is of the invalid type " + typeof decorator);
}
}
}
if (descriptor.initializer) {
descriptor.value = descriptor.initializer.call(target);
}
Object.defineProperty(target, key, descriptor);
}
return target;
};
babelHelpers.defineDecoratedPropertyDescriptor = function (target, key, descriptors) {
var _descriptor = descriptors[key];
if (!_descriptor) return;
var descriptor = {};
for (var _key in _descriptor) descriptor[_key] = _descriptor[_key];
descriptor.value = descriptor.initializer.call(target);
Object.defineProperty(target, key, descriptor);
};
babelHelpers.taggedTemplateLiteral = function (strings, raw) {
return Object.freeze(Object.defineProperties(strings, {
raw: {
value: Object.freeze(raw)
}
}));
};
babelHelpers.taggedTemplateLiteralLoose = function (strings, raw) {
strings.raw = raw;
return strings;
};
babelHelpers.toArray = function (arr) {
return Array.isArray(arr) ? arr : Array.from(arr);
};
babelHelpers.toConsumableArray = function (arr) {
if (Array.isArray(arr)) {
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
return arr2;
} else {
return Array.from(arr);
}
};
babelHelpers.slicedToArray = (function () {
function sliceIterator(arr, i) {
var _arr = [];
var _n = true;
var _d = false;
var _e = undefined;
try {
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
_arr.push(_s.value);
if (i && _arr.length === i) break;
}
} catch (err) {
_d = true;
_e = err;
} finally {
try {
if (!_n && _i["return"]) _i["return"]();
} finally {
if (_d) throw _e;
}
}
return _arr;
}
return function (arr, i) {
if (Array.isArray(arr)) {
return arr;
} else if (Symbol.iterator in Object(arr)) {
return sliceIterator(arr, i);
} else {
throw new TypeError("Invalid attempt to destructure non-iterable instance");
}
};
})();
babelHelpers.slicedToArrayLoose = function (arr, i) {
if (Array.isArray(arr)) {
return arr;
} else if (Symbol.iterator in Object(arr)) {
var _arr = [];
for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
_arr.push(_step.value);
if (i && _arr.length === i) break;
}
return _arr;
} else {
throw new TypeError("Invalid attempt to destructure non-iterable instance");
}
};
babelHelpers.objectWithoutProperties = function (obj, keys) {
var target = {};
for (var i in obj) {
if (keys.indexOf(i) >= 0) continue;
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
target[i] = obj[i];
}
return target;
};
babelHelpers.hasOwn = Object.prototype.hasOwnProperty;
babelHelpers.slice = Array.prototype.slice;
babelHelpers.bind = Function.prototype.bind;
babelHelpers.defineProperty = function (obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
};
babelHelpers.asyncToGenerator = function (fn) {
return function () {
var gen = fn.apply(this, arguments);
return new Promise(function (resolve, reject) {
var callNext = step.bind(null, "next");
var callThrow = step.bind(null, "throw");
function step(key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(callNext, callThrow);
}
}
callNext();
});
};
};
babelHelpers.interopRequireWildcard = function (obj) {
if (obj && obj.__esModule) {
return obj;
} else {
var newObj = {};
if (obj != null) {
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
}
}
newObj["default"] = obj;
return newObj;
}
};
babelHelpers.interopRequireDefault = function (obj) {
return obj && obj.__esModule ? obj : {
"default": obj
};
};
babelHelpers._typeof = function (obj) {
return obj && obj.constructor === Symbol ? "symbol" : typeof obj;
};
babelHelpers._extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
babelHelpers.get = function get(object, property, receiver) {
if (object === null) object = Function.prototype;
var desc = Object.getOwnPropertyDescriptor(object, property);
if (desc === undefined) {
var parent = Object.getPrototypeOf(object);
if (parent === null) {
return undefined;
} else {
return get(parent, property, receiver);
}
} else if ("value" in desc) {
return desc.value;
} else {
var getter = desc.get;
if (getter === undefined) {
return undefined;
}
return getter.call(receiver);
}
};
babelHelpers.set = function set(object, property, value, receiver) {
var desc = Object.getOwnPropertyDescriptor(object, property);
if (desc === undefined) {
var parent = Object.getPrototypeOf(object);
if (parent !== null) {
set(parent, property, value, receiver);
}
} else if ("value" in desc && desc.writable) {
desc.value = value;
} else {
var setter = desc.set;
if (setter !== undefined) {
setter.call(receiver, value);
}
}
return value;
};
babelHelpers.classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
babelHelpers.objectDestructuringEmpty = function (obj) {
if (obj == null) throw new TypeError("Cannot destructure undefined");
};
babelHelpers.temporalUndefined = {};
babelHelpers.temporalAssertDefined = function (val, name, undef) {
if (val === undef) {
throw new ReferenceError(name + " is not defined - temporal dead zone");
}
return true;
};
babelHelpers.selfGlobal = typeof global === "undefined" ? self : global;
babelHelpers.defaultProps = function (defaultProps, props) {
if (defaultProps) {
for (var propName in defaultProps) {
if (typeof props[propName] === "undefined") {
props[propName] = defaultProps[propName];
}
}
}
return props;
};
babelHelpers._instanceof = function (left, right) {
if (right != null && right[Symbol.hasInstance]) {
return right[Symbol.hasInstance](left);
} else {
return left instanceof right;
}
};
babelHelpers.interopRequire = function (obj) {
return obj && obj.__esModule ? obj["default"] : obj;
};
})(typeof global === "undefined" ? self : global);
|
'use strict';
exports.__esModule = true;
var _plugin = require('../plugin');
var _plugin2 = _interopRequireDefault(_plugin);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var targets = ['ie 5.5', 'ie 6', 'ie 7'];
exports.default = (0, _plugin2.default)(targets, ['decl'], function (decl) {
var match = decl.value.match(/!\w/);
if (match) {
var text = decl.value.substr(match.index, decl.value.length - 1);
this.push(decl, {
identifier: '!important',
hack: text
});
}
});
module.exports = exports['default'];
|
!function(e){"function"==typeof define&&define.amd?define(["../datepicker"],e):e(jQuery.datepicker)}(function(e){return e.regional.bs={closeText:"Zatvori",prevText:"<",nextText:">",currentText:"Danas",monthNames:["Januar","Februar","Mart","April","Maj","Juni","Juli","August","Septembar","Oktobar","Novembar","Decembar"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:["Nedelja","Ponedeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"],dayNamesShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayNamesMin:["Ne","Po","Ut","Sr","Če","Pe","Su"],weekHeader:"Wk",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.setDefaults(e.regional.bs),e.regional.bs});
|
describe('dropdown:', function() {
beforeEach(function() {
this.addMatchers({
// Place dropdown-specific matchers here...
});
var origFunc = $.fn.foundation;
spyOn($.fn, 'foundation').andCallFake(function() {
var result = origFunc.apply(this, arguments);
jasmine.Clock.tick(1000); // Let things settle...
return result;
});
});
describe('basic clearing', function() {
beforeEach(function() {
document.body.innerHTML = __html__['spec/dropdown/basic.html'];
});
it('is hidden on initialization', function() {
$(document).foundation();
expect($('#drop1').hasClass('open')).toBe(false);
expect($('#drop2').hasClass('open')).toBe(false);
expect($('#drop3').hasClass('open')).toBe(false);
expect($('#drop4').hasClass('open')).toBe(false);
});
it('displays the dropdown on click', function() {
$(document).foundation();
$('#drop1link').click();
expect($('#drop1').hasClass('open')).toBe(true);
expect($('#drop2').hasClass('open')).toBe(false);
expect($('#drop3').hasClass('open')).toBe(false);
expect($('#drop4').hasClass('open')).toBe(false);
});
it('displays the content dropdown on click', function() {
$(document).foundation();
$('#drop2link').click();
expect($('#drop1').hasClass('open')).toBe(false);
expect($('#drop2').hasClass('open')).toBe(true);
expect($('#drop3').hasClass('open')).toBe(false);
expect($('#drop4').hasClass('open')).toBe(false);
});
it('closes an open dropdown when another is clicked', function() {
$(document).foundation();
$('#drop1link').click();
$('#drop2link').click();
expect($('#drop1').hasClass('open')).toBe(false);
expect($('#drop2').hasClass('open')).toBe(true);
expect($('#drop3').hasClass('open')).toBe(false);
expect($('#drop4').hasClass('open')).toBe(false);
});
it('closes an open dropdown when the document is clicked elsewhere', function() {
$(document).foundation();
$('#drop1link').click();
$('body').click();
expect($('#drop1').hasClass('open')).toBe(false);
expect($('#drop2').hasClass('open')).toBe(false);
expect($('#drop3').hasClass('open')).toBe(false);
expect($('#drop4').hasClass('open')).toBe(false);
});
it('displays a dropdown even if the dropdown button has deeply nested content', function() {
$(document).foundation();
$('#drop3span').click();
expect($('#drop1').hasClass('open')).toBe(false);
expect($('#drop2').hasClass('open')).toBe(false);
expect($('#drop3').hasClass('open')).toBe(true);
expect($('#drop4').hasClass('open')).toBe(false);
});
it('does not display a disabled dropdown', function() {
$(document).foundation();
$('#drop4link').click();
expect($('#drop1').hasClass('open')).toBe(false);
expect($('#drop2').hasClass('open')).toBe(false);
expect($('#drop3').hasClass('open')).toBe(false);
expect($('#drop4').hasClass('open')).toBe(false);
});
});
});
|
/*!
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.5
*/
goog.provide('ngmaterial.components.tooltip');
goog.require('ngmaterial.components.panel');
goog.require('ngmaterial.core');
/**
* @ngdoc module
* @name material.components.tooltip
*/
MdTooltipDirective['$inject'] = ["$timeout", "$window", "$$rAF", "$document", "$interpolate", "$mdUtil", "$mdPanel", "$$mdTooltipRegistry"];
angular
.module('material.components.tooltip', [
'material.core',
'material.components.panel'
])
.directive('mdTooltip', MdTooltipDirective)
.service('$$mdTooltipRegistry', MdTooltipRegistry);
/**
* @ngdoc directive
* @name mdTooltip
* @module material.components.tooltip
* @description
* Tooltips are used to describe elements that are interactive and primarily
* graphical (not textual).
*
* Place a `<md-tooltip>` as a child of the element it describes.
*
* A tooltip will activate when the user hovers over, focuses, or touches the
* parent element.
*
* @usage
* <hljs lang="html">
* <md-button class="md-fab md-accent" aria-label="Play">
* <md-tooltip>Play Music</md-tooltip>
* <md-icon md-svg-src="img/icons/ic_play_arrow_24px.svg"></md-icon>
* </md-button>
* </hljs>
*
* @param {number=} md-z-index The visual level that the tooltip will appear
* in comparison with the rest of the elements of the application.
* @param {expression=} md-visible Boolean bound to whether the tooltip is
* currently visible.
* @param {number=} md-delay How many milliseconds to wait to show the tooltip
* after the user hovers over, focuses, or touches the parent element.
* Defaults to 0ms on non-touch devices and 75ms on touch.
* @param {boolean=} md-autohide If present or provided with a boolean value,
* the tooltip will hide on mouse leave, regardless of focus.
* @param {string=} md-direction The direction that the tooltip is shown,
* relative to the parent element. Supports top, right, bottom, and left.
* Defaults to bottom.
*/
function MdTooltipDirective($timeout, $window, $$rAF, $document, $interpolate,
$mdUtil, $mdPanel, $$mdTooltipRegistry) {
var ENTER_EVENTS = 'focus touchstart mouseenter';
var LEAVE_EVENTS = 'blur touchcancel mouseleave';
var TOOLTIP_DEFAULT_Z_INDEX = 100;
var TOOLTIP_DEFAULT_SHOW_DELAY = 0;
var TOOLTIP_DEFAULT_DIRECTION = 'bottom';
var TOOLTIP_DIRECTIONS = {
top: { x: $mdPanel.xPosition.CENTER, y: $mdPanel.yPosition.ABOVE },
right: { x: $mdPanel.xPosition.OFFSET_END, y: $mdPanel.yPosition.CENTER },
bottom: { x: $mdPanel.xPosition.CENTER, y: $mdPanel.yPosition.BELOW },
left: { x: $mdPanel.xPosition.OFFSET_START, y: $mdPanel.yPosition.CENTER }
};
return {
restrict: 'E',
priority: 210, // Before ngAria
scope: {
mdZIndex: '=?mdZIndex',
mdDelay: '=?mdDelay',
mdVisible: '=?mdVisible',
mdAutohide: '=?mdAutohide',
mdDirection: '@?mdDirection' // Do not expect expressions.
},
link: linkFunc
};
function linkFunc(scope, element, attr) {
// Set constants.
var tooltipId = 'md-tooltip-' + $mdUtil.nextUid();
var parent = $mdUtil.getParentWithPointerEvents(element);
var debouncedOnResize = $$rAF.throttle(updatePosition);
var mouseActive = false;
var origin, position, panelPosition, panelRef, autohide, showTimeout,
elementFocusedOnWindowBlur = null;
// Set defaults
setDefaults();
// Set parent aria-label.
addAriaLabel();
// Remove the element from its current DOM position.
element.detach();
updatePosition();
bindEvents();
configureWatchers();
function setDefaults() {
scope.mdZIndex = scope.mdZIndex || TOOLTIP_DEFAULT_Z_INDEX;
scope.mdDelay = scope.mdDelay || TOOLTIP_DEFAULT_SHOW_DELAY;
if (!TOOLTIP_DIRECTIONS[scope.mdDirection]) {
scope.mdDirection = TOOLTIP_DEFAULT_DIRECTION;
}
}
function addAriaLabel(labelText) {
// Only interpolate the text from the HTML element because otherwise the custom text could
// be interpolated twice and cause XSS violations.
var interpolatedText = labelText || $interpolate(element.text().trim())(scope.$parent);
// Only add the `aria-label` to the parent if there isn't already one, if there isn't an
// already present `aria-labelledby`, or if the previous `aria-label` was added by the
// tooltip directive.
if (
(!parent.attr('aria-label') && !parent.attr('aria-labelledby')) ||
parent.attr('md-labeled-by-tooltip')
) {
parent.attr('aria-label', interpolatedText);
// Set the `md-labeled-by-tooltip` attribute if it has not already been set.
if (!parent.attr('md-labeled-by-tooltip')) {
parent.attr('md-labeled-by-tooltip', tooltipId);
}
}
}
function updatePosition() {
setDefaults();
// If the panel has already been created, remove the current origin
// class from the panel element.
if (panelRef && panelRef.panelEl) {
panelRef.panelEl.removeClass(origin);
}
// Set the panel element origin class based off of the current
// mdDirection.
origin = 'md-origin-' + scope.mdDirection;
// Create the position of the panel based off of the mdDirection.
position = TOOLTIP_DIRECTIONS[scope.mdDirection];
// Using the newly created position object, use the MdPanel
// panelPosition API to build the panel's position.
panelPosition = $mdPanel.newPanelPosition()
.relativeTo(parent)
.addPanelPosition(position.x, position.y);
// If the panel has already been created, add the new origin class to
// the panel element and update it's position with the panelPosition.
if (panelRef && panelRef.panelEl) {
panelRef.panelEl.addClass(origin);
panelRef.updatePosition(panelPosition);
}
}
function bindEvents() {
// Add a mutationObserver where there is support for it and the need
// for it in the form of viable host(parent[0]).
if (parent[0] && 'MutationObserver' in $window) {
// Use a mutationObserver to tackle #2602.
var attributeObserver = new MutationObserver(function(mutations) {
if (isDisabledMutation(mutations)) {
$mdUtil.nextTick(function() {
setVisible(false);
});
}
});
attributeObserver.observe(parent[0], {
attributes: true
});
}
elementFocusedOnWindowBlur = false;
$$mdTooltipRegistry.register('scroll', windowScrollEventHandler, true);
$$mdTooltipRegistry.register('blur', windowBlurEventHandler);
$$mdTooltipRegistry.register('resize', debouncedOnResize);
scope.$on('$destroy', onDestroy);
// To avoid 'synthetic clicks', we listen to mousedown instead of
// 'click'.
parent.on('mousedown', mousedownEventHandler);
parent.on(ENTER_EVENTS, enterEventHandler);
function isDisabledMutation(mutations) {
mutations.some(function(mutation) {
return mutation.attributeName === 'disabled' && parent[0].disabled;
});
return false;
}
function windowScrollEventHandler() {
setVisible(false);
}
function windowBlurEventHandler() {
elementFocusedOnWindowBlur = document.activeElement === parent[0];
}
function enterEventHandler($event) {
// Prevent the tooltip from showing when the window is receiving
// focus.
if ($event.type === 'focus' && elementFocusedOnWindowBlur) {
elementFocusedOnWindowBlur = false;
} else if (!scope.mdVisible) {
parent.on(LEAVE_EVENTS, leaveEventHandler);
setVisible(true);
// If the user is on a touch device, we should bind the tap away
// after the 'touched' in order to prevent the tooltip being
// removed immediately.
if ($event.type === 'touchstart') {
parent.one('touchend', function() {
$mdUtil.nextTick(function() {
$document.one('touchend', leaveEventHandler);
}, false);
});
}
}
}
function leaveEventHandler() {
autohide = scope.hasOwnProperty('mdAutohide') ?
scope.mdAutohide :
attr.hasOwnProperty('mdAutohide');
if (autohide || mouseActive ||
$document[0].activeElement !== parent[0]) {
// When a show timeout is currently in progress, then we have
// to cancel it, otherwise the tooltip will remain showing
// without focus or hover.
if (showTimeout) {
$timeout.cancel(showTimeout);
setVisible.queued = false;
showTimeout = null;
}
parent.off(LEAVE_EVENTS, leaveEventHandler);
parent.triggerHandler('blur');
setVisible(false);
}
mouseActive = false;
}
function mousedownEventHandler() {
mouseActive = true;
}
function onDestroy() {
$$mdTooltipRegistry.deregister('scroll', windowScrollEventHandler, true);
$$mdTooltipRegistry.deregister('blur', windowBlurEventHandler);
$$mdTooltipRegistry.deregister('resize', debouncedOnResize);
parent
.off(ENTER_EVENTS, enterEventHandler)
.off(LEAVE_EVENTS, leaveEventHandler)
.off('mousedown', mousedownEventHandler);
// Trigger the handler in case any of the tooltips are
// still visible.
leaveEventHandler();
attributeObserver && attributeObserver.disconnect();
}
}
function configureWatchers() {
if (element[0] && 'MutationObserver' in $window) {
var attributeObserver = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if (mutation.attributeName === 'md-visible' &&
!scope.visibleWatcher ) {
scope.visibleWatcher = scope.$watch('mdVisible',
onVisibleChanged);
}
});
});
attributeObserver.observe(element[0], {
attributes: true
});
// Build watcher only if mdVisible is being used.
if (attr.hasOwnProperty('mdVisible')) {
scope.visibleWatcher = scope.$watch('mdVisible',
onVisibleChanged);
}
} else {
// MutationObserver not supported
scope.visibleWatcher = scope.$watch('mdVisible', onVisibleChanged);
}
// Direction watcher
scope.$watch('mdDirection', updatePosition);
// Clean up if the element or parent was removed via jqLite's .remove.
// A couple of notes:
// - In these cases the scope might not have been destroyed, which
// is why we destroy it manually. An example of this can be having
// `md-visible="false"` and adding tooltips while they're
// invisible. If `md-visible` becomes true, at some point, you'd
// usually get a lot of tooltips.
// - We use `.one`, not `.on`, because this only needs to fire once.
// If we were using `.on`, it would get thrown into an infinite
// loop.
// - This kicks off the scope's `$destroy` event which finishes the
// cleanup.
element.one('$destroy', onElementDestroy);
parent.one('$destroy', onElementDestroy);
scope.$on('$destroy', function() {
setVisible(false);
panelRef && panelRef.destroy();
attributeObserver && attributeObserver.disconnect();
element.remove();
});
// Updates the aria-label when the element text changes. This watch
// doesn't need to be set up if the element doesn't have any data
// bindings.
if (element.text().indexOf($interpolate.startSymbol()) > -1) {
scope.$watch(function() {
return element.text().trim();
}, addAriaLabel);
}
function onElementDestroy() {
scope.$destroy();
}
}
function setVisible(value) {
// Break if passed value is already in queue or there is no queue and
// passed value is current in the controller.
if (setVisible.queued && setVisible.value === !!value ||
!setVisible.queued && scope.mdVisible === !!value) {
return;
}
setVisible.value = !!value;
if (!setVisible.queued) {
if (value) {
setVisible.queued = true;
showTimeout = $timeout(function() {
scope.mdVisible = setVisible.value;
setVisible.queued = false;
showTimeout = null;
if (!scope.visibleWatcher) {
onVisibleChanged(scope.mdVisible);
}
}, scope.mdDelay);
} else {
$mdUtil.nextTick(function() {
scope.mdVisible = false;
if (!scope.visibleWatcher) {
onVisibleChanged(false);
}
});
}
}
}
function onVisibleChanged(isVisible) {
isVisible ? showTooltip() : hideTooltip();
}
function showTooltip() {
// Do not show the tooltip if the text is empty.
if (!element[0].textContent.trim()) {
throw new Error('Text for the tooltip has not been provided. ' +
'Please include text within the mdTooltip element.');
}
if (!panelRef) {
var attachTo = angular.element(document.body);
var panelAnimation = $mdPanel.newPanelAnimation()
.openFrom(parent)
.closeTo(parent)
.withAnimation({
open: 'md-show',
close: 'md-hide'
});
var panelConfig = {
id: tooltipId,
attachTo: attachTo,
contentElement: element,
propagateContainerEvents: true,
panelClass: 'md-tooltip ' + origin,
animation: panelAnimation,
position: panelPosition,
zIndex: scope.mdZIndex,
focusOnOpen: false
};
panelRef = $mdPanel.create(panelConfig);
}
panelRef.open().then(function() {
panelRef.panelEl.attr('role', 'tooltip');
});
}
function hideTooltip() {
panelRef && panelRef.close();
}
}
}
/**
* Service that is used to reduce the amount of listeners that are being
* registered on the `window` by the tooltip component. Works by collecting
* the individual event handlers and dispatching them from a global handler.
*
* ngInject
*/
function MdTooltipRegistry() {
var listeners = {};
var ngWindow = angular.element(window);
return {
register: register,
deregister: deregister
};
/**
* Global event handler that dispatches the registered handlers in the
* service.
* @param {!Event} event Event object passed in by the browser
*/
function globalEventHandler(event) {
if (listeners[event.type]) {
listeners[event.type].forEach(function(currentHandler) {
currentHandler.call(this, event);
}, this);
}
}
/**
* Registers a new handler with the service.
* @param {string} type Type of event to be registered.
* @param {!Function} handler Event handler.
* @param {boolean} useCapture Whether to use event capturing.
*/
function register(type, handler, useCapture) {
var handlers = listeners[type] = listeners[type] || [];
if (!handlers.length) {
useCapture ? window.addEventListener(type, globalEventHandler, true) :
ngWindow.on(type, globalEventHandler);
}
if (handlers.indexOf(handler) === -1) {
handlers.push(handler);
}
}
/**
* Removes an event handler from the service.
* @param {string} type Type of event handler.
* @param {!Function} handler The event handler itself.
* @param {boolean} useCapture Whether the event handler used event capturing.
*/
function deregister(type, handler, useCapture) {
var handlers = listeners[type];
var index = handlers ? handlers.indexOf(handler) : -1;
if (index > -1) {
handlers.splice(index, 1);
if (handlers.length === 0) {
useCapture ? window.removeEventListener(type, globalEventHandler, true) :
ngWindow.off(type, globalEventHandler);
}
}
}
}
ngmaterial.components.tooltip = angular.module("material.components.tooltip");
|
'use strict';
// See https://github.com/nodejs/node/issues/5927
const common = require('../common');
const assert = require('assert');
const spawn = require('child_process').spawn;
if (process.argv[2] === 'child') {
process.stdin.pipe(process.stdout);
return;
}
const child = spawn(process.execPath, [__filename, 'child'], { stdio: 'pipe' });
const expectedBytes = 1024 * 1024;
let readBytes = 0;
child.stdin.end(Buffer.alloc(expectedBytes));
child.stdout.on('data', (chunk) => readBytes += chunk.length);
child.stdout.on('end', common.mustCall(() => {
assert.strictEqual(readBytes, expectedBytes);
}));
|
(function () {
'use strict';
function usersHelperService(localizationService) {
var userStates = [
{ "name": "All", "key": "All"} ,
{ "value": 0, "name": "Active", "key": "Active", "color": "success" },
{ "value": 1, "name": "Disabled", "key": "Disabled", "color": "danger" },
{ "value": 2, "name": "Locked out", "key": "LockedOut", "color": "danger" },
{ "value": 3, "name": "Invited", "key": "Invited", "color": "warning" },
{ "value": 4, "name": "Inactive", "key": "Inactive", "color": "warning" }
];
localizationService.localizeMany(userStates.map(userState => "user_state" + userState.key))
.then(data => {
var reg = /^\[[\S\s]*]$/g;
data.forEach((value, index) => {
if (!reg.test(value)) {
// Only translate if key exists
userStates[index].name = value;
}
});
});
function getUserStateFromValue(value) {
return userStates.find(userState => userState.value === value);
}
function getUserStateByKey(key) {
return userStates.find(userState => userState.key === key);
}
function getUserStatesFilter(userStatesObject) {
var userStatesFilter = [];
for (var key in userStatesObject) {
if (hasOwnProperty.call(userStatesObject, key)) {
var userState = getUserStateByKey(key);
if(userState) {
userState.count = userStatesObject[key];
userStatesFilter.push(userState);
}
}
}
return userStatesFilter;
}
////////////
var service = {
getUserStateFromValue: getUserStateFromValue,
getUserStateByKey: getUserStateByKey,
getUserStatesFilter: getUserStatesFilter
};
return service;
}
angular.module('umbraco.services').factory('usersHelper', usersHelperService);
})();
|
/* ========================================================================
* Bootstrap (plugin): validator.js v0.6.0
* ========================================================================
* The MIT License (MIT)
*
* Copyright (c) 2013 Spiceworks, Inc.
* Made by Cina Saffary (@1000hz) in the style of Bootstrap 3 era @fat
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
* ======================================================================== */
+function ($) {
'use strict';
// VALIDATOR CLASS DEFINITION
// ==========================
var Validator = function (element, options) {
this.$element = $(element)
this.options = options
this.$element.attr('novalidate', true) // disable automatic native validation
this.toggleSubmit()
this.$element.on('input.bs.validator change.bs.validator focusout.bs.validator', $.proxy(this.validateInput, this))
this.$element.on('submit.bs.validator', $.proxy(this.onSubmit, this))
this.$element.find('[data-match]').each(function () {
var $this = $(this)
var target = $this.data('match')
$(target).on('input.bs.validator', function (e) {
$this.val() && $this.trigger('input')
})
})
}
Validator.DEFAULTS = {
delay: 500,
html: false,
errors: {
match: 'Does not match',
minlength: 'Not long enough'
}
}
Validator.VALIDATORS = {
native: function ($el) {
var el = $el[0]
return el.checkValidity ? el.checkValidity() : true
},
match: function ($el) {
var target = $el.data('match')
return !$el.val() || $el.val() === $(target).val()
},
minlength: function ($el) {
var minlength = $el.data('minlength')
return !$el.val() || $el.val().length >= minlength
}
}
Validator.prototype.validateInput = function (e) {
var $el = $(e.target)
var prevErrors = $el.data('bs.validator.errors')
var errors
if ($el.is('[type="radio"]')) $el = this.$element.find('input[name="' + $el.attr('name') + '"]')
this.$element.trigger(e = $.Event('validate.bs.validator', {relatedTarget: $el[0]}))
if (e.isDefaultPrevented()) return
var self = this
this.runValidators($el).done(function (errors) {
$el.data('bs.validator.errors', errors)
errors.length ? self.showErrors($el) : self.clearErrors($el)
if (!prevErrors || errors.toString() !== prevErrors.toString()) {
e = errors.length
? $.Event('invalid.bs.validator', {relatedTarget: $el[0], detail: errors})
: $.Event('valid.bs.validator', {relatedTarget: $el[0], detail: prevErrors})
self.$element.trigger(e)
}
self.toggleSubmit()
self.$element.trigger($.Event('validated.bs.validator', {relatedTarget: $el[0]}))
})
}
Validator.prototype.runValidators = function ($el) {
var errors = []
var validators = [Validator.VALIDATORS.native]
var deferred = $.Deferred()
var options = this.options
$el.data('bs.validator.deferred') && $el.data('bs.validator.deferred').reject()
$el.data('bs.validator.deferred', deferred)
function getErrorMessage(key) {
return $el.data(key + '-error')
|| $el.data('error')
|| key == 'native' && $el[0].validationMessage
|| options.errors[key]
}
$.each(Validator.VALIDATORS, $.proxy(function (key, validator) {
if (($el.data(key) || key == 'native') && !validator.call(this, $el)) {
var error = getErrorMessage(key)
!~errors.indexOf(error) && errors.push(error)
}
}, this))
if (!errors.length && $el.val() && $el.data('remote')) {
this.defer($el, function () {
$.get($el.data('remote'), [$el.attr('name'), $el.val()].join('='))
.fail(function (jqXHR, textStatus, error) { errors.push(getErrorMessage('remote') || error) })
.always(function () { deferred.resolve(errors)})
})
} else deferred.resolve(errors)
return deferred.promise()
}
Validator.prototype.validate = function () {
var delay = this.options.delay
this.options.delay = 0
this.$element.find(':input').trigger('input')
this.options.delay = delay
return this
}
Validator.prototype.showErrors = function ($el) {
var method = this.options.html ? 'html' : 'text'
this.defer($el, function () {
var $group = $el.closest('.form-group')
var $block = $group.find('.help-block.with-errors')
var errors = $el.data('bs.validator.errors')
if (!errors.length) return
errors = $('<ul/>')
.addClass('list-unstyled')
.append($.map(errors, function (error) { return $('<li/>')[method](error) }))
$block.data('bs.validator.originalContent') === undefined && $block.data('bs.validator.originalContent', $block.html())
$block.empty().append(errors)
$group.addClass('has-error')
})
}
Validator.prototype.clearErrors = function ($el) {
var $group = $el.closest('.form-group')
var $block = $group.find('.help-block.with-errors')
$block.html($block.data('bs.validator.originalContent'))
$group.removeClass('has-error')
}
Validator.prototype.hasErrors = function () {
function fieldErrors() {
return !!($(this).data('bs.validator.errors') || []).length
}
return !!this.$element.find(':input:enabled').filter(fieldErrors).length
}
Validator.prototype.isIncomplete = function () {
function fieldIncomplete() {
return this.type === 'checkbox' ? !this.checked :
this.type === 'radio' ? !$('[name="' + this.name + '"]:checked').length :
$.trim(this.value) === ''
}
return !!this.$element.find(':input[required]:enabled').filter(fieldIncomplete).length
}
Validator.prototype.onSubmit = function (e) {
this.validate()
if (this.isIncomplete() || this.hasErrors()) e.preventDefault()
}
Validator.prototype.toggleSubmit = function () {
var $btn = this.$element.find('input[type="submit"], button[type="submit"]')
$btn.toggleClass('disabled', this.isIncomplete() || this.hasErrors())
.css({'pointer-events': 'all', 'cursor': 'pointer'})
}
Validator.prototype.defer = function ($el, callback) {
if (!this.options.delay) return callback()
window.clearTimeout($el.data('bs.validator.timeout'))
$el.data('bs.validator.timeout', window.setTimeout(callback, this.options.delay))
}
Validator.prototype.destroy = function () {
this.$element
.removeAttr('novalidate')
.removeData('bs.validator')
.off('.bs.validator')
this.$element.find(':input')
.removeData(['bs.validator.errors', 'bs.validator.deferred', 'bs.validator.timeout'])
.off('.bs.validator')
this.$element.find('.help-block.with-errors').each(function () {
var $this = $(this)
var originalContent = $this.data('bs.validator.originalContent')
$this
.removeData('bs.validator.originalContent')
.html(originalContent)
})
this.$element.find('input[type="submit"], button[type="submit"]').removeClass('disabled')
this.$element.find('.has-error').removeClass('has-error')
return this
}
// VALIDATOR PLUGIN DEFINITION
// ===========================
function Plugin(option) {
return this.each(function () {
var $this = $(this)
var options = $.extend({}, Validator.DEFAULTS, $this.data(), typeof option == 'object' && option)
var data = $this.data('bs.validator')
if (!data && option == 'destroy') return
if (!data) $this.data('bs.validator', (data = new Validator(this, options)))
if (typeof option == 'string') data[option]()
})
}
var old = $.fn.validator
$.fn.validator = Plugin
$.fn.validator.Constructor = Validator
// VALIDATOR NO CONFLICT
// =====================
$.fn.validator.noConflict = function () {
$.fn.validator = old
return this
}
// VALIDATOR DATA-API
// ==================
$(window).on('load', function () {
$('form[data-toggle="validator"]').each(function () {
var $form = $(this)
Plugin.call($form, $form.data())
})
})
}(jQuery);
|
import { Matrix3 } from '../../math/Matrix3.js';
import { Plane } from '../../math/Plane.js';
function WebGLClipping( properties ) {
const scope = this;
let globalState = null,
numGlobalPlanes = 0,
localClippingEnabled = false,
renderingShadows = false;
const plane = new Plane(),
viewNormalMatrix = new Matrix3(),
uniform = { value: null, needsUpdate: false };
this.uniform = uniform;
this.numPlanes = 0;
this.numIntersection = 0;
this.init = function ( planes, enableLocalClipping, camera ) {
const enabled =
planes.length !== 0 ||
enableLocalClipping ||
// enable state of previous frame - the clipping code has to
// run another frame in order to reset the state:
numGlobalPlanes !== 0 ||
localClippingEnabled;
localClippingEnabled = enableLocalClipping;
globalState = projectPlanes( planes, camera, 0 );
numGlobalPlanes = planes.length;
return enabled;
};
this.beginShadows = function () {
renderingShadows = true;
projectPlanes( null );
};
this.endShadows = function () {
renderingShadows = false;
resetGlobalState();
};
this.setState = function ( material, camera, useCache ) {
const planes = material.clippingPlanes,
clipIntersection = material.clipIntersection,
clipShadows = material.clipShadows;
const materialProperties = properties.get( material );
if ( ! localClippingEnabled || planes === null || planes.length === 0 || renderingShadows && ! clipShadows ) {
// there's no local clipping
if ( renderingShadows ) {
// there's no global clipping
projectPlanes( null );
} else {
resetGlobalState();
}
} else {
const nGlobal = renderingShadows ? 0 : numGlobalPlanes,
lGlobal = nGlobal * 4;
let dstArray = materialProperties.clippingState || null;
uniform.value = dstArray; // ensure unique state
dstArray = projectPlanes( planes, camera, lGlobal, useCache );
for ( let i = 0; i !== lGlobal; ++ i ) {
dstArray[ i ] = globalState[ i ];
}
materialProperties.clippingState = dstArray;
this.numIntersection = clipIntersection ? this.numPlanes : 0;
this.numPlanes += nGlobal;
}
};
function resetGlobalState() {
if ( uniform.value !== globalState ) {
uniform.value = globalState;
uniform.needsUpdate = numGlobalPlanes > 0;
}
scope.numPlanes = numGlobalPlanes;
scope.numIntersection = 0;
}
function projectPlanes( planes, camera, dstOffset, skipTransform ) {
const nPlanes = planes !== null ? planes.length : 0;
let dstArray = null;
if ( nPlanes !== 0 ) {
dstArray = uniform.value;
if ( skipTransform !== true || dstArray === null ) {
const flatSize = dstOffset + nPlanes * 4,
viewMatrix = camera.matrixWorldInverse;
viewNormalMatrix.getNormalMatrix( viewMatrix );
if ( dstArray === null || dstArray.length < flatSize ) {
dstArray = new Float32Array( flatSize );
}
for ( let i = 0, i4 = dstOffset; i !== nPlanes; ++ i, i4 += 4 ) {
plane.copy( planes[ i ] ).applyMatrix4( viewMatrix, viewNormalMatrix );
plane.normal.toArray( dstArray, i4 );
dstArray[ i4 + 3 ] = plane.constant;
}
}
uniform.value = dstArray;
uniform.needsUpdate = true;
}
scope.numPlanes = nPlanes;
scope.numIntersection = 0;
return dstArray;
}
}
export { WebGLClipping };
|
var knwl = new Knwl();
var demo = {};
demo.resultBoxes = {};
demo.input = null;
demo.resultsDiv = null;
demo.setup = function() {
var resultsDiv = document.getElementById('results');
demo.resultsDiv = resultsDiv;
for (var el in demo.resultBoxes) {
if (demo.resultsDiv.contains(demo.resultBoxes[el])) {
demo.resultsDiv.removeChild(demo.resultBoxes[el]);
}
}
demo.resultBoxes = {};
demo.input = document.getElementById('input');
for (var key in knwl.plugins) {
var resultBox = document.createElement('div');
resultBox.setAttribute('class', 'resultBox');
resultBox.innerHTML += '<p class = "title">' + key + '</p>';
demo.resultBoxes[key] = resultBox;
resultsDiv.appendChild(resultBox);
}
};
demo.startParse = function() {
demo.parse();
};
demo.parse = function() {
demo.setup();
knwl.init(demo.input.value);
for (var parser in knwl.plugins) {
var data = knwl.get(parser);
for (var ii = 0; ii < data.length; ii++) {
var resultDiv = document.createElement('div');
resultDiv.setAttribute('class', 'result');
for (var key in data[ii]) {
if (key !== 'found') {
var p = document.createElement('p');
if (key !== 'preview') {
p.innerHTML = key + ': <span class = "val">' + data[ii][key] + '</span>';
} else {
p.innerHTML = data[ii][key];
p.setAttribute('class', 'preview');
}
resultDiv.appendChild(p);
}
}
demo.resultBoxes[parser].appendChild(resultDiv);
}
if (data.length === 0) {
demo.resultsDiv.removeChild(demo.resultBoxes[parser]);
}
}
};
window.onload = function() {
demo.setup();
if (localStorage.getItem('knwlDemoText') !== '')
demo.input.value = localStorage.getItem('knwlDemoText');
demo.input.onkeydown = function() {
setTimeout(function() {
localStorage.setItem('knwlDemoText', demo.input.value);
},10);
};
};
console.info('This is a demo of knwl.js using a few of the plugins available by default. Website: http://loadfive.com/os/knwl');
console.info('Feel free to use this demo to test your own Knwl.js parser plugins. Just add them to the header of index.html, and the demo will recognize them automatically.');
|
module.exports = function(old, cfg) {
var data = cfg;
if (data.clock) {
data.clock.showTenths = data.pref.clockTenths;
data.clock.showBar = data.pref.clockBar;
}
if (data.correspondence)
data.correspondence.showBar = data.pref.clockBar;
if (data.game.variant.key === 'horde')
data.pref.showCaptured = false;
return data;
};
|
/*!
* froala_editor v2.7.2 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms/
* Copyright 2014-2017 Froala Labs
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
// Node/CommonJS
module.exports = function( root, jQuery ) {
if ( jQuery === undefined ) {
// require('jQuery') returns a factory that requires window to
// build a jQuery instance, we normalize how we use modules
// that require this pattern but the window provided is a noop
// if it's defined (how jquery works)
if ( typeof window !== 'undefined' ) {
jQuery = require('jquery');
}
else {
jQuery = require('jquery')(root);
}
}
return factory(jQuery);
};
} else {
// Browser globals
factory(window.jQuery);
}
}(function ($) {
/**
* Ukrainian
*/
$.FE.LANGUAGE['uk'] = {
translation: {
// Place holder
"Type something": "\u041d\u0430\u043f\u0438\u0448\u0456\u0442\u044c \u0431\u0443\u0434\u044c-\u0449\u043e",
// Basic formatting
"Bold": "\u0416\u0438\u0440\u043d\u0438\u0439",
"Italic": "\u041a\u0443\u0440\u0441\u0438\u0432",
"Underline": "\u041f\u0456\u0434\u043a\u0440\u0435\u0441\u043b\u0435\u043d\u0438\u0439",
"Strikethrough": "\u0417\u0430\u043a\u0440\u0435\u0441\u043b\u0435\u043d\u0438\u0439",
// Main buttons
"Insert": "\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438",
"Delete": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438",
"Cancel": "\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438",
"OK": "OK",
"Back": "\u043d\u0430\u0437\u0430\u0434",
"Remove": "\u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438",
"More": "\u0431\u0456\u043b\u044c\u0448\u0435",
"Update": "\u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f",
"Style": "\u0441\u0442\u0438\u043b\u044c",
// Font
"Font Family": "\u0428\u0440\u0438\u0444\u0442",
"Font Size": "\u0420\u043e\u0437\u043c\u0456\u0440 \u0448\u0440\u0438\u0444\u0442\u0443",
// Colors
"Colors": "\u043a\u043e\u043b\u044c\u043e\u0440\u0438",
"Background": "\u0424\u043e\u043d",
"Text": "\u0422\u0435\u043a\u0441\u0442",
"HEX Color": "Шістнадцятковий колір",
// Paragraphs
"Paragraph Format": "\u0424\u043e\u0440\u043c\u0430\u0442",
"Normal": "\u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0438\u0439",
"Code": "\u041a\u043e\u0434",
"Heading 1": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 1",
"Heading 2": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 2",
"Heading 3": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 3",
"Heading 4": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 4",
// Style
"Paragraph Style": "\u043f\u0443\u043d\u043a\u0442 \u0441\u0442\u0438\u043b\u044c",
"Inline Style": "\u0432\u0431\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0439 \u0441\u0442\u0438\u043b\u044c",
// Alignment
"Align": "\u0412\u0438\u0440\u0456\u0432\u043d\u044e\u0432\u0430\u043d\u043d\u044f",
"Align Left": "\u041f\u043e \u043b\u0456\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e",
"Align Center": "\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443",
"Align Right": "\u041f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e",
"Align Justify": "\u041f\u043e \u0448\u0438\u0440\u0438\u043d\u0456",
"None": "\u043d\u0456",
// Lists
"Ordered List": "\u041d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a",
"Unordered List": "\u041c\u0430\u0440\u043a\u043e\u0432\u0430\u043d\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a",
// Indent
"Decrease Indent": "\u0417\u043c\u0435\u043d\u0448\u0438\u0442\u0438 \u0432\u0456\u0434\u0441\u0442\u0443\u043f",
"Increase Indent": "\u0417\u0431\u0456\u043b\u044c\u0448\u0438\u0442\u0438 \u0432\u0456\u0434\u0441\u0442\u0443\u043f",
// Links
"Insert Link": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f",
"Open in new tab": "\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0438 \u0432 \u043d\u043e\u0432\u0456\u0439 \u0432\u043a\u043b\u0430\u0434\u0446\u0456",
"Open Link": "\u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f",
"Edit Link": "\u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f",
"Unlink": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f",
"Choose Link": "\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f",
// Images
"Insert Image": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f",
"Upload Image": "\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f",
"By URL": "\u0437\u0430 URL",
"Browse": "\u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0430\u0442\u0438",
"Drop image": "\u041f\u0435\u0440\u0435\u043c\u0456\u0441\u0442\u0456\u0442\u044c \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0441\u044e\u0434\u0438",
"or click": "\u0430\u0431\u043e \u043d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c",
"Manage Images": "\u041a\u0435\u0440\u0443\u0432\u0430\u043d\u043d\u044f \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f\u043c\u0438",
"Loading": "\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f",
"Deleting": "\u0432\u0438\u0434\u0430\u043b\u0435\u043d\u043d\u044f",
"Tags": "\u043a\u043b\u044e\u0447\u043e\u0432\u0456 \u0441\u043b\u043e\u0432\u0430",
"Are you sure? Image will be deleted.": "\u0412\u0438 \u0432\u043f\u0435\u0432\u043d\u0435\u043d\u0456? \u0417\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0431\u0443\u0434\u0435 \u0432\u0438\u0434\u0430\u043b\u0435\u043d\u043e.",
"Replace": "\u0437\u0430\u043c\u0456\u043d\u044e\u0432\u0430\u0442\u0438",
"Uploading": "\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f",
"Loading image": "\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u044c",
"Display": "\u0434\u0438\u0441\u043f\u043b\u0435\u0439",
"Inline": "\u0412 \u043b\u0456\u043d\u0456\u044e",
"Break Text": "\u043f\u0435\u0440\u0435\u0440\u0432\u0430 \u0442\u0435\u043a\u0441\u0442",
"Alternate Text": "\u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u0438\u0439 \u0442\u0435\u043a\u0441\u0442",
"Change Size": "\u0437\u043c\u0456\u043d\u0438\u0442\u0438 \u0440\u043e\u0437\u043c\u0456\u0440",
"Width": "\u0428\u0438\u0440\u0438\u043d\u0430",
"Height": "\u0412\u0438\u0441\u043e\u0442\u0430",
"Something went wrong. Please try again.": "\u0429\u043e\u0441\u044c \u043f\u0456\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a. \u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430 \u0441\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437.",
"Image Caption": "Заголовок зображення",
"Advanced Edit": "Розширений редагування",
// Video
"Insert Video": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0432\u0456\u0434\u0435\u043e",
"Embedded Code": "\u0432\u0431\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0439 \u043a\u043e\u0434",
"Paste in a video URL": "Вставте в відео-URL",
"Drop video": "Падіння відео",
"Your browser does not support HTML5 video.": "Ваш браузер не підтримує відео html5.",
"Upload Video": "Завантажити відео",
// Tables
"Insert Table": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044e",
"Table Header": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446\u0456",
"Remove Table": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0456",
"Table Style": "\u0421\u0442\u0438\u043b\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0456",
"Horizontal Align": "\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0435 \u0432\u0438\u0440\u0456\u0432\u043d\u044e\u0432\u0430\u043d\u043d\u044f",
"Row": "\u0420\u044f\u0434\u043e\u043a",
"Insert row above": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439 \u0440\u044f\u0434\u043e\u043a \u0437\u0432\u0435\u0440\u0445\u0443",
"Insert row below": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439 \u0440\u044f\u0434\u043e\u043a \u0437\u043d\u0438\u0437\u0443",
"Delete row": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0440\u044f\u0434\u043e\u043a",
"Column": "\u0421\u0442\u043e\u0432\u043f\u0435\u0446\u044c",
"Insert column before": "\u0414\u043e\u0434\u0430\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c \u043b\u0456\u0432\u043e\u0440\u0443\u0447",
"Insert column after": "\u0414\u043e\u0434\u0430\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c \u043f\u0440\u0430\u0432\u043e\u0440\u0443\u0447",
"Delete column": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c",
"Cell": "\u041a\u043e\u043c\u0456\u0440\u043a\u0430",
"Merge cells": "\u041e\u0431'\u0454\u0434\u043d\u0430\u0442\u0438 \u043a\u043e\u043c\u0456\u0440\u043a\u0438",
"Horizontal split": "\u0420\u043e\u0437\u0434\u0456\u043b\u0438\u0442\u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e",
"Vertical split": "\u0420\u043e\u0437\u0434\u0456\u043b\u0438\u0442\u0438 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e",
"Cell Background": "\u0441\u0442\u0456\u043b\u044c\u043d\u0438\u043a\u043e\u0432\u0438\u0439 \u0444\u043e\u043d",
"Vertical Align": "\u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430 \u0432\u0438\u0440\u0456\u0432\u043d\u044e\u0432\u0430\u043d\u043d\u044f",
"Top": "\u0422\u043e\u043f",
"Middle": "\u0441\u0435\u0440\u0435\u0434\u043d\u0456\u0439",
"Bottom": "\u0434\u043d\u043e",
"Align Top": "\u0417\u0456\u0441\u0442\u0430\u0432\u0442\u0435 \u0432\u0435\u0440\u0445\u043d\u044e",
"Align Middle": "\u0432\u0438\u0440\u0456\u0432\u043d\u044f\u0442\u0438 \u043f\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0456",
"Align Bottom": "\u0417\u0456\u0441\u0442\u0430\u0432\u0442\u0435 \u043d\u0438\u0436\u043d\u044e",
"Cell Style": "\u0441\u0442\u0438\u043b\u044c \u043a\u043e\u043c\u0456\u0440\u043a\u0438",
// Files
"Upload File": "\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0444\u0430\u0439\u043b",
"Drop file": "\u041f\u0435\u0440\u0435\u043c\u0456\u0441\u0442\u0456\u0442\u044c \u0444\u0430\u0439\u043b \u0441\u044e\u0434\u0438",
// Emoticons
"Emoticons": "\u0441\u043c\u0430\u0439\u043b\u0438",
"Grinning face": "\u043f\u043e\u0441\u043c\u0456\u0445\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430",
"Grinning face with smiling eyes": "\u041f\u043e\u0441\u043c\u0456\u0445\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0443\u0441\u043c\u0456\u0445\u043d\u0435\u043d\u0438\u043c\u0438 \u043e\u0447\u0438\u043c\u0430",
"Face with tears of joy": "\u041e\u0431\u043b\u0438\u0447\u0447\u044f \u0437\u0456 \u0441\u043b\u044c\u043e\u0437\u0430\u043c\u0438 \u0440\u0430\u0434\u043e\u0441\u0442\u0456",
"Smiling face with open mouth": "\u0423\u0441\u043c\u0456\u0445\u043d\u0435\u043d\u0435 \u043e\u0431\u043b\u0438\u0447\u0447\u044f \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c",
"Smiling face with open mouth and smiling eyes": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c \u0456 ",
"Smiling face with open mouth and cold sweat": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c \u0456 ",
"Smiling face with open mouth and tightly-closed eyes": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c \u0456 \u0449\u0456\u043b\u044c\u043d\u043e \u0437\u0430\u043a\u0440\u0438\u0442\u0438\u043c\u0438 \u043e\u0447\u0438\u043c\u0430",
"Smiling face with halo": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0433\u0430\u043b\u043e",
"Smiling face with horns": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0440\u043e\u0433\u0430\u043c\u0438",
"Winking face": "\u043f\u0456\u0434\u043c\u043e\u0440\u0433\u0443\u044e\u0447\u0438 \u043e\u0441\u043e\u0431\u0430",
"Smiling face with smiling eyes": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0443\u0441\u043c\u0456\u0445\u043d\u0435\u043d\u0438\u043c\u0438 \u043e\u0447\u0438\u043c\u0430",
"Face savoring delicious food": "\u041e\u0441\u043e\u0431\u0430 \u0441\u043c\u0430\u043a\u0443\u044e\u0447\u0438 \u0441\u043c\u0430\u0447\u043d\u0443 \u0457\u0436\u0443",
"Relieved face": "\u0437\u0432\u0456\u043b\u044c\u043d\u0435\u043d\u043e \u043e\u0441\u043e\u0431\u0430",
"Smiling face with heart-shaped eyes": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0443 \u0444\u043e\u0440\u043c\u0456 \u0441\u0435\u0440\u0446\u044f \u043e\u0447\u0438\u043c\u0430",
"Smiling face with sunglasses": "\u0053\u006d\u0069\u006c\u0069\u006e\u0067 \u0066\u0061\u0063\u0065 \u0077\u0069\u0074\u0068 \u0073\u0075\u006e\u0067\u006c\u0061\u0073\u0073\u0065\u0073",
"Smirking face": "\u043f\u043e\u0441\u043c\u0456\u0445\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430",
"Neutral face": "\u0437\u0432\u0438\u0447\u0430\u0439\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430",
"Expressionless face": "\u043d\u0435\u0432\u0438\u0440\u0430\u0437\u043d\u0456 \u043e\u0431\u043b\u0438\u0447\u0447\u044f",
"Unamused face": "\u0055\u006e\u0061\u006d\u0075\u0073\u0065\u0064 \u043e\u0441\u043e\u0431\u0430",
"Face with cold sweat": "\u041e\u0441\u043e\u0431\u0430 \u0437 \u0445\u043e\u043b\u043e\u0434\u043d\u043e\u0433\u043e \u043f\u043e\u0442\u0443",
"Pensive face": "\u0437\u0430\u043c\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430",
"Confused face": "\u043f\u043b\u0443\u0442\u0430\u0442\u0438 \u043e\u0441\u043e\u0431\u0430",
"Confounded face": "\u043d\u0435\u0445\u0430\u0439 \u043f\u043e\u0441\u043e\u0440\u043e\u043c\u043b\u044f\u0442\u044c\u0441\u044f \u043e\u0441\u043e\u0431\u0430",
"Kissing face": "\u043f\u043e\u0446\u0456\u043b\u0443\u043d\u043a\u0438 \u043e\u0441\u043e\u0431\u0430",
"Face throwing a kiss": "\u041e\u0441\u043e\u0431\u0430 \u043a\u0438\u0434\u0430\u043b\u0438 \u043f\u043e\u0446\u0456\u043b\u0443\u043d\u043e\u043a",
"Kissing face with smiling eyes": "\u041f\u043e\u0446\u0456\u043b\u0443\u043d\u043a\u0438 \u043e\u0441\u043e\u0431\u0430 \u0437 \u0443\u0441\u043c\u0456\u0445\u043d\u0435\u043d\u0438\u043c\u0438 \u043e\u0447\u0438\u043c\u0430",
"Kissing face with closed eyes": "\u041f\u043e\u0446\u0456\u043b\u0443\u043d\u043a\u0438 \u043e\u0431\u043b\u0438\u0447\u0447\u044f \u0437 \u0437\u0430\u043f\u043b\u044e\u0449\u0435\u043d\u0438\u043c\u0438 \u043e\u0447\u0438\u043c\u0430",
"Face with stuck out tongue": "\u041e\u0431\u043b\u0438\u0447\u0447\u044f \u0437 \u0441\u0442\u0438\u0440\u0447\u0430\u043b\u0438 \u044f\u0437\u0438\u043a",
"Face with stuck out tongue and winking eye": "\u041e\u0431\u043b\u0438\u0447\u0447\u044f \u0437 \u0441\u0442\u0438\u0440\u0447\u0430\u043b\u0438 \u044f\u0437\u0438\u043a\u0430 \u0456 \u0410\u043d\u0456\u043c\u043e\u0432\u0430\u043d\u0435 \u043e\u0447\u0435\u0439",
"Face with stuck out tongue and tightly-closed eyes": "\u041e\u0431\u043b\u0438\u0447\u0447\u044f \u0437 \u0441\u0442\u0438\u0440\u0447\u0430\u043b\u0438 \u044f\u0437\u0438\u043a\u0430 \u0456 \u0449\u0456\u043b\u044c\u043d\u043e \u0437\u0430\u043a\u0440\u0438\u0442\u0456 \u043e\u0447\u0456",
"Disappointed face": "\u0440\u043e\u0437\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430",
"Worried face": "\u0441\u0442\u0443\u0440\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430",
"Angry face": "\u0437\u043b\u0438\u0439 \u043e\u0441\u043e\u0431\u0430",
"Pouting face": "\u043f\u0443\u0445\u043a\u0456 \u043e\u0441\u043e\u0431\u0430",
"Crying face": "\u043f\u043b\u0430\u0447 \u043e\u0441\u043e\u0431\u0430",
"Persevering face": "\u043d\u0430\u043f\u043e\u043b\u0435\u0433\u043b\u0438\u0432\u0430 \u043e\u0441\u043e\u0431\u0430",
"Face with look of triumph": "\u041e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0438\u0434\u043e\u043c \u0442\u0440\u0456\u0443\u043c\u0444\u0443",
"Disappointed but relieved face": "\u0420\u043e\u0437\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0439\u002c \u0430\u043b\u0435 \u0437\u0432\u0456\u043b\u044c\u043d\u0435\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430",
"Frowning face with open mouth": "\u041d\u0430\u0441\u0443\u043f\u0438\u0432\u0448\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c",
"Anguished face": "\u0431\u043e\u043b\u0456\u0441\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430",
"Fearful face": "\u043f\u043e\u0431\u043e\u044e\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430",
"Weary face": "\u0432\u0442\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430",
"Sleepy face": "сонне обличчя",
"Tired face": "\u0432\u0442\u043e\u043c\u0438\u043b\u0438\u0441\u044f \u043e\u0441\u043e\u0431\u0430",
"Grimacing face": "\u0433\u0440\u0438\u043c\u0430\u0441\u0443\u044e\u0447\u0438 \u043e\u0441\u043e\u0431\u0430",
"Loudly crying face": "\u004c\u006f\u0075\u0064\u006c\u0079 \u0063\u0072\u0079\u0069\u006e\u0067 \u0066\u0061\u0063\u0065",
"Face with open mouth": "\u041e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c",
"Hushed face": "\u0437\u0430\u0442\u0438\u0445 \u043e\u0441\u043e\u0431\u0430",
"Face with open mouth and cold sweat": "\u041e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c \u0456 \u0445\u043e\u043b\u043e\u0434\u043d\u0438\u0439 \u043f\u0456\u0442",
"Face screaming in fear": "\u041e\u0441\u043e\u0431\u0430 \u043a\u0440\u0438\u0447\u0430\u0442\u0438 \u0432 \u0441\u0442\u0440\u0430\u0445\u0443",
"Astonished face": "\u0437\u0434\u0438\u0432\u043e\u0432\u0430\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430",
"Flushed face": "\u043f\u0440\u0438\u043f\u043b\u0438\u0432 \u043a\u0440\u043e\u0432\u0456 \u0434\u043e \u043e\u0431\u043b\u0438\u0447\u0447\u044f",
"Sleeping face": "\u0421\u043f\u043b\u044f\u0447\u0430 \u043e\u0441\u043e\u0431\u0430",
"Dizzy face": "\u0414\u0456\u0437\u0437\u0456 \u043e\u0441\u043e\u0431\u0430",
"Face without mouth": "\u041e\u0441\u043e\u0431\u0430 \u0431\u0435\u0437 \u0440\u043e\u0442\u0430",
"Face with medical mask": "\u041e\u0441\u043e\u0431\u0430 \u0437 \u043c\u0435\u0434\u0438\u0447\u043d\u043e\u044e \u043c\u0430\u0441\u043a\u043e\u044e",
// Line breaker
"Break": "\u0437\u043b\u043e\u043c\u0438\u0442\u0438",
// Math
"Subscript": "\u043f\u0456\u0434\u0440\u044f\u0434\u043a\u043e\u0432\u0438\u0439",
"Superscript": "\u043d\u0430\u0434\u0440\u044f\u0434\u043a\u043e\u0432\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b",
// Full screen
"Fullscreen": "\u043f\u043e\u0432\u043d\u043e\u0435\u043a\u0440\u0430\u043d\u043d\u0438\u0439 \u0440\u0435\u0436\u0438\u043c",
// Horizontal line
"Insert Horizontal Line": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0443 \u043b\u0456\u043d\u0456\u044e",
// Clear formatting
"Clear Formatting": "\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0443\u0432\u0430\u043d\u043d\u044f",
// Undo, redo
"Undo": "\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438",
"Redo": "\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0438",
// Select all
"Select All": "\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0435",
// Code view
"Code View": "\u041f\u0435\u0440\u0435\u0433\u043b\u044f\u0434 \u043a\u043e\u0434\u0443",
// Quote
"Quote": "\u0426\u0438\u0442\u0430\u0442\u0430",
"Increase": "\u0417\u0431\u0456\u043b\u044c\u0448\u0438\u0442\u0438",
"Decrease": "\u0437\u043d\u0438\u0436\u0435\u043d\u043d\u044f",
// Quick Insert
"Quick Insert": "\u0428\u0432\u0438\u0434\u043a\u0438\u0439 \u0432\u0441\u0442\u0430\u0432\u043a\u0430",
// Spcial Characters
"Special Characters": "Спеціальні символи",
"Latin": "Латинський",
"Greek": "Грецький",
"Cyrillic": "Кирилиця",
"Punctuation": "Пунктуація",
"Currency": "Валюта",
"Arrows": "Стріли",
"Math": "Математика",
"Misc": "Різне",
// Print.
"Print": "Друкувати",
// Spell Checker.
"Spell Checker": "Перевірка орфографії",
// Help
"Help": "Допомогти",
"Shortcuts": "Ярлики",
"Inline Editor": "Вбудований редактор",
"Show the editor": "Показати редактору",
"Common actions": "Спільні дії",
"Copy": "Скопіювати",
"Cut": "Вирізати",
"Paste": "Вставити",
"Basic Formatting": "Основне форматування",
"Increase quote level": "Збільшити рівень цитування",
"Decrease quote level": "Знизити рівень цитування",
"Image / Video": "Зображення / відео",
"Resize larger": "Змінити розмір більше",
"Resize smaller": "Змінити розмір менше",
"Table": "Стіл",
"Select table cell": "Виберіть комірку таблиці",
"Extend selection one cell": "Продовжити виділення однієї комірки",
"Extend selection one row": "Продовжити виділення одного рядка",
"Navigation": "Навігація",
"Focus popup / toolbar": "Фокус спливаюче / панель інструментів",
"Return focus to previous position": "Поверніть фокус на попередню позицію",
// Embed.ly
"Embed URL": "Вставити URL-адресу",
"Paste in a URL to embed": "Вставте в url, щоб вставити",
// Word Paste.
"The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Вставлений вміст надходить з документу Microsoft Word. ви хочете зберегти формат чи очистити його?",
"Keep": "Тримати",
"Clean": "Чистий",
"Word Paste Detected": "Слово паста виявлено"
},
direction: "ltr"
};
}));
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "soy");
function MT(name) {test.mode(name, mode, Array.prototype.slice.call(arguments, 1));}
// Test of small keywords and words containing them.
MT('keywords-test',
'[keyword {] [keyword as] worrying [keyword and] notorious [keyword as]',
' the Fandor-alias assassin, [keyword or]',
' Corcand cannot fit [keyword in] [keyword }]');
MT('let-test',
'[keyword {template] [def .name][keyword }]',
' [keyword {let] [def $name]: [string "world"][keyword /}]',
' [tag&bracket <][tag h1][tag&bracket >]',
' Hello, [keyword {][variable-2 $name][keyword }]',
' [tag&bracket </][tag h1][tag&bracket >]',
'[keyword {/template}]',
'');
MT('param-type-test',
'[keyword {@param] [def a]: ' +
'[variable-3 list]<[[[variable-3 a]: [variable-3 int], ' +
'[variable-3 b]: [variable-3 map]<[variable-3 string], ' +
'[variable-3 bool]>]]>][keyword }]');
MT('undefined-var',
'[keyword {][variable-2&error $var]');
MT('param-scope-test',
'[keyword {template] [def .a][keyword }]',
' [keyword {@param] [def x]: [variable-3 string][keyword }]',
' [keyword {][variable-2 $x][keyword }]',
'[keyword {/template}]',
'',
'[keyword {template] [def .b][keyword }]',
' [keyword {][variable-2&error $x][keyword }]',
'[keyword {/template}]',
'');
MT('if-variable-test',
'[keyword {if] [variable-2&error $showThing][keyword }]',
' Yo!',
'[keyword {/if}]',
'');
MT('defined-if-variable-test',
'[keyword {template] [def .foo][keyword }]',
' [keyword {@param?] [def showThing]: [variable-3 bool][keyword }]',
' [keyword {if] [variable-2 $showThing][keyword }]',
' Yo!',
' [keyword {/if}]',
'[keyword {/template}]',
'');
MT('template-calls-test',
'[keyword {template] [def .foo][keyword }]',
' Yo!',
'[keyword {/template}]',
'[keyword {call] [variable-2 .foo][keyword /}]',
'[keyword {call] [variable foo][keyword /}]',
'[keyword {call] [variable .bar][keyword /}]',
'[keyword {call] [variable bar][keyword /}]',
'');
MT('foreach-scope-test',
'[keyword {@param] [def bar]: [variable-3 string][keyword }]',
'[keyword {foreach] [def $foo] [keyword in] [variable-2&error $foos][keyword }]',
' [keyword {][variable-2 $foo][keyword }]',
'[keyword {/foreach}]',
'[keyword {][variable-2&error $foo][keyword }]',
'[keyword {][variable-2 $bar][keyword }]');
MT('foreach-ifempty-indent-test',
'[keyword {foreach] [def $foo] [keyword in] [variable-2&error $foos][keyword }]',
' something',
'[keyword {ifempty}]',
' nothing',
'[keyword {/foreach}]',
'');
MT('nested-kind-test',
'[keyword {template] [def .foo] [attribute kind]=[string "html"][keyword }]',
' [tag&bracket <][tag div][tag&bracket >]',
' [keyword {call] [variable .bar][keyword }]',
' [keyword {param] [attribute kind]=[string "js"][keyword }]',
' [keyword var] [def bar] [operator =] [number 5];',
' [keyword {/param}]',
' [keyword {/call}]',
' [tag&bracket </][tag div][tag&bracket >]',
'[keyword {/template}]',
'');
MT('allow-missing-colon-in-@param',
'[keyword {template] [def .foo][keyword }]',
' [keyword {@param] [def showThing] [variable-3 bool][keyword }]',
' [keyword {if] [variable-2 $showThing][keyword }]',
' Yo!',
' [keyword {/if}]',
'[keyword {/template}]',
'');
})();
|
console.warn("warn -",`Imports like "const facebook = require('simple-icons/icons/facebook');" have been deprecated in v6.0.0 and will no longer work from v7.0.0, use "const { siFacebook } = require('simple-icons/icons');" instead`),module.exports={title:"Facebook",slug:"facebook",get svg(){return'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Facebook</title><path d="'+this.path+'"/></svg>'},path:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z",source:"https://en.facebookbrand.com/",hex:"1877F2",guidelines:void 0,license:void 0};
|
var en = {};
module["exports"] = en;
en.title = "English";
en.separator = " & ";
en.address = {
"city_prefix": [
"North",
"East",
"West",
"South",
"New",
"Lake",
"Port"
],
"city_suffix": [
"town",
"ton",
"land",
"ville",
"berg",
"burgh",
"borough",
"bury",
"view",
"port",
"mouth",
"stad",
"furt",
"chester",
"mouth",
"fort",
"haven",
"side",
"shire"
],
// TODO: get common County names in America and populate here
"county": [
"Avon",
"Bedfordshire",
"Berkshire",
"Borders",
"Buckinghamshire",
"Cambridgeshire"
],
"country": [
"Afghanistan",
"Albania",
"Algeria",
"American Samoa",
"Andorra",
"Angola",
"Anguilla",
"Antarctica (the territory South of 60 deg S)",
"Antigua and Barbuda",
"Argentina",
"Armenia",
"Aruba",
"Australia",
"Austria",
"Azerbaijan",
"Bahamas",
"Bahrain",
"Bangladesh",
"Barbados",
"Belarus",
"Belgium",
"Belize",
"Benin",
"Bermuda",
"Bhutan",
"Bolivia",
"Bosnia and Herzegovina",
"Botswana",
"Bouvet Island (Bouvetoya)",
"Brazil",
"British Indian Ocean Territory (Chagos Archipelago)",
"Brunei Darussalam",
"Bulgaria",
"Burkina Faso",
"Burundi",
"Cambodia",
"Cameroon",
"Canada",
"Cape Verde",
"Cayman Islands",
"Central African Republic",
"Chad",
"Chile",
"China",
"Christmas Island",
"Cocos (Keeling) Islands",
"Colombia",
"Comoros",
"Congo",
"Congo",
"Cook Islands",
"Costa Rica",
"Cote d'Ivoire",
"Croatia",
"Cuba",
"Cyprus",
"Czech Republic",
"Denmark",
"Djibouti",
"Dominica",
"Dominican Republic",
"Ecuador",
"Egypt",
"El Salvador",
"Equatorial Guinea",
"Eritrea",
"Estonia",
"Ethiopia",
"Faroe Islands",
"Falkland Islands (Malvinas)",
"Fiji",
"Finland",
"France",
"French Guiana",
"French Polynesia",
"French Southern Territories",
"Gabon",
"Gambia",
"Georgia",
"Germany",
"Ghana",
"Gibraltar",
"Greece",
"Greenland",
"Grenada",
"Guadeloupe",
"Guam",
"Guatemala",
"Guernsey",
"Guinea",
"Guinea-Bissau",
"Guyana",
"Haiti",
"Heard Island and McDonald Islands",
"Holy See (Vatican City State)",
"Honduras",
"Hong Kong",
"Hungary",
"Iceland",
"India",
"Indonesia",
"Iran",
"Iraq",
"Ireland",
"Isle of Man",
"Israel",
"Italy",
"Jamaica",
"Japan",
"Jersey",
"Jordan",
"Kazakhstan",
"Kenya",
"Kiribati",
"Democratic People's Republic of Korea",
"Republic of Korea",
"Kuwait",
"Kyrgyz Republic",
"Lao People's Democratic Republic",
"Latvia",
"Lebanon",
"Lesotho",
"Liberia",
"Libyan Arab Jamahiriya",
"Liechtenstein",
"Lithuania",
"Luxembourg",
"Macao",
"Macedonia",
"Madagascar",
"Malawi",
"Malaysia",
"Maldives",
"Mali",
"Malta",
"Marshall Islands",
"Martinique",
"Mauritania",
"Mauritius",
"Mayotte",
"Mexico",
"Micronesia",
"Moldova",
"Monaco",
"Mongolia",
"Montenegro",
"Montserrat",
"Morocco",
"Mozambique",
"Myanmar",
"Namibia",
"Nauru",
"Nepal",
"Netherlands Antilles",
"Netherlands",
"New Caledonia",
"New Zealand",
"Nicaragua",
"Niger",
"Nigeria",
"Niue",
"Norfolk Island",
"Northern Mariana Islands",
"Norway",
"Oman",
"Pakistan",
"Palau",
"Palestinian Territory",
"Panama",
"Papua New Guinea",
"Paraguay",
"Peru",
"Philippines",
"Pitcairn Islands",
"Poland",
"Portugal",
"Puerto Rico",
"Qatar",
"Reunion",
"Romania",
"Russian Federation",
"Rwanda",
"Saint Barthelemy",
"Saint Helena",
"Saint Kitts and Nevis",
"Saint Lucia",
"Saint Martin",
"Saint Pierre and Miquelon",
"Saint Vincent and the Grenadines",
"Samoa",
"San Marino",
"Sao Tome and Principe",
"Saudi Arabia",
"Senegal",
"Serbia",
"Seychelles",
"Sierra Leone",
"Singapore",
"Slovakia (Slovak Republic)",
"Slovenia",
"Solomon Islands",
"Somalia",
"South Africa",
"South Georgia and the South Sandwich Islands",
"Spain",
"Sri Lanka",
"Sudan",
"Suriname",
"Svalbard & Jan Mayen Islands",
"Swaziland",
"Sweden",
"Switzerland",
"Syrian Arab Republic",
"Taiwan",
"Tajikistan",
"Tanzania",
"Thailand",
"Timor-Leste",
"Togo",
"Tokelau",
"Tonga",
"Trinidad and Tobago",
"Tunisia",
"Turkey",
"Turkmenistan",
"Turks and Caicos Islands",
"Tuvalu",
"Uganda",
"Ukraine",
"United Arab Emirates",
"United Kingdom",
"United States of America",
"United States Minor Outlying Islands",
"Uruguay",
"Uzbekistan",
"Vanuatu",
"Venezuela",
"Vietnam",
"Virgin Islands, British",
"Virgin Islands, U.S.",
"Wallis and Futuna",
"Western Sahara",
"Yemen",
"Zambia",
"Zimbabwe"
],
"country_code": [
"AD",
"AE",
"AF",
"AG",
"AI",
"AL",
"AM",
"AO",
"AQ",
"AR",
"AS",
"AT",
"AU",
"AW",
"AX",
"AZ",
"BA",
"BB",
"BD",
"BE",
"BF",
"BG",
"BH",
"BI",
"BJ",
"BL",
"BM",
"BN",
"BO",
"BQ",
"BQ",
"BR",
"BS",
"BT",
"BV",
"BW",
"BY",
"BZ",
"CA",
"CC",
"CD",
"CF",
"CG",
"CH",
"CI",
"CK",
"CL",
"CM",
"CN",
"CO",
"CR",
"CU",
"CV",
"CW",
"CX",
"CY",
"CZ",
"DE",
"DJ",
"DK",
"DM",
"DO",
"DZ",
"EC",
"EE",
"EG",
"EH",
"ER",
"ES",
"ET",
"FI",
"FJ",
"FK",
"FM",
"FO",
"FR",
"GA",
"GB",
"GD",
"GE",
"GF",
"GG",
"GH",
"GI",
"GL",
"GM",
"GN",
"GP",
"GQ",
"GR",
"GS",
"GT",
"GU",
"GW",
"GY",
"HK",
"HM",
"HN",
"HR",
"HT",
"HU",
"ID",
"IE",
"IL",
"IM",
"IN",
"IO",
"IQ",
"IR",
"IS",
"IT",
"JE",
"JM",
"JO",
"JP",
"KE",
"KG",
"KH",
"KI",
"KM",
"KN",
"KP",
"KR",
"KW",
"KY",
"KZ",
"LA",
"LB",
"LC",
"LI",
"LK",
"LR",
"LS",
"LT",
"LU",
"LV",
"LY",
"MA",
"MC",
"MD",
"ME",
"MF",
"MG",
"MH",
"MK",
"ML",
"MM",
"MN",
"MO",
"MP",
"MQ",
"MR",
"MS",
"MT",
"MU",
"MV",
"MW",
"MX",
"MY",
"MZ",
"NA",
"NC",
"NE",
"NF",
"NG",
"NI",
"NL",
"NO",
"NP",
"NR",
"NU",
"NZ",
"OM",
"PA",
"PE",
"PF",
"PG",
"PH",
"PK",
"PL",
"PM",
"PN",
"PR",
"PS",
"PT",
"PW",
"PY",
"QA",
"RE",
"RO",
"RS",
"RU",
"RW",
"SA",
"SB",
"SC",
"SD",
"SE",
"SG",
"SH",
"SI",
"SJ",
"SK",
"SL",
"SM",
"SN",
"SO",
"SR",
"SS",
"ST",
"SV",
"SX",
"SY",
"SZ",
"TC",
"TD",
"TF",
"TG",
"TH",
"TJ",
"TK",
"TL",
"TM",
"TN",
"TO",
"TR",
"TT",
"TV",
"TW",
"TZ",
"UA",
"UG",
"UM",
"US",
"UY",
"UZ",
"VA",
"VC",
"VE",
"VG",
"VI",
"VN",
"VU",
"WF",
"WS",
"YE",
"YT",
"ZA",
"ZM",
"ZW"
],
"building_number": [
"#####",
"####",
"###"
],
"street_suffix": [
"Alley",
"Avenue",
"Branch",
"Bridge",
"Brook",
"Brooks",
"Burg",
"Burgs",
"Bypass",
"Camp",
"Canyon",
"Cape",
"Causeway",
"Center",
"Centers",
"Circle",
"Circles",
"Cliff",
"Cliffs",
"Club",
"Common",
"Corner",
"Corners",
"Course",
"Court",
"Courts",
"Cove",
"Coves",
"Creek",
"Crescent",
"Crest",
"Crossing",
"Crossroad",
"Curve",
"Dale",
"Dam",
"Divide",
"Drive",
"Drive",
"Drives",
"Estate",
"Estates",
"Expressway",
"Extension",
"Extensions",
"Fall",
"Falls",
"Ferry",
"Field",
"Fields",
"Flat",
"Flats",
"Ford",
"Fords",
"Forest",
"Forge",
"Forges",
"Fork",
"Forks",
"Fort",
"Freeway",
"Garden",
"Gardens",
"Gateway",
"Glen",
"Glens",
"Green",
"Greens",
"Grove",
"Groves",
"Harbor",
"Harbors",
"Haven",
"Heights",
"Highway",
"Hill",
"Hills",
"Hollow",
"Inlet",
"Inlet",
"Island",
"Island",
"Islands",
"Islands",
"Isle",
"Isle",
"Junction",
"Junctions",
"Key",
"Keys",
"Knoll",
"Knolls",
"Lake",
"Lakes",
"Land",
"Landing",
"Lane",
"Light",
"Lights",
"Loaf",
"Lock",
"Locks",
"Locks",
"Lodge",
"Lodge",
"Loop",
"Mall",
"Manor",
"Manors",
"Meadow",
"Meadows",
"Mews",
"Mill",
"Mills",
"Mission",
"Mission",
"Motorway",
"Mount",
"Mountain",
"Mountain",
"Mountains",
"Mountains",
"Neck",
"Orchard",
"Oval",
"Overpass",
"Park",
"Parks",
"Parkway",
"Parkways",
"Pass",
"Passage",
"Path",
"Pike",
"Pine",
"Pines",
"Place",
"Plain",
"Plains",
"Plains",
"Plaza",
"Plaza",
"Point",
"Points",
"Port",
"Port",
"Ports",
"Ports",
"Prairie",
"Prairie",
"Radial",
"Ramp",
"Ranch",
"Rapid",
"Rapids",
"Rest",
"Ridge",
"Ridges",
"River",
"Road",
"Road",
"Roads",
"Roads",
"Route",
"Row",
"Rue",
"Run",
"Shoal",
"Shoals",
"Shore",
"Shores",
"Skyway",
"Spring",
"Springs",
"Springs",
"Spur",
"Spurs",
"Square",
"Square",
"Squares",
"Squares",
"Station",
"Station",
"Stravenue",
"Stravenue",
"Stream",
"Stream",
"Street",
"Street",
"Streets",
"Summit",
"Summit",
"Terrace",
"Throughway",
"Trace",
"Track",
"Trafficway",
"Trail",
"Trail",
"Tunnel",
"Tunnel",
"Turnpike",
"Turnpike",
"Underpass",
"Union",
"Unions",
"Valley",
"Valleys",
"Via",
"Viaduct",
"View",
"Views",
"Village",
"Village",
"Villages",
"Ville",
"Vista",
"Vista",
"Walk",
"Walks",
"Wall",
"Way",
"Ways",
"Well",
"Wells"
],
"secondary_address": [
"Apt. ###",
"Suite ###"
],
"postcode": [
"#####",
"#####-####"
],
"postcode_by_state": [
"#####",
"#####-####"
],
"state": [
"Alabama",
"Alaska",
"Arizona",
"Arkansas",
"California",
"Colorado",
"Connecticut",
"Delaware",
"Florida",
"Georgia",
"Hawaii",
"Idaho",
"Illinois",
"Indiana",
"Iowa",
"Kansas",
"Kentucky",
"Louisiana",
"Maine",
"Maryland",
"Massachusetts",
"Michigan",
"Minnesota",
"Mississippi",
"Missouri",
"Montana",
"Nebraska",
"Nevada",
"New Hampshire",
"New Jersey",
"New Mexico",
"New York",
"North Carolina",
"North Dakota",
"Ohio",
"Oklahoma",
"Oregon",
"Pennsylvania",
"Rhode Island",
"South Carolina",
"South Dakota",
"Tennessee",
"Texas",
"Utah",
"Vermont",
"Virginia",
"Washington",
"West Virginia",
"Wisconsin",
"Wyoming"
],
"state_abbr": [
"AL",
"AK",
"AZ",
"AR",
"CA",
"CO",
"CT",
"DE",
"FL",
"GA",
"HI",
"ID",
"IL",
"IN",
"IA",
"KS",
"KY",
"LA",
"ME",
"MD",
"MA",
"MI",
"MN",
"MS",
"MO",
"MT",
"NE",
"NV",
"NH",
"NJ",
"NM",
"NY",
"NC",
"ND",
"OH",
"OK",
"OR",
"PA",
"RI",
"SC",
"SD",
"TN",
"TX",
"UT",
"VT",
"VA",
"WA",
"WV",
"WI",
"WY"
],
"time_zone": [
"Pacific/Midway",
"Pacific/Pago_Pago",
"Pacific/Honolulu",
"America/Juneau",
"America/Los_Angeles",
"America/Tijuana",
"America/Denver",
"America/Phoenix",
"America/Chihuahua",
"America/Mazatlan",
"America/Chicago",
"America/Regina",
"America/Mexico_City",
"America/Mexico_City",
"America/Monterrey",
"America/Guatemala",
"America/New_York",
"America/Indiana/Indianapolis",
"America/Bogota",
"America/Lima",
"America/Lima",
"America/Halifax",
"America/Caracas",
"America/La_Paz",
"America/Santiago",
"America/St_Johns",
"America/Sao_Paulo",
"America/Argentina/Buenos_Aires",
"America/Guyana",
"America/Godthab",
"Atlantic/South_Georgia",
"Atlantic/Azores",
"Atlantic/Cape_Verde",
"Europe/Dublin",
"Europe/London",
"Europe/Lisbon",
"Europe/London",
"Africa/Casablanca",
"Africa/Monrovia",
"Etc/UTC",
"Europe/Belgrade",
"Europe/Bratislava",
"Europe/Budapest",
"Europe/Ljubljana",
"Europe/Prague",
"Europe/Sarajevo",
"Europe/Skopje",
"Europe/Warsaw",
"Europe/Zagreb",
"Europe/Brussels",
"Europe/Copenhagen",
"Europe/Madrid",
"Europe/Paris",
"Europe/Amsterdam",
"Europe/Berlin",
"Europe/Berlin",
"Europe/Rome",
"Europe/Stockholm",
"Europe/Vienna",
"Africa/Algiers",
"Europe/Bucharest",
"Africa/Cairo",
"Europe/Helsinki",
"Europe/Kiev",
"Europe/Riga",
"Europe/Sofia",
"Europe/Tallinn",
"Europe/Vilnius",
"Europe/Athens",
"Europe/Istanbul",
"Europe/Minsk",
"Asia/Jerusalem",
"Africa/Harare",
"Africa/Johannesburg",
"Europe/Moscow",
"Europe/Moscow",
"Europe/Moscow",
"Asia/Kuwait",
"Asia/Riyadh",
"Africa/Nairobi",
"Asia/Baghdad",
"Asia/Tehran",
"Asia/Muscat",
"Asia/Muscat",
"Asia/Baku",
"Asia/Tbilisi",
"Asia/Yerevan",
"Asia/Kabul",
"Asia/Yekaterinburg",
"Asia/Karachi",
"Asia/Karachi",
"Asia/Tashkent",
"Asia/Kolkata",
"Asia/Kolkata",
"Asia/Kolkata",
"Asia/Kolkata",
"Asia/Kathmandu",
"Asia/Dhaka",
"Asia/Dhaka",
"Asia/Colombo",
"Asia/Almaty",
"Asia/Novosibirsk",
"Asia/Rangoon",
"Asia/Bangkok",
"Asia/Bangkok",
"Asia/Jakarta",
"Asia/Krasnoyarsk",
"Asia/Shanghai",
"Asia/Chongqing",
"Asia/Hong_Kong",
"Asia/Urumqi",
"Asia/Kuala_Lumpur",
"Asia/Singapore",
"Asia/Taipei",
"Australia/Perth",
"Asia/Irkutsk",
"Asia/Ulaanbaatar",
"Asia/Seoul",
"Asia/Tokyo",
"Asia/Tokyo",
"Asia/Tokyo",
"Asia/Yakutsk",
"Australia/Darwin",
"Australia/Adelaide",
"Australia/Melbourne",
"Australia/Melbourne",
"Australia/Sydney",
"Australia/Brisbane",
"Australia/Hobart",
"Asia/Vladivostok",
"Pacific/Guam",
"Pacific/Port_Moresby",
"Asia/Magadan",
"Asia/Magadan",
"Pacific/Noumea",
"Pacific/Fiji",
"Asia/Kamchatka",
"Pacific/Majuro",
"Pacific/Auckland",
"Pacific/Auckland",
"Pacific/Tongatapu",
"Pacific/Fakaofo",
"Pacific/Apia"
],
"city": [
"#{city_prefix} #{Name.first_name}#{city_suffix}",
"#{city_prefix} #{Name.first_name}",
"#{Name.first_name}#{city_suffix}",
"#{Name.last_name}#{city_suffix}"
],
"street_name": [
"#{Name.first_name} #{street_suffix}",
"#{Name.last_name} #{street_suffix}"
],
"street_address": [
"#{building_number} #{street_name}"
],
"default_country": [
"United States of America"
]
};
en.credit_card = {
"visa": [
"/4###########L/",
"/4###-####-####-###L/"
],
"mastercard": [
"/5[1-5]##-####-####-###L/",
"/6771-89##-####-###L/"
],
"discover": [
"/6011-####-####-###L/",
"/65##-####-####-###L/",
"/64[4-9]#-####-####-###L/",
"/6011-62##-####-####-###L/",
"/65##-62##-####-####-###L/",
"/64[4-9]#-62##-####-####-###L/"
],
"american_express": [
"/34##-######-####L/",
"/37##-######-####L/"
],
"diners_club": [
"/30[0-5]#-######-###L/",
"/368#-######-###L/"
],
"jcb": [
"/3528-####-####-###L/",
"/3529-####-####-###L/",
"/35[3-8]#-####-####-###L/"
],
"switch": [
"/6759-####-####-###L/",
"/6759-####-####-####-#L/",
"/6759-####-####-####-##L/"
],
"solo": [
"/6767-####-####-###L/",
"/6767-####-####-####-#L/",
"/6767-####-####-####-##L/"
],
"dankort": "/5019-####-####-###L/",
"maestro": [
"/50#{9,16}L/",
"/5[6-8]#{9,16}L/",
"/56##{9,16}L/"
],
"forbrugsforeningen": "/6007-22##-####-###L/",
"laser": [
"/6304###########L/",
"/6706###########L/",
"/6771###########L/",
"/6709###########L/",
"/6304#########{5,6}L/",
"/6706#########{5,6}L/",
"/6771#########{5,6}L/",
"/6709#########{5,6}L/"
]
};
en.company = {
"suffix": [
"Inc",
"and Sons",
"LLC",
"Group"
],
"adjective": [
"Adaptive",
"Advanced",
"Ameliorated",
"Assimilated",
"Automated",
"Balanced",
"Business-focused",
"Centralized",
"Cloned",
"Compatible",
"Configurable",
"Cross-group",
"Cross-platform",
"Customer-focused",
"Customizable",
"Decentralized",
"De-engineered",
"Devolved",
"Digitized",
"Distributed",
"Diverse",
"Down-sized",
"Enhanced",
"Enterprise-wide",
"Ergonomic",
"Exclusive",
"Expanded",
"Extended",
"Face to face",
"Focused",
"Front-line",
"Fully-configurable",
"Function-based",
"Fundamental",
"Future-proofed",
"Grass-roots",
"Horizontal",
"Implemented",
"Innovative",
"Integrated",
"Intuitive",
"Inverse",
"Managed",
"Mandatory",
"Monitored",
"Multi-channelled",
"Multi-lateral",
"Multi-layered",
"Multi-tiered",
"Networked",
"Object-based",
"Open-architected",
"Open-source",
"Operative",
"Optimized",
"Optional",
"Organic",
"Organized",
"Persevering",
"Persistent",
"Phased",
"Polarised",
"Pre-emptive",
"Proactive",
"Profit-focused",
"Profound",
"Programmable",
"Progressive",
"Public-key",
"Quality-focused",
"Reactive",
"Realigned",
"Re-contextualized",
"Re-engineered",
"Reduced",
"Reverse-engineered",
"Right-sized",
"Robust",
"Seamless",
"Secured",
"Self-enabling",
"Sharable",
"Stand-alone",
"Streamlined",
"Switchable",
"Synchronised",
"Synergistic",
"Synergized",
"Team-oriented",
"Total",
"Triple-buffered",
"Universal",
"Up-sized",
"Upgradable",
"User-centric",
"User-friendly",
"Versatile",
"Virtual",
"Visionary",
"Vision-oriented"
],
"descriptor": [
"24 hour",
"24/7",
"3rd generation",
"4th generation",
"5th generation",
"6th generation",
"actuating",
"analyzing",
"asymmetric",
"asynchronous",
"attitude-oriented",
"background",
"bandwidth-monitored",
"bi-directional",
"bifurcated",
"bottom-line",
"clear-thinking",
"client-driven",
"client-server",
"coherent",
"cohesive",
"composite",
"context-sensitive",
"contextually-based",
"content-based",
"dedicated",
"demand-driven",
"didactic",
"directional",
"discrete",
"disintermediate",
"dynamic",
"eco-centric",
"empowering",
"encompassing",
"even-keeled",
"executive",
"explicit",
"exuding",
"fault-tolerant",
"foreground",
"fresh-thinking",
"full-range",
"global",
"grid-enabled",
"heuristic",
"high-level",
"holistic",
"homogeneous",
"human-resource",
"hybrid",
"impactful",
"incremental",
"intangible",
"interactive",
"intermediate",
"leading edge",
"local",
"logistical",
"maximized",
"methodical",
"mission-critical",
"mobile",
"modular",
"motivating",
"multimedia",
"multi-state",
"multi-tasking",
"national",
"needs-based",
"neutral",
"next generation",
"non-volatile",
"object-oriented",
"optimal",
"optimizing",
"radical",
"real-time",
"reciprocal",
"regional",
"responsive",
"scalable",
"secondary",
"solution-oriented",
"stable",
"static",
"systematic",
"systemic",
"system-worthy",
"tangible",
"tertiary",
"transitional",
"uniform",
"upward-trending",
"user-facing",
"value-added",
"web-enabled",
"well-modulated",
"zero administration",
"zero defect",
"zero tolerance"
],
"noun": [
"ability",
"access",
"adapter",
"algorithm",
"alliance",
"analyzer",
"application",
"approach",
"architecture",
"archive",
"artificial intelligence",
"array",
"attitude",
"benchmark",
"budgetary management",
"capability",
"capacity",
"challenge",
"circuit",
"collaboration",
"complexity",
"concept",
"conglomeration",
"contingency",
"core",
"customer loyalty",
"database",
"data-warehouse",
"definition",
"emulation",
"encoding",
"encryption",
"extranet",
"firmware",
"flexibility",
"focus group",
"forecast",
"frame",
"framework",
"function",
"functionalities",
"Graphic Interface",
"groupware",
"Graphical User Interface",
"hardware",
"help-desk",
"hierarchy",
"hub",
"implementation",
"info-mediaries",
"infrastructure",
"initiative",
"installation",
"instruction set",
"interface",
"internet solution",
"intranet",
"knowledge user",
"knowledge base",
"local area network",
"leverage",
"matrices",
"matrix",
"methodology",
"middleware",
"migration",
"model",
"moderator",
"monitoring",
"moratorium",
"neural-net",
"open architecture",
"open system",
"orchestration",
"paradigm",
"parallelism",
"policy",
"portal",
"pricing structure",
"process improvement",
"product",
"productivity",
"project",
"projection",
"protocol",
"secured line",
"service-desk",
"software",
"solution",
"standardization",
"strategy",
"structure",
"success",
"superstructure",
"support",
"synergy",
"system engine",
"task-force",
"throughput",
"time-frame",
"toolset",
"utilisation",
"website",
"workforce"
],
"bs_verb": [
"implement",
"utilize",
"integrate",
"streamline",
"optimize",
"evolve",
"transform",
"embrace",
"enable",
"orchestrate",
"leverage",
"reinvent",
"aggregate",
"architect",
"enhance",
"incentivize",
"morph",
"empower",
"envisioneer",
"monetize",
"harness",
"facilitate",
"seize",
"disintermediate",
"synergize",
"strategize",
"deploy",
"brand",
"grow",
"target",
"syndicate",
"synthesize",
"deliver",
"mesh",
"incubate",
"engage",
"maximize",
"benchmark",
"expedite",
"reintermediate",
"whiteboard",
"visualize",
"repurpose",
"innovate",
"scale",
"unleash",
"drive",
"extend",
"engineer",
"revolutionize",
"generate",
"exploit",
"transition",
"e-enable",
"iterate",
"cultivate",
"matrix",
"productize",
"redefine",
"recontextualize"
],
"bs_adjective": [
"clicks-and-mortar",
"value-added",
"vertical",
"proactive",
"robust",
"revolutionary",
"scalable",
"leading-edge",
"innovative",
"intuitive",
"strategic",
"e-business",
"mission-critical",
"sticky",
"one-to-one",
"24/7",
"end-to-end",
"global",
"B2B",
"B2C",
"granular",
"frictionless",
"virtual",
"viral",
"dynamic",
"24/365",
"best-of-breed",
"killer",
"magnetic",
"bleeding-edge",
"web-enabled",
"interactive",
"dot-com",
"sexy",
"back-end",
"real-time",
"efficient",
"front-end",
"distributed",
"seamless",
"extensible",
"turn-key",
"world-class",
"open-source",
"cross-platform",
"cross-media",
"synergistic",
"bricks-and-clicks",
"out-of-the-box",
"enterprise",
"integrated",
"impactful",
"wireless",
"transparent",
"next-generation",
"cutting-edge",
"user-centric",
"visionary",
"customized",
"ubiquitous",
"plug-and-play",
"collaborative",
"compelling",
"holistic",
"rich"
],
"bs_noun": [
"synergies",
"web-readiness",
"paradigms",
"markets",
"partnerships",
"infrastructures",
"platforms",
"initiatives",
"channels",
"eyeballs",
"communities",
"ROI",
"solutions",
"e-tailers",
"e-services",
"action-items",
"portals",
"niches",
"technologies",
"content",
"vortals",
"supply-chains",
"convergence",
"relationships",
"architectures",
"interfaces",
"e-markets",
"e-commerce",
"systems",
"bandwidth",
"infomediaries",
"models",
"mindshare",
"deliverables",
"users",
"schemas",
"networks",
"applications",
"metrics",
"e-business",
"functionalities",
"experiences",
"web services",
"methodologies"
],
"name": [
"#{Name.last_name} #{suffix}",
"#{Name.last_name}-#{Name.last_name}",
"#{Name.last_name}, #{Name.last_name} and #{Name.last_name}"
]
};
en.internet = {
"free_email": [
"gmail.com",
"yahoo.com",
"hotmail.com"
],
"domain_suffix": [
"com",
"biz",
"info",
"name",
"net",
"org"
]
};
//All this avatar have been authorized by its awesome users to be use on live websites (not just mockups)
//For more information, please visit: http://uifaces.com/authorized
var avatarUri = ["jarjan/128.jpg",
"mahdif/128.jpg",
"sprayaga/128.jpg",
"ruzinav/128.jpg",
"Skyhartman/128.jpg",
"moscoz/128.jpg",
"kurafire/128.jpg",
"91bilal/128.jpg",
"igorgarybaldi/128.jpg",
"calebogden/128.jpg",
"malykhinv/128.jpg",
"joelhelin/128.jpg",
"kushsolitary/128.jpg",
"coreyweb/128.jpg",
"snowshade/128.jpg",
"areus/128.jpg",
"holdenweb/128.jpg",
"heyimjuani/128.jpg",
"envex/128.jpg",
"unterdreht/128.jpg",
"collegeman/128.jpg",
"peejfancher/128.jpg",
"andyisonline/128.jpg",
"ultragex/128.jpg",
"fuck_you_two/128.jpg",
"adellecharles/128.jpg",
"ateneupopular/128.jpg",
"ahmetalpbalkan/128.jpg",
"Stievius/128.jpg",
"kerem/128.jpg",
"osvaldas/128.jpg",
"angelceballos/128.jpg",
"thierrykoblentz/128.jpg",
"peterlandt/128.jpg",
"catarino/128.jpg",
"wr/128.jpg",
"weglov/128.jpg",
"brandclay/128.jpg",
"flame_kaizar/128.jpg",
"ahmetsulek/128.jpg",
"nicolasfolliot/128.jpg",
"jayrobinson/128.jpg",
"victorerixon/128.jpg",
"kolage/128.jpg",
"michzen/128.jpg",
"markjenkins/128.jpg",
"nicolai_larsen/128.jpg",
"gt/128.jpg",
"noxdzine/128.jpg",
"alagoon/128.jpg",
"idiot/128.jpg",
"mizko/128.jpg",
"chadengle/128.jpg",
"mutlu82/128.jpg",
"simobenso/128.jpg",
"vocino/128.jpg",
"guiiipontes/128.jpg",
"soyjavi/128.jpg",
"joshaustin/128.jpg",
"tomaslau/128.jpg",
"VinThomas/128.jpg",
"ManikRathee/128.jpg",
"langate/128.jpg",
"cemshid/128.jpg",
"leemunroe/128.jpg",
"_shahedk/128.jpg",
"enda/128.jpg",
"BillSKenney/128.jpg",
"divya/128.jpg",
"joshhemsley/128.jpg",
"sindresorhus/128.jpg",
"soffes/128.jpg",
"9lessons/128.jpg",
"linux29/128.jpg",
"Chakintosh/128.jpg",
"anaami/128.jpg",
"joreira/128.jpg",
"shadeed9/128.jpg",
"scottkclark/128.jpg",
"jedbridges/128.jpg",
"salleedesign/128.jpg",
"marakasina/128.jpg",
"ariil/128.jpg",
"BrianPurkiss/128.jpg",
"michaelmartinho/128.jpg",
"bublienko/128.jpg",
"devankoshal/128.jpg",
"ZacharyZorbas/128.jpg",
"timmillwood/128.jpg",
"joshuasortino/128.jpg",
"damenleeturks/128.jpg",
"tomas_janousek/128.jpg",
"herrhaase/128.jpg",
"RussellBishop/128.jpg",
"brajeshwar/128.jpg",
"nachtmeister/128.jpg",
"cbracco/128.jpg",
"bermonpainter/128.jpg",
"abdullindenis/128.jpg",
"isacosta/128.jpg",
"suprb/128.jpg",
"yalozhkin/128.jpg",
"chandlervdw/128.jpg",
"iamgarth/128.jpg",
"_victa/128.jpg",
"commadelimited/128.jpg",
"roybarberuk/128.jpg",
"axel/128.jpg",
"vladarbatov/128.jpg",
"ffbel/128.jpg",
"syropian/128.jpg",
"ankitind/128.jpg",
"traneblow/128.jpg",
"flashmurphy/128.jpg",
"ChrisFarina78/128.jpg",
"baliomega/128.jpg",
"saschamt/128.jpg",
"jm_denis/128.jpg",
"anoff/128.jpg",
"kennyadr/128.jpg",
"chatyrko/128.jpg",
"dingyi/128.jpg",
"mds/128.jpg",
"terryxlife/128.jpg",
"aaroni/128.jpg",
"kinday/128.jpg",
"prrstn/128.jpg",
"eduardostuart/128.jpg",
"dhilipsiva/128.jpg",
"GavicoInd/128.jpg",
"baires/128.jpg",
"rohixx/128.jpg",
"bigmancho/128.jpg",
"blakesimkins/128.jpg",
"leeiio/128.jpg",
"tjrus/128.jpg",
"uberschizo/128.jpg",
"kylefoundry/128.jpg",
"claudioguglieri/128.jpg",
"ripplemdk/128.jpg",
"exentrich/128.jpg",
"jakemoore/128.jpg",
"joaoedumedeiros/128.jpg",
"poormini/128.jpg",
"tereshenkov/128.jpg",
"keryilmaz/128.jpg",
"haydn_woods/128.jpg",
"rude/128.jpg",
"llun/128.jpg",
"sgaurav_baghel/128.jpg",
"jamiebrittain/128.jpg",
"badlittleduck/128.jpg",
"pifagor/128.jpg",
"agromov/128.jpg",
"benefritz/128.jpg",
"erwanhesry/128.jpg",
"diesellaws/128.jpg",
"jeremiaha/128.jpg",
"koridhandy/128.jpg",
"chaensel/128.jpg",
"andrewcohen/128.jpg",
"smaczny/128.jpg",
"gonzalorobaina/128.jpg",
"nandini_m/128.jpg",
"sydlawrence/128.jpg",
"cdharrison/128.jpg",
"tgerken/128.jpg",
"lewisainslie/128.jpg",
"charliecwaite/128.jpg",
"robbschiller/128.jpg",
"flexrs/128.jpg",
"mattdetails/128.jpg",
"raquelwilson/128.jpg",
"karsh/128.jpg",
"mrmartineau/128.jpg",
"opnsrce/128.jpg",
"hgharrygo/128.jpg",
"maximseshuk/128.jpg",
"uxalex/128.jpg",
"samihah/128.jpg",
"chanpory/128.jpg",
"sharvin/128.jpg",
"josemarques/128.jpg",
"jefffis/128.jpg",
"krystalfister/128.jpg",
"lokesh_coder/128.jpg",
"thedamianhdez/128.jpg",
"dpmachado/128.jpg",
"funwatercat/128.jpg",
"timothycd/128.jpg",
"ivanfilipovbg/128.jpg",
"picard102/128.jpg",
"marcobarbosa/128.jpg",
"krasnoukhov/128.jpg",
"g3d/128.jpg",
"ademilter/128.jpg",
"rickdt/128.jpg",
"operatino/128.jpg",
"bungiwan/128.jpg",
"hugomano/128.jpg",
"logorado/128.jpg",
"dc_user/128.jpg",
"horaciobella/128.jpg",
"SlaapMe/128.jpg",
"teeragit/128.jpg",
"iqonicd/128.jpg",
"ilya_pestov/128.jpg",
"andrewarrow/128.jpg",
"ssiskind/128.jpg",
"stan/128.jpg",
"HenryHoffman/128.jpg",
"rdsaunders/128.jpg",
"adamsxu/128.jpg",
"curiousoffice/128.jpg",
"themadray/128.jpg",
"michigangraham/128.jpg",
"kohette/128.jpg",
"nickfratter/128.jpg",
"runningskull/128.jpg",
"madysondesigns/128.jpg",
"brenton_clarke/128.jpg",
"jennyshen/128.jpg",
"bradenhamm/128.jpg",
"kurtinc/128.jpg",
"amanruzaini/128.jpg",
"coreyhaggard/128.jpg",
"Karimmove/128.jpg",
"aaronalfred/128.jpg",
"wtrsld/128.jpg",
"jitachi/128.jpg",
"therealmarvin/128.jpg",
"pmeissner/128.jpg",
"ooomz/128.jpg",
"chacky14/128.jpg",
"jesseddy/128.jpg",
"thinmatt/128.jpg",
"shanehudson/128.jpg",
"akmur/128.jpg",
"IsaryAmairani/128.jpg",
"arthurholcombe1/128.jpg",
"andychipster/128.jpg",
"boxmodel/128.jpg",
"ehsandiary/128.jpg",
"LucasPerdidao/128.jpg",
"shalt0ni/128.jpg",
"swaplord/128.jpg",
"kaelifa/128.jpg",
"plbabin/128.jpg",
"guillemboti/128.jpg",
"arindam_/128.jpg",
"renbyrd/128.jpg",
"thiagovernetti/128.jpg",
"jmillspaysbills/128.jpg",
"mikemai2awesome/128.jpg",
"jervo/128.jpg",
"mekal/128.jpg",
"sta1ex/128.jpg",
"robergd/128.jpg",
"felipecsl/128.jpg",
"andrea211087/128.jpg",
"garand/128.jpg",
"dhooyenga/128.jpg",
"abovefunction/128.jpg",
"pcridesagain/128.jpg",
"randomlies/128.jpg",
"BryanHorsey/128.jpg",
"heykenneth/128.jpg",
"dahparra/128.jpg",
"allthingssmitty/128.jpg",
"danvernon/128.jpg",
"beweinreich/128.jpg",
"increase/128.jpg",
"falvarad/128.jpg",
"alxndrustinov/128.jpg",
"souuf/128.jpg",
"orkuncaylar/128.jpg",
"AM_Kn2/128.jpg",
"gearpixels/128.jpg",
"bassamology/128.jpg",
"vimarethomas/128.jpg",
"kosmar/128.jpg",
"SULiik/128.jpg",
"mrjamesnoble/128.jpg",
"silvanmuhlemann/128.jpg",
"shaneIxD/128.jpg",
"nacho/128.jpg",
"yigitpinarbasi/128.jpg",
"buzzusborne/128.jpg",
"aaronkwhite/128.jpg",
"rmlewisuk/128.jpg",
"giancarlon/128.jpg",
"nbirckel/128.jpg",
"d_nny_m_cher/128.jpg",
"sdidonato/128.jpg",
"atariboy/128.jpg",
"abotap/128.jpg",
"karalek/128.jpg",
"psdesignuk/128.jpg",
"ludwiczakpawel/128.jpg",
"nemanjaivanovic/128.jpg",
"baluli/128.jpg",
"ahmadajmi/128.jpg",
"vovkasolovev/128.jpg",
"samgrover/128.jpg",
"derienzo777/128.jpg",
"jonathansimmons/128.jpg",
"nelsonjoyce/128.jpg",
"S0ufi4n3/128.jpg",
"xtopherpaul/128.jpg",
"oaktreemedia/128.jpg",
"nateschulte/128.jpg",
"findingjenny/128.jpg",
"namankreative/128.jpg",
"antonyzotov/128.jpg",
"we_social/128.jpg",
"leehambley/128.jpg",
"solid_color/128.jpg",
"abelcabans/128.jpg",
"mbilderbach/128.jpg",
"kkusaa/128.jpg",
"jordyvdboom/128.jpg",
"carlosgavina/128.jpg",
"pechkinator/128.jpg",
"vc27/128.jpg",
"rdbannon/128.jpg",
"croakx/128.jpg",
"suribbles/128.jpg",
"kerihenare/128.jpg",
"catadeleon/128.jpg",
"gcmorley/128.jpg",
"duivvv/128.jpg",
"saschadroste/128.jpg",
"victorDubugras/128.jpg",
"wintopia/128.jpg",
"mattbilotti/128.jpg",
"taylorling/128.jpg",
"megdraws/128.jpg",
"meln1ks/128.jpg",
"mahmoudmetwally/128.jpg",
"Silveredge9/128.jpg",
"derekebradley/128.jpg",
"happypeter1983/128.jpg",
"travis_arnold/128.jpg",
"artem_kostenko/128.jpg",
"adobi/128.jpg",
"daykiine/128.jpg",
"alek_djuric/128.jpg",
"scips/128.jpg",
"miguelmendes/128.jpg",
"justinrhee/128.jpg",
"alsobrooks/128.jpg",
"fronx/128.jpg",
"mcflydesign/128.jpg",
"santi_urso/128.jpg",
"allfordesign/128.jpg",
"stayuber/128.jpg",
"bertboerland/128.jpg",
"marosholly/128.jpg",
"adamnac/128.jpg",
"cynthiasavard/128.jpg",
"muringa/128.jpg",
"danro/128.jpg",
"hiemil/128.jpg",
"jackiesaik/128.jpg",
"zacsnider/128.jpg",
"iduuck/128.jpg",
"antjanus/128.jpg",
"aroon_sharma/128.jpg",
"dshster/128.jpg",
"thehacker/128.jpg",
"michaelbrooksjr/128.jpg",
"ryanmclaughlin/128.jpg",
"clubb3rry/128.jpg",
"taybenlor/128.jpg",
"xripunov/128.jpg",
"myastro/128.jpg",
"adityasutomo/128.jpg",
"digitalmaverick/128.jpg",
"hjartstrorn/128.jpg",
"itolmach/128.jpg",
"vaughanmoffitt/128.jpg",
"abdots/128.jpg",
"isnifer/128.jpg",
"sergeysafonov/128.jpg",
"maz/128.jpg",
"scrapdnb/128.jpg",
"chrismj83/128.jpg",
"vitorleal/128.jpg",
"sokaniwaal/128.jpg",
"zaki3d/128.jpg",
"illyzoren/128.jpg",
"mocabyte/128.jpg",
"osmanince/128.jpg",
"djsherman/128.jpg",
"davidhemphill/128.jpg",
"waghner/128.jpg",
"necodymiconer/128.jpg",
"praveen_vijaya/128.jpg",
"fabbrucci/128.jpg",
"cliffseal/128.jpg",
"travishines/128.jpg",
"kuldarkalvik/128.jpg",
"Elt_n/128.jpg",
"phillapier/128.jpg",
"okseanjay/128.jpg",
"id835559/128.jpg",
"kudretkeskin/128.jpg",
"anjhero/128.jpg",
"duck4fuck/128.jpg",
"scott_riley/128.jpg",
"noufalibrahim/128.jpg",
"h1brd/128.jpg",
"borges_marcos/128.jpg",
"devinhalladay/128.jpg",
"ciaranr/128.jpg",
"stefooo/128.jpg",
"mikebeecham/128.jpg",
"tonymillion/128.jpg",
"joshuaraichur/128.jpg",
"irae/128.jpg",
"petrangr/128.jpg",
"dmitriychuta/128.jpg",
"charliegann/128.jpg",
"arashmanteghi/128.jpg",
"adhamdannaway/128.jpg",
"ainsleywagon/128.jpg",
"svenlen/128.jpg",
"faisalabid/128.jpg",
"beshur/128.jpg",
"carlyson/128.jpg",
"dutchnadia/128.jpg",
"teddyzetterlund/128.jpg",
"samuelkraft/128.jpg",
"aoimedia/128.jpg",
"toddrew/128.jpg",
"codepoet_ru/128.jpg",
"artvavs/128.jpg",
"benoitboucart/128.jpg",
"jomarmen/128.jpg",
"kolmarlopez/128.jpg",
"creartinc/128.jpg",
"homka/128.jpg",
"gaborenton/128.jpg",
"robinclediere/128.jpg",
"maximsorokin/128.jpg",
"plasticine/128.jpg",
"j2deme/128.jpg",
"peachananr/128.jpg",
"kapaluccio/128.jpg",
"de_ascanio/128.jpg",
"rikas/128.jpg",
"dawidwu/128.jpg",
"marcoramires/128.jpg",
"angelcreative/128.jpg",
"rpatey/128.jpg",
"popey/128.jpg",
"rehatkathuria/128.jpg",
"the_purplebunny/128.jpg",
"1markiz/128.jpg",
"ajaxy_ru/128.jpg",
"brenmurrell/128.jpg",
"dudestein/128.jpg",
"oskarlevinson/128.jpg",
"victorstuber/128.jpg",
"nehfy/128.jpg",
"vicivadeline/128.jpg",
"leandrovaranda/128.jpg",
"scottgallant/128.jpg",
"victor_haydin/128.jpg",
"sawrb/128.jpg",
"ryhanhassan/128.jpg",
"amayvs/128.jpg",
"a_brixen/128.jpg",
"karolkrakowiak_/128.jpg",
"herkulano/128.jpg",
"geran7/128.jpg",
"cggaurav/128.jpg",
"chris_witko/128.jpg",
"lososina/128.jpg",
"polarity/128.jpg",
"mattlat/128.jpg",
"brandonburke/128.jpg",
"constantx/128.jpg",
"teylorfeliz/128.jpg",
"craigelimeliah/128.jpg",
"rachelreveley/128.jpg",
"reabo101/128.jpg",
"rahmeen/128.jpg",
"ky/128.jpg",
"rickyyean/128.jpg",
"j04ntoh/128.jpg",
"spbroma/128.jpg",
"sebashton/128.jpg",
"jpenico/128.jpg",
"francis_vega/128.jpg",
"oktayelipek/128.jpg",
"kikillo/128.jpg",
"fabbianz/128.jpg",
"larrygerard/128.jpg",
"BroumiYoussef/128.jpg",
"0therplanet/128.jpg",
"mbilalsiddique1/128.jpg",
"ionuss/128.jpg",
"grrr_nl/128.jpg",
"liminha/128.jpg",
"rawdiggie/128.jpg",
"ryandownie/128.jpg",
"sethlouey/128.jpg",
"pixage/128.jpg",
"arpitnj/128.jpg",
"switmer777/128.jpg",
"josevnclch/128.jpg",
"kanickairaj/128.jpg",
"puzik/128.jpg",
"tbakdesigns/128.jpg",
"besbujupi/128.jpg",
"supjoey/128.jpg",
"lowie/128.jpg",
"linkibol/128.jpg",
"balintorosz/128.jpg",
"imcoding/128.jpg",
"agustincruiz/128.jpg",
"gusoto/128.jpg",
"thomasschrijer/128.jpg",
"superoutman/128.jpg",
"kalmerrautam/128.jpg",
"gabrielizalo/128.jpg",
"gojeanyn/128.jpg",
"davidbaldie/128.jpg",
"_vojto/128.jpg",
"laurengray/128.jpg",
"jydesign/128.jpg",
"mymyboy/128.jpg",
"nellleo/128.jpg",
"marciotoledo/128.jpg",
"ninjad3m0/128.jpg",
"to_soham/128.jpg",
"hasslunsford/128.jpg",
"muridrahhal/128.jpg",
"levisan/128.jpg",
"grahamkennery/128.jpg",
"lepetitogre/128.jpg",
"antongenkin/128.jpg",
"nessoila/128.jpg",
"amandabuzard/128.jpg",
"safrankov/128.jpg",
"cocolero/128.jpg",
"dss49/128.jpg",
"matt3224/128.jpg",
"bluesix/128.jpg",
"quailandquasar/128.jpg",
"AlbertoCococi/128.jpg",
"lepinski/128.jpg",
"sementiy/128.jpg",
"mhudobivnik/128.jpg",
"thibaut_re/128.jpg",
"olgary/128.jpg",
"shojberg/128.jpg",
"mtolokonnikov/128.jpg",
"bereto/128.jpg",
"naupintos/128.jpg",
"wegotvices/128.jpg",
"xadhix/128.jpg",
"macxim/128.jpg",
"rodnylobos/128.jpg",
"madcampos/128.jpg",
"madebyvadim/128.jpg",
"bartoszdawydzik/128.jpg",
"supervova/128.jpg",
"markretzloff/128.jpg",
"vonachoo/128.jpg",
"darylws/128.jpg",
"stevedesigner/128.jpg",
"mylesb/128.jpg",
"herbigt/128.jpg",
"depaulawagner/128.jpg",
"geshan/128.jpg",
"gizmeedevil1991/128.jpg",
"_scottburgess/128.jpg",
"lisovsky/128.jpg",
"davidsasda/128.jpg",
"artd_sign/128.jpg",
"YoungCutlass/128.jpg",
"mgonto/128.jpg",
"itstotallyamy/128.jpg",
"victorquinn/128.jpg",
"osmond/128.jpg",
"oksanafrewer/128.jpg",
"zauerkraut/128.jpg",
"iamkeithmason/128.jpg",
"nitinhayaran/128.jpg",
"lmjabreu/128.jpg",
"mandalareopens/128.jpg",
"thinkleft/128.jpg",
"ponchomendivil/128.jpg",
"juamperro/128.jpg",
"brunodesign1206/128.jpg",
"caseycavanagh/128.jpg",
"luxe/128.jpg",
"dotgridline/128.jpg",
"spedwig/128.jpg",
"madewulf/128.jpg",
"mattsapii/128.jpg",
"helderleal/128.jpg",
"chrisstumph/128.jpg",
"jayphen/128.jpg",
"nsamoylov/128.jpg",
"chrisvanderkooi/128.jpg",
"justme_timothyg/128.jpg",
"otozk/128.jpg",
"prinzadi/128.jpg",
"gu5taf/128.jpg",
"cyril_gaillard/128.jpg",
"d_kobelyatsky/128.jpg",
"daniloc/128.jpg",
"nwdsha/128.jpg",
"romanbulah/128.jpg",
"skkirilov/128.jpg",
"dvdwinden/128.jpg",
"dannol/128.jpg",
"thekevinjones/128.jpg",
"jwalter14/128.jpg",
"timgthomas/128.jpg",
"buddhasource/128.jpg",
"uxpiper/128.jpg",
"thatonetommy/128.jpg",
"diansigitp/128.jpg",
"adrienths/128.jpg",
"klimmka/128.jpg",
"gkaam/128.jpg",
"derekcramer/128.jpg",
"jennyyo/128.jpg",
"nerrsoft/128.jpg",
"xalionmalik/128.jpg",
"edhenderson/128.jpg",
"keyuri85/128.jpg",
"roxanejammet/128.jpg",
"kimcool/128.jpg",
"edkf/128.jpg",
"matkins/128.jpg",
"alessandroribe/128.jpg",
"jacksonlatka/128.jpg",
"lebronjennan/128.jpg",
"kostaspt/128.jpg",
"karlkanall/128.jpg",
"moynihan/128.jpg",
"danpliego/128.jpg",
"saulihirvi/128.jpg",
"wesleytrankin/128.jpg",
"fjaguero/128.jpg",
"bowbrick/128.jpg",
"mashaaaaal/128.jpg",
"yassiryahya/128.jpg",
"dparrelli/128.jpg",
"fotomagin/128.jpg",
"aka_james/128.jpg",
"denisepires/128.jpg",
"iqbalperkasa/128.jpg",
"martinansty/128.jpg",
"jarsen/128.jpg",
"r_oy/128.jpg",
"justinrob/128.jpg",
"gabrielrosser/128.jpg",
"malgordon/128.jpg",
"carlfairclough/128.jpg",
"michaelabehsera/128.jpg",
"pierrestoffe/128.jpg",
"enjoythetau/128.jpg",
"loganjlambert/128.jpg",
"rpeezy/128.jpg",
"coreyginnivan/128.jpg",
"michalhron/128.jpg",
"msveet/128.jpg",
"lingeswaran/128.jpg",
"kolsvein/128.jpg",
"peter576/128.jpg",
"reideiredale/128.jpg",
"joeymurdah/128.jpg",
"raphaelnikson/128.jpg",
"mvdheuvel/128.jpg",
"maxlinderman/128.jpg",
"jimmuirhead/128.jpg",
"begreative/128.jpg",
"frankiefreesbie/128.jpg",
"robturlinckx/128.jpg",
"Talbi_ConSept/128.jpg",
"longlivemyword/128.jpg",
"vanchesz/128.jpg",
"maiklam/128.jpg",
"hermanobrother/128.jpg",
"rez___a/128.jpg",
"gregsqueeb/128.jpg",
"greenbes/128.jpg",
"_ragzor/128.jpg",
"anthonysukow/128.jpg",
"fluidbrush/128.jpg",
"dactrtr/128.jpg",
"jehnglynn/128.jpg",
"bergmartin/128.jpg",
"hugocornejo/128.jpg",
"_kkga/128.jpg",
"dzantievm/128.jpg",
"sawalazar/128.jpg",
"sovesove/128.jpg",
"jonsgotwood/128.jpg",
"byryan/128.jpg",
"vytautas_a/128.jpg",
"mizhgan/128.jpg",
"cicerobr/128.jpg",
"nilshelmersson/128.jpg",
"d33pthought/128.jpg",
"davecraige/128.jpg",
"nckjrvs/128.jpg",
"alexandermayes/128.jpg",
"jcubic/128.jpg",
"craigrcoles/128.jpg",
"bagawarman/128.jpg",
"rob_thomas10/128.jpg",
"cofla/128.jpg",
"maikelk/128.jpg",
"rtgibbons/128.jpg",
"russell_baylis/128.jpg",
"mhesslow/128.jpg",
"codysanfilippo/128.jpg",
"webtanya/128.jpg",
"madebybrenton/128.jpg",
"dcalonaci/128.jpg",
"perfectflow/128.jpg",
"jjsiii/128.jpg",
"saarabpreet/128.jpg",
"kumarrajan12123/128.jpg",
"iamsteffen/128.jpg",
"themikenagle/128.jpg",
"ceekaytweet/128.jpg",
"larrybolt/128.jpg",
"conspirator/128.jpg",
"dallasbpeters/128.jpg",
"n3dmax/128.jpg",
"terpimost/128.jpg",
"kirillz/128.jpg",
"byrnecore/128.jpg",
"j_drake_/128.jpg",
"calebjoyce/128.jpg",
"russoedu/128.jpg",
"hoangloi/128.jpg",
"tobysaxon/128.jpg",
"gofrasdesign/128.jpg",
"dimaposnyy/128.jpg",
"tjisousa/128.jpg",
"okandungel/128.jpg",
"billyroshan/128.jpg",
"oskamaya/128.jpg",
"motionthinks/128.jpg",
"knilob/128.jpg",
"ashocka18/128.jpg",
"marrimo/128.jpg",
"bartjo/128.jpg",
"omnizya/128.jpg",
"ernestsemerda/128.jpg",
"andreas_pr/128.jpg",
"edgarchris99/128.jpg",
"thomasgeisen/128.jpg",
"gseguin/128.jpg",
"joannefournier/128.jpg",
"demersdesigns/128.jpg",
"adammarsbar/128.jpg",
"nasirwd/128.jpg",
"n_tassone/128.jpg",
"javorszky/128.jpg",
"themrdave/128.jpg",
"yecidsm/128.jpg",
"nicollerich/128.jpg",
"canapud/128.jpg",
"nicoleglynn/128.jpg",
"judzhin_miles/128.jpg",
"designervzm/128.jpg",
"kianoshp/128.jpg",
"evandrix/128.jpg",
"alterchuca/128.jpg",
"dhrubo/128.jpg",
"ma_tiax/128.jpg",
"ssbb_me/128.jpg",
"dorphern/128.jpg",
"mauriolg/128.jpg",
"bruno_mart/128.jpg",
"mactopus/128.jpg",
"the_winslet/128.jpg",
"joemdesign/128.jpg",
"Shriiiiimp/128.jpg",
"jacobbennett/128.jpg",
"nfedoroff/128.jpg",
"iamglimy/128.jpg",
"allagringaus/128.jpg",
"aiiaiiaii/128.jpg",
"olaolusoga/128.jpg",
"buryaknick/128.jpg",
"wim1k/128.jpg",
"nicklacke/128.jpg",
"a1chapone/128.jpg",
"steynviljoen/128.jpg",
"strikewan/128.jpg",
"ryankirkman/128.jpg",
"andrewabogado/128.jpg",
"doooon/128.jpg",
"jagan123/128.jpg",
"ariffsetiawan/128.jpg",
"elenadissi/128.jpg",
"mwarkentin/128.jpg",
"thierrymeier_/128.jpg",
"r_garcia/128.jpg",
"dmackerman/128.jpg",
"borantula/128.jpg",
"konus/128.jpg",
"spacewood_/128.jpg",
"ryuchi311/128.jpg",
"evanshajed/128.jpg",
"tristanlegros/128.jpg",
"shoaib253/128.jpg",
"aislinnkelly/128.jpg",
"okcoker/128.jpg",
"timpetricola/128.jpg",
"sunshinedgirl/128.jpg",
"chadami/128.jpg",
"aleclarsoniv/128.jpg",
"nomidesigns/128.jpg",
"petebernardo/128.jpg",
"scottiedude/128.jpg",
"millinet/128.jpg",
"imsoper/128.jpg",
"imammuht/128.jpg",
"benjamin_knight/128.jpg",
"nepdud/128.jpg",
"joki4/128.jpg",
"lanceguyatt/128.jpg",
"bboy1895/128.jpg",
"amywebbb/128.jpg",
"rweve/128.jpg",
"haruintesettden/128.jpg",
"ricburton/128.jpg",
"nelshd/128.jpg",
"batsirai/128.jpg",
"primozcigler/128.jpg",
"jffgrdnr/128.jpg",
"8d3k/128.jpg",
"geneseleznev/128.jpg",
"al_li/128.jpg",
"souperphly/128.jpg",
"mslarkina/128.jpg",
"2fockus/128.jpg",
"cdavis565/128.jpg",
"xiel/128.jpg",
"turkutuuli/128.jpg",
"uxward/128.jpg",
"lebinoclard/128.jpg",
"gauravjassal/128.jpg",
"davidmerrique/128.jpg",
"mdsisto/128.jpg",
"andrewofficer/128.jpg",
"kojourin/128.jpg",
"dnirmal/128.jpg",
"kevka/128.jpg",
"mr_shiznit/128.jpg",
"aluisio_azevedo/128.jpg",
"cloudstudio/128.jpg",
"danvierich/128.jpg",
"alexivanichkin/128.jpg",
"fran_mchamy/128.jpg",
"perretmagali/128.jpg",
"betraydan/128.jpg",
"cadikkara/128.jpg",
"matbeedotcom/128.jpg",
"jeremyworboys/128.jpg",
"bpartridge/128.jpg",
"michaelkoper/128.jpg",
"silv3rgvn/128.jpg",
"alevizio/128.jpg",
"johnsmithagency/128.jpg",
"lawlbwoy/128.jpg",
"vitor376/128.jpg",
"desastrozo/128.jpg",
"thimo_cz/128.jpg",
"jasonmarkjones/128.jpg",
"lhausermann/128.jpg",
"xravil/128.jpg",
"guischmitt/128.jpg",
"vigobronx/128.jpg",
"panghal0/128.jpg",
"miguelkooreman/128.jpg",
"surgeonist/128.jpg",
"christianoliff/128.jpg",
"caspergrl/128.jpg",
"iamkarna/128.jpg",
"ipavelek/128.jpg",
"pierre_nel/128.jpg",
"y2graphic/128.jpg",
"sterlingrules/128.jpg",
"elbuscainfo/128.jpg",
"bennyjien/128.jpg",
"stushona/128.jpg",
"estebanuribe/128.jpg",
"embrcecreations/128.jpg",
"danillos/128.jpg",
"elliotlewis/128.jpg",
"charlesrpratt/128.jpg",
"vladyn/128.jpg",
"emmeffess/128.jpg",
"carlosblanco_eu/128.jpg",
"leonfedotov/128.jpg",
"rangafangs/128.jpg",
"chris_frees/128.jpg",
"tgormtx/128.jpg",
"bryan_topham/128.jpg",
"jpscribbles/128.jpg",
"mighty55/128.jpg",
"carbontwelve/128.jpg",
"isaacfifth/128.jpg",
"iamjdeleon/128.jpg",
"snowwrite/128.jpg",
"barputro/128.jpg",
"drewbyreese/128.jpg",
"sachacorazzi/128.jpg",
"bistrianiosip/128.jpg",
"magoo04/128.jpg",
"pehamondello/128.jpg",
"yayteejay/128.jpg",
"a_harris88/128.jpg",
"algunsanabria/128.jpg",
"zforrester/128.jpg",
"ovall/128.jpg",
"carlosjgsousa/128.jpg",
"geobikas/128.jpg",
"ah_lice/128.jpg",
"looneydoodle/128.jpg",
"nerdgr8/128.jpg",
"ddggccaa/128.jpg",
"zackeeler/128.jpg",
"normanbox/128.jpg",
"el_fuertisimo/128.jpg",
"ismail_biltagi/128.jpg",
"juangomezw/128.jpg",
"jnmnrd/128.jpg",
"patrickcoombe/128.jpg",
"ryanjohnson_me/128.jpg",
"markolschesky/128.jpg",
"jeffgolenski/128.jpg",
"kvasnic/128.jpg",
"lindseyzilla/128.jpg",
"gauchomatt/128.jpg",
"afusinatto/128.jpg",
"kevinoh/128.jpg",
"okansurreel/128.jpg",
"adamawesomeface/128.jpg",
"emileboudeling/128.jpg",
"arishi_/128.jpg",
"juanmamartinez/128.jpg",
"wikiziner/128.jpg",
"danthms/128.jpg",
"mkginfo/128.jpg",
"terrorpixel/128.jpg",
"curiousonaut/128.jpg",
"prheemo/128.jpg",
"michaelcolenso/128.jpg",
"foczzi/128.jpg",
"martip07/128.jpg",
"thaodang17/128.jpg",
"johncafazza/128.jpg",
"robinlayfield/128.jpg",
"franciscoamk/128.jpg",
"abdulhyeuk/128.jpg",
"marklamb/128.jpg",
"edobene/128.jpg",
"andresenfredrik/128.jpg",
"mikaeljorhult/128.jpg",
"chrisslowik/128.jpg",
"vinciarts/128.jpg",
"meelford/128.jpg",
"elliotnolten/128.jpg",
"yehudab/128.jpg",
"vijaykarthik/128.jpg",
"bfrohs/128.jpg",
"josep_martins/128.jpg",
"attacks/128.jpg",
"sur4dye/128.jpg",
"tumski/128.jpg",
"instalox/128.jpg",
"mangosango/128.jpg",
"paulfarino/128.jpg",
"kazaky999/128.jpg",
"kiwiupover/128.jpg",
"nvkznemo/128.jpg",
"tom_even/128.jpg",
"ratbus/128.jpg",
"woodsman001/128.jpg",
"joshmedeski/128.jpg",
"thewillbeard/128.jpg",
"psaikali/128.jpg",
"joe_black/128.jpg",
"aleinadsays/128.jpg",
"marcusgorillius/128.jpg",
"hota_v/128.jpg",
"jghyllebert/128.jpg",
"shinze/128.jpg",
"janpalounek/128.jpg",
"jeremiespoken/128.jpg",
"her_ruu/128.jpg",
"dansowter/128.jpg",
"felipeapiress/128.jpg",
"magugzbrand2d/128.jpg",
"posterjob/128.jpg",
"nathalie_fs/128.jpg",
"bobbytwoshoes/128.jpg",
"dreizle/128.jpg",
"jeremymouton/128.jpg",
"elisabethkjaer/128.jpg",
"notbadart/128.jpg",
"mohanrohith/128.jpg",
"jlsolerdeltoro/128.jpg",
"itskawsar/128.jpg",
"slowspock/128.jpg",
"zvchkelly/128.jpg",
"wiljanslofstra/128.jpg",
"craighenneberry/128.jpg",
"trubeatto/128.jpg",
"juaumlol/128.jpg",
"samscouto/128.jpg",
"BenouarradeM/128.jpg",
"gipsy_raf/128.jpg",
"netonet_il/128.jpg",
"arkokoley/128.jpg",
"itsajimithing/128.jpg",
"smalonso/128.jpg",
"victordeanda/128.jpg",
"_dwite_/128.jpg",
"richardgarretts/128.jpg",
"gregrwilkinson/128.jpg",
"anatolinicolae/128.jpg",
"lu4sh1i/128.jpg",
"stefanotirloni/128.jpg",
"ostirbu/128.jpg",
"darcystonge/128.jpg",
"naitanamoreno/128.jpg",
"michaelcomiskey/128.jpg",
"adhiardana/128.jpg",
"marcomano_/128.jpg",
"davidcazalis/128.jpg",
"falconerie/128.jpg",
"gregkilian/128.jpg",
"bcrad/128.jpg",
"bolzanmarco/128.jpg",
"low_res/128.jpg",
"vlajki/128.jpg",
"petar_prog/128.jpg",
"jonkspr/128.jpg",
"akmalfikri/128.jpg",
"mfacchinello/128.jpg",
"atanism/128.jpg",
"harry_sistalam/128.jpg",
"murrayswift/128.jpg",
"bobwassermann/128.jpg",
"gavr1l0/128.jpg",
"madshensel/128.jpg",
"mr_subtle/128.jpg",
"deviljho_/128.jpg",
"salimianoff/128.jpg",
"joetruesdell/128.jpg",
"twittypork/128.jpg",
"airskylar/128.jpg",
"dnezkumar/128.jpg",
"dgajjar/128.jpg",
"cherif_b/128.jpg",
"salvafc/128.jpg",
"louis_currie/128.jpg",
"deeenright/128.jpg",
"cybind/128.jpg",
"eyronn/128.jpg",
"vickyshits/128.jpg",
"sweetdelisa/128.jpg",
"cboller1/128.jpg",
"andresdjasso/128.jpg",
"melvindidit/128.jpg",
"andysolomon/128.jpg",
"thaisselenator_/128.jpg",
"lvovenok/128.jpg",
"giuliusa/128.jpg",
"belyaev_rs/128.jpg",
"overcloacked/128.jpg",
"kamal_chaneman/128.jpg",
"incubo82/128.jpg",
"hellofeverrrr/128.jpg",
"mhaligowski/128.jpg",
"sunlandictwin/128.jpg",
"bu7921/128.jpg",
"andytlaw/128.jpg",
"jeremery/128.jpg",
"finchjke/128.jpg",
"manigm/128.jpg",
"umurgdk/128.jpg",
"scottfeltham/128.jpg",
"ganserene/128.jpg",
"mutu_krish/128.jpg",
"jodytaggart/128.jpg",
"ntfblog/128.jpg",
"tanveerrao/128.jpg",
"hfalucas/128.jpg",
"alxleroydeval/128.jpg",
"kucingbelang4/128.jpg",
"bargaorobalo/128.jpg",
"colgruv/128.jpg",
"stalewine/128.jpg",
"kylefrost/128.jpg",
"baumannzone/128.jpg",
"angelcolberg/128.jpg",
"sachingawas/128.jpg",
"jjshaw14/128.jpg",
"ramanathan_pdy/128.jpg",
"johndezember/128.jpg",
"nilshoenson/128.jpg",
"brandonmorreale/128.jpg",
"nutzumi/128.jpg",
"brandonflatsoda/128.jpg",
"sergeyalmone/128.jpg",
"klefue/128.jpg",
"kirangopal/128.jpg",
"baumann_alex/128.jpg",
"matthewkay_/128.jpg",
"jay_wilburn/128.jpg",
"shesgared/128.jpg",
"apriendeau/128.jpg",
"johnriordan/128.jpg",
"wake_gs/128.jpg",
"aleksitappura/128.jpg",
"emsgulam/128.jpg",
"xilantra/128.jpg",
"imomenui/128.jpg",
"sircalebgrove/128.jpg",
"newbrushes/128.jpg",
"hsinyo23/128.jpg",
"m4rio/128.jpg",
"katiemdaly/128.jpg",
"s4f1/128.jpg",
"ecommerceil/128.jpg",
"marlinjayakody/128.jpg",
"swooshycueb/128.jpg",
"sangdth/128.jpg",
"coderdiaz/128.jpg",
"bluefx_/128.jpg",
"vivekprvr/128.jpg",
"sasha_shestakov/128.jpg",
"eugeneeweb/128.jpg",
"dgclegg/128.jpg",
"n1ght_coder/128.jpg",
"dixchen/128.jpg",
"blakehawksworth/128.jpg",
"trueblood_33/128.jpg",
"hai_ninh_nguyen/128.jpg",
"marclgonzales/128.jpg",
"yesmeck/128.jpg",
"stephcoue/128.jpg",
"doronmalki/128.jpg",
"ruehldesign/128.jpg",
"anasnakawa/128.jpg",
"kijanmaharjan/128.jpg",
"wearesavas/128.jpg",
"stefvdham/128.jpg",
"tweetubhai/128.jpg",
"alecarpentier/128.jpg",
"fiterik/128.jpg",
"antonyryndya/128.jpg",
"d00maz/128.jpg",
"theonlyzeke/128.jpg",
"missaaamy/128.jpg",
"carlosm/128.jpg",
"manekenthe/128.jpg",
"reetajayendra/128.jpg",
"jeremyshimko/128.jpg",
"justinrgraham/128.jpg",
"stefanozoffoli/128.jpg",
"overra/128.jpg",
"mrebay007/128.jpg",
"shvelo96/128.jpg",
"pyronite/128.jpg",
"thedjpetersen/128.jpg",
"rtyukmaev/128.jpg",
"_williamguerra/128.jpg",
"albertaugustin/128.jpg",
"vikashpathak18/128.jpg",
"kevinjohndayy/128.jpg",
"vj_demien/128.jpg",
"colirpixoil/128.jpg",
"goddardlewis/128.jpg",
"laasli/128.jpg",
"jqiuss/128.jpg",
"heycamtaylor/128.jpg",
"nastya_mane/128.jpg",
"mastermindesign/128.jpg",
"ccinojasso1/128.jpg",
"nyancecom/128.jpg",
"sandywoodruff/128.jpg",
"bighanddesign/128.jpg",
"sbtransparent/128.jpg",
"aviddayentonbay/128.jpg",
"richwild/128.jpg",
"kaysix_dizzy/128.jpg",
"tur8le/128.jpg",
"seyedhossein1/128.jpg",
"privetwagner/128.jpg",
"emmandenn/128.jpg",
"dev_essentials/128.jpg",
"jmfsocial/128.jpg",
"_yardenoon/128.jpg",
"mateaodviteza/128.jpg",
"weavermedia/128.jpg",
"mufaddal_mw/128.jpg",
"hafeeskhan/128.jpg",
"ashernatali/128.jpg",
"sulaqo/128.jpg",
"eddiechen/128.jpg",
"josecarlospsh/128.jpg",
"vm_f/128.jpg",
"enricocicconi/128.jpg",
"danmartin70/128.jpg",
"gmourier/128.jpg",
"donjain/128.jpg",
"mrxloka/128.jpg",
"_pedropinho/128.jpg",
"eitarafa/128.jpg",
"oscarowusu/128.jpg",
"ralph_lam/128.jpg",
"panchajanyag/128.jpg",
"woodydotmx/128.jpg",
"jerrybai1907/128.jpg",
"marshallchen_/128.jpg",
"xamorep/128.jpg",
"aio___/128.jpg",
"chaabane_wail/128.jpg",
"txcx/128.jpg",
"akashsharma39/128.jpg",
"falling_soul/128.jpg",
"sainraja/128.jpg",
"mugukamil/128.jpg",
"johannesneu/128.jpg",
"markwienands/128.jpg",
"karthipanraj/128.jpg",
"balakayuriy/128.jpg",
"alan_zhang_/128.jpg",
"layerssss/128.jpg",
"kaspernordkvist/128.jpg",
"mirfanqureshi/128.jpg",
"hanna_smi/128.jpg",
"VMilescu/128.jpg",
"aeon56/128.jpg",
"m_kalibry/128.jpg",
"sreejithexp/128.jpg",
"dicesales/128.jpg",
"dhoot_amit/128.jpg",
"smenov/128.jpg",
"lonesomelemon/128.jpg",
"vladimirdevic/128.jpg",
"joelcipriano/128.jpg",
"haligaliharun/128.jpg",
"buleswapnil/128.jpg",
"serefka/128.jpg",
"ifarafonow/128.jpg",
"vikasvinfotech/128.jpg",
"urrutimeoli/128.jpg",
"areandacom/128.jpg"
];
en.internet.avatar_uri = [];
for (var i = 0; i < avatarUri.length; i++) {
en.internet.avatar_uri.push("https://s3.amazonaws.com/uifaces/faces/twitter/" + avatarUri[i]);
};
en.lorem = {
"words": [
"alias",
"consequatur",
"aut",
"perferendis",
"sit",
"voluptatem",
"accusantium",
"doloremque",
"aperiam",
"eaque",
"ipsa",
"quae",
"ab",
"illo",
"inventore",
"veritatis",
"et",
"quasi",
"architecto",
"beatae",
"vitae",
"dicta",
"sunt",
"explicabo",
"aspernatur",
"aut",
"odit",
"aut",
"fugit",
"sed",
"quia",
"consequuntur",
"magni",
"dolores",
"eos",
"qui",
"ratione",
"voluptatem",
"sequi",
"nesciunt",
"neque",
"dolorem",
"ipsum",
"quia",
"dolor",
"sit",
"amet",
"consectetur",
"adipisci",
"velit",
"sed",
"quia",
"non",
"numquam",
"eius",
"modi",
"tempora",
"incidunt",
"ut",
"labore",
"et",
"dolore",
"magnam",
"aliquam",
"quaerat",
"voluptatem",
"ut",
"enim",
"ad",
"minima",
"veniam",
"quis",
"nostrum",
"exercitationem",
"ullam",
"corporis",
"nemo",
"enim",
"ipsam",
"voluptatem",
"quia",
"voluptas",
"sit",
"suscipit",
"laboriosam",
"nisi",
"ut",
"aliquid",
"ex",
"ea",
"commodi",
"consequatur",
"quis",
"autem",
"vel",
"eum",
"iure",
"reprehenderit",
"qui",
"in",
"ea",
"voluptate",
"velit",
"esse",
"quam",
"nihil",
"molestiae",
"et",
"iusto",
"odio",
"dignissimos",
"ducimus",
"qui",
"blanditiis",
"praesentium",
"laudantium",
"totam",
"rem",
"voluptatum",
"deleniti",
"atque",
"corrupti",
"quos",
"dolores",
"et",
"quas",
"molestias",
"excepturi",
"sint",
"occaecati",
"cupiditate",
"non",
"provident",
"sed",
"ut",
"perspiciatis",
"unde",
"omnis",
"iste",
"natus",
"error",
"similique",
"sunt",
"in",
"culpa",
"qui",
"officia",
"deserunt",
"mollitia",
"animi",
"id",
"est",
"laborum",
"et",
"dolorum",
"fuga",
"et",
"harum",
"quidem",
"rerum",
"facilis",
"est",
"et",
"expedita",
"distinctio",
"nam",
"libero",
"tempore",
"cum",
"soluta",
"nobis",
"est",
"eligendi",
"optio",
"cumque",
"nihil",
"impedit",
"quo",
"porro",
"quisquam",
"est",
"qui",
"minus",
"id",
"quod",
"maxime",
"placeat",
"facere",
"possimus",
"omnis",
"voluptas",
"assumenda",
"est",
"omnis",
"dolor",
"repellendus",
"temporibus",
"autem",
"quibusdam",
"et",
"aut",
"consequatur",
"vel",
"illum",
"qui",
"dolorem",
"eum",
"fugiat",
"quo",
"voluptas",
"nulla",
"pariatur",
"at",
"vero",
"eos",
"et",
"accusamus",
"officiis",
"debitis",
"aut",
"rerum",
"necessitatibus",
"saepe",
"eveniet",
"ut",
"et",
"voluptates",
"repudiandae",
"sint",
"et",
"molestiae",
"non",
"recusandae",
"itaque",
"earum",
"rerum",
"hic",
"tenetur",
"a",
"sapiente",
"delectus",
"ut",
"aut",
"reiciendis",
"voluptatibus",
"maiores",
"doloribus",
"asperiores",
"repellat"
],
"supplemental": [
"abbas",
"abduco",
"abeo",
"abscido",
"absconditus",
"absens",
"absorbeo",
"absque",
"abstergo",
"absum",
"abundans",
"abutor",
"accedo",
"accendo",
"acceptus",
"accipio",
"accommodo",
"accusator",
"acer",
"acerbitas",
"acervus",
"acidus",
"acies",
"acquiro",
"acsi",
"adamo",
"adaugeo",
"addo",
"adduco",
"ademptio",
"adeo",
"adeptio",
"adfectus",
"adfero",
"adficio",
"adflicto",
"adhaero",
"adhuc",
"adicio",
"adimpleo",
"adinventitias",
"adipiscor",
"adiuvo",
"administratio",
"admiratio",
"admitto",
"admoneo",
"admoveo",
"adnuo",
"adopto",
"adsidue",
"adstringo",
"adsuesco",
"adsum",
"adulatio",
"adulescens",
"adultus",
"aduro",
"advenio",
"adversus",
"advoco",
"aedificium",
"aeger",
"aegre",
"aegrotatio",
"aegrus",
"aeneus",
"aequitas",
"aequus",
"aer",
"aestas",
"aestivus",
"aestus",
"aetas",
"aeternus",
"ager",
"aggero",
"aggredior",
"agnitio",
"agnosco",
"ago",
"ait",
"aiunt",
"alienus",
"alii",
"alioqui",
"aliqua",
"alius",
"allatus",
"alo",
"alter",
"altus",
"alveus",
"amaritudo",
"ambitus",
"ambulo",
"amicitia",
"amiculum",
"amissio",
"amita",
"amitto",
"amo",
"amor",
"amoveo",
"amplexus",
"amplitudo",
"amplus",
"ancilla",
"angelus",
"angulus",
"angustus",
"animadverto",
"animi",
"animus",
"annus",
"anser",
"ante",
"antea",
"antepono",
"antiquus",
"aperio",
"aperte",
"apostolus",
"apparatus",
"appello",
"appono",
"appositus",
"approbo",
"apto",
"aptus",
"apud",
"aqua",
"ara",
"aranea",
"arbitro",
"arbor",
"arbustum",
"arca",
"arceo",
"arcesso",
"arcus",
"argentum",
"argumentum",
"arguo",
"arma",
"armarium",
"armo",
"aro",
"ars",
"articulus",
"artificiose",
"arto",
"arx",
"ascisco",
"ascit",
"asper",
"aspicio",
"asporto",
"assentator",
"astrum",
"atavus",
"ater",
"atqui",
"atrocitas",
"atrox",
"attero",
"attollo",
"attonbitus",
"auctor",
"auctus",
"audacia",
"audax",
"audentia",
"audeo",
"audio",
"auditor",
"aufero",
"aureus",
"auris",
"aurum",
"aut",
"autem",
"autus",
"auxilium",
"avaritia",
"avarus",
"aveho",
"averto",
"avoco",
"baiulus",
"balbus",
"barba",
"bardus",
"basium",
"beatus",
"bellicus",
"bellum",
"bene",
"beneficium",
"benevolentia",
"benigne",
"bestia",
"bibo",
"bis",
"blandior",
"bonus",
"bos",
"brevis",
"cado",
"caecus",
"caelestis",
"caelum",
"calamitas",
"calcar",
"calco",
"calculus",
"callide",
"campana",
"candidus",
"canis",
"canonicus",
"canto",
"capillus",
"capio",
"capitulus",
"capto",
"caput",
"carbo",
"carcer",
"careo",
"caries",
"cariosus",
"caritas",
"carmen",
"carpo",
"carus",
"casso",
"caste",
"casus",
"catena",
"caterva",
"cattus",
"cauda",
"causa",
"caute",
"caveo",
"cavus",
"cedo",
"celebrer",
"celer",
"celo",
"cena",
"cenaculum",
"ceno",
"censura",
"centum",
"cerno",
"cernuus",
"certe",
"certo",
"certus",
"cervus",
"cetera",
"charisma",
"chirographum",
"cibo",
"cibus",
"cicuta",
"cilicium",
"cimentarius",
"ciminatio",
"cinis",
"circumvenio",
"cito",
"civis",
"civitas",
"clam",
"clamo",
"claro",
"clarus",
"claudeo",
"claustrum",
"clementia",
"clibanus",
"coadunatio",
"coaegresco",
"coepi",
"coerceo",
"cogito",
"cognatus",
"cognomen",
"cogo",
"cohaero",
"cohibeo",
"cohors",
"colligo",
"colloco",
"collum",
"colo",
"color",
"coma",
"combibo",
"comburo",
"comedo",
"comes",
"cometes",
"comis",
"comitatus",
"commemoro",
"comminor",
"commodo",
"communis",
"comparo",
"compello",
"complectus",
"compono",
"comprehendo",
"comptus",
"conatus",
"concedo",
"concido",
"conculco",
"condico",
"conduco",
"confero",
"confido",
"conforto",
"confugo",
"congregatio",
"conicio",
"coniecto",
"conitor",
"coniuratio",
"conor",
"conqueror",
"conscendo",
"conservo",
"considero",
"conspergo",
"constans",
"consuasor",
"contabesco",
"contego",
"contigo",
"contra",
"conturbo",
"conventus",
"convoco",
"copia",
"copiose",
"cornu",
"corona",
"corpus",
"correptius",
"corrigo",
"corroboro",
"corrumpo",
"coruscus",
"cotidie",
"crapula",
"cras",
"crastinus",
"creator",
"creber",
"crebro",
"credo",
"creo",
"creptio",
"crepusculum",
"cresco",
"creta",
"cribro",
"crinis",
"cruciamentum",
"crudelis",
"cruentus",
"crur",
"crustulum",
"crux",
"cubicularis",
"cubitum",
"cubo",
"cui",
"cuius",
"culpa",
"culpo",
"cultellus",
"cultura",
"cum",
"cunabula",
"cunae",
"cunctatio",
"cupiditas",
"cupio",
"cuppedia",
"cupressus",
"cur",
"cura",
"curatio",
"curia",
"curiositas",
"curis",
"curo",
"curriculum",
"currus",
"cursim",
"curso",
"cursus",
"curto",
"curtus",
"curvo",
"curvus",
"custodia",
"damnatio",
"damno",
"dapifer",
"debeo",
"debilito",
"decens",
"decerno",
"decet",
"decimus",
"decipio",
"decor",
"decretum",
"decumbo",
"dedecor",
"dedico",
"deduco",
"defaeco",
"defendo",
"defero",
"defessus",
"defetiscor",
"deficio",
"defigo",
"defleo",
"defluo",
"defungo",
"degenero",
"degero",
"degusto",
"deinde",
"delectatio",
"delego",
"deleo",
"delibero",
"delicate",
"delinquo",
"deludo",
"demens",
"demergo",
"demitto",
"demo",
"demonstro",
"demoror",
"demulceo",
"demum",
"denego",
"denique",
"dens",
"denuncio",
"denuo",
"deorsum",
"depereo",
"depono",
"depopulo",
"deporto",
"depraedor",
"deprecator",
"deprimo",
"depromo",
"depulso",
"deputo",
"derelinquo",
"derideo",
"deripio",
"desidero",
"desino",
"desipio",
"desolo",
"desparatus",
"despecto",
"despirmatio",
"infit",
"inflammatio",
"paens",
"patior",
"patria",
"patrocinor",
"patruus",
"pauci",
"paulatim",
"pauper",
"pax",
"peccatus",
"pecco",
"pecto",
"pectus",
"pecunia",
"pecus",
"peior",
"pel",
"ocer",
"socius",
"sodalitas",
"sol",
"soleo",
"solio",
"solitudo",
"solium",
"sollers",
"sollicito",
"solum",
"solus",
"solutio",
"solvo",
"somniculosus",
"somnus",
"sonitus",
"sono",
"sophismata",
"sopor",
"sordeo",
"sortitus",
"spargo",
"speciosus",
"spectaculum",
"speculum",
"sperno",
"spero",
"spes",
"spiculum",
"spiritus",
"spoliatio",
"sponte",
"stabilis",
"statim",
"statua",
"stella",
"stillicidium",
"stipes",
"stips",
"sto",
"strenuus",
"strues",
"studio",
"stultus",
"suadeo",
"suasoria",
"sub",
"subito",
"subiungo",
"sublime",
"subnecto",
"subseco",
"substantia",
"subvenio",
"succedo",
"succurro",
"sufficio",
"suffoco",
"suffragium",
"suggero",
"sui",
"sulum",
"sum",
"summa",
"summisse",
"summopere",
"sumo",
"sumptus",
"supellex",
"super",
"suppellex",
"supplanto",
"suppono",
"supra",
"surculus",
"surgo",
"sursum",
"suscipio",
"suspendo",
"sustineo",
"suus",
"synagoga",
"tabella",
"tabernus",
"tabesco",
"tabgo",
"tabula",
"taceo",
"tactus",
"taedium",
"talio",
"talis",
"talus",
"tam",
"tamdiu",
"tamen",
"tametsi",
"tamisium",
"tamquam",
"tandem",
"tantillus",
"tantum",
"tardus",
"tego",
"temeritas",
"temperantia",
"templum",
"temptatio",
"tempus",
"tenax",
"tendo",
"teneo",
"tener",
"tenuis",
"tenus",
"tepesco",
"tepidus",
"ter",
"terebro",
"teres",
"terga",
"tergeo",
"tergiversatio",
"tergo",
"tergum",
"termes",
"terminatio",
"tero",
"terra",
"terreo",
"territo",
"terror",
"tersus",
"tertius",
"testimonium",
"texo",
"textilis",
"textor",
"textus",
"thalassinus",
"theatrum",
"theca",
"thema",
"theologus",
"thermae",
"thesaurus",
"thesis",
"thorax",
"thymbra",
"thymum",
"tibi",
"timidus",
"timor",
"titulus",
"tolero",
"tollo",
"tondeo",
"tonsor",
"torqueo",
"torrens",
"tot",
"totidem",
"toties",
"totus",
"tracto",
"trado",
"traho",
"trans",
"tredecim",
"tremo",
"trepide",
"tres",
"tribuo",
"tricesimus",
"triduana",
"triginta",
"tripudio",
"tristis",
"triumphus",
"trucido",
"truculenter",
"tubineus",
"tui",
"tum",
"tumultus",
"tunc",
"turba",
"turbo",
"turpe",
"turpis",
"tutamen",
"tutis",
"tyrannus",
"uberrime",
"ubi",
"ulciscor",
"ullus",
"ulterius",
"ultio",
"ultra",
"umbra",
"umerus",
"umquam",
"una",
"unde",
"undique",
"universe",
"unus",
"urbanus",
"urbs",
"uredo",
"usitas",
"usque",
"ustilo",
"ustulo",
"usus",
"uter",
"uterque",
"utilis",
"utique",
"utor",
"utpote",
"utrimque",
"utroque",
"utrum",
"uxor",
"vaco",
"vacuus",
"vado",
"vae",
"valde",
"valens",
"valeo",
"valetudo",
"validus",
"vallum",
"vapulus",
"varietas",
"varius",
"vehemens",
"vel",
"velociter",
"velum",
"velut",
"venia",
"venio",
"ventito",
"ventosus",
"ventus",
"venustas",
"ver",
"verbera",
"verbum",
"vere",
"verecundia",
"vereor",
"vergo",
"veritas",
"vero",
"versus",
"verto",
"verumtamen",
"verus",
"vesco",
"vesica",
"vesper",
"vespillo",
"vester",
"vestigium",
"vestrum",
"vetus",
"via",
"vicinus",
"vicissitudo",
"victoria",
"victus",
"videlicet",
"video",
"viduata",
"viduo",
"vigilo",
"vigor",
"vilicus",
"vilis",
"vilitas",
"villa",
"vinco",
"vinculum",
"vindico",
"vinitor",
"vinum",
"vir",
"virga",
"virgo",
"viridis",
"viriliter",
"virtus",
"vis",
"viscus",
"vita",
"vitiosus",
"vitium",
"vito",
"vivo",
"vix",
"vobis",
"vociferor",
"voco",
"volaticus",
"volo",
"volubilis",
"voluntarius",
"volup",
"volutabrum",
"volva",
"vomer",
"vomica",
"vomito",
"vorago",
"vorax",
"voro",
"vos",
"votum",
"voveo",
"vox",
"vulariter",
"vulgaris",
"vulgivagus",
"vulgo",
"vulgus",
"vulnero",
"vulnus",
"vulpes",
"vulticulus",
"vultuosus",
"xiphias"
]
};
en.name = {
"first_name": [
"Aaliyah",
"Aaron",
"Abagail",
"Abbey",
"Abbie",
"Abbigail",
"Abby",
"Abdiel",
"Abdul",
"Abdullah",
"Abe",
"Abel",
"Abelardo",
"Abigail",
"Abigale",
"Abigayle",
"Abner",
"Abraham",
"Ada",
"Adah",
"Adalberto",
"Adaline",
"Adam",
"Adan",
"Addie",
"Addison",
"Adela",
"Adelbert",
"Adele",
"Adelia",
"Adeline",
"Adell",
"Adella",
"Adelle",
"Aditya",
"Adolf",
"Adolfo",
"Adolph",
"Adolphus",
"Adonis",
"Adrain",
"Adrian",
"Adriana",
"Adrianna",
"Adriel",
"Adrien",
"Adrienne",
"Afton",
"Aglae",
"Agnes",
"Agustin",
"Agustina",
"Ahmad",
"Ahmed",
"Aida",
"Aidan",
"Aiden",
"Aileen",
"Aimee",
"Aisha",
"Aiyana",
"Akeem",
"Al",
"Alaina",
"Alan",
"Alana",
"Alanis",
"Alanna",
"Alayna",
"Alba",
"Albert",
"Alberta",
"Albertha",
"Alberto",
"Albin",
"Albina",
"Alda",
"Alden",
"Alec",
"Aleen",
"Alejandra",
"Alejandrin",
"Alek",
"Alena",
"Alene",
"Alessandra",
"Alessandro",
"Alessia",
"Aletha",
"Alex",
"Alexa",
"Alexander",
"Alexandra",
"Alexandre",
"Alexandrea",
"Alexandria",
"Alexandrine",
"Alexandro",
"Alexane",
"Alexanne",
"Alexie",
"Alexis",
"Alexys",
"Alexzander",
"Alf",
"Alfonso",
"Alfonzo",
"Alford",
"Alfred",
"Alfreda",
"Alfredo",
"Ali",
"Alia",
"Alice",
"Alicia",
"Alisa",
"Alisha",
"Alison",
"Alivia",
"Aliya",
"Aliyah",
"Aliza",
"Alize",
"Allan",
"Allen",
"Allene",
"Allie",
"Allison",
"Ally",
"Alphonso",
"Alta",
"Althea",
"Alva",
"Alvah",
"Alvena",
"Alvera",
"Alverta",
"Alvina",
"Alvis",
"Alyce",
"Alycia",
"Alysa",
"Alysha",
"Alyson",
"Alysson",
"Amalia",
"Amanda",
"Amani",
"Amara",
"Amari",
"Amaya",
"Amber",
"Ambrose",
"Amelia",
"Amelie",
"Amely",
"America",
"Americo",
"Amie",
"Amina",
"Amir",
"Amira",
"Amiya",
"Amos",
"Amparo",
"Amy",
"Amya",
"Ana",
"Anabel",
"Anabelle",
"Anahi",
"Anais",
"Anastacio",
"Anastasia",
"Anderson",
"Andre",
"Andreane",
"Andreanne",
"Andres",
"Andrew",
"Andy",
"Angel",
"Angela",
"Angelica",
"Angelina",
"Angeline",
"Angelita",
"Angelo",
"Angie",
"Angus",
"Anibal",
"Anika",
"Anissa",
"Anita",
"Aniya",
"Aniyah",
"Anjali",
"Anna",
"Annabel",
"Annabell",
"Annabelle",
"Annalise",
"Annamae",
"Annamarie",
"Anne",
"Annetta",
"Annette",
"Annie",
"Ansel",
"Ansley",
"Anthony",
"Antoinette",
"Antone",
"Antonetta",
"Antonette",
"Antonia",
"Antonietta",
"Antonina",
"Antonio",
"Antwan",
"Antwon",
"Anya",
"April",
"Ara",
"Araceli",
"Aracely",
"Arch",
"Archibald",
"Ardella",
"Arden",
"Ardith",
"Arely",
"Ari",
"Ariane",
"Arianna",
"Aric",
"Ariel",
"Arielle",
"Arjun",
"Arlene",
"Arlie",
"Arlo",
"Armand",
"Armando",
"Armani",
"Arnaldo",
"Arne",
"Arno",
"Arnold",
"Arnoldo",
"Arnulfo",
"Aron",
"Art",
"Arthur",
"Arturo",
"Arvel",
"Arvid",
"Arvilla",
"Aryanna",
"Asa",
"Asha",
"Ashlee",
"Ashleigh",
"Ashley",
"Ashly",
"Ashlynn",
"Ashton",
"Ashtyn",
"Asia",
"Assunta",
"Astrid",
"Athena",
"Aubree",
"Aubrey",
"Audie",
"Audra",
"Audreanne",
"Audrey",
"August",
"Augusta",
"Augustine",
"Augustus",
"Aurelia",
"Aurelie",
"Aurelio",
"Aurore",
"Austen",
"Austin",
"Austyn",
"Autumn",
"Ava",
"Avery",
"Avis",
"Axel",
"Ayana",
"Ayden",
"Ayla",
"Aylin",
"Baby",
"Bailee",
"Bailey",
"Barbara",
"Barney",
"Baron",
"Barrett",
"Barry",
"Bart",
"Bartholome",
"Barton",
"Baylee",
"Beatrice",
"Beau",
"Beaulah",
"Bell",
"Bella",
"Belle",
"Ben",
"Benedict",
"Benjamin",
"Bennett",
"Bennie",
"Benny",
"Benton",
"Berenice",
"Bernadette",
"Bernadine",
"Bernard",
"Bernardo",
"Berneice",
"Bernhard",
"Bernice",
"Bernie",
"Berniece",
"Bernita",
"Berry",
"Bert",
"Berta",
"Bertha",
"Bertram",
"Bertrand",
"Beryl",
"Bessie",
"Beth",
"Bethany",
"Bethel",
"Betsy",
"Bette",
"Bettie",
"Betty",
"Bettye",
"Beulah",
"Beverly",
"Bianka",
"Bill",
"Billie",
"Billy",
"Birdie",
"Blair",
"Blaise",
"Blake",
"Blanca",
"Blanche",
"Blaze",
"Bo",
"Bobbie",
"Bobby",
"Bonita",
"Bonnie",
"Boris",
"Boyd",
"Brad",
"Braden",
"Bradford",
"Bradley",
"Bradly",
"Brady",
"Braeden",
"Brain",
"Brandi",
"Brando",
"Brandon",
"Brandt",
"Brandy",
"Brandyn",
"Brannon",
"Branson",
"Brant",
"Braulio",
"Braxton",
"Brayan",
"Breana",
"Breanna",
"Breanne",
"Brenda",
"Brendan",
"Brenden",
"Brendon",
"Brenna",
"Brennan",
"Brennon",
"Brent",
"Bret",
"Brett",
"Bria",
"Brian",
"Briana",
"Brianne",
"Brice",
"Bridget",
"Bridgette",
"Bridie",
"Brielle",
"Brigitte",
"Brionna",
"Brisa",
"Britney",
"Brittany",
"Brock",
"Broderick",
"Brody",
"Brook",
"Brooke",
"Brooklyn",
"Brooks",
"Brown",
"Bruce",
"Bryana",
"Bryce",
"Brycen",
"Bryon",
"Buck",
"Bud",
"Buddy",
"Buford",
"Bulah",
"Burdette",
"Burley",
"Burnice",
"Buster",
"Cade",
"Caden",
"Caesar",
"Caitlyn",
"Cale",
"Caleb",
"Caleigh",
"Cali",
"Calista",
"Callie",
"Camden",
"Cameron",
"Camila",
"Camilla",
"Camille",
"Camren",
"Camron",
"Camryn",
"Camylle",
"Candace",
"Candelario",
"Candice",
"Candida",
"Candido",
"Cara",
"Carey",
"Carissa",
"Carlee",
"Carleton",
"Carley",
"Carli",
"Carlie",
"Carlo",
"Carlos",
"Carlotta",
"Carmel",
"Carmela",
"Carmella",
"Carmelo",
"Carmen",
"Carmine",
"Carol",
"Carolanne",
"Carole",
"Carolina",
"Caroline",
"Carolyn",
"Carolyne",
"Carrie",
"Carroll",
"Carson",
"Carter",
"Cary",
"Casandra",
"Casey",
"Casimer",
"Casimir",
"Casper",
"Cassandra",
"Cassandre",
"Cassidy",
"Cassie",
"Catalina",
"Caterina",
"Catharine",
"Catherine",
"Cathrine",
"Cathryn",
"Cathy",
"Cayla",
"Ceasar",
"Cecelia",
"Cecil",
"Cecile",
"Cecilia",
"Cedrick",
"Celestine",
"Celestino",
"Celia",
"Celine",
"Cesar",
"Chad",
"Chadd",
"Chadrick",
"Chaim",
"Chance",
"Chandler",
"Chanel",
"Chanelle",
"Charity",
"Charlene",
"Charles",
"Charley",
"Charlie",
"Charlotte",
"Chase",
"Chasity",
"Chauncey",
"Chaya",
"Chaz",
"Chelsea",
"Chelsey",
"Chelsie",
"Chesley",
"Chester",
"Chet",
"Cheyanne",
"Cheyenne",
"Chloe",
"Chris",
"Christ",
"Christa",
"Christelle",
"Christian",
"Christiana",
"Christina",
"Christine",
"Christop",
"Christophe",
"Christopher",
"Christy",
"Chyna",
"Ciara",
"Cicero",
"Cielo",
"Cierra",
"Cindy",
"Citlalli",
"Clair",
"Claire",
"Clara",
"Clarabelle",
"Clare",
"Clarissa",
"Clark",
"Claud",
"Claude",
"Claudia",
"Claudie",
"Claudine",
"Clay",
"Clemens",
"Clement",
"Clementina",
"Clementine",
"Clemmie",
"Cleo",
"Cleora",
"Cleta",
"Cletus",
"Cleve",
"Cleveland",
"Clifford",
"Clifton",
"Clint",
"Clinton",
"Clotilde",
"Clovis",
"Cloyd",
"Clyde",
"Coby",
"Cody",
"Colby",
"Cole",
"Coleman",
"Colin",
"Colleen",
"Collin",
"Colt",
"Colten",
"Colton",
"Columbus",
"Concepcion",
"Conner",
"Connie",
"Connor",
"Conor",
"Conrad",
"Constance",
"Constantin",
"Consuelo",
"Cooper",
"Cora",
"Coralie",
"Corbin",
"Cordelia",
"Cordell",
"Cordia",
"Cordie",
"Corene",
"Corine",
"Cornelius",
"Cornell",
"Corrine",
"Cortez",
"Cortney",
"Cory",
"Coty",
"Courtney",
"Coy",
"Craig",
"Crawford",
"Creola",
"Cristal",
"Cristian",
"Cristina",
"Cristobal",
"Cristopher",
"Cruz",
"Crystal",
"Crystel",
"Cullen",
"Curt",
"Curtis",
"Cydney",
"Cynthia",
"Cyril",
"Cyrus",
"Dagmar",
"Dahlia",
"Daija",
"Daisha",
"Daisy",
"Dakota",
"Dale",
"Dallas",
"Dallin",
"Dalton",
"Damaris",
"Dameon",
"Damian",
"Damien",
"Damion",
"Damon",
"Dan",
"Dana",
"Dandre",
"Dane",
"D'angelo",
"Dangelo",
"Danial",
"Daniela",
"Daniella",
"Danielle",
"Danika",
"Dannie",
"Danny",
"Dante",
"Danyka",
"Daphne",
"Daphnee",
"Daphney",
"Darby",
"Daren",
"Darian",
"Dariana",
"Darien",
"Dario",
"Darion",
"Darius",
"Darlene",
"Daron",
"Darrel",
"Darrell",
"Darren",
"Darrick",
"Darrin",
"Darrion",
"Darron",
"Darryl",
"Darwin",
"Daryl",
"Dashawn",
"Dasia",
"Dave",
"David",
"Davin",
"Davion",
"Davon",
"Davonte",
"Dawn",
"Dawson",
"Dax",
"Dayana",
"Dayna",
"Dayne",
"Dayton",
"Dean",
"Deangelo",
"Deanna",
"Deborah",
"Declan",
"Dedric",
"Dedrick",
"Dee",
"Deion",
"Deja",
"Dejah",
"Dejon",
"Dejuan",
"Delaney",
"Delbert",
"Delfina",
"Delia",
"Delilah",
"Dell",
"Della",
"Delmer",
"Delores",
"Delpha",
"Delphia",
"Delphine",
"Delta",
"Demarco",
"Demarcus",
"Demario",
"Demetris",
"Demetrius",
"Demond",
"Dena",
"Denis",
"Dennis",
"Deon",
"Deondre",
"Deontae",
"Deonte",
"Dereck",
"Derek",
"Derick",
"Deron",
"Derrick",
"Deshaun",
"Deshawn",
"Desiree",
"Desmond",
"Dessie",
"Destany",
"Destin",
"Destinee",
"Destiney",
"Destini",
"Destiny",
"Devan",
"Devante",
"Deven",
"Devin",
"Devon",
"Devonte",
"Devyn",
"Dewayne",
"Dewitt",
"Dexter",
"Diamond",
"Diana",
"Dianna",
"Diego",
"Dillan",
"Dillon",
"Dimitri",
"Dina",
"Dino",
"Dion",
"Dixie",
"Dock",
"Dolly",
"Dolores",
"Domenic",
"Domenica",
"Domenick",
"Domenico",
"Domingo",
"Dominic",
"Dominique",
"Don",
"Donald",
"Donato",
"Donavon",
"Donna",
"Donnell",
"Donnie",
"Donny",
"Dora",
"Dorcas",
"Dorian",
"Doris",
"Dorothea",
"Dorothy",
"Dorris",
"Dortha",
"Dorthy",
"Doug",
"Douglas",
"Dovie",
"Doyle",
"Drake",
"Drew",
"Duane",
"Dudley",
"Dulce",
"Duncan",
"Durward",
"Dustin",
"Dusty",
"Dwight",
"Dylan",
"Earl",
"Earlene",
"Earline",
"Earnest",
"Earnestine",
"Easter",
"Easton",
"Ebba",
"Ebony",
"Ed",
"Eda",
"Edd",
"Eddie",
"Eden",
"Edgar",
"Edgardo",
"Edison",
"Edmond",
"Edmund",
"Edna",
"Eduardo",
"Edward",
"Edwardo",
"Edwin",
"Edwina",
"Edyth",
"Edythe",
"Effie",
"Efrain",
"Efren",
"Eileen",
"Einar",
"Eino",
"Eladio",
"Elaina",
"Elbert",
"Elda",
"Eldon",
"Eldora",
"Eldred",
"Eldridge",
"Eleanora",
"Eleanore",
"Eleazar",
"Electa",
"Elena",
"Elenor",
"Elenora",
"Eleonore",
"Elfrieda",
"Eli",
"Elian",
"Eliane",
"Elias",
"Eliezer",
"Elijah",
"Elinor",
"Elinore",
"Elisa",
"Elisabeth",
"Elise",
"Eliseo",
"Elisha",
"Elissa",
"Eliza",
"Elizabeth",
"Ella",
"Ellen",
"Ellie",
"Elliot",
"Elliott",
"Ellis",
"Ellsworth",
"Elmer",
"Elmira",
"Elmo",
"Elmore",
"Elna",
"Elnora",
"Elody",
"Eloisa",
"Eloise",
"Elouise",
"Eloy",
"Elroy",
"Elsa",
"Else",
"Elsie",
"Elta",
"Elton",
"Elva",
"Elvera",
"Elvie",
"Elvis",
"Elwin",
"Elwyn",
"Elyse",
"Elyssa",
"Elza",
"Emanuel",
"Emelia",
"Emelie",
"Emely",
"Emerald",
"Emerson",
"Emery",
"Emie",
"Emil",
"Emile",
"Emilia",
"Emiliano",
"Emilie",
"Emilio",
"Emily",
"Emma",
"Emmalee",
"Emmanuel",
"Emmanuelle",
"Emmet",
"Emmett",
"Emmie",
"Emmitt",
"Emmy",
"Emory",
"Ena",
"Enid",
"Enoch",
"Enola",
"Enos",
"Enrico",
"Enrique",
"Ephraim",
"Era",
"Eriberto",
"Eric",
"Erica",
"Erich",
"Erick",
"Ericka",
"Erik",
"Erika",
"Erin",
"Erling",
"Erna",
"Ernest",
"Ernestina",
"Ernestine",
"Ernesto",
"Ernie",
"Ervin",
"Erwin",
"Eryn",
"Esmeralda",
"Esperanza",
"Esta",
"Esteban",
"Estefania",
"Estel",
"Estell",
"Estella",
"Estelle",
"Estevan",
"Esther",
"Estrella",
"Etha",
"Ethan",
"Ethel",
"Ethelyn",
"Ethyl",
"Ettie",
"Eudora",
"Eugene",
"Eugenia",
"Eula",
"Eulah",
"Eulalia",
"Euna",
"Eunice",
"Eusebio",
"Eva",
"Evalyn",
"Evan",
"Evangeline",
"Evans",
"Eve",
"Eveline",
"Evelyn",
"Everardo",
"Everett",
"Everette",
"Evert",
"Evie",
"Ewald",
"Ewell",
"Ezekiel",
"Ezequiel",
"Ezra",
"Fabian",
"Fabiola",
"Fae",
"Fannie",
"Fanny",
"Fatima",
"Faustino",
"Fausto",
"Favian",
"Fay",
"Faye",
"Federico",
"Felicia",
"Felicita",
"Felicity",
"Felipa",
"Felipe",
"Felix",
"Felton",
"Fermin",
"Fern",
"Fernando",
"Ferne",
"Fidel",
"Filiberto",
"Filomena",
"Finn",
"Fiona",
"Flavie",
"Flavio",
"Fleta",
"Fletcher",
"Flo",
"Florence",
"Florencio",
"Florian",
"Florida",
"Florine",
"Flossie",
"Floy",
"Floyd",
"Ford",
"Forest",
"Forrest",
"Foster",
"Frances",
"Francesca",
"Francesco",
"Francis",
"Francisca",
"Francisco",
"Franco",
"Frank",
"Frankie",
"Franz",
"Fred",
"Freda",
"Freddie",
"Freddy",
"Frederic",
"Frederick",
"Frederik",
"Frederique",
"Fredrick",
"Fredy",
"Freeda",
"Freeman",
"Freida",
"Frida",
"Frieda",
"Friedrich",
"Fritz",
"Furman",
"Gabe",
"Gabriel",
"Gabriella",
"Gabrielle",
"Gaetano",
"Gage",
"Gail",
"Gardner",
"Garett",
"Garfield",
"Garland",
"Garnet",
"Garnett",
"Garret",
"Garrett",
"Garrick",
"Garrison",
"Garry",
"Garth",
"Gaston",
"Gavin",
"Gay",
"Gayle",
"Gaylord",
"Gene",
"General",
"Genesis",
"Genevieve",
"Gennaro",
"Genoveva",
"Geo",
"Geoffrey",
"George",
"Georgette",
"Georgiana",
"Georgianna",
"Geovanni",
"Geovanny",
"Geovany",
"Gerald",
"Geraldine",
"Gerard",
"Gerardo",
"Gerda",
"Gerhard",
"Germaine",
"German",
"Gerry",
"Gerson",
"Gertrude",
"Gia",
"Gianni",
"Gideon",
"Gilbert",
"Gilberto",
"Gilda",
"Giles",
"Gillian",
"Gina",
"Gino",
"Giovani",
"Giovanna",
"Giovanni",
"Giovanny",
"Gisselle",
"Giuseppe",
"Gladyce",
"Gladys",
"Glen",
"Glenda",
"Glenna",
"Glennie",
"Gloria",
"Godfrey",
"Golda",
"Golden",
"Gonzalo",
"Gordon",
"Grace",
"Gracie",
"Graciela",
"Grady",
"Graham",
"Grant",
"Granville",
"Grayce",
"Grayson",
"Green",
"Greg",
"Gregg",
"Gregoria",
"Gregorio",
"Gregory",
"Greta",
"Gretchen",
"Greyson",
"Griffin",
"Grover",
"Guadalupe",
"Gudrun",
"Guido",
"Guillermo",
"Guiseppe",
"Gunnar",
"Gunner",
"Gus",
"Gussie",
"Gust",
"Gustave",
"Guy",
"Gwen",
"Gwendolyn",
"Hadley",
"Hailee",
"Hailey",
"Hailie",
"Hal",
"Haleigh",
"Haley",
"Halie",
"Halle",
"Hallie",
"Hank",
"Hanna",
"Hannah",
"Hans",
"Hardy",
"Harley",
"Harmon",
"Harmony",
"Harold",
"Harrison",
"Harry",
"Harvey",
"Haskell",
"Hassan",
"Hassie",
"Hattie",
"Haven",
"Hayden",
"Haylee",
"Hayley",
"Haylie",
"Hazel",
"Hazle",
"Heath",
"Heather",
"Heaven",
"Heber",
"Hector",
"Heidi",
"Helen",
"Helena",
"Helene",
"Helga",
"Hellen",
"Helmer",
"Heloise",
"Henderson",
"Henri",
"Henriette",
"Henry",
"Herbert",
"Herman",
"Hermann",
"Hermina",
"Herminia",
"Herminio",
"Hershel",
"Herta",
"Hertha",
"Hester",
"Hettie",
"Hilario",
"Hilbert",
"Hilda",
"Hildegard",
"Hillard",
"Hillary",
"Hilma",
"Hilton",
"Hipolito",
"Hiram",
"Hobart",
"Holden",
"Hollie",
"Hollis",
"Holly",
"Hope",
"Horace",
"Horacio",
"Hortense",
"Hosea",
"Houston",
"Howard",
"Howell",
"Hoyt",
"Hubert",
"Hudson",
"Hugh",
"Hulda",
"Humberto",
"Hunter",
"Hyman",
"Ian",
"Ibrahim",
"Icie",
"Ida",
"Idell",
"Idella",
"Ignacio",
"Ignatius",
"Ike",
"Ila",
"Ilene",
"Iliana",
"Ima",
"Imani",
"Imelda",
"Immanuel",
"Imogene",
"Ines",
"Irma",
"Irving",
"Irwin",
"Isaac",
"Isabel",
"Isabell",
"Isabella",
"Isabelle",
"Isac",
"Isadore",
"Isai",
"Isaiah",
"Isaias",
"Isidro",
"Ismael",
"Isobel",
"Isom",
"Israel",
"Issac",
"Itzel",
"Iva",
"Ivah",
"Ivory",
"Ivy",
"Izabella",
"Izaiah",
"Jabari",
"Jace",
"Jacey",
"Jacinthe",
"Jacinto",
"Jack",
"Jackeline",
"Jackie",
"Jacklyn",
"Jackson",
"Jacky",
"Jaclyn",
"Jacquelyn",
"Jacques",
"Jacynthe",
"Jada",
"Jade",
"Jaden",
"Jadon",
"Jadyn",
"Jaeden",
"Jaida",
"Jaiden",
"Jailyn",
"Jaime",
"Jairo",
"Jakayla",
"Jake",
"Jakob",
"Jaleel",
"Jalen",
"Jalon",
"Jalyn",
"Jamaal",
"Jamal",
"Jamar",
"Jamarcus",
"Jamel",
"Jameson",
"Jamey",
"Jamie",
"Jamil",
"Jamir",
"Jamison",
"Jammie",
"Jan",
"Jana",
"Janae",
"Jane",
"Janelle",
"Janessa",
"Janet",
"Janice",
"Janick",
"Janie",
"Janis",
"Janiya",
"Jannie",
"Jany",
"Jaquan",
"Jaquelin",
"Jaqueline",
"Jared",
"Jaren",
"Jarod",
"Jaron",
"Jarred",
"Jarrell",
"Jarret",
"Jarrett",
"Jarrod",
"Jarvis",
"Jasen",
"Jasmin",
"Jason",
"Jasper",
"Jaunita",
"Javier",
"Javon",
"Javonte",
"Jay",
"Jayce",
"Jaycee",
"Jayda",
"Jayde",
"Jayden",
"Jaydon",
"Jaylan",
"Jaylen",
"Jaylin",
"Jaylon",
"Jayme",
"Jayne",
"Jayson",
"Jazlyn",
"Jazmin",
"Jazmyn",
"Jazmyne",
"Jean",
"Jeanette",
"Jeanie",
"Jeanne",
"Jed",
"Jedediah",
"Jedidiah",
"Jeff",
"Jefferey",
"Jeffery",
"Jeffrey",
"Jeffry",
"Jena",
"Jenifer",
"Jennie",
"Jennifer",
"Jennings",
"Jennyfer",
"Jensen",
"Jerad",
"Jerald",
"Jeramie",
"Jeramy",
"Jerel",
"Jeremie",
"Jeremy",
"Jermain",
"Jermaine",
"Jermey",
"Jerod",
"Jerome",
"Jeromy",
"Jerrell",
"Jerrod",
"Jerrold",
"Jerry",
"Jess",
"Jesse",
"Jessica",
"Jessie",
"Jessika",
"Jessy",
"Jessyca",
"Jesus",
"Jett",
"Jettie",
"Jevon",
"Jewel",
"Jewell",
"Jillian",
"Jimmie",
"Jimmy",
"Jo",
"Joan",
"Joana",
"Joanie",
"Joanne",
"Joannie",
"Joanny",
"Joany",
"Joaquin",
"Jocelyn",
"Jodie",
"Jody",
"Joe",
"Joel",
"Joelle",
"Joesph",
"Joey",
"Johan",
"Johann",
"Johanna",
"Johathan",
"John",
"Johnathan",
"Johnathon",
"Johnnie",
"Johnny",
"Johnpaul",
"Johnson",
"Jolie",
"Jon",
"Jonas",
"Jonatan",
"Jonathan",
"Jonathon",
"Jordan",
"Jordane",
"Jordi",
"Jordon",
"Jordy",
"Jordyn",
"Jorge",
"Jose",
"Josefa",
"Josefina",
"Joseph",
"Josephine",
"Josh",
"Joshua",
"Joshuah",
"Josiah",
"Josiane",
"Josianne",
"Josie",
"Josue",
"Jovan",
"Jovani",
"Jovanny",
"Jovany",
"Joy",
"Joyce",
"Juana",
"Juanita",
"Judah",
"Judd",
"Jude",
"Judge",
"Judson",
"Judy",
"Jules",
"Julia",
"Julian",
"Juliana",
"Julianne",
"Julie",
"Julien",
"Juliet",
"Julio",
"Julius",
"June",
"Junior",
"Junius",
"Justen",
"Justice",
"Justina",
"Justine",
"Juston",
"Justus",
"Justyn",
"Juvenal",
"Juwan",
"Kacey",
"Kaci",
"Kacie",
"Kade",
"Kaden",
"Kadin",
"Kaela",
"Kaelyn",
"Kaia",
"Kailee",
"Kailey",
"Kailyn",
"Kaitlin",
"Kaitlyn",
"Kale",
"Kaleb",
"Kaleigh",
"Kaley",
"Kali",
"Kallie",
"Kameron",
"Kamille",
"Kamren",
"Kamron",
"Kamryn",
"Kane",
"Kara",
"Kareem",
"Karelle",
"Karen",
"Kari",
"Kariane",
"Karianne",
"Karina",
"Karine",
"Karl",
"Karlee",
"Karley",
"Karli",
"Karlie",
"Karolann",
"Karson",
"Kasandra",
"Kasey",
"Kassandra",
"Katarina",
"Katelin",
"Katelyn",
"Katelynn",
"Katharina",
"Katherine",
"Katheryn",
"Kathleen",
"Kathlyn",
"Kathryn",
"Kathryne",
"Katlyn",
"Katlynn",
"Katrina",
"Katrine",
"Kattie",
"Kavon",
"Kay",
"Kaya",
"Kaycee",
"Kayden",
"Kayla",
"Kaylah",
"Kaylee",
"Kayleigh",
"Kayley",
"Kayli",
"Kaylie",
"Kaylin",
"Keagan",
"Keanu",
"Keara",
"Keaton",
"Keegan",
"Keeley",
"Keely",
"Keenan",
"Keira",
"Keith",
"Kellen",
"Kelley",
"Kelli",
"Kellie",
"Kelly",
"Kelsi",
"Kelsie",
"Kelton",
"Kelvin",
"Ken",
"Kendall",
"Kendra",
"Kendrick",
"Kenna",
"Kennedi",
"Kennedy",
"Kenneth",
"Kennith",
"Kenny",
"Kenton",
"Kenya",
"Kenyatta",
"Kenyon",
"Keon",
"Keshaun",
"Keshawn",
"Keven",
"Kevin",
"Kevon",
"Keyon",
"Keyshawn",
"Khalid",
"Khalil",
"Kian",
"Kiana",
"Kianna",
"Kiara",
"Kiarra",
"Kiel",
"Kiera",
"Kieran",
"Kiley",
"Kim",
"Kimberly",
"King",
"Kip",
"Kira",
"Kirk",
"Kirsten",
"Kirstin",
"Kitty",
"Kobe",
"Koby",
"Kody",
"Kolby",
"Kole",
"Korbin",
"Korey",
"Kory",
"Kraig",
"Kris",
"Krista",
"Kristian",
"Kristin",
"Kristina",
"Kristofer",
"Kristoffer",
"Kristopher",
"Kristy",
"Krystal",
"Krystel",
"Krystina",
"Kurt",
"Kurtis",
"Kyla",
"Kyle",
"Kylee",
"Kyleigh",
"Kyler",
"Kylie",
"Kyra",
"Lacey",
"Lacy",
"Ladarius",
"Lafayette",
"Laila",
"Laisha",
"Lamar",
"Lambert",
"Lamont",
"Lance",
"Landen",
"Lane",
"Laney",
"Larissa",
"Laron",
"Larry",
"Larue",
"Laura",
"Laurel",
"Lauren",
"Laurence",
"Lauretta",
"Lauriane",
"Laurianne",
"Laurie",
"Laurine",
"Laury",
"Lauryn",
"Lavada",
"Lavern",
"Laverna",
"Laverne",
"Lavina",
"Lavinia",
"Lavon",
"Lavonne",
"Lawrence",
"Lawson",
"Layla",
"Layne",
"Lazaro",
"Lea",
"Leann",
"Leanna",
"Leanne",
"Leatha",
"Leda",
"Lee",
"Leif",
"Leila",
"Leilani",
"Lela",
"Lelah",
"Leland",
"Lelia",
"Lempi",
"Lemuel",
"Lenna",
"Lennie",
"Lenny",
"Lenora",
"Lenore",
"Leo",
"Leola",
"Leon",
"Leonard",
"Leonardo",
"Leone",
"Leonel",
"Leonie",
"Leonor",
"Leonora",
"Leopold",
"Leopoldo",
"Leora",
"Lera",
"Lesley",
"Leslie",
"Lesly",
"Lessie",
"Lester",
"Leta",
"Letha",
"Letitia",
"Levi",
"Lew",
"Lewis",
"Lexi",
"Lexie",
"Lexus",
"Lia",
"Liam",
"Liana",
"Libbie",
"Libby",
"Lila",
"Lilian",
"Liliana",
"Liliane",
"Lilla",
"Lillian",
"Lilliana",
"Lillie",
"Lilly",
"Lily",
"Lilyan",
"Lina",
"Lincoln",
"Linda",
"Lindsay",
"Lindsey",
"Linnea",
"Linnie",
"Linwood",
"Lionel",
"Lisa",
"Lisandro",
"Lisette",
"Litzy",
"Liza",
"Lizeth",
"Lizzie",
"Llewellyn",
"Lloyd",
"Logan",
"Lois",
"Lola",
"Lolita",
"Loma",
"Lon",
"London",
"Lonie",
"Lonnie",
"Lonny",
"Lonzo",
"Lora",
"Loraine",
"Loren",
"Lorena",
"Lorenz",
"Lorenza",
"Lorenzo",
"Lori",
"Lorine",
"Lorna",
"Lottie",
"Lou",
"Louie",
"Louisa",
"Lourdes",
"Louvenia",
"Lowell",
"Loy",
"Loyal",
"Loyce",
"Lucas",
"Luciano",
"Lucie",
"Lucienne",
"Lucile",
"Lucinda",
"Lucio",
"Lucious",
"Lucius",
"Lucy",
"Ludie",
"Ludwig",
"Lue",
"Luella",
"Luigi",
"Luis",
"Luisa",
"Lukas",
"Lula",
"Lulu",
"Luna",
"Lupe",
"Lura",
"Lurline",
"Luther",
"Luz",
"Lyda",
"Lydia",
"Lyla",
"Lynn",
"Lyric",
"Lysanne",
"Mabel",
"Mabelle",
"Mable",
"Mac",
"Macey",
"Maci",
"Macie",
"Mack",
"Mackenzie",
"Macy",
"Madaline",
"Madalyn",
"Maddison",
"Madeline",
"Madelyn",
"Madelynn",
"Madge",
"Madie",
"Madilyn",
"Madisen",
"Madison",
"Madisyn",
"Madonna",
"Madyson",
"Mae",
"Maegan",
"Maeve",
"Mafalda",
"Magali",
"Magdalen",
"Magdalena",
"Maggie",
"Magnolia",
"Magnus",
"Maia",
"Maida",
"Maiya",
"Major",
"Makayla",
"Makenna",
"Makenzie",
"Malachi",
"Malcolm",
"Malika",
"Malinda",
"Mallie",
"Mallory",
"Malvina",
"Mandy",
"Manley",
"Manuel",
"Manuela",
"Mara",
"Marc",
"Marcel",
"Marcelina",
"Marcelino",
"Marcella",
"Marcelle",
"Marcellus",
"Marcelo",
"Marcia",
"Marco",
"Marcos",
"Marcus",
"Margaret",
"Margarete",
"Margarett",
"Margaretta",
"Margarette",
"Margarita",
"Marge",
"Margie",
"Margot",
"Margret",
"Marguerite",
"Maria",
"Mariah",
"Mariam",
"Marian",
"Mariana",
"Mariane",
"Marianna",
"Marianne",
"Mariano",
"Maribel",
"Marie",
"Mariela",
"Marielle",
"Marietta",
"Marilie",
"Marilou",
"Marilyne",
"Marina",
"Mario",
"Marion",
"Marisa",
"Marisol",
"Maritza",
"Marjolaine",
"Marjorie",
"Marjory",
"Mark",
"Markus",
"Marlee",
"Marlen",
"Marlene",
"Marley",
"Marlin",
"Marlon",
"Marques",
"Marquis",
"Marquise",
"Marshall",
"Marta",
"Martin",
"Martina",
"Martine",
"Marty",
"Marvin",
"Mary",
"Maryam",
"Maryjane",
"Maryse",
"Mason",
"Mateo",
"Mathew",
"Mathias",
"Mathilde",
"Matilda",
"Matilde",
"Matt",
"Matteo",
"Mattie",
"Maud",
"Maude",
"Maudie",
"Maureen",
"Maurice",
"Mauricio",
"Maurine",
"Maverick",
"Mavis",
"Max",
"Maxie",
"Maxime",
"Maximilian",
"Maximillia",
"Maximillian",
"Maximo",
"Maximus",
"Maxine",
"Maxwell",
"May",
"Maya",
"Maybell",
"Maybelle",
"Maye",
"Maymie",
"Maynard",
"Mayra",
"Mazie",
"Mckayla",
"Mckenna",
"Mckenzie",
"Meagan",
"Meaghan",
"Meda",
"Megane",
"Meggie",
"Meghan",
"Mekhi",
"Melany",
"Melba",
"Melisa",
"Melissa",
"Mellie",
"Melody",
"Melvin",
"Melvina",
"Melyna",
"Melyssa",
"Mercedes",
"Meredith",
"Merl",
"Merle",
"Merlin",
"Merritt",
"Mertie",
"Mervin",
"Meta",
"Mia",
"Micaela",
"Micah",
"Michael",
"Michaela",
"Michale",
"Micheal",
"Michel",
"Michele",
"Michelle",
"Miguel",
"Mikayla",
"Mike",
"Mikel",
"Milan",
"Miles",
"Milford",
"Miller",
"Millie",
"Milo",
"Milton",
"Mina",
"Minerva",
"Minnie",
"Miracle",
"Mireille",
"Mireya",
"Misael",
"Missouri",
"Misty",
"Mitchel",
"Mitchell",
"Mittie",
"Modesta",
"Modesto",
"Mohamed",
"Mohammad",
"Mohammed",
"Moises",
"Mollie",
"Molly",
"Mona",
"Monica",
"Monique",
"Monroe",
"Monserrat",
"Monserrate",
"Montana",
"Monte",
"Monty",
"Morgan",
"Moriah",
"Morris",
"Mortimer",
"Morton",
"Mose",
"Moses",
"Moshe",
"Mossie",
"Mozell",
"Mozelle",
"Muhammad",
"Muriel",
"Murl",
"Murphy",
"Murray",
"Mustafa",
"Mya",
"Myah",
"Mylene",
"Myles",
"Myra",
"Myriam",
"Myrl",
"Myrna",
"Myron",
"Myrtice",
"Myrtie",
"Myrtis",
"Myrtle",
"Nadia",
"Nakia",
"Name",
"Nannie",
"Naomi",
"Naomie",
"Napoleon",
"Narciso",
"Nash",
"Nasir",
"Nat",
"Natalia",
"Natalie",
"Natasha",
"Nathan",
"Nathanael",
"Nathanial",
"Nathaniel",
"Nathen",
"Nayeli",
"Neal",
"Ned",
"Nedra",
"Neha",
"Neil",
"Nelda",
"Nella",
"Nelle",
"Nellie",
"Nels",
"Nelson",
"Neoma",
"Nestor",
"Nettie",
"Neva",
"Newell",
"Newton",
"Nia",
"Nicholas",
"Nicholaus",
"Nichole",
"Nick",
"Nicklaus",
"Nickolas",
"Nico",
"Nicola",
"Nicolas",
"Nicole",
"Nicolette",
"Nigel",
"Nikita",
"Nikki",
"Nikko",
"Niko",
"Nikolas",
"Nils",
"Nina",
"Noah",
"Noble",
"Noe",
"Noel",
"Noelia",
"Noemi",
"Noemie",
"Noemy",
"Nola",
"Nolan",
"Nona",
"Nora",
"Norbert",
"Norberto",
"Norene",
"Norma",
"Norris",
"Norval",
"Norwood",
"Nova",
"Novella",
"Nya",
"Nyah",
"Nyasia",
"Obie",
"Oceane",
"Ocie",
"Octavia",
"Oda",
"Odell",
"Odessa",
"Odie",
"Ofelia",
"Okey",
"Ola",
"Olaf",
"Ole",
"Olen",
"Oleta",
"Olga",
"Olin",
"Oliver",
"Ollie",
"Oma",
"Omari",
"Omer",
"Ona",
"Onie",
"Opal",
"Ophelia",
"Ora",
"Oral",
"Oran",
"Oren",
"Orie",
"Orin",
"Orion",
"Orland",
"Orlando",
"Orlo",
"Orpha",
"Orrin",
"Orval",
"Orville",
"Osbaldo",
"Osborne",
"Oscar",
"Osvaldo",
"Oswald",
"Oswaldo",
"Otha",
"Otho",
"Otilia",
"Otis",
"Ottilie",
"Ottis",
"Otto",
"Ova",
"Owen",
"Ozella",
"Pablo",
"Paige",
"Palma",
"Pamela",
"Pansy",
"Paolo",
"Paris",
"Parker",
"Pascale",
"Pasquale",
"Pat",
"Patience",
"Patricia",
"Patrick",
"Patsy",
"Pattie",
"Paul",
"Paula",
"Pauline",
"Paxton",
"Payton",
"Pearl",
"Pearlie",
"Pearline",
"Pedro",
"Peggie",
"Penelope",
"Percival",
"Percy",
"Perry",
"Pete",
"Peter",
"Petra",
"Peyton",
"Philip",
"Phoebe",
"Phyllis",
"Pierce",
"Pierre",
"Pietro",
"Pink",
"Pinkie",
"Piper",
"Polly",
"Porter",
"Precious",
"Presley",
"Preston",
"Price",
"Prince",
"Princess",
"Priscilla",
"Providenci",
"Prudence",
"Queen",
"Queenie",
"Quentin",
"Quincy",
"Quinn",
"Quinten",
"Quinton",
"Rachael",
"Rachel",
"Rachelle",
"Rae",
"Raegan",
"Rafael",
"Rafaela",
"Raheem",
"Rahsaan",
"Rahul",
"Raina",
"Raleigh",
"Ralph",
"Ramiro",
"Ramon",
"Ramona",
"Randal",
"Randall",
"Randi",
"Randy",
"Ransom",
"Raoul",
"Raphael",
"Raphaelle",
"Raquel",
"Rashad",
"Rashawn",
"Rasheed",
"Raul",
"Raven",
"Ray",
"Raymond",
"Raymundo",
"Reagan",
"Reanna",
"Reba",
"Rebeca",
"Rebecca",
"Rebeka",
"Rebekah",
"Reece",
"Reed",
"Reese",
"Regan",
"Reggie",
"Reginald",
"Reid",
"Reilly",
"Reina",
"Reinhold",
"Remington",
"Rene",
"Renee",
"Ressie",
"Reta",
"Retha",
"Retta",
"Reuben",
"Reva",
"Rex",
"Rey",
"Reyes",
"Reymundo",
"Reyna",
"Reynold",
"Rhea",
"Rhett",
"Rhianna",
"Rhiannon",
"Rhoda",
"Ricardo",
"Richard",
"Richie",
"Richmond",
"Rick",
"Rickey",
"Rickie",
"Ricky",
"Rico",
"Rigoberto",
"Riley",
"Rita",
"River",
"Robb",
"Robbie",
"Robert",
"Roberta",
"Roberto",
"Robin",
"Robyn",
"Rocio",
"Rocky",
"Rod",
"Roderick",
"Rodger",
"Rodolfo",
"Rodrick",
"Rodrigo",
"Roel",
"Rogelio",
"Roger",
"Rogers",
"Rolando",
"Rollin",
"Roma",
"Romaine",
"Roman",
"Ron",
"Ronaldo",
"Ronny",
"Roosevelt",
"Rory",
"Rosa",
"Rosalee",
"Rosalia",
"Rosalind",
"Rosalinda",
"Rosalyn",
"Rosamond",
"Rosanna",
"Rosario",
"Roscoe",
"Rose",
"Rosella",
"Roselyn",
"Rosemarie",
"Rosemary",
"Rosendo",
"Rosetta",
"Rosie",
"Rosina",
"Roslyn",
"Ross",
"Rossie",
"Rowan",
"Rowena",
"Rowland",
"Roxane",
"Roxanne",
"Roy",
"Royal",
"Royce",
"Rozella",
"Ruben",
"Rubie",
"Ruby",
"Rubye",
"Rudolph",
"Rudy",
"Rupert",
"Russ",
"Russel",
"Russell",
"Rusty",
"Ruth",
"Ruthe",
"Ruthie",
"Ryan",
"Ryann",
"Ryder",
"Rylan",
"Rylee",
"Ryleigh",
"Ryley",
"Sabina",
"Sabrina",
"Sabryna",
"Sadie",
"Sadye",
"Sage",
"Saige",
"Sallie",
"Sally",
"Salma",
"Salvador",
"Salvatore",
"Sam",
"Samanta",
"Samantha",
"Samara",
"Samir",
"Sammie",
"Sammy",
"Samson",
"Sandra",
"Sandrine",
"Sandy",
"Sanford",
"Santa",
"Santiago",
"Santina",
"Santino",
"Santos",
"Sarah",
"Sarai",
"Sarina",
"Sasha",
"Saul",
"Savanah",
"Savanna",
"Savannah",
"Savion",
"Scarlett",
"Schuyler",
"Scot",
"Scottie",
"Scotty",
"Seamus",
"Sean",
"Sebastian",
"Sedrick",
"Selena",
"Selina",
"Selmer",
"Serena",
"Serenity",
"Seth",
"Shad",
"Shaina",
"Shakira",
"Shana",
"Shane",
"Shanel",
"Shanelle",
"Shania",
"Shanie",
"Shaniya",
"Shanna",
"Shannon",
"Shanny",
"Shanon",
"Shany",
"Sharon",
"Shaun",
"Shawn",
"Shawna",
"Shaylee",
"Shayna",
"Shayne",
"Shea",
"Sheila",
"Sheldon",
"Shemar",
"Sheridan",
"Sherman",
"Sherwood",
"Shirley",
"Shyann",
"Shyanne",
"Sibyl",
"Sid",
"Sidney",
"Sienna",
"Sierra",
"Sigmund",
"Sigrid",
"Sigurd",
"Silas",
"Sim",
"Simeon",
"Simone",
"Sincere",
"Sister",
"Skye",
"Skyla",
"Skylar",
"Sofia",
"Soledad",
"Solon",
"Sonia",
"Sonny",
"Sonya",
"Sophia",
"Sophie",
"Spencer",
"Stacey",
"Stacy",
"Stan",
"Stanford",
"Stanley",
"Stanton",
"Stefan",
"Stefanie",
"Stella",
"Stephan",
"Stephania",
"Stephanie",
"Stephany",
"Stephen",
"Stephon",
"Sterling",
"Steve",
"Stevie",
"Stewart",
"Stone",
"Stuart",
"Summer",
"Sunny",
"Susan",
"Susana",
"Susanna",
"Susie",
"Suzanne",
"Sven",
"Syble",
"Sydnee",
"Sydney",
"Sydni",
"Sydnie",
"Sylvan",
"Sylvester",
"Sylvia",
"Tabitha",
"Tad",
"Talia",
"Talon",
"Tamara",
"Tamia",
"Tania",
"Tanner",
"Tanya",
"Tara",
"Taryn",
"Tate",
"Tatum",
"Tatyana",
"Taurean",
"Tavares",
"Taya",
"Taylor",
"Teagan",
"Ted",
"Telly",
"Terence",
"Teresa",
"Terrance",
"Terrell",
"Terrence",
"Terrill",
"Terry",
"Tess",
"Tessie",
"Tevin",
"Thad",
"Thaddeus",
"Thalia",
"Thea",
"Thelma",
"Theo",
"Theodora",
"Theodore",
"Theresa",
"Therese",
"Theresia",
"Theron",
"Thomas",
"Thora",
"Thurman",
"Tia",
"Tiana",
"Tianna",
"Tiara",
"Tierra",
"Tiffany",
"Tillman",
"Timmothy",
"Timmy",
"Timothy",
"Tina",
"Tito",
"Titus",
"Tobin",
"Toby",
"Tod",
"Tom",
"Tomas",
"Tomasa",
"Tommie",
"Toney",
"Toni",
"Tony",
"Torey",
"Torrance",
"Torrey",
"Toy",
"Trace",
"Tracey",
"Tracy",
"Travis",
"Travon",
"Tre",
"Tremaine",
"Tremayne",
"Trent",
"Trenton",
"Tressa",
"Tressie",
"Treva",
"Trever",
"Trevion",
"Trevor",
"Trey",
"Trinity",
"Trisha",
"Tristian",
"Tristin",
"Triston",
"Troy",
"Trudie",
"Trycia",
"Trystan",
"Turner",
"Twila",
"Tyler",
"Tyra",
"Tyree",
"Tyreek",
"Tyrel",
"Tyrell",
"Tyrese",
"Tyrique",
"Tyshawn",
"Tyson",
"Ubaldo",
"Ulices",
"Ulises",
"Una",
"Unique",
"Urban",
"Uriah",
"Uriel",
"Ursula",
"Vada",
"Valentin",
"Valentina",
"Valentine",
"Valerie",
"Vallie",
"Van",
"Vance",
"Vanessa",
"Vaughn",
"Veda",
"Velda",
"Vella",
"Velma",
"Velva",
"Vena",
"Verda",
"Verdie",
"Vergie",
"Verla",
"Verlie",
"Vern",
"Verna",
"Verner",
"Vernice",
"Vernie",
"Vernon",
"Verona",
"Veronica",
"Vesta",
"Vicenta",
"Vicente",
"Vickie",
"Vicky",
"Victor",
"Victoria",
"Vida",
"Vidal",
"Vilma",
"Vince",
"Vincent",
"Vincenza",
"Vincenzo",
"Vinnie",
"Viola",
"Violet",
"Violette",
"Virgie",
"Virgil",
"Virginia",
"Virginie",
"Vita",
"Vito",
"Viva",
"Vivian",
"Viviane",
"Vivianne",
"Vivien",
"Vivienne",
"Vladimir",
"Wade",
"Waino",
"Waldo",
"Walker",
"Wallace",
"Walter",
"Walton",
"Wanda",
"Ward",
"Warren",
"Watson",
"Wava",
"Waylon",
"Wayne",
"Webster",
"Weldon",
"Wellington",
"Wendell",
"Wendy",
"Werner",
"Westley",
"Weston",
"Whitney",
"Wilber",
"Wilbert",
"Wilburn",
"Wiley",
"Wilford",
"Wilfred",
"Wilfredo",
"Wilfrid",
"Wilhelm",
"Wilhelmine",
"Will",
"Willa",
"Willard",
"William",
"Willie",
"Willis",
"Willow",
"Willy",
"Wilma",
"Wilmer",
"Wilson",
"Wilton",
"Winfield",
"Winifred",
"Winnifred",
"Winona",
"Winston",
"Woodrow",
"Wyatt",
"Wyman",
"Xander",
"Xavier",
"Xzavier",
"Yadira",
"Yasmeen",
"Yasmin",
"Yasmine",
"Yazmin",
"Yesenia",
"Yessenia",
"Yolanda",
"Yoshiko",
"Yvette",
"Yvonne",
"Zachariah",
"Zachary",
"Zachery",
"Zack",
"Zackary",
"Zackery",
"Zakary",
"Zander",
"Zane",
"Zaria",
"Zechariah",
"Zelda",
"Zella",
"Zelma",
"Zena",
"Zetta",
"Zion",
"Zita",
"Zoe",
"Zoey",
"Zoie",
"Zoila",
"Zola",
"Zora",
"Zula"
],
"last_name": [
"Abbott",
"Abernathy",
"Abshire",
"Adams",
"Altenwerth",
"Anderson",
"Ankunding",
"Armstrong",
"Auer",
"Aufderhar",
"Bahringer",
"Bailey",
"Balistreri",
"Barrows",
"Bartell",
"Bartoletti",
"Barton",
"Bashirian",
"Batz",
"Bauch",
"Baumbach",
"Bayer",
"Beahan",
"Beatty",
"Bechtelar",
"Becker",
"Bednar",
"Beer",
"Beier",
"Berge",
"Bergnaum",
"Bergstrom",
"Bernhard",
"Bernier",
"Bins",
"Blanda",
"Blick",
"Block",
"Bode",
"Boehm",
"Bogan",
"Bogisich",
"Borer",
"Bosco",
"Botsford",
"Boyer",
"Boyle",
"Bradtke",
"Brakus",
"Braun",
"Breitenberg",
"Brekke",
"Brown",
"Bruen",
"Buckridge",
"Carroll",
"Carter",
"Cartwright",
"Casper",
"Cassin",
"Champlin",
"Christiansen",
"Cole",
"Collier",
"Collins",
"Conn",
"Connelly",
"Conroy",
"Considine",
"Corkery",
"Cormier",
"Corwin",
"Cremin",
"Crist",
"Crona",
"Cronin",
"Crooks",
"Cruickshank",
"Cummerata",
"Cummings",
"Dach",
"D'Amore",
"Daniel",
"Dare",
"Daugherty",
"Davis",
"Deckow",
"Denesik",
"Dibbert",
"Dickens",
"Dicki",
"Dickinson",
"Dietrich",
"Donnelly",
"Dooley",
"Douglas",
"Doyle",
"DuBuque",
"Durgan",
"Ebert",
"Effertz",
"Eichmann",
"Emard",
"Emmerich",
"Erdman",
"Ernser",
"Fadel",
"Fahey",
"Farrell",
"Fay",
"Feeney",
"Feest",
"Feil",
"Ferry",
"Fisher",
"Flatley",
"Frami",
"Franecki",
"Friesen",
"Fritsch",
"Funk",
"Gaylord",
"Gerhold",
"Gerlach",
"Gibson",
"Gislason",
"Gleason",
"Gleichner",
"Glover",
"Goldner",
"Goodwin",
"Gorczany",
"Gottlieb",
"Goyette",
"Grady",
"Graham",
"Grant",
"Green",
"Greenfelder",
"Greenholt",
"Grimes",
"Gulgowski",
"Gusikowski",
"Gutkowski",
"Gutmann",
"Haag",
"Hackett",
"Hagenes",
"Hahn",
"Haley",
"Halvorson",
"Hamill",
"Hammes",
"Hand",
"Hane",
"Hansen",
"Harber",
"Harris",
"Hartmann",
"Harvey",
"Hauck",
"Hayes",
"Heaney",
"Heathcote",
"Hegmann",
"Heidenreich",
"Heller",
"Herman",
"Hermann",
"Hermiston",
"Herzog",
"Hessel",
"Hettinger",
"Hickle",
"Hilll",
"Hills",
"Hilpert",
"Hintz",
"Hirthe",
"Hodkiewicz",
"Hoeger",
"Homenick",
"Hoppe",
"Howe",
"Howell",
"Hudson",
"Huel",
"Huels",
"Hyatt",
"Jacobi",
"Jacobs",
"Jacobson",
"Jakubowski",
"Jaskolski",
"Jast",
"Jenkins",
"Jerde",
"Johns",
"Johnson",
"Johnston",
"Jones",
"Kassulke",
"Kautzer",
"Keebler",
"Keeling",
"Kemmer",
"Kerluke",
"Kertzmann",
"Kessler",
"Kiehn",
"Kihn",
"Kilback",
"King",
"Kirlin",
"Klein",
"Kling",
"Klocko",
"Koch",
"Koelpin",
"Koepp",
"Kohler",
"Konopelski",
"Koss",
"Kovacek",
"Kozey",
"Krajcik",
"Kreiger",
"Kris",
"Kshlerin",
"Kub",
"Kuhic",
"Kuhlman",
"Kuhn",
"Kulas",
"Kunde",
"Kunze",
"Kuphal",
"Kutch",
"Kuvalis",
"Labadie",
"Lakin",
"Lang",
"Langosh",
"Langworth",
"Larkin",
"Larson",
"Leannon",
"Lebsack",
"Ledner",
"Leffler",
"Legros",
"Lehner",
"Lemke",
"Lesch",
"Leuschke",
"Lind",
"Lindgren",
"Littel",
"Little",
"Lockman",
"Lowe",
"Lubowitz",
"Lueilwitz",
"Luettgen",
"Lynch",
"Macejkovic",
"MacGyver",
"Maggio",
"Mann",
"Mante",
"Marks",
"Marquardt",
"Marvin",
"Mayer",
"Mayert",
"McClure",
"McCullough",
"McDermott",
"McGlynn",
"McKenzie",
"McLaughlin",
"Medhurst",
"Mertz",
"Metz",
"Miller",
"Mills",
"Mitchell",
"Moen",
"Mohr",
"Monahan",
"Moore",
"Morar",
"Morissette",
"Mosciski",
"Mraz",
"Mueller",
"Muller",
"Murazik",
"Murphy",
"Murray",
"Nader",
"Nicolas",
"Nienow",
"Nikolaus",
"Nitzsche",
"Nolan",
"Oberbrunner",
"O'Connell",
"O'Conner",
"O'Hara",
"O'Keefe",
"O'Kon",
"Okuneva",
"Olson",
"Ondricka",
"O'Reilly",
"Orn",
"Ortiz",
"Osinski",
"Pacocha",
"Padberg",
"Pagac",
"Parisian",
"Parker",
"Paucek",
"Pfannerstill",
"Pfeffer",
"Pollich",
"Pouros",
"Powlowski",
"Predovic",
"Price",
"Prohaska",
"Prosacco",
"Purdy",
"Quigley",
"Quitzon",
"Rath",
"Ratke",
"Rau",
"Raynor",
"Reichel",
"Reichert",
"Reilly",
"Reinger",
"Rempel",
"Renner",
"Reynolds",
"Rice",
"Rippin",
"Ritchie",
"Robel",
"Roberts",
"Rodriguez",
"Rogahn",
"Rohan",
"Rolfson",
"Romaguera",
"Roob",
"Rosenbaum",
"Rowe",
"Ruecker",
"Runolfsdottir",
"Runolfsson",
"Runte",
"Russel",
"Rutherford",
"Ryan",
"Sanford",
"Satterfield",
"Sauer",
"Sawayn",
"Schaden",
"Schaefer",
"Schamberger",
"Schiller",
"Schimmel",
"Schinner",
"Schmeler",
"Schmidt",
"Schmitt",
"Schneider",
"Schoen",
"Schowalter",
"Schroeder",
"Schulist",
"Schultz",
"Schumm",
"Schuppe",
"Schuster",
"Senger",
"Shanahan",
"Shields",
"Simonis",
"Sipes",
"Skiles",
"Smith",
"Smitham",
"Spencer",
"Spinka",
"Sporer",
"Stamm",
"Stanton",
"Stark",
"Stehr",
"Steuber",
"Stiedemann",
"Stokes",
"Stoltenberg",
"Stracke",
"Streich",
"Stroman",
"Strosin",
"Swaniawski",
"Swift",
"Terry",
"Thiel",
"Thompson",
"Tillman",
"Torp",
"Torphy",
"Towne",
"Toy",
"Trantow",
"Tremblay",
"Treutel",
"Tromp",
"Turcotte",
"Turner",
"Ullrich",
"Upton",
"Vandervort",
"Veum",
"Volkman",
"Von",
"VonRueden",
"Waelchi",
"Walker",
"Walsh",
"Walter",
"Ward",
"Waters",
"Watsica",
"Weber",
"Wehner",
"Weimann",
"Weissnat",
"Welch",
"West",
"White",
"Wiegand",
"Wilderman",
"Wilkinson",
"Will",
"Williamson",
"Willms",
"Windler",
"Wintheiser",
"Wisoky",
"Wisozk",
"Witting",
"Wiza",
"Wolf",
"Wolff",
"Wuckert",
"Wunsch",
"Wyman",
"Yost",
"Yundt",
"Zboncak",
"Zemlak",
"Ziemann",
"Zieme",
"Zulauf"
],
"prefix": [
"Mr.",
"Mrs.",
"Ms.",
"Miss",
"Dr."
],
"suffix": [
"Jr.",
"Sr.",
"I",
"II",
"III",
"IV",
"V",
"MD",
"DDS",
"PhD",
"DVM"
],
"title": {
"descriptor": [
"Lead",
"Senior",
"Direct",
"Corporate",
"Dynamic",
"Future",
"Product",
"National",
"Regional",
"District",
"Central",
"Global",
"Customer",
"Investor",
"Dynamic",
"International",
"Legacy",
"Forward",
"Internal",
"Human",
"Chief",
"Principal"
],
"level": [
"Solutions",
"Program",
"Brand",
"Security",
"Research",
"Marketing",
"Directives",
"Implementation",
"Integration",
"Functionality",
"Response",
"Paradigm",
"Tactics",
"Identity",
"Markets",
"Group",
"Division",
"Applications",
"Optimization",
"Operations",
"Infrastructure",
"Intranet",
"Communications",
"Web",
"Branding",
"Quality",
"Assurance",
"Mobility",
"Accounts",
"Data",
"Creative",
"Configuration",
"Accountability",
"Interactions",
"Factors",
"Usability",
"Metrics"
],
"job": [
"Supervisor",
"Associate",
"Executive",
"Liason",
"Officer",
"Manager",
"Engineer",
"Specialist",
"Director",
"Coordinator",
"Administrator",
"Architect",
"Analyst",
"Designer",
"Planner",
"Orchestrator",
"Technician",
"Developer",
"Producer",
"Consultant",
"Assistant",
"Facilitator",
"Agent",
"Representative",
"Strategist"
]
},
"name": [
"#{prefix} #{first_name} #{last_name}",
"#{first_name} #{last_name} #{suffix}",
"#{first_name} #{last_name}",
"#{first_name} #{last_name}",
"#{first_name} #{last_name}",
"#{first_name} #{last_name}"
]
};
en.phone_number = {
"formats": [
"###-###-####",
"(###) ###-####",
"1-###-###-####",
"###.###.####",
"###-###-####",
"(###) ###-####",
"1-###-###-####",
"###.###.####",
"###-###-#### x###",
"(###) ###-#### x###",
"1-###-###-#### x###",
"###.###.#### x###",
"###-###-#### x####",
"(###) ###-#### x####",
"1-###-###-#### x####",
"###.###.#### x####",
"###-###-#### x#####",
"(###) ###-#### x#####",
"1-###-###-#### x#####",
"###.###.#### x#####"
]
};
en.cell_phone = {
"formats": [
"###-###-####",
"(###) ###-####",
"1-###-###-####",
"###.###.####"
]
};
en.business = {
"credit_card_numbers": [
"1234-2121-1221-1211",
"1212-1221-1121-1234",
"1211-1221-1234-2201",
"1228-1221-1221-1431"
],
"credit_card_expiry_dates": [
"2011-10-12",
"2012-11-12",
"2015-11-11",
"2013-9-12"
],
"credit_card_types": [
"visa",
"mastercard",
"americanexpress",
"discover"
]
};
en.commerce = {
"color": [
"red",
"green",
"blue",
"yellow",
"purple",
"mint green",
"teal",
"white",
"black",
"orange",
"pink",
"grey",
"maroon",
"violet",
"turquoise",
"tan",
"sky blue",
"salmon",
"plum",
"orchid",
"olive",
"magenta",
"lime",
"ivory",
"indigo",
"gold",
"fuchsia",
"cyan",
"azure",
"lavender",
"silver"
],
"department": [
"Books",
"Movies",
"Music",
"Games",
"Electronics",
"Computers",
"Home",
"Garden",
"Tools",
"Grocery",
"Health",
"Beauty",
"Toys",
"Kids",
"Baby",
"Clothing",
"Shoes",
"Jewelery",
"Sports",
"Outdoors",
"Automotive",
"Industrial"
],
"product_name": {
"adjective": [
"Small",
"Ergonomic",
"Rustic",
"Intelligent",
"Gorgeous",
"Incredible",
"Fantastic",
"Practical",
"Sleek",
"Awesome"
],
"material": [
"Steel",
"Wooden",
"Concrete",
"Plastic",
"Cotton",
"Granite",
"Rubber"
],
"product": [
"Chair",
"Car",
"Computer",
"Gloves",
"Pants",
"Shirt",
"Table",
"Shoes",
"Hat"
]
}
};
en.team = {
"creature": [
"ants",
"bats",
"bears",
"bees",
"birds",
"buffalo",
"cats",
"chickens",
"cattle",
"dogs",
"dolphins",
"ducks",
"elephants",
"fishes",
"foxes",
"frogs",
"geese",
"goats",
"horses",
"kangaroos",
"lions",
"monkeys",
"owls",
"oxen",
"penguins",
"people",
"pigs",
"rabbits",
"sheep",
"tigers",
"whales",
"wolves",
"zebras",
"banshees",
"crows",
"black cats",
"chimeras",
"ghosts",
"conspirators",
"dragons",
"dwarves",
"elves",
"enchanters",
"exorcists",
"sons",
"foes",
"giants",
"gnomes",
"goblins",
"gooses",
"griffins",
"lycanthropes",
"nemesis",
"ogres",
"oracles",
"prophets",
"sorcerors",
"spiders",
"spirits",
"vampires",
"warlocks",
"vixens",
"werewolves",
"witches",
"worshipers",
"zombies",
"druids"
],
"name": [
"#{Address.state} #{creature}"
]
};
en.hacker = {
"abbreviation": [
"TCP",
"HTTP",
"SDD",
"RAM",
"GB",
"CSS",
"SSL",
"AGP",
"SQL",
"FTP",
"PCI",
"AI",
"ADP",
"RSS",
"XML",
"EXE",
"COM",
"HDD",
"THX",
"SMTP",
"SMS",
"USB",
"PNG",
"SAS",
"IB",
"SCSI",
"JSON",
"XSS",
"JBOD"
],
"adjective": [
"auxiliary",
"primary",
"back-end",
"digital",
"open-source",
"virtual",
"cross-platform",
"redundant",
"online",
"haptic",
"multi-byte",
"bluetooth",
"wireless",
"1080p",
"neural",
"optical",
"solid state",
"mobile"
],
"noun": [
"driver",
"protocol",
"bandwidth",
"panel",
"microchip",
"program",
"port",
"card",
"array",
"interface",
"system",
"sensor",
"firewall",
"hard drive",
"pixel",
"alarm",
"feed",
"monitor",
"application",
"transmitter",
"bus",
"circuit",
"capacitor",
"matrix"
],
"verb": [
"back up",
"bypass",
"hack",
"override",
"compress",
"copy",
"navigate",
"index",
"connect",
"generate",
"quantify",
"calculate",
"synthesize",
"input",
"transmit",
"program",
"reboot",
"parse"
],
"ingverb": [
"backing up",
"bypassing",
"hacking",
"overriding",
"compressing",
"copying",
"navigating",
"indexing",
"connecting",
"generating",
"quantifying",
"calculating",
"synthesizing",
"transmitting",
"programming",
"parsing"
]
};
en.app = {
"name": [
"Redhold",
"Treeflex",
"Trippledex",
"Kanlam",
"Bigtax",
"Daltfresh",
"Toughjoyfax",
"Mat Lam Tam",
"Otcom",
"Tres-Zap",
"Y-Solowarm",
"Tresom",
"Voltsillam",
"Biodex",
"Greenlam",
"Viva",
"Matsoft",
"Temp",
"Zoolab",
"Subin",
"Rank",
"Job",
"Stringtough",
"Tin",
"It",
"Home Ing",
"Zamit",
"Sonsing",
"Konklab",
"Alpha",
"Latlux",
"Voyatouch",
"Alphazap",
"Holdlamis",
"Zaam-Dox",
"Sub-Ex",
"Quo Lux",
"Bamity",
"Ventosanzap",
"Lotstring",
"Hatity",
"Tempsoft",
"Overhold",
"Fixflex",
"Konklux",
"Zontrax",
"Tampflex",
"Span",
"Namfix",
"Transcof",
"Stim",
"Fix San",
"Sonair",
"Stronghold",
"Fintone",
"Y-find",
"Opela",
"Lotlux",
"Ronstring",
"Zathin",
"Duobam",
"Keylex"
],
"version": [
"0.#.#",
"0.##",
"#.##",
"#.#",
"#.#.#"
],
"author": [
"#{Name.name}",
"#{Company.name}"
]
};
en.finance = {};
en.finance.account_type = ["Checking","Savings","Money Market", "Investment", "Home Loan", "Credit Card", "Auto Loan", "Personal Loan"];
en.finance.transaction_type = ["deposit", "withdrawal", "payment", "invoice"];
en.finance.currency = {
"UAE Dirham": {
"code": "AED",
"symbol": ""
},
"Afghani": {
"code": "AFN",
"symbol": "؋"
},
"Lek": {
"code": "ALL",
"symbol": "Lek"
},
"Armenian Dram": {
"code": "AMD",
"symbol": ""
},
"Netherlands Antillian Guilder": {
"code": "ANG",
"symbol": "ƒ"
},
"Kwanza": {
"code": "AOA",
"symbol": ""
},
"Argentine Peso": {
"code": "ARS",
"symbol": "$"
},
"Australian Dollar": {
"code": "AUD",
"symbol": "$"
},
"Aruban Guilder": {
"code": "AWG",
"symbol": "ƒ"
},
"Azerbaijanian Manat": {
"code": "AZN",
"symbol": "ман"
},
"Convertible Marks": {
"code": "BAM",
"symbol": "KM"
},
"Barbados Dollar": {
"code": "BBD",
"symbol": "$"
},
"Taka": {
"code": "BDT",
"symbol": ""
},
"Bulgarian Lev": {
"code": "BGN",
"symbol": "лв"
},
"Bahraini Dinar": {
"code": "BHD",
"symbol": ""
},
"Burundi Franc": {
"code": "BIF",
"symbol": ""
},
"Bermudian Dollar (customarily known as Bermuda Dollar)": {
"code": "BMD",
"symbol": "$"
},
"Brunei Dollar": {
"code": "BND",
"symbol": "$"
},
"Boliviano Mvdol": {
"code": "BOB BOV",
"symbol": "$b"
},
"Brazilian Real": {
"code": "BRL",
"symbol": "R$"
},
"Bahamian Dollar": {
"code": "BSD",
"symbol": "$"
},
"Pula": {
"code": "BWP",
"symbol": "P"
},
"Belarussian Ruble": {
"code": "BYR",
"symbol": "p."
},
"Belize Dollar": {
"code": "BZD",
"symbol": "BZ$"
},
"Canadian Dollar": {
"code": "CAD",
"symbol": "$"
},
"Congolese Franc": {
"code": "CDF",
"symbol": ""
},
"Swiss Franc": {
"code": "CHF",
"symbol": "CHF"
},
"Chilean Peso Unidades de fomento": {
"code": "CLP CLF",
"symbol": "$"
},
"Yuan Renminbi": {
"code": "CNY",
"symbol": "¥"
},
"Colombian Peso Unidad de Valor Real": {
"code": "COP COU",
"symbol": "$"
},
"Costa Rican Colon": {
"code": "CRC",
"symbol": "₡"
},
"Cuban Peso Peso Convertible": {
"code": "CUP CUC",
"symbol": "₱"
},
"Cape Verde Escudo": {
"code": "CVE",
"symbol": ""
},
"Czech Koruna": {
"code": "CZK",
"symbol": "Kč"
},
"Djibouti Franc": {
"code": "DJF",
"symbol": ""
},
"Danish Krone": {
"code": "DKK",
"symbol": "kr"
},
"Dominican Peso": {
"code": "DOP",
"symbol": "RD$"
},
"Algerian Dinar": {
"code": "DZD",
"symbol": ""
},
"Kroon": {
"code": "EEK",
"symbol": ""
},
"Egyptian Pound": {
"code": "EGP",
"symbol": "£"
},
"Nakfa": {
"code": "ERN",
"symbol": ""
},
"Ethiopian Birr": {
"code": "ETB",
"symbol": ""
},
"Euro": {
"code": "EUR",
"symbol": "€"
},
"Fiji Dollar": {
"code": "FJD",
"symbol": "$"
},
"Falkland Islands Pound": {
"code": "FKP",
"symbol": "£"
},
"Pound Sterling": {
"code": "GBP",
"symbol": "£"
},
"Lari": {
"code": "GEL",
"symbol": ""
},
"Cedi": {
"code": "GHS",
"symbol": ""
},
"Gibraltar Pound": {
"code": "GIP",
"symbol": "£"
},
"Dalasi": {
"code": "GMD",
"symbol": ""
},
"Guinea Franc": {
"code": "GNF",
"symbol": ""
},
"Quetzal": {
"code": "GTQ",
"symbol": "Q"
},
"Guyana Dollar": {
"code": "GYD",
"symbol": "$"
},
"Hong Kong Dollar": {
"code": "HKD",
"symbol": "$"
},
"Lempira": {
"code": "HNL",
"symbol": "L"
},
"Croatian Kuna": {
"code": "HRK",
"symbol": "kn"
},
"Gourde US Dollar": {
"code": "HTG USD",
"symbol": ""
},
"Forint": {
"code": "HUF",
"symbol": "Ft"
},
"Rupiah": {
"code": "IDR",
"symbol": "Rp"
},
"New Israeli Sheqel": {
"code": "ILS",
"symbol": "₪"
},
"Indian Rupee": {
"code": "INR",
"symbol": ""
},
"Indian Rupee Ngultrum": {
"code": "INR BTN",
"symbol": ""
},
"Iraqi Dinar": {
"code": "IQD",
"symbol": ""
},
"Iranian Rial": {
"code": "IRR",
"symbol": "﷼"
},
"Iceland Krona": {
"code": "ISK",
"symbol": "kr"
},
"Jamaican Dollar": {
"code": "JMD",
"symbol": "J$"
},
"Jordanian Dinar": {
"code": "JOD",
"symbol": ""
},
"Yen": {
"code": "JPY",
"symbol": "¥"
},
"Kenyan Shilling": {
"code": "KES",
"symbol": ""
},
"Som": {
"code": "KGS",
"symbol": "лв"
},
"Riel": {
"code": "KHR",
"symbol": "៛"
},
"Comoro Franc": {
"code": "KMF",
"symbol": ""
},
"North Korean Won": {
"code": "KPW",
"symbol": "₩"
},
"Won": {
"code": "KRW",
"symbol": "₩"
},
"Kuwaiti Dinar": {
"code": "KWD",
"symbol": ""
},
"Cayman Islands Dollar": {
"code": "KYD",
"symbol": "$"
},
"Tenge": {
"code": "KZT",
"symbol": "лв"
},
"Kip": {
"code": "LAK",
"symbol": "₭"
},
"Lebanese Pound": {
"code": "LBP",
"symbol": "£"
},
"Sri Lanka Rupee": {
"code": "LKR",
"symbol": "₨"
},
"Liberian Dollar": {
"code": "LRD",
"symbol": "$"
},
"Lithuanian Litas": {
"code": "LTL",
"symbol": "Lt"
},
"Latvian Lats": {
"code": "LVL",
"symbol": "Ls"
},
"Libyan Dinar": {
"code": "LYD",
"symbol": ""
},
"Moroccan Dirham": {
"code": "MAD",
"symbol": ""
},
"Moldovan Leu": {
"code": "MDL",
"symbol": ""
},
"Malagasy Ariary": {
"code": "MGA",
"symbol": ""
},
"Denar": {
"code": "MKD",
"symbol": "ден"
},
"Kyat": {
"code": "MMK",
"symbol": ""
},
"Tugrik": {
"code": "MNT",
"symbol": "₮"
},
"Pataca": {
"code": "MOP",
"symbol": ""
},
"Ouguiya": {
"code": "MRO",
"symbol": ""
},
"Mauritius Rupee": {
"code": "MUR",
"symbol": "₨"
},
"Rufiyaa": {
"code": "MVR",
"symbol": ""
},
"Kwacha": {
"code": "MWK",
"symbol": ""
},
"Mexican Peso Mexican Unidad de Inversion (UDI)": {
"code": "MXN MXV",
"symbol": "$"
},
"Malaysian Ringgit": {
"code": "MYR",
"symbol": "RM"
},
"Metical": {
"code": "MZN",
"symbol": "MT"
},
"Naira": {
"code": "NGN",
"symbol": "₦"
},
"Cordoba Oro": {
"code": "NIO",
"symbol": "C$"
},
"Norwegian Krone": {
"code": "NOK",
"symbol": "kr"
},
"Nepalese Rupee": {
"code": "NPR",
"symbol": "₨"
},
"New Zealand Dollar": {
"code": "NZD",
"symbol": "$"
},
"Rial Omani": {
"code": "OMR",
"symbol": "﷼"
},
"Balboa US Dollar": {
"code": "PAB USD",
"symbol": "B/."
},
"Nuevo Sol": {
"code": "PEN",
"symbol": "S/."
},
"Kina": {
"code": "PGK",
"symbol": ""
},
"Philippine Peso": {
"code": "PHP",
"symbol": "Php"
},
"Pakistan Rupee": {
"code": "PKR",
"symbol": "₨"
},
"Zloty": {
"code": "PLN",
"symbol": "zł"
},
"Guarani": {
"code": "PYG",
"symbol": "Gs"
},
"Qatari Rial": {
"code": "QAR",
"symbol": "﷼"
},
"New Leu": {
"code": "RON",
"symbol": "lei"
},
"Serbian Dinar": {
"code": "RSD",
"symbol": "Дин."
},
"Russian Ruble": {
"code": "RUB",
"symbol": "руб"
},
"Rwanda Franc": {
"code": "RWF",
"symbol": ""
},
"Saudi Riyal": {
"code": "SAR",
"symbol": "﷼"
},
"Solomon Islands Dollar": {
"code": "SBD",
"symbol": "$"
},
"Seychelles Rupee": {
"code": "SCR",
"symbol": "₨"
},
"Sudanese Pound": {
"code": "SDG",
"symbol": ""
},
"Swedish Krona": {
"code": "SEK",
"symbol": "kr"
},
"Singapore Dollar": {
"code": "SGD",
"symbol": "$"
},
"Saint Helena Pound": {
"code": "SHP",
"symbol": "£"
},
"Leone": {
"code": "SLL",
"symbol": ""
},
"Somali Shilling": {
"code": "SOS",
"symbol": "S"
},
"Surinam Dollar": {
"code": "SRD",
"symbol": "$"
},
"Dobra": {
"code": "STD",
"symbol": ""
},
"El Salvador Colon US Dollar": {
"code": "SVC USD",
"symbol": "$"
},
"Syrian Pound": {
"code": "SYP",
"symbol": "£"
},
"Lilangeni": {
"code": "SZL",
"symbol": ""
},
"Baht": {
"code": "THB",
"symbol": "฿"
},
"Somoni": {
"code": "TJS",
"symbol": ""
},
"Manat": {
"code": "TMT",
"symbol": ""
},
"Tunisian Dinar": {
"code": "TND",
"symbol": ""
},
"Pa'anga": {
"code": "TOP",
"symbol": ""
},
"Turkish Lira": {
"code": "TRY",
"symbol": "TL"
},
"Trinidad and Tobago Dollar": {
"code": "TTD",
"symbol": "TT$"
},
"New Taiwan Dollar": {
"code": "TWD",
"symbol": "NT$"
},
"Tanzanian Shilling": {
"code": "TZS",
"symbol": ""
},
"Hryvnia": {
"code": "UAH",
"symbol": "₴"
},
"Uganda Shilling": {
"code": "UGX",
"symbol": ""
},
"US Dollar": {
"code": "USD",
"symbol": "$"
},
"Peso Uruguayo Uruguay Peso en Unidades Indexadas": {
"code": "UYU UYI",
"symbol": "$U"
},
"Uzbekistan Sum": {
"code": "UZS",
"symbol": "лв"
},
"Bolivar Fuerte": {
"code": "VEF",
"symbol": "Bs"
},
"Dong": {
"code": "VND",
"symbol": "₫"
},
"Vatu": {
"code": "VUV",
"symbol": ""
},
"Tala": {
"code": "WST",
"symbol": ""
},
"CFA Franc BEAC": {
"code": "XAF",
"symbol": ""
},
"Silver": {
"code": "XAG",
"symbol": ""
},
"Gold": {
"code": "XAU",
"symbol": ""
},
"Bond Markets Units European Composite Unit (EURCO)": {
"code": "XBA",
"symbol": ""
},
"European Monetary Unit (E.M.U.-6)": {
"code": "XBB",
"symbol": ""
},
"European Unit of Account 9(E.U.A.-9)": {
"code": "XBC",
"symbol": ""
},
"European Unit of Account 17(E.U.A.-17)": {
"code": "XBD",
"symbol": ""
},
"East Caribbean Dollar": {
"code": "XCD",
"symbol": "$"
},
"SDR": {
"code": "XDR",
"symbol": ""
},
"UIC-Franc": {
"code": "XFU",
"symbol": ""
},
"CFA Franc BCEAO": {
"code": "XOF",
"symbol": ""
},
"Palladium": {
"code": "XPD",
"symbol": ""
},
"CFP Franc": {
"code": "XPF",
"symbol": ""
},
"Platinum": {
"code": "XPT",
"symbol": ""
},
"Codes specifically reserved for testing purposes": {
"code": "XTS",
"symbol": ""
},
"Yemeni Rial": {
"code": "YER",
"symbol": "﷼"
},
"Rand": {
"code": "ZAR",
"symbol": "R"
},
"Rand Loti": {
"code": "ZAR LSL",
"symbol": ""
},
"Rand Namibia Dollar": {
"code": "ZAR NAD",
"symbol": ""
},
"Zambian Kwacha": {
"code": "ZMK",
"symbol": ""
},
"Zimbabwe Dollar": {
"code": "ZWL",
"symbol": ""
}
};
|
'use strict';
var StripeResource = require('../StripeResource');
var stripeMethod = StripeResource.method;
module.exports = StripeResource.extend({
path: '3d_secure',
includeBasic: [
'create',
'retrieve',
],
});
|
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.bSortable" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
oTest.fnWaitTest(
"All columns are sortable by default",
function () { $('#example thead th:eq(1)').click(); },
function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == "All others"; }
);
oTest.fnWaitTest(
"Can disable sorting from one column",
function () {
oSession.fnRestore();
$('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
"aoColumns": [
null,
{ "bSortable": false },
null,
null,
null
]
} );
$('#example thead th:eq(1)').click();
},
function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == "Firefox 1.0"; }
);
oTest.fnWaitTest(
"Disabled column has no sorting class",
null,
function () { return $('#example thead th:eq(1)').hasClass("sorting_asc") == false; }
);
oTest.fnWaitTest(
"Other columns can still sort",
function () {
$('#example thead th:eq(4)').click();
$('#example thead th:eq(4)').click();
},
function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == "Internet Explorer 4.0"; }
);
oTest.fnWaitTest(
"Disable sorting on multiple columns - no sorting classes",
function () {
oSession.fnRestore();
$('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
"aoColumns": [
null,
{ "bSortable": false },
null,
{ "bSortable": false },
null
]
} );
},
function () {
var bReturn =
$('#example thead th:eq(1)').hasClass("sorting") ||
$('#example thead th:eq(3)').hasClass("sorting")
return bReturn == false;
}
);
oTest.fnWaitTest(
"Sorting on disabled column 1 has no effect",
function () {
$('#example thead th:eq(1)').click();
},
function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == "Firefox 1.0"; }
);
oTest.fnWaitTest(
"Sorting on disabled column 2 has no effect",
function () {
$('#example thead th:eq(3)').click();
},
function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == "Firefox 1.0"; }
);
oTest.fnWaitTest(
"Second sort on disabled column 2 has no effect",
function () {
$('#example thead th:eq(3)').click();
},
function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == "Firefox 1.0"; }
);
oTest.fnWaitTest(
"Even with multiple disabled sorting columns other columns can still sort",
function () {
$('#example thead th:eq(4)').click();
$('#example thead th:eq(4)').click();
},
function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == "Internet Explorer 4.0"; }
);
oTest.fnComplete();
} );
|
var join = require('path').join,
assert = require('assert'),
mkdirp = require('mkdirp'),
lwip = require('../../'),
imgs = require('../imgs');
var tmpDir = join(__dirname, '../results'),
basename = 'contain',
current;
describe('lwip.contain', function() {
var image;
before(function(done) {
mkdirp(tmpDir, done);
});
beforeEach(function(done) {
lwip.open(imgs.png.rgb, function(err, img) {
image = img;
done(err);
});
});
afterEach(function(done) {
image.writeFile(join(tmpDir, current.join('_') + '.gif'), 'gif', {
colors: 256,
interlaced: true
}, done);
});
beforeEach(function(){
current = [ basename ];
});
describe('800X100, no color, unspecified interpolation', function() {
it('image should have the correct size', function(done) {
current.push('800X100','no_color','unspecified_inter');
image.contain(800, 100, function(err, im) {
if (err) return done(err);
assert(im.width() === 800);
assert(im.height() === 100);
done();
});
});
});
describe('100X800, no color, lanczos interpolation', function() {
it('image should have the correct size', function(done) {
current.push('100X800','no_color','lanczos');
image.contain(100, 800, 'lanczos', function(err, im) {
if (err) return done(err);
assert(im.width() === 100);
assert(im.height() === 800);
done();
});
});
});
describe('100X400, gray, unspecified interpolation', function() {
it('image should have the correct size', function(done) {
current.push('100X400','gray','unspecified_inter');
image.contain(100, 400, 'gray', function(err, im) {
if (err) return done(err);
assert(im.width() === 100);
assert(im.height() === 400);
done();
});
});
});
describe('400X100, gray, lanczos interpolation', function() {
it('image should have the correct size', function(done) {
current.push('400X100','gray','lanczos');
image.contain(400, 100, 'gray', 'lanczos', function(err, im) {
if (err) return done(err);
assert(im.width() === 400);
assert(im.height() === 100);
done();
});
});
});
});
|
/*
* Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*
*/
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
/*global define */
define({
/**
* Errors
*/
// General file io error strings
"GENERIC_ERROR" : "(помилка {0})",
"NOT_FOUND_ERR" : "Файл не знайдено.",
"NOT_READABLE_ERR" : "Не вдається прочитати файл.",
"EXCEEDS_MAX_FILE_SIZE" : "{APP_NAME} не працює з файлами, що перевищують {0} Мб.",
"NO_MODIFICATION_ALLOWED_ERR" : "Не вдається внести зміни до цільової теки.",
"NO_MODIFICATION_ALLOWED_ERR_FILE" : "Ваших повноважень недостатньо, аби вносити змінити.",
"CONTENTS_MODIFIED_ERR" : "Файл змінено за межами {APP_NAME}.",
"UNSUPPORTED_ENCODING_ERR" : "{APP_NAME} наразі підтримує тільки текстові файли у кодуванні UTF-8.",
"FILE_EXISTS_ERR" : "Файл або така уже існує.",
"FILE" : "файл",
"FILE_TITLE" : "Файл",
"DIRECTORY" : "тека",
"DIRECTORY_TITLE" : "Тека",
"DIRECTORY_NAMES_LEDE" : "Назви тек",
"FILENAMES_LEDE" : "Назви файлів",
"FILENAME" : "Назва файлу",
"DIRECTORY_NAME" : "Назва теки",
// Project error strings
"ERROR_LOADING_PROJECT" : "Помилка завантаження проекту",
"OPEN_DIALOG_ERROR" : "Під час показу діалогу відкриття файлу виникла помилка. (помилка {0})",
"REQUEST_NATIVE_FILE_SYSTEM_ERROR" : "Виникла помилка під час спроби відкрити теку <span class=\'dialog-filename\'>{0}</span>. (помилка {1})",
"READ_DIRECTORY_ENTRIES_ERROR" : "Виникла помилка під час спроби прочитати вміст теки <span class=\'dialog-filename\'>{0}</span>. (помилка {1})",
// File open/save error string
"ERROR_OPENING_FILE_TITLE" : "Помилка відкриття файлу",
"ERROR_OPENING_FILE" : "Виникла помилка під час спроби відкрити файл <span class=\'dialog-filename\'>{0}</span>. {1}",
"ERROR_OPENING_FILES" : "Під час відкриття наступних файлів виникли помилки:",
"ERROR_RELOADING_FILE_TITLE" : "Помилка перевантаження змін з диску",
"ERROR_RELOADING_FILE" : "Сталась помилка під час спроби перевантаження файлу <span class=\'dialog-filename\'>{0}</span>. {1}",
"ERROR_SAVING_FILE_TITLE" : "Помилка збереження файлу",
"ERROR_SAVING_FILE" : "Сталась помилка під час спроби збереження файлу <span class=\'dialog-filename\'>{0}</span>. {1}",
"ERROR_RENAMING_FILE_TITLE" : "Помилка під час перейменування {0}",
"ERROR_RENAMING_FILE" : "Сталась помилка під час спроби перейменувати файл {2} <span class=\'dialog-filename\'>{0}</span>. {1}",
"ERROR_DELETING_FILE_TITLE" : "Помилка видалення {0}",
"ERROR_DELETING_FILE" : "Сталась помилка під час проби видалити {2} <span class=\'dialog-filename\'>{0}</span>. {1}",
"INVALID_FILENAME_TITLE" : "Невірна {0}",
"INVALID_FILENAME_MESSAGE" : "{0} не може містити зарезервованих слів, закінчуватись крапками (.) та використовувати наступні симовли: <code class=\'emphasized\'>{1}</code>",
"ENTRY_WITH_SAME_NAME_EXISTS" : "Файл або тека з назвою <span class=\'dialog-filename\'>{0}</span> уже існує.",
"ERROR_CREATING_FILE_TITLE" : "Помилка створення {0}",
"ERROR_CREATING_FILE" : "Сталась помилка під час спроби створити файл {0} <span class=\'dialog-filename\'>{1}</span>. {2}",
"ERROR_MIXED_DRAGDROP" : "Не можна відкривати теку одночасно відкриваючи інші файли",
// User key map error strings
"ERROR_KEYMAP_TITLE" : "Не вдалось прочитати карту прив’язок клавіш",
"ERROR_KEYMAP_CORRUPT" : "У вашому файлі помилкова структура JSON. Файли буде відкрито, аби ви могли її виправити.",
"ERROR_LOADING_KEYMAP" : "Ваш файл не у кодуванні UTF-8 і не може бути завантаженим",
"ERROR_RESTRICTED_COMMANDS" : "Ви не можете переприв’язати клавіатурні скорочення для команд: {0}",
"ERROR_RESTRICTED_SHORTCUTS" : "Ви не можете переприв’язати ці клавіатурні скорочення: {0}",
"ERROR_MULTIPLE_SHORTCUTS" : "Ви переприв’язуєте кілька клавіатурних скорочень для команд: {0}",
"ERROR_DUPLICATE_SHORTCUTS" : "У вас кілька прив’язок до цих комбінацій: {0}",
"ERROR_INVALID_SHORTCUTS" : "Це клавіатурне скорочення помилкове: {0}",
"ERROR_NONEXISTENT_COMMANDS" : "Ви назначили клавіатурне скорочення для неіснуючій команді: {0}",
// Application preferences corrupt error strings
"ERROR_PREFS_CORRUPT_TITLE" : "Помилка читання налаштувань",
"ERROR_PREFS_CORRUPT" : "Ваш файл налаштувань не відповідає правилам формату JSON. Файл буде відкрито для виправлення. Після цього потрібно буде перезапустити {APP_NAME}, аби зміни набули чинності.",
// Application error strings
"ERROR_IN_BROWSER_TITLE" : "Ой! {APP_NAME} ще не працює у браузерах.",
"ERROR_IN_BROWSER" : "{APP_NAME} створено на базі веб-технологій, але наразі працює як звичайна програма аби мати змогу редагувати локальні файли. Будь ласка, скористайтесь спеціальною оболонкою на <b>github.com/adobe/brackets-shell</b> для запуску {APP_NAME}.",
// ProjectManager max files error string
"ERROR_MAX_FILES_TITLE" : "Помилка індексації файлів",
"ERROR_MAX_FILES" : "Цей проект містить більше 30 000 файлів. Функції, що оперують кількома файлам можуть не працювати правильно або вимкнутись. <a href=\'https://github.com/adobe/brackets/wiki/Large-Projects\'>Дізнайтесь більше про роботу програми під час відкриття великих проектів</a>.",
// Live Preview error strings
"ERROR_LAUNCHING_BROWSER_TITLE" : "Помилка запуску браузера",
"ERROR_CANT_FIND_CHROME" : "Не знайдено браузер Google Chrome. Переконайтесь, будь ласка, що він встановлений.",
"ERROR_LAUNCHING_BROWSER" : "Під час запуску браузера сталася помилка. (помилка {0})",
"LIVE_DEVELOPMENT_ERROR_TITLE" : "Помилка Live Preview",
"LIVE_DEVELOPMENT_RELAUNCH_TITLE" : "Підключення до броузера",
"LIVE_DEVELOPMENT_ERROR_MESSAGE" : "Live Preview потребує перезапустити Chrome з увімкненням віддаленого відлагодження.<br /><br />Бажаєте виконати це?<br /><br />",
"LIVE_DEV_LOADING_ERROR_MESSAGE" : "Помилка завантаження сторінки Live Preview.",
"LIVE_DEV_NEED_HTML_MESSAGE" : "Відкрийте файл HTML або ж переконайтесь, що для запуску live preview у вашому проекті існує файл index.html.",
"LIVE_DEV_NEED_BASEURL_MESSAGE" : "Аби запустити live preview з серверним файлом, вам варто вказати базову адресу для цього проекту.",
"LIVE_DEV_SERVER_NOT_READY_MESSAGE" : "Помилка запуску HTTP-сервера для live preview. Будь ласка, спробуйте пізніше.",
"LIVE_DEVELOPMENT_INFO_TITLE" : "Вітаємо у Live Preview!",
"LIVE_DEVELOPMENT_INFO_MESSAGE" : "Live Preview підключає {APP_NAME} до вашого браузера та забезпечує попередній перегляд файлів HTML. Функція оновлює попередній перегляд одразу, як ви вносите зміни в код.<br /><br />У цій ранній збірці {APP_NAME}, Live Preview працює тільки з <strong>Google Chrome</strong> і оновлення в реальному часі відображається тільки для <strong>файлів CSS та HTML</strong>. Зміни до файлів JavaScript вносяться автоматично під час збереження.<br /><br />(Це повідомлення більше не турбуватиме вас.)",
"LIVE_DEVELOPMENT_TROUBLESHOOTING" : "Для докладнішої інформації погляньте на <a href=\'{0}\' title=\'{0}\'>пошук та усунення помилок підключення Live Preview</a>.",
"LIVE_DEV_STATUS_TIP_NOT_CONNECTED" : "Live Preview",
"LIVE_DEV_STATUS_TIP_PROGRESS1" : "Live Preview: Підключення\u2026",
"LIVE_DEV_STATUS_TIP_PROGRESS2" : "Live Preview: Ініціалізація\u2026",
"LIVE_DEV_STATUS_TIP_CONNECTED" : "Відключити Live Preview",
"LIVE_DEV_STATUS_TIP_OUT_OF_SYNC" : "Live Preview (збережіть файл для оновлення)",
"LIVE_DEV_STATUS_TIP_SYNC_ERROR" : "Live Preview (не оновлюється, якщо є помилки)",
"LIVE_DEV_DETACHED_REPLACED_WITH_DEVTOOLS" : "Live Preview зупинено, оскільки в браузері відкрито панель інструментів розробника",
"LIVE_DEV_DETACHED_TARGET_CLOSED" : "Live Preview зупинено, оскільки сторінку закрито в браузері",
"LIVE_DEV_NAVIGATED_AWAY" : "Live Preview зупинено, оскільки браузер перенаправлено на сторінку, що не є частиною поточного проекту",
"LIVE_DEV_CLOSED_UNKNOWN_REASON" : "Live Preview скасовано з невідомих причин ({0})",
"SAVE_CLOSE_TITLE" : "Зберегти зміни",
"SAVE_CLOSE_MESSAGE" : "Чи бажаєте ви зберегти зміни внесені у файл <span class=\'dialog-filename\'>{0}</span>?",
"SAVE_CLOSE_MULTI_MESSAGE" : "Чи бажаєте ви зберегти зміни до наступних файлів?",
"EXT_MODIFIED_TITLE" : "Зовнішні зміни",
"CONFIRM_FOLDER_DELETE_TITLE" : "Підтвердження видалення",
"CONFIRM_FOLDER_DELETE" : "Ви дійсно хочете видалити теку <span class=\'dialog-filename\'>{0}</span>?",
"FILE_DELETED_TITLE" : "Файл видалено",
"EXT_MODIFIED_WARNING" : "<span class=\'dialog-filename\'>{0}</span> змінено на диску.<br /><br />Чи ви хочете зберегти файл і перезаписати ці зміни?",
"EXT_MODIFIED_MESSAGE" : "<span class=\'dialog-filename\'>{0}</span> змінено на диску, проте існують також не збережені зміни у {APP_NAME}.<br /><br />Яку версію ви бажаєте лишити?",
"EXT_DELETED_MESSAGE" : "<span class=\'dialog-filename\'>{0}</span> видалено з диску, але {APP_NAME} містить не збережені в нього зміни.<br /><br />Чи бажаєте ви залишити їх?",
// Generic dialog/button labels
"DONE" : "Готово",
"OK" : "OK",
"CANCEL" : "Скасувати",
"DONT_SAVE" : "Не зберігати зміни",
"SAVE" : "Зберегти",
"SAVE_AS" : "Зберегти як\u2026",
"SAVE_AND_OVERWRITE" : "Перезаписати",
"DELETE" : "Видалити",
"BUTTON_YES" : "Так",
"BUTTON_NO" : "Ні",
// Find, Replace, Find in Files
"FIND_MATCH_INDEX" : "{0} з {1}",
"FIND_NO_RESULTS" : "Жодних результатів",
"FIND_QUERY_PLACEHOLDER" : "Хочу знайти\u2026",
"REPLACE_PLACEHOLDER" : "Замінити на\u2026",
"BUTTON_REPLACE_ALL" : "Усе\u2026",
"BUTTON_REPLACE_ALL_IN_FILES" : "Замінити\u2026",
"BUTTON_REPLACE" : "Замінити",
"BUTTON_NEXT" : "\u25B6",
"BUTTON_PREV" : "\u25C0",
"BUTTON_NEXT_HINT" : "Наступний збіг",
"BUTTON_PREV_HINT" : "Попередній збіг",
"BUTTON_CASESENSITIVE_HINT" : "Враховувати регістр",
"BUTTON_REGEXP_HINT" : "Регулярний вираз",
"REPLACE_WITHOUT_UNDO_WARNING_TITLE" : "Замінити без можливості скасування",
"REPLACE_WITHOUT_UNDO_WARNING" : "Оскільки більше {0} файлів потрібно змінити, {APP_NAME} виконає заміну невідкритих файлів безпосередньо на диску.<br />Ви не зможете скасувати цю дію.",
"BUTTON_REPLACE_WITHOUT_UNDO" : "Замінити без можливості скасування",
"OPEN_FILE" : "Відкрити файл",
"SAVE_FILE_AS" : "Зберегти файл",
"CHOOSE_FOLDER" : "Оберіть теку",
"RELEASE_NOTES" : "Примітки до випуску",
"NO_UPDATE_TITLE" : "У вас найновіша версія!",
"NO_UPDATE_MESSAGE" : "Ви користуєтесь останньою версією {APP_NAME}.",
// Find and Replace
"FIND_REPLACE_TITLE_LABEL" : "Заміна",
"FIND_REPLACE_TITLE_WITH" : "на",
"FIND_TITLE_LABEL" : "Знайдене",
"FIND_TITLE_SUMMARY" : "— {0} {1} {2} у {3}",
// Find in Files
"FIND_NUM_FILES" : "{0} {1}",
"FIND_IN_FILES_SCOPED" : "у <span class=\'dialog-filename\'>{0}</span>",
"FIND_IN_FILES_NO_SCOPE" : "у проекті",
"FIND_IN_FILES_ZERO_FILES" : "Фільтр не включає всі файли {0}",
"FIND_IN_FILES_FILE" : "файл",
"FIND_IN_FILES_FILES" : "файлів",
"FIND_IN_FILES_MATCH" : "збіг",
"FIND_IN_FILES_MATCHES" : "збігів",
"FIND_IN_FILES_MORE_THAN" : "Більше ",
"FIND_IN_FILES_PAGING" : "{0}—{1}",
"FIND_IN_FILES_FILE_PATH" : "<span class=\'dialog-filename\'>{0}</span> {2} <span class=\'dialog-path\'>{1}</span>", // We should use normal dashes on Windows instead of em dash eventually
"FIND_IN_FILES_EXPAND_COLLAPSE" : "Ctrl/Cmd+клік згорнути/розгорнути все",
"REPLACE_IN_FILES_ERRORS_TITLE" : "Помилки під час заміни",
"REPLACE_IN_FILES_ERRORS" : "Наступні файли не змінено, оскільки вони змінились після пошуку аби недоступні для запису.",
"ERROR_FETCHING_UPDATE_INFO_TITLE" : "Сталась помилка під час отримання даних про оновлення",
"ERROR_FETCHING_UPDATE_INFO_MSG" : "Помилка отримання з сервера інформації про оновлення. Переконайтесь, що маєте доступ до інтернету та спробуйте знову.",
// File exclusion filters
"NEW_FILE_FILTER" : "Новий набір виключень\u2026",
"CLEAR_FILE_FILTER" : "Не виключати файли",
"NO_FILE_FILTER" : "Жодного файлу не виключено",
"EXCLUDE_FILE_FILTER" : "Не включати {0}",
"EDIT_FILE_FILTER" : "Змінити\u2026",
"FILE_FILTER_DIALOG" : "Змінити набір виключень",
"FILE_FILTER_INSTRUCTIONS" : "Всі файли та таки, що підпадають під ці рядки, підрядки або <a href=\'{0}\' title=\'{0}\'>шаблони</a> будуть виключені. Вказуйте кожне правило з нового рядка.",
"FILTER_NAME_PLACEHOLDER" : "Назва набору виключень (не обов’язково)",
"FILE_FILTER_CLIPPED_SUFFIX" : "і ще {0}",
"FILTER_COUNTING_FILES" : "Підрахунок файлів\u2026",
"FILTER_FILE_COUNT" : "Відбирає {0} з {1} файлів {2}",
"FILTER_FILE_COUNT_ALL" : "Відбирає всі {0} файлів {1}",
// Quick Edit
"ERROR_QUICK_EDIT_PROVIDER_NOT_FOUND" : "Швидке редагування не доступне для поточного розміщення курсора",
"ERROR_CSSQUICKEDIT_BETWEENCLASSES" : "Швидке редагування CSS: помістіть курсор на один клас",
"ERROR_CSSQUICKEDIT_CLASSNOTFOUND" : "Швидке редагування CSS: атрибут класу незавершено",
"ERROR_CSSQUICKEDIT_IDNOTFOUND" : "Швидке редагування CSS: атрибут ID незавершено",
"ERROR_CSSQUICKEDIT_UNSUPPORTEDATTR" : "Швидке редагування CSS: помістіть курсор на мітку, клас або ID",
"ERROR_TIMINGQUICKEDIT_INVALIDSYNTAX" : "Швидке редагування часової функції CSS: невірний синтаксис",
"ERROR_JSQUICKEDIT_FUNCTIONNOTFOUND" : "Швидке редагування JS: помістіть курсор на назву функції",
// Quick Docs
"ERROR_QUICK_DOCS_PROVIDER_NOT_FOUND" : "Для поточного розміщення курсора швидка документація відсутня",
/**
* ProjectManager
*/
"PROJECT_LOADING" : "Завантаження\u2026",
"UNTITLED" : "Без-назви",
"WORKING_FILES" : "Робочі файли",
/**
* MainViewManager
*/
"TOP" : "Верхня",
"BOTTOM" : "Нижня",
"LEFT" : "Ліва",
"RIGHT" : "Права",
"CMD_SPLITVIEW_NONE" : "Не розділяти",
"CMD_SPLITVIEW_VERTICAL" : "Вертикальне розділення",
"CMD_SPLITVIEW_HORIZONTAL" : "Горизонтальне розділення",
"SPLITVIEW_MENU_TOOLTIP" : "Розділити редактор горизонтально або вертикально",
"GEAR_MENU_TOOLTIP" : "Налаштувати робочий набір",
"SPLITVIEW_INFO_TITLE" : "Уже відкрито",
"SPLITVIEW_MULTIPANE_WARNING" : "Цей файл відкрито в іншій панелі. {APP_NAME} незабаром підтримуватиме відкриття файлу в кількох панелях одночасно. А до того часу, файл буде показуватись у тій панелі, у якій уже відкритий.<br /><br />(Ви більше не бачитимете цього повідомлення.)",
/**
* Keyboard modifier names
*/
"KEYBOARD_CTRL" : "Ctrl",
"KEYBOARD_SHIFT" : "Shift",
"KEYBOARD_SPACE" : "Пробіл",
/**
* StatusBar strings
*/
"STATUSBAR_CURSOR_POSITION" : "Рядок {0}, Стовпець {1}",
"STATUSBAR_SELECTION_CH_SINGULAR" : "\u2014 Обрано {0} стовпець",
"STATUSBAR_SELECTION_CH_PLURAL" : "\u2014 Обрано {0} стовпців",
"STATUSBAR_SELECTION_LINE_SINGULAR" : "\u2014 Обрано {0} рядок",
"STATUSBAR_SELECTION_LINE_PLURAL" : "\u2014 Обрано {0} рядків",
"STATUSBAR_SELECTION_MULTIPLE" : "\u2014 обрано {0}",
"STATUSBAR_INDENT_TOOLTIP_SPACES" : "Натисніть, аби перемкнути відступи а пробіли",
"STATUSBAR_INDENT_TOOLTIP_TABS" : "Натисніть, аби перемкнути відступи а ьаби",
"STATUSBAR_INDENT_SIZE_TOOLTIP_SPACES" : "Натисніть, аби змінити кількість пробілів для відступів",
"STATUSBAR_INDENT_SIZE_TOOLTIP_TABS" : "Натисніть, аби змінити ширину символа вкладки",
"STATUSBAR_SPACES" : "Пробіли:",
"STATUSBAR_TAB_SIZE" : "Розмір вкладки:",
"STATUSBAR_LINE_COUNT_SINGULAR" : "\u2014 {0} Рядок",
"STATUSBAR_LINE_COUNT_PLURAL" : "\u2014 {0} Рядків",
"STATUSBAR_USER_EXTENSIONS_DISABLED" : "Розширення вимкнено",
"STATUSBAR_INSERT" : "ВСТ",
"STATUSBAR_OVERWRITE" : "ПРЗ",
"STATUSBAR_INSOVR_TOOLTIP" : "Натисніть, аби перемкнути режим курсору між вставкою (ВСТ) та перезаписом (ПРЗ)",
"STATUSBAR_LANG_TOOLTIP" : "Натисніть, аби змінити тип файлу",
"STATUSBAR_CODE_INSPECTION_TOOLTIP" : "{0}. Натисніть, аби перемкнути панель повідомлень.",
"STATUSBAR_DEFAULT_LANG" : "(типово)",
"STATUSBAR_SET_DEFAULT_LANG" : "Встановити типовим для файлів .{0}",
// CodeInspection: errors/warnings
"ERRORS_PANEL_TITLE_MULTIPLE" : "{0} Помилок",
"SINGLE_ERROR" : "1 помилка {0}",
"MULTIPLE_ERRORS" : "{0} помилок {1}",
"NO_ERRORS" : "Не знайдено жодної помилки {0} – гарна робота!",
"NO_ERRORS_MULTIPLE_PROVIDER" : "Не знайдено жодної помилки – гарна робота!",
"LINT_DISABLED" : "Аналіз вимкнено",
"NO_LINT_AVAILABLE" : "Для {0} відсутній аналізатор",
"NOTHING_TO_LINT" : "Нічого аналізувати",
"LINTER_TIMED_OUT" : "Аналізатором {0} перевищено час очікування у {1} мс",
"LINTER_FAILED" : "Аналізатор {0} завершився з помилкою: {1}",
/**
* Command Name Constants
*/
// File menu commands
"FILE_MENU" : "Файл",
"CMD_FILE_NEW_UNTITLED" : "Новий",
"CMD_FILE_NEW" : "Новий файл",
"CMD_FILE_NEW_FOLDER" : "Нова тека",
"CMD_FILE_OPEN" : "Відкрити\u2026",
"CMD_ADD_TO_WORKING_SET" : "Відкрити у робочому наборі",
"CMD_OPEN_DROPPED_FILES" : "Відкрити вкинуті файли",
"CMD_OPEN_FOLDER" : "Відкрити теку\u2026",
"CMD_FILE_CLOSE" : "Закрити",
"CMD_FILE_CLOSE_ALL" : "Закрити все",
"CMD_FILE_CLOSE_LIST" : "Закрити список",
"CMD_FILE_CLOSE_OTHERS" : "Закрити інші",
"CMD_FILE_CLOSE_ABOVE" : "Закрити інші ті що вище",
"CMD_FILE_CLOSE_BELOW" : "Закрити інші ті що нижче",
"CMD_FILE_SAVE" : "Зберегти",
"CMD_FILE_SAVE_ALL" : "Зберегти все",
"CMD_FILE_SAVE_AS" : "Зберегти як\u2026",
"CMD_LIVE_FILE_PREVIEW" : "Live Preview",
"CMD_RELOAD_LIVE_PREVIEW" : "Примусово перезапустити Live Preview",
"CMD_PROJECT_SETTINGS" : "Налаштування проекту\u2026",
"CMD_FILE_RENAME" : "Перейменувати",
"CMD_FILE_DELETE" : "Видалити",
"CMD_INSTALL_EXTENSION" : "Встановити розширення\u2026",
"CMD_EXTENSION_MANAGER" : "Менеджер розширень\u2026",
"CMD_FILE_REFRESH" : "Оновити дерево файлів",
"CMD_QUIT" : "Покинути програму",
// Used in native File menu on Windows
"CMD_EXIT" : "Вийти",
// Edit menu commands
"EDIT_MENU" : "Змінити",
"CMD_UNDO" : "Відмінити",
"CMD_REDO" : "Повторити",
"CMD_CUT" : "Вирізати",
"CMD_COPY" : "Копіювати",
"CMD_PASTE" : "Вставити",
"CMD_SELECT_ALL" : "Обрати все",
"CMD_SELECT_LINE" : "Обрати рядок",
"CMD_SPLIT_SEL_INTO_LINES" : "Розбити виділене на рядки",
"CMD_ADD_CUR_TO_NEXT_LINE" : "Додати курсор на наступний рядок",
"CMD_ADD_CUR_TO_PREV_LINE" : "Додати курсор на попередній рядок рядок",
"CMD_INDENT" : "Зробити відступ",
"CMD_UNINDENT" : "Забрати відступ",
"CMD_DUPLICATE" : "Дублювати",
"CMD_DELETE_LINES" : "Вилучити рядок",
"CMD_COMMENT" : "Перемкнути рядковий коментар",
"CMD_BLOCK_COMMENT" : "Перемкнути блочний коментар",
"CMD_LINE_UP" : "Перемістити рядок угору",
"CMD_LINE_DOWN" : "Перемісти рядок униз",
"CMD_OPEN_LINE_ABOVE" : "Відкрити рядок вище",
"CMD_OPEN_LINE_BELOW" : "Відкрити рядок нижче",
"CMD_TOGGLE_CLOSE_BRACKETS" : "Автозакривання дужок",
"CMD_SHOW_CODE_HINTS" : "Показувати поради до коду",
// Search menu commands
"FIND_MENU" : "Пошук",
"CMD_FIND" : "Знайти",
"CMD_FIND_NEXT" : "Знайти наступний",
"CMD_FIND_PREVIOUS" : "Знайти попередній",
"CMD_FIND_ALL_AND_SELECT" : "Знайти все та виділити",
"CMD_ADD_NEXT_MATCH" : "Додати наступний збіг до виділення",
"CMD_SKIP_CURRENT_MATCH" : "Пропустити поточний збіг",
"CMD_FIND_IN_FILES" : "Знайти у файлах",
"CMD_FIND_IN_SUBTREE" : "Знайти у\u2026",
"CMD_REPLACE" : "Замінити",
"CMD_REPLACE_IN_FILES" : "Замінити у файлах",
"CMD_REPLACE_IN_SUBTREE" : "Замінити\u2026",
// View menu commands
"VIEW_MENU" : "Вигляд",
"CMD_HIDE_SIDEBAR" : "Приховати бокову панель",
"CMD_SHOW_SIDEBAR" : "Показати бокову панель",
"CMD_INCREASE_FONT_SIZE" : "Збільшити розмір шрифту",
"CMD_DECREASE_FONT_SIZE" : "Зменшити розмір шрифту",
"CMD_RESTORE_FONT_SIZE" : "Відновити типовий шрифт",
"CMD_SCROLL_LINE_UP" : "Прокрутити на рядок вгору",
"CMD_SCROLL_LINE_DOWN" : "Прокрутити на рядок вниз",
"CMD_TOGGLE_LINE_NUMBERS" : "Номери рядків",
"CMD_TOGGLE_ACTIVE_LINE" : "Підсвічувати активний рядок",
"CMD_TOGGLE_WORD_WRAP" : "Перенесення слів",
"CMD_LIVE_HIGHLIGHT" : "Виділяти у Live Preview",
"CMD_VIEW_TOGGLE_INSPECTION" : "Аналізувати файли під час збереження",
"CMD_WORKINGSET_SORT_BY_ADDED" : "Впорядкувати за додаванням",
"CMD_WORKINGSET_SORT_BY_NAME" : "Впорядкувати за назвою",
"CMD_WORKINGSET_SORT_BY_TYPE" : "Впорядкувати за типом",
"CMD_WORKING_SORT_TOGGLE_AUTO" : "Автоматичне впорядкування",
"CMD_THEMES" : "Теми\u2026",
// Navigate menu Commands
"NAVIGATE_MENU" : "Навігація",
"CMD_QUICK_OPEN" : "Швидке відкриття",
"CMD_GOTO_LINE" : "Перейти до рядка",
"CMD_GOTO_DEFINITION" : "Швидкий пошук оголошення",
"CMD_GOTO_FIRST_PROBLEM" : "Перейти до найближчої помилки",
"CMD_TOGGLE_QUICK_EDIT" : "Швидке редагування",
"CMD_TOGGLE_QUICK_DOCS" : "Швидка документація",
"CMD_QUICK_EDIT_PREV_MATCH" : "Попередній збіг",
"CMD_QUICK_EDIT_NEXT_MATCH" : "Наступний збіг",
"CMD_CSS_QUICK_EDIT_NEW_RULE" : "Нове правило",
"CMD_NEXT_DOC" : "Наступний документ",
"CMD_PREV_DOC" : "Попередній документ",
"CMD_SHOW_IN_TREE" : "Показати у дереві файлів",
"CMD_SHOW_IN_EXPLORER" : "Показати у провіднику",
"CMD_SHOW_IN_FINDER" : "Показати у Finder",
"CMD_SHOW_IN_OS" : "Показати у ОС",
// Help menu commands
"HELP_MENU" : "Допомога",
"CMD_CHECK_FOR_UPDATE" : "Перевірити наявність оновлень",
"CMD_HOW_TO_USE_BRACKETS" : "Як використовувати {APP_NAME}",
"CMD_SUPPORT" : "Підтримка {APP_NAME}",
"CMD_SUGGEST" : "Запропонувати ідею",
"CMD_RELEASE_NOTES" : "Примітки до випуску",
"CMD_GET_INVOLVED" : "Прийняти участь в розробці",
"CMD_SHOW_EXTENSIONS_FOLDER" : "Показати теку розширень",
"CMD_HOMEPAGE" : "Домівка {APP_TITLE}",
"CMD_TWITTER" : "{TWITTER_NAME} у Twitter",
"CMD_ABOUT" : "Про {APP_TITLE}",
"CMD_OPEN_PREFERENCES" : "Відкрити файл налаштувань",
"CMD_OPEN_KEYMAP" : "Відкрити карту клавіатурних скорочень",
// Strings for main-view.html
"EXPERIMENTAL_BUILD" : "експериментальна збірка",
"RELEASE_BUILD" : "збірка",
"DEVELOPMENT_BUILD" : "тестова збірка",
"RELOAD_FROM_DISK" : "Завантажити з диска",
"KEEP_CHANGES_IN_EDITOR" : "Залишити зміни в редакторі",
"CLOSE_DONT_SAVE" : "Закрити (без збереження)",
"RELAUNCH_CHROME" : "Перезапустити Chrome",
"ABOUT" : "Про програму",
"CLOSE" : "Закрити",
"ABOUT_TEXT_LINE1" : "Версія {VERSION_MAJOR}.{VERSION_MINOR} {BUILD_TYPE} {VERSION}",
"ABOUT_TEXT_BUILD_TIMESTAMP" : "часова мітка збирання:",
"ABOUT_TEXT_LINE3" : "Зауважте, що правила та умови використання комерційного програмного забезпечення розміщенні на <a href=\'{ADOBE_THIRD_PARTY}\'>{ADOBE_THIRD_PARTY}</a> і наводяться тут в якості посилання.",
"ABOUT_TEXT_LINE4" : "Документація та сирці доступні на <a href=\'https://github.com/adobe/brackets/\'>https://github.com/adobe/brackets/</a>",
"ABOUT_TEXT_LINE5" : "Створено з \u2764 та JavaScript авторами:",
"ABOUT_TEXT_LINE6" : "Значна кількість людей (але наразі існують проблеми із завантаженням даних про них).",
"ABOUT_TEXT_WEB_PLATFORM_DOCS" : "Документація та логотип Web Platform Docs поширюється на умовах ліцензії Creative Commons Attribution, <a href=\'{WEB_PLATFORM_DOCS_LICENSE}\'>CC-BY 3.0 Unported</a>.",
"UPDATE_NOTIFICATION_TOOLTIP" : "Доступна нова збірка {APP_NAME}! Натисніть тут аби дізнатись деталі.",
"UPDATE_AVAILABLE_TITLE" : "Доступне оновлення",
"UPDATE_MESSAGE" : "Агов! Доступна нова збірка {APP_NAME}. Ось кілька функцій, що з’явилися:",
"GET_IT_NOW" : "Забрати негайно!",
"PROJECT_SETTINGS_TITLE" : "Налаштування проекту для: {0}",
"PROJECT_SETTING_BASE_URL" : "Базова адреса Live Preview",
"PROJECT_SETTING_BASE_URL_HINT" : "Уведіть URL кшталту http://localhost:8000/, аби користуватись локальним сервером",
"BASEURL_ERROR_INVALID_PROTOCOL" : "Протокол {0} не підтримується Preview—будь ласка, використовуйте http: або https: .",
"BASEURL_ERROR_SEARCH_DISALLOWED" : "Базова адреса не може містити параметри пошуку, кшталту \"{0}\".",
"BASEURL_ERROR_HASH_DISALLOWED" : "Базова адреса не може містити хеші кшталту \"{0}\".",
"BASEURL_ERROR_INVALID_CHAR" : "Спеціальні символи, кшталту \'{0}\', мають бути з обох боків заключені у %.",
"BASEURL_ERROR_UNKNOWN_ERROR" : "Неочікувана помилка розбору базової адреси",
"EMPTY_VIEW_HEADER" : "<em>Відкрийте файл, поки ця панель у фокусі</em>",
// Strings for themes-settings.html and themes-general.html
"CURRENT_THEME" : "Поточна тема",
"USE_THEME_SCROLLBARS" : "Брати панель прокрутки з теми",
"FONT_SIZE" : "Розмір шрифту",
"FONT_FAMILY" : "Сімейство шрифтів",
"THEMES_SETTINGS" : "Налаштування тем",
// CSS Quick Edit
"BUTTON_NEW_RULE" : "Нове правило",
// Extension Management strings
"INSTALL" : "Встановити",
"UPDATE" : "Оновити",
"REMOVE" : "Вилучити",
"OVERWRITE" : "Перезаписати",
"CANT_REMOVE_DEV" : "Розширення у теці \"dev\" потрібно видалити власноруч.",
"CANT_UPDATE" : "Оновлення не сумісне з цією версією {APP_NAME}.",
"CANT_UPDATE_DEV" : "Розширення у теці \"dev\" не можуть автоматично оновлюватись.",
"INSTALL_EXTENSION_TITLE" : "Встановлення розширень",
"UPDATE_EXTENSION_TITLE" : "Оновити розширення",
"INSTALL_EXTENSION_LABEL" : "URL розширення",
"INSTALL_EXTENSION_HINT" : "Посилання на zip-файл розширення або репозитарій GitHub",
"INSTALLING_FROM" : "Встановлення розширення з {0}\u2026",
"INSTALL_SUCCEEDED" : "Встановлення вдалося!",
"INSTALL_FAILED" : "Встановлення не вдалося.",
"CANCELING_INSTALL" : "Скасування\u2026",
"CANCELING_HUNG" : "Скасування встановлення займає багато часу. Схоже, на виникнення внутрішньої помилки.",
"INSTALL_CANCELED" : "Встановлення скасовано.",
"VIEW_COMPLETE_DESCRIPTION" : "Переглянути весь опис",
"VIEW_TRUNCATED_DESCRIPTION" : "Переглянути короткий опис",
// These must match the error codes in ExtensionsDomain.Errors.* :
"INVALID_ZIP_FILE" : "Завантажені дані не є zip-архівом.",
"INVALID_PACKAGE_JSON" : "Файл package.json – помилковий (помилка: {0}).",
"MISSING_PACKAGE_NAME" : "Файл package.json не містить назви пакунку.",
"BAD_PACKAGE_NAME" : "{0} – помилкова назва пакунку.",
"MISSING_PACKAGE_VERSION" : "Файл package.json не містить версії пакунку.",
"INVALID_VERSION_NUMBER" : "Номер версії пакунку ({0}) – помилковий.",
"INVALID_BRACKETS_VERSION" : "У {APP_NAME} рядок сумісності ({0}) – помилковий.",
"DISALLOWED_WORDS" : "Слова ({1}) недозволені у полі {0}.",
"API_NOT_COMPATIBLE" : "Розширення не сумісне з цією версією {APP_NAME}. Його встановлено до теки disabled.",
"MISSING_MAIN" : "Пакунок не містить файлу main.js.",
"EXTENSION_ALREADY_INSTALLED" : "Встановлення цього пакунка перезапише попередньо встановлене розширення. Ви впевнені?",
"EXTENSION_SAME_VERSION" : "Пакунок має ту ж версію що й наразі встановлена. Перезаписати?",
"EXTENSION_OLDER_VERSION" : "Версія пакунка {0} старіша ніж наразі встановлена ({1}). Перезаписати?",
"DOWNLOAD_ID_IN_USE" : "Внутрішня помилка: ID завантаження уже використовується.",
"NO_SERVER_RESPONSE" : "Не вдалось приєднатися до сервера.",
"BAD_HTTP_STATUS" : "Файл відсутній на сервері (HTTP {0}).",
"CANNOT_WRITE_TEMP" : "Помилка запису тимчасового файлу.",
"ERROR_LOADING" : "Розширення несподівано викликало помилку під час запуску.",
"MALFORMED_URL" : "Адреса недійсна. Перевірте, будь ласка, чи ви все вказали вірно.",
"UNSUPPORTED_PROTOCOL" : "Адреса має бути на протоколі http або https.",
"UNKNOWN_ERROR" : "Невідома внутрішня помилка.",
// For NOT_FOUND_ERR, see generic strings above
"EXTENSION_MANAGER_TITLE" : "Менеджер розширень",
"EXTENSION_MANAGER_ERROR_LOAD" : "Помилка отримання доступу до реєстру розширення. Будь ласка, спробуйте пізніше.",
"INSTALL_EXTENSION_DRAG" : "Перетягніть сюди .zip або",
"INSTALL_EXTENSION_DROP" : "Перетягніть .zip для встановлення",
"INSTALL_EXTENSION_DROP_ERROR" : "Встановлення/оновлення скасовано через наступні помилки:",
"INSTALL_FROM_URL" : "встановіть з URL\u2026",
"INSTALL_EXTENSION_VALIDATING" : "Перевірка\u2026",
"EXTENSION_AUTHOR" : "Автор",
"EXTENSION_DATE" : "Дата",
"EXTENSION_INCOMPATIBLE_NEWER" : "Це розширення потребує новішої версії {APP_NAME}.",
"EXTENSION_INCOMPATIBLE_OLDER" : "Наразі це розширення працює зі старішими версіями {APP_NAME}.",
"EXTENSION_LATEST_INCOMPATIBLE_NEWER" : "Версія {0} цього розширення потребує новішої версії {APP_NAME}. Як варіант, ви можете встановити новішу версію {1}.",
"EXTENSION_LATEST_INCOMPATIBLE_OLDER" : "Версія {0} цього розширення працює тільки зі старішими версіями {APP_NAME}. Як варіант, ви можете встановити новішу версію {1}.",
"EXTENSION_NO_DESCRIPTION" : "Опис відсутній",
"EXTENSION_MORE_INFO" : "Докладніше...",
"EXTENSION_ERROR" : "Помилка розширення",
"EXTENSION_KEYWORDS" : "Ключові слова",
"EXTENSION_TRANSLATED_USER_LANG" : "Перекладено {0} мовами, включаючи вашу",
"EXTENSION_TRANSLATED_GENERAL" : "Перекладено {0} мовами",
"EXTENSION_TRANSLATED_LANGS" : "Це розширення перекладено наступними мовами: {0}",
"EXTENSION_INSTALLED" : "Встановлено",
"EXTENSION_UPDATE_INSTALLED" : "Оновлення розширення завантажено і буде встановлено після перевантаження {APP_NAME}.",
"EXTENSION_SEARCH_PLACEHOLDER" : "Пошук",
"EXTENSION_MORE_INFO_LINK" : "Більше",
"BROWSE_EXTENSIONS" : "Переглянути розширення",
"EXTENSION_MANAGER_REMOVE" : "Вилучити розшмрення",
"EXTENSION_MANAGER_REMOVE_ERROR" : "Не вдалось вилучити одне або кілька розширень: {0}. {APP_NAME} продовжить перезапуск.",
"EXTENSION_MANAGER_UPDATE" : "Оновити розширення",
"EXTENSION_MANAGER_UPDATE_ERROR" : "Не вдалось оновити одне або кілька розширень: {0}. {APP_NAME} продовжить перезапуск.",
"MARKED_FOR_REMOVAL" : "Помічено для вилучення",
"UNDO_REMOVE" : "Відмінити",
"MARKED_FOR_UPDATE" : "Помічено для оновлення",
"UNDO_UPDATE" : "Відмінити",
"CHANGE_AND_RELOAD_TITLE" : "Змінити розширення",
"CHANGE_AND_RELOAD_MESSAGE" : "Аби оновити або вилучити помічені розширення, потрібно перезапустити {APP_NAME}. Вам буде запропоновано зберегти незбережені зміни.",
"REMOVE_AND_RELOAD" : "Вилучити розширення і перезапустити",
"CHANGE_AND_RELOAD" : "Змінити розширення і перезапустити",
"UPDATE_AND_RELOAD" : "Оновити розширення і перезапустити",
"PROCESSING_EXTENSIONS" : "Обробка змін розширення\u2026",
"EXTENSION_NOT_INSTALLED" : "Не вдалось вилучити розширення {0} оскільки воно не встановлене.",
"NO_EXTENSIONS" : "Ви ще не маєте жодного розширення.<br>Натисніть на вкладку Доступні вище, аби щось встановити.",
"NO_EXTENSION_MATCHES" : "Жодне розширення не відповідає вашому запиту.",
"REGISTRY_SANITY_CHECK_WARNING" : "ЗАУВАЖТЕ: Ці розширення поширюються різними авторами і не тільки від {APP_NAME}. Вони не перевіряються і мають повні локальні права. Будьте обережні під час встановлення розширень з невідомих джерел",
"EXTENSIONS_INSTALLED_TITLE" : "Встановлені",
"EXTENSIONS_AVAILABLE_TITLE" : "Доступні",
"EXTENSIONS_THEMES_TITLE" : "Теми",
"EXTENSIONS_UPDATES_TITLE" : "Оновлення",
"INLINE_EDITOR_NO_MATCHES" : "Нічого не знайдено.",
"INLINE_EDITOR_HIDDEN_MATCHES" : "Всі збіги згорнуто. Розгортайте файли наведені справа, аби переглянути збіги.",
"CSS_QUICK_EDIT_NO_MATCHES" : "Жодне правило CSS, що відповідає виділенню.<br> Натисніть \'Нове правило\' для створення. ",
"CSS_QUICK_EDIT_NO_STYLESHEETS" : "У вашому проекті відсутні таблиці стилів.<br>Створіть хоча б одну аби мати можливість додавати CSS-правила.",
// Custom Viewers
"IMAGE_VIEWER_LARGEST_ICON" : "найбільша",
/**
* Unit names
*/
"UNIT_PIXELS" : "пікселі",
// extensions/default/DebugCommands
"DEBUG_MENU" : "Відлагодження",
"ERRORS" : "Помилки",
"CMD_SHOW_DEV_TOOLS" : "Показати інструменти розробника",
"CMD_REFRESH_WINDOW" : "Перезапустити з розширеннями",
"CMD_RELOAD_WITHOUT_USER_EXTS" : "Перезапустити без розширень",
"CMD_NEW_BRACKETS_WINDOW" : "Нове вікно {APP_NAME}",
"CMD_SWITCH_LANGUAGE" : "Змінити мову",
"CMD_RUN_UNIT_TESTS" : "Запустити тестування",
"CMD_SHOW_PERF_DATA" : "Показати дані продуктивності",
"CMD_ENABLE_NODE_DEBUGGER" : "Увімкнути відлагоджувач Node",
"CMD_LOG_NODE_STATE" : "Логувати статус Node до консолі",
"CMD_RESTART_NODE" : "Перезапустити Node",
"CMD_SHOW_ERRORS_IN_STATUS_BAR" : "Показати помилки у рядку стану",
"CMD_OPEN_BRACKETS_SOURCE" : "Відкрити код Brackets",
"LANGUAGE_TITLE" : "Змінити мову",
"LANGUAGE_MESSAGE" : "Мова:",
"LANGUAGE_SUBMIT" : "Перезапустити {APP_NAME}",
"LANGUAGE_CANCEL" : "Скасувати",
"LANGUAGE_SYSTEM_DEFAULT" : "Типова в системі",
// extensions/default/InlineTimingFunctionEditor
"INLINE_TIMING_EDITOR_TIME" : "Час",
"INLINE_TIMING_EDITOR_PROGRESSION" : "Просування",
"BEZIER_EDITOR_INFO" : "<kbd>↑</kbd><kbd>↓</kbd><kbd>←</kbd><kbd>→</kbd> Переміщення обраної точки<br><kbd class=\'text\'>Shift</kbd> Переміщення на 10 одиниць<br><kbd class=\'text\'>Tab</kbd> Навігація точками",
"STEPS_EDITOR_INFO" : "<kbd>↑</kbd><kbd>↓</kbd> Збільшення та зменшення кроку<br><kbd>←</kbd><kbd>→</kbd> \'Початок\' та \'кінець\'",
"INLINE_TIMING_EDITOR_INVALID" : "Старе значення <code>{0}</code> – невірне, тому функцію змінено на <code>{1}</code>. Документ буде оновлено після першого редагування.",
// extensions/default/InlineColorEditor
"COLOR_EDITOR_CURRENT_COLOR_SWATCH_TIP" : "Поточний колір",
"COLOR_EDITOR_ORIGINAL_COLOR_SWATCH_TIP" : "Початковий колір",
"COLOR_EDITOR_RGBA_BUTTON_TIP" : "Формат RGBa",
"COLOR_EDITOR_HEX_BUTTON_TIP" : "Формат Hex",
"COLOR_EDITOR_HSLA_BUTTON_TIP" : "Формат HSLa",
"COLOR_EDITOR_USED_COLOR_TIP_SINGULAR" : "{0} (використано {1} раз)",
"COLOR_EDITOR_USED_COLOR_TIP_PLURAL" : "{0} (використано {1} разів)",
// extensions/default/JavaScriptCodeHints
"CMD_JUMPTO_DEFINITION" : "Перейти до оголошення",
"CMD_SHOW_PARAMETER_HINT" : "Показувати підсвічування параметрів функції",
"NO_ARGUMENTS" : "<параметри відсутні>",
"DETECTED_EXCLUSION_TITLE" : "Помилка виведення файлу JavaScript",
"DETECTED_EXCLUSION_INFO" : "Brackets зіткнувся з проблемою під час обробки <span class=\'dialog-filename\'>{0}</span>.<br><br>Для цього файлу більше не працюватиме аналіз, перехід до оголошень та швидке редагування. Аби повернути їх, відкрийте <code>.brackets.json</code> у теці свого проекту та відредагуйте параметр <code>jscodehints.detectedExclusions</code>. <br><br> Це схоже на ваду у Brackets. Якщо ви можете надати копію цього файлу, будь ласка, <a href=\'https://github.com/adobe/brackets/wiki/How-to-Report-an-Issue\'>сповістіть про ваду</a> та вкажіть посилання на нього.",
// extensions/default/JSLint
"JSLINT_NAME" : "JSLint",
// extensions/default/QuickView
"CMD_ENABLE_QUICK_VIEW" : "Швидкий перегляд під час наведення",
// extensions/default/RecentProjects
"CMD_TOGGLE_RECENT_PROJECTS" : "Останні проекти",
// extensions/default/WebPlatformDocs
"DOCS_MORE_LINK" : "Докладніше"
});
/* Last translated for ed1b597f2c0e72fc11c9ec42d88d35f57cd6798b */
|
var L = L || {};
L.states = {
"WA": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-117.033359,
49.000239
],
[
-117.044313,
47.762451
],
[
-117.038836,
46.426077
],
[
-117.055267,
46.343923
],
[
-116.92382,
46.168661
],
[
-116.918344,
45.993399
],
[
-118.988627,
45.998876
],
[
-119.125551,
45.933153
],
[
-119.525367,
45.911245
],
[
-119.963522,
45.823614
],
[
-120.209985,
45.725029
],
[
-120.505739,
45.697644
],
[
-120.637186,
45.746937
],
[
-121.18488,
45.604536
],
[
-121.217742,
45.670259
],
[
-121.535404,
45.725029
],
[
-121.809251,
45.708598
],
[
-122.247407,
45.549767
],
[
-122.762239,
45.659305
],
[
-122.811531,
45.960537
],
[
-122.904639,
46.08103
],
[
-123.11824,
46.185092
],
[
-123.211348,
46.174138
],
[
-123.370179,
46.146753
],
[
-123.545441,
46.261769
],
[
-123.72618,
46.300108
],
[
-123.874058,
46.239861
],
[
-124.065751,
46.327492
],
[
-124.027412,
46.464416
],
[
-123.895966,
46.535616
],
[
-124.098612,
46.74374
],
[
-124.235536,
47.285957
],
[
-124.31769,
47.357157
],
[
-124.427229,
47.740543
],
[
-124.624399,
47.88842
],
[
-124.706553,
48.184175
],
[
-124.597014,
48.381345
],
[
-124.394367,
48.288237
],
[
-123.983597,
48.162267
],
[
-123.704273,
48.167744
],
[
-123.424949,
48.118452
],
[
-123.162056,
48.167744
],
[
-123.036086,
48.080113
],
[
-122.800578,
48.08559
],
[
-122.636269,
47.866512
],
[
-122.515777,
47.882943
],
[
-122.493869,
47.587189
],
[
-122.422669,
47.318818
],
[
-122.324084,
47.346203
],
[
-122.422669,
47.576235
],
[
-122.395284,
47.800789
],
[
-122.230976,
48.030821
],
[
-122.362422,
48.123929
],
[
-122.373376,
48.288237
],
[
-122.471961,
48.468976
],
[
-122.422669,
48.600422
],
[
-122.488392,
48.753777
],
[
-122.647223,
48.775685
],
[
-122.795101,
48.8907
],
[
-122.756762,
49.000239
],
[
-117.033359,
49.000239
]
]
],
[
[
[
-122.718423,
48.310145
],
[
-122.586977,
48.35396
],
[
-122.608885,
48.151313
],
[
-122.767716,
48.227991
],
[
-122.718423,
48.310145
]
]
],
[
[
[
-123.025132,
48.583992
],
[
-122.915593,
48.715438
],
[
-122.767716,
48.556607
],
[
-122.811531,
48.419683
],
[
-123.041563,
48.458022
],
[
-123.025132,
48.583992
]
]
]
]
},
"type": "Feature",
"id": "USA-WA",
"properties": {
"fips": "53",
"name": "Washington"
}
}
]
},
"VA": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-75.397659,
38.013497
],
[
-75.244304,
38.029928
],
[
-75.375751,
37.860142
],
[
-75.512674,
37.799896
],
[
-75.594828,
37.569865
],
[
-75.802952,
37.197433
],
[
-75.972737,
37.120755
],
[
-76.027507,
37.257679
],
[
-75.939876,
37.564388
],
[
-75.671506,
37.95325
],
[
-75.397659,
38.013497
]
]
],
[
[
[
-76.016553,
37.95325
],
[
-75.994645,
37.95325
],
[
-76.043938,
37.95325
],
[
-76.016553,
37.95325
]
]
],
[
[
[
-78.349729,
39.464886
],
[
-77.82942,
39.130793
],
[
-77.719881,
39.322485
],
[
-77.566527,
39.306055
],
[
-77.456988,
39.223901
],
[
-77.456988,
39.076023
],
[
-77.248864,
39.026731
],
[
-77.117418,
38.933623
],
[
-77.040741,
38.791222
],
[
-77.128372,
38.632391
],
[
-77.248864,
38.588575
],
[
-77.325542,
38.446175
],
[
-77.281726,
38.342113
],
[
-77.013356,
38.374975
],
[
-76.964064,
38.216144
],
[
-76.613539,
38.15042
],
[
-76.514954,
38.024451
],
[
-76.235631,
37.887527
],
[
-76.3616,
37.608203
],
[
-76.246584,
37.389126
],
[
-76.383508,
37.285064
],
[
-76.399939,
37.159094
],
[
-76.273969,
37.082417
],
[
-76.410893,
36.961924
],
[
-76.619016,
37.120755
],
[
-76.668309,
37.065986
],
[
-76.48757,
36.95097
],
[
-75.994645,
36.923586
],
[
-75.868676,
36.551154
],
[
-79.510841,
36.5402
],
[
-80.294043,
36.545677
],
[
-80.978661,
36.562108
],
[
-81.679709,
36.589492
],
[
-83.673316,
36.600446
],
[
-83.136575,
36.742847
],
[
-83.070852,
36.852385
],
[
-82.879159,
36.890724
],
[
-82.868205,
36.978355
],
[
-82.720328,
37.044078
],
[
-82.720328,
37.120755
],
[
-82.353373,
37.268633
],
[
-81.969987,
37.537003
],
[
-81.986418,
37.454849
],
[
-81.849494,
37.285064
],
[
-81.679709,
37.20291
],
[
-81.55374,
37.208387
],
[
-81.362047,
37.339833
],
[
-81.225123,
37.235771
],
[
-80.967707,
37.290541
],
[
-80.513121,
37.482234
],
[
-80.474782,
37.421987
],
[
-80.29952,
37.509618
],
[
-80.294043,
37.690357
],
[
-80.184505,
37.849189
],
[
-79.998289,
37.997066
],
[
-79.921611,
38.177805
],
[
-79.724442,
38.364021
],
[
-79.647764,
38.594052
],
[
-79.477979,
38.457129
],
[
-79.313671,
38.413313
],
[
-79.209609,
38.495467
],
[
-78.996008,
38.851469
],
[
-78.870039,
38.763838
],
[
-78.404499,
39.169131
],
[
-78.349729,
39.464886
]
]
]
]
},
"type": "Feature",
"id": "USA-VA",
"properties": {
"fips": "51",
"name": "Virginia"
}
},
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-80.518598,
40.636951
],
[
-80.518598,
39.722302
],
[
-79.477979,
39.722302
],
[
-79.488933,
39.20747
],
[
-79.291763,
39.300578
],
[
-79.094593,
39.470363
],
[
-78.963147,
39.437501
],
[
-78.765977,
39.585379
],
[
-78.470222,
39.514178
],
[
-78.431884,
39.623717
],
[
-78.267575,
39.61824
],
[
-78.174467,
39.694917
],
[
-78.004682,
39.601809
],
[
-77.834897,
39.601809
],
[
-77.719881,
39.322485
],
[
-77.82942,
39.130793
],
[
-78.349729,
39.464886
],
[
-78.404499,
39.169131
],
[
-78.870039,
38.763838
],
[
-78.996008,
38.851469
],
[
-79.209609,
38.495467
],
[
-79.313671,
38.413313
],
[
-79.477979,
38.457129
],
[
-79.647764,
38.594052
],
[
-79.724442,
38.364021
],
[
-79.921611,
38.177805
],
[
-79.998289,
37.997066
],
[
-80.184505,
37.849189
],
[
-80.294043,
37.690357
],
[
-80.29952,
37.509618
],
[
-80.474782,
37.421987
],
[
-80.513121,
37.482234
],
[
-80.967707,
37.290541
],
[
-81.225123,
37.235771
],
[
-81.362047,
37.339833
],
[
-81.55374,
37.208387
],
[
-81.679709,
37.20291
],
[
-81.849494,
37.285064
],
[
-81.986418,
37.454849
],
[
-81.969987,
37.537003
],
[
-82.101434,
37.553434
],
[
-82.293127,
37.668449
],
[
-82.342419,
37.783465
],
[
-82.50125,
37.931343
],
[
-82.621743,
38.123036
],
[
-82.594358,
38.424267
],
[
-82.331465,
38.446175
],
[
-82.293127,
38.577622
],
[
-82.172634,
38.632391
],
[
-82.221926,
38.785745
],
[
-82.03571,
39.026731
],
[
-81.887833,
38.873376
],
[
-81.783771,
38.966484
],
[
-81.811156,
39.0815
],
[
-81.685186,
39.273193
],
[
-81.57017,
39.267716
],
[
-81.455155,
39.410117
],
[
-81.345616,
39.344393
],
[
-81.219646,
39.388209
],
[
-80.830783,
39.711348
],
[
-80.737675,
40.078303
],
[
-80.600752,
40.319289
],
[
-80.595275,
40.472643
],
[
-80.666475,
40.582182
],
[
-80.518598,
40.636951
]
]
]
},
"type": "Feature",
"id": "54",
"properties": {
"fips": "51",
"name": "Virginia"
}
}
]
},
"DE": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-75.414089,
39.804456
],
[
-75.507197,
39.683964
],
[
-75.611259,
39.61824
],
[
-75.589352,
39.459409
],
[
-75.441474,
39.311532
],
[
-75.403136,
39.065069
],
[
-75.189535,
38.807653
],
[
-75.09095,
38.796699
],
[
-75.047134,
38.451652
],
[
-75.693413,
38.462606
],
[
-75.786521,
39.722302
],
[
-75.616736,
39.831841
],
[
-75.414089,
39.804456
]
]
]
},
"type": "Feature",
"id": "USA-DE",
"properties": {
"fips": "10",
"name": "Delaware"
}
}
]
},
"DC": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-77.035264,
38.993869
],
[
-76.909294,
38.895284
],
[
-77.040741,
38.791222
],
[
-77.117418,
38.933623
],
[
-77.035264,
38.993869
]
]
]
},
"type": "Feature",
"id": "USA-DC",
"properties": {
"fips": "11",
"name": "District of Columbia"
}
}
]
},
"WI": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-90.415429,
46.568478
],
[
-90.229213,
46.508231
],
[
-90.119674,
46.338446
],
[
-89.09001,
46.135799
],
[
-88.662808,
45.987922
],
[
-88.531362,
46.020784
],
[
-88.10416,
45.922199
],
[
-87.989145,
45.796229
],
[
-87.781021,
45.675736
],
[
-87.791975,
45.500474
],
[
-87.885083,
45.363551
],
[
-87.649574,
45.341643
],
[
-87.742682,
45.199243
],
[
-87.589328,
45.095181
],
[
-87.627666,
44.974688
],
[
-87.819359,
44.95278
],
[
-87.983668,
44.722749
],
[
-88.043914,
44.563917
],
[
-87.928898,
44.536533
],
[
-87.775544,
44.640595
],
[
-87.611236,
44.837764
],
[
-87.403112,
44.914442
],
[
-87.238804,
45.166381
],
[
-87.03068,
45.22115
],
[
-87.047111,
45.089704
],
[
-87.189511,
44.969211
],
[
-87.468835,
44.552964
],
[
-87.545512,
44.322932
],
[
-87.540035,
44.158624
],
[
-87.644097,
44.103854
],
[
-87.737205,
43.8793
],
[
-87.704344,
43.687607
],
[
-87.791975,
43.561637
],
[
-87.912467,
43.249452
],
[
-87.885083,
43.002989
],
[
-87.76459,
42.783912
],
[
-87.802929,
42.493634
],
[
-88.788778,
42.493634
],
[
-90.639984,
42.510065
],
[
-90.711184,
42.636034
],
[
-91.067185,
42.75105
],
[
-91.143862,
42.909881
],
[
-91.176724,
43.134436
],
[
-91.056231,
43.254929
],
[
-91.204109,
43.353514
],
[
-91.215062,
43.501391
],
[
-91.269832,
43.616407
],
[
-91.242447,
43.775238
],
[
-91.43414,
43.994316
],
[
-91.592971,
44.032654
],
[
-91.877772,
44.202439
],
[
-91.927065,
44.333886
],
[
-92.233773,
44.443425
],
[
-92.337835,
44.552964
],
[
-92.545959,
44.569394
],
[
-92.808852,
44.750133
],
[
-92.737652,
45.117088
],
[
-92.75956,
45.286874
],
[
-92.644544,
45.440228
],
[
-92.770513,
45.566198
],
[
-92.885529,
45.577151
],
[
-92.869098,
45.719552
],
[
-92.639067,
45.933153
],
[
-92.354266,
46.015307
],
[
-92.29402,
46.075553
],
[
-92.29402,
46.667063
],
[
-92.091373,
46.749217
],
[
-92.014696,
46.705401
],
[
-91.790141,
46.694447
],
[
-91.09457,
46.864232
],
[
-90.837154,
46.95734
],
[
-90.749522,
46.88614
],
[
-90.886446,
46.754694
],
[
-90.55783,
46.584908
],
[
-90.415429,
46.568478
]
]
]
},
"type": "Feature",
"id": "USA-WI",
"properties": {
"fips": "55",
"name": "Wisconsin"
}
}
]
},
"WV": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-80.518598,
40.636951
],
[
-80.518598,
39.722302
],
[
-79.477979,
39.722302
],
[
-79.488933,
39.20747
],
[
-79.291763,
39.300578
],
[
-79.094593,
39.470363
],
[
-78.963147,
39.437501
],
[
-78.765977,
39.585379
],
[
-78.470222,
39.514178
],
[
-78.431884,
39.623717
],
[
-78.267575,
39.61824
],
[
-78.174467,
39.694917
],
[
-78.004682,
39.601809
],
[
-77.834897,
39.601809
],
[
-77.719881,
39.322485
],
[
-77.82942,
39.130793
],
[
-78.349729,
39.464886
],
[
-78.404499,
39.169131
],
[
-78.870039,
38.763838
],
[
-78.996008,
38.851469
],
[
-79.209609,
38.495467
],
[
-79.313671,
38.413313
],
[
-79.477979,
38.457129
],
[
-79.647764,
38.594052
],
[
-79.724442,
38.364021
],
[
-79.921611,
38.177805
],
[
-79.998289,
37.997066
],
[
-80.184505,
37.849189
],
[
-80.294043,
37.690357
],
[
-80.29952,
37.509618
],
[
-80.474782,
37.421987
],
[
-80.513121,
37.482234
],
[
-80.967707,
37.290541
],
[
-81.225123,
37.235771
],
[
-81.362047,
37.339833
],
[
-81.55374,
37.208387
],
[
-81.679709,
37.20291
],
[
-81.849494,
37.285064
],
[
-81.986418,
37.454849
],
[
-81.969987,
37.537003
],
[
-82.101434,
37.553434
],
[
-82.293127,
37.668449
],
[
-82.342419,
37.783465
],
[
-82.50125,
37.931343
],
[
-82.621743,
38.123036
],
[
-82.594358,
38.424267
],
[
-82.331465,
38.446175
],
[
-82.293127,
38.577622
],
[
-82.172634,
38.632391
],
[
-82.221926,
38.785745
],
[
-82.03571,
39.026731
],
[
-81.887833,
38.873376
],
[
-81.783771,
38.966484
],
[
-81.811156,
39.0815
],
[
-81.685186,
39.273193
],
[
-81.57017,
39.267716
],
[
-81.455155,
39.410117
],
[
-81.345616,
39.344393
],
[
-81.219646,
39.388209
],
[
-80.830783,
39.711348
],
[
-80.737675,
40.078303
],
[
-80.600752,
40.319289
],
[
-80.595275,
40.472643
],
[
-80.666475,
40.582182
],
[
-80.518598,
40.636951
]
]
]
},
"type": "Feature",
"id": "USA-WV",
"properties": {
"fips": "54",
"name": "West Virginia"
}
}
]
},
"HI": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-155.634835,
18.948267
],
[
-155.881297,
19.035898
],
[
-155.919636,
19.123529
],
[
-155.886774,
19.348084
],
[
-156.062036,
19.73147
],
[
-155.925113,
19.857439
],
[
-155.826528,
20.032702
],
[
-155.897728,
20.147717
],
[
-155.87582,
20.26821
],
[
-155.596496,
20.12581
],
[
-155.284311,
20.021748
],
[
-155.092618,
19.868393
],
[
-155.092618,
19.736947
],
[
-154.807817,
19.523346
],
[
-154.983079,
19.348084
],
[
-155.295265,
19.26593
],
[
-155.514342,
19.134483
],
[
-155.634835,
18.948267
]
]
],
[
[
[
-156.587823,
21.029505
],
[
-156.472807,
20.892581
],
[
-156.324929,
20.952827
],
[
-156.00179,
20.793996
],
[
-156.051082,
20.651596
],
[
-156.379699,
20.580396
],
[
-156.445422,
20.60778
],
[
-156.461853,
20.783042
],
[
-156.631638,
20.821381
],
[
-156.697361,
20.919966
],
[
-156.587823,
21.029505
]
]
],
[
[
[
-156.982162,
21.210244
],
[
-157.080747,
21.106182
],
[
-157.310779,
21.106182
],
[
-157.239579,
21.221198
],
[
-156.982162,
21.210244
]
]
],
[
[
[
-157.951581,
21.697691
],
[
-157.842042,
21.462183
],
[
-157.896811,
21.325259
],
[
-158.110412,
21.303352
],
[
-158.252813,
21.582676
],
[
-158.126843,
21.588153
],
[
-157.951581,
21.697691
]
]
],
[
[
[
-159.468693,
22.228955
],
[
-159.353678,
22.218001
],
[
-159.298908,
22.113939
],
[
-159.33177,
21.966061
],
[
-159.446786,
21.872953
],
[
-159.764448,
21.987969
],
[
-159.726109,
22.152277
],
[
-159.468693,
22.228955
]
]
]
]
},
"type": "Feature",
"id": "USA-HI",
"properties": {
"fips": "15",
"name": "Hawaii"
}
}
]
},
"FL": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-85.497137,
30.997536
],
[
-85.004212,
31.003013
],
[
-84.867289,
30.712735
],
[
-83.498053,
30.647012
],
[
-82.216449,
30.570335
],
[
-82.167157,
30.356734
],
[
-82.046664,
30.362211
],
[
-82.002849,
30.564858
],
[
-82.041187,
30.751074
],
[
-81.948079,
30.827751
],
[
-81.718048,
30.745597
],
[
-81.444201,
30.707258
],
[
-81.383954,
30.27458
],
[
-81.257985,
29.787132
],
[
-80.967707,
29.14633
],
[
-80.524075,
28.461713
],
[
-80.589798,
28.41242
],
[
-80.56789,
28.094758
],
[
-80.381674,
27.738757
],
[
-80.091397,
27.021277
],
[
-80.03115,
26.796723
],
[
-80.036627,
26.566691
],
[
-80.146166,
25.739673
],
[
-80.239274,
25.723243
],
[
-80.337859,
25.465826
],
[
-80.304997,
25.383672
],
[
-80.49669,
25.197456
],
[
-80.573367,
25.241272
],
[
-80.759583,
25.164595
],
[
-81.077246,
25.120779
],
[
-81.170354,
25.224841
],
[
-81.126538,
25.378195
],
[
-81.351093,
25.821827
],
[
-81.526355,
25.903982
],
[
-81.679709,
25.843735
],
[
-81.800202,
26.090198
],
[
-81.833064,
26.292844
],
[
-82.041187,
26.517399
],
[
-82.09048,
26.665276
],
[
-82.057618,
26.878877
],
[
-82.172634,
26.917216
],
[
-82.145249,
26.791246
],
[
-82.249311,
26.758384
],
[
-82.566974,
27.300601
],
[
-82.692943,
27.437525
],
[
-82.391711,
27.837342
],
[
-82.588881,
27.815434
],
[
-82.720328,
27.689464
],
[
-82.851774,
27.886634
],
[
-82.676512,
28.434328
],
[
-82.643651,
28.888914
],
[
-82.764143,
28.998453
],
[
-82.802482,
29.14633
],
[
-82.994175,
29.179192
],
[
-83.218729,
29.420177
],
[
-83.399469,
29.518762
],
[
-83.410422,
29.66664
],
[
-83.536392,
29.721409
],
[
-83.640454,
29.885717
],
[
-84.02384,
30.104795
],
[
-84.357933,
30.055502
],
[
-84.341502,
29.902148
],
[
-84.451041,
29.929533
],
[
-84.867289,
29.743317
],
[
-85.310921,
29.699501
],
[
-85.299967,
29.80904
],
[
-85.404029,
29.940487
],
[
-85.924338,
30.236241
],
[
-86.29677,
30.362211
],
[
-86.630863,
30.395073
],
[
-86.910187,
30.373165
],
[
-87.518128,
30.280057
],
[
-87.37025,
30.427934
],
[
-87.446927,
30.510088
],
[
-87.408589,
30.674397
],
[
-87.633143,
30.86609
],
[
-87.600282,
30.997536
],
[
-85.497137,
30.997536
]
]
]
},
"type": "Feature",
"id": "USA-FL",
"properties": {
"fips": "12",
"name": "Florida"
}
}
]
},
"WY": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-109.080842,
45.002073
],
[
-105.91517,
45.002073
],
[
-104.058488,
44.996596
],
[
-104.053011,
43.002989
],
[
-104.053011,
41.003906
],
[
-105.728954,
40.998429
],
[
-107.919731,
41.003906
],
[
-109.04798,
40.998429
],
[
-111.047063,
40.998429
],
[
-111.047063,
42.000709
],
[
-111.047063,
44.476286
],
[
-111.05254,
45.002073
],
[
-109.080842,
45.002073
]
]
]
},
"type": "Feature",
"id": "USA-WY",
"properties": {
"fips": "56",
"name": "Wyoming"
}
}
]
},
"NH": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-71.08183,
45.303304
],
[
-71.032537,
44.657025
],
[
-70.966814,
43.34256
],
[
-70.807983,
43.227544
],
[
-70.824413,
43.128959
],
[
-70.703921,
43.057759
],
[
-70.818936,
42.871543
],
[
-70.917521,
42.887974
],
[
-71.185891,
42.789389
],
[
-71.29543,
42.696281
],
[
-72.456542,
42.729142
],
[
-72.544173,
42.80582
],
[
-72.533219,
42.953697
],
[
-72.445588,
43.008466
],
[
-72.456542,
43.150867
],
[
-72.379864,
43.572591
],
[
-72.204602,
43.769761
],
[
-72.116971,
43.994316
],
[
-72.02934,
44.07647
],
[
-72.034817,
44.322932
],
[
-71.700724,
44.41604
],
[
-71.536416,
44.585825
],
[
-71.629524,
44.750133
],
[
-71.4926,
44.914442
],
[
-71.503554,
45.013027
],
[
-71.361154,
45.270443
],
[
-71.131122,
45.243058
],
[
-71.08183,
45.303304
]
]
]
},
"type": "Feature",
"id": "USA-NH",
"properties": {
"fips": "33",
"name": "New Hampshire"
}
}
]
},
"NJ": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-74.236547,
41.14083
],
[
-73.902454,
40.998429
],
[
-74.022947,
40.708151
],
[
-74.187255,
40.642428
],
[
-74.274886,
40.489074
],
[
-74.001039,
40.412397
],
[
-73.979131,
40.297381
],
[
-74.099624,
39.760641
],
[
-74.411809,
39.360824
],
[
-74.614456,
39.245808
],
[
-74.795195,
38.993869
],
[
-74.888303,
39.158177
],
[
-75.178581,
39.240331
],
[
-75.534582,
39.459409
],
[
-75.55649,
39.607286
],
[
-75.561967,
39.629194
],
[
-75.507197,
39.683964
],
[
-75.414089,
39.804456
],
[
-75.145719,
39.88661
],
[
-75.129289,
39.963288
],
[
-74.82258,
40.127596
],
[
-74.773287,
40.215227
],
[
-75.058088,
40.417874
],
[
-75.069042,
40.543843
],
[
-75.195012,
40.576705
],
[
-75.205966,
40.691721
],
[
-75.052611,
40.866983
],
[
-75.134765,
40.971045
],
[
-74.882826,
41.179168
],
[
-74.828057,
41.288707
],
[
-74.69661,
41.359907
],
[
-74.236547,
41.14083
]
]
]
},
"type": "Feature",
"id": "USA-NJ",
"properties": {
"fips": "34",
"name": "New Jersey"
}
}
]
},
"NM": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-107.421329,
37.000263
],
[
-106.868158,
36.994786
],
[
-104.337812,
36.994786
],
[
-103.001438,
37.000263
],
[
-103.001438,
36.501861
],
[
-103.039777,
36.501861
],
[
-103.045254,
34.01533
],
[
-103.067161,
33.002096
],
[
-103.067161,
31.999816
],
[
-106.616219,
31.999816
],
[
-106.643603,
31.901231
],
[
-106.528588,
31.786216
],
[
-108.210008,
31.786216
],
[
-108.210008,
31.331629
],
[
-109.04798,
31.331629
],
[
-109.042503,
37.000263
],
[
-107.421329,
37.000263
]
]
]
},
"type": "Feature",
"id": "USA-NM",
"properties": {
"fips": "35",
"name": "New Mexico"
}
}
]
},
"TX": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-101.812942,
36.501861
],
[
-100.000075,
36.501861
],
[
-100.000075,
34.563024
],
[
-99.923398,
34.573978
],
[
-99.698843,
34.382285
],
[
-99.57835,
34.415147
],
[
-99.260688,
34.404193
],
[
-99.189488,
34.2125
],
[
-98.986841,
34.223454
],
[
-98.767763,
34.135823
],
[
-98.570593,
34.146777
],
[
-98.488439,
34.064623
],
[
-98.36247,
34.157731
],
[
-98.170777,
34.113915
],
[
-98.088623,
34.004376
],
[
-97.946222,
33.987946
],
[
-97.869545,
33.851022
],
[
-97.694283,
33.982469
],
[
-97.458774,
33.905791
],
[
-97.371143,
33.823637
],
[
-97.256128,
33.861976
],
[
-97.173974,
33.736006
],
[
-96.922034,
33.960561
],
[
-96.850834,
33.845545
],
[
-96.631756,
33.845545
],
[
-96.423633,
33.774345
],
[
-96.346956,
33.686714
],
[
-96.149786,
33.840068
],
[
-95.936185,
33.889361
],
[
-95.8376,
33.834591
],
[
-95.602092,
33.933176
],
[
-95.547322,
33.878407
],
[
-95.289906,
33.87293
],
[
-95.224183,
33.960561
],
[
-94.966767,
33.861976
],
[
-94.868182,
33.74696
],
[
-94.484796,
33.637421
],
[
-94.380734,
33.544313
],
[
-94.183564,
33.593606
],
[
-94.041164,
33.54979
],
[
-94.041164,
33.018527
],
[
-94.041164,
31.994339
],
[
-93.822086,
31.775262
],
[
-93.816609,
31.556184
],
[
-93.542762,
31.15089
],
[
-93.526331,
30.93729
],
[
-93.630393,
30.679874
],
[
-93.728978,
30.575812
],
[
-93.696116,
30.438888
],
[
-93.767317,
30.334826
],
[
-93.690639,
30.143133
],
[
-93.926148,
29.787132
],
[
-93.838517,
29.688547
],
[
-94.002825,
29.68307
],
[
-94.523134,
29.546147
],
[
-94.70935,
29.622824
],
[
-94.742212,
29.787132
],
[
-94.873659,
29.672117
],
[
-94.966767,
29.699501
],
[
-95.016059,
29.557101
],
[
-94.911997,
29.496854
],
[
-94.895566,
29.310638
],
[
-95.081782,
29.113469
],
[
-95.383014,
28.867006
],
[
-95.985477,
28.604113
],
[
-96.045724,
28.647929
],
[
-96.226463,
28.582205
],
[
-96.23194,
28.642452
],
[
-96.478402,
28.598636
],
[
-96.593418,
28.724606
],
[
-96.664618,
28.697221
],
[
-96.401725,
28.439805
],
[
-96.593418,
28.357651
],
[
-96.774157,
28.406943
],
[
-96.801542,
28.226204
],
[
-97.026096,
28.039988
],
[
-97.256128,
27.694941
],
[
-97.404005,
27.333463
],
[
-97.513544,
27.360848
],
[
-97.540929,
27.229401
],
[
-97.425913,
27.262263
],
[
-97.480682,
26.99937
],
[
-97.557359,
26.988416
],
[
-97.562836,
26.840538
],
[
-97.469728,
26.758384
],
[
-97.442344,
26.457153
],
[
-97.332805,
26.353091
],
[
-97.30542,
26.161398
],
[
-97.217789,
25.991613
],
[
-97.524498,
25.887551
],
[
-97.650467,
26.018997
],
[
-97.885976,
26.06829
],
[
-98.198161,
26.057336
],
[
-98.466531,
26.221644
],
[
-98.669178,
26.238075
],
[
-98.822533,
26.369522
],
[
-99.030656,
26.413337
],
[
-99.173057,
26.539307
],
[
-99.266165,
26.840538
],
[
-99.446904,
27.021277
],
[
-99.424996,
27.174632
],
[
-99.50715,
27.33894
],
[
-99.479765,
27.48134
],
[
-99.605735,
27.640172
],
[
-99.709797,
27.656603
],
[
-99.879582,
27.799003
],
[
-99.934351,
27.979742
],
[
-100.082229,
28.14405
],
[
-100.29583,
28.280974
],
[
-100.399891,
28.582205
],
[
-100.498476,
28.66436
],
[
-100.629923,
28.905345
],
[
-100.673738,
29.102515
],
[
-100.799708,
29.244915
],
[
-101.013309,
29.370885
],
[
-101.062601,
29.458516
],
[
-101.259771,
29.535193
],
[
-101.413125,
29.754271
],
[
-101.851281,
29.803563
],
[
-102.114174,
29.792609
],
[
-102.338728,
29.869286
],
[
-102.388021,
29.765225
],
[
-102.629006,
29.732363
],
[
-102.809745,
29.524239
],
[
-102.919284,
29.190146
],
[
-102.97953,
29.184669
],
[
-103.116454,
28.987499
],
[
-103.280762,
28.982022
],
[
-103.527224,
29.135376
],
[
-104.146119,
29.381839
],
[
-104.266611,
29.513285
],
[
-104.507597,
29.639255
],
[
-104.677382,
29.924056
],
[
-104.688336,
30.181472
],
[
-104.858121,
30.389596
],
[
-104.896459,
30.570335
],
[
-105.005998,
30.685351
],
[
-105.394861,
30.855136
],
[
-105.602985,
31.085167
],
[
-105.77277,
31.167321
],
[
-105.953509,
31.364491
],
[
-106.205448,
31.468553
],
[
-106.38071,
31.731446
],
[
-106.528588,
31.786216
],
[
-106.643603,
31.901231
],
[
-106.616219,
31.999816
],
[
-103.067161,
31.999816
],
[
-103.067161,
33.002096
],
[
-103.045254,
34.01533
],
[
-103.039777,
36.501861
],
[
-103.001438,
36.501861
],
[
-101.812942,
36.501861
]
]
]
},
"type": "Feature",
"id": "USA-TX",
"properties": {
"fips": "48",
"name": "Texas"
}
}
]
},
"LA": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-93.608485,
33.018527
],
[
-91.16577,
33.002096
],
[
-91.072662,
32.887081
],
[
-91.143862,
32.843265
],
[
-91.154816,
32.640618
],
[
-91.006939,
32.514649
],
[
-90.985031,
32.218894
],
[
-91.105524,
31.988862
],
[
-91.341032,
31.846462
],
[
-91.401278,
31.621907
],
[
-91.499863,
31.643815
],
[
-91.516294,
31.27686
],
[
-91.636787,
31.265906
],
[
-91.565587,
31.068736
],
[
-91.636787,
30.997536
],
[
-89.747242,
30.997536
],
[
-89.845827,
30.66892
],
[
-89.681519,
30.449842
],
[
-89.643181,
30.285534
],
[
-89.522688,
30.181472
],
[
-89.818443,
30.044549
],
[
-89.84035,
29.945964
],
[
-89.599365,
29.88024
],
[
-89.495303,
30.039072
],
[
-89.287179,
29.88024
],
[
-89.30361,
29.754271
],
[
-89.424103,
29.699501
],
[
-89.648657,
29.748794
],
[
-89.621273,
29.655686
],
[
-89.69795,
29.513285
],
[
-89.506257,
29.387316
],
[
-89.199548,
29.348977
],
[
-89.09001,
29.2011
],
[
-89.002379,
29.179192
],
[
-89.16121,
29.009407
],
[
-89.336472,
29.042268
],
[
-89.484349,
29.217531
],
[
-89.851304,
29.310638
],
[
-89.851304,
29.480424
],
[
-90.032043,
29.425654
],
[
-90.021089,
29.283254
],
[
-90.103244,
29.151807
],
[
-90.23469,
29.129899
],
[
-90.333275,
29.277777
],
[
-90.563307,
29.283254
],
[
-90.645461,
29.129899
],
[
-90.798815,
29.086084
],
[
-90.963123,
29.179192
],
[
-91.09457,
29.190146
],
[
-91.220539,
29.436608
],
[
-91.445094,
29.546147
],
[
-91.532725,
29.529716
],
[
-91.620356,
29.73784
],
[
-91.883249,
29.710455
],
[
-91.888726,
29.836425
],
[
-92.146142,
29.715932
],
[
-92.113281,
29.622824
],
[
-92.31045,
29.535193
],
[
-92.617159,
29.579009
],
[
-92.97316,
29.715932
],
[
-93.2251,
29.776178
],
[
-93.767317,
29.726886
],
[
-93.838517,
29.688547
],
[
-93.926148,
29.787132
],
[
-93.690639,
30.143133
],
[
-93.767317,
30.334826
],
[
-93.696116,
30.438888
],
[
-93.728978,
30.575812
],
[
-93.630393,
30.679874
],
[
-93.526331,
30.93729
],
[
-93.542762,
31.15089
],
[
-93.816609,
31.556184
],
[
-93.822086,
31.775262
],
[
-94.041164,
31.994339
],
[
-94.041164,
33.018527
],
[
-93.608485,
33.018527
]
]
]
},
"type": "Feature",
"id": "USA-LA",
"properties": {
"fips": "22",
"name": "Louisiana"
}
}
]
},
"NC": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-80.978661,
36.562108
],
[
-80.294043,
36.545677
],
[
-79.510841,
36.5402
],
[
-75.868676,
36.551154
],
[
-75.75366,
36.151337
],
[
-76.032984,
36.189676
],
[
-76.071322,
36.140383
],
[
-76.410893,
36.080137
],
[
-76.460185,
36.025367
],
[
-76.68474,
36.008937
],
[
-76.673786,
35.937736
],
[
-76.399939,
35.987029
],
[
-76.3616,
35.943213
],
[
-76.060368,
35.992506
],
[
-75.961783,
35.899398
],
[
-75.781044,
35.937736
],
[
-75.715321,
35.696751
],
[
-75.775568,
35.581735
],
[
-75.89606,
35.570781
],
[
-76.147999,
35.324319
],
[
-76.482093,
35.313365
],
[
-76.536862,
35.14358
],
[
-76.394462,
34.973795
],
[
-76.279446,
34.940933
],
[
-76.493047,
34.661609
],
[
-76.673786,
34.694471
],
[
-76.991448,
34.667086
],
[
-77.210526,
34.60684
],
[
-77.555573,
34.415147
],
[
-77.82942,
34.163208
],
[
-77.971821,
33.845545
],
[
-78.179944,
33.916745
],
[
-78.541422,
33.851022
],
[
-79.675149,
34.80401
],
[
-80.797922,
34.820441
],
[
-80.781491,
34.935456
],
[
-80.934845,
35.105241
],
[
-81.038907,
35.044995
],
[
-81.044384,
35.149057
],
[
-82.276696,
35.198349
],
[
-82.550543,
35.160011
],
[
-82.764143,
35.066903
],
[
-83.109191,
35.00118
],
[
-83.618546,
34.984749
],
[
-84.319594,
34.990226
],
[
-84.29221,
35.225734
],
[
-84.09504,
35.247642
],
[
-84.018363,
35.41195
],
[
-83.7719,
35.559827
],
[
-83.498053,
35.565304
],
[
-83.251591,
35.718659
],
[
-82.994175,
35.773428
],
[
-82.775097,
35.997983
],
[
-82.638174,
36.063706
],
[
-82.610789,
35.965121
],
[
-82.216449,
36.156814
],
[
-82.03571,
36.118475
],
[
-81.909741,
36.304691
],
[
-81.723525,
36.353984
],
[
-81.679709,
36.589492
],
[
-80.978661,
36.562108
]
]
]
},
"type": "Feature",
"id": "USA-NC",
"properties": {
"fips": "37",
"name": "North Carolina"
}
}
]
},
"ND": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-97.228743,
49.000239
],
[
-97.097296,
48.682577
],
[
-97.16302,
48.545653
],
[
-97.130158,
48.140359
],
[
-97.053481,
47.948667
],
[
-96.856311,
47.609096
],
[
-96.823449,
46.968294
],
[
-96.785111,
46.924479
],
[
-96.801542,
46.656109
],
[
-96.719387,
46.437031
],
[
-96.598895,
46.332969
],
[
-96.560556,
45.933153
],
[
-104.047534,
45.944106
],
[
-104.042057,
47.861036
],
[
-104.047534,
49.000239
],
[
-97.228743,
49.000239
]
]
]
},
"type": "Feature",
"id": "USA-ND",
"properties": {
"fips": "38",
"name": "North Dakota"
}
}
]
},
"NE": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-103.324578,
43.002989
],
[
-101.626726,
42.997512
],
[
-98.499393,
42.997512
],
[
-98.466531,
42.94822
],
[
-97.951699,
42.767481
],
[
-97.831206,
42.866066
],
[
-97.688806,
42.844158
],
[
-97.217789,
42.844158
],
[
-96.692003,
42.657942
],
[
-96.626279,
42.515542
],
[
-96.44554,
42.488157
],
[
-96.264801,
42.039048
],
[
-96.127878,
41.973325
],
[
-96.062155,
41.798063
],
[
-96.122401,
41.67757
],
[
-96.095016,
41.540646
],
[
-95.919754,
41.453015
],
[
-95.925231,
41.201076
],
[
-95.826646,
40.976521
],
[
-95.881416,
40.719105
],
[
-95.7664,
40.587659
],
[
-95.552799,
40.264519
],
[
-95.306337,
40.001626
],
[
-101.90605,
40.001626
],
[
-102.053927,
40.001626
],
[
-102.053927,
41.003906
],
[
-104.053011,
41.003906
],
[
-104.053011,
43.002989
],
[
-103.324578,
43.002989
]
]
]
},
"type": "Feature",
"id": "USA-NE",
"properties": {
"fips": "31",
"name": "Nebraska"
}
}
]
},
"TN": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-88.054868,
36.496384
],
[
-88.071299,
36.677123
],
[
-87.852221,
36.633308
],
[
-86.592525,
36.655216
],
[
-85.486183,
36.616877
],
[
-85.289013,
36.627831
],
[
-84.544149,
36.594969
],
[
-83.689746,
36.584015
],
[
-83.673316,
36.600446
],
[
-81.679709,
36.589492
],
[
-81.723525,
36.353984
],
[
-81.909741,
36.304691
],
[
-82.03571,
36.118475
],
[
-82.216449,
36.156814
],
[
-82.610789,
35.965121
],
[
-82.638174,
36.063706
],
[
-82.775097,
35.997983
],
[
-82.994175,
35.773428
],
[
-83.251591,
35.718659
],
[
-83.498053,
35.565304
],
[
-83.7719,
35.559827
],
[
-84.018363,
35.41195
],
[
-84.09504,
35.247642
],
[
-84.29221,
35.225734
],
[
-84.319594,
34.990226
],
[
-85.606675,
34.984749
],
[
-87.359296,
35.00118
],
[
-88.202745,
34.995703
],
[
-88.471115,
34.995703
],
[
-90.311367,
34.995703
],
[
-90.212782,
35.023087
],
[
-90.114197,
35.198349
],
[
-90.130628,
35.439335
],
[
-89.944412,
35.603643
],
[
-89.911551,
35.756997
],
[
-89.763673,
35.811767
],
[
-89.730812,
35.997983
],
[
-89.533642,
36.249922
],
[
-89.539119,
36.496384
],
[
-89.484349,
36.496384
],
[
-89.418626,
36.496384
],
[
-89.298133,
36.507338
],
[
-88.054868,
36.496384
]
]
]
},
"type": "Feature",
"id": "USA-TN",
"properties": {
"fips": "47",
"name": "Tennessee"
}
}
]
},
"NY": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-73.343806,
45.013027
],
[
-73.332852,
44.804903
],
[
-73.387622,
44.618687
],
[
-73.294514,
44.437948
],
[
-73.321898,
44.246255
],
[
-73.436914,
44.043608
],
[
-73.349283,
43.769761
],
[
-73.404052,
43.687607
],
[
-73.245221,
43.523299
],
[
-73.278083,
42.833204
],
[
-73.267129,
42.745573
],
[
-73.508114,
42.08834
],
[
-73.486206,
42.050002
],
[
-73.55193,
41.294184
],
[
-73.48073,
41.21203
],
[
-73.727192,
41.102491
],
[
-73.655992,
40.987475
],
[
-73.22879,
40.905321
],
[
-73.141159,
40.965568
],
[
-72.774204,
40.965568
],
[
-72.587988,
40.998429
],
[
-72.28128,
41.157261
],
[
-72.259372,
41.042245
],
[
-72.100541,
40.992952
],
[
-72.467496,
40.845075
],
[
-73.239744,
40.625997
],
[
-73.562884,
40.582182
],
[
-73.776484,
40.593136
],
[
-73.935316,
40.543843
],
[
-74.022947,
40.708151
],
[
-73.902454,
40.998429
],
[
-74.236547,
41.14083
],
[
-74.69661,
41.359907
],
[
-74.740426,
41.431108
],
[
-74.89378,
41.436584
],
[
-75.074519,
41.60637
],
[
-75.052611,
41.754247
],
[
-75.173104,
41.869263
],
[
-75.249781,
41.863786
],
[
-75.35932,
42.000709
],
[
-79.76278,
42.000709
],
[
-79.76278,
42.252649
],
[
-79.76278,
42.269079
],
[
-79.149363,
42.55388
],
[
-79.050778,
42.690804
],
[
-78.853608,
42.783912
],
[
-78.930285,
42.953697
],
[
-79.012439,
42.986559
],
[
-79.072686,
43.260406
],
[
-78.486653,
43.375421
],
[
-77.966344,
43.369944
],
[
-77.75822,
43.34256
],
[
-77.533665,
43.233021
],
[
-77.391265,
43.276836
],
[
-76.958587,
43.271359
],
[
-76.695693,
43.34256
],
[
-76.41637,
43.523299
],
[
-76.235631,
43.528776
],
[
-76.230154,
43.802623
],
[
-76.137046,
43.961454
],
[
-76.3616,
44.070993
],
[
-76.312308,
44.196962
],
[
-75.912491,
44.366748
],
[
-75.764614,
44.514625
],
[
-75.282643,
44.848718
],
[
-74.828057,
45.018503
],
[
-74.148916,
44.991119
],
[
-73.343806,
45.013027
]
]
]
},
"type": "Feature",
"id": "USA-NY",
"properties": {
"fips": "36",
"name": "New York"
}
}
]
},
"PA": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-79.76278,
42.252649
],
[
-79.76278,
42.000709
],
[
-75.35932,
42.000709
],
[
-75.249781,
41.863786
],
[
-75.173104,
41.869263
],
[
-75.052611,
41.754247
],
[
-75.074519,
41.60637
],
[
-74.89378,
41.436584
],
[
-74.740426,
41.431108
],
[
-74.69661,
41.359907
],
[
-74.828057,
41.288707
],
[
-74.882826,
41.179168
],
[
-75.134765,
40.971045
],
[
-75.052611,
40.866983
],
[
-75.205966,
40.691721
],
[
-75.195012,
40.576705
],
[
-75.069042,
40.543843
],
[
-75.058088,
40.417874
],
[
-74.773287,
40.215227
],
[
-74.82258,
40.127596
],
[
-75.129289,
39.963288
],
[
-75.145719,
39.88661
],
[
-75.414089,
39.804456
],
[
-75.616736,
39.831841
],
[
-75.786521,
39.722302
],
[
-79.477979,
39.722302
],
[
-80.518598,
39.722302
],
[
-80.518598,
40.636951
],
[
-80.518598,
41.978802
],
[
-80.518598,
41.978802
],
[
-80.332382,
42.033571
],
[
-79.76278,
42.269079
],
[
-79.76278,
42.252649
]
]
]
},
"type": "Feature",
"id": "USA-PA",
"properties": {
"fips": "42",
"name": "Pennsylvania"
}
}
]
},
"CA": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-123.233256,
42.006186
],
[
-122.378853,
42.011663
],
[
-121.037003,
41.995232
],
[
-120.001861,
41.995232
],
[
-119.996384,
40.264519
],
[
-120.001861,
38.999346
],
[
-118.71478,
38.101128
],
[
-117.498899,
37.21934
],
[
-116.540435,
36.501861
],
[
-115.85034,
35.970598
],
[
-114.634459,
35.00118
],
[
-114.634459,
34.87521
],
[
-114.470151,
34.710902
],
[
-114.333228,
34.448009
],
[
-114.136058,
34.305608
],
[
-114.256551,
34.174162
],
[
-114.415382,
34.108438
],
[
-114.535874,
33.933176
],
[
-114.497536,
33.697668
],
[
-114.524921,
33.54979
],
[
-114.727567,
33.40739
],
[
-114.661844,
33.034958
],
[
-114.524921,
33.029481
],
[
-114.470151,
32.843265
],
[
-114.524921,
32.755634
],
[
-114.72209,
32.717295
],
[
-116.04751,
32.624187
],
[
-117.126467,
32.536556
],
[
-117.24696,
32.668003
],
[
-117.252437,
32.876127
],
[
-117.329114,
33.122589
],
[
-117.471515,
33.297851
],
[
-117.7837,
33.538836
],
[
-118.183517,
33.763391
],
[
-118.260194,
33.703145
],
[
-118.413548,
33.741483
],
[
-118.391641,
33.840068
],
[
-118.566903,
34.042715
],
[
-118.802411,
33.998899
],
[
-119.218659,
34.146777
],
[
-119.278905,
34.26727
],
[
-119.558229,
34.415147
],
[
-119.875891,
34.40967
],
[
-120.138784,
34.475393
],
[
-120.472878,
34.448009
],
[
-120.64814,
34.579455
],
[
-120.609801,
34.858779
],
[
-120.670048,
34.902595
],
[
-120.631709,
35.099764
],
[
-120.894602,
35.247642
],
[
-120.905556,
35.450289
],
[
-121.004141,
35.461243
],
[
-121.168449,
35.636505
],
[
-121.283465,
35.674843
],
[
-121.332757,
35.784382
],
[
-121.716143,
36.195153
],
[
-121.896882,
36.315645
],
[
-121.935221,
36.638785
],
[
-121.858544,
36.6114
],
[
-121.787344,
36.803093
],
[
-121.929744,
36.978355
],
[
-122.105006,
36.956447
],
[
-122.335038,
37.115279
],
[
-122.417192,
37.241248
],
[
-122.400761,
37.361741
],
[
-122.515777,
37.520572
],
[
-122.515777,
37.783465
],
[
-122.329561,
37.783465
],
[
-122.406238,
38.15042
],
[
-122.488392,
38.112082
],
[
-122.504823,
37.931343
],
[
-122.701993,
37.893004
],
[
-122.937501,
38.029928
],
[
-122.97584,
38.265436
],
[
-123.129194,
38.451652
],
[
-123.331841,
38.566668
],
[
-123.44138,
38.698114
],
[
-123.737134,
38.95553
],
[
-123.687842,
39.032208
],
[
-123.824765,
39.366301
],
[
-123.764519,
39.552517
],
[
-123.85215,
39.831841
],
[
-124.109566,
40.105688
],
[
-124.361506,
40.259042
],
[
-124.410798,
40.439781
],
[
-124.158859,
40.877937
],
[
-124.109566,
41.025814
],
[
-124.158859,
41.14083
],
[
-124.065751,
41.442061
],
[
-124.147905,
41.715908
],
[
-124.257444,
41.781632
],
[
-124.213628,
42.000709
],
[
-123.233256,
42.006186
]
]
]
},
"type": "Feature",
"id": "USA-CA",
"properties": {
"fips": "06",
"name": "California"
}
}
]
},
"NV": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-117.027882,
42.000709
],
[
-114.04295,
41.995232
],
[
-114.048427,
37.000263
],
[
-114.048427,
36.195153
],
[
-114.152489,
36.025367
],
[
-114.251074,
36.01989
],
[
-114.371566,
36.140383
],
[
-114.738521,
36.102045
],
[
-114.678275,
35.516012
],
[
-114.596121,
35.324319
],
[
-114.574213,
35.138103
],
[
-114.634459,
35.00118
],
[
-115.85034,
35.970598
],
[
-116.540435,
36.501861
],
[
-117.498899,
37.21934
],
[
-118.71478,
38.101128
],
[
-120.001861,
38.999346
],
[
-119.996384,
40.264519
],
[
-120.001861,
41.995232
],
[
-118.698349,
41.989755
],
[
-117.027882,
42.000709
]
]
]
},
"type": "Feature",
"id": "USA-NV",
"properties": {
"fips": "32",
"name": "Nevada"
}
}
]
},
"PR": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-66.448338,
17.984326
],
[
-66.771478,
18.006234
],
[
-66.924832,
17.929556
],
[
-66.985078,
17.973372
],
[
-67.209633,
17.956941
],
[
-67.154863,
18.19245
],
[
-67.269879,
18.362235
],
[
-67.094617,
18.515589
],
[
-66.957694,
18.488204
],
[
-66.409999,
18.488204
],
[
-65.840398,
18.433435
],
[
-65.632274,
18.367712
],
[
-65.626797,
18.203403
],
[
-65.730859,
18.186973
],
[
-65.834921,
18.017187
],
[
-66.234737,
17.929556
],
[
-66.448338,
17.984326
]
]
]
},
"type": "Feature",
"id": "USA-PR",
"properties": {
"fips": "72",
"name": "Puerto Rico"
}
}
]
},
"CO": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-107.919731,
41.003906
],
[
-105.728954,
40.998429
],
[
-104.053011,
41.003906
],
[
-102.053927,
41.003906
],
[
-102.053927,
40.001626
],
[
-102.042974,
36.994786
],
[
-103.001438,
37.000263
],
[
-104.337812,
36.994786
],
[
-106.868158,
36.994786
],
[
-107.421329,
37.000263
],
[
-109.042503,
37.000263
],
[
-109.042503,
38.166851
],
[
-109.058934,
38.27639
],
[
-109.053457,
39.125316
],
[
-109.04798,
40.998429
],
[
-107.919731,
41.003906
]
]
]
},
"type": "Feature",
"id": "USA-CO",
"properties": {
"fips": "08",
"name": "Colorado"
}
}
]
},
"AK": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-131.602021,
55.117982
],
[
-131.569159,
55.28229
],
[
-131.355558,
55.183705
],
[
-131.38842,
55.01392
],
[
-131.645836,
55.035827
],
[
-131.602021,
55.117982
]
]
],
[
[
[
-131.832052,
55.42469
],
[
-131.645836,
55.304197
],
[
-131.749898,
55.128935
],
[
-131.832052,
55.189182
],
[
-131.832052,
55.42469
]
]
],
[
[
[
-132.976733,
56.437924
],
[
-132.735747,
56.459832
],
[
-132.631685,
56.421493
],
[
-132.664547,
56.273616
],
[
-132.878148,
56.240754
],
[
-133.069841,
56.333862
],
[
-132.976733,
56.437924
]
]
],
[
[
[
-133.595627,
56.350293
],
[
-133.162949,
56.317431
],
[
-133.05341,
56.125739
],
[
-132.620732,
55.912138
],
[
-132.472854,
55.780691
],
[
-132.4619,
55.671152
],
[
-132.357838,
55.649245
],
[
-132.341408,
55.506844
],
[
-132.166146,
55.364444
],
[
-132.144238,
55.238474
],
[
-132.029222,
55.276813
],
[
-131.97993,
55.178228
],
[
-131.958022,
54.789365
],
[
-132.029222,
54.701734
],
[
-132.308546,
54.718165
],
[
-132.385223,
54.915335
],
[
-132.483808,
54.898904
],
[
-132.686455,
55.046781
],
[
-132.746701,
54.997489
],
[
-132.916486,
55.046781
],
[
-132.889102,
54.898904
],
[
-132.73027,
54.937242
],
[
-132.626209,
54.882473
],
[
-132.675501,
54.679826
],
[
-132.867194,
54.701734
],
[
-133.157472,
54.95915
],
[
-133.239626,
55.090597
],
[
-133.223195,
55.22752
],
[
-133.453227,
55.216566
],
[
-133.453227,
55.320628
],
[
-133.277964,
55.331582
],
[
-133.102702,
55.42469
],
[
-133.17938,
55.588998
],
[
-133.387503,
55.62186
],
[
-133.420365,
55.884753
],
[
-133.497042,
56.0162
],
[
-133.639442,
55.923092
],
[
-133.694212,
56.070969
],
[
-133.546335,
56.142169
],
[
-133.666827,
56.311955
],
[
-133.595627,
56.350293
]
]
],
[
[
[
-133.738027,
55.556137
],
[
-133.546335,
55.490413
],
[
-133.414888,
55.572568
],
[
-133.283441,
55.534229
],
[
-133.420365,
55.386352
],
[
-133.633966,
55.430167
],
[
-133.738027,
55.556137
]
]
],
[
[
[
-133.907813,
56.930849
],
[
-134.050213,
57.029434
],
[
-133.885905,
57.095157
],
[
-133.343688,
57.002049
],
[
-133.102702,
57.007526
],
[
-132.932917,
56.82131
],
[
-132.620732,
56.667956
],
[
-132.653593,
56.55294
],
[
-132.817901,
56.492694
],
[
-133.042456,
56.520078
],
[
-133.201287,
56.448878
],
[
-133.420365,
56.492694
],
[
-133.66135,
56.448878
],
[
-133.710643,
56.684386
],
[
-133.688735,
56.837741
],
[
-133.869474,
56.843218
],
[
-133.907813,
56.930849
]
]
],
[
[
[
-134.115936,
56.48174
],
[
-134.25286,
56.558417
],
[
-134.400737,
56.722725
],
[
-134.417168,
56.848695
],
[
-134.296675,
56.908941
],
[
-134.170706,
56.848695
],
[
-134.143321,
56.952757
],
[
-133.748981,
56.772017
],
[
-133.710643,
56.596755
],
[
-133.847566,
56.574848
],
[
-133.935197,
56.377678
],
[
-133.836612,
56.322908
],
[
-133.957105,
56.092877
],
[
-134.110459,
56.142169
],
[
-134.132367,
55.999769
],
[
-134.230952,
56.070969
],
[
-134.291198,
56.350293
],
[
-134.115936,
56.48174
]
]
],
[
[
[
-134.636246,
56.28457
],
[
-134.669107,
56.169554
],
[
-134.806031,
56.235277
],
[
-135.178463,
56.67891
],
[
-135.413971,
56.810356
],
[
-135.331817,
56.914418
],
[
-135.424925,
57.166357
],
[
-135.687818,
57.369004
],
[
-135.419448,
57.566174
],
[
-135.298955,
57.48402
],
[
-135.063447,
57.418296
],
[
-134.849846,
57.407343
],
[
-134.844369,
57.248511
],
[
-134.636246,
56.728202
],
[
-134.636246,
56.28457
]
]
],
[
[
[
-134.712923,
58.223407
],
[
-134.373353,
58.14673
],
[
-134.176183,
58.157683
],
[
-134.187137,
58.081006
],
[
-133.902336,
57.807159
],
[
-134.099505,
57.850975
],
[
-134.148798,
57.757867
],
[
-133.935197,
57.615466
],
[
-133.869474,
57.363527
],
[
-134.083075,
57.297804
],
[
-134.154275,
57.210173
],
[
-134.499322,
57.029434
],
[
-134.603384,
57.034911
],
[
-134.6472,
57.226604
],
[
-134.575999,
57.341619
],
[
-134.608861,
57.511404
],
[
-134.729354,
57.719528
],
[
-134.707446,
57.829067
],
[
-134.784123,
58.097437
],
[
-134.91557,
58.212453
],
[
-134.953908,
58.409623
],
[
-134.712923,
58.223407
]
]
],
[
[
[
-135.857603,
57.330665
],
[
-135.715203,
57.330665
],
[
-135.567326,
57.149926
],
[
-135.633049,
57.023957
],
[
-135.857603,
56.996572
],
[
-135.824742,
57.193742
],
[
-135.857603,
57.330665
]
]
],
[
[
[
-136.279328,
58.206976
],
[
-135.978096,
58.201499
],
[
-135.780926,
58.28913
],
[
-135.496125,
58.168637
],
[
-135.64948,
58.037191
],
[
-135.59471,
57.987898
],
[
-135.45231,
58.135776
],
[
-135.107263,
58.086483
],
[
-134.91557,
57.976944
],
[
-135.025108,
57.779775
],
[
-134.937477,
57.763344
],
[
-134.822462,
57.500451
],
[
-135.085355,
57.462112
],
[
-135.572802,
57.675713
],
[
-135.556372,
57.456635
],
[
-135.709726,
57.369004
],
[
-135.890465,
57.407343
],
[
-136.000004,
57.544266
],
[
-136.208128,
57.637374
],
[
-136.366959,
57.829067
],
[
-136.569606,
57.916698
],
[
-136.558652,
58.075529
],
[
-136.421728,
58.130299
],
[
-136.377913,
58.267222
],
[
-136.279328,
58.206976
]
]
],
[
[
[
-147.079854,
60.200582
],
[
-147.501579,
59.948643
],
[
-147.53444,
59.850058
],
[
-147.874011,
59.784335
],
[
-147.80281,
59.937689
],
[
-147.435855,
60.09652
],
[
-147.205824,
60.271782
],
[
-147.079854,
60.200582
]
]
],
[
[
[
-147.561825,
60.578491
],
[
-147.616594,
60.370367
],
[
-147.758995,
60.156767
],
[
-147.956165,
60.227967
],
[
-147.791856,
60.474429
],
[
-147.561825,
60.578491
]
]
],
[
[
[
-147.786379,
70.245291
],
[
-147.682318,
70.201475
],
[
-147.162008,
70.15766
],
[
-146.888161,
70.185044
],
[
-146.510252,
70.185044
],
[
-146.099482,
70.146706
],
[
-145.858496,
70.168614
],
[
-145.622988,
70.08646
],
[
-145.195787,
69.993352
],
[
-144.620708,
69.971444
],
[
-144.461877,
70.026213
],
[
-144.078491,
70.059075
],
[
-143.914183,
70.130275
],
[
-143.497935,
70.141229
],
[
-143.503412,
70.091936
],
[
-143.25695,
70.119321
],
[
-142.747594,
70.042644
],
[
-142.402547,
69.916674
],
[
-142.079408,
69.856428
],
[
-142.008207,
69.801659
],
[
-141.712453,
69.790705
],
[
-141.433129,
69.697597
],
[
-141.378359,
69.63735
],
[
-141.208574,
69.686643
],
[
-141.00045,
69.648304
],
[
-141.00045,
60.304644
],
[
-140.53491,
60.22249
],
[
-140.474664,
60.310121
],
[
-139.987216,
60.184151
],
[
-139.696939,
60.342983
],
[
-139.088998,
60.359413
],
[
-139.198537,
60.091043
],
[
-139.045183,
59.997935
],
[
-138.700135,
59.910304
],
[
-138.623458,
59.767904
],
[
-137.604747,
59.242118
],
[
-137.445916,
58.908024
],
[
-137.265177,
59.001132
],
[
-136.827022,
59.159963
],
[
-136.580559,
59.16544
],
[
-136.465544,
59.285933
],
[
-136.476498,
59.466672
],
[
-136.301236,
59.466672
],
[
-136.25742,
59.625503
],
[
-135.945234,
59.663842
],
[
-135.479694,
59.800766
],
[
-135.025108,
59.565257
],
[
-135.068924,
59.422857
],
[
-134.959385,
59.280456
],
[
-134.701969,
59.247595
],
[
-134.378829,
59.033994
],
[
-134.400737,
58.973748
],
[
-134.25286,
58.858732
],
[
-133.842089,
58.727285
],
[
-133.173903,
58.152206
],
[
-133.075318,
57.998852
],
[
-132.867194,
57.845498
],
[
-132.560485,
57.505928
],
[
-132.253777,
57.21565
],
[
-132.368792,
57.095157
],
[
-132.05113,
57.051341
],
[
-132.127807,
56.876079
],
[
-131.870391,
56.804879
],
[
-131.837529,
56.602232
],
[
-131.580113,
56.613186
],
[
-131.087188,
56.405062
],
[
-130.78048,
56.366724
],
[
-130.621648,
56.268139
],
[
-130.468294,
56.240754
],
[
-130.424478,
56.142169
],
[
-130.101339,
56.114785
],
[
-130.002754,
55.994292
],
[
-130.150631,
55.769737
],
[
-130.128724,
55.583521
],
[
-129.986323,
55.276813
],
[
-130.095862,
55.200136
],
[
-130.336847,
54.920812
],
[
-130.687372,
54.718165
],
[
-130.785957,
54.822227
],
[
-130.917403,
54.789365
],
[
-131.010511,
54.997489
],
[
-130.983126,
55.08512
],
[
-131.092665,
55.189182
],
[
-130.862634,
55.298721
],
[
-130.928357,
55.337059
],
[
-131.158389,
55.200136
],
[
-131.284358,
55.287767
],
[
-131.426759,
55.238474
],
[
-131.843006,
55.457552
],
[
-131.700606,
55.698537
],
[
-131.963499,
55.616383
],
[
-131.974453,
55.49589
],
[
-132.182576,
55.588998
],
[
-132.226392,
55.704014
],
[
-132.083991,
55.829984
],
[
-132.127807,
55.955953
],
[
-132.324977,
55.851892
],
[
-132.522147,
56.076446
],
[
-132.642639,
56.032631
],
[
-132.719317,
56.218847
],
[
-132.527624,
56.339339
],
[
-132.341408,
56.339339
],
[
-132.396177,
56.487217
],
[
-132.297592,
56.67891
],
[
-132.450946,
56.673433
],
[
-132.768609,
56.837741
],
[
-132.993164,
57.034911
],
[
-133.51895,
57.177311
],
[
-133.507996,
57.577128
],
[
-133.677781,
57.62642
],
[
-133.639442,
57.790728
],
[
-133.814705,
57.834544
],
[
-134.072121,
58.053622
],
[
-134.143321,
58.168637
],
[
-134.586953,
58.206976
],
[
-135.074401,
58.502731
],
[
-135.282525,
59.192825
],
[
-135.38111,
59.033994
],
[
-135.337294,
58.891593
],
[
-135.140124,
58.617746
],
[
-135.189417,
58.573931
],
[
-135.05797,
58.349376
],
[
-135.085355,
58.201499
],
[
-135.277048,
58.234361
],
[
-135.430402,
58.398669
],
[
-135.633049,
58.426053
],
[
-135.91785,
58.382238
],
[
-135.912373,
58.617746
],
[
-136.087635,
58.814916
],
[
-136.246466,
58.75467
],
[
-136.876314,
58.962794
],
[
-136.931084,
58.902547
],
[
-136.586036,
58.836824
],
[
-136.317666,
58.672516
],
[
-136.213604,
58.667039
],
[
-136.180743,
58.535592
],
[
-136.043819,
58.382238
],
[
-136.388867,
58.294607
],
[
-136.591513,
58.349376
],
[
-136.59699,
58.212453
],
[
-136.859883,
58.316515
],
[
-136.947514,
58.393192
],
[
-137.111823,
58.393192
],
[
-137.566409,
58.590362
],
[
-137.900502,
58.765624
],
[
-137.933364,
58.869686
],
[
-138.11958,
59.02304
],
[
-138.634412,
59.132579
],
[
-138.919213,
59.247595
],
[
-139.417615,
59.379041
],
[
-139.746231,
59.505011
],
[
-139.718846,
59.641934
],
[
-139.625738,
59.598119
],
[
-139.5162,
59.68575
],
[
-139.625738,
59.88292
],
[
-139.488815,
59.992458
],
[
-139.554538,
60.041751
],
[
-139.801,
59.833627
],
[
-140.315833,
59.696704
],
[
-140.92925,
59.745996
],
[
-141.444083,
59.871966
],
[
-141.46599,
59.970551
],
[
-141.706976,
59.948643
],
[
-141.964392,
60.019843
],
[
-142.539471,
60.085566
],
[
-142.873564,
60.091043
],
[
-143.623905,
60.036274
],
[
-143.892275,
59.997935
],
[
-144.231845,
60.140336
],
[
-144.65357,
60.206059
],
[
-144.785016,
60.29369
],
[
-144.834309,
60.441568
],
[
-145.124586,
60.430614
],
[
-145.223171,
60.299167
],
[
-145.738004,
60.474429
],
[
-145.820158,
60.551106
],
[
-146.351421,
60.408706
],
[
-146.608837,
60.238921
],
[
-146.718376,
60.397752
],
[
-146.608837,
60.485383
],
[
-146.455483,
60.463475
],
[
-145.951604,
60.578491
],
[
-146.017328,
60.666122
],
[
-146.252836,
60.622307
],
[
-146.345944,
60.737322
],
[
-146.565022,
60.753753
],
[
-146.784099,
61.044031
],
[
-146.866253,
60.972831
],
[
-147.172962,
60.934492
],
[
-147.271547,
60.972831
],
[
-147.375609,
60.879723
],
[
-147.758995,
60.912584
],
[
-147.775426,
60.808523
],
[
-148.032842,
60.781138
],
[
-148.153334,
60.819476
],
[
-148.065703,
61.005692
],
[
-148.175242,
61.000215
],
[
-148.350504,
60.803046
],
[
-148.109519,
60.737322
],
[
-148.087611,
60.594922
],
[
-147.939734,
60.441568
],
[
-148.027365,
60.277259
],
[
-148.219058,
60.332029
],
[
-148.273827,
60.249875
],
[
-148.087611,
60.217013
],
[
-147.983549,
59.997935
],
[
-148.251919,
59.95412
],
[
-148.399797,
59.997935
],
[
-148.635305,
59.937689
],
[
-148.755798,
59.986981
],
[
-149.067984,
59.981505
],
[
-149.05703,
60.063659
],
[
-149.204907,
60.008889
],
[
-149.287061,
59.904827
],
[
-149.418508,
59.997935
],
[
-149.582816,
59.866489
],
[
-149.511616,
59.806242
],
[
-149.741647,
59.729565
],
[
-149.949771,
59.718611
],
[
-150.031925,
59.61455
],
[
-150.25648,
59.521442
],
[
-150.409834,
59.554303
],
[
-150.579619,
59.444764
],
[
-150.716543,
59.450241
],
[
-151.001343,
59.225687
],
[
-151.308052,
59.209256
],
[
-151.406637,
59.280456
],
[
-151.592853,
59.159963
],
[
-151.976239,
59.253071
],
[
-151.888608,
59.422857
],
[
-151.636669,
59.483103
],
[
-151.47236,
59.472149
],
[
-151.423068,
59.537872
],
[
-151.127313,
59.669319
],
[
-151.116359,
59.778858
],
[
-151.505222,
59.63098
],
[
-151.828361,
59.718611
],
[
-151.8667,
59.778858
],
[
-151.702392,
60.030797
],
[
-151.423068,
60.211536
],
[
-151.379252,
60.359413
],
[
-151.297098,
60.386798
],
[
-151.264237,
60.545629
],
[
-151.406637,
60.720892
],
[
-151.06159,
60.786615
],
[
-150.404357,
61.038554
],
[
-150.245526,
60.939969
],
[
-150.042879,
60.912584
],
[
-149.741647,
61.016646
],
[
-150.075741,
61.15357
],
[
-150.207187,
61.257632
],
[
-150.47008,
61.246678
],
[
-150.656296,
61.29597
],
[
-150.711066,
61.252155
],
[
-151.023251,
61.180954
],
[
-151.165652,
61.044031
],
[
-151.477837,
61.011169
],
[
-151.800977,
60.852338
],
[
-151.833838,
60.748276
],
[
-152.080301,
60.693507
],
[
-152.13507,
60.578491
],
[
-152.310332,
60.507291
],
[
-152.392486,
60.304644
],
[
-152.732057,
60.173197
],
[
-152.567748,
60.069136
],
[
-152.704672,
59.915781
],
[
-153.022334,
59.888397
],
[
-153.049719,
59.691227
],
[
-153.345474,
59.620026
],
[
-153.438582,
59.702181
],
[
-153.586459,
59.548826
],
[
-153.761721,
59.543349
],
[
-153.72886,
59.433811
],
[
-154.117723,
59.368087
],
[
-154.1944,
59.066856
],
[
-153.750768,
59.050425
],
[
-153.400243,
58.968271
],
[
-153.301658,
58.869686
],
[
-153.444059,
58.710854
],
[
-153.679567,
58.612269
],
[
-153.898645,
58.606793
],
[
-153.920553,
58.519161
],
[
-154.062953,
58.4863
],
[
-153.99723,
58.376761
],
[
-154.145107,
58.212453
],
[
-154.46277,
58.059098
],
[
-154.643509,
58.059098
],
[
-154.818771,
58.004329
],
[
-154.988556,
58.015283
],
[
-155.120003,
57.955037
],
[
-155.081664,
57.872883
],
[
-155.328126,
57.829067
],
[
-155.377419,
57.708574
],
[
-155.547204,
57.785251
],
[
-155.73342,
57.549743
],
[
-156.045606,
57.566174
],
[
-156.023698,
57.440204
],
[
-156.209914,
57.473066
],
[
-156.34136,
57.418296
],
[
-156.34136,
57.248511
],
[
-156.549484,
56.985618
],
[
-156.883577,
56.952757
],
[
-157.157424,
56.832264
],
[
-157.20124,
56.766541
],
[
-157.376502,
56.859649
],
[
-157.672257,
56.607709
],
[
-157.754411,
56.67891
],
[
-157.918719,
56.657002
],
[
-157.957058,
56.514601
],
[
-158.126843,
56.459832
],
[
-158.32949,
56.48174
],
[
-158.488321,
56.339339
],
[
-158.208997,
56.295524
],
[
-158.510229,
55.977861
],
[
-159.375585,
55.873799
],
[
-159.616571,
55.594475
],
[
-159.676817,
55.654722
],
[
-159.643955,
55.829984
],
[
-159.813741,
55.857368
],
[
-160.027341,
55.791645
],
[
-160.060203,
55.720445
],
[
-160.394296,
55.605429
],
[
-160.536697,
55.473983
],
[
-160.580512,
55.567091
],
[
-160.668143,
55.457552
],
[
-160.865313,
55.528752
],
[
-161.232268,
55.358967
],
[
-161.506115,
55.364444
],
[
-161.467776,
55.49589
],
[
-161.588269,
55.62186
],
[
-161.697808,
55.517798
],
[
-161.686854,
55.408259
],
[
-162.053809,
55.074166
],
[
-162.179779,
55.15632
],
[
-162.218117,
55.03035
],
[
-162.470057,
55.052258
],
[
-162.508395,
55.249428
],
[
-162.661749,
55.293244
],
[
-162.716519,
55.222043
],
[
-162.579595,
55.134412
],
[
-162.645319,
54.997489
],
[
-162.847965,
54.926289
],
[
-163.00132,
55.079643
],
[
-163.187536,
55.090597
],
[
-163.220397,
55.03035
],
[
-163.034181,
54.942719
],
[
-163.373752,
54.800319
],
[
-163.14372,
54.76198
],
[
-163.138243,
54.696257
],
[
-163.329936,
54.74555
],
[
-163.587352,
54.614103
],
[
-164.085754,
54.61958
],
[
-164.332216,
54.531949
],
[
-164.354124,
54.466226
],
[
-164.638925,
54.389548
],
[
-164.847049,
54.416933
],
[
-164.918249,
54.603149
],
[
-164.710125,
54.663395
],
[
-164.551294,
54.88795
],
[
-164.34317,
54.893427
],
[
-163.894061,
55.041304
],
[
-163.532583,
55.046781
],
[
-163.39566,
54.904381
],
[
-163.291598,
55.008443
],
[
-163.313505,
55.128935
],
[
-163.105382,
55.183705
],
[
-162.880827,
55.183705
],
[
-162.579595,
55.446598
],
[
-162.245502,
55.682106
],
[
-161.807347,
55.89023
],
[
-161.292514,
55.983338
],
[
-161.078914,
55.939523
],
[
-160.87079,
55.999769
],
[
-160.816021,
55.912138
],
[
-160.931036,
55.813553
],
[
-160.805067,
55.736876
],
[
-160.766728,
55.857368
],
[
-160.509312,
55.868322
],
[
-160.438112,
55.791645
],
[
-160.27928,
55.76426
],
[
-160.273803,
55.857368
],
[
-160.536697,
55.939523
],
[
-160.558604,
55.994292
],
[
-160.383342,
56.251708
],
[
-160.147834,
56.399586
],
[
-159.830171,
56.541986
],
[
-159.326293,
56.667956
],
[
-158.959338,
56.848695
],
[
-158.784076,
56.782971
],
[
-158.641675,
56.810356
],
[
-158.701922,
56.925372
],
[
-158.658106,
57.034911
],
[
-158.378782,
57.264942
],
[
-157.995396,
57.41282
],
[
-157.688688,
57.609989
],
[
-157.705118,
57.719528
],
[
-157.458656,
58.497254
],
[
-157.07527,
58.705377
],
[
-157.119086,
58.869686
],
[
-158.039212,
58.634177
],
[
-158.32949,
58.661562
],
[
-158.40069,
58.760147
],
[
-158.564998,
58.803962
],
[
-158.619768,
58.913501
],
[
-158.767645,
58.864209
],
[
-158.860753,
58.694424
],
[
-158.701922,
58.480823
],
[
-158.893615,
58.387715
],
[
-159.0634,
58.420577
],
[
-159.392016,
58.760147
],
[
-159.616571,
58.929932
],
[
-159.731586,
58.929932
],
[
-159.808264,
58.803962
],
[
-159.906848,
58.782055
],
[
-160.054726,
58.886116
],
[
-160.235465,
58.902547
],
[
-160.317619,
59.072332
],
[
-160.854359,
58.88064
],
[
-161.33633,
58.743716
],
[
-161.374669,
58.667039
],
[
-161.752577,
58.552023
],
[
-161.938793,
58.656085
],
[
-161.769008,
58.776578
],
[
-161.829255,
59.061379
],
[
-161.955224,
59.36261
],
[
-161.703285,
59.48858
],
[
-161.911409,
59.740519
],
[
-162.092148,
59.88292
],
[
-162.234548,
60.091043
],
[
-162.448149,
60.178674
],
[
-162.502918,
59.997935
],
[
-162.760334,
59.959597
],
[
-163.171105,
59.844581
],
[
-163.66403,
59.795289
],
[
-163.9324,
59.806242
],
[
-164.162431,
59.866489
],
[
-164.189816,
60.02532
],
[
-164.386986,
60.074613
],
[
-164.699171,
60.29369
],
[
-164.962064,
60.337506
],
[
-165.268773,
60.578491
],
[
-165.060649,
60.68803
],
[
-165.016834,
60.890677
],
[
-165.175665,
60.846861
],
[
-165.197573,
60.972831
],
[
-165.120896,
61.076893
],
[
-165.323543,
61.170001
],
[
-165.34545,
61.071416
],
[
-165.591913,
61.109754
],
[
-165.624774,
61.279539
],
[
-165.816467,
61.301447
],
[
-165.920529,
61.416463
],
[
-165.915052,
61.558863
],
[
-166.106745,
61.49314
],
[
-166.139607,
61.630064
],
[
-165.904098,
61.662925
],
[
-166.095791,
61.81628
],
[
-165.756221,
61.827233
],
[
-165.756221,
62.013449
],
[
-165.674067,
62.139419
],
[
-165.044219,
62.539236
],
[
-164.912772,
62.659728
],
[
-164.819664,
62.637821
],
[
-164.874433,
62.807606
],
[
-164.633448,
63.097884
],
[
-164.425324,
63.212899
],
[
-164.036462,
63.262192
],
[
-163.73523,
63.212899
],
[
-163.313505,
63.037637
],
[
-163.039658,
63.059545
],
[
-162.661749,
63.22933
],
[
-162.272887,
63.486746
],
[
-162.075717,
63.514131
],
[
-162.026424,
63.448408
],
[
-161.555408,
63.448408
],
[
-161.13916,
63.503177
],
[
-160.766728,
63.771547
],
[
-160.766728,
63.837271
],
[
-160.952944,
64.08921
],
[
-160.974852,
64.237087
],
[
-161.26513,
64.395918
],
[
-161.374669,
64.532842
],
[
-161.078914,
64.494503
],
[
-160.79959,
64.609519
],
[
-160.783159,
64.719058
],
[
-161.144637,
64.921705
],
[
-161.413007,
64.762873
],
[
-161.664946,
64.790258
],
[
-161.900455,
64.702627
],
[
-162.168825,
64.680719
],
[
-162.234548,
64.620473
],
[
-162.541257,
64.532842
],
[
-162.634365,
64.384965
],
[
-162.787719,
64.324718
],
[
-162.858919,
64.49998
],
[
-163.045135,
64.538319
],
[
-163.176582,
64.401395
],
[
-163.253259,
64.467119
],
[
-163.598306,
64.565704
],
[
-164.304832,
64.560227
],
[
-164.80871,
64.450688
],
[
-165.000403,
64.434257
],
[
-165.411174,
64.49998
],
[
-166.188899,
64.576658
],
[
-166.391546,
64.636904
],
[
-166.484654,
64.735489
],
[
-166.413454,
64.872412
],
[
-166.692778,
64.987428
],
[
-166.638008,
65.113398
],
[
-166.462746,
65.179121
],
[
-166.517516,
65.337952
],
[
-166.796839,
65.337952
],
[
-167.026871,
65.381768
],
[
-167.47598,
65.414629
],
[
-167.711489,
65.496784
],
[
-168.072967,
65.578938
],
[
-168.105828,
65.682999
],
[
-167.541703,
65.819923
],
[
-166.829701,
66.049954
],
[
-166.3313,
66.186878
],
[
-166.046499,
66.110201
],
[
-165.756221,
66.09377
],
[
-165.690498,
66.203309
],
[
-165.86576,
66.21974
],
[
-165.88219,
66.312848
],
[
-165.186619,
66.466202
],
[
-164.403417,
66.581218
],
[
-163.981692,
66.592172
],
[
-163.751661,
66.553833
],
[
-163.872153,
66.389525
],
[
-163.828338,
66.274509
],
[
-163.915969,
66.192355
],
[
-163.768091,
66.060908
],
[
-163.494244,
66.082816
],
[
-163.149197,
66.060908
],
[
-162.749381,
66.088293
],
[
-162.634365,
66.039001
],
[
-162.371472,
66.028047
],
[
-162.14144,
66.077339
],
[
-161.840208,
66.02257
],
[
-161.549931,
66.241647
],
[
-161.341807,
66.252601
],
[
-161.199406,
66.208786
],
[
-161.128206,
66.334755
],
[
-161.528023,
66.395002
],
[
-161.911409,
66.345709
],
[
-161.87307,
66.510017
],
[
-162.174302,
66.68528
],
[
-162.502918,
66.740049
],
[
-162.601503,
66.89888
],
[
-162.344087,
66.937219
],
[
-162.015471,
66.778388
],
[
-162.075717,
66.652418
],
[
-161.916886,
66.553833
],
[
-161.571838,
66.438817
],
[
-161.489684,
66.55931
],
[
-161.884024,
66.718141
],
[
-161.714239,
67.002942
],
[
-161.851162,
67.052235
],
[
-162.240025,
66.991988
],
[
-162.639842,
67.008419
],
[
-162.700088,
67.057712
],
[
-162.902735,
67.008419
],
[
-163.740707,
67.128912
],
[
-163.757138,
67.254881
],
[
-164.009077,
67.534205
],
[
-164.211724,
67.638267
],
[
-164.534863,
67.725898
],
[
-165.192096,
67.966884
],
[
-165.493328,
68.059992
],
[
-165.794559,
68.081899
],
[
-166.243668,
68.246208
],
[
-166.681824,
68.339316
],
[
-166.703731,
68.372177
],
[
-166.375115,
68.42147
],
[
-166.227238,
68.574824
],
[
-166.216284,
68.881533
],
[
-165.329019,
68.859625
],
[
-164.255539,
68.930825
],
[
-163.976215,
68.985595
],
[
-163.532583,
69.138949
],
[
-163.110859,
69.374457
],
[
-163.023228,
69.609966
],
[
-162.842489,
69.812613
],
[
-162.470057,
69.982398
],
[
-162.311225,
70.108367
],
[
-161.851162,
70.311014
],
[
-161.779962,
70.256245
],
[
-161.396576,
70.239814
],
[
-160.837928,
70.343876
],
[
-160.487404,
70.453415
],
[
-159.649432,
70.792985
],
[
-159.33177,
70.809416
],
[
-159.298908,
70.760123
],
[
-158.975769,
70.798462
],
[
-158.658106,
70.787508
],
[
-158.033735,
70.831323
],
[
-157.420318,
70.979201
],
[
-156.812377,
71.285909
],
[
-156.565915,
71.351633
],
[
-156.522099,
71.296863
],
[
-155.585543,
71.170894
],
[
-155.508865,
71.083263
],
[
-155.832005,
70.968247
],
[
-155.979882,
70.96277
],
[
-155.974405,
70.809416
],
[
-155.503388,
70.858708
],
[
-155.476004,
70.940862
],
[
-155.262403,
71.017539
],
[
-155.191203,
70.973724
],
[
-155.032372,
71.148986
],
[
-154.566832,
70.990155
],
[
-154.643509,
70.869662
],
[
-154.353231,
70.8368
],
[
-154.183446,
70.7656
],
[
-153.931507,
70.880616
],
[
-153.487874,
70.886093
],
[
-153.235935,
70.924431
],
[
-152.589656,
70.886093
],
[
-152.26104,
70.842277
],
[
-152.419871,
70.606769
],
[
-151.817408,
70.546523
],
[
-151.773592,
70.486276
],
[
-151.187559,
70.382214
],
[
-151.182082,
70.431507
],
[
-150.760358,
70.49723
],
[
-150.355064,
70.491753
],
[
-150.349588,
70.436984
],
[
-150.114079,
70.431507
],
[
-149.867617,
70.508184
],
[
-149.462323,
70.519138
],
[
-149.177522,
70.486276
],
[
-148.78866,
70.404122
],
[
-148.607921,
70.420553
],
[
-148.350504,
70.305537
],
[
-148.202627,
70.349353
],
[
-147.961642,
70.316491
],
[
-147.786379,
70.245291
]
]
],
[
[
[
-152.94018,
58.026237
],
[
-152.945657,
57.982421
],
[
-153.290705,
58.048145
],
[
-153.044242,
58.305561
],
[
-152.819688,
58.327469
],
[
-152.666333,
58.562977
],
[
-152.496548,
58.354853
],
[
-152.354148,
58.426053
],
[
-152.080301,
58.311038
],
[
-152.080301,
58.152206
],
[
-152.480117,
58.130299
],
[
-152.655379,
58.059098
],
[
-152.94018,
58.026237
]
]
],
[
[
[
-153.958891,
57.538789
],
[
-153.67409,
57.670236
],
[
-153.931507,
57.69762
],
[
-153.936983,
57.812636
],
[
-153.723383,
57.889313
],
[
-153.570028,
57.834544
],
[
-153.548121,
57.719528
],
[
-153.46049,
57.796205
],
[
-153.455013,
57.96599
],
[
-153.268797,
57.889313
],
[
-153.235935,
57.998852
],
[
-153.071627,
57.933129
],
[
-152.874457,
57.933129
],
[
-152.721103,
57.993375
],
[
-152.469163,
57.889313
],
[
-152.469163,
57.599035
],
[
-152.151501,
57.620943
],
[
-152.359625,
57.42925
],
[
-152.74301,
57.505928
],
[
-152.60061,
57.379958
],
[
-152.710149,
57.275896
],
[
-152.907319,
57.325188
],
[
-152.912796,
57.128019
],
[
-153.214027,
57.073249
],
[
-153.312612,
56.991095
],
[
-153.498828,
57.067772
],
[
-153.695998,
56.859649
],
[
-153.849352,
56.837741
],
[
-154.013661,
56.744633
],
[
-154.073907,
56.969187
],
[
-154.303938,
56.848695
],
[
-154.314892,
56.919895
],
[
-154.523016,
56.991095
],
[
-154.539447,
57.193742
],
[
-154.742094,
57.275896
],
[
-154.627078,
57.511404
],
[
-154.227261,
57.659282
],
[
-153.980799,
57.648328
],
[
-153.958891,
57.538789
]
]
],
[
[
[
-154.53397,
56.602232
],
[
-154.742094,
56.399586
],
[
-154.807817,
56.432447
],
[
-154.53397,
56.602232
]
]
],
[
[
[
-155.634835,
55.923092
],
[
-155.476004,
55.912138
],
[
-155.530773,
55.704014
],
[
-155.793666,
55.731399
],
[
-155.837482,
55.802599
],
[
-155.634835,
55.923092
]
]
],
[
[
[
-159.890418,
55.28229
],
[
-159.950664,
55.068689
],
[
-160.257373,
54.893427
],
[
-160.109495,
55.161797
],
[
-160.005433,
55.134412
],
[
-159.890418,
55.28229
]
]
],
[
[
[
-160.520266,
55.358967
],
[
-160.33405,
55.358967
],
[
-160.339527,
55.249428
],
[
-160.525743,
55.128935
],
[
-160.690051,
55.211089
],
[
-160.794113,
55.134412
],
[
-160.854359,
55.320628
],
[
-160.79959,
55.380875
],
[
-160.520266,
55.358967
]
]
],
[
[
[
-162.256456,
54.981058
],
[
-162.234548,
54.893427
],
[
-162.349564,
54.838658
],
[
-162.437195,
54.931766
],
[
-162.256456,
54.981058
]
]
],
[
[
[
-162.415287,
63.634624
],
[
-162.563165,
63.536039
],
[
-162.612457,
63.62367
],
[
-162.415287,
63.634624
]
]
],
[
[
[
-162.80415,
54.488133
],
[
-162.590549,
54.449795
],
[
-162.612457,
54.367641
],
[
-162.782242,
54.373118
],
[
-162.80415,
54.488133
]
]
],
[
[
[
-165.548097,
54.29644
],
[
-165.476897,
54.181425
],
[
-165.630251,
54.132132
],
[
-165.685021,
54.252625
],
[
-165.548097,
54.29644
]
]
],
[
[
[
-165.73979,
54.15404
],
[
-166.046499,
54.044501
],
[
-166.112222,
54.121178
],
[
-165.980775,
54.219763
],
[
-165.73979,
54.15404
]
]
],
[
[
[
-166.364161,
60.359413
],
[
-166.13413,
60.397752
],
[
-166.084837,
60.326552
],
[
-165.88219,
60.342983
],
[
-165.685021,
60.277259
],
[
-165.646682,
59.992458
],
[
-165.750744,
59.89935
],
[
-166.00816,
59.844581
],
[
-166.062929,
59.745996
],
[
-166.440838,
59.855535
],
[
-166.6161,
59.850058
],
[
-166.994009,
59.992458
],
[
-167.125456,
59.992458
],
[
-167.344534,
60.074613
],
[
-167.421211,
60.206059
],
[
-167.311672,
60.238921
],
[
-166.93924,
60.206059
],
[
-166.763978,
60.310121
],
[
-166.577762,
60.321075
],
[
-166.495608,
60.392275
],
[
-166.364161,
60.359413
]
]
],
[
[
[
-166.375115,
54.01164
],
[
-166.210807,
53.934962
],
[
-166.5449,
53.748746
],
[
-166.539423,
53.715885
],
[
-166.117699,
53.852808
],
[
-166.112222,
53.776131
],
[
-166.282007,
53.683023
],
[
-166.555854,
53.622777
],
[
-166.583239,
53.529669
],
[
-166.878994,
53.431084
],
[
-167.13641,
53.425607
],
[
-167.306195,
53.332499
],
[
-167.623857,
53.250345
],
[
-167.793643,
53.337976
],
[
-167.459549,
53.442038
],
[
-167.355487,
53.425607
],
[
-167.103548,
53.513238
],
[
-167.163794,
53.611823
],
[
-167.021394,
53.715885
],
[
-166.807793,
53.666592
],
[
-166.785886,
53.732316
],
[
-167.015917,
53.754223
],
[
-167.141887,
53.825424
],
[
-167.032348,
53.945916
],
[
-166.643485,
54.017116
],
[
-166.561331,
53.880193
],
[
-166.375115,
54.01164
]
]
],
[
[
[
-168.790446,
53.157237
],
[
-168.40706,
53.34893
],
[
-168.385152,
53.431084
],
[
-168.237275,
53.524192
],
[
-168.007243,
53.568007
],
[
-167.886751,
53.518715
],
[
-167.842935,
53.387268
],
[
-168.270136,
53.244868
],
[
-168.500168,
53.036744
],
[
-168.686384,
52.965544
],
[
-168.790446,
53.157237
]
]
],
[
[
[
-169.74891,
52.894344
],
[
-169.705095,
52.795759
],
[
-169.962511,
52.790282
],
[
-169.989896,
52.856005
],
[
-169.74891,
52.894344
]
]
],
[
[
[
-170.148727,
57.221127
],
[
-170.28565,
57.128019
],
[
-170.313035,
57.221127
],
[
-170.148727,
57.221127
]
]
],
[
[
[
-170.669036,
52.697174
],
[
-170.603313,
52.604066
],
[
-170.789529,
52.538343
],
[
-170.816914,
52.636928
],
[
-170.669036,
52.697174
]
]
],
[
[
[
-171.742517,
63.716778
],
[
-170.94836,
63.5689
],
[
-170.488297,
63.69487
],
[
-170.280174,
63.683916
],
[
-170.093958,
63.612716
],
[
-170.044665,
63.492223
],
[
-169.644848,
63.4265
],
[
-169.518879,
63.366254
],
[
-168.99857,
63.338869
],
[
-168.686384,
63.295053
],
[
-168.856169,
63.147176
],
[
-169.108108,
63.180038
],
[
-169.376478,
63.152653
],
[
-169.513402,
63.08693
],
[
-169.639372,
62.939052
],
[
-169.831064,
63.075976
],
[
-170.055619,
63.169084
],
[
-170.263743,
63.180038
],
[
-170.362328,
63.2841
],
[
-170.866206,
63.415546
],
[
-171.101715,
63.421023
],
[
-171.463193,
63.306007
],
[
-171.73704,
63.366254
],
[
-171.852055,
63.486746
],
[
-171.742517,
63.716778
]
]
],
[
[
[
-172.432611,
52.390465
],
[
-172.41618,
52.275449
],
[
-172.607873,
52.253542
],
[
-172.569535,
52.352127
],
[
-172.432611,
52.390465
]
]
],
[
[
[
-173.626584,
52.14948
],
[
-173.495138,
52.105664
],
[
-173.122706,
52.111141
],
[
-173.106275,
52.07828
],
[
-173.549907,
52.028987
],
[
-173.626584,
52.14948
]
]
],
[
[
[
-174.322156,
52.280926
],
[
-174.327632,
52.379511
],
[
-174.185232,
52.41785
],
[
-173.982585,
52.319265
],
[
-174.059262,
52.226157
],
[
-174.179755,
52.231634
],
[
-174.141417,
52.127572
],
[
-174.333109,
52.116618
],
[
-174.738403,
52.007079
],
[
-174.968435,
52.039941
],
[
-174.902711,
52.116618
],
[
-174.656249,
52.105664
],
[
-174.322156,
52.280926
]
]
],
[
[
[
-176.469116,
51.853725
],
[
-176.288377,
51.870156
],
[
-176.288377,
51.744186
],
[
-176.518409,
51.760617
],
[
-176.80321,
51.61274
],
[
-176.912748,
51.80991
],
[
-176.792256,
51.815386
],
[
-176.775825,
51.963264
],
[
-176.627947,
51.968741
],
[
-176.627947,
51.859202
],
[
-176.469116,
51.853725
]
]
],
[
[
[
-177.153734,
51.946833
],
[
-177.044195,
51.897541
],
[
-177.120872,
51.727755
],
[
-177.274226,
51.678463
],
[
-177.279703,
51.782525
],
[
-177.153734,
51.946833
]
]
],
[
[
[
-178.123152,
51.919448
],
[
-177.953367,
51.913971
],
[
-177.800013,
51.793479
],
[
-177.964321,
51.651078
],
[
-178.123152,
51.919448
]
]
],
[
[
[
173.107557,
52.992929
],
[
173.293773,
52.927205
],
[
173.304726,
52.823143
],
[
172.90491,
52.762897
],
[
172.642017,
52.927205
],
[
172.642017,
53.003883
],
[
173.107557,
52.992929
]
]
]
]
},
"type": "Feature",
"id": "USA-AK",
"properties": {
"fips": "02",
"name": "Alaska"
}
}
]
},
"AL": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-87.359296,
35.00118
],
[
-85.606675,
34.984749
],
[
-85.431413,
34.124869
],
[
-85.184951,
32.859696
],
[
-85.069935,
32.580372
],
[
-84.960397,
32.421541
],
[
-85.004212,
32.322956
],
[
-84.889196,
32.262709
],
[
-85.058981,
32.13674
],
[
-85.053504,
32.01077
],
[
-85.141136,
31.840985
],
[
-85.042551,
31.539753
],
[
-85.113751,
31.27686
],
[
-85.004212,
31.003013
],
[
-85.497137,
30.997536
],
[
-87.600282,
30.997536
],
[
-87.633143,
30.86609
],
[
-87.408589,
30.674397
],
[
-87.446927,
30.510088
],
[
-87.37025,
30.427934
],
[
-87.518128,
30.280057
],
[
-87.655051,
30.247195
],
[
-87.90699,
30.411504
],
[
-87.934375,
30.657966
],
[
-88.011052,
30.685351
],
[
-88.10416,
30.499135
],
[
-88.137022,
30.318396
],
[
-88.394438,
30.367688
],
[
-88.471115,
31.895754
],
[
-88.241084,
33.796253
],
[
-88.098683,
34.891641
],
[
-88.202745,
34.995703
],
[
-87.359296,
35.00118
]
]
]
},
"type": "Feature",
"id": "USA-AL",
"properties": {
"fips": "01",
"name": "Alabama"
}
}
]
},
"AR": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-94.473842,
36.501861
],
[
-90.152536,
36.496384
],
[
-90.064905,
36.304691
],
[
-90.218259,
36.184199
],
[
-90.377091,
35.997983
],
[
-89.730812,
35.997983
],
[
-89.763673,
35.811767
],
[
-89.911551,
35.756997
],
[
-89.944412,
35.603643
],
[
-90.130628,
35.439335
],
[
-90.114197,
35.198349
],
[
-90.212782,
35.023087
],
[
-90.311367,
34.995703
],
[
-90.251121,
34.908072
],
[
-90.409952,
34.831394
],
[
-90.481152,
34.661609
],
[
-90.585214,
34.617794
],
[
-90.568783,
34.420624
],
[
-90.749522,
34.365854
],
[
-90.744046,
34.300131
],
[
-90.952169,
34.135823
],
[
-90.891923,
34.026284
],
[
-91.072662,
33.867453
],
[
-91.231493,
33.560744
],
[
-91.056231,
33.429298
],
[
-91.143862,
33.347144
],
[
-91.089093,
33.13902
],
[
-91.16577,
33.002096
],
[
-93.608485,
33.018527
],
[
-94.041164,
33.018527
],
[
-94.041164,
33.54979
],
[
-94.183564,
33.593606
],
[
-94.380734,
33.544313
],
[
-94.484796,
33.637421
],
[
-94.430026,
35.395519
],
[
-94.616242,
36.501861
],
[
-94.473842,
36.501861
]
]
]
},
"type": "Feature",
"id": "USA-AR",
"properties": {
"fips": "05",
"name": "Arkansas"
}
}
]
},
"VT": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-71.503554,
45.013027
],
[
-71.4926,
44.914442
],
[
-71.629524,
44.750133
],
[
-71.536416,
44.585825
],
[
-71.700724,
44.41604
],
[
-72.034817,
44.322932
],
[
-72.02934,
44.07647
],
[
-72.116971,
43.994316
],
[
-72.204602,
43.769761
],
[
-72.379864,
43.572591
],
[
-72.456542,
43.150867
],
[
-72.445588,
43.008466
],
[
-72.533219,
42.953697
],
[
-72.544173,
42.80582
],
[
-72.456542,
42.729142
],
[
-73.267129,
42.745573
],
[
-73.278083,
42.833204
],
[
-73.245221,
43.523299
],
[
-73.404052,
43.687607
],
[
-73.349283,
43.769761
],
[
-73.436914,
44.043608
],
[
-73.321898,
44.246255
],
[
-73.294514,
44.437948
],
[
-73.387622,
44.618687
],
[
-73.332852,
44.804903
],
[
-73.343806,
45.013027
],
[
-72.308664,
45.002073
],
[
-71.503554,
45.013027
]
]
]
},
"type": "Feature",
"id": "USA-VT",
"properties": {
"fips": "50",
"name": "Vermont"
}
}
]
},
"IL": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-90.639984,
42.510065
],
[
-88.788778,
42.493634
],
[
-87.802929,
42.493634
],
[
-87.83579,
42.301941
],
[
-87.682436,
42.077386
],
[
-87.523605,
41.710431
],
[
-87.529082,
39.34987
],
[
-87.63862,
39.169131
],
[
-87.512651,
38.95553
],
[
-87.49622,
38.780268
],
[
-87.62219,
38.637868
],
[
-87.655051,
38.506421
],
[
-87.83579,
38.292821
],
[
-87.950806,
38.27639
],
[
-87.923421,
38.15042
],
[
-88.000098,
38.101128
],
[
-88.060345,
37.865619
],
[
-88.027483,
37.799896
],
[
-88.15893,
37.657496
],
[
-88.065822,
37.482234
],
[
-88.476592,
37.389126
],
[
-88.514931,
37.285064
],
[
-88.421823,
37.153617
],
[
-88.547792,
37.071463
],
[
-88.914747,
37.224817
],
[
-89.029763,
37.213863
],
[
-89.183118,
37.038601
],
[
-89.133825,
36.983832
],
[
-89.292656,
36.994786
],
[
-89.517211,
37.279587
],
[
-89.435057,
37.34531
],
[
-89.517211,
37.537003
],
[
-89.517211,
37.690357
],
[
-89.84035,
37.903958
],
[
-89.949889,
37.88205
],
[
-90.059428,
38.013497
],
[
-90.355183,
38.216144
],
[
-90.349706,
38.374975
],
[
-90.179921,
38.632391
],
[
-90.207305,
38.725499
],
[
-90.10872,
38.845992
],
[
-90.251121,
38.917192
],
[
-90.470199,
38.961007
],
[
-90.585214,
38.867899
],
[
-90.661891,
38.928146
],
[
-90.727615,
39.256762
],
[
-91.061708,
39.470363
],
[
-91.368417,
39.727779
],
[
-91.494386,
40.034488
],
[
-91.50534,
40.237135
],
[
-91.417709,
40.379535
],
[
-91.401278,
40.560274
],
[
-91.121954,
40.669813
],
[
-91.09457,
40.823167
],
[
-90.963123,
40.921752
],
[
-90.946692,
41.097014
],
[
-91.111001,
41.239415
],
[
-91.045277,
41.414677
],
[
-90.656414,
41.463969
],
[
-90.344229,
41.589939
],
[
-90.311367,
41.743293
],
[
-90.179921,
41.809016
],
[
-90.141582,
42.000709
],
[
-90.168967,
42.126679
],
[
-90.393521,
42.225264
],
[
-90.420906,
42.329326
],
[
-90.639984,
42.510065
]
]
]
},
"type": "Feature",
"id": "USA-IL",
"properties": {
"fips": "17",
"name": "Illinois"
}
}
]
},
"GA": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-83.109191,
35.00118
],
[
-83.322791,
34.787579
],
[
-83.339222,
34.683517
],
[
-83.005129,
34.469916
],
[
-82.901067,
34.486347
],
[
-82.747713,
34.26727
],
[
-82.714851,
34.152254
],
[
-82.55602,
33.94413
],
[
-82.325988,
33.81816
],
[
-82.194542,
33.631944
],
[
-81.926172,
33.462159
],
[
-81.937125,
33.347144
],
[
-81.761863,
33.160928
],
[
-81.493493,
33.007573
],
[
-81.42777,
32.843265
],
[
-81.416816,
32.629664
],
[
-81.279893,
32.558464
],
[
-81.121061,
32.290094
],
[
-81.115584,
32.120309
],
[
-80.885553,
32.032678
],
[
-81.132015,
31.693108
],
[
-81.175831,
31.517845
],
[
-81.279893,
31.364491
],
[
-81.290846,
31.20566
],
[
-81.400385,
31.13446
],
[
-81.444201,
30.707258
],
[
-81.718048,
30.745597
],
[
-81.948079,
30.827751
],
[
-82.041187,
30.751074
],
[
-82.002849,
30.564858
],
[
-82.046664,
30.362211
],
[
-82.167157,
30.356734
],
[
-82.216449,
30.570335
],
[
-83.498053,
30.647012
],
[
-84.867289,
30.712735
],
[
-85.004212,
31.003013
],
[
-85.113751,
31.27686
],
[
-85.042551,
31.539753
],
[
-85.141136,
31.840985
],
[
-85.053504,
32.01077
],
[
-85.058981,
32.13674
],
[
-84.889196,
32.262709
],
[
-85.004212,
32.322956
],
[
-84.960397,
32.421541
],
[
-85.069935,
32.580372
],
[
-85.184951,
32.859696
],
[
-85.431413,
34.124869
],
[
-85.606675,
34.984749
],
[
-84.319594,
34.990226
],
[
-83.618546,
34.984749
],
[
-83.109191,
35.00118
]
]
]
},
"type": "Feature",
"id": "USA-GA",
"properties": {
"fips": "13",
"name": "Georgia"
}
}
]
},
"IN": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-85.990061,
41.759724
],
[
-84.807042,
41.759724
],
[
-84.807042,
41.694001
],
[
-84.801565,
40.500028
],
[
-84.817996,
39.103408
],
[
-84.894673,
39.059592
],
[
-84.812519,
38.785745
],
[
-84.987781,
38.780268
],
[
-85.173997,
38.68716
],
[
-85.431413,
38.730976
],
[
-85.42046,
38.533806
],
[
-85.590245,
38.451652
],
[
-85.655968,
38.325682
],
[
-85.83123,
38.27639
],
[
-85.924338,
38.024451
],
[
-86.039354,
37.958727
],
[
-86.263908,
38.051835
],
[
-86.302247,
38.166851
],
[
-86.521325,
38.040881
],
[
-86.504894,
37.931343
],
[
-86.729448,
37.893004
],
[
-86.795172,
37.991589
],
[
-87.047111,
37.893004
],
[
-87.129265,
37.788942
],
[
-87.381204,
37.93682
],
[
-87.512651,
37.903958
],
[
-87.600282,
37.975158
],
[
-87.682436,
37.903958
],
[
-87.934375,
37.893004
],
[
-88.027483,
37.799896
],
[
-88.060345,
37.865619
],
[
-88.000098,
38.101128
],
[
-87.923421,
38.15042
],
[
-87.950806,
38.27639
],
[
-87.83579,
38.292821
],
[
-87.655051,
38.506421
],
[
-87.62219,
38.637868
],
[
-87.49622,
38.780268
],
[
-87.512651,
38.95553
],
[
-87.63862,
39.169131
],
[
-87.529082,
39.34987
],
[
-87.523605,
41.710431
],
[
-87.42502,
41.644708
],
[
-87.118311,
41.644708
],
[
-86.822556,
41.759724
],
[
-85.990061,
41.759724
]
]
]
},
"type": "Feature",
"id": "USA-IN",
"properties": {
"fips": "18",
"name": "Indiana"
}
}
]
},
"IA": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-91.368417,
43.501391
],
[
-91.215062,
43.501391
],
[
-91.204109,
43.353514
],
[
-91.056231,
43.254929
],
[
-91.176724,
43.134436
],
[
-91.143862,
42.909881
],
[
-91.067185,
42.75105
],
[
-90.711184,
42.636034
],
[
-90.639984,
42.510065
],
[
-90.420906,
42.329326
],
[
-90.393521,
42.225264
],
[
-90.168967,
42.126679
],
[
-90.141582,
42.000709
],
[
-90.179921,
41.809016
],
[
-90.311367,
41.743293
],
[
-90.344229,
41.589939
],
[
-90.656414,
41.463969
],
[
-91.045277,
41.414677
],
[
-91.111001,
41.239415
],
[
-90.946692,
41.097014
],
[
-90.963123,
40.921752
],
[
-91.09457,
40.823167
],
[
-91.121954,
40.669813
],
[
-91.401278,
40.560274
],
[
-91.417709,
40.379535
],
[
-91.527248,
40.412397
],
[
-91.729895,
40.615043
],
[
-91.833957,
40.609566
],
[
-93.257961,
40.582182
],
[
-94.632673,
40.571228
],
[
-95.7664,
40.587659
],
[
-95.881416,
40.719105
],
[
-95.826646,
40.976521
],
[
-95.925231,
41.201076
],
[
-95.919754,
41.453015
],
[
-96.095016,
41.540646
],
[
-96.122401,
41.67757
],
[
-96.062155,
41.798063
],
[
-96.127878,
41.973325
],
[
-96.264801,
42.039048
],
[
-96.44554,
42.488157
],
[
-96.631756,
42.707235
],
[
-96.544125,
42.855112
],
[
-96.511264,
43.052282
],
[
-96.434587,
43.123482
],
[
-96.560556,
43.222067
],
[
-96.527695,
43.397329
],
[
-96.582464,
43.479483
],
[
-96.451017,
43.501391
],
[
-91.368417,
43.501391
]
]
]
},
"type": "Feature",
"id": "USA-IA",
"properties": {
"fips": "19",
"name": "Iowa"
}
}
]
},
"OK": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-100.087706,
37.000263
],
[
-94.616242,
37.000263
],
[
-94.616242,
36.501861
],
[
-94.430026,
35.395519
],
[
-94.484796,
33.637421
],
[
-94.868182,
33.74696
],
[
-94.966767,
33.861976
],
[
-95.224183,
33.960561
],
[
-95.289906,
33.87293
],
[
-95.547322,
33.878407
],
[
-95.602092,
33.933176
],
[
-95.8376,
33.834591
],
[
-95.936185,
33.889361
],
[
-96.149786,
33.840068
],
[
-96.346956,
33.686714
],
[
-96.423633,
33.774345
],
[
-96.631756,
33.845545
],
[
-96.850834,
33.845545
],
[
-96.922034,
33.960561
],
[
-97.173974,
33.736006
],
[
-97.256128,
33.861976
],
[
-97.371143,
33.823637
],
[
-97.458774,
33.905791
],
[
-97.694283,
33.982469
],
[
-97.869545,
33.851022
],
[
-97.946222,
33.987946
],
[
-98.088623,
34.004376
],
[
-98.170777,
34.113915
],
[
-98.36247,
34.157731
],
[
-98.488439,
34.064623
],
[
-98.570593,
34.146777
],
[
-98.767763,
34.135823
],
[
-98.986841,
34.223454
],
[
-99.189488,
34.2125
],
[
-99.260688,
34.404193
],
[
-99.57835,
34.415147
],
[
-99.698843,
34.382285
],
[
-99.923398,
34.573978
],
[
-100.000075,
34.563024
],
[
-100.000075,
36.501861
],
[
-101.812942,
36.501861
],
[
-103.001438,
36.501861
],
[
-103.001438,
37.000263
],
[
-102.042974,
36.994786
],
[
-100.087706,
37.000263
]
]
]
},
"type": "Feature",
"id": "USA-OK",
"properties": {
"fips": "40",
"name": "Oklahoma"
}
}
]
},
"AZ": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-109.042503,
37.000263
],
[
-109.04798,
31.331629
],
[
-111.074448,
31.331629
],
[
-112.246513,
31.704061
],
[
-114.815198,
32.492741
],
[
-114.72209,
32.717295
],
[
-114.524921,
32.755634
],
[
-114.470151,
32.843265
],
[
-114.524921,
33.029481
],
[
-114.661844,
33.034958
],
[
-114.727567,
33.40739
],
[
-114.524921,
33.54979
],
[
-114.497536,
33.697668
],
[
-114.535874,
33.933176
],
[
-114.415382,
34.108438
],
[
-114.256551,
34.174162
],
[
-114.136058,
34.305608
],
[
-114.333228,
34.448009
],
[
-114.470151,
34.710902
],
[
-114.634459,
34.87521
],
[
-114.634459,
35.00118
],
[
-114.574213,
35.138103
],
[
-114.596121,
35.324319
],
[
-114.678275,
35.516012
],
[
-114.738521,
36.102045
],
[
-114.371566,
36.140383
],
[
-114.251074,
36.01989
],
[
-114.152489,
36.025367
],
[
-114.048427,
36.195153
],
[
-114.048427,
37.000263
],
[
-110.499369,
37.00574
],
[
-109.042503,
37.000263
]
]
]
},
"type": "Feature",
"id": "USA-AZ",
"properties": {
"fips": "04",
"name": "Arizona"
}
}
]
},
"ID": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-116.04751,
49.000239
],
[
-116.04751,
47.976051
],
[
-115.724371,
47.696727
],
[
-115.718894,
47.42288
],
[
-115.527201,
47.302388
],
[
-115.324554,
47.258572
],
[
-115.302646,
47.187372
],
[
-114.930214,
46.919002
],
[
-114.886399,
46.809463
],
[
-114.623506,
46.705401
],
[
-114.612552,
46.639678
],
[
-114.322274,
46.645155
],
[
-114.464674,
46.272723
],
[
-114.492059,
46.037214
],
[
-114.387997,
45.88386
],
[
-114.568736,
45.774321
],
[
-114.497536,
45.670259
],
[
-114.546828,
45.560721
],
[
-114.333228,
45.456659
],
[
-114.086765,
45.593582
],
[
-113.98818,
45.703121
],
[
-113.807441,
45.604536
],
[
-113.834826,
45.522382
],
[
-113.736241,
45.330689
],
[
-113.571933,
45.128042
],
[
-113.45144,
45.056842
],
[
-113.456917,
44.865149
],
[
-113.341901,
44.782995
],
[
-113.133778,
44.772041
],
[
-113.002331,
44.448902
],
[
-112.887315,
44.394132
],
[
-112.783254,
44.48724
],
[
-112.471068,
44.481763
],
[
-112.241036,
44.569394
],
[
-112.104113,
44.520102
],
[
-111.868605,
44.563917
],
[
-111.819312,
44.509148
],
[
-111.616665,
44.547487
],
[
-111.386634,
44.75561
],
[
-111.227803,
44.580348
],
[
-111.047063,
44.476286
],
[
-111.047063,
42.000709
],
[
-112.164359,
41.995232
],
[
-114.04295,
41.995232
],
[
-117.027882,
42.000709
],
[
-117.027882,
43.830007
],
[
-116.896436,
44.158624
],
[
-116.97859,
44.240778
],
[
-117.170283,
44.257209
],
[
-117.241483,
44.394132
],
[
-117.038836,
44.750133
],
[
-116.934774,
44.782995
],
[
-116.830713,
44.930872
],
[
-116.847143,
45.02398
],
[
-116.732128,
45.144473
],
[
-116.671881,
45.319735
],
[
-116.463758,
45.61549
],
[
-116.545912,
45.752413
],
[
-116.78142,
45.823614
],
[
-116.918344,
45.993399
],
[
-116.92382,
46.168661
],
[
-117.055267,
46.343923
],
[
-117.038836,
46.426077
],
[
-117.044313,
47.762451
],
[
-117.033359,
49.000239
],
[
-116.04751,
49.000239
]
]
]
},
"type": "Feature",
"id": "USA-ID",
"properties": {
"fips": "16",
"name": "Idaho"
}
}
]
},
"CT": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-73.053528,
42.039048
],
[
-71.799309,
42.022617
],
[
-71.799309,
42.006186
],
[
-71.799309,
41.414677
],
[
-71.859555,
41.321569
],
[
-71.947186,
41.338
],
[
-72.385341,
41.261322
],
[
-72.905651,
41.28323
],
[
-73.130205,
41.146307
],
[
-73.371191,
41.102491
],
[
-73.655992,
40.987475
],
[
-73.727192,
41.102491
],
[
-73.48073,
41.21203
],
[
-73.55193,
41.294184
],
[
-73.486206,
42.050002
],
[
-73.053528,
42.039048
]
]
]
},
"type": "Feature",
"id": "USA-CT",
"properties": {
"fips": "09",
"name": "Connecticut"
}
}
]
},
"ME": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-70.703921,
43.057759
],
[
-70.824413,
43.128959
],
[
-70.807983,
43.227544
],
[
-70.966814,
43.34256
],
[
-71.032537,
44.657025
],
[
-71.08183,
45.303304
],
[
-70.649151,
45.440228
],
[
-70.720352,
45.511428
],
[
-70.556043,
45.664782
],
[
-70.386258,
45.735983
],
[
-70.41912,
45.796229
],
[
-70.260289,
45.889337
],
[
-70.309581,
46.064599
],
[
-70.210996,
46.327492
],
[
-70.057642,
46.415123
],
[
-69.997395,
46.694447
],
[
-69.225147,
47.461219
],
[
-69.044408,
47.428357
],
[
-69.033454,
47.242141
],
[
-68.902007,
47.176418
],
[
-68.578868,
47.285957
],
[
-68.376221,
47.285957
],
[
-68.233821,
47.357157
],
[
-67.954497,
47.198326
],
[
-67.790188,
47.066879
],
[
-67.779235,
45.944106
],
[
-67.801142,
45.675736
],
[
-67.456095,
45.604536
],
[
-67.505388,
45.48952
],
[
-67.417757,
45.379982
],
[
-67.488957,
45.281397
],
[
-67.346556,
45.128042
],
[
-67.16034,
45.160904
],
[
-66.979601,
44.804903
],
[
-67.187725,
44.646072
],
[
-67.308218,
44.706318
],
[
-67.406803,
44.596779
],
[
-67.549203,
44.624164
],
[
-67.565634,
44.531056
],
[
-67.75185,
44.54201
],
[
-68.047605,
44.328409
],
[
-68.118805,
44.476286
],
[
-68.222867,
44.48724
],
[
-68.173574,
44.328409
],
[
-68.403606,
44.251732
],
[
-68.458375,
44.377701
],
[
-68.567914,
44.311978
],
[
-68.82533,
44.311978
],
[
-68.830807,
44.459856
],
[
-68.984161,
44.426994
],
[
-68.956777,
44.322932
],
[
-69.099177,
44.103854
],
[
-69.071793,
44.043608
],
[
-69.258008,
43.923115
],
[
-69.444224,
43.966931
],
[
-69.553763,
43.840961
],
[
-69.707118,
43.82453
],
[
-69.833087,
43.720469
],
[
-69.986442,
43.742376
],
[
-70.030257,
43.851915
],
[
-70.254812,
43.676653
],
[
-70.194565,
43.567114
],
[
-70.358873,
43.528776
],
[
-70.369827,
43.435668
],
[
-70.556043,
43.320652
],
[
-70.703921,
43.057759
]
]
]
},
"type": "Feature",
"id": "USA-ME",
"properties": {
"fips": "23",
"name": "Maine"
}
}
]
},
"MD": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-75.994645,
37.95325
],
[
-76.016553,
37.95325
],
[
-76.043938,
37.95325
],
[
-75.994645,
37.95325
]
]
],
[
[
[
-79.477979,
39.722302
],
[
-75.786521,
39.722302
],
[
-75.693413,
38.462606
],
[
-75.047134,
38.451652
],
[
-75.244304,
38.029928
],
[
-75.397659,
38.013497
],
[
-75.671506,
37.95325
],
[
-75.885106,
37.909435
],
[
-75.879629,
38.073743
],
[
-75.961783,
38.139466
],
[
-75.846768,
38.210667
],
[
-76.000122,
38.374975
],
[
-76.049415,
38.303775
],
[
-76.257538,
38.320205
],
[
-76.328738,
38.500944
],
[
-76.263015,
38.500944
],
[
-76.257538,
38.736453
],
[
-76.191815,
38.829561
],
[
-76.279446,
39.147223
],
[
-76.169907,
39.333439
],
[
-76.000122,
39.366301
],
[
-75.972737,
39.557994
],
[
-76.098707,
39.536086
],
[
-76.104184,
39.437501
],
[
-76.367077,
39.311532
],
[
-76.443754,
39.196516
],
[
-76.460185,
38.906238
],
[
-76.55877,
38.769315
],
[
-76.514954,
38.539283
],
[
-76.383508,
38.380452
],
[
-76.399939,
38.259959
],
[
-76.317785,
38.139466
],
[
-76.3616,
38.057312
],
[
-76.591632,
38.216144
],
[
-76.920248,
38.292821
],
[
-77.018833,
38.446175
],
[
-77.205049,
38.358544
],
[
-77.276249,
38.479037
],
[
-77.128372,
38.632391
],
[
-77.040741,
38.791222
],
[
-76.909294,
38.895284
],
[
-77.035264,
38.993869
],
[
-77.117418,
38.933623
],
[
-77.248864,
39.026731
],
[
-77.456988,
39.076023
],
[
-77.456988,
39.223901
],
[
-77.566527,
39.306055
],
[
-77.719881,
39.322485
],
[
-77.834897,
39.601809
],
[
-78.004682,
39.601809
],
[
-78.174467,
39.694917
],
[
-78.267575,
39.61824
],
[
-78.431884,
39.623717
],
[
-78.470222,
39.514178
],
[
-78.765977,
39.585379
],
[
-78.963147,
39.437501
],
[
-79.094593,
39.470363
],
[
-79.291763,
39.300578
],
[
-79.488933,
39.20747
],
[
-79.477979,
39.722302
]
]
]
]
},
"type": "Feature",
"id": "USA-MD",
"properties": {
"fips": "24",
"name": "Maryland"
}
}
]
},
"MA": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-70.917521,
42.887974
],
[
-70.818936,
42.871543
],
[
-70.780598,
42.696281
],
[
-70.824413,
42.55388
],
[
-70.983245,
42.422434
],
[
-70.988722,
42.269079
],
[
-70.769644,
42.247172
],
[
-70.638197,
42.08834
],
[
-70.660105,
41.962371
],
[
-70.550566,
41.929509
],
[
-70.539613,
41.814493
],
[
-70.260289,
41.715908
],
[
-69.937149,
41.809016
],
[
-70.008349,
41.672093
],
[
-70.484843,
41.5516
],
[
-70.660105,
41.546123
],
[
-70.764167,
41.639231
],
[
-70.928475,
41.611847
],
[
-70.933952,
41.540646
],
[
-71.120168,
41.496831
],
[
-71.196845,
41.67757
],
[
-71.22423,
41.710431
],
[
-71.328292,
41.781632
],
[
-71.383061,
42.01714
],
[
-71.530939,
42.01714
],
[
-71.799309,
42.006186
],
[
-71.799309,
42.022617
],
[
-73.053528,
42.039048
],
[
-73.486206,
42.050002
],
[
-73.508114,
42.08834
],
[
-73.267129,
42.745573
],
[
-72.456542,
42.729142
],
[
-71.29543,
42.696281
],
[
-71.185891,
42.789389
],
[
-70.917521,
42.887974
]
]
]
},
"type": "Feature",
"id": "USA-MA",
"properties": {
"fips": "25",
"name": "Massachusetts"
}
}
]
},
"OH": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-80.518598,
41.978802
],
[
-80.518598,
40.636951
],
[
-80.666475,
40.582182
],
[
-80.595275,
40.472643
],
[
-80.600752,
40.319289
],
[
-80.737675,
40.078303
],
[
-80.830783,
39.711348
],
[
-81.219646,
39.388209
],
[
-81.345616,
39.344393
],
[
-81.455155,
39.410117
],
[
-81.57017,
39.267716
],
[
-81.685186,
39.273193
],
[
-81.811156,
39.0815
],
[
-81.783771,
38.966484
],
[
-81.887833,
38.873376
],
[
-82.03571,
39.026731
],
[
-82.221926,
38.785745
],
[
-82.172634,
38.632391
],
[
-82.293127,
38.577622
],
[
-82.331465,
38.446175
],
[
-82.594358,
38.424267
],
[
-82.731282,
38.561191
],
[
-82.846298,
38.588575
],
[
-82.890113,
38.758361
],
[
-83.032514,
38.725499
],
[
-83.142052,
38.626914
],
[
-83.519961,
38.703591
],
[
-83.678792,
38.632391
],
[
-83.903347,
38.769315
],
[
-84.215533,
38.807653
],
[
-84.231963,
38.895284
],
[
-84.43461,
39.103408
],
[
-84.817996,
39.103408
],
[
-84.801565,
40.500028
],
[
-84.807042,
41.694001
],
[
-83.454238,
41.732339
],
[
-83.065375,
41.595416
],
[
-82.933929,
41.513262
],
[
-82.835344,
41.589939
],
[
-82.616266,
41.431108
],
[
-82.479343,
41.381815
],
[
-82.013803,
41.513262
],
[
-81.739956,
41.485877
],
[
-81.444201,
41.672093
],
[
-81.011523,
41.852832
],
[
-80.518598,
41.978802
],
[
-80.518598,
41.978802
]
]
]
},
"type": "Feature",
"id": "USA-OH",
"properties": {
"fips": "39",
"name": "Ohio"
}
}
]
},
"UT": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-112.164359,
41.995232
],
[
-111.047063,
42.000709
],
[
-111.047063,
40.998429
],
[
-109.04798,
40.998429
],
[
-109.053457,
39.125316
],
[
-109.058934,
38.27639
],
[
-109.042503,
38.166851
],
[
-109.042503,
37.000263
],
[
-110.499369,
37.00574
],
[
-114.048427,
37.000263
],
[
-114.04295,
41.995232
],
[
-112.164359,
41.995232
]
]
]
},
"type": "Feature",
"id": "USA-UT",
"properties": {
"fips": "49",
"name": "Utah"
}
}
]
},
"MO": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-91.833957,
40.609566
],
[
-91.729895,
40.615043
],
[
-91.527248,
40.412397
],
[
-91.417709,
40.379535
],
[
-91.50534,
40.237135
],
[
-91.494386,
40.034488
],
[
-91.368417,
39.727779
],
[
-91.061708,
39.470363
],
[
-90.727615,
39.256762
],
[
-90.661891,
38.928146
],
[
-90.585214,
38.867899
],
[
-90.470199,
38.961007
],
[
-90.251121,
38.917192
],
[
-90.10872,
38.845992
],
[
-90.207305,
38.725499
],
[
-90.179921,
38.632391
],
[
-90.349706,
38.374975
],
[
-90.355183,
38.216144
],
[
-90.059428,
38.013497
],
[
-89.949889,
37.88205
],
[
-89.84035,
37.903958
],
[
-89.517211,
37.690357
],
[
-89.517211,
37.537003
],
[
-89.435057,
37.34531
],
[
-89.517211,
37.279587
],
[
-89.292656,
36.994786
],
[
-89.133825,
36.983832
],
[
-89.215979,
36.578538
],
[
-89.363857,
36.622354
],
[
-89.418626,
36.496384
],
[
-89.484349,
36.496384
],
[
-89.539119,
36.496384
],
[
-89.533642,
36.249922
],
[
-89.730812,
35.997983
],
[
-90.377091,
35.997983
],
[
-90.218259,
36.184199
],
[
-90.064905,
36.304691
],
[
-90.152536,
36.496384
],
[
-94.473842,
36.501861
],
[
-94.616242,
36.501861
],
[
-94.616242,
37.000263
],
[
-94.610765,
39.158177
],
[
-94.824366,
39.20747
],
[
-94.983197,
39.442978
],
[
-95.109167,
39.541563
],
[
-94.884612,
39.831841
],
[
-95.207752,
39.908518
],
[
-95.306337,
40.001626
],
[
-95.552799,
40.264519
],
[
-95.7664,
40.587659
],
[
-94.632673,
40.571228
],
[
-93.257961,
40.582182
],
[
-91.833957,
40.609566
]
]
]
},
"type": "Feature",
"id": "USA-MO",
"properties": {
"fips": "29",
"name": "Missouri"
}
}
]
},
"MN": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-92.014696,
46.705401
],
[
-92.091373,
46.749217
],
[
-92.29402,
46.667063
],
[
-92.29402,
46.075553
],
[
-92.354266,
46.015307
],
[
-92.639067,
45.933153
],
[
-92.869098,
45.719552
],
[
-92.885529,
45.577151
],
[
-92.770513,
45.566198
],
[
-92.644544,
45.440228
],
[
-92.75956,
45.286874
],
[
-92.737652,
45.117088
],
[
-92.808852,
44.750133
],
[
-92.545959,
44.569394
],
[
-92.337835,
44.552964
],
[
-92.233773,
44.443425
],
[
-91.927065,
44.333886
],
[
-91.877772,
44.202439
],
[
-91.592971,
44.032654
],
[
-91.43414,
43.994316
],
[
-91.242447,
43.775238
],
[
-91.269832,
43.616407
],
[
-91.215062,
43.501391
],
[
-91.368417,
43.501391
],
[
-96.451017,
43.501391
],
[
-96.451017,
45.297827
],
[
-96.681049,
45.412843
],
[
-96.856311,
45.604536
],
[
-96.582464,
45.818137
],
[
-96.560556,
45.933153
],
[
-96.598895,
46.332969
],
[
-96.719387,
46.437031
],
[
-96.801542,
46.656109
],
[
-96.785111,
46.924479
],
[
-96.823449,
46.968294
],
[
-96.856311,
47.609096
],
[
-97.053481,
47.948667
],
[
-97.130158,
48.140359
],
[
-97.16302,
48.545653
],
[
-97.097296,
48.682577
],
[
-97.228743,
49.000239
],
[
-95.152983,
49.000239
],
[
-95.152983,
49.383625
],
[
-94.955813,
49.372671
],
[
-94.824366,
49.295994
],
[
-94.69292,
48.775685
],
[
-94.588858,
48.715438
],
[
-94.260241,
48.699007
],
[
-94.221903,
48.649715
],
[
-93.838517,
48.627807
],
[
-93.794701,
48.518268
],
[
-93.466085,
48.545653
],
[
-93.466085,
48.589469
],
[
-93.208669,
48.644238
],
[
-92.984114,
48.62233
],
[
-92.726698,
48.540176
],
[
-92.655498,
48.436114
],
[
-92.50762,
48.447068
],
[
-92.370697,
48.222514
],
[
-92.304974,
48.315622
],
[
-92.053034,
48.359437
],
[
-92.009219,
48.266329
],
[
-91.713464,
48.200606
],
[
-91.713464,
48.112975
],
[
-91.565587,
48.041775
],
[
-91.264355,
48.080113
],
[
-91.083616,
48.178698
],
[
-90.837154,
48.238944
],
[
-90.749522,
48.091067
],
[
-90.579737,
48.123929
],
[
-90.377091,
48.091067
],
[
-90.141582,
48.112975
],
[
-89.873212,
47.987005
],
[
-89.615796,
48.008913
],
[
-89.637704,
47.954144
],
[
-89.971797,
47.828174
],
[
-90.437337,
47.729589
],
[
-90.738569,
47.625527
],
[
-91.171247,
47.368111
],
[
-91.357463,
47.20928
],
[
-91.642264,
47.028541
],
[
-92.091373,
46.787555
],
[
-92.014696,
46.705401
]
]
]
},
"type": "Feature",
"id": "USA-MN",
"properties": {
"fips": "27",
"name": "Minnesota"
}
}
]
},
"MI": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-83.454238,
41.732339
],
[
-84.807042,
41.694001
],
[
-84.807042,
41.759724
],
[
-85.990061,
41.759724
],
[
-86.822556,
41.759724
],
[
-86.619909,
41.891171
],
[
-86.482986,
42.115725
],
[
-86.357016,
42.252649
],
[
-86.263908,
42.444341
],
[
-86.209139,
42.718189
],
[
-86.231047,
43.013943
],
[
-86.526801,
43.594499
],
[
-86.433693,
43.813577
],
[
-86.499417,
44.07647
],
[
-86.269385,
44.34484
],
[
-86.220093,
44.569394
],
[
-86.252954,
44.689887
],
[
-86.088646,
44.73918
],
[
-86.066738,
44.903488
],
[
-85.809322,
44.947303
],
[
-85.612152,
45.128042
],
[
-85.628583,
44.766564
],
[
-85.524521,
44.750133
],
[
-85.393075,
44.930872
],
[
-85.387598,
45.237581
],
[
-85.305444,
45.314258
],
[
-85.031597,
45.363551
],
[
-85.119228,
45.577151
],
[
-84.938489,
45.75789
],
[
-84.713934,
45.768844
],
[
-84.461995,
45.653829
],
[
-84.215533,
45.637398
],
[
-84.09504,
45.494997
],
[
-83.908824,
45.484043
],
[
-83.596638,
45.352597
],
[
-83.4871,
45.358074
],
[
-83.317314,
45.144473
],
[
-83.454238,
45.029457
],
[
-83.322791,
44.88158
],
[
-83.273499,
44.711795
],
[
-83.333745,
44.339363
],
[
-83.536392,
44.246255
],
[
-83.585684,
44.054562
],
[
-83.82667,
43.988839
],
[
-83.958116,
43.758807
],
[
-83.908824,
43.671176
],
[
-83.667839,
43.589022
],
[
-83.481623,
43.714992
],
[
-83.262545,
43.972408
],
[
-82.917498,
44.070993
],
[
-82.747713,
43.994316
],
[
-82.643651,
43.851915
],
[
-82.539589,
43.435668
],
[
-82.523158,
43.227544
],
[
-82.413619,
42.975605
],
[
-82.517681,
42.614127
],
[
-82.681989,
42.559357
],
[
-82.687466,
42.690804
],
[
-82.797005,
42.652465
],
[
-82.922975,
42.351234
],
[
-83.125621,
42.236218
],
[
-83.185868,
42.006186
],
[
-83.437807,
41.814493
],
[
-83.454238,
41.732339
]
]
],
[
[
[
-85.508091,
45.730506
],
[
-85.49166,
45.610013
],
[
-85.623106,
45.588105
],
[
-85.568337,
45.75789
],
[
-85.508091,
45.730506
]
]
],
[
[
[
-87.589328,
45.095181
],
[
-87.742682,
45.199243
],
[
-87.649574,
45.341643
],
[
-87.885083,
45.363551
],
[
-87.791975,
45.500474
],
[
-87.781021,
45.675736
],
[
-87.989145,
45.796229
],
[
-88.10416,
45.922199
],
[
-88.531362,
46.020784
],
[
-88.662808,
45.987922
],
[
-89.09001,
46.135799
],
[
-90.119674,
46.338446
],
[
-90.229213,
46.508231
],
[
-90.415429,
46.568478
],
[
-90.026566,
46.672539
],
[
-89.851304,
46.793032
],
[
-89.413149,
46.842325
],
[
-89.128348,
46.990202
],
[
-88.996902,
46.995679
],
[
-88.887363,
47.099741
],
[
-88.575177,
47.247618
],
[
-88.416346,
47.373588
],
[
-88.180837,
47.455742
],
[
-87.956283,
47.384542
],
[
-88.350623,
47.077833
],
[
-88.443731,
46.973771
],
[
-88.438254,
46.787555
],
[
-88.246561,
46.929956
],
[
-87.901513,
46.908048
],
[
-87.633143,
46.809463
],
[
-87.392158,
46.535616
],
[
-87.260711,
46.486323
],
[
-87.008772,
46.530139
],
[
-86.948526,
46.469893
],
[
-86.696587,
46.437031
],
[
-86.159846,
46.667063
],
[
-85.880522,
46.68897
],
[
-85.508091,
46.678016
],
[
-85.256151,
46.754694
],
[
-85.064458,
46.760171
],
[
-85.02612,
46.480847
],
[
-84.82895,
46.442508
],
[
-84.63178,
46.486323
],
[
-84.549626,
46.4206
],
[
-84.418179,
46.502754
],
[
-84.127902,
46.530139
],
[
-84.122425,
46.179615
],
[
-83.990978,
46.031737
],
[
-83.793808,
45.993399
],
[
-83.7719,
46.091984
],
[
-83.580208,
46.091984
],
[
-83.476146,
45.987922
],
[
-83.563777,
45.911245
],
[
-84.111471,
45.976968
],
[
-84.374364,
45.933153
],
[
-84.659165,
46.053645
],
[
-84.741319,
45.944106
],
[
-84.70298,
45.850998
],
[
-84.82895,
45.872906
],
[
-85.015166,
46.00983
],
[
-85.338305,
46.091984
],
[
-85.502614,
46.097461
],
[
-85.661445,
45.966014
],
[
-85.924338,
45.933153
],
[
-86.209139,
45.960537
],
[
-86.324155,
45.905768
],
[
-86.351539,
45.796229
],
[
-86.663725,
45.703121
],
[
-86.647294,
45.834568
],
[
-86.784218,
45.861952
],
[
-86.838987,
45.725029
],
[
-87.069019,
45.719552
],
[
-87.17308,
45.659305
],
[
-87.326435,
45.423797
],
[
-87.611236,
45.122565
],
[
-87.589328,
45.095181
]
]
],
[
[
[
-88.805209,
47.976051
],
[
-89.057148,
47.850082
],
[
-89.188594,
47.833651
],
[
-89.177641,
47.937713
],
[
-88.547792,
48.173221
],
[
-88.668285,
48.008913
],
[
-88.805209,
47.976051
]
]
]
]
},
"type": "Feature",
"id": "USA-MI",
"properties": {
"fips": "26",
"name": "Michigan"
}
}
]
},
"RI": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-71.196845,
41.67757
],
[
-71.120168,
41.496831
],
[
-71.317338,
41.474923
],
[
-71.196845,
41.67757
]
]
],
[
[
[
-71.530939,
42.01714
],
[
-71.383061,
42.01714
],
[
-71.328292,
41.781632
],
[
-71.22423,
41.710431
],
[
-71.344723,
41.726862
],
[
-71.448785,
41.578985
],
[
-71.481646,
41.370861
],
[
-71.859555,
41.321569
],
[
-71.799309,
41.414677
],
[
-71.799309,
42.006186
],
[
-71.530939,
42.01714
]
]
]
]
},
"type": "Feature",
"id": "USA-RI",
"properties": {
"fips": "44",
"name": "Rhode Island"
}
}
]
},
"KS": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-101.90605,
40.001626
],
[
-95.306337,
40.001626
],
[
-95.207752,
39.908518
],
[
-94.884612,
39.831841
],
[
-95.109167,
39.541563
],
[
-94.983197,
39.442978
],
[
-94.824366,
39.20747
],
[
-94.610765,
39.158177
],
[
-94.616242,
37.000263
],
[
-100.087706,
37.000263
],
[
-102.042974,
36.994786
],
[
-102.053927,
40.001626
],
[
-101.90605,
40.001626
]
]
]
},
"type": "Feature",
"id": "USA-KS",
"properties": {
"fips": "20",
"name": "Kansas"
}
}
]
},
"MT": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-104.047534,
49.000239
],
[
-104.042057,
47.861036
],
[
-104.047534,
45.944106
],
[
-104.042057,
44.996596
],
[
-104.058488,
44.996596
],
[
-105.91517,
45.002073
],
[
-109.080842,
45.002073
],
[
-111.05254,
45.002073
],
[
-111.047063,
44.476286
],
[
-111.227803,
44.580348
],
[
-111.386634,
44.75561
],
[
-111.616665,
44.547487
],
[
-111.819312,
44.509148
],
[
-111.868605,
44.563917
],
[
-112.104113,
44.520102
],
[
-112.241036,
44.569394
],
[
-112.471068,
44.481763
],
[
-112.783254,
44.48724
],
[
-112.887315,
44.394132
],
[
-113.002331,
44.448902
],
[
-113.133778,
44.772041
],
[
-113.341901,
44.782995
],
[
-113.456917,
44.865149
],
[
-113.45144,
45.056842
],
[
-113.571933,
45.128042
],
[
-113.736241,
45.330689
],
[
-113.834826,
45.522382
],
[
-113.807441,
45.604536
],
[
-113.98818,
45.703121
],
[
-114.086765,
45.593582
],
[
-114.333228,
45.456659
],
[
-114.546828,
45.560721
],
[
-114.497536,
45.670259
],
[
-114.568736,
45.774321
],
[
-114.387997,
45.88386
],
[
-114.492059,
46.037214
],
[
-114.464674,
46.272723
],
[
-114.322274,
46.645155
],
[
-114.612552,
46.639678
],
[
-114.623506,
46.705401
],
[
-114.886399,
46.809463
],
[
-114.930214,
46.919002
],
[
-115.302646,
47.187372
],
[
-115.324554,
47.258572
],
[
-115.527201,
47.302388
],
[
-115.718894,
47.42288
],
[
-115.724371,
47.696727
],
[
-116.04751,
47.976051
],
[
-116.04751,
49.000239
],
[
-111.50165,
48.994762
],
[
-109.453274,
49.000239
],
[
-104.047534,
49.000239
]
]
]
},
"type": "Feature",
"id": "USA-MT",
"properties": {
"fips": "30",
"name": "Montana"
}
}
]
},
"MS": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-88.471115,
34.995703
],
[
-88.202745,
34.995703
],
[
-88.098683,
34.891641
],
[
-88.241084,
33.796253
],
[
-88.471115,
31.895754
],
[
-88.394438,
30.367688
],
[
-88.503977,
30.323872
],
[
-88.744962,
30.34578
],
[
-88.843547,
30.411504
],
[
-89.084533,
30.367688
],
[
-89.418626,
30.252672
],
[
-89.522688,
30.181472
],
[
-89.643181,
30.285534
],
[
-89.681519,
30.449842
],
[
-89.845827,
30.66892
],
[
-89.747242,
30.997536
],
[
-91.636787,
30.997536
],
[
-91.565587,
31.068736
],
[
-91.636787,
31.265906
],
[
-91.516294,
31.27686
],
[
-91.499863,
31.643815
],
[
-91.401278,
31.621907
],
[
-91.341032,
31.846462
],
[
-91.105524,
31.988862
],
[
-90.985031,
32.218894
],
[
-91.006939,
32.514649
],
[
-91.154816,
32.640618
],
[
-91.143862,
32.843265
],
[
-91.072662,
32.887081
],
[
-91.16577,
33.002096
],
[
-91.089093,
33.13902
],
[
-91.143862,
33.347144
],
[
-91.056231,
33.429298
],
[
-91.231493,
33.560744
],
[
-91.072662,
33.867453
],
[
-90.891923,
34.026284
],
[
-90.952169,
34.135823
],
[
-90.744046,
34.300131
],
[
-90.749522,
34.365854
],
[
-90.568783,
34.420624
],
[
-90.585214,
34.617794
],
[
-90.481152,
34.661609
],
[
-90.409952,
34.831394
],
[
-90.251121,
34.908072
],
[
-90.311367,
34.995703
],
[
-88.471115,
34.995703
]
]
]
},
"type": "Feature",
"id": "USA-MS",
"properties": {
"fips": "28",
"name": "Mississippi"
}
}
]
},
"SC": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-82.764143,
35.066903
],
[
-82.550543,
35.160011
],
[
-82.276696,
35.198349
],
[
-81.044384,
35.149057
],
[
-81.038907,
35.044995
],
[
-80.934845,
35.105241
],
[
-80.781491,
34.935456
],
[
-80.797922,
34.820441
],
[
-79.675149,
34.80401
],
[
-78.541422,
33.851022
],
[
-78.716684,
33.80173
],
[
-78.935762,
33.637421
],
[
-79.149363,
33.380005
],
[
-79.187701,
33.171881
],
[
-79.357487,
33.007573
],
[
-79.582041,
33.007573
],
[
-79.631334,
32.887081
],
[
-79.866842,
32.755634
],
[
-79.998289,
32.613234
],
[
-80.206412,
32.552987
],
[
-80.430967,
32.399633
],
[
-80.452875,
32.328433
],
[
-80.660998,
32.246279
],
[
-80.885553,
32.032678
],
[
-81.115584,
32.120309
],
[
-81.121061,
32.290094
],
[
-81.279893,
32.558464
],
[
-81.416816,
32.629664
],
[
-81.42777,
32.843265
],
[
-81.493493,
33.007573
],
[
-81.761863,
33.160928
],
[
-81.937125,
33.347144
],
[
-81.926172,
33.462159
],
[
-82.194542,
33.631944
],
[
-82.325988,
33.81816
],
[
-82.55602,
33.94413
],
[
-82.714851,
34.152254
],
[
-82.747713,
34.26727
],
[
-82.901067,
34.486347
],
[
-83.005129,
34.469916
],
[
-83.339222,
34.683517
],
[
-83.322791,
34.787579
],
[
-83.109191,
35.00118
],
[
-82.764143,
35.066903
]
]
]
},
"type": "Feature",
"id": "USA-SC",
"properties": {
"fips": "45",
"name": "South Carolina"
}
}
]
},
"KY": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-83.903347,
38.769315
],
[
-83.678792,
38.632391
],
[
-83.519961,
38.703591
],
[
-83.142052,
38.626914
],
[
-83.032514,
38.725499
],
[
-82.890113,
38.758361
],
[
-82.846298,
38.588575
],
[
-82.731282,
38.561191
],
[
-82.594358,
38.424267
],
[
-82.621743,
38.123036
],
[
-82.50125,
37.931343
],
[
-82.342419,
37.783465
],
[
-82.293127,
37.668449
],
[
-82.101434,
37.553434
],
[
-81.969987,
37.537003
],
[
-82.353373,
37.268633
],
[
-82.720328,
37.120755
],
[
-82.720328,
37.044078
],
[
-82.868205,
36.978355
],
[
-82.879159,
36.890724
],
[
-83.070852,
36.852385
],
[
-83.136575,
36.742847
],
[
-83.673316,
36.600446
],
[
-83.689746,
36.584015
],
[
-84.544149,
36.594969
],
[
-85.289013,
36.627831
],
[
-85.486183,
36.616877
],
[
-86.592525,
36.655216
],
[
-87.852221,
36.633308
],
[
-88.071299,
36.677123
],
[
-88.054868,
36.496384
],
[
-89.298133,
36.507338
],
[
-89.418626,
36.496384
],
[
-89.363857,
36.622354
],
[
-89.215979,
36.578538
],
[
-89.133825,
36.983832
],
[
-89.183118,
37.038601
],
[
-89.029763,
37.213863
],
[
-88.914747,
37.224817
],
[
-88.547792,
37.071463
],
[
-88.421823,
37.153617
],
[
-88.514931,
37.285064
],
[
-88.476592,
37.389126
],
[
-88.065822,
37.482234
],
[
-88.15893,
37.657496
],
[
-88.027483,
37.799896
],
[
-87.934375,
37.893004
],
[
-87.682436,
37.903958
],
[
-87.600282,
37.975158
],
[
-87.512651,
37.903958
],
[
-87.381204,
37.93682
],
[
-87.129265,
37.788942
],
[
-87.047111,
37.893004
],
[
-86.795172,
37.991589
],
[
-86.729448,
37.893004
],
[
-86.504894,
37.931343
],
[
-86.521325,
38.040881
],
[
-86.302247,
38.166851
],
[
-86.263908,
38.051835
],
[
-86.039354,
37.958727
],
[
-85.924338,
38.024451
],
[
-85.83123,
38.27639
],
[
-85.655968,
38.325682
],
[
-85.590245,
38.451652
],
[
-85.42046,
38.533806
],
[
-85.431413,
38.730976
],
[
-85.173997,
38.68716
],
[
-84.987781,
38.780268
],
[
-84.812519,
38.785745
],
[
-84.894673,
39.059592
],
[
-84.817996,
39.103408
],
[
-84.43461,
39.103408
],
[
-84.231963,
38.895284
],
[
-84.215533,
38.807653
],
[
-83.903347,
38.769315
]
]
]
},
"type": "Feature",
"id": "USA-KY",
"properties": {
"fips": "21",
"name": "Kentucky"
}
}
]
},
"OR": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-123.211348,
46.174138
],
[
-123.11824,
46.185092
],
[
-122.904639,
46.08103
],
[
-122.811531,
45.960537
],
[
-122.762239,
45.659305
],
[
-122.247407,
45.549767
],
[
-121.809251,
45.708598
],
[
-121.535404,
45.725029
],
[
-121.217742,
45.670259
],
[
-121.18488,
45.604536
],
[
-120.637186,
45.746937
],
[
-120.505739,
45.697644
],
[
-120.209985,
45.725029
],
[
-119.963522,
45.823614
],
[
-119.525367,
45.911245
],
[
-119.125551,
45.933153
],
[
-118.988627,
45.998876
],
[
-116.918344,
45.993399
],
[
-116.78142,
45.823614
],
[
-116.545912,
45.752413
],
[
-116.463758,
45.61549
],
[
-116.671881,
45.319735
],
[
-116.732128,
45.144473
],
[
-116.847143,
45.02398
],
[
-116.830713,
44.930872
],
[
-116.934774,
44.782995
],
[
-117.038836,
44.750133
],
[
-117.241483,
44.394132
],
[
-117.170283,
44.257209
],
[
-116.97859,
44.240778
],
[
-116.896436,
44.158624
],
[
-117.027882,
43.830007
],
[
-117.027882,
42.000709
],
[
-118.698349,
41.989755
],
[
-120.001861,
41.995232
],
[
-121.037003,
41.995232
],
[
-122.378853,
42.011663
],
[
-123.233256,
42.006186
],
[
-124.213628,
42.000709
],
[
-124.356029,
42.115725
],
[
-124.432706,
42.438865
],
[
-124.416275,
42.663419
],
[
-124.553198,
42.838681
],
[
-124.454613,
43.002989
],
[
-124.383413,
43.271359
],
[
-124.235536,
43.55616
],
[
-124.169813,
43.8081
],
[
-124.060274,
44.657025
],
[
-124.076705,
44.772041
],
[
-123.97812,
45.144473
],
[
-123.939781,
45.659305
],
[
-123.994551,
45.944106
],
[
-123.945258,
46.113892
],
[
-123.545441,
46.261769
],
[
-123.370179,
46.146753
],
[
-123.211348,
46.174138
]
]
]
},
"type": "Feature",
"id": "USA-OR",
"properties": {
"fips": "41",
"name": "Oregon"
}
}
]
},
"SD": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-104.047534,
45.944106
],
[
-96.560556,
45.933153
],
[
-96.582464,
45.818137
],
[
-96.856311,
45.604536
],
[
-96.681049,
45.412843
],
[
-96.451017,
45.297827
],
[
-96.451017,
43.501391
],
[
-96.582464,
43.479483
],
[
-96.527695,
43.397329
],
[
-96.560556,
43.222067
],
[
-96.434587,
43.123482
],
[
-96.511264,
43.052282
],
[
-96.544125,
42.855112
],
[
-96.631756,
42.707235
],
[
-96.44554,
42.488157
],
[
-96.626279,
42.515542
],
[
-96.692003,
42.657942
],
[
-97.217789,
42.844158
],
[
-97.688806,
42.844158
],
[
-97.831206,
42.866066
],
[
-97.951699,
42.767481
],
[
-98.466531,
42.94822
],
[
-98.499393,
42.997512
],
[
-101.626726,
42.997512
],
[
-103.324578,
43.002989
],
[
-104.053011,
43.002989
],
[
-104.058488,
44.996596
],
[
-104.042057,
44.996596
],
[
-104.047534,
45.944106
]
]
]
},
"type": "Feature",
"id": "USA-SD",
"properties": {
"fips": "46",
"name": "South Dakota"
}
}
]
}
};
L.stateCentroids = L.GeometryUtils.loadCentroids(L.states);
|
module.exports = { prefix: 'far', iconName: 'id-badge', icon: [384, 512, [], "f2c1", "M0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V48c0-26.51-21.49-48-48-48H48C21.49 0 0 21.49 0 48zm336 32v378a6 6 0 0 1-6 6H54a6 6 0 0 1-6-6V80h288zm-144 80c38.66 0 70 31.34 70 70s-31.34 70-70 70-70-31.34-70-70 31.34-70 70-70zm80.187 146.047l-31.2-7.8c-32.779 23.577-72.51 18.316-97.974 0l-31.2 7.8C93.116 310.721 80 327.52 80 346.793V363c0 11.598 9.402 21 21 21h182c11.598 0 21-9.402 21-21v-16.207c0-19.273-13.116-36.072-31.813-40.746z"] };
|
//! moment.js locale configuration
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
var sw = moment.defineLocale('sw', {
months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
weekdaysParseExact : true,
longDateFormat : {
LT : 'HH:mm',
LTS : 'HH:mm:ss',
L : 'DD.MM.YYYY',
LL : 'D MMMM YYYY',
LLL : 'D MMMM YYYY HH:mm',
LLLL : 'dddd, D MMMM YYYY HH:mm'
},
calendar : {
sameDay : '[leo saa] LT',
nextDay : '[kesho saa] LT',
nextWeek : '[wiki ijayo] dddd [saat] LT',
lastDay : '[jana] LT',
lastWeek : '[wiki iliyopita] dddd [saat] LT',
sameElse : 'L'
},
relativeTime : {
future : '%s baadaye',
past : 'tokea %s',
s : 'hivi punde',
ss : 'sekunde %d',
m : 'dakika moja',
mm : 'dakika %d',
h : 'saa limoja',
hh : 'masaa %d',
d : 'siku moja',
dd : 'masiku %d',
M : 'mwezi mmoja',
MM : 'miezi %d',
y : 'mwaka mmoja',
yy : 'miaka %d'
},
week : {
dow : 1, // Monday is the first day of the week.
doy : 7 // The week that contains Jan 1st is the first week of the year.
}
});
return sw;
})));
|
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/autoload/ms.js
*
* Implements the HTML-CSS output for <ms> elements.
*
* ---------------------------------------------------------------------
*
* Copyright (c) 2010-2016 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
var VERSION = "2.7.0";
var MML = MathJax.ElementJax.mml,
HTMLCSS = MathJax.OutputJax["HTML-CSS"];
MML.ms.Augment({
toHTML: function (span) {
span = this.HTMLhandleSize(this.HTMLcreateSpan(span));
var values = this.getValues("lquote","rquote","mathvariant");
if (!this.hasValue("lquote") || values.lquote === '"') values.lquote = "\u201C";
if (!this.hasValue("rquote") || values.rquote === '"') values.rquote = "\u201D";
if (values.lquote === "\u201C" && values.mathvariant === "monospace") values.lquote = '"';
if (values.rquote === "\u201D" && values.mathvariant === "monospace") values.rquote = '"';
var text = values.lquote+this.data.join("")+values.rquote; // FIXME: handle mglyph?
this.HTMLhandleVariant(span,this.HTMLgetVariant(),text);
this.HTMLhandleSpace(span);
this.HTMLhandleColor(span);
this.HTMLhandleDir(span);
return span;
}
});
MathJax.Hub.Startup.signal.Post("HTML-CSS ms Ready");
MathJax.Ajax.loadComplete(HTMLCSS.autoloadDir+"/ms.js");
});
|
'use strict'
const winston = require('winston')
module.exports = {
trailpack: {
disabled: [
'repl'
]
},
log: {
logger: new winston.Logger({
level: 'info',
exitOnError: false,
transports: [
new winston.transports.Console({
timestamp: true
}),
new winston.transports.File({
name: 'info-file',
level: 'info',
filename: 'trails-info.log',
timestamp: true
}),
new winston.transports.File({
name: 'error-file',
level: 'error',
filename: 'trails-error.log',
timestamp: true
})
]
})
}
}
|
/**
* Module dependencies.
*/
var express = require('../..');
var logger = require('morgan');
var vhost = require('vhost');
/*
edit /etc/hosts:
127.0.0.1 foo.example.com
127.0.0.1 bar.example.com
127.0.0.1 example.com
*/
// Main server app
var main = express();
main.use(logger('dev'));
main.get('/', function(req, res){
res.send('Hello from main app!');
});
main.get('/:sub', function(req, res){
res.send('requested ' + req.params.sub);
});
// Redirect app
var redirect = express();
redirect.all('*', function(req, res){
console.log(req.subdomains);
res.redirect('http://example.com:3000/' + req.subdomains[0]);
});
// Vhost app
var app = express();
app.use(vhost('*.example.com', redirect)); // Serves all subdomains via Redirect app
app.use(vhost('example.com', main)); // Serves top level domain via Main server app
app.listen(3000);
console.log('Express app started on port 3000');
|
/// <reference path="jquery-1.8.2.js" />
/// <reference name="MicrosoftAjax.js" />
/// <reference path="~/_layouts/15/init.js" />
/// <reference path="~/_layouts/15/SP.Core.js" />
/// <reference path="~/_layouts/15/SP.Runtime.js" />
/// <reference path="~/_layouts/15/SP.UI.Dialog.js" />
/// <reference path="~/_layouts/15/SP.js" />
|
'use strict';
exports.__esModule = true;
var _keys = require('babel-runtime/core-js/object/keys');
var _keys2 = _interopRequireDefault(_keys);
var _typeof2 = require('babel-runtime/helpers/typeof');
var _typeof3 = _interopRequireDefault(_typeof2);
var _reduce2 = require('lodash/reduce');
var _reduce3 = _interopRequireDefault(_reduce2);
var _omitBy2 = require('lodash/omitBy');
var _omitBy3 = _interopRequireDefault(_omitBy2);
var _map2 = require('lodash/map');
var _map3 = _interopRequireDefault(_map2);
var _isUndefined2 = require('lodash/isUndefined');
var _isUndefined3 = _interopRequireDefault(_isUndefined2);
var _isString2 = require('lodash/isString');
var _isString3 = _interopRequireDefault(_isString2);
var _isEmpty2 = require('lodash/isEmpty');
var _isEmpty3 = _interopRequireDefault(_isEmpty2);
var _groupBy2 = require('lodash/groupBy');
var _groupBy3 = _interopRequireDefault(_groupBy2);
var _compact2 = require('lodash/compact');
var _compact3 = _interopRequireDefault(_compact2);
var _bind2 = require('lodash/bind');
var _bind3 = _interopRequireDefault(_bind2);
var _assign2 = require('lodash/assign');
var _assign3 = _interopRequireDefault(_assign2);
var _helpers = require('../helpers');
var helpers = _interopRequireWildcard(_helpers);
var _raw = require('../raw');
var _raw2 = _interopRequireDefault(_raw);
var _joinclause = require('./joinclause');
var _joinclause2 = _interopRequireDefault(_joinclause);
var _debug = require('debug');
var _debug2 = _interopRequireDefault(_debug);
var _uuid = require('uuid');
var _uuid2 = _interopRequireDefault(_uuid);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var debugBindings = (0, _debug2.default)('knex:bindings');
// The "QueryCompiler" takes all of the query statements which
// have been gathered in the "QueryBuilder" and turns them into a
// properly formatted / bound query string.
// Query Compiler
// -------
function QueryCompiler(client, builder) {
this.client = client;
this.method = builder._method || 'select';
this.options = builder._options;
this.single = builder._single;
this.timeout = builder._timeout || false;
this.cancelOnTimeout = builder._cancelOnTimeout || false;
this.grouped = (0, _groupBy3.default)(builder._statements, 'grouping');
this.formatter = client.formatter();
}
var components = ['columns', 'join', 'where', 'union', 'group', 'having', 'order', 'limit', 'offset', 'lock'];
(0, _assign3.default)(QueryCompiler.prototype, {
// Used when the insert call is empty.
_emptyInsertValue: 'default values',
// Collapse the builder into a single object
toSQL: function toSQL(method, tz) {
this._undefinedInWhereClause = false;
method = method || this.method;
var val = this[method]();
var defaults = {
method: method,
options: (0, _reduce3.default)(this.options, _assign3.default, {}),
timeout: this.timeout,
cancelOnTimeout: this.cancelOnTimeout,
bindings: this.formatter.bindings,
__knexQueryUid: _uuid2.default.v4()
};
if ((0, _isString3.default)(val)) {
val = { sql: val };
}
defaults.bindings = defaults.bindings || [];
if (method === 'select' || method === 'first') {
if (this.single.as) {
defaults.as = this.single.as;
}
}
if (this._undefinedInWhereClause) {
debugBindings(defaults.bindings);
throw new Error('Undefined binding(s) detected when compiling ' + (method.toUpperCase() + ' query: ' + val.sql));
}
return (0, _assign3.default)(defaults, val);
},
// Compiles the `select` statement, or nested sub-selects by calling each of
// the component compilers, trimming out the empties, and returning a
// generated query string.
select: function select() {
var _this = this;
var sql = this.with();
var statements = components.map(function (component) {
return _this[component](_this);
});
sql += (0, _compact3.default)(statements).join(' ');
return sql;
},
pluck: function pluck() {
var toPluck = this.single.pluck;
if (toPluck.indexOf('.') !== -1) {
toPluck = toPluck.split('.').slice(-1)[0];
}
return {
sql: this.select(),
pluck: toPluck
};
},
// Compiles an "insert" query, allowing for multiple
// inserts using a single query statement.
insert: function insert() {
var insertValues = this.single.insert || [];
var sql = this.with() + ('insert into ' + this.tableName + ' ');
if (Array.isArray(insertValues)) {
if (insertValues.length === 0) {
return '';
}
} else if ((typeof insertValues === 'undefined' ? 'undefined' : (0, _typeof3.default)(insertValues)) === 'object' && (0, _isEmpty3.default)(insertValues)) {
return sql + this._emptyInsertValue;
}
var insertData = this._prepInsert(insertValues);
if (typeof insertData === 'string') {
sql += insertData;
} else {
if (insertData.columns.length) {
sql += '(' + this.formatter.columnize(insertData.columns);
sql += ') values (';
var i = -1;
while (++i < insertData.values.length) {
if (i !== 0) sql += '), (';
sql += this.formatter.parameterize(insertData.values[i], this.client.valueForUndefined);
}
sql += ')';
} else if (insertValues.length === 1 && insertValues[0]) {
sql += this._emptyInsertValue;
} else {
sql = '';
}
}
return sql;
},
// Compiles the "update" query.
update: function update() {
// Make sure tableName is processed by the formatter first.
var tableName = this.tableName;
var updateData = this._prepUpdate(this.single.update);
var wheres = this.where();
return this.with() + ('update ' + (this.single.only ? 'only ' : '') + tableName) + ' set ' + updateData.join(', ') + (wheres ? ' ' + wheres : '');
},
// Compiles the columns in the query, specifying if an item was distinct.
columns: function columns() {
var distinct = false;
if (this.onlyUnions()) return '';
var columns = this.grouped.columns || [];
var i = -1,
sql = [];
if (columns) {
while (++i < columns.length) {
var stmt = columns[i];
if (stmt.distinct) distinct = true;
if (stmt.type === 'aggregate') {
sql.push(this.aggregate(stmt));
} else if (stmt.value && stmt.value.length > 0) {
sql.push(this.formatter.columnize(stmt.value));
}
}
}
if (sql.length === 0) sql = ['*'];
return 'select ' + (distinct ? 'distinct ' : '') + sql.join(', ') + (this.tableName ? ' from ' + (this.single.only ? 'only ' : '') + this.tableName : '');
},
aggregate: function aggregate(stmt) {
var val = stmt.value;
var splitOn = val.toLowerCase().indexOf(' as ');
var distinct = stmt.aggregateDistinct ? 'distinct ' : '';
// Allows us to speciy an alias for the aggregate types.
if (splitOn !== -1) {
var col = val.slice(0, splitOn);
var alias = val.slice(splitOn + 4);
return stmt.method + '(' + (distinct + this.formatter.wrap(col)) + ') ' + ('as ' + this.formatter.wrap(alias));
}
return stmt.method + '(' + (distinct + this.formatter.wrap(val)) + ')';
},
// Compiles all each of the `join` clauses on the query,
// including any nested join queries.
join: function join() {
var sql = '';
var i = -1;
var joins = this.grouped.join;
if (!joins) return '';
while (++i < joins.length) {
var join = joins[i];
var table = join.schema ? join.schema + '.' + join.table : join.table;
if (i > 0) sql += ' ';
if (join.joinType === 'raw') {
sql += this.formatter.unwrapRaw(join.table);
} else {
sql += join.joinType + ' join ' + this.formatter.wrap(table);
var ii = -1;
while (++ii < join.clauses.length) {
var clause = join.clauses[ii];
if (ii > 0) {
sql += ' ' + clause.bool + ' ';
} else {
sql += ' ' + (clause.type === 'onUsing' ? 'using' : 'on') + ' ';
}
var val = this[clause.type].call(this, clause);
if (val) {
sql += val;
}
}
}
}
return sql;
},
onBetween: function onBetween(statement) {
return this.formatter.wrap(statement.column) + ' ' + this._not(statement, 'between') + ' ' + (0, _map3.default)(statement.value, (0, _bind3.default)(this.formatter.parameter, this.formatter)).join(' and ');
},
onNull: function onNull(statement) {
return this.formatter.wrap(statement.column) + ' is ' + this._not(statement, 'null');
},
onExists: function onExists(statement) {
return this._not(statement, 'exists') + ' (' + this.formatter.rawOrFn(statement.value) + ')';
},
onIn: function onIn(statement) {
if (Array.isArray(statement.column)) return this.multiOnIn(statement);
return this.formatter.wrap(statement.column) + ' ' + this._not(statement, 'in ') + this.wrap(this.formatter.parameterize(statement.value));
},
multiOnIn: function multiOnIn(statement) {
var i = -1,
sql = '(' + this.formatter.columnize(statement.column) + ') ';
sql += this._not(statement, 'in ') + '((';
while (++i < statement.value.length) {
if (i !== 0) sql += '),(';
sql += this.formatter.parameterize(statement.value[i]);
}
return sql + '))';
},
// Compiles all `where` statements on the query.
where: function where() {
var wheres = this.grouped.where;
if (!wheres) return;
var sql = [];
var i = -1;
while (++i < wheres.length) {
var stmt = wheres[i];
if (stmt.hasOwnProperty('value') && helpers.containsUndefined(stmt.value)) {
this._undefinedInWhereClause = true;
}
var val = this[stmt.type](stmt);
if (val) {
if (sql.length === 0) {
sql[0] = 'where';
} else {
sql.push(stmt.bool);
}
sql.push(val);
}
}
return sql.length > 1 ? sql.join(' ') : '';
},
group: function group() {
return this._groupsOrders('group');
},
order: function order() {
return this._groupsOrders('order');
},
// Compiles the `having` statements.
having: function having() {
var havings = this.grouped.having;
if (!havings) return '';
var sql = ['having'];
for (var i = 0, l = havings.length; i < l; i++) {
var s = havings[i];
var val = this[s.type](s);
if (val) {
if (sql.length === 0) {
sql[0] = 'where';
}
if (sql.length > 1 || sql.length === 1 && sql[0] !== 'having') {
sql.push(s.bool);
}
sql.push(val);
}
}
return sql.length > 1 ? sql.join(' ') : '';
},
havingRaw: function havingRaw(statement) {
return this._not(statement, '') + this.formatter.unwrapRaw(statement.value);
},
havingWrapped: function havingWrapped(statement) {
var val = this.formatter.rawOrFn(statement.value, 'where');
return val && this._not(statement, '') + '(' + val.slice(6) + ')' || '';
},
havingBasic: function havingBasic(statement) {
return this._not(statement, '') + this.formatter.wrap(statement.column) + ' ' + this.formatter.operator(statement.operator) + ' ' + this.formatter.parameter(statement.value);
},
havingNull: function havingNull(statement) {
return this.formatter.wrap(statement.column) + ' is ' + this._not(statement, 'null');
},
havingExists: function havingExists(statement) {
return this._not(statement, 'exists') + ' (' + this.formatter.rawOrFn(statement.value) + ')';
},
havingBetween: function havingBetween(statement) {
return this.formatter.wrap(statement.column) + ' ' + this._not(statement, 'between') + ' ' + (0, _map3.default)(statement.value, (0, _bind3.default)(this.formatter.parameter, this.formatter)).join(' and ');
},
havingIn: function havingIn(statement) {
if (Array.isArray(statement.column)) return this.multiHavingIn(statement);
return this.formatter.wrap(statement.column) + ' ' + this._not(statement, 'in ') + this.wrap(this.formatter.parameterize(statement.value));
},
multiHavingIn: function multiHavingIn(statement) {
var i = -1,
sql = '(' + this.formatter.columnize(statement.column) + ') ';
sql += this._not(statement, 'in ') + '((';
while (++i < statement.value.length) {
if (i !== 0) sql += '),(';
sql += this.formatter.parameterize(statement.value[i]);
}
return sql + '))';
},
// Compile the "union" queries attached to the main query.
union: function union() {
var onlyUnions = this.onlyUnions();
var unions = this.grouped.union;
if (!unions) return '';
var sql = '';
for (var i = 0, l = unions.length; i < l; i++) {
var union = unions[i];
if (i > 0) sql += ' ';
if (i > 0 || !onlyUnions) sql += union.clause + ' ';
var statement = this.formatter.rawOrFn(union.value);
if (statement) {
if (union.wrap) sql += '(';
sql += statement;
if (union.wrap) sql += ')';
}
}
return sql;
},
// If we haven't specified any columns or a `tableName`, we're assuming this
// is only being used for unions.
onlyUnions: function onlyUnions() {
return !this.grouped.columns && this.grouped.union && !this.tableName;
},
limit: function limit() {
var noLimit = !this.single.limit && this.single.limit !== 0;
if (noLimit) return '';
return 'limit ' + this.formatter.parameter(this.single.limit);
},
offset: function offset() {
if (!this.single.offset) return '';
return 'offset ' + this.formatter.parameter(this.single.offset);
},
// Compiles a `delete` query.
del: function del() {
// Make sure tableName is processed by the formatter first.
var tableName = this.tableName;
var wheres = this.where();
return this.with() + ('delete from ' + (this.single.only ? 'only ' : '') + tableName) + (wheres ? ' ' + wheres : '');
},
// Compiles a `truncate` query.
truncate: function truncate() {
return 'truncate ' + this.tableName;
},
// Compiles the "locks".
lock: function lock() {
if (this.single.lock) {
if (!this.client.transacting) {
helpers.warn('You are attempting to perform a "lock" command outside of a transaction.');
} else {
return this[this.single.lock]();
}
}
},
// Compile the "counter".
counter: function counter() {
var counter = this.single.counter;
var toUpdate = {};
toUpdate[counter.column] = this.client.raw(this.formatter.wrap(counter.column) + ' ' + (counter.symbol || '+') + ' ' + counter.amount);
this.single.update = toUpdate;
return this.update();
},
// On Clause
// ------
onWrapped: function onWrapped(clause) {
var self = this;
var wrapJoin = new _joinclause2.default();
clause.value.call(wrapJoin, wrapJoin);
var sql = '';
wrapJoin.clauses.forEach(function (wrapClause, ii) {
if (ii > 0) {
sql += ' ' + wrapClause.bool + ' ';
}
var val = self[wrapClause.type](wrapClause);
if (val) {
sql += val;
}
});
if (sql.length) {
return '(' + sql + ')';
}
return '';
},
onBasic: function onBasic(clause) {
return this.formatter.wrap(clause.column) + ' ' + this.formatter.operator(clause.operator) + ' ' + this.formatter.wrap(clause.value);
},
onRaw: function onRaw(clause) {
return this.formatter.unwrapRaw(clause.value);
},
onUsing: function onUsing(clause) {
return this.formatter.wrap(clause.column);
},
// Where Clause
// ------
whereIn: function whereIn(statement) {
if (Array.isArray(statement.column)) return this.multiWhereIn(statement);
return this.formatter.wrap(statement.column) + ' ' + this._not(statement, 'in ') + this.wrap(this.formatter.parameterize(statement.value));
},
multiWhereIn: function multiWhereIn(statement) {
var i = -1,
sql = '(' + this.formatter.columnize(statement.column) + ') ';
sql += this._not(statement, 'in ') + '((';
while (++i < statement.value.length) {
if (i !== 0) sql += '),(';
sql += this.formatter.parameterize(statement.value[i]);
}
return sql + '))';
},
whereNull: function whereNull(statement) {
return this.formatter.wrap(statement.column) + ' is ' + this._not(statement, 'null');
},
// Compiles a basic "where" clause.
whereBasic: function whereBasic(statement) {
return this._not(statement, '') + this.formatter.wrap(statement.column) + ' ' + this.formatter.operator(statement.operator) + ' ' + this.formatter.parameter(statement.value);
},
whereExists: function whereExists(statement) {
return this._not(statement, 'exists') + ' (' + this.formatter.rawOrFn(statement.value) + ')';
},
whereWrapped: function whereWrapped(statement) {
var val = this.formatter.rawOrFn(statement.value, 'where');
return val && this._not(statement, '') + '(' + val.slice(6) + ')' || '';
},
whereBetween: function whereBetween(statement) {
return this.formatter.wrap(statement.column) + ' ' + this._not(statement, 'between') + ' ' + (0, _map3.default)(statement.value, (0, _bind3.default)(this.formatter.parameter, this.formatter)).join(' and ');
},
// Compiles a "whereRaw" query.
whereRaw: function whereRaw(statement) {
return this._not(statement, '') + this.formatter.unwrapRaw(statement.value);
},
wrap: function wrap(str) {
if (str.charAt(0) !== '(') return '(' + str + ')';
return str;
},
// Compiles all `with` statements on the query.
with: function _with() {
if (!this.grouped.with || !this.grouped.with.length) {
return '';
}
var withs = this.grouped.with;
if (!withs) return;
var sql = [];
var i = -1;
while (++i < withs.length) {
var stmt = withs[i];
var val = this[stmt.type](stmt);
sql.push(val);
}
return 'with ' + sql.join(', ') + ' ';
},
withWrapped: function withWrapped(statement) {
var val = this.formatter.rawOrFn(statement.value);
return val && this.formatter.columnize(statement.alias) + ' as (' + val + ')' || '';
},
withRaw: function withRaw(statement) {
return this.formatter.columnize(statement.alias) + ' as (' + this.formatter.unwrapRaw(statement.value) + ')';
},
// Determines whether to add a "not" prefix to the where clause.
_not: function _not(statement, str) {
if (statement.not) return 'not ' + str;
return str;
},
_prepInsert: function _prepInsert(data) {
var isRaw = this.formatter.rawOrFn(data);
if (isRaw) return isRaw;
var columns = [];
var values = [];
if (!Array.isArray(data)) data = data ? [data] : [];
var i = -1;
while (++i < data.length) {
if (data[i] == null) break;
if (i === 0) columns = (0, _keys2.default)(data[i]).sort();
var row = new Array(columns.length);
var keys = (0, _keys2.default)(data[i]);
var j = -1;
while (++j < keys.length) {
var key = keys[j];
var idx = columns.indexOf(key);
if (idx === -1) {
columns = columns.concat(key).sort();
idx = columns.indexOf(key);
var k = -1;
while (++k < values.length) {
values[k].splice(idx, 0, undefined);
}
row.splice(idx, 0, undefined);
}
row[idx] = data[i][key];
}
values.push(row);
}
return {
columns: columns,
values: values
};
},
// "Preps" the update.
_prepUpdate: function _prepUpdate(data) {
data = (0, _omitBy3.default)(data, _isUndefined3.default);
var vals = [];
var sorted = (0, _keys2.default)(data).sort();
var i = -1;
while (++i < sorted.length) {
vals.push(this.formatter.wrap(sorted[i]) + ' = ' + this.formatter.parameter(data[sorted[i]]));
}
return vals;
},
// Compiles the `order by` statements.
_groupsOrders: function _groupsOrders(type) {
var items = this.grouped[type];
if (!items) return '';
var formatter = this.formatter;
var sql = items.map(function (item) {
var column = item.value instanceof _raw2.default ? formatter.unwrapRaw(item.value) : formatter.columnize(item.value);
var direction = type === 'order' && item.type !== 'orderByRaw' ? ' ' + formatter.direction(item.direction) : '';
return column + direction;
});
return sql.length ? type + ' by ' + sql.join(', ') : '';
}
});
QueryCompiler.prototype.first = QueryCompiler.prototype.select;
// Get the table name, wrapping it if necessary.
// Implemented as a property to prevent ordering issues as described in #704.
Object.defineProperty(QueryCompiler.prototype, 'tableName', {
get: function get() {
if (!this._tableName) {
// Only call this.formatter.wrap() the first time this property is accessed.
var tableName = this.single.table;
var schemaName = this.single.schema;
if (tableName && schemaName) tableName = schemaName + '.' + tableName;
this._tableName = tableName ? this.formatter.wrap(tableName) : '';
}
return this._tableName;
}
});
exports.default = QueryCompiler;
module.exports = exports['default'];
|
/*
* EJS Embedded JavaScript templates
* Copyright 2112 Matthew Eernisse (mde@fleegix.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
/**
* Private utility functions
* @module utils
* @private
*/
'use strict';
var regExpChars = /[|\\{}()[\]^$+*?.]/g;
/**
* Escape characters reserved in regular expressions.
*
* If `string` is `undefined` or `null`, the empty string is returned.
*
* @param {String} string Input string
* @return {String} Escaped string
* @static
* @private
*/
exports.escapeRegExpChars = function (string) {
// istanbul ignore if
if (!string) {
return '';
}
return String(string).replace(regExpChars, '\\$&');
};
var _ENCODE_HTML_RULES = {
'&': '&',
'<': '<',
'>': '>',
'"': '"',
"'": '''
};
var _MATCH_HTML = /[&<>'"]/g;
function encode_char(c) {
return _ENCODE_HTML_RULES[c] || c;
}
/**
* Stringified version of constants used by {@link module:utils.escapeXML}.
*
* It is used in the process of generating {@link ClientFunction}s.
*
* @readonly
* @type {String}
*/
var escapeFuncStr =
'var _ENCODE_HTML_RULES = {\n'
+ ' "&": "&"\n'
+ ' , "<": "<"\n'
+ ' , ">": ">"\n'
+ ' , \'"\': """\n'
+ ' , "\'": "'"\n'
+ ' }\n'
+ ' , _MATCH_HTML = /[&<>\'"]/g;\n'
+ 'function encode_char(c) {\n'
+ ' return _ENCODE_HTML_RULES[c] || c;\n'
+ '};\n';
/**
* Escape characters reserved in XML.
*
* If `markup` is `undefined` or `null`, the empty string is returned.
*
* @implements {EscapeCallback}
* @param {String} markup Input string
* @return {String} Escaped string
* @static
* @private
*/
exports.escapeXML = function (markup) {
return markup == undefined
? ''
: String(markup)
.replace(_MATCH_HTML, encode_char);
};
exports.escapeXML.toString = function () {
return Function.prototype.toString.call(this) + ';\n' + escapeFuncStr;
};
/**
* Naive copy of properties from one object to another.
* Does not recurse into non-scalar properties
* Does not check to see if the property has a value before copying
*
* @param {Object} to Destination object
* @param {Object} from Source object
* @return {Object} Destination object
* @static
* @private
*/
exports.shallowCopy = function (to, from) {
from = from || {};
for (var p in from) {
to[p] = from[p];
}
return to;
};
/**
* Naive copy of a list of key names, from one object to another.
* Only copies property if it is actually defined
* Does not recurse into non-scalar properties
*
* @param {Object} to Destination object
* @param {Object} from Source object
* @param {Array} list List of properties to copy
* @return {Object} Destination object
* @static
* @private
*/
exports.shallowCopyFromList = function (to, from, list) {
for (var i = 0; i < list.length; i++) {
var p = list[i];
if (typeof from[p] != 'undefined') {
to[p] = from[p];
}
}
return to;
};
/**
* Simple in-process cache implementation. Does not implement limits of any
* sort.
*
* @implements Cache
* @static
* @private
*/
exports.cache = {
_data: {},
set: function (key, val) {
this._data[key] = val;
},
get: function (key) {
return this._data[key];
},
reset: function () {
this._data = {};
}
};
|
/*jshint node:true*/
var ModelBlueprint = require('../model');
var testInfo = require('../../lib/utilities/test-info');
module.exports = {
description: 'Generates a model unit test.',
locals: function(options) {
var result = ModelBlueprint.locals.apply(this, arguments);
result.friendlyDescription = testInfo.description(options.entity.name, "Unit", "Model");
return result;
}
};
|
var assert = require('assert');
var R = require('..');
describe('divide', function() {
it('divides two numbers', function() {
assert.strictEqual(R.divide(28, 7), 4);
});
it('is curried', function() {
var into28 = R.divide(28);
assert.strictEqual(into28(7), 4);
});
it('behaves right curried when passed `R.__` for its first argument', function() {
var half = R.divide(R.__, 2);
assert.strictEqual(half(40), 20);
});
});
|
/****************************************************************************
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
if (cc._renderType === cc._RENDER_TYPE_WEBGL) {
(function () {
/**
* OpenGL projection protocol
* @class
* @extends cc.Class
*/
cc.DirectorDelegate = cc.Class.extend(/** @lends cc.DirectorDelegate# */{
/**
* Called by CCDirector when the projection is updated, and "custom" projection is used
*/
updateProjection: function () {
}
});
var _p = cc.Director.prototype;
_p.setProjection = function (projection) {
var _t = this;
var size = _t._winSizeInPoints;
_t.setViewport();
var view = _t._openGLView,
ox = view._viewPortRect.x / view._scaleX,
oy = view._viewPortRect.y / view._scaleY;
switch (projection) {
case cc.Director.PROJECTION_2D:
cc.kmGLMatrixMode(cc.KM_GL_PROJECTION);
cc.kmGLLoadIdentity();
var orthoMatrix = cc.math.Matrix4.createOrthographicProjection(
-ox,
size.width - ox,
-oy,
size.height - oy,
-1024, 1024);
cc.kmGLMultMatrix(orthoMatrix);
cc.kmGLMatrixMode(cc.KM_GL_MODELVIEW);
cc.kmGLLoadIdentity();
break;
case cc.Director.PROJECTION_3D:
var zeye = _t.getZEye();
var matrixPerspective = new cc.math.Matrix4(), matrixLookup = new cc.math.Matrix4();
cc.kmGLMatrixMode(cc.KM_GL_PROJECTION);
cc.kmGLLoadIdentity();
// issue #1334
matrixPerspective = cc.math.Matrix4.createPerspectiveProjection(60, size.width / size.height, 0.1, zeye * 2);
cc.kmGLMultMatrix(matrixPerspective);
cc.kmGLMatrixMode(cc.KM_GL_MODELVIEW);
cc.kmGLLoadIdentity();
var eye = new cc.math.Vec3(-ox + size.width / 2, -oy + size.height / 2, zeye);
var center = new cc.math.Vec3( -ox + size.width / 2, -oy + size.height / 2, 0.0);
var up = new cc.math.Vec3( 0.0, 1.0, 0.0);
matrixLookup.lookAt(eye, center, up);
cc.kmGLMultMatrix(matrixLookup);
break;
case cc.Director.PROJECTION_CUSTOM:
if (_t._projectionDelegate)
_t._projectionDelegate.updateProjection();
break;
default:
cc.log(cc._LogInfos.Director_setProjection);
break;
}
_t._projection = projection;
cc.eventManager.dispatchEvent(_t._eventProjectionChanged);
cc.setProjectionMatrixDirty();
cc.renderer.childrenOrderDirty = true;
};
_p.setDepthTest = function (on) {
var loc_gl = cc._renderContext;
if (on) {
loc_gl.clearDepth(1.0);
loc_gl.enable(loc_gl.DEPTH_TEST);
loc_gl.depthFunc(loc_gl.LEQUAL);
//cc._renderContext.hint(cc._renderContext.PERSPECTIVE_CORRECTION_HINT, cc._renderContext.NICEST);
} else {
loc_gl.disable(loc_gl.DEPTH_TEST);
}
//cc.checkGLErrorDebug();
};
_p.setOpenGLView = function (openGLView) {
var _t = this;
// set size
_t._winSizeInPoints.width = cc._canvas.width; //_t._openGLView.getDesignResolutionSize();
_t._winSizeInPoints.height = cc._canvas.height;
_t._openGLView = openGLView || cc.view;
// Configuration. Gather GPU info
var conf = cc.configuration;
conf.gatherGPUInfo();
conf.dumpInfo();
// set size
//_t._winSizeInPoints = _t._openGLView.getDesignResolutionSize();
//_t._winSizeInPixels = cc.size(_t._winSizeInPoints.width * _t._contentScaleFactor, _t._winSizeInPoints.height * _t._contentScaleFactor);
//if (_t._openGLView != openGLView) {
// because EAGLView is not kind of CCObject
_t._createStatsLabel();
//if (_t._openGLView)
_t.setGLDefaultValues();
/* if (_t._contentScaleFactor != 1) {
_t.updateContentScaleFactor();
}*/
//}
if (cc.eventManager)
cc.eventManager.setEnabled(true);
};
_p._clear = function () {
var gl = cc._renderContext;
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
};
_p._beforeVisitScene = function () {
cc.kmGLPushMatrix();
};
_p._afterVisitScene = function () {
cc.kmGLPopMatrix();
};
_p._createStatsLabel = function () {
var _t = this;
if (!cc.LabelAtlas){
_t._createStatsLabelForCanvas();
return
}
if ((cc.Director._fpsImageLoaded == null) || (cc.Director._fpsImageLoaded === false))
return;
var texture = new cc.Texture2D();
texture.initWithElement(cc.Director._fpsImage);
texture.handleLoadedTexture();
/*
We want to use an image which is stored in the file named ccFPSImage.c
for any design resolutions and all resource resolutions.
To achieve this,
Firstly, we need to ignore 'contentScaleFactor' in 'CCAtlasNode' and 'CCLabelAtlas'.
So I added a new method called 'setIgnoreContentScaleFactor' for 'CCAtlasNode',
this is not exposed to game developers, it's only used for displaying FPS now.
Secondly, the size of this image is 480*320, to display the FPS label with correct size,
a factor of design resolution ratio of 480x320 is also needed.
*/
var factor = cc.view.getDesignResolutionSize().height / 320.0;
if (factor === 0)
factor = _t._winSizeInPoints.height / 320.0;
var tmpLabel = new cc.LabelAtlas();
tmpLabel._setIgnoreContentScaleFactor(true);
tmpLabel.initWithString("00.0", texture, 12, 32, '.');
tmpLabel.scale = factor;
_t._FPSLabel = tmpLabel;
tmpLabel = new cc.LabelAtlas();
tmpLabel._setIgnoreContentScaleFactor(true);
tmpLabel.initWithString("0.000", texture, 12, 32, '.');
tmpLabel.scale = factor;
_t._SPFLabel = tmpLabel;
tmpLabel = new cc.LabelAtlas();
tmpLabel._setIgnoreContentScaleFactor(true);
tmpLabel.initWithString("000", texture, 12, 32, '.');
tmpLabel.scale = factor;
_t._drawsLabel = tmpLabel;
var locStatsPosition = cc.DIRECTOR_STATS_POSITION;
_t._drawsLabel.setPosition(locStatsPosition.x, 34 * factor + locStatsPosition.y);
_t._SPFLabel.setPosition(locStatsPosition.x, 17 * factor + locStatsPosition.y);
_t._FPSLabel.setPosition(locStatsPosition);
};
_p._createStatsLabelForCanvas = function () {
var _t = this;
//The original _createStatsLabelForCanvas method
//Because the referenced by a cc.Director.prototype._createStatsLabel
var fontSize = 0;
if (_t._winSizeInPoints.width > _t._winSizeInPoints.height)
fontSize = 0 | (_t._winSizeInPoints.height / 320 * 24);
else
fontSize = 0 | (_t._winSizeInPoints.width / 320 * 24);
_t._FPSLabel = new cc.LabelTTF("000.0", "Arial", fontSize);
_t._SPFLabel = new cc.LabelTTF("0.000", "Arial", fontSize);
_t._drawsLabel = new cc.LabelTTF("0000", "Arial", fontSize);
var locStatsPosition = cc.DIRECTOR_STATS_POSITION;
_t._drawsLabel.setPosition(_t._drawsLabel.width / 2 + locStatsPosition.x, _t._drawsLabel.height * 5 / 2 + locStatsPosition.y);
_t._SPFLabel.setPosition(_t._SPFLabel.width / 2 + locStatsPosition.x, _t._SPFLabel.height * 3 / 2 + locStatsPosition.y);
_t._FPSLabel.setPosition(_t._FPSLabel.width / 2 + locStatsPosition.x, _t._FPSLabel.height / 2 + locStatsPosition.y);
};
_p.convertToGL = function (uiPoint) {
var transform = new cc.math.Matrix4();
cc.GLToClipTransform(transform);
var transformInv = transform.inverse();
// Calculate z=0 using -> transform*[0, 0, 0, 1]/w
var zClip = transform.mat[14] / transform.mat[15];
var glSize = this._openGLView.getDesignResolutionSize();
var glCoord = new cc.math.Vec3(2.0 * uiPoint.x / glSize.width - 1.0, 1.0 - 2.0 * uiPoint.y / glSize.height, zClip);
glCoord.transformCoord(transformInv);
return cc.p(glCoord.x, glCoord.y);
};
_p.convertToUI = function (glPoint) {
var transform = new cc.math.Matrix4();
cc.GLToClipTransform(transform);
var clipCoord = new cc.math.Vec3(glPoint.x, glPoint.y, 0.0);
// Need to calculate the zero depth from the transform.
clipCoord.transformCoord(transform);
var glSize = this._openGLView.getDesignResolutionSize();
return cc.p(glSize.width * (clipCoord.x * 0.5 + 0.5), glSize.height * (-clipCoord.y * 0.5 + 0.5));
};
_p.getVisibleSize = function () {
//if (this._openGLView) {
return this._openGLView.getVisibleSize();
//} else {
//return this.getWinSize();
//}
};
_p.getVisibleOrigin = function () {
//if (this._openGLView) {
return this._openGLView.getVisibleOrigin();
//} else {
//return cc.p(0,0);
//}
};
_p.getZEye = function () {
return (this._winSizeInPoints.height / 1.1566 );
};
_p.setViewport = function () {
var view = this._openGLView;
if (view) {
var locWinSizeInPoints = this._winSizeInPoints;
view.setViewPortInPoints(-view._viewPortRect.x/view._scaleX, -view._viewPortRect.y/view._scaleY, locWinSizeInPoints.width, locWinSizeInPoints.height);
}
};
_p.getOpenGLView = function () {
return this._openGLView;
};
_p.getProjection = function () {
return this._projection;
};
_p.setAlphaBlending = function (on) {
if (on)
cc.glBlendFunc(cc.BLEND_SRC, cc.BLEND_DST);
else
cc.glBlendFunc(cc._renderContext.ONE, cc._renderContext.ZERO);
//cc.checkGLErrorDebug();
};
_p.setGLDefaultValues = function () {
var _t = this;
_t.setAlphaBlending(true);
// XXX: Fix me, should enable/disable depth test according the depth format as cocos2d-iphone did
// [self setDepthTest: view_.depthFormat];
_t.setDepthTest(false);
_t.setProjection(_t._projection);
// set other opengl default values
cc._renderContext.clearColor(0.0, 0.0, 0.0, 1.0);
};
})();
}
|
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'toolbar', 'sv', {
toolbarCollapse: 'Dölj verktygsfält',
toolbarExpand: 'Visa verktygsfält',
toolbarGroups: {
document: 'Dokument',
clipboard: 'Urklipp/ångra',
editing: 'Redigering',
forms: 'Formulär',
basicstyles: 'Basstilar',
paragraph: 'Paragraf',
links: 'Länkar',
insert: 'Infoga',
styles: 'Stilar',
colors: 'Färger',
tools: 'Verktyg'
},
toolbars: 'Redigera verktygsfält'
} );
|
import path from 'path';
// Filters out non .js files. Prevents
// accidental inclusion of possible hidden files
export default function(name) {
return /(\.(js)$)/i.test(path.extname(name));
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.