hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
52d90077e2cf04a35a74966d7fae8f81e2380f29
256
js
JavaScript
test/App.js
haja-fgabriel/webrtc-broadcast-client
ed36621e0af80d82974f1295ce2467499ba6db06
[ "MIT" ]
null
null
null
test/App.js
haja-fgabriel/webrtc-broadcast-client
ed36621e0af80d82974f1295ce2467499ba6db06
[ "MIT" ]
null
null
null
test/App.js
haja-fgabriel/webrtc-broadcast-client
ed36621e0af80d82974f1295ce2467499ba6db06
[ "MIT" ]
null
null
null
import React from 'react' import { render, screen } from '@testing-library/react' import App from '../src/App' test('renders learn react link', () => { render(<App />) const button = screen.getByText('Push me') expect(button).toBeInTheDocument() })
25.6
55
0.683594
52d90204a43e794e8fc45f7660d3d0cbdd2bfa40
1,504
js
JavaScript
confidant/public/modules/common/constants.js
cclauss/confidant
85bf2980c47bced1fd71f7a515baa2c824f3ac39
[ "Apache-2.0" ]
4
2019-06-04T17:07:57.000Z
2020-11-20T00:02:08.000Z
confidant/public/modules/common/constants.js
cclauss/confidant
85bf2980c47bced1fd71f7a515baa2c824f3ac39
[ "Apache-2.0" ]
1,601
2018-09-13T14:56:27.000Z
2021-03-31T20:06:16.000Z
confidant/public/modules/common/constants.js
cclauss/confidant
85bf2980c47bced1fd71f7a515baa2c824f3ac39
[ "Apache-2.0" ]
5
2019-10-30T20:37:02.000Z
2021-07-04T00:45:36.000Z
/** * Common constants * * An example common module that defines constants. */ (function(angular) { 'use strict'; angular.module('confidant.common.constants', []) .constant('CONFIDANT_URLS', { USEREMAIL: 'v1/user/email', DATAKEY: 'v1/datakey', SERVICE: 'v1/services/:id', SERVICES: 'v1/services', GRANTS: 'v1/grants/:id', ARCHIVE_SERVICES: 'v1/archive/services', ARCHIVE_SERVICE_REVISIONS: 'v1/archive/services/:id/:revision', CREDENTIAL: 'v1/credentials/:id', CREDENTIAL_SERVICES: 'v1/credentials/:id/services', CREDENTIALS: 'v1/credentials', ARCHIVE_CREDENTIALS: 'v1/archive/credentials', ARCHIVE_CREDENTIAL_REVISIONS: 'v1/archive/credentials/:id/:revision', BLIND_CREDENTIAL: 'v1/blind_credentials/:id', BLIND_CREDENTIAL_SERVICES: 'v1/blind_credentials/:id/services', BLIND_CREDENTIALS: 'v1/blind_credentials', BLIND_ARCHIVE_CREDENTIALS: 'v1/archive/blind_credentials', BLIND_ARCHIVE_CREDENTIAL_REVISIONS: 'v1/archive/blind_credentials/:id/:revision', ROLES: 'v1/roles', VALUE_GENERATOR: 'v1/value_generator', CLIENT_CONFIG: 'v1/client_config' }) .constant('common.APP_EVENTS', { START_REQUEST: 'START_REQUEST', END_REQUEST: 'END_REQUEST', SHOW_SPINNER: 'SHOW_SPINNER', HIDE_SPINNER: 'HIDE_SPINNER', STATE_READY: 'eventStateInitComplete' }) ; })(window.angular);
32.695652
89
0.65625
52d942e7a8d4e66a9ff8e505f98e280e78badbc8
32,838
js
JavaScript
index.js
josephdscs/two.5
c849eb6e7c9a6f910463dd2fc049511b8c496c27
[ "MIT" ]
null
null
null
index.js
josephdscs/two.5
c849eb6e7c9a6f910463dd2fc049511b8c496c27
[ "MIT" ]
null
null
null
index.js
josephdscs/two.5
c849eb6e7c9a6f910463dd2fc049511b8c496c27
[ "MIT" ]
null
null
null
/** * Clamps a value between limits. * * @param {number} min lower limit * @param {number} max upper limit * @param {number} value value to clamp * @return {number} clamped value * * @example * const x = clamp(0, 1, 1.5); // returns 1 */ function clamp(min, max, value) { return Math.min(Math.max(min, value), max); } /** * Returns a new Object with the properties of the first argument * assigned to it, and the second argument as its prototype, so * its properties are served as defaults. * * @param {Object} obj properties to assign * @param {Object|null} defaults * @return {Object} */ function defaultTo(obj, defaults) { return Object.assign(Object.create(defaults), obj); } /** * Copies all given objects into a new Object. * * @param {...Object} objects * @return {Object} */ function clone(...objects) { return Object.assign({}, ...objects); } /** * Interpolate from a to b by the factor t. * * @param {number} a start point * @param {number} b end point * @param {number} t interpolation factor * @return {number} */ function lerp(a, b, t) { return a * (1 - t) + b * t; } /** * @type {scrollConfig} */ const DEFAULTS = { horizontal: false, observeSize: true, observeViewport: true, viewportRootMargin: '7% 7%', scrollHandler(container, wrapper, x, y) { container.style.transform = `translate3d(${-x}px, ${-y}px, 0px)`; }, scrollClear(container, wrapper, x, y) { container.style.transform = ''; } }; /* * Utilities for scroll controller */ /** * Utility for calculating the virtual scroll position, taking snap points into account. * * @param {number} p real scroll position * @param {[number[]]} snaps list of snap point * @return {number} virtual scroll position */ function calcPosition(p, snaps) { let _p = p; let extra = 0; for (const [start, end] of snaps) { if (p < start) break; if (p >= end) { extra += end - start; } else { _p = start; break; } } return _p - extra; } /** * Utility for calculating effect progress. * * @param {number} p current scroll position * @param {number} start start position * @param {number} end end position * @param {number} duration duration of effect in scroll pixels * @return {number} effect progress, between 0 and 1 */ function calcProgress(p, start, end, duration) { let progress = 0; if (p >= start && p <= end) { progress = duration ? (p - start) / duration : 1; } else if (p > end) { progress = 1; } return progress; } /* * Scroll controller factory */ /** * Initialize and return a scroll controller. * * @param {scrollConfig} config * @return {function} */ function getEffect(config) { const _config = defaultTo(config, DEFAULTS); const root = _config.root; const body = _config.root === window ? window.document.body : _config.root; const container = _config.container; const wrapper = _config.wrapper; const horizontal = _config.horizontal; const scenesByElement = new WeakMap(); /* * Prepare snap points data. */ const snaps = (_config.snaps || []). // sort points by start position sort((a, b) => a.start > b.start ? 1 : -1) // map objects to arrays of [start, end] .map(snap => { const { start, duration, end } = snap; return [start, end == null ? start + duration : end]; }); // calculate extra scroll if we have snaps const extraScroll = snaps.reduce((acc, snap) => acc + (snap[1] - snap[0]), 0); let lastX, lastY; let resizeObserver, viewportObserver; /* * Prepare scenes data. */ _config.scenes.forEach(scene => { if (scene.end == null) { scene.end = scene.start + scene.duration; } else if (scene.duration == null) { scene.duration = scene.end - scene.start; } }); /* * Setup Smooth Scroll technique */ if (container) { function setSize() { // calculate total scroll height/width // set width/height on the body element if (horizontal) { const totalWidth = container.offsetWidth + container.offsetLeft + (horizontal ? extraScroll : 0); body.style.width = `${totalWidth}px`; } else { const totalHeight = container.offsetHeight + container.offsetTop + (horizontal ? 0 : extraScroll); body.style.height = `${totalHeight}px`; } } setSize(); if (_config.observeSize && window.ResizeObserver) { resizeObserver = new window.ResizeObserver(setSize); resizeObserver.observe(container, { box: 'border-box' }); } /* * Setup wrapper element and reset progress. */ if (wrapper) { if (!wrapper.contains(container)) { console.error('When defined, the wrapper element %o must be a parent of the container element %o', wrapper, container); throw new Error('Wrapper element is not a parent of container element'); } // if we got a wrapper element set its style Object.assign(wrapper.style, { position: 'fixed', width: '100%', height: '100%', overflow: 'hidden' }); // get current scroll position (support window, element and window in IE) let x = root.scrollX || root.pageXOffset || root.scrollLeft || 0; let y = root.scrollY || root.pageYOffset || root.scrollTop || 0; // increment current scroll position by accumulated snap point durations if (horizontal) { x = snaps.reduce((acc, [start, end]) => start < acc ? acc + (end - start) : acc, x); } else { y = snaps.reduce((acc, [start, end]) => start < acc ? acc + (end - start) : acc, y); } // update scroll and progress to new calculated position _config.resetProgress({ x, y }); // render current position controller({ x, y, vx: 0, vy: 0 }); } } /* * Observe entry and exit of scenes into view */ if (_config.observeViewport && window.IntersectionObserver) { viewportObserver = new window.IntersectionObserver(function (intersections) { intersections.forEach(intersection => { (scenesByElement.get(intersection.target) || []).forEach(scene => { scene.disabled = !intersection.isIntersecting; }); }); }, { root: wrapper || null, rootMargin: _config.viewportRootMargin, threshold: 0 }); _config.scenes.forEach(scene => { if (scene.viewport) { let scenesArray = scenesByElement.get(scene.viewport); if (!scenesArray) { scenesArray = []; scenesByElement.set(scene.viewport, scenesArray); viewportObserver.observe(scene.viewport); } scenesArray.push(scene); } }); } /** * Scroll scenes controller. * Takes progress object and orchestrates scenes. * * @param {Object} progress * @param {number} progress.x * @param {number} progress.y * @param {number} progress.vx * @param {number} progress.vy */ function controller({ x, y, vx, vy }) { x = +x.toFixed(1); y = +y.toFixed(1); const velocity = horizontal ? +vx.toFixed(4) : +vy.toFixed(4); // if nothing changed bail out if (x === lastX && y === lastY) return; let _x = x, _y = y; if (snaps.length) { // we have snap points so calculate virtual position if (horizontal) { _x = calcPosition(x, snaps); _y = 0; } else { _y = calcPosition(y, snaps); _x = 0; } } if (container) { // handle content scrolling _config.scrollHandler(container, wrapper, _x, _y); } /* * Perform scene progression. */ _config.scenes.forEach(scene => { // if active if (!scene.disabled) { const { start, end, duration } = scene; // get global scroll progress const t = horizontal ? scene.pauseDuringSnap ? _x : x : scene.pauseDuringSnap ? _y : y; // calculate scene's progress const progress = calcProgress(t, start, end, duration); // run effect scene.effect(scene, progress, velocity); } }); // cache last position lastX = x; lastY = y; } controller.destroy = function () { if (container) { if (horizontal) { body.style.width = ''; } else { body.style.height = ''; } if (wrapper) { Object.assign(wrapper.style, { position: '', width: '', height: '', overflow: '' }); } _config.scrollClear(container); if (resizeObserver) { resizeObserver.disconnect(); resizeObserver = null; } } if (viewportObserver) { viewportObserver.disconnect(); controller.viewportObserver = viewportObserver = null; } }; controller.viewportObserver = viewportObserver; return controller; } function getHandler({ progress, root }) { function handler() { // get current scroll position (support window, element and window in IE) progress.x = root.scrollX || root.pageXOffset || root.scrollLeft || 0; progress.y = root.scrollY || root.pageYOffset || root.scrollTop || 0; } let frameId; function on() { frameId = window.requestAnimationFrame(handler); } function off() { window.cancelAnimationFrame(frameId); } return { handler, on, off }; } const ticker = { pool: new Set(), /** * Starts the animation loop. */ start() { if (!ticker.animationFrame) { const loop = time => { ticker.animationFrame = window.requestAnimationFrame(loop); ticker.tick(time); }; ticker.animationFrame = window.requestAnimationFrame(loop); } }, /** * Stops the animation loop. */ stop() { window.cancelAnimationFrame(ticker.animationFrame); ticker.animationFrame = null; }, /** * Invoke `.tick()` on all instances in the pool. * * @param {number} time animation frame time argument. */ tick(time) { ticker.pool.forEach(instance => instance.tick(time)); }, /** * Add an instance to the pool. * * @param {Two5} instance */ add(instance) { ticker.pool.add(instance); instance.ticking = true; if (ticker.pool.size) { ticker.start(); } }, /** * Remove an instance from the pool. * * @param {Two5} instance */ remove(instance) { if (ticker.pool.delete(instance)) { instance.ticking = false; } if (!ticker.pool.size) { ticker.stop(); } } }; /** * @type {two5Config} */ const DEFAULTS$1 = { ticker, animationActive: false, animationFriction: 0.4, velocityActive: false, velocityMax: 1 }; /** * Initialize a WebGL target with effects. * * @class Two5 * @abstract * @param {two5Config} config */ class Two5 { constructor(config = {}) { this.config = defaultTo(config, DEFAULTS$1); this.progress = { x: 0, y: 0, vx: 0, vy: 0 }; this.currentProgress = { x: 0, y: 0, vx: 0, vy: 0 }; this.measures = []; this.effects = []; this.ticking = false; this.ticker = this.config.ticker; this.time = 0; this.dt = 1; } /** * Setup events and effects, and starts animation loop. */ on() { this.setupEvents(); this.setupEffects(); if (this.config.velocityActive) { this.time = window.performance && window.performance.now ? window.performance.now() : Date.now(); } // start animating this.ticker.add(this); } /** * Removes events and stops animation loop. */ off() { // stop animation this.ticker.remove(this); this.teardownEvents(); } /** * Handle animation frame work. * * */ tick(time) { // choose the object we iterate on const progress = this.config.animationActive ? this.currentProgress : this.progress; // cache values for calculating deltas for velocity const { x, y } = progress; // perform any registered measures this.measures.forEach(measure => measure()); // if animation is active interpolate to next point if (this.config.animationActive) { this.lerp(); } if (this.config.velocityActive) { this.dt = time - this.time; this.time = time; const dx = progress.x - x; const dy = progress.y - y; const factorX = dx < 0 ? -1 : 1; const factorY = dy < 0 ? -1 : 1; progress.vx = Math.min(this.config.velocityMax, Math.abs(dx / this.dt)) / this.config.velocityMax * factorX; progress.vy = Math.min(this.config.velocityMax, Math.abs(dy / this.dt)) / this.config.velocityMax * factorY; } // perform all registered effects this.effects.forEach(effect => effect(this.config.animationActive ? this.currentProgress : this.progress)); } /** * Calculate current progress. */ lerp() { this.currentProgress.x = lerp(this.currentProgress.x, this.progress.x, 1 - this.config.animationFriction); this.currentProgress.y = lerp(this.currentProgress.y, this.progress.y, 1 - this.config.animationFriction); } setupEvents() {} teardownEvents() {} /** * Returns a list of effect functions for registering. * * @return {function[]} list of effects to perform */ getEffects() { return []; } /** * Registers effects. */ setupEffects() { this.effects.push(...this.getEffects()); } /** * Clears registered effects and measures. */ teardownEffects() { this.measures.length = 0; this.effects.length = 0; } /** * Stop all events and effects, and remove all DOM side effects. */ destroy() { this.off(); this.teardownEffects(); } } /** * @typedef {Object} two5Config * @property {boolean} [animationActive] whether to animate effect progress. * @property {number} [animationFriction] from 0 to 1, amount of friction effect in the animation. 1 being no movement and 0 as no friction. Defaults to 0.4. * @property {boolean} [velocityActive] whether to calculate velocity with progress. * @property {number} [velocityMax] max possible value for velocity. Velocity value will be normalized according to this number, so it is kept between 0 and 1. Defaults to 1. */ /** * @class Scroll * @extends Two5 * @param {scrollConfig} config * * @example * import { Scroll } from 'two.5'; * * const scroll = new Scroll({ * container: document.querySelector('main'), * wrapper: document.querySelector('body > div'), * scenes: [...] * }); * scroll.on(); */ class Scroll extends Two5 { constructor(config = {}) { super(config); this.config.root = this.config.root || window; this.config.resetProgress = this.config.resetProgress || this.resetProgress.bind(this); } /** * Reset progress in the DOM and inner state to given x and y. * * @param {Object} progress * @param {number} progress.x * @param {number} progress.y */ resetProgress({ x, y }) { this.progress.x = x; this.progress.y = y; this.progress.vx = 0; this.progress.vy = 0; if (this.config.animationActive) { this.currentProgress.x = x; this.currentProgress.y = y; this.currentProgress.vx = 0; this.currentProgress.vy = 0; } this.config.root.scrollTo(x, y); } /** * Initializes and returns scroll controller. * * @return {function[]} */ getEffects() { return [getEffect(this.config)]; } /** * Register scroll position measuring. */ setupEvents() { const config = { root: this.config.root, progress: this.progress }; this.measures.push(getHandler(config).handler); } /** * Remove scroll measuring handler. */ teardownEvents() { this.measures.length = 0; } teardownEffects() { this.effects.forEach(effect => effect.destroy && effect.destroy()); super.teardownEffects(); } } /** * @typedef {Object} SnapPoint * @property {number} start scroll position in pixels where virtual scroll starts snapping. * @property {number} [duration] duration in pixels for virtual scroll snapping. Defaults to end - start. * @property {number} [end] scroll position in pixels where virtual scroll starts snapping. Defaults to start + duration. * * @typedef {Object} ScrollScene * @property {number} start scroll position in pixels where effect starts. * @property {number} [duration] duration of effect in pixels. Defaults to end - start. * @property {number} [end] scroll position in pixels where effect ends. Defaults to start + duration. * @property {function} effect the effect to perform. * @property {boolean} [pauseDuringSnap] whether to pause the effect during snap points, effectively ignoring scroll during duration of scroll snapping. * @property {boolean} [disabled] whether to perform updates on the scene. Defaults to false. * @property {Element} [viewport] an element to be used for observing intersection with viewport for disabling/enabling the scene. * * @typedef {object} scrollConfig * @property {boolean} [animationActive] whether to animate effect progress. * @property {number} [animationFriction] between 0 to 1, amount of friction effect in the animation. 1 being no movement and 0 as no friction. Defaults to 0.4. * @property {boolean} [velocityActive] whether to calculate velocity with progress. * @property {number} [velocityMax] max possible value for velocity. Velocity value will be normalized according to this number, so it is kept between 0 and 1. Defaults to 1. * @property {boolean} [observeSize] whether to observe size changes of `container`. Defaults to `true`. * @property {boolean} [observeViewport] whether to observe entry/exit of scenes into viewport for disabling/enabling them. Defaults to `true`. * @property {boolean} [viewportRootMargin] `rootMargin` option to be used for viewport observation. Defaults to `'7% 7%'`. * @property {Element|Window} [root] the scrollable element, defaults to window. * @property {Element} [wrapper] element to use as the fixed, viewport sized layer, that clips and holds the scroll content container. If not provided, no setup is done. * @property {Element|null} [container] element to use as the container for the scrolled content. If not provided assuming native scroll is desired. * @property {ScrollScene[]} scenes list of effect scenes to perform during scroll. * @property {SnapPoint[]} snaps list of scroll snap points. * @property {function(container: HTMLElement, wrapper: HTMLElement|undefined, x: number, y: number)} [scrollHandler] if using a container, this allows overriding the function used for scrolling the content. Defaults to setting `style.transform`. * @property {function(container: HTMLElement, wrapper: HTMLElement|undefined, x: number, y: number)} [scrollClear] if using a container, this allows overriding the function used for clearing content scrolling side-effects when effect is removed. Defaults to clearing `container.style.transform`. */ const DEFAULTS$2 = { // config only perspectiveActive: false, perspectiveInvertX: false, perspectiveInvertY: false, perspectiveMaxX: 0, perspectiveMaxY: 0, invertRotation: false, // used for orientation compensation when using deviceorientation event, reference see below // layer and config perspectiveZ: 600, //todo: split to layer and container config elevation: 10, // todo: why in line 102 we check for config.hasOwnProperty(elevation)? transitionDuration: 200, // todo: split to layer and container config transitionActive: false, //todo: split to layer and container config transitionEasing: 'ease-out', //todo: split to layer and container config // layer only translationActive: true, translationInvertX: false, translationInvertY: false, translationMaxX: 50, translationMaxY: 50, rotateActive: false, rotateInvert: false, rotateMax: 45, tiltActive: false, tiltInvertX: false, tiltInvertY: false, tiltMaxX: 25, tiltMaxY: 25, skewActive: false, skewInvertX: false, skewInvertY: false, skewMaxX: 25, skewMaxY: 25, scaleActive: false, scaleInvertX: false, scaleInvertY: false, scaleMaxX: 0.5, scaleMaxY: 0.5 }; function formatTransition({ property, duration, easing }) { return `${property} ${duration}ms ${easing}`; } function getEffect$1(config) { const _config = defaultTo(config, DEFAULTS$2); const container = _config.container; const perspectiveZ = _config.perspectiveZ; _config.layers = _config.layers.map(layer => defaultTo(layer, _config)); /* * Init effect * also set transition if required. */ if (container) { const containerStyle = { perspective: `${perspectiveZ}px` }; if (_config.transitionActive && _config.perspectiveActive) { containerStyle.transition = formatTransition({ property: 'perspective-origin', duration: _config.transitionDuration, easing: _config.transitionEasing }); } Object.assign(container.style, containerStyle); } /* * Setup layers styling */ _config.layers.forEach(layer => { const layerStyle = {}; if (!layer.allowPointer) { layerStyle['pointer-events'] = 'none'; } if (layer.transitionActive) { layerStyle.transition = formatTransition({ property: 'transform', duration: layer.transitionDuration, easing: layer.transitionEasing }); } else { delete layerStyle.transition; } return Object.assign(layer.el.style, layerStyle); }); return function tilt({ x, y }) { const len = _config.layers.length; _config.layers.forEach((layer, index) => { const depth = layer.hasOwnProperty('depth') ? layer.depth : (index + 1) / len; const translateZVal = layer.hasOwnProperty('elevation') ? layer.elevation : _config.elevation * (index + 1); let translatePart = ''; if (layer.translationActive) { const translateXVal = layer.translationActive === 'y' ? 0 : (layer.translationInvertX ? -1 : 1) * layer.translationMaxX * (2 * x - 1) * depth; const translateYVal = layer.translationActive === 'x' ? 0 : (layer.translationInvertY ? -1 : 1) * layer.translationMaxY * (2 * y - 1) * depth; translatePart = `translate3d(${translateXVal.toFixed(2)}px, ${translateYVal.toFixed(2)}px, ${translateZVal}px)`; } else { translatePart = `translateZ(${translateZVal}px)`; } let rotatePart = ''; let rotateXVal = 0, rotateYVal = 0, rotateZVal = 0; if (layer.rotateActive) { const rotateInput = layer.rotateActive === 'x' ? x : y; rotateZVal = (layer.rotateInvert ? -1 : 1) * layer.rotateMax * (rotateInput * 2 - 1) * depth; rotatePart += ` rotateZ(${rotateZVal.toFixed(2)}deg)`; } if (layer.tiltActive) { rotateXVal = layer.tiltActive === 'x' ? 0 : (layer.tiltInvertY ? -1 : 1) * layer.tiltMaxY * (1 - y * 2) * depth; rotateYVal = layer.tiltActive === 'y' ? 0 : (layer.tiltInvertX ? -1 : 1) * layer.tiltMaxX * (x * 2 - 1) * depth; if (_config.invertRotation) { // see https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Using_device_orientation_with_3D_transforms#Orientation_compensation rotatePart = ` rotateY(${rotateYVal.toFixed(2)}deg) rotateX(${rotateXVal.toFixed(2)}deg)${rotatePart}`; } else { rotatePart += ` rotateX(${rotateXVal.toFixed(2)}deg) rotateY(${rotateYVal.toFixed(2)}deg)`; } } let skewPart = ''; if (layer.skewActive) { const skewXVal = layer.skewActive === 'y' ? 0 : (layer.skewInvertX ? -1 : 1) * layer.skewMaxX * (1 - x * 2) * depth; const skewYVal = layer.skewActive === 'x' ? 0 : (layer.skewInvertY ? -1 : 1) * layer.skewMaxY * (1 - y * 2) * depth; skewPart = ` skew(${skewXVal.toFixed(2)}deg, ${skewYVal.toFixed(2)}deg)`; } let scalePart = ''; if (layer.scaleActive) { const scaleXInput = layer.scaleActive === 'yy' ? y : x; const scaleYInput = layer.scaleActive === 'xx' ? x : y; const scaleXVal = layer.scaleActive === 'y' ? 1 : 1 + (layer.scaleInvertX ? -1 : 1) * layer.scaleMaxX * (Math.abs(0.5 - scaleXInput) * 2) * depth; const scaleYVal = layer.scaleActive === 'x' ? 1 : 1 + (layer.scaleInvertY ? -1 : 1) * layer.scaleMaxY * (Math.abs(0.5 - scaleYInput) * 2) * depth; scalePart = ` scale(${scaleXVal.toFixed(2)}, ${scaleYVal.toFixed(2)})`; } let layerPerspectiveZ = ''; if (layer.hasOwnProperty('perspectiveZ')) { layerPerspectiveZ = `perspective(${layer.perspectiveZ}px) `; } else if (!container) { layerPerspectiveZ = `perspective(${_config.perspectiveZ}px) `; } layer.el.style.transform = `${layerPerspectiveZ}${translatePart}${scalePart}${skewPart}${rotatePart}`; }); if (_config.perspectiveActive) { let aX = 1, bX = 0, aY = 1, bY = 0; if (_config.perspectiveMaxX) { aX = 1 + 2 * _config.perspectiveMaxX; bX = _config.perspectiveMaxX; } if (_config.perspectiveMaxY) { aY = 1 + 2 * _config.perspectiveMaxY; bY = _config.perspectiveMaxY; } const perspX = _config.perspectiveActive === 'y' ? 0.5 : (_config.perspectiveInvertX ? 1 - x : x) * aX - bX; const perspY = _config.perspectiveActive === 'x' ? 0.5 : (_config.perspectiveInvertY ? 1 - y : y) * aY - bY; container.style.perspectiveOrigin = `${(perspX * 100).toFixed(2)}% ${(perspY * 100).toFixed(2)}%`; } else if (container) { container.style.perspectiveOrigin = '50% 50%'; } }; } function getHandler$1({ target, progress }) { let rect; if (target && target !== window) { rect = clone(target.getBoundingClientRect().toJSON()); } else { target = window; rect = { left: 0, top: 0, width: window.innerWidth, height: window.innerHeight }; } const { width, height, left, top } = rect; function handler(event) { const { clientX, clientY } = event; // percentage of position progress const x = clamp(0, 1, (clientX - left) / width); const y = clamp(0, 1, (clientY - top) / height); progress.x = x; progress.y = y; } function on(config) { target.addEventListener('mousemove', handler, config || false); } function off(config) { target.removeEventListener('mousemove', handler, config || false); } return { on, off, handler }; } /** * @type {gyroscopeConfig} */ const DEFAULTS$3 = { samples: 3, maxBeta: 15, maxGamma: 15 }; function getHandler$2({ progress, samples = DEFAULTS$3.samples, maxBeta = DEFAULTS$3.maxBeta, maxGamma = DEFAULTS$3.maxGamma }) { const hasSupport = window.DeviceOrientationEvent && 'ontouchstart' in window.document.body; if (!hasSupport) { return null; } const totalAngleX = maxGamma * 2; const totalAngleY = maxBeta * 2; let lastGammaZero, lastBetaZero, gammaZero, betaZero; function handler(event) { if (event.gamma === null || event.beta === null) { return; } // initial angles calibration if (samples > 0) { lastGammaZero = gammaZero; lastBetaZero = betaZero; if (gammaZero == null) { gammaZero = event.gamma; betaZero = event.beta; } else { gammaZero = (event.gamma + lastGammaZero) / 2; betaZero = (event.beta + lastBetaZero) / 2; } samples -= 1; } // get angles progress const x = clamp(0, 1, (event.gamma - gammaZero + maxGamma) / totalAngleX); const y = clamp(0, 1, (event.beta - betaZero + maxBeta) / totalAngleY); progress.x = x; progress.y = y; } function on(config) { window.addEventListener('deviceorientation', handler, config || false); } function off(config) { window.removeEventListener('deviceorientation', handler, config || false); } return { on, off, handler }; } /** * @class Tilt * @extends Two5 * @param {tiltConfig} config * * @example * import { Tilt } from 'two.5'; * * const tilt = new Tilt(); * tilt.on(); */ class Tilt extends Two5 { constructor(config = {}) { super(config); this.container = this.config.layersContainer || null; this.createLayers(); } /** * Creates config of layers to be animated during the effect. */ createLayers() { // container defaults to document.body const layersContainer = this.container || window.document.body; // use config.layers or query elements from DOM this.layers = this.config.layers || [...layersContainer.querySelectorAll('[data-tilt-layer]')]; this.layers = this.layers.map(layer => { let config; // if layer is an Element convert it to a TiltLayer object and augment it with data attributes if (layer instanceof Element) { config = Object.assign({ el: layer }, layer.dataset); } else if (typeof layer == 'object' && layer) { config = layer; } return config; // discard garbage }).filter(x => x); } /** * Initializes and returns tilt effect. * * @return {[tilt]} */ getEffects() { return [getEffect$1( // we invert rotation transform order in case of device orientation, // see: https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Using_device_orientation_with_3D_transforms#Orientation_compensation clone({ invertRotation: !!this.usingGyroscope }, this.config, { container: this.container, layers: this.layers }))]; } /** * Setup event handler for tilt effect. * First attempts to setup handler for DeviceOrientation event. * If feature detection fails, handler is set on MouseOver event. */ setupEvents() { // attempt usage of DeviceOrientation event const gyroscopeHandler = getHandler$2({ progress: this.progress, samples: this.config.gyroscopeSamples, maxBeta: this.config.maxBeta, maxGamma: this.config.maxGamma }); if (gyroscopeHandler) { this.usingGyroscope = true; this.tiltHandler = gyroscopeHandler; } else { /* * No deviceorientation support * Use mouseover event. */ this.tiltHandler = getHandler$1({ target: this.config.mouseTarget, progress: this.progress }); } this.tiltHandler.on(); } /** * Removes registered event handler. */ teardownEvents() { this.tiltHandler.off(); } } /** * @typedef {Object} TiltLayer * @property {Element} el element to perform effect on. * @property {number} [depth] factor between 0 and 1 multiplying all effect values. * @property {number} [perspectiveZ] * @property {number} [elevation] * @property {boolean} [transitionActive] * @property {number} [transitionDuration] * @property {number} [transitionEasing] * @property {boolean} [perspectiveActive] * @property {boolean} [perspectiveInvertX] * @property {boolean} [perspectiveInvertY] * @property {number} [perspectiveMaxX] * @property {number} [perspectiveMaxY] * @property {boolean} [translationActive] * @property {boolean} [translationInvertX] * @property {boolean} [translationInvertY] * @property {number} [translationMaxX] * @property {number} [translationMaxY] * @property {boolean} [rotateActive] * @property {boolean} [rotateInvert] * @property {number} [rotateMax] * @property {boolean} [tiltActive] * @property {boolean} [tiltInvertX] * @property {boolean} [tiltInvertY] * @property {number} [tiltMaxX] * @property {number} [tiltMaxY] * @property {boolean} [skewActive] * @property {boolean} [skewInvertX] * @property {boolean} [skewInvertY] * @property {number} [skewMaxX] * @property {number} [skewMaxY] * @property {boolean} [scaleActive] * @property {boolean} [scaleInvertX] * @property {boolean} [scaleInvertY] * @property {number} [scaleMaxX] * @property {number} [scaleMaxY] * * @typedef {Object} tiltConfig * @property {boolean} [animationActive] whether to animate effect progress. * @property {number} [animationFriction] between 0 to 1, amount of friction effect in the animation. 1 being no movement and 0 as no friction. Defaults to 0.4. * @property {number} [maxBeta] * @property {number} [maxGamma] * @property {number} [gyroscopeSamples] * @property {Element} [mouseTarget] * @property {Element} [layersContainer] * @property {Element[]|TiltLayer[]} layers */ /** @typedef {Object} gyroscopeConfig * @property {number} [maxBeta] * @property {number} [maxGamma] * @property {number} [samples] * @property {number} progress */ export { Scroll, Tilt };
26.741042
296
0.63189
52d993a0a6b9ebb60d96528bb7727b492149cd8b
224
js
JavaScript
server/resource/_status/resource.js
LeanKit-Labs/nonstop-index-ui
b81aea1d31bbb185df091e924e6a85c0bf56dd84
[ "MIT" ]
2
2016-04-09T22:25:13.000Z
2020-11-01T11:41:28.000Z
server/resource/_status/resource.js
LeanKit-Labs/nonstop-index-ui
b81aea1d31bbb185df091e924e6a85c0bf56dd84
[ "MIT" ]
15
2015-11-17T00:11:45.000Z
2015-12-29T23:04:31.000Z
server/resource/_status/resource.js
LeanKit-Labs/nonstop-index-ui
b81aea1d31bbb185df091e924e6a85c0bf56dd84
[ "MIT" ]
13
2015-11-13T17:26:21.000Z
2020-11-01T11:41:43.000Z
export default function( host ) { return { name: "_status", actions: { self: { url: "/_status", method: "GET", handle: ( env ) => { env.reply( { statusCode: 200, data: "OK" } ); } } } }; }
14.933333
50
0.482143
52d9dc145cbbf5d4d2d11fb83d582695b1c0f4be
5,691
js
JavaScript
server/routes/welcome.js
WhatAboutGaming/pyramid-waggle
645bf7025aebfb2bb7506123113bfc26bb225836
[ "MIT" ]
null
null
null
server/routes/welcome.js
WhatAboutGaming/pyramid-waggle
645bf7025aebfb2bb7506123113bfc26bb225836
[ "MIT" ]
null
null
null
server/routes/welcome.js
WhatAboutGaming/pyramid-waggle
645bf7025aebfb2bb7506123113bfc26bb225836
[ "MIT" ]
null
null
null
const _ = require("lodash"); const async = require("async"); const stringUtils = require("../util/strings"); module.exports = function(main) { const splitByLineBreak = function(text) { const out = []; if (text && typeof text === "string") { text.split("\n").forEach((s) => { const trimmed = s.trim(); if (trimmed) { out.push(trimmed); } }); } return out; }; const showWelcomePage = function (res, error = null, reqBody = {}) { main.appConfig().loadAppConfig((err, appConfig) => { if (appConfig && appConfig.webPassword) { // It's already set up; no longer showing welcome page if (error) { // If we have an error to show, show it res.end(error); } else { res.redirect("/"); res.end(); } } else { let shown = "display: block"; let hidden = "display: none"; let networkType = reqBody && reqBody.networkType; let ircTypeDisplay = networkType !== "twitch" ? shown : hidden; let twitchTypeDisplay = networkType === "twitch" ? shown : hidden; let ircTypeClass = "irc" + (networkType !== "twitch" ? " selected" : ""); let twitchTypeClass = "twitch" + (networkType === "twitch" ? " selected" : ""); // Make sure web port is prefilled appConfig.webPort = main.appConfig().configValue("webPort"); res.render("welcome", { appConfig, enableScripts: false, error, reqBody, ircTypeDisplay, twitchTypeDisplay, ircTypeClass, twitchTypeClass }); } }); }; const get = function(req, res) { showWelcomePage(res); }; const post = function(req, res) { var error = null; const config = main.appConfig().currentAppConfig(); if (config && config.webPassword) { // It's already set up; no longer showing welcome page res.redirect("/"); res.end(); return; } const onError = function() { // Show form again, pre-filled showWelcomePage(res, error, reqBody); }; const reqBody = req.body; const restricted = config.restrictedMode; var ircData; if ( !reqBody.webPassword || !reqBody.networkType || !reqBody.ircChannels ) { error = "You have not filled in all required fields."; onError(); return; } // Preparing data const channels = _.uniq(splitByLineBreak(reqBody.ircChannels)); if (reqBody.networkType === "irc") { if ( !reqBody.ircName || !reqBody.ircHostname || !reqBody.ircPort || !reqBody.ircNickname ) { error = "You have not filled in all required fields."; onError(); return; } else { ircData = { name: reqBody.ircName, data: { hostname: reqBody.ircHostname, port: reqBody.ircPort, nickname: reqBody.ircNickname, username: reqBody.ircUsername, password: reqBody.ircPassword, secure: !!reqBody.ircSecure, selfSigned: !!reqBody.ircSelfSigned, certExpired: !!reqBody.ircCertExpired, channels } }; } } else if (reqBody.networkType === "twitch") { if ( !reqBody.twitchUsername || !reqBody.twitchPassword ) { error = "You have not filled in all required fields."; onError(); return; } else { ircData = { name: "twitch", data: { hostname: "irc.chat.twitch.tv", port: "6697", nickname: reqBody.twitchUsername, username: reqBody.twitchUsername, password: reqBody.twitchPassword, secure: true, channels } }; } } else { error = "Invalid network type."; onError(); return; } const friends = _.uniq(splitByLineBreak(reqBody.friends)); const friendActions = friends.map((friendName) => { return (callback) => { let name = stringUtils.formatUriName(friendName); if (name) { return main.friends().addToFriends( 0, name, false, callback ); } else { callback(); } }; }); const strongEncryption = restricted ? config.strongEncryptionMode // no override allowed : !!reqBody.strongEncryptionMode; if (strongEncryption) { main.ircPasswords().onDecryptionKey(reqBody.webPassword); } // Submitting main.appConfig().storeConfigValue( "webPassword", reqBody.webPassword, function(err, hashedPassword) { if (err) { // Show error showWelcomePage(res, err, reqBody); res.end(); return; } let encryptKey = strongEncryption ? reqBody.webPassword : hashedPassword; main.ircConfig().setEncryptionKey(encryptKey); async.parallel([ (callback) => { if (reqBody.timeZone) { return main.appConfig().storeConfigValue( "timeZone", reqBody.timeZone, callback ); } callback(); }, (callback) => { if (!restricted && reqBody.webPort) { return main.appConfig().storeConfigValue( "webPort", reqBody.webPort, callback ); } callback(); }, (callback) => { if (strongEncryption) { return main.appConfig().storeConfigValue( "strongIrcPasswordEncryption", true, callback ); } callback(); }, (callback) => { main.ircConfig().addIrcServerFromDetails(ircData, callback); }, ...friendActions ], (err) => { if (err) { // Show error showWelcomePage(res, err, reqBody); res.end(); } else { // Reload data after success async.parallel([ main.appConfig().loadAppConfig, main.friends().loadFriendsList ], () => { // Ready to go!! main.ircControl().loadAndConnectUnconnectedIrcs(); res.redirect("/login"); res.end(); }); } }); } ); }; return { get, post }; };
21.888462
83
0.594799
52daa064b0146ed482e13e1326f13f303efdd5b5
558
js
JavaScript
webapps/jasperserver-pro/optimized-scripts/bower_components/jrs-ui/src/attributes/factory/rowTemplatesFactory.js
khcitizen/tomcat-deployed
b4bd763ef01fdbe7659e0ab649121a3e08236e92
[ "Apache-2.0" ]
2
2021-02-25T16:35:45.000Z
2021-07-07T05:11:55.000Z
webapps/jasperserver-pro/optimized-scripts/bower_components/jrs-ui/src/attributes/factory/rowTemplatesFactory.js
khcitizen/tomcat-deployed
b4bd763ef01fdbe7659e0ab649121a3e08236e92
[ "Apache-2.0" ]
null
null
null
webapps/jasperserver-pro/optimized-scripts/bower_components/jrs-ui/src/attributes/factory/rowTemplatesFactory.js
khcitizen/tomcat-deployed
b4bd763ef01fdbe7659e0ab649121a3e08236e92
[ "Apache-2.0" ]
3
2018-11-14T07:01:06.000Z
2021-07-07T05:12:03.000Z
define(["require","text!attributes/templates/rowDesignerEditTemplate.htm","text!attributes/templates/rowDesignerViewTemplate.htm","text!attributes/templates/emptyDesignerTemplate.htm","text!attributes/templates/rowViewTemplate.htm"],function(t){var e=t("text!attributes/templates/rowDesignerEditTemplate.htm"),r=t("text!attributes/templates/rowDesignerViewTemplate.htm"),m=t("text!attributes/templates/emptyDesignerTemplate.htm"),a=t("text!attributes/templates/rowViewTemplate.htm");return function(t){return t=t||{},t.readOnly?a:t.empty?m:t.editMode?e:r}});
558
558
0.817204
52db7d3caf6e928f2524ca1f6bf83ba3727304f6
3,686
js
JavaScript
src/index.js
ApteryxXYZ/Day-Log
82ae2cca89a6f1d96a95539a9a03b6ea0ed2f0d8
[ "MIT" ]
2
2020-12-01T07:44:50.000Z
2021-01-08T17:58:36.000Z
src/index.js
apteryxxyz/day-log-savings
82ae2cca89a6f1d96a95539a9a03b6ea0ed2f0d8
[ "MIT" ]
null
null
null
src/index.js
apteryxxyz/day-log-savings
82ae2cca89a6f1d96a95539a9a03b6ea0ed2f0d8
[ "MIT" ]
null
null
null
const { mkdirSync: mk, appendFileSync: af, existsSync: ex, openSync: os, statSync: ss, closeSync: cs, unlinkSync: ul, } = require('fs'), { resolve: rs } = require('path'), { inspect: is } = require('util'), { name, description, version } = require('../package.json'), _ = require('./_'), DEFAULTS = { WRITE: { prefix: 'LOG', format: { message: '[%time] [%prefix] %message', time: '%hour:%minute:%second', date: '%year/%month/%day' }, length: 150, console: false, stringify: true, stack: true }, READ: { path: undefined, array: false, lines: 15, blanks: true }, ROOT: { path: `${process.env.PWD}/logs`, extension: '.log' } }; function write(input, options = {}) { if (!input) throw new Error('Write function is missing required \'input\' parameter.'); let cp = Object.assign({}, DEFAULTS.WRITE), o = _.merge(cp, options); _.options(o, 'write'); let e = input instanceof Error; if (o.stack && e) input = input.stack; mk(rs(`${DEFAULTS.ROOT.path}/${_.date('%year/%month')}`), { recursive: true }); if (input instanceof Object && o.stringify && !e) input = is(input); let t = _.time(o.format.time), d = _.date(o.format.date); let q = o.format.message .replace(/%time/gi, t) .replace(/%date/gi, d) .replace(/%prefix/gi, e ? 'ERROR' : o.prefix) .replace(/%message/gi, input.length > o.length ? `\n${input}\n` : `${input}\n`); if (o.console || e) console.log(q.trim()); return af(_.path(DEFAULTS), q, (err) => { if (err) throw err }) || q.trim(); } function read(options = {}) { let cp = Object.assign({}, DEFAULTS.READ), o = Object.assign(cp, options); _.options(o, 'read'); let p = _.path(DEFAULTS, o); if (!ex(p)) throw new Error(`File at '${p}' does not exist.`); let f = os(p), s = ss(p), c = 0, l = 0, ls = ''; while (c < s.size && l < o.lines + 1) { let p = _.char(f, s, c); ls = p + ls; c++; if (p === '\n' && c > 0) l++; } cs(f); let b = Buffer.from(ls, 'binary').toString().trim(), r = o.blanks ? b : b.replace(/\n+/g, '\n'); return o.array ? r.split(/\n/g) : r; } function remove(path) { let p = _.path(DEFAULTS, { path }); if (typeof p !== 'string') throw new TypeError('Read parameter `path` must be a string.'); if (!ex(p)) throw new Error(`File at '${p}' does not exist.`); return ul(p, (err) => { if (err) throw err; }) || p; } function defaults(method, options = {}) { if (!method || !method instanceof String) throw new Error('Defaults function is either missing its \'method\' parameter or what was inputted was not a string.'); if (!['write', 'remove', 'root'].includes(method)) throw new Error('Defaults function parameter \'method\' is not a valid method name. Ensure it is one of the following: \'write\', \'read\', \'root\'.') if (!options || typeof options !== 'object') throw new Error('Defaults function is either missing its \'options\' parameter or what was inputted was not an object.'); _.options(method, options); let m = method.toUpperCase() return DEFAULTS[method.toUpperCase()] = _.merge(DEFAULTS[method.toUpperCase()], options); } module.exports = new class Logger { constructor() { this.write = write; this.read = read; this.remove = remove; this.defaults = defaults; this.name = name; this.description = description; this.version = version; } get DEFAULTS () { return DEFAULTS; } };
36.137255
159
0.557786
52db824035cd2821ea4323362104d7836f15710c
7,655
js
JavaScript
quasar/src/directives/TouchPan.js
amadeobrands/quasar
582c8dd1939592ef98b5e9cbdfa4fa72e04824bd
[ "MIT" ]
null
null
null
quasar/src/directives/TouchPan.js
amadeobrands/quasar
582c8dd1939592ef98b5e9cbdfa4fa72e04824bd
[ "MIT" ]
null
null
null
quasar/src/directives/TouchPan.js
amadeobrands/quasar
582c8dd1939592ef98b5e9cbdfa4fa72e04824bd
[ "MIT" ]
1
2019-03-19T05:49:19.000Z
2019-03-19T05:49:19.000Z
import { position, leftClick, listenOpts } from '../utils/event.js' import { setObserver, removeObserver } from '../utils/touch-observer.js' import { clearSelection } from '../utils/selection.js' function getDirection (mod) { const none = mod.horizontal !== true && mod.vertical !== true, dir = { all: none === true || (mod.horizontal === true && mod.vertical === true) } if (mod.horizontal === true || none === true) { dir.horizontal = true } if (mod.vertical === true || none === true) { dir.vertical = true } return dir } function processChanges (evt, ctx, isFinal) { let pos = position(evt), direction, distX = pos.left - ctx.event.x, distY = pos.top - ctx.event.y, absDistX = Math.abs(distX), absDistY = Math.abs(distY) if (ctx.direction.horizontal && !ctx.direction.vertical) { direction = distX < 0 ? 'left' : 'right' } else if (!ctx.direction.horizontal && ctx.direction.vertical) { direction = distY < 0 ? 'up' : 'down' } else if (absDistX >= absDistY) { direction = distX < 0 ? 'left' : 'right' } else { direction = distY < 0 ? 'up' : 'down' } return { evt, position: pos, direction, isFirst: ctx.event.isFirst, isFinal: isFinal === true, isMouse: ctx.event.mouse, duration: new Date().getTime() - ctx.event.time, distance: { x: absDistX, y: absDistY }, offset: { x: distX, y: distY }, delta: { x: pos.left - ctx.event.lastX, y: pos.top - ctx.event.lastY } } } function shouldTrigger (ctx, changes) { if (ctx.direction.horizontal && ctx.direction.vertical) { return true } if (ctx.direction.horizontal && !ctx.direction.vertical) { return Math.abs(changes.delta.x) > 0 } if (!ctx.direction.horizontal && ctx.direction.vertical) { return Math.abs(changes.delta.y) > 0 } } export default { name: 'touch-pan', bind (el, binding) { const mouse = binding.modifiers.mouse === true, mouseEvtPassive = binding.modifiers.mouseMightPrevent !== true && binding.modifiers.mousePrevent !== true, mouseEvtOpts = listenOpts.hasPassive === true ? { passive: mouseEvtPassive, capture: true } : true, touchEvtPassive = binding.modifiers.mightPrevent !== true && binding.modifiers.prevent !== true, touchEvtOpts = listenOpts[touchEvtPassive === true ? 'passive' : 'notPassive'] function handleEvent (evt, mouseEvent) { if (mouse && mouseEvent) { binding.modifiers.mouseStop && evt.stopPropagation() binding.modifiers.mousePrevent && evt.preventDefault() } else { binding.modifiers.stop && evt.stopPropagation() binding.modifiers.prevent && evt.preventDefault() } } const ctx = { handler: binding.value, direction: getDirection(binding.modifiers), mouseStart (evt) { if (leftClick(evt)) { document.addEventListener('mousemove', ctx.move, mouseEvtOpts) document.addEventListener('mouseup', ctx.mouseEnd, mouseEvtOpts) ctx.start(evt, true) } }, mouseEnd (evt) { document.removeEventListener('mousemove', ctx.move, mouseEvtOpts) document.removeEventListener('mouseup', ctx.mouseEnd, mouseEvtOpts) ctx.end(evt) }, start (evt, mouseEvent) { removeObserver(ctx) mouseEvent !== true && setObserver(el, evt, ctx) const pos = position(evt) ctx.event = { x: pos.left, y: pos.top, time: new Date().getTime(), mouse: mouseEvent === true, detected: false, abort: false, isFirst: true, isFinal: false, lastX: pos.left, lastY: pos.top } }, move (evt) { if (ctx.event.abort === true) { return } if (ctx.event.detected === true) { handleEvent(evt, ctx.event.mouse) const changes = processChanges(evt, ctx, false) if (shouldTrigger(ctx, changes)) { ctx.handler(changes) ctx.event.lastX = changes.position.left ctx.event.lastY = changes.position.top ctx.event.isFirst = false } return } const pos = position(evt), distX = Math.abs(pos.left - ctx.event.x), distY = Math.abs(pos.top - ctx.event.y) if (distX === distY) { return } ctx.event.detected = true if (ctx.direction.all === false && (ctx.event.mouse === false || binding.modifiers.mouseAllDir !== true)) { ctx.event.abort = ctx.direction.vertical ? distX > distY : distX < distY } if (ctx.event.abort !== true) { document.documentElement.style.cursor = 'grabbing' document.body.classList.add('no-pointer-events') document.body.classList.add('non-selectable') clearSelection() } ctx.move(evt) }, end (evt) { ctx.event.mouse !== true && removeObserver(ctx) document.documentElement.style.cursor = '' document.body.classList.remove('no-pointer-events') document.body.classList.remove('non-selectable') if (ctx.event.abort === true || ctx.event.detected !== true || ctx.event.isFirst === true) { return } handleEvent(evt, ctx.event.mouse) ctx.handler(processChanges(evt, ctx, true)) } } if (el.__qtouchpan) { el.__qtouchpan_old = el.__qtouchpan } el.__qtouchpan = ctx if (mouse === true) { el.addEventListener('mousedown', ctx.mouseStart, mouseEvtOpts) } el.addEventListener('touchstart', ctx.start, touchEvtOpts) el.addEventListener('touchmove', ctx.move, touchEvtOpts) el.addEventListener('touchcancel', ctx.end) el.addEventListener('touchend', ctx.end) }, update (el, { oldValue, value, modifiers }) { const ctx = el.__qtouchpan if (oldValue !== value) { ctx.handler = value } if ( (modifiers.horizontal !== ctx.direction.horizontal) || (modifiers.vertical !== ctx.direction.vertical) ) { ctx.direction = getDirection(modifiers) } }, unbind (el, binding) { let ctx = el.__qtouchpan_old || el.__qtouchpan if (ctx !== void 0) { removeObserver(ctx) document.documentElement.style.cursor = '' document.body.classList.remove('no-pointer-events') document.body.classList.remove('non-selectable') const mouse = binding.modifiers.mouse === true, mouseEvtPassive = binding.modifiers.mouseMightPrevent !== true && binding.modifiers.mousePrevent !== true, mouseEvtOpts = listenOpts.hasPassive === true ? { passive: mouseEvtPassive, capture: true } : true, touchEvtPassive = binding.modifiers.mightPrevent !== true && binding.modifiers.prevent !== true, touchEvtOpts = listenOpts[touchEvtPassive === true ? 'passive' : 'notPassive'] if (mouse === true) { el.removeEventListener('mousedown', ctx.mouseStart, mouseEvtOpts) document.removeEventListener('mousemove', ctx.move, mouseEvtOpts) document.removeEventListener('mouseup', ctx.mouseEnd, mouseEvtOpts) } el.removeEventListener('touchstart', ctx.start, touchEvtOpts) el.removeEventListener('touchmove', ctx.move, touchEvtOpts) el.removeEventListener('touchcancel', ctx.end) el.removeEventListener('touchend', ctx.end) delete el[el.__qtouchpan_old ? '__qtouchpan_old' : '__qtouchpan'] } } }
29.329502
115
0.601437
52dbec3be6848faec96266164b4c171bb23e8aef
413
js
JavaScript
assets/js/template_associado/login.js
ivanrufino/aggenda
3a02f7c18e838d5dc71f5385cd5409484280d34c
[ "MIT" ]
2
2021-07-22T17:15:59.000Z
2021-09-02T17:04:04.000Z
assets/js/template_associado/login.js
ivanrufino/aggenda
3a02f7c18e838d5dc71f5385cd5409484280d34c
[ "MIT" ]
9
2020-05-15T21:37:55.000Z
2021-12-09T21:29:37.000Z
assets/js/template_associado/login.js
ivanrufino/aggenda
3a02f7c18e838d5dc71f5385cd5409484280d34c
[ "MIT" ]
3
2019-04-02T10:48:24.000Z
2019-04-03T07:54:26.000Z
$(function () { $('.list-inline li > a').click(function () { var activeForm = $(this).attr('href') + ' > form'; //console.log(activeForm); $(activeForm).addClass('magictime swap'); //set timer to 1 seconds, after that, unload the magic animation setTimeout(function () { $(activeForm).removeClass('magictime swap'); }, 1000); }); });
34.416667
72
0.532688
52dd382c800b520eff08c35dfbb60174b8d16474
12,677
js
JavaScript
js/secure-squares/secureLattice.js
xperimex/xperimex.github.io
8661e88de10d05584e907868333b2295057ce9d3
[ "MIT" ]
null
null
null
js/secure-squares/secureLattice.js
xperimex/xperimex.github.io
8661e88de10d05584e907868333b2295057ce9d3
[ "MIT" ]
1
2020-12-04T20:31:13.000Z
2020-12-04T20:31:13.000Z
js/secure-squares/secureLattice.js
xperimex/xperimex.github.io
8661e88de10d05584e907868333b2295057ce9d3
[ "MIT" ]
null
null
null
const s7 = ( sketch ) => { const width = 600; const height = 600; class Ray { constructor(x, y, dir, radius) { this.px = x; this.py = y; this.radius = radius; this.dir = dir; } } class Point { constructor(x, y) { this.x = x; this.y = y; } } // Class for interactive points class Draggable { constructor(x, y, r, color) { this.dragging = false; // Is the object being dragged? this.rollover = false; // Is the mouse over the ellipse? this.x = x; this.y = y; this.r = r ; this.offsetX = 0; this.offsetY = 0; this.color = color; this.prevX = x; this.prevY = y; } over() { // Is mouse over object if ((sketch.mouseX - this.x)**2 + (sketch.mouseY - this.y)**2 < 2 * (this.r / 2)**2) { this.rollover = true; } else { this.rollover = false; } } update() { // Adjust location if being dragged if (this.dragging) { this.x = sketch.mouseX + this.offsetX; this.y = sketch.mouseY + this.offsetY; } } show() { // stroke(0); sketch.strokeWeight(this.r); // Different fill based on state if (this.dragging) { sketch.stroke(this.color[0] - 100, this.color[1] - 100, this.color[2] - 100); } else if (this.rollover) { sketch.stroke(this.color[0] - 50, this.color[1] - 50, this.color[2] - 50); } else { sketch.stroke(this.color[0], this.color[1], this.color[2]); } sketch.point(this.x, this.y); } pressed() { // Did I click on the rectangle? if ((sketch.mouseX - this.x)**2 + (sketch.mouseY - this.y)**2 <= 2 * (this.r / 2)**2) { this.dragging = true; // If so, keep track of relative location of click to corner of rectangle this.offsetX = this.x - sketch.mouseX; this.offsetY = this.y - sketch.mouseY; } } released() { // Quit dragging this.dragging = false; } } function drawRay(ray) { sketch.stroke(0,0,0); sketch.strokeWeight(1.3); sketch.line(ray.px, ray.py, ray.px + ray.radius * Math.cos(ray.dir), ray.py + ray.radius * Math.sin(ray.dir)); } function drawPoint(P) { // Reflect back in if out-of-bounds var current = P; sketch.strokeWeight(6); sketch.stroke(0,0,255); sketch.point(current.x, current.y); } function intersect(ray, P) { var translated = [P.x - ray.px, P.y - ray.py]; // distance = cross(translated, ray)/ray.magnitude; // ray.magnitude = 1 since using sin and cos directions that lie on unit circle var dist = (translated[0] * Math.sin(ray.dir) - translated[1] * Math.cos(ray.dir)) / 1 // The smaller the threshold for intersecting, the closer it is to actual point geometry // This dictates the radius of the circle around a dot to deem an acceptable hit return (Math.abs(dist) <= 1.5); } function reflect(mirror, P) { var start = mirror[0]; var end = mirror[1]; var wall = new Point(start.x-end.x, start.y-end.y); var point_reflect_scalar = 2 * ((P.x - start.x) * wall.x + (P.y - start.y) * wall.y)/(wall.x ** 2 + wall.y ** 2); var point_reflect_vec = new Point(point_reflect_scalar * wall.x - (P.x - start.x), point_reflect_scalar * wall.y - (P.y - start.y)); var reflection = new Point(point_reflect_vec.x + start.x, point_reflect_vec.y + start.y); return reflection; } function wallIntersect() { // var reflection = wall_target; var temp_left = [new Point(wall_left[0].x, wall_left[0].y), new Point(wall_left[1].x, wall_left[1].y)]; var temp_top = [new Point(wall_top[0].x, wall_top[0].y), new Point(wall_top[1].x, wall_top[1].y)]; var last_starting_point = wall_target; reflection = wall_target; for (let x = 0; x < grid_size; x++) { for (let y = 0; y < grid_size; y++) { sketch.strokeWeight(6); if (x % 2 == 0 && y % 2 == 0) { sketch.stroke(0,128,0); } else if (x % 2 == 0 && y % 2 == 1) { sketch.stroke(170,0,170); } else if (x % 2 == 1 && y % 2 == 0) { sketch.stroke(170,170,0); } else if (x % 2 == 1 && y % 2 == 1) { sketch.stroke(0,170,170); } sketch.point(reflection.x, reflection.y) reflection = reflect(temp_top, reflection); temp_top[0].y -= square_dim; temp_top[1].y -= square_dim; } temp_top = [new Point(wall_top[0].x, wall_top[0].y), new Point(wall_top[1].x, wall_top[1].y)]; reflection = reflect(temp_left, last_starting_point); last_starting_point = reflect(temp_left, last_starting_point); // reflection = reflect(temp_left, reflection); temp_left[0].x -= square_dim; temp_left[1].x -= square_dim; } // var mirror_ray = new Ray(wall_light.x, wall_light.y, // Math.atan2((reflection.y-wall_light.y),(reflection.x-wall_light.x)), // 1000); // sketch.strokeWeight(1); // sketch.stroke(0,0,0); // sketch.setLineDash([5,5]); // sketch.line(mirror_ray.px,mirror_ray.py,reflection.x,reflection.y); // sketch.strokeWeight(6); // sketch.stroke(0,128,0); // // point(reflection.x, reflection.y); // reflected_target.x = reflection.x; // reflected_target.y = reflection.y; // sketch.setLineDash([0,0]); // sketch.strokeWeight(1); // sketch.stroke(0,0,0); // let current = mirror_ray; // for (let i = 0; i < 100; i++){ // // Check if ray intersects any points first // if (intersect(current, wall_target)) { // // Use dot product to find projection length (unsure why Math.abs() is needed) // current.radius = Math.abs((wall_target.x - current.px) * Math.cos(current.dir) + (wall_target.y - current.py) * Math.sin(current.dir)) / 1; // drawRay(current); // break; // } // // Check intersection with left, right, top, and bottom walls // var t = [[(wall_left[0].x - current.px)/Math.cos(current.dir), Math.PI - current.dir], // [(wall_right[0].x - current.px)/Math.cos(current.dir), Math.PI - current.dir], // [(wall_top[0].y - current.py)/Math.sin(current.dir), -current.dir], // [(wall_bottom[0].y - current.py)/Math.sin(current.dir), -current.dir]]; // // Sort from least to greatest t value // t.sort(function(a,b) {return a[0]-b[0]}); // for (let j = 0; j < t.length; j++) { // if (t[j][0] <= 0.01) { // Only want smallest positive value // t.splice(j, 1); // j--; // } // } // current.radius = t[0][0]; // drawRay(current); // current.px += t[0][0] * Math.cos(current.dir); // current.py += t[0][0] * Math.sin(current.dir); // current.dir = t[0][1]; // } } sketch.setLineDash = function(list) { sketch.drawingContext.setLineDash(list); } let wall_light; let wall_target; let line1; let line2; let grid_size = 7; let square_dim = (600-2*20)/grid_size; // let reflected_target; // let ref_coords = new Point(2,3); // let ref_coords; let wall_left; let wall_top; let wall_right; let wall_bottom; sketch.setup = function() { sketch.createCanvas(width,height); wall_light = new Draggable(544, 569, 6, [255,0,0]); wall_target = new Draggable(560, 517, 6, [0,255,0]); // reflected_target = new Draggable(240,163,6,[0,128,0]); line1 = new Point((600 - grid_size*square_dim)/2 + (grid_size-1)*square_dim, (600 - grid_size*square_dim)/2); line2 = new Point((600 - grid_size*square_dim)/2 + (grid_size-1)*square_dim, 600 - (600-grid_size*square_dim)/2); } sketch.draw = function() { sketch.background(255); sketch.stroke(0); sketch.strokeWeight(1); sketch.setLineDash([0]); sketch.line(0,0,width,0); sketch.line(0,0,0,height); sketch.line(width,0,width,height); sketch.line(0,height,width,height); // ref_coords = new Point(grid_size - Math.ceil((reflected_target.x - 20)/square_dim), // grid_size - Math.ceil((reflected_target.y - 20)/square_dim)); var wall = new Point(line1.x-line2.x, line1.y-line2.y); // Guiding wall vector based on left wall // Drawing square + reflection wall_left = [new Point(0*(wall.x) + line1.x, 0*(wall.y) + line1.y), new Point(0*(wall.x) + line1.x, -1*(wall.y) + line1.y)] wall_top = [new Point(0*(wall.x) + line1.x - (grid_size-1)*square_dim, (600-grid_size*square_dim)/2 + (grid_size-1)*square_dim), new Point(0*(wall.x) + line1.x + square_dim, (600-grid_size*square_dim)/2 + (grid_size-1)*square_dim)] wall_bottom = [new Point(0*(wall.x) + line1.x - (grid_size-1)*square_dim, -1*(wall.y) + line1.y), new Point(0*(wall.x) + line1.x + square_dim, -1*(wall.y) + line1.y)] wall_right = [new Point(0*(wall.x) + line1.x + square_dim, 0*(wall.y) + line1.y), new Point(-1*(wall.x) + line1.x + square_dim, -1*(wall.y) + line1.y)]; for (let i = 0; i < grid_size/2; i++){ sketch.stroke(255,200,0) sketch.line(wall_left[0].x - 2*i*square_dim, wall_left[0].y, wall_left[1].x - 2*i*square_dim, wall_left[1].y); // wall left sketch.stroke(255,0,255); sketch.line(wall_top[0].x, wall_top[0].y - 2*i*square_dim, wall_top[1].x, wall_top[1].y - 2*i*square_dim); // wall top } for (let i = 0; i < grid_size/2 + (grid_size+1) % 2; i++){ sketch.stroke(0,255,255); sketch.line(wall_bottom[0].x, wall_bottom[0].y - 2*i*square_dim, wall_bottom[1].x, wall_bottom[1].y - 2*i*square_dim); // wall bottom sketch.stroke(100,100,100); sketch.line(wall_right[0].x - 2*i*square_dim, wall_right[0].y, wall_right[1].x - 2*i*square_dim, wall_right[1].y); // wall right } // Interactive boundaries if (wall_light.x < wall_left[0].x + 5) { wall_light.x = wall_left[0].x + 5 } if (wall_light.x > wall_right[0].x - 5) { wall_light.x = wall_right[0].x - 5 } if (wall_light.y < wall_top[0].y + 5) { wall_light.y = wall_top[0].y + 5 } if (wall_light.y > wall_bottom[0].y - 5) { wall_light.y = wall_bottom[0].y - 5 } if (wall_target.x < wall_left[0].x + 5) { wall_target.x = wall_left[0].x + 5 } if (wall_target.x > wall_right[0].x - 5) { wall_target.x = wall_right[0].x - 5 } if (wall_target.y < wall_top[0].y + 5) { wall_target.y = wall_top[0].y + 5 } if (wall_target.y > wall_bottom[0].y - 5) { wall_target.y = wall_bottom[0].y - 5 } // Makes sure the interactive reflection point is contained in grid // ref_coords.x = Math.min(ref_coords.x, grid_size-1); // ref_coords.y = Math.min(ref_coords.y, grid_size-1); wallIntersect(); wall_light.over(); wall_light.update(); wall_light.show(); wall_target.over(); wall_target.update(); wall_target.show(); // reflected_target.show(); // reflected_target.over(); // reflected_target.update(); // Putting .update() last gives that "snapping into place" effect } sketch.mousePressed = function() { wall_light.pressed(); wall_target.pressed(); // reflected_target.pressed(); } sketch.mouseReleased = function() { wall_light.released(); wall_target.released(); // reflected_target.released(); } } let secureLattice = new p5(s7, 'secureLattice')
30.769417
150
0.530725
52dd8067efdb924ebe72b1924f93890d48def789
17,683
js
JavaScript
templates/src/anijs-master/test/jasmine-standalone/spec/AniJSSpecSelectorsFunctions.js
op3ntrap/IBGCarbon
887b3425fb3daa354a38fe839fa52297ddac1882
[ "MIT" ]
null
null
null
templates/src/anijs-master/test/jasmine-standalone/spec/AniJSSpecSelectorsFunctions.js
op3ntrap/IBGCarbon
887b3425fb3daa354a38fe839fa52297ddac1882
[ "MIT" ]
null
null
null
templates/src/anijs-master/test/jasmine-standalone/spec/AniJSSpecSelectorsFunctions.js
op3ntrap/IBGCarbon
887b3425fb3daa354a38fe839fa52297ddac1882
[ "MIT" ]
null
null
null
YUI().use('node', 'node-event-simulate', function (Y) { var AniJSTest = { Utils: {} }; AniJSTest.Utils.settingAfterFunctionSpy = function (callback, count) { //Se obtiene el helper por defecto AniJSDefaultHelper = AniJS.getHelper(); //Se agrega una funcion before AniJSDefaultHelper.afterFunction = function (e, animationContext) { //Permite seguir con las pruebas if (count && count > 1) { count--; } else { callback(); } }; // Ponemos un spy a dicha funcion para saber cuando se ejecuta la animacion spyOn(AniJSDefaultHelper, 'afterFunction').and.callThrough(); }; AniJSTest.Utils.settingHelperFunctionSpy = function (name) { //Se obtiene el helper por defecto AniJSDefaultHelper = AniJS.getHelper(); // Ponemos un spy a dicha funcion para saber cuando se ejecuta la animacion spyOn(AniJSDefaultHelper, name).and.callThrough(); }; AniJSTest.Utils.settingEnviroment = function (dataAnijJS, targetNodeSelector) { var htmlNode = '<div class="test">' + '<div class="a">' + 'a' + '<div class="a-1" id="contenedor">' + 'a-1' + '<ul id="a-1-2">' + '<li class="a-1-2-3">' + 'a-1-2-3' + '</li>' + '</ul>' + '</div>' + '</div>' + '</div>', targetNode, selector = targetNodeSelector || '.a-1-2-3'; //Ponemos el nodo en la zona de pruebas Y.one('#testzone').appendChild(htmlNode); targetNode = Y.one('#testzone ' + selector); targetNode.setAttribute('data-anijs', dataAnijJS); return targetNode; }; describe("AniJS", function () { afterEach(function () { AniJS.purgeAll(); Y.one('#testzone .test').remove(); Y.one('body').removeClass('bounce'); Y.all(".testingBehavior").removeClass('testingBehavior'); }); describe('cuando se usan como selectores (to) [selectores CSS]', function () { beforeEach(function (done) { var dataAnijJS = 'if: click, do: bounce animated, to: .a-1-2-3, after: $afterFunction', targetNode; targetNode = AniJSTest.Utils.settingEnviroment(dataAnijJS); AniJSTest.Utils.settingAfterFunctionSpy(done); //corremos AniJS AniJS.run(); //Simulamos el evento click targetNode.simulate("click"); }); it('entonces son seleccionados los elementos que matcheen con dicho selector', function () { var animationContext = AniJSDefaultHelper.afterFunction.calls.argsFor(0)[1]; expect(animationContext.behaviorTargetList.length).toEqual(1); expect(Y.one(animationContext.behaviorTargetList[0]).hasClass('a-1-2-3')).toBeTruthy(); }); }); describe('cuando se usan como selectores (to) [funciones ayudante]', function () { describe('y esa funcion es de tipo $parent', function () { describe('cuando no recibe parametros', function () { beforeEach(function (done) { var dataAnijJS = 'if: click, do: $addClass testingBehavior, to: $parent, after: $afterFunction', targetNode; targetNode = AniJSTest.Utils.settingEnviroment(dataAnijJS); AniJSTest.Utils.settingAfterFunctionSpy(done); AniJSTest.Utils.settingHelperFunctionSpy('parent'); //corremos AniJS AniJS.run(); //Simulamos el evento click targetNode.simulate("click"); }); it('entonces se devuelve el padre del elemento que es propietario de la' + 'definicion data-anijs', function () { expect(AniJSDefaultHelper.parent).toHaveBeenCalled(); expect(Y.one("#a-1-2").hasClass('testingBehavior')).toBeTruthy(); }); }); describe('cuando recibe 1 parametro cuyo valor es "target"', function () { beforeEach(function (done) { var dataAnijJS = 'if: click, on: #contenedor,do: $addClass testingBehavior, to: $parent target, after: $afterFunction', targetNode; targetNode = AniJSTest.Utils.settingEnviroment(dataAnijJS); AniJSTest.Utils.settingAfterFunctionSpy(done); AniJSTest.Utils.settingHelperFunctionSpy('parent'); //corremos AniJS AniJS.run(); //Simulamos el evento click Y.one('#contenedor').simulate("click"); }); it('entonces se devuelve el padre del elemento que dispara el evento', function () { expect(AniJSDefaultHelper.parent).toHaveBeenCalled(); expect(Y.one('div.a').hasClass('testingBehavior')).toBeTruthy(); }); }); describe('cuando recibe 1 parametro cuyo valor es algun "selector CSS"', function () { beforeEach(function (done) { var dataAnijJS = 'if: click, on: #contenedor,do: $addClass testingBehavior, to: $parent #a-1-2, after: $afterFunction', targetNode; targetNode = AniJSTest.Utils.settingEnviroment(dataAnijJS); AniJSTest.Utils.settingAfterFunctionSpy(done, 1); AniJSTest.Utils.settingHelperFunctionSpy('parent'); //corremos AniJS AniJS.run(); //Simulamos el evento click Y.one('#contenedor').simulate("click"); }); it('entonces se devuelve los padres de todos los elementos que matchen con' + 'dicho selector', function () { expect(AniJSDefaultHelper.parent).toHaveBeenCalled(); expect(Y.one('.a-1').hasClass('testingBehavior')).toBeTruthy(); }); }); }); describe('y esa funcion es de tipo $closest', function () { describe('cuando no recibe parametros', function () { beforeEach(function (done) { var dataAnijJS = 'if: click, do: $addClass testingBehavior, to: $closest, after: $afterFunction', targetNode; targetNode = AniJSTest.Utils.settingEnviroment(dataAnijJS); AniJSTest.Utils.settingAfterFunctionSpy(done); AniJSTest.Utils.settingHelperFunctionSpy('closest'); //corremos AniJS AniJS.run(); //Simulamos el evento click targetNode.simulate("click"); }); it('entonces se devuelve "el ancestro mas cercano" del elemento que es propietario de la' + 'definicion data-anijs', function () { expect(AniJSDefaultHelper.closest).toHaveBeenCalled(); expect(Y.one('#a-1-2').hasClass('testingBehavior')).toBeTruthy(); }); }); describe('cuando recibe 1 parametro cuyo valor es un selector CSS', function () { beforeEach(function (done) { var dataAnijJS = 'if: click, on:#contenedor, do: $addClass testingBehavior, to: $closest .a, after: $afterFunction', targetNode; targetNode = AniJSTest.Utils.settingEnviroment(dataAnijJS, '#contenedor'); AniJSTest.Utils.settingAfterFunctionSpy(done); AniJSTest.Utils.settingHelperFunctionSpy('closest'); //corremos AniJS AniJS.run(); //Simulamos el evento click Y.one('#contenedor').simulate("click"); }); it('entonces se devuelve "el ancestro mas cercano" de los elementos que matcheen con ' + 'dicho selector', function () { expect(AniJSDefaultHelper.closest).toHaveBeenCalled(); expect(Y.one('.test').hasClass('testingBehavior')).toBeTruthy(); }); }); describe('cuando se reciben 2 parametros cuyos valores son "target" | selector CSS', function () { beforeEach(function (done) { var dataAnijJS = 'if: click, on: ul,do: $addClass testingBehavior, to: $closest target | .a, after: $afterFunction', targetNode; targetNode = AniJSTest.Utils.settingEnviroment(dataAnijJS); AniJSTest.Utils.settingAfterFunctionSpy(done); AniJSTest.Utils.settingHelperFunctionSpy('closest'); //corremos AniJS AniJS.run(); //Simulamos el evento click Y.one('ul').simulate("click"); }); it('entonces se devuelve "el ancestro mas cercano" que matchee con el selector" ' + 'del elemento que dispara el evento', function () { expect(AniJSDefaultHelper.closest).toHaveBeenCalled(); expect(Y.one('div.a').hasClass('testingBehavior')).toBeTruthy(); }); }); describe('cuando se reciben 2 parametros cuyos valores son "selector CSS" | selector CSS', function () { beforeEach(function (done) { var dataAnijJS = 'if: click, on: ul,do: $addClass testingBehavior, to: $closest ul | .a, after: $afterFunction', targetNode; targetNode = AniJSTest.Utils.settingEnviroment(dataAnijJS); AniJSTest.Utils.settingAfterFunctionSpy(done); AniJSTest.Utils.settingHelperFunctionSpy('closest'); //corremos AniJS AniJS.run(); //Simulamos el evento click Y.one('ul').simulate("click"); }); it('entonces se devuelve "el ancestro mas cercano que matcheen con el selector" ' + 'de los elementos que matcheen con el selector CSS', function () { expect(AniJSDefaultHelper.closest).toHaveBeenCalled(); expect(Y.one('div.a').hasClass('testingBehavior')).toBeTruthy(); }); }); }); describe('y esa funcion es de tipo $find', function () { describe('cuando no recibe parametros', function () { beforeEach(function (done) { var dataAnijJS = 'if: click, do: $addClass testingBehavior, to: $find, after: $afterFunction', targetNode; targetNode = AniJSTest.Utils.settingEnviroment(dataAnijJS, '#a-1-2'); AniJSTest.Utils.settingAfterFunctionSpy(done, 1); AniJSTest.Utils.settingHelperFunctionSpy('find'); //corremos AniJS AniJS.run(); //Simulamos el evento click targetNode.simulate("click"); }); it('entonces se devuelve "TODOS los elementos descendientes" del elemento que es propietario de la' + 'definicion data-anijs', function () { expect(AniJSDefaultHelper.find).toHaveBeenCalled(); expect(Y.one('li').hasClass('testingBehavior')).toBeTruthy(); }); }); describe('cuando recibe 1 parametro cuyo valor es "target"', function () { beforeEach(function (done) { var dataAnijJS = 'if: click, on:#a-1-2, do: $addClass testingBehavior, to: $find target, after: $afterFunction', targetNode; targetNode = AniJSTest.Utils.settingEnviroment(dataAnijJS, '#a-1-2'); AniJSTest.Utils.settingAfterFunctionSpy(done, 1); AniJSTest.Utils.settingHelperFunctionSpy('find'); //corremos AniJS AniJS.run(); //Simulamos el evento click Y.one('#a-1-2').simulate("click"); }); it('entonces se devuelve "los elementos descendientes" del elemento que dispara el evento', function () { expect(AniJSDefaultHelper.find).toHaveBeenCalled(); expect(Y.one('.a-1-2-3').hasClass('testingBehavior')).toBeTruthy(); }); }); describe('cuando recibe 1 parametro cuyo valor es algun "selector CSS"', function () { beforeEach(function (done) { var dataAnijJS = 'if: click, on: #contenedor,do: $addClass testingBehavior, to: $find #a-1-2, after: $afterFunction', targetNode; targetNode = AniJSTest.Utils.settingEnviroment(dataAnijJS, '.a'); AniJSTest.Utils.settingAfterFunctionSpy(done, 1); AniJSTest.Utils.settingHelperFunctionSpy('find'); //corremos AniJS AniJS.run(); //Simulamos el evento click Y.one('#contenedor').simulate("click"); }); it('entonces se devuelve "los elementos descendientes" de los elementos ' + 'que matchen con dicho selector', function () { expect(AniJSDefaultHelper.find).toHaveBeenCalled(); expect(Y.one('.a-1-2-3').hasClass('testingBehavior')).toBeTruthy(); }); }); describe('cuando se reciben 2 parametros cuyos valores son "target" | selector CSS', function () { beforeEach(function (done) { var dataAnijJS = 'if: click, on: .test,do: $addClass testingBehavior, to: $find target | .a, after: $afterFunction', targetNode; targetNode = AniJSTest.Utils.settingEnviroment(dataAnijJS, '.a'); AniJSTest.Utils.settingAfterFunctionSpy(done); AniJSTest.Utils.settingHelperFunctionSpy('find'); //corremos AniJS AniJS.run(); //Simulamos el evento click Y.one('.test').simulate("click"); }); it('entonces se devuelve "los elementos descendientes" que matchee con el selector" ' + 'del elemento que dispara el evento', function () { expect(AniJSDefaultHelper.find).toHaveBeenCalled(); expect(Y.one('div.a').hasClass('testingBehavior')).toBeTruthy(); }); }); describe('cuando se reciben 2 parametros cuyos valores son "selector CSS" | selector CSS', function () { beforeEach(function (done) { var dataAnijJS = 'if: click, on: ul,do: $addClass testingBehavior, to: $find .a | ul, after: $afterFunction', targetNode; targetNode = AniJSTest.Utils.settingEnviroment(dataAnijJS, '.a'); AniJSTest.Utils.settingAfterFunctionSpy(done); AniJSTest.Utils.settingHelperFunctionSpy('find'); //corremos AniJS AniJS.run(); //Simulamos el evento click Y.one('ul').simulate("click"); }); it('entonces se devuelve "los elementos descendientes que matcheen con el selector" ' + 'de los elementos que matcheen con el selector CSS', function () { expect(AniJSDefaultHelper.find).toHaveBeenCalled(); expect(Y.one('ul').hasClass('testingBehavior')).toBeTruthy(); }); }); }); }); }); });
46.049479
144
0.486965
52ddaa22b47b96ef6836dc8912fe0bf589aae535
190
js
JavaScript
src/helpers/removeDuplicates/index.js
marlonfrontend/vue-sdz
50b59fd58fe30ed46e2e10959de337238c2bfe8f
[ "MIT" ]
1
2021-07-23T14:06:47.000Z
2021-07-23T14:06:47.000Z
src/helpers/removeDuplicates/index.js
sdz-front/vue-sdz
50b59fd58fe30ed46e2e10959de337238c2bfe8f
[ "MIT" ]
2
2021-08-13T18:40:22.000Z
2021-09-09T17:54:10.000Z
src/helpers/removeDuplicates/index.js
seedz-ag/vue-sdz
50b59fd58fe30ed46e2e10959de337238c2bfe8f
[ "MIT" ]
null
null
null
export default (arr, prop) => { const digest = arr.reduce((acc, el) => { if (!acc.has(el[prop])) acc.set(el[prop], el) return acc }, new Map()) return [...digest.values()] }
19
49
0.557895
52ddc08df3be412702ad1ebd957943bec6f9a1a7
122
js
JavaScript
packages/objectel/src/Fragment.js
ENvironmentSet/objectel
bbd4c14c19b896fd257107aaf41798416e0888fc
[ "MIT" ]
5
2019-01-16T17:20:41.000Z
2019-07-19T10:30:15.000Z
src/Fragment.js
ENvironmentSet/objectel-core
4d1bb0bc3a0d52a35299bc653bcab39af0a915ff
[ "MIT" ]
9
2019-01-13T11:01:19.000Z
2019-01-16T19:51:36.000Z
packages/objectel/src/Fragment.js
ENvironmentSet/objectel
bbd4c14c19b896fd257107aaf41798416e0888fc
[ "MIT" ]
null
null
null
import merge from 'callbag-merge'; export default function Fragment({ children }) { return () => merge(...children); };
24.4
48
0.680328
52de212de9c4612b19158a16f13641eb1515d60a
33,580
js
JavaScript
Bank/bank/js/controller/schedule-task.js
keithbox/Passive-Investment-Management-System
fcac8d0b66ee5831600e9fa8d9c3e5f767b9a932
[ "MIT" ]
3
2020-03-23T13:49:36.000Z
2020-03-26T13:55:13.000Z
Bank/bank/js/controller/schedule-task.js
keithbox/Passive-Investment-Management-System
fcac8d0b66ee5831600e9fa8d9c3e5f767b9a932
[ "MIT" ]
null
null
null
Bank/bank/js/controller/schedule-task.js
keithbox/Passive-Investment-Management-System
fcac8d0b66ee5831600e9fa8d9c3e5f767b9a932
[ "MIT" ]
null
null
null
"use strict"; // app.run(function ($rootScope, $log, Security, config) { // console.log("app.run at local page"); // //Security.GoToMenuIfSessionExists(); // //Security.RequiresAuthorization(); // config.uiTheme = "B"; // }); app.controller('scheduleTaskController', ['$scope', '$rootScope', '$timeout', 'MessageService', function ($scope, $rootScope, $timeout, MessageService) { $scope.directiveScopeDict = {}; $scope.directiveCtrlDict = {}; $scope.inquiryModel = {}; $scope.inquiryModel.Record = {}; $scope.inquiryNextDayModel = {}; $scope.inquiryNextDayModel.Record = {}; $scope.entryForm = {}; $scope.processModel = {}; $scope.processModel.ScheduleTask = {}; $scope.processModel.ScheduleProgramList = []; $scope.timeoutId = null; const ordinalOfDayLabel = "Monthly on day "; const ordinalOfWeekdayLabel = "Monthly on day "; $scope.entryFormMode = ""; $scope.processFormMode = ""; $scope.freqType = { availableOptions: { Once:{label: 'Do not repeat', value: 'Once'}, Daily:{label: 'Daily', value: 'Daily'}, Weekly:{label: 'Weekly', value: 'Weekly'}, Monthly:{label: 'Monthly', value: 'Monthly'}, //MonthlyOnRelative:{label: 'Monthly on relative', value: 'Monthly on relative'}, //Yearly:{label: 'Yearly', value: 'Yearly'} }, selectedOptions: {label: 'Once', value: 'Once'} // deprecated }; $scope.freqInterval = { // label for display in html, value for indicate in angularjs binding weeklyAvailableOptions:{ Sun:{label: 'Sun', value: 'Sun', weekday: 0}, Mon:{label: 'Mon', value: 'Mon', weekday: 1}, Tue:{label: 'Tue', value: 'Tue', weekday: 2}, Wed:{label: 'Wed', value: 'Wed', weekday: 3}, Thu:{label: 'Thu', value: 'Thu', weekday: 4}, Fri:{label: 'Fri', value: 'Fri', weekday: 5}, Sat:{label: 'Sat', value: 'Sat', weekday: 6} }, monthlyAvailableOptions:{ MonthlyOnOrdinalOfDay:{label: 'Merge in below ', value: 'Ordinal of nth day'}, MonthlyOnOrdinalOfWeekday:{label: 'Merge in below ', value: 'Ordinal of weekday'} }, weeklySelectedOptions:{}, monthlySelectedOptions:"" } $scope.ordinalOfDay = ''; $scope.ordinalOfWeekday = "first/second/third/fourth weekday"; $scope.endConditionType = { availableOptions: { Never: {label: 'Never', value: 'Never'}, On: {label: 'On', value: 'On'}, After: {label: 'After', value: 'After Occurred'} }, selectedOptions: {} } $scope.scheduleTaskProgram = { }; $scope.selectedTaskProgram = {}; $scope.nextDateList = []; $scope.CountTaskPrograms = function(taskProgramsObj){ return Object.keys(taskProgramsObj).length; } $scope.InitializeWeeklySelectedOptions = function(boolFlag){ angular.forEach($scope.freqInterval.weeklyAvailableOptions, function(optionObj, index) { $scope.freqInterval.weeklySelectedOptions[optionObj.value] = boolFlag; }) } $scope.ResetScheduleTaskProgram = function(){ $scope.scheduleTaskProgram = { ScheduleTask: {}, TaskPrograms: {}, List: [] }; $scope.programIdOnShow = ""; // mt99xxxx - Properties $scope.selectedTaskProgram = {}; } $scope.SwitchToCreate = function(){ var entryFormHashID = "entry_ce01scheduletask"; $scope.entryFormMode = "create"; $scope.directiveScopeDict[entryFormHashID].SetDefaultValue($scope.directiveScopeDict[entryFormHashID], [{tagName:"entry"}],"",$scope.directiveCtrlDict[entryFormHashID]); // $scope.ProcessForCreateRecord(); $scope.ResetScheduleTaskProgram(); } $scope.SwitchToAmend = function(){ $scope.entryFormMode = "amend"; // $scope.ProcessForUpdateRecord(); $scope.ResetScheduleTaskProgram(); } $scope.ProcessForCreateRecord = function(){ $scope.processFormMode = "create"; } $scope.ProcessForUpdateRecord = function(){ $scope.processFormMode = "amend"; } $scope.ProcessForDeleteRecord = function(){ $scope.processFormMode = "delete"; } $scope.CreateScheduleTask = function(){ $scope.ProcessForCreateRecord(); $scope.SubmitProcessScheduleTaskCUD(); } $scope.UpdateScheduleTask = function(){ $scope.ProcessForUpdateRecord(); $scope.SubmitProcessScheduleTaskCUD(); } $scope.DeleteScheduleTask = function(){ $scope.ProcessForDeleteRecord(); $scope.SubmitProcessScheduleTaskCUD(); } $scope.SubmitProcessScheduleTaskCUD = function(){ var hashID = "process_bp32scheduletaskprogram"; $scope.directiveScopeDict[hashID].SubmitData(); } /* $scope.CreateScheduleTask = function(){ var hashID = "entry_ce01scheduletask" $scope.SwitchToCreate(); $scope.directiveScopeDict[hashID].ResetForm(); } */ $scope.ViewScheduleTaskRecord = function(taskRow){ $scope.SwitchToAmend(); $scope.entryForm.ScheduleID = taskRow.ScheduleID; var hashID = "entry_ce01scheduletask" $scope.directiveScopeDict[hashID].FindData(); } $scope.FreqIntervalWeeklyChanged = function(){ // get selected weekly value from freqInterval to ngModel var selectedWeekly = []; angular.forEach($scope.freqInterval.weeklySelectedOptions, function(weekdayOption, weekday){ if(weekdayOption){ selectedWeekly.push(weekday) } }) $scope.entryForm.FreqInterval = selectedWeekly.join(","); } $scope.FreqIntervalMonthlyChanged = function(){ // get selected monthly value from freqInterval to ngModel $scope.entryForm.FreqInterval = $scope.freqInterval.monthlySelectedOptions } $scope.EndConditionTypeChanged = function(){ $scope.entryForm.EndConditionType = $scope.endConditionType.selectedOptions; } $scope.ActivityStartDateChanged = function(newDate, recordObj){ // calculate weekly repeat option var activityStartDate = recordObj.ActivityStartDate; var weekdayInNum = activityStartDate.getDay(); /* angular.forEach($scope.freqInterval.weeklySelectedOptions, function(isChecked, weekdayInStr){ $scope.freqInterval.weeklySelectedOptions[weekdayInStr] = false; if($scope.freqInterval.weeklyAvailableOptions[weekdayInStr].weekday == weekdayInNum){ $scope.freqInterval.weeklySelectedOptions[weekdayInStr] = true; } }); */ // calculate monthly repeat option // 2019 Feb 5, ordinalOfDay is 5 $scope.ordinalOfDay = activityStartDate.getDate(); $scope.freqInterval.monthlyAvailableOptions.MonthlyOnOrdinalOfDay.label = ordinalOfDayLabel + $scope.ordinalOfDay; // 2019 Feb 5, ordinalOfWeekday is second tuesday // 20190205, keithpoon this calculation not in expected, it should same as google calendar var weekOfMonth = activityStartDate.getWeekOfMonth(); var ordinalOfWeekday = ""; switch(weekOfMonth){ case 1: ordinalOfWeekday = "first"; break; case 2: ordinalOfWeekday = "second"; break; case 3: ordinalOfWeekday = "third"; break; case 4: ordinalOfWeekday = "fourth"; break; case 5: ordinalOfWeekday = "fifth"; break; case 6: ordinalOfWeekday = "last"; break; } ordinalOfWeekday += " "+activityStartDate.toLocaleString('en-us', { weekday: 'long' }); $scope.ordinalOfWeekday = ordinalOfWeekday; $scope.freqInterval.monthlyAvailableOptions.MonthlyOnOrdinalOfWeekday.label = ordinalOfWeekdayLabel + $scope.ordinalOfWeekday; } $scope.CalculateNextRunDateForScheduledTask = function(){ var newObject = jQuery.extend({}, $scope.entryForm); $scope.inquiryNextDayModel.Record = newObject; $scope.inquiryNextDayModel.InquiryCriteria.RepeatOnMonthly = ""; $scope.inquiryNextDayModel.InquiryCriteria.RepeatOnWeekly = ""; //console.dir("CalculateNextRunDateForScheduledTask"); switch(newObject.FreqType){ case "Weekly": var weeklySelectedOptions = jQuery.extend({}, newObject.FreqInterval); $scope.inquiryNextDayModel.InquiryCriteria.RepeatOnWeekly = newObject.FreqInterval; break; case "Monthly": $scope.inquiryNextDayModel.InquiryCriteria.RepeatOnMonthly = $scope.freqInterval.monthlySelectedOptions; break; } var hashID = "inquiry_ci02scheduletasknexttime"; $timeout.cancel($scope.timeoutId); $scope.timeoutId = $timeout(function(){ //console.dir("submit CalculateNextRunDate request"); $scope.directiveScopeDict[hashID].SubmitData(); }, 1000); } $scope.GetWeekCountStartOnSun = function(year, month_number) { // month_number is in the range 1..12 var firstOfMonth = new Date(year, month_number-1, 1); var lastOfMonth = new Date(year, month_number, 0); var used = firstOfMonth.getDay() + lastOfMonth.getDate(); return Math.ceil( used / 7); } $scope.GetWeekCountStartOnMon = function(year, month_number) { // month_number is in the range 1..12 var firstOfMonth = new Date(year, month_number-1, 1); var lastOfMonth = new Date(year, month_number, 0); var used = firstOfMonth.getDay() + 6 + lastOfMonth.getDate(); return Math.ceil( used / 7); } $scope.EventListener = function(scope, iElement, iAttrs, controller){ var tagName = iElement[0].tagName.toLowerCase(); var prgmID = scope.programId.toLowerCase(); var scopeID = scope.$id; var hashID = tagName + '_' + prgmID; if($scope.directiveScopeDict[hashID] == null || typeof($scope.directiveScopeDict[hashID]) == "undefined"){ $scope.directiveScopeDict[hashID] = scope; $scope.directiveCtrlDict[hashID] = controller; } //http://api.jquery.com/Types/#Event //The standard events in the Document Object Model are: // blur, focus, load, resize, scroll, unload, beforeunload, // click, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, // change, select, submit, keydown, keypress, and keyup. iElement.ready(function() { $scope.InitializeWeeklySelectedOptions(true); $scope.SwitchToAmend(); }) } $scope.SetDefaultValue = function(scope, iElement, iAttrs, controller){ var tagName = iElement[0].tagName.toLowerCase(); var prgmID = scope.programId.toLowerCase(); var scopeID = scope.$id; var newRecord = controller.ngModel; // $scope.TaskPrograms if(prgmID == "ci01scheduletask"){ // command to select all // select disabled // newRecord.Record.Name = ""; // newRecord.Record.Status = "Disabled"; scope.SubmitData(); } if(prgmID == "ce01scheduletask"){ newRecord.Status = 'Disabled'; newRecord.ActivityStartDate = new Date(); newRecord.FreqRepeatEvery = 1; newRecord.FreqType = $scope.freqType.availableOptions.Once.value; $scope.endConditionType.selectedOptions = $scope.endConditionType.availableOptions.Never.value; newRecord.EndConditionType = $scope.endConditionType.availableOptions.Never.value; $scope.freqInterval.monthlySelectedOptions = $scope.freqInterval.monthlyAvailableOptions.MonthlyOnOrdinalOfDay.value; } if(prgmID == "bp32scheduletaskprogram"){ $scope.ResetScheduleTaskProgram(); } } $scope.SetEntryScheduleTask = function(){ } $scope.StatusChange = function(fieldName, newValue, newObj, scope, iElement, iAttrs, controller){ var tagName = iElement[0].tagName.toLowerCase(); var prgmID = scope.programId.toLowerCase(); var scopeID = scope.$id; switch (fieldName) { case "Name": if(newObj.Name) newObj.Name = newObj.Name.toUpperCase(); break; case "ActivityStartDate": if(newObj.ActivityStartDate){ } break; case "FreqType": if(newObj.FreqType){ if(newObj.FreqType == $scope.freqType.availableOptions.Monthly.value){ $scope.FreqIntervalMonthlyChanged(); } else if(newObj.FreqType == $scope.freqType.availableOptions.Weekly.value){ $scope.FreqIntervalWeeklyChanged(); } } break; case "EndConditionType": if(newObj.EndConditionType == $scope.endConditionType.availableOptions.On.value){ var endOnSpecifyDate = new Date(newObj.ActivityStartDate.getTime()); endOnSpecifyDate.setMonth(endOnSpecifyDate.getMonth()+3); newObj.EndOnSpecifyDate = endOnSpecifyDate; } break; default: break; } // if the following changed, re-calculate the NextExecuteDate switch (fieldName) { case "Status": case "EndConditionType": case "FreqRepeatEvery": case "FreqType": case "FreqInterval": case "EndOnSpecifyDate": case "EndOnSpecifyTimeOccurred": case "ActivityStartDate": //console.dir(new Date().toString() +":"+fieldName); $scope.ActivityStartDateChanged(newValue, newObj); $scope.CalculateNextRunDateForScheduledTask(); default: break; } } $scope.ValidateBuffer = function(scope, iElement, iAttrs, controller){ var tagName = iElement[0].tagName.toLowerCase(); var prgmID = scope.programId.toLowerCase(); var record = controller.ngModel; var isValid = true; if(prgmID == "ce01scheduletask"){ var msg = []; switch(record.FreqType){ case $scope.freqType.availableOptions.Weekly.value: var weeklyOptionsStr = ""; angular.forEach($scope.freqInterval.weeklySelectedOptions, function(isChecked, weekdayInStr){ if($scope.freqInterval.weeklySelectedOptions[weekdayInStr]){ //weeklyOptionsStr = weeklyOptionsStr+$scope.freqInterval.weeklySelectedOptions[weekdayInStr].weekday+","; weeklyOptionsStr = weeklyOptionsStr+weekdayInStr+","; } }) weeklyOptionsStr = weeklyOptionsStr.substring(0, weeklyOptionsStr.length-1); record.FreqInterval = weeklyOptionsStr; break; case $scope.freqType.availableOptions.Monthly.value: record.FreqInterval = $scope.freqInterval.monthlySelectedOptions; break; } record.EndConditionType = $scope.endConditionType.selectedOptions; if(record.EndConditionType == $scope.endConditionType.availableOptions.Never.value){ record.EndOnSpecifyDate = null; record.EndOnSpecifyTimeOccurred = null; }else if(record.EndConditionType == $scope.endConditionType.availableOptions.On.value){ record.EndOnSpecifyTimeOccurred = null; }else if(record.EndConditionType == $scope.endConditionType.availableOptions.After.value){ record.EndOnSpecifyDate = null; } if(record.FreqType == $scope.freqType.availableOptions.Daily.value){ record.FreqInterval = ""; } } if(prgmID == "bp32scheduletaskprogram"){ record.ProcessCriteria.EditMode = $scope.processFormMode; var entryForm = jQuery.extend({}, $scope.entryForm); if(record.ProcessCriteria.EditMode == "amend" || record.ProcessCriteria.EditMode == "create"){ // es6 clone array // var programList = [...$scope.scheduleTaskProgram.List]; // var programList = $scope.scheduleTaskProgram.List.slice(); // 20190627, fixed: this is a object form, use object clone method var programList = jQuery.extend({}, $scope.scheduleTaskProgram.TaskPrograms); var newProgramList = {}; // for(var programIndex=0; programIndex<programList.length;programIndex++){ // var scheduleTaskProgram = programList[programIndex]; // scheduleTaskProgram.ParameterJSON = JSON.stringify(programList[programIndex].ParameterJSONObj); // newProgramList[programIndex] = scheduleTaskProgram; // } for (var objIndex in programList) { if (programList.hasOwnProperty(objIndex)) { var programElement = jQuery.extend({}, programList[objIndex]); programElement.ParameterJSON = JSON.stringify(programList[objIndex].ParameterJSONObj); newProgramList[objIndex] = programElement; } } record.ProcessCriteria.ScheduleProgramList = jQuery.extend({}, newProgramList); } record.ProcessCriteria.ScheduleTaskRecord = entryForm; } return isValid; } $scope.CustomSelectedToRecord = function(sRecord, rowScope, scope, iElement, controller){ $scope.entryAmendForm = sRecord; var tagName = iElement[0].tagName.toLowerCase(); var prgmID = scope.programId.toLowerCase(); var scopeID = scope.$id; var hashID = tagName + '_' + prgmID; $scope.entryAmendForm = sRecord; if(typeof $scope.directiveScopeDict[hashID].SetEditboxNgModel == "function"){ // CustomSelectedToRecordUnderEditbox(sRecord, rowScope, scope, iElement, controller); }else{ // if(prgmID == "ew01sf"){ // $scope.entryForm = sRecord; // } } } $scope.CustomSubmitDataResult = function(data_or_JqXHR, textStatus, scope, iElement, iAttrs, controller){ var tagName = iElement[0].tagName.toLowerCase(); var prgmID = scope.programId.toLowerCase(); var scopeID = scope.$id; // var hashID = 'pageview_bw21bank'; var record = controller.ngModel; if(prgmID == "ce01scheduletask"){ // convert FreqInterval, EndConditionType to selectedOptions } else if(prgmID == "ci02scheduletasknexttime"){ // convert FreqInterval, EndConditionType to selectedOptions if(data_or_JqXHR.data){ var data = data_or_JqXHR.data; if(data["record"]){ var row1 = data["record"]; $scope.entryForm.NextExecuteDate = new Date(row1.NextExecuteDate); $scope.entryForm.CronExpression = row1.CronExpression; $scope.nextDateList = data["nextDateList"]; } } }else if(prgmID == "bp32scheduletaskprogram"){ if(data_or_JqXHR.data){ var actionResult = data_or_JqXHR.ActionResult; // if(actionResult["num_rows"]>0){ var entryFormHashID = "entry_ce01scheduletask"; var processFormHashID = "process_bp32scheduletaskprogram"; if($scope.processFormMode == "create"){ $scope.directiveScopeDict[entryFormHashID].ResetForm(); $scope.directiveScopeDict[entryFormHashID].SetDefaultValue($scope.directiveScopeDict[entryFormHashID], [{tagName:"entry"}],"",$scope.directiveCtrlDict[entryFormHashID]); $scope.directiveScopeDict[processFormHashID].SetDefaultValue($scope.directiveScopeDict[processFormHashID], [{tagName:"process"}],"",$scope.directiveCtrlDict[processFormHashID]); }else if ($scope.processFormMode == "update"){ }else if ($scope.processFormMode == "delete"){ $scope.directiveScopeDict[entryFormHashID].ResetForm(); $scope.directiveScopeDict[entryFormHashID].SetDefaultValue($scope.directiveScopeDict[entryFormHashID], [{tagName:"process"}],"",$scope.directiveCtrlDict[entryFormHashID]); $scope.directiveScopeDict[processFormHashID].SetDefaultValue($scope.directiveScopeDict[processFormHashID], [{tagName:"process"}],"",$scope.directiveCtrlDict[processFormHashID]); } // var msg = ""; // if($scope.processFormMode == "create"){ // msg = "Data Created" // } // MessageService.addMsg // } } } } $scope.CustomInquiryDataResult = function(data_or_JqXHR, textStatus, scope, iElement, iAttrs, controller){ var tagName = iElement[0].tagName.toLowerCase(); var prgmID = scope.programId.toLowerCase(); var scopeID = scope.$id; if(prgmID == "bp32scheduletaskprogram"){ var data = data_or_JqXHR.data; if(data){ // 20190627, fixed: the child record become as schedule record // because the steps 3,7 belows using the same program bp32scheduletaskprogram // use = symbol will create the binding, the create/update/delete result will effect on $scope.scheduleTaskProgram.TaskPrograms /* 1 select schedule task on list 2 inquiry-inquiryData, calculate next run date 3 process-inquiryData, select schedule task child records, task programs 4 editbox-customedSelectedRecord add program to task 5 ShowProgramParameterSetting display program properties 6 RemoveScheduleProgram remove program from task 7 process-submitData update schedule task and child records */ // 20190627, fixed: submit empty ParameterJSON when save record if not click Properties button, // convert the program row, ParameterJSON to ParameterJSONObj data.forEach(function (rowObj) { var programJsonDataStructure = JSON.parse(rowObj.AvailableParameterJSON); var jsonObj = $scope.ConvertJSONStringToJSONObj(programJsonDataStructure, JSON.parse(rowObj.ParameterJSON)); rowObj.ParameterJSONObj = jsonObj; }) $scope.scheduleTaskProgram.TaskPrograms = jQuery.extend({}, data); console.dir(data.length+" task programs displaied.") console.dir(data) } } // console.dir($scope.scheduleTaskProgram) } $scope.CustomGetDataResult = function(data_or_JqXHR, textStatus, scope, iElement, iAttrs, controller){ var tagName = iElement[0].tagName.toLowerCase(); var prgmID = scope.programId.toLowerCase(); var scopeID = scope.$id; // selected schedule task record if(prgmID == "ce01scheduletask"){ // convert FreqInterval, EndConditionType to selectedOptions $scope.ConvertFreqIntervalToDom(data_or_JqXHR.data[0]); // find the schedule task child records, task programs var hashID = "process_bp32scheduletaskprogram"; var data = data_or_JqXHR.data; if(data[0]){ $scope.processModel.InquiryCriteria.ScheduleID = parseInt(data[0].ScheduleID); $scope.directiveScopeDict[hashID].InquiryData(); } } } $scope.CustomPointedToRecord = function(pRecord, rowScope, scope, iElement, controller){ var prgmID = scope.programId.toLowerCase(); if(prgmID == "cw01schedulableprogram"){ } // if(prgmID == "bp32scheduletaskprogram"){ // $scope.ShowProgramParameterSetting(pRecord); // } } $scope.CustomSelectedToRecord = function(sRecord, rowScope, scope, iElement, controller){ var prgmID = scope.programId.toLowerCase(); if(prgmID == "cw01schedulableprogram"){ // add program to task $scope.AddProgramToTask(sRecord); } // if(prgmID == "bp32scheduletaskprogram"){ // $scope.ShowProgramParameterSetting(sRecord); // } } $scope.ShowProgramParameterSetting = function(selectedProgram){ console.dir("show program id: "+selectedProgram.ProgramID+" properties.") var newProgram; // find program in list /* for(var programIndex=0; programIndex<$scope.scheduleTaskProgram.List.length; programIndex++){ var programElement = $scope.scheduleTaskProgram.List[programIndex]; //newProgram = jQuery.extend({}, programElement); newProgram = $scope.scheduleTaskProgram.List[programIndex]; if(programElement.ProgramID == selectedProgram.ProgramID){ if(typeof(programElement.Status) == "undefined"){ newProgram.Status = "Disabled"; } break; } } */ for (var objIndex in $scope.scheduleTaskProgram.TaskPrograms) { if ($scope.scheduleTaskProgram.TaskPrograms.hasOwnProperty(objIndex)) { var programElement = $scope.scheduleTaskProgram.TaskPrograms[objIndex]; newProgram = $scope.scheduleTaskProgram.TaskPrograms[objIndex]; if(programElement.ProgramID == selectedProgram.ProgramID){ if(typeof(programElement.Status) == "undefined"){ newProgram.Status = "Disabled"; } } } } //var newProgram = jQuery.extend({}, selectedProgram); // create JSON object for convert html control newProgram.programJsonDataStructure = JSON.parse(newProgram.AvailableParameterJSON); if(typeof(newProgram.ParameterJSONObj) == "undefined"){ var jsonObj = $scope.ConvertJSONStringToJSONObj(newProgram.programJsonDataStructure, JSON.parse(newProgram.ParameterJSON)); //newProgram.ParameterJSONObj = JSON.parse(newProgram.ParameterJSON); newProgram.ParameterJSONObj = jsonObj; } $scope.selectedTaskProgram = newProgram; $scope.programIdOnShow = newProgram.ProgramID + " - Properties"; /* console.dir(newProgram); console.dir(selectedProgram); console.dir($scope.scheduleTaskProgram); */ } $scope.ConvertJSONStringToJSONObj = function(dataStructureObj, valueJson){ var jsonObj = {}; for(var parameterIndex=0; parameterIndex<dataStructureObj.length; parameterIndex++){ var dataStructure = dataStructureObj[parameterIndex]; var dataType = dataStructure.dataType; var stringValidationType = dataStructure.stringValidationType; var name = dataStructure.name; var defaultValue; switch(dataType){ case "DATATYPE_STRING": case "DATATYPE_TEXT_AREA": defaultValue = ""; break; case "DATATYPE_INTEGER": case "DATATYPE_DOUBLE": defaultValue = 0; break; case "DATATYPE_BOOLEAN": defaultValue = false; break; case "DATATYPE_ARRAY": // handle at below //defaultValue = []; break; case "DATATYPE_DATE": defaultValue = new Date(); break; case "DATATYPE_DATETIME": defaultValue = new Date(); break; case "DATATYPE_TIME": defaultValue = new Date(); break; } if(dataType == "DATATYPE_ARRAY"){ var validOptionList = dataStructure.validOptionList; switch(stringValidationType){ case "VALID_STRING_RADIOLIST": if(validOptionList.length>0){ defaultValue = validOptionList[0]; }else{ defaultValue = ""; } break; case "VALID_STRING_CHECKLIST": defaultValue = {}; for(var optionIndex=0; optionIndex<validOptionList.length; optionIndex++){ defaultValue[validOptionList[optionIndex]] = true; } break; case "VALID_STRING_EMAIL": break; } } var isValueParsed; var valueParse; if(typeof(valueJson) != "undefined" && valueJson != null){ try{ var storedValue = valueJson[name]; switch(dataType){ case "DATATYPE_STRING": case "DATATYPE_TEXT_AREA": if(typeof(storedValue) == "undefined" || storedValue == null){ }else{ valueParse = storedValue; } break; case "DATATYPE_INTEGER": case "DATATYPE_DOUBLE": if(typeof(storedValue) == "undefined" || isNaN(storedValue)){ }else{ valueParse = parseFloat(storedValue); } break; case "DATATYPE_BOOLEAN": if(storedValue){ valueParse = true; }else{ valueParse = false; } break; case "DATATYPE_ARRAY": valueParse = storedValue; break; case "DATATYPE_DATE": valueParse = new Date(storedValue); break; case "DATATYPE_DATETIME": valueParse = new Date(storedValue); break; case "DATATYPE_TIME": valueParse = new Date(storedValue); break; } isValueParsed = true; }catch(err){ console.log("Error occurred: when convert ParameterJSON to javascript object."); console.log(err.message); console.dir(err); isValueParsed = false; } } if(isValueParsed){ jsonObj[name] = valueParse; }else{ jsonObj[name] = defaultValue; } } return jsonObj; } $scope.RemoveScheduleProgram = function(removeProgram){ var isProgramExists = false; var removeIndexAt = -1; /* for(var index = 0; index<$scope.scheduleTaskProgram.List.length; index++){ var programElement = $scope.scheduleTaskProgram.List[index]; if(programElement.ProgramID == removeProgram.ProgramID){ removeIndexAt = index; isProgramExists = true; } } if(isProgramExists){ $scope.scheduleTaskProgram.List.splice(removeIndexAt, 1); } */ for (var objIndex in $scope.scheduleTaskProgram.TaskPrograms) { if ($scope.scheduleTaskProgram.TaskPrograms.hasOwnProperty(objIndex)) { var programElement = $scope.scheduleTaskProgram.TaskPrograms[objIndex]; if(programElement.ProgramID == removeProgram.ProgramID){ removeIndexAt = objIndex; isProgramExists = true; } } } // delete $scope.scheduleTaskProgram.TaskPrograms[removeIndexAt]; // $scope.scheduleTaskProgram.TaskPrograms.splice(removeIndexAt, 1); delete $scope.scheduleTaskProgram.TaskPrograms[removeIndexAt]; } $scope.AddProgramToTask = function(selectedProgram){ var newProgram = jQuery.extend({}, selectedProgram); var programJsonDataStructure = JSON.parse(newProgram.AvailableParameterJSON); // create JSON object for convert html control //newProgram.programJsonDataStructure = programJsonDataStructure; newProgram.ParameterJSONObj = {}; for(var parameterIndex=0; parameterIndex<programJsonDataStructure.length; parameterIndex++){ var dataStructure = programJsonDataStructure[parameterIndex]; var dataType = dataStructure.dataType; var stringValidationType = dataStructure.stringValidationType; var name = dataStructure.name; var parameterObj; switch(dataType){ case "DATATYPE_STRING": case "DATATYPE_TEXT_AREA": parameterObj = ""; break; case "DATATYPE_INTEGER": case "DATATYPE_DOUBLE": parameterObj = 0; break; case "DATATYPE_BOOLEAN": parameterObj = false; break; case "DATATYPE_ARRAY": // handle at below //parameterObj = []; break; case "DATATYPE_DATE": parameterObj = new Date(); break; case "DATATYPE_DATETIME": parameterObj = new Date(); break; case "DATATYPE_TIME": parameterObj = new Date(); break; } if(dataType == "DATATYPE_ARRAY"){ var validOptionList = dataStructure.validOptionList; switch(stringValidationType){ case "VALID_STRING_RADIOLIST": if(validOptionList.length>0){ parameterObj = validOptionList[0]; }else{ parameterObj = ""; } break; case "VALID_STRING_CHECKLIST": parameterObj = {}; for(var optionIndex=0; optionIndex<validOptionList.length; optionIndex++){ parameterObj[validOptionList[optionIndex]] = true; } break; case "VALID_STRING_EMAIL": break; } } newProgram.ParameterJSONObj[name] = parameterObj; } if(typeof(newProgram.ParameterJSON) == "undefined"){ newProgram.ParameterJSON = JSON.stringify(newProgram.ParameterJSONObj); } newProgram.Status = "Disabled"; var isProgramExists = false; /* for(var index = 0; index<$scope.scheduleTaskProgram.List.length; index++){ var programElement = $scope.scheduleTaskProgram.List[index]; if(programElement.ProgramID == newProgram.ProgramID){ isProgramExists = true; } } */ for (var objIndex in $scope.scheduleTaskProgram.TaskPrograms) { if ($scope.scheduleTaskProgram.TaskPrograms.hasOwnProperty(objIndex)) { var programElement = $scope.scheduleTaskProgram.TaskPrograms[objIndex]; if(programElement.ProgramID == newProgram.ProgramID){ isProgramExists = true; } } } if(!isProgramExists){ // console.dir(typeof $scope.scheduleTaskProgram.TaskPrograms) // console.dir($scope.scheduleTaskProgram.TaskPrograms) // $scope.scheduleTaskProgram.TaskPrograms.push(newProgram); $scope.scheduleTaskProgram.TaskPrograms[Object.keys($scope.scheduleTaskProgram.TaskPrograms).length+1] = newProgram; } } $scope.ConvertFreqIntervalToDom = function(dataRow){ var type = dataRow.FreqType; switch(type){ case "Weekly": var weekDays = dataRow.FreqInterval.split(','); $scope.InitializeWeeklySelectedOptions(false); for(var index=0; index<weekDays.length; index++){ $scope.freqInterval.weeklySelectedOptions[weekDays[index]] = true; } break; case "Monthly": $scope.freqInterval.monthlySelectedOptions = dataRow.FreqInterval; break; } } }]);
35.015641
201
0.646516
52dec7de00a18531375351af2841a1493ad8398c
337
js
JavaScript
client/modules/core/libs/redirectAccordingRole.js
johngonzalez/abcdapp
674835de2955dfadf9f107fadf33e049dd0023d2
[ "MIT" ]
1
2020-07-23T10:47:30.000Z
2020-07-23T10:47:30.000Z
client/modules/core/libs/redirectAccordingRole.js
johngonzalez/abcdapp
674835de2955dfadf9f107fadf33e049dd0023d2
[ "MIT" ]
4
2016-08-08T13:50:46.000Z
2016-08-29T12:14:17.000Z
client/modules/core/libs/redirectAccordingRole.js
johngonzalez/abcdapp
674835de2955dfadf9f107fadf33e049dd0023d2
[ "MIT" ]
null
null
null
export default function (FlowRouter,Meteor, Roles) { const mainRole = Roles.getRolesForUser(Meteor.userId())[0]; switch (mainRole) { case 'teacher': FlowRouter.go('/classes'); break; case 'admin': FlowRouter.go('/teachers'); break; case 'student': FlowRouter.go('/code'); break; } }
22.466667
61
0.602374
52df26caf34e64c5cad4227387cc6b202ac144c7
2,979
js
JavaScript
swipe/src/Deck.js
mrmcduff/native-advanced
d762e3c287895df172d897cc69c31e853499d3a7
[ "MIT" ]
null
null
null
swipe/src/Deck.js
mrmcduff/native-advanced
d762e3c287895df172d897cc69c31e853499d3a7
[ "MIT" ]
null
null
null
swipe/src/Deck.js
mrmcduff/native-advanced
d762e3c287895df172d897cc69c31e853499d3a7
[ "MIT" ]
null
null
null
import React, { Component } from 'react'; import { Animated, Dimensions, View, PanResponder } from 'react-native'; const SCREEN_WIDTH = Dimensions.get('window').width; const SWIPE_THRESHOLD = 0.5 * SCREEN_WIDTH; const SWIPE_OUT_DURATION = 250; class Deck extends Component { static defaultProps = { onSwipeRight: () => {}, onSwipeLeft: () => {}, renderNoMoreCards: () => {} } constructor(props) { super(props); const position = new Animated.ValueXY(); const panResponder = PanResponder.create({ onStartShouldSetPanResponder: () => true, onPanResponderMove: (event, gesture) => { position.setValue({ x: gesture.dx, y: 0 }); }, onPanResponderRelease: (event, gesture) => { if (gesture.dx > SWIPE_THRESHOLD) { this.forceSwipe('right'); } else if (gesture.dx < -SWIPE_THRESHOLD) { this.forceSwipe('left'); } else { this.resetPosition(); } } }); // Can also set these as this.panResponder, this.position. this.state = { panResponder, position, index: 0 }; } forceSwipe(direction) { const x = direction === 'right' ? SCREEN_WIDTH : -SCREEN_WIDTH; // timing means no spring, no bounce Animated.timing(this.state.position, { toValue: { x, y: 0}, duration: SWIPE_OUT_DURATION }).start(() => this.onSwipeComplete(direction)); } onSwipeComplete(direction) { const { onSwipeLeft, onSwipeRight, data } = this.props; const item = data[this.state.index]; direction === 'right' ? onSwipeRight(item) : onSwipeLeft(item); this.state.position.setValue({ x: 0, y: 0}); this.setState({ index: this.state.index + 1 }); } resetPosition() { // position we're trying to update, target position. Animated.spring(this.state.position, { toValue: {x: 0, y: 0} }).start(); } getCardStyle() { const { position } = this.state; // an Animated.ValueXY's .x shows the total x distance that it has been // animated. const rotate = position.x.interpolate({ inputRange: [-SCREEN_WIDTH * 1.5, 0, SCREEN_WIDTH * 1.5], outputRange: ['-120deg', '0deg', '120deg'] }) return { ...position.getLayout(), transform: [{ rotate }] } } renderCards() { if (this.state.index >= this.props.data.length) { return this.props.renderNoMoreCards(); } return this.props.data.map((item, i) => { if (i < this.state.index) { return null; } if (i === this.state.index) { return ( <Animated.View key={item.id} style={this.getCardStyle()} {...this.state.panResponder.panHandlers} > {this.props.renderCard(item)} </Animated.View> ); } return this.props.renderCard(item); }); } render() { return ( <View> {this.renderCards()} </View> ); } } export default Deck;
26.131579
75
0.584424
52df824bf0aa69a42846ec607524bbe25e2e1b6b
317
js
JavaScript
src/corePlugins/justifyContent.js
Lyearn/react-native-tailwindcss
ac411b69600382840c078f637931bc77f6c6c95a
[ "MIT" ]
1
2021-02-09T07:31:05.000Z
2021-02-09T07:31:05.000Z
src/corePlugins/justifyContent.js
Lyearn/react-native-tailwindcss
ac411b69600382840c078f637931bc77f6c6c95a
[ "MIT" ]
null
null
null
src/corePlugins/justifyContent.js
Lyearn/react-native-tailwindcss
ac411b69600382840c078f637931bc77f6c6c95a
[ "MIT" ]
null
null
null
import generator from '../util/generator'; export default () => generator.generate('justify', 'justifyContent', [ ['start', 'flex-start'], ['end', 'flex-end'], 'center', ['between', 'space-between'], ['around', 'space-around'], ['evenly', 'space-evenly'], ]);
26.416667
53
0.523659
52df8f8f5038baed80fc69d372ced5c8571979dc
828
js
JavaScript
test/test.relationshipsFails.js
gjuchault/requelize
bd17705664e832fdc51d2cc0c9e1d1931aa04d5d
[ "MIT" ]
28
2017-04-16T01:20:26.000Z
2019-07-11T23:22:07.000Z
test/test.relationshipsFails.js
gjuchault/requelize
bd17705664e832fdc51d2cc0c9e1d1931aa04d5d
[ "MIT" ]
34
2017-02-13T01:12:05.000Z
2017-12-30T23:34:15.000Z
test/test.relationshipsFails.js
gjuchault/requelize
bd17705664e832fdc51d2cc0c9e1d1931aa04d5d
[ "MIT" ]
3
2017-08-06T10:19:10.000Z
2019-03-26T12:27:53.000Z
const { test, requelize, dropDb } = require('./utils') test('relationships - failures', (t) => { t.plan(3) let Foo dropDb() .then(() => { Foo = requelize.model('foo') Foo.index('name') Foo.index('createdAt') Foo.hasOne('john', 'john', 'john_id') return requelize.sync() }) .then(() => { return Foo.getAll().embed({ baz: false }) }) .then((res) => { t.equal(0, res.length, 'falsy tree') return Foo.getAll().embed({ baz: true }) }) .catch((err) => { t.equal('Missing relationship foo.baz', err.message) return Foo.getAll().embed({ john: true }) }) .catch((err) => { t.equal('Missing model john in relationship foo.john', err.message) return Promise.resolve() }) .then(() => { t.end() }) })
20.7
73
0.522947
52e05f87eaca8d9d0e9f94627805c3202f86c610
594
js
JavaScript
src/app/components/team/TeamTasks.test.js
meedan/check-web
b6f6d1cd4c4947ca7b7ef8192ad60d43a99b82a1
[ "MIT" ]
21
2016-09-20T23:02:51.000Z
2021-11-23T01:25:56.000Z
src/app/components/team/TeamTasks.test.js
meedan/check-web
b6f6d1cd4c4947ca7b7ef8192ad60d43a99b82a1
[ "MIT" ]
70
2016-09-14T21:38:05.000Z
2022-03-31T20:07:26.000Z
src/app/components/team/TeamTasks.test.js
meedan/check-web
b6f6d1cd4c4947ca7b7ef8192ad60d43a99b82a1
[ "MIT" ]
32
2017-04-30T14:36:10.000Z
2020-10-27T11:19:43.000Z
import React from 'react'; import { mountWithIntl } from '../../../../test/unit/helpers/intl-test'; import { TeamTasksComponent } from './TeamTasks'; const team = { team_tasks: { edges: [], }, projects: { edges: [], }, }; describe('<TeamTasksComponent />', () => { it('should render filter and create task button', () => { const wrapper = mountWithIntl(<TeamTasksComponent team={team} fieldset="tasks" />); expect(wrapper.find('.filter-popup').hostNodes()).toHaveLength(1); expect(wrapper.find('.create-task__add-button').hostNodes()).toHaveLength(1); }); });
28.285714
87
0.638047
52e0890652e1865cb624bf7a414539bf2ad62db0
431
js
JavaScript
src/icons/chevron-circle-left.js
Kelin2025/vue-awesome
f6feddfa3e72ea5d368ec4e70d61a56587465eb5
[ "MIT" ]
5
2021-07-13T04:36:55.000Z
2022-01-05T05:06:21.000Z
src/icons/chevron-circle-left.js
Kelin2025/vue-awesome
f6feddfa3e72ea5d368ec4e70d61a56587465eb5
[ "MIT" ]
4
2020-07-18T01:13:10.000Z
2022-02-12T19:13:06.000Z
src/icons/chevron-circle-left.js
Kelin2025/vue-awesome
f6feddfa3e72ea5d368ec4e70d61a56587465eb5
[ "MIT" ]
2
2019-08-18T15:29:27.000Z
2019-08-19T02:47:36.000Z
import Icon from '../components/Icon.vue' Icon.register({"chevron-circle-left":{"width":1536,"height":1792,"paths":[{"d":"M909 1395l102-102q19-19 19-45t-19-45l-307-307 307-307q19-19 19-45t-19-45l-102-102q-19-19-45-19t-45 19l-454 454q-19 19-19 45t19 45l454 454q19 19 45 19t45-19zM1536 896q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"}]}})
107.75
387
0.714617
52e0f926710e5e5476edf22ce4d3d5183ccb58fd
477
js
JavaScript
wolke-services/api/controllers/taskHistory.js
gleissonassis/wolke
bda57cc3ba451691226692c254c7b84c37ee4604
[ "MIT" ]
null
null
null
wolke-services/api/controllers/taskHistory.js
gleissonassis/wolke
bda57cc3ba451691226692c254c7b84c37ee4604
[ "MIT" ]
6
2018-01-03T16:57:32.000Z
2018-01-03T21:35:33.000Z
wolke-services/api/controllers/taskHistory.js
gleissonassis/wolke
bda57cc3ba451691226692c254c7b84c37ee4604
[ "MIT" ]
null
null
null
var logger = require('winston'); var business = require('../../business/taskHistoryBO')(); module.exports = function() { return { getAll: function(req, res) { business.getAll(req.params.serverId, req.params.taskId).then(function(items) { res.status(200).json(items); }, function(error) { logger.log('error', 'An error has occurred executing the route ', req.url, error); res.status(500).json(error); }); } }; };
29.8125
90
0.601677
52e1464599a6f2b3fa464b4b00f91c25d43e15ec
356
js
JavaScript
lib/image-helper.js
somsakra/line-api-cli-nodejs
16b6fa57ec8c63450816b1ed500968aa8b6d4be1
[ "MIT" ]
14
2019-09-10T09:29:28.000Z
2019-09-26T10:07:49.000Z
lib/image-helper.js
somsakra/line-api-cli-nodejs
16b6fa57ec8c63450816b1ed500968aa8b6d4be1
[ "MIT" ]
55
2019-09-10T09:26:25.000Z
2020-03-16T05:59:54.000Z
lib/image-helper.js
somsakra/line-api-cli-nodejs
16b6fa57ec8c63450816b1ed500968aa8b6d4be1
[ "MIT" ]
4
2019-09-15T16:50:59.000Z
2020-05-21T00:32:13.000Z
import path from 'path'; import { terminal } from 'terminal-kit'; import { EOL } from 'os'; export default class ImageHelper { static async draw(imageName) { const imagePath = path.resolve(__dirname, `../assets/${imageName}.png`); console.log(EOL); try { await terminal.drawImage(imagePath); } catch (error) { } return; } }
22.25
76
0.646067
52e14e5a733d570092f0da6950c0a45cac005cba
3,917
js
JavaScript
src/cli/users/operations.js
84k-org/blog
9ad796511f090f31d1ea614559c3cee9fdb44f96
[ "MIT" ]
null
null
null
src/cli/users/operations.js
84k-org/blog
9ad796511f090f31d1ea614559c3cee9fdb44f96
[ "MIT" ]
null
null
null
src/cli/users/operations.js
84k-org/blog
9ad796511f090f31d1ea614559c3cee9fdb44f96
[ "MIT" ]
null
null
null
import {coreUtils, User} from '../../cli' /** * TODO MONGO * @param {*} newUser */ export function add(newUser) { var xss = coreUtils.text.checkXss(newUser) if (xss.success === 0) { return xss } var sameEmail = User.utils.checkSameEmail(newUser) if (sameEmail.success === 0) { return sameEmail } User.utils.getRole(newUser) var bdd = User.manager.instance.get() var lastId = 0 for (var i = 0, len = bdd.length; i < len; i++) { lastId = parseInt(bdd[i].id) } newUser.id = lastId + 1 newUser.actif = 0 newUser.avatar = User.utils.getGravatarImage(newUser.email, '.jpg?s=200') var cPassword = User.utils.commonPassword(newUser) if (cPassword.success === 0) { return cPassword } newUser.password = User.utils.encryptPassword(10, newUser.password) bdd.push(newUser) User.manager.instance.update(bdd) return { success: 1, user: newUser } } /** * TODO MONGO * @param {*} id */ export function deactivate(id) { var bdd = User.manager.instance.get() id = parseInt(id) for (var i = 0, len = bdd.length; i < len; i++) { var user = bdd[i] if (parseInt(user.id) === id) { bdd[i].actif = 0 } } User.manager.instance.update(bdd) return bdd } export function activate(id) { var bdd = User.manager.instance.get() id = parseInt(id) for (var i = 0, len = bdd.length; i < len; i++) { var user = bdd[i] if (parseInt(user.id) === id) { bdd[i].actif = 1 } } User.manager.instance.update(bdd) return bdd } export function remove(id) { var bdd = User.manager.instance.get() id = parseInt(id) var newBdd = [] for (var i = 0, len = bdd.length; i < len; i++) { var user = bdd[i] if (parseInt(user.id) !== id) { newBdd.push(user) } } bdd = newBdd User.manager.instance.update(bdd) return bdd } export function update(data) { var xss = coreUtils.text.checkXss(data) if (xss.success === 0) { return xss } var sameEmail = User.utils.checkSameEmail(data) if (sameEmail.success === 0) { return sameEmail } User.utils.getRole(data) var bdd = User.manager.instance.get() var id = parseInt(data.id) for (var i = 0, len = bdd.length; i < len; i++) { var user = bdd[i] if (parseInt(user.id) === id) { Array.prototype.forEach.call(Object.keys(data), function(key) { user[key] = data[key] }) } } bdd = User.manager.instance.update(bdd) return { success: 1, user: data } } export function updatePassword(data, password) { var cPassword = User.utils.commonPassword(data) if (cPassword.success === 0) { return cPassword } var bdd = User.manager.instance.get() var id = parseInt(data.id) for (var i = 0, len = bdd.length; i < len; i++) { var user = bdd[i] if (parseInt(user.id) === id) { user.password = User.utils.encryptPassword(10, password) } } bdd = User.manager.instance.update(bdd) return { success: 1, user: data } } export function saveSearch(id, data) { var bdd = User.manager.instance.get() id = parseInt(id) for (var i = 0, len = bdd.length; i < len; i++) { var user = bdd[i] if (parseInt(user.id) === id) { var savedSearches = bdd[i].savedSearches || [] savedSearches.push(data) bdd[i].savedSearches = savedSearches } } User.manager.instance.update(bdd) return bdd } export function removeSearch(id, data) { var bdd = User.manager.instance.get() id = parseInt(id) for (var i = 0, len = bdd.length; i < len; i++) { var user = bdd[i] if (parseInt(user.id) === id) { var savedSearches = bdd[i].savedSearches || [] savedSearches.forEach(function(search, index) { if (search.title === data.title) { savedSearches.splice(index, 1); } }) bdd[i].savedSearches = savedSearches } } User.manager.instance.update(bdd) return bdd }
22.641618
75
0.608884
52e192ddbb9994fa12110febead4482b54c77e33
860
js
JavaScript
src/core/deepMapKeys.js
windraxb/cloud-utils
5169370d896786f879fc7ef1c9382e02b58cfe36
[ "MIT" ]
null
null
null
src/core/deepMapKeys.js
windraxb/cloud-utils
5169370d896786f879fc7ef1c9382e02b58cfe36
[ "MIT" ]
null
null
null
src/core/deepMapKeys.js
windraxb/cloud-utils
5169370d896786f879fc7ef1c9382e02b58cfe36
[ "MIT" ]
null
null
null
/** * 深层映射对象键 * * @param obj * @param fn * @returns {{}} * @example * * const obj = { foo: '1', nested: { child: { withArray: [ { grandChild: ['hello'] } ] } } }; const upperKeysObj = deepMapKeys(obj, key => key.toUpperCase()); // => { "FOO":"1", "NESTED":{ "CHILD":{ "WITHARRAY":[ { "GRANDCHILD":[ 'hello' ] } ] } } } */ function deepMapKeys (obj, fn) { return Array.isArray(obj) ? obj.map(val => deepMapKeys(val, fn)) : typeof obj === 'object' ? Object.keys(obj).reduce((acc, current) => { const val = obj[current] acc[fn(current)] = val !== null && typeof val === 'object' ? deepMapKeys(val, fn) : (acc[fn(current)] = val) return acc }, {}) : obj } export default deepMapKeys
16.538462
99
0.468605
52e1ea191d83fde435b5f15e9e8a7beaa5aee25e
803
js
JavaScript
node_modules/@textlint/get-config-base-dir/src/get-config-base-dir.js
place-technology/proofreader
e3163c81d9a45ae65b1808ad6a0ff95109af1cfe
[ "MIT" ]
7
2020-05-11T01:21:59.000Z
2021-01-27T11:04:37.000Z
node_modules/@textlint/get-config-base-dir/src/get-config-base-dir.js
place-technology/proofreader
e3163c81d9a45ae65b1808ad6a0ff95109af1cfe
[ "MIT" ]
9
2020-07-01T22:23:33.000Z
2021-01-22T00:38:44.000Z
node_modules/@textlint/get-config-base-dir/src/get-config-base-dir.js
place-technology/proofreader
e3163c81d9a45ae65b1808ad6a0ff95109af1cfe
[ "MIT" ]
4
2020-07-01T20:28:35.000Z
2022-01-18T19:20:06.000Z
// MIT © 2017 azu "use strict"; const path = require("path"); /** * Get config base dir from Context. * If you use textlint^9.0.0, use native Context#getConfigBaseDir. * If you use textlint < 9.0.0, fallback method * @see https://github.com/textlint/textlint/releases/tag/textlint%409.0.0 * @param {*} context * @returns {string|undefined} */ export const getConfigBaseDir = context => { if (typeof context.getConfigBaseDir === "function") { return context.getConfigBaseDir(); } // Old fallback that use deprecated `config` value // https://github.com/textlint/textlint/issues/294 const textlintRcFilePath = context.config ? context.config.configFile : null; // .textlinrc directory return textlintRcFilePath ? path.dirname(textlintRcFilePath) : undefined; };
36.5
81
0.702366
52e1f0249fe3efcb1bb592b53e221a46116e8496
236
js
JavaScript
utils/npm/list/index.test.js
Roms1383/generator-kroms
14487b420ae44b3bfc7b2c855a2e324795941046
[ "MIT" ]
null
null
null
utils/npm/list/index.test.js
Roms1383/generator-kroms
14487b420ae44b3bfc7b2c855a2e324795941046
[ "MIT" ]
27
2019-05-29T16:34:24.000Z
2021-10-21T10:59:18.000Z
utils/npm/list/index.test.js
Roms1383/generator-kroms
14487b420ae44b3bfc7b2c855a2e324795941046
[ "MIT" ]
null
null
null
const list = require('.') describe('latest', () => { it('dependency versions', async () => { const versions = await list('generator-kroms') expect(versions).toBeDefined() expect(Array.isArray(versions)).toBe(true) }) })
26.222222
50
0.635593
52e1f48f35cb38ea0e38c25d491bb52983915553
873
js
JavaScript
onos/apis/interfaceorg_1_1onosproject_1_1pcepio_1_1protocol_1_1PcepLabelRangeResvMsg_1_1Builder.js
onosfw/apis
3dd33b600bbd73bb1b8e0a71272efe1a45f42458
[ "Apache-2.0" ]
null
null
null
onos/apis/interfaceorg_1_1onosproject_1_1pcepio_1_1protocol_1_1PcepLabelRangeResvMsg_1_1Builder.js
onosfw/apis
3dd33b600bbd73bb1b8e0a71272efe1a45f42458
[ "Apache-2.0" ]
null
null
null
onos/apis/interfaceorg_1_1onosproject_1_1pcepio_1_1protocol_1_1PcepLabelRangeResvMsg_1_1Builder.js
onosfw/apis
3dd33b600bbd73bb1b8e0a71272efe1a45f42458
[ "Apache-2.0" ]
null
null
null
var interfaceorg_1_1onosproject_1_1pcepio_1_1protocol_1_1PcepLabelRangeResvMsg_1_1Builder = [ [ "build", "interfaceorg_1_1onosproject_1_1pcepio_1_1protocol_1_1PcepLabelRangeResvMsg_1_1Builder.html#ae651bbdf644a1222bee68f02a3c9e609", null ], [ "getLabelRange", "interfaceorg_1_1onosproject_1_1pcepio_1_1protocol_1_1PcepLabelRangeResvMsg_1_1Builder.html#a8e6282f709902a385157a95e90df4dec", null ], [ "getType", "interfaceorg_1_1onosproject_1_1pcepio_1_1protocol_1_1PcepLabelRangeResvMsg_1_1Builder.html#afdf65a1312a88b2bd6ede4546e9dbb4c", null ], [ "getVersion", "interfaceorg_1_1onosproject_1_1pcepio_1_1protocol_1_1PcepLabelRangeResvMsg_1_1Builder.html#ad13f4e3e2e4bcbea863206bff2df5cf2", null ], [ "setLabelRange", "interfaceorg_1_1onosproject_1_1pcepio_1_1protocol_1_1PcepLabelRangeResvMsg_1_1Builder.html#ab06ff1332d0af5d1a52ffa2333d59d05", null ] ];
109.125
158
0.877434
52e2f75689db4fa357d7e44de5cd09eb1fa45187
372
js
JavaScript
config.js
lesha1201/tour-guide
7d7140dc286f8ce3275763bf2a25e321f08eae2f
[ "Apache-2.0" ]
1
2022-02-24T08:59:43.000Z
2022-02-24T08:59:43.000Z
config.js
lesha1201/tour-guide
7d7140dc286f8ce3275763bf2a25e321f08eae2f
[ "Apache-2.0" ]
null
null
null
config.js
lesha1201/tour-guide
7d7140dc286f8ce3275763bf2a25e321f08eae2f
[ "Apache-2.0" ]
null
null
null
module.exports = { pathPrefix: '/', metadata: { siteUrl: process.env.URL || (process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : undefined), title: 'Гид по Санкт-Петербургу Марина Петрова', titleTemplate: '%s | Марина Петрова', description: 'Индивидуальный гид по Санкт-Петербургу.', image: '/images/meta-image.jpg', }, };
28.615385
81
0.639785
52e2fb011b4e5ec51c18f10453e9e8d426775b79
213
js
JavaScript
app/routes/swagger.js
marcoslovati/CmpaaS
7379d883669f6e5bfd7224ff78d714efe2db4486
[ "MIT" ]
null
null
null
app/routes/swagger.js
marcoslovati/CmpaaS
7379d883669f6e5bfd7224ff78d714efe2db4486
[ "MIT" ]
null
null
null
app/routes/swagger.js
marcoslovati/CmpaaS
7379d883669f6e5bfd7224ff78d714efe2db4486
[ "MIT" ]
null
null
null
module.exports = app => { var swaggerUi = require('swagger-ui-express'), swaggerDocument = require('../swagger/swagger.json'); app.use('/v1/api-docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument)); }
42.6
104
0.699531
52e36f33d4d57c6d39759841099838fa4fe0eb15
390
js
JavaScript
frontend/src/index.js
immigration9/chat-app
073c6d1de6bbe40b3d6ae54374637c2e397eb4f5
[ "MIT" ]
null
null
null
frontend/src/index.js
immigration9/chat-app
073c6d1de6bbe40b3d6ae54374637c2e397eb4f5
[ "MIT" ]
3
2020-07-17T17:01:30.000Z
2022-03-24T06:54:54.000Z
frontend/src/index.js
immigration9/chat-app
073c6d1de6bbe40b3d6ae54374637c2e397eb4f5
[ "MIT" ]
null
null
null
import React from 'react'; import ReactDOM from 'react-dom'; import AppContainer from 'containers/AppContainer' import Root from 'Root'; /** * Import third party stylesheets * 1. Antd Design Styles * 2. React Table Styles */ import 'antd/dist/antd.css'; import 'react-table/react-table.css' ReactDOM.render( <Root> <AppContainer/> </Root>, document.querySelector('#root') )
19.5
50
0.712821
52e3700eb0bf36a71bf656f4d93150bdfce9c896
7,787
js
JavaScript
modules/canvaskit/tests/util.js
gnoliyil/skia
bf1904fd4898bb0f73f05e890b88a3ffc6acc064
[ "BSD-3-Clause" ]
1
2020-04-09T03:48:20.000Z
2020-04-09T03:48:20.000Z
modules/canvaskit/tests/util.js
gnoliyil/skia
bf1904fd4898bb0f73f05e890b88a3ffc6acc064
[ "BSD-3-Clause" ]
null
null
null
modules/canvaskit/tests/util.js
gnoliyil/skia
bf1904fd4898bb0f73f05e890b88a3ffc6acc064
[ "BSD-3-Clause" ]
null
null
null
// The size of the golden images (DMs) const CANVAS_WIDTH = 600; const CANVAS_HEIGHT = 600; const _commonGM = (it, pause, name, callback, assetsToFetchOrPromisesToWaitOn) => { const fetchPromises = []; for (const assetOrPromise of assetsToFetchOrPromisesToWaitOn) { // https://stackoverflow.com/a/9436948 if (typeof assetOrPromise === 'string' || assetOrPromise instanceof String) { const newPromise = fetch(assetOrPromise) .then((response) => response.arrayBuffer()); fetchPromises.push(newPromise); } else if (typeof assetOrPromise.then === 'function') { fetchPromises.push(assetOrPromise); } else { throw 'Neither a string nor a promise ' + assetOrPromise; } } it('draws gm '+name, (done) => { const surface = CanvasKit.MakeCanvasSurface('test'); expect(surface).toBeTruthy('Could not make surface') if (!surface) { done(); return; } // if fetchPromises is empty, the returned promise will // resolve right away and just call the callback. Promise.all(fetchPromises).then((values) => { try { callback(surface.getCanvas(), values); } catch (e) { console.log(`gm ${name} failed with error`, e); expect(e).toBeFalsy(); debugger; done(); } surface.flush(); if (pause) { reportSurface(surface, name, null); } else { reportSurface(surface, name, done); } }).catch((e) => { console.log(`could not load assets for gm ${name}`, e); debugger; done(); }); }) } /** * Takes a name, a callback, and any number of assets or promises. It executes the * callback (presumably, the test) and reports the resulting surface to Gold. * @param name {string} * @param callback {Function}, has two params, the first is a CanvasKit.SkCanvas * and the second is an array of results from the passed in assets or promises. * If a given assetOrPromise was a string, the result will be an ArrayBuffer. * @param assetsToFetchOrPromisesToWaitOn {string|Promise}. If a string, it will * be treated as a url to fetch and return an ArrayBuffer with the contents as * a result in the callback. Otherwise, the promise will be waited on and its * result will be whatever the promise resolves to. */ const gm = (name, callback, ...assetsToFetchOrPromisesToWaitOn) => { _commonGM(it, false, name, callback, assetsToFetchOrPromisesToWaitOn); } /** * fgm is like gm, except only tests declared with fgm, force_gm, or fit will be * executed. This mimics the behavior of Jasmine.js. */ const fgm = (name, callback, ...assetsToFetchOrPromisesToWaitOn) => { _commonGM(fit, false, name, callback, assetsToFetchOrPromisesToWaitOn); } /** * force_gm is like gm, except only tests declared with fgm, force_gm, or fit will be * executed. This mimics the behavior of Jasmine.js. */ const force_gm = (name, callback, ...assetsToFetchOrPromisesToWaitOn) => { fgm(name, callback, assetsToFetchOrPromisesToWaitOn); } /** * skip_gm does nothing. It is a convenient way to skip a test temporarily. */ const skip_gm = (name, callback, ...assetsToFetchOrPromisesToWaitOn) => { console.log(`Skipping gm ${name}`); // do nothing, skip the test for now } /** * pause_gm is like fgm, except the test will not finish right away and clear, * making it ideal for a human to manually inspect the results. */ const pause_gm = (name, callback, ...assetsToFetchOrPromisesToWaitOn) => { _commonGM(fit, true, name, callback, assetsToFetchOrPromisesToWaitOn); } const _commonMultipleCanvasGM = (it, pause, name, callback) => { it(`draws gm ${name} on both CanvasKit and using Canvas2D`, (done) => { const skcanvas = CanvasKit.MakeCanvas(CANVAS_WIDTH, CANVAS_HEIGHT); skcanvas._config = 'software_canvas'; const realCanvas = document.getElementById('test'); realCanvas._config = 'html_canvas'; realCanvas.width = CANVAS_WIDTH; realCanvas.height = CANVAS_HEIGHT; if (pause) { console.log('debugging canvaskit version'); callback(realCanvas); callback(skcanvas); const png = skcanvas.toDataURL(); const img = document.createElement('img'); document.body.appendChild(img); img.src = png; debugger; return; } const promises = []; for (const canvas of [skcanvas, realCanvas]) { callback(canvas); // canvas has .toDataURL (even though skcanvas is not a real Canvas) // so this will work. promises.push(reportCanvas(canvas, name, canvas._config)); } Promise.all(promises).then(() => { skcanvas.dispose(); done(); }).catch(reportError(done)); }); } /** * Takes a name and a callback. It executes the callback (presumably, the test) * for both a CanvasKit.SkCanvas and a native Canvas2D. The result of both will be * uploaded to Gold. * @param name {string} * @param callback {Function}, has one param, either a CanvasKit.SkCanvas or a native * Canvas2D object. */ const multipleCanvasGM = (name, callback) => { _commonMultipleCanvasGM(it, false, name, callback); } /** * fmultipleCanvasGM is like multipleCanvasGM, except only tests declared with * fmultipleCanvasGM, force_multipleCanvasGM, or fit will be executed. This * mimics the behavior of Jasmine.js. */ const fmultipleCanvasGM = (name, callback) => { _commonMultipleCanvasGM(fit, false, name, callback); } /** * force_multipleCanvasGM is like multipleCanvasGM, except only tests declared * with fmultipleCanvasGM, force_multipleCanvasGM, or fit will be executed. This * mimics the behavior of Jasmine.js. */ const force_multipleCanvasGM = (name, callback) => { fmultipleCanvasGM(name, callback); } /** * pause_multipleCanvasGM is like fmultipleCanvasGM, except the test will not * finish right away and clear, making it ideal for a human to manually inspect the results. */ const pause_multipleCanvasGM = (name, callback) => { _commonMultipleCanvasGM(fit, true, name, callback); } /** * skip_multipleCanvasGM does nothing. It is a convenient way to skip a test temporarily. */ const skip_multipleCanvasGM = (name, callback) => { console.log(`Skipping multiple canvas gm ${name}`); } function reportSurface(surface, testname, done) { // In docker, the webgl canvas is blank, but the surface has the pixel // data. So, we copy it out and draw it to a normal canvas to take a picture. // To be consistent across CPU and GPU, we just do it for all configurations // (even though the CPU canvas shows up after flush just fine). let pixels = surface.getCanvas().readPixels(0, 0, CANVAS_WIDTH, CANVAS_HEIGHT); pixels = new Uint8ClampedArray(pixels.buffer); const imageData = new ImageData(pixels, CANVAS_WIDTH, CANVAS_HEIGHT); const reportingCanvas = document.getElementById('report'); reportingCanvas.getContext('2d').putImageData(imageData, 0, 0); reportCanvas(reportingCanvas, testname).then(() => { // TODO(kjlubick): should we call surface.delete() here? done(); }).catch(reportError(done)); } function starPath(CanvasKit, X=128, Y=128, R=116) { const p = new CanvasKit.SkPath(); p.moveTo(X + R, Y); for (let i = 1; i < 8; i++) { let a = 2.6927937 * i; p.lineTo(X + R * Math.cos(a), Y + R * Math.sin(a)); } p.close(); return p; }
37.258373
93
0.646462
52e39c53c23df30efa4df330152c2981d5464946
1,044
js
JavaScript
grouper-misc/grouper-ui-dojo/dojo/dojox/mobile/bidi/Button.js.uncompressed.js
manasys/grouper
f6fc9e9d93768a971187289afd9df6d650a128e8
[ "Apache-2.0" ]
70
2015-09-12T08:43:47.000Z
2022-03-23T17:07:54.000Z
grouper-misc/grouper-ui-dojo/dojo/dojox/mobile/bidi/Button.js.uncompressed.js
manasys/grouper
f6fc9e9d93768a971187289afd9df6d650a128e8
[ "Apache-2.0" ]
99
2016-05-04T17:10:08.000Z
2021-09-01T02:18:17.000Z
grouper-misc/grouper-ui-dojo/dojo/dojox/mobile/bidi/Button.js.uncompressed.js
manasys/grouper
f6fc9e9d93768a971187289afd9df6d650a128e8
[ "Apache-2.0" ]
70
2015-03-23T08:50:33.000Z
2022-03-18T07:00:57.000Z
define("dojox/mobile/bidi/Button", ["dojo/_base/declare", "./common"], function(declare, common){ // module: // mobile/bidi/Button return declare(null, { // summary: // Support for control over text direction for mobile Button widget, using Unicode Control Characters to control text direction. // description: // Implementation for text direction support for Label. // This class should not be used directly. // Mobile Button widget loads this module when user sets "has: {'dojo-bidi': true }" in data-dojo-config. _setLabelAttr: function(/*String*/ content){ this.inherited(arguments, [this._cv ? this._cv(content) : content]); this.focusNode.innerHTML = common.enforceTextDirWithUcc(this.focusNode.innerHTML, this.textDir); }, _setTextDirAttr: function(/*String*/ textDir){ if(!this._created || this.textDir !== textDir){ this._set("textDir", textDir); this.focusNode.innerHTML = common.enforceTextDirWithUcc(common.removeUCCFromText(this.focusNode.innerHTML), this.textDir); } } }); });
40.153846
131
0.715517
52e446a746dd4cb84079c616cd62c528c832542d
10,846
js
JavaScript
Notifier.user.js
ArcticEcho/SE-Post-Notifier
cfa64412b8a9fa0560e649d1b3d4d841953d76ac
[ "0BSD" ]
null
null
null
Notifier.user.js
ArcticEcho/SE-Post-Notifier
cfa64412b8a9fa0560e649d1b3d4d841953d76ac
[ "0BSD" ]
null
null
null
Notifier.user.js
ArcticEcho/SE-Post-Notifier
cfa64412b8a9fa0560e649d1b3d4d841953d76ac
[ "0BSD" ]
null
null
null
// ==UserScript== // @name SE Active Post Notifier // @namespace https://github.com/ArcticEcho/SE-Post-Notifier // @version 0.3.2 // @description Adds inbox notifications for posts that you've CVd/DVd and later become active. // @author Sam // @include /^https?:\/\/stack(overflow|exchange).com/ // ==/UserScript== // localStorage usage. // DVPostsQueue = downvoted posts (URLs) that have not been edited since being downvoted. // DVPostsPending = down voted posts (URLs) that have been edited, but not yet viewed. // CVPostsQueue = close voted posts (URLs) that have not been edited since being close voted. // CVPostsPending = close voted posts (URLs) that have been edited, but not yet viewed. // ManPostsQueue = manually added posts (URLs) that have not yet been edited. // ManPostsPending = manually added posts (URLs) that have been edited, but not yet viewed. var _dvPostInboxItemSummary = "A post you've downvoted has been edited."; var _cvPostInboxItemSummary = "A post you've voted to close has been edited."; var _manPostInboxItemSummary = "A manually added post has been edited."; var _dvPs = localStorage.getItem("DVPostsQueue"); var _cvPs = localStorage.getItem("CVPostsQueue"); var _manPs = localStorage.getItem("ManPostsQueue"); var _watching = [ "" ]; var checkExist = setInterval(function() { $(".topbar-icon.icon-inbox.yes-hover.js-inbox-button").click().click(); if ($(".topbar-dialog.inbox-dialog .modal-content ul").length) { addDVListeners(); fillInbox(); addWatchBtn(); watchOldPosts(); clearInterval(checkExist); } }, 250); var watchStorage = setInterval(function() { var newDvPs = localStorage.getItem("DVPostsQueue"); if (_dvPs !== newDvPs) { var oldIDs = (!_dvPs ? "" : _dvPs).split(";"); var newIDs = (!newDvPs ? "" : newDvPs).split(";"); for (var i = 0; i < newIDs.length; i++) { if (oldIDs.indexOf(newIDs[i]) === -1) { watchPost(newIDs[i], "dv"); _dvPs += newIDs[i] + ";"; } } } }, 500); function watchOldPosts() { var dvUrls = (_dvPs === null ? "" : _dvPs).split(";"); var cvUrls = (_cvPs === null ? "" : _cvPs).split(";"); var manUrls = (_manPs === null ? "" : _manPs).split(";"); for (var i = 0; i < dvUrls.length; i++) if (dvUrls[i].length > 0) watchPost(dvUrls[i], "dv"); for (var i = 0; i < cvUrls.length; i++) if (cvUrls[i].length > 0) watchPost(cvUrls[i], "cv"); for (var i = 0; i < manUrls.length; i++) if (manUrls[i].length > 0) watchPost(manUrls[i], "man"); } function watchPost(url, reason) { console.log("Request to watch post: " + url); if (!url || url.length === 0 || _watching.indexOf(url) !== -1) { console.log("Rejected.\n\n"); return; } console.log("Accepted.\n\n"); _watching.push(url); var ws = new WebSocket("wss://qa.sockets.stackexchange.com"); var postID = url.match(/questions\/\d+/gi)[0].substring(10); ws.onmessage = function(e) { var a = ""; try { a = JSON.parse(JSON.parse(e.data).data).a; } catch (ex) { } if (a == "post-edit") { var summary; switch (reason.toLowerCase()) { case "dv": var pts = localStorage.getItem("DVPostsQueue"); if (!pts || pts.indexOf(url) === -1) return; savePost("DVPostsPending", url); summary = _dvPostInboxItemSummary; break; case "cv": var pts = localStorage.getItem("CVPostsQueue"); if (!pts || pts.indexOf(url) === -1) return; savePost("CVPostsPending", url); summary = _cvPostInboxItemSummary; break; case "man": var pts = localStorage.getItem("ManPostsQueue"); if (!pts || pts.indexOf(url) === -1) return; savePost("ManPostsPending", url); summary = _manPostInboxItemSummary; break; } var postHtml = httpGet(url); var title = $(".question-hyperlink", $(postHtml)).first().text(); addInboxItem(url, "just now", title, summary, reason); ws.close(); } }; ws.onopen = function() { ws.send("1-question-" + postID); }; switch (reason.toLowerCase()) { case "dv": savePost("DVPostsQueue", url); break; case "cv": savePost("CVPostsQueue", url); break; case "man": savePost("ManPostsQueue", url); break; } } function addWatchBtn() { var url = document.URL.match(/^https?:\/\/stackoverflow\.com\/questions\/\d+/gi); if (!url) return; var a = document.createElement("a"); a.setAttribute("id", "watch-post"); var pts = localStorage.getItem("ManPostsQueue"); if (!pts || pts.indexOf(url[0]) === -1) { a.setAttribute("title", "Start receiving notifications for this post."); a.appendChild(document.createTextNode("watch")); } else { a.setAttribute("title", "Stop receiving notifications for this post."); a.appendChild(document.createTextNode("unwatch")); } a.onclick = function() { var txt = $(".post-menu #watch-post").first().text(); if (txt == "watch") { $(".post-menu #watch-post").first().text("unwatch"); a.setAttribute("title", "Stop receiving notifications for this post."); watchPost(url[0], "man"); } else { $(".post-menu #watch-post").first().text("watch"); a.setAttribute("title", "Start receiving notifications for this post."); removePost("ManPostsQueue", url[0]); } }; var span = document.createElement("span"); span.setAttribute("class", "lsep"); span.appendChild(document.createTextNode("|")); $(".post-menu").first().append(span).append(a); } function addDVListeners() { var post = document.URL.match(/^https?:\/\/stackoverflow\.com\/questions\/\d+/gi); if (post == null) return; $(".vote-down-off").first().on("click", function() { watchPost(post[0], "dv"); }); } function removePost(key, post) { for (var i = 0; i < _watching.length; i++) if (_watching[i] == post) _watching.splice(i, 1); var otherPosts = localStorage.getItem(key); if (!otherPosts) return; localStorage.setItem(key, otherPosts.replace(post + ";", "")); } function savePost(key, post) { var otherPosts = localStorage.getItem(key); if (otherPosts && otherPosts.indexOf(post) !== -1) return; localStorage.setItem(key, (!otherPosts ? "" : otherPosts) + post + ";"); } function fillInbox() { var dvPosts = localStorage.getItem("DVPostsPending"); var cvPosts = localStorage.getItem("CVPostsPending"); var manPosts = localStorage.getItem("ManPostsPending"); var processPosts = function(posts, inboxItemSummary, reason) { if (!posts || posts.length == 0) return; var urls = posts.split(";"); for (var i = 0; i < urls.length; i++) { if (!urls[i] || urls[i].length === 0) continue; var postHtml = httpGet(urls[i]); var title = $(".question-hyperlink", $(postHtml)).first().text(); var active = $(".relativetime", $(postHtml)).first().text(); addInboxItem(urls[i], active, title, inboxItemSummary, reason); } }; processPosts(dvPosts, _dvPostInboxItemSummary, "dv"); processPosts(cvPosts, _cvPostInboxItemSummary, "cv"); processPosts(manPosts, _manPostInboxItemSummary, "man"); } function httpGet(url) { var req = new XMLHttpRequest(); req.open("GET", url, false); req.send(null); return req.responseText; } function addInboxItem(link, active, title, summary, reason) { var li = document.createElement("li"); li.setAttribute("class", "inbox-item"); var a = document.createElement("a"); a.setAttribute("href", link); a.onclick = function() { li.parentNode.removeChild(li); switch (reason.toLowerCase()) { case "dv": removePost("DVPostsQueue", link); removePost("DVPostsPending", link); break; case "cv": removePost("CVPostsQueue", link); removePost("CVPostsPending", link); break; case "man": // Don't remove manually added posts (use the "unwatch" btn for that). removePost("ManPostsPending", link); break; } }; var soIcon = document.createElement("div"); soIcon.setAttribute("class", "site-icon favicon favicon-stackoverflow"); soIcon.setAttribute("title", "Stack Overflow"); var iCon = document.createElement("div"); iCon.setAttribute("class", "item-content"); // Inbox item header var iHead = document.createElement("div"); iHead.setAttribute("class", "it em-header"); var iType = document.createElement("span"); iType.setAttribute("class", "item-type"); iType.appendChild(document.createTextNode("Post Active")); var iCreation = document.createElement("span"); iCreation.setAttribute("class", "item-creation"); var dt = document.createElement("span"); dt.setAttribute("class", "relativetime"); dt.appendChild(document.createTextNode(active)); iCreation.appendChild(dt); iHead.appendChild(iType); iHead.appendChild(iCreation); // Inbox item location var iLoc = document.createElement("div"); iLoc.setAttribute("class", "item-location"); iLoc.appendChild(document.createTextNode(title)); // Inbox item summary var iSum = document.createElement("div"); iSum.setAttribute("class", "item-summary"); iSum.appendChild(document.createTextNode(summary)); // Stitch it all together. iCon.appendChild(iHead); iCon.appendChild(iLoc); iCon.appendChild(iSum); a.appendChild(soIcon); a.appendChild(iCon); li.appendChild(a); $(".topbar-dialog.inbox-dialog .modal-content ul").prepend(li); var unreadCount = $(".topbar-icon.icon-inbox.yes-hover.js-inbox-button .unread-count"); unreadCount.removeAttr("style"); var txt = unreadCount.text(); unreadCount.text(parseInt(!txt || txt.length === 0 ? "0" : txt) + 1); }
31.620991
108
0.572654
52e45c3cce0dd7b0145403a545f7cbb0554f6682
636
js
JavaScript
app/assets/javascripts/components/util/history.js
rajat2502/WikiEduDashboard
a0522fb6bf1200f0650e1b8be36ce5c59f5ced9e
[ "MIT" ]
359
2015-01-30T03:39:20.000Z
2022-03-27T10:27:22.000Z
app/assets/javascripts/components/util/history.js
shipcy/WikiEduDashboard
b791984c751d3cec5b29af535c89b92be7a7b594
[ "MIT" ]
3,140
2015-01-13T06:25:43.000Z
2022-03-31T22:02:11.000Z
app/assets/javascripts/components/util/history.js
shipcy/WikiEduDashboard
b791984c751d3cec5b29af535c89b92be7a7b594
[ "MIT" ]
596
2015-01-24T06:18:15.000Z
2022-03-31T21:28:32.000Z
import { createBrowserHistory } from 'history'; // Custom history component handles scroll position for back button, hashes, // and normal links const browserHistory = createBrowserHistory(); browserHistory.listen((location) => { setTimeout(() => { if (location.action === 'POP') { return; } const hash = window.location.hash; if (hash) { const element = document.getElementById(hash); if (element) { element.scrollIntoView({ block: 'start', behavior: 'smooth' }); } } else { window.scrollTo(0, 0); } }); }); export default browserHistory;
23.555556
76
0.608491
52e469aa6d6cdc8a0ff21306ee3606e5274d3b39
434
js
JavaScript
src/entity/thing.js
a-rts/pixie-matter-inheritance
f1cccfe2fd06dac4f31b0de20501627d6279c6fe
[ "MIT" ]
null
null
null
src/entity/thing.js
a-rts/pixie-matter-inheritance
f1cccfe2fd06dac4f31b0de20501627d6279c6fe
[ "MIT" ]
null
null
null
src/entity/thing.js
a-rts/pixie-matter-inheritance
f1cccfe2fd06dac4f31b0de20501627d6279c6fe
[ "MIT" ]
null
null
null
import Entity from './entity'; class Thing extends Entity { constructor(map, x, y, w, h, options) { // TODO: Set Player defaults for {bodyOptions: {}, displayOptions: {}}. // NOTE: Cannot spread arguments because of default options options.bodyOptions = { isStatic: true } super(map, x, y, w, h, options); this.map = map; this.body.category = 'thing'; this.add(); } } export default Thing;
24.111111
75
0.626728
52e4ba8a42f5fcbb16bbf188b3ca75684706f90f
444
js
JavaScript
src/App.js
En-ZUH/Storefront
d3111ed96974f446f8f07f6c42e7a5da8ae05fae
[ "MIT" ]
null
null
null
src/App.js
En-ZUH/Storefront
d3111ed96974f446f8f07f6c42e7a5da8ae05fae
[ "MIT" ]
8
2021-08-23T10:38:21.000Z
2021-08-24T18:57:13.000Z
src/App.js
En-ZUH/Storefront
d3111ed96974f446f8f07f6c42e7a5da8ae05fae
[ "MIT" ]
null
null
null
import './App.css'; import React from 'react'; //import Active from './Components/store/Active.jsx'; import Header from './Components/Header/Header.jsx'; import Body from './Components/store/homePage'; import Footer from './Components/Footer/Footer.jsx' function App() { return ( <React.Fragment className="App"> <Header /> <Body /> {/* <Active /> */} <Footer /> </React.Fragment> ); } export default App;
22.2
53
0.63964
52e545e105c28d5238edd704f8a9a979071b3bec
346
js
JavaScript
Exercises/7-objects.js
Alexander-pixel/Reusable
d23ade9165b90a90bb90171f78f7859f2e0cb87f
[ "MIT" ]
null
null
null
Exercises/7-objects.js
Alexander-pixel/Reusable
d23ade9165b90a90bb90171f78f7859f2e0cb87f
[ "MIT" ]
null
null
null
Exercises/7-objects.js
Alexander-pixel/Reusable
d23ade9165b90a90bb90171f78f7859f2e0cb87f
[ "MIT" ]
null
null
null
'use strict'; const fn = () => { const constObj = { name: 'Alex', }; let letObj = { name: 'Alex', }; constObj.name = 'TestName'; letObj.name = 'TestName'; let testObj = { name: 'Joseph', }; // constObj = testObj; // Error: Assignment to constant variable. letObj = testObj; }; fn(); module.exports = { fn };
13.84
67
0.549133
52e563f775ed72c679376c389b8cc58f2c411950
13,701
js
JavaScript
src/db/clients/mysql.js
derekchan/sqlectron-core
d959d33c9a621c995dfce64f5749aa1b0a90e932
[ "MIT" ]
null
null
null
src/db/clients/mysql.js
derekchan/sqlectron-core
d959d33c9a621c995dfce64f5749aa1b0a90e932
[ "MIT" ]
null
null
null
src/db/clients/mysql.js
derekchan/sqlectron-core
d959d33c9a621c995dfce64f5749aa1b0a90e932
[ "MIT" ]
null
null
null
import mysql from 'mysql2'; import { identify } from 'sql-query-identifier'; import createLogger from '../../logger'; import { createCancelablePromise } from '../../utils'; import errors from '../../errors'; const logger = createLogger('db:clients:mysql'); const mysqlErrors = { EMPTY_QUERY: 'ER_EMPTY_QUERY', CONNECTION_LOST: 'PROTOCOL_CONNECTION_LOST', }; export default async function (server, database) { const dbConfig = configDatabase(server, database); logger().debug('create driver client for mysql with config %j', dbConfig); const conn = { pool: mysql.createPool(dbConfig), }; const versionInfo = (await driverExecuteQuery(conn, { query: "SHOW VARIABLES WHERE variable_name='version' OR variable_name='version_comment';", })).data; let version; let versionComment; for (let i = 0; i < versionInfo.length; i++) { const item = versionInfo[i]; if (item.Variable_name === 'version') { version = item.Value; } else if (item.Variable_name === 'version_comment') { versionComment = item.Value; } } conn.versionData = { name: versionComment, version: version.split('-')[0], string: `${versionComment} ${version}`, }; // normalize the name as depending on where the server is installed from, it // could be just "MySQL" or "MariaDB", or it could be a longer string like // "mariadb.org binary distribution" const lowerComment = versionComment.toLowerCase(); if (lowerComment.includes('mysql')) { conn.versionData.name = 'MySQL'; } else if (lowerComment.includes('mariadb')) { conn.versionData.name = 'MariaDB'; } else if (lowerComment.includes('percona')) { conn.versionData.name = 'Percona'; } return { wrapIdentifier, version: conn.versionData.version, getVersion: () => conn.versionData, disconnect: () => disconnect(conn), listTables: () => listTables(conn), listViews: () => listViews(conn), listRoutines: () => listRoutines(conn), listTableColumns: (db, table) => listTableColumns(conn, db, table), listTableTriggers: (table) => listTableTriggers(conn, table), listTableIndexes: (db, table) => listTableIndexes(conn, db, table), listSchemas: () => listSchemas(conn), getTableReferences: (table) => getTableReferences(conn, table), getTableKeys: (db, table) => getTableKeys(conn, db, table), query: (queryText) => query(conn, queryText), executeQuery: (queryText) => executeQuery(conn, queryText), listDatabases: (filter) => listDatabases(conn, filter), getQuerySelectTop: (table, limit) => getQuerySelectTop(conn, table, limit), getTableCreateScript: (table) => getTableCreateScript(conn, table), getViewCreateScript: (view) => getViewCreateScript(conn, view), getRoutineCreateScript: (routine, type) => getRoutineCreateScript(conn, routine, type), truncateAllTables: () => truncateAllTables(conn), }; } export function disconnect(conn) { conn.pool.end(); } export async function listTables(conn) { const sql = ` SELECT table_name as name FROM information_schema.tables WHERE table_schema = database() AND table_type NOT LIKE '%VIEW%' ORDER BY table_name `; const { data } = await driverExecuteQuery(conn, { query: sql }); return data; } export async function listViews(conn) { const sql = ` SELECT table_name as name FROM information_schema.views WHERE table_schema = database() ORDER BY table_name `; const { data } = await driverExecuteQuery(conn, { query: sql }); return data; } export async function listRoutines(conn) { const sql = ` SELECT routine_name as 'routine_name', routine_type as 'routine_type' FROM information_schema.routines WHERE routine_schema = database() ORDER BY routine_name `; const { data } = await driverExecuteQuery(conn, { query: sql }); return data.map((row) => ({ routineName: row.routine_name, routineType: row.routine_type, })); } export async function listTableColumns(conn, database, table) { const sql = ` SELECT column_name AS 'column_name', data_type AS 'data_type' FROM information_schema.columns WHERE table_schema = database() AND table_name = ? ORDER BY ordinal_position `; const params = [ table, ]; const { data } = await driverExecuteQuery(conn, { query: sql, params }); return data.map((row) => ({ columnName: row.column_name, dataType: row.data_type, })); } export async function listTableTriggers(conn, table) { const sql = ` SELECT trigger_name as 'trigger_name' FROM information_schema.triggers WHERE event_object_schema = database() AND event_object_table = ? `; const params = [ table, ]; const { data } = await driverExecuteQuery(conn, { query: sql, params }); return data.map((row) => row.trigger_name); } export async function listTableIndexes(conn, database, table) { const sql = 'SHOW INDEX FROM ?? FROM ??'; const params = [ table, database, ]; const { data } = await driverExecuteQuery(conn, { query: sql, params }); return data.map((row) => row.Key_name); } export function listSchemas() { return Promise.resolve([]); } export async function getTableReferences(conn, table) { const sql = ` SELECT referenced_table_name as 'referenced_table_name' FROM information_schema.key_column_usage WHERE referenced_table_name IS NOT NULL AND table_schema = database() AND table_name = ? `; const params = [ table, ]; const { data } = await driverExecuteQuery(conn, { query: sql, params }); return data.map((row) => row.referenced_table_name); } export async function getTableKeys(conn, database, table) { const sql = ` SELECT constraint_name as 'constraint_name', column_name as 'column_name', referenced_table_name as 'referenced_table_name', CASE WHEN (referenced_table_name IS NOT NULL) THEN 'FOREIGN' ELSE constraint_name END as key_type FROM information_schema.key_column_usage WHERE table_schema = database() AND table_name = ? AND ((referenced_table_name IS NOT NULL) OR constraint_name LIKE '%PRIMARY%') `; const params = [ table, ]; const { data } = await driverExecuteQuery(conn, { query: sql, params }); return data.map((row) => ({ constraintName: `${row.constraint_name} KEY`, columnName: row.column_name, referencedTable: row.referenced_table_name, keyType: `${row.key_type} KEY`, })); } export function query(conn, queryText) { let pid = null; let canceling = false; const cancelable = createCancelablePromise({ ...errors.CANCELED_BY_USER, sqlectronError: 'CANCELED_BY_USER', }); return { execute() { return runWithConnection(conn, async (connection) => { const connClient = { connection }; const { data: dataPid } = await driverExecuteQuery(connClient, { query: 'SELECT connection_id() AS pid', }); pid = dataPid[0].pid; try { const data = await Promise.race([ cancelable.wait(), executeQuery(connClient, queryText), ]); pid = null; return data; } catch (err) { if (canceling && err.code === mysqlErrors.CONNECTION_LOST) { canceling = false; err.sqlectronError = 'CANCELED_BY_USER'; } throw err; } finally { cancelable.discard(); } }); }, async cancel() { if (!pid) { throw new Error('Query not ready to be canceled'); } canceling = true; try { await driverExecuteQuery(conn, { query: `kill ${pid};`, }); cancelable.cancel(); } catch (err) { canceling = false; throw err; } }, }; } export async function executeQuery(conn, queryText) { const { fields, data } = await driverExecuteQuery(conn, { query: queryText }); if (!data) { return []; } const commands = identifyCommands(queryText).map((item) => item.type); if (!isMultipleQuery(fields)) { return [parseRowQueryResult(data, fields, commands[0])]; } return data.map((_, idx) => parseRowQueryResult(data[idx], fields[idx], commands[idx])); } export async function listDatabases(conn, filter) { const sql = 'show databases'; const { data } = await driverExecuteQuery(conn, { query: sql }); return data .filter((item) => filterDatabase(item, filter, 'Database')) .map((row) => row.Database); } export function getQuerySelectTop(conn, table, limit) { return `SELECT * FROM ${wrapIdentifier(table)} LIMIT ${limit}`; } export async function getTableCreateScript(conn, table) { const sql = `SHOW CREATE TABLE ${table}`; const { data } = await driverExecuteQuery(conn, { query: sql }); return data.map((row) => row['Create Table']); } export async function getViewCreateScript(conn, view) { const sql = `SHOW CREATE VIEW ${view}`; const { data } = await driverExecuteQuery(conn, { query: sql }); return data.map((row) => row['Create View']); } export async function getRoutineCreateScript(conn, routine, type) { const sql = `SHOW CREATE ${type.toUpperCase()} ${routine}`; const { data } = await driverExecuteQuery(conn, { query: sql }); return data.map((row) => row[`Create ${type}`]); } export function wrapIdentifier(value) { return (value !== '*' ? `\`${value.replace(/`/g, '``')}\`` : '*'); } async function getSchema(conn) { const sql = 'SELECT database() AS \'schema\''; const { data } = await driverExecuteQuery(conn, { query: sql }); return data[0].schema; } export async function truncateAllTables(conn) { await runWithConnection(conn, async (connection) => { const connClient = { connection }; const schema = await getSchema(connClient); const sql = ` SELECT table_name as 'table_name' FROM information_schema.tables WHERE table_schema = '${schema}' AND table_type NOT LIKE '%VIEW%' `; const { data } = await driverExecuteQuery(connClient, { query: sql }); const truncateAll = data.map((row) => ` SET FOREIGN_KEY_CHECKS = 0; TRUNCATE TABLE ${wrapIdentifier(schema)}.${wrapIdentifier(row.table_name)}; SET FOREIGN_KEY_CHECKS = 1; `).join(''); await driverExecuteQuery(connClient, { query: truncateAll }); }); } function configDatabase(server, database) { const config = { host: server.config.host, port: server.config.port, user: server.config.user, password: server.config.password, database: database.database, multipleStatements: true, dateStrings: true, supportBigNumbers: true, bigNumberStrings: true, }; if (server.sshTunnel) { config.host = server.config.localHost; config.port = server.config.localPort; } if (server.config.ssl) { config.ssl = { // It is not the best recommend way to use SSL with node-mysql // https://github.com/felixge/node-mysql#ssl-options // But this way we have compatibility with all clients. rejectUnauthorized: false, }; } return config; } function getRealError(conn, err) { /* eslint no-underscore-dangle:0 */ if (conn && conn._protocol && conn._protocol._fatalError) { return conn._protocol._fatalError; } return err; } function parseRowQueryResult(data, fields, command) { // Fallback in case the identifier could not reconize the command const isSelect = Array.isArray(data); return { command: command || (isSelect && 'SELECT'), rows: isSelect ? data : [], fields: fields || [], rowCount: isSelect ? (data || []).length : undefined, affectedRows: !isSelect ? data.affectedRows : undefined, }; } function isMultipleQuery(fields) { if (!fields) { return false; } if (!fields.length) { return false; } return (Array.isArray(fields[0]) || fields[0] === undefined); } function identifyCommands(queryText) { try { return identify(queryText); } catch (err) { return []; } } function driverExecuteQuery(conn, queryArgs) { const runQuery = (connection) => new Promise((resolve, reject) => { connection.query(queryArgs.query, queryArgs.params, (err, data, fields) => { if (err && err.code === mysqlErrors.EMPTY_QUERY) return resolve({}); if (err) return reject(getRealError(connection, err)); resolve({ data, fields }); }); }); return conn.connection ? runQuery(conn.connection) : runWithConnection(conn, runQuery); } async function runWithConnection({ pool }, run) { let rejected = false; return new Promise((resolve, reject) => { const rejectErr = (err) => { if (!rejected) { rejected = true; reject(err); } }; pool.getConnection(async (errPool, connection) => { if (errPool) { rejectErr(errPool); return; } connection.on('error', (error) => { // it will be handled later in the next query execution logger().error('Connection fatal error %j', error); }); try { resolve(await run(connection)); } catch (err) { rejectErr(err); } finally { connection.release(); } }); }); } export function filterDatabase(item, { database } = {}, databaseField) { if (!database) { return true; } const value = item[databaseField]; if (typeof database === 'string') { return database === value; } const { only, ignore } = database; if (only && only.length && !only.includes(value)) { return false; } if (ignore && ignore.length && ignore.includes(value)) { return false; } return true; }
26.196941
94
0.647325
52e56c7f09a13b2aa56d1a75613e60f21af7bb12
764
js
JavaScript
src/plugin.js
dword-design/nuxt-chargebee
56c4e6cd83aee3a98d275d1e41ba731855ffe12d
[ "MIT" ]
2
2021-09-09T06:43:41.000Z
2021-11-07T19:24:18.000Z
src/plugin.js
dword-design/nuxt-chargebee
56c4e6cd83aee3a98d275d1e41ba731855ffe12d
[ "MIT" ]
65
2021-02-17T03:34:02.000Z
2022-03-28T02:56:42.000Z
src/plugin.js
dword-design/nuxt-chargebee
56c4e6cd83aee3a98d275d1e41ba731855ffe12d
[ "MIT" ]
null
null
null
import options from './options' export default (context, inject) => { const instance = window.Chargebee.init({ site: options.siteName }) inject('chargebee', { checkout: planName => { const cart = instance.getCart() const product = instance.initializeProduct(planName) if (options.sessionUrl) { instance.setPortalSession(() => context.app.$axios.$get(options.sessionUrl) ) } cart.replaceProduct(product) cart.proceedToCheckout() }, portal: () => { if (options.sessionUrl) { instance.setPortalSession(() => context.app.$axios.$get(options.sessionUrl) ) } const cbPortal = instance.createChargebeePortal() cbPortal.open() }, }) }
25.466667
68
0.606021
52e6fe825790f246344fadc4f29533802c623e47
380
js
JavaScript
src/app/components/Spotify/Player/reactium-hooks.js
jdillick/reactium-spotify
c8c5611bac87f00514384d37352d63d50032d7da
[ "MIT" ]
null
null
null
src/app/components/Spotify/Player/reactium-hooks.js
jdillick/reactium-spotify
c8c5611bac87f00514384d37352d63d50032d7da
[ "MIT" ]
null
null
null
src/app/components/Spotify/Player/reactium-hooks.js
jdillick/reactium-spotify
c8c5611bac87f00514384d37352d63d50032d7da
[ "MIT" ]
null
null
null
/** * ----------------------------------------------------------------------------- * Reactium Plugin Player * ----------------------------------------------------------------------------- */ import Player from './index'; import Reactium from 'reactium-core/sdk'; Reactium.Plugin.register('Player-plugin').then(() => { Reactium.Component.register('Player', Player); });
29.230769
80
0.392105
52e70882c7383f854c877920b1a19eba23d7aea3
400
js
JavaScript
db/index.js
DenyStark/ethereum-wallet
d85330dbe8b79f926bbffc6d515e0c6751499d1e
[ "0BSD" ]
null
null
null
db/index.js
DenyStark/ethereum-wallet
d85330dbe8b79f926bbffc6d515e0c6751499d1e
[ "0BSD" ]
null
null
null
db/index.js
DenyStark/ethereum-wallet
d85330dbe8b79f926bbffc6d515e0c6751499d1e
[ "0BSD" ]
null
null
null
const promise = require('bluebird'); const config = require('../config'); const pgp = require('pg-promise')({ promiseLib: promise }); const cn = { host: config.db.host, port: config.db.port, database: config.db.database, user: config.db.user, password: config.db.password }; const db = pgp(cn); // pgp.end(); // shuts down all connection pools created in the process module.exports = db;
25
71
0.685
52e7179ad9b3526c7b6c62e4df30a96fbfeb313b
658
js
JavaScript
app/app.js
yoboseyo/lld_app
5a547fa06f8700c9bd167345434915c083dc7d86
[ "MIT" ]
null
null
null
app/app.js
yoboseyo/lld_app
5a547fa06f8700c9bd167345434915c083dc7d86
[ "MIT" ]
null
null
null
app/app.js
yoboseyo/lld_app
5a547fa06f8700c9bd167345434915c083dc7d86
[ "MIT" ]
null
null
null
import React from 'react'; import { Provider } from 'react-redux'; import store from './store'; import AppRouter from './router'; import { loadUserInfo } from './actions/user-actions'; import * as CreditActions from './actions/myCredit-actions'; store.dispatch(loadUserInfo()); // store.dispatch(CreditActions.myCreditInit()); // Provider is a top-level component that wrapps our entire application, including // the Router. We pass it a reference to the store so we can use react-redux's // connect() method for Component Containers. export default lldApp = () => { return ( <Provider store={store}> { <AppRouter /> } </Provider> ); };
29.909091
82
0.703647
52e8a80b091e2d0827c599f0ab2e185335288b1c
2,206
js
JavaScript
public/javascripts/lib/console.js
tilleryj/rio
a82e8c01ca4d9b17efaef11c711e23c1770dac50
[ "MIT" ]
1
2018-02-06T10:36:27.000Z
2018-02-06T10:36:27.000Z
public/javascripts/lib/console.js
tilleryj/rio
a82e8c01ca4d9b17efaef11c711e23c1770dac50
[ "MIT" ]
null
null
null
public/javascripts/lib/console.js
tilleryj/rio
a82e8c01ca4d9b17efaef11c711e23c1770dac50
[ "MIT" ]
null
null
null
rio.require("components/notification", { track: false }); rio.console.loaded = false; rio.console.logQueue = []; rio.log = function(msg, className, prefix) { if (rio.console.loaded) { rio.console.window.log(msg, className, prefix); } else { rio.console.logQueue.push({ msg: msg, className: className, prefix: prefix}); } }; rio.error = function(e, msg) { try { if (e.errorLogged) { return; } var fullMessage = (msg ? msg + "\n\n" : "") + e rio.log(fullMessage, "errorLogItem", "> "); e.errorLogged = true; var htmlMessage = rio.Tag.div("", { style: "text-align: left; padding: 0px 10px; line-height: 24px" }); htmlMessage.update(fullMessage.replace(/\n/g, "<br />")); new rio.components.Notification({ iconSrc: "/images/icons/error-big.png", body: htmlMessage }); } catch(e) { // ignore errors writing errors } }; rio.warn = function(msg) { rio.log(msg, "warningLogItem", "- "); }; rio.console.launch = function() { rio.console.loaded = false; rio.console.window = window.open('/javascripts/lib/console/console.html', "rio_console:" + document.location.host, "width=900,height=800,scrollbars=yes,resizable=yes"); rio.console.initializePlayground(); }; rio.console.initializePlayground = function() { rio.require("pages/playground_page", { track: false }); rio.Application.afterLaunch(function() { var appClass = rio.app.constructor; if (appClass.__routes) { delete appClass.__routes.playground; appClass.__routes = Object.extend({ playground: "playground" }, appClass.__routes); rio.app.playground = function() { return new rio.pages.PlaygroundPage(); }; } }); }; rio.console.touch = function(files) { rio.console.window.touch(files); }; rio.console.onload = function() { rio.console.loaded = true; rio.console.window.setApplication({ name: rio.boot.appName, scripts: rio.boot.appScripts(), stylesheets: rio.boot.loadedStylesheets, templates: rio.boot.loadedTemplates }); rio.console.logQueue.each(function(msg) { rio.log(msg.msg, msg.className, msg.prefix); }); rio.console.logQueue = []; } if (rio.boot.environment == "development" && !rio.boot.noConsole) { document.observe("dom:loaded", rio.console.launch); }
29.026316
169
0.68631
52e8cacf308340f60db2a32deefd46ed03f70156
6,596
js
JavaScript
routes/lamda.js
DevinTyler26/iDontKnowYouDecide
4b3f068d304f006d0ed80295710be09a6b133d83
[ "MIT" ]
null
null
null
routes/lamda.js
DevinTyler26/iDontKnowYouDecide
4b3f068d304f006d0ed80295710be09a6b133d83
[ "MIT" ]
null
null
null
routes/lamda.js
DevinTyler26/iDontKnowYouDecide
4b3f068d304f006d0ed80295710be09a6b133d83
[ "MIT" ]
null
null
null
/* eslint-disable func-names */ /* eslint quote-props: ["error", "consistent"]*/ /** * This sample demonstrates a simple skill built with the Amazon Alexa Skills * nodejs skill development kit. * This sample supports multiple lauguages. (en-US, en-GB, de-DE). * The Intent Schema, Custom Slots and Sample Utterances for this skill, as well * as testing instructions are located at https://github.com/alexa/skill-sample-nodejs-fact **/ "use strict"; const Alexa = require("alexa-sdk"); //========================================================================================================================================= //TODO: The items below this comment need your attention. //========================================================================================================================================= //Replace with your app ID (OPTIONAL). You can find this value at the top of your skill's page on http://developer.amazon.com. //Make sure to enclose your value in quotes, like this: const APP_ID = 'amzn1.ask.skill.bb4045e6-b3e8-4133-b650-72923c5980f1'; const APP_ID = "amzn1.ask.skill.aacf2066-fbd6-4006-953c-2b568ef7281a"; const SKILL_NAME = "I Don't Know, You Decide."; const HELP_MESSAGE = "You can say somthing like, Find a place to eat at, or, Find me a place Burger joint in Seattle to eat at. What can I help you with?"; const HELP_REPROMPT = "What can I help you with?"; const STOP_MESSAGE = "Goodbye!"; //========================================================================================================================================= //TODO: Replace this data with your own. You can find translations of this data at http://github.com/alexa/skill-sample-node-js-fact/data //========================================================================================================================================= const greetings = [ "Hey! If you are pretty indecisive, you can ask things like, find me a place to eat, or, find a place to eat in Seattle.", "Hello! If you know they type of food you want to eat, you can ask things like, find me a thai place to eat, or, find a burger place to eat in Seattle.", "Hello! You can leave all the decision making up to us, just ask, find me a place to eat, or find me a place in Bellevue", "Hey! You can be very direct, just ask, find me an ice cream place to eat in Redmond, or to leave it up to us, just say, find me a place to eat." ]; //========================================================================================================================================= //Editing anything below this line might break your skill. //========================================================================================================================================= function buildHandlers(event) { var handlers = { "LaunchRequest": function() { const greetingsIndex = Math.floor(Math.random() * greetings.length); const randomGreeting = greetings[greetingsIndex]; const speechOutput = randomGreeting; this.response.cardRenderer(SKILL_NAME, randomGreeting); this.response.speak(speechOutput); this.emit(":responseReady"); }, "getGreeting": async function() { console.log(null); }, "findRestaurant": function(){ const myLocation = event.request.intent.slots.city.value; const myCategory = event.request.intent.slots.place.value; const search = { term: myCategory, radius: 10000, limit: 50, open_now: true, category: "food,All" }; if (myLocation) { search.location = location; } else { search.location = await getLocation(event); } client .search(search) .then(response => { let clientResponse = response.jsonBody.businesses; let len = clientResponse.length; if (len === 0) { console.log("No Locations"); res.send("No Locations"); return; } let choice = Math.floor(Math.random() * (len + 1)); let miles = clientResponse[choice].distance * 0.00062137; console.log("------------------------------------------"); console.log(` Picked: ${clientResponse[choice].name} Miles Away: ${miles} Options Length: ${len} Options Choice Number: ${choice} `); console.log("------------------------------------------"); this.response.speak(`How about trying out ${place}. It is ${miles} away from your location given and is currently open.`); }) .catch(e => { console.log(e); res.send(e); }); }, "AMAZON.HelpIntent": function() { const speechOutput = HELP_MESSAGE; const reprompt = HELP_REPROMPT; this.response.speak(speechOutput).listen(reprompt); this.emit(":responseReady"); }, "AMAZON.CancelIntent": function() { this.response.speak(STOP_MESSAGE); this.emit(":responseReady"); }, "AMAZON.StopIntent": function() { this.response.speak(STOP_MESSAGE); this.emit(":responseReady"); } }; } exports.handler = function(event, context, callback) { const alexa = Alexa.handler(event, context, callback); alexa.APP_ID = APP_ID; alexa.registerHandlers(buildHandlers); alexa.execute(); }; function getLocation(event){ //generate the voice response using this.response.speak this.response.speak('Please grant skill permissions to access your device address.'); const permissions = ['read::alexa:device:all:address']; this.response.askForPermissionsConsentCard(permissions); this.emit(':responseReady'); //grabbing the deviceID and api access token const token = event.context.System.apiAccessToken const deviceId = event.context.System.device.deviceId; //getting the api endpoint const apiEndpoint = event.context.System.apiEndpoint; // Grabbing the address and then saving it as a string for later const das = new Alexa.services.DeviceAddressService(); const city; das.getFullAddress(deviceId, apiEndpoint, token) .then((data) => { //this.response.speak('<address information>'); JSON.stringify(data); //turning the address into a string. city = data.city; //this.response.speak("You are in " + data.city); this.emit(':responseReady'); }) .catch((error) => { this.response.speak('I\'m sorry. Something went wrong.'); this.emit(':responseReady'); console.log(error.message); }); return city; }
42.554839
155
0.56792
52e9fc780ce32dd7e8ba1ce020222e5d0b541513
507
js
JavaScript
pages/_app.js
bmealhouse/next-redux-saga
0a0a2d33290fe48f3c1402925e7b2259a137f47a
[ "MIT" ]
202
2017-07-29T14:11:35.000Z
2022-03-24T17:08:41.000Z
pages/_app.js
bmealhouse/next-redux-saga
0a0a2d33290fe48f3c1402925e7b2259a137f47a
[ "MIT" ]
69
2017-08-09T07:22:48.000Z
2020-09-12T01:54:37.000Z
pages/_app.js
bmealhouse/next-redux-saga
0a0a2d33290fe48f3c1402925e7b2259a137f47a
[ "MIT" ]
42
2017-07-23T22:50:05.000Z
2022-03-28T09:11:28.000Z
import React from 'react' import App from 'next/app' import wrapper from '../test/store/store-wrapper' class ExampleApp extends App { static async getInitialProps({Component, ctx}) { let pageProps = {} if (Component.getInitialProps) { pageProps = await Component.getInitialProps({ctx}) } return {pageProps} } render() { const {Component, pageProps} = this.props return ( <Component {...pageProps} /> ) } } export default wrapper.withRedux(ExampleApp)
18.107143
56
0.662722
52e9ff4bfd3465583f00438707a080074785bda6
724
js
JavaScript
node_modules/inline-style-prefixer/static/plugins/filter.js
EduEvents/Project
f4b0dae67dc327647042be3b5cd695b917dd451d
[ "MIT" ]
null
null
null
node_modules/inline-style-prefixer/static/plugins/filter.js
EduEvents/Project
f4b0dae67dc327647042be3b5cd695b917dd451d
[ "MIT" ]
null
null
null
node_modules/inline-style-prefixer/static/plugins/filter.js
EduEvents/Project
f4b0dae67dc327647042be3b5cd695b917dd451d
[ "MIT" ]
2
2018-03-29T14:31:18.000Z
2018-07-28T23:45:34.000Z
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = filter; var _isPrefixedValue = require("css-in-js-utils/lib/isPrefixedValue"); var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // http://caniuse.com/#feat=css-filter-function var prefixes = ["-webkit-", ""]; function filter(property, value) { if (typeof value === "string" && !(0, _isPrefixedValue2.default)(value) && value.indexOf("filter(") > -1) { return prefixes.map(function (prefix) { return value.replace(/filter\(/g, prefix + "filter("); }); } } module.exports = exports["default"];
31.478261
109
0.689227
52ea438678ac07f28927e15119c74104b08c2749
2,097
js
JavaScript
next.config.js
dxos/dashboard
0ee6ba18d870ca6f76a594e2cca9eefda8c60e48
[ "MIT" ]
1
2020-06-02T19:05:46.000Z
2020-06-02T19:05:46.000Z
next.config.js
dxos/dashboard
0ee6ba18d870ca6f76a594e2cca9eefda8c60e48
[ "MIT" ]
29
2020-02-21T18:30:03.000Z
2020-05-20T18:21:39.000Z
next.config.js
dxos/dashboard
0ee6ba18d870ca6f76a594e2cca9eefda8c60e48
[ "MIT" ]
1
2021-05-06T20:23:17.000Z
2021-05-06T20:23:17.000Z
// // Copyright 2020 DxOS // const path = require('path'); const webpack = require('webpack'); const withImages = require('next-images'); const VersionFile = require('webpack-version-file-plugin'); // Build-time config. const DEFAULTS_FILE = (process.env.NODE_ENV === 'production') ? 'defaults-prod' : 'defaults-dev'; // NOTE: The same environment variables must be used for build and start. console.log('Config:', DEFAULTS_FILE, process.env.CONFIG_FILE); module.exports = withImages({ // The equivalent of PUBLIC_URL is not supported so fake it by serving pages and assets from the "/console" folder. // https://github.com/zeit/next.js/issues/5602 assetPrefix: (process.env.NODE_ENV === 'production') ? '/console' : '', webpack(config) { // TODO(burdon): ??? // config.browser = { // child_process: false // }; // Required for getServerSideProps server-only require/imports. config.node = { fs: 'empty' }; config.module.rules.push( { test: /\.txt$/i, use: 'raw-loader', }, { test: /\.ya?ml$/, use: 'js-yaml-loader', }, ); config.plugins.push( // Define directly since EnvironmentPlugin shows warnings for undefined variables. new webpack.DefinePlugin({ // production/development 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV), // Logging. 'process.env.DEBUG': JSON.stringify(process.env.DEBUG), // Dynamic config. 'process.env.CONFIG_FILE': JSON.stringify(process.env.CONFIG_FILE) }), // Define the build config file based on the target. // https://webpack.js.org/plugins/normal-module-replacement-plugin new webpack.NormalModuleReplacementPlugin(/(.*)__DEFAULTS_FILE__/, (resource) => { resource.request = resource.request.replace(/__DEFAULTS_FILE__/, DEFAULTS_FILE); }), new VersionFile({ packageFile: path.join(__dirname, 'package.json'), outputFile: path.join(__dirname, 'version.json') }) ); return config; } });
28.337838
117
0.638054
52ea8ca7283926cb0198f44bcd6bd8f02df8aef4
642
js
JavaScript
server/models/user.js
Aishwarya-R0/git-mernemp-herokudocker
ffec34204abc877acd75f368cff517705a5d73c4
[ "MIT" ]
9
2021-01-08T21:51:47.000Z
2022-01-13T06:08:13.000Z
server/models/user.js
Aishwarya-R0/git-mernemp-herokudocker
ffec34204abc877acd75f368cff517705a5d73c4
[ "MIT" ]
null
null
null
server/models/user.js
Aishwarya-R0/git-mernemp-herokudocker
ffec34204abc877acd75f368cff517705a5d73c4
[ "MIT" ]
6
2020-05-27T14:18:29.000Z
2022-03-01T15:10:38.000Z
const Mongoose = require('mongoose'); const { Schema } = Mongoose; // User Schema const UserSchema = new Schema({ email: { type: String, required: true }, profile: { firstName: { type: String }, lastName: { type: String }, is_subscribed: { type: Boolean } }, password: { type: String, required: true }, role: { type: String, enum: ['ROLE_MEMBER', 'ROLE_ADMIN'], default: 'ROLE_MEMBER' }, isMerchant: { type: Boolean, default: false }, resetPasswordToken: { type: String }, resetPasswordExpires: { type: Date } }); module.exports = Mongoose.model('User', UserSchema);
18.882353
52
0.610592
52eb61e2733f67f92c8b61a54838cd142d19066f
15,243
js
JavaScript
lib/animate/effects.js
longxianglu/FFCreator
84c66cd14206916f58d26102bc67b511175f51cc
[ "MIT" ]
2
2021-08-04T08:16:48.000Z
2022-02-26T13:27:39.000Z
lib/animate/effects.js
longxianglu/FFCreator
84c66cd14206916f58d26102bc67b511175f51cc
[ "MIT" ]
null
null
null
lib/animate/effects.js
longxianglu/FFCreator
84c66cd14206916f58d26102bc67b511175f51cc
[ "MIT" ]
null
null
null
'use strict'; /** * Effects - Some simulation css animation effects collection * Effect realizes the animation of `animate.css` _4.1.0_ version https://animate.style/ * * ####Example: * * const ani = Effects.getAnimation({ type, time, delay }, attr); * * * ####Note: * The animation that was not written here (`animate.css` _4.1.0_) * - Attention seekers * bounce flash pulse rubberBand shakeX shakeY headShake swing tada wobble jello heartBeat * * - Fading * fadeInTopLeft fadeInTopRight fadeInBottomLeft fadeInBottomRight * fadeOutTopLeft fadeOutTopRight fadeOutBottomRight fadeOutBottomLeft * * - Flippers * flip flipInX flipInY flipOutX flipOutY * * - Lightspeed * lightSpeedInRight lightSpeedInLeft lightSpeedOutRight lightSpeedOutLeft * * - Specials * hinge jackInTheBox * * * @class */ const merge = require('lodash/merge'); const isArray = require('lodash/isArray'); const forEach = require('lodash/forEach'); const shuffle = require('lodash/shuffle'); const cloneDeep = require('lodash/cloneDeep'); const Utils = require('../utils/utils'); const Effects = {}; /** * mappingFromToVal key */ const TARGET = '_target_'; const TARGET_UP = '_target_up_'; const TARGET_DOWN = '_target_down_'; const TARGET_LEFT = '_target_left_'; const TARGET_RIGHT = '_target_right_'; const TARGET_UP_BIG = '_target_up_big_'; const TARGET_DOWN_BIG = '_target_down_big_'; const TARGET_LEFT_BIG = '_target_left_big_'; const TARGET_RIGHT_BIG = '_target_right_big_'; const TARGET_ROTATE = '_target_rotate_'; const TARGET_ROTATE_LEFT = '_target_rotate_left_'; const TARGET_ROTATE_LEFT_BIG = '_target_rotate_left_big_'; const TARGET_ROTATE_RIGHT = '_target_rotate_right_'; const TARGET_ROTATE_RIGHT_BIG = '_target_rotate_right_big_'; /** * base props */ const TIME = 2; const LONG_TIME = 30; const DELAY_IN = 0.1; const DELAY_OUT = 5; const MIN_DIS = 150; const MAX_DIS = 550; const MIN_ROT = 90; const MAX_ROT = 180; const ZOOMING_SPEED = 0.05; const MOVEING_SPEED = 20; const INS = { time: TIME, delay: DELAY_IN, ease: 'Quadratic.Out', type: 'in' }; const OUTS = { time: TIME, delay: DELAY_OUT, ease: 'Quadratic.In', type: 'out' }; const INSING = { time: LONG_TIME, delay: DELAY_IN, type: 'ining' }; const OUTSING = { time: LONG_TIME, delay: DELAY_OUT, type: 'outing' }; /** * all effects config */ Effects.effects = { // Fading In Out fadeIn: { from: { opacity: 0 }, to: { opacity: 1 }, ...INS, ease: 'Linear.None' }, fadeOut: { from: { opacity: 1 }, to: { opacity: 0 }, ...OUTS }, fadeInLeft: ['fadeIn', { ...INS, from: TARGET_LEFT, to: TARGET }], fadeInRight: ['fadeIn', { ...INS, from: TARGET_RIGHT, to: TARGET }], fadeInUp: ['fadeIn', { ...INS, from: TARGET_DOWN, to: TARGET }], fadeInDown: ['fadeIn', { ...INS, from: TARGET_UP, to: TARGET }], fadeInLeftBig: ['fadeIn', { ...INS, from: TARGET_LEFT_BIG, to: TARGET }], fadeInRightBig: ['fadeIn', { ...INS, from: TARGET_RIGHT_BIG, to: TARGET }], fadeInUpBig: ['fadeIn', { ...INS, from: TARGET_DOWN_BIG, to: TARGET }], fadeInDownBig: ['fadeIn', { ...INS, from: TARGET_UP_BIG, to: TARGET }], fadeOutLeft: ['fadeOut', { ...OUTS, from: TARGET, to: TARGET_LEFT }], fadeOutRight: ['fadeOut', { ...OUTS, from: TARGET, to: TARGET_RIGHT }], fadeOutUp: ['fadeOut', { ...OUTS, from: TARGET, to: TARGET_UP }], fadeOutDown: ['fadeOut', { ...OUTS, from: TARGET, to: TARGET_DOWN }], fadeOutLeftBig: ['fadeOut', { ...OUTS, from: TARGET, to: TARGET_LEFT_BIG }], fadeOutRightBig: ['fadeOut', { ...OUTS, from: TARGET, to: TARGET_RIGHT_BIG }], fadeOutUpBig: ['fadeOut', { ...OUTS, from: TARGET, to: TARGET_UP_BIG }], fadeOutDownBig: ['fadeOut', { ...OUTS, from: TARGET, to: TARGET_DOWN_BIG }], // Back In Out backIn: [{ ...INS, from: { scale: 0.1 }, to: { scale: 1 }, ease: 'Back.Out' }, 'fadeIn'], backOut: [{ ...OUTS, from: { scale: 1 }, to: { scale: 0.3 }, ease: 'Back.In' }, 'fadeOut'], backInLeft: [ 'fadeIn', { from: { scale: 0.7 }, to: { scale: 1 } }, { ...INS, from: TARGET_LEFT_BIG, to: TARGET, ease: 'Back.Out' }, ], backInRight: [ 'fadeIn', { from: { scale: 0.7 }, to: { scale: 1 } }, { ...INS, from: TARGET_RIGHT_BIG, to: TARGET, ease: 'Back.Out' }, ], backInUp: [ 'fadeIn', { from: { scale: 0.7 }, to: { scale: 1 } }, { ...INS, from: TARGET_DOWN_BIG, to: TARGET, ease: 'Back.Out' }, ], backInDown: [ 'fadeIn', { from: { scale: 0.7 }, to: { scale: 1 } }, { ...INS, from: TARGET_UP_BIG, to: TARGET, ease: 'Back.Out' }, ], backOutLeft: [ 'fadeOut', { from: { scale: 1 }, to: { scale: 0.7 } }, { ...OUTS, to: TARGET_LEFT_BIG, from: TARGET, ease: 'Back.In' }, ], backOutRight: [ 'fadeOut', { from: { scale: 1 }, to: { scale: 0.7 } }, { ...OUTS, to: TARGET_RIGHT_BIG, from: TARGET, ease: 'Back.In' }, ], backOutUp: [ 'fadeOut', { from: { scale: 1 }, to: { scale: 0.7 } }, { ...OUTS, to: TARGET_UP_BIG, from: TARGET, ease: 'Back.In' }, ], backOutDown: [ 'fadeOut', { from: { scale: 1 }, to: { scale: 0.7 } }, { ...OUTS, to: TARGET_DOWN_BIG, from: TARGET, ease: 'Back.In' }, ], // Elastic In Out bounceIn: ['fadeIn', { ...INS, from: { scale: 0.1 }, to: { scale: 1 }, ease: 'Elastic.Out' }], bounceInDown: [ 'fadeIn', { from: { scale: 0.3 }, to: { scale: 1 } }, { ...INS, from: TARGET_UP, to: TARGET, ease: 'Elastic.Out' }, ], bounceInUp: [ 'fadeIn', { from: { scale: 0.3 }, to: { scale: 1 } }, { ...INS, from: TARGET_DOWN, to: TARGET, ease: 'Elastic.Out' }, ], bounceInLeft: [ 'fadeIn', { from: { scale: 0.3 }, to: { scale: 1 } }, { ...INS, from: TARGET_LEFT, to: TARGET, ease: 'Elastic.Out' }, ], bounceInRight: [ 'fadeIn', { from: { scale: 0.3 }, to: { scale: 1 } }, { ...INS, from: TARGET_RIGHT, to: TARGET, ease: 'Elastic.Out' }, ], bounceOut: ['fadeOut', { ...OUTS, from: { scale: 1 }, to: { scale: 0.3 }, ease: 'Elastic.In' }], bounceOutDown: [ 'fadeOut', { from: { scale: 1 }, to: { scale: 0.3 } }, { ...OUTS, from: TARGET, to: TARGET_DOWN, ease: 'Elastic.In' }, ], bounceOutLeft: [ 'fadeOut', { from: { scale: 1 }, to: { scale: 0.3 } }, { ...OUTS, from: TARGET, to: TARGET_LEFT, ease: 'Elastic.In' }, ], bounceOutRight: [ 'fadeOut', { from: { scale: 1 }, to: { scale: 0.3 } }, { ...OUTS, from: TARGET, to: TARGET_RIGHT, ease: 'Elastic.In' }, ], bounceOutUp: [ 'fadeOut', { from: { scale: 1 }, to: { scale: 0.3 } }, { ...OUTS, from: TARGET, to: TARGET_UP, ease: 'Elastic.In' }, ], // Rotate In Out rotateIn: ['fadeIn', { ...INS, from: TARGET_ROTATE_LEFT, to: TARGET_ROTATE }], rotateOut: ['fadeOut', { ...OUTS, from: TARGET_ROTATE, to: TARGET_ROTATE_RIGHT }], rotateInDownLeft: [ 'fadeIn', { from: TARGET_LEFT, to: TARGET }, { from: { scale: 0.3 }, to: { scale: 1 } }, { ...INS, from: TARGET_ROTATE_LEFT_BIG, to: TARGET_ROTATE }, ], rotateInDownRight: [ 'fadeIn', { from: TARGET_RIGHT, to: TARGET }, { from: { scale: 0.3 }, to: { scale: 1 } }, { ...INS, from: TARGET_ROTATE_LEFT_BIG, to: TARGET_ROTATE }, ], rotateInUpLeft: [ 'fadeIn', { from: TARGET_DOWN, to: TARGET }, { from: { scale: 0.3 }, to: { scale: 1 } }, { ...INS, from: TARGET_ROTATE_LEFT_BIG, to: TARGET_ROTATE }, ], rotateInUpRight: [ 'fadeIn', { from: TARGET_UP, to: TARGET }, { from: { scale: 0.3 }, to: { scale: 1 } }, { ...INS, from: TARGET_ROTATE_LEFT_BIG, to: TARGET_ROTATE }, ], rotateOutDownLeft: [ 'fadeOut', { from: TARGET, to: TARGET_LEFT }, { from: { scale: 1 }, to: { scale: 0.3 } }, { ...OUTS, from: TARGET_ROTATE, to: TARGET_ROTATE_RIGHT_BIG }, ], rotateOutDownRight: [ 'fadeOut', { from: TARGET, to: TARGET_RIGHT }, { from: { scale: 1 }, to: { scale: 0.3 } }, { ...OUTS, from: TARGET_ROTATE, to: TARGET_ROTATE_RIGHT_BIG }, ], rotateOutUpLeft: [ 'fadeOut', { from: TARGET, to: TARGET_UP }, { from: { scale: 1 }, to: { scale: 0.3 } }, { ...OUTS, from: TARGET_ROTATE, to: TARGET_ROTATE_RIGHT_BIG }, ], rotateOutUpRight: [ 'fadeOut', { from: TARGET, to: TARGET_DOWN }, { from: { scale: 1 }, to: { scale: 0.3 } }, { ...OUTS, from: TARGET_ROTATE, to: TARGET_ROTATE_RIGHT_BIG }, ], // Roll In Out rollIn: [ 'fadeInUp', { from: { scale: 0.5 }, to: { scale: 1 } }, { ...INS, from: TARGET_ROTATE_LEFT_BIG, to: TARGET_ROTATE }, ], rollOut: [ 'fadeOutDown', { from: { scale: 1 }, to: { scale: 0.5 } }, { ...OUTS, to: TARGET_ROTATE_RIGHT_BIG, from: TARGET_ROTATE }, ], // Zoom In Out zoomIn: ['fadeIn', { ...INS, from: { scale: 0.3 }, to: { scale: 1 } }], zoomInDown: [ 'fadeIn', { from: TARGET_UP, to: TARGET }, { ...INS, from: { scale: 0.3 }, to: { scale: 1 }, ease: 'Back.Out' }, ], zoomInLeft: [ 'fadeIn', { from: TARGET_LEFT, to: TARGET }, { ...INS, from: { scale: 0.3 }, to: { scale: 1 }, ease: 'Back.Out' }, ], zoomInRight: [ 'fadeIn', { from: TARGET_RIGHT, to: TARGET }, { ...INS, from: { scale: 0.3 }, to: { scale: 1 }, ease: 'Back.Out' }, ], zoomInUp: [ 'fadeIn', { from: TARGET_DOWN, to: TARGET }, { ...INS, from: { scale: 0.3 }, to: { scale: 1 }, ease: 'Back.Out' }, ], zoomOut: ['fadeOut', { ...OUTS, from: { scale: 1 }, to: { scale: 0.3 } }], zoomOutDown: [ 'fadeOut', { from: TARGET, to: TARGET_DOWN }, { ...OUTS, from: { scale: 1 }, to: { scale: 0.3 }, ease: 'Back.In' }, ], zoomOutLeft: [ 'fadeOut', { from: TARGET, to: TARGET_LEFT }, { ...OUTS, from: { scale: 1 }, to: { scale: 0.3 }, ease: 'Back.In' }, ], zoomOutRight: [ 'fadeOut', { from: TARGET, to: TARGET_RIGHT }, { ...OUTS, from: { scale: 1 }, to: { scale: 0.3 }, ease: 'Back.In' }, ], zoomOutUp: [ 'fadeOut', { from: TARGET, to: TARGET_UP }, { ...OUTS, from: { scale: 1 }, to: { scale: 0.3 }, ease: 'Back.In' }, ], // Slide In Out slideInDown: { ...INS, from: TARGET_UP, to: TARGET }, slideInLeft: { ...INS, from: TARGET_LEFT, to: TARGET }, slideInRight: { ...INS, from: TARGET_RIGHT, to: TARGET }, slideInUp: { ...INS, from: TARGET_DOWN, to: TARGET }, slideOutDown: { ...OUTS, to: TARGET_DOWN, from: TARGET }, slideOutLeft: { ...OUTS, to: TARGET_LEFT, from: TARGET }, slideOutRight: { ...OUTS, to: TARGET_RIGHT, from: TARGET }, slideOutUp: { ...OUTS, to: TARGET_UP, from: TARGET }, // background effect ing... zoomingIn: [{ ...INSING, from: { scale: 1 }, add: { scale: ZOOMING_SPEED }, mask: true }], zoomingOut: [{ ...INSING, from: { scale: 2 }, add: { scale: -ZOOMING_SPEED }, mask: true }], moveingLeft: [{ ...INSING, from: TARGET, add: { x: -MOVEING_SPEED } }], moveingRight: [{ ...INSING, from: TARGET, add: { x: MOVEING_SPEED } }], moveingUp: [{ ...INSING, from: TARGET, add: { y: -MOVEING_SPEED } }], moveingBottom: [{ ...INSING, from: TARGET, add: { y: MOVEING_SPEED } }], fadingIn: { ...INSING, from: { opacity: 0 }, to: { opacity: 1 } }, fadingOut: { ...OUTSING, from: { opacity: 1 }, to: { opacity: 0 } }, }; /** * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * STATIC METHODS * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ /** * Map pronouns to numeric values * @param {object} conf - Animation configuration-including time and delay, etc. * @param {object} attrs - Display object display attributes * @public */ Effects.getAnimation = function(conf, attrs) { const effect = this.getEffect(conf.type); if (!effect) return null; let ani = {}; if (isArray(effect)) { for (let i = 0; i < effect.length; i++) { let ef = effect[i]; // like 'fadeIn' if (typeof ef === 'string') ef = this.getEffect(ef); ef = this.mappingToRealAttr(ef, attrs, conf); ani = merge(ani, ef); } } else { ani = this.mappingToRealAttr(effect, attrs, conf); } return ani; }; /** * Get effect based on type name * @param {string} type - type name * @public */ Effects.getEffect = function(type) { const effect = this.effects[type]; if (!effect) return null; return cloneDeep(effect); }; /** * Create new effect and add to effects object * @param {string} name - the new effect name * @param {object} valObj - the new effect value * @public */ Effects.createEffect = function(name, valObj) { const effect = { // from: {}, // to: {}, time: 1.2, delay: 0.1, type: 'in', ease: 'Linear.None', ...valObj, }; this.effects[name] = effect; }; /** * Get a random effect name * @public */ Effects.getRandomEffectName = function() { let arr = []; const checkPushName = (type, key) => { if (type === 'in' && arr.indexOf(key) < 0) arr.push(key); }; for (let key in this.effects) { const ef = this.effects[key]; if (isArray(ef)) { forEach(ef, e => checkPushName(e.type, key)); } else { checkPushName(ef.type, key); } } return shuffle(arr); }; /** * Mapping to real attr, Reset attributes such as from to time * @param {string} type - type name * @private */ Effects.mappingToRealAttr = function(effect, attrs, conf) { // 1. reset from to effect.from = this.getMappingVal(effect.from, attrs); effect.to = this.getMappingVal(effect.to, attrs); // 2. merge conf time delay etc. effect = Utils.mergeExclude(effect, conf, ['type']); // 3. convert add to toVal if (effect.add) { effect.to = {}; for (let key in effect.add) { if (key === 'scale') { effect.to[key] = effect.from[key] + effect.add[key] * effect.time; } else { effect.to[key] = effect.from[key] + effect.add[key] * effect.time; } } } return effect; }; Effects.getMappingVal = function(fakeVal, attrs) { let val = fakeVal; switch (fakeVal) { case TARGET: val = { x: attrs.x, y: attrs.y }; break; // up / down/ left/ right case TARGET_LEFT: val = { x: attrs.x - MIN_DIS, y: attrs.y }; break; case TARGET_RIGHT: val = { x: attrs.x + MIN_DIS, y: attrs.y }; break; case TARGET_UP: val = { x: attrs.x, y: attrs.y - MIN_DIS }; break; case TARGET_DOWN: val = { x: attrs.x, y: attrs.y + MIN_DIS }; break; // big up / down/ left/ right case TARGET_LEFT_BIG: val = { x: attrs.x - MAX_DIS, y: attrs.y }; break; case TARGET_RIGHT_BIG: val = { x: attrs.x + MAX_DIS, y: attrs.y }; break; case TARGET_UP_BIG: val = { x: attrs.x, y: attrs.y - MAX_DIS }; break; case TARGET_DOWN_BIG: val = { x: attrs.x, y: attrs.y + MAX_DIS }; break; // rotate case TARGET_ROTATE: val = { rotate: attrs.rotate }; break; case TARGET_ROTATE_LEFT: val = { rotate: attrs.rotate - MIN_ROT }; break; case TARGET_ROTATE_LEFT_BIG: val = { rotate: attrs.rotate - MAX_ROT }; break; case TARGET_ROTATE_RIGHT: val = { rotate: attrs.rotate + MIN_ROT }; break; case TARGET_ROTATE_RIGHT_BIG: val = { rotate: attrs.rotate + MAX_ROT }; break; } return val; }; module.exports = Effects;
31.108163
98
0.578298
52eb92794f2f31059ff6ca97414d03623e81affe
1,178
js
JavaScript
node_modules/caniuse-lite/data/features/css3-tabsize.js
harrriii/enrollmentsystem
2e78a329e94155a50975d4af16237c87e4998956
[ "MIT" ]
67
2020-08-06T09:06:20.000Z
2022-03-28T23:16:11.000Z
node_modules/caniuse-lite/data/features/css3-tabsize.js
harrriii/enrollmentsystem
2e78a329e94155a50975d4af16237c87e4998956
[ "MIT" ]
12
2021-11-10T09:10:17.000Z
2022-02-23T15:07:58.000Z
node_modules/caniuse-lite/data/features/css3-tabsize.js
harrriii/enrollmentsystem
2e78a329e94155a50975d4af16237c87e4998956
[ "MIT" ]
47
2020-12-17T00:40:09.000Z
2022-03-01T22:01:25.000Z
module.exports={A:{A:{"2":"I D F E A B nB"},B:{"1":"Z MB M N S T U V W","2":"C O H P J K L"},C:{"2":"mB cB uB xB","33":"9 AB BB CB DB EB FB GB SB IB JB KB LB R NB OB PB QB HB Y XB TB UB VB WB RB Z MB M lB N S T U V","164":"0 1 2 3 4 5 6 7 8 G a I D F E A B C O H P J K L b c d e f g h i j k l m n o p q r s t u v w x y z"},D:{"1":"0 1 2 3 4 5 6 7 8 9 y z AB BB CB DB EB FB GB SB IB JB KB LB R NB OB PB QB HB Y XB TB UB VB WB RB Z MB M N S T U V W zB dB eB","2":"G a I D F E A B C O H P J K L b c","132":"d e f g h i j k l m n o p q r s t u v w x"},E:{"1":"H oB pB","2":"G a I fB YB hB","132":"D F E A B C O iB jB kB ZB X Q"},F:{"1":"0 1 2 3 4 5 6 7 8 9 l m n o p q r s t u v w x y z AB BB CB DB EB GB IB JB KB LB R NB OB PB QB HB Y","2":"E qB rB sB","132":"P J K L b c d e f g h i j k","164":"B C tB X aB vB Q"},G:{"1":"DC EC","2":"YB wB bB yB XC","132":"F 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC"},H:{"164":"FC"},I:{"1":"M","2":"cB G GC HC IC JC bB","132":"KC LC"},J:{"132":"D A"},K:{"1":"FB","2":"A","164":"B C X aB Q"},L:{"1":"W"},M:{"33":"N"},N:{"2":"A B"},O:{"1":"MC"},P:{"1":"G NC OC PC QC RC ZB SC TC UC"},Q:{"1":"VC"},R:{"1":"WC"},S:{"164":"gB"}},B:5,C:"CSS3 tab-size"};
589
1,177
0.495756
52eba2ea239a2c5d5bb937c998fac684b8a538ed
4,445
js
JavaScript
src/cli_plugin/install/zip.js
yojiwatanabe/kibana
1225c32fac1e21d2648f83ee77d01ca2c425cd7a
[ "Apache-2.0" ]
2
2021-04-04T20:57:55.000Z
2022-01-04T22:22:20.000Z
src/cli_plugin/install/zip.js
yojiwatanabe/kibana
1225c32fac1e21d2648f83ee77d01ca2c425cd7a
[ "Apache-2.0" ]
12
2020-04-20T18:10:48.000Z
2020-07-07T21:24:29.000Z
src/cli_plugin/install/zip.js
yojiwatanabe/kibana
1225c32fac1e21d2648f83ee77d01ca2c425cd7a
[ "Apache-2.0" ]
1
2019-07-15T15:37:18.000Z
2019-07-15T15:37:18.000Z
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import yauzl from 'yauzl'; import path from 'path'; import { createWriteStream, mkdir } from 'fs'; import { get } from 'lodash'; /** * Returns an array of package objects. There will be one for each of * package.json files in the archive * * @param {string} archive - path to plugin archive zip file */ export function analyzeArchive(archive) { const plugins = []; const regExp = new RegExp('(kibana[\\\\/][^\\\\/]+)[\\\\/]package.json', 'i'); return new Promise((resolve, reject) => { yauzl.open(archive, { lazyEntries: true }, function (err, zipfile) { if (err) { return reject(err); } zipfile.readEntry(); zipfile.on('entry', function (entry) { const match = entry.fileName.match(regExp); if (!match) { return zipfile.readEntry(); } zipfile.openReadStream(entry, function (err, readable) { const chunks = []; if (err) { return reject(err); } readable.on('data', (chunk) => chunks.push(chunk)); readable.on('end', function () { const contents = Buffer.concat(chunks).toString(); const pkg = JSON.parse(contents); plugins.push( Object.assign(pkg, { archivePath: match[1], archive: archive, // Plugins must specify their version, and by default that version should match // the version of kibana down to the patch level. If these two versions need // to diverge, they can specify a kibana.version to indicate the version of // kibana the plugin is intended to work with. kibanaVersion: get(pkg, 'kibana.version', pkg.version), }) ); zipfile.readEntry(); }); }); }); zipfile.on('close', () => { resolve(plugins); }); }); }); } const isDirectoryRegex = /(\/|\\)$/; export function _isDirectory(filename) { return isDirectoryRegex.test(filename); } export function extractArchive(archive, targetDir, extractPath) { return new Promise((resolve, reject) => { yauzl.open(archive, { lazyEntries: true }, function (err, zipfile) { if (err) { return reject(err); } zipfile.readEntry(); zipfile.on('close', resolve); zipfile.on('entry', function (entry) { let fileName = entry.fileName; if (extractPath && fileName.startsWith(extractPath)) { fileName = fileName.substring(extractPath.length); } else { return zipfile.readEntry(); } if (targetDir) { fileName = path.join(targetDir, fileName); } if (_isDirectory(fileName)) { mkdir(fileName, { recursive: true }, function (err) { if (err) { return reject(err); } zipfile.readEntry(); }); } else { // file entry zipfile.openReadStream(entry, function (err, readStream) { if (err) { return reject(err); } // ensure parent directory exists mkdir(path.dirname(fileName), { recursive: true }, function (err) { if (err) { return reject(err); } readStream.pipe( createWriteStream(fileName, { mode: entry.externalFileAttributes >>> 16 }) ); readStream.on('end', function () { zipfile.readEntry(); }); }); }); } }); }); }); }
29.832215
95
0.568279
52ec40b4b281941ac9e8f91b205697e89d5ffc50
17,372
js
JavaScript
build/static/js/main.c39d9685.chunk.js
edyst/swiggy-landing-page-reactjs-Harsidak17
3203e1023b5ae75f01cbc7a699bf73cdb7901e6c
[ "MIT" ]
null
null
null
build/static/js/main.c39d9685.chunk.js
edyst/swiggy-landing-page-reactjs-Harsidak17
3203e1023b5ae75f01cbc7a699bf73cdb7901e6c
[ "MIT" ]
null
null
null
build/static/js/main.c39d9685.chunk.js
edyst/swiggy-landing-page-reactjs-Harsidak17
3203e1023b5ae75f01cbc7a699bf73cdb7901e6c
[ "MIT" ]
null
null
null
(this["webpackJsonpswiggy-landing-page-reactjs-simranchawla20"]=this["webpackJsonpswiggy-landing-page-reactjs-simranchawla20"]||[]).push([[0],[,,,,,,,,,,,,,,function(a,r,i){},,function(a,r,i){},function(a,r,i){},function(a,r,i){},function(a,r,i){},function(a,r,i){},function(a,r,i){},,,,,,function(a,r,i){},function(a,r,i){},function(a,r,i){},function(a,r,i){},function(a,r,i){},function(a,r,i){},function(a,r,i){},function(a,r,i){},function(a,r,i){},function(a,r,i){},function(a,r,i){},function(a,r,i){},function(a,r,i){},function(a,r,i){"use strict";i.r(r);var e=i(2),n=i.n(e),t=i(8),s=i.n(t),c=(i(14),i(0));function l(a){return Object(c.jsxs)("div",{className:"feature",children:[Object(c.jsx)("img",{src:a.src,alt:""}),Object(c.jsx)("h2",{children:a.h2}),Object(c.jsxs)("p",{children:[a.para1,Object(c.jsx)("br",{}),a.para2]})]})}i(16);function u(){return Object(c.jsxs)("section",{className:"features",children:[Object(c.jsx)(l,{src:"https://res.cloudinary.com/swiggy/image/upload/fl_lossy,f_auto,q_auto,w_210,h_398/4x_-_No_min_order_x0bxuf",h2:"No Minimum Order",para1:"Order in for yourself or for the group,",para2:" with no restrictions on order value"}),Object(c.jsx)(l,{src:"https://res.cloudinary.com/swiggy/image/upload/fl_lossy,f_auto,q_auto,w_224,h_412/4x_Live_order_zzotwy",h2:"Live Order Tracking",para1:"Know where your order is at all times,",para2:" from the restaurant to your doorstep"}),Object(c.jsx)(l,{src:"https://res.cloudinary.com/swiggy/image/upload/fl_lossy,f_auto,q_auto,w_248,h_376/4x_-_Super_fast_delivery_awv7sn",h2:"Lightning-Fast Delivery",para1:"Experience Swiggy's superfast delivery",para2:"for food delivered fresh & on time"})]})}i(17);function h(a){return Object(c.jsx)("img",{src:a.src,className:a.imgcls,alt:""})}i(18);function o(){return Object(c.jsxs)("div",{className:"infodiv",children:[Object(c.jsxs)("h2",{children:["Restaurants in ",Object(c.jsx)("br",{}),"your pocket"]}),Object(c.jsxs)("p",{className:"infopara",children:["Order from your favorite restaurants & track ",Object(c.jsx)("br",{})," on the go, with the all-new Swiggy app."]}),Object(c.jsxs)("div",{className:"imgdiv",children:[Object(c.jsx)(h,{src:"https://res.cloudinary.com/swiggy/image/upload/fl_lossy,f_auto,q_auto,h_108/play_ip0jfp",imgcls:"googlePlay"}),Object(c.jsx)(h,{src:"https://res.cloudinary.com/swiggy/image/upload/fl_lossy,f_auto,q_auto,h_108/iOS_ajgrty",imgcls:"appStore"})]})]})}i(19);function d(){return Object(c.jsxs)("section",{className:"preview",children:[Object(c.jsx)(o,{}),Object(c.jsx)(h,{src:"https://res.cloudinary.com/swiggy/image/upload/fl_lossy,f_auto,q_auto,w_768,h_978/pixel_wbdy4n",imgcls:"ss1"}),Object(c.jsx)(h,{src:"https://res.cloudinary.com/swiggy/image/upload/fl_lossy,f_auto,q_auto,w_768,h_978/iPhone_wgconp_j0d1fn",imgcls:"ss2"})]})}i(20),i(21);function j(a){return Object(c.jsx)("li",{className:"listitem",children:Object(c.jsx)("a",{href:"#",className:a.txtcls,children:a.text})})}var g=["About us","Team","Careers","Swiggy Blog","Bug Bounty","Swiggy Super","Swiggy Corporate","Swiggy Instamart"],m=["Help & Support","Partner with us","Ride with us"],b=["Terms & Conditions","Refund & Cancellation","Privacy Policy","Cookie Policy","Offer Terms","Phishing & Fraud"],p=[["Abohar","Adilabad","Adityapur","Adoni","Agartala","Agra","Ahmedabad","Ahmednagar","Ajmer","Akola","Alappuzha","Aligarh","Allahabad","Alwar","Ambala","Ambikapur","Ambur","Amravati","Amreli","Amritsar","Amroha","Anand","Anantapur","Ankleshwar","Arrah","Asansol","Ashoknagar","Aurangabad","Aurangabad_bihar","Azamgarh","Baddi","Bagalkot","Bagdogra","Bahadurgarh","Bahraich","Bajpe","Balaghat","Ballari","Balrampur","Balurghat","Bangalore","Bankura","Banswara","Bantwal","Bapatlachirala","Baraut","Bardhaman","Bardoli","Bareilly","Barnala","Barshi","Basirhat","Basti","Batala","Bathinda","Beawar","Beed","Begusarai","Belgaum","Berhampore","Berhampur","Bettiah","Betul","Bhadrachalam","Bhadravati","Bhagalpur","Bhandara","Bharabanki","Bharatpur","Bharuch","Bhatapara","Bhatkal","Bhavnagar","Bhilai","Bhilwara","Bhimavaram","Bhind","Bhiwadi","Bhiwani","Bhopal","Bhubaneswar","Bhuj","Bidar","Biharsharif","Bijapur","Bijnor","Bikaner","Bilaspur","Bina","Bodhan-Rural","Bokaro","Bolpur","Bongaigaon","Bongaon","Botad","Budaun","Budhwal","Bulandshahr","Buldana","Bundi","Burhanpur","Buxar","Central-Goa","Chalakkudy","Chalisgaon","Chandigarh","Chandrapur","Changanasherry","Charkhi-Dadri","Chengannur","Chennai","Cherthala","Chhapra","Chhatarpur","Chhindwara","Chikkaballapur","Chikmagalur","Chilakaluripet","Chitradurga","Chittoor","Chittorgarh","Churu","Coimbatore","Cuddalore","Cuttack","Dabhoi","Dabra","Dahod","Damoh","Darbhanga","Darjeeling","Datia"],["Dausa","Davanagere","Dehradun","Dehri","Delhi","Deoghar","Dewas","Dhamtari","Dhanbad","Dhar","Dharamshala","Dharmapuri","Dharwad","Dhule","Dibrugarh","Digha","Dindigul","Doddaballapura","Duliajan","Durgapur","Eluru","Erode","Etawah","Faizabad","Faridabad","Faridkot","Farrukhabad","Fatehabad","Fatehgarh-Sahib","Fatehpur","Fazilka","Firozabad","Firozpur","Gadag-Betigeri","Gadwal","Gandhidham","Gaya","Gharaunda","Ghaziabad","Giridih","Godhra","Gohana","Gokak","Gokarna","Gonda","Gondal","Gondia","Gopalganj","Gorakhpur","Gudivada","Guna","Guntakal","Guntur","Gurdaspur","Gurgaon","Guwahati","Gwalior","Habra","Haldia","Haldwani","Halol","Hampi","Hansi","Hanumangarh","Hapur","Hardoi","Haridwar","Hassan","Himmatnagar","Hinganghat","Hisar","Hoshangabad","Hoshiarpur","Hospet","Hubli","Hyderabad","Imphal","Indore","Irinjalakuda","Itarsi","Jabalpur","Jagdalpur","Jagraon","Jagtial","Jahanabad","Jaipur","Jalandhar","Jalgaon","Jalna","Jalpaiguri","Jammu","Jamnagar","Jamshedpur","Janjgir","Jaunpur","Jhalawar","Jhansi","Jhunjhunu","Jind","Jodhpur","Jorhat","Junagadh","Kadapa","Kadiri","Kaithal","Kakinada","Kalaburagi","Kalady","Kamareddy","Kanchrapara","Kanker","Kannur","Kanpur","Kanyakumari","Kapurthala","Karad","Karaikkudi","Karimnagar","Karnal","Karunagappaly","Karur","Karwar","Kashipur","Katihar","Katni","Kavali","Kayamkulam","Khammam","Khandwa","Khanna","Kharagpur","Khargone"],["Kishanganj","Kishangarh","Kochi","Kodaikanal","Kolar","Kolhapur","Kolkata","Kollam","Korba","Kota","Kothagudem","Kothamanagalam","Kottakkal","Kottarakkara","Kottayam","Kozhikode","Krishnagiri","Krishnanagar","Kuchaman","Kumbakonam","Kumta","Kundapura","Kurnool","Kurukshetra","Lakhimpur","Lalitpur","Latur","Lonavala","Lonavla","Lucknow","Ludhiana","Machilipatnam","Madanapalle","Madikeri","Madurai","Mahasamund","Mahbubnagar","Malappuram","Malda","Malegaon","Mallapuram","Malout","Mancherial","Mandi-Dabwali","Mandsaur","Mandya","Mangaluru","Manipal","Manjeri","Mansa","Markapur","Mathura","Maunath-Bhanjan","Medak","Medinipur","Meerut","Mehsana","Miryalaguda","Mirzapur","Modinagar","Moga","Moodbidri","Moradabad","Morbi","Morbi-2","Morena","Motihari","Mount-Abu","Mughalsarai","Muktsar","Mumbai","Munger","Murdeshwar","Mussoorie","Muvattupuzha","Muzaffarnagar","Muzaffarpur","Mysore","Nabadwip","Nadiad","Nagaon","Nagapattinam","Nagda","Nagercoil","Nagpur","Nagur","Nainital","Nalgonda","Namakkal","Nanded","Nandurbar","Nandyal","Nangal","Naraingarh","Narasaraopet","Narnaul","Narwana","Nashik","Nathdwara","Navsari","Neemuch","Nellore","Neyveli","Nipani","Nirmal","Nizamabad","Noida","Noida-1","North-Goa","Ongole","Ooty","Orai","Osmanabad","Pala","Palakkad","Palanpur","Pali","Palwal","Panipat","Parbhani","Patan","Pathankot","Patiala","Patna","Perinthalmanna","Phagwara","Phaltan","Pilani","Pilibhit","Pondicherry","Porbandar","Proddatur"],["Pudukkottai","Pune","Puri","Purnea","Purulia","Puttur","Rae-Bareli","Raichur","Raiganj","Raigarh","Raipur","Rajahmundry","Rajapalayam","Rajkot","Rajnandgaon","Ramagundam","Ramanathapuram","Ramgarh","Rampur","Ranchi","Ranibennur","Raniganj","Ratlam","Ratnagiri","Rayachoty","Rewa","Rewari","Rishikesh","Rohtak","Roorkee","Ropar","Rourkela","Rudrapur","Sagar","Sagara","Saharanpur","Saharsa","Salem","Samastipur","Sambalpur","Sambhal","Sangamner","Sangaria","Sangli","Sangrur","Sardarshahar","Sasaram","Satara","Satna","Sawai-Madhopur","Sehore","Seoni","Shahjahanpur","Shillong","Shimla","Shivamogga","Shivpuri","Shrirampur","Siddipet","Sikar","Silchar","Siliguri","Sindhanur","Singrauli","Sirohi","Sirsa","Sirsi","Sitapur","Sivakasi","Sivasagar","Siwan","Solan","Solapur","Sonipat","South-Goa","Sri-Ganganagar","Srikakulam","Sultanpur","Surat","Suratgarh","Surendranagar-Dudhrej","Suryapet","Tadepalligudem","Tadpatri","Taliparamba","Tamluk","Tanuku","Tarn-Taran-Sahib","Tezpur","Thalassery","Thanjavur","Theni","Thiruvalla","Thiruvallur","Thiruvananthapuram","Thodupuzha","Thoothukudi","Thrissur","Tinsukia","Tiptur","Tirunelveli","Tirupati","Tirupur","Tiruvannamalai","Tohana","Tonk","Trichy","Tumakuru","Tuni","Udaipur","Udgir","Ujjain","Uluberia","Unnao","Vadodara","Valsad","Vapi","Varanasi","Vellore","Veraval","Vidisha","Vijayawada","Viluppuram","Virudhunagar","Vizag","Vizianagaram","Vyara","Waidhan","Warangal","Wardha","Yamuna-Nagar","Yavatmal"]],x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARwAAABUCAMAAABnVnhnAAAASFBMVEX///////////////////////////9HcEz////////////////////////////////////////////////////////////////kvP/OAAAAGHRSTlPmpGQg3S1MALvUdBXLCJgOQbADN4BajMLdViNaAAAHC0lEQVR42u2cybKsKBCGE0EQBJz1/d+0F1UqQ4JDn47oCCpXd1FH4SPJ4QcvCMTMVK2NZsCkJutSi1INYjKLZeCZXPvxB0cIQWcJiOnKFA+nnSFlchnLhsMlZKypC4bTWcgbU8XCoRtcmjVlwqkl3LCmKxEOvcWmMDrwjA3AYEqD021w22xpcAg8sKUsOMsTNsBoSXBa9ggOkJLgrPDQ+nLg0AwGbTGvasqBk3OcVvQFuw5kI44Woi046oCo4DkcaAuBM7yBU5UBp4M8nK7gbA78FRxWhCwI6hUcKEIVhGxbJZNweBFwmndw0oop5Uu19H+Rzrr2Y4ktPFK+VNXSX7Z63cSrauFTIEWN38e3Hf7aToB8BYdNiXFUu/gxcHdOffUxz+EUcZ9iop80mS1sODnqM2l5OgRSdS7/NruPGhu0kz7qPi6AvYCzqYRj9C7qwXnnXkwxZ5VagMH52z0zrDfgmCpYU53QUWh4aECcQfWoRLU3DIMQ+Q5TBloP04NVPLllAulDUhdEJAbN/rz390zXcGpEmyOYfqvipWdL/Er3DZSd47j0HCFGWk/TNNV1e6GQTlGy66JxnL7SMa9e6s4EeQWHo2PeojUz5CJc1hCN6nAcIsR1zHlgcWxfo00Dhzcpf+JLHOkTcFLS3BCySdX+PCJxdtLUdaZ8tnpU603IAw4UhgWTN9Lf7kP4Fyk4fWqsYY5InVESEwffbQz+yAohBOSPOYnyLJs4j3N2PXzfqfvYXbcgRFN/xRpxAaf1XJ2xJBvfwRjGZnffMxbW3qpC9VQGlDaRxsnpG2YFAJgN5lefqY7a33kK6WhROKf6xObJCNH1FmXjQNwqOoqRVjpiI8w+DG28OXxGBT08N/xUuHGhD7AFw92HMfvryj5xdEO0EAwORSqFSQKrk34M1b5lzByyccah3BX8DgraF3C+EwxscINbrUKAu2/I0YXxfVaNdfsYnBnbHTS+AHLEOK/RqUI2TiXYOlNQu57TvIAjc9tK4iIqdTODowWw1pkzv4Az7ptFX/QnPLuOWHyfz3/Lboczv3EdtOI6Pb7PbTvrLNF3mfY5M3MBp757smiRkjwfKll7jKo6lMA3QQewFF+7FRlyTc5pIbysL80xBisu4BzPuDqx1zcdxxm2qv3gLAQ4u/O+aZELOp8pR3icFoIEmqtFTzUQOOtNJdI8OCdZjzQceiWki6XHZ561j1lPCQcmwUmZ3tdHjldwiB8xq8azPg5w39A0eL/za+nw+OUoCAV4wfGuVRdREBd9+FGg7Gu1/w7fAwicICrMqb6gDvY/y+UTlXoKfDvAZ5YSSXuWS/km6OMkzz8WgdP8F3COSjCs0UG82Fc6uX9bklNTg7NVNWrfn8Vtz1EXcMJtlYXjdxqTD6f/kxpwL1eJH07SrSlrA4dW13Csn9aScLpgqnk4Y4OHU/DL1Xs25XPjylKuowPE/o6m13CUP70kHCF94Hk4rnvUIZzqr3bVvrlOBW5Nhz4azG4Q13B6n0MajvVd9wLOWVtYEcIx8hGczMnDnsbaBr2tQkMhzE2jyw04R1G2GSGEmD6avIrhLH5iXT4/HFJwajQngHjuOqm2xih2FF017mVDuIkcBaK7AedMHivCnCMVp6dlzMnWUGJbG5Bk9vI66aIdUZ3iHryET6GZx2Jwakw3QeCc1Bn/l3AeJSw8HNe7y3IhhDAWT89nBKahK/BbcJzOQ1ZfF+4W5BHU0f76L0dKXsER6jab4Upd13YliYAc5eLTFaS5B4e6sXUj1pINT43ujNhgVzvIjOKShSM42bTWevOM3b/yNt27W8mjCROcYlJgz3Q7HpxxeCJH5eHgp7v6/mVJ9GrhFmobX+WGRNl5ugsn4+T+zuya/xYOcrU9eb0CXak+cUZRhwy0uA0nnVuDt7XD/ULtT+AMGQ2F3PkSoI4kD56qnZLHwT2aXGW0bgZXOUn7Dk7bL2pe7bqqzxfT5FHnULGL0e69iveUUSOtQ/4iQRcfgkvVZXKoGxfQoHkJp5v93r2N4dirvkE7o8WLRRW535KIZLkrKF3lRhRGuEl2em75r+eE2nIJR8XhhTz+JqReVkvsWk2pk2QaxQYjcfVs4h9LaOQtV6slxM5LnT21HutltoTYVfH08Pvvu0wKTn0J50++gJ2irUmn/+f3f5BUyBE4urAv7yFzgSGC04uC4cQsSKEfMGJwaA6ObMuG40tri39ZaxGFw/GEHalsiR8vptuHpLBT3qZCeqv1VsdbKJxOP9JGy4KDbyzd/eAkN1aZ/6kZAgc5iqjED06iAS0xiyfhhNpFmQEnBceXg1mx/4siriF7h0OL+MHxjGNfvvzghPl8GH9wony+3bspXiScb9gpNxhn4XzCDhc/OKjNxVbGN+CMwyx+cFLWjT84P0vZP0iMDd/Vy13sAAAAAElFTkSuQmCC",O=i(3),f=i(5);function w(){return Object(c.jsx)("footer",{children:Object(c.jsxs)("div",{className:"footerContainer",children:[Object(c.jsxs)("div",{className:"upperfooter",children:[Object(c.jsxs)("div",{className:"container",children:[Object(c.jsx)("p",{className:"grey",children:"COMPANY"}),Object(c.jsx)("ul",{children:g.map((function(a,r){return Object(c.jsx)(j,{txtcls:"white",text:a})}))})]}),Object(c.jsxs)("div",{children:[Object(c.jsx)("p",{className:"grey",children:"CONTACT"}),Object(c.jsx)("ul",{children:m.map((function(a,r){return Object(c.jsx)(j,{txtcls:"white",text:a})}))})]}),Object(c.jsxs)("div",{children:[Object(c.jsx)("p",{className:"grey",children:"LEGAL"}),Object(c.jsx)("ul",{children:b.map((function(a,r){return Object(c.jsx)(j,{txtcls:"white",text:a})}))})]}),Object(c.jsxs)("div",{className:"imgdivfoot",children:[Object(c.jsx)(h,{src:"https://res.cloudinary.com/swiggy/image/upload/fl_lossy,f_auto,q_auto,w_200,h_65/icon-AppStore_lg30tv",imgcls:"appstorefoot"}),Object(c.jsx)(h,{src:"https://res.cloudinary.com/swiggy/image/upload/fl_lossy,f_auto,q_auto,w_200,h_65/icon-GooglePlay_1_zixjxl",imgcls:"googleplayfoot"})]})]}),Object(c.jsx)("hr",{size:"1"}),Object(c.jsx)("p",{className:"grey margn",children:"WE DELIVER TO"}),Object(c.jsxs)("div",{className:"middlefooter",children:[Object(c.jsx)("div",{children:Object(c.jsx)("ul",{children:p[0].map((function(a,r){return Object(c.jsx)(j,{txtcls:"white",text:a})}))})}),Object(c.jsx)("div",{children:Object(c.jsx)("ul",{className:"mrgnlft",children:p[1].map((function(a,r){return Object(c.jsx)(j,{txtcls:"white",text:a})}))})}),Object(c.jsx)("div",{children:Object(c.jsx)("ul",{className:"mrgnlft",children:p[2].map((function(a,r){return Object(c.jsx)(j,{txtcls:"white",text:a})}))})}),Object(c.jsx)("div",{children:Object(c.jsx)("ul",{className:"mrgnlft",children:p[3].map((function(a,r){return Object(c.jsx)(j,{txtcls:"white",text:a})}))})})]}),Object(c.jsx)("hr",{size:"1"}),Object(c.jsxs)("div",{className:"lowerfooter",children:[Object(c.jsx)(h,{src:x,imgcls:"swigyimg"}),Object(c.jsx)("p",{className:"copy",children:"\xa9 2021 Swiggy"}),Object(c.jsxs)("div",{className:"footicon",children:[Object(c.jsx)(O.a,{icon:f.a,color:"white",size:"lg",className:"icon"}),Object(c.jsx)(O.a,{icon:f.c,color:"white",size:"lg",className:"icon"}),Object(c.jsx)(O.a,{icon:f.b,color:"white",size:"lg",className:"icon"}),Object(c.jsx)(O.a,{icon:f.d,color:"white",size:"lg",className:"icon"})]})]})]})})}i(27),i(28);function N(a){return Object(c.jsx)("button",{className:a.btncls,children:a.btntext})}function y(){return Object(c.jsxs)("div",{className:"btndiv",children:[Object(c.jsx)("a",{href:"/",className:"login",children:"Login"}),Object(c.jsx)(N,{btncls:"blackbtn",btntext:"Sign up"})]})}i(29);function k(){return Object(c.jsxs)("div",{className:"header",children:[Object(c.jsx)(h,{src:x,imgcls:"headerswiggy"}),Object(c.jsx)(y,{})]})}i(30),i(31);function v(a){return Object(c.jsx)("span",{children:a.text})}function B(){return Object(c.jsx)("div",{children:Object(c.jsx)("p",{className:"animate-text",children:Object(c.jsx)(v,{text:"Hungry?"})})})}i(32);function A(a){return Object(c.jsx)("div",{className:"paradiv",children:Object(c.jsx)("p",{className:a.cls,children:a.txt})})}i(33);function S(){return Object(c.jsx)("div",{className:"inputdiv",children:Object(c.jsx)("input",{type:"text",placeholder:"Enter your delivery location"})})}var M=i(9);i(34);function K(){return Object(c.jsxs)("div",{className:"Locatediv",children:[Object(c.jsx)(O.a,{icon:M.a,color:"white",size:"lg",className:"locateicon"}),Object(c.jsx)("p",{className:"locateme",children:"Locate Me"})]})}i(35);function C(){return Object(c.jsxs)("div",{className:"searchdiv",children:[Object(c.jsx)(S,{}),Object(c.jsx)(K,{})]})}i(36);function G(){return Object(c.jsxs)("div",{className:"searchbardiv",children:[Object(c.jsx)(C,{}),Object(c.jsx)(N,{btncls:"orangebtn",btntext:"FIND FOOD"})]})}i(37);function T(){return Object(c.jsx)("div",{children:Object(c.jsxs)("p",{className:"citiespara",children:[Object(c.jsx)("a",{href:"#",className:"dark",children:"Ahmedabad"}),Object(c.jsx)("a",{href:"#",className:"light",children:"Bangalore"}),Object(c.jsx)("a",{href:"#",className:"dark",children:"Chennai"}),Object(c.jsx)("a",{href:"#",className:"light",children:"Delhi"}),Object(c.jsx)("a",{href:"#",className:"dark",children:"Gurgaon"}),Object(c.jsx)("a",{href:"#",className:"light",children:"Hyderabad"}),Object(c.jsx)("a",{href:"#",className:"dark",children:"Kolkata"}),Object(c.jsx)("a",{href:"#",className:"light",children:"Mumbai"}),Object(c.jsx)("br",{}),Object(c.jsx)("a",{href:"#",className:"dark",children:"Pune"}),Object(c.jsx)("a",{href:"#",className:"light",children:"& more."})]})})}function z(){return Object(c.jsx)("div",{className:"contentdiv",children:Object(c.jsxs)("div",{className:"container",children:[Object(c.jsx)(k,{}),Object(c.jsx)(B,{}),Object(c.jsx)(A,{cls:"para-after-animation",txt:"Order food from favourite restaurants near you."}),Object(c.jsx)(G,{}),Object(c.jsx)(A,{cls:"para-after-search",txt:"POPULAR CITIES IN INDIA"}),Object(c.jsx)(T,{})]})})}i(38);var D=i.p+"static/media/swiggy2.7a07461e.jpg";function R(){return Object(c.jsx)("div",{className:"noncontentdiv",children:Object(c.jsx)(h,{src:D,imgcls:"noncontentimg"})})}i(39);function P(){return Object(c.jsxs)("div",{className:"jumbodiv",children:[Object(c.jsx)(z,{}),Object(c.jsx)(R,{})]})}var H=function(){return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(P,{}),Object(c.jsx)(u,{}),Object(c.jsx)(d,{}),Object(c.jsx)(w,{})]})};s.a.render(Object(c.jsx)(n.a.StrictMode,{children:Object(c.jsx)(H,{})}),document.getElementById("root"))}],[[40,1,2]]]); //# sourceMappingURL=main.c39d9685.chunk.js.map
8,686
17,324
0.737854
52f06e1906ac0e9c9b2d54033e4fc377fc76ba98
457
js
JavaScript
NFLogger API Documentation/html/search/functions_1.js
ndagrawal/NFLogger
e02e3f759b2dd2a49160dc43a19168d04a4859f3
[ "MIT" ]
1
2017-01-29T07:50:19.000Z
2017-01-29T07:50:19.000Z
NFLogger API Documentation/html/search/functions_1.js
ndagrawal/NFLogger
e02e3f759b2dd2a49160dc43a19168d04a4859f3
[ "MIT" ]
1
2018-08-23T23:47:19.000Z
2018-10-24T22:37:55.000Z
NFLogger API Documentation/html/search/functions_1.js
ndagrawal/NFLogger
e02e3f759b2dd2a49160dc43a19168d04a4859f3
[ "MIT" ]
null
null
null
var searchData= [ ['deleteevent_3a',['deleteEvent:',['../interface_n_f_l_o_g_database_manager.html#a0e91938877e0300601a96bf34231eb2c',1,'NFLOGDatabaseManager']]], ['deleteevent_3awithsqlite_3a',['deleteEvent:withSqlite:',['../protocol_n_f_l_o_g_event_table_01-p.html#a3441d672e63f2ef47fe79b17d70535b3',1,'NFLOGEventTable -p']]], ['description',['description',['../interface_n_f_l_o_g_event.html#a466729f93dbef38aa5f2f81c07df29fe',1,'NFLOGEvent']]] ];
65.285714
167
0.794311
52f0e054fc5ad5e5dac9280197be93fdd8047df3
60
js
JavaScript
src/subscription/message.js
ledevlab/apollo-express-postgresql-boilerplate
9e6db0ed4d49575352f795aded8376dd4634674e
[ "MIT" ]
null
null
null
src/subscription/message.js
ledevlab/apollo-express-postgresql-boilerplate
9e6db0ed4d49575352f795aded8376dd4634674e
[ "MIT" ]
5
2020-07-16T22:32:05.000Z
2022-01-22T04:27:07.000Z
src/subscription/message.js
ledevlab/apollo-express-postgresql-boilerplate
9e6db0ed4d49575352f795aded8376dd4634674e
[ "MIT" ]
null
null
null
const CREATED = 'CREATED'; module.exports = { CREATED };
10
26
0.65
52f0ee866b20a40b700d16c3afd29e2aa1d7cb04
871
js
JavaScript
vendor/assets/bower_components/uikit/src/js/core/alert.js
itolosa/minerva
2b579a2f93ed419c9823c3e7685a0d95de1ba4b7
[ "MIT" ]
null
null
null
vendor/assets/bower_components/uikit/src/js/core/alert.js
itolosa/minerva
2b579a2f93ed419c9823c3e7685a0d95de1ba4b7
[ "MIT" ]
null
null
null
vendor/assets/bower_components/uikit/src/js/core/alert.js
itolosa/minerva
2b579a2f93ed419c9823c3e7685a0d95de1ba4b7
[ "MIT" ]
null
null
null
import { Class, Toggable } from '../mixin/index'; export default function (UIkit) { UIkit.component('alert', { mixins: [Class, Toggable], args: 'animation', props: { close: String }, defaults: { animation: [true], close: '.uk-alert-close', duration: 150, hideProps: {opacity: 0} }, events: [ { name: 'click', delegate() { return this.close; }, handler(e) { e.preventDefault(); this.closeAlert(); } } ], methods: { closeAlert() { this.toggleElement(this.$el).then(() => this.$destroy(true)); } } }); }
16.75
77
0.374282
52f16cfea5cd82fd1563074bfcd8b0237eccddc5
2,189
js
JavaScript
dist/fetch-symbols.js
alleyway/add-tradingview-alert-tool
c0a125e9875047537741f26dd0974a45cfb9bb79
[ "MIT" ]
null
null
null
dist/fetch-symbols.js
alleyway/add-tradingview-alert-tool
c0a125e9875047537741f26dd0974a45cfb9bb79
[ "MIT" ]
null
null
null
dist/fetch-symbols.js
alleyway/add-tradingview-alert-tool
c0a125e9875047537741f26dd0974a45cfb9bb79
[ "MIT" ]
null
null
null
import fs from "fs"; import { fetchSymbolsForSource } from "./service/exchange-service"; import { writeToStream } from "fast-csv"; import log from "./service/log"; import { Classification } from "./interfaces"; const write = (stream, rows, options) => { return new Promise((res, rej) => { writeToStream(stream, rows, options) .on('error', (err) => rej(err)) .on('finish', () => res()); }); }; export const fetchSymbolsMain = async (source, quoteAssetFilter, classificationFilter) => { const formattedExchange = source.toLowerCase(); let baseSymbols = await fetchSymbolsForSource(formattedExchange); const breakdown = baseSymbols.reduce((acc, symbol) => { if (typeof acc[symbol.classification] !== "undefined") { acc[symbol.classification] += 1; } else { acc[symbol.classification] = 1; } return acc; }, {}); log.info("Parsed symbols classification breakdown:"); for (const key of Object.keys(Classification)) { log.info(` ${key}: ${breakdown[key] || 0}`); } if (quoteAssetFilter) { baseSymbols = baseSymbols.filter((sym) => sym.quoteAsset.toLowerCase() === quoteAssetFilter.toLowerCase()); } if (classificationFilter) { baseSymbols = baseSymbols.filter((sym) => sym.classification.toLowerCase() === classificationFilter.toLowerCase()); } if (!baseSymbols || baseSymbols.length == 0) { throw new Error("No symbols fetched or match filters!"); } const rows = baseSymbols.map((baseSymbol) => { return { symbol: baseSymbol.id, instrument: baseSymbol.instrument, quote_asset: baseSymbol.quoteAsset, alert_name: "" }; }); const outputPath = `${formattedExchange}${classificationFilter ? "_" + classificationFilter.toLowerCase() : ""}${quoteAssetFilter ? "_" + quoteAssetFilter.toLowerCase() : ""}_symbols.csv`; const outStream = fs.createWriteStream(outputPath); await write(outStream, rows, { headers: true }); log.success(`Wrote ${rows.length} rows to: ${outputPath}`); }; //# sourceMappingURL=fetch-symbols.js.map
42.921569
192
0.629511
52f18c8d63b7f05e275a75656d0fe21b4c4e245e
1,890
js
JavaScript
components/base-card-header/esm5/lib/base-card-header.component.js
ajaymarathe/ng-peace-design-system
eed2b71e002dd3bfa53ca26d747039c6ee4884b1
[ "MIT" ]
2
2020-01-20T10:42:20.000Z
2020-01-27T14:19:31.000Z
components/base-card-header/esm5/lib/base-card-header.component.js
ajaymarathe/ng-blossom-design-system
1a26d919850579a7771120adec0146feeef0fff2
[ "MIT" ]
null
null
null
components/base-card-header/esm5/lib/base-card-header.component.js
ajaymarathe/ng-blossom-design-system
1a26d919850579a7771120adec0146feeef0fff2
[ "MIT" ]
null
null
null
/** * @fileoverview added by tsickle * Generated from: lib/base-card-header.component.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { Component } from '@angular/core'; var BaseCardHeaderComponent = /** @class */ (function () { function BaseCardHeaderComponent() { } /** * @return {?} */ BaseCardHeaderComponent.prototype.ngOnInit = /** * @return {?} */ function () { }; BaseCardHeaderComponent.decorators = [ { type: Component, args: [{ selector: 'base-card-header', template: "<div class=\"card-header\">\r\n <ng-content></ng-content>\r\n</div>" }] } ]; /** @nocollapse */ BaseCardHeaderComponent.ctorParameters = function () { return []; }; return BaseCardHeaderComponent; }()); export { BaseCardHeaderComponent }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1jYXJkLWhlYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9iYXNlLWNhcmQtaGVhZGVyLyIsInNvdXJjZXMiOlsibGliL2Jhc2UtY2FyZC1oZWFkZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUVsRDtJQU9FO0lBQWdCLENBQUM7Ozs7SUFFakIsMENBQVE7OztJQUFSO0lBQ0EsQ0FBQzs7Z0JBVkYsU0FBUyxTQUFDO29CQUNULFFBQVEsRUFBRSxrQkFBa0I7b0JBQzVCLGtGQUFnRDtpQkFFakQ7Ozs7SUFRRCw4QkFBQztDQUFBLEFBWkQsSUFZQztTQVBZLHVCQUF1QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCwgT25Jbml0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2Jhc2UtY2FyZC1oZWFkZXInLFxuICB0ZW1wbGF0ZVVybDogJy4vYmFzZS1jYXJkLWhlYWRlci5jb21wb25lbnQuaHRtbCcsXG4gIHN0eWxlczogW11cbn0pXG5leHBvcnQgY2xhc3MgQmFzZUNhcmRIZWFkZXJDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuXG4gIGNvbnN0cnVjdG9yKCkgeyB9XG5cbiAgbmdPbkluaXQoKSB7XG4gIH1cblxufVxuIl19
65.172414
938
0.801587
52f2f8c4ebb5ebef0d4340b6908d9386f5de75b3
3,056
js
JavaScript
public/nodeapp/node_modules/@pm2/agent/src/PM2Client.js
anil1997/tapetalk_backend
5a6da91ea70eb6f3b6e44a78352e3ef7e8e3efce
[ "MIT" ]
17
2019-09-11T08:37:26.000Z
2021-08-17T12:08:54.000Z
public/nodeapp/node_modules/@pm2/agent/src/PM2Client.js
anil1997/tapetalk_backend
5a6da91ea70eb6f3b6e44a78352e3ef7e8e3efce
[ "MIT" ]
15
2020-06-18T18:56:30.000Z
2021-02-18T20:15:29.000Z
public/nodeapp/node_modules/@pm2/agent/src/PM2Client.js
anil1997/tapetalk_backend
5a6da91ea70eb6f3b6e44a78352e3ef7e8e3efce
[ "MIT" ]
8
2020-03-17T08:17:35.000Z
2021-07-30T15:48:36.000Z
'use strict' const axon = require('pm2-axon') const cst = require('../constants.js') const rpc = require('pm2-axon-rpc') const log = require('debug')('interactor:pm2:client') const EventEmitter = require('events').EventEmitter const PM2Interface = require('./PM2Interface') /** * PM2 API Wrapper used to setup connection with the daemon * @param {Object} opts options * @param {String} opts.sub_port socket file of the PM2 bus [optionnal] * @param {String} opts.rpc_port socket file of the PM2 RPC server [optionnal] */ module.exports = class PM2Client extends EventEmitter { constructor (opts) { super() const subSocket = (opts && opts.sub_port) || cst.DAEMON_PUB_PORT const rpcSocket = (opts && opts.rpc_port) || cst.DAEMON_RPC_PORT const sub = axon.socket('sub-emitter') this.sub_sock = sub.connect(subSocket) this.bus = sub const req = axon.socket('req') this.rpc_sock = req.connect(rpcSocket) this.rpc_client = new rpc.Client(req) this.rpc = {} this.rpc_sock.on('connect', _ => { log('PM2 API Wrapper connected to PM2 Daemon via RPC') this.generateMethods(_ => { this.pm2Interface = new PM2Interface(this.rpc) this.emit('ready') }) }) this.rpc_sock.on('close', _ => { log('pm2 rpc closed') this.emit('closed') }) this.rpc_sock.on('reconnect attempt', _ => { log('pm2 rpc reconnecting') this.emit('reconnecting') }) this.sub_sock.on('connect', _ => { log('bus ready') this.emit('bus:ready') }) this.sub_sock.on('close', _ => { log('bus closed') this.emit('bus:closed') }) this.sub_sock.on('reconnect attempt', _ => { log('bus reconnecting') this.emit('bus:reconnecting') }) } /** * Disconnect socket connections. This will allow Node to exit automatically. * Further calls to PM2 from this object will throw an error. */ disconnect () { this.sub_sock.close() this.rpc_sock.close() } /** * Generate method by requesting exposed methods by PM2 * You can now control/interact with PM2 */ generateMethods (cb) { log('Requesting and generating RPC methods') this.rpc_client.methods((err, methods) => { if (err) return cb(err) Object.keys(methods).forEach((key) => { let method = methods[key] log('+-- Creating %s method', method.name); ((name) => { const self = this this.rpc[name] = function () { let args = Array.prototype.slice.call(arguments) args.unshift(name) self.rpc_client.call.apply(self.rpc_client, args) } })(method.name) }) return cb() }) } remote (method, parameters, cb) { log('remote send %s', method, parameters) if (typeof this.pm2Interface[method] === 'undefined') { return cb(new Error('Deprecated or invalid method')) } this.pm2Interface[method](parameters, cb) } msgProcess (data, cb) { this.rpc.msgProcess(data, cb) } }
27.044248
79
0.617147
52f32ecb2ed92aeb6480b9067ed9b4aae01751c5
2,894
js
JavaScript
utils/getunionid.js
dym270307872/providence
a7e5102799ba917c28798e04193ab6f2effe2aa0
[ "Apache-2.0" ]
1
2019-09-16T23:44:11.000Z
2019-09-16T23:44:11.000Z
utils/getunionid.js
dym270307872/providence
a7e5102799ba917c28798e04193ab6f2effe2aa0
[ "Apache-2.0" ]
null
null
null
utils/getunionid.js
dym270307872/providence
a7e5102799ba917c28798e04193ab6f2effe2aa0
[ "Apache-2.0" ]
null
null
null
var Util = require('util.js'); //引用封装好的加密解密js var Request = require('request.js'); var AES = require('public.js'); //引用封装好的加密解密js var Base64 = require('base64.js'); var MD5 = require('md5.js'); function getopenidAndUionid() { var app = getApp(); wx.showLoading({ title: '加载中...', mask: true }) wx.login({ success(res) { console.log(res.code); if (res.code) { var code = res.code; var param = AES.Encrypt(code, app.globalData.access_key); var sign = MD5.hexMD5(AES.Sort("access_key=" + app.globalData.access_key + "&access_token=" + app.globalData.access_token + "&businesscode=WCAH0005" + "&" + code)); var data = { access_token: app.globalData.access_token, businesscode: 'WCAH0005', param: param, sign: sign }; // 发起网络请求 wx.request({ url: app.globalData.host + 'ws/weChatAppletWs', header: { 'content-type': 'application/x-www-form-urlencoded' }, method: 'POST', data: data, success(res) { console.log(res.data); app.globalData.openid = res.data.openid; checkbind(res.data.openid); }, fail: function(res) { console.log('获取用户信息失败'); console.log(res); } }) } else { console.log('获取code失败'); } }, fail: function() { callback(false) } }) } function checkbind(openid) { var app = getApp(); var param = AES.Encrypt(openid, app.globalData.access_key); var sign = MD5.hexMD5(AES.Sort("access_key=" + app.globalData.access_key + "&access_token=" + app.globalData.access_token + "&businesscode=WCAH0003" + "&" + openid)) var data = { xzqh: "", access_token: app.globalData.access_token, businesscode: 'WCAH0003', param: param, sign: sign }; // 发送请求 wx.request({ //项目的真正接口,通过字符串拼接方式实现 url: app.globalData.host + "ws/weChatAppletWs", header: { 'content-type': 'application/x-www-form-urlencoded' }, data: data, method: 'POST', success: function(res) { wx.hideLoading(); // 参数值为res.data,直接将返回的数据传入 if ('0000' == res.data.serviceInfo.serviceCode) { //已经绑定openid //var idcard=res.data.data[0].F011; console.log(res.data.data[0]); var app = getApp(); app.globalData.loginInfo = res.data.data[0]; app.globalData.session_key = res.data.data[0].session_key; app.globalData.session_token = res.data.data[0].session_token; } else { //未绑定openid console.log(res.data); wx.reLaunch({ url: '../login/login' }) } }, fail: function() { }, }) } // 暴露接口方法 module.exports = { getopenidAndUionid: getopenidAndUionid, checkbind: checkbind }
24.948276
172
0.564616
52f44e6ce21d0153bb26bc47c0a0d708c8b8bd24
3,455
js
JavaScript
node_modules/pm2/lib/Interactor/Filter.js
bizeasy17/IntellAgent
c694e0a13eb82fc12cec835d518bb0f37e5d962d
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-01T03:39:43.000Z
2019-01-01T03:39:43.000Z
node_modules/pm2/lib/Interactor/Filter.js
bizeasy17/IntellAgent
c694e0a13eb82fc12cec835d518bb0f37e5d962d
[ "ECL-2.0", "Apache-2.0" ]
11
2020-09-04T09:56:00.000Z
2022-03-08T22:07:59.000Z
node_modules/pm2/lib/Interactor/Filter.js
bizeasy17/IntellAgent
c694e0a13eb82fc12cec835d518bb0f37e5d962d
[ "ECL-2.0", "Apache-2.0" ]
1
2020-12-26T09:10:59.000Z
2020-12-26T09:10:59.000Z
/** * Copyright 2013 the PM2 project authors. All rights reserved. * Use of this source code is governed by a license that * can be found in the LICENSE file. */ /** * @file Filter process and system data to be sent to server * @author Alexandre Strzelewicz <strzelewicz.alexandre@gmail.com> * @project Interface */ var os = require('os'); var cpu_info = { number : 0, info : 'no-data' }; try { cpu_info = { number : os.cpus().length, info : os.cpus()[0].model }; } catch(e) { } var SERVER_META = { totalMem : os.totalmem(), hostname : os.hostname(), type : os.type(), platform : os.platform(), arch : os.arch() }; var Filter = {}; Filter.getProcessID = function(machine_name, name, id) { return machine_name + ':' + name + ':' + id; }; Filter.machineSnapshot = function(processes, conf) { if (!processes) return null; var filter_procs = []; processes.forEach(function(proc) { if (proc.pm2_env.pm_id.toString().indexOf('_old_') == -1) filter_procs.push({ pid : proc.pid, name : proc.pm2_env.name, interpreter : proc.pm2_env.exec_interpreter, restart_time : proc.pm2_env.restart_time, created_at : proc.pm2_env.created_at, exec_mode : proc.pm2_env.exec_mode, watching : proc.pm2_env.watch, pm_uptime : proc.pm2_env.pm_uptime, status : proc.pm2_env.status, pm_id : proc.pm2_env.pm_id, cpu : Math.floor(proc.monit.cpu) || 0, memory : Math.floor(proc.monit.memory) || 0, versioning : proc.pm2_env.versioning || null, node_env : proc.pm2_env.NODE_ENV || null, axm_actions : proc.pm2_env.axm_actions || [], axm_monitor : proc.pm2_env.axm_monitor || {}, axm_options : proc.pm2_env.axm_options || {}, axm_dynamic : proc.pm2_env.dynamic || {} }); }); var node_version = process.version || ''; if (node_version != '') { if (node_version.indexOf('v1.') === 0 || node_version.indexOf('v2.') === 0 || node_version.indexOf('v3.') === 0) node_version = 'iojs ' + node_version; } var username = process.env.SUDO_USER || process.env.C9_USER || process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME; return { process : filter_procs, server : { loadavg : os.loadavg(), total_mem : SERVER_META.totalMem, free_mem : os.freemem(), cpu : cpu_info, hostname : SERVER_META.hostname, uptime : os.uptime(), type : SERVER_META.type, platform : SERVER_META.platform, arch : SERVER_META.arch, user : username, interaction : conf.REVERSE_INTERACT, pm2_version : conf.PM2_VERSION, node_version : node_version } }; }; Filter.monitoring = function(processes, conf) { if (!processes) return null; var filter_procs = {}; processes.forEach(function(proc) { filter_procs[Filter.getProcessID(conf.MACHINE_NAME, proc.pm2_env.name,proc.pm2_env.pm_id)] = [ Math.floor(proc.monit.cpu), Math.floor(proc.monit.memory) ]; }); return { loadavg : os.loadavg(), total_mem : SERVER_META.totalMem, free_mem : os.freemem(), processes : filter_procs }; }; module.exports = Filter;
27.64
116
0.591896
52f485ba7f49bcba6986bb6c2e5445b3c5c438e3
5,158
js
JavaScript
test/contract/Method.test.js
instaloper/storejs-lib
e842b51b79d59bf1dce700b05658fc3c70891e97
[ "MIT" ]
20
2019-02-08T12:44:49.000Z
2021-07-07T08:56:24.000Z
test/contract/Method.test.js
instaloper/storejs-lib
e842b51b79d59bf1dce700b05658fc3c70891e97
[ "MIT" ]
13
2019-08-07T14:35:07.000Z
2020-04-13T13:22:18.000Z
test/contract/Method.test.js
instaloper/storejs-lib
e842b51b79d59bf1dce700b05658fc3c70891e97
[ "MIT" ]
4
2019-03-11T15:44:02.000Z
2019-08-13T11:12:53.000Z
import 'mocha'; import { strictEqual, ok, fail, deepStrictEqual } from 'assert'; import BigNumber from 'bignumber.js'; import $c from 'comprehension'; import { Echo, Contract } from '../../'; import checkContractIdTests from './_checkContractId.test'; import { abi, bytecode as code } from '../operations/_contract.test'; import { url, privateKey, accountId } from '../_test-data'; describe('Method', () => { /** @type {Contract} */ let contract = null; const echo = new Echo(); before(async function () { // eslint-disable-next-line no-invalid-this this.timeout(12e3); await echo.connect(url); contract = await Contract.deploy(code, privateKey, { echo, accountId, abi }); }); describe('call', () => { it('successful', async () => { /** @type {BigNumber} */ const zero = await contract.methods.getVariable().call(); ok(BigNumber.isBigNumber(zero), 'result is not a bigNumber'); ok(zero.eq(0), 'result is not a zero'); }); describe('invalid contractId', () => { const testInvalidContractId = async ({ test, error, value }) => { try { await contract.methods.getVariable().call({ contractId: value || test }); } catch (err) { ok(err instanceof Error); strictEqual(err.message, error); return; } fail('should throws'); }; for (const invalidContractIdTest of checkContractIdTests) { it(invalidContractIdTest.test, async () => testInvalidContractId(invalidContractIdTest)); } }); }); describe('code getter', () => { it('get code method', () => { /** @type {Abi} */ const abi = [{ contract: false, inputs: [ { type: 'bytes24[3]', name: 'bytes72' }, { type: 'uint32[][2][]', name: 'multidimensional_array' }, { type: 'string', name: 'str' }, ], name: 'qwe', outputs: [{ type: 'bool', name: 'success' }], payable: false, stateMutability: 'nonpayable', type: 'function', }]; const contract = new Contract(abi); const methodInstance = contract.methods.qwe( [ Buffer.from($c(24, (i) => i)), { value: 'dead', align: 'left' }, { value: 'qwe', encoding: 'ascii', align: 'right' }, ], [[[], [1]], [[2, 3], [4, 5, 6]], [[7, 8], [9]]], ' \\(ꙨပꙨ)// ', ); strictEqual(methodInstance.code, [ '9c89d58f', '0000000000000000000102030405060708090a0b0c0d0e0f1011121314151617', '0000000000000000dead00000000000000000000000000000000000000000000', '0000000000000000000000000000000000000000000000000000000000717765', '00000000000000000000000000000000000000000000000000000000000000a0', '0000000000000000000000000000000000000000000000000000000000000180', '0000000000000000000000000000000000000000000000000000000000000003', '00000000000000000000000000000000000000000000000000000000000001c0', '00000000000000000000000000000000000000000000000000000000000001e0', '0000000000000000000000000000000000000000000000000000000000000220', '0000000000000000000000000000000000000000000000000000000000000280', '0000000000000000000000000000000000000000000000000000000000000300', '0000000000000000000000000000000000000000000000000000000000000360', '0000000000000000000000000000000000000000000000000000000000000010', '205c28ea99a8e18095ea99a8292f2f2000000000000000000000000000000000', '0000000000000000000000000000000000000000000000000000000000000000', '0000000000000000000000000000000000000000000000000000000000000001', '0000000000000000000000000000000000000000000000000000000000000001', '0000000000000000000000000000000000000000000000000000000000000002', '0000000000000000000000000000000000000000000000000000000000000002', '0000000000000000000000000000000000000000000000000000000000000003', '0000000000000000000000000000000000000000000000000000000000000003', '0000000000000000000000000000000000000000000000000000000000000004', '0000000000000000000000000000000000000000000000000000000000000005', '0000000000000000000000000000000000000000000000000000000000000006', '0000000000000000000000000000000000000000000000000000000000000002', '0000000000000000000000000000000000000000000000000000000000000007', '0000000000000000000000000000000000000000000000000000000000000008', '0000000000000000000000000000000000000000000000000000000000000001', '0000000000000000000000000000000000000000000000000000000000000009', ].join('')); }); }); describe('broadcast', () => { it('successful', async () => { const res = await contract.methods.setVariable(123) .broadcast({ privateKey: privateKey, registrar: accountId }); deepStrictEqual(new Set(Object.keys(res.contractResult)), new Set(['exec_res', 'tr_receipt'])); ok(BigNumber.isBigNumber(res.decodedResult)); ok(res.decodedResult.eq(123)); deepStrictEqual(res.events, {}); ok(Array.isArray(res.transactionResult)); strictEqual(res.transactionResult.length, 1); deepStrictEqual( new Set(Object.keys(res.transactionResult[0])), new Set(['id', 'block_num', 'trx_num', 'trx']), ); ok(await contract.methods.getVariable().call().then((/** @type {BigNumber} */res) => res.eq(123))); }).timeout(10e3); }); });
40.296875
102
0.72373
52f4c091d15081647f420a96cbe13ceb14a01633
1,127
js
JavaScript
core/commands/moderation/unban.js
retromada/discord
432feb91badad0b820577ab9f79c4f561adb3b87
[ "ISC" ]
null
null
null
core/commands/moderation/unban.js
retromada/discord
432feb91badad0b820577ab9f79c4f561adb3b87
[ "ISC" ]
1
2020-03-25T04:12:45.000Z
2020-03-25T04:12:45.000Z
core/commands/moderation/unban.js
retromada/discord
432feb91badad0b820577ab9f79c4f561adb3b87
[ "ISC" ]
3
2020-04-14T23:59:23.000Z
2020-04-23T00:39:13.000Z
const { DiscordUtils } = require('../../') module.exports = { name: 'unban', aliases: ['unbanne'], description: 'User unban management', usage: '[user]', category: 'moderation', requirements: { parameters: true, permissions: ['BAN_MEMBERS'] }, async execute(message) { let [target] = message.parameters target = await message.guild.fetchBans() .then((bans) => bans.find(({ user }) => user.username.toLowerCase().startsWith(target.toLowerCase()) || user.id === target)) if (!target) return message.channel.send('Unknown User', { code: 'fix' }) const _message = await message.channel.send(`Unban **${target.user.tag}**?`) const proof = await DiscordUtils.verify(message.channel, message.author) if (proof) { _message.delete() message.guild.members.unban(target.user) .then((user) => message.channel.send(`${!user.bot ? 'User' : 'Bot'} **${user.tag}** was unbanned.`)) .catch((error) => console.log(error) && message.channel.send(error.message, { code: 'fix' })) } else { _message.delete() message.channel.send('Not unbanned') } } }
37.566667
130
0.629991
52f4f7f8fec11ff4273f2c90d32dfca194237f96
390
js
JavaScript
.eslintrc.js
hliberato/account-management-system
c6e8b0fb8378082a5dadde2d6d04c5332605f28f
[ "MIT" ]
null
null
null
.eslintrc.js
hliberato/account-management-system
c6e8b0fb8378082a5dadde2d6d04c5332605f28f
[ "MIT" ]
null
null
null
.eslintrc.js
hliberato/account-management-system
c6e8b0fb8378082a5dadde2d6d04c5332605f28f
[ "MIT" ]
null
null
null
/** * @Author: Henrique Liberato <hliberato> * @Date: 22-11-2017 * @Last modified by: hliberato * @Last modified time: 29-03-2018 */ module.exports = { root: true, parserOptions: { ecmaVersion: 2017, sourceType: 'module', parser: 'babel-eslint' }, extends: [ 'plugin:vue/essential', '@vue/airbnb' ], env: { browser: true }, rules: { } };
15.6
41
0.576923
52f628fd4008f3558aacdea4343bbc15e6ae3e00
181
js
JavaScript
JS Back-end/Exams/04. JS Back-end Exam - 14.12.21/ArtGallery/middlewares/storage.js
NeikoGrozev/SoftUni
ac178894eb1d61c977bd17f5048872db7959a059
[ "MIT" ]
null
null
null
JS Back-end/Exams/04. JS Back-end Exam - 14.12.21/ArtGallery/middlewares/storage.js
NeikoGrozev/SoftUni
ac178894eb1d61c977bd17f5048872db7959a059
[ "MIT" ]
6
2022-02-14T05:27:04.000Z
2022-03-02T11:50:30.000Z
JS Back-end/Exams/04. JS Back-end Exam - 14.12.21/ArtGallery/middlewares/storage.js
NeikoGrozev/SoftUni
ac178894eb1d61c977bd17f5048872db7959a059
[ "MIT" ]
null
null
null
const publicationService = require('../services/publication'); module.exports = () => (req, res, next) => { req.storage = { ...publicationService }; next(); }
18.1
62
0.574586
52f66fa941f6260ca1b811e8d8469d350d8d8c81
676
js
JavaScript
lib/parser.js
alessioalex/git-commits
fcb6858935eed82422b9f44b9196b97cca17acaa
[ "MIT" ]
4
2016-07-12T08:21:02.000Z
2021-08-15T20:55:37.000Z
lib/parser.js
alessioalex/git-commits
fcb6858935eed82422b9f44b9196b97cca17acaa
[ "MIT" ]
5
2015-11-24T15:41:14.000Z
2017-12-11T13:08:21.000Z
lib/parser.js
alessioalex/git-commits
fcb6858935eed82422b9f44b9196b97cca17acaa
[ "MIT" ]
1
2017-02-20T13:44:16.000Z
2017-02-20T13:44:16.000Z
'use strict'; var parseCommit = require('git-parse-commit'); var splitStream = require('split-transform-stream'); function streamCommits(inputStream) { var commit = ''; function write(line, enc, cb) { var matched = line.match(/^(\u0000){0,1}([0-9a-fA-F]{40})/); if (matched) { if (commit) { this.push(parseCommit(commit), 'utf8'); } commit = line; } else { if (commit) { commit += ('\n' + line); } } cb(); } function end(cb) { if (commit) { this.push(parseCommit(commit), 'utf8'); } cb(); } return splitStream(inputStream, write, end); } module.exports = streamCommits;
17.333333
64
0.557692
52f6fec8c7ad76f1d265bbdc3b98b9ffbe7159a4
426
js
JavaScript
rollup.config.js
saelay/hexview-js
758c936882998768ee9f2287a520e444d97f0d4d
[ "MIT" ]
null
null
null
rollup.config.js
saelay/hexview-js
758c936882998768ee9f2287a520e444d97f0d4d
[ "MIT" ]
null
null
null
rollup.config.js
saelay/hexview-js
758c936882998768ee9f2287a520e444d97f0d4d
[ "MIT" ]
null
null
null
import typescript from 'rollup-plugin-typescript2' import versionInjector from 'rollup-plugin-version-injector' export default [ { input: 'src/index.ts', output: { file: 'build/hexview.js', name: 'hexview', format: 'umd', }, plugins: [ typescript(), versionInjector(), ], } ]
21.3
61
0.467136
52f7d7ed86d92796de63fb9923c80af318a6556c
14,437
js
JavaScript
app/public/wp-content/plugins/defender-security/sui/js/_src/a11y-dialog.js
onenewera/evergreen-escapes
e838b54cde548e29c8467a2c66472df655eae448
[ "MIT" ]
null
null
null
app/public/wp-content/plugins/defender-security/sui/js/_src/a11y-dialog.js
onenewera/evergreen-escapes
e838b54cde548e29c8467a2c66472df655eae448
[ "MIT" ]
2
2020-07-10T13:43:14.000Z
2020-07-10T13:43:15.000Z
app/public/wp-content/plugins/defender-security/sui/js/_src/a11y-dialog.js
onenewera/evergreen-escapes
e838b54cde548e29c8467a2c66472df655eae448
[ "MIT" ]
null
null
null
/* global NodeList, Element, define */ (function (global) { 'use strict'; var FOCUSABLE_ELEMENTS = ['a[href]', 'area[href]', 'input:not([disabled])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'iframe', 'object', 'embed', '[contenteditable]', '[tabindex]:not([tabindex^="-"])']; var TAB_KEY = 9; var ESCAPE_KEY = 27; var focusedBeforeDialog; /** * Define the constructor to instantiate a dialog * * @constructor * @param {Element} node * @param {(NodeList | Element | string)} targets */ function A11yDialog(node, targets) { // Prebind the functions that will be bound in addEventListener and // removeEventListener to avoid losing references this._show = this.show.bind(this); this._hide = this.hide.bind(this); // this._maintainFocus = this._maintainFocus.bind(this); this._bindKeypress = this._bindKeypress.bind(this); // Keep a reference of the node on the instance this.node = node; // Keep an object of listener types mapped to callback functions this._listeners = {}; // Initialise everything needed for the dialog to work properly this.create(targets); } /** * Set up everything necessary for the dialog to be functioning * * @param {(NodeList | Element | string)} targets * @return {this} */ A11yDialog.prototype.create = function (targets) { // Keep a collection of nodes to disable/enable when toggling the dialog this._targets = this._targets || collect(targets) || getSiblings(this.node); // Make sure the dialog element is disabled on load, and that the `shown` // property is synced with its value this.node.setAttribute('aria-hidden', true); this.shown = false; // Keep a collection of dialog openers, each of which will be bound a click // event listener to open the dialog this._openers = $$('[data-a11y-dialog-show="' + this.node.id + '"]'); this._openers.forEach(function (opener) { opener.addEventListener('click', this._show); }.bind(this)); // Keep a collection of dialog closers, each of which will be bound a click // event listener to close the dialog this._closers = $$('[data-a11y-dialog-hide]', this.node) .concat($$('[data-a11y-dialog-hide="' + this.node.id + '"]')); this._closers.forEach(function (closer) { closer.addEventListener('click', this._hide); }.bind(this)); // Execute all callbacks registered for the `create` event this._fire('create'); return this; }; /** * Show the dialog element, disable all the targets (siblings), trap the * current focus within it, listen for some specific key presses and fire all * registered callbacks for `show` event * * @param {Event} event * @return {this} */ A11yDialog.prototype.show = function (event) { // If the dialog is already open, abort if (this.shown) { return this; } this.node.classList.add('sui-fade-in'); this.node.classList.remove('sui-fade-out'); var content = this.node.getElementsByClassName('sui-dialog-content'); content[0].className = 'sui-dialog-content sui-bounce-in'; // Execute all callbacks registered for the `show` event this._fire('show', event); this.shown = true; this.node.removeAttribute('aria-hidden'); // Iterate over the targets to disable them by setting their `aria-hidden` // attribute to `true`; in case they already have this attribute, keep a // reference of their original value to be able to restore it later this._targets.forEach(function (target) { var original = target.getAttribute('aria-hidden'); if (original) { target.setAttribute('data-a11y-dialog-original', original); } target.setAttribute('aria-hidden', 'true'); }); // Keep a reference to the currently focused element to be able to restore // it later, then set the focus to the first focusable child of the dialog // element focusedBeforeDialog = document.activeElement; setFocusToFirstItem(this.node); // Bind a focus event listener to the body element to make sure the focus // stays trapped inside the dialog while open, and start listening for some // specific key presses (TAB and ESC) // document.body.addEventListener('focus', this._maintainFocus, true); document.addEventListener('keydown', this._bindKeypress); // Add overlay class to document body. document.getElementsByTagName('html')[0].classList.add('sui-has-overlay'); return this; }; /** * Hide the dialog element, enable all the targets (siblings), restore the * focus to the previously active element, stop listening for some specific * key presses and fire all registered callbacks for `hide` event * * @param {Event} event * @return {this} */ A11yDialog.prototype.hide = function (event) { // If the dialog is already closed, abort if (!this.shown) { return this; } var content = this.node.getElementsByClassName('sui-dialog-content'); content[0].className = 'sui-dialog-content sui-bounce-out'; this.node.classList.add('sui-fade-out'); this.node.classList.remove('sui-fade-in'); // Execute all callbacks registered for the `hide` event this._fire('hide', event); this.shown = false; // This has been set so there is enough time for the animation to show var timeout_node = this.node; setTimeout(function () { timeout_node.setAttribute('aria-hidden', 'true'); }, 300); // Iterate over the targets to enable them by remove their `aria-hidden` // attribute or resetting them to their initial value this._targets.forEach(function (target) { var original = target.getAttribute('data-a11y-dialog-original'); if (original) { target.setAttribute('aria-hidden', original); target.removeAttribute('data-a11y-dialog-original'); } else { target.removeAttribute('aria-hidden'); } }); // If their was a focused element before the dialog was opened, restore the // focus back to it if (focusedBeforeDialog) { focusedBeforeDialog.focus(); } // Remove the focus event listener to the body element and stop listening // for specific key presses // document.body.removeEventListener('focus', this._maintainFocus, true); document.removeEventListener('keydown', this._bindKeypress); // Remove overlay class to document body. document.getElementsByTagName('html')[0].classList.remove('sui-has-overlay'); return this; }; /** * Destroy the current instance (after making sure the dialog has been hidden) * and remove all associated listeners from dialog openers and closers * * @return {this} */ A11yDialog.prototype.destroy = function () { // Hide the dialog to avoid destroying an open instance this.hide(); // Remove the click event listener from all dialog openers this._openers.forEach(function (opener) { opener.removeEventListener('click', this._show); }.bind(this)); // Remove the click event listener from all dialog closers this._closers.forEach(function (closer) { closer.removeEventListener('click', this._hide); }.bind(this)); // Execute all callbacks registered for the `destroy` event this._fire('destroy'); // Keep an object of listener types mapped to callback functions this._listeners = {}; return this; }; /** * Register a new callback for the given event type * * @param {string} type * @param {Function} handler */ A11yDialog.prototype.on = function (type, handler) { if (typeof this._listeners[type] === 'undefined') { this._listeners[type] = []; } this._listeners[type].push(handler); return this; }; /** * Unregister an existing callback for the given event type * * @param {string} type * @param {Function} handler */ A11yDialog.prototype.off = function (type, handler) { var index = this._listeners[type].indexOf(handler); if (index > -1) { this._listeners[type].splice(index, 1); } return this; }; /** * Iterate over all registered handlers for given type and call them all with * the dialog element as first argument, event as second argument (if any). * * @access private * @param {string} type * @param {Event} event */ A11yDialog.prototype._fire = function (type, event) { var listeners = this._listeners[type] || []; listeners.forEach(function (listener) { listener(this.node, event); }.bind(this)); }; /** * Private event handler used when listening to some specific key presses * (namely ESCAPE and TAB) * * @access private * @param {Event} event */ A11yDialog.prototype._bindKeypress = function (event) { // If the dialog is shown and the ESCAPE key is being pressed, prevent any // further effects from the ESCAPE key and hide the dialog if (this.shown && event.which === ESCAPE_KEY) { event.preventDefault(); this.hide(); } // If the dialog is shown and the TAB key is being pressed, make sure the // focus stays trapped within the dialog element if (this.shown && event.which === TAB_KEY) { trapTabKey(this.node, event); } }; /** * Private event handler used when making sure the focus stays within the * currently open dialog * * @access private * @param {Event} event */ A11yDialog.prototype._maintainFocus = function (event) { // If the dialog is shown and the focus is not within the dialog element, // move it back to its first focusable child if (this.shown && !this.node.contains(event.target)) { setFocusToFirstItem(this.node); } }; /** * Convert a NodeList into an array * * @param {NodeList} collection * @return {Array<Element>} */ function toArray(collection) { return Array.prototype.slice.call(collection); } /** * Query the DOM for nodes matching the given selector, scoped to context (or * the whole document) * * @param {String} selector * @param {Element} [context = document] * @return {Array<Element>} */ function $$(selector, context) { return toArray((context || document).querySelectorAll(selector)); } /** * Return an array of Element based on given argument (NodeList, Element or * string representing a selector) * * @param {(NodeList | Element | string)} target * @return {Array<Element>} */ function collect(target) { if (NodeList.prototype.isPrototypeOf(target)) { return toArray(target); } if (Element.prototype.isPrototypeOf(target)) { return [target]; } if (typeof target === 'string') { return $$(target); } } /** * Set the focus to the first focusable child of the given element * * @param {Element} node */ function setFocusToFirstItem(node) { var focusableChildren = getFocusableChildren(node); if (focusableChildren.length) { focusableChildren[0].focus(); } } /** * Get the focusable children of the given element * * @param {Element} node * @return {Array<Element>} */ function getFocusableChildren(node) { return $$(FOCUSABLE_ELEMENTS.join(','), node).filter(function (child) { return !!(child.offsetWidth || child.offsetHeight || child.getClientRects().length); }); } /** * Trap the focus inside the given element * * @param {Element} node * @param {Event} event */ function trapTabKey(node, event) { var focusableChildren = getFocusableChildren(node); var focusedItemIndex = focusableChildren.indexOf(document.activeElement); // If the SHIFT key is being pressed while tabbing (moving backwards) and // the currently focused item is the first one, move the focus to the last // focusable item from the dialog element if (event.shiftKey && focusedItemIndex === 0) { focusableChildren[focusableChildren.length - 1].focus(); event.preventDefault(); // If the SHIFT key is not being pressed (moving forwards) and the currently // focused item is the last one, move the focus to the first focusable item // from the dialog element } else if (!event.shiftKey && focusedItemIndex === focusableChildren.length - 1) { focusableChildren[0].focus(); event.preventDefault(); } } /** * Retrieve siblings from given element * * @param {Element} node * @return {Array<Element>} */ function getSiblings(node) { var nodes = toArray(node.parentNode.childNodes); var siblings = nodes.filter(function (node) { return node.nodeType === 1; }); siblings.splice(siblings.indexOf(node), 1); return siblings; } if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { module.exports = A11yDialog; } else if (typeof define === 'function' && define.amd) { define('A11yDialog', [], function () { return A11yDialog; }); } else if (typeof global === 'object') { global.A11yDialog = A11yDialog; } }(typeof global !== 'undefined' ? global : window));
33.889671
245
0.604766
52f80a1f30993ff1d9e079437284c653a5748388
583
js
JavaScript
dist/core/bind.js
BenjaminSao/n-app
cf34cfb105f9532af0a95898c649022623f9cce3
[ "MIT" ]
null
null
null
dist/core/bind.js
BenjaminSao/n-app
cf34cfb105f9532af0a95898c649022623f9cce3
[ "MIT" ]
null
null
null
dist/core/bind.js
BenjaminSao/n-app
cf34cfb105f9532af0a95898c649022623f9cce3
[ "MIT" ]
null
null
null
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.bind = exports.bindSymbol = void 0; require("reflect-metadata"); const n_defensive_1 = require("@nivinjoseph/n-defensive"); require("@nivinjoseph/n-ext"); exports.bindSymbol = Symbol("bind"); // public function bind(...bindings) { n_defensive_1.given(bindings, "bindings") .ensureHasValue() .ensure(t => t.length > 0, "cannot be empty"); return (target) => Reflect.defineMetadata(exports.bindSymbol, bindings, target); } exports.bind = bind; //# sourceMappingURL=bind.js.map
36.4375
84
0.704974
52f89ef49b4a4d788ccff0fadd37067f851e9395
35,301
js
JavaScript
locales/blocks-msgs.js
Suku1989/haniblock-l10n
2dd2c9d6b7779bd29f5860bfb923f48262059812
[ "BSD-3-Clause" ]
null
null
null
locales/blocks-msgs.js
Suku1989/haniblock-l10n
2dd2c9d6b7779bd29f5860bfb923f48262059812
[ "BSD-3-Clause" ]
null
null
null
locales/blocks-msgs.js
Suku1989/haniblock-l10n
2dd2c9d6b7779bd29f5860bfb923f48262059812
[ "BSD-3-Clause" ]
null
null
null
// GENERATED FILE: export default { "en": { "CONTROL_FOREVER": "forever", "CONTROL_REPEAT": "repeat %1", "CONTROL_IF": "if %1 then", "CONTROL_ELSE": "else", "CONTROL_STOP": "stop", "CONTROL_STOP_ALL": "all", "CONTROL_STOP_THIS": "this script", "CONTROL_STOP_OTHER": "other scripts in sprite", "CONTROL_WAIT": "wait %1 seconds", "CONTROL_WAITUNTIL": "wait until %1", "CONTROL_REPEATUNTIL": "repeat until %1", "CONTROL_WHILE": "while %1", "CONTROL_FOREACH": "for each %1 in %2", "CONTROL_STARTASCLONE": "when I start as a clone", "CONTROL_CREATECLONEOF": "create clone of %1", "CONTROL_CREATECLONEOF_MYSELF": "myself", "CONTROL_DELETETHISCLONE": "delete this clone", "CONTROL_COUNTER": "counter", "CONTROL_INCRCOUNTER": "increment counter", "CONTROL_CLEARCOUNTER": "clear counter", "CONTROL_ALLATONCE": "all at once", "DATA_SETVARIABLETO": "set %1 to %2", "DATA_CHANGEVARIABLEBY": "change %1 by %2", "DATA_SHOWVARIABLE": "show variable %1", "DATA_HIDEVARIABLE": "hide variable %1", "DATA_ADDTOLIST": "add %1 to %2", "DATA_DELETEOFLIST": "delete %1 of %2", "DATA_DELETEALLOFLIST": "delete all of %1", "DATA_INSERTATLIST": "insert %1 at %2 of %3", "DATA_REPLACEITEMOFLIST": "replace item %1 of %2 with %3", "DATA_ITEMOFLIST": "item %1 of %2", "DATA_ITEMNUMOFLIST": "item # of %1 in %2", "DATA_LENGTHOFLIST": "length of %1", "DATA_LISTCONTAINSITEM": "%1 contains %2?", "DATA_SHOWLIST": "show list %1", "DATA_HIDELIST": "hide list %1", "DATA_INDEX_ALL": "all", "DATA_INDEX_LAST": "last", "DATA_INDEX_RANDOM": "random", "EVENT_WHENARDUINOBEGIN": "when Arduino begin", "EVENT_WHENMICROBITBEGIN": "when Microbit begin", "EVENT_WHENMICROBITBUTTONPRESSED": "when button %1 pressed", "EVENT_WHENMICROBITPINBEINGTOUCHED": "when pin %1 being touched", "EVENT_WHENMICROBITGESTURE": "when the gestrue %1", "EVENT_WHENFLAGCLICKED": "when %1 clicked", "EVENT_WHENTHISSPRITECLICKED": "when this sprite clicked", "EVENT_WHENSTAGECLICKED": "when stage clicked", "EVENT_WHENTOUCHINGOBJECT": "when this sprite touches %1", "EVENT_WHENBROADCASTRECEIVED": "when I receive %1", "EVENT_WHENBACKDROPSWITCHESTO": "when backdrop switches to %1", "EVENT_WHENGREATERTHAN": "when %1 > %2", "EVENT_WHENGREATERTHAN_TIMER": "timer", "EVENT_WHENGREATERTHAN_LOUDNESS": "loudness", "EVENT_BROADCAST": "broadcast %1", "EVENT_BROADCASTANDWAIT": "broadcast %1 and wait", "EVENT_WHENKEYPRESSED": "when %1 key pressed", "EVENT_WHENMICROBITGESTURE_SHAKEN": "shaken", "EVENT_WHENMICROBITGESTURE_TILTEDUPWARD": "tilted upward", "EVENT_WHENMICROBITGESTURE_TILTEDDOWNWARD": "tilted downward", "EVENT_WHENMICROBITGESTURE_TILTEDDLEFTWARD": "tilted leftward", "EVENT_WHENMICROBITGESTURE_TILTEDDRIGHTWARD": "tilted rightward", "EVENT_WHENMICROBITGESTURE_FACEUP": "face up", "EVENT_WHENMICROBITGESTURE_FACEDOWN": "face down", "EVENT_WHENMICROBITGESTURE_FREEFALL": "freefall", "EVENT_WHENKEYPRESSED_SPACE": "space", "EVENT_WHENKEYPRESSED_LEFT": "left arrow", "EVENT_WHENKEYPRESSED_RIGHT": "right arrow", "EVENT_WHENKEYPRESSED_DOWN": "down arrow", "EVENT_WHENKEYPRESSED_UP": "up arrow", "EVENT_WHENKEYPRESSED_ANY": "any", "LOOKS_SAYFORSECS": "say %1 for %2 seconds", "LOOKS_SAY": "say %1", "LOOKS_HELLO": "Hello!", "LOOKS_THINKFORSECS": "think %1 for %2 seconds", "LOOKS_THINK": "think %1", "LOOKS_HMM": "Hmm...", "LOOKS_SHOW": "show", "LOOKS_HIDE": "hide", "LOOKS_HIDEALLSPRITES": "hide all sprites", "LOOKS_EFFECT_COLOR": "color", "LOOKS_EFFECT_FISHEYE": "fisheye", "LOOKS_EFFECT_WHIRL": "whirl", "LOOKS_EFFECT_PIXELATE": "pixelate", "LOOKS_EFFECT_MOSAIC": "mosaic", "LOOKS_EFFECT_BRIGHTNESS": "brightness", "LOOKS_EFFECT_GHOST": "ghost", "LOOKS_CHANGEEFFECTBY": "change %1 effect by %2", "LOOKS_SETEFFECTTO": "set %1 effect to %2", "LOOKS_CLEARGRAPHICEFFECTS": "clear graphic effects", "LOOKS_CHANGESIZEBY": "change size by %1", "LOOKS_SETSIZETO": "set size to %1 %", "LOOKS_SIZE": "size", "LOOKS_CHANGESTRETCHBY": "change stretch by %1", "LOOKS_SETSTRETCHTO": "set stretch to %1 %", "LOOKS_SWITCHCOSTUMETO": "switch costume to %1", "LOOKS_NEXTCOSTUME": "next costume", "LOOKS_SWITCHBACKDROPTO": "switch backdrop to %1", "LOOKS_GOTOFRONTBACK": "go to %1 layer", "LOOKS_GOTOFRONTBACK_FRONT": "front", "LOOKS_GOTOFRONTBACK_BACK": "back", "LOOKS_GOFORWARDBACKWARDLAYERS": "go %1 %2 layers", "LOOKS_GOFORWARDBACKWARDLAYERS_FORWARD": "forward", "LOOKS_GOFORWARDBACKWARDLAYERS_BACKWARD": "backward", "LOOKS_BACKDROPNUMBERNAME": "backdrop %1", "LOOKS_COSTUMENUMBERNAME": "costume %1", "LOOKS_NUMBERNAME_NUMBER": "number", "LOOKS_NUMBERNAME_NAME": "name", "LOOKS_SWITCHBACKDROPTOANDWAIT": "switch backdrop to %1 and wait", "LOOKS_NEXTBACKDROP_BLOCK": "next backdrop", "LOOKS_NEXTBACKDROP": "next backdrop", "LOOKS_PREVIOUSBACKDROP": "previous backdrop", "LOOKS_RANDOMBACKDROP": "random backdrop", "MOTION_MOVESTEPS": "move %1 steps", "MOTION_TURNLEFT": "turn %1 %2 degrees", "MOTION_TURNRIGHT": "turn %1 %2 degrees", "MOTION_POINTINDIRECTION": "point in direction %1", "MOTION_POINTTOWARDS": "point towards %1", "MOTION_POINTTOWARDS_POINTER": "mouse-pointer", "MOTION_POINTTOWARDS_RANDOM": "random direction", "MOTION_GOTO": "go to %1", "MOTION_GOTO_POINTER": "mouse-pointer", "MOTION_GOTO_RANDOM": "random position", "MOTION_GOTOXY": "go to x: %1 y: %2", "MOTION_GLIDESECSTOXY": "glide %1 secs to x: %2 y: %3", "MOTION_GLIDETO": "glide %1 secs to %2", "MOTION_GLIDETO_POINTER": "mouse-pointer", "MOTION_GLIDETO_RANDOM": "random position", "MOTION_CHANGEXBY": "change x by %1", "MOTION_SETX": "set x to %1", "MOTION_CHANGEYBY": "change y by %1", "MOTION_SETY": "set y to %1", "MOTION_IFONEDGEBOUNCE": "if on edge, bounce", "MOTION_SETROTATIONSTYLE": "set rotation style %1", "MOTION_SETROTATIONSTYLE_LEFTRIGHT": "left-right", "MOTION_SETROTATIONSTYLE_DONTROTATE": "don't rotate", "MOTION_SETROTATIONSTYLE_ALLAROUND": "all around", "MOTION_XPOSITION": "x position", "MOTION_YPOSITION": "y position", "MOTION_DIRECTION": "direction", "MOTION_SCROLLRIGHT": "scroll right %1", "MOTION_SCROLLUP": "scroll up %1", "MOTION_ALIGNSCENE": "align scene %1", "MOTION_ALIGNSCENE_BOTTOMLEFT": "bottom-left", "MOTION_ALIGNSCENE_BOTTOMRIGHT": "bottom-right", "MOTION_ALIGNSCENE_MIDDLE": "middle", "MOTION_ALIGNSCENE_TOPLEFT": "top-left", "MOTION_ALIGNSCENE_TOPRIGHT": "top-right", "MOTION_XSCROLL": "x scroll", "MOTION_YSCROLL": "y scroll", "MOTION_STAGE_SELECTED": "Stage selected: no motion blocks", "OPERATORS_ADD": "%1 + %2", "OPERATORS_SUBTRACT": "%1 - %2", "OPERATORS_MULTIPLY": "%1 * %2", "OPERATORS_DIVIDE": "%1 / %2", "OPERATORS_RANDOM": "pick random %1 to %2", "OPERATORS_GT": "%1 > %2", "OPERATORS_LT": "%1 < %2", "OPERATORS_EQUALS": "%1 = %2", "OPERATORS_AND": "%1 and %2", "OPERATORS_OR": "%1 or %2", "OPERATORS_NOT": "not %1", "OPERATORS_JOIN": "join %1 %2", "OPERATORS_JOIN_APPLE": "apple", "OPERATORS_JOIN_BANANA": "banana", "OPERATORS_LETTEROF": "letter %1 of %2", "OPERATORS_LETTEROF_APPLE": "a", "OPERATORS_LENGTH": "length of %1", "OPERATORS_CONTAINS": "%1 contains %2?", "OPERATORS_MOD": "%1 mod %2", "OPERATORS_ROUND": "round %1", "OPERATORS_MATHOP": "%1 of %2", "OPERATORS_MATHOP_ABS": "abs", "OPERATORS_MATHOP_FLOOR": "floor", "OPERATORS_MATHOP_CEILING": "ceiling", "OPERATORS_MATHOP_SQRT": "sqrt", "OPERATORS_MATHOP_SIN": "sin", "OPERATORS_MATHOP_COS": "cos", "OPERATORS_MATHOP_TAN": "tan", "OPERATORS_MATHOP_ASIN": "asin", "OPERATORS_MATHOP_ACOS": "acos", "OPERATORS_MATHOP_ATAN": "atan", "OPERATORS_MATHOP_LN": "ln", "OPERATORS_MATHOP_LOG": "log", "OPERATORS_MATHOP_EEXP": "e ^", "OPERATORS_MATHOP_10EXP": "10 ^", "PROCEDURES_DEFINITION": "define %1", "SENSING_TOUCHINGOBJECT": "touching %1?", "SENSING_TOUCHINGOBJECT_POINTER": "mouse-pointer", "SENSING_TOUCHINGOBJECT_EDGE": "edge", "SENSING_TOUCHINGCOLOR": "touching color %1?", "SENSING_COLORISTOUCHINGCOLOR": "color %1 is touching %2?", "SENSING_DISTANCETO": "distance to %1", "SENSING_DISTANCETO_POINTER": "mouse-pointer", "SENSING_ASKANDWAIT": "ask %1 and wait", "SENSING_ASK_TEXT": "What's your name?", "SENSING_ANSWER": "answer", "SENSING_KEYPRESSED": "key %1 pressed?", "SENSING_MOUSEDOWN": "mouse down?", "SENSING_MOUSEX": "mouse x", "SENSING_MOUSEY": "mouse y", "SENSING_SETDRAGMODE": "set drag mode %1", "SENSING_SETDRAGMODE_DRAGGABLE": "draggable", "SENSING_SETDRAGMODE_NOTDRAGGABLE": "not draggable", "SENSING_LOUDNESS": "loudness", "SENSING_LOUD": "loud?", "SENSING_TIMER": "timer", "SENSING_RESETTIMER": "reset timer", "SENSING_OF": "%1 of %2", "SENSING_OF_XPOSITION": "x position", "SENSING_OF_YPOSITION": "y position", "SENSING_OF_DIRECTION": "direction", "SENSING_OF_COSTUMENUMBER": "costume #", "SENSING_OF_COSTUMENAME": "costume name", "SENSING_OF_SIZE": "size", "SENSING_OF_VOLUME": "volume", "SENSING_OF_BACKDROPNUMBER": "backdrop #", "SENSING_OF_BACKDROPNAME": "backdrop name", "SENSING_OF_STAGE": "Stage", "SENSING_CURRENT": "current %1", "SENSING_CURRENT_YEAR": "year", "SENSING_CURRENT_MONTH": "month", "SENSING_CURRENT_DATE": "date", "SENSING_CURRENT_DAYOFWEEK": "day of week", "SENSING_CURRENT_HOUR": "hour", "SENSING_CURRENT_MINUTE": "minute", "SENSING_CURRENT_SECOND": "second", "SENSING_DAYSSINCE2000": "days since 2000", "SENSING_USERNAME": "username", "SENSING_USERID": "user id", "SOUND_PLAY": "start sound %1", "SOUND_PLAYUNTILDONE": "play sound %1 until done", "SOUND_STOPALLSOUNDS": "stop all sounds", "SOUND_SETEFFECTO": "set %1 effect to %2", "SOUND_CHANGEEFFECTBY": "change %1 effect by %2", "SOUND_CLEAREFFECTS": "clear sound effects", "SOUND_EFFECTS_PITCH": "pitch", "SOUND_EFFECTS_PAN": "pan left/right", "SOUND_CHANGEVOLUMEBY": "change volume by %1", "SOUND_SETVOLUMETO": "set volume to %1%", "SOUND_VOLUME": "volume", "SOUND_RECORD": "record...", "CATEGORY_MOTION": "Motion", "CATEGORY_LOOKS": "Looks", "CATEGORY_SOUND": "Sound", "CATEGORY_EVENTS": "Events", "CATEGORY_CONTROL": "Control", "CATEGORY_SENSING": "Sensing", "CATEGORY_OPERATORS": "Operators", "CATEGORY_VARIABLES": "Variables", "CATEGORY_MYBLOCKS": "My Blocks", "DUPLICATE": "Duplicate", "DELETE": "Delete", "ADD_COMMENT": "Add Comment", "REMOVE_COMMENT": "Remove Comment", "DELETE_BLOCK": "Delete Block", "DELETE_X_BLOCKS": "Delete %1 Blocks", "DELETE_ALL_BLOCKS": "Delete all %1 blocks?", "CLEAN_UP": "Clean up Blocks", "HELP": "Help", "UNDO": "Undo", "REDO": "Redo", "EDIT_PROCEDURE": "Edit", "SHOW_PROCEDURE_DEFINITION": "Go to definition", "WORKSPACE_COMMENT_DEFAULT_TEXT": "Say something...", "COLOUR_HUE_LABEL": "Color", "COLOUR_SATURATION_LABEL": "Saturation", "COLOUR_BRIGHTNESS_LABEL": "Brightness", "CHANGE_VALUE_TITLE": "Change value:", "RENAME_VARIABLE": "Rename variable", "RENAME_VARIABLE_TITLE": "Rename all \"%1\" variables to:", "RENAME_VARIABLE_MODAL_TITLE": "Rename Variable", "NEW_VARIABLE": "Make a Variable", "NEW_VARIABLE_TITLE": "New variable name:", "VARIABLE_MODAL_TITLE": "New Variable", "VARIABLE_ALREADY_EXISTS": "A variable named \"%1\" already exists.", "VARIABLE_ALREADY_EXISTS_FOR_ANOTHER_TYPE": "A variable named \"%1\" already exists for another variable of type \"%2\".", "DELETE_VARIABLE_CONFIRMATION": "Delete %1 uses of the \"%2\" variable?", "CANNOT_DELETE_VARIABLE_PROCEDURE": "Can't delete the variable \"%1\" because it's part of the definition of the function \"%2\"", "DELETE_VARIABLE": "Delete the \"%1\" variable", "NEW_PROCEDURE": "Make a Block", "PROCEDURE_ALREADY_EXISTS": "A procedure named \"%1\" already exists.", "PROCEDURE_DEFAULT_NAME": "block name", "PROCEDURE_USED": "To delete a block definition, first remove all uses of the block", "NEW_LIST": "Make a List", "NEW_LIST_TITLE": "New list name:", "LIST_MODAL_TITLE": "New List", "LIST_ALREADY_EXISTS": "A list named \"%1\" already exists.", "RENAME_LIST_TITLE": "Rename all \"%1\" lists to:", "RENAME_LIST_MODAL_TITLE": "Rename List", "DEFAULT_LIST_ITEM": "thing", "DELETE_LIST": "Delete the \"%1\" list", "RENAME_LIST": "Rename list", "NEW_BROADCAST_MESSAGE": "New message", "NEW_BROADCAST_MESSAGE_TITLE": "New message name:", "BROADCAST_MODAL_TITLE": "New Message", "DEFAULT_BROADCAST_MESSAGE_NAME": "message1" }, "zh-cn": { "CONTROL_FOREVER": "重复执行", "CONTROL_REPEAT": "重复执行 %1 次", "CONTROL_IF": "如果 %1 那么", "CONTROL_ELSE": "否则", "CONTROL_STOP": "停止", "CONTROL_STOP_ALL": "全部脚本", "CONTROL_STOP_THIS": "这个脚本", "CONTROL_STOP_OTHER": "该角色的其他脚本", "CONTROL_WAIT": "等待 %1 秒", "CONTROL_WAITUNTIL": "等待 %1", "CONTROL_REPEATUNTIL": "重复执行直到 %1", "CONTROL_WHILE": "当 %1 重复执行", "CONTROL_FOREACH": "对于 %2 中的每个 %1", "CONTROL_STARTASCLONE": "当作为克隆体启动时", "CONTROL_CREATECLONEOF": "克隆 %1", "CONTROL_CREATECLONEOF_MYSELF": "自己", "CONTROL_DELETETHISCLONE": "删除此克隆体", "CONTROL_COUNTER": "计数器", "CONTROL_INCRCOUNTER": "计数器加一", "CONTROL_CLEARCOUNTER": "计数器归零", "CONTROL_ALLATONCE": "所有脚本", "DATA_SETVARIABLETO": "将 %1 设为 %2", "DATA_CHANGEVARIABLEBY": "将 %1 增加 %2", "DATA_SHOWVARIABLE": "显示变量 %1", "DATA_HIDEVARIABLE": "隐藏变量 %1", "DATA_ADDTOLIST": "将 %1 加入 %2", "DATA_DELETEOFLIST": "删除 %2 的第 %1 项", "DATA_DELETEALLOFLIST": "删除 %1 的全部项目", "DATA_INSERTATLIST": "在 %3 的第 %2 项前插入 %1", "DATA_REPLACEITEMOFLIST": "将 %2 的第 %1 项替换为 %3", "DATA_ITEMOFLIST": "%2 的第 %1 项", "DATA_ITEMNUMOFLIST": "%2 中第一个 %1 的编号", "DATA_LENGTHOFLIST": "%1 的项目数", "DATA_LISTCONTAINSITEM": "%1 包含 %2 ?", "DATA_SHOWLIST": "显示列表 %1", "DATA_HIDELIST": "隐藏列表 %1", "DATA_INDEX_ALL": "全部", "DATA_INDEX_LAST": "末尾", "DATA_INDEX_RANDOM": "随机", "EVENT_WHENARDUINOBEGIN": "当Arduino启动", "EVENT_WHENMICROBITBEGIN": "当Microbit启动", "EVENT_WHENMICROBITBUTTONPRESSED": "当按键 %1 被按下", "EVENT_WHENMICROBITPINBEINGTOUCHED": "当引脚 %1 被触摸", "EVENT_WHENMICROBITGESTURE": "当姿态 %1", "EVENT_WHENFLAGCLICKED": "当 %1 被点击", "EVENT_WHENTHISSPRITECLICKED": "当角色被点击", "EVENT_WHENSTAGECLICKED": "当舞台被点击", "EVENT_WHENTOUCHINGOBJECT": "当该角色碰到 %1", "EVENT_WHENBROADCASTRECEIVED": "当接收到 %1", "EVENT_WHENBACKDROPSWITCHESTO": "当背景换成 %1", "EVENT_WHENGREATERTHAN": "当 %1 > %2", "EVENT_WHENGREATERTHAN_TIMER": "计时器", "EVENT_WHENGREATERTHAN_LOUDNESS": "响度", "EVENT_BROADCAST": "广播 %1", "EVENT_BROADCASTANDWAIT": "广播 %1 并等待", "EVENT_WHENKEYPRESSED": "当按下 %1 键", "EVENT_WHENMICROBITGESTURE_SHAKEN": "摇晃", "EVENT_WHENMICROBITGESTURE_TILTEDUPWARD": "向上倾斜", "EVENT_WHENMICROBITGESTURE_TILTEDDOWNWARD": "向下倾斜", "EVENT_WHENMICROBITGESTURE_TILTEDDLEFTWARD": "向左倾斜", "EVENT_WHENMICROBITGESTURE_TILTEDDRIGHTWARD": "向右倾斜", "EVENT_WHENMICROBITGESTURE_FACEUP": "正面朝上", "EVENT_WHENMICROBITGESTURE_FACEDOWN": "正面朝下", "EVENT_WHENMICROBITGESTURE_FREEFALL": "自由落体", "EVENT_WHENKEYPRESSED_SPACE": "空格", "EVENT_WHENKEYPRESSED_LEFT": "←", "EVENT_WHENKEYPRESSED_RIGHT": "→", "EVENT_WHENKEYPRESSED_DOWN": "↓", "EVENT_WHENKEYPRESSED_UP": "↑", "EVENT_WHENKEYPRESSED_ANY": "任意", "LOOKS_SAYFORSECS": "说 %1 %2 秒", "LOOKS_SAY": "说 %1", "LOOKS_HELLO": "你好!", "LOOKS_THINKFORSECS": "思考 %1 %2 秒", "LOOKS_THINK": "思考 %1", "LOOKS_HMM": "嗯……", "LOOKS_SHOW": "显示", "LOOKS_HIDE": "隐藏", "LOOKS_HIDEALLSPRITES": "隐藏所有角色", "LOOKS_EFFECT_COLOR": "颜色", "LOOKS_EFFECT_FISHEYE": "鱼眼", "LOOKS_EFFECT_WHIRL": "漩涡", "LOOKS_EFFECT_PIXELATE": "像素化", "LOOKS_EFFECT_MOSAIC": "马赛克", "LOOKS_EFFECT_BRIGHTNESS": "亮度", "LOOKS_EFFECT_GHOST": "虚像", "LOOKS_CHANGEEFFECTBY": "将 %1 特效增加 %2", "LOOKS_SETEFFECTTO": "将 %1 特效设定为 %2", "LOOKS_CLEARGRAPHICEFFECTS": "清除图形特效", "LOOKS_CHANGESIZEBY": "将大小增加 %1", "LOOKS_SETSIZETO": "将大小设为 %1", "LOOKS_SIZE": "大小", "LOOKS_CHANGESTRETCHBY": "伸缩%1", "LOOKS_SETSTRETCHTO": "设置伸缩为%1 %", "LOOKS_SWITCHCOSTUMETO": "换成 %1 造型", "LOOKS_NEXTCOSTUME": "下一个造型", "LOOKS_SWITCHBACKDROPTO": "换成 %1 背景", "LOOKS_GOTOFRONTBACK": "移到最 %1 ", "LOOKS_GOTOFRONTBACK_FRONT": "前面", "LOOKS_GOTOFRONTBACK_BACK": "后面", "LOOKS_GOFORWARDBACKWARDLAYERS": "%1 %2 层", "LOOKS_GOFORWARDBACKWARDLAYERS_FORWARD": "前移", "LOOKS_GOFORWARDBACKWARDLAYERS_BACKWARD": "后移", "LOOKS_BACKDROPNUMBERNAME": "背景 %1", "LOOKS_COSTUMENUMBERNAME": "造型 %1", "LOOKS_NUMBERNAME_NUMBER": "编号", "LOOKS_NUMBERNAME_NAME": "名称", "LOOKS_SWITCHBACKDROPTOANDWAIT": "换成 %1 背景并等待", "LOOKS_NEXTBACKDROP_BLOCK": "下一个背景", "LOOKS_NEXTBACKDROP": "下一个背景", "LOOKS_PREVIOUSBACKDROP": "上一个背景", "LOOKS_RANDOMBACKDROP": "随机背景", "MOTION_MOVESTEPS": "移动 %1 步", "MOTION_TURNLEFT": "左转 %1 %2 度", "MOTION_TURNRIGHT": "右转 %1 %2 度", "MOTION_POINTINDIRECTION": "面向 %1 方向", "MOTION_POINTTOWARDS": "面向 %1", "MOTION_POINTTOWARDS_POINTER": "鼠标指针", "MOTION_POINTTOWARDS_RANDOM": "随机方向", "MOTION_GOTO": "移到 %1", "MOTION_GOTO_POINTER": "鼠标指针", "MOTION_GOTO_RANDOM": "随机位置", "MOTION_GOTOXY": "移到 x: %1 y: %2", "MOTION_GLIDESECSTOXY": "在 %1 秒内滑行到 x: %2 y: %3", "MOTION_GLIDETO": "在 %1 秒内滑行到 %2", "MOTION_GLIDETO_POINTER": "鼠标指针", "MOTION_GLIDETO_RANDOM": "随机位置", "MOTION_CHANGEXBY": "将x坐标增加 %1", "MOTION_SETX": "将x坐标设为 %1", "MOTION_CHANGEYBY": "将y坐标增加 %1", "MOTION_SETY": "将y坐标设为 %1", "MOTION_IFONEDGEBOUNCE": "碰到边缘就反弹", "MOTION_SETROTATIONSTYLE": "将旋转方式设为 %1", "MOTION_SETROTATIONSTYLE_LEFTRIGHT": "左右翻转", "MOTION_SETROTATIONSTYLE_DONTROTATE": "不可旋转", "MOTION_SETROTATIONSTYLE_ALLAROUND": "任意旋转", "MOTION_XPOSITION": "x 坐标", "MOTION_YPOSITION": "y 坐标", "MOTION_DIRECTION": "方向", "MOTION_SCROLLRIGHT": "向右滚动 %1", "MOTION_SCROLLUP": "向上滚动 %1", "MOTION_ALIGNSCENE": "和场景 %1 对齐", "MOTION_ALIGNSCENE_BOTTOMLEFT": "左下角", "MOTION_ALIGNSCENE_BOTTOMRIGHT": "右下角", "MOTION_ALIGNSCENE_MIDDLE": "中间", "MOTION_ALIGNSCENE_TOPLEFT": "左上角", "MOTION_ALIGNSCENE_TOPRIGHT": "右上角", "MOTION_XSCROLL": "x滚动位置", "MOTION_YSCROLL": "y滚动位置", "MOTION_STAGE_SELECTED": "选中了舞台:不可使用运动类积木", "OPERATORS_ADD": "%1 + %2", "OPERATORS_SUBTRACT": "%1 - %2", "OPERATORS_MULTIPLY": "%1 * %2", "OPERATORS_DIVIDE": "%1 / %2", "OPERATORS_RANDOM": "在 %1 和 %2 之间取随机数", "OPERATORS_GT": "%1 > %2", "OPERATORS_LT": "%1 < %2", "OPERATORS_EQUALS": "%1 = %2", "OPERATORS_AND": "%1 与 %2", "OPERATORS_OR": "%1 或 %2", "OPERATORS_NOT": "%1 不成立", "OPERATORS_JOIN": "连接 %1 和 %2", "OPERATORS_JOIN_APPLE": "苹果", "OPERATORS_JOIN_BANANA": "香蕉", "OPERATORS_LETTEROF": "%2 的第 %1 个字符", "OPERATORS_LETTEROF_APPLE": "果", "OPERATORS_LENGTH": "%1 的字符数", "OPERATORS_CONTAINS": "%1 包含 %2 ?", "OPERATORS_MOD": "%1 除以 %2 的余数", "OPERATORS_ROUND": "四舍五入 %1", "OPERATORS_MATHOP": "%1 %2", "OPERATORS_MATHOP_ABS": "绝对值", "OPERATORS_MATHOP_FLOOR": "向下取整", "OPERATORS_MATHOP_CEILING": "向上取整", "OPERATORS_MATHOP_SQRT": "平方根", "OPERATORS_MATHOP_SIN": "sin", "OPERATORS_MATHOP_COS": "cos", "OPERATORS_MATHOP_TAN": "tan", "OPERATORS_MATHOP_ASIN": "asin", "OPERATORS_MATHOP_ACOS": "acos", "OPERATORS_MATHOP_ATAN": "atan", "OPERATORS_MATHOP_LN": "ln", "OPERATORS_MATHOP_LOG": "log", "OPERATORS_MATHOP_EEXP": "e ^", "OPERATORS_MATHOP_10EXP": "10 ^", "PROCEDURES_DEFINITION": "定义 %1", "SENSING_TOUCHINGOBJECT": "碰到 %1 ?", "SENSING_TOUCHINGOBJECT_POINTER": "鼠标指针", "SENSING_TOUCHINGOBJECT_EDGE": "舞台边缘", "SENSING_TOUCHINGCOLOR": "碰到颜色 %1 ?", "SENSING_COLORISTOUCHINGCOLOR": "颜色 %1 碰到 %2 ?", "SENSING_DISTANCETO": "到 %1 的距离", "SENSING_DISTANCETO_POINTER": "鼠标指针", "SENSING_ASKANDWAIT": "询问 %1 并等待", "SENSING_ASK_TEXT": "你叫什么名字?", "SENSING_ANSWER": "回答", "SENSING_KEYPRESSED": "按下 %1 键?", "SENSING_MOUSEDOWN": "按下鼠标?", "SENSING_MOUSEX": "鼠标的x坐标", "SENSING_MOUSEY": "鼠标的y坐标", "SENSING_SETDRAGMODE": "将拖动模式设为 %1", "SENSING_SETDRAGMODE_DRAGGABLE": "可拖动", "SENSING_SETDRAGMODE_NOTDRAGGABLE": "不可拖动", "SENSING_LOUDNESS": "响度", "SENSING_LOUD": "响声?", "SENSING_TIMER": "计时器", "SENSING_RESETTIMER": "计时器归零", "SENSING_OF": "%2 的 %1", "SENSING_OF_XPOSITION": "x 坐标", "SENSING_OF_YPOSITION": "y 坐标", "SENSING_OF_DIRECTION": "方向", "SENSING_OF_COSTUMENUMBER": "造型编号", "SENSING_OF_COSTUMENAME": "造型名称", "SENSING_OF_SIZE": "大小", "SENSING_OF_VOLUME": "音量", "SENSING_OF_BACKDROPNUMBER": "背景编号", "SENSING_OF_BACKDROPNAME": "背景名称", "SENSING_OF_STAGE": "舞台", "SENSING_CURRENT": "当前时间的 %1", "SENSING_CURRENT_YEAR": "年", "SENSING_CURRENT_MONTH": "月", "SENSING_CURRENT_DATE": "日", "SENSING_CURRENT_DAYOFWEEK": "星期", "SENSING_CURRENT_HOUR": "时", "SENSING_CURRENT_MINUTE": "分", "SENSING_CURRENT_SECOND": "秒", "SENSING_DAYSSINCE2000": "2000年至今的天数", "SENSING_USERNAME": "用户名", "SENSING_USERID": "用户id", "SOUND_PLAY": "播放声音 %1", "SOUND_PLAYUNTILDONE": "播放声音 %1 等待播完", "SOUND_STOPALLSOUNDS": "停止所有声音", "SOUND_SETEFFECTO": "将 %1 音效设为 %2", "SOUND_CHANGEEFFECTBY": "将 %1 音效增加 %2", "SOUND_CLEAREFFECTS": "清除音效", "SOUND_EFFECTS_PITCH": "音调", "SOUND_EFFECTS_PAN": "左右平衡", "SOUND_CHANGEVOLUMEBY": "将音量增加 %1", "SOUND_SETVOLUMETO": "将音量设为 %1%", "SOUND_VOLUME": "音量", "SOUND_RECORD": "录制…", "CATEGORY_MOTION": "运动", "CATEGORY_LOOKS": "外观", "CATEGORY_SOUND": "声音", "CATEGORY_EVENTS": "事件", "CATEGORY_CONTROL": "控制", "CATEGORY_SENSING": "侦测", "CATEGORY_OPERATORS": "运算", "CATEGORY_VARIABLES": "变量", "CATEGORY_MYBLOCKS": "自制积木", "DUPLICATE": "复制", "DELETE": "删除", "ADD_COMMENT": "添加注释", "REMOVE_COMMENT": "删除注释", "DELETE_BLOCK": "删除", "DELETE_X_BLOCKS": "删除 %1 积木", "DELETE_ALL_BLOCKS": "删除全部 %1 积木?", "CLEAN_UP": "整理积木", "HELP": "帮助", "UNDO": "撤销", "REDO": "重做", "EDIT_PROCEDURE": "编辑", "SHOW_PROCEDURE_DEFINITION": "查看定义", "WORKSPACE_COMMENT_DEFAULT_TEXT": "说些什么……", "COLOUR_HUE_LABEL": "颜色", "COLOUR_SATURATION_LABEL": "饱和度", "COLOUR_BRIGHTNESS_LABEL": "亮度", "CHANGE_VALUE_TITLE": "更改变量:", "RENAME_VARIABLE": "修改变量名", "RENAME_VARIABLE_TITLE": "将所有的「%1」变量名改为:", "RENAME_VARIABLE_MODAL_TITLE": "修改变量名", "NEW_VARIABLE": "建立一个变量", "NEW_VARIABLE_TITLE": "新变量名:", "VARIABLE_MODAL_TITLE": "新建变量", "VARIABLE_ALREADY_EXISTS": "已经存在名为「%1」的变量。", "VARIABLE_ALREADY_EXISTS_FOR_ANOTHER_TYPE": "已经存在一个名为「%1」的变量,其类型为「%2」。", "DELETE_VARIABLE_CONFIRMATION": "删除%1处「%2」变量吗?", "CANNOT_DELETE_VARIABLE_PROCEDURE": "无法删除变量「%1」,因为函数「%2」的定义中用到了它", "DELETE_VARIABLE": "删除变量「%1」", "NEW_PROCEDURE": "制作新的积木", "PROCEDURE_ALREADY_EXISTS": "已经存在名为「%1」的程序。", "PROCEDURE_DEFAULT_NAME": "积木名称", "PROCEDURE_USED": "在删除一个积木定义前,请先把该积木从所有使用的地方删除。", "NEW_LIST": "建立一个列表", "NEW_LIST_TITLE": "新的列表名:", "LIST_MODAL_TITLE": "新建列表", "LIST_ALREADY_EXISTS": "名为 「%1」 的列表已存在。", "RENAME_LIST_TITLE": "将所有的「%1」列表改名为:", "RENAME_LIST_MODAL_TITLE": "修改列表名", "DEFAULT_LIST_ITEM": "东西", "DELETE_LIST": "删除「%1」列表", "RENAME_LIST": "修改列表名", "NEW_BROADCAST_MESSAGE": "新消息", "NEW_BROADCAST_MESSAGE_TITLE": "新消息的名称:", "BROADCAST_MODAL_TITLE": "新消息", "DEFAULT_BROADCAST_MESSAGE_NAME": "消息1" }, "zh-tw": { "CONTROL_FOREVER": "重複無限次", "CONTROL_REPEAT": "重複 %1 次", "CONTROL_IF": "如果 %1 那麼", "CONTROL_ELSE": "否則", "CONTROL_STOP": "停止", "CONTROL_STOP_ALL": "全部", "CONTROL_STOP_THIS": "這個程式", "CONTROL_STOP_OTHER": "這個物件的其它程式", "CONTROL_WAIT": "等待 %1 秒", "CONTROL_WAITUNTIL": "等待直到 %1", "CONTROL_REPEATUNTIL": "重複直到 %1", "CONTROL_WHILE": "當 %1", "CONTROL_FOREACH": "計數 %1 於 %2", "CONTROL_STARTASCLONE": "當分身產生", "CONTROL_CREATECLONEOF": "建立 %1 的分身", "CONTROL_CREATECLONEOF_MYSELF": "自己", "CONTROL_DELETETHISCLONE": "分身刪除", "CONTROL_COUNTER": "計數器", "CONTROL_INCRCOUNTER": "計數器累計", "CONTROL_CLEARCOUNTER": "計數器重置", "CONTROL_ALLATONCE": "全部一起", "DATA_SETVARIABLETO": "變數 %1 設為 %2", "DATA_CHANGEVARIABLEBY": "變數 %1 改變 %2", "DATA_SHOWVARIABLE": "變數 %1 顯示", "DATA_HIDEVARIABLE": "變數 %1 隱藏", "DATA_ADDTOLIST": "添加 %1 到 %2", "DATA_DELETEOFLIST": "刪除 %2 的第 %1 項", "DATA_DELETEALLOFLIST": "刪除 %1 的所有項目", "DATA_INSERTATLIST": "插入 %1 到 %3 的第 %2 項", "DATA_REPLACEITEMOFLIST": "替換 %2 的第 %1 項為 %3", "DATA_ITEMOFLIST": "%2 的第 %1 項", "DATA_ITEMNUMOFLIST": "%1 在 %2 裡的項目編號", "DATA_LENGTHOFLIST": "清單 %1 的長度", "DATA_LISTCONTAINSITEM": "清單 %1 包含 %2?", "DATA_SHOWLIST": "清單 %1 顯示", "DATA_HIDELIST": "清單 %1 隱藏", "DATA_INDEX_ALL": "全部", "DATA_INDEX_LAST": "末", "DATA_INDEX_RANDOM": "隨機", "EVENT_WHENARDUINOBEGIN": "當Arduino啟動", "EVENT_WHENMICROBITBEGIN": "當Microbit啟動", "EVENT_WHENMICROBITBUTTONPRESSED": "當按鈕 %1 被按下", "EVENT_WHENMICROBITPINBEINGTOUCHED": "當腳位 %1 被觸摸", "EVENT_WHENMICROBITGESTURE": "當姿態 %1", "EVENT_WHENFLAGCLICKED": "當 %1 被點擊", "EVENT_WHENTHISSPRITECLICKED": "當角色被點擊", "EVENT_WHENSTAGECLICKED": "當舞台被點擊", "EVENT_WHENTOUCHINGOBJECT": "當角色碰到 %1", "EVENT_WHENBROADCASTRECEIVED": "當收到訊息 %1", "EVENT_WHENBACKDROPSWITCHESTO": "當背景換成 %1", "EVENT_WHENGREATERTHAN": "當 %1 > %2", "EVENT_WHENGREATERTHAN_TIMER": "計時器", "EVENT_WHENGREATERTHAN_LOUDNESS": "聲音響度", "EVENT_BROADCAST": "廣播訊息 %1", "EVENT_BROADCASTANDWAIT": "廣播訊息 %1 並等待", "EVENT_WHENKEYPRESSED": "當 %1 鍵被按下", "EVENT_WHENMICROBITGESTURE_SHAKEN": "晃動", "EVENT_WHENMICROBITGESTURE_TILTEDUPWARD": "向上傾斜", "EVENT_WHENMICROBITGESTURE_TILTEDDOWNWARD": "向下傾斜", "EVENT_WHENMICROBITGESTURE_TILTEDDLEFTWARD": "向左傾斜", "EVENT_WHENMICROBITGESTURE_TILTEDDRIGHTWARD": "向右傾斜", "EVENT_WHENMICROBITGESTURE_FACEUP": "正面朝上", "EVENT_WHENMICROBITGESTURE_FACEDOWN": "正面朝下", "EVENT_WHENMICROBITGESTURE_FREEFALL": "自由落體", "EVENT_WHENKEYPRESSED_SPACE": "空白", "EVENT_WHENKEYPRESSED_LEFT": "向左", "EVENT_WHENKEYPRESSED_RIGHT": "向右", "EVENT_WHENKEYPRESSED_DOWN": "向下", "EVENT_WHENKEYPRESSED_UP": "向上", "EVENT_WHENKEYPRESSED_ANY": "任何", "LOOKS_SAYFORSECS": "說出 %1 持續 %2 秒", "LOOKS_SAY": "說出 %1", "LOOKS_HELLO": "Hello!", "LOOKS_THINKFORSECS": "想著 %1 持續 %2 秒", "LOOKS_THINK": "想著 %1", "LOOKS_HMM": "Hmm...", "LOOKS_SHOW": "顯示", "LOOKS_HIDE": "隱藏", "LOOKS_HIDEALLSPRITES": "隱藏所有角色", "LOOKS_EFFECT_COLOR": "顏色", "LOOKS_EFFECT_FISHEYE": "魚眼", "LOOKS_EFFECT_WHIRL": "漩渦", "LOOKS_EFFECT_PIXELATE": "像素化", "LOOKS_EFFECT_MOSAIC": "馬賽克", "LOOKS_EFFECT_BRIGHTNESS": "亮度", "LOOKS_EFFECT_GHOST": "幻影", "LOOKS_CHANGEEFFECTBY": "圖像效果 %1 改變 %2", "LOOKS_SETEFFECTTO": "圖像效果 %1 設為 %2", "LOOKS_CLEARGRAPHICEFFECTS": "圖像效果清除", "LOOKS_CHANGESIZEBY": "尺寸改變 %1", "LOOKS_SETSIZETO": "尺寸設為 %1 %", "LOOKS_SIZE": "尺寸", "LOOKS_CHANGESTRETCHBY": "伸縮改變 %1", "LOOKS_SETSTRETCHTO": "伸縮設為 %1 %", "LOOKS_SWITCHCOSTUMETO": "造型換成 %1", "LOOKS_NEXTCOSTUME": "造型換成下一個", "LOOKS_SWITCHBACKDROPTO": "背景換成 %1", "LOOKS_GOTOFRONTBACK": "圖層移到 %1 層", "LOOKS_GOTOFRONTBACK_FRONT": "最上", "LOOKS_GOTOFRONTBACK_BACK": "最下", "LOOKS_GOFORWARDBACKWARDLAYERS": "圖層 %1 移 %2 層", "LOOKS_GOFORWARDBACKWARDLAYERS_FORWARD": "上", "LOOKS_GOFORWARDBACKWARDLAYERS_BACKWARD": "下", "LOOKS_BACKDROPNUMBERNAME": "背景 %1", "LOOKS_COSTUMENUMBERNAME": "造型 %1", "LOOKS_NUMBERNAME_NUMBER": "編號", "LOOKS_NUMBERNAME_NAME": "名稱", "LOOKS_SWITCHBACKDROPTOANDWAIT": "背景換成 %1 並等待", "LOOKS_NEXTBACKDROP_BLOCK": "背景換成下一個", "LOOKS_NEXTBACKDROP": "下一個背景", "LOOKS_PREVIOUSBACKDROP": "上一個背景", "LOOKS_RANDOMBACKDROP": "任一個背景", "MOTION_MOVESTEPS": "移動 %1 點", "MOTION_TURNLEFT": "左轉 %1 %2 度", "MOTION_TURNRIGHT": "右轉 %1 %2 度", "MOTION_POINTINDIRECTION": "面朝 %1 度", "MOTION_POINTTOWARDS": "面朝 %1 向", "MOTION_POINTTOWARDS_POINTER": "鼠標", "MOTION_POINTTOWARDS_RANDOM": "隨機", "MOTION_GOTO": "定位到 %1 位置", "MOTION_GOTO_POINTER": "鼠標", "MOTION_GOTO_RANDOM": "隨機", "MOTION_GOTOXY": "定位到 x:%1 y:%2", "MOTION_GLIDESECSTOXY": "滑行 %1 秒到 x:%2 y:%3", "MOTION_GLIDETO": "滑行 %1 秒到 %2 位置", "MOTION_GLIDETO_POINTER": "鼠標", "MOTION_GLIDETO_RANDOM": "隨機", "MOTION_CHANGEXBY": "x 改變 %1", "MOTION_SETX": "x 設為 %1", "MOTION_CHANGEYBY": "y 改變 %1", "MOTION_SETY": "y 設為 %1", "MOTION_IFONEDGEBOUNCE": "碰到邊緣就反彈", "MOTION_SETROTATIONSTYLE": "迴轉方式設為 %1", "MOTION_SETROTATIONSTYLE_LEFTRIGHT": "左-右", "MOTION_SETROTATIONSTYLE_DONTROTATE": "不旋轉", "MOTION_SETROTATIONSTYLE_ALLAROUND": "不設限", "MOTION_XPOSITION": "x 座標", "MOTION_YPOSITION": "y 座標", "MOTION_DIRECTION": "方向", "MOTION_SCROLLRIGHT": "滾動向右 %1", "MOTION_SCROLLUP": "滾動向上 %1", "MOTION_ALIGNSCENE": "場景 %1 對齊", "MOTION_ALIGNSCENE_BOTTOMLEFT": "左下", "MOTION_ALIGNSCENE_BOTTOMRIGHT": "右下", "MOTION_ALIGNSCENE_MIDDLE": "中間", "MOTION_ALIGNSCENE_TOPLEFT": "左上", "MOTION_ALIGNSCENE_TOPRIGHT": "右上", "MOTION_XSCROLL": "x 捲軸", "MOTION_YSCROLL": "y 捲軸", "MOTION_STAGE_SELECTED": "目前選擇的物件是「舞台」:無可用的動作積木", "OPERATORS_ADD": "%1 + %2", "OPERATORS_SUBTRACT": "%1 - %2", "OPERATORS_MULTIPLY": "%1 * %2", "OPERATORS_DIVIDE": "%1 / %2", "OPERATORS_RANDOM": "隨機取數 %1 到 %2", "OPERATORS_GT": "%1 > %2", "OPERATORS_LT": "%1 < %2", "OPERATORS_EQUALS": "%1 = %2", "OPERATORS_AND": "%1 且 %2", "OPERATORS_OR": "%1 或 %2", "OPERATORS_NOT": "%1 不成立", "OPERATORS_JOIN": "字串組合 %1 %2", "OPERATORS_JOIN_APPLE": "apple", "OPERATORS_JOIN_BANANA": "banana", "OPERATORS_LETTEROF": "字串 %2 的第 %1 字", "OPERATORS_LETTEROF_APPLE": "a", "OPERATORS_LENGTH": "字串 %1 的長度", "OPERATORS_CONTAINS": "字串 %1 包含 %2?", "OPERATORS_MOD": "%1 除以 %2 的餘數", "OPERATORS_ROUND": "四捨五入數值 %1", "OPERATORS_MATHOP": "%1 數值 %2", "OPERATORS_MATHOP_ABS": "絕對值", "OPERATORS_MATHOP_FLOOR": "無條件捨去", "OPERATORS_MATHOP_CEILING": "無條件進位", "OPERATORS_MATHOP_SQRT": "平方根", "OPERATORS_MATHOP_SIN": "sin", "OPERATORS_MATHOP_COS": "cos", "OPERATORS_MATHOP_TAN": "tan", "OPERATORS_MATHOP_ASIN": "asin", "OPERATORS_MATHOP_ACOS": "acos", "OPERATORS_MATHOP_ATAN": "atan", "OPERATORS_MATHOP_LN": "ln", "OPERATORS_MATHOP_LOG": "log", "OPERATORS_MATHOP_EEXP": "e ^", "OPERATORS_MATHOP_10EXP": "10 ^", "PROCEDURES_DEFINITION": "定義 %1", "SENSING_TOUCHINGOBJECT": "碰到 %1?", "SENSING_TOUCHINGOBJECT_POINTER": "鼠標", "SENSING_TOUCHINGOBJECT_EDGE": "邊緣", "SENSING_TOUCHINGCOLOR": "碰到顏色 %1?", "SENSING_COLORISTOUCHINGCOLOR": "顏色 %1 碰到 顏色 %2?", "SENSING_DISTANCETO": "與 %1 的間距", "SENSING_DISTANCETO_POINTER": "鼠標", "SENSING_ASKANDWAIT": "詢問 %1 並等待", "SENSING_ASK_TEXT": "你的名字是?", "SENSING_ANSWER": "詢問的答案", "SENSING_KEYPRESSED": "%1 鍵被按下?", "SENSING_MOUSEDOWN": "滑鼠鍵被按下?", "SENSING_MOUSEX": "鼠標的 x", "SENSING_MOUSEY": "鼠標的 y", "SENSING_SETDRAGMODE": "拖曳方式設為 %1", "SENSING_SETDRAGMODE_DRAGGABLE": "可拖曳", "SENSING_SETDRAGMODE_NOTDRAGGABLE": "不可拖曳", "SENSING_LOUDNESS": "聲音響度", "SENSING_LOUD": "大聲?", "SENSING_TIMER": "計時器", "SENSING_RESETTIMER": "計時器重置", "SENSING_OF": "%2 的 %1", "SENSING_OF_XPOSITION": "x 座標", "SENSING_OF_YPOSITION": "y 座標", "SENSING_OF_DIRECTION": "方向", "SENSING_OF_COSTUMENUMBER": "造型編號", "SENSING_OF_COSTUMENAME": "造型名稱", "SENSING_OF_SIZE": "尺寸", "SENSING_OF_VOLUME": "音量", "SENSING_OF_BACKDROPNUMBER": "背景編號", "SENSING_OF_BACKDROPNAME": "背景名稱", "SENSING_OF_STAGE": "舞台", "SENSING_CURRENT": "目前時間的 %1", "SENSING_CURRENT_YEAR": "年", "SENSING_CURRENT_MONTH": "月", "SENSING_CURRENT_DATE": "日", "SENSING_CURRENT_DAYOFWEEK": "週", "SENSING_CURRENT_HOUR": "時", "SENSING_CURRENT_MINUTE": "分", "SENSING_CURRENT_SECOND": "秒", "SENSING_DAYSSINCE2000": "2000年迄今日數", "SENSING_USERNAME": "用戶名稱", "SENSING_USERID": "用戶 ID", "SOUND_PLAY": "播放音效 %1", "SOUND_PLAYUNTILDONE": "播放音效 %1 直到結束", "SOUND_STOPALLSOUNDS": "停播所有音效", "SOUND_SETEFFECTO": "聲音效果 %1 設為 %2", "SOUND_CHANGEEFFECTBY": "聲音效果 %1 改變 %2", "SOUND_CLEAREFFECTS": "聲音效果清除", "SOUND_EFFECTS_PITCH": "音高", "SOUND_EFFECTS_PAN": "聲道左/右", "SOUND_CHANGEVOLUMEBY": "音量改變 %1", "SOUND_SETVOLUMETO": "音量設為 %1%", "SOUND_VOLUME": "音量", "SOUND_RECORD": "錄音…", "CATEGORY_MOTION": "動作", "CATEGORY_LOOKS": "外觀", "CATEGORY_SOUND": "音效", "CATEGORY_EVENTS": "事件", "CATEGORY_CONTROL": "控制", "CATEGORY_SENSING": "偵測", "CATEGORY_OPERATORS": "運算", "CATEGORY_VARIABLES": "變數", "CATEGORY_MYBLOCKS": "函式積木", "DUPLICATE": "複製", "DELETE": "刪除", "ADD_COMMENT": "增加註解", "REMOVE_COMMENT": "移除註解", "DELETE_BLOCK": "刪除積木", "DELETE_X_BLOCKS": "刪除 %1 個積木", "DELETE_ALL_BLOCKS": "要刪除全部(%1 個)積木?", "CLEAN_UP": "整理積木", "HELP": "幫助", "UNDO": "復原", "REDO": "重做", "EDIT_PROCEDURE": "編輯", "SHOW_PROCEDURE_DEFINITION": "移至定義", "WORKSPACE_COMMENT_DEFAULT_TEXT": "說些什麼…", "COLOUR_HUE_LABEL": "顏色", "COLOUR_SATURATION_LABEL": "彩度", "COLOUR_BRIGHTNESS_LABEL": "亮度", "CHANGE_VALUE_TITLE": "改成:", "RENAME_VARIABLE": "重新命名變數", "RENAME_VARIABLE_TITLE": "將變數「%1」重新命名為:", "RENAME_VARIABLE_MODAL_TITLE": "重新命名變數", "NEW_VARIABLE": "建立一個變數", "NEW_VARIABLE_TITLE": "新變數的名稱", "VARIABLE_MODAL_TITLE": "新的變數", "VARIABLE_ALREADY_EXISTS": "變數名稱「%1」已經被使用。", "VARIABLE_ALREADY_EXISTS_FOR_ANOTHER_TYPE": "變數名稱「%1」已經被使用在「%2」型別了。", "DELETE_VARIABLE_CONFIRMATION": "刪除正在使用的變數「%2」的 %1 個地方?", "CANNOT_DELETE_VARIABLE_PROCEDURE": "無法刪除變數「%1」,因為它是函式「%2」定義中的一部分。", "DELETE_VARIABLE": "刪除變數「%1」", "NEW_PROCEDURE": "建立一個積木", "PROCEDURE_ALREADY_EXISTS": "程序名稱「%1」已經被使用。", "PROCEDURE_DEFAULT_NAME": "積木名稱", "PROCEDURE_USED": "刪除某個積木的定義之前,要先把正在使用中的先移除", "NEW_LIST": "建立一個清單", "NEW_LIST_TITLE": "新清單的名稱", "LIST_MODAL_TITLE": "新的清單", "LIST_ALREADY_EXISTS": "清單名稱「%1」已經被使用。", "RENAME_LIST_TITLE": "將清單「%1」重新命名為:", "RENAME_LIST_MODAL_TITLE": "重新命名清單", "DEFAULT_LIST_ITEM": "thing", "DELETE_LIST": "刪除清單「%1」", "RENAME_LIST": "重新命名清單", "NEW_BROADCAST_MESSAGE": "新的訊息", "NEW_BROADCAST_MESSAGE_TITLE": "新訊息的名稱", "BROADCAST_MODAL_TITLE": "新的訊息", "DEFAULT_BROADCAST_MESSAGE_NAME": "訊息1" } };
39.31069
134
0.649698
52f8a89d222542cb136792e8fb7580823d476114
274
js
JavaScript
wwwroot/arcgis_js_api/library/4.3/4.3/esri/widgets/Tags/nls/id/Tags.js
qingqibing/23DProject
fbd4a484fccb2f4efb97eaef3bd10ecec78e21e5
[ "MIT" ]
1
2019-05-01T18:06:31.000Z
2019-05-01T18:06:31.000Z
wwwroot/arcgis_js_api/library/4.3/4.3/esri/widgets/Tags/nls/id/Tags.js
guzhongren/23DProject
fbd4a484fccb2f4efb97eaef3bd10ecec78e21e5
[ "MIT" ]
2
2021-03-10T14:05:34.000Z
2021-05-11T10:03:46.000Z
wwwroot/arcgis_js_api/library/4.3/4.3/esri/widgets/Tags/nls/id/Tags.js
qingqibing/23DProject
fbd4a484fccb2f4efb97eaef3bd10ecec78e21e5
[ "MIT" ]
3
2017-10-20T02:37:15.000Z
2018-04-28T17:24:50.000Z
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.3/esri/copyright.txt for details. //>>built define({addTags:"Tambahkan tag",noTagsFound:"Tidak ada tag yang cocok.",required:"Satu tag atau lebih harus diisi."});
68.5
118
0.755474
52f90b314c6c6d9ede89b5e31ef510199d75e714
79
js
JavaScript
bin/expressworks.js
azat-co/expressworks
18b72da11c0dac24b4f6c7ddd7f52253fbbffe38
[ "MIT" ]
652
2015-01-06T21:13:34.000Z
2021-11-14T23:28:02.000Z
bin/expressworks.js
azat-co/expressworks
18b72da11c0dac24b4f6c7ddd7f52253fbbffe38
[ "MIT" ]
94
2015-01-02T22:08:13.000Z
2021-09-17T12:21:51.000Z
bin/expressworks.js
azat-co/expressworks
18b72da11c0dac24b4f6c7ddd7f52253fbbffe38
[ "MIT" ]
265
2015-01-05T01:54:01.000Z
2022-03-10T11:01:48.000Z
#!/usr/bin/env node require('../expressworks').execute(process.argv.slice(2))
19.75
57
0.708861
52f93021c443f3133b99b00ff4a03f2bfb0c1961
85
js
JavaScript
addon/mixins/regenerated/objects/new-platform-flexberry-web-designer-business-server-class.js
Flexberry/ember-flexberry-designer
db3fac0412c6363698d99bd5644e4adcd63cd8eb
[ "MIT" ]
8
2017-04-29T15:11:04.000Z
2019-01-28T11:05:38.000Z
addon/mixins/regenerated/objects/new-platform-flexberry-web-designer-business-server-class.js
Flexberry/ember-flexberry-designer
db3fac0412c6363698d99bd5644e4adcd63cd8eb
[ "MIT" ]
300
2017-10-18T11:57:32.000Z
2022-03-02T11:59:47.000Z
addon/mixins/regenerated/objects/new-platform-flexberry-web-designer-business-server-class.js
Flexberry/ember-flexberry-designer
db3fac0412c6363698d99bd5644e4adcd63cd8eb
[ "MIT" ]
2
2018-07-10T16:56:42.000Z
2019-10-17T16:53:06.000Z
import Mixin from '@ember/object/mixin'; export let ObjectMix = Mixin.create({ });
14.166667
40
0.705882
52f936bcd1e76963008f3ec5d72f2c5d823d472b
564
js
JavaScript
models/MonthlyCall.js
Banyan-Labs/CMC-backend
6bd6e2ac5046912b0c3227f1864f79d67c4691a1
[ "Unlicense" ]
1
2021-10-11T14:33:01.000Z
2021-10-11T14:33:01.000Z
models/MonthlyCall.js
Banyan-Labs/CMC-backend
6bd6e2ac5046912b0c3227f1864f79d67c4691a1
[ "Unlicense" ]
null
null
null
models/MonthlyCall.js
Banyan-Labs/CMC-backend
6bd6e2ac5046912b0c3227f1864f79d67c4691a1
[ "Unlicense" ]
null
null
null
const mongoose = require("mongoose"); const Schema = mongoose.Schema; let MonthlyCallSchema = new Schema({ month: String, year: Number, introductions: [ { name: String, introDescription: String, introImage: String, }, ], trainings: [ { trainingTitle: String, presenter: String, trainingDescription: String, role: String, trainingImage: String, }, ], otherNotes: String, }); const MonthlyCallModel = mongoose.model("monthlyCall", MonthlyCallSchema); module.exports = MonthlyCallModel;
20.142857
74
0.652482
52f9f466478e2315de370393ecd94810eee308e6
10,553
js
JavaScript
dashboard/dashboard.js
gNabeen/simple-discordjs-dashboard
376b4f177d04e570b9f9bcd305bb660f9170a61d
[ "MIT" ]
null
null
null
dashboard/dashboard.js
gNabeen/simple-discordjs-dashboard
376b4f177d04e570b9f9bcd305bb660f9170a61d
[ "MIT" ]
null
null
null
dashboard/dashboard.js
gNabeen/simple-discordjs-dashboard
376b4f177d04e570b9f9bcd305bb660f9170a61d
[ "MIT" ]
null
null
null
/* eslint-disable no-self-assign */ /* eslint-disable no-inline-comments */ // We import modules. const url = require("url"); const ejs = require("ejs"); const path = require("path"); const chalk = require("chalk"); const express = require("express"); const config = require("../config"); const passport = require("passport"); const bodyParser = require("body-parser"); const session = require("express-session"); const { Permissions } = require("discord.js"); const GuildSettings = require("../models/settings"); const Strategy = require("passport-discord").Strategy; const { boxConsole } = require("../functions/boxConsole"); // We instantiate express app and the session store. const app = express(); const MemoryStore = require("memorystore")(session); // We export the dashboard as a function which we call in ready event. module.exports = async (client) => { // We declare absolute paths. const dataDir = path.resolve(`${process.cwd()}${path.sep}dashboard`); // The absolute path of current this directory. const templateDir = path.resolve(`${dataDir}${path.sep}templates`); // Absolute path of ./templates directory. // Deserializing and serializing users without any additional logic. passport.serializeUser((user, done) => done(null, user)); passport.deserializeUser((obj, done) => done(null, obj)); // Validating the url by creating a new instance of an Url then assign an object with the host and protocol properties. // If a custom domain is used, we take the protocol, then the hostname and then we add the callback route. // Ex: Config key: https://localhost/ will have - hostname: localhost, protocol: http let domain; let callbackUrl; try { const domainUrl = new URL(config.domain); domain = { host: domainUrl.hostname, protocol: domainUrl.protocol, }; } catch (e) { console.log(e); throw new TypeError("Invalid domain specific in the config file."); } if (config.usingCustomDomain) { callbackUrl = `${domain.protocol}//${domain.host}/callback`; } else { callbackUrl = `${domain.protocol}//${domain.host}${ config.port == 80 ? "" : `:${config.port}` }/callback`; } // This line is to inform users where the system will begin redirecting the users. // And can be removed. const msg = `${chalk.red.bold("Info:")} ${chalk.green.italic( "Make sure you have added the Callback URL to the Discord's OAuth Redirects section in the developer portal.", )}`; boxConsole([ `${chalk.red.bold("Callback URL:")} ${chalk.white.bold.italic.underline( callbackUrl, )}`, `${chalk.red.bold( "Discord Developer Portal:", )} ${chalk.white.bold.italic.underline( `https://discord.com/developers/applications/${config.id}/oauth2`, )}`, msg, ]); // We set the passport to use a new discord strategy, we pass in client id, secret, callback url and the scopes. /** Scopes: * - Identify: Avatar's url, username and discriminator. * - Guilds: A list of partial guilds. */ passport.use( new Strategy( { clientID: config.id, clientSecret: config.clientSecret, callbackURL: callbackUrl, scope: ["identify", "guilds", "email", "guilds.join"], }, (accessToken, refreshToken, profile, done) => { // On login we pass in profile with no logic. process.nextTick(() => done(null, profile)); }, ), ); // We initialize the memorystore middleware with our express app. app.use( session({ store: new MemoryStore({ checkPeriod: 86400000 }), secret: "%^%^%^%^^#@%#&^$^$%@$^$&%#$%@#$%$^%&$%^#$%@#$%#E%#%@$FEErfgr3g#%GT%536c53cc6%5%tv%4y4hrgrggrgrgf4n", resave: false, saveUninitialized: false, }), ); // We initialize passport middleware. app.use(passport.initialize()); app.use(passport.session()); // We bind the domain. app.locals.domain = config.domain.split("//")[1]; // We set out templating engine. app.engine("ejs", ejs.renderFile); app.set("view engine", "ejs"); // We initialize body-parser middleware to be able to read forms. app.use(bodyParser.json()); app.use( bodyParser.urlencoded({ extended: true, }), ); // We host all of the files in the assets using their name in the root address. // A style.css file will be located at http://<your url>/style.css // You can link it in any template using src="/assets/filename.extension" app.use("/", express.static(path.resolve(`${dataDir}${path.sep}assets`))); // We declare a renderTemplate function to make rendering of a template in a route as easy as possible. const renderTemplate = (res, req, template, data = {}) => { // Default base data which passed to the ejs template by default. const baseData = { bot: client, path: req.path, user: req.isAuthenticated() ? req.user : null, }; // We render template using the absolute path of the template and the merged default data with the additional data provided. res.render( path.resolve(`${templateDir}${path.sep}${template}`), Object.assign(baseData, data), ); }; // We declare a checkAuth function middleware to check if an user is logged in or not, and if not redirect him. const checkAuth = (req, res, next) => { // If authenticated we forward the request further in the route. if (req.isAuthenticated()) return next(); // If not authenticated, we set the url the user is redirected to into the memory. req.session.backURL = req.url; // We redirect user to login endpoint/route. res.redirect("/login"); }; // Login endpoint. app.get( "/login", (req, res, next) => { // We determine the returning url. if (req.session.backURL) { req.session.backURL = req.session.backURL; } else if (req.headers.referer) { const parsed = url.parse(req.headers.referer); if (parsed.hostname === app.locals.domain) { req.session.backURL = parsed.path; } } else { req.session.backURL = "/"; } // Forward the request to the passport middleware. next(); }, passport.authenticate("discord"), ); // Callback endpoint. app.get( "/callback", passport.authenticate("discord", { failureRedirect: "/" }), /* We authenticate the user, if user canceled we redirect him to index. */ ( req, res, ) => { // If user had set a returning url, we redirect him there, otherwise we redirect him to index. if (req.session.backURL) { const backURL = req.session.backURL; req.session.backURL = null; res.redirect(backURL); } else { res.redirect("/"); } }, ); // Logout endpoint. app.get("/logout", function(req, res) { // We destroy the session. req.session.destroy(() => { // We logout the user. req.logout(); // We redirect user to index. res.redirect("/"); }); }); // Index endpoint. app.get("/", (req, res) => { renderTemplate(res, req, "index.ejs", { discordInvite: config.discordInvite, }); }); // Dashboard endpoint. app.get("/dashboard", checkAuth, (req, res) => { renderTemplate(res, req, "dashboard.ejs", { perms: Permissions }); }); app.get("/profile", checkAuth, (req, res) => { renderTemplate(res, req, "profile.ejs", { perms: Permissions }); }); // Settings endpoint. app.get("/dashboard/:guildID", checkAuth, async (req, res) => { // We validate the request, check if guild exists, member is in guild and if member has minimum permissions, if not, we redirect it back. const guild = client.guilds.cache.get(req.params.guildID); if (!guild) return res.redirect("/dashboard"); let member = guild.members.cache.get(req.user.id); if (!member) { try { await guild.members.fetch(); member = guild.members.cache.get(req.user.id); } catch (err) { console.error(`Couldn't fetch the members of ${guild.id}: ${err}`); } } if (!member) return res.redirect("/dashboard"); if (!member.permissions.has(Permissions.FLAGS.MANAGE_GUILD)) { return res.redirect("/dashboard"); } // We retrive the settings stored for this guild. let storedSettings = await GuildSettings.findOne({ guildID: guild.id }); if (!storedSettings) { // If there are no settings stored for this guild, we create them and try to retrive them again. const newSettings = new GuildSettings({ guildID: guild.id, }); await newSettings.save().catch((e) => { console.log(e); }); storedSettings = await GuildSettings.findOne({ guildID: guild.id }); } renderTemplate(res, req, "settings.ejs", { guild, settings: storedSettings, alert: null, }); }); // Settings endpoint. app.post("/dashboard/:guildID", checkAuth, async (req, res) => { // We validate the request, check if guild exists, member is in guild and if member has minimum permissions, if not, we redirect it back. const guild = client.guilds.cache.get(req.params.guildID); if (!guild) return res.redirect("/dashboard"); const member = guild.members.cache.get(req.user.id); if (!member) return res.redirect("/dashboard"); if (!member.permissions.has("MANAGE_GUILD")) { return res.redirect("/dashboard"); } // We retrive the settings stored for this guild. let storedSettings = await GuildSettings.findOne({ guildID: guild.id }); if (!storedSettings) { // If there are no settings stored for this guild, we create them and try to retrive them again. const newSettings = new GuildSettings({ guildID: guild.id, }); await newSettings.save().catch((e) => { console.log(e); }); storedSettings = await GuildSettings.findOne({ guildID: guild.id }); } // We set the prefix of the server settings to the one that was sent in request from the form. storedSettings.prefix = req.body.prefix; // We save the settings. await storedSettings.save().catch((e) => { console.log(e); }); // We render the template with an alert text which confirms that settings have been saved. renderTemplate(res, req, "settings.ejs", { guild, settings: storedSettings, alert: "Your settings have been saved.", }); }); app.listen(config.port, null, null, () => console.log(`Dashboard is up and running on port ${config.port}.`), ); };
34.713816
141
0.63707
52f9f7d9d750328cce642436e639192265299668
718
js
JavaScript
node/notifications.js
aarondunn/bugkick
badf77f7e8f665cb20bbc10f6ec27f06a4669b07
[ "CC-BY-3.0" ]
14
2015-01-30T11:02:22.000Z
2018-08-05T09:48:33.000Z
node/notifications.js
aarondunn/bugkick
badf77f7e8f665cb20bbc10f6ec27f06a4669b07
[ "CC-BY-3.0" ]
2
2015-02-06T14:43:36.000Z
2021-09-11T16:01:07.000Z
node/notifications.js
aarondunn/bugkick
badf77f7e8f665cb20bbc10f6ec27f06a4669b07
[ "CC-BY-3.0" ]
7
2015-03-06T03:09:40.000Z
2021-01-05T14:52:28.000Z
var cluster = require('cluster'); var http = require('http'); var numCPUs = require('os').cpus().length; if (cluster.isMaster) { console.log('number of CPUs:\t' + numCPUs); // Fork workers. for (var i = 0; i < numCPUs; i++) { cluster.fork(); } cluster.on('death', function(worker) { console.log('worker ' + worker.pid + ' died. restart...'); cluster.fork(); }); } else { // Worker processes have a http server. http.Server(function(request, response) { var body = 'hello world!'; response.writeHead(200, { 'Content-Length': body.length, 'Content-Type': 'text/plain' }); response.write(body); response.end(''); }).listen(8000); console.log('Server running at http://127.0.0.1:8080/'); }
27.615385
60
0.635097
52fa55a8851237c57f086e8d38f4ac8b5130db7a
5,466
js
JavaScript
src/pm-conversations/__tests__/pmConversationsSelectors-test.js
tinnieteal/zulip-mobile
c0cbd20805e8c8059ae2fd2a7c86ee1443955f8c
[ "Apache-2.0" ]
1
2021-09-27T14:19:47.000Z
2021-09-27T14:19:47.000Z
src/pm-conversations/__tests__/pmConversationsSelectors-test.js
harshbisle/zulip-mobile
c0cbd20805e8c8059ae2fd2a7c86ee1443955f8c
[ "Apache-2.0" ]
null
null
null
src/pm-conversations/__tests__/pmConversationsSelectors-test.js
harshbisle/zulip-mobile
c0cbd20805e8c8059ae2fd2a7c86ee1443955f8c
[ "Apache-2.0" ]
null
null
null
import deepFreeze from 'deep-freeze'; import { getRecentConversations } from '../pmConversationsSelectors'; import { ALL_PRIVATE_NARROW_STR } from '../../utils/narrow'; describe('getRecentConversations', () => { test('when no messages, return no conversations', () => { const state = deepFreeze({ realm: { email: 'me@example.com' }, narrows: { [ALL_PRIVATE_NARROW_STR]: [], }, unread: { pms: [], huddles: [], }, }); const actual = getRecentConversations(state); expect(actual).toEqual([]); }); test('returns unique list of recipients, includes conversations with self', () => { const state = deepFreeze({ realm: { email: 'me@example.com' }, narrows: { [ALL_PRIVATE_NARROW_STR]: [0, 1, 2, 3, 4], }, messages: { 1: { id: 1, type: 'private', display_recipient: [ { id: 0, email: 'me@example.com' }, { id: 1, email: 'john@example.com' }, ], }, 2: { id: 2, type: 'private', display_recipient: [ { id: 0, email: 'me@example.com' }, { id: 2, email: 'mark@example.com' }, ], }, 3: { id: 3, type: 'private', display_recipient: [ { id: 0, email: 'me@example.com' }, { id: 1, email: 'john@example.com' }, ], }, 4: { id: 4, type: 'private', display_recipient: [{ id: 0, email: 'me@example.com' }], }, 0: { id: 0, type: 'private', display_recipient: [ { id: 0, email: 'me@example.com' }, { id: 1, email: 'john@example.com' }, { id: 2, email: 'mark@example.com' }, ], }, }, unread: { pms: [ { sender_id: 0, unread_message_ids: [4], }, { sender_id: 1, unread_message_ids: [1, 3], }, { sender_id: 2, unread_message_ids: [2], }, ], huddles: [ { user_ids_string: '0,1,2', unread_message_ids: [5], }, ], }, }); const expectedResult = [ { ids: '0', recipients: 'me@example.com', msgId: 4, unread: 1, }, { ids: '1', recipients: 'john@example.com', msgId: 3, unread: 2, }, { ids: '2', recipients: 'mark@example.com', msgId: 2, unread: 1, }, { ids: '0,1,2', recipients: 'john@example.com,mark@example.com', msgId: 0, unread: 1, }, ]; const actual = getRecentConversations(state); expect(actual).toEqual(expectedResult); }); test('returns recipients sorted by last activity', () => { const state = deepFreeze({ realm: { email: 'me@example.com' }, narrows: { [ALL_PRIVATE_NARROW_STR]: [1, 2, 3, 4, 5, 6], }, messages: { 2: { id: 2, type: 'private', display_recipient: [ { id: 0, email: 'me@example.com' }, { id: 1, email: 'john@example.com' }, ], }, 1: { id: 1, type: 'private', display_recipient: [ { id: 0, email: 'me@example.com' }, { id: 2, email: 'mark@example.com' }, ], }, 4: { id: 4, type: 'private', display_recipient: [ { id: 0, email: 'me@example.com' }, { id: 1, email: 'john@example.com' }, ], }, 3: { id: 3, type: 'private', display_recipient: [ { id: 0, email: 'me@example.com' }, { id: 2, email: 'mark@example.com' }, ], }, 5: { id: 5, type: 'private', display_recipient: [ { id: 0, email: 'me@example.com' }, { id: 1, email: 'john@example.com' }, { id: 2, email: 'mark@example.com' }, ], }, 6: { id: 6, type: 'private', display_recipient: [{ id: 0, email: 'me@example.com' }], }, }, unread: { pms: [ { sender_id: 0, unread_message_ids: [4], }, { sender_id: 1, unread_message_ids: [1, 3], }, { sender_id: 2, unread_message_ids: [2], }, ], huddles: [ { user_ids_string: '0,1,2', unread_message_ids: [5], }, ], }, }); const expectedResult = [ { ids: '0', recipients: 'me@example.com', msgId: 6, unread: 1, }, { ids: '0,1,2', recipients: 'john@example.com,mark@example.com', msgId: 5, unread: 1, }, { ids: '1', recipients: 'john@example.com', msgId: 4, unread: 2, }, { ids: '2', recipients: 'mark@example.com', msgId: 3, unread: 1, }, ]; const actual = getRecentConversations(state); expect(actual).toEqual(expectedResult); }); });
23.161017
85
0.410904
52fa73950d9f19efb365079c3cab1184f127ac84
3,468
js
JavaScript
data/split-book-data/B002V9ZF3K.1646439401508.js
CalvnLaw/my-audible-library
b8a604031030a199058bd32bfb776e85a66245b2
[ "0BSD" ]
null
null
null
data/split-book-data/B002V9ZF3K.1646439401508.js
CalvnLaw/my-audible-library
b8a604031030a199058bd32bfb776e85a66245b2
[ "0BSD" ]
null
null
null
data/split-book-data/B002V9ZF3K.1646439401508.js
CalvnLaw/my-audible-library
b8a604031030a199058bd32bfb776e85a66245b2
[ "0BSD" ]
null
null
null
window.peopleAlsoBoughtJSON = [{"asin":"B00EZAXAF8","authors":"Constance Garnett - translator, Fyodor Dostoevsky","cover":"51DpA-g11JL","length":"37 hrs and 4 mins","narrators":"Constantine Gregory","title":"The Brothers Karamazov [Naxos AudioBooks Edition]"},{"asin":"B002V8HIZE","authors":"Friedrich Nietzsche","cover":"61sDWwvb2TL","length":"8 hrs and 24 mins","narrators":"Alex Jennings, Roy McMillan","title":"Beyond Good and Evil"},{"asin":"B002VAEJ9U","authors":"Fyodor Dostoevsky","cover":"51ce83JIlYL","length":"4 hrs and 21 mins","narrators":"Simon Vance","title":"Notes from the Underground"},{"asin":"B01N5W7S18","authors":"Fyodor Dostoyevsky","cover":"61kzROpNOIL","length":"24 hrs and 56 mins","narrators":"Constantine Gregory","title":"The Idiot"},{"asin":"B002V02KPU","authors":"Mikhail Bulgakov","cover":"51-kXV1XUNL","length":"16 hrs and 52 mins","narrators":"Julian Rhind-Tutt","title":"The Master and Margarita"},{"asin":"B0052XV1SK","authors":"John Ormsby - translator, Miguel de Cervantes","cover":"51fOAX4ILTL","length":"36 hrs and 5 mins","narrators":"Roy McMillan","title":"Don Quixote"},{"asin":"B074TXRQDM","authors":"Joseph Heller","cover":"51d2mbYwEkL","length":"19 hrs and 58 mins","narrators":"Jay O. Sanders","title":"Catch-22"},{"asin":"B00BWUBFM4","authors":"Fyodor Dostoevsky","cover":"51LPdkOAISL","length":"28 hrs and 3 mins","narrators":"George Guidall","title":"Devils"},{"asin":"B0036GMFHG","authors":"Fyodor Dostoevsky","cover":"51EaKibUHFL","length":"6 hrs and 14 mins","narrators":"Simon Prebble","title":"The Gambler"},{"asin":"B002V8LAN0","authors":"Fyodor Dostoevsky, Constance Garnett - translator","cover":"518bAmMY-jL","length":"34 hrs and 52 mins","narrators":"Frederick Davidson","title":"The Brothers Karamazov"},{"asin":"B002UZLN04","authors":"Oscar Wilde","cover":"519VJ4ieRfL","length":"7 hrs and 43 mins","narrators":"Michael Page","title":"The Picture of Dorian Gray"},{"asin":"B002V8KXHO","authors":"Ernest Hemingway","cover":"51QeMyrFZrL","length":"2 hrs and 28 mins","narrators":"Donald Sutherland","title":"The Old Man and the Sea"},{"asin":"B002UZJTXM","authors":"Truman Capote","cover":"51E+2+O6tiL","length":"14 hrs and 27 mins","narrators":"Scott Brick","title":"In Cold Blood"},{"asin":"B076HSP1FT","authors":"Jules Verne","cover":"51evwEA4ZrL","length":"11 hrs and 13 mins","narrators":"David Linski","title":"20,000 Leagues Under the Sea"},{"asin":"B007HCA9NC","authors":"Mark Twain","cover":"514x0Y0KQ0L","length":"10 hrs and 2 mins","narrators":"B. J. Harrison","title":"Adventures of Huckleberry Finn"},{"asin":"B002V5D1VW","authors":"Edgar Allan Poe","cover":"61q7rGvMXyL","length":"5 hrs and 31 mins","narrators":"Vincent Price, Basil Rathbone","title":"The Edgar Allan Poe Audio Collection"},{"asin":"B00BWYDMK8","authors":"F. Scott Fitzgerald","cover":"51Uorf8f+3L","length":"4 hrs and 49 mins","narrators":"Jake Gyllenhaal","title":"The Great Gatsby"},{"asin":"0241429528","authors":"Fyodor Dostoevsky, Oliver Ready - translator","cover":"51Zl4kE5ryL","length":"25 hrs and 2 mins","narrators":"Don Warrington","subHeading":"Penguin Classics","title":"Crime and Punishment"}]; window.bookSummaryJSON = "In this intense detective thriller instilled with philosophical, religious, and social commentary, Dostoevsky studies the psychological impact upon a desperate and impoverished student when he murders a despicable pawnbroker, transgressing moral law to ultimately \"benefit humanity\".";
1,156
3,152
0.724337
52fa9797e2dcfd7bf60ac40db352b54f2e309b1d
5,430
js
JavaScript
src/js/fretboard.js
yaph/traste
0becc8d08e3491e70012760b628a8c8b731edd1f
[ "MIT" ]
1
2021-06-30T00:32:37.000Z
2021-06-30T00:32:37.000Z
src/js/fretboard.js
yaph/traste
0becc8d08e3491e70012760b628a8c8b731edd1f
[ "MIT" ]
9
2019-12-21T23:44:29.000Z
2021-09-21T20:38:59.000Z
src/js/fretboard.js
yaph/traste
0becc8d08e3491e70012760b628a8c8b731edd1f
[ "MIT" ]
null
null
null
import {select as D3Select} from 'd3-selection'; import {noteAtPosition, noteColor, noteIndex, noteLabel} from './notes'; function drawCircle(parent, cx, cy, radius, fill='#cccccc', stroke=null, stroke_width=null, title=null) { const circle = parent.append('svg:circle') .attr('cx', cx) .attr('cy', cy) .attr('r', radius) .style('fill', fill); if (stroke) circle.style('stroke', stroke); if (stroke_width) circle.style('stroke-width', stroke_width); if (title) circle.attr('title', title); } export function drawFretboard(selector, instrument, notes, width=null) { const tuning = instrument.tuning; const string_gauges = instrument.string_gauges; const fret_count = instrument.fret_count; const svg = D3Select(selector); svg.selectAll('*').remove(); if (width === null) { const bbox = svg.node().parentElement.getBoundingClientRect(); width = bbox.width * 0.95; } // Readjust width so the fretboard works for different screen sizes and fret counts const min_fret_distance = 26; const min_width = min_fret_distance * (fret_count + 1); width = Math.max(min_width, width); // Calculate fret and string distances based on container width const fret_distance = width / (fret_count + 1); const string_distance = fret_distance * 0.65; // Calculate paddings and margins based on fret and string distances const string_padding = string_distance * 0.1; const fret_padding = fret_distance * 0.01; const margin_horizontal = fret_distance * 0.8; const margin_vertical = string_distance * 0.5; const height = string_distance * tuning.length + margin_vertical; const string_width = width - margin_horizontal * 1.2; const fret_height = string_distance * (tuning.length - 1); const fret_width = fret_distance * 0.06; const note_radius = fret_distance * 0.23; const note_stroke_width = note_radius * 0.1; const note_font_size = note_radius * 1.05; const fret_marker_radius = note_radius * 0.3; // Setup SVG svg.attr('width', width).attr('height', height); const transform = `translate(${margin_horizontal}, ${margin_vertical})`; const g_frets = svg.append('g').attr('class', 'frets').attr('transform', transform); const g_fret_markers = svg.append('g').attr('class', 'fret-markers').attr('transform', transform); const g_strings = svg.append('g').attr('class', 'strings').attr('transform', transform); const g_notes = svg.append('g').attr('class', 'notes').attr('transform', transform); // draw frets for (let i = 0; i <= fret_count; i++) { let offset = i * fret_distance; // make nut a little wider let stroke_width = fret_width; if (0 == i) stroke_width *= 1.5; g_frets.append('svg:line') .attr('x1', offset) .attr('y1', -string_padding / 2) .attr('x2', offset) .attr('y2', fret_height + string_padding) .style('stroke', '#222222') .style('stroke-width', stroke_width) .append('title').text(i); } // draw fret markers for (let i of instrument.fret_markers) { if (i > fret_count) { break; } let cx = i * fret_distance - fret_distance / 2; let cy = height - margin_vertical - fret_marker_radius * 3; if (0 == i % 12) { const offset = fret_marker_radius * 1.3; drawCircle(g_fret_markers, cx + offset, cy, fret_marker_radius); // make sure the next circle is offset in the other direction cx -= offset; } drawCircle(g_fret_markers, cx, cy, fret_marker_radius); } // draw strings for (let i = 0; i < tuning.length; i++) { const root = tuning[i]; const offset = i * string_distance; g_strings.append('svg:line') .attr('x1', -fret_padding / 2) .attr('y1', offset) .attr('x2', string_width + fret_padding) .attr('y2', offset) .style('stroke', '#444444') .style('stroke-width', string_gauges[i] * string_distance) .append('title').text(root); } // draw notes for (let string_idx = 0; string_idx < tuning.length; string_idx++) { const root_idx = noteIndex(tuning[string_idx]); for (let fret_idx = 0; fret_idx <= fret_count; fret_idx++) { const note = noteAtPosition(root_idx, fret_idx, notes); if (!note) continue; const label = noteLabel(note); // Adjust font size based on label length to better fit sharps and flats. const reduce = 5 * (1 - 1 / label.length); const font_size = note_font_size - reduce; const cx = fret_idx * fret_distance - fret_distance * 0.5; const cy = string_idx * string_distance; drawCircle(g_notes, cx, cy, note_radius, noteColor(note), '#999999', note_stroke_width, note); g_notes.append('svg:text') .attr('x', cx) .attr('y', cy) .attr('dy', '0.38em') .attr('fill', '#000000') .style('text-anchor', `middle`) .style('font-size', `${font_size}px`) .style('font-family', 'Roboto,Ubuntu,Helvetica,Arial,sans-serif') .text(label); } } }
37.448276
106
0.600921
52fb0ab49d51f1e4d4993eef94c2ba13317f6219
2,127
js
JavaScript
lib/poller.js
fscorrupt/node-toogoodtogo-watcher
41c5e8aa9ada1272f942faa29e7eaca7057bc68f
[ "MIT" ]
218
2019-09-12T03:07:25.000Z
2022-03-23T13:51:27.000Z
lib/poller.js
fscorrupt/node-toogoodtogo-watcher
41c5e8aa9ada1272f942faa29e7eaca7057bc68f
[ "MIT" ]
112
2019-08-30T09:17:22.000Z
2022-03-28T21:18:49.000Z
lib/poller.js
fscorrupt/node-toogoodtogo-watcher
41c5e8aa9ada1272f942faa29e7eaca7057bc68f
[ "MIT" ]
127
2019-08-30T08:35:49.000Z
2022-03-24T18:44:41.000Z
const _ = require("lodash"); const { from, of, combineLatest, timer } = require("rxjs"); const { mergeMap, filter, map, retry, catchError } = require("rxjs/operators"); const { config } = require("./config"); const api = require("./api"); const MINIMAL_POLLING_INTERVAL = 15000; const MINIMAL_AUTHENTICATION_INTERVAL = 3600000; module.exports = { pollFavoriteBusinesses$, }; function pollFavoriteBusinesses$(enabled$) { const authenticationByInterval$ = authenticateByInterval$(); return listFavoriteBusinessesByInterval$(authenticationByInterval$, enabled$); } function authenticateByInterval$() { const authenticationIntervalInMs = getInterval( "api.authenticationIntervalInMS", MINIMAL_AUTHENTICATION_INTERVAL ); return timer(0, authenticationIntervalInMs).pipe( mergeMap(() => from(api.login()).pipe( retry(2), catchError(logError), filter((authentication) => !!authentication) ) ) ); } function listFavoriteBusinessesByInterval$( authenticationByInterval$, enabled$ ) { const pollingIntervalInMs = getInterval( "api.pollingIntervalInMs", MINIMAL_POLLING_INTERVAL ); return combineLatest( enabled$, timer(0, pollingIntervalInMs), authenticationByInterval$ ).pipe( filter(([enabled]) => enabled), mergeMap(() => from(api.listFavoriteBusinesses()).pipe( retry(2), catchError(logError), filter((response) => !!_.get(response, "items")), map((response) => response.items) ) ) ); } function logError(error) { if (error.options) { console.error(`Error during request: ${error.options.method} ${error.options.url.toString()} ${JSON.stringify(error.options.json, null, 4)} ${error.stack}`); } else if (error.stack) { console.error(error.stack); } else { console.error(error); } return of(null); } function getInterval(configPath, minimumIntervalInMs) { const configuredIntervalInMs = config.get(configPath); return _.isFinite(configuredIntervalInMs) ? Math.max(configuredIntervalInMs, minimumIntervalInMs) : minimumIntervalInMs; }
25.626506
80
0.692525
52fb9ca084dbcc96a45591331ca9f8b2bb1707a4
2,125
js
JavaScript
public/js/script.js
Danielegit/Laravel_project
584769fadd86ca8cd3213ec2d3c2712d0530e508
[ "MIT" ]
1
2019-09-09T12:11:30.000Z
2019-09-09T12:11:30.000Z
public/js/script.js
Cosmic0wl/vdc
e4d0e9df60b39446ac4e2a2468b2f4658f45c7aa
[ "MIT" ]
4
2021-03-10T05:42:09.000Z
2022-02-26T22:52:57.000Z
public/js/script.js
ValentinaPanetta/vdc
e4d0e9df60b39446ac4e2a2468b2f4658f45c7aa
[ "MIT" ]
null
null
null
//MainJavaScript /*console.log(window.location.pathname);*/ //Show path !!! $( document ).ready(function() { let path = window.location.pathname; let showPost = path.substring(0, 5); if(window.location.pathname == '/consultings'){ var availability = document.getElementsByClassName('availability'); var dinamic = document.getElementsByClassName('dinamic'); for (let i = 0; i < availability.length; i++) { dinamic[i].style.color = 'green'; /*console.log(availability[i].innerHTML);*/ if(availability[i].innerHTML == 0){ dinamic[i].style.color = 'red'; dinamic[i].innerHTML = 'Completed'; } } }else if( showPost =='/blog'){ console.log('Post Section'); $('#commentForm').css({"display":"none"}); $('#AddComt').click(function(){ $('#commentForm').css({"display":"block"}); }) $('#close_msg').click(function(){ $('#commentForm').css({"display":"none"}); }) }else if(window.location.pathname == '/calendar'){ $('.bg-prz-0').css({"backgroundColor":"Teal","color":"white"}); $('.bg-prz-1').css({"backgroundColor":"lightcoral","color":"white"}); $('.bg-prz-3').css({"backgroundColor":"Teal","color":"white"}); $('.bg-prz-2').css({"backgroundColor":"lightcoral","color":"white"}); }else if(window.location.pathname == '/' || window.location.pathname =='/home'){ var slideIndex = 1; showSlides(slideIndex); // Next/previous controls function plusSlides(n) { showSlides(slideIndex += n); } // Thumbnail image controls function currentSlide(n) { showSlides(slideIndex = n); } function showSlides(n) { var i; var slides = document.getElementsByClassName("mySlides"); if (n > slides.length) {slideIndex = 1} if (n < 1) {slideIndex = slides.length} for (i = 0; i < slides.length; i++) { slides[i].style.display = "none"; } slides[slideIndex-1].style.display = "block"; console.log(slides.length, n, slideIndex); } $(".next").click(function(){ plusSlides(1); }) $(".prev").click(function(){ plusSlides(-1); }); }else{ console.log(showPost); } })
25
81
0.612706
52fbaae4963f4ca2548ab85e57007016430bd819
5,350
js
JavaScript
js/randomGenerator.js
Lazare62/ChiffresLettres
c9d80afb190f4ea4c1734bc77e07d09afffb62fb
[ "MIT" ]
null
null
null
js/randomGenerator.js
Lazare62/ChiffresLettres
c9d80afb190f4ea4c1734bc77e07d09afffb62fb
[ "MIT" ]
null
null
null
js/randomGenerator.js
Lazare62/ChiffresLettres
c9d80afb190f4ea4c1734bc77e07d09afffb62fb
[ "MIT" ]
null
null
null
(function () { //Tableaux des consonnes et des voyelles var consonnes = new Array("b","c","d","f","g","h","j","k","l","m","n","p","q","r","s","t","v","w","x","z"); var voyelles = new Array("a","e","i","o","u","y"); var mot = ""; // Le mot que nous allons trouver avec la suite de lettres var motI = 0; // Une variable d'incrémentation à chaque fois que un bouton est cliqué //J'appuis sur le bouton consonne $("#consonne").click(function(){ if(motI <= 8) { // Si il n'y a pas 9 lettres générée var i = getRandomInt(0, consonnes.length-1); // Un chiffre est généré aléatoirement var uneConsonne = consonnes[i]; // Une consonne en est sortie $("#lettre"+motI).html(uneConsonne); // Elle est afficher dans une case motI++; // On incrémente motI pour afficher à la case suivante $.ajax({ // On execute un ajax method: "GET", // D'une méthode GET url: "sendToBDD.php", // Au php sendToBDD.php data: { "lettre": uneConsonne } // Avec une donnée contenant lettre : la consonne }) .done(function( e ) { // L'ajax renvoi une réponse console.log( "Data Saved: " + e ); // On l'affiche dans le log }); if(motI == 9){ // Si on arrive à 9 lettres générée $("#consonne").disabled(); //Le bouton consonne est desactivé $("#voyelle").disabled(); //Le bouton voyelle est desactivé $(".boutonlettre").css("opacity","0"); // On fait disparaitre les boutons } } }) //J'appuis sur le bouton voyelle $("#voyelle").click(function(){ if(motI <= 8) { // Si il n'y a pas 9 lettres générée var i = getRandomInt(0,voyelles.length-1); // Un chiffre est généré aléatoirement var uneVoyelle = voyelles[i]; // Une voyelle en est sortie $("#lettre"+motI).html(uneVoyelle); // Elle est afficher dans une case motI++; // On incrémente motI pour afficher à la case suivante $.ajax({ // On execute un ajax method: "GET", // D'une méthode GET url: "sendToDB.php", // Au php sendToBDD.php data: { "lettre": uneVoyelle } // Avec une donnée contenant lettre : la voyelle }) .done(function( e ) { // L'ajax renvoi une réponse console.log( "Data Saved: " + e ); // On l'affiche dans le log }); if(motI == 9){ // Si on arrive à 9 lettres générée $("#consonne").disabled(); //Le bouton consonne est desactivé $("#voyelle").disabled(); //Le bouton voyelle est desactivé $(".boutonlettre").css("opacity","0"); // On fait disparaitre les boutons } } }) //J'appuis sur le bouton reset $("#reset").click(function(){ $(".boutonlettre").css("opacity","100"); // J'affiche les boutons for (var i = 0; i < 9; i++) { // Dans une Boucle pour $("#lettre"+i).html("&nbsp"); // Je retire les lettres de chaque boutons $("#lettre"+i).show(); // J'affiche les zones des lettres } motI = 0; // Je réinitialise motI à 0 mot = ""; // Je vide mot $("#mot").html(mot); // J'affiche mot qui est donc vide console.clear(); // Je nettoie la console des logs }) //J'appuis sur une lettre (bouton) $(".lettre").click(function(){ var unelettre = this.textContent; // Je récupère le contenu du bouton soit la lettre if(motI >= 8){ // Si j'ai bien générer 9 lettres mot += unelettre; // Le mot se compose des lettres selectionnée $("#mot").html(mot); // J'affiche le mot qui se compose $(this).hide(); // Et je cache la lettre selectionner }else if(motI < 8) { // Si moins de 9 lettres on était générer alert("Il manque des lettres !"); // J'affiche une alert disant qu'il manques des lettres } }) //Fonction retournant un chiffre aléatoire entre min et max function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } }());
56.315789
115
0.433832
52fc186a28baa3082851f58e7a2d14e997e401f6
53,832
js
JavaScript
input-extraction/rtvslo.si/Audi A6 50 TDI quattro_ nemir v premijskem razredu - RTVSLO.si_files/xgde.js
roalj/Seminar1-Web-Crawling
fb0677ebd8d6612446ca89af39bf6efcb8b790d5
[ "CNRI-Python", "CECILL-B" ]
1
2021-08-06T08:18:53.000Z
2021-08-06T08:18:53.000Z
input-extraction/rtvslo.si/Audi A6 50 TDI quattro_ nemir v premijskem razredu - RTVSLO.si_files/xgde.js
roalj/Seminar1-Web-Crawling
fb0677ebd8d6612446ca89af39bf6efcb8b790d5
[ "CNRI-Python", "CECILL-B" ]
null
null
null
input-extraction/rtvslo.si/Audi A6 50 TDI quattro_ nemir v premijskem razredu - RTVSLO.si_files/xgde.js
roalj/Seminar1-Web-Crawling
fb0677ebd8d6612446ca89af39bf6efcb8b790d5
[ "CNRI-Python", "CECILL-B" ]
null
null
null
(function() {'use strict';var s=window,ba=document,v=[s,ba,!0,!1,"prototype","undefined",null,"function"];function y(){return(new Date).getTime()};var da=function(e,b,n,p,k,m,f){function a(g){this.Va=p;this.ja=g.ja;this.Y=g.Y;this.$=g.$||f;this.D=g.D;this.P=g.P;this.p=g.p;a.Ic++;this.ab="end-"+a.Ic}a.Ic=0;a[k].tf=function(){this.Va=n};return a}.apply(this,v);var B=function(e){return{o:function(b,n){(e._gdeaq=e._gdeaq||[]).push(["analytics",b,n])}}}.apply(this,v);var ea=function(){function e(b){this.prefix=b;this.m=[];this.zc=Date.now()}e.prototype.H=function(b){var e=this.ub(Date.now()-this.zc);this.Ob(e,b)};e.prototype.ub=function(b){return b/500<<0};e.prototype.Ob=function(b,e){this.m[b]||(this.m[b]=[]);this.m[b].push(e)};e.prototype.A=function(b){b[this.prefix+"_t"]=Date.now()-this.zc;b[this.prefix]=this.vb();return b};e.prototype.vb=function(){for(var b=[],e=0;e<this.m.length;e++){var p=this.sb(this.m[e]);b.Pe!==p&&(b.Pe=p,b.push({ch:p,count:0}));b[b.length- 1].count++}b=b.reduce(function(b,e){if(4<e.count)b.push(e.ch,"#",e.count,".");else for(;0<e.count--;)b.push(e.ch);return b},[]);return b.slice(0,100).join("")+(100<b.length?"$"+b.length:"")};e.prototype.sb=function(b){if(!b||0===b.length)return"0";b=Math.min(b.reduce(function(b,e){return b+e},0)/b.length,1);return Number(Math.floor(35*b)).toString(36)};return e}.apply(this,v);var fa=function(){function e(b){this.prefix=b;this.m=[];for(b=0;10>=b;b++)this.m[b]=0;this.ma=0;this.Fb=1;this.Eb=0}e.prototype.H=function(b){this.Fb=Math.min(this.Fb,b);this.Eb=Math.max(this.Eb,b);var e=this.Ec?Date.now()-this.Ec:0;this.Ec=Date.now();this.Re=b;b=this.ub(this.Re);this.Ob(b,e)};e.prototype.ub=function(b){return Math.floor(10*Math.min(Math.max(b,0),1))};e.prototype.Ob=function(b,e){this.m[b]+=e;this.ma=Math.max(this.ma,this.m[b])};e.prototype.A=function(b){if(0===this.ma)return b;b[this.prefix+ "_mm"]=Math.floor(100*this.Fb);b[this.prefix+"_mx"]=Math.floor(100*this.Eb);b[this.prefix+"_av"]=this.me();b[this.prefix+"_bmw"]=this.ma;b[this.prefix+"_bw"]=this.vb();return b};e.prototype.vb=function(){return this.m.map(function(b){return this.sb(0<this.ma?b/this.ma:0)},this).join("")};e.prototype.sb=function(b){return Number(Math.floor(35*b)).toString(36)};e.prototype.me=function(){for(var b=0,e=0,p=0;p<this.m.length;p++)e+=p/(this.m.length-1)*this.m[p],b+=this.m[p];return 0<b?Math.floor(e/b*100): 0};return e}.apply(this,v);var ja=function(){return{L:function(e){return"string"===typeof e&&/(http|https):\/\/[^.]+\.hit\.gemius\.pl($|\/).*/.test(e)}}}.apply(this,v);var D=function(e,b,n,p,k,m,f){function a(){}e=Array[k];b=Object[k];var g=e.slice,h=b.toString,d=b.hasOwnProperty,c=e.forEach,l=e.map,q=e.reduce,z=e.filter,r=e.every;e=Array.isArray;b=Object.keys;var E=Function[k].bind,w,t={},u,A,L,Q;u=function(c,d){if(c.b===E&&E)return E.apply(c,g.call(arguments,1));var a=g.call(arguments,2);return function(){return c.apply(d,a.concat(g.call(arguments)))}};L=function(c,a){return d.call(c,a)};A=function(d,a,l){if(d!=f)if(c&&d.forEach===c)d.forEach(a,l);else if(d.length=== +d.length)for(var h=0,q=d.length;h<q&&a.call(l,d[h],h,d)!==t;h++);else for(h in d)if(L(d,h)&&a.call(l,d[h],h,d)===t)break};b=b||function(c){if(c!==Object(c))throw new TypeError("Invalid object");var d=[],a;for(a in c)L(c,a)&&d.push(a);return d};w=function(c){return c};e=e||function(c){return"[object Array]"==h.call(c)};Q=function(c,d,a){a||(a=w);for(var l=0,h=c.length;l<h;){var q=l+h>>1;a(c[q])<a(d)?l=q+1:h=q}return l};a[k]={b:u,If:function(c,d){function a(){b=new Date;q=f;g=c.apply(l,h)}var l,h, q,g,b=0;return function(){var e=new Date,z=d-(e-b);l=this;h=arguments;0>=z?(clearTimeout(q),q=f,b=e,g=c.apply(l,h)):q||(q=setTimeout(a,z));return g}},ga:function(c,d){var a=g.call(arguments,2);return setTimeout(function(){return c.apply(f,a)},d)},h:A,filter:function(c,d,a){var l=[];if(c==f)return l;if(z&&c.filter===z)return c.filter(d,a);A(c,function(c,h,q){d.call(a,c,h,q)&&(l[l.length]=c)});return l},Fe:w,Oe:b,has:L,every:function(c,d,a){d||(d=w);var l=n;if(null==c)return l;if(r&&c.every===r)return c.every(d, a);A(c,function(c,h,q){if(!(l=l&&d.call(a,c,h,q)))return t});return!!l},map:function(c,d,a){var h=[];if(null==c)return h;if(l&&c.map===l)return c.map(d,a);A(c,function(c,l,q){h[h.length]=d.call(a,c,l,q)});return h},reduce:function(c,d,a,l){var h=2<arguments.length;null==c&&(c=[]);if(q&&c.reduce===q)return l&&(d=u(d,l)),h?c.reduce(d,a):c.reduce(d);A(c,function(c,q,g){h?a=d.call(l,a,c,q,g):(a=c,h=n)});if(!h)throw new TypeError("No initial");return a},Yf:function(c,d){return function(){var a=c.apply(this, arguments);d.apply(null,[a].concat(arguments));return a}},isArray:e,indexOf:function(c,d,a){if(null==c)return-1;var l=0,h=c.length;if(a)if("number"==typeof a)l=0>a?Math.max(0,h+a):a;else return l=Q(c,d),c[l]===d?l:-1;for(;l<h;l++)if(c[l]===d)return l;return-1},object:function(c){for(var d={},a=0,l=c&&c.length;a<l;a+=2)d[c[a]]=c[a+1];return d}};return a}.apply(this,v);var F=function(e,b,n,p,k,m,f){function a(a){this.Lb=[];this.Jb=[];this.Ff=a}a[k].cg=function(a){function h(c){l.n.call(l,c)}function d(d){return function(a){b--;f[d]=a;c()}}function c(){b||l.Za()||l.e.call(l,f)}for(var l=this,q=a.length,b=q,f=Array(q),e=0;e<q;e++)a[e].f(d(e)).ha(h);c();return l};a[k].f=function(a){this.N()?a.apply(f,this.Ba):this.Lb.push(a);return this};a[k].ha=function(a){this.Za()?a.apply(f,this.Kb):this.Jb.push(a);return this};a[k].ea=function(a){this.N()?a.apply(f,this.Ba):this.Za()? a.apply(f,this.Kb):(this.Lb.push(a),this.Jb.push(a));return this};a[k].nc=function(a,h){for(var d=h.length,c=0;c<d;c++)h[c].apply(f,a)};a[k].e=function(){if(this.Bc())return this;var a=this.Ba=arguments;this.nc(a,this.Lb);return this};a[k].n=function(){if(this.Bc())return this;var a=this.Kb=arguments;this.nc(a,this.Jb);return this};a[k].N=function(){return typeof this.Ba!==m};a[k].Za=function(){return typeof this.Kb!==m};a[k].Bc=function(){return this.Ff&&(this.N()||this.Za())};a[k].Xf=function(){return this.Ba}; a.e=function(b){return(new a).e(b)};a.n=function(b){return(new a).n(b)};return a}.apply(this,v);var la=[1,2,3],H=function(e,b,n,p){var k={},m=new D,f=new F,a=!1;k.aa=function(){return a&&k.wb()};k.sf=function(b){a=b};k.Mb=function(a){this.ra=a};k.Uf=function(){return this.ra};k.Qc=function(a){f.e(a)};k.qc=function(){if(f.N())return f;var a=k.wb();if(!a)return f.n();var h=setTimeout(function(){f.n(!1)},10);f.ea(function(){clearTimeout(h)});var d=y();a("getVendorConsents",[328],function(c){var a=y()-d;c&&c.vendorConsents&&c.purposeConsents&&c.vendorConsents[328]&&m.every(la,function(d){return c.purposeConsents[d]})? f.e(n,a):f.e(p,a)});return f};k.wb=function(){var a=e.__cmp;return"function"===typeof a?a:void 0};return k}.apply(this,v);var ma=function(e,b,n,p,k,m,f){function a(){b.addEventListener("play",g.b(function(a){this.Yc(a.target)},this),!0)}var g=new D;a.c=f;a.a=function(){a.c===f&&(a.c=new a);return a.c};a[k].kf=function(){g.h(b.querySelectorAll("video[src*='.hit.gemius.pl/'], video source[src*='.hit.gemius.pl/']"),this.Yc,this)};a[k].Yc=function(a){if(a&&"string"===typeof a.src){var d=a.src.match("//([^.]+)(?:.hit.gemius.pl/(?:hitredir/|(?:[^/]+)/redot.(gif|js)\\?))(?:id=)([^/]+)/(?:stparam=)([^/]+)/");if(d&&("VIDEO"=== a.parentNode.tagName&&(a=a.parentNode),"VIDEO"===a.tagName&&!a.getAttribute("data-gde-video-tracking"))){a.setAttribute("data-gde-video-tracking",!0);var c=d[1],l=d[2],d=d[3],q=b.createElement("i");q.id="_gde_insdwl_"+Math.random().toString(36).slice(2);q.style.display="none";q.style.visibility="hidden";a.appendChild(q);e._gdeaq.push(["viewable",c,l,d,q.id])}}};return a}.apply(this,v);var na=function(e,b,n,p,k,m){function f(d,l){this.frameElement=d;this.frames=[];this.lb=l;f.Ab()?this.uf():f.Cc()?(this.Rc(5),setInterval(a.b(this.Td,this),g)):(this.Rc(30),e.requestAnimationFrame(a.b(this.hc,this)),setInterval(a.b(this.Hb,this),1E3),setInterval(a.b(this.mb,this),g));c&&B.o("pc_cr",f.aa()?"t":"f")}var a=new D,g=1E3/30,h=/Safari\/([\d.]+)/.exec(e.navigator.userAgent),h=h&&parseFloat(h[1]),d=0<Object.prototype.toString.call(e.HTMLElement).indexOf("Constructor")||"[object SafariRemoteNotification]"=== (!e.safari||e.safari.ag||!0).toString()||602<h,c=typeof e.chrome!==m,l=/(?:Chrome|Chromium)\/([\d.]+)/.exec(e.navigator.userAgent),l=l&&parseFloat(l[1]);f.aa=function(){return f.Cc()||f.Ab()||typeof e.requestAnimationFrame!==m&&typeof Date.now!==m&&(d&&601<=h||c&&52<=l)};f.Ab=function(){return typeof e.IntersectionObserver!==m};f.Cc=function(){return typeof e.mozPaintCount!==m};f.prototype.uf=function(){b.body.style.margin=0;b.body.style.width="100%";b.body.style.height="100%";b.body.style.top="0"; b.body.style.left="0";b.body.style.position="fixed";this.Jc=new e.IntersectionObserver(a.b(function(c){this.Tc(a.every(c,function(c){return 0<c.intersectionRatio}))},this),{threshold:1});this.Jc.observe(b.body)};f.prototype.Td=function(){var c=e.mozPaintCount;c!==this.Qe&&10<c&&this.Hb();this.mb();b.body.style.width=50*Math.random()+"px";this.Qe=e.mozPaintCount};f.prototype.hc=function(){this.Hb();this.mb();e.requestAnimationFrame(a.b(this.hc,this))};f.prototype.Hb=function(){this.frames.push(y())}; f.prototype.qe=function(){var c=y()-1E3;this.frames=this.frames.filter(function(a){return a>c});return this.frames.length};f.prototype.Rc=function(c){this.he=c};f.prototype.pe=function(){return y()-(0<this.frames.length?this.frames[0]:y())};f.prototype.mb=function(){this.Tc(this.qe()>this.he)};f.prototype.Tc=function(c){c!==this.Se&&this.lb(c,this.pe());this.Se=c};return f}.apply(this,v);var M=function(e,b,n,p,k,m,f,a){function g(){this.addEventListener(["beforeunload","unload"],function(){this.Le=!0},e,this)}var h=new D;g.c=f;g[k].De={display:"none",visibility:"hidden",opacity:"0",width:"0px",height:"0px",pointerEvents:"none"};g.a=function(){g.c===f&&(g.c=new g);return g.c};g[k].ne=function(a){return a.getElementsByTagName("body")[0]};g[k].Ce=function(a){h.h(this.De,function(c,l){try{a.style[l]=c}catch(h){}})};g[k].bb=function(a,c,l){l=l||b;var q=new F(!0),e=l.createElement("script"); e.onload=h.b(q.e,q,e);e.onerror=h.b(q.n,q,e);e.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState&&"completed"!==this.readyState||q.e(e)};e.type="text/javascript";e.src=a;e.async=!0;c&&h.h(c,function(c,a){e.setAttribute(a,c)});(a=l.getElementsByTagName("script")[0])?a.parentNode.insertBefore(e,a):l.head.appendChild(e);return q};g[k].addEventListener=function(a,c,l,q,b,f){q=q||this;if({array:n,object:n}[typeof a])return h.filter(a,function(a){this.addEventListener(a, c,l,q,b,f)},this);l||(l=e);var g;g=f?h.b(function(){if(!this.Le)return c.apply(q,arguments)},this):h.b(c,q);l.addEventListener?l.addEventListener(a,g,b||p):l.attachEvent&&l.attachEvent("on"+a,g);return g};g[k].lc=function(a,c,l){l||(l=e);l.removeEventListener?l.removeEventListener(a,c,p):l.detachEvent?l.detachEvent("on"+a,c):l["on"+a]=f};g[k].ue=function(a){if(!a)return{top:0,left:0};var c={top:0,left:0};typeof a.getBoundingClientRect!==m&&(c=a.getBoundingClientRect());a=b.documentElement;return{top:c.top+ (e.pageYOffset||a.scrollTop)-a.clientTop,left:c.left+(e.pageXOffset||a.scrollLeft)-a.clientLeft}};g[k].Ae=function(){return"CSS1Compat"!==b.compatMode?{width:b.body.clientWidth,height:b.body.clientHeight}:{width:b.documentElement.clientWidth,height:b.documentElement.clientHeight}};g[k].df=function(a){if(typeof b.querySelectorAll===m){for(var c=[],l=0;l<b.all.length;l++)0<=b.all[l].className.indexOf(a)&&c.push(b.all[l]);return c}return b.querySelectorAll("."+a)};g[k].$e=function(d,c){return typeof d.hasAttribute=== a?d.hasAttribute(c):typeof d.getAttribute(c)!==m};g[k].ca=function(a,c){if(!a||!c||a===c)return a&&a===c;do if(a===c)return n;while((a=a.parentNode)!==f);return p};g[k].yc=function(){return{left:void 0!==e.pageXOffset?e.pageXOffset:(b.documentElement||b.body.parentNode||b.body).scrollLeft,top:void 0!==e.pageYOffset?e.pageYOffset:(b.documentElement||b.body.parentNode||b.body).scrollTop}};g[k].T=function(){return"function"===typeof e.navigator.sendBeacon&&!0};g[k].ve=function(){var a=document.location, a=a.split("/");return a[0]+"//"+a[2]};g[k].M=function(){return e.top!==e.self};return g}.apply(this,v);var oa=function(e,b,n,p,k){function m(){f.addEventListener("message",this.bf,e,this)}var f=M.a(),a;m.a=function(){a||(a=new m);return a};m[k].bf=function(a){if("string"===typeof a.data&&0===a.data.indexOf("paintCount:")){var h=a.data.split("paintCount:")[1];new na(e,function(d,c){parent.postMessage("mozFrameVisible:"+h+":"+d+":"+c,a.origin)});parent.postMessage("mozFrameReady:"+h+":"+this.ye(),a.origin)}else"string"===typeof a.data&&0===a.data.indexOf("setPaintCountSupported:")&&this.Cf(a.data.split("setPaintCountSupported:")[1])}; m[k].Cf=function(a){localStorage.PaintCountSupported=JSON.stringify({value:a,Jf:y()})};m[k].ye=function(){try{var a=JSON.parse(localStorage.PaintCountSupported);if(6048E5<y()-(a.Jf||0))B.o("pcs_ch","i");else return B.o("pcs_ch",a.value?"t":"f"),a.value}catch(h){B.o("pcs_ch","n")}};return m}.apply(this,v);var pa=function(e,b){function n(){return 0<p.filter(b.querySelector("html").attributes,function(b){return b&&b.name&&0<=b.name.indexOf("data-adreal")}).length}var p=new D,k=M.a(),m=k.addEventListener("message",function(b){b&&b.data&&"getFrameDesc"===b.data.action&&b.data.auth_key&&(n=function(){return!0},pa.update(),k.lc("message",m,e))},e);return{update:function(){n()&&e._gdeaq.push(["nodes",function(e){p.every(e,function(a){var e=a&&a.el;!e||e.getAttribute("data-door-jih8av5o")||b.body.getAttribute("data-door-jih8av5o")|| e.setAttribute("data-door-jih8av5o",a.stparam)})}])},Kf:function(e){n()&&k.M()&&!b.querySelector("[data-door-jih8av5o]")&&b.body.setAttribute("data-door-jih8av5o",e)}}}.apply(this,v);var qa=function(e){var b={},n=M.a();b.U=function(){n.M()||e.addEventListener("message",function(b){"_xx_gemius_getref_xx_"===b.data&&ja.L(b.origin)&&b.source.postMessage("_xx_gemius_putref_xx_/"+(e.location.origin||n.ve()),b.origin)})};b.Tf=function(){return this.Aa};b.Af=function(b){this.Aa=b};b.we=function(){function b(a){a.data&&a.data.indexOf&&0===a.data.indexOf("_xx_gemius_putref_xx_/")&&k.e(a.data.split("_xx_gemius_putref_xx_/")[1])}if(this.Aa)return F.e(this.Aa);if(e.top===e.self)return F.n(); var k=new F,m=y(),f=setTimeout(function(){k.n();B.o("x_rftm",y()-m)},10);e.addEventListener("message",b);k.ea(function(){clearTimeout(f);e.removeEventListener("message",b)});e.top.postMessage("_xx_gemius_getref_xx_","*");return k};return b}.apply(this,v);var ra=function(e,b,n,p,k,m,f){function a(){this.Gb={}}var g=new D,h=M.a();a.c=f;a.a=function(){a.c===f&&(a.c=new a);return a.c};a[k]={xa:"data-module",jf:[],de:function(a){var c;c=(c=b.currentScript)?this.wc(c.src):this.te();typeof c!==m&&(this.Gb[c]=a())},lf:function(a,c){if(a.length){var l=this.jf,h=new F(!0);h.f(function(a){c.apply(e,a);l.shift()}).ha(function(){l.shift()});l.push(h);1<l.length?l[l.length-2].f(g.b(function(){this.Fc(a).f(g.b(h.e,h)).ha(g.b(h.n,h))},this)):this.Fc(a).f(g.b(h.e, h)).ha(g.b(h.n,h))}else c()},Fc:function(a){var c=new F(!0),l=this.Gb,b=[],e=g.b(function(){if(a.length){var f=a.shift(),k=this.wc(f);if(typeof l[k]!==m)b.push(l[k]),e();else{var n={};n[this.xa]=k;h.bb(f,n).f(function(){b.push(l[k]||k);e()}).ha(function(){c.n()}).ea(g.b(function(a){a.removeAttribute(this.xa)},this))}}else c.e(b)},this);e();return c},wc:function(a){return a.split("?").shift()},te:function(){return g.reduce(b.getElementsByTagName("script"),g.b(function(a,c){if(a)return a;if(h.$e(c, this.xa)){var l=c.getAttribute(this.xa);if(typeof this.Gb[l]===m)return c.removeAttribute(this.xa),l}},this),null)}};return{a:a.a}}.apply(this,v);var xa=function(e,b,n,p,k,m,f){function a(){this.Ua=[]}var g=new D,h=M.a();a.c=f;a.a=function(){a.c===f&&(a.c=new a);return a.c};a.od="gdedisplay";a.bc="data-display-parsed";a.cc="true";a.kd="data-proto";a.gd="data-host";a.hd="data-id";a.jd="data-noncookie";a.dd="data-cap-time";a.md="data-user-freq";a.ed="data-cmp";a.fd="data-gdpr-consent";a.ld="data-forward";a.Fd="[GDE_CLICK_FORWARD]";a.wd=100;a.Cd=1E3;a[k].Kc=function(){var d=g.filter(h.df(a.od),function(c){return c.getAttribute(a.bc)!==a.cc})[0]; if(d){d.setAttribute(a.bc,a.cc);var c=d.getAttribute(a.hd),l=d.getAttribute(a.gd);if(!c||!l)return d;var b=this.ze(),e=d.getAttribute(a.ld),f=d.getAttribute(a.dd),k=d.getAttribute(a.md),n=d.getAttribute(a.jd),p="true"===d.getAttribute(a.ed)||H.aa(),u=d.getAttribute(a.fd);d.setAttribute("id",b);if("string"!==typeof f||typeof k===m||this.Rd(c,g.map(f.split(","),function(a){return parseFloat(a)}),parseFloat(k)))return(p?H.qc():(new F).e(!0)).ea(g.b(function(f){f=this.Qd(b,d.getAttribute(a.kd),l,c,"true"=== n||"1"===n||!1===f,u,e);h.bb(f)},this)),d}};a[k].cf=function(){this.Ua.push(y());this.oc()};a[k].oc=function(){this.pc||(this.pc=setTimeout(g.b(function(){delete this.pc;this.Ua=g.filter(this.Ua,function(d){return typeof this.Kc()===m&&y()-d<a.Cd},this);0<this.Ua.length&&this.oc()},this),a.wd))};a[k].ze=function(){return"_"+Math.random().toString(36).substr(2,9)+"_"+y()};a[k].Qd=function(d,c,l,h,b,e,f){c="https"===c?"https:":"http"===c?"http:":"";f=f!==a.Fd&&f?f:"";B.o("x_rm",f?"1":"0");return c+ "//"+l+"/_"+y()+"/ad.js?did="+d+"/id="+h+"/nc="+(b?1:0)+(e?"/gdpr=1/gdpr_consent="+e:"")+"/redir="+f};a[k].Rd=function(a,c,l){var h=0,e=[0,86400,604800,2592E3];if(null===l||0===l)a=!0;else{isNaN(c[0])||isNaN(c[1])||isNaN(e[c[0]])||(h=c[1]*e[c[0]]);b:{if(0<b.cookie.length&&(c=b.cookie.indexOf(a+"="),-1!==c)){c=c+a.length+1;e=b.cookie.indexOf(";",c);-1===e&&(e=b.cookie.length);e=unescape(b.cookie.substring(c,e));break b}e=""}e=e.split(":");c=parseInt(e[0]);isNaN(c)&&(c=0);e=parseInt(e[1]);isNaN(e)&& (e=0);var f=y();0<h&&e+1E3*h<f&&(c=0,e=f);h=e=++c+":"+e;e=new Date;e.setDate(e.getDate()+1E3);b.cookie=a+"="+escape(h)+(";expires="+e.toGMTString());a=c<=l}return a};return a}.apply(this,v);var za=function(e,b,n,p,k,m,f){function a(a){this.i=a;this.Zc=ya.a()}var g=M.a();a[k].ad=function(a){this.Ee=this.i.Z()+"//"+a;return this};a[k].Pb=function(a){return this.ad(this.i.ia(a))};a[k].ib=function(a){this.ef=a;return this};a[k].Mf=function(a){return this.hb(a,null,null,null,!1)};a[k].Nf=function(a){this.fb=a;return this};a[k].Of=function(a){this.referrer=a;return this};a[k].bd=function(a){this.C=a;return this};a[k].dg=function(a){this.ba=a;return this};a[k].Pf=function(a){this.Ea=a;return this}; a[k].hb=function(a,d,c,l,b){this.Y=a;this.D=d;this.$=c;this.P=l;this.p=b;return this};a[k].re=function(){var a=this.i.C||this.C||!this.i.qb&&H.aa();return"?id="+this.Y+(typeof this.$!==m&&this.$!==f?"/fastid="+this.$:"")+(typeof this.D!==m&&this.D!==f?"/stparam="+this.D:"")+(typeof this.Ea!==m&&this.Ea!==f?"/sarg="+this.Ea:"")+(typeof this.P!==m&&this.P!==f?"/w="+this.P:"")+(!1!==this.p?this.Ve(this.p):"")+(a?"&nc=1":this.i.ba||this.ba?"&roc=1":this.i.se())+(typeof this.fb!==m&&this.fb!==f&&0<this.fb.length? "&href="+encodeURIComponent(this.fb):"")+(typeof this.referrer!==m&&this.referrer!==f&&0<this.referrer.length?"&ref="+encodeURIComponent(this.referrer):"")+(H.ra?"&gdpr=1&gdpr_consent="+H.ra:"")};a[k].Ma=function(){return this.Ee+"/_"+y()+"/"+this.ef+this.re()};a[k].Ve=function(a){a=a||this.i.Ia;-1===a.indexOf(this.i.Ia)&&(a=[a,this.i.Ia].join("|"));if(-1===a.indexOf(this.i.Wb)&&(a=[a,this.i.Wb+(this.i.M()?"1":"0")].join("|"),this.i.M())){var d=g.Ae(),c=d.width*d.height/Math.max(b.body.scrollWidth* b.body.scrollHeight,1)*100<<0;a=[a,this.i.yd+c,this.i.Ad+d.width,this.i.zd+d.height];qa.Aa&&a.push(this.i.Gd+qa.Aa);a=a.join("|")}-1===a.indexOf(this.i.ec)&&this.Zc.Ke()&&(a=[a,this.i.ec+this.Zc.Sa].join("|"));d=e.navigator.connection;-1===a.indexOf(this.i.ac)&&d&&d.effectiveType&&d.downlink&&50<d.rtt&&(a=[a,this.i.ac+d.effectiveType+","+d.downlink+","+d.rtt].join("|"));-1===a.indexOf(this.i.Ub)&&500<=this.i.vc()&&(a=[a,this.i.Ub+this.i.vc()].join("|"));H.wb()&&(a=[a,this.i.pd+(typeof this.i.qb=== m?"2":this.i.qb?"1":"0")].join("|"));return"&extra="+encodeURIComponent(a)};return a}.apply(this,v);var O=function(e,b,n,p,k,m,f,a){function g(){this.ba=this.C=p;this.Db="&lsdata=-TIMEDOUT&fpdata=-TIMEDOUT";H.qc().f(h.b(function(a){this.Qc(a)},this));this.Oc=new F(n);this.qf()}var h=new D,d=M.a();g.c=f;g.a=function(){g.c===f&&(g.c=new g);return g.c};g[k]={Ia:"ls=1",Wb:"ifr=",yd:"ifrv=",Ad:"ifrw=",zd:"ifrh=",ec:"tq=",pd:"cmp=",Gd:"xref=",ac:"net=",Ub:"hct=",Ha:"redot.js",Wf:function(){return this.Ha},cd:"ad.js",X:"hcprefix",Wc:p,Uc:function(){this.Wc=n;this.g.e({R:this.g.jb,O:this.g.jb})},$a:function(){return this.Wc|| e.event&&"unload"===e.event.type},Qc:function(a){this.qb=a},xf:function(a){this.C=a},zf:function(a){this.ba=a},yf:function(){this.Lc=!0},Dc:function(){return!0===this.Lc},vf:function(a){this.Db=a},se:function(){return this.g.N()?this.Db:""},vc:function(){return this.g.N()?this.Ue:""},gb:function(a,d){return a.replace(/lsdata=-TIMEDOUT/g,"lsdata="+d.O).replace(/fpdata=-TIMEDOUT/g,"fpdata="+d.R)},qf:function(){this.g=new F(n);this.g.Ja="-TIMEDOUT";this.g.da="-NOTSUP";this.g.jb="-NOTLOAD";this.g.f(h.b(function(a){var d= this.gb(this.Db,a);this.vf(d);this.Ue=a.Be},this))},Gf:function(a,d){d=d||"=";return h.reduce(a,function(a,c){var b=c.split(d);a[b[0]]=b[1];return a},{})},ge:function(a){var d=y(),b=decodeURIComponent(a.split("extra=")[1]).split("|"),b=this.Gf(b);h.h({isn_t:"isn_t_t",dlw_t:"dlw_t_t"},function(a,c){typeof b[a]!==m&&(b[c]=parseInt(b[c],10)+d-parseInt(b[a],10),delete b[a])});return b="extra="+encodeURIComponent(h.map(b,function(a,c){return[c,a].join("=")}).join("|"))},Nc:function(a){var d=/(isn_t_t|dlw_t_t)+/; d.test(a)&&(a=decodeURI(a),a=a.split("&"),a=h.map(a,h.b(function(a){return d.test(a)?this.ge(a):a},this)),a=a.join("&"));return a},V:function(a,d,b){var e=encodeURIComponent(this.Ia);0<a.indexOf(e)&&(a=a.replace(new RegExp(e,"g"),e+encodeURIComponent("|"+d+"="+b)));return a},xc:function(a){return(a=a.match(/^(http|https)+:/))&&a[0]},sc:function(){return b.location},Z:function(){var a=this.sc().protocol;return"https:"===a||"http:"===a||this.M()&&b.referrer&&(a=this.xc(b.referrer))?a:(a=h.reduce(b.getElementsByTagName("script"), function(a,c){this.L(c.src)&&(a=this.xc(c.src));return a},null,this))?a:"https:"},M:function(){return d.M()},xe:function(){return b.referrer},Zd:function(a){return"string"===typeof a&&/\(_gdeaq\s*=\s*window._gdeaq\s*\|\|\s*\[\]\).push/.test(a)},L:function(a){return ja.L(a)},Ya:function(a){return this.L(a)},Ge:function(a){return"string"===typeof a&&-1<a.indexOf("/redot")&&0===a.indexOf("http")},Ie:function(a){return/^(?!:\/\/)([a-zA-Z0-9-_]+\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+\.[a-zA-Z]{2,11}?$/.test(a)}, xb:function(a){return a.split(/^(http|https):\/\//).pop().split("/")},ia:function(a){return this.Ie(a)?a:(a||"")+".hit.gemius.pl"},nf:function(a){return a.replace(/\.+$/,"")},tc:function(a){return a.split(this.ia())[0]},uc:function(a){var d=a.substring(a.indexOf("?")+1).split("/"),b={},e=this.xb(a);b[this.X]=this.L(a)?this.tc(e[0]):e[0];h.h(d,function(a){h.reduce(a.split(/&(?!amp;)/),function(a,c){var d=c.split("="),l=d[0].toLowerCase(),d=d[1];a[l]?a[l].push(d):a[l]=[d];return a},b)});return b},db:function(a, d,b,e,h,f,g,k){return this.eb().Pb(a).ib(this.Ha).Nf(this.sc().href).Of(this.xe()).hb(d,b,e,h,f).bd("1"===g).Pf(k).Ma()},eb:function(){return new za(this)},fe:function(a){var d=e.execScript||eval;this.Zd(a)&&d(a)},T:function(){return d.T()},sendBeacon:function(a,d){var b=e.navigator,h=b.sendBeacon;if(h&&h.call(b,a))return"function"===typeof d&&d(),!0},na:function(a,d){var b=new Image;b.onload=d;b.src=a},pf:function(c,d,b){if(this.Dc())this.na(this.V(c,"pl",1),b);else try{var e=new (typeof XDomainRequest!== m&&typeof XMLHttpRequest===m?XDomainRequest:XMLHttpRequest);d?e.withCredentials=!0:c=this.V(c,"sx",1);typeof b===a&&(e.onreadystatechange=h.b(function(){4===e.readyState&&200===e.status&&b.call(this,e.responseText)},this));e.open("GET",c,d);try{e.send(f)}catch(g){}}catch(k){this.na(this.V(c,"img",1))}},w:function(a){this.g.f(h.b(function(d){a=this.gb(a,d);a=this.Nc(a);(d=!this.$a())||(a=this.V(a,"s",1));this.$a()&&this.sendBeacon(this.V(a,"sb",1))||(typeof XMLHttpRequest===m&&typeof XDomainRequest=== m||this.Dc()?(d||(a=this.V(a,"si",1)),this.na(a)):this.pf(a,d,this.$a()?f:this.fe))},this))}};return{a:g.a}}.apply(this,v);var Aa=function(e,b,n,p,k,m,f){function a(){}var g=new D,h=M.a();a.c=f;a.a=function(){a.c===f&&(a.c=new a);return a.c};a.prototype.parse=function(){var a=b.querySelectorAll('script[src*="hit.gemius.pl/gdejs/push.js?"]:not([xgde-resolved])');g.h(a,function(a){a.setAttribute("xgde-resolved","xgde-resolved");var d=a.src.split("hit.gemius.pl/gdejs/push.js?")[1].split("&"),b,h=0<=d.indexOf("enc=1");g.h(d,function(d){d=d.split("=");var l=decodeURIComponent(d[1]).split("/");d=d[0];l=g.map(l,function(d){return"@"=== d?b||(b=this.be(a).id):""===d?null:h?d.replace(/\+/g," "):d},this);e._gdeaq.push([d].concat(l))},this);0<d.length&&(B.o("ext_i",O.a().M()?1:0),B.o("ext_c",d.join(",")),B.o("ext_p",d.length),B.o("ext_l",100*(a.src.length/100<<0)))},this)};a.prototype.be=function(a){var c=b.createElement("i");c.id="_gde_insdwl_"+Math.random().toString(36).slice(2);c.style.display="none";c.style.visibility="hidden";h.ca(a,b.querySelector("head"))?"loading"===b.readyState?h.addEventListener("readystatechange",function(){c.parentNode|| b.body.appendChild(c);B.o("ext_h",2)},b):(b.body.appendChild(c),B.o("ext_h",1)):a.parentNode.insertBefore(c,a);return c};return a}.apply(this,v);var Ba=function(e,b,n,p,k,m,f){function a(a,c,b,e){this.ja=a;this.Vb=c;this.Da=b;this.P=e;this.Pa=this.qd+this.Da;typeof this.Ca[this.Da]!==m&&this.Ca[this.Da].Hc&&(this.Pa+="_"+this.Vb);this.ae=this.Sd()}var g=new D,h=O.a();a[k]={Rf:7,qd:"grtb_",rd:"1",Jd:"redot.gif",Ca:{dataxu:{La:function(){return"i.w55c.net/ping_match.gif?st=GEMIUS&rurl="},p:"dataxu=_wfivefivec_",Od:!0,Wa:7},dbcm:{La:function(a,c,b,e,h,f){return"cm.g.doubleclick.net/pixel?google_nid="+c+"&google_cm&lsdata="+h+"&fpdata="+f},Wa:30}, hc_external_redir:{La:function(a,c){return h.ia(a)+"/externalredir?rid="+c},Wa:7,Hc:!0},external_redir:{La:function(){return""},Wa:7,Hc:!0}},We:function(a,c,b,e,f,g){return h.eb().Pb(a).ib(this.Jd).hb(c,b,e,f,g).Ma()},Xe:function(a,c,b,e,g,k){if(typeof this.Ca[b]===m)return"";var n=this.Ca[b];b=h.Z()+"//"+n.La(a,c,b,e,g,k);n.Od&&(a=this.We(a,c,f,f,e,n.p),b+=encodeURIComponent(a));return b},mf:function(a){0===a.indexOf("//")?a=h.Z()+a:/^https?:\/\//.test(a)||(a=h.Z()+"//"+a);return a},Je:function(){return this.$d()}, Sd:function(){var a=e.navigator&&e.navigator.cookieEnabled;typeof a===m&&(b.cookie="gcenabled=1",a=-1!==b.cookie.indexOf("gcenabled"));return a},Ye:function(a){a?this.w(this.mf(a),g.b(this.Gc,this)):h.g.f(g.b(function(c){a=this.Xe(this.ja,this.Vb,this.Da,this.P,c.O,c.R);this.w(a,g.b(this.Gc,this))},this))},Gc:function(){this.rf(this.Pa,this.rd,this.Ca[this.Da].Wa)},w:function(a,c){var b=new Image;b.onload=c;b.src=a},rf:function(a,c,e){var h;"number"===typeof e&&(h=new Date,h.setTime(+h+864E5*e)); b.cookie=[encodeURIComponent(a),"=",c,h?"; expires="+h.toUTCString():"","; path=/; domain=.hit.gemius.pl"].join("")},$d:function(a){var c=b.cookie?b.cookie.split("; "):[];a=a||this.Pa;return!g.every(c,function(c){return decodeURIComponent(c.split("=")[0])!==a})}};return a}.apply(this,v);var Ca=function(e,b,n,p,k,m,f){var a=O.a();return{o:function(b,e){if(!(.05<Math.random())){var d=a.eb().Pb("pro").ib("redot.gif").hb("B8M6Ri80Jwy3EwxiWSSauWYkP6IZ267t9WEhrSlis.X.J7",f,f,f,b+"="+e).bd(!0).Ma();a.na(d)}}}}.apply(this,v);var Da=function(e,b,n,p,k,m,f){function a(){this.Q={};this.Ga={};this.rb=M.a();this.Ac=p}var g=new D,h=O.a();a.c=f;a.a=function(){a.c===f&&(a.c=new a);return a.c};a[k].S=function(a){typeof this.Ga[a]===m&&(this.Ga[a]=new F(n),this.Ga[a].f(g.b(function(a){this.kb&&this.Fa(this.kb.O,this.kb.R,a)},this)),this.gc(a));return this.Ga[a]};a[k].Ne=function(a){return(this.S(a).Ba||{}).loaded};a[k].ic=function(){this.Ac=n};a[k].gc=function(a,c){if(!this.Ac&&typeof this.Q[a]===m){c||(c=y());var l=this.rb.ne(b); if(("complete"===b.readyState||"interactive"===b.readyState||"loading"===b.readyState&&100<y()-c)&&typeof l!==m){var f=b.createElement("iframe");f.src=h.Z()+"//"+h.ia(a)+"/gdejs/xgde.html";this.rb.Ce(f);e.attachEvent&&!e.addEventListener?l.insertBefore(f,l.firstChild):l.appendChild(f);var k=[];this.Q[a]={$f:y(),element:f,t:[],postMessage:function(a){k.push(a)}};this.rb.addEventListener("load",g.b(function(){this.Q[a].loaded=!0;this.Q[a].postMessage=f.contentWindow&&typeof f.contentWindow.postMessage!== m?function(c){f.contentWindow.postMessage(c,h.Z()+"//"+h.ia(a))}:function(){};g.h(k,this.Q[a].postMessage,this.Q[a])},this),f,this);this.S(a).e(this.Q[a])}else setTimeout(g.b(function(){this.gc(a,c)},this),100)}};a[k].Ze=function(a){return"/_"+y()+"/"+h.Ha+"?"+g.map(g.reduce(g.map(a,function(a,d){return[[0,d,"id="+(a.split(h.Ha+"?id=")[1].split("&extra=")[0]||"")],[1,d,"extra="+(a.split("&extra=")[1]||"")]]}),function(a,d){return a.concat(d)},[]).sort(function(a,d){return a[0]-d[0]||a[1]-d[1]}),function(a){return a[2]}).join("&")}; a[k].Wd=function(a){a.t.length=0};a[k].Ib=function(a){g.h(this.Q,function(a,d){this.S(d).f(this.Wd)},this);g.h(a,g.b(function(a){a.Va||this.S(a.ja).f(function(d){d.t.push(h.db(a.ja,a.Y,a.D,a.$,a.P,a.p,a.C,a.Ea))})},this));g.h(this.Ga,function(a,d){this.S(d).f(g.b(function(a){if(0<a.t.length){var c=this.Ze(a.t);a.postMessage(["QUEUE\n2\nonEnd",c].join("\n"));a.t.length=0}else a.postMessage("DEQUEUE\n1\nonEnd")},this))},this)};a[k].Fa=function(a,c,b){this.kb={O:a,R:c};b?b.postMessage(["UPDATE",2,a, c].join("\n")):g.h(this.Q,function(b){this.Fa(a,c,b)},this)};return{a:a.a}}.apply(this,v);var Ea=function(e,b,n,p,k,m,f){function a(){this.r={};this.Qb=Da.a();this.i=O.a()}var g=new D;a.c=f;a.a=function(){a.c===f&&(a.c=new a);return a.c};a[k].Nd=function(a){var d=f;g.every(this.r,function(c){return c.D!==a.D||c.p!==a.p})&&(d=new da(a),this.r[d.ab]=d,this.Qb.Ib(this.r))};a[k].hf=function(a,d){g.h(this.r,g.b(function(c){this.pb(c,a,d)&&delete this.r[c.ab]},this));this.Qb.Ib(this.r)};a[k].ee=function(a,d){g.h(this.r,g.b(function(c){this.pb(c,a,d)&&c.tf()},this));this.Qb.Ib(this.r)};a[k].Vd= function(){g.h(this.r,g.b(function(a){a.Va&&delete this.r[a.ab]},this))};a[k].gf=function(){g.h(this.r,g.b(function(a){delete this.r[a.ab]},this))};a[k].Vf=function(){return this.r};a[k].pb=function(a,d,c){return a.D!==d?p:typeof a.p===m&&typeof c===m||a.p===c?n:a.p&&-1!==a.p.indexOf(c)?n:p};return{a:a.a}}.apply(this,v);var ya=function(e,b,n,p,k,m,f){function a(){}var g=new D,h=Da.a();a.c=f;a.a=function(){a.c===f&&(a.c=new a);return a.c};a.prototype.Ke=function(){return typeof this.Sa!==m};a.prototype.Bf=function(a){this.Sa=a};a.prototype.Lf=function(a){var c=this.Te();typeof a!==m&&(c[a]=1,this.of(g.map(c,function(a){return a||0})));return this.Sa=g.reduce(c,function(a,c){return a+(0<c?1:0)},0)};a.prototype.Te=function(){try{return JSON.parse(localStorage.getItem("gdejs_tq")||"[]")}catch(a){return[]}};a.prototype.of= function(a){try{localStorage.setItem("gdejs_tq",JSON.stringify(a))}catch(c){try{localStorage.removeItem("gdejs_tq")}catch(b){}}};a.prototype.ie=function(a,c){var b=this.encode(c);h.S(a).f(function(a){a.postMessage(["TQ",1,b].join("\n"))})};a.prototype.encode=function(a){return this.Ud(a.join(":"))%255};a.prototype.Ud=function(a){if("string"!==typeof a||0===a.length)return 0;for(var c=0,b=0;b<a.length;b++)c=(c<<5)-c+a.charCodeAt(b),c|=0;return Math.abs(c)};return a}.apply(this,v);var Fa=function(e,b,n,p,k,m,f){function a(){this.Oa={}}var g=new D,h=O.a(),d=ya.a();a.c=f;a[k].d={X:h.X,Y:"id",Ld:"stparam",Sb:"elementid",Md:"w",oa:"extra",Kd:"sarg",vd:"fastid",td:"emitterhost",ud:"emitterid",Hd:"id_rtb",Id:"rtb_partner_name",URL:"url",Yb:"lsdata",Tb:"fpdata",nd:"campaignID",Dd:"placementID",sd:"creativeID",Ed:"publisherID",dc:"siteID",Xb:"key",fc:"value",Qf:"callback",Bd:"nc"};a[k].He=function(a){return-1===g.indexOf([this.d.X,this.d.Sb,this.d.Yb,this.d.Tb,this.d.dc,this.d.oa, this.d.Xb,this.d.fc],a)};a.a=function(){a.c===f&&(a.c=new a);return a.c};a[k].push=function(){for(var c=[],b=a.a(),d=0;d<arguments.length;d++)b.Oa.hasOwnProperty(arguments[d][0])&&c.push(b.Oa[arguments[d][0]].apply(_gdeaq,arguments[d].slice(1)));return c};a[k].Mc=function(a,b){return g.isArray(a[b])?(a[b]||[])[0]:a[b]};a[k].map=function(a,b,e){this.Oa[a]=g.b(function(a){var c=arguments;if(h.Ya(a)||h.Ge(a)){var n=h.uc(a);a=this.Mc(n,this.d.X);var c=[a],c=g.map(b,g.b(function(a){return typeof n[this.d.oa]!== m&&a===this.d.oa?decodeURIComponent(n[this.d.oa].join("%7C")):this.Mc(n,a)},this)),p=Array[k].slice.call(arguments,1),c=g.map(c,function(a){return typeof a===m?p.shift():a})}var t=g.indexOf(b,this.d.X);if(0<=t){var u=c[t];if(!u)return;c[t]=u=h.nf(c[t]);h.Oc.e(u);d.ie(u,g.filter(c,function(a,c){return this.He(b[c])},this))}return e.apply(f,c)},this)};return{a:a.a}}.apply(this,v);var Ga=function(e,b,n,p,k,m,f){function a(){this.G={};this.F=new F(n);this.Ef();this.wf();this.Df();var a=h.xb(location.href);this.le=h.tc(a[0])}var g=new D,h=O.a(),d=M.a(),c=ya.a();a[k]={Rb:{FLUSH:function(a,c,b){this.w(b);c&&(this.G[c]=f)},QUEUE:function(a,c,b){this.G[c]=b},DEQUEUE:function(a,c){this.G[c]=f},UNLOAD:function(){this.yb()},UPDATE:function(a,c,b){this.Fa(c,b)},GDPR:function(a,c){this.Mb(c)},GETBROWSERID:function(a){this.oe().f(g.b(function(c,b){this.tb(e.parent,a,"BROWSERID",c,b)}, this))},RTB:function(a,c,b,d,e){e&&(b="external_redir");try{var h=new Ba(this.le,c,b,d);h.ae&&!h.Je()&&h.Ye(e)}catch(f){}},TQ:function(a,b){var d=c.Lf(b);this.tb(e.parent,a,"TQ",d)},REFERER:function(a){qa.we().f(g.b(function(c){this.tb(e.parent,a,"REFERER",c)},this))}},Ef:function(){this.F.f(function(a,c){h.g.e({R:c,O:a})})},oe:function(){if(this.F.N())return this.F;var a=b.createElement("script");a.src=location.protocol+"//"+location.host+"/gemius.js";e.gemius_params_ready=g.b(function(a){this.F.e(a.lsdata, a.fpdata)},this);e.pp_gemius_loaded=g.b(function(){gemius_hcconn.visibilitychanged=function(){};var c,b;b=setInterval(g.b(function(){gemius_hcconn.fpdata&&0===gemius_hcconn.waiting_for_fpdata&&gemius_hcconn.lsdata&&0===gemius_hcconn.waiting_for_lsdata&&this.F.e(gemius_hcconn.lsdata,gemius_hcconn.fpdata)},this),1E3);c=setTimeout(g.b(function(){this.F.e(h.g.Ja,h.g.Ja)},this),1E3);this.F.f(function(){a.parentNode.removeChild(a);clearInterval(b);clearTimeout(c)})},this);d.addEventListener("error",function(){this.F.e(h.g.da, h.g.da)},a,this);b.getElementsByTagName("body")[0].appendChild(a);return this.F},Mb:function(a){e.gemius_gdpr_applies=!0;e.gemius_gdpr_consent=a;e.gemius_cmp_purposes=[1,2,3]},Fa:function(a,c){this.F.e(a,c);for(var b in this.G)this.G[b]&&(this.G[b]=this.G[b].replace(/lsdata=-TIMEDOUT/g,"lsdata="+a).replace(/fpdata=-TIMEDOUT/g,"fpdata="+c))},yb:function(){g.h(this.G,g.b(function(a,c){this.G[c]!==f&&(this.G[c]=f,this.w(h.V(a,"u",1)))},this))},w:function(a,c){a=h.Nc(a);if(!h.sendBeacon(h.V(a,"sb",1), function(){"function"===typeof c&&c()}))try{var b=new XMLHttpRequest;"function"===typeof c&&(b.onreadystatechange=function(){200===b.status&&c()});b.open("GET",a,p);b.send(f)}catch(d){}},tb:function(a,c,b){a.postMessage([b,Math.max(arguments.length-3,0)].concat(g.filter(arguments,function(a,c){return 2<c})).join("\n"),c)},wf:function(){d.addEventListener("message",function(a){var c=a.origin;if("string"===typeof a.data)for(a=a.data.split("\n");0<a.length;){var b=parseInt(a[1])||0;if(0>b)break;var d= 0<b?a.slice(2,b+2):[];if(this.Rb[a[0]])this.Rb[a[0]].apply(this,[c].concat(d));else break;a.splice(0,2+b)}},e,this)},Df:function(){d.addEventListener("beforeunload",this.yb,e,this);d.addEventListener("unload",this.yb,e,this)}};return a}.apply(this,v);var Ha=function(e,b,n,p,k,m,f){var a=new D,g=M.a();return function(e,d){var c,k,m,p,r,E,w,t,u={6:1,4:2,5:3};p=function(a){return k(function(c,b){if(0===c)return r(a+b);if(7===c)return w(a)})};r=function(a){return m(function(c,b){if(5===c)return d.w(e.k+d.cb(e,{dlw:"0",dlw_d:a+b})),E(0);if(1===c||3===c)return p(a+b)},e.ta)};E=function(a){d.kc(e,7);g.T()||e.setEnd("dwell",e.k+d.cb(e,{dlw:u[4],dlw_t:d.ob(e),dlw_t_t:y()},n));return m(function(c,b){e.mc=a+b;if(1===c||3===c)return w(a+b);if(5===c)return t(0, 6);if(4===c&&g.T())return t(0,4)},e.va-a)};w=function(a){g.T()||e.setEnd("dwell",e.k+d.cb(e,{dlw:u[4],dlw_t:d.ob(e)},n));return m(function(c){if(0===c)return E(a);if(5===c||9===c||4===c&&g.T())return t(0,c)},e.ua)};t=function(a,c){9!==c&&(d.kc(e,9),0<u[c]&&d.w(e.k+d.cb(e,{dlw:u[c],dlw_t:d.ob(e)})));return k(function(){})};c=function(){var b,d=y(),e;k=function(a){e&&(clearTimeout(e),e=f);return a};m=function(d,h){e&&clearTimeout(e);e=a.ga(function(){b===d&&(c(5),e=f)},h);return d};b=p(0);return function(a){(a= b(a,y()-d))&&a!==b&&(b=a,d=y())}}();d.Vc.push(function(){c(3)});d.$c.push(function(){c(4)});g.addEventListener(["mousemove","mouseenter","mouseover"],function(){c(0)},e.j);g.addEventListener(["mouseleave","mouseout"],function(){c(1)},e.j);g.addEventListener("mousewheel",function(d){var f=g.yc(),k=d.clientX-f.left,l=d.clientY-f.top;a.ga(function(){f=g.yc();var a=b.elementFromPoint(k+f.left,l+f.top);g.ca(a,e.j)?c(0):c(1)},0)},b);d.Yd(e,c)}}.apply(this,v);var Ia=function(e,b,n,p,k,m){function f(a,b){this.Qa=a;this.w=b;this.t=[];this.nb=0}var a=new D,g=M.a();f.U=function(a){var d=b.querySelector(a||"body");g.addEventListener("mouseup",function(a){a=f.rc(a,d);parent.postMessage("gde.heatmap:"+a.x+":"+a.y,"*")},d,this,n)};f[k].af=function(a,b){g.addEventListener("mouseup",function(a){this.Xd(a);b()},a,this,n);var c=a.querySelector("iframe");c&&g.addEventListener("message",function(a){c.contentWindow===a.source&&a.data&&"string"===typeof a.data&&0===a.data.indexOf("gde.heatmap:")&& (a=a.data.split("gde.heatmap:")[1],"string"===typeof a&&a.match(/^(\d+):(\d+)$/)&&(a=a.split(":"),this.click(parseInt(a[0]),parseInt(a[1])),b()))},e,this)};f[k].Xd=function(a){a=f.rc(a,this.Qa.j);this.click(a.x,a.y)};f.rc=function(a,b){var c=g.ue(b),e=typeof a.pageX===m;return{x:(e?a.clientX:a.pageX)-c.left,y:(e?a.clientY:a.pageY)-c.top}};f[k].click=function(a,b){this.nb<f.$b&&(this.t.push([a,b]),this.nb++,this.Sc())};f[k].A=function(b){b=b||"";if(0<this.t.length){var d=b.length+10,c=[],k=[];this.t= a.filter(this.t,function(a){d+=6+a.join("").length;if(d<=f.Zb)c.push(Math.min(Math.max(0,a[0]),65535)>>0),k.push(Math.min(Math.max(0,a[1]),65535)>>0);else return n});0<c.length&&k.length===c.length&&(b+=e.encodeURIComponent((b?"|":"")+"hx="+c.join(",")+"|hy="+k.join(",")+(this.nb>=f.$b?"|hn=1":"")+(d>f.Zb?"|hl=1":"")))}return b};f[k].jc=function(){this.Nb&&(clearTimeout(this.Nb),delete this.Nb)};f[k].Sc=function(){this.jc();this.t.length&&(this.Nb=setTimeout(a.b(this.je,this),f.xd))};f[k].je=function(){this.jc(); this.Pc();0<this.t.length&&this.Sc()};f[k].Pc=function(){0<this.t.length&&this.w()};f.Zb=1024;f.$b=200;f.xd=1E4;return f}.apply(this,v);var Ja=function(e,b,n,p,k,m,f){function a(){}a.c=f;a.a=function(){a.c===f&&(a.c=new a);return a.c};a[k].aa=function(){return na.Ab()&&M.a().T()&&!0};a[k].Zf=function(){if(!this.aa()||!e._gdeaq)return p;var a;e._gdeaq.push(["viewable-init",function(b){a=b}]);if(!a)return p;e._gdeaq.push(["define",function(){return a}]);return n};return a}.apply(this,v);var La=function(e,b,n,p,k,m){var f=new D,a=M.a(),g=O.a(),h;return{a:function(d){if(h)return h;h=new F;typeof e._gao_insdwl===m?Ja.a().aa()?(Ka.call(null,ba,s,!1,!0,null,"undefined"),h.e(e._gao_insdwl)):d?f.every(b.getElementsByTagName("script"),function(a){return!(g.L(a.src)&&0<a.src.indexOf("/gdejs/inscreen_lib.js"))})?(d=g.Z()+"//"+g.ia(d)+"/gdejs/inscreen_lib.js",a.bb(d).f(function(){h.e(e._gao_insdwl)})):setTimeout(function(){h.e(e._gao_insdwl)},1E3):h.n():h.e(e._gao_insdwl);return h}}}.apply(this, v); function Ka(e,b,n,p,k,m){var f=new D,a=M.a(),g=function(a){for(var b=0;10>=b;b++)a.push(b/10);return a}([]),h=Fa.a(),d=O.a();typeof _gao_inscdwl_cfg===m&&(b._gao_inscdwl_cfg=function(a){function d(a,b){return typeof a!==m?a:b}typeof _gde_insdwl_cfg===m&&(b._gde_insdwl_cfg=[]);typeof a.l!==m&&typeof a.k!==m&&_gde_insdwl_cfg.push({id:a.id,sa:!!a.sa,l:a.l,k:a.k,z:d(a.z,1E3),v:d(a.v,3E4),K:d(a.K,72E5),s:a.s,J:a.J,I:a.I,ta:d(a.ta,1E3),va:d(a.va,18E5),ua:d(a.ua,72E5)})});typeof b._gao_insdwl===m?b._gao_insdwl=new function(b){function l(a){a.la|| (a.pa?V(a):a.Ka||(a.Ka=f.ga(function(){a.pa=p;V(a)},a.z)))}function q(b){!b.pa&&b.Ka?(clearTimeout(b.Ka),b.Ka=k):b.pa&&b.la?V(b):a.ca(b.j,e)?b.ya(T()?2:3):(b.ff(),a.ca(b.j,e)||W(b))}function z(){e[Z]?(L(),f.h(J,function(a){a.ka.H(0);a.za.H(0);I(a.l+G(a,a.ka.A({isn_sc:a.Hf++}),p,n))})):S()}var r={},E,w,t=b.encodeURIComponent,u,A;r.Vc=[];r.$c=[];var L,Q,aa,U,S,V,W,X,N,I,Y,T,G,x,ca,C,ka,ha,R,K,P,sa,ta,ua=0,J=[],ia;new function(a,d,e){ia=b[a]&&b[a][d]&&b[a][d][e]?b[a][d][e]:y()}("performance","timing", "navigationStart");r.q=r.init=r.U=function(){var ga=b._gde_insdwl_id,h=b._gde_inscreen,g=b._gde_inscreen_end,x=b._gde_insdwl_tm,C=b._gde_insdwl_th,ca=b._gde_dwell||{},ha=b._gde_dwell_end||{},R=b._gde_insdwl_dwltm;typeof _gde_insdwl_id!==m&&f.h(_gde_insdwl_id,function(a,b){_gao_inscdwl_cfg({id:ga[b],l:h[b],k:g[b],z:x&&(x[b]||[])[0],v:x&&(x[b]||[])[1],K:x&&(x[b]||[])[2],s:C&&C[b],J:ca[b],I:ha[b],ta:R&&(R[b]||[])[0],va:R&&(R[b]||[])[1],ua:R&&(R[b]||[])[2]});_gde_insdwl_id[b]=void 0});if(typeof _gde_inscreen_config!== m&&0<_gde_inscreen_config.length)for(;0<_gde_inscreen_config.length;){var K=_gde_inscreen_config.shift(),P=K.nodeID,t=K.hit;P&&t&&_gao_inscdwl_cfg({id:P,sa:K.customDomain,l:t,k:t,z:x&&(x[P]||[])[0],v:x&&(x[P]||[])[1],K:x&&(x[P]||[])[2],s:C&&C[P],J:t,I:t})}typeof _gde_inscreen_dwell!==m&&f.h(_gde_inscreen_dwell,function(a,b){_gao_inscdwl_cfg({id:function(){var a=e.getElementById(b),c=a;if(a)return a=a.parentNode,a.removeChild(c),c&&c.hasAttribute("data-video")&&(a=a.querySelector("video")||a),a},l:a, k:a,z:x&&(x[b]||[])[0],v:x&&(x[b]||[])[1],K:x&&(x[b]||[])[2],s:C&&C[b],J:a,I:a});_gde_inscreen_dwell[b]=void 0});typeof _gde_insdwl_cfg!==m&&(ua++,_gde_insdwl_cfg=f.filter(_gde_insdwl_cfg,function(b){function c(){return"function"===typeof b.id?b.id():"string"===typeof b.id?e.getElementById(b.id):b.id}function ga(a){for(;a&&a.parentNode;)a=a.parentNode;return a}var h=c();if(!h)return p;if(typeof f.filter(J,function(c){if((c.j===h||a.ca(h,c.j)||a.ca(c.j,h))&&u(c.l,b.l)&&u(c.k,b.k)&&u(c.J,b.J)&&u(c.I, b.I))return p})[0]!==m)return n;var g={j:h,parentNode:ga(h),ff:function(){this.j=h=c();this.parentNode=ga(h)},frames:{},wa:[],ya:function(a,b,c){var d=this.wa[this.wa.length-1];d&&d.state===a||this.wa.push({Xc:c||y(),state:a,visible:b,ke:T()})},sa:b.sa,la:0,u:0,l:b.l||"",k:b.k||"",qa:ta(b),z:b.z,v:b.v,K:b.K,s:b.s,W:n,B:n,Hf:0,J:b.J||"",I:b.I||"",ta:b.ta,va:b.va,ua:b.ua,Ra:function(){return this.j?this.j.offsetWidth:0},fa:function(){return this.j?this.j.offsetHeight:0},ce:function(){return this.Ra()* this.fa()},Bb:"VIDEO"===h.tagName,Me:function(a){return function(){var b=this.j;return(0===b.readyState||!b.paused)&&!b.ended&&a===b.currentSrc}}(h.currentSrc),setEnd:function(){},Sf:function(){},bg:function(){}};g.Bb&&(g.z=2E3);if(!(d.Ya(g.l)&&d.Ya(g.k)||g.sa))return n;g.zb=new Ia(g,f.b(function(){I(this.k+G(this))},g));g.ya(T()?2:3,n,ia);g.zb.af(h,function(){!g.W&&X(g)&&(ka(g),I(g.l+G(g,{isn:"4",isn_d:y()-ia})),g.W=p,g.pa=p)});g.s||(g.s=242500<=g.ce()?.3:.5);g.ka=new ea("isn_hist");g.za=new fa("isn_r"); g.Ta=new fa("isn_sd");J.push(g);if(h.parentNode){do(h.scrollWidth>h.offsetWidth||h.scrollHeight>h.offsetHeight)&&a.addEventListener("scroll",S,h,r);while((h=h.parentNode)!==k)}g.J&&g.I&&Ha(g,r);g.Jc=w(g,function(a,b){g.ka.H(a);g.za.H(a);g.Ta.H(b);a>=g.s?l(g):q(g)})}),0<_gde_insdwl_cfg.length&&30>ua&&f.ga(f.b(r.U,r),200),U(),pa.update())};r.debug=function(){};r.nodes=function(){return f.map(J,function(a){return[a.l,a.j]})};V=function(b){0!==b.la?(b.u+=y()-b.la,b.u=P(b),b.la=0,b.u>=b.v&&!K(b)&&N(b)&& I(b.k+G(b,{isn:"1",isn_t:b.v})),b.Na&&(clearTimeout(b.Na),b.Na=k),K(b,b.B)||(a.ca(b.j,e)?b.Xa=f.ga(function(){W(b)},b.K):W(b)),b.ya(T()?2:3)):(X(b)&&(ka(b),I(b.l+G(b,x(b,{isn:"0",isn_d:y()-ia})))),b.la=y(),b.u=P(b),K(b,b.B)||(b.Na=f.ga(function(){b.Na=k;b.u=b.v;N(b)&&I(b.k+G(b,{isn:"1",isn_t:b.u}))},b.v-b.u)),sa(b),b.ya(4,p))};X=function(a){return a.W?n:a.W=p};N=function(a){if(a.B)return n;a.B=p;return R(a)};W=function(a){K(a,a.B)||(a.Xa=k,a.W&&N(a)&&I(a.k+G(a,{isn:"3",isn_t:a.u},n,p,p)),K(a,a.B)&& f.h([a].concat(C(a)),function(a){J=f.filter(J,function(b){return a!==b})}),J=f.filter(J,function(b){return a!==b}),a.W||0!==C(a).length||ca(a))};C=function(a){return a.qa?f.filter(J,function(b){return b.qa===a.qa&&b!==a}):[]};ka=function(a){f.map(C(a),function(a){X(a)})};ha=function(a){return f.reduce(C(a),function(a,b){return a||b.W},a.W)};sa=function(a){f.h(C(a).concat([a]),function(a){a.Xa&&(clearTimeout(a.Xa),a.Xa=k)})};R=function(a){if(K(a))return n;f.h(C(a),N);return p};K=function(a,b){return f.reduce(C(a), function(a,b){return a||b.B},b)};P=function(a){return f.reduce(C(a),function(a,b){return Math.max(b.u,a)},a.u)};r.ob=function(a){return f.reduce(C(a),function(a,b){return(b.mc||0)+a},a.mc||0)};ta=function(a){return a.l.split("redot")[1]||a.l};var va=[];r.kc=function(a,b){f.h(va,function(c){c.Qa.qa===a.qa&&c.Qa!==a&&c.lb(b)})};r.Yd=function(a,b){va.push({Qa:a,lb:b})};ca=function(a){var b={nisn_t:0,nisninac_t:0,nisnout_t:0,nisnunrec_t:0};a.ya(5);f.reduce(a.wa,function(a,c){if(!c.visible){var d=c.Xc- a.Xc;b.nisn_t+=d;1===a.state&&(b.nisnunrec_t+=d);if(2===a.state||3===a.state)a.ke?b.nisnout_t+=d:b.nisninac_t+=d}return c},a.wa.splice(0,1)[0]);for(var c in b)0===b[c]&&delete b[c];I(a.k+G(a,x(a,b),n,p,p))};L=function(){Y&&(clearInterval(Y),Y=k);f.h(J,function(a){q(a)});f.h(r.Vc,function(a){a(L)})};Q=function(){d.Uc();a.lc("unload",aa);f.h(J,function(a){q(a);if(a.pa){var b;a.l&&""!==a.l&&!a.B?(N(a),b={isn:"2",isn_t:a.u}):b={};a.ka.A(b);a.Ta.A(b);a.za.A(b);I(a.k+G(a,x(a,b),p))}else ha(a)||K(a,a.B)|| (N(a),ca(a));a.zb.Pc()});f.h(r.$c,function(a){a(Q)})};r.w=I=function(a){0<a.indexOf("[TIMESTAMP]")&&(a=a.split("[TIMESTAMP]").join(y()));h.push(["hit",a])};E=function(a){if(!(a.j&&T()&&0<a.Ra()&&0<a.fa())||a.Bb&&!a.Me())return(new F).n(0,0);var b=new F,c=w(a,function(c,d){c>=a.s?b.e(c,d):b.n(c,d)}),d=a.j;b.ea(function(){c.unobserve(d)});return b};w=function(a,d){var f=new b.IntersectionObserver(function(b){var c=b[b.length-1],e=c.intersectionRect;b=a.Ra()*a.fa();b=Math.max(0<b?e.width*e.height/b: 0,c.intersectionRatio);c=Math.abs(Math.min(c.boundingClientRect.top,0))+e.height;c=0<a.fa()?Math.max(Math.min(c/a.fa(),1),b):0;d(b,c)},{s:[a.s].concat(g).sort()});f.observe(a.j);var h=e.createElement("i");h.style.position="absolute";a.j.parentNode.insertBefore(h,a.j);h.parentNode.removeChild(h);return f};U=function(){Y||(Y=setInterval(f.b(S,r),500));f.h(J,function(a){a.B||(a.Cb&&a.Cb.n(0,0),a.Cb=E(a).f(function(){l(a)}).ha(function(){q(a)}).ea(function(b,c){a.ka.H(b);a.za.H(b);a.Ta.H(c);a.Cb=k}))})}; u=function(a,b){return A(a)===A(b)};A=function(a){return(a.match(/(id|stparam|w)=([^=^\/^&]+)/g)||[]).join("/")};S=f.If(U,150);a.addEventListener("scroll",S);a.addEventListener("resize",S);a.addEventListener("beforeunload",Q);aa=a.addEventListener("unload",Q);a.addEventListener("load",r.U,r);b.self===b.top&&a.addEventListener("blur",L,k,r,n,p);a.addEventListener("focus",U);var Z,$=n;typeof e.hidden!==m?(Z="hidden",$="visibilitychange"):typeof e.mozHidden!==m?(Z="mozHidden",$="mozvisibilitychange"): typeof e.msHidden!==m?(Z="msHidden",$="msvisibilitychange"):typeof e.webkitHidden!==m&&(Z="webkitHidden",$="webkitvisibilitychange");$&&(a.addEventListener($,z,e,r,n,p),z());T=typeof Z!==m?function(){return!e[Z]}:function(){return p};r.cb=G=function(a,b,c,d,e){b=b||{};b.isn_s_v="3v4d_4";e&&(b.isn_c_w=a.Ra(),b.isn_c_h=a.fa());d&&(a.ka.A(b),a.Ta.A(b),a.za.A(b));d=t(f.map(f.Oe(b),function(a){return a+"="+b[a]}).join("|"));return"&extra="+(c?d:a.zb.A(d))};x=function(a,b){typeof b===m&&(b={});1E3!==a.z&& (b.isn_c_a=a.z);3E4!==a.v&&(b.isn_c_d=a.v);72E5!==a.K&&(b.isn_c_t=a.K);.5!==a.s&&(b.isn_c_v=a.s);a.Bb&&(b.isn_vid="1");return b};var wa=y(),Ma=setInterval(function(){if("complete"===e.readyState||"interactive"===e.readyState||1E4<y()-wa)("complete"===e.readyState||1E4<y()-wa)&&clearInterval(Ma),r.U()},250);"complete"!==e.readyState&&"interactive"!==e.readyState||r.U();h.push(["define",function(){return r}]);return r}(b):("complete"!==e.readyState&&"interactive"!==e.readyState||_gao_insdwl.q(),h.push(["define", function(){return _gao_insdwl}]))};/* AdOcean 2013 gDE Action Queue Processor */ if("undefined"===typeof window._gdeaqp){window._gdeaqp=new function(){function e(){a.Uc();g.ic();h.gf()}var b="undefined"!==typeof _gdeaq&&_gdeaq?_gdeaq:[],n,p=this,k=new D,m=M.a(),f=xa.a(),a=O.a(),g=Da.a(),h=Ea.a(),d=Fa.a(),c=Aa.a(),l=ya.a();oa.a();var q=d.d.X,z=d.d.Y,r=d.d.Ld,E=d.d.Sb,w=d.d.Md,t=d.d.oa,u=d.d.Kd,A=d.d.vd,L=d.d.td,Q=d.d.ud,aa=d.d.Hd,U=d.d.Id,S=d.d.URL,V=d.d.nd,W=d.d.Dd,X=d.d.sd,N=d.d.Ed,I=d.d.dc,Y=d.d.Xb,T=d.d.fc,G=d.d.Bd;d.map("bid",[d.d.Yb,d.d.Tb],function(b,c){var d={};if(!b.length|| a.C||a.ba)b=a.g.da;if(!c.length||a.C||a.ba)c=a.g.da;d={O:b,R:c};a.g.e(d)});d.map("viewableConfig",[E],function(a){function b(c,d){"undefined"===typeof s[c]&&(s[c]={});s[c][a]=d}var c=k.object(Array.prototype.slice.call(arguments,1));b("_gde_insdwl_tm",[c.delay,c.duration,c.timeout]);b("_gde_inscreen_fg",c.foreground);b("_gde_insdwl_th",c.threshold)});d.map("viewable-init",[],function(a){La.a().f(a)});d.map("inscreen",[q,z,r,E,w,t,G,u],function(b,c,d,e,f,h,g,k){if("undefined"===typeof s._gde_inscreen_config|| "function"!==typeof s._gde_inscreen_config.push)s._gde_inscreen_config=[];var l=La.a(b);a.g.f(function(m){s._gde_inscreen_config.push({nodeID:e,customDomain:!0,hit:a.gb(a.db(b,c,d,null,f,h,g,k),m)});l.f(function(a){a.init()})})});d.map("viewable",[q,z,r,E,w,t,u],function(b,c,d,e,f,h,g){"undefined"===typeof s._gde_inscreen_dwell&&(s._gde_inscreen_dwell={});var k=La.a(b);a.g.f(function(l){s._gde_inscreen_dwell[e]=a.gb(a.db(b,c,d,null,f,h,g),l);k.f(function(a){a.init()})})});d.map("viewableFiF",[],function(b, c,d){try{if(!b.document)return}catch(e){return}b._gdeaq=b._gdeaq||[];b._gdeaq.push(["viewable",c,d]);k.every(b.document.getElementsByTagName("script"),function(b){return!(a.L(b.src)&&0<b.src.indexOf("/gdejs/xgde.js"))})&&(c=b.location.protocol+"//"+a.xb(c)[0]+"/gdejs/xgde.js",m.bb(c,null,b.document))});d.map("heatmap",[E],function(a){Ia.U(a)});d.map("videoTracking",[],function(){ma.a().kf()});d.map("end",[q,z,r,A,w,t,G,u],function(b,c,d,e,f,g,l,m){k.every(h.r,function(a){return d&&h.pb(a,d,g)&&a.Va? !1:!0})&&(a.w(a.db(b,c,d,e||null,f,g,l,m)),h.ee(d,g),h.Vd())});d.map("onEnd",[q,z,r,A,w,t,G,u],function(a,b,c,d,e,f,g,k){h.Nd({ja:a,Y:b,$:d||null,D:c,P:e,p:f,C:g,Ea:k})});d.map("removeEnd",[q,z,r,A,w,t],function(a,b,c,d,e,f){h.hf(c,f)});d.map("externalHit",[],function(b){a.na(b)});d.map("hit",[q,z,r,A,w,t,G,u],function(c,d,e,f,h,k,l,m){a.$a()||a.g.N()?b.push(["end",c,d,e,f,h,k,l,m]):a.T()?a.g.f(function(){b.push(["end",c,d,e,f,h,k,l,m])}):(b.push(["onEnd",c,d,e,f,h,k,l,m]),a.g.f(function(n){n.O=== a.g.jb&&g.Ne(c)||b.push(["end",c,d,e,f,h,k,l,m])}));a.g.f(function(){pa.Kf(e)})});d.map("pageView",[q,z,L,Q,w,t,u],function(c,d,e,f,g,h,l){b.push(["hit",c,d,null,null,g,h,void 0,l]);"undefined"!==typeof e&&null!==e&&"undefined"!==typeof f&&null!==f&&(c=k.isArray(e)?e:[e],k.h(c,function(b){b=a.eb().ad(b).ib(a.cd).Mf(f).Ma();a.na(b)}))});d.map("nc",[],function(b){a.xf("true"===b||!0===b||1===b||"1"===b)});d.map("roc",[],function(b){a.zf("true"===b||!0===b||1===b||"1"===b)});d.map("plain",[],function(){a.yf(); g.ic();b.Lc=!0});d.map("cmp",[],function(a){H.sf("true"===a||!0===a||1===a||"1"===a)});d.map("gdpr_consent",[],function(a){H.Mb(a)});d.map("rtb",[q,aa,U,w,S],function(b,c,d,e,f){a.C||g.S(b).f(function(a){a.postMessage(["RTB",4,c,d,e,f].join("\n"))})});d.map("rtb_hit",[q,z,r,A,aa,U,w,t,u],function(a,c,d,e,f,g,h,k,l){c&&b.push(["hit",a,c,d,e,h,k,void 0,l]);b.push(["rtb",a,f,g,h])});d.map("ext_hit",[q,z,V,W,X,N,I,w,u],function(a,c,d,e,f,h,g,l,m){var n=0,p=arguments,q=k.map([V,W,X,N,I],function(a,b){var c= p[b+2];c!=="["+a+"]"&&n++;return a+"="+c}).join("|");b.push(["hit",a,c,null,null,l,q,void 0,m]);B.o("ext_hit",n)});d.map("tag",[q,z,r,A,r,E,w,t,u],function(a,c,d,e,f,h,g,k,l){b.push(["hit",a,c,d,e,g,k,void 0,l]);b.push(["viewable",a,c,f,h,g,k,l])});d.map("require",[],function(a,b){ra.a().lf(a,b)});d.map("define",[],function(a){ra.a().de(a)});d.map("display",[],function(){"undefined"===typeof f.Kc()&&f.cf()});d.map("analytics",[Y,T],function(a,b){Ca.o(a,b)});d.map("nodes",[],function(b){b&&"function"=== typeof b&&La.a().f(function(c){"function"===typeof c.nodes&&b(k.filter(k.map(c.nodes(),function(b){if(a.Ya(b[0])){var c=a.uc(b[0]).stparam||[];return c[0]&&{stparam:c[0],el:b[1]}}}),k.Fe))})});d.map("autonodes",[],function(){pa.update()});d.map("parse",[],function(){c.parse()});d.Oa.XHR=function(){new Ga};a.Oc.f(function(b){if(!a.g.N()){var c=new F,d=new F,e=y();(function(b,f){d.f(function(d){clearTimeout(f);c.f(function(c){clearTimeout(b);a.g.e({R:d,O:c,Be:y()-e})})})})(setTimeout(k.b(c.e,c,a.g.Ja), 1E3),setTimeout(k.b(d.e,d,a.g.Ja),1E3));m.addEventListener("message",function(b){a.L(b.origin)&&"string"===typeof b.data&&(b=b.data.split("\n"),"BROWSERID"===b[0]&&n(b,function(a,b){c.e(a);d.e(b)}),"TQ"===b[0]&&n(b,function(a){l.Bf(a)}),"REFERER"===b[0]&&n(b,function(a){qa.Af(a)}))},s,p);"undefined"===typeof s.postMessage||a.C||a.ba?(c.e(a.g.da),d.e(a.g.da)):g.S(b).f(function(b){H.ra&&b.postMessage(["GDPR",1,H.ra].join("\n"));b.postMessage("GETBROWSERID");b.postMessage("TQ");a.M()&&b.postMessage("REFERER")})}a.g.f(function(a){g.Fa(a.O, a.R)})});n=function(a,b){b.apply(null,a.slice(2,a[1]+2))};b.push=d.push;this.Pd=function(){return b};d.push.apply(d,b.splice(0,b.length));m.addEventListener("beforeunload",e,s,p);m.addEventListener("unload",e,s,p);qa.U()};try{window._gdeaq=window._gdeaqp.Pd()}catch(Na){}};})();
543.757576
1,028
0.640325
52fd39fb40c186573b0aa3d35896103f66298ea3
500
js
JavaScript
client/src/main.js
mkdev-works/laravel_multi_auth
29cdb84da3b5bb781c5abe30584714cae0f40bb1
[ "MIT" ]
null
null
null
client/src/main.js
mkdev-works/laravel_multi_auth
29cdb84da3b5bb781c5abe30584714cae0f40bb1
[ "MIT" ]
3
2021-02-02T21:14:40.000Z
2022-02-19T05:54:32.000Z
client/src/main.js
mkdev-works/laravel_multi_auth
29cdb84da3b5bb781c5abe30584714cae0f40bb1
[ "MIT" ]
null
null
null
import Vue from "vue"; import App from "./staff/App.vue"; import router from "./staff/router/router"; import store from "./staff/store/store"; import vuetify from "./plugins/vuetify"; import axios from "axios"; import VueAxios from "vue-axios"; import VueMeta from "vue-meta"; Vue.config.productionTip = false; Vue.use(VueAxios, axios); Vue.use(vuetify); Vue.use(VueMeta, { refreshOnceOnNavigation: true }); new Vue({ router, vuetify, store, render: h => h(App) }).$mount("#app");
22.727273
52
0.692
52fd3da69c3ed941de8d65ec2fed217ffb7d2b34
4,150
js
JavaScript
src/shared/lib/fetch/get.js
chunder/coronadatascraper
a384dd704ea5e933b6d6c1dd093151472d39541e
[ "BSD-2-Clause" ]
null
null
null
src/shared/lib/fetch/get.js
chunder/coronadatascraper
a384dd704ea5e933b6d6c1dd093151472d39541e
[ "BSD-2-Clause" ]
null
null
null
src/shared/lib/fetch/get.js
chunder/coronadatascraper
a384dd704ea5e933b6d6c1dd093151472d39541e
[ "BSD-2-Clause" ]
null
null
null
/* eslint-disable import/prefer-default-export */ import needle from 'needle'; import * as caching from './caching.js'; import datetime from '../datetime/index.js'; import log from '../log.js'; const CHROME_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'; const OPEN_TIMEOUT = 5000; const RESPONSE_TIMEOUT = 5000; const READ_TIMEOUT = 30000; // Spoof Chrome, just in case needle.defaults({ parse_response: false, user_agent: CHROME_AGENT, open_timeout: OPEN_TIMEOUT, // Maximum time to wait to establish a connection response_timeout: RESPONSE_TIMEOUT, // Maximum time to wait for a response read_timeout: READ_TIMEOUT // Maximum time to wait for data to transfer }); /** * Fetch whatever is at the provided URL. Use cached version if available. * @param {*} url URL of the resource * @param {*} type type of the resource * @param {*} date the date associated with this resource, or false if a timeseries data * @param {*} options customizable options: * - alwaysRun: fetches from URL even if resource is in cache, defaults to false * - disableSSL: disables SSL verification for this resource, should be avoided * - toString: returns data as a string instead of buffer, defaults to true * - encoding: encoding to use when retrieving files from cache, defaults to utf8 */ export const get = async (url, type, date = datetime.old.scrapeDate() || datetime.old.getYYYYMD(), options = {}) => { const { alwaysRun, disableSSL, toString, encoding, cookies, headers } = { alwaysRun: false, disableSSL: false, toString: true, encoding: 'utf8', cookies: undefined, headers: undefined, ...options }; const cachedBody = await caching.getCachedFile(url, type, date, encoding); if (cachedBody === caching.CACHE_MISS || alwaysRun) { log(' 🚦 Loading data for %s from server', url); if (disableSSL) { log(' ⚠️ SSL disabled for this resource'); process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; } // Allow a second chance if we encounter a recoverable error let tries = 0; while (tries < 5) { tries++; if (tries > 1) { // sleep a moment before retrying log(` ⚠️ Retrying (${tries})...`); await new Promise(r => setTimeout(r, 2000)); } // TODO @AWS: if AWS infra get from endpoint instead of needle let errorMsg = ''; const response = await needle('get', url, { cookies, headers }).catch(err => { // Errors we get here have the tendency of crashing the whole crawler // with no ability for us to catch them. Let's hear what these errors have to say, // and throw an error later down that won't bring the whole process down. errorMsg = err.toString(); }); if (disableSSL) { delete process.env.NODE_TLS_REJECT_UNAUTHORIZED; } // try again if we got an error if (errorMsg) { log.error(` ❌ Got ${errorMsg} trying to fetch ${url}`); continue; } // try again if we got an error code which might be recoverable if (response.statusCode >= 500) { log.error(` ❌ Got error ${response.statusCode} trying to fetch ${url}`); continue; } const contentLength = parseInt(response.headers['content-length'], 10); if (!Number.isNaN(contentLength) && contentLength !== response.bytes) { log.error(` ❌ Got ${response.bytes} but expecting ${contentLength} fetching ${url}`); continue; } // any sort of success code -- return good data if (response.statusCode < 400) { const fetchedBody = toString ? response.body.toString() : response.body; await caching.saveFileToCache(url, type, date, fetchedBody); return fetchedBody; } // 400-499 means "not found" and a retry probably won't help -- return null log.error(` ❌ Got error ${response.statusCode} trying to fetch ${url}`); return null; } log.error(` ❌ Failed to fetch ${url} after ${tries} tries`); return null; } return cachedBody; };
36.086957
126
0.652048
52fd7440e0a04d2ebddc47cca14ad54761aac80a
803
js
JavaScript
tests/webidl-parser/well-known.js
jyasskin/reffy
3c48dd225ebfc1bc45f2b05b852584e67b2edb98
[ "MIT" ]
22
2020-12-04T22:55:45.000Z
2022-03-17T13:26:06.000Z
tests/webidl-parser/well-known.js
jyasskin/reffy
3c48dd225ebfc1bc45f2b05b852584e67b2edb98
[ "MIT" ]
253
2016-06-27T14:20:52.000Z
2020-11-20T22:06:39.000Z
tests/webidl-parser/well-known.js
jyasskin/reffy
3c48dd225ebfc1bc45f2b05b852584e67b2edb98
[ "MIT" ]
10
2017-07-13T13:00:13.000Z
2020-10-09T11:55:22.000Z
const { expect } = require('chai'); describe('When it parses well-known types, the WebIDL parser', () => { const parse = require('../../src/cli/parse-webidl').parse; const someWellKnownTypes = ['undefined', 'boolean', 'DOMString', 'long long']; someWellKnownTypes.forEach(type => { it(`does not list \`${type}\` as a dependency`, async () => { const data = await parse(` interface test { ${type} doNothing(); }; `); expect(data).to.be.an('object').with.property('dependencies'); expect(data.dependencies).to.have.property('test'); expect(data.dependencies.test).to.have.length(0); expect(data).to.be.an('object').with.property('externalDependencies'); expect(data.externalDependencies).to.have.length(0); }); }); });
36.5
80
0.618929
52fe0fbf07afbaa77a99c2026db88cdf9ac0f36b
3,409
js
JavaScript
401-challenges/code-07/linked_list.js
MohammadAltamimi98/data-structures-and-algorithms
faa12f86dc24d5b2206a4a8da173c771c1433292
[ "MIT" ]
null
null
null
401-challenges/code-07/linked_list.js
MohammadAltamimi98/data-structures-and-algorithms
faa12f86dc24d5b2206a4a8da173c771c1433292
[ "MIT" ]
null
null
null
401-challenges/code-07/linked_list.js
MohammadAltamimi98/data-structures-and-algorithms
faa12f86dc24d5b2206a4a8da173c771c1433292
[ "MIT" ]
null
null
null
'use strict'; class Node { constructor(value, next = null) { this.value = value; this.next = next; } } class LinkedList { constructor() { this.head = null; this.size = 0; } insert(value) { if (!value) { throw new Error('NO THING'); } this.head = new Node(value, this.head); this.size = this.size + 1; } includes(value) { let current = this.head; if (!value) { throw new Error('Improper value passed as argument'); } if (!current) { throw new Error('Linked List invalid'); } while (current) { if (current.value === value) { return true; } current = current.next; } return false; } toString() { let current = this.head; if (!current) { throw new Error('Linked List invalid'); } let finalStr = ''; while (current) { finalStr += `{ ${current.value} } -> `; current = current.next; } return finalStr += 'NULL'; } append(value) { let current = this.head; if (!current) { this.head = new Node(value); this.size = this.size + 1; } else { while (current.next) { current = current.next; } current.next = new Node(value); this.size = this.size + 1; } } insertBefore(value, targetValue) { let current = this.head; if (current.value === targetValue) { this.insert(value); } else { while (current.next.value !== targetValue) { current = current.next; } let temp = new Node(value); temp.next = current.next; current.next = temp; this.size = this.size + 1; } } insertAfter(value, targetValue) { let current = this.head; while (current.value !== targetValue) { current = current.next; } let temp = new Node(value); temp.next = current.next; current.next = temp; this.size = this.size + 1; } kthFromEnd(k) { let currentNode = this.head; let count = this.size - 1; while (currentNode) { if (k === count) { return currentNode.value; } count--; currentNode = currentNode.next; } return 'Exception'; } } let linkedlistm = new LinkedList; linkedlistm.insert(1); linkedlistm.append(2); linkedlistm.append(3); console.log(linkedlistm); let linkedlisto = new LinkedList; linkedlisto.insert(4); linkedlisto.append(5); function zip(linkedlist1, linkedlist2) { console.log('hooohoo', linkedlist1); console.log('heeheee', linkedlist2); let current = linkedlist1.head; let current2 = linkedlist2.head; let arr = []; let llf = new LinkedList; let count1 = (linkedlist1.size); let count2 = (linkedlist2.size); let count; if (count1 < count2) { count = count2; } else { count = count1; } while (count) { count--; if (count1 > count2 && current2 === null) { arr.push(current.value); current = current.next; } else if (count2 > count1 && current === null) { arr.push(current2.value); current2 = current2.next; console.log('d'); } else { arr.push(current.value); current = current.next; arr.push(current2.value); current2 = current2.next; } } arr.map((ele, idx) => { llf.append(ele); }); return llf; } zip(linkedlistm, linkedlisto); module.exports = { ll: LinkedList, node: Node, zip };
19.369318
59
0.573775
52ffbfbc85c1294b8476e4784f6c4b7f4eede38e
1,737
js
JavaScript
src/components/QuestionBox/QuestionBox.js
VenomFate-619/OneEducationalWebsiteForAll
d405caa2be796c106a9cf18e63cd9300b4e0c169
[ "MIT" ]
70
2021-06-28T09:38:29.000Z
2022-02-25T04:41:49.000Z
src/components/QuestionBox/QuestionBox.js
VenomFate-619/OneEducationalWebsiteForAll
d405caa2be796c106a9cf18e63cd9300b4e0c169
[ "MIT" ]
130
2021-06-28T09:39:28.000Z
2021-12-13T02:44:05.000Z
src/components/QuestionBox/QuestionBox.js
VenomFate-619/OneEducationalWebsiteForAll
d405caa2be796c106a9cf18e63cd9300b4e0c169
[ "MIT" ]
85
2021-06-28T09:41:10.000Z
2022-03-16T03:35:06.000Z
import React, { useState } from "react"; import Timer from './../Timer/Timer.js' import "./QuestionBox.css"; class ListItem extends React.Component { onClickAnswer = () => { this.props.answerCallback(this.props.index); }; render() { return ( <li onClick={(event) => { event.target.style.backgroundColor = "red"; event.target.style.color = "white"; setTimeout(() => { event.target.style.backgroundColor = "transparent"; event.target.style.color = "#222"; this.onClickAnswer(); }, 250); }} > {this.props.answerItem} </li> ); } } const QuestionBox = (props) => { return ( <div className="quizbox__container"> <div className="quizbox__head--container"> <h1 className="quizbox__head">ReactJS Quiz</h1> <Timer time={props.time} /> </div> <div className="quizbox__main"> <h1> {props.questionIndex}. {props.questionDatum.prompt} </h1> <ul> {props.answers.map(function (answer, index) { return ( <ListItem answerItem={answer} answerCallback={props.answerCallback} index={index} /> ); }, this)} </ul> <div className="quizbox__progress"> <div> <h1>Attempted</h1> <p className="quizbox__progress--score">{props.attempted}</p> </div> <div> <h1>Not Attempted</h1> <p className="quizbox__progress--score">{props.notattempted}</p> </div> </div> </div> </div> ); }; export default QuestionBox;
26.318182
76
0.516408
52ffc36b529dd0a5b06aba08ed0247caef4ace05
596
js
JavaScript
start/socket.js
gomberg5264/GrunnaIDE
aeb62ee5e02abb0c6165db87bfbad8c338bbffec
[ "MIT" ]
2
2020-06-11T13:12:13.000Z
2021-08-09T14:10:42.000Z
start/socket.js
gomberg5264/GrunnaIDE
aeb62ee5e02abb0c6165db87bfbad8c338bbffec
[ "MIT" ]
23
2020-05-11T19:46:03.000Z
2020-08-13T19:33:41.000Z
start/socket.js
gomberg5264/GrunnaIDE
aeb62ee5e02abb0c6165db87bfbad8c338bbffec
[ "MIT" ]
3
2020-11-21T15:09:19.000Z
2021-11-21T11:22:12.000Z
'use strict' /* |-------------------------------------------------------------------------- | Websocket |-------------------------------------------------------------------------- | | This file is used to register websocket channels and start the Ws server. | Learn more about same in the official documentation. | https://adonisjs.com/docs/websocket | | For middleware, do check `wsKernel.js` file. | */ const Ws = use('Ws') Ws.channel('docker', 'DockerController').middleware(['auth']) /* Ws.channel('chat', ({ socket }) => { console.log('user joined with %s socket id', socket.id) }) */
25.913043
75
0.506711
52ffe9efb8865b4eb44207e123dc69f7904ec2f6
173,601
js
JavaScript
geodata/region/mexico/verLow.js
AnnieMT/travel-2019-map
7ee51971e5aba8f2d55bab1fcaf460df1caffa0e
[ "Apache-2.0" ]
null
null
null
geodata/region/mexico/verLow.js
AnnieMT/travel-2019-map
7ee51971e5aba8f2d55bab1fcaf460df1caffa0e
[ "Apache-2.0" ]
null
null
null
geodata/region/mexico/verLow.js
AnnieMT/travel-2019-map
7ee51971e5aba8f2d55bab1fcaf460df1caffa0e
[ "Apache-2.0" ]
null
null
null
/** * @license * Copyright (c) 2018 amCharts (Antanas Marcelionis, Martynas Majeris) * * This sofware is provided under multiple licenses. Please see below for * links to appropriate usage. * * Free amCharts linkware license. Details and conditions: * https://github.com/amcharts/amcharts4/blob/master/LICENSE * * One of the amCharts commercial licenses. Details and pricing: * https://www.amcharts.com/online-store/ * https://www.amcharts.com/online-store/licenses-explained/ * * If in doubt, contact amCharts at contact@amcharts.com * * PLEASE DO NOT REMOVE THIS COPYRIGHT NOTICE. * @hidden */ am4internal_webpackJsonp(["f4ea"],{b4GP:function(e,o,a){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var r={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.3874,21.5365],[-97.3472,21.5549],[-97.3302,21.5584],[-97.3294,21.521],[-97.3542,21.4477],[-97.3785,21.3934],[-97.3957,21.3678],[-97.4112,21.3363],[-97.4204,21.2939],[-97.4202,21.2309],[-97.4122,21.2007],[-97.3918,21.1483],[-97.365,21.0976],[-97.3847,21.1208],[-97.4,21.1257],[-97.409,21.1148],[-97.4343,21.1175],[-97.4512,21.1366],[-97.4862,21.1375],[-97.4954,21.1272],[-97.5291,21.1206],[-97.538,21.1236],[-97.5566,21.1054],[-97.5726,21.1078],[-97.5882,21.124],[-97.5938,21.1386],[-97.63,21.1589],[-97.637,21.1837],[-97.6718,21.1884],[-97.6852,21.1987],[-97.7054,21.1915],[-97.713,21.2039],[-97.695,21.2237],[-97.705,21.2322],[-97.6966,21.2535],[-97.6636,21.2642],[-97.6596,21.28],[-97.6538,21.2878],[-97.6268,21.2828],[-97.5984,21.2922],[-97.5888,21.3096],[-97.5855,21.3517],[-97.5587,21.3745],[-97.5601,21.3838],[-97.5539,21.3974],[-97.5284,21.4189],[-97.5199,21.4589],[-97.5131,21.467],[-97.5196,21.5006],[-97.5305,21.5809],[-97.4887,21.5767],[-97.4881,21.5687],[-97.3874,21.5365]]]},properties:{id:"30151",COUNTYID:"151",COUNTY:"Tamiahua",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30151"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.1183,19.1717],[-96.1315,19.1652],[-96.1294,19.1462],[-96.1416,19.1376],[-96.1497,19.1095],[-96.1904,19.1027],[-96.2108,19.1242],[-96.2221,19.1192],[-96.244,19.1449],[-96.2636,19.1333],[-96.2929,19.1542],[-96.3138,19.1606],[-96.3061,19.1857],[-96.3197,19.1987],[-96.3323,19.1988],[-96.3271,19.217],[-96.3395,19.2311],[-96.3394,19.2419],[-96.3096,19.2349],[-96.2911,19.2435],[-96.2868,19.2599],[-96.2732,19.2648],[-96.2414,19.2255],[-96.2267,19.2209],[-96.2216,19.2654],[-96.1818,19.2504],[-96.1693,19.2219],[-96.1591,19.2169],[-96.1327,19.218],[-96.1355,19.2016],[-96.1234,19.1946],[-96.1183,19.1717]]]},properties:{id:"30193",COUNTYID:"193",COUNTY:"Veracruz",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30193"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0696,18.7032],[-97.0556,18.6852],[-97.064,18.6639],[-97.0847,18.6412],[-97.1094,18.6554],[-97.1342,18.6481],[-97.1433,18.6665],[-97.1589,18.6642],[-97.1784,18.6598],[-97.1854,18.6678],[-97.1663,18.6868],[-97.1471,18.673],[-97.1359,18.6839],[-97.1374,18.7166],[-97.1322,18.7303],[-97.1212,18.7015],[-97.0864,18.7083],[-97.0696,18.7032]]]},properties:{id:"30020",COUNTYID:"020",COUNTY:"Atlahuilco",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30020"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9913,18.9791],[-97.0036,18.9529],[-96.9587,18.9083],[-96.9809,18.9029],[-96.9816,18.8829],[-96.97,18.8467],[-96.9566,18.8383],[-96.9568,18.8257],[-96.9342,18.8165],[-96.9264,18.8022],[-96.9491,18.804],[-96.9716,18.8254],[-96.9835,18.8422],[-96.9866,18.8643],[-97.0043,18.8685],[-97.0129,18.8943],[-97.0098,18.9153],[-97.0219,18.9321],[-97.0329,18.9638],[-97.0124,18.9869],[-96.9913,18.9791]]]},properties:{id:"30068",COUNTYID:"068",COUNTY:"Fortín",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30068"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.2216,19.2654],[-96.2267,19.2209],[-96.2414,19.2255],[-96.2732,19.2648],[-96.2868,19.2599],[-96.2911,19.2435],[-96.3096,19.2349],[-96.3394,19.2419],[-96.34,19.2489],[-96.325,19.2963],[-96.3458,19.3148],[-96.3529,19.3291],[-96.3494,19.3412],[-96.3739,19.3583],[-96.3848,19.3606],[-96.3732,19.3806],[-96.3771,19.4007],[-96.3321,19.3959],[-96.3217,19.4143],[-96.3066,19.3716],[-96.3112,19.3597],[-96.3023,19.3336],[-96.2918,19.3183],[-96.257,19.2858],[-96.2216,19.2654]]]},properties:{id:"30016",COUNTYID:"016",COUNTY:"La Antigua",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30016"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0219,18.9321],[-97.0098,18.9153],[-97.0129,18.8943],[-97.0043,18.8685],[-96.9866,18.8643],[-96.9835,18.8422],[-96.9716,18.8254],[-96.9748,18.7988],[-96.9876,18.7941],[-96.9839,18.7791],[-96.9959,18.7699],[-97.0221,18.7626],[-97.0412,18.7898],[-97.0466,18.7986],[-97.0628,18.8271],[-97.0871,18.8329],[-97.0702,18.8507],[-97.0844,18.8805],[-97.0659,18.8907],[-97.0619,18.9],[-97.0663,18.9228],[-97.0593,18.9459],[-97.0448,18.9453],[-97.0219,18.9321]]]},properties:{id:"30085",COUNTYID:"085",COUNTY:"Ixtaczoquitlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30085"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.9197,18.2468],[-95.9111,18.2406],[-95.9116,18.2219],[-95.8938,18.2236],[-95.8789,18.1978],[-95.89,18.1884],[-95.9108,18.1849],[-95.9122,18.1534],[-95.8955,18.1465],[-95.9027,18.1357],[-95.9221,18.1508],[-95.9525,18.1598],[-95.9813,18.1442],[-95.9906,18.1512],[-95.9928,18.1596],[-96.0158,18.1677],[-96.007,18.1848],[-95.9825,18.1893],[-95.9988,18.2069],[-95.9887,18.2245],[-95.9687,18.2369],[-95.9561,18.235],[-95.9502,18.2513],[-95.9197,18.2468]]]},properties:{id:"30176",COUNTYID:"176",COUNTY:"Tlacojalpan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30176"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.8931,18.6224],[-95.9011,18.5944],[-95.8976,18.577],[-95.9105,18.5653],[-95.9369,18.5674],[-95.9408,18.554],[-95.9593,18.5246],[-95.9768,18.5177],[-96.0121,18.5367],[-96.0048,18.5536],[-96.0144,18.5674],[-96.0278,18.5697],[-96.036,18.5954],[-96.0297,18.6166],[-96.0409,18.6307],[-96.0427,18.646],[-96.0573,18.6556],[-96.0364,18.6896],[-96.044,18.7294],[-96.0367,18.7384],[-96.0193,18.7383],[-96.0281,18.7641],[-96,18.7538],[-95.9957,18.7761],[-95.9767,18.7931],[-95.9366,18.7941],[-95.9115,18.7779],[-95.9072,18.7534],[-95.8784,18.7486],[-95.871,18.7268],[-95.8824,18.721],[-95.8931,18.6224]]]},properties:{id:"30075",COUNTYID:"075",COUNTY:"Ignacio de la Llave",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30075"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.1059,19.5215],[-97.0717,19.5095],[-97.0568,19.4967],[-97.0431,19.4759],[-97.0274,19.468],[-96.999,19.4623],[-96.9983,19.4497],[-96.9645,19.4267],[-96.95,19.4225],[-96.9224,19.3931],[-96.8954,19.3756],[-96.9064,19.3743],[-96.9378,19.3924],[-96.9884,19.4035],[-97.0116,19.3933],[-97.0306,19.3916],[-97.0574,19.3949],[-97.0821,19.4156],[-97.0983,19.4227],[-97.1345,19.4227],[-97.1478,19.4478],[-97.1438,19.4588],[-97.1498,19.488],[-97.1385,19.5082],[-97.1229,19.5192],[-97.1059,19.5215]]]},properties:{id:"30092",COUNTYID:"092",COUNTY:"Xico",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30092"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.73,19.719],[-96.7174,19.7067],[-96.7277,19.6736],[-96.7445,19.6632],[-96.7438,19.6456],[-96.7515,19.632],[-96.7487,19.6181],[-96.7598,19.6116],[-96.7966,19.5929],[-96.8092,19.6125],[-96.7954,19.6216],[-96.7979,19.6449],[-96.8163,19.6542],[-96.831,19.6729],[-96.8136,19.6989],[-96.7963,19.6995],[-96.792,19.7133],[-96.7699,19.7354],[-96.7506,19.7265],[-96.7413,19.709],[-96.73,19.719]]]},properties:{id:"30166",COUNTYID:"166",COUNTY:"Tepetlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30166"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.0902,17.9683],[-94.118,17.9678],[-94.1334,17.9787],[-94.1548,17.9839],[-94.1761,17.9787],[-94.1803,17.9892],[-94.1973,17.9897],[-94.2203,18.0034],[-94.2174,18.0398],[-94.2352,18.0501],[-94.2721,18.0494],[-94.2818,18.0619],[-94.2574,18.0698],[-94.2402,18.0869],[-94.2414,18.118],[-94.2235,18.1358],[-94.2404,18.1751],[-94.2401,18.188],[-94.13,18.2129],[-94.1292,18.1751],[-94.1173,18.1661],[-94.1029,18.1734],[-94.0941,18.1585],[-94.1011,18.1306],[-94.0961,18.1119],[-94.0834,18.1024],[-94.0831,18.0908],[-94.0972,18.0786],[-94.0744,18.0589],[-94.0836,18.0339],[-94.0642,18.0023],[-94.0711,17.9859],[-94.0902,17.9683]]]},properties:{id:"30204",COUNTYID:"204",COUNTY:"Agua Dulce",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30204"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.7782,18.4668],[-95.7693,18.4389],[-95.7801,18.4179],[-95.7786,18.3999],[-95.787,18.3844],[-95.7993,18.3823],[-95.818,18.392],[-95.8281,18.3793],[-95.8589,18.372],[-95.8964,18.3787],[-95.8883,18.4017],[-95.9062,18.4008],[-95.9036,18.4257],[-95.93,18.432],[-95.9328,18.4173],[-95.9851,18.4269],[-95.999,18.4328],[-95.9991,18.4579],[-95.9913,18.478],[-96.0124,18.4894],[-95.9864,18.5062],[-95.9768,18.5177],[-95.9593,18.5246],[-95.9408,18.554],[-95.9369,18.5674],[-95.9105,18.5653],[-95.8976,18.577],[-95.9011,18.5944],[-95.8931,18.6224],[-95.8787,18.6295],[-95.8921,18.6113],[-95.8767,18.5945],[-95.8803,18.5801],[-95.8498,18.5655],[-95.8266,18.5395],[-95.8334,18.5037],[-95.8435,18.489],[-95.7995,18.468],[-95.7782,18.4668]]]},properties:{id:"30084",COUNTYID:"084",COUNTY:"Ixmatlahuacan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30084"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.5146,20.17],[-97.5707,20.1683],[-97.605,20.1578],[-97.622,20.1744],[-97.6029,20.1947],[-97.5794,20.1978],[-97.5685,20.2059],[-97.5696,20.2205],[-97.5576,20.2372],[-97.5751,20.2434],[-97.5819,20.2669],[-97.558,20.2671],[-97.5434,20.2734],[-97.5299,20.2653],[-97.5036,20.2674],[-97.4828,20.2592],[-97.4872,20.2458],[-97.5167,20.2417],[-97.5174,20.2319],[-97.5387,20.2139],[-97.531,20.1998],[-97.5059,20.2055],[-97.5146,20.17]]]},properties:{id:"30050",COUNTYID:"050",COUNTY:"Coxquihui",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30050"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-98.313,21.6894],[-98.3257,21.6719],[-98.3667,21.6675],[-98.374,21.6618],[-98.4185,21.657],[-98.448,21.6778],[-98.481,21.67],[-98.4894,21.6586],[-98.5149,21.6478],[-98.5365,21.6463],[-98.5508,21.6915],[-98.5583,21.6877],[-98.5579,21.7009],[-98.5711,21.7137],[-98.5429,21.7228],[-98.5329,21.6976],[-98.5127,21.7266],[-98.476,21.7466],[-98.4807,21.7592],[-98.4547,21.7667],[-98.4617,21.7901],[-98.4739,21.7995],[-98.4775,21.8153],[-98.4935,21.8162],[-98.4882,21.8376],[-98.4847,21.8557],[-98.4709,21.8524],[-98.4383,21.8875],[-98.4096,21.878],[-98.4059,21.842],[-98.3907,21.8195],[-98.3054,21.8251],[-98.3173,21.7487],[-98.3217,21.7082],[-98.313,21.6894]]]},properties:{id:"30205",COUNTYID:"205",COUNTY:"El Higo",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30205"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9941,19.785],[-96.9743,19.7848],[-96.9565,19.7634],[-96.9323,19.7552],[-96.9489,19.7435],[-96.9648,19.7456],[-96.9596,19.7224],[-96.9798,19.7141],[-96.9725,19.6892],[-96.9685,19.6437],[-96.9875,19.6207],[-97.0025,19.617],[-97.0343,19.6256],[-97.0258,19.6396],[-97.0365,19.6556],[-97.0641,19.6563],[-97.0569,19.6705],[-97.0683,19.685],[-97.0659,19.6938],[-97.0442,19.706],[-97.0309,19.7192],[-97.0342,19.7345],[-97.0259,19.78],[-97.0181,19.7874],[-97,19.7756],[-96.9941,19.785]]]},properties:{id:"30177",COUNTYID:"177",COUNTY:"Tlacolulan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30177"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.6724,20.2436],[-97.7008,20.2193],[-97.686,20.2037],[-97.6847,20.1923],[-97.6678,20.1817],[-97.6354,20.1825],[-97.6456,20.1687],[-97.6896,20.1668],[-97.6987,20.1824],[-97.7202,20.1892],[-97.7315,20.1813],[-97.7414,20.1931],[-97.7308,20.2048],[-97.7365,20.2441],[-97.7261,20.2463],[-97.7052,20.2275],[-97.698,20.2427],[-97.6797,20.2629],[-97.6724,20.2436]]]},properties:{id:"30067",COUNTYID:"067",COUNTY:"Filomeno Mata",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30067"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.6851,19.1932],[-96.7076,19.1797],[-96.7173,19.1679],[-96.7464,19.168],[-96.7596,19.1616],[-96.7794,19.1642],[-96.819,19.1604],[-96.8604,19.1756],[-96.8479,19.2011],[-96.8189,19.2028],[-96.7868,19.2035],[-96.7545,19.1969],[-96.7389,19.2042],[-96.6961,19.2016],[-96.6851,19.1932]]]},properties:{id:"30179",COUNTYID:"179",COUNTY:"Tlacotepec de Mejía",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30179"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8149,19.0089],[-96.8143,18.9987],[-96.7942,18.995],[-96.7786,18.9521],[-96.7682,18.9365],[-96.7509,18.8987],[-96.7451,18.8982],[-96.7331,18.8678],[-96.7117,18.8485],[-96.7352,18.8399],[-96.7477,18.8457],[-96.7615,18.8513],[-96.7809,18.8738],[-96.8248,18.8822],[-96.8239,18.9015],[-96.8364,18.9251],[-96.8294,18.9374],[-96.8537,18.9606],[-96.8675,19.0018],[-96.858,19.0108],[-96.8472,19.004],[-96.8149,19.0089]]]},properties:{id:"30021",COUNTYID:"021",COUNTY:"Atoyac",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30021"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8954,19.3756],[-96.8885,19.3825],[-96.848,19.3776],[-96.8435,19.3714],[-96.8822,19.3444],[-96.8949,19.3442],[-96.9169,19.352],[-96.9442,19.3686],[-96.9715,19.3559],[-97.0152,19.3589],[-97.0028,19.3771],[-97.0278,19.3857],[-97.0306,19.3916],[-97.0116,19.3933],[-96.9884,19.4035],[-96.9378,19.3924],[-96.9064,19.3743],[-96.8954,19.3756]]]},properties:{id:"30164",COUNTYID:"164",COUNTY:"Teocelo",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30164"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9043,18.7861],[-96.9153,18.761],[-96.9375,18.7551],[-96.937,18.7816],[-96.9242,18.7949],[-96.9043,18.7861]]]},properties:{id:"30041",COUNTYID:"041",COUNTY:"Coetzala",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30041"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8897,19.0911],[-96.8946,19.0646],[-96.8746,19.0453],[-96.8824,19.0397],[-96.8797,19.0191],[-96.858,19.0108],[-96.8675,19.0018],[-96.8537,18.9606],[-96.8733,18.9573],[-96.8998,18.9644],[-96.9131,19.0062],[-96.9392,19.0105],[-96.9643,19.0087],[-96.9754,19.0324],[-96.9863,19.0212],[-97.0002,19.0283],[-97.006,19.0513],[-97.0179,19.0701],[-96.9997,19.0861],[-96.9824,19.096],[-96.9717,19.0858],[-96.9238,19.0855],[-96.9036,19.095],[-96.8897,19.0911]]]},properties:{id:"30080",COUNTYID:"080",COUNTY:"Ixhuatlán del Café",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30080"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.3394,19.2419],[-96.3395,19.2311],[-96.3271,19.217],[-96.3323,19.1988],[-96.3642,19.191],[-96.405,19.186],[-96.4209,19.1894],[-96.4445,19.1863],[-96.4679,19.1779],[-96.4788,19.1814],[-96.4971,19.1668],[-96.5003,19.1507],[-96.5159,19.1569],[-96.546,19.1599],[-96.5698,19.1717],[-96.5911,19.1748],[-96.6242,19.2039],[-96.5922,19.2323],[-96.5884,19.2295],[-96.5426,19.2499],[-96.539,19.2577],[-96.502,19.2848],[-96.4943,19.2854],[-96.4678,19.315],[-96.4526,19.3182],[-96.4396,19.3316],[-96.4253,19.3351],[-96.4223,19.3516],[-96.4122,19.355],[-96.3931,19.3478],[-96.3848,19.3606],[-96.3739,19.3583],[-96.3494,19.3412],[-96.3529,19.3291],[-96.3458,19.3148],[-96.325,19.2963],[-96.34,19.2489],[-96.3394,19.2419]]]},properties:{id:"30126",COUNTYID:"126",COUNTY:"Paso de Ovejas",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30126"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.9919,18.1274],[-94.9895,18.1064],[-94.9437,18.1375],[-94.923,18.1346],[-94.9184,18.1187],[-94.8841,18.1071],[-94.8855,18.0976],[-94.8743,18.0654],[-94.8598,18.0526],[-94.8712,18.0314],[-94.8495,17.9985],[-94.8716,17.9871],[-94.8845,17.9951],[-94.8972,17.988],[-94.9066,17.9594],[-94.8905,17.9525],[-94.9303,17.9214],[-94.9548,17.9285],[-94.9825,17.9077],[-94.9862,17.9258],[-95.0075,17.9299],[-95.0101,17.9643],[-95.0455,17.9599],[-95.0583,17.9743],[-95.097,17.9728],[-95.0967,17.9572],[-95.1189,17.959],[-95.1454,17.9435],[-95.1648,17.9549],[-95.1664,17.9777],[-95.1959,17.9854],[-95.2077,18.0194],[-95.1972,18.0343],[-95.2223,18.0507],[-95.2414,18.0519],[-95.227,18.0853],[-95.2493,18.1047],[-95.2599,18.1235],[-95.2027,18.0796],[-95.1828,18.0744],[-95.1599,18.0767],[-95.1597,18.0891],[-95.1388,18.1086],[-95.1205,18.1334],[-95.1028,18.1276],[-95.0869,18.1424],[-95.0596,18.1325],[-95.0418,18.1153],[-95.0206,18.1216],[-95.0165,18.14],[-94.9978,18.1385],[-94.9919,18.1274]]]},properties:{id:"30003",COUNTYID:"003",COUNTY:"Acayucan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30003"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-94.7891,18.5077],[-94.808,18.4902],[-94.8432,18.4732],[-94.8493,18.4581],[-94.864,18.4523],[-94.8857,18.4541],[-94.9059,18.4495],[-94.9124,18.4829],[-94.907,18.5209],[-94.8991,18.5487],[-94.835,18.5433],[-94.8166,18.5386],[-94.8,18.5253],[-94.7891,18.5077]]],[[[-94.7263,18.2419],[-94.7084,18.221],[-94.723,18.2145],[-94.7177,18.2026],[-94.7318,18.193],[-94.7502,18.1913],[-94.7459,18.1785],[-94.7594,18.1713],[-94.7534,18.1566],[-94.7654,18.1454],[-94.7588,18.1326],[-94.74,18.1186],[-94.7365,18.1019],[-94.7441,18.0833],[-94.7596,18.0854],[-94.8002,18.082],[-94.8042,18.0865],[-94.8425,18.086],[-94.8526,18.1016],[-94.8365,18.1145],[-94.8187,18.1171],[-94.8154,18.1292],[-94.7962,18.1266],[-94.7973,18.1552],[-94.8435,18.1604],[-94.8592,18.2427],[-94.8511,18.2595],[-94.8268,18.2622],[-94.8227,18.2836],[-94.8349,18.3071],[-94.8351,18.3242],[-94.8268,18.3109],[-94.795,18.2883],[-94.813,18.2751],[-94.8044,18.2604],[-94.7883,18.2605],[-94.7869,18.2768],[-94.7704,18.2736],[-94.7669,18.2635],[-94.7813,18.2386],[-94.7765,18.2323],[-94.7838,18.1901],[-94.7679,18.1904],[-94.7675,18.2186],[-94.761,18.2338],[-94.7263,18.2419]]]]},properties:{id:"30104",COUNTYID:"104",COUNTY:"Mecayapan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30104"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-98.3435,20.7979],[-98.3643,20.785],[-98.3981,20.7798],[-98.3935,20.7552],[-98.4255,20.7489],[-98.4665,20.7103],[-98.4972,20.6999],[-98.5251,20.6818],[-98.5361,20.6634],[-98.5502,20.6894],[-98.5291,20.704],[-98.5322,20.7154],[-98.5128,20.7332],[-98.4756,20.7392],[-98.456,20.7556],[-98.4643,20.7719],[-98.4496,20.8061],[-98.4437,20.8343],[-98.4306,20.8477],[-98.3982,20.8587],[-98.3819,20.8535],[-98.3649,20.8634],[-98.3518,20.8488],[-98.3529,20.836],[-98.3272,20.828],[-98.3148,20.8098],[-98.3435,20.7979]]]},properties:{id:"30076",COUNTYID:"076",COUNTY:"Ilamatlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30076"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.404,20.4877],[-97.4484,20.4912],[-97.4881,20.5075],[-97.4783,20.5265],[-97.4822,20.5379],[-97.4548,20.5532],[-97.441,20.5763],[-97.4388,20.5901],[-97.4202,20.5796],[-97.4107,20.5537],[-97.4,20.5034],[-97.404,20.4877]]]},properties:{id:"30131",COUNTYID:"131",COUNTY:"Poza Rica de Hidalgo",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30131"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.8292,21.2233],[-97.8442,21.1968],[-97.8327,21.1802],[-97.8074,21.1852],[-97.7801,21.1648],[-97.7769,21.1452],[-97.7552,21.1394],[-97.7577,21.1249],[-97.7503,21.0945],[-97.7655,21.0913],[-97.8012,21.1042],[-97.8167,21.1235],[-97.8323,21.1175],[-97.8222,21.1041],[-97.8514,21.0865],[-97.8578,21.0705],[-97.8747,21.0648],[-97.8938,21.0744],[-97.9039,21.0961],[-97.9237,21.1066],[-97.938,21.1041],[-97.9505,21.1153],[-97.941,21.1504],[-97.9416,21.1668],[-97.9639,21.1809],[-97.9612,21.1864],[-97.9366,21.1997],[-97.9153,21.1979],[-97.8876,21.2318],[-97.8709,21.2381],[-97.8575,21.2241],[-97.8292,21.2233]]]},properties:{id:"30167",COUNTYID:"167",COUNTY:"Tepetzintla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30167"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8377,18.7859],[-96.8288,18.776],[-96.7985,18.7756],[-96.7774,18.7686],[-96.7263,18.7442],[-96.7323,18.7396],[-96.7803,18.7508],[-96.7994,18.7506],[-96.8228,18.7629],[-96.846,18.7661],[-96.8538,18.7583],[-96.87,18.7626],[-96.8769,18.7732],[-96.9043,18.7861],[-96.8887,18.8008],[-96.8686,18.7834],[-96.8377,18.7859]]]},properties:{id:"30052",COUNTYID:"052",COUNTY:"Cuichapa",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30052"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.0159,18.3879],[-96.0331,18.3825],[-96.0363,18.3651],[-96.0496,18.3658],[-96.0901,18.3268],[-96.0835,18.3141],[-96.0698,18.3142],[-96.0566,18.3018],[-96.0698,18.2877],[-96.0713,18.27],[-96.0609,18.2613],[-96.0621,18.2397],[-96.0782,18.2325],[-96.0698,18.2197],[-96.0782,18.1998],[-96.1384,18.1848],[-96.1459,18.1919],[-96.1714,18.1864],[-96.2031,18.1749],[-96.2175,18.162],[-96.231,18.1897],[-96.2683,18.2255],[-96.2668,18.2457],[-96.2867,18.2641],[-96.2737,18.2757],[-96.2775,18.2937],[-96.2944,18.3124],[-96.2993,18.363],[-96.264,18.4062],[-96.2441,18.3969],[-96.1875,18.3933],[-96.1643,18.3886],[-96.1506,18.4108],[-96.1203,18.423],[-96.1037,18.4208],[-96.0739,18.4091],[-96.0626,18.4163],[-96.0427,18.4002],[-96.0159,18.3879]]]},properties:{id:"30207",COUNTYID:"207",COUNTY:"Tres Valles",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30207"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.5972,18.1935],[-94.5634,18.1711],[-94.531,18.1585],[-94.5074,18.1533],[-94.457,18.1515],[-94.4074,18.1597],[-94.3542,18.1641],[-94.2932,18.1754],[-94.2401,18.188],[-94.2404,18.1751],[-94.2235,18.1358],[-94.2414,18.118],[-94.2402,18.0869],[-94.2574,18.0698],[-94.2694,18.0762],[-94.2859,18.0735],[-94.3108,18.0973],[-94.3232,18.0758],[-94.3374,18.065],[-94.3445,18.061],[-94.3732,18.0806],[-94.3911,18.0725],[-94.4002,18.0909],[-94.4241,18.098],[-94.437,18.096],[-94.4701,18.1119],[-94.5092,18.1011],[-94.5165,18.1292],[-94.5369,18.1419],[-94.5567,18.1363],[-94.5849,18.1216],[-94.5957,18.1264],[-94.6063,18.1549],[-94.6326,18.1591],[-94.6385,18.1795],[-94.6262,18.2113],[-94.6134,18.2097],[-94.5972,18.1935]]]},properties:{id:"30039",COUNTYID:"039",COUNTY:"Coatzacoalcos",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30039"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.2228,19.9226],[-97.252,19.8843],[-97.2469,19.8542],[-97.2553,19.8403],[-97.2391,19.826],[-97.2437,19.8066],[-97.2604,19.7891],[-97.2598,19.7758],[-97.2804,19.7568],[-97.2831,19.7315],[-97.2714,19.7169],[-97.2702,19.6977],[-97.2809,19.6861],[-97.2679,19.638],[-97.2851,19.6166],[-97.3002,19.6137],[-97.3108,19.6331],[-97.3484,19.6126],[-97.3579,19.6232],[-97.3804,19.634],[-97.3429,19.6686],[-97.3074,19.6845],[-97.3331,19.7168],[-97.3152,19.73],[-97.3197,19.7739],[-97.3131,19.7915],[-97.3156,19.8249],[-97.3082,19.8344],[-97.3086,19.8585],[-97.2949,19.8925],[-97.281,19.9123],[-97.2558,19.9325],[-97.2417,19.9376],[-97.2228,19.9226]]]},properties:{id:"30086",COUNTYID:"086",COUNTY:"Jalacingo",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30086"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.4069,19.7051],[-96.4481,19.727],[-96.5037,19.7058],[-96.5007,19.6838],[-96.5219,19.6824],[-96.5265,19.6626],[-96.5596,19.6192],[-96.6185,19.6124],[-96.6146,19.5928],[-96.6318,19.5784],[-96.6597,19.5896],[-96.6789,19.5828],[-96.6809,19.5578],[-96.6656,19.5398],[-96.6754,19.5331],[-96.6951,19.5473],[-96.7064,19.5646],[-96.7578,19.5753],[-96.75,19.6016],[-96.7598,19.6116],[-96.7487,19.6181],[-96.7515,19.632],[-96.7438,19.6456],[-96.7445,19.6632],[-96.7277,19.6736],[-96.7174,19.7067],[-96.73,19.719],[-96.7059,19.7279],[-96.6931,19.726],[-96.6756,19.7473],[-96.6486,19.7558],[-96.6468,19.7743],[-96.625,19.7844],[-96.6153,19.7813],[-96.5814,19.7919],[-96.5578,19.8284],[-96.5492,19.8364],[-96.5366,19.8661],[-96.5442,19.8751],[-96.5259,19.9049],[-96.5263,19.9248],[-96.4766,19.8716],[-96.4604,19.8612],[-96.4472,19.8444],[-96.447,19.8302],[-96.401,19.7235],[-96.4069,19.7051]]]},properties:{id:"30009",COUNTYID:"009",COUNTY:"Alto Lucero de Gutiérrez Barrios",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30009"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0871,18.8329],[-97.0628,18.8271],[-97.0466,18.7986],[-97.0641,18.788],[-97.0756,18.8079],[-97.0956,18.8122],[-97.111,18.7907],[-97.1217,18.7759],[-97.1116,18.7569],[-97.1307,18.7663],[-97.1405,18.7673],[-97.1318,18.7964],[-97.0954,18.8257],[-97.0985,18.833],[-97.0871,18.8329]]]},properties:{id:"30135",COUNTYID:"135",COUNTY:"Rafael Delgado",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30135"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.4681,18.6039],[-95.469,18.556],[-95.4822,18.5555],[-95.4961,18.5385],[-95.5031,18.4764],[-95.5268,18.4893],[-95.5342,18.4872],[-95.5441,18.5339],[-95.5733,18.5611],[-95.5668,18.5811],[-95.5802,18.5905],[-95.5818,18.605],[-95.5512,18.6214],[-95.5443,18.6084],[-95.4929,18.6113],[-95.4681,18.6039]]]},properties:{id:"30139",COUNTYID:"139",COUNTY:"Saltabarranca",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30139"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8345,19.7146],[-96.8558,19.7088],[-96.8554,19.7231],[-96.8735,19.7476],[-96.8723,19.7694],[-96.861,19.777],[-96.8409,19.7637],[-96.8431,19.7424],[-96.8345,19.7146]]]},properties:{id:"30096",COUNTYID:"096",COUNTY:"Landero y Coss",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30096"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0466,18.7986],[-97.0412,18.7898],[-97.0613,18.7739],[-97.0705,18.7774],[-97.0677,18.7874],[-97.0873,18.796],[-97.111,18.7907],[-97.0956,18.8122],[-97.0756,18.8079],[-97.0641,18.788],[-97.0466,18.7986]]]},properties:{id:"30185",COUNTYID:"185",COUNTY:"Tlilapan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30185"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0343,19.6256],[-97.041,19.6152],[-97.0907,19.5862],[-97.1004,19.5479],[-97.1284,19.5775],[-97.1255,19.5981],[-97.145,19.5997],[-97.1671,19.6159],[-97.1521,19.6216],[-97.151,19.6463],[-97.0911,19.6568],[-97.0683,19.685],[-97.0569,19.6705],[-97.0641,19.6563],[-97.0365,19.6556],[-97.0258,19.6396],[-97.0343,19.6256]]]},properties:{id:"30132",COUNTYID:"132",COUNTY:"Las Vigas de Ramírez",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30132"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.713,21.2039],[-97.7054,21.1915],[-97.7084,21.1531],[-97.7199,21.1415],[-97.7552,21.1394],[-97.7769,21.1452],[-97.7801,21.1648],[-97.8074,21.1852],[-97.8327,21.1802],[-97.8442,21.1968],[-97.8292,21.2233],[-97.8203,21.2208],[-97.8024,21.2343],[-97.7883,21.2364],[-97.7474,21.2091],[-97.713,21.2039]]]},properties:{id:"30034",COUNTYID:"034",COUNTY:"Cerro Azul",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30034"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.1957,19.6783],[-97.151,19.6463],[-97.1521,19.6216],[-97.1671,19.6159],[-97.1716,19.6323],[-97.2043,19.6142],[-97.2185,19.6337],[-97.238,19.6368],[-97.2364,19.657],[-97.2556,19.6779],[-97.2503,19.6879],[-97.2282,19.6786],[-97.2099,19.683],[-97.1957,19.6783]]]},properties:{id:"30194",COUNTYID:"194",COUNTY:"Villa Aldama",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30194"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.0985,19.1023],[-96.1137,19.0861],[-96.1172,19.0557],[-96.1432,19.0589],[-96.1394,19.095],[-96.1178,19.0921],[-96.1132,19.1071],[-96.1326,19.1179],[-96.1497,19.1095],[-96.1416,19.1376],[-96.1294,19.1462],[-96.1315,19.1652],[-96.1183,19.1717],[-96.0949,19.1548],[-96.1053,19.1259],[-96.0985,19.1023]]]},properties:{id:"30028",COUNTYID:"028",COUNTY:"Boca del Río",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30028"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.2183,18.911],[-97.2321,18.9036],[-97.2127,18.8796],[-97.2117,18.8686],[-97.2274,18.8599],[-97.2325,18.834],[-97.2229,18.808],[-97.2245,18.7917],[-97.2489,18.7855],[-97.2789,18.7726],[-97.3254,18.7665],[-97.2922,18.7864],[-97.312,18.8107],[-97.3258,18.813],[-97.3245,18.8304],[-97.3088,18.8429],[-97.2973,18.8673],[-97.2744,18.8881],[-97.2458,18.8933],[-97.2472,18.9189],[-97.2183,18.911]]]},properties:{id:"30099",COUNTYID:"099",COUNTY:"Maltrata",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30099"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0277,19.0335],[-97.0024,19.013],[-96.9894,18.9905],[-96.9913,18.9791],[-97.0124,18.9869],[-97.0329,18.9638],[-97.0401,18.9856],[-97.0607,18.9836],[-97.0713,18.9753],[-97.092,18.9838],[-97.0865,18.9967],[-97.0652,19.0027],[-97.0721,19.0227],[-97.0277,19.0335]]]},properties:{id:"30062",COUNTYID:"062",COUNTY:"Chocamán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30062"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.2635,18.9173],[-96.2741,18.9165],[-96.2869,18.944],[-96.3009,18.9434],[-96.2967,18.9621],[-96.3052,18.9741],[-96.3131,18.9938],[-96.2954,19.0076],[-96.3125,19.0284],[-96.299,19.0338],[-96.2828,19.0608],[-96.2644,19.0642],[-96.246,19.0458],[-96.1772,19.0502],[-96.1742,19.0381],[-96.1876,19.0243],[-96.1853,19.008],[-96.1926,18.9982],[-96.2172,18.9831],[-96.2332,18.9539],[-96.2537,18.945],[-96.2529,18.923],[-96.2635,18.9173]]]},properties:{id:"30090",COUNTYID:"090",COUNTY:"Jamapa",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30090"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.7852,22.1663],[-97.8073,22.1533],[-97.837,22.1522],[-97.8444,22.1432],[-97.86,22.148],[-97.8965,22.1247],[-97.8935,22.0894],[-97.9061,22.0934],[-97.9213,22.071],[-97.9529,22.0773],[-97.9329,22.1146],[-97.9731,22.1238],[-97.9813,22.1072],[-97.9781,22.0795],[-98.0066,22.0698],[-98.031,22.0676],[-98.0373,22.0863],[-98.0818,22.0968],[-98.0792,22.1108],[-98.0435,22.1024],[-98.0425,22.1247],[-98.063,22.131],[-98.0658,22.1413],[-98.0438,22.1483],[-98.0431,22.135],[-98.0297,22.1321],[-98.021,22.1436],[-98.0004,22.1513],[-98.0158,22.1788],[-97.9966,22.207],[-97.9822,22.2129],[-97.9593,22.2062],[-97.9351,22.2082],[-97.9213,22.2173],[-97.895,22.2224],[-97.8513,22.2075],[-97.8377,22.2124],[-97.8321,22.2381],[-97.7924,22.2604],[-97.7928,22.212],[-97.7852,22.1663]]]},properties:{id:"30133",COUNTYID:"133",COUNTY:"Pueblo Viejo",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30133"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8838,20.1355],[-96.902,20.1223],[-96.9126,20.1042],[-96.8974,20.0987],[-96.8941,20.0799],[-96.8795,20.0735],[-96.8678,20.0575],[-96.8637,20.0351],[-96.8481,20.0177],[-96.8272,20.0144],[-96.8189,20.0023],[-96.7786,20.0087],[-96.764,20.0187],[-96.7596,20.0121],[-96.776,19.9838],[-96.7589,19.9787],[-96.7504,19.9667],[-96.775,19.9385],[-96.7942,19.931],[-96.771,19.9048],[-96.7934,19.8982],[-96.8078,19.8786],[-96.8077,19.8689],[-96.8272,19.8505],[-96.836,19.8333],[-96.836,19.8178],[-96.849,19.8078],[-96.8373,19.7867],[-96.8399,19.7776],[-96.861,19.777],[-96.8723,19.7694],[-96.8763,19.7706],[-96.8956,19.7676],[-96.8933,19.7841],[-96.9008,19.8199],[-96.9121,19.848],[-96.9307,19.8765],[-96.9563,19.8952],[-96.9549,19.9339],[-96.9636,19.9498],[-96.9617,19.9692],[-96.9795,19.9714],[-96.9879,19.9813],[-96.9805,19.9912],[-96.957,19.9927],[-96.9577,20.0037],[-96.98,20.0078],[-96.9856,20.0285],[-96.971,20.0426],[-96.9864,20.0568],[-96.9927,20.08],[-96.9746,20.1251],[-96.9431,20.1349],[-96.9216,20.1447],[-96.8903,20.1495],[-96.8838,20.1355]]]},properties:{id:"30109",COUNTYID:"109",COUNTY:"Misantla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30109"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-98.0468,21.3395],[-98.0405,21.3246],[-98.0147,21.3258],[-98.0036,21.2934],[-98.0045,21.2611],[-97.9994,21.2486],[-97.9792,21.256],[-97.9585,21.2382],[-97.9372,21.2333],[-97.929,21.2162],[-97.9326,21.2047],[-97.9612,21.211],[-97.9612,21.1864],[-97.9639,21.1809],[-97.9643,21.1715],[-98.0142,21.1486],[-98.0434,21.1576],[-98.0353,21.1714],[-98.0436,21.1955],[-98.0704,21.2088],[-98.067,21.2341],[-98.0754,21.2424],[-98.0997,21.243],[-98.0885,21.2752],[-98.0693,21.2738],[-98.0637,21.2878],[-98.0699,21.3139],[-98.0615,21.3217],[-98.0686,21.3419],[-98.0468,21.3395]]]},properties:{id:"30078",COUNTYID:"078",COUNTY:"Ixcatepec",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30078"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-97.1478,19.4478],[-97.1544,19.4651],[-97.1696,19.4514],[-97.1749,19.4234],[-97.1674,19.4043],[-97.1482,19.399],[-97.1264,19.3756],[-97.1485,19.3202],[-97.1667,19.3291],[-97.2106,19.317],[-97.2062,19.327],[-97.2109,19.358],[-97.2234,19.3569],[-97.2315,19.3695],[-97.2667,19.3825],[-97.2204,19.3858],[-97.2398,19.4073],[-97.2493,19.4285],[-97.2747,19.4531],[-97.2604,19.4676],[-97.2327,19.4752],[-97.1965,19.4773],[-97.1859,19.4842],[-97.1654,19.4828],[-97.1498,19.488],[-97.1438,19.4588],[-97.1478,19.4478]]],[[[-97.0152,19.3589],[-97.0354,19.3528],[-97.0468,19.3633],[-97.0418,19.3827],[-97.0278,19.3857],[-97.0028,19.3771],[-97.0152,19.3589]]]]},properties:{id:"30025",COUNTYID:"025",COUNTY:"Ayahualulco",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30025"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8733,18.9573],[-96.8814,18.9494],[-96.8831,18.9266],[-96.8753,18.9112],[-96.8961,18.9069],[-96.9069,18.8967],[-96.8925,18.8872],[-96.8988,18.8644],[-96.9176,18.8638],[-96.9483,18.852],[-96.9566,18.8383],[-96.97,18.8467],[-96.9816,18.8829],[-96.9809,18.9029],[-96.9587,18.9083],[-97.0036,18.9529],[-96.9913,18.9791],[-96.9894,18.9905],[-96.9643,19.0087],[-96.9392,19.0105],[-96.9131,19.0062],[-96.8998,18.9644],[-96.8733,18.9573]]]},properties:{id:"30044",COUNTYID:"044",COUNTY:"Córdoba",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30044"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.6029,20.1947],[-97.6115,20.2203],[-97.6072,20.2355],[-97.5908,20.245],[-97.5751,20.2434],[-97.5576,20.2372],[-97.5696,20.2205],[-97.5685,20.2059],[-97.5794,20.1978],[-97.6029,20.1947]]]},properties:{id:"30064",COUNTYID:"064",COUNTY:"Chumatlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30064"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.8443,21.2975],[-97.8621,21.2849],[-97.872,21.2461],[-97.8794,21.2506],[-97.8954,21.2958],[-97.9033,21.2984],[-97.9104,21.3438],[-97.904,21.3719],[-97.9423,21.3887],[-97.9536,21.402],[-97.957,21.4146],[-97.9321,21.4276],[-97.9307,21.4186],[-97.9105,21.3885],[-97.8971,21.3764],[-97.889,21.3865],[-97.8902,21.4079],[-97.8516,21.3713],[-97.862,21.3596],[-97.858,21.3182],[-97.8443,21.2975]]]},properties:{id:"30035",COUNTYID:"035",COUNTY:"Citlaltépetl",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30035"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.5146,20.17],[-97.5187,20.1542],[-97.5035,20.1486],[-97.4947,20.1378],[-97.5445,20.1039],[-97.5569,20.1074],[-97.5699,20.0821],[-97.5912,20.0817],[-97.5944,20.0975],[-97.5875,20.1123],[-97.6027,20.1193],[-97.605,20.1578],[-97.5707,20.1683],[-97.5146,20.17]]]},properties:{id:"30203",COUNTYID:"203",COUNTY:"Zozocolco de Hidalgo",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30203"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8763,19.7706],[-96.8723,19.7694],[-96.8735,19.7476],[-96.8554,19.7231],[-96.8558,19.7088],[-96.8644,19.69],[-96.8725,19.6989],[-96.8881,19.6932],[-96.9095,19.7077],[-96.8897,19.7533],[-96.8763,19.7706]]]},properties:{id:"30106",COUNTYID:"106",COUNTY:"Miahuatlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30106"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0415,18.5855],[-97.0218,18.5665],[-96.9901,18.5546],[-96.9744,18.5534],[-96.9989,18.5319],[-97.0464,18.4996],[-97.052,18.4857],[-97.0761,18.466],[-97.1127,18.5213],[-97.0794,18.5548],[-97.0711,18.5692],[-97.0481,18.5814],[-97.0415,18.5855]]]},properties:{id:"30159",COUNTYID:"159",COUNTY:"Tehuipango",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30159"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.6115,20.2203],[-97.6029,20.1947],[-97.622,20.1744],[-97.6354,20.1825],[-97.6678,20.1817],[-97.6847,20.1923],[-97.686,20.2037],[-97.7008,20.2193],[-97.6724,20.2436],[-97.6486,20.2321],[-97.6354,20.209],[-97.6115,20.2203]]]},properties:{id:"30103",COUNTYID:"103",COUNTY:"Mecatlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30103"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8456,19.0788],[-96.8043,19.0274],[-96.8149,19.0089],[-96.8472,19.004],[-96.858,19.0108],[-96.8797,19.0191],[-96.8824,19.0397],[-96.8746,19.0453],[-96.8946,19.0646],[-96.8897,19.0911],[-96.8829,19.094],[-96.8456,19.0788]]]},properties:{id:"30165",COUNTYID:"165",COUNTY:"Tepatlaxco",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30165"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0025,19.617],[-96.9966,19.6136],[-96.996,19.5783],[-97.0048,19.5557],[-97.0183,19.5516],[-97.0106,19.5352],[-97.0142,19.5218],[-97.0292,19.5085],[-97.0796,19.5202],[-97.0944,19.5323],[-97.1045,19.5303],[-97.1004,19.5479],[-97.0907,19.5862],[-97.041,19.6152],[-97.0343,19.6256],[-97.0025,19.617]]]},properties:{id:"30001",COUNTYID:"001",COUNTY:"Acajete",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30001"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.6596,21.28],[-97.6636,21.2642],[-97.6966,21.2535],[-97.705,21.2322],[-97.695,21.2237],[-97.713,21.2039],[-97.7474,21.2091],[-97.7883,21.2364],[-97.8024,21.2343],[-97.8203,21.2208],[-97.8292,21.2233],[-97.8575,21.2241],[-97.8709,21.2381],[-97.872,21.2461],[-97.8621,21.2849],[-97.8443,21.2975],[-97.8247,21.3143],[-97.8085,21.3205],[-97.79,21.3323],[-97.7744,21.331],[-97.7461,21.2807],[-97.7158,21.2531],[-97.6756,21.2726],[-97.6843,21.2933],[-97.6687,21.2993],[-97.6596,21.28]]]},properties:{id:"30153",COUNTYID:"153",COUNTY:"Tancoco",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30153"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.5624,19.3419],[-96.5769,19.3254],[-96.5976,19.3211],[-96.608,19.3363],[-96.6317,19.3193],[-96.6657,19.3142],[-96.6707,19.3058],[-96.6899,19.305],[-96.7029,19.3118],[-96.7186,19.3154],[-96.7306,19.3352],[-96.7371,19.3724],[-96.7069,19.3578],[-96.6949,19.3715],[-96.6679,19.3646],[-96.6541,19.3378],[-96.6366,19.3486],[-96.5968,19.3496],[-96.5825,19.3414],[-96.5624,19.3419]]]},properties:{id:"30017",COUNTYID:"017",COUNTY:"Apazapan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30017"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8949,19.3442],[-96.8957,19.336],[-96.9182,19.3228],[-96.9265,19.3091],[-96.9468,19.2968],[-96.9715,19.2898],[-96.9807,19.2898],[-97.0072,19.3183],[-97.0242,19.3189],[-97.0345,19.3361],[-97.0354,19.3528],[-97.0152,19.3589],[-96.9715,19.3559],[-96.9442,19.3686],[-96.9169,19.352],[-96.8949,19.3442]]]},properties:{id:"30046",COUNTYID:"046",COUNTY:"Cosautlán de Carvajal",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30046"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.2065,18.7804],[-97.2253,18.7583],[-97.2118,18.7479],[-97.2237,18.7319],[-97.2163,18.719],[-97.2335,18.702],[-97.2217,18.6911],[-97.2403,18.6663],[-97.2354,18.6436],[-97.2523,18.6267],[-97.2719,18.6278],[-97.2821,18.6522],[-97.2912,18.6555],[-97.3032,18.6743],[-97.3227,18.6642],[-97.344,18.6858],[-97.3422,18.7059],[-97.35,18.717],[-97.3397,18.759],[-97.3308,18.7639],[-97.3254,18.7665],[-97.2789,18.7726],[-97.2489,18.7855],[-97.2245,18.7917],[-97.2065,18.7804]]]},properties:{id:"30006",COUNTYID:"006",COUNTY:"Acultzingo",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30006"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8763,19.7706],[-96.8897,19.7533],[-96.9095,19.7077],[-96.9004,19.696],[-96.8926,19.6664],[-96.9141,19.6632],[-96.9295,19.6762],[-96.9334,19.6968],[-96.9596,19.7224],[-96.9648,19.7456],[-96.9489,19.7435],[-96.9323,19.7552],[-96.8956,19.7676],[-96.8763,19.7706]]]},properties:{id:"30187",COUNTYID:"187",COUNTY:"Tonayán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30187"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8972,19.581],[-96.9394,19.5765],[-96.9548,19.5673],[-96.9888,19.5791],[-96.9684,19.5967],[-96.9581,19.595],[-96.9418,19.6124],[-96.928,19.5925],[-96.8972,19.581]]]},properties:{id:"30026",COUNTYID:"026",COUNTY:"Banderilla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30026"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9237,19.1934],[-96.9116,19.1694],[-96.886,19.1582],[-96.8856,19.1417],[-96.9258,19.1594],[-96.9415,19.1814],[-96.9592,19.1853],[-96.9468,19.2024],[-96.9237,19.1934]]]},properties:{id:"30146",COUNTYID:"146",COUNTY:"Sochiapa",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30146"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.4371,18.7109],[-95.4487,18.6972],[-95.4751,18.684],[-95.4585,18.6621],[-95.4672,18.6559],[-95.471,18.627],[-95.4681,18.6039],[-95.4929,18.6113],[-95.5443,18.6084],[-95.5512,18.6214],[-95.5614,18.6408],[-95.5506,18.653],[-95.5119,18.6649],[-95.5099,18.689],[-95.5253,18.7148],[-95.4371,18.7109]]]},properties:{id:"30097",COUNTYID:"097",COUNTY:"Lerdo de Tejada",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30097"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0139,18.7032],[-97.0079,18.6866],[-97.0243,18.6726],[-97.0202,18.6509],[-97.0522,18.6447],[-97.0784,18.6294],[-97.0847,18.6412],[-97.064,18.6639],[-97.0556,18.6852],[-97.0696,18.7032],[-97.0345,18.7082],[-97.0139,18.7032]]]},properties:{id:"30137",COUNTYID:"137",COUNTY:"Los Reyes",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30137"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.007,18.1848],[-96.0158,18.1677],[-95.9928,18.1596],[-95.9906,18.1512],[-96.0277,18.1334],[-96.0411,18.1385],[-96.0664,18.1316],[-96.0839,18.1618],[-96.0628,18.176],[-96.0445,18.1795],[-96.0438,18.2056],[-96.0249,18.2177],[-96.0083,18.2058],[-96.007,18.1848]]]},properties:{id:"30119",COUNTYID:"119",COUNTY:"Otatitlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30119"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0329,18.9638],[-97.0219,18.9321],[-97.0448,18.9453],[-97.0593,18.9459],[-97.0663,18.9228],[-97.0619,18.9],[-97.0659,18.8907],[-97.0844,18.8805],[-97.1057,18.8862],[-97.0988,18.9029],[-97.1063,18.9108],[-97.0871,18.9195],[-97.0943,18.937],[-97.1208,18.9486],[-97.1277,18.9708],[-97.1038,18.9899],[-97.092,18.9838],[-97.0713,18.9753],[-97.0607,18.9836],[-97.0401,18.9856],[-97.0329,18.9638]]]},properties:{id:"30022",COUNTYID:"022",COUNTY:"Atzacan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30022"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9643,19.0087],[-96.9894,18.9905],[-97.0024,19.013],[-97.0277,19.0335],[-97.006,19.0513],[-97.0002,19.0283],[-96.9863,19.0212],[-96.9754,19.0324],[-96.9643,19.0087]]]},properties:{id:"30186",COUNTYID:"186",COUNTY:"Tomatlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30186"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.1342,18.6481],[-97.1231,18.6357],[-97.1402,18.6176],[-97.1424,18.5933],[-97.1623,18.6059],[-97.1744,18.6067],[-97.1984,18.6297],[-97.2136,18.6252],[-97.2266,18.6388],[-97.1994,18.6381],[-97.1795,18.6527],[-97.1661,18.6526],[-97.1589,18.6642],[-97.1433,18.6665],[-97.1342,18.6481]]]},properties:{id:"30195",COUNTYID:"195",COUNTY:"Xoxocotla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30195"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.2183,18.911],[-97.2179,18.9111],[-97.2029,18.8767],[-97.1805,18.8569],[-97.1707,18.8395],[-97.1528,18.8255],[-97.1667,18.8096],[-97.1947,18.8134],[-97.1978,18.7937],[-97.1593,18.7768],[-97.1617,18.7637],[-97.1877,18.757],[-97.2065,18.7804],[-97.2245,18.7917],[-97.2229,18.808],[-97.2325,18.834],[-97.2274,18.8599],[-97.2117,18.8686],[-97.2127,18.8796],[-97.2321,18.9036],[-97.2183,18.911]]]},properties:{id:"30115",COUNTYID:"115",COUNTY:"Nogales",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30115"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.702,19.8841],[-96.7241,19.8593],[-96.7202,19.845],[-96.7426,19.8245],[-96.7411,19.8167],[-96.7541,19.7921],[-96.7674,19.7881],[-96.783,19.7947],[-96.7964,19.7853],[-96.8075,19.8055],[-96.8219,19.7947],[-96.836,19.8178],[-96.836,19.8333],[-96.8272,19.8505],[-96.8077,19.8689],[-96.8078,19.8786],[-96.7934,19.8982],[-96.771,19.9048],[-96.7557,19.8889],[-96.7395,19.9084],[-96.7163,19.9025],[-96.702,19.8841]]]},properties:{id:"30197",COUNTYID:"197",COUNTY:"Yecuatla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30197"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.594,18.3549],[-95.6375,18.3514],[-95.6397,18.3563],[-95.6522,18.3746],[-95.681,18.3873],[-95.7406,18.4193],[-95.7572,18.4388],[-95.7693,18.4389],[-95.7782,18.4668],[-95.7547,18.4715],[-95.7461,18.4866],[-95.7207,18.4814],[-95.7056,18.494],[-95.7166,18.5236],[-95.6991,18.5046],[-95.6831,18.4952],[-95.6623,18.4641],[-95.6464,18.4482],[-95.6459,18.4308],[-95.6312,18.4208],[-95.6316,18.3935],[-95.6173,18.3865],[-95.6101,18.3608],[-95.594,18.3549]]]},properties:{id:"30012",COUNTYID:"012",COUNTY:"Amatitlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30012"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8018,19.5755],[-96.7678,19.5653],[-96.7884,19.5459],[-96.7738,19.529],[-96.7396,19.521],[-96.707,19.4858],[-96.712,19.4743],[-96.6899,19.4575],[-96.655,19.4547],[-96.6378,19.4343],[-96.606,19.4203],[-96.5783,19.4218],[-96.5606,19.4176],[-96.5543,19.4003],[-96.5407,19.3976],[-96.543,19.3694],[-96.5636,19.3606],[-96.5624,19.3419],[-96.5825,19.3414],[-96.5968,19.3496],[-96.6366,19.3486],[-96.6541,19.3378],[-96.6679,19.3646],[-96.6949,19.3715],[-96.7069,19.3578],[-96.7371,19.3724],[-96.7577,19.3954],[-96.7817,19.3928],[-96.7836,19.3742],[-96.8165,19.3953],[-96.8025,19.4126],[-96.8092,19.4243],[-96.8396,19.438],[-96.8867,19.4458],[-96.9034,19.4632],[-96.8999,19.4855],[-96.8762,19.4947],[-96.8543,19.5209],[-96.8223,19.5144],[-96.8299,19.5421],[-96.8422,19.5469],[-96.8325,19.5631],[-96.81,19.5593],[-96.8018,19.5755]]]},properties:{id:"30065",COUNTYID:"065",COUNTY:"Emiliano Zapata",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30065"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.7055,20.1569],[-96.7157,20.1487],[-96.6937,20.1076],[-96.7089,20.0946],[-96.6807,20.0824],[-96.7119,20.0555],[-96.7282,20.0334],[-96.7429,20.0212],[-96.764,20.0187],[-96.7786,20.0087],[-96.8189,20.0023],[-96.8272,20.0144],[-96.8481,20.0177],[-96.8637,20.0351],[-96.8678,20.0575],[-96.8795,20.0735],[-96.8941,20.0799],[-96.8974,20.0987],[-96.9126,20.1042],[-96.902,20.1223],[-96.8838,20.1355],[-96.8716,20.1559],[-96.859,20.1631],[-96.842,20.1839],[-96.8243,20.1838],[-96.8137,20.2115],[-96.7996,20.2019],[-96.779,20.2132],[-96.7775,20.2284],[-96.7854,20.2418],[-96.7845,20.2435],[-96.773,20.2268],[-96.7174,20.1732],[-96.7055,20.1569]]]},properties:{id:"30114",COUNTYID:"114",COUNTY:"Nautla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30114"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.3217,19.4143],[-96.3321,19.3959],[-96.3771,19.4007],[-96.4011,19.4017],[-96.4111,19.4116],[-96.4344,19.397],[-96.4658,19.3973],[-96.4808,19.4383],[-96.4748,19.4522],[-96.4566,19.4617],[-96.3947,19.4566],[-96.3666,19.4848],[-96.3375,19.4901],[-96.3301,19.4975],[-96.3142,19.4819],[-96.3089,19.462],[-96.3197,19.4507],[-96.3217,19.4143]]]},properties:{id:"30191",COUNTYID:"191",COUNTY:"Ursulo Galván",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30191"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.2574,18.0698],[-94.2818,18.0619],[-94.2721,18.0494],[-94.2352,18.0501],[-94.2174,18.0398],[-94.2203,18.0034],[-94.1973,17.9897],[-94.2178,17.9642],[-94.2113,17.9439],[-94.2228,17.9378],[-94.2347,17.9166],[-94.2585,17.8891],[-94.2672,17.8878],[-94.2988,17.903],[-94.3035,17.911],[-94.3332,17.9047],[-94.3526,17.9133],[-94.3641,17.9737],[-94.3552,18.0033],[-94.3332,18.0091],[-94.3368,18.0226],[-94.3191,18.0505],[-94.3374,18.065],[-94.3232,18.0758],[-94.3108,18.0973],[-94.2859,18.0735],[-94.2694,18.0762],[-94.2574,18.0698]]]},properties:{id:"30111",COUNTYID:"111",COUNTY:"Moloacán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30111"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9744,18.5534],[-96.9901,18.5546],[-97.0218,18.5665],[-97.0415,18.5855],[-97.0187,18.5869],[-97.018,18.6124],[-97.0003,18.6085],[-96.9738,18.6292],[-96.9769,18.6422],[-96.9586,18.6499],[-96.9372,18.6129],[-96.9324,18.574],[-96.9744,18.5534]]]},properties:{id:"30110",COUNTYID:"110",COUNTY:"Mixtla de Altamirano",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30110"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.1417,20.3761],[-97.1644,20.3889],[-97.1865,20.4147],[-97.1745,20.4625],[-97.1623,20.4616],[-97.1595,20.4799],[-97.1479,20.4884],[-97.1513,20.507],[-97.1136,20.521],[-97.1042,20.5307],[-97.0639,20.4933],[-97.077,20.4823],[-97.0528,20.4674],[-97.0196,20.4731],[-97.0305,20.4498],[-97.023,20.4435],[-97.0373,20.4099],[-97.0696,20.407],[-97.0961,20.3963],[-97.1114,20.3797],[-97.129,20.3721],[-97.1417,20.3761]]]},properties:{id:"30069",COUNTYID:"069",COUNTY:"Gutiérrez Zamora",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30069"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.3526,17.9133],[-94.3705,17.8984],[-94.3791,17.9116],[-94.3939,17.9056],[-94.4127,17.9125],[-94.4345,17.9097],[-94.4492,17.9333],[-94.4498,17.9505],[-94.4278,17.9807],[-94.4306,17.9971],[-94.4601,18.0285],[-94.4569,18.0492],[-94.4449,18.0562],[-94.4221,18.0524],[-94.4127,18.0341],[-94.3752,18.0454],[-94.3445,18.061],[-94.3374,18.065],[-94.3191,18.0505],[-94.3368,18.0226],[-94.3332,18.0091],[-94.3552,18.0033],[-94.3641,17.9737],[-94.3526,17.9133]]]},properties:{id:"30082",COUNTYID:"082",COUNTY:"Ixhuatlán del Sureste",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30082"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9171,19.6351],[-96.9031,19.6324],[-96.8699,19.6153],[-96.8486,19.608],[-96.8429,19.5995],[-96.8512,19.586],[-96.8709,19.5876],[-96.882,19.5787],[-96.8972,19.581],[-96.928,19.5925],[-96.9418,19.6124],[-96.9581,19.595],[-96.9684,19.5967],[-96.9744,19.6132],[-96.9875,19.6207],[-96.9685,19.6437],[-96.9171,19.6351]]]},properties:{id:"30093",COUNTYID:"093",COUNTY:"Jilotepec",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30093"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.3445,18.061],[-94.3752,18.0454],[-94.4127,18.0341],[-94.4221,18.0524],[-94.4143,18.0684],[-94.4241,18.098],[-94.4002,18.0909],[-94.3911,18.0725],[-94.3732,18.0806],[-94.3445,18.061]]]},properties:{id:"30206",COUNTYID:"206",COUNTY:"Nanchital de Lázaro Cárdenas del Río",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30206"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0481,18.5814],[-97.0711,18.5692],[-97.0794,18.5548],[-97.1127,18.5213],[-97.1137,18.5314],[-97.1446,18.5709],[-97.1289,18.5758],[-97.0977,18.5777],[-97.0489,18.5884],[-97.0481,18.5814]]]},properties:{id:"30019",COUNTYID:"019",COUNTY:"Astacinga",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30019"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.3052,18.9741],[-96.2967,18.9621],[-96.3009,18.9434],[-96.2869,18.944],[-96.2741,18.9165],[-96.2635,18.9173],[-96.2463,18.9025],[-96.2159,18.92],[-96.2115,18.8869],[-96.1934,18.9023],[-96.1839,18.8425],[-96.2001,18.8327],[-96.2154,18.8381],[-96.2691,18.8102],[-96.2714,18.7884],[-96.2846,18.7824],[-96.3055,18.7842],[-96.3314,18.7967],[-96.3399,18.7878],[-96.3588,18.7921],[-96.3677,18.7857],[-96.3916,18.7841],[-96.4163,18.7678],[-96.4053,18.7461],[-96.4348,18.7367],[-96.4755,18.7364],[-96.4738,18.7771],[-96.4658,18.786],[-96.4718,18.802],[-96.4666,18.8141],[-96.4797,18.8209],[-96.4875,18.8371],[-96.5281,18.8646],[-96.5155,18.8712],[-96.5364,18.9021],[-96.5163,18.9125],[-96.5,18.9286],[-96.4677,18.93],[-96.4666,18.9395],[-96.4587,18.9467],[-96.4265,18.9445],[-96.4052,18.9354],[-96.3693,18.9481],[-96.3498,18.9713],[-96.3267,18.967],[-96.3144,18.9782],[-96.3052,18.9741]]]},properties:{id:"30049",COUNTYID:"049",COUNTY:"Cotaxtla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30049"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.5263,19.9248],[-96.5259,19.9049],[-96.5442,19.8751],[-96.5366,19.8661],[-96.5492,19.8364],[-96.5578,19.8284],[-96.5717,19.8314],[-96.5792,19.8438],[-96.599,19.8485],[-96.6237,19.8641],[-96.6305,19.8791],[-96.6499,19.8924],[-96.6503,19.9027],[-96.6545,19.9156],[-96.6434,19.9248],[-96.6402,19.9462],[-96.6451,19.9908],[-96.6625,19.9985],[-96.6826,19.9787],[-96.7029,19.9702],[-96.7383,19.977],[-96.7504,19.9667],[-96.7589,19.9787],[-96.776,19.9838],[-96.7596,20.0121],[-96.764,20.0187],[-96.7429,20.0212],[-96.7282,20.0334],[-96.7119,20.0555],[-96.6807,20.0824],[-96.7089,20.0946],[-96.6937,20.1076],[-96.7157,20.1487],[-96.7055,20.1569],[-96.5787,20.0079],[-96.5741,19.9919],[-96.5554,19.9591],[-96.5263,19.9248]]]},properties:{id:"30192",COUNTYID:"192",COUNTY:"Vega de Alatorre",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30192"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.1667,18.8096],[-97.1318,18.7964],[-97.1405,18.7673],[-97.1617,18.7637],[-97.1593,18.7768],[-97.1978,18.7937],[-97.1947,18.8134],[-97.1667,18.8096]]]},properties:{id:"30030",COUNTYID:"030",COUNTY:"Camerino Z. Mendoza",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30030"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0221,18.7626],[-97.0284,18.7532],[-97.0468,18.7475],[-97.0667,18.7591],[-97.0705,18.7774],[-97.0613,18.7739],[-97.0412,18.7898],[-97.0221,18.7626]]]},properties:{id:"30098",COUNTYID:"098",COUNTY:"Magdalena",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30098"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-98.3766,21.4087],[-98.398,21.3806],[-98.3706,21.3646],[-98.3648,21.3351],[-98.3867,21.3141],[-98.3651,21.2989],[-98.3405,21.2989],[-98.3398,21.2883],[-98.2957,21.2901],[-98.2704,21.2742],[-98.2592,21.2762],[-98.2489,21.2441],[-98.2554,21.231],[-98.2879,21.2055],[-98.2961,21.188],[-98.3094,21.185],[-98.3201,21.2002],[-98.3337,21.1995],[-98.3363,21.215],[-98.3553,21.2306],[-98.3681,21.233],[-98.3814,21.252],[-98.3975,21.2643],[-98.4327,21.2561],[-98.444,21.2845],[-98.4576,21.2823],[-98.4589,21.3008],[-98.4779,21.3211],[-98.4978,21.3279],[-98.4852,21.3501],[-98.4656,21.3471],[-98.4674,21.3786],[-98.4475,21.3998],[-98.4137,21.3837],[-98.3952,21.4156],[-98.3766,21.4087]]]},properties:{id:"30129",COUNTYID:"129",COUNTY:"Platón Sánchez",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30129"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.5566,21.1054],[-97.5088,21.0994],[-97.5169,21.0754],[-97.5385,21.07],[-97.5544,21.0843],[-97.5615,21.0663],[-97.5488,21.055],[-97.5617,21.0345],[-97.5764,21.0221],[-97.5918,21.0277],[-97.5893,21.0017],[-97.5999,20.9976],[-97.5927,20.9717],[-97.5717,20.9501],[-97.5264,20.9539],[-97.5192,20.9341],[-97.4998,20.933],[-97.5015,20.8804],[-97.5076,20.8516],[-97.5303,20.8233],[-97.5568,20.8204],[-97.5877,20.812],[-97.6245,20.8286],[-97.6462,20.8104],[-97.6826,20.8152],[-97.6854,20.8069],[-97.7247,20.808],[-97.7503,20.8148],[-97.7732,20.8268],[-97.7904,20.8168],[-97.8072,20.822],[-97.824,20.8098],[-97.8374,20.8126],[-97.8453,20.8398],[-97.8558,20.8332],[-97.8791,20.8343],[-97.8948,20.7978],[-97.9137,20.7839],[-97.9285,20.7892],[-97.9218,20.8092],[-97.9202,20.8342],[-97.9017,20.8478],[-97.9159,20.8749],[-97.8995,20.898],[-97.8803,20.8933],[-97.8745,20.9036],[-97.8783,20.9364],[-97.8581,20.9715],[-97.8655,20.989],[-97.8776,20.9814],[-97.8998,20.9895],[-97.9068,21.0003],[-97.9058,21.0199],[-97.9211,21.0263],[-97.9125,21.0507],[-97.8899,21.0486],[-97.8747,21.0648],[-97.8578,21.0705],[-97.8514,21.0865],[-97.8222,21.1041],[-97.8323,21.1175],[-97.8167,21.1235],[-97.8012,21.1042],[-97.7655,21.0913],[-97.7503,21.0945],[-97.7577,21.1249],[-97.7552,21.1394],[-97.7199,21.1415],[-97.7084,21.1531],[-97.7054,21.1915],[-97.6852,21.1987],[-97.6718,21.1884],[-97.637,21.1837],[-97.63,21.1589],[-97.5938,21.1386],[-97.5882,21.124],[-97.5726,21.1078],[-97.5566,21.1054]]]},properties:{id:"30160",COUNTYID:"160",COUNTY:"Álamo Temapache",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30160"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.7891,18.5077],[-94.7737,18.4492],[-94.7438,18.4217],[-94.7375,18.3952],[-94.7101,18.37],[-94.6825,18.35],[-94.6943,18.336],[-94.7137,18.3313],[-94.7197,18.3162],[-94.7406,18.3097],[-94.7305,18.2872],[-94.7385,18.271],[-94.7263,18.2419],[-94.761,18.2338],[-94.7675,18.2186],[-94.7679,18.1904],[-94.7838,18.1901],[-94.7765,18.2323],[-94.7813,18.2386],[-94.7669,18.2635],[-94.7704,18.2736],[-94.7869,18.2768],[-94.7883,18.2605],[-94.8044,18.2604],[-94.813,18.2751],[-94.795,18.2883],[-94.8268,18.3109],[-94.8351,18.3242],[-94.8329,18.3506],[-94.8226,18.3723],[-94.8333,18.4039],[-94.8567,18.3997],[-94.8692,18.3896],[-94.8965,18.4089],[-94.8822,18.4436],[-94.864,18.4523],[-94.8493,18.4581],[-94.8432,18.4732],[-94.808,18.4902],[-94.7891,18.5077]]]},properties:{id:"30209",COUNTYID:"209",COUNTY:"Tatahuicapan de Juárez",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30209"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8435,19.3714],[-96.8045,19.3591],[-96.8044,19.344],[-96.7698,19.3276],[-96.7762,19.3096],[-96.7448,19.3136],[-96.7414,19.2964],[-96.7253,19.2691],[-96.7044,19.2685],[-96.7088,19.286],[-96.7029,19.3118],[-96.6899,19.305],[-96.6707,19.3058],[-96.6657,19.3142],[-96.6317,19.3193],[-96.608,19.3363],[-96.5976,19.3211],[-96.6136,19.3036],[-96.6136,19.293],[-96.6353,19.2776],[-96.6753,19.271],[-96.6952,19.2542],[-96.7237,19.2499],[-96.7679,19.2297],[-96.8073,19.2196],[-96.8258,19.2467],[-96.754,19.2733],[-96.77,19.2879],[-96.7927,19.2832],[-96.8318,19.2998],[-96.8534,19.2884],[-96.8737,19.2893],[-96.9146,19.2767],[-96.9686,19.2229],[-96.9797,19.2165],[-96.9668,19.1957],[-96.993,19.2012],[-97.0063,19.2098],[-97.03,19.2087],[-97.0296,19.218],[-97.0012,19.2365],[-97.0053,19.2495],[-96.9857,19.28],[-96.9715,19.2898],[-96.9468,19.2968],[-96.9265,19.3091],[-96.9182,19.3228],[-96.8957,19.336],[-96.8949,19.3442],[-96.8822,19.3444],[-96.8435,19.3714]]]},properties:{id:"30024",COUNTYID:"024",COUNTY:"Tlaltetela",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30024"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.6844,19.078],[-96.6598,19.0801],[-96.6501,19.0741],[-96.6316,19.0794],[-96.6251,19.0885],[-96.6076,19.0903],[-96.5797,19.0821],[-96.5654,19.0844],[-96.5724,19.063],[-96.5423,19.0571],[-96.5294,19.0438],[-96.5631,19.0542],[-96.605,19.0498],[-96.6161,19.0555],[-96.6303,19.0427],[-96.643,19.0479],[-96.689,19.036],[-96.7077,19.0212],[-96.7427,19.0267],[-96.7817,19.0222],[-96.8043,19.0274],[-96.8456,19.0788],[-96.8545,19.094],[-96.8724,19.1],[-96.88,19.1242],[-96.8558,19.1333],[-96.7988,19.106],[-96.7897,19.0961],[-96.7688,19.0914],[-96.7397,19.077],[-96.6844,19.078]]]},properties:{id:"30200",COUNTYID:"200",COUNTY:"Zentla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30200"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.689,18.8534],[-96.6849,18.7773],[-96.647,18.7665],[-96.6391,18.7721],[-96.613,18.7697],[-96.5936,18.7602],[-96.5638,18.7619],[-96.5418,18.7547],[-96.5135,18.7564],[-96.4974,18.7749],[-96.4738,18.7771],[-96.4755,18.7364],[-96.4897,18.7399],[-96.5191,18.726],[-96.5445,18.7349],[-96.5768,18.7388],[-96.5936,18.7383],[-96.6485,18.7461],[-96.6548,18.7515],[-96.6895,18.7445],[-96.7263,18.7442],[-96.7774,18.7686],[-96.7667,18.7831],[-96.7666,18.8081],[-96.7477,18.8457],[-96.7352,18.8399],[-96.7117,18.8485],[-96.689,18.8534]]]},properties:{id:"30053",COUNTYID:"053",COUNTY:"Cuitláhuac",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30053"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.7786,18.3999],[-95.7769,18.3598],[-95.7794,18.3418],[-95.7665,18.3147],[-95.7767,18.318],[-95.7912,18.3379],[-95.8022,18.3181],[-95.8124,18.3171],[-95.8301,18.3336],[-95.8462,18.3276],[-95.8507,18.3158],[-95.8454,18.2961],[-95.8563,18.2825],[-95.881,18.2751],[-95.9047,18.2769],[-95.9176,18.2663],[-95.912,18.2506],[-95.9197,18.2468],[-95.9502,18.2513],[-95.9561,18.235],[-95.9687,18.2369],[-95.9887,18.2245],[-95.9988,18.2069],[-95.9825,18.1893],[-96.007,18.1848],[-96.0083,18.2058],[-96.0249,18.2177],[-96.0438,18.2056],[-96.0445,18.1795],[-96.0628,18.176],[-96.0839,18.1618],[-96.1143,18.1641],[-96.1241,18.1404],[-96.1497,18.1316],[-96.1797,18.1406],[-96.1883,18.1513],[-96.1864,18.1672],[-96.1691,18.1721],[-96.1714,18.1864],[-96.1459,18.1919],[-96.1384,18.1848],[-96.0782,18.1998],[-96.0698,18.2197],[-96.0782,18.2325],[-96.0621,18.2397],[-96.0609,18.2613],[-96.0713,18.27],[-96.0698,18.2877],[-96.0566,18.3018],[-96.0698,18.3142],[-96.0835,18.3141],[-96.0901,18.3268],[-96.0496,18.3658],[-96.0363,18.3651],[-96.0331,18.3825],[-96.0159,18.3879],[-96.0002,18.3969],[-95.9849,18.415],[-95.9851,18.4269],[-95.9328,18.4173],[-95.93,18.432],[-95.9036,18.4257],[-95.9062,18.4008],[-95.8883,18.4017],[-95.8964,18.3787],[-95.8589,18.372],[-95.8281,18.3793],[-95.818,18.392],[-95.7993,18.3823],[-95.787,18.3844],[-95.7786,18.3999]]]},properties:{id:"30045",COUNTYID:"045",COUNTY:"Cosamaloapan de Carpio",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30045"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.404,20.4877],[-97.3993,20.4696],[-97.4179,20.461],[-97.4477,20.4565],[-97.451,20.4176],[-97.4774,20.4109],[-97.4631,20.4002],[-97.4741,20.3829],[-97.4685,20.3683],[-97.4787,20.3565],[-97.5021,20.3751],[-97.5191,20.3671],[-97.5741,20.3503],[-97.5945,20.3539],[-97.6145,20.3496],[-97.639,20.368],[-97.6549,20.388],[-97.6466,20.4087],[-97.6376,20.4179],[-97.6407,20.4423],[-97.5861,20.4729],[-97.576,20.4909],[-97.5561,20.4847],[-97.5418,20.4885],[-97.531,20.4841],[-97.5201,20.4955],[-97.4881,20.5075],[-97.4484,20.4912],[-97.404,20.4877]]]},properties:{id:"30040",COUNTYID:"040",COUNTY:"Coatzintla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30040"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.5253,18.7148],[-95.5099,18.689],[-95.5119,18.6649],[-95.5506,18.653],[-95.5577,18.662],[-95.58,18.671],[-95.5943,18.692],[-95.6469,18.6959],[-95.6562,18.6869],[-95.6787,18.6833],[-95.696,18.6741],[-95.7115,18.676],[-95.7247,18.667],[-95.7252,18.6369],[-95.7215,18.6155],[-95.7346,18.6026],[-95.7488,18.6002],[-95.7489,18.5806],[-95.7583,18.555],[-95.766,18.5715],[-95.7863,18.5827],[-95.7935,18.6154],[-95.8112,18.6174],[-95.8025,18.6396],[-95.8332,18.6546],[-95.8655,18.6447],[-95.8787,18.6295],[-95.8931,18.6224],[-95.8824,18.721],[-95.871,18.7268],[-95.8784,18.7486],[-95.9072,18.7534],[-95.9115,18.7779],[-95.9366,18.7941],[-95.9767,18.7931],[-95.996,18.8023],[-95.9985,18.8268],[-95.985,18.8365],[-95.9819,18.8547],[-95.9863,18.8851],[-96.0226,18.8856],[-96.0329,18.9],[-96.022,18.9406],[-96.0439,18.9866],[-96.0692,18.9888],[-96.0756,18.9976],[-96.092,18.9949],[-96.1111,19.0105],[-96.0966,19.0417],[-96.1172,19.0557],[-96.1137,19.0861],[-96.0985,19.1023],[-96.0904,19.0848],[-96.0735,19.0712],[-96.0394,19.0576],[-96.0161,19.056],[-95.9827,19.0635],[-95.9699,19.0487],[-95.9608,18.9666],[-95.9417,18.9269],[-95.9409,18.9054],[-95.9269,18.8852],[-95.9008,18.8594],[-95.8623,18.8325],[-95.8115,18.8102],[-95.7522,18.7919],[-95.7207,18.7691],[-95.6834,18.7499],[-95.6461,18.7359],[-95.5731,18.7196],[-95.5253,18.7148]]]},properties:{id:"30011",COUNTYID:"011",COUNTY:"Alvarado",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30011"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.5191,20.3671],[-97.5103,20.3531],[-97.5159,20.3395],[-97.4703,20.3275],[-97.4553,20.3325],[-97.4095,20.3091],[-97.406,20.2903],[-97.3793,20.2496],[-97.4064,20.2326],[-97.4251,20.244],[-97.4453,20.2462],[-97.465,20.2212],[-97.4625,20.1852],[-97.4865,20.1722],[-97.5035,20.1486],[-97.5187,20.1542],[-97.5146,20.17],[-97.5059,20.2055],[-97.531,20.1998],[-97.5387,20.2139],[-97.5174,20.2319],[-97.5167,20.2417],[-97.4872,20.2458],[-97.4828,20.2592],[-97.5036,20.2674],[-97.5299,20.2653],[-97.5434,20.2734],[-97.558,20.2671],[-97.5819,20.2669],[-97.6013,20.2647],[-97.6022,20.2815],[-97.5828,20.2821],[-97.6048,20.3134],[-97.58,20.3235],[-97.5827,20.347],[-97.5741,20.3503],[-97.5191,20.3671]]]},properties:{id:"30066",COUNTYID:"066",COUNTY:"Espinal",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30066"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.4348,18.7367],[-96.4361,18.6948],[-96.4252,18.6848],[-96.3897,18.6914],[-96.3764,18.6873],[-96.364,18.6955],[-96.3524,18.6913],[-96.3243,18.6672],[-96.2948,18.6618],[-96.2766,18.6662],[-96.2459,18.6548],[-96.2252,18.652],[-96.2079,18.6437],[-96.1791,18.6533],[-96.1677,18.6509],[-96.1414,18.6267],[-96.1342,18.607],[-96.0823,18.6123],[-96.0728,18.602],[-96.036,18.5954],[-96.0278,18.5697],[-96.0144,18.5674],[-96.0048,18.5536],[-96.0121,18.5367],[-95.9768,18.5177],[-95.9864,18.5062],[-96.0124,18.4894],[-95.9913,18.478],[-95.9991,18.4579],[-95.999,18.4328],[-95.9851,18.4269],[-95.9849,18.415],[-96.0002,18.3969],[-96.0159,18.3879],[-96.0427,18.4002],[-96.0626,18.4163],[-96.0739,18.4091],[-96.1037,18.4208],[-96.1203,18.423],[-96.1506,18.4108],[-96.1643,18.3886],[-96.1875,18.3933],[-96.2441,18.3969],[-96.264,18.4062],[-96.2993,18.363],[-96.2944,18.3124],[-96.3135,18.3281],[-96.319,18.3651],[-96.3473,18.3823],[-96.3522,18.4066],[-96.3838,18.4241],[-96.4002,18.4445],[-96.4203,18.5079],[-96.4551,18.5495],[-96.4572,18.5703],[-96.4997,18.5895],[-96.5165,18.5829],[-96.527,18.5872],[-96.5612,18.5878],[-96.6282,18.6319],[-96.6119,18.6546],[-96.6132,18.676],[-96.5918,18.6801],[-96.5986,18.6929],[-96.5914,18.7053],[-96.5669,18.7077],[-96.58,18.7246],[-96.5768,18.7388],[-96.5445,18.7349],[-96.5191,18.726],[-96.4897,18.7399],[-96.4755,18.7364],[-96.4348,18.7367]]]},properties:{id:"30174",COUNTYID:"174",COUNTY:"Tierra Blanca",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30174"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.238,19.6368],[-97.2185,19.6337],[-97.2043,19.6142],[-97.1716,19.6323],[-97.1671,19.6159],[-97.145,19.5997],[-97.1255,19.5981],[-97.1284,19.5775],[-97.1004,19.5479],[-97.1045,19.5303],[-97.1059,19.5215],[-97.1229,19.5192],[-97.1385,19.5082],[-97.1498,19.488],[-97.1654,19.4828],[-97.1859,19.4842],[-97.1965,19.4773],[-97.2327,19.4752],[-97.2604,19.4676],[-97.2747,19.4531],[-97.2493,19.4285],[-97.2398,19.4073],[-97.2204,19.3858],[-97.2667,19.3825],[-97.2872,19.3893],[-97.3378,19.3925],[-97.3486,19.3785],[-97.3605,19.376],[-97.3717,19.4031],[-97.3941,19.4073],[-97.3901,19.4286],[-97.3573,19.4324],[-97.3469,19.451],[-97.3483,19.4846],[-97.3707,19.495],[-97.3949,19.4924],[-97.4055,19.5255],[-97.4249,19.5436],[-97.4269,19.5692],[-97.4341,19.5884],[-97.428,19.6159],[-97.4185,19.6272],[-97.4027,19.6153],[-97.3804,19.634],[-97.3579,19.6232],[-97.3484,19.6126],[-97.3108,19.6331],[-97.3002,19.6137],[-97.2851,19.6166],[-97.2679,19.638],[-97.2616,19.6456],[-97.238,19.6368]]]},properties:{id:"30128",COUNTYID:"128",COUNTY:"Perote",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30128"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.7289,17.9203],[-95.7009,17.9089],[-95.7003,17.8908],[-95.6708,17.8853],[-95.6562,17.8928],[-95.6515,17.9097],[-95.6317,17.8915],[-95.5627,17.8833],[-95.552,17.8993],[-95.5314,17.9058],[-95.5229,17.8984],[-95.5132,17.8771],[-95.4889,17.8726],[-95.4775,17.8575],[-95.4811,17.8353],[-95.4724,17.8177],[-95.475,17.802],[-95.4686,17.7736],[-95.4459,17.7735],[-95.4344,17.7531],[-95.4258,17.7262],[-95.4117,17.7122],[-95.4114,17.6942],[-95.3831,17.6905],[-95.3642,17.6759],[-95.3512,17.6782],[-95.3517,17.6718],[-95.3876,17.6633],[-95.3953,17.6518],[-95.4107,17.6497],[-95.438,17.6317],[-95.4769,17.5884],[-95.4832,17.6012],[-95.514,17.5855],[-95.5172,17.571],[-95.5301,17.571],[-95.5539,17.5671],[-95.5667,17.5974],[-95.5112,17.6283],[-95.5202,17.64],[-95.5481,17.6345],[-95.5513,17.6526],[-95.588,17.6413],[-95.6,17.6686],[-95.6023,17.6856],[-95.6264,17.6838],[-95.6515,17.6963],[-95.6607,17.7321],[-95.6746,17.7275],[-95.6866,17.7506],[-95.719,17.7216],[-95.733,17.7172],[-95.749,17.7227],[-95.7521,17.6969],[-95.7666,17.687],[-95.7734,17.6238],[-95.7856,17.6334],[-95.8033,17.6294],[-95.808,17.6468],[-95.8312,17.653],[-95.8438,17.6727],[-95.8675,17.6848],[-95.873,17.7178],[-95.9011,17.7287],[-95.899,17.7543],[-95.8848,17.7718],[-95.8672,17.7732],[-95.8668,17.7996],[-95.8549,17.8071],[-95.8502,17.8445],[-95.8,17.9498],[-95.7897,17.9361],[-95.765,17.9259],[-95.7289,17.9203]]]},properties:{id:"30130",COUNTYID:"130",COUNTY:"Playa Vicente",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30130"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-98.3407,21.1698],[-98.342,21.161],[-98.365,21.1617],[-98.3786,21.1762],[-98.3458,21.1801],[-98.3407,21.1698]]],[[[-98.4327,21.2561],[-98.4523,21.2393],[-98.4292,21.2147],[-98.4224,21.1815],[-98.424,21.1673],[-98.4464,21.1797],[-98.4535,21.211],[-98.4816,21.2296],[-98.4693,21.2342],[-98.4692,21.2495],[-98.4993,21.2522],[-98.519,21.2477],[-98.5412,21.2695],[-98.4978,21.3279],[-98.4779,21.3211],[-98.4589,21.3008],[-98.4576,21.2823],[-98.444,21.2845],[-98.4327,21.2561]]]]},properties:{id:"30056",COUNTYID:"056",COUNTY:"Chiconamel",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30056"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.4325,17.4538],[-94.5196,17.4629],[-94.531,17.4595],[-94.5296,17.4182],[-94.4847,17.4005],[-94.4942,17.3884],[-94.5954,17.4011],[-94.5995,17.3608],[-94.6087,17.3699],[-94.6323,17.3795],[-94.6389,17.3216],[-94.6553,17.3309],[-94.661,17.3566],[-94.652,17.3798],[-94.703,17.3841],[-94.7176,17.3705],[-94.7307,17.3742],[-94.7304,17.392],[-94.7181,17.3943],[-94.7137,17.4133],[-94.7285,17.4281],[-94.7388,17.4237],[-94.7505,17.4417],[-94.744,17.452],[-94.7598,17.4658],[-94.7804,17.4586],[-94.7936,17.4417],[-94.8103,17.43],[-94.8525,17.4646],[-94.8516,17.4856],[-94.8427,17.4986],[-94.8243,17.5013],[-94.8125,17.4862],[-94.7946,17.4788],[-94.7805,17.4814],[-94.7667,17.4982],[-94.7457,17.4875],[-94.7257,17.5028],[-94.7094,17.5335],[-94.7195,17.55],[-94.7537,17.5711],[-94.761,17.5843],[-94.7562,17.5968],[-94.7314,17.6033],[-94.7295,17.6149],[-94.7496,17.6301],[-94.7471,17.6444],[-94.7187,17.6562],[-94.7252,17.6701],[-94.7177,17.6881],[-94.6989,17.7055],[-94.7037,17.7156],[-94.6759,17.7196],[-94.685,17.7409],[-94.6718,17.7506],[-94.6748,17.7679],[-94.6527,17.7731],[-94.6462,17.815],[-94.6265,17.8188],[-94.6337,17.844],[-94.6051,17.8075],[-94.5777,17.8163],[-94.5718,17.8076],[-94.607,17.763],[-94.5991,17.7398],[-94.5824,17.7196],[-94.5904,17.7111],[-94.5775,17.6474],[-94.5563,17.6554],[-94.5394,17.647],[-94.5174,17.6439],[-94.4847,17.652],[-94.4511,17.6276],[-94.4355,17.608],[-94.439,17.5886],[-94.4513,17.5704],[-94.4723,17.5549],[-94.4711,17.5047],[-94.4566,17.482],[-94.4441,17.4803],[-94.4325,17.4538]]]},properties:{id:"30070",COUNTYID:"070",COUNTY:"Hidalgotitlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30070"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.6922,18.0065],[-94.6963,17.9649],[-94.6763,17.9623],[-94.6714,17.9557],[-94.6741,17.9404],[-94.685,17.9359],[-94.6898,17.9181],[-94.6802,17.8993],[-94.6896,17.8867],[-94.6669,17.8724],[-94.6466,17.8699],[-94.6337,17.844],[-94.6265,17.8188],[-94.6462,17.815],[-94.6527,17.7731],[-94.6748,17.7679],[-94.6718,17.7506],[-94.685,17.7409],[-94.6759,17.7196],[-94.7037,17.7156],[-94.7178,17.7416],[-94.7321,17.7384],[-94.7384,17.7514],[-94.7543,17.7515],[-94.756,17.7746],[-94.7739,17.7785],[-94.7779,17.793],[-94.7597,17.829],[-94.7389,17.8346],[-94.7133,17.8613],[-94.7347,17.8825],[-94.7664,17.8851],[-94.7702,17.9105],[-94.7823,17.9141],[-94.7808,17.9296],[-94.7914,17.9801],[-94.7813,17.9996],[-94.765,18.0056],[-94.7695,18.0265],[-94.7053,18.017],[-94.6922,18.0065]]]},properties:{id:"30089",COUNTYID:"089",COUNTY:"Jáltipan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30089"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.2181,20.7959],[-97.2052,20.7761],[-97.2045,20.7605],[-97.1938,20.738],[-97.1949,20.7037],[-97.1807,20.6707],[-97.2026,20.6714],[-97.2151,20.6534],[-97.2309,20.6603],[-97.2496,20.6594],[-97.2769,20.6341],[-97.2792,20.617],[-97.2937,20.6171],[-97.3054,20.6354],[-97.295,20.6476],[-97.3016,20.6596],[-97.351,20.6492],[-97.3796,20.6548],[-97.3661,20.6782],[-97.3741,20.6936],[-97.3848,20.6898],[-97.4062,20.7105],[-97.4059,20.7279],[-97.3904,20.7377],[-97.3654,20.7345],[-97.3452,20.7439],[-97.337,20.7628],[-97.3267,20.7676],[-97.313,20.794],[-97.2861,20.801],[-97.2675,20.7975],[-97.2562,20.778],[-97.2283,20.7861],[-97.2181,20.7959]]]},properties:{id:"30033",COUNTYID:"033",COUNTY:"Cazones de Herrera",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30033"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.3302,21.5584],[-97.3472,21.5549],[-97.3874,21.5365],[-97.4046,21.556],[-97.4272,21.5685],[-97.4466,21.5898],[-97.4604,21.5973],[-97.4934,21.6388],[-97.5063,21.6686],[-97.5206,21.6749],[-97.5448,21.699],[-97.5611,21.73],[-97.5899,21.7541],[-97.6074,21.7744],[-97.6207,21.7799],[-97.628,21.8119],[-97.6377,21.8222],[-97.6368,21.8424],[-97.6488,21.8564],[-97.6779,21.9215],[-97.7166,21.907],[-97.72,21.9157],[-97.7582,21.9215],[-97.7603,21.9315],[-97.7896,21.9314],[-97.8185,21.923],[-97.825,21.9388],[-97.8518,21.9463],[-97.8553,21.9343],[-97.8773,21.9083],[-97.9228,21.9166],[-97.9265,21.9389],[-97.965,21.9411],[-98.0346,21.9489],[-98.046,21.959],[-98.0722,21.9953],[-98.081,22.0077],[-98.0655,22.0238],[-98.054,22.0145],[-98.0218,22.0317],[-98.0066,22.0698],[-97.9781,22.0795],[-97.9813,22.1072],[-97.9731,22.1238],[-97.9329,22.1146],[-97.9529,22.0773],[-97.9213,22.071],[-97.9061,22.0934],[-97.8935,22.0894],[-97.8965,22.1247],[-97.86,22.148],[-97.8444,22.1432],[-97.837,22.1522],[-97.8073,22.1533],[-97.7852,22.1663],[-97.7764,22.1328],[-97.7546,22.0685],[-97.7309,22.0153],[-97.6947,21.9513],[-97.6161,21.8349],[-97.5643,21.7708],[-97.5219,21.7294],[-97.4801,21.696],[-97.4522,21.6676],[-97.4,21.6263],[-97.3436,21.5877],[-97.3274,21.5656],[-97.3302,21.5584]]]},properties:{id:"30152",COUNTYID:"152",COUNTY:"Tampico Alto",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30152"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.5408,18.3366],[-95.5328,18.3218],[-95.5056,18.3179],[-95.5052,18.2817],[-95.5152,18.2525],[-95.5051,18.2454],[-95.4716,18.2507],[-95.4626,18.2607],[-95.45,18.2461],[-95.4343,18.2449],[-95.4457,18.2392],[-95.4456,18.2238],[-95.4301,18.2228],[-95.4035,18.2333],[-95.3817,18.2264],[-95.3929,18.2117],[-95.4122,18.2],[-95.3887,18.1779],[-95.4467,18.1559],[-95.4583,18.1739],[-95.48,18.1933],[-95.4954,18.166],[-95.506,18.1591],[-95.5181,18.1177],[-95.5006,18.1016],[-95.4986,18.0904],[-95.4693,18.0587],[-95.4466,18.0278],[-95.4307,18.0204],[-95.4414,17.9933],[-95.4349,17.9843],[-95.434,17.9572],[-95.4671,17.9288],[-95.479,17.908],[-95.4915,17.9101],[-95.5229,17.8984],[-95.5314,17.9058],[-95.552,17.8993],[-95.5627,17.8833],[-95.6317,17.8915],[-95.6515,17.9097],[-95.6562,17.8928],[-95.6708,17.8853],[-95.7003,17.8908],[-95.7009,17.9089],[-95.7289,17.9203],[-95.7129,17.9478],[-95.7001,17.956],[-95.6998,17.9821],[-95.6843,17.9962],[-95.6616,17.9919],[-95.6576,18.0117],[-95.6472,18.0291],[-95.6497,18.0517],[-95.6456,18.0684],[-95.6299,18.0709],[-95.6255,18.0861],[-95.6619,18.0945],[-95.6648,18.1112],[-95.6499,18.1244],[-95.6537,18.1438],[-95.6446,18.2057],[-95.6141,18.2152],[-95.6069,18.2308],[-95.5811,18.2429],[-95.5788,18.2596],[-95.5588,18.2756],[-95.5972,18.3158],[-95.5861,18.3288],[-95.5941,18.3544],[-95.5773,18.3632],[-95.5523,18.3641],[-95.5408,18.3366]]]},properties:{id:"30077",COUNTYID:"077",COUNTY:"Isla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30077"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.083,20.0516],[-97.0967,20.024],[-97.153,20.0133],[-97.1492,19.9983],[-97.1726,19.9837],[-97.1844,19.9654],[-97.2228,19.9226],[-97.2417,19.9376],[-97.2558,19.9325],[-97.2688,19.9463],[-97.261,19.9764],[-97.24,19.9873],[-97.2246,20.0094],[-97.2072,20.0145],[-97.2045,20.0299],[-97.2111,20.0426],[-97.2062,20.0564],[-97.1857,20.0623],[-97.1836,20.08],[-97.1539,20.1129],[-97.1406,20.1198],[-97.1081,20.0996],[-97.1199,20.0866],[-97.083,20.0516]]]},properties:{id:"30183",COUNTYID:"183",COUNTY:"Tlapacoyan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30183"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.5972,18.1935],[-94.6134,18.2097],[-94.6262,18.2113],[-94.6385,18.1795],[-94.6326,18.1591],[-94.6063,18.1549],[-94.5957,18.1264],[-94.5849,18.1216],[-94.5942,18.0963],[-94.6267,18.0999],[-94.6526,18.0896],[-94.74,18.1186],[-94.7588,18.1326],[-94.7654,18.1454],[-94.7534,18.1566],[-94.7594,18.1713],[-94.7459,18.1785],[-94.7502,18.1913],[-94.7318,18.193],[-94.7177,18.2026],[-94.723,18.2145],[-94.7084,18.221],[-94.7263,18.2419],[-94.7385,18.271],[-94.7305,18.2872],[-94.7406,18.3097],[-94.7197,18.3162],[-94.7137,18.3313],[-94.6943,18.336],[-94.6825,18.35],[-94.6662,18.3371],[-94.6556,18.31],[-94.6234,18.2874],[-94.6244,18.2535],[-94.6076,18.2049],[-94.5972,18.1935]]]},properties:{id:"30122",COUNTYID:"122",COUNTY:"Pajapan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30122"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.5877,20.812],[-97.577,20.7992],[-97.5912,20.7531],[-97.6005,20.7361],[-97.6025,20.7096],[-97.6096,20.6959],[-97.6084,20.6711],[-97.6319,20.656],[-97.6585,20.6566],[-97.6653,20.6414],[-97.6819,20.637],[-97.7023,20.6411],[-97.7048,20.6296],[-97.726,20.6367],[-97.7504,20.6528],[-97.7406,20.6601],[-97.7395,20.6872],[-97.7515,20.7016],[-97.749,20.733],[-97.727,20.7432],[-97.7199,20.7768],[-97.7281,20.785],[-97.714,20.7996],[-97.7389,20.8015],[-97.7503,20.8148],[-97.7247,20.808],[-97.6854,20.8069],[-97.6826,20.8152],[-97.6462,20.8104],[-97.6245,20.8286],[-97.5877,20.812]]]},properties:{id:"30157",COUNTYID:"157",COUNTY:"Castillo de Teayo",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30157"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9668,19.1957],[-96.9592,19.1853],[-96.9415,19.1814],[-96.9258,19.1594],[-96.8856,19.1417],[-96.886,19.1582],[-96.8733,19.1505],[-96.8235,19.1404],[-96.815,19.1283],[-96.7798,19.1024],[-96.7359,19.0895],[-96.7041,19.0883],[-96.6844,19.078],[-96.7397,19.077],[-96.7688,19.0914],[-96.7897,19.0961],[-96.7988,19.106],[-96.8558,19.1333],[-96.88,19.1242],[-96.8724,19.1],[-96.8545,19.094],[-96.8456,19.0788],[-96.8829,19.094],[-96.8897,19.0911],[-96.9036,19.095],[-96.9238,19.0855],[-96.9717,19.0858],[-96.9824,19.096],[-96.9997,19.0861],[-97.0256,19.1241],[-97.0381,19.1343],[-97.0413,19.1739],[-97.056,19.198],[-97.0296,19.218],[-97.03,19.2087],[-97.0063,19.2098],[-96.993,19.2012],[-96.9668,19.1957]]]},properties:{id:"30071",COUNTYID:"071",COUNTY:"Huatusco",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30071"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.7037,17.7156],[-94.6989,17.7055],[-94.7177,17.6881],[-94.7252,17.6701],[-94.7187,17.6562],[-94.7471,17.6444],[-94.7496,17.6301],[-94.7295,17.6149],[-94.7314,17.6033],[-94.7562,17.5968],[-94.761,17.5843],[-94.7859,17.5766],[-94.8049,17.5834],[-94.8004,17.618],[-94.8065,17.6187],[-94.8035,17.6634],[-94.8099,17.6855],[-94.8295,17.7062],[-94.8302,17.7371],[-94.8435,17.7379],[-94.8794,17.7499],[-94.8697,17.7649],[-94.8755,17.7803],[-94.891,17.798],[-94.8933,17.8369],[-94.8904,17.8604],[-94.8682,17.8634],[-94.8529,17.8776],[-94.8553,17.9033],[-94.8465,17.9245],[-94.8567,17.9386],[-94.8565,17.9552],[-94.8131,17.9684],[-94.7914,17.9801],[-94.7808,17.9296],[-94.7823,17.9141],[-94.7702,17.9105],[-94.7664,17.8851],[-94.7347,17.8825],[-94.7133,17.8613],[-94.7389,17.8346],[-94.7597,17.829],[-94.7779,17.793],[-94.7739,17.7785],[-94.756,17.7746],[-94.7543,17.7515],[-94.7384,17.7514],[-94.7321,17.7384],[-94.7178,17.7416],[-94.7037,17.7156]]]},properties:{id:"30172",COUNTYID:"172",COUNTY:"Texistepec",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30172"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.3874,21.5365],[-97.4881,21.5687],[-97.4887,21.5767],[-97.5305,21.5809],[-97.6452,21.6276],[-97.667,21.6053],[-97.697,21.6183],[-97.7166,21.6054],[-97.7277,21.5894],[-97.7259,21.5736],[-97.7132,21.5654],[-97.7503,21.5289],[-97.7667,21.5308],[-97.7962,21.5216],[-97.792,21.5028],[-97.8087,21.496],[-97.8137,21.4848],[-97.8339,21.47],[-97.8422,21.4343],[-97.9018,21.4347],[-97.9085,21.4425],[-97.9321,21.4276],[-97.957,21.4146],[-97.9536,21.402],[-97.9701,21.4163],[-97.9751,21.4516],[-97.9884,21.4657],[-97.9908,21.4846],[-97.9784,21.5078],[-97.9834,21.5271],[-97.9806,21.5546],[-97.9745,21.562],[-97.9716,21.5984],[-97.9879,21.6203],[-97.9906,21.6571],[-98.0292,21.6673],[-98.0449,21.6651],[-98.0578,21.6702],[-98.091,21.6653],[-98.0995,21.6465],[-98.1277,21.6596],[-98.1485,21.679],[-98.1595,21.7115],[-98.1424,21.7284],[-98.1438,21.7746],[-98.1204,21.7954],[-98.1198,21.8129],[-98.1295,21.8318],[-98.1226,21.8446],[-98.1013,21.8479],[-98.0899,21.8671],[-98.1008,21.8809],[-98.1004,21.8969],[-98.122,21.9212],[-98.1226,21.9372],[-98.1024,21.947],[-98.0941,21.9609],[-98.1067,21.977],[-98.0887,21.9828],[-98.0722,21.9953],[-98.046,21.959],[-98.0346,21.9489],[-97.965,21.9411],[-97.9265,21.9389],[-97.9228,21.9166],[-97.8773,21.9083],[-97.8553,21.9343],[-97.8518,21.9463],[-97.825,21.9388],[-97.8185,21.923],[-97.7896,21.9314],[-97.7603,21.9315],[-97.7582,21.9215],[-97.72,21.9157],[-97.7166,21.907],[-97.6779,21.9215],[-97.6488,21.8564],[-97.6368,21.8424],[-97.6377,21.8222],[-97.628,21.8119],[-97.6207,21.7799],[-97.6074,21.7744],[-97.5899,21.7541],[-97.5611,21.73],[-97.5448,21.699],[-97.5206,21.6749],[-97.5063,21.6686],[-97.4934,21.6388],[-97.4604,21.5973],[-97.4466,21.5898],[-97.4272,21.5685],[-97.4046,21.556],[-97.3874,21.5365]]]},properties:{id:"30121",COUNTYID:"121",COUNTY:"Ozuluama de Mascareñas",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30121"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9879,19.9813],[-96.9795,19.9714],[-96.9617,19.9692],[-96.9636,19.9498],[-96.9549,19.9339],[-96.9563,19.8952],[-96.9563,19.893],[-96.9745,19.8821],[-97.0036,19.8827],[-97.0175,19.8569],[-97.0324,19.8652],[-97.054,19.8519],[-97.068,19.8558],[-97.0816,19.8482],[-97.0964,19.8539],[-97.115,19.8451],[-97.1378,19.8155],[-97.1627,19.7929],[-97.1853,19.7869],[-97.1803,19.7726],[-97.1992,19.7624],[-97.2103,19.782],[-97.2288,19.7727],[-97.2503,19.7787],[-97.2604,19.7891],[-97.2437,19.8066],[-97.2391,19.826],[-97.2553,19.8403],[-97.2469,19.8542],[-97.252,19.8843],[-97.2228,19.9226],[-97.1844,19.9654],[-97.1726,19.9837],[-97.1492,19.9983],[-97.153,20.0133],[-97.0967,20.024],[-97.083,20.0516],[-97.0413,20.0481],[-97.0403,20.0337],[-97.0618,20.0335],[-97.0529,19.991],[-97.0334,19.9797],[-97.0071,19.9745],[-96.9879,19.9813]]]},properties:{id:"30023",COUNTYID:"023",COUNTY:"Atzalan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30023"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.895,22.2224],[-97.9213,22.2173],[-97.9351,22.2082],[-97.9593,22.2062],[-97.9822,22.2129],[-97.9966,22.207],[-98.0158,22.1788],[-98.0004,22.1513],[-98.021,22.1436],[-98.0297,22.1321],[-98.0431,22.135],[-98.0438,22.1483],[-98.0658,22.1413],[-98.063,22.131],[-98.0425,22.1247],[-98.0435,22.1024],[-98.0792,22.1108],[-98.0818,22.0968],[-98.0373,22.0863],[-98.031,22.0676],[-98.0066,22.0698],[-98.0218,22.0317],[-98.054,22.0145],[-98.0655,22.0238],[-98.081,22.0077],[-98.0722,21.9953],[-98.0887,21.9828],[-98.1067,21.977],[-98.0941,21.9609],[-98.1024,21.947],[-98.1226,21.9372],[-98.122,21.9212],[-98.1004,21.8969],[-98.1008,21.8809],[-98.0899,21.8671],[-98.1013,21.8479],[-98.1226,21.8446],[-98.1295,21.8318],[-98.1198,21.8129],[-98.1204,21.7954],[-98.1438,21.7746],[-98.1424,21.7284],[-98.1595,21.7115],[-98.1904,21.715],[-98.2274,21.7036],[-98.2599,21.7013],[-98.313,21.6894],[-98.3217,21.7082],[-98.3173,21.7487],[-98.3054,21.8251],[-98.3907,21.8195],[-98.4059,21.842],[-98.4096,21.878],[-98.4383,21.8875],[-98.4709,21.8524],[-98.4847,21.8557],[-98.4882,21.8376],[-98.5093,21.8244],[-98.5185,21.8314],[-98.5275,21.8614],[-98.5404,21.8735],[-98.5448,21.8899],[-98.5347,21.9064],[-98.5213,21.8972],[-98.5109,21.9072],[-98.5466,21.9193],[-98.5311,21.9344],[-98.4988,21.9274],[-98.5123,21.9495],[-98.5291,21.9506],[-98.5533,21.9334],[-98.5736,21.943],[-98.5749,21.9691],[-98.552,21.9609],[-98.5204,21.9789],[-98.4951,21.9611],[-98.4686,21.9662],[-98.482,21.983],[-98.4595,21.9952],[-98.4589,22.0063],[-98.4435,22.033],[-98.4464,22.0422],[-98.4332,22.0887],[-98.4195,22.1009],[-98.4382,22.1148],[-98.4167,22.1412],[-98.3553,22.1803],[-98.3365,22.1877],[-98.3352,22.21],[-98.3446,22.2221],[-98.326,22.2431],[-98.3696,22.2381],[-98.3681,22.2554],[-98.4051,22.2561],[-98.4011,22.2722],[-98.408,22.2841],[-98.4279,22.2838],[-98.4467,22.3056],[-98.467,22.2958],[-98.496,22.3037],[-98.5061,22.316],[-98.5256,22.3188],[-98.5352,22.3379],[-98.5548,22.338],[-98.5793,22.3486],[-98.5829,22.3731],[-98.6761,22.3732],[-98.6658,22.4037],[-98.6361,22.4137],[-98.5895,22.3947],[-98.5673,22.4014],[-98.5461,22.4002],[-98.5254,22.4068],[-98.4939,22.4255],[-98.4688,22.4289],[-98.461,22.4122],[-98.4437,22.4313],[-98.432,22.4316],[-98.4325,22.4129],[-98.419,22.4127],[-98.4095,22.3999],[-98.3833,22.4203],[-98.3878,22.3893],[-98.3429,22.3897],[-98.3132,22.411],[-98.3268,22.4291],[-98.301,22.4612],[-98.2836,22.4634],[-98.2776,22.4489],[-98.2555,22.4553],[-98.252,22.4692],[-98.2297,22.4621],[-98.2215,22.4712],[-98.1934,22.4632],[-98.1999,22.449],[-98.1891,22.44],[-98.189,22.4253],[-98.166,22.4111],[-98.1516,22.4129],[-98.112,22.3938],[-98.1119,22.3782],[-98.0847,22.3687],[-98.0771,22.3516],[-98.0285,22.3584],[-98.0195,22.3522],[-97.9889,22.3498],[-97.9705,22.3281],[-97.9869,22.3016],[-97.9567,22.2939],[-97.9312,22.2696],[-97.9342,22.2542],[-97.9172,22.248],[-97.895,22.2224]]]},properties:{id:"30123",COUNTYID:"123",COUNTY:"Pánuco",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30123"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.6841,18.6443],[-96.6722,18.6186],[-96.6935,18.5892],[-96.6909,18.568],[-96.6996,18.5533],[-96.7156,18.5732],[-96.7242,18.559],[-96.7118,18.5481],[-96.7269,18.5298],[-96.7062,18.5263],[-96.7029,18.5103],[-96.688,18.5126],[-96.6841,18.4742],[-96.7044,18.4524],[-96.7059,18.4229],[-96.681,18.4122],[-96.6896,18.381],[-96.7173,18.3804],[-96.7292,18.3749],[-96.7415,18.3839],[-96.7281,18.3966],[-96.7285,18.4091],[-96.7591,18.4083],[-96.781,18.4291],[-96.797,18.5119],[-96.8134,18.5176],[-96.8262,18.4978],[-96.8428,18.5017],[-96.8653,18.5158],[-96.8663,18.5259],[-96.8659,18.5398],[-96.8415,18.5544],[-96.8337,18.588],[-96.8444,18.5924],[-96.8642,18.6272],[-96.8798,18.6392],[-96.864,18.6596],[-96.8665,18.6757],[-96.8823,18.6938],[-96.8897,18.7254],[-96.8849,18.7449],[-96.8717,18.7523],[-96.8472,18.7439],[-96.8429,18.7526],[-96.7862,18.7122],[-96.7723,18.6939],[-96.7441,18.6925],[-96.7235,18.6796],[-96.7082,18.6582],[-96.6841,18.6443]]]},properties:{id:"30173",COUNTYID:"173",COUNTY:"Tezonapa",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30173"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.8991,18.5487],[-94.907,18.5209],[-94.9124,18.4829],[-94.9059,18.4495],[-94.8857,18.4541],[-94.864,18.4523],[-94.8822,18.4436],[-94.8965,18.4089],[-94.8692,18.3896],[-94.8803,18.3718],[-94.9078,18.3599],[-94.9348,18.3559],[-94.9449,18.365],[-94.973,18.3639],[-94.9854,18.3468],[-94.9992,18.3477],[-95.026,18.3375],[-95.0179,18.32],[-95.0303,18.3097],[-95.021,18.2844],[-95.0423,18.2712],[-95.0632,18.277],[-95.0787,18.3094],[-95.0981,18.3037],[-95.1153,18.3105],[-95.1224,18.2987],[-95.1614,18.3039],[-95.1488,18.3186],[-95.1511,18.3695],[-95.1555,18.3901],[-95.134,18.4248],[-95.1302,18.4493],[-95.1371,18.4709],[-95.1514,18.4919],[-95.121,18.4958],[-95.1023,18.4889],[-95.0855,18.4908],[-95.0743,18.5035],[-95.0873,18.5285],[-95.1048,18.534],[-95.1175,18.53],[-95.1307,18.5414],[-95.1108,18.5507],[-95.1045,18.567],[-95.0802,18.5765],[-95.0497,18.5996],[-95.044,18.5778],[-94.9891,18.5569],[-94.9435,18.5494],[-94.8991,18.5487]]]},properties:{id:"30032",COUNTYID:"032",COUNTY:"Catemaco",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30032"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.1497,19.1095],[-96.1326,19.1179],[-96.1132,19.1071],[-96.1178,19.0921],[-96.1394,19.095],[-96.1432,19.0589],[-96.1172,19.0557],[-96.0966,19.0417],[-96.1111,19.0105],[-96.092,18.9949],[-96.0756,18.9976],[-96.0692,18.9888],[-96.0439,18.9866],[-96.022,18.9406],[-96.0375,18.9256],[-96.0716,18.9512],[-96.1016,18.8992],[-96.1204,18.897],[-96.1324,18.8595],[-96.146,18.8422],[-96.1651,18.8462],[-96.1839,18.8425],[-96.1934,18.9023],[-96.2115,18.8869],[-96.2159,18.92],[-96.2463,18.9025],[-96.2635,18.9173],[-96.2529,18.923],[-96.2537,18.945],[-96.2332,18.9539],[-96.2172,18.9831],[-96.1926,18.9982],[-96.1853,19.008],[-96.1876,19.0243],[-96.1742,19.0381],[-96.1772,19.0502],[-96.246,19.0458],[-96.2644,19.0642],[-96.2563,19.0919],[-96.2636,19.1333],[-96.244,19.1449],[-96.2221,19.1192],[-96.2108,19.1242],[-96.1904,19.1027],[-96.1497,19.1095]]]},properties:{id:"30105",COUNTYID:"105",COUNTY:"Medellín de Bravo",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30105"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.9159,20.8749],[-97.9017,20.8478],[-97.9202,20.8342],[-97.9218,20.8092],[-97.9285,20.7892],[-97.9137,20.7839],[-97.8948,20.7978],[-97.9224,20.7165],[-97.8974,20.7032],[-97.9144,20.6872],[-97.9178,20.6712],[-97.9078,20.6643],[-97.9068,20.6436],[-97.8952,20.6225],[-97.906,20.5987],[-97.9273,20.5719],[-97.9808,20.5407],[-97.9793,20.5149],[-98.0042,20.5249],[-98.0287,20.5897],[-98.0177,20.6017],[-98.021,20.6268],[-98.04,20.6319],[-98.0668,20.6739],[-98.0828,20.6421],[-98.0875,20.6225],[-98.1112,20.6162],[-98.1297,20.6393],[-98.1275,20.6659],[-98.12,20.678],[-98.1482,20.6986],[-98.1297,20.7288],[-98.1097,20.7274],[-98.1096,20.7616],[-98.0931,20.7602],[-98.0985,20.7789],[-98.1263,20.8009],[-98.1344,20.8156],[-98.1211,20.8274],[-98.1097,20.8632],[-98.0989,20.8726],[-98.0782,20.8709],[-98.0567,20.8777],[-98.0416,20.8954],[-98.0267,20.8827],[-97.9908,20.8776],[-97.9637,20.8532],[-97.9545,20.8318],[-97.9419,20.8369],[-97.9237,20.8555],[-97.9159,20.8749]]]},properties:{id:"30083",COUNTYID:"083",COUNTY:"Ixhuatlán de Madero",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30083"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.0497,18.5996],[-95.0802,18.5765],[-95.1045,18.567],[-95.1108,18.5507],[-95.1307,18.5414],[-95.1175,18.53],[-95.1048,18.534],[-95.0873,18.5285],[-95.0743,18.5035],[-95.0855,18.4908],[-95.1023,18.4889],[-95.121,18.4958],[-95.1514,18.4919],[-95.1371,18.4709],[-95.1302,18.4493],[-95.134,18.4248],[-95.1555,18.3901],[-95.1511,18.3695],[-95.1488,18.3186],[-95.1614,18.3039],[-95.19,18.2942],[-95.1879,18.2863],[-95.2049,18.2564],[-95.2229,18.2586],[-95.2374,18.2793],[-95.2442,18.2637],[-95.2129,18.2506],[-95.2179,18.2375],[-95.2504,18.2322],[-95.263,18.2426],[-95.2919,18.2451],[-95.2839,18.2171],[-95.2959,18.2122],[-95.3152,18.2292],[-95.3459,18.2364],[-95.3817,18.2264],[-95.4035,18.2333],[-95.4301,18.2228],[-95.4456,18.2238],[-95.4457,18.2392],[-95.4343,18.2449],[-95.429,18.2576],[-95.3954,18.2562],[-95.3867,18.2692],[-95.3715,18.2677],[-95.3559,18.2779],[-95.3417,18.3012],[-95.3442,18.321],[-95.3254,18.3647],[-95.3219,18.386],[-95.2981,18.4029],[-95.2848,18.4018],[-95.27,18.4301],[-95.2717,18.4472],[-95.2672,18.4878],[-95.2327,18.506],[-95.2344,18.5175],[-95.2654,18.5208],[-95.2652,18.5304],[-95.279,18.5478],[-95.2842,18.5675],[-95.3243,18.573],[-95.2875,18.5939],[-95.2938,18.6165],[-95.2861,18.6641],[-95.2935,18.6706],[-95.299,18.6965],[-95.2873,18.7153],[-95.2722,18.7078],[-95.2455,18.7039],[-95.1984,18.7042],[-95.1542,18.6843],[-95.1216,18.6525],[-95.0795,18.6417],[-95.0811,18.6317],[-95.062,18.618],[-95.0497,18.5996]]]},properties:{id:"30141",COUNTYID:"141",COUNTY:"San Andrés Tuxtla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30141"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.5301,17.571],[-95.5254,17.5613],[-95.5678,17.5512],[-95.5777,17.5387],[-95.5996,17.5362],[-95.6377,17.5488],[-95.6649,17.5354],[-95.7088,17.5319],[-95.7212,17.5369],[-95.7296,17.5715],[-95.7501,17.5863],[-95.7697,17.5881],[-95.7734,17.6238],[-95.7666,17.687],[-95.7521,17.6969],[-95.749,17.7227],[-95.733,17.7172],[-95.719,17.7216],[-95.6866,17.7506],[-95.6746,17.7275],[-95.6607,17.7321],[-95.6515,17.6963],[-95.6264,17.6838],[-95.6023,17.6856],[-95.6,17.6686],[-95.588,17.6413],[-95.5513,17.6526],[-95.5481,17.6345],[-95.5202,17.64],[-95.5112,17.6283],[-95.5667,17.5974],[-95.5539,17.5671],[-95.5301,17.571]]]},properties:{id:"30212",COUNTYID:"212",COUNTY:"Santiago Sochiapan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30212"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0142,19.5218],[-97.0025,19.5113],[-96.9804,19.5147],[-96.9686,19.5076],[-96.9477,19.5142],[-96.9353,19.4929],[-96.9224,19.4884],[-96.9066,19.4942],[-96.8999,19.4855],[-96.9034,19.4632],[-96.8867,19.4458],[-96.8396,19.438],[-96.8092,19.4243],[-96.8025,19.4126],[-96.8165,19.3953],[-96.8252,19.379],[-96.8045,19.3591],[-96.8435,19.3714],[-96.848,19.3776],[-96.8885,19.3825],[-96.8954,19.3756],[-96.9224,19.3931],[-96.95,19.4225],[-96.9645,19.4267],[-96.9983,19.4497],[-96.999,19.4623],[-97.0274,19.468],[-97.0431,19.4759],[-97.0568,19.4967],[-97.0717,19.5095],[-97.1059,19.5215],[-97.1045,19.5303],[-97.0944,19.5323],[-97.0796,19.5202],[-97.0292,19.5085],[-97.0142,19.5218]]]},properties:{id:"30038",COUNTYID:"038",COUNTY:"Coatepec",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30038"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.5506,18.653],[-95.5614,18.6408],[-95.5512,18.6214],[-95.5818,18.605],[-95.5802,18.5905],[-95.5668,18.5811],[-95.5733,18.5611],[-95.5441,18.5339],[-95.5342,18.4872],[-95.5419,18.4822],[-95.5179,18.4583],[-95.5204,18.4394],[-95.5102,18.4265],[-95.5135,18.3637],[-95.5232,18.3635],[-95.527,18.3349],[-95.5408,18.3366],[-95.5523,18.3641],[-95.5773,18.3632],[-95.5941,18.3544],[-95.594,18.3549],[-95.6101,18.3608],[-95.6173,18.3865],[-95.6316,18.3935],[-95.6312,18.4208],[-95.6459,18.4308],[-95.6464,18.4482],[-95.6623,18.4641],[-95.6831,18.4952],[-95.6991,18.5046],[-95.7166,18.5236],[-95.7289,18.5435],[-95.7544,18.5348],[-95.7583,18.555],[-95.7489,18.5806],[-95.7488,18.6002],[-95.7346,18.6026],[-95.7215,18.6155],[-95.7252,18.6369],[-95.7247,18.667],[-95.7115,18.676],[-95.696,18.6741],[-95.6787,18.6833],[-95.6562,18.6869],[-95.6469,18.6959],[-95.5943,18.692],[-95.58,18.671],[-95.5577,18.662],[-95.5506,18.653]]]},properties:{id:"30178",COUNTYID:"178",COUNTY:"Tlacotalpan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30178"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8537,18.9606],[-96.8294,18.9374],[-96.8364,18.9251],[-96.8239,18.9015],[-96.8248,18.8822],[-96.8515,18.8645],[-96.8223,18.8434],[-96.8317,18.8244],[-96.848,18.807],[-96.8352,18.7991],[-96.8377,18.7859],[-96.8686,18.7834],[-96.8887,18.8008],[-96.9043,18.7861],[-96.9242,18.7949],[-96.9264,18.8022],[-96.9342,18.8165],[-96.9568,18.8257],[-96.9566,18.8383],[-96.9483,18.852],[-96.9176,18.8638],[-96.8988,18.8644],[-96.8925,18.8872],[-96.9069,18.8967],[-96.8961,18.9069],[-96.8753,18.9112],[-96.8831,18.9266],[-96.8814,18.9494],[-96.8733,18.9573],[-96.8537,18.9606]]]},properties:{id:"30014",COUNTYID:"014",COUNTY:"Amatlán de los Reyes",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30014"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.7289,17.9203],[-95.765,17.9259],[-95.7897,17.9361],[-95.8,17.9498],[-95.8242,18.081],[-95.7809,18.093],[-95.7758,18.1245],[-95.7654,18.1506],[-95.7286,18.164],[-95.7262,18.1823],[-95.7077,18.1888],[-95.7183,18.2148],[-95.683,18.2507],[-95.654,18.262],[-95.6574,18.2768],[-95.6447,18.281],[-95.6424,18.3045],[-95.6615,18.3084],[-95.6556,18.3299],[-95.643,18.3404],[-95.6397,18.3563],[-95.6375,18.3514],[-95.594,18.3549],[-95.5941,18.3544],[-95.5861,18.3288],[-95.5972,18.3158],[-95.5588,18.2756],[-95.5788,18.2596],[-95.5811,18.2429],[-95.6069,18.2308],[-95.6141,18.2152],[-95.6446,18.2057],[-95.6537,18.1438],[-95.6499,18.1244],[-95.6648,18.1112],[-95.6619,18.0945],[-95.6255,18.0861],[-95.6299,18.0709],[-95.6456,18.0684],[-95.6497,18.0517],[-95.6472,18.0291],[-95.6576,18.0117],[-95.6616,17.9919],[-95.6843,17.9962],[-95.6998,17.9821],[-95.7001,17.956],[-95.7129,17.9478],[-95.7289,17.9203]]]},properties:{id:"30169",COUNTYID:"169",COUNTY:"José Azueta",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30169"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.5855,21.3517],[-97.5888,21.3096],[-97.5984,21.2922],[-97.6268,21.2828],[-97.6538,21.2878],[-97.6596,21.28],[-97.6687,21.2993],[-97.6843,21.2933],[-97.6756,21.2726],[-97.7158,21.2531],[-97.7461,21.2807],[-97.7744,21.331],[-97.79,21.3323],[-97.7882,21.3465],[-97.7747,21.3622],[-97.7768,21.3468],[-97.7556,21.3442],[-97.7317,21.3336],[-97.7221,21.343],[-97.7033,21.342],[-97.6974,21.3575],[-97.6849,21.3621],[-97.6515,21.3433],[-97.6437,21.3479],[-97.6169,21.332],[-97.5855,21.3517]]]},properties:{id:"30013",COUNTYID:"013",COUNTY:"Naranjos Amatlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30013"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.8049,17.5834],[-94.7859,17.5766],[-94.761,17.5843],[-94.7537,17.5711],[-94.7195,17.55],[-94.7094,17.5335],[-94.7257,17.5028],[-94.7457,17.4875],[-94.7667,17.4982],[-94.7805,17.4814],[-94.7946,17.4788],[-94.8125,17.4862],[-94.8243,17.5013],[-94.8427,17.4986],[-94.8516,17.4856],[-94.8525,17.4646],[-94.8103,17.43],[-94.7936,17.4417],[-94.7804,17.4586],[-94.7598,17.4658],[-94.744,17.452],[-94.7505,17.4417],[-94.7388,17.4237],[-94.7285,17.4281],[-94.7137,17.4133],[-94.7181,17.3943],[-94.7304,17.392],[-94.7307,17.3742],[-94.7176,17.3705],[-94.703,17.3841],[-94.652,17.3798],[-94.661,17.3566],[-94.6553,17.3309],[-94.6964,17.3361],[-94.6997,17.2949],[-94.7259,17.2952],[-94.7541,17.2791],[-94.7443,17.2596],[-94.7564,17.2274],[-94.7566,17.2136],[-94.7436,17.1847],[-94.9228,17.1938],[-94.915,17.2066],[-94.8954,17.2564],[-94.9097,17.268],[-94.9018,17.2964],[-94.9083,17.3138],[-94.9289,17.3247],[-94.9458,17.3141],[-94.9712,17.331],[-95.0766,17.3729],[-95.2046,17.5387],[-95.1978,17.5459],[-95.1763,17.546],[-95.1722,17.5569],[-95.1518,17.5627],[-95.1245,17.5595],[-95.0819,17.5732],[-95.0604,17.5717],[-95.0481,17.5743],[-95.024,17.5637],[-95.0002,17.5794],[-94.9639,17.5745],[-94.9395,17.5785],[-94.9236,17.5686],[-94.8909,17.5816],[-94.852,17.5846],[-94.8412,17.5904],[-94.811,17.5885],[-94.8049,17.5834]]]},properties:{id:"30091",COUNTYID:"091",COUNTY:"Jesús Carranza",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30091"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.8747,21.0648],[-97.8899,21.0486],[-97.9125,21.0507],[-97.9211,21.0263],[-97.9058,21.0199],[-97.9068,21.0003],[-97.8998,20.9895],[-97.8776,20.9814],[-97.8655,20.989],[-97.8581,20.9715],[-97.8783,20.9364],[-97.8745,20.9036],[-97.8803,20.8933],[-97.8995,20.898],[-97.9159,20.8749],[-97.9237,20.8555],[-97.9419,20.8369],[-97.9545,20.8318],[-97.9637,20.8532],[-97.9908,20.8776],[-98.0267,20.8827],[-98.0416,20.8954],[-98.0567,20.8777],[-98.0782,20.8709],[-98.0989,20.8726],[-98.1097,20.8632],[-98.1185,20.8808],[-98.1573,20.8838],[-98.1678,20.8968],[-98.1883,20.9042],[-98.1985,20.8856],[-98.2249,20.9066],[-98.2394,20.923],[-98.2257,20.9594],[-98.2098,20.9707],[-98.215,20.9896],[-98.2017,20.9943],[-98.2027,21.0094],[-98.1909,21.0264],[-98.1726,21.0208],[-98.1557,21.0334],[-98.1508,21.0472],[-98.1545,21.0661],[-98.1491,21.083],[-98.1876,21.1108],[-98.1761,21.1109],[-98.1558,21.1392],[-98.1214,21.1449],[-98.1142,21.1586],[-98.0922,21.1648],[-98.0702,21.1595],[-98.0485,21.1651],[-98.0434,21.1576],[-98.0142,21.1486],[-97.9643,21.1715],[-97.9639,21.1809],[-97.9416,21.1668],[-97.941,21.1504],[-97.9505,21.1153],[-97.938,21.1041],[-97.9237,21.1066],[-97.9039,21.0961],[-97.8938,21.0744],[-97.8747,21.0648]]]},properties:{id:"30058",COUNTYID:"058",COUNTY:"Chicontepec",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30058"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.4445,19.1863],[-96.4377,19.1701],[-96.4156,19.1682],[-96.4074,19.1339],[-96.3952,19.1107],[-96.3971,19.093],[-96.3731,19.076],[-96.3992,19.0323],[-96.3522,19.0153],[-96.3199,18.9994],[-96.3144,18.9782],[-96.3267,18.967],[-96.3498,18.9713],[-96.3693,18.9481],[-96.4052,18.9354],[-96.4265,18.9445],[-96.4587,18.9467],[-96.4666,18.9395],[-96.492,18.934],[-96.5168,18.9499],[-96.5399,18.9578],[-96.5514,18.9741],[-96.5268,18.9799],[-96.5264,18.9896],[-96.5052,18.9972],[-96.4896,18.9887],[-96.4919,19.0186],[-96.4852,19.0424],[-96.5064,19.0403],[-96.5294,19.0438],[-96.5423,19.0571],[-96.5724,19.063],[-96.5654,19.0844],[-96.5738,19.133],[-96.5445,19.1305],[-96.5334,19.1355],[-96.4931,19.1387],[-96.5003,19.1507],[-96.4971,19.1668],[-96.4788,19.1814],[-96.4679,19.1779],[-96.4445,19.1863]]]},properties:{id:"30148",COUNTYID:"148",COUNTY:"Soledad de Doblado",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30148"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.5399,18.9578],[-96.5168,18.9499],[-96.492,18.934],[-96.4666,18.9395],[-96.4677,18.93],[-96.5,18.9286],[-96.5163,18.9125],[-96.5364,18.9021],[-96.5155,18.8712],[-96.5281,18.8646],[-96.5581,18.8825],[-96.5909,18.8766],[-96.6006,18.8884],[-96.6174,18.8874],[-96.6446,18.8739],[-96.6456,18.8508],[-96.668,18.8476],[-96.689,18.8534],[-96.7117,18.8485],[-96.7331,18.8678],[-96.7451,18.8982],[-96.7509,18.8987],[-96.7682,18.9365],[-96.7786,18.9521],[-96.7942,18.995],[-96.8143,18.9987],[-96.8149,19.0089],[-96.8043,19.0274],[-96.7817,19.0222],[-96.7427,19.0267],[-96.7077,19.0212],[-96.689,19.036],[-96.643,19.0479],[-96.6626,19.0353],[-96.6678,19.0199],[-96.6419,19.0136],[-96.6199,19.0219],[-96.612,19.0163],[-96.6104,18.9876],[-96.6168,18.9781],[-96.6133,18.9503],[-96.5783,18.9605],[-96.5399,18.9578]]]},properties:{id:"30125",COUNTYID:"125",COUNTY:"Paso del Macho",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30125"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.1807,20.6707],[-97.1651,20.6415],[-97.1316,20.5998],[-97.1587,20.5954],[-97.1926,20.5651],[-97.1889,20.5436],[-97.2106,20.5386],[-97.2074,20.5281],[-97.1819,20.5228],[-97.1689,20.5052],[-97.1513,20.507],[-97.1479,20.4884],[-97.1595,20.4799],[-97.1623,20.4616],[-97.1745,20.4625],[-97.1865,20.4147],[-97.1644,20.3889],[-97.1417,20.3761],[-97.1409,20.3449],[-97.1555,20.3291],[-97.1448,20.3134],[-97.1095,20.3014],[-97.103,20.2883],[-97.1038,20.2562],[-97.1251,20.2467],[-97.1323,20.23],[-97.1252,20.217],[-97.1412,20.1867],[-97.15,20.1606],[-97.1644,20.1518],[-97.2285,20.1726],[-97.2679,20.1822],[-97.2853,20.1907],[-97.3639,20.2161],[-97.3781,20.2261],[-97.3793,20.2496],[-97.406,20.2903],[-97.4095,20.3091],[-97.4553,20.3325],[-97.4703,20.3275],[-97.5159,20.3395],[-97.5103,20.3531],[-97.5191,20.3671],[-97.5021,20.3751],[-97.4787,20.3565],[-97.4685,20.3683],[-97.4741,20.3829],[-97.4631,20.4002],[-97.4774,20.4109],[-97.451,20.4176],[-97.4477,20.4565],[-97.4179,20.461],[-97.3993,20.4696],[-97.404,20.4877],[-97.4,20.5034],[-97.4107,20.5537],[-97.4202,20.5796],[-97.4388,20.5901],[-97.4041,20.6224],[-97.4009,20.6341],[-97.3796,20.6548],[-97.351,20.6492],[-97.3016,20.6596],[-97.295,20.6476],[-97.3054,20.6354],[-97.2937,20.6171],[-97.2792,20.617],[-97.2769,20.6341],[-97.2496,20.6594],[-97.2309,20.6603],[-97.2151,20.6534],[-97.2026,20.6714],[-97.1807,20.6707]]]},properties:{id:"30124",COUNTYID:"124",COUNTY:"Papantla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30124"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.4601,18.0285],[-94.4306,17.9971],[-94.4278,17.9807],[-94.4498,17.9505],[-94.4492,17.9333],[-94.4345,17.9097],[-94.4127,17.9125],[-94.3939,17.9056],[-94.3791,17.9116],[-94.3705,17.8984],[-94.3526,17.9133],[-94.3332,17.9047],[-94.3035,17.911],[-94.2988,17.903],[-94.2672,17.8878],[-94.2719,17.8624],[-94.3023,17.8639],[-94.2943,17.852],[-94.2722,17.85],[-94.241,17.8409],[-94.2157,17.8579],[-94.1998,17.8419],[-94.2176,17.8121],[-94.2076,17.7989],[-94.2099,17.7821],[-94.2255,17.7616],[-94.2109,17.733],[-94.1983,17.7251],[-94.1832,17.705],[-94.1903,17.6924],[-94.1787,17.6756],[-94.2015,17.6565],[-94.1691,17.6497],[-94.1466,17.632],[-94.1583,17.6273],[-94.169,17.6045],[-94.1506,17.6068],[-94.1278,17.5954],[-94.126,17.5853],[-94.1436,17.5748],[-94.152,17.5818],[-94.1906,17.5649],[-94.1941,17.5809],[-94.2201,17.5815],[-94.2204,17.5549],[-94.2344,17.5373],[-94.2293,17.5107],[-94.2098,17.5087],[-94.2281,17.4909],[-94.2313,17.4694],[-94.2254,17.4483],[-94.2013,17.4191],[-94.1854,17.411],[-94.1857,17.3906],[-94.2165,17.3574],[-94.2082,17.3239],[-94.2163,17.3168],[-94.2557,17.4012],[-94.3495,17.3973],[-94.36,17.4033],[-94.3687,17.4272],[-94.3508,17.4365],[-94.3565,17.4513],[-94.4289,17.428],[-94.4325,17.4538],[-94.4441,17.4803],[-94.4566,17.482],[-94.4711,17.5047],[-94.4723,17.5549],[-94.4513,17.5704],[-94.439,17.5886],[-94.4355,17.608],[-94.4511,17.6276],[-94.4847,17.652],[-94.5174,17.6439],[-94.5394,17.647],[-94.5563,17.6554],[-94.5775,17.6474],[-94.5904,17.7111],[-94.5824,17.7196],[-94.5991,17.7398],[-94.607,17.763],[-94.5718,17.8076],[-94.5777,17.8163],[-94.6051,17.8075],[-94.6337,17.844],[-94.6466,17.8699],[-94.6198,17.8853],[-94.6223,17.902],[-94.5889,17.8964],[-94.5765,17.9139],[-94.5657,17.9406],[-94.5643,17.9609],[-94.5775,17.9649],[-94.5946,17.9822],[-94.5847,18.0075],[-94.5582,18.0018],[-94.5328,18.0284],[-94.5703,18.0221],[-94.5715,18.0533],[-94.5798,18.0819],[-94.5665,18.092],[-94.551,18.0708],[-94.516,18.0687],[-94.5033,18.0525],[-94.5032,18.0322],[-94.4861,18.0202],[-94.4601,18.0285]]]},properties:{id:"30108",COUNTYID:"108",COUNTY:"Minatitlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30108"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.3771,19.4007],[-96.3732,19.3806],[-96.3848,19.3606],[-96.3931,19.3478],[-96.4122,19.355],[-96.4223,19.3516],[-96.4253,19.3351],[-96.4396,19.3316],[-96.4526,19.3182],[-96.4678,19.315],[-96.4943,19.2854],[-96.502,19.2848],[-96.539,19.2577],[-96.5426,19.2499],[-96.5884,19.2295],[-96.5922,19.2323],[-96.6242,19.2039],[-96.6503,19.1982],[-96.6509,19.209],[-96.6851,19.1932],[-96.6961,19.2016],[-96.7389,19.2042],[-96.7545,19.1969],[-96.7868,19.2035],[-96.8189,19.2028],[-96.8073,19.2196],[-96.7679,19.2297],[-96.7237,19.2499],[-96.6952,19.2542],[-96.6753,19.271],[-96.6353,19.2776],[-96.6136,19.293],[-96.6136,19.3036],[-96.5976,19.3211],[-96.5769,19.3254],[-96.5624,19.3419],[-96.5636,19.3606],[-96.543,19.3694],[-96.5407,19.3976],[-96.5248,19.4033],[-96.5131,19.4179],[-96.4944,19.4194],[-96.4808,19.4383],[-96.4658,19.3973],[-96.4344,19.397],[-96.4111,19.4116],[-96.4011,19.4017],[-96.3771,19.4007]]]},properties:{id:"30134",COUNTYID:"134",COUNTY:"Puente Nacional",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30134"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-98.2314,20.6118],[-98.2372,20.5998],[-98.2417,20.5537],[-98.2547,20.5409],[-98.287,20.5197],[-98.286,20.502],[-98.2637,20.4914],[-98.2774,20.4727],[-98.3157,20.4457],[-98.321,20.418],[-98.3372,20.4141],[-98.3553,20.4018],[-98.3862,20.4027],[-98.4013,20.4093],[-98.4294,20.4001],[-98.4446,20.3998],[-98.4411,20.4303],[-98.4116,20.462],[-98.4038,20.4822],[-98.4304,20.513],[-98.4241,20.5359],[-98.4045,20.5331],[-98.3986,20.5417],[-98.3697,20.5614],[-98.3466,20.5496],[-98.3231,20.5587],[-98.3168,20.5894],[-98.2844,20.5847],[-98.2723,20.5877],[-98.2491,20.6047],[-98.2314,20.6118]]]},properties:{id:"30198",COUNTYID:"198",COUNTY:"Zacualpan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30198"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.1617,18.7637],[-97.1405,18.7673],[-97.1307,18.7663],[-97.1322,18.7303],[-97.1374,18.7166],[-97.1359,18.6839],[-97.1471,18.673],[-97.1663,18.6868],[-97.1854,18.6678],[-97.1784,18.6598],[-97.1589,18.6642],[-97.1661,18.6526],[-97.1795,18.6527],[-97.1994,18.6381],[-97.2266,18.6388],[-97.2354,18.6436],[-97.2403,18.6663],[-97.2217,18.6911],[-97.2335,18.702],[-97.2163,18.719],[-97.2237,18.7319],[-97.2118,18.7479],[-97.2253,18.7583],[-97.2065,18.7804],[-97.1877,18.757],[-97.1617,18.7637]]]},properties:{id:"30147",COUNTYID:"147",COUNTY:"Soledad Atzompa",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30147"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.6797,20.2629],[-97.698,20.2427],[-97.7052,20.2275],[-97.7261,20.2463],[-97.7365,20.2441],[-97.7512,20.2601],[-97.7409,20.2746],[-97.7084,20.2853],[-97.707,20.2992],[-97.6768,20.3069],[-97.6644,20.2693],[-97.6797,20.2629]]]},properties:{id:"30037",COUNTYID:"037",COUNTY:"Coahuitlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30037"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9264,18.8022],[-96.9242,18.7949],[-96.937,18.7816],[-96.9628,18.7707],[-96.9751,18.7797],[-96.9748,18.7988],[-96.9716,18.8254],[-96.9491,18.804],[-96.9264,18.8022]]]},properties:{id:"30113",COUNTYID:"113",COUNTY:"Naranjal",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30113"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9153,18.761],[-96.893,18.7421],[-96.8849,18.7449],[-96.8897,18.7254],[-96.8823,18.6938],[-96.8665,18.6757],[-96.864,18.6596],[-96.8798,18.6392],[-96.8642,18.6272],[-96.8444,18.5924],[-96.8337,18.588],[-96.8415,18.5544],[-96.8659,18.5398],[-96.8663,18.5259],[-96.8735,18.5232],[-96.8993,18.5486],[-96.9259,18.5349],[-96.953,18.5539],[-96.9989,18.5319],[-96.9744,18.5534],[-96.9324,18.574],[-96.9372,18.6129],[-96.9586,18.6499],[-96.9769,18.6422],[-96.9738,18.6292],[-96.9951,18.626],[-97.0202,18.6509],[-97.0243,18.6726],[-97.0079,18.6866],[-97.0139,18.7032],[-96.9935,18.7039],[-96.9859,18.7271],[-96.9525,18.7542],[-96.9628,18.7707],[-96.937,18.7816],[-96.9375,18.7551],[-96.9153,18.761]]]},properties:{id:"30201",COUNTYID:"201",COUNTY:"Zongolica",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30201"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.3887,18.1779],[-95.3297,18.1476],[-95.3246,18.1325],[-95.2722,18.112],[-95.2599,18.1235],[-95.2493,18.1047],[-95.227,18.0853],[-95.2414,18.0519],[-95.2223,18.0507],[-95.1972,18.0343],[-95.2077,18.0194],[-95.1959,17.9854],[-95.2082,17.9859],[-95.2176,17.9712],[-95.2395,17.9686],[-95.2386,17.9355],[-95.2461,17.9014],[-95.2343,17.8886],[-95.237,17.8758],[-95.2599,17.8807],[-95.2792,17.8717],[-95.2793,17.8148],[-95.3016,17.7964],[-95.3058,17.8086],[-95.3286,17.8172],[-95.3477,17.817],[-95.3512,17.8028],[-95.4121,17.7834],[-95.4344,17.7531],[-95.4459,17.7735],[-95.4686,17.7736],[-95.475,17.802],[-95.4724,17.8177],[-95.4811,17.8353],[-95.4775,17.8575],[-95.4889,17.8726],[-95.5132,17.8771],[-95.5229,17.8984],[-95.4915,17.9101],[-95.479,17.908],[-95.4671,17.9288],[-95.434,17.9572],[-95.4349,17.9843],[-95.4414,17.9933],[-95.4307,18.0204],[-95.4466,18.0278],[-95.4693,18.0587],[-95.4986,18.0904],[-95.5006,18.1016],[-95.5181,18.1177],[-95.506,18.1591],[-95.4954,18.166],[-95.48,18.1933],[-95.4583,18.1739],[-95.4467,18.1559],[-95.3887,18.1779]]]},properties:{id:"30094",COUNTYID:"094",COUNTY:"Juan Rodríguez Clara",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30094"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.4241,18.098],[-94.4143,18.0684],[-94.4221,18.0524],[-94.4449,18.0562],[-94.4569,18.0492],[-94.4601,18.0285],[-94.4861,18.0202],[-94.5032,18.0322],[-94.5033,18.0525],[-94.516,18.0687],[-94.551,18.0708],[-94.5665,18.092],[-94.5798,18.0819],[-94.5715,18.0533],[-94.5703,18.0221],[-94.5328,18.0284],[-94.5582,18.0018],[-94.5847,18.0075],[-94.5946,17.9822],[-94.5775,17.9649],[-94.5643,17.9609],[-94.5657,17.9406],[-94.5765,17.9139],[-94.5889,17.8964],[-94.6223,17.902],[-94.6198,17.8853],[-94.6466,17.8699],[-94.6669,17.8724],[-94.6896,17.8867],[-94.6802,17.8993],[-94.6898,17.9181],[-94.685,17.9359],[-94.6741,17.9404],[-94.6714,17.9557],[-94.6285,17.9247],[-94.6086,17.9346],[-94.6134,17.9646],[-94.647,17.9633],[-94.6543,17.9717],[-94.651,18.0175],[-94.6189,18.0387],[-94.5879,18.0907],[-94.5942,18.0963],[-94.5849,18.1216],[-94.5567,18.1363],[-94.5369,18.1419],[-94.5165,18.1292],[-94.5092,18.1011],[-94.4701,18.1119],[-94.437,18.096],[-94.4241,18.098]]]},properties:{id:"30048",COUNTYID:"048",COUNTY:"Cosoleacaque",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30048"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-98.2249,20.9066],[-98.1985,20.8856],[-98.1883,20.9042],[-98.1678,20.8968],[-98.1573,20.8838],[-98.1185,20.8808],[-98.1097,20.8632],[-98.1211,20.8274],[-98.1344,20.8156],[-98.1263,20.8009],[-98.0985,20.7789],[-98.0931,20.7602],[-98.1096,20.7616],[-98.1097,20.7274],[-98.1297,20.7288],[-98.1428,20.7428],[-98.1721,20.7358],[-98.1848,20.7392],[-98.2196,20.7553],[-98.2318,20.7672],[-98.238,20.7869],[-98.248,20.7894],[-98.2363,20.7968],[-98.2269,20.8162],[-98.2538,20.8228],[-98.2623,20.8469],[-98.2608,20.8715],[-98.251,20.8973],[-98.2249,20.9066]]]},properties:{id:"30027",COUNTYID:"027",COUNTY:"Benito Juárez",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30027"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-98.1595,21.7115],[-98.1485,21.679],[-98.1277,21.6596],[-98.0995,21.6465],[-98.0879,21.6412],[-98.1076,21.6233],[-98.1093,21.5941],[-98.1245,21.5946],[-98.1582,21.5684],[-98.184,21.5807],[-98.2027,21.5797],[-98.2321,21.5638],[-98.2422,21.5416],[-98.2524,21.5324],[-98.2551,21.5075],[-98.2377,21.4824],[-98.2576,21.4717],[-98.2595,21.4875],[-98.27,21.5033],[-98.2939,21.4804],[-98.3293,21.4765],[-98.3459,21.459],[-98.3292,21.4253],[-98.3517,21.3921],[-98.3766,21.4087],[-98.3952,21.4156],[-98.4137,21.3837],[-98.4475,21.3998],[-98.4674,21.3786],[-98.4798,21.3966],[-98.5015,21.3856],[-98.5209,21.4041],[-98.5224,21.437],[-98.5169,21.4607],[-98.5359,21.4939],[-98.5323,21.5011],[-98.5538,21.5161],[-98.5949,21.5379],[-98.6095,21.5748],[-98.6182,21.5788],[-98.6211,21.6278],[-98.6359,21.6264],[-98.6332,21.6539],[-98.6174,21.6556],[-98.6092,21.6682],[-98.5799,21.6718],[-98.5583,21.6877],[-98.5508,21.6915],[-98.5365,21.6463],[-98.5149,21.6478],[-98.4894,21.6586],[-98.481,21.67],[-98.448,21.6778],[-98.4185,21.657],[-98.374,21.6618],[-98.3667,21.6675],[-98.3257,21.6719],[-98.313,21.6894],[-98.2599,21.7013],[-98.2274,21.7036],[-98.1904,21.715],[-98.1595,21.7115]]]},properties:{id:"30161",COUNTYID:"161",COUNTY:"Tempoal",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30161"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.1478,19.4478],[-97.1345,19.4227],[-97.0983,19.4227],[-97.0821,19.4156],[-97.0574,19.3949],[-97.0306,19.3916],[-97.0278,19.3857],[-97.0418,19.3827],[-97.0468,19.3633],[-97.0354,19.3528],[-97.0345,19.3361],[-97.0242,19.3189],[-97.0072,19.3183],[-96.9807,19.2898],[-96.9715,19.2898],[-96.9857,19.28],[-97.0035,19.2964],[-97.031,19.2973],[-97.0466,19.3198],[-97.0679,19.3214],[-97.098,19.3041],[-97.1296,19.3092],[-97.1362,19.3224],[-97.1485,19.3202],[-97.1264,19.3756],[-97.1482,19.399],[-97.1674,19.4043],[-97.1749,19.4234],[-97.1696,19.4514],[-97.1544,19.4651],[-97.1478,19.4478]]]},properties:{id:"30079",COUNTYID:"079",COUNTY:"Ixhuacán de los Reyes",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30079"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-97.5601,21.3838],[-97.5856,21.3906],[-97.5961,21.4131],[-97.581,21.4046],[-97.5715,21.4186],[-97.5643,21.4427],[-97.5692,21.4639],[-97.6064,21.4992],[-97.6236,21.4888],[-97.6465,21.4837],[-97.6458,21.4722],[-97.6658,21.465],[-97.7051,21.4694],[-97.723,21.4655],[-97.741,21.4493],[-97.7593,21.4488],[-97.7559,21.4658],[-97.7449,21.4731],[-97.7704,21.4959],[-97.7518,21.5001],[-97.7503,21.5289],[-97.7132,21.5654],[-97.7259,21.5736],[-97.7277,21.5894],[-97.7166,21.6054],[-97.697,21.6183],[-97.667,21.6053],[-97.6452,21.6276],[-97.5305,21.5809],[-97.5196,21.5006],[-97.5131,21.467],[-97.5199,21.4589],[-97.5284,21.4189],[-97.5539,21.3974],[-97.5601,21.3838]]],[[[-97.79,21.3323],[-97.8085,21.3205],[-97.8213,21.3255],[-97.8189,21.3504],[-97.7959,21.3669],[-97.7747,21.3622],[-97.7882,21.3465],[-97.79,21.3323]]],[[[-97.752,21.4148],[-97.7621,21.4065],[-97.7998,21.4236],[-97.7724,21.4397],[-97.752,21.4148]]]]},properties:{id:"30150",COUNTYID:"150",COUNTY:"Tamalín",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30150"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8534,19.2884],[-96.8795,19.2608],[-96.8983,19.2512],[-96.9143,19.2331],[-96.887,19.217],[-96.8569,19.2266],[-96.8258,19.2467],[-96.8073,19.2196],[-96.8189,19.2028],[-96.8479,19.2011],[-96.8604,19.1756],[-96.8871,19.187],[-96.9237,19.1934],[-96.9468,19.2024],[-96.9592,19.1853],[-96.9668,19.1957],[-96.9797,19.2165],[-96.9686,19.2229],[-96.9146,19.2767],[-96.8737,19.2893],[-96.8534,19.2884]]]},properties:{id:"30188",COUNTYID:"188",COUNTY:"Totutla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30188"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9596,19.7224],[-96.9334,19.6968],[-96.9295,19.6762],[-96.9141,19.6632],[-96.9171,19.6351],[-96.9685,19.6437],[-96.9725,19.6892],[-96.9798,19.7141],[-96.9596,19.7224]]]},properties:{id:"30036",COUNTYID:"036",COUNTY:"Coacoatzintla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30036"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.022,18.9406],[-96.0329,18.9],[-96.0226,18.8856],[-95.9863,18.8851],[-95.9819,18.8547],[-95.985,18.8365],[-95.9985,18.8268],[-95.996,18.8023],[-95.9767,18.7931],[-95.9957,18.7761],[-96,18.7538],[-96.0281,18.7641],[-96.0193,18.7383],[-96.0367,18.7384],[-96.044,18.7294],[-96.0364,18.6896],[-96.0573,18.6556],[-96.0427,18.646],[-96.0409,18.6307],[-96.0297,18.6166],[-96.036,18.5954],[-96.0728,18.602],[-96.0823,18.6123],[-96.1342,18.607],[-96.1414,18.6267],[-96.1677,18.6509],[-96.1791,18.6533],[-96.2079,18.6437],[-96.2252,18.652],[-96.2459,18.6548],[-96.2766,18.6662],[-96.2948,18.6618],[-96.3243,18.6672],[-96.3524,18.6913],[-96.364,18.6955],[-96.3764,18.6873],[-96.3897,18.6914],[-96.4252,18.6848],[-96.4361,18.6948],[-96.4348,18.7367],[-96.4053,18.7461],[-96.4163,18.7678],[-96.3916,18.7841],[-96.3677,18.7857],[-96.3588,18.7921],[-96.3399,18.7878],[-96.3314,18.7967],[-96.3055,18.7842],[-96.2846,18.7824],[-96.2714,18.7884],[-96.2691,18.8102],[-96.2154,18.8381],[-96.2001,18.8327],[-96.1839,18.8425],[-96.1651,18.8462],[-96.146,18.8422],[-96.1324,18.8595],[-96.1204,18.897],[-96.1016,18.8992],[-96.0716,18.9512],[-96.0375,18.9256],[-96.022,18.9406]]]},properties:{id:"30181",COUNTYID:"181",COUNTY:"Tlalixcoyan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30181"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.01,20.2754],[-97.0015,20.2483],[-97.0164,20.2287],[-97.0198,20.2093],[-97.0146,20.187],[-96.9936,20.1662],[-96.9857,20.1462],[-96.9494,20.1465],[-96.9431,20.1349],[-96.9746,20.1251],[-96.9927,20.08],[-96.9864,20.0568],[-96.971,20.0426],[-96.9856,20.0285],[-96.98,20.0078],[-96.9577,20.0037],[-96.957,19.9927],[-96.9805,19.9912],[-96.9879,19.9813],[-97.0071,19.9745],[-97.0334,19.9797],[-97.0529,19.991],[-97.0618,20.0335],[-97.0403,20.0337],[-97.0413,20.0481],[-97.083,20.0516],[-97.1199,20.0866],[-97.1081,20.0996],[-97.1406,20.1198],[-97.1567,20.1469],[-97.15,20.1606],[-97.1412,20.1867],[-97.1252,20.217],[-97.1323,20.23],[-97.1251,20.2467],[-97.1038,20.2562],[-97.0864,20.2743],[-97.0596,20.26],[-97.0428,20.2657],[-97.043,20.2773],[-97.01,20.2754]]]},properties:{id:"30102",COUNTYID:"102",COUNTY:"Martínez de la Torre",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30102"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.4059,20.7279],[-97.4062,20.7105],[-97.3848,20.6898],[-97.3741,20.6936],[-97.3661,20.6782],[-97.3796,20.6548],[-97.4009,20.6341],[-97.4041,20.6224],[-97.4388,20.5901],[-97.441,20.5763],[-97.4548,20.5532],[-97.4822,20.5379],[-97.4783,20.5265],[-97.4881,20.5075],[-97.5201,20.4955],[-97.531,20.4841],[-97.5418,20.4885],[-97.59,20.5561],[-97.6101,20.5639],[-97.6577,20.5555],[-97.6755,20.555],[-97.6856,20.5729],[-97.7012,20.5742],[-97.697,20.5968],[-97.7105,20.6087],[-97.7048,20.6296],[-97.7023,20.6411],[-97.6819,20.637],[-97.6653,20.6414],[-97.6585,20.6566],[-97.6319,20.656],[-97.6084,20.6711],[-97.6096,20.6959],[-97.6025,20.7096],[-97.6005,20.7361],[-97.5912,20.7531],[-97.577,20.7992],[-97.5877,20.812],[-97.5568,20.8204],[-97.5303,20.8233],[-97.5076,20.8516],[-97.4913,20.8505],[-97.4918,20.8662],[-97.47,20.8627],[-97.4571,20.8478],[-97.4639,20.8287],[-97.4782,20.8413],[-97.4951,20.8319],[-97.4794,20.8202],[-97.4761,20.7869],[-97.4609,20.772],[-97.4589,20.7599],[-97.4424,20.7452],[-97.4059,20.7279]]]},properties:{id:"30175",COUNTYID:"175",COUNTY:"Tihuatlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30175"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9941,19.785],[-97,19.7756],[-97.0181,19.7874],[-97.0259,19.78],[-97.0366,19.7812],[-97.0711,19.7661],[-97.0779,19.7462],[-97.1113,19.7401],[-97.1274,19.7602],[-97.1439,19.7396],[-97.1532,19.7386],[-97.1791,19.7076],[-97.1822,19.6944],[-97.1957,19.6783],[-97.2099,19.683],[-97.2282,19.6786],[-97.2503,19.6879],[-97.2556,19.6779],[-97.2364,19.657],[-97.238,19.6368],[-97.2616,19.6456],[-97.2679,19.638],[-97.2809,19.6861],[-97.2702,19.6977],[-97.2714,19.7169],[-97.2831,19.7315],[-97.2804,19.7568],[-97.2598,19.7758],[-97.2604,19.7891],[-97.2503,19.7787],[-97.2288,19.7727],[-97.2103,19.782],[-97.1992,19.7624],[-97.1803,19.7726],[-97.1853,19.7869],[-97.1627,19.7929],[-97.1378,19.8155],[-97.115,19.8451],[-97.0964,19.8539],[-97.0816,19.8482],[-97.068,19.8558],[-97.054,19.8519],[-97.0324,19.8652],[-97.0175,19.8569],[-97.0036,19.8827],[-96.9745,19.8821],[-96.9563,19.893],[-96.9504,19.8677],[-96.9581,19.855],[-96.9819,19.838],[-96.96,19.8148],[-96.9754,19.7969],[-96.9941,19.785]]]},properties:{id:"30010",COUNTYID:"010",COUNTY:"Altotonga",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30010"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-98.1297,20.7288],[-98.1482,20.6986],[-98.12,20.678],[-98.1275,20.6659],[-98.1297,20.6393],[-98.1112,20.6162],[-98.108,20.6121],[-98.1496,20.5628],[-98.1725,20.5301],[-98.2121,20.5285],[-98.2287,20.5208],[-98.2399,20.5014],[-98.2637,20.4914],[-98.286,20.502],[-98.287,20.5197],[-98.2547,20.5409],[-98.2417,20.5537],[-98.2372,20.5998],[-98.2314,20.6118],[-98.2221,20.6349],[-98.1994,20.6598],[-98.2099,20.6826],[-98.201,20.6989],[-98.1811,20.7165],[-98.1848,20.7392],[-98.1721,20.7358],[-98.1428,20.7428],[-98.1297,20.7288]]]},properties:{id:"30180",COUNTYID:"180",COUNTY:"Tlachichilco",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30180"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.7845,20.2435],[-96.7854,20.2418],[-96.8037,20.2472],[-96.8158,20.2422],[-96.8306,20.2573],[-96.8436,20.2609],[-96.8539,20.2782],[-96.8731,20.2798],[-96.888,20.2707],[-96.9198,20.2975],[-96.9346,20.2978],[-96.9494,20.2818],[-96.9739,20.2738],[-96.9768,20.2842],[-96.9971,20.2962],[-97.0085,20.2896],[-97.01,20.2754],[-97.043,20.2773],[-97.0428,20.2657],[-97.0596,20.26],[-97.0864,20.2743],[-97.1038,20.2562],[-97.103,20.2883],[-97.1095,20.3014],[-97.1448,20.3134],[-97.1555,20.3291],[-97.1409,20.3449],[-97.1417,20.3761],[-97.129,20.3721],[-97.1114,20.3797],[-97.0961,20.3963],[-97.0696,20.407],[-97.0373,20.4099],[-97.023,20.4435],[-97.0305,20.4498],[-97.0196,20.4731],[-97.0528,20.4674],[-97.077,20.4823],[-97.0639,20.4933],[-97.1042,20.5307],[-97.1136,20.521],[-97.1513,20.507],[-97.1689,20.5052],[-97.1819,20.5228],[-97.2074,20.5281],[-97.2106,20.5386],[-97.1889,20.5436],[-97.1926,20.5651],[-97.1587,20.5954],[-97.1316,20.5998],[-97.0575,20.5237],[-97.0247,20.494],[-96.9857,20.4638],[-96.9504,20.4112],[-96.9091,20.3662],[-96.8494,20.3063],[-96.7845,20.2435]]]},properties:{id:"30158",COUNTYID:"158",COUNTY:"Tecolutla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30158"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.5961,21.4131],[-97.5856,21.3906],[-97.5601,21.3838],[-97.5587,21.3745],[-97.5855,21.3517],[-97.6169,21.332],[-97.6437,21.3479],[-97.6515,21.3433],[-97.6849,21.3621],[-97.6974,21.3575],[-97.7033,21.342],[-97.7221,21.343],[-97.7317,21.3336],[-97.7556,21.3442],[-97.7768,21.3468],[-97.7747,21.3622],[-97.751,21.3862],[-97.7621,21.4065],[-97.752,21.4148],[-97.7309,21.4148],[-97.7022,21.391],[-97.6843,21.3917],[-97.6785,21.4064],[-97.6473,21.4218],[-97.6119,21.4201],[-97.5961,21.4131]]]},properties:{id:"30060",COUNTYID:"060",COUNTY:"Chinampa de Gorostiza",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30060"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.7854,20.2418],[-96.7775,20.2284],[-96.779,20.2132],[-96.7996,20.2019],[-96.8137,20.2115],[-96.8243,20.1838],[-96.842,20.1839],[-96.859,20.1631],[-96.8716,20.1559],[-96.8838,20.1355],[-96.8903,20.1495],[-96.9216,20.1447],[-96.9431,20.1349],[-96.9494,20.1465],[-96.9857,20.1462],[-96.9936,20.1662],[-97.0146,20.187],[-97.0198,20.2093],[-97.0164,20.2287],[-97.0015,20.2483],[-97.01,20.2754],[-97.0085,20.2896],[-96.9971,20.2962],[-96.9768,20.2842],[-96.9739,20.2738],[-96.9494,20.2818],[-96.9346,20.2978],[-96.9198,20.2975],[-96.888,20.2707],[-96.8731,20.2798],[-96.8539,20.2782],[-96.8436,20.2609],[-96.8306,20.2573],[-96.8158,20.2422],[-96.8037,20.2472],[-96.7854,20.2418]]]},properties:{id:"30211",COUNTYID:"211",COUNTY:"San Rafael",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30211"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-98.248,20.7894],[-98.238,20.7869],[-98.2318,20.7672],[-98.2196,20.7553],[-98.1848,20.7392],[-98.1811,20.7165],[-98.201,20.6989],[-98.2099,20.6826],[-98.2386,20.6759],[-98.2597,20.6826],[-98.2864,20.6709],[-98.3169,20.698],[-98.3359,20.685],[-98.362,20.6866],[-98.3882,20.6955],[-98.4031,20.7078],[-98.4292,20.7164],[-98.4215,20.7393],[-98.4255,20.7489],[-98.3935,20.7552],[-98.3981,20.7798],[-98.3643,20.785],[-98.3435,20.7979],[-98.326,20.7842],[-98.3078,20.801],[-98.292,20.7855],[-98.248,20.7894]]]},properties:{id:"30202",COUNTYID:"202",COUNTY:"Zontecomatlán de López y Fuentes",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30202"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-98.0449,21.6651],[-98.0302,21.6397],[-98.0139,21.6392],[-97.9873,21.6161],[-97.9881,21.6029],[-98,21.5836],[-98.0213,21.5743],[-98.0269,21.5544],[-98.0217,21.5118],[-98.0291,21.4903],[-98.0443,21.4855],[-98.0625,21.465],[-98.0687,21.4505],[-98.0634,21.431],[-98.0542,21.4256],[-98.0429,21.3959],[-98.0381,21.3505],[-98.0468,21.3395],[-98.0686,21.3419],[-98.0615,21.3217],[-98.0699,21.3139],[-98.0637,21.2878],[-98.0693,21.2738],[-98.0885,21.2752],[-98.0997,21.243],[-98.0754,21.2424],[-98.067,21.2341],[-98.0704,21.2088],[-98.0436,21.1955],[-98.0353,21.1714],[-98.0434,21.1576],[-98.0485,21.1651],[-98.0702,21.1595],[-98.0922,21.1648],[-98.1142,21.1586],[-98.1214,21.1449],[-98.1558,21.1392],[-98.1761,21.1109],[-98.1876,21.1108],[-98.206,21.1268],[-98.2081,21.143],[-98.2273,21.1504],[-98.2118,21.1695],[-98.2268,21.1754],[-98.2166,21.2082],[-98.2516,21.216],[-98.2554,21.231],[-98.2489,21.2441],[-98.2592,21.2762],[-98.2704,21.2742],[-98.2957,21.2901],[-98.3398,21.2883],[-98.3405,21.2989],[-98.3651,21.2989],[-98.3867,21.3141],[-98.3648,21.3351],[-98.3706,21.3646],[-98.398,21.3806],[-98.3766,21.4087],[-98.3517,21.3921],[-98.3292,21.4253],[-98.3459,21.459],[-98.3293,21.4765],[-98.2939,21.4804],[-98.27,21.5033],[-98.2595,21.4875],[-98.2576,21.4717],[-98.2377,21.4824],[-98.2551,21.5075],[-98.2524,21.5324],[-98.2422,21.5416],[-98.2321,21.5638],[-98.2027,21.5797],[-98.184,21.5807],[-98.1582,21.5684],[-98.1245,21.5946],[-98.1093,21.5941],[-98.1076,21.6233],[-98.0879,21.6412],[-98.0995,21.6465],[-98.091,21.6653],[-98.0578,21.6702],[-98.0449,21.6651]]]},properties:{id:"30155",COUNTYID:"155",COUNTY:"Tantoyuca",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30155"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0529,19.1323],[-97.0665,19.1129],[-97.0799,19.1162],[-97.1093,19.1339],[-97.1405,19.1287],[-97.2014,19.0997],[-97.1971,19.077],[-97.1745,19.0658],[-97.1948,19.0539],[-97.2147,19.046],[-97.2393,19.0457],[-97.2672,19.0298],[-97.2695,19.0639],[-97.2602,19.0986],[-97.2387,19.1088],[-97.2154,19.1385],[-97.1972,19.1466],[-97.2081,19.16],[-97.1899,19.1698],[-97.1704,19.1639],[-97.1279,19.1683],[-97.1082,19.1675],[-97.0751,19.1579],[-97.0529,19.1323]]]},properties:{id:"30029",COUNTYID:"029",COUNTY:"Calcahualco",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30029"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.6242,19.2039],[-96.5911,19.1748],[-96.5698,19.1717],[-96.546,19.1599],[-96.5159,19.1569],[-96.5003,19.1507],[-96.4931,19.1387],[-96.5334,19.1355],[-96.5445,19.1305],[-96.5738,19.133],[-96.5654,19.0844],[-96.5797,19.0821],[-96.6076,19.0903],[-96.6251,19.0885],[-96.6316,19.0794],[-96.6501,19.0741],[-96.6598,19.0801],[-96.6844,19.078],[-96.7041,19.0883],[-96.7359,19.0895],[-96.7798,19.1024],[-96.815,19.1283],[-96.8235,19.1404],[-96.8733,19.1505],[-96.886,19.1582],[-96.9116,19.1694],[-96.9237,19.1934],[-96.8871,19.187],[-96.8604,19.1756],[-96.819,19.1604],[-96.7794,19.1642],[-96.7596,19.1616],[-96.7464,19.168],[-96.7173,19.1679],[-96.7076,19.1797],[-96.6851,19.1932],[-96.6509,19.209],[-96.6503,19.1982],[-96.6242,19.2039]]]},properties:{id:"30043",COUNTYID:"043",COUNTY:"Comapa",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30043"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.9536,21.402],[-97.9423,21.3887],[-97.904,21.3719],[-97.9104,21.3438],[-97.9033,21.2984],[-97.8954,21.2958],[-97.8794,21.2506],[-97.872,21.2461],[-97.8709,21.2381],[-97.8876,21.2318],[-97.9153,21.1979],[-97.9366,21.1997],[-97.9612,21.1864],[-97.9612,21.211],[-97.9326,21.2047],[-97.929,21.2162],[-97.9372,21.2333],[-97.9585,21.2382],[-97.9792,21.256],[-97.9994,21.2486],[-98.0045,21.2611],[-98.0036,21.2934],[-98.0147,21.3258],[-98.0405,21.3246],[-98.0468,21.3395],[-98.0381,21.3505],[-98.0429,21.3959],[-98.0542,21.4256],[-98.0634,21.431],[-98.0687,21.4505],[-98.0625,21.465],[-98.0443,21.4855],[-98.0291,21.4903],[-98.0217,21.5118],[-98.0269,21.5544],[-98.0213,21.5743],[-98,21.5836],[-97.9881,21.6029],[-97.9873,21.6161],[-98.0139,21.6392],[-98.0302,21.6397],[-98.0449,21.6651],[-98.0292,21.6673],[-97.9906,21.6571],[-97.9879,21.6203],[-97.9716,21.5984],[-97.9745,21.562],[-97.9806,21.5546],[-97.9834,21.5271],[-97.9784,21.5078],[-97.9908,21.4846],[-97.9884,21.4657],[-97.9751,21.4516],[-97.9701,21.4163],[-97.9536,21.402]]]},properties:{id:"30063",COUNTYID:"063",COUNTY:"Chontla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30063"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.6466,20.4087],[-97.6549,20.388],[-97.639,20.368],[-97.6145,20.3496],[-97.5945,20.3539],[-97.5741,20.3503],[-97.5827,20.347],[-97.58,20.3235],[-97.6048,20.3134],[-97.5828,20.2821],[-97.6022,20.2815],[-97.6013,20.2647],[-97.5819,20.2669],[-97.5751,20.2434],[-97.5908,20.245],[-97.6072,20.2355],[-97.6115,20.2203],[-97.6354,20.209],[-97.6486,20.2321],[-97.6724,20.2436],[-97.6797,20.2629],[-97.6644,20.2693],[-97.6768,20.3069],[-97.6901,20.3336],[-97.7127,20.329],[-97.7429,20.3518],[-97.7482,20.3785],[-97.7649,20.3807],[-97.7626,20.3979],[-97.7287,20.4573],[-97.7088,20.4548],[-97.6991,20.4346],[-97.6726,20.4181],[-97.6466,20.4087]]]},properties:{id:"30051",COUNTYID:"051",COUNTY:"Coyutla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30051"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-98.3094,21.185],[-98.3159,21.1869],[-98.3407,21.1698],[-98.3458,21.1801],[-98.3786,21.1762],[-98.365,21.1617],[-98.4164,21.155],[-98.424,21.1673],[-98.4224,21.1815],[-98.4292,21.2147],[-98.4523,21.2393],[-98.4327,21.2561],[-98.3975,21.2643],[-98.3814,21.252],[-98.3681,21.233],[-98.3553,21.2306],[-98.3363,21.215],[-98.3337,21.1995],[-98.3201,21.2002],[-98.3094,21.185]]],[[[-98.2273,21.1504],[-98.2491,21.1294],[-98.2647,21.1412],[-98.2955,21.1483],[-98.2781,21.1745],[-98.2791,21.1928],[-98.2961,21.188],[-98.2879,21.2055],[-98.2554,21.231],[-98.2516,21.216],[-98.2166,21.2082],[-98.2268,21.1754],[-98.2118,21.1695],[-98.2273,21.1504]]]]},properties:{id:"30055",COUNTYID:"055",COUNTY:"Chalma",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30055"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8999,19.4855],[-96.9066,19.4942],[-96.9224,19.4884],[-96.9353,19.4929],[-96.9477,19.5142],[-96.9512,19.5298],[-96.9678,19.5337],[-96.9573,19.5509],[-96.9548,19.5673],[-96.9394,19.5765],[-96.8972,19.581],[-96.882,19.5787],[-96.8709,19.5876],[-96.8512,19.586],[-96.8429,19.5995],[-96.8093,19.5871],[-96.8018,19.5755],[-96.81,19.5593],[-96.8325,19.5631],[-96.8422,19.5469],[-96.8299,19.5421],[-96.8223,19.5144],[-96.8543,19.5209],[-96.8762,19.4947],[-96.8999,19.4855]]]},properties:{id:"30087",COUNTYID:"087",COUNTY:"Xalapa",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30087"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.4343,18.2449],[-95.45,18.2461],[-95.4626,18.2607],[-95.4716,18.2507],[-95.5051,18.2454],[-95.5152,18.2525],[-95.5052,18.2817],[-95.5056,18.3179],[-95.5328,18.3218],[-95.5408,18.3366],[-95.527,18.3349],[-95.5232,18.3635],[-95.5135,18.3637],[-95.5102,18.4265],[-95.5204,18.4394],[-95.5179,18.4583],[-95.5419,18.4822],[-95.5342,18.4872],[-95.5268,18.4893],[-95.5031,18.4764],[-95.4752,18.4692],[-95.4703,18.4798],[-95.4524,18.4835],[-95.4461,18.5017],[-95.4265,18.4911],[-95.4018,18.4951],[-95.3804,18.4892],[-95.3799,18.5023],[-95.3496,18.5067],[-95.3315,18.5187],[-95.3142,18.5592],[-95.3243,18.573],[-95.2842,18.5675],[-95.279,18.5478],[-95.2652,18.5304],[-95.2654,18.5208],[-95.2344,18.5175],[-95.2327,18.506],[-95.2672,18.4878],[-95.2717,18.4472],[-95.27,18.4301],[-95.2848,18.4018],[-95.2981,18.4029],[-95.3219,18.386],[-95.3254,18.3647],[-95.3442,18.321],[-95.3417,18.3012],[-95.3559,18.2779],[-95.3715,18.2677],[-95.3867,18.2692],[-95.3954,18.2562],[-95.429,18.2576],[-95.4343,18.2449]]]},properties:{id:"30143",COUNTYID:"143",COUNTY:"Santiago Tuxtla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30143"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.6756,19.7473],[-96.6931,19.726],[-96.7059,19.7279],[-96.73,19.719],[-96.7413,19.709],[-96.7506,19.7265],[-96.7699,19.7354],[-96.792,19.7133],[-96.7963,19.6995],[-96.8136,19.6989],[-96.8202,19.711],[-96.8345,19.7146],[-96.8431,19.7424],[-96.8409,19.7637],[-96.861,19.777],[-96.8399,19.7776],[-96.8373,19.7867],[-96.849,19.8078],[-96.836,19.8178],[-96.8219,19.7947],[-96.8075,19.8055],[-96.7964,19.7853],[-96.783,19.7947],[-96.7674,19.7881],[-96.7541,19.7921],[-96.7411,19.8167],[-96.7361,19.8113],[-96.7469,19.7887],[-96.7191,19.7768],[-96.7072,19.7551],[-96.6839,19.7449],[-96.6756,19.7473]]]},properties:{id:"30057",COUNTYID:"057",COUNTY:"Chiconquiaco",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30057"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8644,19.69],[-96.8498,19.6644],[-96.831,19.6729],[-96.8163,19.6542],[-96.7979,19.6449],[-96.7954,19.6216],[-96.8092,19.6125],[-96.7966,19.5929],[-96.7598,19.6116],[-96.75,19.6016],[-96.7578,19.5753],[-96.7678,19.5653],[-96.8018,19.5755],[-96.8093,19.5871],[-96.8429,19.5995],[-96.8486,19.608],[-96.8699,19.6153],[-96.9031,19.6324],[-96.9171,19.6351],[-96.9141,19.6632],[-96.8926,19.6664],[-96.9004,19.696],[-96.9095,19.7077],[-96.8881,19.6932],[-96.8725,19.6989],[-96.8644,19.69]]]},properties:{id:"30112",COUNTYID:"112",COUNTY:"Naolinco",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30112"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.8933,17.8369],[-94.9,17.8518],[-94.9297,17.8701],[-94.932,17.8883],[-94.92,17.9023],[-94.9303,17.9214],[-94.8905,17.9525],[-94.8565,17.9552],[-94.8567,17.9386],[-94.8465,17.9245],[-94.8553,17.9033],[-94.8529,17.8776],[-94.8682,17.8634],[-94.8904,17.8604],[-94.8933,17.8369]]]},properties:{id:"30116",COUNTYID:"116",COUNTY:"Oluta",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30116"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.3243,18.573],[-95.3142,18.5592],[-95.3315,18.5187],[-95.3496,18.5067],[-95.3799,18.5023],[-95.3804,18.4892],[-95.4018,18.4951],[-95.4265,18.4911],[-95.4461,18.5017],[-95.4524,18.4835],[-95.4703,18.4798],[-95.4752,18.4692],[-95.5031,18.4764],[-95.4961,18.5385],[-95.4822,18.5555],[-95.469,18.556],[-95.4681,18.6039],[-95.471,18.627],[-95.4672,18.6559],[-95.4585,18.6621],[-95.4751,18.684],[-95.4487,18.6972],[-95.4371,18.7109],[-95.362,18.7106],[-95.2873,18.7153],[-95.299,18.6965],[-95.2935,18.6706],[-95.2861,18.6641],[-95.2938,18.6165],[-95.2875,18.5939],[-95.3243,18.573]]]},properties:{id:"30015",COUNTYID:"015",COUNTY:"Angel R. Cabada",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30015"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.365,21.0976],[-97.3276,21.0088],[-97.3059,20.972],[-97.2971,20.9464],[-97.2559,20.8691],[-97.228,20.8295],[-97.2181,20.7959],[-97.2283,20.7861],[-97.2562,20.778],[-97.2675,20.7975],[-97.2861,20.801],[-97.313,20.794],[-97.3267,20.7676],[-97.337,20.7628],[-97.3452,20.7439],[-97.3654,20.7345],[-97.3904,20.7377],[-97.4059,20.7279],[-97.4424,20.7452],[-97.4589,20.7599],[-97.4609,20.772],[-97.4761,20.7869],[-97.4794,20.8202],[-97.4951,20.8319],[-97.4782,20.8413],[-97.4639,20.8287],[-97.4571,20.8478],[-97.47,20.8627],[-97.4918,20.8662],[-97.4913,20.8505],[-97.5076,20.8516],[-97.5015,20.8804],[-97.4998,20.933],[-97.5192,20.9341],[-97.5264,20.9539],[-97.5717,20.9501],[-97.5927,20.9717],[-97.5999,20.9976],[-97.5893,21.0017],[-97.5918,21.0277],[-97.5764,21.0221],[-97.5617,21.0345],[-97.5488,21.055],[-97.5615,21.0663],[-97.5544,21.0843],[-97.5385,21.07],[-97.5169,21.0754],[-97.5088,21.0994],[-97.5566,21.1054],[-97.538,21.1236],[-97.5291,21.1206],[-97.4954,21.1272],[-97.4862,21.1375],[-97.4512,21.1366],[-97.4343,21.1175],[-97.409,21.1148],[-97.4,21.1257],[-97.3847,21.1208],[-97.365,21.0976]]]},properties:{id:"30189",COUNTYID:"189",COUNTY:"Tuxpan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30189"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-98.2099,20.6826],[-98.1994,20.6598],[-98.2221,20.6349],[-98.2314,20.6118],[-98.2491,20.6047],[-98.2723,20.5877],[-98.2844,20.5847],[-98.3168,20.5894],[-98.3231,20.5587],[-98.3466,20.5496],[-98.3697,20.5614],[-98.3986,20.5417],[-98.4076,20.5631],[-98.3979,20.5716],[-98.4038,20.6041],[-98.3768,20.617],[-98.3654,20.6465],[-98.3412,20.6484],[-98.3549,20.6679],[-98.3359,20.685],[-98.3169,20.698],[-98.2864,20.6709],[-98.2597,20.6826],[-98.2386,20.6759],[-98.2099,20.6826]]]},properties:{id:"30170",COUNTYID:"170",COUNTY:"Texcatepec",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30170"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.4069,19.7051],[-96.3949,19.6791],[-96.3954,19.6435],[-96.372,19.6019],[-96.3791,19.5897],[-96.3743,19.5617],[-96.361,19.537],[-96.3301,19.4975],[-96.3375,19.4901],[-96.3666,19.4848],[-96.3947,19.4566],[-96.4566,19.4617],[-96.4748,19.4522],[-96.4808,19.4383],[-96.4944,19.4194],[-96.5131,19.4179],[-96.5248,19.4033],[-96.5407,19.3976],[-96.5543,19.4003],[-96.5606,19.4176],[-96.5783,19.4218],[-96.606,19.4203],[-96.6378,19.4343],[-96.655,19.4547],[-96.6899,19.4575],[-96.712,19.4743],[-96.707,19.4858],[-96.7396,19.521],[-96.7738,19.529],[-96.7884,19.5459],[-96.7678,19.5653],[-96.7578,19.5753],[-96.7064,19.5646],[-96.6951,19.5473],[-96.6754,19.5331],[-96.6656,19.5398],[-96.6809,19.5578],[-96.6789,19.5828],[-96.6597,19.5896],[-96.6318,19.5784],[-96.6146,19.5928],[-96.6185,19.6124],[-96.5596,19.6192],[-96.5265,19.6626],[-96.5219,19.6824],[-96.5007,19.6838],[-96.5037,19.7058],[-96.4481,19.727],[-96.4069,19.7051]]]},properties:{id:"30004",COUNTYID:"004",COUNTY:"Actopan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30004"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9997,19.0861],[-97.0179,19.0701],[-97.006,19.0513],[-97.0277,19.0335],[-97.0721,19.0227],[-97.0652,19.0027],[-97.0865,18.9967],[-97.092,18.9838],[-97.1038,18.9899],[-97.1651,19.0131],[-97.1948,19.0539],[-97.1745,19.0658],[-97.1453,19.0626],[-97.1148,19.0689],[-97.0893,19.0904],[-97.0697,19.0995],[-97.0665,19.1129],[-97.0529,19.1323],[-97.0381,19.1343],[-97.0256,19.1241],[-96.9997,19.0861]]]},properties:{id:"30047",COUNTYID:"047",COUNTY:"Coscomatepec",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30047"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.1063,18.9108],[-97.0988,18.9029],[-97.1057,18.8862],[-97.1108,18.8713],[-97.1271,18.9055],[-97.155,18.9116],[-97.1773,18.9237],[-97.2179,18.9111],[-97.2183,18.911],[-97.2472,18.9189],[-97.255,18.9438],[-97.2297,18.9791],[-97.2172,18.9657],[-97.2018,18.9669],[-97.1817,18.9578],[-97.1681,18.9586],[-97.1497,18.947],[-97.1341,18.921],[-97.1146,18.9302],[-97.1063,18.9108]]]},properties:{id:"30101",COUNTYID:"101",COUNTY:"Mariano Escobedo",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30101"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.7371,19.3724],[-96.7306,19.3352],[-96.7186,19.3154],[-96.7029,19.3118],[-96.7088,19.286],[-96.7044,19.2685],[-96.7253,19.2691],[-96.7414,19.2964],[-96.7448,19.3136],[-96.7762,19.3096],[-96.7698,19.3276],[-96.8044,19.344],[-96.8045,19.3591],[-96.8252,19.379],[-96.8165,19.3953],[-96.7836,19.3742],[-96.7817,19.3928],[-96.7577,19.3954],[-96.7371,19.3724]]]},properties:{id:"30088",COUNTYID:"088",COUNTY:"Jalcomulco",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30088"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.7583,18.555],[-95.7544,18.5348],[-95.7289,18.5435],[-95.7166,18.5236],[-95.7056,18.494],[-95.7207,18.4814],[-95.7461,18.4866],[-95.7547,18.4715],[-95.7782,18.4668],[-95.7995,18.468],[-95.8435,18.489],[-95.8334,18.5037],[-95.8266,18.5395],[-95.8498,18.5655],[-95.8803,18.5801],[-95.8767,18.5945],[-95.8921,18.6113],[-95.8787,18.6295],[-95.8655,18.6447],[-95.8332,18.6546],[-95.8025,18.6396],[-95.8112,18.6174],[-95.7935,18.6154],[-95.7863,18.5827],[-95.766,18.5715],[-95.7583,18.555]]]},properties:{id:"30005",COUNTYID:"005",COUNTY:"Acula",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30005"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8258,19.2467],[-96.8569,19.2266],[-96.887,19.217],[-96.9143,19.2331],[-96.8983,19.2512],[-96.8795,19.2608],[-96.8534,19.2884],[-96.8318,19.2998],[-96.7927,19.2832],[-96.77,19.2879],[-96.754,19.2733],[-96.8258,19.2467]]]},properties:{id:"30162",COUNTYID:"162",COUNTY:"Tenampa",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30162"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0665,19.1129],[-97.0697,19.0995],[-97.0893,19.0904],[-97.1148,19.0689],[-97.1453,19.0626],[-97.1745,19.0658],[-97.1971,19.077],[-97.2014,19.0997],[-97.1405,19.1287],[-97.1093,19.1339],[-97.0799,19.1162],[-97.0665,19.1129]]]},properties:{id:"30008",COUNTYID:"008",COUNTY:"Alpatláhuac",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30008"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.6503,19.9027],[-96.6743,19.8721],[-96.6923,19.8721],[-96.702,19.8841],[-96.7163,19.9025],[-96.7395,19.9084],[-96.7557,19.8889],[-96.771,19.9048],[-96.7942,19.931],[-96.775,19.9385],[-96.7504,19.9667],[-96.7383,19.977],[-96.7029,19.9702],[-96.6826,19.9787],[-96.6625,19.9985],[-96.6451,19.9908],[-96.6402,19.9462],[-96.6434,19.9248],[-96.6545,19.9156],[-96.6503,19.9027]]]},properties:{id:"30042",COUNTYID:"042",COUNTY:"Colipa",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30042"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.5294,19.0438],[-96.5064,19.0403],[-96.4852,19.0424],[-96.4919,19.0186],[-96.4896,18.9887],[-96.5052,18.9972],[-96.5264,18.9896],[-96.5268,18.9799],[-96.5514,18.9741],[-96.5399,18.9578],[-96.5783,18.9605],[-96.6133,18.9503],[-96.6168,18.9781],[-96.6104,18.9876],[-96.612,19.0163],[-96.6199,19.0219],[-96.6419,19.0136],[-96.6678,19.0199],[-96.6626,19.0353],[-96.643,19.0479],[-96.6303,19.0427],[-96.6161,19.0555],[-96.605,19.0498],[-96.5631,19.0542],[-96.5294,19.0438]]]},properties:{id:"30007",COUNTYID:"007",COUNTY:"Camarón de Tejeda",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30007"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0844,18.8805],[-97.0702,18.8507],[-97.0871,18.8329],[-97.0985,18.833],[-97.1102,18.832],[-97.1318,18.8537],[-97.148,18.8533],[-97.1576,18.8656],[-97.1293,18.8644],[-97.1108,18.8713],[-97.1057,18.8862],[-97.0844,18.8805]]]},properties:{id:"30118",COUNTYID:"118",COUNTY:"Orizaba",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30118"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.8122,18.0509],[-94.7931,18.0296],[-94.7695,18.0265],[-94.765,18.0056],[-94.7813,17.9996],[-94.7914,17.9801],[-94.8131,17.9684],[-94.8565,17.9552],[-94.8905,17.9525],[-94.9066,17.9594],[-94.8972,17.988],[-94.8845,17.9951],[-94.8716,17.9871],[-94.8495,17.9985],[-94.8712,18.0314],[-94.8598,18.0526],[-94.8205,18.0611],[-94.8122,18.0509]]]},properties:{id:"30145",COUNTYID:"145",COUNTY:"Soconusco",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30145"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.2636,19.1333],[-96.2563,19.0919],[-96.2644,19.0642],[-96.2828,19.0608],[-96.299,19.0338],[-96.3125,19.0284],[-96.2954,19.0076],[-96.3131,18.9938],[-96.3052,18.9741],[-96.3144,18.9782],[-96.3199,18.9994],[-96.3522,19.0153],[-96.3992,19.0323],[-96.3731,19.076],[-96.3971,19.093],[-96.3952,19.1107],[-96.4074,19.1339],[-96.4156,19.1682],[-96.4377,19.1701],[-96.4445,19.1863],[-96.4209,19.1894],[-96.405,19.186],[-96.3642,19.191],[-96.3323,19.1988],[-96.3197,19.1987],[-96.3061,19.1857],[-96.3138,19.1606],[-96.2929,19.1542],[-96.2636,19.1333]]]},properties:{id:"30100",COUNTYID:"100",COUNTY:"Manlio Fabio Altamirano",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30100"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8136,19.6989],[-96.831,19.6729],[-96.8498,19.6644],[-96.8644,19.69],[-96.8558,19.7088],[-96.8345,19.7146],[-96.8202,19.711],[-96.8136,19.6989]]]},properties:{id:"30002",COUNTYID:"002",COUNTY:"Acatlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30002"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.1038,18.9899],[-97.1277,18.9708],[-97.1208,18.9486],[-97.0943,18.937],[-97.0871,18.9195],[-97.1063,18.9108],[-97.1146,18.9302],[-97.1341,18.921],[-97.1497,18.947],[-97.1681,18.9586],[-97.1817,18.9578],[-97.2018,18.9669],[-97.2172,18.9657],[-97.2297,18.9791],[-97.255,18.9438],[-97.2613,18.9813],[-97.2789,18.9967],[-97.2769,19.0153],[-97.2672,19.0298],[-97.2393,19.0457],[-97.2147,19.046],[-97.1948,19.0539],[-97.1651,19.0131],[-97.1038,18.9899]]]},properties:{id:"30127",COUNTYID:"127",COUNTY:"La Perla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30127"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.8515,18.1308],[-95.9027,18.1357],[-95.8955,18.1465],[-95.9122,18.1534],[-95.9108,18.1849],[-95.89,18.1884],[-95.8789,18.1978],[-95.8938,18.2236],[-95.9116,18.2219],[-95.9111,18.2406],[-95.9197,18.2468],[-95.912,18.2506],[-95.9015,18.2396],[-95.8884,18.2506],[-95.8466,18.2091],[-95.8487,18.1827],[-95.8714,18.1758],[-95.8675,18.1507],[-95.8498,18.1412],[-95.8515,18.1308]]]},properties:{id:"30190",COUNTYID:"190",COUNTY:"Tuxtilla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30190"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.4325,17.4538],[-94.4289,17.428],[-94.3565,17.4513],[-94.3508,17.4365],[-94.3687,17.4272],[-94.36,17.4033],[-94.3495,17.3973],[-94.2557,17.4012],[-94.2163,17.3168],[-94.2082,17.3239],[-94.1783,17.3395],[-94.1279,17.3459],[-94.0872,17.3406],[-94.0444,17.3408],[-94.0342,17.325],[-93.9778,17.3248],[-93.9523,17.3068],[-93.9231,17.2978],[-93.931,17.2815],[-93.9317,17.2001],[-94.0019,17.1996],[-94.0016,17.1841],[-94.0901,17.1846],[-94.0856,17.179],[-94.0875,17.1494],[-94.2597,17.159],[-94.5375,17.1739],[-94.7436,17.1847],[-94.7566,17.2136],[-94.7564,17.2274],[-94.7443,17.2596],[-94.7541,17.2791],[-94.7259,17.2952],[-94.6997,17.2949],[-94.6964,17.3361],[-94.6553,17.3309],[-94.6389,17.3216],[-94.6323,17.3795],[-94.6087,17.3699],[-94.5995,17.3608],[-94.5954,17.4011],[-94.4942,17.3884],[-94.4847,17.4005],[-94.5296,17.4182],[-94.531,17.4595],[-94.5196,17.4629],[-94.4325,17.4538]]]},properties:{id:"30210",COUNTYID:"210",COUNTY:"Uxpanapa",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30210"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.6543,17.9717],[-94.6763,17.9623],[-94.6963,17.9649],[-94.6922,18.0065],[-94.684,18.0122],[-94.651,18.0175],[-94.6543,17.9717]]]},properties:{id:"30120",COUNTYID:"120",COUNTY:"Oteapan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30120"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.1102,18.832],[-97.0985,18.833],[-97.0954,18.8257],[-97.1318,18.7964],[-97.1667,18.8096],[-97.1528,18.8255],[-97.1348,18.8367],[-97.1102,18.832]]]},properties:{id:"30074",COUNTYID:"074",COUNTY:"Huiloapan de Cuauhtémoc",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30074"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.7665,18.3147],[-95.7841,18.291],[-95.7789,18.2688],[-95.7638,18.2737],[-95.7546,18.2507],[-95.7383,18.2415],[-95.7326,18.2208],[-95.7183,18.2148],[-95.7077,18.1888],[-95.7262,18.1823],[-95.7286,18.164],[-95.7654,18.1506],[-95.7758,18.1245],[-95.7809,18.093],[-95.8242,18.081],[-95.8332,18.129],[-95.8515,18.1308],[-95.8498,18.1412],[-95.8675,18.1507],[-95.8714,18.1758],[-95.8487,18.1827],[-95.8466,18.2091],[-95.8884,18.2506],[-95.9015,18.2396],[-95.912,18.2506],[-95.9176,18.2663],[-95.9047,18.2769],[-95.881,18.2751],[-95.8563,18.2825],[-95.8454,18.2961],[-95.8507,18.3158],[-95.8462,18.3276],[-95.8301,18.3336],[-95.8124,18.3171],[-95.8022,18.3181],[-95.7912,18.3379],[-95.7767,18.318],[-95.7665,18.3147]]]},properties:{id:"30054",COUNTYID:"054",COUNTY:"Chacaltianguis",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30054"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0705,18.7774],[-97.0667,18.7591],[-97.1002,18.7483],[-97.1116,18.7569],[-97.1217,18.7759],[-97.111,18.7907],[-97.0873,18.796],[-97.0677,18.7874],[-97.0705,18.7774]]]},properties:{id:"30140",COUNTYID:"140",COUNTY:"San Andrés Tenejapan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30140"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.6714,17.9557],[-94.6763,17.9623],[-94.6543,17.9717],[-94.647,17.9633],[-94.6134,17.9646],[-94.6086,17.9346],[-94.6285,17.9247],[-94.6714,17.9557]]]},properties:{id:"30199",COUNTYID:"199",COUNTY:"Zaragoza",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30199"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.1102,18.832],[-97.1348,18.8367],[-97.1528,18.8255],[-97.1707,18.8395],[-97.1805,18.8569],[-97.1576,18.8656],[-97.148,18.8533],[-97.1318,18.8537],[-97.1102,18.832]]]},properties:{id:"30138",COUNTYID:"138",COUNTY:"Río Blanco",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30138"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.1108,18.8713],[-97.1293,18.8644],[-97.1576,18.8656],[-97.1805,18.8569],[-97.2029,18.8767],[-97.2179,18.9111],[-97.1773,18.9237],[-97.155,18.9116],[-97.1271,18.9055],[-97.1108,18.8713]]]},properties:{id:"30081",COUNTYID:"081",COUNTY:"Ixhuatlancillo",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30081"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-98.3359,20.685],[-98.3549,20.6679],[-98.3412,20.6484],[-98.3654,20.6465],[-98.3768,20.617],[-98.4038,20.6041],[-98.3979,20.5716],[-98.4076,20.5631],[-98.3986,20.5417],[-98.4045,20.5331],[-98.4241,20.5359],[-98.4304,20.513],[-98.4038,20.4822],[-98.4116,20.462],[-98.4411,20.4303],[-98.4446,20.3998],[-98.4294,20.4001],[-98.4013,20.4093],[-98.3862,20.4027],[-98.4183,20.38],[-98.4604,20.3314],[-98.4804,20.3365],[-98.5195,20.3401],[-98.5343,20.3463],[-98.5474,20.3612],[-98.5431,20.3756],[-98.5502,20.3957],[-98.55,20.4355],[-98.5537,20.4464],[-98.5721,20.4639],[-98.5933,20.4994],[-98.5581,20.5109],[-98.5347,20.5307],[-98.5245,20.5484],[-98.5211,20.5844],[-98.5059,20.5962],[-98.4963,20.5895],[-98.4785,20.5943],[-98.4952,20.6366],[-98.486,20.6544],[-98.47,20.6626],[-98.4604,20.6768],[-98.4599,20.6962],[-98.4292,20.7164],[-98.4031,20.7078],[-98.3882,20.6955],[-98.362,20.6866],[-98.3359,20.685]]]},properties:{id:"30072",COUNTYID:"072",COUNTY:"Huayacocotla",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30072"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0847,18.6412],[-97.0784,18.6294],[-97.0612,18.5983],[-97.0489,18.5884],[-97.0977,18.5777],[-97.1289,18.5758],[-97.1446,18.5709],[-97.1424,18.5933],[-97.1402,18.6176],[-97.1231,18.6357],[-97.1342,18.6481],[-97.1094,18.6554],[-97.0847,18.6412]]]},properties:{id:"30184",COUNTYID:"184",COUNTY:"Tlaquilpa",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30184"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.8956,19.7676],[-96.9323,19.7552],[-96.9565,19.7634],[-96.9743,19.7848],[-96.9941,19.785],[-96.9754,19.7969],[-96.96,19.8148],[-96.9819,19.838],[-96.9581,19.855],[-96.9504,19.8677],[-96.9563,19.893],[-96.9563,19.8952],[-96.9307,19.8765],[-96.9121,19.848],[-96.9008,19.8199],[-96.8933,19.7841],[-96.8956,19.7676]]]},properties:{id:"30163",COUNTYID:"163",COUNTY:"Tenochtitlán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30163"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.7263,18.7442],[-96.6895,18.7445],[-96.6548,18.7515],[-96.6485,18.7461],[-96.5936,18.7383],[-96.5768,18.7388],[-96.58,18.7246],[-96.5669,18.7077],[-96.5914,18.7053],[-96.5986,18.6929],[-96.5918,18.6801],[-96.6132,18.676],[-96.6119,18.6546],[-96.6282,18.6319],[-96.6833,18.6693],[-96.6841,18.6443],[-96.7082,18.6582],[-96.7235,18.6796],[-96.7441,18.6925],[-96.7723,18.6939],[-96.7862,18.7122],[-96.8429,18.7526],[-96.8472,18.7439],[-96.8717,18.7523],[-96.8849,18.7449],[-96.893,18.7421],[-96.9153,18.761],[-96.9043,18.7861],[-96.8769,18.7732],[-96.87,18.7626],[-96.8538,18.7583],[-96.846,18.7661],[-96.8228,18.7629],[-96.7994,18.7506],[-96.7803,18.7508],[-96.7323,18.7396],[-96.7263,18.7442]]]},properties:{id:"30117",COUNTYID:"117",COUNTY:"Omealca",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30117"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9628,18.7707],[-96.9525,18.7542],[-96.9859,18.7271],[-96.9935,18.7039],[-97.0139,18.7032],[-97.0345,18.7082],[-97.0696,18.7032],[-97.0864,18.7083],[-97.1212,18.7015],[-97.1322,18.7303],[-97.1307,18.7663],[-97.1116,18.7569],[-97.1002,18.7483],[-97.0667,18.7591],[-97.0468,18.7475],[-97.0284,18.7532],[-97.0221,18.7626],[-96.9959,18.7699],[-96.9839,18.7791],[-96.9876,18.7941],[-96.9748,18.7988],[-96.9751,18.7797],[-96.9628,18.7707]]]},properties:{id:"30168",COUNTYID:"168",COUNTY:"Tequila",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30168"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.0259,19.78],[-97.0342,19.7345],[-97.0309,19.7192],[-97.0442,19.706],[-97.0659,19.6938],[-97.0683,19.685],[-97.0911,19.6568],[-97.151,19.6463],[-97.1402,19.6711],[-97.1475,19.6866],[-97.141,19.6966],[-97.1027,19.7267],[-97.1113,19.7401],[-97.0779,19.7462],[-97.0711,19.7661],[-97.0366,19.7812],[-97.0259,19.78]]]},properties:{id:"30156",COUNTYID:"156",COUNTY:"Tatatila",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30156"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.1113,19.7401],[-97.1027,19.7267],[-97.141,19.6966],[-97.1475,19.6866],[-97.1402,19.6711],[-97.151,19.6463],[-97.1957,19.6783],[-97.1822,19.6944],[-97.1791,19.7076],[-97.1532,19.7386],[-97.1439,19.7396],[-97.1274,19.7602],[-97.1113,19.7401]]]},properties:{id:"30107",COUNTYID:"107",COUNTY:"Las Minas",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30107"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.8351,18.3242],[-94.8349,18.3071],[-94.8227,18.2836],[-94.8268,18.2622],[-94.8511,18.2595],[-94.8592,18.2427],[-94.8435,18.1604],[-94.7973,18.1552],[-94.7962,18.1266],[-94.8154,18.1292],[-94.8187,18.1171],[-94.8365,18.1145],[-94.8526,18.1016],[-94.8425,18.086],[-94.8042,18.0865],[-94.8002,18.082],[-94.7952,18.0722],[-94.8122,18.0509],[-94.8205,18.0611],[-94.8598,18.0526],[-94.8743,18.0654],[-94.8855,18.0976],[-94.8841,18.1071],[-94.9184,18.1187],[-94.923,18.1346],[-94.9437,18.1375],[-94.9895,18.1064],[-94.9919,18.1274],[-94.966,18.1495],[-94.964,18.2338],[-94.9802,18.234],[-94.9851,18.2614],[-94.9964,18.2683],[-95.0019,18.3064],[-94.9977,18.3268],[-95.0179,18.32],[-95.026,18.3375],[-94.9992,18.3477],[-94.9854,18.3468],[-94.973,18.3639],[-94.9449,18.365],[-94.9348,18.3559],[-94.9078,18.3599],[-94.8803,18.3718],[-94.8692,18.3896],[-94.8567,18.3997],[-94.8333,18.4039],[-94.8226,18.3723],[-94.8329,18.3506],[-94.8351,18.3242]]]},properties:{id:"30149",COUNTYID:"149",COUNTY:"Soteapan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30149"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.0075,17.9299],[-95.0341,17.8884],[-95.0268,17.8612],[-95.0368,17.8411],[-95.0277,17.825],[-95.0483,17.8206],[-95.0522,17.8037],[-95.0637,17.7864],[-95.0631,17.7726],[-95.0383,17.7515],[-94.9857,17.7215],[-94.9526,17.7084],[-94.9484,17.6784],[-94.9161,17.6895],[-94.9042,17.6813],[-94.9116,17.627],[-94.889,17.6238],[-94.8789,17.6145],[-94.8905,17.5937],[-94.9075,17.6056],[-94.9064,17.6141],[-94.9345,17.6312],[-94.9621,17.6352],[-94.9696,17.6547],[-94.9979,17.6582],[-95.0232,17.6856],[-95.0289,17.7158],[-95.0584,17.7198],[-95.0647,17.7013],[-95.0486,17.683],[-95.0463,17.6643],[-95.0066,17.6518],[-95.0117,17.6349],[-95.0527,17.6519],[-95.0669,17.646],[-95.0743,17.6075],[-95.0761,17.5785],[-95.0604,17.5717],[-95.0819,17.5732],[-95.1245,17.5595],[-95.1518,17.5627],[-95.1722,17.5569],[-95.1763,17.546],[-95.1978,17.5459],[-95.2046,17.5387],[-95.2536,17.602],[-95.2675,17.6035],[-95.2713,17.6247],[-95.253,17.6334],[-95.2184,17.6393],[-95.2091,17.6525],[-95.1924,17.6549],[-95.1815,17.6858],[-95.2389,17.7393],[-95.2603,17.7301],[-95.265,17.718],[-95.2912,17.7163],[-95.3102,17.7074],[-95.3336,17.6756],[-95.3512,17.6782],[-95.3642,17.6759],[-95.3831,17.6905],[-95.4114,17.6942],[-95.4117,17.7122],[-95.4258,17.7262],[-95.4344,17.7531],[-95.4121,17.7834],[-95.3512,17.8028],[-95.3477,17.817],[-95.3286,17.8172],[-95.3058,17.8086],[-95.3016,17.7964],[-95.2793,17.8148],[-95.2792,17.8717],[-95.2599,17.8807],[-95.237,17.8758],[-95.2343,17.8886],[-95.2461,17.9014],[-95.2386,17.9355],[-95.2395,17.9686],[-95.2176,17.9712],[-95.2082,17.9859],[-95.1959,17.9854],[-95.1664,17.9777],[-95.1648,17.9549],[-95.1454,17.9435],[-95.1189,17.959],[-95.0967,17.9572],[-95.097,17.9728],[-95.0583,17.9743],[-95.0455,17.9599],[-95.0101,17.9643],[-95.0075,17.9299]]]},properties:{id:"30142",COUNTYID:"142",COUNTY:"San Juan Evangelista",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30142"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.9303,17.9214],[-94.92,17.9023],[-94.932,17.8883],[-94.9297,17.8701],[-94.9,17.8518],[-94.8933,17.8369],[-94.891,17.798],[-94.8755,17.7803],[-94.8697,17.7649],[-94.8794,17.7499],[-94.8435,17.7379],[-94.8302,17.7371],[-94.8295,17.7062],[-94.8099,17.6855],[-94.8035,17.6634],[-94.8065,17.6187],[-94.8004,17.618],[-94.8049,17.5834],[-94.811,17.5885],[-94.8412,17.5904],[-94.852,17.5846],[-94.8909,17.5816],[-94.9236,17.5686],[-94.9395,17.5785],[-94.9639,17.5745],[-95.0002,17.5794],[-95.024,17.5637],[-95.0481,17.5743],[-95.0604,17.5717],[-95.0761,17.5785],[-95.0743,17.6075],[-95.0669,17.646],[-95.0527,17.6519],[-95.0117,17.6349],[-95.0066,17.6518],[-95.0463,17.6643],[-95.0486,17.683],[-95.0647,17.7013],[-95.0584,17.7198],[-95.0289,17.7158],[-95.0232,17.6856],[-94.9979,17.6582],[-94.9696,17.6547],[-94.9621,17.6352],[-94.9345,17.6312],[-94.9064,17.6141],[-94.9075,17.6056],[-94.8905,17.5937],[-94.8789,17.6145],[-94.889,17.6238],[-94.9116,17.627],[-94.9042,17.6813],[-94.9161,17.6895],[-94.9484,17.6784],[-94.9526,17.7084],[-94.9857,17.7215],[-95.0383,17.7515],[-95.0631,17.7726],[-95.0637,17.7864],[-95.0522,17.8037],[-95.0483,17.8206],[-95.0277,17.825],[-95.0368,17.8411],[-95.0268,17.8612],[-95.0341,17.8884],[-95.0075,17.9299],[-94.9862,17.9258],[-94.9825,17.9077],[-94.9548,17.9285],[-94.9303,17.9214]]]},properties:{id:"30144",COUNTYID:"144",COUNTY:"Sayula de Alemán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30144"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.7503,21.5289],[-97.7518,21.5001],[-97.7704,21.4959],[-97.7449,21.4731],[-97.7559,21.4658],[-97.7593,21.4488],[-97.741,21.4493],[-97.723,21.4655],[-97.7051,21.4694],[-97.6658,21.465],[-97.6458,21.4722],[-97.6465,21.4837],[-97.6236,21.4888],[-97.6064,21.4992],[-97.5692,21.4639],[-97.5643,21.4427],[-97.5715,21.4186],[-97.581,21.4046],[-97.5961,21.4131],[-97.6119,21.4201],[-97.6473,21.4218],[-97.6785,21.4064],[-97.6843,21.3917],[-97.7022,21.391],[-97.7309,21.4148],[-97.752,21.4148],[-97.7724,21.4397],[-97.7998,21.4236],[-97.7621,21.4065],[-97.751,21.3862],[-97.7747,21.3622],[-97.7959,21.3669],[-97.8189,21.3504],[-97.8213,21.3255],[-97.8085,21.3205],[-97.8247,21.3143],[-97.8443,21.2975],[-97.858,21.3182],[-97.862,21.3596],[-97.8516,21.3713],[-97.8902,21.4079],[-97.889,21.3865],[-97.8971,21.3764],[-97.9105,21.3885],[-97.9307,21.4186],[-97.9321,21.4276],[-97.9085,21.4425],[-97.9018,21.4347],[-97.8422,21.4343],[-97.8339,21.47],[-97.8137,21.4848],[-97.8087,21.496],[-97.792,21.5028],[-97.7962,21.5216],[-97.7667,21.5308],[-97.7503,21.5289]]]},properties:{id:"30154",COUNTYID:"154",COUNTY:"Tantima",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30154"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.5281,18.8646],[-96.4875,18.8371],[-96.4797,18.8209],[-96.4666,18.8141],[-96.4718,18.802],[-96.4658,18.786],[-96.4738,18.7771],[-96.4974,18.7749],[-96.5135,18.7564],[-96.5418,18.7547],[-96.5638,18.7619],[-96.5936,18.7602],[-96.613,18.7697],[-96.6391,18.7721],[-96.647,18.7665],[-96.6849,18.7773],[-96.689,18.8534],[-96.668,18.8476],[-96.6456,18.8508],[-96.6446,18.8739],[-96.6174,18.8874],[-96.6006,18.8884],[-96.5909,18.8766],[-96.5581,18.8825],[-96.5281,18.8646]]]},properties:{id:"30031",COUNTYID:"031",COUNTY:"Carrillo Puerto",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30031"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.5578,19.8284],[-96.5814,19.7919],[-96.6153,19.7813],[-96.625,19.7844],[-96.6468,19.7743],[-96.6486,19.7558],[-96.6756,19.7473],[-96.6839,19.7449],[-96.7072,19.7551],[-96.7191,19.7768],[-96.7469,19.7887],[-96.7361,19.8113],[-96.7411,19.8167],[-96.7426,19.8245],[-96.7202,19.845],[-96.7241,19.8593],[-96.702,19.8841],[-96.6923,19.8721],[-96.6743,19.8721],[-96.6503,19.9027],[-96.6499,19.8924],[-96.6305,19.8791],[-96.6237,19.8641],[-96.599,19.8485],[-96.5792,19.8438],[-96.5717,19.8314],[-96.5578,19.8284]]]},properties:{id:"30095",COUNTYID:"095",COUNTY:"Juchique de Ferrer",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30095"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.0902,17.9683],[-94.0913,17.9366],[-94.0798,17.8921],[-94.0834,17.8699],[-94.0649,17.8646],[-94.0517,17.8708],[-94.0375,17.8627],[-94.0176,17.8394],[-93.9785,17.8517],[-93.9639,17.8306],[-93.9634,17.8127],[-93.9531,17.7921],[-93.9561,17.7817],[-93.9411,17.7655],[-93.9384,17.7525],[-93.9101,17.7547],[-93.8715,17.753],[-93.8735,17.7349],[-93.8651,17.7211],[-93.8342,17.7166],[-93.768,17.6873],[-93.7471,17.6684],[-93.7379,17.6319],[-93.7007,17.6106],[-93.6997,17.5964],[-93.6872,17.5937],[-93.6485,17.5553],[-93.6311,17.5567],[-93.6215,17.5447],[-93.625,17.5146],[-93.6346,17.5072],[-93.6244,17.4932],[-93.6366,17.4749],[-93.6401,17.4499],[-93.6541,17.4196],[-93.669,17.4202],[-93.6918,17.3905],[-93.6857,17.3724],[-93.6357,17.3384],[-93.6413,17.3179],[-93.6244,17.3225],[-93.6079,17.3149],[-93.6381,17.2909],[-93.6644,17.2862],[-93.6627,17.2563],[-93.6899,17.2553],[-93.6957,17.2472],[-93.7368,17.2475],[-93.7636,17.2394],[-93.7724,17.2458],[-93.8038,17.2249],[-93.8267,17.1893],[-93.8271,17.1725],[-93.8609,17.1637],[-93.8674,17.137],[-94.0875,17.1494],[-94.0856,17.179],[-94.0901,17.1846],[-94.0016,17.1841],[-94.0019,17.1996],[-93.9317,17.2001],[-93.931,17.2815],[-93.9231,17.2978],[-93.9523,17.3068],[-93.9778,17.3248],[-94.0342,17.325],[-94.0444,17.3408],[-94.0872,17.3406],[-94.1279,17.3459],[-94.1783,17.3395],[-94.2082,17.3239],[-94.2165,17.3574],[-94.1857,17.3906],[-94.1854,17.411],[-94.2013,17.4191],[-94.2254,17.4483],[-94.2313,17.4694],[-94.2281,17.4909],[-94.2098,17.5087],[-94.2293,17.5107],[-94.2344,17.5373],[-94.2204,17.5549],[-94.2201,17.5815],[-94.1941,17.5809],[-94.1906,17.5649],[-94.152,17.5818],[-94.1436,17.5748],[-94.126,17.5853],[-94.1278,17.5954],[-94.1506,17.6068],[-94.169,17.6045],[-94.1583,17.6273],[-94.1466,17.632],[-94.1691,17.6497],[-94.2015,17.6565],[-94.1787,17.6756],[-94.1903,17.6924],[-94.1832,17.705],[-94.1983,17.7251],[-94.2109,17.733],[-94.2255,17.7616],[-94.2099,17.7821],[-94.2076,17.7989],[-94.2176,17.8121],[-94.1998,17.8419],[-94.2157,17.8579],[-94.241,17.8409],[-94.2722,17.85],[-94.2943,17.852],[-94.3023,17.8639],[-94.2719,17.8624],[-94.2672,17.8878],[-94.2585,17.8891],[-94.2347,17.9166],[-94.2228,17.9378],[-94.2113,17.9439],[-94.2178,17.9642],[-94.1973,17.9897],[-94.1803,17.9892],[-94.1761,17.9787],[-94.1548,17.9839],[-94.1334,17.9787],[-94.118,17.9678],[-94.0902,17.9683]]]},properties:{id:"30061",COUNTYID:"061",COUNTY:"Las Choapas",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30061"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9738,18.6292],[-97.0003,18.6085],[-97.018,18.6124],[-97.0187,18.5869],[-97.0415,18.5855],[-97.0481,18.5814],[-97.0489,18.5884],[-97.0612,18.5983],[-97.0784,18.6294],[-97.0522,18.6447],[-97.0202,18.6509],[-96.9951,18.626],[-96.9738,18.6292]]]},properties:{id:"30171",COUNTYID:"171",COUNTY:"Texhuacán",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30171"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9548,19.5673],[-96.9573,19.5509],[-96.9678,19.5337],[-96.9512,19.5298],[-96.9477,19.5142],[-96.9686,19.5076],[-96.9804,19.5147],[-97.0025,19.5113],[-97.0142,19.5218],[-97.0106,19.5352],[-97.0183,19.5516],[-97.0048,19.5557],[-96.996,19.5783],[-96.9888,19.5791],[-96.9548,19.5673]]]},properties:{id:"30182",COUNTYID:"182",COUNTY:"Tlalnelhuayocan",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30182"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.7477,18.8457],[-96.7666,18.8081],[-96.7667,18.7831],[-96.7774,18.7686],[-96.7985,18.7756],[-96.8288,18.776],[-96.8377,18.7859],[-96.8352,18.7991],[-96.848,18.807],[-96.8317,18.8244],[-96.8223,18.8434],[-96.8515,18.8645],[-96.8248,18.8822],[-96.7809,18.8738],[-96.7615,18.8513],[-96.7477,18.8457]]]},properties:{id:"30196",COUNTYID:"196",COUNTY:"Yanga",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30196"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.9919,18.1274],[-94.9978,18.1385],[-95.0165,18.14],[-95.0206,18.1216],[-95.0418,18.1153],[-95.0596,18.1325],[-95.0869,18.1424],[-95.1028,18.1276],[-95.1205,18.1334],[-95.1388,18.1086],[-95.1597,18.0891],[-95.1599,18.0767],[-95.1828,18.0744],[-95.2027,18.0796],[-95.2599,18.1235],[-95.2722,18.112],[-95.3246,18.1325],[-95.3297,18.1476],[-95.3887,18.1779],[-95.4122,18.2],[-95.3929,18.2117],[-95.3817,18.2264],[-95.3459,18.2364],[-95.3152,18.2292],[-95.2959,18.2122],[-95.2839,18.2171],[-95.2919,18.2451],[-95.263,18.2426],[-95.2504,18.2322],[-95.2179,18.2375],[-95.2129,18.2506],[-95.2442,18.2637],[-95.2374,18.2793],[-95.2229,18.2586],[-95.2049,18.2564],[-95.1879,18.2863],[-95.19,18.2942],[-95.1614,18.3039],[-95.1224,18.2987],[-95.1153,18.3105],[-95.0981,18.3037],[-95.0787,18.3094],[-95.0632,18.277],[-95.0423,18.2712],[-95.021,18.2844],[-95.0303,18.3097],[-95.0179,18.32],[-94.9977,18.3268],[-95.0019,18.3064],[-94.9964,18.2683],[-94.9851,18.2614],[-94.9802,18.234],[-94.964,18.2338],[-94.966,18.1495],[-94.9919,18.1274]]]},properties:{id:"30073",COUNTYID:"073",COUNTY:"Hueyapan de Ocampo",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30073"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.9684,19.5967],[-96.9888,19.5791],[-96.996,19.5783],[-96.9966,19.6136],[-97.0025,19.617],[-96.9875,19.6207],[-96.9744,19.6132],[-96.9684,19.5967]]]},properties:{id:"30136",COUNTYID:"136",COUNTY:"Rafael Lucio",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30136"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.7786,18.3999],[-95.7801,18.4179],[-95.7693,18.4389],[-95.7572,18.4388],[-95.7406,18.4193],[-95.681,18.3873],[-95.6522,18.3746],[-95.6397,18.3563],[-95.643,18.3404],[-95.6556,18.3299],[-95.6615,18.3084],[-95.6424,18.3045],[-95.6447,18.281],[-95.6574,18.2768],[-95.654,18.262],[-95.683,18.2507],[-95.7183,18.2148],[-95.7326,18.2208],[-95.7383,18.2415],[-95.7546,18.2507],[-95.7638,18.2737],[-95.7789,18.2688],[-95.7841,18.291],[-95.7665,18.3147],[-95.7794,18.3418],[-95.7769,18.3598],[-95.7786,18.3999]]]},properties:{id:"30208",COUNTYID:"208",COUNTY:"Carlos A. Carrillo",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30208"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.3254,18.7665],[-97.3308,18.7639],[-97.352,18.7929],[-97.3258,18.813],[-97.312,18.8107],[-97.2922,18.7864],[-97.3254,18.7665]]]},properties:{id:"30018",COUNTYID:"018",COUNTY:"Aquila",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30018"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.5942,18.0963],[-94.5879,18.0907],[-94.6189,18.0387],[-94.651,18.0175],[-94.684,18.0122],[-94.6922,18.0065],[-94.7053,18.017],[-94.7695,18.0265],[-94.7931,18.0296],[-94.8122,18.0509],[-94.7952,18.0722],[-94.8002,18.082],[-94.7596,18.0854],[-94.7441,18.0833],[-94.7365,18.1019],[-94.74,18.1186],[-94.6526,18.0896],[-94.6267,18.0999],[-94.5942,18.0963]]]},properties:{id:"30059",COUNTYID:"059",COUNTY:"Chinameca",STATEID:"30",STATE:"Veracruz de Ignacio de la Llave",CNTRY:"Mexico"},id:"30059"}]};window.am4geodata_region_mexico_verLow=r}},["b4GP"]); //# sourceMappingURL=verLow.js.map
8,266.714286
172,952
0.65116
5e0013a116b0fd488e20c33942d9df9676cedb8d
1,644
js
JavaScript
libs/arcgis_js_api_3.34/moment/locale/et.js
GitHubYangZhiwen/arcgis-js-siteapp-3.x
3f81d15eb2a89eacb6cd548a9591edb40b920e50
[ "Apache-2.0" ]
null
null
null
libs/arcgis_js_api_3.34/moment/locale/et.js
GitHubYangZhiwen/arcgis-js-siteapp-3.x
3f81d15eb2a89eacb6cd548a9591edb40b920e50
[ "Apache-2.0" ]
2
2020-03-10T18:14:40.000Z
2020-03-10T18:16:26.000Z
libs/arcgis_js_api_3.34/moment/locale/et.js
GitHubYangZhiwen/arcgis-js-siteapp-3.x
3f81d15eb2a89eacb6cd548a9591edb40b920e50
[ "Apache-2.0" ]
null
null
null
//>>built (function(c,a){"object"===typeof exports&&"undefined"!==typeof module&&"function"===typeof require?a(require("../moment")):"function"===typeof define&&define.amd?define("moment/locale/et",["../moment"],a):a(c.moment)})(this,function(c){function a(b,a,d,c){b={s:["m\u00f5ne sekundi","m\u00f5ni sekund","paar sekundit"],ss:[b+"sekundi",b+"sekundit"],m:["\u00fche minuti","\u00fcks minut"],mm:[b+" minuti",b+" minutit"],h:["\u00fche tunni","tund aega","\u00fcks tund"],hh:[b+" tunni",b+" tundi"],d:["\u00fche p\u00e4eva", "\u00fcks p\u00e4ev"],M:["kuu aja","kuu aega","\u00fcks kuu"],MM:[b+" kuu",b+" kuud"],y:["\u00fche aasta","aasta","\u00fcks aasta"],yy:[b+" aasta",b+" aastat"]};return a?b[d][2]?b[d][2]:b[d][1]:c?b[d][0]:b[d][1]}return c.defineLocale("et",{months:"jaanuar veebruar m\u00e4rts aprill mai juuni juuli august september oktoober november detsember".split(" "),monthsShort:"jaan veebr m\u00e4rts apr mai juuni juuli aug sept okt nov dets".split(" "),weekdays:"p\u00fchap\u00e4ev esmasp\u00e4ev teisip\u00e4ev kolmap\u00e4ev neljap\u00e4ev reede laup\u00e4ev".split(" "), weekdaysShort:"PETKNRL".split(""),weekdaysMin:"PETKNRL".split(""),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\u00e4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\u00e4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\u00e4rast",past:"%s tagasi",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:"%d p\u00e4eva",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./, ordinal:"%d.",week:{dow:1,doy:4}})});
328.8
565
0.673358
5e0079e33fa8e391004ca48a876bc049bc6537db
697
js
JavaScript
middlewares/validators/signInValidator.js
GustiArsyad123/final-project-ga
12f1cf21c1e1c70ee171b34078cf7aeabd29b564
[ "MIT" ]
null
null
null
middlewares/validators/signInValidator.js
GustiArsyad123/final-project-ga
12f1cf21c1e1c70ee171b34078cf7aeabd29b564
[ "MIT" ]
null
null
null
middlewares/validators/signInValidator.js
GustiArsyad123/final-project-ga
12f1cf21c1e1c70ee171b34078cf7aeabd29b564
[ "MIT" ]
null
null
null
const path = require("path"); const validator = require("validator"); exports.signInValidator = async (req, res, next) => { try { const errors = []; if (validator.isEmpty(req.body.email)) { errors.push("Please input your password"); } if (!validator.isEmail(req.body.email)) { errors.push("Email is not valid"); } if (validator.isEmpty(req.body.password)) { errors.push("Please input your password"); } if (errors.length > 0) { return res.status(400).json({ success: false, errors: errors }); } next(); } catch (error) { console.log(error); res.status(401).json({ success: false, errors: ["Bad request"] }); } };
23.233333
70
0.601148
5e007cb992c0a7a1edee3de519d17a0003c3fe24
764
js
JavaScript
modules/dom/getWindowDimensions.js
bluegrassdigital/blue-js
ec823b8c3502d6250ec235db93d0fcc7baff75b8
[ "MIT" ]
3
2016-11-04T06:57:28.000Z
2018-09-21T13:49:36.000Z
modules/dom/getWindowDimensions.js
bluegrassdigital/blue-js
ec823b8c3502d6250ec235db93d0fcc7baff75b8
[ "MIT" ]
12
2018-08-31T07:17:16.000Z
2020-06-01T01:20:50.000Z
modules/dom/getWindowDimensions.js
bluegrassdigital/blue-js
ec823b8c3502d6250ec235db93d0fcc7baff75b8
[ "MIT" ]
null
null
null
/** Cross browser funtion for getting the dimensions of the window @param {object} [w=window] The window element @param {object} [d=document] The document element @returns {windowDimensions} The window dimensions @function @memberof module:blue @alias .getWindowDimensions */ export default function getWindowDimensions (w, d) { w = w || window d = d || document var e = d.documentElement var g = d.getElementsByTagName('body')[0] var width = w.innerWidth || e.clientWidth || g.clientWidth var height = w.innerHeight || e.clientHeight || g.clientHeight return { width: width, height: height } } /** @typedef {Object} windowDimensions @property {number} width Window width @property {number} height Window height @memberof module:blue */
25.466667
64
0.725131
5e00c48123abeae395538e1c0063cf84f132f54d
97
js
JavaScript
crates/swc/tests/tsc-references/optionalBindingParameters1_es2015.1.normal.js
mengxy/swc
bcc3ae86ae0732979f9fbfef370ae729ba9af080
[ "Apache-2.0" ]
1
2022-03-25T05:35:24.000Z
2022-03-25T05:35:24.000Z
crates/swc/tests/tsc-references/optionalBindingParameters1_es2015.1.normal.js
Austaras/swc
4a4e72f424efe11cc2e2edc1a4f305799f26f7b8
[ "Apache-2.0" ]
1
2021-12-11T06:34:27.000Z
2021-12-11T06:34:27.000Z
crates/swc/tests/tsc-references/optionalBindingParameters1_es2015.1.normal.js
Austaras/swc
4a4e72f424efe11cc2e2edc1a4f305799f26f7b8
[ "Apache-2.0" ]
1
2022-01-27T02:43:48.000Z
2022-01-27T02:43:48.000Z
function foo([x, y, z]) {} foo([ "", 0, false ]); foo([ false, 0, "" ]);
8.083333
26
0.329897
5e00da8b41d1aa1ded66f30827ec48e867ac5d39
1,899
js
JavaScript
trainning6.js
ValeryC/kata-js-trainning
68bb0ffa4cebbef0f444b0eff6a12da955c39518
[ "MIT" ]
null
null
null
trainning6.js
ValeryC/kata-js-trainning
68bb0ffa4cebbef0f444b0eff6a12da955c39518
[ "MIT" ]
null
null
null
trainning6.js
ValeryC/kata-js-trainning
68bb0ffa4cebbef0f444b0eff6a12da955c39518
[ "MIT" ]
null
null
null
// const trueOrFalse = val => { // if (val == false || val == null) return "false" // else return "true" // } const trueOrFalse = val => (val ? "true" : "false") //test for equations and inequalities const a = 1, b = 2, c = 1 console.log(trueOrFalse(a > b), "false") console.log(trueOrFalse(a === b), "false") console.log(trueOrFalse(a < b), "true") console.log(trueOrFalse(a !== b), "true") console.log(trueOrFalse(b > c), "true") console.log(trueOrFalse(b === c), "false") console.log(trueOrFalse(b < c), "false") console.log(trueOrFalse(b !== c), "true") console.log(trueOrFalse(a === c), "true") console.log(trueOrFalse(a !== c), "false") //test for logical operators and bitwise operators const t = true, f = false console.log(trueOrFalse(t && f), "false") console.log(trueOrFalse(f && f), "false") console.log(trueOrFalse(t && t), "true") console.log(trueOrFalse(t || f), "true") console.log(trueOrFalse(t || t), "true") console.log(trueOrFalse(f || f), "false") console.log(trueOrFalse(t & f), "false") console.log(trueOrFalse(t & t), "true") console.log(trueOrFalse(f & f), "false") console.log(trueOrFalse(t | f), "true") console.log(trueOrFalse(t | t), "true") console.log(trueOrFalse(f | f), "false") console.log(trueOrFalse(!t), "false") console.log(trueOrFalse(!f), "true") console.log(trueOrFalse(t ^ f), "true") console.log(trueOrFalse(t ^ t), "false") console.log(trueOrFalse(f ^ f), "false") //test for implicit conversion console.log(trueOrFalse(true), "true") console.log(trueOrFalse(123), "true") console.log(trueOrFalse("123"), "true") console.log(trueOrFalse(["123"]), "true") console.log(trueOrFalse("false"), "true") console.log(trueOrFalse(false), "false") console.log(trueOrFalse(0), "false") console.log(trueOrFalse(""), "false") console.log(trueOrFalse(null), "false") console.log(trueOrFalse([].length), "false") console.log(trueOrFalse(undefined), "false")
35.166667
52
0.675092
5e01219a90a9f1d5bc8ce4709321bcb935f4a81b
4,050
js
JavaScript
src/components/layout.js
Parijat29/gatsby-travel-blog
672bd23719c1fd911f8e0c81f7a864cf918cc9bd
[ "MIT" ]
null
null
null
src/components/layout.js
Parijat29/gatsby-travel-blog
672bd23719c1fd911f8e0c81f7a864cf918cc9bd
[ "MIT" ]
5
2020-04-16T08:31:56.000Z
2020-04-23T14:28:05.000Z
src/components/layout.js
Parijat29/gatsby-travel-blog
672bd23719c1fd911f8e0c81f7a864cf918cc9bd
[ "MIT" ]
null
null
null
import React from "react" import PropTypes from 'prop-types'; import { Link } from "gatsby" import { AppBar, Box, CssBaseline, Tab, Tabs, Toolbar, Typography, Container } from "@material-ui/core"; import { makeStyles } from "@material-ui/core/styles"; import Copyright from "./copyright" const useStyles = makeStyles(theme => ({ root: { display: 'flex', flexDirection: 'column', minHeight: '100vh', }, menuButton: { marginRight: theme.spacing(2) }, title: { flexGrow: 1, boxShadow: 'none', color: 'inherit', textDecoration: 'none', }, centerTitle: { flexGrow: 1, textAlign: 'center', boxShadow: 'none', color: 'inherit', textDecoration: 'none', }, toolbar: { alignItems: 'flex-start', paddingTop: theme.spacing(2), paddingBottom: theme.spacing(2), }, offset: theme.mixins.toolbar, main: { marginTop: theme.spacing(8), marginBottom: theme.spacing(2), }, footer: { padding: theme.spacing(3, 2), alignContent: 'center', marginTop: 'auto', backgroundColor: theme.palette.type === 'light' ? theme.palette.grey[200] : theme.palette.grey[800], }, })); function TabPanel(props) { const { children, value, index, ...other } = props; return ( <Typography component="div" role="tabpanel" hidden={value !== index} id={`tabpanel-${index}`} aria-labelledby={`tab-${index}`} {...other} > {value === index && <Box p={3}>{children}</Box>} </Typography> ); } TabPanel.propTypes = { children: PropTypes.node, index: PropTypes.any.isRequired, value: PropTypes.any.isRequired, }; function a11yProps(index) { return { id: `tab-${index}`, 'aria-controls': `tabpanel-${index}`, }; } const Layout = ({ location, title, tabs={}, setTab, postTitle="", children }) => { const rootPath = `${__PATH_PREFIX__}/`; const classes = useStyles(); const [value, setValue] = React.useState(0); const handleChange = (event, newValue) => { setValue(newValue); setTab(newValue); }; let header if (location.pathname === rootPath) { header = ( <AppBar position="fixed"> <Toolbar className={classes.toolbar}> <Link className={classes.centerTitle} activeClassName={classes.centerTitle} to={`/`} > <Typography variant="h5" > {title} </Typography> </Link> </Toolbar> </AppBar> ); } else { header = ( <React.Fragment> <AppBar position="fixed"> <Toolbar variant="dense"> <Link className={classes.title} activeClassName={classes.title} to={`/`} > <Typography variant="h6" display="inline" > {title} | {' '} </Typography> <Typography variant="subtitle2" display="inline" > {postTitle} </Typography> </Link> <Tabs value={value} onChange={handleChange} > {Object.keys(tabs).map((tab) => <Tab label={tab} {...a11yProps(tabs[tab])} key={tabs[tab]} /> )} </Tabs> </Toolbar> </AppBar> {/* <div className={classes.offset} /> */} </React.Fragment> ); } return ( <div className={classes.root}> <CssBaseline /> <header>{header}</header> <Container maxWidth="md" className={classes.main} component="main"> {/* <TabPanel value={value} index={0}> Item One </TabPanel> <TabPanel value={value} index={1}> Item Two </TabPanel> <TabPanel value={value} index={2}> Item Three </TabPanel> */} {children} </Container> <footer className={classes.footer}> <Container maxWidth="sm"> <Copyright /> </Container> </footer> </div> ) } export default Layout
24.545455
104
0.541235
5e0231c622dcd5a54842b4e7b147f322df69f52c
778
js
JavaScript
src/rules/selector-no-attribute/__tests__/index.js
ChaosExAnima/stylelint
da380b4c090b1823b77749d298a882349529f6d3
[ "MIT" ]
1
2021-09-03T00:10:39.000Z
2021-09-03T00:10:39.000Z
src/rules/selector-no-attribute/__tests__/index.js
ChaosExAnima/stylelint
da380b4c090b1823b77749d298a882349529f6d3
[ "MIT" ]
null
null
null
src/rules/selector-no-attribute/__tests__/index.js
ChaosExAnima/stylelint
da380b4c090b1823b77749d298a882349529f6d3
[ "MIT" ]
null
null
null
import { ruleTester, warningFreeBasics, } from "../../../testUtils" import rule, { ruleName, messages } from ".." const testRule = ruleTester(rule, ruleName) testRule(undefined, tr => { warningFreeBasics(tr) tr.ok("foo {}") tr.ok(".bar {}") tr.ok("foo .bar {}") tr.notOk("[foo] {}", { message: messages.rejected, line: 1, column: 1, }) tr.notOk("a[rel=\"external\"] {}", { message: messages.rejected, line: 1, column: 2, }) tr.notOk("a, .foo[type=\"text\"] {}", { message: messages.rejected, line: 1, column: 8, }) tr.notOk("a > [foo] {}", { message: messages.rejected, line: 1, column: 5, }) tr.notOk("a[rel='external'] {}", { message: messages.rejected, line: 1, column: 2, }) })
18.52381
45
0.547558
5e027cd86ade8c93227d44c320c16d3d376e2793
4,782
js
JavaScript
test/jdl/utils/files-utils.spec.js
SammyVimes/generator-jhipster
52643ca8a99b42b41019a96d31ca5f2128efdbbc
[ "Apache-2.0" ]
null
null
null
test/jdl/utils/files-utils.spec.js
SammyVimes/generator-jhipster
52643ca8a99b42b41019a96d31ca5f2128efdbbc
[ "Apache-2.0" ]
null
null
null
test/jdl/utils/files-utils.spec.js
SammyVimes/generator-jhipster
52643ca8a99b42b41019a96d31ca5f2128efdbbc
[ "Apache-2.0" ]
null
null
null
/** * Copyright 2013-2020 the original author or authors from the JHipster project. * * This file is part of the JHipster project, see https://www.jhipster.tech/ * for more information. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* eslint-disable no-unused-expressions */ const { expect } = require('chai'); const fs = require('fs'); const path = require('path'); const { createFolderIfItDoesNotExist, doesFileExist, doesDirectoryExist } = require('../../../jdl/utils/file-utils'); describe('FileUtils', () => { describe('doesFileExist', () => { context('when checking a file path', () => { context('with a nil file path', () => { it('should return false', () => { expect(doesFileExist()).to.be.false; }); }); context('with an invalid file path', () => { it('should return false', () => { expect(doesFileExist('someInvalidPath')).to.be.false; }); }); context('with a valid file path', () => { it('should return true', () => { expect(doesFileExist(path.join(__dirname, '..', 'test-files', 'MyEntity.json'))).to.be.true; }); }); }); }); describe('doesDirectoryExist', () => { context('when checking a directory path', () => { context('with a nil directory path', () => { it('return false', () => { expect(doesDirectoryExist()).to.be.false; }); }); context('with an invalid directory path', () => { it('should return false', () => { expect(doesDirectoryExist(path.join(__dirname, 'invalid-folder'))).to.be.false; }); }); context('with a valid directory path', () => { it('should return true', () => { expect(doesDirectoryExist(__dirname)).to.be.true; }); }); }); }); describe('createFolderIfItDoesNotExist', () => { context('when not passing a directory', () => { it('should fail', () => { expect(() => { createFolderIfItDoesNotExist(); }).to.throw(/^A directory must be passed to be created\.$/); }); }); context('when passing a directory that does not yet exist', () => { before(() => { createFolderIfItDoesNotExist('./here'); }); after(() => { fs.rmdirSync('./here'); }); it('should create it', () => { expect(fs.statSync('./here').isDirectory()).to.be.true; }); }); context('when passing a file that exists', () => { it('should fail', () => { expect(() => { createFolderIfItDoesNotExist(path.join(__dirname, '..', '..', '..', 'package.json')); }).to.throw(/^The directory to create '.*?package\.json' is a file\.$/); }); }); context('when passing a directory that exists', () => { before(() => { createFolderIfItDoesNotExist('./test'); }); it('should do nothing', () => { expect(fs.statSync('./test').isDirectory()).to.be.true; }); }); context('when passing a path that does not contain more than one directory', () => { before(() => { createFolderIfItDoesNotExist(path.join('toto', 'titi', 'tutu')); }); after(() => { fs.rmdirSync(path.join('toto', 'titi', 'tutu')); fs.rmdirSync(path.join('toto', 'titi')); fs.rmdirSync('toto'); }); it('should create the folder structure recursively', () => { expect(fs.statSync('toto').isDirectory()).to.be.true; expect(fs.statSync(path.join('toto', 'titi')).isDirectory()).to.be.true; expect(fs.statSync(path.join('toto', 'titi', 'tutu')).isDirectory()).to.be.true; }); }); }); });
39.196721
117
0.498536
5e02911245132de34ed97bb148131834252c8862
1,345
js
JavaScript
src/components/pages/StudentBookCard.js
owishiboo/Unilib
42a2f0cfed2758730b718c412f177407c5be32f8
[ "MIT" ]
null
null
null
src/components/pages/StudentBookCard.js
owishiboo/Unilib
42a2f0cfed2758730b718c412f177407c5be32f8
[ "MIT" ]
null
null
null
src/components/pages/StudentBookCard.js
owishiboo/Unilib
42a2f0cfed2758730b718c412f177407c5be32f8
[ "MIT" ]
null
null
null
import React from "react"; import { Link } from "react-router-dom"; import { Row, Card } from "react-bootstrap"; import "bootstrap/dist/css/bootstrap.min.css"; import "../../styles/Fonts.css"; import "../../styles/Library.css"; /** * @description creates cards of the books available in student library * @param {array} props details of individual books * @returns cards containing book description */ const StudentBookCard = (props) => { const book = props.book; return ( <div> <Card style={{ width: "18rem", height: "auto" }}> <Card.Img variant="top" src={window.location.origin + "/images/" + book.image} /> <Card.Body> <Card.Title> <Link to={`/show-book-details/${book._id}`} className="book-links fnt-bookname" > {book.bookName} </Link> </Card.Title> <Card.Text className="fnt-description mt-3"> <p> <span style={{ color: "#198754" }}>Author: </span> {book.writer} </p> {/* <span style={{ color: "#198754" }}>Description: </span> {book.text} */} </Card.Text> </Card.Body> </Card> <Row className="mb-5"></Row> </div> ); }; export default StudentBookCard;
27.44898
71
0.531599
5e02aade4af821830908e9ef9f1f367bca1f60b1
5,360
js
JavaScript
docs/app/app/controls/terminals/HighConstant.js
rzaaeeff/jirtdan
b9136cd549155cb0a4712e02f4390c9c66ec230d
[ "MIT" ]
null
null
null
docs/app/app/controls/terminals/HighConstant.js
rzaaeeff/jirtdan
b9136cd549155cb0a4712e02f4390c9c66ec230d
[ "MIT" ]
null
null
null
docs/app/app/controls/terminals/HighConstant.js
rzaaeeff/jirtdan
b9136cd549155cb0a4712e02f4390c9c66ec230d
[ "MIT" ]
null
null
null
/* Copyright (c) 2017 Jirtdan Team and other collaborators 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. */ "use strict"; /*jshint esversion: 6*/ import { BaseControl, DEFAULT_FILL_COLOR, DEFAULT_STROKE_WIDTH, DEFAULT_STROKE_COLOR, DEBUG } from '../BaseControl.js' import {ConnectionPin} from '../ConnectionPin.js' const LOGTAG = "HighConstant"; /** * Control for High Constant (1). */ //TODO: Remove the direct dependency from raphael. export class HighConstant extends BaseControl { /** * Constructor for HighConstant * @param paper raphael paper object. */ constructor(paper) { super(paper); } initControl() { super.initControl(); this.componentShape = this.paper.rect(1, 1, 45, 45); this.componentShape.attr("stroke", DEFAULT_STROKE_COLOR); this.componentShape.attr("stroke-width", DEFAULT_STROKE_WIDTH); this.componentShape.attr("fill", DEFAULT_FILL_COLOR); const componentShapeGradient = this.paper.path("m 1.9885,2.1222325 0,18.3451895 c 2.38846,-1.62726 4.94603,-2.93244 7.75586,-3.60465 4.13269,-0.67466 8.468022,1.0912 11.023432,4.59905 2.58172,2.80852 4.72301,6.47002 8.33594,7.89135 3.11906,0.71555 6.38197,0.40939 9.5332,0.0574 2.20797,-0.39356 4.38045,-0.94273 6.53516,-1.5617 l 0,-25.7266095 -43.183592,0 z"); componentShapeGradient.attr("stroke", DEFAULT_FILL_COLOR); componentShapeGradient.attr("fill", "90-#0066ff-#fff"); const outputWire = this.paper.path("m 46.106981,23.591722 19.55419,0"); outputWire.attr("stroke", DEFAULT_STROKE_COLOR); outputWire.attr("stroke-width", DEFAULT_STROKE_WIDTH); const ledBg = this.paper.rect(10.2, 6.3, 26.8, 34.5); ledBg.attr("stroke", DEFAULT_STROKE_COLOR); ledBg.attr("stroke-width", DEFAULT_STROKE_WIDTH); ledBg.attr("fill", "#000000"); const digitBgLine1 = this.paper.path("m 19.122764,25.310548 -1.718829,-1.718828 1.718829,-1.718829 8.937909,0 1.718829,1.718829 -1.718829,1.718828 -8.937909,0 z"); digitBgLine1.attr("stroke", 'none'); digitBgLine1.attr("fill", "#1a1a1a"); const digitBgLine2 = this.paper.path("m 17.747701,37.686115 -0.687531,-0.687532 2.750126,-2.750126 7.562846,0 2.750126,2.750126 -0.687532,0.687532 -11.688035,0 z"); digitBgLine2.attr("stroke", 'none'); digitBgLine2.attr("fill", "#1a1a1a"); const digitBgLine3 = this.paper.path("m 16.372638,36.311052 -0.687531,-0.687532 0,-10.312972 0.687531,-0.687531 2.750126,2.750126 0,6.187783 -2.750126,2.750126 0,0 z"); digitBgLine3.attr("stroke", 'none'); digitBgLine3.attr("fill", "#1a1a1a"); const digitLine1 = this.paper.path("m 30.810799,36.311052 -2.750126,-2.750126 0,-6.187783 2.750126,-2.750126 0.687532,0.687531 0,10.312972 -0.687532,0.687532 0,0 z"); digitLine1.attr("stroke", 'none'); digitLine1.attr("fill", "#00ff00"); const digitBgLine4 = this.paper.path("m 16.372638,22.560422 -0.687531,-0.687531 0,-10.312972 0.687531,-0.687532 2.750126,2.750126 0,6.187783 -2.750126,2.750126 0,0 z"); digitBgLine4.attr("stroke", 'none'); digitBgLine4.attr("fill", "#1a1a1a"); const digitLine2 = this.paper.path("m 30.810799,22.560422 -2.750126,-2.750126 0,-6.187783 2.750126,-2.750126 0.687532,0.687532 0,10.312972 -0.687532,0.687531 0,0 z"); digitLine2.attr("stroke", 'none'); digitLine2.attr("fill", "#00ff00"); const digitBgLine5 = this.paper.path("m 19.810296,12.934982 -2.750126,-2.750126 0.687531,-0.6875321 11.688035,0 0.687532,0.6875321 -2.750126,2.750126 -7.562846,0 z"); digitBgLine5.attr("stroke", 'none'); digitBgLine5.attr("fill", "#1a1a1a"); const outputPin = new ConnectionPin(this, 70, 23, "out"); this.setShapes([ this.componentShape, componentShapeGradient, outputWire, ledBg, digitBgLine1, digitBgLine2, digitBgLine3, digitLine1, digitBgLine4, digitLine2, digitBgLine5 ]); this.addOutputPins(outputPin); } onSelect(event) { super.onSelect(event); this.glow = this.componentShape.glow(); this.glow.toBack(); } getValue() { return 1; } }
41.875
369
0.66847
5e02d8d75da6ee5c62c9e3ccd72eedef6dfb8917
5,991
js
JavaScript
node_modules/lib/verlet-js/vec2.js
luodim/frontend_pixi_practise
14774aad8081fc03db3643a8b9255e5849ebf24f
[ "MIT" ]
1
2022-02-07T03:00:21.000Z
2022-02-07T03:00:21.000Z
node_modules/lib/verlet-js/vec2.js
luodim/pixi_practise_lol
14774aad8081fc03db3643a8b9255e5849ebf24f
[ "MIT" ]
null
null
null
node_modules/lib/verlet-js/vec2.js
luodim/pixi_practise_lol
14774aad8081fc03db3643a8b9255e5849ebf24f
[ "MIT" ]
null
null
null
/* Copyright 2013 Sub Protocol and other contributors http://subprotocol.com/ 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. */ // A simple 2-dimensional vector implementation export default class Vec2 { constructor(x=0, y=0) { this.x = x this.y = y } add(v) { return new this.constructor(this.x + v.x, this.y + v.y) } sub(v) { return new this.constructor(this.x - v.x, this.y - v.y) } mul(v) { return new this.constructor(this.x * v.x, this.y * v.y) } div(v) { return new this.constructor(this.x / v.x, this.y / v.y) } scale(coef) { return new this.constructor(this.x*coef, this.y*coef) } mutableSet(v) { this.x = v.x this.y = v.y return this } mutableAdd(v) { this.x += v.x this.y += v.y return this } mutableSub(v) { this.x -= v.x this.y -= v.y return this } mutableMul(v) { this.x *= v.x this.y *= v.y return this } mutableDiv(v) { this.x /= v.x this.y /= v.y return this } mutableScale(coef) { this.x *= coef this.y *= coef return this } equals(v) { return this.x == v.x && this.y == v.y } epsilonEquals(v, epsilon) { return Math.abs(this.x - v.x) <= epsilon && Math.abs(this.y - v.y) <= epsilon } length(v) { return Math.sqrt(this.x*this.x + this.y*this.y) } length2(v) { return this.x*this.x + this.y*this.y } dist(v) { return Math.sqrt(this.dist2(v)) } dist2(v) { const x = v.x - this.x const y = v.y - this.y return x*x + y*y } normal() { const m = Math.sqrt(this.x*this.x + this.y*this.y) return new this.constructor(this.x/m, this.y/m) } dot(v) { return this.x*v.x + this.y*v.y } angle(v) { return Math.atan2(this.x*v.y-this.y*v.x,this.x*v.x+this.y*v.y) } angle2(vLeft, vRight) { return vLeft.sub(this).angle(vRight.sub(this)) } rotate(origin, theta) { const x = this.x - origin.x const y = this.y - origin.y return new this.constructor(x*Math.cos(theta) - y*Math.sin(theta) + origin.x, x*Math.sin(theta) + y*Math.cos(theta) + origin.y) } toString() { return `(${this.x}, ${this.y})` } } // function test_Vec2() { // const assert = function(label, expression) { // console.log("Vec2(" + label + "): " + (expression == true ? "PASS" : "FAIL")) // if (expression != true) // throw "assertion failed" // } // assert("equality", (new this.constructor(5,3).equals(new this.constructor(5,3)))) // assert("epsilon equality", (new this.constructor(1,2).epsilonEquals(new this.constructor(1.01,2.02), 0.03))) // assert("epsilon non-equality", !(new this.constructor(1,2).epsilonEquals(new this.constructor(1.01,2.02), 0.01))) // assert("addition", (new this.constructor(1,1)).add(new this.constructor(2, 3)).equals(new this.constructor(3, 4))) // assert("subtraction", (new this.constructor(4,3)).sub(new this.constructor(2, 1)).equals(new this.constructor(2, 2))) // assert("multiply", (new this.constructor(2,4)).mul(new this.constructor(2, 1)).equals(new this.constructor(4, 4))) // assert("divide", (new this.constructor(4,2)).div(new this.constructor(2, 2)).equals(new this.constructor(2, 1))) // assert("scale", (new this.constructor(4,3)).scale(2).equals(new this.constructor(8, 6))) // assert("mutable set", (new this.constructor(1,1)).mutableSet(new this.constructor(2, 3)).equals(new this.constructor(2, 3))) // assert("mutable addition", (new this.constructor(1,1)).mutableAdd(new this.constructor(2, 3)).equals(new this.constructor(3, 4))) // assert("mutable subtraction", (new this.constructor(4,3)).mutableSub(new this.constructor(2, 1)).equals(new this.constructor(2, 2))) // assert("mutable multiply", (new this.constructor(2,4)).mutableMul(new this.constructor(2, 1)).equals(new this.constructor(4, 4))) // assert("mutable divide", (new this.constructor(4,2)).mutableDiv(new this.constructor(2, 2)).equals(new this.constructor(2, 1))) // assert("mutable scale", (new this.constructor(4,3)).mutableScale(2).equals(new this.constructor(8, 6))) // assert("length", Math.abs((new this.constructor(4,4)).length() - 5.65685) <= 0.00001) // assert("length2", (new this.constructor(2,4)).length2() == 20) // assert("dist", Math.abs((new this.constructor(2,4)).dist(new this.constructor(3,5)) - 1.4142135) <= 0.000001) // assert("dist2", (new this.constructor(2,4)).dist2(new this.constructor(3,5)) == 2) // const normal = (new this.constructor(2,4)).normal() // assert("normal", Math.abs(normal.length() - 1.0) <= 0.00001 && normal.epsilonEquals(new this.constructor(0.4472, 0.89443), 0.0001)) // assert("dot", (new this.constructor(2,3)).dot(new this.constructor(4,1)) == 11) // assert("angle", (new this.constructor(0,-1)).angle(new this.constructor(1,0))*(180/Math.PI) == 90) // assert("angle2", (new this.constructor(1,1)).angle2(new this.constructor(1,0), new this.constructor(2,1))*(180/Math.PI) == 90) // assert("rotate", (new this.constructor(2,0)).rotate(new this.constructor(1,0), Math.PI/2).equals(new this.constructor(1,1))) // assert("toString", (new this.constructor(2,4)) == "(2, 4)") // }
33.099448
136
0.672676