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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
180604fda9e02ea91f53516201e5628f0e11dbb1 | 2,599 | js | JavaScript | spec/jest-test-suite/INTER-Mediator.test.js | matsuo/INTER-Mediator | 00e6b37a6ba47da878ed994392004a197cdd9f23 | [
"MIT"
] | 25 | 2015-01-15T01:00:16.000Z | 2022-03-27T10:44:56.000Z | spec/jest-test-suite/INTER-Mediator.test.js | matsuo/INTER-Mediator | 00e6b37a6ba47da878ed994392004a197cdd9f23 | [
"MIT"
] | 166 | 2015-02-15T08:42:24.000Z | 2022-03-18T02:43:50.000Z | spec/jest-test-suite/INTER-Mediator.test.js | matsuo/INTER-Mediator | 00e6b37a6ba47da878ed994392004a197cdd9f23 | [
"MIT"
] | 24 | 2015-01-14T15:04:12.000Z | 2021-03-21T11:47:15.000Z | /**
* @jest-environment jsdom
*/
// JSHint support
/* global INTERMediator,buster,INTERMediatorLib,INTERMediatorOnPage,IMLibElement */
const INTERMediator = require('../../src/js/INTER-Mediator')
beforeEach(() => {
INTERMediator.clearCondition('context1')
INTERMediator.clearCondition('context2')
})
afterEach(() => {
INTERMediator.clearCondition('context1')
INTERMediator.clearCondition('context2')
})
test('AdditionalCondition-Add_Clear', function () {
'use strict'
INTERMediator.additionalCondition = {}
INTERMediator.clearCondition('context1')
INTERMediator.addCondition('context1', {field: 'f1', operator: '=', value: 1})
expect(INTERMediator.additionalCondition.context1.length).toBe(1)
INTERMediator.addCondition('context1', {field: 'f2', operator: '=', value: 1})
expect(INTERMediator.additionalCondition.context1.length).toBe(2)
INTERMediator.clearCondition('context2')
INTERMediator.addCondition('context2', {field: 'f1', operator: '=', value: 1})
expect(INTERMediator.additionalCondition.context1.length).toBe(2)
expect(INTERMediator.additionalCondition.context2.length).toBe(1)
INTERMediator.clearCondition('context1')
expect(INTERMediator.additionalCondition.context1).toBe(undefined)
expect(INTERMediator.additionalCondition.context2.length).toBe(1)
})
test('AdditionalCondition-Add_Clear_Label', function () {
'use strict'
INTERMediator.additionalCondition = {}
INTERMediator.clearCondition('context1')
INTERMediator.addCondition('context1', {field: 'f1', operator: '=', value: 1})
INTERMediator.addCondition('context1', {field: 'f2', operator: '=', value: 1})
INTERMediator.addCondition('context1', {field: 'f3', operator: '=', value: 1}, undefined, 'label')
expect(INTERMediator.additionalCondition.context1.length).toBe(3)
INTERMediator.clearCondition('context1', 'label')
expect(INTERMediator.additionalCondition.context1.length).toBe(2)
INTERMediator.clearCondition('context2')
INTERMediator.addCondition('context2', {field: 'f1', operator: '=', value: 1})
INTERMediator.addCondition('context2', {field: 'f2', operator: '=', value: 1})
INTERMediator.addCondition('context2', {field: 'f3', operator: '=', value: 1}, true, 'label')
INTERMediator.addCondition('context2', {field: 'f4', operator: '=', value: 1}, true, 'label')
INTERMediator.addCondition('context2', {field: 'f5', operator: '=', value: 1})
expect(INTERMediator.additionalCondition.context2.length).toBe(5)
INTERMediator.clearCondition('context2', 'label')
expect(INTERMediator.additionalCondition.context2.length).toBe(3)
})
| 38.220588 | 100 | 0.741824 |
18060e61de9941baf2f509655ddb352e3d74b357 | 682 | js | JavaScript | src/classes/ClientShard.js | Coke67/coke.js | 50f874980f92f0febcaf761b100746c8ec50d661 | [
"Apache-2.0"
] | null | null | null | src/classes/ClientShard.js | Coke67/coke.js | 50f874980f92f0febcaf761b100746c8ec50d661 | [
"Apache-2.0"
] | null | null | null | src/classes/ClientShard.js | Coke67/coke.js | 50f874980f92f0febcaf761b100746c8ec50d661 | [
"Apache-2.0"
] | null | null | null | const { ShardingManager } = require("discord.js");
const Collection = require("../cachehandler/index.js").cache;
class ClientShard extends ShardingManager {
constructor(file, options = {}, spawnOptions) {
super(file, options);
this.file = file;
this.spawnOptions = spawnOptions;
this.cmd = {
shardCreate: new Collection(),
};
}
shardCreateCommand(d) {
this.cmd.shardCreate.set(this.cmd.shardCreate.size, d);
}
startProcess() {
this.spawn(this.spawnOptions);
}
onShardCreate() {
this.on("shardCreate", async (shard) =>
require("../shardhandler/shardCreate.js")(shard, this.cmd),
);
}
}
module.exports = ClientShard;
| 24.357143 | 65 | 0.658358 |
1806dbb4c661e6bef47a010e01d88be3c92b3fb2 | 1,213 | js | JavaScript | ortodoxtrust/front/src/containers/contactPage/index.js | wberdnik/orthodox-trust-wordpress-theme | 8ed4c55b161ede55249daf6621888ff3a92fb53c | [
"BSD-3-Clause"
] | null | null | null | ortodoxtrust/front/src/containers/contactPage/index.js | wberdnik/orthodox-trust-wordpress-theme | 8ed4c55b161ede55249daf6621888ff3a92fb53c | [
"BSD-3-Clause"
] | null | null | null | ortodoxtrust/front/src/containers/contactPage/index.js | wberdnik/orthodox-trust-wordpress-theme | 8ed4c55b161ede55249daf6621888ff3a92fb53c | [
"BSD-3-Clause"
] | null | null | null | import React from 'react';
import EntryContent from "../../components/static-content/entryContent";
import {SimpleFooter} from "../../components/bootstrape-footer";
import {Map, YMaps} from 'react-yandex-maps';
//http://kenwheeler.github.io/slick/
export default function ContactsPage() {
const headItem = document.getElementsByTagName("head")[0],
src = 'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'
document.createStyleSheet ?
document.createStyleSheet(src) :
headItem.appendChild(<link rel="stylesheet" href={src}/>)
return (<>
<EntryContent/>
<div className="map-info" style={{marginTop: 50}}>
<YMaps>
<div>
<Map width={'100%'} height={320}
defaultState={{center: [48.7201340, 44.5379960], zoom: 15, type: 'yandex#map'}}/>
</div>
</YMaps>
</div>
{//aTypeGrp=[{id:0,ti:'Все объекты'}], aType={}, autoZoom=true, geoLoc=false,fullscreenOn=false, fullscreenControl=true;
// var searchControl=false, prihodLogo=false;
}
<SimpleFooter/>
</>);
}
| 37.90625 | 129 | 0.583677 |
1807b8796811e90363bb1ffcadd863f230719236 | 28,890 | js | JavaScript | packages/eslint-plugin-closure/tests/rules/no-unused-vars-test.js | google/eslint-closure | bf5c0d4d2a67ea3e8394c228717ae23d1a1ae4ba | [
"Apache-2.0"
] | 30 | 2017-05-06T17:43:10.000Z | 2022-03-13T06:25:25.000Z | packages/eslint-plugin-closure/tests/rules/no-unused-vars-test.js | google/eslint-closure | bf5c0d4d2a67ea3e8394c228717ae23d1a1ae4ba | [
"Apache-2.0"
] | 7 | 2017-06-07T16:09:41.000Z | 2019-03-06T17:20:34.000Z | packages/eslint-plugin-closure/tests/rules/no-unused-vars-test.js | google/eslint-closure | bf5c0d4d2a67ea3e8394c228717ae23d1a1ae4ba | [
"Apache-2.0"
] | 18 | 2017-06-03T21:42:10.000Z | 2021-10-22T00:11:04.000Z | // Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/**
* @fileoverview Tests for no-unused-vars rule.
* @author Ilya Volodin
*/
goog.module('eslintClosure.tests.rules.noUnusedVars');
const noUnusedVarsRule = goog.require('eslintClosure.rules.noUnusedVars');
const eslint = /** @type {!ESLint.Module} */ (require('eslint'));
const RuleTester = eslint.RuleTester;
const ruleTester = new RuleTester();
ruleTester.defineRule('use-every-a', {
meta: {schema: [], docs: {description: '', category: '', recommended: true}},
/**
* @param {!ESLint.RuleContext} context
* @return {!Object<!AST.NodeType, function(!AST.Node)>}
*/
create(context) {
const useA = () => context.markVariableAsUsed('a');
return {
VariableDeclaration: useA,
ReturnStatement: useA,
};
},
});
ruleTester.run('no-unused-vars', noUnusedVarsRule, {
valid: [
`
var foo = 5;
\n\nlabel : while (true) {
\n console.log(foo);
\n break label;
\n
}`,
`
var foo = 5;
while(true) {
console.log(foo);
break;
}`,
{
code: `
for (let prop in box) {
\n box[prop] = parseInt(box[prop]);
\n
}`,
parserOptions: {ecmaVersion: 6},
},
`
var box = {a : 2};
\n for (var prop in box) {
\n box[prop] = parseInt(box[prop]);
\n
}`,
`
f({ set foo(a) { return;}});`,
{code: 'a; var a;', options: ['all']},
{code: 'var a=10; alert(a);', options: ['all']},
{code: 'var a=10; (function() { alert(a); })();', options: ['all']},
{
code: `
var a = 10;
(function() { setTimeout(function() { alert(a); }, 0); })();`,
options: ['all'],
},
{code: 'var a=10; d[a] = 0;', options: ['all']},
{code: '(function() { var a=10; return a; })();', options: ['all']},
{code: '(function g() {})()', options: ['all']},
{code: 'function f(a) {alert(a);}; f();', options: ['all']},
{
code: 'var c = 0; function f(a){ var b = a; return b; }; f(c);',
options: ['all'],
},
{code: 'function a(x, y){ return y; }; a();', options: ['all']},
{
code: `
var arr1 = [ 1, 2 ];
var arr2 = [ 3, 4 ];
for (var i in arr1) {
arr1[i] = 5;
}
for (var i in arr2) {
arr2[i] = 10;
}`,
options: ['all'],
},
{code: 'var a=10;', options: ['local']},
{code: 'var min = "min"; Math[min];', options: ['all']},
{code: 'Foo.bar = function(baz) { return baz; };', options: ['all']},
'myFunc(function foo() {}.bind(this))',
'myFunc(function foo(){}.toString())',
`
function foo(first, second) {
doStuff(function() { console.log(second); });
};
foo()`,
`
(function() {
var doSomething = function doSomething(){};
doSomething()
}())`,
'try {} catch(e) {}',
'/*global a */ a;',
{code: 'var a=10; (function() { alert(a); })();', options: [{vars: 'all'}]},
{
code: 'function g(bar, baz) { return baz; }; g();',
options: [{vars: 'all'}],
},
{
code: 'function g(bar, baz) { return baz; }; g();',
options: [{vars: 'all', args: 'after-used'}],
},
{
code: 'function g(bar, baz) { return bar; }; g();',
options: [{vars: 'all', args: 'none'}],
},
{
code: 'function g(bar, baz) { return 2; }; g();',
options: [{vars: 'all', args: 'none'}],
},
{
code: 'function g(bar, baz) { return bar + baz; }; g();',
options: [{vars: 'local', args: 'all'}],
},
{
code: 'var g = function(bar, baz) { return 2; }; g();',
options: [{vars: 'all', args: 'none'}],
},
'(function z() { z(); })();',
{code: ' ', globals: {a: true}},
{
code: 'var who = "Paul";\nmodule.exports = `Hello ${who}!`;',
parserOptions: {ecmaVersion: 6},
},
{code: 'export var foo = 123;', parserOptions: {sourceType: 'module'}},
{code: 'export function foo () {}', parserOptions: {sourceType: 'module'}},
{
code: 'let toUpper = (partial) => partial.toUpperCase; export {toUpper}',
parserOptions: {sourceType: 'module'},
},
{code: 'export class foo {}', parserOptions: {sourceType: 'module'}},
{
code: 'class Foo{}; var x = new Foo(); x.foo()',
parserOptions: {ecmaVersion: 6},
},
{
code: `
const foo = "hello!";
function bar(foobar = foo) { foobar.replace(/ !$ /, " world!"); }
\nbar();`,
parserOptions: {ecmaVersion: 6},
},
'function Foo(){}; var x = new Foo(); x.foo()',
'function foo() {var foo = 1; return foo}; foo();',
'function foo(foo) {return foo}; foo(1);',
'function foo() {function foo() {return 1;}; return foo()}; foo();',
{
code: 'function foo() {var foo = 1; return foo}; foo();',
parserOptions: {parserOptions: {ecmaVersion: 6}},
},
{
code: 'function foo(foo) {return foo}; foo(1);',
parserOptions: {parserOptions: {ecmaVersion: 6}},
},
{
code: 'function foo() {function foo() {return 1;}; return foo()}; foo();',
parserOptions: {parserOptions: {ecmaVersion: 6}},
},
{
code: 'const x = 1; const [y = x] = []; foo(y);',
parserOptions: {ecmaVersion: 6},
},
{
code: 'const x = 1; const {y = x} = {}; foo(y);',
parserOptions: {ecmaVersion: 6},
},
{
code: 'const x = 1; const {z: [y = x]} = {}; foo(y);',
parserOptions: {ecmaVersion: 6},
},
{
code: 'const x = []; const {z: [y] = x} = {}; foo(y);',
parserOptions: {ecmaVersion: 6},
},
{
code: 'const x = 1; let y; [y = x] = []; foo(y);',
parserOptions: {ecmaVersion: 6},
},
{
code: 'const x = 1; let y; ({z: [y = x]} = {}); foo(y);',
parserOptions: {ecmaVersion: 6},
},
{
code: 'const x = []; let y; ({z: [y] = x} = {}); foo(y);',
parserOptions: {ecmaVersion: 6},
},
{
code: 'const x = 1; function foo(y = x) { bar(y); } foo();',
parserOptions: {ecmaVersion: 6},
},
{
code: 'const x = 1; function foo({y = x} = {}) { bar(y); } foo();',
parserOptions: {ecmaVersion: 6},
},
{
code: `
const x = 1;
function foo(y = function(z = x) { bar(z); }) { y(); }
foo();`,
parserOptions: {ecmaVersion: 6},
},
{
code: `
const x = 1;
function foo(y = function() { bar(x); }) { y(); }
foo();`,
parserOptions: {ecmaVersion: 6},
},
{
code: 'var x = 1; var [y = x] = []; foo(y);',
parserOptions: {ecmaVersion: 6},
},
{
code: 'var x = 1; var {y = x} = {}; foo(y);',
parserOptions: {ecmaVersion: 6},
},
{
code: 'var x = 1; var {z: [y = x]} = {}; foo(y);',
parserOptions: {ecmaVersion: 6},
},
{
code: 'var x = []; var {z: [y] = x} = {}; foo(y);',
parserOptions: {ecmaVersion: 6},
},
{
code: 'var x = 1, y; [y = x] = []; foo(y);',
parserOptions: {ecmaVersion: 6},
},
{
code: 'var x = 1, y; ({z: [y = x]} = {}); foo(y);',
parserOptions: {ecmaVersion: 6},
},
{
code: 'var x = [], y; ({z: [y] = x} = {}); foo(y);',
parserOptions: {ecmaVersion: 6},
},
{
code: 'var x = 1; function foo(y = x) { bar(y); } foo();',
parserOptions: {ecmaVersion: 6},
},
{
code: 'var x = 1; function foo({y = x} = {}) { bar(y); } foo();',
parserOptions: {ecmaVersion: 6},
},
{
code: `
var x = 1;
function foo(y = function(z = x) { bar(z); }) { y(); }
foo();`,
parserOptions: {ecmaVersion: 6},
},
{
code:
'var x = 1; function foo(y = function() { bar(x); }) { y(); } foo();',
parserOptions: {ecmaVersion: 6},
},
// exported variables should work
{code: "/*exported toaster*/ var toaster = 'great'"},
{code: '/*exported toaster, poster*/ var toaster = 1; poster = 0;'},
{code: '/*exported x*/ var { x } = y', parserOptions: {ecmaVersion: 6}},
{
code: '/*exported x, y*/ var { x, y } = z',
parserOptions: {ecmaVersion: 6},
},
// Can mark variables as used via context.markVariableAsUsed()
{code: '/*eslint use-every-a:1*/ var a;'},
{code: '/*eslint use-every-a:1*/ !function(a) { return 1; }'},
{code: '/*eslint use-every-a:1*/ !function() { var a; return 1 }'},
// ignore pattern
{code: 'var _a;', options: [{vars: 'all', varsIgnorePattern: '^_'}]},
{
code: 'var a; function foo() { var _b; } foo();',
options: [{vars: 'local', varsIgnorePattern: '^_'}],
},
{
code: 'function foo(_a) { } foo();',
options: [{args: 'all', argsIgnorePattern: '^_'}],
},
{
code: 'function foo(a, _b) { return a; } foo();',
options: [{args: 'after-used', argsIgnorePattern: '^_'}],
},
{
code: `
var[firstItemIgnored, secondItem] = items;
\nconsole.log(secondItem);`,
parserOptions: {ecmaVersion: 6},
options: [{vars: 'all', varsIgnorePattern: '[iI]gnored'}],
},
// for-in loops (see #2342)
'(function(obj) { var name; for ( name in obj ) return; })({});',
'(function(obj) { var name; for ( name in obj ) { return; } })({});',
'(function(obj) { for ( var name in obj ) { return true } })({})',
'(function(obj) { for ( var name in obj ) return true })({})',
{
code: '(function(obj) { let name; for ( name in obj ) return; })({});',
parserOptions: {ecmaVersion: 6},
},
{
code:
'(function(obj) { let name; for ( name in obj ) { return; } })({});',
parserOptions: {ecmaVersion: 6},
},
{
code: '(function(obj) { for ( let name in obj ) { return true } })({})',
parserOptions: {ecmaVersion: 6},
},
{
code: '(function(obj) { for ( let name in obj ) return true })({})',
parserOptions: {ecmaVersion: 6},
},
{
code: '(function(obj) { for ( const name in obj ) { return true } })({})',
parserOptions: {ecmaVersion: 6},
},
{
code: '(function(obj) { for ( const name in obj ) return true })({})',
parserOptions: {ecmaVersion: 6},
},
// caughtErrors
{
code: 'try{}catch(err){console.error(err);}',
options: [{caughtErrors: 'all'}],
},
{
code: 'try{}catch(err){}',
options: [{caughtErrors: 'none'}],
},
{
code: 'try{}catch(ignoreErr){}',
options: [{caughtErrors: 'all', caughtErrorsIgnorePattern: '^ignore'}],
},
// caughtErrors with other combinations
{
code: 'try{}catch(err){}',
options: [{vars: 'all', args: 'all'}],
},
// https://github.com/eslint/eslint/issues/6348
{code: 'var a = 0, b; b = a = a + 1; foo(b);'},
{code: 'var a = 0, b; b = a += a + 1; foo(b);'},
{code: 'var a = 0, b; b = a++; foo(b);'},
{code: 'function foo(a) { var b = a = a + 1; bar(b) } foo();'},
{code: 'function foo(a) { var b = a += a + 1; bar(b) } foo();'},
{code: 'function foo(a) { var b = a++; bar(b) } foo();'},
// https://github.com/eslint/eslint/issues/6576
{
code: [
'var unregisterFooWatcher;',
'// ...',
'unregisterFooWatcher = $scope.$watch( "foo", function() {',
' // ...some code..',
' unregisterFooWatcher();',
'});',
].join('\n'),
},
{
code: [
'var ref;',
'ref = setInterval(',
' function(){',
' clearInterval(ref);',
' }, 10);',
].join('\n'),
},
{
code: [
'var _timer;',
'function f() {',
' _timer = setTimeout(function () {}, _timer ? 100 : 0);',
'}',
'f();',
].join('\n'),
},
{
code: `
function foo(cb) {
cb = function() {
function something(a) { cb(1 + a); }
register(something);
}
();
}
foo();`,
},
{
code:
'function* foo(cb) { cb = yield function(a) { cb(1 + a); }; } foo();',
parserOptions: {ecmaVersion: 6},
},
{
code: 'function foo(cb) { cb = tag`hello${' +
'function(a) { cb(1 + a); }}`; }' +
' foo();',
parserOptions: {ecmaVersion: 6},
},
{
code: `
function foo(cb) {
var b;
cb = b = function(a) { cb(1 + a); };
b();
}
foo();`,
},
// https://github.com/eslint/eslint/issues/6646
{
code: [
'function someFunction() {',
' var a = 0, i;',
' for (i = 0; i < 2; i++) {',
' a = myFunction(a);',
' }',
'}',
'someFunction();',
].join('\n'),
},
// https://github.com/eslint/eslint/issues/7124
{
code: '(function(a, b, {c, d}) { d })',
options: [{argsIgnorePattern: 'c'}],
parserOptions: {ecmaVersion: 6},
},
{
code: '(function(a, b, {c, d}) { c })',
options: [{argsIgnorePattern: 'd'}],
parserOptions: {ecmaVersion: 6},
},
// https://github.com/eslint/eslint/issues/7250
{
code: '(function(a, b, c) { c })',
options: [{argsIgnorePattern: 'c'}],
},
{
code: '(function(a, b, {c, d}) { c })',
options: [{argsIgnorePattern: '[cd]'}],
parserOptions: {ecmaVersion: 6},
},
],
invalid: [
{
code: 'function foox() { return foox(); }',
errors:
[{message: "'foox' is defined but never used.", type: 'Identifier'}],
},
{
code:
'(function() { function foox() { if (true) { return foox(); } } }())',
errors:
[{message: "'foox' is defined but never used.", type: 'Identifier'}],
},
{
code: 'var a=10',
errors:
[{message: "'a' is defined but never used.", type: 'Identifier'}],
},
{
code: 'function f() { var a = 1; return function(){ f(a *= 2); }; }',
errors:
[{message: "'f' is defined but never used.", type: 'Identifier'}],
},
{
code: 'function f() { var a = 1; return function(){ f(++a); }; }',
errors:
[{message: "'f' is defined but never used.", type: 'Identifier'}],
},
{
code: '/*global a */',
errors: [{message: "'a' is defined but never used.", type: 'Program'}],
},
{
code: `
function foo(first, second) {
doStuff(function() { console.log(second); });
};`,
errors:
[{message: "'foo' is defined but never used.", type: 'Identifier'}],
},
{
code: 'var a=10;',
options: ['all'],
errors:
[{message: "'a' is defined but never used.", type: 'Identifier'}],
},
{
code: 'var a=10; a=20;',
options: ['all'],
errors:
[{message: "'a' is defined but never used.", type: 'Identifier'}],
},
{
code: 'var a=10; (function() { var a = 1; alert(a); })();',
options: ['all'],
errors:
[{message: "'a' is defined but never used.", type: 'Identifier'}],
},
{
code: 'var a=10, b=0, c=null; alert(a+b)',
options: ['all'],
errors:
[{message: "'c' is defined but never used.", type: 'Identifier'}],
},
{
code: `
var a = 10, b = 0, c = null;
setTimeout(
function() {
var b = 2;
alert(a + b + c);
},
0);`,
options: ['all'],
errors:
[{message: "'b' is defined but never used.", type: 'Identifier'}],
},
{
code: `
var a = 10, b = 0, c = null;
setTimeout(
function() {
var b = 2;
var c = 2;
alert(a + b + c);
},
0);`,
options: ['all'],
errors: [
{message: "'b' is defined but never used.", type: 'Identifier'},
{message: "'c' is defined but never used.", type: 'Identifier'},
],
},
{
code: 'function f(){var a=[];return a.map(function(){});}',
options: ['all'],
errors:
[{message: "'f' is defined but never used.", type: 'Identifier'}],
},
{
code: 'function f(){var a=[];return a.map(function g(){});}',
options: ['all'],
errors:
[{message: "'f' is defined but never used.", type: 'Identifier'}],
},
{
code: `
function foo() {
function foo(x) {return x;};
return function() {return foo;};
}`,
errors: [{
message: "'foo' is defined but never used.",
line: 2,
type: 'Identifier',
}],
},
{
code: 'function f(){var x;function a(){x=42;}function b(){alert(x);}}',
options: ['all'],
errors: 3,
},
{
code: 'function f(a) {}; f();',
options: ['all'],
errors:
[{message: "'a' is defined but never used.", type: 'Identifier'}],
},
{
code: 'function a(x, y, z){ return y; }; a();',
options: ['all'],
errors:
[{message: "'z' is defined but never used.", type: 'Identifier'}],
},
{
code: 'var min = Math.min',
options: ['all'],
errors: [{message: "'min' is defined but never used."}],
},
{
code: 'var min = {min: 1}',
options: ['all'],
errors: [{message: "'min' is defined but never used."}],
},
{
code: 'Foo.bar = function(baz) { return 1; };',
options: ['all'],
errors: [{message: "'baz' is defined but never used."}],
},
{
code: 'var min = {min: 1}',
options: [{vars: 'all'}],
errors: [{message: "'min' is defined but never used."}],
},
{
code: 'function gg(baz, bar) { return baz; }; gg();',
options: [{vars: 'all'}],
errors: [{message: "'bar' is defined but never used."}],
},
{
code: '(function(foo, baz, bar) { return baz; })();',
options: [{vars: 'all', args: 'after-used'}],
errors: [{message: "'bar' is defined but never used."}],
},
{
code: '(function(foo, baz, bar) { return baz; })();',
options: [{vars: 'all', args: 'all'}],
errors: [
{message: "'foo' is defined but never used."},
{message: "'bar' is defined but never used."},
],
},
{
code: '(function z(foo) { var bar = 33; })();',
options: [{vars: 'all', args: 'all'}],
errors: [
{message: "'foo' is defined but never used."},
{message: "'bar' is defined but never used."},
],
},
{
code: '(function z(foo) { z(); })();',
options: [{}],
errors: [{message: "'foo' is defined but never used."}],
},
{
code: 'function f() { var a = 1; return function(){ f(a = 2); }; }',
options: [{}],
errors: [
{message: "'f' is defined but never used."},
{message: "'a' is defined but never used."},
],
},
{
code: 'import x from "y";',
parserOptions: {sourceType: 'module'},
errors: [{message: "'x' is defined but never used."}],
},
{
code: 'export function fn2({ x, y }) {\n console.log(x); \n};',
parserOptions: {sourceType: 'module'},
errors: [{message: "'y' is defined but never used."}],
},
{
code: 'export function fn2( x, y ) {\n console.log(x); \n};',
parserOptions: {sourceType: 'module'},
errors: [{message: "'y' is defined but never used."}],
},
// exported
{
code: '/*exported max*/ var max = 1, min = {min: 1}',
errors: [{message: "'min' is defined but never used."}],
},
{
code: '/*exported x*/ var { x, y } = z',
parserOptions: {ecmaVersion: 6},
errors: [{message: "'y' is defined but never used."}],
},
// ignore pattern
{
code: 'var _a; var b;',
options: [{vars: 'all', varsIgnorePattern: '^_'}],
errors:
[{message: "'b' is defined but never used.", line: 1, column: 13}],
},
{
code: 'var a; function foo() { var _b; var c_; } foo();',
options: [{vars: 'local', varsIgnorePattern: '^_'}],
errors:
[{message: "'c_' is defined but never used.", line: 1, column: 37}],
},
{
code: 'function foo(a, _b) { } foo();',
options: [{args: 'all', argsIgnorePattern: '^_'}],
errors:
[{message: "'a' is defined but never used.", line: 1, column: 14}],
},
{
code: 'function foo(a, _b, c) { return a; } foo();',
options: [{args: 'after-used', argsIgnorePattern: '^_'}],
errors:
[{message: "'c' is defined but never used.", line: 1, column: 21}],
},
{
code: 'var [ firstItemIgnored, secondItem ] = items;',
parserOptions: {ecmaVersion: 6},
options: [{vars: 'all', varsIgnorePattern: '[iI]gnored'}],
errors: [{
message: "'secondItem' is defined but never used.",
line: 1,
column: 25,
}],
},
// for-in loops (see #2342)
{
code: `
(function(obj) {
var name;
for (name in obj) {
i();
return;
}
})({});`,
errors: [
{message: "'name' is defined but never used.", line: 3, column: 7},
],
},
{
code: '(function(obj) { var name; for ( name in obj ) { } })({});',
errors: [
{message: "'name' is defined but never used.", line: 1, column: 22},
],
},
{
code: '(function(obj) { for ( var name in obj ) { } })({});',
errors: [
{message: "'name' is defined but never used.", line: 1, column: 28},
],
},
// https://github.com/eslint/eslint/issues/3617
{
code: '\n/* global foobar, foo, bar */\nfoobar;',
errors: [
{line: 2, column: 19, message: "'foo' is defined but never used."},
{line: 2, column: 24, message: "'bar' is defined but never used."},
],
},
{
code: '\n/* global foobar,\n foo,\n bar\n */\nfoobar;',
errors: [
{line: 3, column: 4, message: "'foo' is defined but never used."},
{line: 4, column: 4, message: "'bar' is defined but never used."},
],
},
// https://github.com/eslint/eslint/issues/3714
{
code: '/* global a$fooz,$foo */\na$fooz;',
errors: [
{line: 1, column: 18, message: "'$foo' is defined but never used."},
],
},
{
code: '/* globals a$fooz, $ */\na$fooz;',
errors: [
{line: 1, column: 20, message: "'$' is defined but never used."},
],
},
{
code: '/*globals $foo*/',
errors: [
{line: 1, column: 11, message: "'$foo' is defined but never used."},
],
},
{
code: '/* global global*/',
errors: [
{line: 1, column: 11, message: "'global' is defined but never used."},
],
},
{
code: '/*global foo:true*/',
errors: [
{line: 1, column: 10, message: "'foo' is defined but never used."},
],
},
// non ascii.
{
code: '/*global 変数, 数*/\n変数;',
errors: [
{line: 1, column: 14, message: "'数' is defined but never used."},
],
},
// surrogate pair.
{
code: '/*global 𠮷𩸽, 𠮷*/\n\\u{20BB7}\\u{29E3D};',
env: {es6: true},
errors: [
{line: 1, column: 16, message: "'𠮷' is defined but never used."},
],
},
// https://github.com/eslint/eslint/issues/4047
{
code: 'export default function(a) {}',
parserOptions: {sourceType: 'module'},
errors: [{message: "'a' is defined but never used."}],
},
{
code: 'export default function(a, b) { console.log(a); }',
parserOptions: {sourceType: 'module'},
errors: [{message: "'b' is defined but never used."}],
},
{
code: 'export default (function(a) {});',
parserOptions: {sourceType: 'module'},
errors: [{message: "'a' is defined but never used."}],
},
{
code: 'export default (function(a, b) { console.log(a); });',
parserOptions: {sourceType: 'module'},
errors: [{message: "'b' is defined but never used."}],
},
{
code: 'export default (a) => {};',
parserOptions: {sourceType: 'module'},
errors: [{message: "'a' is defined but never used."}],
},
{
code: 'export default (a, b) => { console.log(a); };',
parserOptions: {sourceType: 'module'},
errors: [{message: "'b' is defined but never used."}],
},
// caughtErrors
{
code: 'try{}catch(err){};',
options: [{caughtErrors: 'all'}],
errors: [{message: "'err' is defined but never used."}],
},
{
code: 'try{}catch(err){};',
options: [{caughtErrors: 'all', caughtErrorsIgnorePattern: '^ignore'}],
errors: [{message: "'err' is defined but never used."}],
},
// multiple try catch with one success
{
code: 'try{}catch(ignoreErr){}try{}catch(err){};',
options: [{caughtErrors: 'all', caughtErrorsIgnorePattern: '^ignore'}],
errors: [{message: "'err' is defined but never used."}],
},
// multiple try catch both fail
{
code: 'try{}catch(error){}try{}catch(err){};',
options: [{caughtErrors: 'all', caughtErrorsIgnorePattern: '^ignore'}],
errors: [
{message: "'error' is defined but never used."},
{message: "'err' is defined but never used."},
],
},
// caughtErrors with other configs
{
code: 'try{}catch(err){};',
options: [{vars: 'all', args: 'all', caughtErrors: 'all'}],
errors: [{message: "'err' is defined but never used."}],
},
// no conclict in ignore patterns
{
code: 'try{}catch(err){};',
options: [
{
vars: 'all',
args: 'all',
caughtErrors: 'all',
argsIgnorePattern: '^er',
},
],
errors: [{message: "'err' is defined but never used."}],
},
// Ignore reads for modifications to itself:
// https://github.com/eslint/eslint/issues/6348
{
code: 'var a = 0; a = a + 1;',
errors: [{message: "'a' is defined but never used."}],
},
{
code: 'var a = 0; a = a + a;',
errors: [{message: "'a' is defined but never used."}],
},
{
code: 'var a = 0; a += a + 1;',
errors: [{message: "'a' is defined but never used."}],
},
{
code: 'var a = 0; a++;',
errors: [{message: "'a' is defined but never used."}],
},
{
code: 'function foo(a) { a = a + 1 } foo();',
errors: [{message: "'a' is defined but never used."}],
},
{
code: 'function foo(a) { a += a + 1 } foo();',
errors: [{message: "'a' is defined but never used."}],
},
{
code: 'function foo(a) { a++ } foo();',
errors: [{message: "'a' is defined but never used."}],
},
{
code: 'var a = 3; a = a * 5 + 6;',
errors: [{message: "'a' is defined but never used."}],
},
{
code: 'var a = 2, b = 4; a = a * 2 + b;',
errors: [{message: "'a' is defined but never used."}],
},
// https://github.com/eslint/eslint/issues/6576 (For coverage)
{
code: `
function foo(cb) {
cb = function(a) { cb(1 + a); };
bar(not_cb);
}
foo();`,
errors: [{message: "'cb' is defined but never used."}],
},
{
code: `
function foo(cb) {
cb = function(a) { return cb(1 + a); }
();
}
foo();`,
errors: [{message: "'cb' is defined but never used."}],
},
{
code:
'function foo(cb) { cb = (function(a) { cb(1 + a); }, cb); } foo();',
errors: [{message: "'cb' is defined but never used."}],
},
{
code: 'function foo(cb) { cb = (0, function(a) { cb(1 + a); }); } foo();',
errors: [{message: "'cb' is defined but never used."}],
},
// https://github.com/eslint/eslint/issues/6646
{
code: [
'while (a) {',
' function foo(b) {',
' b = b + 1;',
' }',
' foo()',
'}',
].join('\n'),
errors: [{message: "'b' is defined but never used."}],
},
// https://github.com/eslint/eslint/issues/7124
{
code: '(function(a, b, c) {})',
options: [{argsIgnorePattern: 'c'}],
errors: [{message: "'b' is defined but never used."}],
},
{
code: '(function(a, b, {c, d}) {})',
options: [{argsIgnorePattern: '[cd]'}],
parserOptions: {ecmaVersion: 6},
errors: [{message: "'b' is defined but never used."}],
},
{
code: '(function(a, b, {c, d}) {})',
options: [{argsIgnorePattern: 'c'}],
parserOptions: {ecmaVersion: 6},
errors: [{message: "'d' is defined but never used."}],
},
{
code: '(function(a, b, {c, d}) {})',
options: [{argsIgnorePattern: 'd'}],
parserOptions: {ecmaVersion: 6},
errors: [{message: "'c' is defined but never used."}],
},
],
});
| 28.40708 | 80 | 0.487262 |
1807b991904e8ca6b18e89d66d361da66dcbff91 | 1,133 | js | JavaScript | index.js | emgyrz/deploy-by-rsync | 293581de01e3e3203c7f098e574611114bb24a31 | [
"MIT"
] | null | null | null | index.js | emgyrz/deploy-by-rsync | 293581de01e3e3203c7f098e574611114bb24a31 | [
"MIT"
] | null | null | null | index.js | emgyrz/deploy-by-rsync | 293581de01e3e3203c7f098e574611114bb24a31 | [
"MIT"
] | null | null | null | #!/usr/bin/env node
( function() {
'use strict';
const searchConfig = require( './scripts/searchConfig' )
const args = require( './scripts/args' )
const promptt = require( './scripts/promptt' )
const message = require( './scripts/message' )
const deploy = require( './scripts/deploy' )
const projects = searchConfig()
setIndexes( projects )
const projectKeys = projects.keys()
const projectsLength = projects.size
var config = {
projects,
projectKeys,
projectsLength
}
if ( projects === null ) return
var projectToDeploy = args.findProject( config )
if ( projectToDeploy !== null ) {
depl( projectToDeploy )
} else {
message.logNames( projects )
promptt.start( config, function( projectToDeploy ) {
depl( projectToDeploy )
} )
}
function depl( project ) {
let deployArgs = args.prepareArgs( project )
deploy( deployArgs )
}
function setIndexes( projects ) {
let ind = 1
for ( let prKey of projects.keys() ) {
let pr = projects.get( prKey )
pr.index = ind
projects.set( prKey, pr )
ind++
}
}
}() )
| 19.534483 | 58 | 0.624007 |
1807d95b13cfb6992f650ed21ae748f005541233 | 8,327 | js | JavaScript | src/pages/markets/synthetic/_margin.js | suyash-binary/deriv-com | dd2d51f0e6b1105677bb0f09287bf423bc40252a | [
"Apache-2.0"
] | null | null | null | src/pages/markets/synthetic/_margin.js | suyash-binary/deriv-com | dd2d51f0e6b1105677bb0f09287bf423bc40252a | [
"Apache-2.0"
] | null | null | null | src/pages/markets/synthetic/_margin.js | suyash-binary/deriv-com | dd2d51f0e6b1105677bb0f09287bf423bc40252a | [
"Apache-2.0"
] | null | null | null | import React from 'react'
import styled from 'styled-components'
import AvailablePlatforms from '../_available-platforms.js'
import MarketsAccordion from '../_markets_accordion.js'
import {
VolatilityIndices,
CrashBoom,
StepIndices,
RangeBreak,
} from '../sub-markets/_submarkets.js'
import { Text } from 'components/elements'
import { SectionContainer, Flex, CssGrid, Show } from 'components/containers'
import { localize, Localize } from 'components/localization'
import device from 'themes/device'
const Descriptions = styled.div`
padding-bottom: 4rem;
border-bottom: 1px solid var(--color-grey-21);
`
const Col = styled(Flex)`
max-width: 12.9rem;
@media ${device.tabletL} {
max-width: 10rem;
}
`
const Row = styled(Flex)``
const StyledText = styled(Text)`
@media ${device.tabletL} {
font-size: 2rem;
text-align: left;
}
`
const MarketsList = styled(CssGrid)`
border-left: 1px solid var(--color-grey-22);
border-right: 1px solid var(--color-grey-22);
grid-template-columns: repeat(3, 1fr);
width: 100%;
padding: 2.4rem 1.6rem;
grid-row-gap: 1.6rem;
grid-column-gap: 0.8rem;
@media ${device.tabletL} {
grid-template-columns: repeat(1, 1fr);
img {
width: 16px;
height: 16px;
margin-right: 4px;
}
${Text} {
font-size: 1.5rem;
line-height: 1.5;
}
}
`
const Title = styled(Text)`
@media ${device.tabletL} {
text-align: center;
font-weight: 600;
font-size: 14px;
}
`
const MarketsWrapper = styled(Flex)`
flex-direction: column;
> div {
margin-top: 2.4rem;
}
`
const DetailsContainer = styled(Flex)`
flex-direction: column;
${Text} {
font-size: 1.4rem;
margin-top: 1.6rem;
@media ${device.tabletL} {
margin-top: 1rem;
}
}
`
const CrashText = styled(Text)`
width: 690px;
@media ${device.tabletL} {
width: 100%;
}
`
const VolatilityIndicesDetails = () => (
<DetailsContainer>
<Text>
{localize(
'These indices correspond to simulated markets with constant volatilities of 10%, 25%, 50%, 75%, and 100%.',
)}
</Text>
<Text>
<Localize
translate_text="<0>One tick</0> is generated <0>every two seconds</0> for volatility indices <0>10, 25, 50, 75, and 100</0>."
components={[<strong key={0} />]}
/>
</Text>
<Text>
<Localize
translate_text="<0>One tick</0> is generated <0>every second</0> for volatility indices <0>10 (1s), 25 (1s), 50 (1s), 75 (1s), and 100 (1s)</0>."
components={[<strong key={0} />]}
/>
</Text>
</DetailsContainer>
)
const CrashBoomDetails = () => (
<DetailsContainer>
<CrashText>
<Localize
translate_text="With these indices, there is an average of one drop (crash) or one spike (boom) in prices that occur in a <0>series of 1000 or 500 ticks</0>."
components={[<strong key={0} />]}
/>
</CrashText>
</DetailsContainer>
)
const StepIndicesDetails = () => (
<DetailsContainer>
<Text>
<Localize
translate_text="With these indices, there is an equal probability of up/down movement in a price series with a <0>fixed step size of 0.1</0>."
components={[<strong key={0} />]}
/>
</Text>
</DetailsContainer>
)
const RangeBreakIndicesDetails = () => (
<DetailsContainer>
<Text>
{localize(
'These indices fluctuate between two price points (borders), occasionally breaking through the borders to create a new range on average once every 100 or 200 times that they hit the borders.',
)}
</Text>
</DetailsContainer>
)
const Margin = () => {
return (
<SectionContainer padding="4rem 0 8rem 0">
<Flex max_width="79.2rem" m="0 auto" direction="column">
<Descriptions>
<StyledText align="center">
{localize(
'Margin trading allows you to purchase larger units of an asset at a fraction of the cost while amplifying your potential profit, but similarly increasing your potential loss.',
)}
</StyledText>
<AvailablePlatforms dmt5 />
</Descriptions>
<StyledText weight="bold" mt="2.4rem">
{localize('Instruments available for margin trading')}
</StyledText>
<MarketsWrapper direction="column">
<MarketsAccordion
renderTitle={() => (
<Row jc="flex-start" ai="center">
<Col max_width="13.2rem">
<Title weight="bold" max_width="9.7rem" align="center">
{localize('Volatility indices')}
</Title>
</Col>
<MarketsList>
<VolatilityIndices />
</MarketsList>
</Row>
)}
renderDetails={VolatilityIndicesDetails}
/>
<MarketsAccordion
renderTitle={() => (
<Row jc="flex-start" ai="center">
<Col max_width="13.2rem">
<Show.Desktop>
<Title weight="bold" max_width="9.7rem" align="center">
{localize('Crash/Boom')}
</Title>
</Show.Desktop>
<Show.Mobile>
<Title weight="bold" max_width="9.7rem" align="center">
{localize('Crash/ Boom')}
</Title>
</Show.Mobile>
</Col>
<MarketsList>
<CrashBoom />
</MarketsList>
</Row>
)}
renderDetails={CrashBoomDetails}
/>
<MarketsAccordion
renderTitle={() => (
<Row jc="flex-start" ai="center">
<Col max_width="13.2rem">
<Title weight="bold" max_width="9.7rem" align="center">
{localize('Step indices')}
</Title>
</Col>
<MarketsList>
<StepIndices />
</MarketsList>
</Row>
)}
renderDetails={StepIndicesDetails}
/>
<MarketsAccordion
renderTitle={() => (
<Row jc="flex-start" ai="center">
<Col max_width="13.2rem">
<Title weight="bold" max_width="9.7rem" align="center">
{localize('Range break indices')}
</Title>
</Col>
<MarketsList>
<RangeBreak />
</MarketsList>
</Row>
)}
renderDetails={RangeBreakIndicesDetails}
/>
</MarketsWrapper>
</Flex>
</SectionContainer>
)
}
export default Margin
| 35.892241 | 208 | 0.444578 |
1807eeae0fb81f3249003acd3718faeac52c8c00 | 2,024 | js | JavaScript | dist/alpine-pipe.cjs.js | frontsail/alpine-pipe | 91b42a26916036fe1712062174af231d9b6e0fd7 | [
"MIT"
] | null | null | null | dist/alpine-pipe.cjs.js | frontsail/alpine-pipe | 91b42a26916036fe1712062174af231d9b6e0fd7 | [
"MIT"
] | null | null | null | dist/alpine-pipe.cjs.js | frontsail/alpine-pipe | 91b42a26916036fe1712062174af231d9b6e0fd7 | [
"MIT"
] | null | null | null | var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// builds/module.js
var module_exports = {};
__export(module_exports, {
default: () => module_default
});
module.exports = __toCommonJS(module_exports);
// src/index.js
function src_default(Alpine) {
const transformers = {
safe: (value) => _D ? _D.safe(value) : ""
};
Alpine.pipe = function(name, transformer) {
if (transformer) {
transformers[name] = transformer;
}
return transformers[name];
};
Alpine.directive("pipe", (el, { modifiers, expression }, { effect, evaluateLater }) => {
const evaluate = evaluateLater(expression);
effect(() => {
evaluate((value) => {
el.innerHTML = modifiers.map(camelize).reduce(chain, value);
});
});
});
Alpine.magic("pipe", () => new Proxy(function(value, ...pipes) {
return pipes.reduce(chain, value);
}, {
get(target, property) {
return target[property];
}
}));
function chain(prev, pipeName) {
return transformers[pipeName] ? transformers[pipeName](prev) : prev;
}
function camelize(s) {
return s.replace(/-./g, (x) => x[1].toUpperCase());
}
}
// builds/module.js
var module_default = src_default;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {});
| 31.625 | 123 | 0.643281 |
1807ffb7a3d914f6b7fba326aefd7c1a4bb5ad0f | 3,217 | js | JavaScript | sites/ontvtonight.com/ontvtonight.com.test.js | talsofa/epg | ef8c7cb6e1c67d5223d1bed034405005eff6bdc0 | [
"Unlicense"
] | 479 | 2021-03-18T10:00:23.000Z | 2022-03-30T01:58:18.000Z | sites/ontvtonight.com/ontvtonight.com.test.js | talsofa/epg | ef8c7cb6e1c67d5223d1bed034405005eff6bdc0 | [
"Unlicense"
] | 223 | 2021-04-21T03:34:58.000Z | 2022-03-31T12:37:16.000Z | sites/ontvtonight.com/ontvtonight.com.test.js | talsofa/epg | ef8c7cb6e1c67d5223d1bed034405005eff6bdc0 | [
"Unlicense"
] | 181 | 2021-03-23T03:05:14.000Z | 2022-03-31T01:54:43.000Z | // npx epg-grabber --config=sites/ontvtonight.com/ontvtonight.com.config.js --channels=sites/ontvtonight.com/ontvtonight.com_au.channels.xml --output=.gh-pages/guides/au/ontvtonight.com.epg.xml --days=2
const { parser, url, logo } = require('./ontvtonight.com.config.js')
const dayjs = require('dayjs')
const utc = require('dayjs/plugin/utc')
const customParseFormat = require('dayjs/plugin/customParseFormat')
dayjs.extend(customParseFormat)
dayjs.extend(utc)
const date = dayjs.utc('2021-11-25', 'YYYY-MM-DD').startOf('d')
const channel = {
site_id: 'au#1692/7two',
xmltv_id: '7Two.au'
}
const content = `<!DOCTYPE html><html lang="en-AU" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"> <head> </head> <body> <div id="wrapper"> <section id="content"> <div class="container"> <div class="row"> <div class="span6"> <img src="https://otv-us-web.s3-us-west-2.amazonaws.com/logos/guide/media/ed49cf4f-1123-4bee-9c90-a6af375af310.png" border="0" align="right" alt="7TWO" width="140"/> <table class="table table-hover"> <tbody> <tr> <td width="90"> <h5 class="thin">12:10 am</h5> </td><td> <h5 class="thin"> <a href="https://www.ontvtonight.com/au/guide/listings/programme?cid=1692&sid=165632&dt=2021-11-24+13%3A10%3A00" target="_blank" rel="nofollow" > What A Carry On</a > </h5> </td></tr><tr> <td width="90"> <h5 class="thin">12:50 am</h5> </td><td> <h5 class="thin"> <a href="https://www.ontvtonight.com/au/guide/listings/programme?cid=1692&sid=159923&dt=2021-11-24+13%3A50%3A00" target="_blank" rel="nofollow" > Bones</a > </h5> <h6>The Devil In The Details</h6> </td></tr><tr> <td width="90"> <h5 class="thin">10:50 pm</h5> </td><td> <h5 class="thin"> <a href="https://www.ontvtonight.com/au/guide/listings/programme?cid=1692&sid=372057&dt=2021-11-25+11%3A50%3A00" target="_blank" rel="nofollow" > Inspector Morse: The Remorseful Day</a > </h5> </td></tr></tbody> </table> </div></div></div></section> </div></body></html>`
it('can generate valid url', () => {
expect(url({ channel, date })).toBe(
'https://www.ontvtonight.com/au/guide/listings/channel/1692/7two.html?dt=2021-11-25'
)
})
it('can generate valid logo url', () => {
expect(logo({ content })).toBe(
'https://otv-us-web.s3-us-west-2.amazonaws.com/logos/guide/media/ed49cf4f-1123-4bee-9c90-a6af375af310.png'
)
})
it('can parse response', () => {
const result = parser({ content, channel, date }).map(p => {
p.start = p.start.toJSON()
p.stop = p.stop.toJSON()
return p
})
expect(result).toMatchObject([
{
start: '2021-11-24T13:10:00.000Z',
stop: '2021-11-24T13:50:00.000Z',
title: `What A Carry On`
},
{
start: '2021-11-24T13:50:00.000Z',
stop: '2021-11-25T11:50:00.000Z',
title: `Bones`,
description: 'The Devil In The Details'
},
{
start: '2021-11-25T11:50:00.000Z',
stop: '2021-11-25T12:50:00.000Z',
title: `Inspector Morse: The Remorseful Day`
}
])
})
it('can handle empty guide', () => {
const result = parser({
date,
channel,
content: `<!DOCTYPE html><html><head></head><body></body></html>`
})
expect(result).toMatchObject([])
})
| 50.265625 | 1,404 | 0.654647 |
18089256ce1cb299bd823c1725ecf2cf8471a3cc | 350 | js | JavaScript | template/src/components/App.js | Carrie999/react-admin-app | 05335fe46cdd811bcb02f4787c825c24d1be3f09 | [
"MIT"
] | 2 | 2019-07-11T06:58:54.000Z | 2019-09-24T10:27:50.000Z | template/src/components/App.js | Carrie999/react-admin-app | 05335fe46cdd811bcb02f4787c825c24d1be3f09 | [
"MIT"
] | 1 | 2019-08-06T03:03:35.000Z | 2019-08-06T03:03:35.000Z | template/src/components/App.js | Carrie999/react-admin-app | 05335fe46cdd811bcb02f4787c825c24d1be3f09 | [
"MIT"
] | null | null | null | import React, { Component } from 'react';
import { withRouter } from 'react-router-dom'
import { Layout } from 'antd'
import Main from './Main'
import 'antd/dist/antd.css'
// import "./myAntd.less"
class App extends Component {
render() {
return (
<Layout>
<Main />
</Layout>
);
}
}
export default withRouter(App);
| 17.5 | 45 | 0.617143 |
1808983671bb342408e4808ff7edcf42cd45d1df | 1,604 | js | JavaScript | webpack.config.js | ericnograles/chain-reaction.web | f618bc8719ed66945b4639fefc0f5a87c2a0c8d7 | [
"MIT"
] | 1 | 2016-09-19T19:04:07.000Z | 2016-09-19T19:04:07.000Z | webpack.config.js | ericnograles/chain-reaction.web | f618bc8719ed66945b4639fefc0f5a87c2a0c8d7 | [
"MIT"
] | null | null | null | webpack.config.js | ericnograles/chain-reaction.web | f618bc8719ed66945b4639fefc0f5a87c2a0c8d7 | [
"MIT"
] | null | null | null | var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var OpenBrowserPlugin = require('open-browser-webpack-plugin');
var currentEnvironment = process.env.NODE_ENV || 'dev';
var config = require('./config/' + currentEnvironment);
module.exports = {
context: __dirname + "/src",
entry: {
javascript: "./app.js",
html: './index.html'
},
module: {
preLoaders: config.WEBPACK.preLoaders,
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel',
query:
{
presets:['react', 'es2015']
}
},
{
test: /\.html$/,
loader: 'file?name=[name].[ext]',
},
{
test: /\.jpe?g$|\.gif$|\.ico$|\.png$|\.svg$|\.woff$|\.ttf$|\.wav$|\.mp3$/,
loader: 'file?name=images/[name].[ext]'
},
{
test: /\.css$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader')
}
],
},
plugins: [
new ExtractTextPlugin("app.css"),
new webpack.DefinePlugin({
'window.API_PATH': '"' + config.API_PATH + '"'
}),
new OpenBrowserPlugin({ url: 'http://localhost:8080' })
],
devServer: {
historyApiFallback: true
},
// Need to set this so webpack won't attempt to load node_modules in chain-reaction.common
// In relation to the folder we are referencing
resolveLoader: {
root: path.join(__dirname, 'node_modules')
},
output: {
filename: 'app.js',
path: __dirname + '/dist',
},
devtool: config.WEBPACK.devtool,
} | 24.30303 | 92 | 0.569825 |
180927c4baab2cfad91be2a565d6f05382fc6745 | 800 | js | JavaScript | data/js/e4/12/89/00/00/00.24.js | p-g-krish/deepmac-tracker | 44d625a6b1ec30bf52f8d12a44b0afc594eb5f94 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | data/js/e4/12/89/00/00/00.24.js | p-g-krish/deepmac-tracker | 44d625a6b1ec30bf52f8d12a44b0afc594eb5f94 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | data/js/e4/12/89/00/00/00.24.js | p-g-krish/deepmac-tracker | 44d625a6b1ec30bf52f8d12a44b0afc594eb5f94 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | deepmacDetailCallback("e41289000000/24",[{"d":"2011-03-23","t":"add","a":"Monnetstra�e 24\nW�rselen NRW 52146\n\n","c":"GERMANY","o":"topsystem Systemhaus GmbH"},{"d":"2011-11-17","t":"change","a":"MonnetstraÃe 24\nWürselen NRW 52146\n\n","c":"GERMANY","o":"topsystem Systemhaus GmbH"},{"d":"2011-11-18","t":"change","a":"Monnetstraße 24\nWürselen NRW 52146\n\n","c":"GERMANY","o":"topsystem Systemhaus GmbH"},{"d":"2012-09-17","t":"change","a":"MonnetstraÃÂÃ
¸e 24\nWÃÂürselen NRW 52146\n\n","c":"GERMANY","o":"topsystem Systemhaus GmbH"},{"d":"2012-11-29","t":"change","a":"MonnetstraÃe 24\nWürselen NRW 52146\n\n","c":"GERMANY","o":"topsystem Systemhaus GmbH"},{"d":"2015-08-27","t":"change","a":"Monnetstraße 24 Würselen NRW DE 52146","c":"DE","o":"topsystem Systemhaus GmbH"}]);
| 400 | 799 | 0.66125 |
18093af289d505b213e4e7d6a177d69b4a69083b | 2,502 | js | JavaScript | Owambe.script.data.js | Dayo-45/Owambe-code | 7a771deba6fc734d8a52b36c2442606627cae3e3 | [
"CC-BY-4.0"
] | null | null | null | Owambe.script.data.js | Dayo-45/Owambe-code | 7a771deba6fc734d8a52b36c2442606627cae3e3 | [
"CC-BY-4.0"
] | null | null | null | Owambe.script.data.js | Dayo-45/Owambe-code | 7a771deba6fc734d8a52b36c2442606627cae3e3 | [
"CC-BY-4.0"
] | null | null | null | 'use strict';
Owambe.prototype.addUser = function(data) {
/*
TODO: Implement adding a document
*/
var collection = firebase.firestore().collection('users');
return collection.add(data);
};
Owambe.prototype.getAllUsers = function(renderer) {
/*
TODO: Retrieve list of users
*/
var query = firebase.firestore()
.collection('users')
.orderBy('name', 'desc')
.limit(100);
this.getDocumentsInQuery(query, renderer);
};
Owambe.prototype.getDocumentsInQuery = function(query, renderer) {
/*
TODO: Render all documents in the provided query
*/
query.onSnapshot(function(snapshot) {
if (!snapshot.size) return renderer.empty(); // Display "There is nothing here".
snapshot.docChanges().forEach(function(change) {
if (change.type === 'removed') {
renderer.remove(change.doc);
} else {
renderer.display(change.doc);
}
});
});
};
Owambe.prototype.getUser = function(id) {
/*
TODO: Retrieve a single user
*/
return firebase.firestore().collection('users').doc(id).get();
};
Owambe.prototype.getFilteredUsers = function(filters, renderer) {
/*
TODO: Retrieve filtered list of users
*/
var query = firebase.firestore().collection('users');
if (filters.name !== 'Any') {
query = query.where('name', '==', filters.name);
}
if (filters.city !== 'Any') {
query = query.where('city', '==', filters.city);
}
if (filters.country !== 'Any') {
query = query.where('country', '==', filters.country.length);
}
if (filters.sort === 'Rating') {
query = query.orderBy('avgRating', 'desc');
} else if (filters.sort === 'Reviews') {
query = query.orderBy('numRatings', 'desc');
}
this.getDocumentsInQuery(query, renderer);
};
Owambe.prototype.addRating = function(userID, rating) {
/*
TODO: Retrieve add a rating to users
*/
var collection = firebase.firestore().collection('users');
var document = collection.doc(userID);
var newRatingDocument = document.collection('ratings').doc();
return firebase.firestore().runTransaction(function(transaction) {
return transaction.get(document).then(function(doc) {
var data = doc.data();
var newAverage =
(data.numRatings * data.avgRating + rating.rating) /
(data.numRatings + 1);
transaction.update(document, {
numRatings: data.numRatings + 1,
avgRating: newAverage
});
return transaction.set(newRatingDocument, rating);
});
});
};
| 25.793814 | 80 | 0.640687 |
180981ef9e722be8ceee65326a988cb7b0a22bc2 | 3,374 | js | JavaScript | assets/src/edit-story/elements/shared/index.js | ariskataoka/web-stories-wp | ac7188b74f5412ca625a82b51a6be6b8a44e506b | [
"Apache-2.0"
] | 1 | 2021-02-11T08:44:45.000Z | 2021-02-11T08:44:45.000Z | assets/src/edit-story/elements/shared/index.js | ariskataoka/web-stories-wp | ac7188b74f5412ca625a82b51a6be6b8a44e506b | [
"Apache-2.0"
] | 130 | 2020-10-02T13:48:18.000Z | 2022-03-28T19:35:12.000Z | assets/src/edit-story/elements/shared/index.js | ariskataoka/web-stories-wp | ac7188b74f5412ca625a82b51a6be6b8a44e506b | [
"Apache-2.0"
] | 1 | 2021-06-21T04:46:19.000Z | 2021-06-21T04:46:19.000Z | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* External dependencies
*/
import { css } from 'styled-components';
/**
* Internal dependencies
*/
import generatePatternStyles from '../../utils/generatePatternStyles';
import { calcFontMetrics, generateFontFamily } from '../text/util';
import { getBorderStyle, getBorderRadius } from '../../utils/elementBorder';
export const elementFillContent = css`
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
`;
export const elementWithPosition = css`
position: absolute;
z-index: 1;
left: ${({ x }) => `${x}px`};
top: ${({ y }) => `${y}px`};
`;
// TODO: removed round/ceil, calculateFitTextFontSize needs to be improved?
export const elementWithSize = css`
width: ${({ width }) => `${width}px`};
height: ${({ height }) => `${height}px`};
`;
export const elementWithRotation = css`
transform: ${({ rotationAngle }) => `rotate(${rotationAngle}deg)`};
`;
export const elementWithBorderRadius = css`
${(props) => getBorderRadius(props)}
`;
export const elementWithHighlightBorderRadius = ({
borderRadius,
dataToEditorY,
}) =>
dataToEditorY &&
css`
border-radius: ${dataToEditorY(borderRadius?.topLeft || 0)}px
${dataToEditorY(borderRadius?.topRight || 0)}px
${dataToEditorY(borderRadius?.bottomRight || 0)}px
${dataToEditorY(borderRadius?.bottomLeft || 0)}px;
`;
export const elementWithBorder = css`
${({ border, borderRadius, width, height }) =>
getBorderStyle({
border,
borderRadius,
width,
height,
})}
background-clip: padding-box;
`;
export const elementWithBackgroundColor = css`
${({ backgroundColor }) =>
backgroundColor && generatePatternStyles(backgroundColor)};
`;
export const elementWithFont = css`
white-space: pre-wrap;
font-family: ${({ font }) => generateFontFamily(font)};
overflow-wrap: break-word;
word-break: break-word;
letter-spacing: normal;
font-style: ${({ fontStyle }) => fontStyle};
font-size: ${({ fontSize }) => fontSize}px;
font-weight: ${({ fontWeight }) => fontWeight};
color: #000000;
`;
// See generateParagraphTextStyle for the full set of properties.
export const elementWithTextParagraphStyle = ({ element, dataToEditorY }) => {
const { marginOffset } = calcFontMetrics(element);
return css`
margin: ${-dataToEditorY(marginOffset / 2)}px 0;
padding: ${({ padding }) => padding || 0};
line-height: ${({ lineHeight }) => lineHeight};
text-align: ${({ textAlign }) => textAlign};
overflow-wrap: break-word;
`;
};
export const SHARED_DEFAULT_ATTRIBUTES = {
opacity: 100,
flip: {
vertical: false,
horizontal: false,
},
rotationAngle: 0,
lockAspectRatio: true,
};
export const elementWithFlip = css`
transform: ${({ transformFlip }) => transformFlip};
`;
| 27.430894 | 78 | 0.671903 |
180983c4bbd610e8d1b94ad793307266db4c1c29 | 1,400 | js | JavaScript | docs/sidebars.js | Anivive/component-chart | 8af8854de3d8ea948676706ebdc9bd4c11f32a93 | [
"Apache-2.0"
] | 13 | 2021-05-03T08:54:44.000Z | 2022-03-03T13:21:14.000Z | docs/sidebars.js | Anivive/component-chart | 8af8854de3d8ea948676706ebdc9bd4c11f32a93 | [
"Apache-2.0"
] | 20 | 2021-03-01T21:06:52.000Z | 2022-03-10T20:44:56.000Z | docs/sidebars.js | Anivive/component-chart | 8af8854de3d8ea948676706ebdc9bd4c11f32a93 | [
"Apache-2.0"
] | 14 | 2021-03-20T06:44:52.000Z | 2022-03-19T22:54:25.000Z | /**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
module.exports = {
adminSidebar: [
{
type: 'doc',
id: 'introduction',
},
{
type: 'doc',
id: 'usage',
},
{
type: 'category',
label: 'Configuration',
items: [
'configuration/reference',
'configuration/containers',
'configuration/init-containers',
'configuration/labels',
'configuration/annotations',
'configuration/volumes',
'configuration/service',
'configuration/serviceName',
'configuration/ingress',
'configuration/replicas',
'configuration/auto-scaling',
'configuration/rolling-update',
'configuration/pull-secrets',
'configuration/tolerations',
'configuration/affinity',
'configuration/node-selector',
'configuration/node-name',
'configuration/pod-management-policy',
],
},
{
type: 'category',
label: 'Guides',
items: [
'guides/ingress-domains',
'guides/ssl-certificates',
'guides/persistent-volumes',
],
},
{
type: 'link',
label: '↗️ DevSpace CLI',
href: 'https://devspace.sh/cli/docs/introduction',
},
],
};
| 24.137931 | 66 | 0.567857 |
18098bfadee90de24dd73feec894587190086bf2 | 1,923 | js | JavaScript | client/src/upgrades/UpgradeList.js | forcedotcom/package-manager | 40e1a94cab944a18e54db93279ac4e3b29a4c80c | [
"BSD-3-Clause"
] | 7 | 2020-09-30T19:43:57.000Z | 2022-02-04T20:37:20.000Z | client/src/upgrades/UpgradeList.js | forcedotcom/package-manager | 40e1a94cab944a18e54db93279ac4e3b29a4c80c | [
"BSD-3-Clause"
] | 20 | 2020-10-10T07:00:59.000Z | 2022-02-27T09:53:53.000Z | client/src/upgrades/UpgradeList.js | forcedotcom/package-manager | 40e1a94cab944a18e54db93279ac4e3b29a4c80c | [
"BSD-3-Clause"
] | 5 | 2021-04-13T00:09:40.000Z | 2021-11-11T18:51:02.000Z | import React from 'react';
import moment from "moment";
import DataTable from "../components/DataTable";
import {DataTableFilterHelp} from "../components/DataTableFilter";
import * as nav from "../services/nav";
export default class extends React.Component {
constructor(props) {
super(props);
this.state = {};
this.linkHandler = this.linkHandler.bind(this);
}
// Lifecycle
render() {
let columns = [
{Header: "Number", accessor: "id", minWidth: 60, sortable: true, clickable: true},
{Header: "Description", accessor: "description", minWidth: 300, clickable: true},
{Header: "Job Count", accessor: "total_job_count", sortable: true},
{Header: "Status", accessor: "item_status", sortable: true},
{
Header: "Scheduled Start",
maxWidth: 200,
id: "start_time",
accessor: d => moment(d.start_time).format("YYYY-MM-DD HH:mm:ss A"),
sortable: true,
clickable: true
},
{Header: "When", id: "when", accessor: d => moment(d.start_time).fromNow(), clickable: true, sortable: false},
{Header: "Created By", accessor: "created_by", sortable: true},
{Header: "Activated By", id: "activated_by", accessor: d => d.activated_by || '', sortable: true},
{Header: "Activated On", id: "activated_date", accessor: d => d.activated_date ?
moment(d.activated_date).format("YYYY-MM-DD HH:mm:ss A") : '', sortable: true}
];
return (
<div className="slds-color__background_gray-1">
<DataTable id="UpgradeList" onFetch={this.props.onFetch} refetchOn={this.props.refetchOn} columns={columns} onClick={this.linkHandler}
onFilter={this.props.onFilter} filters={this.props.filters}
showSelected={this.props.showSelected} selection={this.props.selected} onSelect={this.props.onSelect}/>
<DataTableFilterHelp/>
</div>
);
}
// Handlers
linkHandler(e, column, rowInfo) {
if (rowInfo) {
nav.toPath("upgrade", rowInfo.row.id);
}
}
}
| 35.611111 | 139 | 0.672907 |
180b206eb5321191f94b4721ebd8344e37a1018d | 1,234 | js | JavaScript | angularJsDemo2/milestone-120/angular/app/scripts/controllers/messages.js | educlong/phpmysqlangularjs | 567b4cfb62163e48a7ebfb8ee023188e6f7e638f | [
"MIT"
] | null | null | null | angularJsDemo2/milestone-120/angular/app/scripts/controllers/messages.js | educlong/phpmysqlangularjs | 567b4cfb62163e48a7ebfb8ee023188e6f7e638f | [
"MIT"
] | null | null | null | angularJsDemo2/milestone-120/angular/app/scripts/controllers/messages.js | educlong/phpmysqlangularjs | 567b4cfb62163e48a7ebfb8ee023188e6f7e638f | [
"MIT"
] | null | null | null | 'use strict';
function MessagesCtrl(messages) {
var vm = this;
vm.folders = [{
name: 'Inbox',
folder: 'inbox',
value: 78
}, {
name: 'Sent Mail',
folder: 'sent'
}, {
name: 'Starred',
folder: 'starred'
}, {
name: 'Draft',
folder: 'draft'
}, {
name: 'Trash',
folder: 'trash'
}];
vm.tags = [{
name: 'Personal',
color: 'primary',
}, {
name: 'Clients',
color: 'success'
}, {
name: 'Family',
color: 'warning'
}, {
name: 'Friends',
color: 'danger'
}, {
name: 'Archives',
color: 'default'
}];
vm.currentTag = null;
vm.setCurrentTag = function(tag) {
vm.currentTag = tag;
};
vm.isCurrentTag = function(tag) {
return vm.currentTag !== null && tag.name === vm.currentTag.name;
};
vm.messages = [];
messages.getAll().then(angular.bind(vm, function then() {
vm.messages = messages.messages;
}));
vm.currentMessage = null;
vm.setCurrentMessage = function(id) {
messages.getById(id).then(angular.bind(vm, function then() {
vm.currentMessage = messages.message[0];
}));
};
vm.setCurrentMessage(1);
}
angular.module('app').controller('MessagesCtrl', ['messages', MessagesCtrl]); | 19.903226 | 77 | 0.567261 |
180c7f5d63e7a21b9ae97bad19e90aa6827940bd | 1,188 | js | JavaScript | sn-editor/src/components/Controls.js | somnonetz/copla-editor | 538b5e67ffa48d9108997be09b7ad19bcfdf56c5 | [
"MIT"
] | 13 | 2019-11-18T09:23:35.000Z | 2022-03-25T06:24:17.000Z | sn-editor/src/components/Controls.js | somnonetz/copla-editor | 538b5e67ffa48d9108997be09b7ad19bcfdf56c5 | [
"MIT"
] | 35 | 2020-02-12T09:35:53.000Z | 2022-03-08T22:43:37.000Z | sn-editor/src/components/Controls.js | somnonetz/copla-editor | 538b5e67ffa48d9108997be09b7ad19bcfdf56c5 | [
"MIT"
] | 1 | 2021-06-14T11:15:04.000Z | 2021-06-14T11:15:04.000Z | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class Controls extends Component {
static propTypes = {
proxy: PropTypes.object.isRequired,
}
handleClicks = (ev) => {
this.props.proxy.onClick(ev.target.dataset);
}
render() {
const Button = ({ children, action, seconds }) => (
<button
className="btn btn-default btn-ghost"
onClick={this.handleClicks}
data-action={action}
data-seconds={seconds}
>{children}</button>
);
return (
<div className="controls site-nav btn-group m-l-1">
<Button action="moveLeft">←</Button>
<Button action="moveRight">→</Button>
<Button action="play">▶</Button>
{/* <Button action="time" seconds="10">10s</Button> */}
<Button action="time" seconds="30">30s</Button>
{/* <Button action="time" seconds="60">1m</Button> */}
{/* <Button action="time" seconds="120">2m</Button> */}
<Button action="time" seconds="300">5m</Button>
<Button action="time" seconds="600">10m</Button>
<Button action="time" seconds="full">voll</Button>
</div>
);
}
}
| 28.97561 | 63 | 0.590909 |
180c9df97dbf8234fa35c86a4d050cbe543a8698 | 1,193 | js | JavaScript | src/components/download-link.js | Dalabad/insomnia.rest | b311b8fbb74e5c646f51675a6a0fb6f7932308de | [
"MIT"
] | null | null | null | src/components/download-link.js | Dalabad/insomnia.rest | b311b8fbb74e5c646f51675a6a0fb6f7932308de | [
"MIT"
] | null | null | null | src/components/download-link.js | Dalabad/insomnia.rest | b311b8fbb74e5c646f51675a6a0fb6f7932308de | [
"MIT"
] | null | null | null | import React from 'react';
import classnames from 'classnames';
import { links } from '../config';
import Link from './link';
class DownloadButton extends React.Component {
constructor(props) {
super(props);
this.state = {
platform: '__UNSET__'
};
}
componentDidMount() {
const isMobile = window.innerWidth <= 800 && window.innerHeight <= 600;
this.setState({
platform: isMobile ? 'Mobile' : navigator.platform.toLowerCase()
});
}
render() {
const { platform } = this.state;
const { className, children } = this.props;
let href = links.download;
let platformName = 'Desktop';
if (platform.indexOf('mac') !== -1) {
platformName = 'Mac';
href = '/download/#mac';
} else if (platform.indexOf('win') !== -1) {
platformName = 'Windows';
href = '/download/#windows';
} else if (platform.indexOf('linux') !== -1) {
platformName = 'Linux';
href = '/download/#linux';
}
const message = children || `Download for ${platformName}`;
return (
<Link to={href} className={classnames(className)}>
{message}
</Link>
);
}
}
export default DownloadButton;
| 23.86 | 75 | 0.597653 |
180cdfbeef2369c83c4f9ab7ae19073283d7ffdf | 5,798 | js | JavaScript | lib/manager/components/transform/FeedTransformRules.js | MShaffar19/datatools-ui | 99c19b15f81b4f35b17ab83fa9d3c61ea06073ae | [
"MIT"
] | null | null | null | lib/manager/components/transform/FeedTransformRules.js | MShaffar19/datatools-ui | 99c19b15f81b4f35b17ab83fa9d3c61ea06073ae | [
"MIT"
] | null | null | null | lib/manager/components/transform/FeedTransformRules.js | MShaffar19/datatools-ui | 99c19b15f81b4f35b17ab83fa9d3c61ea06073ae | [
"MIT"
] | 1 | 2020-09-13T07:56:42.000Z | 2020-09-13T07:56:42.000Z | // @flow
import Icon from '@conveyal/woonerf/components/icon'
import React, {Component} from 'react'
import {
Button,
ButtonToolbar,
DropdownButton,
ListGroupItem,
MenuItem
} from 'react-bootstrap'
import Select from 'react-select'
import {RETRIEVAL_METHODS} from '../../../common/constants'
import toSentenceCase from '../../../common/util/to-sentence-case'
import FeedTransformation from './FeedTransformation'
import {getTransformationName} from '../../util/transform'
import VersionRetrievalBadge from '../version/VersionRetrievalBadge'
import type {
Feed,
FeedTransformRules as FeedTransformRulesType,
ReactSelectOption
} from '../../../types'
function newFeedTransformation (type: string = 'ReplaceFileFromVersionTransformation', props: any = {}) {
return {
'@type': type,
...props
}
}
const feedTransformationTypes = [
'ReplaceFileFromVersionTransformation',
'ReplaceFileFromStringTransformation'
]
type TransformRulesProps = {
feedSource: Feed,
index: number,
onChange: (any, number) => void,
onDelete: (number) => void,
ruleSet: FeedTransformRulesType
}
/**
* Component that shows a single set of transform rules, which correspond to a
* specific set of retrieval methods. This can contain contain multiple
* transformations that will apply in sequence to an incoming GTFS file.
*/
export default class FeedTransformRules extends Component<TransformRulesProps> {
_addTransformation = (type: string) => {
const {index, onChange, ruleSet} = this.props
const transformations = [...ruleSet.transformations]
transformations.push(newFeedTransformation(type))
onChange({...ruleSet, transformations}, index)
}
_removeRuleSet = () => {
const {index, onDelete} = this.props
const deleteConfirmed = window.confirm(
`Are you sure you would like to delete Transformation ${index + 1}?`
)
if (deleteConfirmed) onDelete(index)
}
_onChangeTransformation = (changes: any, transformationIndex: number) => {
const {index, onChange, ruleSet} = this.props
const transformations = [...ruleSet.transformations]
transformations[transformationIndex] = {...transformations[transformationIndex], ...changes}
onChange({...ruleSet, transformations}, index)
}
_onChangeRetrievalMethods = (options: Array<ReactSelectOption>) => {
const {index, onChange, ruleSet} = this.props
const retrievalMethods = options.map(o => o.value)
onChange({...ruleSet, retrievalMethods}, index)
}
_onToggleEnabled = (evt: SyntheticInputEvent<HTMLInputElement>) => {
const {index, onChange, ruleSet} = this.props
onChange({...ruleSet, active: !ruleSet.active}, index)
}
_removeTransformation = (transformationIndex: number) => {
const {index, onChange, ruleSet} = this.props
const transformations = [...ruleSet.transformations]
transformations.splice(transformationIndex, 1)
onChange({...ruleSet, transformations}, index)
}
_retrievalMethodToOption = (method: mixed) => {
// Annoying check because our version of flow appears to treat Object.values
// as Array<mixed>: https://github.com/facebook/flow/issues/2221#issuecomment-238749128
if (typeof method === 'string') {
return {
value: method,
label: toSentenceCase(method.toLowerCase().split('_').join(' '))
}
}
return null
}
render () {
const {feedSource, ruleSet, index} = this.props
const methodBadges = ruleSet.retrievalMethods.map(method =>
<VersionRetrievalBadge key={method} retrievalMethod={method} />)
return (
<ListGroupItem className={ruleSet.active ? '' : 'disabled'}>
<h4>
<ButtonToolbar className='pull-right'>
<Button
bsSize='xsmall'
onClick={this._onToggleEnabled}>
{ruleSet.active
? <span><Icon type='pause' /> Pause</span>
: <span><Icon type='play' /> Resume</span>
}
</Button>
<Button
bsSize='xsmall'
onClick={this._removeRuleSet}>
<Icon type='trash' /> Delete
</Button>
</ButtonToolbar>
<Icon type='wrench' /> Transformation {index + 1}{' '}
{!ruleSet.active ? '(Paused) ' : ''}
<small>{methodBadges}</small>
</h4>
<small>
Apply this transformation to GTFS feeds created through the following methods.
</small>
<Select
style={{margin: '5px 0px 10px 0px'}}
clearable={false}
multi
placeholder='Select GTFS retrieval methods'
options={Object.values(RETRIEVAL_METHODS).map(this._retrievalMethodToOption)}
value={ruleSet.retrievalMethods.map(this._retrievalMethodToOption)}
onChange={this._onChangeRetrievalMethods} />
{ruleSet.transformations.length > 0
? ruleSet.transformations.map((t, i) => {
return (
<FeedTransformation
key={i}
feedSource={feedSource}
onChange={this._onChangeTransformation}
onRemove={this._removeTransformation}
ruleSet={ruleSet}
transformation={t}
index={i} />
)
})
: <div className='lead'>No transformation steps defined.</div>
}
<ButtonToolbar>
<DropdownButton
title='Add step to transformation'
id='add-transformation-dropdown'
onSelect={this._addTransformation}>
{feedTransformationTypes.map(t =>
<MenuItem key={t} eventKey={t}>{getTransformationName(t)}</MenuItem>)
}
</DropdownButton>
</ButtonToolbar>
</ListGroupItem>
)
}
}
| 34.307692 | 105 | 0.638669 |
180db70deeaa5842f702bed5ce4cf80ee836ca30 | 381 | js | JavaScript | server/api/users.js | jonah-ullman/hydrate | 5b6524c5e15933044cc37328ca4abe91b5f5610a | [
"MIT"
] | null | null | null | server/api/users.js | jonah-ullman/hydrate | 5b6524c5e15933044cc37328ca4abe91b5f5610a | [
"MIT"
] | null | null | null | server/api/users.js | jonah-ullman/hydrate | 5b6524c5e15933044cc37328ca4abe91b5f5610a | [
"MIT"
] | null | null | null | const router = require('express').Router()
const {User} = require('../db/models')
module.exports = router
router.put('/', async (req, res, next) => {
try {
const response = await User.update(req.body, {
where: {id: req.user.id},
returning: true,
})
const updatedUser = response[1][0]
res.json(updatedUser)
} catch (error) {
next(error)
}
})
| 21.166667 | 50 | 0.598425 |
180e1e8f9f148f9335b025f4bfde4765aef62258 | 180 | js | JavaScript | src/modules/_blank-module/sagas.js | mduleone/ketoplan | dcc11b00934d27b9cb728e7e6c01008cdfd1b540 | [
"MIT"
] | 8 | 2017-08-21T20:24:23.000Z | 2019-12-03T07:09:39.000Z | src/modules/_blank-module/sagas.js | mduleone/ketoplan | dcc11b00934d27b9cb728e7e6c01008cdfd1b540 | [
"MIT"
] | 7 | 2020-07-17T11:24:40.000Z | 2022-02-26T02:32:45.000Z | src/modules/_blank-module/sagas.js | mduleone/ketoplan | dcc11b00934d27b9cb728e7e6c01008cdfd1b540 | [
"MIT"
] | 3 | 2017-08-10T20:38:40.000Z | 2017-11-29T02:29:17.000Z | import {put, call} from 'redux-saga/effects';
import {takeLatest} from 'redux-saga';
import * as types from './constants';
import * as actions from './index';
export default [];
| 22.5 | 45 | 0.694444 |
180e25b1f402e84acdc6fdfbfeb92e0203d60246 | 36 | js | JavaScript | src/utils/Module.js | 6dyAllen/basis-converter-1 | 15c374ff13a1c1f18fc8cd1743c6796f746999cb | [
"MIT"
] | 25 | 2021-08-20T10:23:21.000Z | 2022-03-08T10:39:44.000Z | src/utils/Module.js | 6dyAllen/basis-converter-1 | 15c374ff13a1c1f18fc8cd1743c6796f746999cb | [
"MIT"
] | 1 | 2021-07-07T05:57:56.000Z | 2021-07-07T06:28:25.000Z | src/utils/Module.js | 6dyAllen/basis-converter-1 | 15c374ff13a1c1f18fc8cd1743c6796f746999cb | [
"MIT"
] | 2 | 2021-07-07T05:54:34.000Z | 2021-09-12T09:37:27.000Z | export const Module = window.BASIS() | 36 | 36 | 0.777778 |
180e3763fc97e12381c7c1b50b305051507e3b2d | 1,929 | js | JavaScript | server/index.js | pugocoder/stamps | cdb7165e03547a31397610393e40d9f83f2665aa | [
"MIT"
] | null | null | null | server/index.js | pugocoder/stamps | cdb7165e03547a31397610393e40d9f83f2665aa | [
"MIT"
] | null | null | null | server/index.js | pugocoder/stamps | cdb7165e03547a31397610393e40d9f83f2665aa | [
"MIT"
] | null | null | null | const express = require('express')
const cors = require('cors')
const app = express()
const bodyParser = require('body-parser')
const get_themes = require('./api/get_themes')
const get_serias = require('./api/get_serias')
const get_sizes = require('./api/get_sizes')
const get_volumes = require('./api/get_volumes')
const get_pages = require('./api/get_pages')
const get_positions = require('./api/get_positions')
const countries = require('./api/countries')
const volumes = require('./api/volumes')
const location = require('./api/location')
const serial_themes = require('./api/serial_themes')
const search_stamp = require('./api/search_stamp')
const add = require('./api/add')
const remove_theme = require('./api/remove_theme')
const move_stamp = require('./api/move_stamp')
const get_reference = require('./api/get_reference')
const get_report = require('./api/get_report')
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(cors({
origin: 'http://localhost:8080'
}));
app.get('/', (req, res) => {
res.send('<h3>Welcome to Stamp Collection API<h3>')
})
app.get('/get_themes', get_themes);
app.get('/get_serias', get_serias);
app.get('/get_sizes', get_sizes);
app.get('/get_volumes', get_volumes);
app.get('/get_pages', get_pages);
app.get('/get_positions', get_positions);
app.get('/countries', countries)
app.get('/volumes', volumes);
app.get('/location', location);
app.get('/serial_themes', serial_themes);
app.get('/search_stamp', search_stamp);
app.post('/add', add);
app.post('/remove_theme', remove_theme);
app.post('/move_stamp', move_stamp);
app.get('/get_reference', get_reference);
app.get('/get_report', get_report);
app.use(function(req, res, next) {
res.status(404).send("Sorry, that route doesn't exist. Have a nice day :)");
});
const PORT = process.env.PORT || 5000;
app.listen(PORT, () => {
console.log(`Example app listening on port ${PORT}!`);
});
| 30.619048 | 78 | 0.707621 |
180e91a814edecbd7d29e41d7a061d780f1c6d45 | 1,234 | js | JavaScript | src/ui-component/cards/Skeleton/TotalIncomeCard.js | rlaxodnjs199/alveola-frontend | 25a59ed7496d066bf922eb9631765af8ee53a043 | [
"MIT"
] | 1 | 2021-11-06T21:42:19.000Z | 2021-11-06T21:42:19.000Z | src/ui-component/cards/Skeleton/TotalIncomeCard.js | rlaxodnjs199/alveola-frontend | 25a59ed7496d066bf922eb9631765af8ee53a043 | [
"MIT"
] | null | null | null | src/ui-component/cards/Skeleton/TotalIncomeCard.js | rlaxodnjs199/alveola-frontend | 25a59ed7496d066bf922eb9631765af8ee53a043 | [
"MIT"
] | null | null | null | import React from 'react';
// material-ui
import { makeStyles } from '@material-ui/styles';
import {
Card,
CardContent,
List,
ListItem,
ListItemAvatar,
ListItemText,
Skeleton,
} from '@material-ui/core';
// style constant
const useStyles = makeStyles({
content: {
padding: '16px !important',
},
padding: {
paddingTop: 0,
paddingBottom: 0,
},
});
// ===========================|| SKELETON - TOTAL INCOME DARK/LIGHT Card ||=========================== //
const TotalIncomeCard = () => {
const classes = useStyles();
return (
<Card>
<CardContent className={classes.content}>
<List className={classes.padding}>
<ListItem
alignItems="center"
disableGutters
className={classes.padding}
>
<ListItemAvatar>
<Skeleton variant="rect" width={44} height={44} />
</ListItemAvatar>
<ListItemText
className={classes.padding}
primary={<Skeleton variant="rect" height={20} />}
secondary={<Skeleton variant="text" />}
/>
</ListItem>
</List>
</CardContent>
</Card>
);
};
export default TotalIncomeCard;
| 22.436364 | 105 | 0.539708 |
180ee449aabcddf366744c4c6f30469f920aeda2 | 3,788 | js | JavaScript | client/src/pages/ForgotPassword/ForgotPassword.js | deepambahre1492/FPRT-React | 6900c6617b6853c532a49de6d62a58b71301617a | [
"MIT"
] | null | null | null | client/src/pages/ForgotPassword/ForgotPassword.js | deepambahre1492/FPRT-React | 6900c6617b6853c532a49de6d62a58b71301617a | [
"MIT"
] | null | null | null | client/src/pages/ForgotPassword/ForgotPassword.js | deepambahre1492/FPRT-React | 6900c6617b6853c532a49de6d62a58b71301617a | [
"MIT"
] | null | null | null |
import React, { Component } from 'react'
import styles from './ForgotPassword.module.css';
import {connect} from 'react-redux';
import {Formik} from 'formik';
import * as Yup from 'yup';
import Error from '../../components/ErrorComponent/ErrorComponent';
import * as authActionCreators from '../../Redux/Actions/AuthActionCreators';
const validationSchema = Yup.object().shape({
email: Yup.string()
.email('Must be a valid email address')
.required('Email required')
});
class ForgotPassword extends Component {
// state = {
// email: ''
// }
// handleInputChange = (e) => {
// this.setState({
// [e.target.name]: e.target.value
// });
// }
handleSubmitForm = async (email) => {
// console.log(this.state);
await this.props.forgotPassword(email);
if (this.props.forgotPassword && !this.props.error){
this.props.history.push('/confirmForgotPassword');
}
}
render() {
return (
<div className={styles.register}>
{/* <form className={styles.form} onSubmit={this.handleSubmit}>
<h1 className={styles.heading}>Forgot Your Password</h1>
<p className={styles.message}>Enter your email. A password reset link will be sent to your inbox</p>
<input className={styles.input} type="email" name="email" placeholder="Email" value={this.state.email} onChange={this.handleInputChange} autoComplete="off"/>
<input className={styles.submit} type="submit" value="Submit"/>
</form> */ }
<Formik
initialValues = {{
email: ''
}}
validationSchema={validationSchema}
onSubmit={ (values, {setSubmitting, resetForm}) => {
setSubmitting(true);
//form submitted => what actions to take
this.handleSubmitForm(values.email)
// resetForm();
setSubmitting(false);
}}
>
{({values, errors, touched, handleChange, handleBlur, handleSubmit, isSubmitting}) => (
<form className={styles.form} onSubmit={handleSubmit}>
<h1 className={styles.heading}>Forgot Your Password</h1>
<p className={styles.message}>Enter your email. A password reset link will be sent to your inbox</p>
<input className={`${styles.input} ${touched.email && errors.email ? `${styles.error}` : '' }`} type="email" name="email" placeholder="Email" value={values.email} onChange={handleChange} onBlur={handleBlur} autoComplete="off"/>
<Error touched={touched.email} message={errors.email}/>
<p style={{color: 'red', textAlign: 'center'}}>{this.props.error}</p>
<input className={styles.submit} type="submit" value="Submit" disabled={isSubmitting}/>
</form>
)}
</Formik>
</div>
)
}
}
const mapStateToProps = (state) => {
return {
forgotPassword: state.auth.forgotPassword,
error: state.error.error
}
}
const mapDispatchToProps = (dispatch) => {
return {
forgotPassword: (email) => dispatch(authActionCreators.forgotPassword(email)),
}
}
export default connect(mapStateToProps, mapDispatchToProps)(ForgotPassword); | 32.655172 | 251 | 0.525343 |
181042f9bedbe9416798831894c659c1c5098454 | 1,231 | js | JavaScript | wrap-with-provider.js | steve-phan/suadienthoai | 05b40056797711de6847b8c0524415699dcba33a | [
"RSA-MD"
] | 1 | 2021-02-07T12:42:11.000Z | 2021-02-07T12:42:11.000Z | wrap-with-provider.js | vUnAmp/suadienthoai | 05b40056797711de6847b8c0524415699dcba33a | [
"RSA-MD"
] | null | null | null | wrap-with-provider.js | vUnAmp/suadienthoai | 05b40056797711de6847b8c0524415699dcba33a | [
"RSA-MD"
] | null | null | null | import React, { useEffect } from "react"
import { Provider, useDispatch } from "react-redux"
// import { persistStore } from 'redux-persist';
import {
store,
// persistor
} from "./src/redux/createStore"
import { PersistGate } from "redux-persist/integration/react"
import { checkUserAuth } from "./src/redux/User/user.helpers"
import Layout from "./src/components/Layout/layout"
import { ThemeProvider } from "@material-ui/styles"
import { createTheme } from "@material-ui/core"
import { red } from "@material-ui/core/colors"
const theme = createTheme({
palette: {
primary: {
main: "#556cd6",
},
secondary: {
main: "#19857b",
},
error: {
main: red.A400,
},
},
})
// eslint-disable-next-line react/display-name,react/prop-types
const WrapSite = ({ element }) => {
// - there is fresh store for each SSR page
// - it will be called only once in browser, when React mounts
return (
<Provider store={store}>
{/* <ThemeProvider theme={theme}> */}
{/* <Layout> */}
{element}
{/* <PersistGate persistor={persistor}>
</PersistGate> */}
{/* </Layout> */}
{/* </ThemeProvider> */}
</Provider>
)
}
export default WrapSite
| 24.62 | 65 | 0.620634 |
181075a346688bd37b20dba61c516a613de021dc | 119 | js | JavaScript | src/programs.js | DennyScott/junk-2 | 05397783ac10bdd3a3c51a6ccdaf549134221914 | [
"MIT"
] | null | null | null | src/programs.js | DennyScott/junk-2 | 05397783ac10bdd3a3c51a6ccdaf549134221914 | [
"MIT"
] | null | null | null | src/programs.js | DennyScott/junk-2 | 05397783ac10bdd3a3c51a6ccdaf549134221914 | [
"MIT"
] | null | null | null | export const NOTEPAD = 'NOTEPAD';
export const EXPLORER = 'EXPLORER';
export const PASSWORD_DIALOG = 'PASSWORD_DIALOG'; | 39.666667 | 49 | 0.781513 |
18109660c3eb685f11e4997fb58496ba6d031d21 | 1,740 | js | JavaScript | pages/user.js | dvlnitins/githubpro | 036f578a087c37db97c42feae9a6c4dec9fab446 | [
"MIT"
] | null | null | null | pages/user.js | dvlnitins/githubpro | 036f578a087c37db97c42feae9a6c4dec9fab446 | [
"MIT"
] | null | null | null | pages/user.js | dvlnitins/githubpro | 036f578a087c37db97c42feae9a6c4dec9fab446 | [
"MIT"
] | null | null | null | import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { Head, Profile, UserRepo, Error } from '../components';
const User = props => {
const username = props.query.id;
const [userData, setUserData] = useState(null);
const [repoData, setRepoData] = useState(null);
const [error, setError] = useState({ active: false, type: 200 });
const getUserData = () => {
fetch(`https://api.github.com/users/${username}`)
.then(response => {
if (response.status === 404) {
return setError({ active: true, type: 404 });
}
return response.json();
})
.then(json => setUserData(json))
.catch(error => {
setError({ active: true, type: 400 });
console.error('Error:', error);
});
};
const getRepoData = () => {
fetch(`https://api.github.com/users/${username}/repos?per_page=100`)
.then(response => {
if (response.status === 404) {
return setError({ active: true, type: 404 });
}
return response.json();
})
.then(json => setRepoData(json))
.catch(error => {
setError({ active: true, type: 200 });
console.error('Error:', error);
});
};
useEffect(() => {
getUserData();
getRepoData();
}, []);
return (
<main>
{error && error.active ? (
<Error error={error} />
) : (
<>
<Head title={`${username ? `ReGitProfile | ${username}` : 'ReGitProfile'}`} />
{userData && <Profile userData={userData} />}
{repoData && <UserRepo repoData={repoData} />}
</>
)}
</main>
);
};
User.propTypes = {
query: PropTypes.object,
};
export default User;
| 25.588235 | 88 | 0.54023 |
1810e3f67031c1761d924989ce58a6bf321245d6 | 3,592 | js | JavaScript | 01 - Expense list by year/src/components/NewExpense/ExpenseForm.js | GuilhermeSenna/React-Maximilian-Course | 12955df6ed979991f80b8fc5b5bb5db37c4fa04c | [
"MIT"
] | null | null | null | 01 - Expense list by year/src/components/NewExpense/ExpenseForm.js | GuilhermeSenna/React-Maximilian-Course | 12955df6ed979991f80b8fc5b5bb5db37c4fa04c | [
"MIT"
] | null | null | null | 01 - Expense list by year/src/components/NewExpense/ExpenseForm.js | GuilhermeSenna/React-Maximilian-Course | 12955df6ed979991f80b8fc5b5bb5db37c4fa04c | [
"MIT"
] | null | null | null | import React, { useState } from 'react';
import './ExpenseForm.css'
const ExpenseForm = (props) => {
const [enteredTitle, setEnteredTitle] = useState('');
const [enteredAmount, setEnteredAmount] = useState('');
const [enteredDate, setEnteredDate] = useState('');
// const [userInput, setUserInput] = useState({
// enteredTitle: '',
// enteredAmount: '',
// enteredDate: ''
// })
const titleChangeHandler = (event) => {
setEnteredTitle(event.target.value)
// Get all previous pair of key-value and overwrite the desired one
// Not the best approach
// setUserInput({
// ...userInput,
// enteredTitle: event.target.value
// })
// That way it guarantees that react will get the previous values immediately, otherwise it schedules to the call stack
// setUserInput((prevState) => {
// return { ...prevState, enteredTitle: event.target.value }
// })
}
const amountChangeHandler = (event) => {
setEnteredAmount(event.target.value)
// setUserInput({
// ...userInput,
// enteredAmount: event.target.value
// })
}
const dateChangeHandler = (event) => {
setEnteredDate(event.target.value)
// setUserInput({
// ...userInput,
// enteredDate: event.target.value
// })
}
const submitHander = (event) => {
// Prevent of page reload after submit
event.preventDefault();
const expenseData = {
title: enteredTitle,
amount: +enteredAmount, // Convert to a number
date: new Date(enteredDate)
}
// Communication children to parent
// ExpenseForm.js to NewExpense.js
props.onSaveExpenseData(expenseData);
// Reset values after submitting them
setEnteredTitle('');
setEnteredAmount('');
setEnteredDate('');
}
return (
<form onSubmit={submitHander}>
<div className="new-expense__controls">
<div className="new-expense__control">
<label>Title</label>
<input
type="text"
// two-way binding
// Listen to changes and passes back to reset/change the values dynamically
value={enteredTitle}
onChange={titleChangeHandler} />
</div>
<div className="new-expense__control">
<label>Amount</label>
<input
type="number"
min="0.01"
step="0.01"
value={enteredAmount}
onChange={amountChangeHandler}
/>
</div>
<div className="new-expense__control">
<label>Date</label>
<input
type="date"
min="2019-01-01"
max="2022-12-31"
value={enteredDate}
onChange={dateChangeHandler}
/>
</div>
</div>
<div className="new-expense__actions">
<button type="button" onClick={() => { props.onToggleExpense() }}>Cancel</button>
<button type="submit">Add Expense</button>
</div>
</form>
)
}
export default ExpenseForm; | 32.071429 | 127 | 0.495546 |
1810e535584c57230fce9a99b6f0afddeb930b3a | 3,319 | js | JavaScript | src/ui/public/agg_types/__tests__/AggParamWriter.js | Memristor-Robotics/mep-dash-kibana | 137981f0aaac977c763433f0aed00e84b4fbfa6e | [
"Apache-2.0"
] | null | null | null | src/ui/public/agg_types/__tests__/AggParamWriter.js | Memristor-Robotics/mep-dash-kibana | 137981f0aaac977c763433f0aed00e84b4fbfa6e | [
"Apache-2.0"
] | null | null | null | src/ui/public/agg_types/__tests__/AggParamWriter.js | Memristor-Robotics/mep-dash-kibana | 137981f0aaac977c763433f0aed00e84b4fbfa6e | [
"Apache-2.0"
] | null | null | null | module.exports = function AggParamWriterHelper(Private) {
let _ = require('lodash');
let Vis = Private(require('ui/Vis'));
let aggTypes = Private(require('ui/agg_types/index'));
let visTypes = Private(require('ui/registry/vis_types'));
let stubbedLogstashIndexPattern = Private(require('fixtures/stubbed_logstash_index_pattern'));
/**
* Helper object for writing aggParams. Specify an aggType and it will find a vis & schema, and
* wire up the supporting objects required to feed in parameters, and get #write() output.
*
* Use cases:
* - Verify that the interval parameter of the histogram visualization casts its input to a number
* ```js
* it('casts to a number', function () {
* let writer = new AggParamWriter({ aggType: 'histogram' });
* let output = writer.write({ interval : '100/10' });
* expect(output.params.interval).to.be.a('number');
* expect(output.params.interval).to.be(100);
* });
* ```
*
* @class AggParamWriter
* @param {object} opts - describe the properties of this paramWriter
* @param {string} opts.aggType - the name of the aggType we want to test. ('histogram', 'filter', etc.)
*/
function AggParamWriter(opts) {
let self = this;
self.aggType = opts.aggType;
if (_.isString(self.aggType)) {
self.aggType = aggTypes.byName[self.aggType];
}
// not configurable right now, but totally required
self.indexPattern = stubbedLogstashIndexPattern;
// the vis type we will use to write the aggParams
self.visType = null;
// the schema that the aggType satisfies
self.visAggSchema = null;
// find a suitable vis type and schema
_.find(visTypes, function (visType) {
let schema = _.find(visType.schemas.all, function (schema) {
// type, type, type, type, type... :(
return schema.group === self.aggType.type;
});
if (schema) {
self.visType = visType;
self.visAggSchema = schema;
return true;
}
});
if (!self.aggType || !self.visType || !self.visAggSchema) {
throw new Error('unable to find a usable visType and schema for the ' + opts.aggType + ' agg type');
}
self.vis = new Vis(self.indexPattern, {
type: self.visType
});
}
AggParamWriter.prototype.write = function (paramValues) {
let self = this;
paramValues = _.clone(paramValues);
if (self.aggType.params.byName.field && !paramValues.field) {
// pick a field rather than force a field to be specified everywhere
if (self.aggType.type === 'metrics') {
paramValues.field = _.sample(self.indexPattern.fields.byType.number);
} else {
paramValues.field = _.sample(self.indexPattern.fields.byType.string);
}
}
self.vis.setState({
type: self.vis.type.name,
aggs: [{
type: self.aggType,
schema: self.visAggSchema,
params: paramValues
}]
});
let aggConfig = _.find(self.vis.aggs, function (aggConfig) {
return aggConfig.type === self.aggType;
});
aggConfig.type.params.forEach(function (param) {
if (param.onRequest) {
param.onRequest(aggConfig);
}
});
return aggConfig.type.params.write(aggConfig);
};
return AggParamWriter;
};
| 31.609524 | 106 | 0.634528 |
1810e9b2ac8fc7675f816007ebaba680da2b314d | 267 | js | JavaScript | src/components/m-parent.vue/index.js | vision-app/proto-ui | 7b9e038bc9b0f954ea29ef41b5b6038f51a3af6f | [
"MIT"
] | 7 | 2017-10-26T13:39:12.000Z | 2018-12-18T15:58:56.000Z | src/components/m-parent.vue/index.js | vision-app/proto-ui | 7b9e038bc9b0f954ea29ef41b5b6038f51a3af6f | [
"MIT"
] | 41 | 2017-04-17T02:31:52.000Z | 2019-12-18T15:09:57.000Z | src/components/m-parent.vue/index.js | vision-app/proto-ui | 7b9e038bc9b0f954ea29ef41b5b6038f51a3af6f | [
"MIT"
] | 6 | 2018-01-29T05:30:22.000Z | 2019-06-14T03:43:42.000Z | export const MParent = {
name: 'm-parent',
groupName: 'm-group',
childName: 'm-child',
data() {
return {
groupVMs: [],
itemVMs: [],
};
},
};
export { MChild } from './m-child.vue';
export default MParent;
| 16.6875 | 39 | 0.483146 |
18113470a556e0956d07214e7ac16db41d33db78 | 341 | js | JavaScript | src/safe/punycode.js | zkat/esm | d8f58678ad511e43d98f659c82ccb789c7f474be | [
"MIT"
] | null | null | null | src/safe/punycode.js | zkat/esm | d8f58678ad511e43d98f659c82ccb789c7f474be | [
"MIT"
] | null | null | null | src/safe/punycode.js | zkat/esm | d8f58678ad511e43d98f659c82ccb789c7f474be | [
"MIT"
] | null | null | null | import realPunycode from "../real/punycode.js"
import safe from "../util/safe.js"
import shared from "../shared.js"
const safePunycode = shared.inited
? shared.module.safePunycode
: shared.module.safePunycode = safe(realPunycode)
export const toUnicode = safePunycode
? safePunycode.toUnicode
: void 0
export default safePunycode
| 24.357143 | 51 | 0.762463 |
181166777ed59c554cd19c922c35a55d6ecdd5e5 | 227 | js | JavaScript | examples/scope-nesting/common.js | losandes/hilaryjs | 29b61b6705e82c4427b762e635adb2e943f4a8ae | [
"MIT"
] | 2 | 2016-04-06T18:20:45.000Z | 2018-06-07T13:37:15.000Z | examples/scope-nesting/common.js | losandes/hilaryjs | 29b61b6705e82c4427b762e635adb2e943f4a8ae | [
"MIT"
] | null | null | null | examples/scope-nesting/common.js | losandes/hilaryjs | 29b61b6705e82c4427b762e635adb2e943f4a8ae | [
"MIT"
] | null | null | null | var hilary = require('../../index.js'), //require('hilary'),
scope = hilary.scope('common');
scope.register({ name: 'module1', factory: 1 });
scope.register({ name: 'module2', factory: 2 });
module.exports.scope = scope;
| 28.375 | 60 | 0.638767 |
1811f906bc9d94d5f8627428976207d2ac6cb08d | 3,250 | js | JavaScript | src/components/modals/styles.js | codacy-acme/spectrum | e8ebdcbba829ce067dd4e4b21c631b093299ef07 | [
"BSD-3-Clause"
] | 31 | 2016-07-05T16:19:41.000Z | 2017-01-25T16:32:17.000Z | src/components/modals/styles.js | codacy-acme/spectrum | e8ebdcbba829ce067dd4e4b21c631b093299ef07 | [
"BSD-3-Clause"
] | 148 | 2020-10-12T03:50:09.000Z | 2022-03-29T18:30:46.000Z | src/components/modals/styles.js | codacy-acme/spectrum | e8ebdcbba829ce067dd4e4b21c631b093299ef07 | [
"BSD-3-Clause"
] | 1 | 2020-12-23T12:23:30.000Z | 2020-12-23T12:23:30.000Z | // @flow
import theme from 'shared/theme';
import styled from 'styled-components';
import { zIndex } from '../globals';
import { isMobile } from 'src/helpers/utils';
import Icon from 'src/components/icon';
/*
This is the global stylesheet for all modal components. Its styles will wrap
all modal content, so we should be selective about what is included here
*/
const mobile = isMobile();
/*
modalStyles are defined as a JS object because it gets passed in as inline
styles to the react-modal component. Takes an optional maxWidth argument for
desktop sizing.
*/
export const modalStyles = (maxWidth: number = 360) => {
return {
// dark background behind all modals
overlay: {
background: 'rgba(0, 0, 0, 0.75)',
display: 'flex',
alignItems: mobile ? 'flex-start' : 'center',
justifyContent: 'center',
position: 'fixed',
top: 0,
left: 0,
right: 0,
bottom: 0,
overflowY: 'visible',
overflowX: 'hidden',
zIndex: 9998,
padding: '1.2rem',
},
// modal root
content: {
position: 'relative',
background: '#ffffff',
backgroundClip: 'padding-box',
borderRadius: '12px',
border: '0',
padding: '0',
zIndex: 9999,
width: '100%',
maxWidth: `${maxWidth}px`,
top: 'auto',
bottom: 'auto',
left: 'auto',
right: 'auto',
backgroundColor: 'rgba(0,0,0,0)',
boxShadow: '0 4px 24px rgba(0,0,0,0.40)',
fontFamily:
'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
},
};
};
export const ModalBody = styled.div`
/* modal content should always flow top-to-bottom. inner components can
have a flex-row property defined */
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
background-color: ${theme.bg.default};
overflow: visible;
`;
export const Title = styled.div`
font-weight: 800;
font-size: 20px;
line-height: 28px;
`;
export const Header = styled.div`
padding: 20px 24px 0;
display: ${props => (props.noHeader ? 'none' : 'flex')};
justify-content: space-between;
`;
export const ModalContent = styled.div``;
export const Footer = styled.div``;
export const CloseButton = styled(Icon)`
position: absolute;
right: 8px;
top: 8px;
z-index: ${zIndex.modal + 1};
color: ${theme.text.placeholder};
&:hover {
color: ${theme.warn.alt};
}
`;
export const Description = styled.p`
font-size: 14px;
color: ${theme.text.default};
padding: 8px 0 16px;
line-height: 1.4;
a {
color: ${theme.brand.default};
}
`;
export const UpsellDescription = styled(Description)`
padding: 8px 12px;
margin: 8px 0;
border-radius: 4px;
border: 1px solid ${theme.success.border};
background: ${theme.success.wash};
color: ${theme.success.dark};
a {
color: ${theme.success.default};
font-weight: 700;
display: block;
margin-top: 4px;
}
`;
export const Notice = styled(Description)`
padding: 8px 16px;
margin: 8px 0;
border-radius: 4px;
background: ${theme.special.wash};
border: 2px solid ${theme.special.border};
color: ${theme.special.dark};
`;
| 24.253731 | 144 | 0.637538 |
1812563d4219604c803a43229a351e0783498bff | 2,607 | js | JavaScript | app/teacher/teacher-routing.module.js | thaddavis/CWILV3Cli | 95a7633b97e22ca639e4e5c9a743a1c952454f2c | [
"MIT"
] | null | null | null | app/teacher/teacher-routing.module.js | thaddavis/CWILV3Cli | 95a7633b97e22ca639e4e5c9a743a1c952454f2c | [
"MIT"
] | null | null | null | app/teacher/teacher-routing.module.js | thaddavis/CWILV3Cli | 95a7633b97e22ca639e4e5c9a743a1c952454f2c | [
"MIT"
] | null | null | null | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var router_1 = require("@angular/router");
var teacher_component_1 = require("./teacher.component");
var browse_questions_component_1 = require("./browse-questions/browse-questions.component");
var overview_component_1 = require("./overview/overview.component");
var reports_component_1 = require("./reports/reports.component");
var tests_component_1 = require("./tests/tests.component");
var question_component_1 = require("./question/question.component");
var student_detail_component_1 = require("./student-detail/student-detail.component");
var teacherRoutes = [
{
path: '',
component: teacher_component_1.TeacherComponent,
children: [
{
path: '',
children: [
{ path: '', redirectTo: 'overview', pathMatch: 'full' },
{ path: 'overview', component: overview_component_1.OverviewComponent },
{ path: 'tests', component: tests_component_1.TestsComponent },
{ path: 'reports', component: reports_component_1.ReportsComponent },
{ path: 'browse-questions', component: browse_questions_component_1.BrowseQuestionsComponent },
{ path: 'student-detail', component: student_detail_component_1.StudentDetailComponent },
{ path: 'question', component: question_component_1.QuestionComponent }
]
}
]
}
];
var TeacherRoutingModule = (function () {
function TeacherRoutingModule() {
}
return TeacherRoutingModule;
}());
TeacherRoutingModule = __decorate([
core_1.NgModule({
imports: [
router_1.RouterModule.forChild(teacherRoutes)
],
exports: [
router_1.RouterModule
]
})
], TeacherRoutingModule);
exports.TeacherRoutingModule = TeacherRoutingModule;
//# sourceMappingURL=teacher-routing.module.js.map | 48.277778 | 150 | 0.639816 |
1812e81184464fcc6fb68f0a805407fbac0790ae | 3,818 | js | JavaScript | src/components/home/Home.js | plot300a/silverbackplot.com | 334a7e314f9e46b336b903129316bdaa8f97f740 | [
"MIT"
] | 88 | 2017-02-28T16:13:53.000Z | 2022-01-15T05:48:35.000Z | src/components/home/Home.js | praveenpi/emiljoseph.github.io | 7d4d46158aa35cc60a84437f3e76fd274b716685 | [
"MIT"
] | 26 | 2017-09-22T06:21:05.000Z | 2022-03-13T01:07:16.000Z | src/components/home/Home.js | plot300a/silverbackplot.com | 334a7e314f9e46b336b903129316bdaa8f97f740 | [
"MIT"
] | 59 | 2018-05-08T17:01:47.000Z | 2021-12-28T16:57:46.000Z | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router'
import scrollToElement from 'scroll-to-element';
import { fetchProjects } from "../../redux/actions/projects";
import Navbar from "./Navbar";
import Header from "./header/Header";
import homeSections from "./homeSections"
import "./home.css"
class Home extends Component {
constructor(props) {
super(props);
this.state = { currentScroll: 0, currentSection: "" };
}
componentWillMount = () => {
this.props.fetchProjects()
}
componentDidMount = () => {
window.addEventListener("scroll", this.handleScroll);
}
componentWillUnmount = () => {
window.removeEventListener('scroll', this.handleScroll);
}
handleScroll = event => {
this._updateCurrentScroll();
this._updateCurrentSection();
}
scrollToSection = sectionName => {
const element = this._getPageElementFromKey(sectionName);
// temporary hack, will implement a section in the page, dont have time to do it right now
if(sectionName === "blog") {
const win = window.open("https://medium.com/@soffritti.pierfrancesco/latest", '_blank');
win.focus();
}
// ----
if(!element) return;
scrollToElement(element, {
offset: (this._getNavBarHeight()-1)*-1,
ease: 'inOutQuad',
duration: 600
});
}
_updateCurrentScroll = () => this.setState( { currentScroll: this._getCurrentScroll() } )
_getCurrentScroll = () => (window.pageYOffset !== undefined) ? window.pageYOffset : (document.documentElement || document.body.parentNode || document.body).scrollTop;
_updateCurrentSection = () => {
const { refs } = this;
let inSection = false;
for(let key in refs) {
const boundingRect = this._getPageElementFromKey(key).getBoundingClientRect();
if( boundingRect.top - this._getNavBarHeight() <= 0 ) {
this._onEnterSection(key);
inSection = true;
}
}
if(this._isScrollBottom()) {
this._onEnterSection("contact");
inSection = true;
}
if(!inSection)
this._onEnterSection("");
}
_isScrollBottom = () => window.innerHeight + window.scrollY >= document.body.offsetHeight;
_onEnterSection = sectionName => this.setState( { currentSection: sectionName } )
_getNavBarHeight = () => this.navbar.getBoundingClientRect().height
_getPageElementFromKey = key => this.refs[key];
render = () => {
const { currentSection, currentScroll } = this.state;
return (
<div className="root-home" >
<div ref={ element => this.navbar = element }>
<Navbar items={homeSections} onItemClick={this.scrollToSection} currentSection={currentSection} currentScroll={currentScroll} />
</div>
<Header />
{ homeSections
.filter( section => section.component )
.map( section =>
<div key={section.name} ref={section.name}>
{ section.name === "work" ? <section.component onShowProjectDetails={() => this.scrollToSection("work")} /> : <section.component /> }
</div>
)
}
</div>
);
}
}
const mapStateToProps = store => ({
projects: store.projects
})
const mapDispatchToProps = dispatch => ({
fetchProjects: (args) => dispatch(fetchProjects(args))
})
export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Home)); | 31.553719 | 170 | 0.577528 |
181373e22825f4d8938c3978c8a8599522b0018b | 1,020 | js | JavaScript | frontend/n2o-framework/src/components/core/templates/SidebarTemplate.test.js | iryabov/n2o-framework | 3282456515df6052dfba617fc381117c7cc3dcb9 | [
"Apache-2.0"
] | null | null | null | frontend/n2o-framework/src/components/core/templates/SidebarTemplate.test.js | iryabov/n2o-framework | 3282456515df6052dfba617fc381117c7cc3dcb9 | [
"Apache-2.0"
] | null | null | null | frontend/n2o-framework/src/components/core/templates/SidebarTemplate.test.js | iryabov/n2o-framework | 3282456515df6052dfba617fc381117c7cc3dcb9 | [
"Apache-2.0"
] | 1 | 2019-01-09T09:32:47.000Z | 2019-01-09T09:32:47.000Z | import React from 'react';
import { Provider } from 'react-redux';
import { BrowserRouter as Router } from 'react-router-dom';
import mockStore from 'redux-mock-store';
import { mount, shallow } from 'enzyme';
import SidebarTemplate from './SidebarTemplate';
const setup = propsOverride => {
const props = {};
return mount(
<Provider store={mockStore()({})}>
<Router>
<SidebarTemplate {...props} {...propsOverride} />
</Router>
</Provider>
);
};
describe('<SidebarTemplate />', () => {
it('компонент должен отрисоваться', () => {
const wrapper = setup();
expect(wrapper.find('.application').exists()).toBeTruthy();
});
it('должны отрисоваться вложенные компоненты', () => {
const wrapper = setup();
expect(wrapper.find('.body-container').exists()).toBeTruthy();
expect(wrapper.find('SideBar').exists()).toBeTruthy();
expect(wrapper.find('.application-body').exists()).toBeTruthy();
expect(wrapper.find('Footer').exists()).toBeTruthy();
});
});
| 28.333333 | 68 | 0.642157 |
181433f9439cbfaf6839dede4790712921dd0011 | 600 | js | JavaScript | vscode-extension/gulpfile.js | terrehbyte/ilspy-vscode | 74daf23e6a9f3cda72cb8c78231ad6c31643f11c | [
"MIT"
] | null | null | null | vscode-extension/gulpfile.js | terrehbyte/ilspy-vscode | 74daf23e6a9f3cda72cb8c78231ad6c31643f11c | [
"MIT"
] | null | null | null | vscode-extension/gulpfile.js | terrehbyte/ilspy-vscode | 74daf23e6a9f3cda72cb8c78231ad6c31643f11c | [
"MIT"
] | null | null | null | 'use strict'
const gulp = require('gulp');
const tslint = require('gulp-tslint');
gulp.task('tslint', () => {
return gulp.src([
'**/*.ts',
'!**/*.d.ts',
'!**/typings**',
'!node_modules/**',
'!vsix/**'
])
.pipe(tslint({
program: require('tslint').Linter.createProgram("./tsconfig.json"),
rulesDirectory: "node_modules/tslint-microsoft-contrib",
configuration: "./tslint.json"
}))
.pipe(tslint.report({
summarizeFailureOutput: false,
emitError: false
}));
});
| 25 | 79 | 0.501667 |
18150837652e459eda1f946f5aa8f9b1101720ea | 906 | js | JavaScript | lib/frameworks/ember/validators/location-type.js | aboveproperty/corber | 6cef1f4427faa9a895bf14c4fae289edd20bef38 | [
"MIT"
] | 164 | 2017-08-24T09:49:41.000Z | 2022-01-07T11:11:03.000Z | lib/frameworks/ember/validators/location-type.js | aboveproperty/corber | 6cef1f4427faa9a895bf14c4fae289edd20bef38 | [
"MIT"
] | 219 | 2017-08-23T21:26:24.000Z | 2022-02-12T06:33:26.000Z | lib/frameworks/ember/validators/location-type.js | aboveproperty/corber | 6cef1f4427faa9a895bf14c4fae289edd20bef38 | [
"MIT"
] | 64 | 2017-09-10T05:05:57.000Z | 2022-03-22T09:25:21.000Z | const Task = require('../../../tasks/-task');
const Promise = require('rsvp').Promise;
const chalk = require('chalk');
const logger = require('../../../utils/logger');
const MUST_SPECIFY_HASH =
chalk.red('* config/environment.js: Cordova applications require:') +
chalk.grey('\n`ENV.locationType = \'hash\'; \n');
module.exports = Task.extend({
config: undefined,
force: false,
run() {
let config = this.config;
let locationType = config.locationType;
let isValidLocation = locationType === 'hash' || locationType === 'none';
if (!isValidLocation) {
if (this.force === true) {
var msg = MUST_SPECIFY_HASH;
msg += 'You have passed the --force flag, so continuing';
logger.warn(msg);
} else {
return Promise.reject(MUST_SPECIFY_HASH);
}
}
return Promise.resolve();
}
});
| 28.3125 | 78 | 0.587196 |
1815e763f9e2347551178a28d00c6b8b1bddf1da | 4,237 | js | JavaScript | js/Config.js | asimmons1107/Austin_IS_Custom | 4598ea0eefb85de82803bcb9fff0052b67c1e5e0 | [
"MIT"
] | null | null | null | js/Config.js | asimmons1107/Austin_IS_Custom | 4598ea0eefb85de82803bcb9fff0052b67c1e5e0 | [
"MIT"
] | null | null | null | js/Config.js | asimmons1107/Austin_IS_Custom | 4598ea0eefb85de82803bcb9fff0052b67c1e5e0 | [
"MIT"
] | 2 | 2020-08-04T04:40:51.000Z | 2021-04-27T17:28:50.000Z | window.CONFIG = {
crawl: `Due to the discontinuation of Weather Underground's API, severe weather alerts, automatic geolookup, and doppler radar imagery are broken for now.`,
greeting: 'This is your weather',
language: 'en-US', // Supported in TWC API
countryCode: 'US', // Supported in TWC API (for postal key)
units: 'e', // Supported in TWC API (e = English (imperial), m = Metric, h = Hybrid (UK)),
unitField: 'imperial', // Supported in TWC API. This field will be filled in automatically. (imperial = e, metric = m, uk_hybrid = h)
loop: false,
secrets: {
twcAPIKey: 'd522aa97197fd864d36b418f39ebb323'
},
// Config Functions (index.html settings manager)
options: [],
addOption: (id, name, desc) => {
CONFIG.options.push({
id,
name,
desc,
})
},
submit: (btn, e) => {
let args = {}
CONFIG.options.forEach((opt) => {
args[opt.id] = getElement(`${opt.id}-text`).value
localStorage.setItem(opt.id, args[opt.id])
})
if (args.crawlText !== '') CONFIG.crawl = args.crawlText
if (args.greetingText !== '') CONFIG.greeting = args.greetingText
if (args.loop === 'y') CONFIG.loop = true
if(/(^\d{5}$)|(^\d{5}-\d{4}$)/.test(args['zip-code'])){
zipCode = args['zip-code'];
} else {
alert("Enter valid ZIP code");
return;
}
CONFIG.unitField = CONFIG.units === 'm' ? 'metric' : (CONFIG.units === 'h' ? 'uk_hybrid' : 'imperial')
fetchCurrentWeather();
},
load: () => {
let settingsPrompt = getElement('settings-prompt')
let zipContainer = getElement('zip-container')
let advancedSettingsOptions = getElement('advanced-settings-options')
CONFIG.options.forEach((option) => {
//<div class="regular-text settings-item settings-text">Zip Code</div>
let label = document.createElement('div')
label.classList.add('strong-text', 'settings-item', 'settings-text')
label.appendChild(document.createTextNode(option.name))
label.id = `${option.id}-label`
//<input class="settings-item settings-text" type="text" id="zip-code-text">
let textbox = document.createElement('input')
textbox.classList.add('settings-item', 'settings-text', 'settings-input')
textbox.type = 'text'
textbox.style.fontSize = '20px'
textbox.placeholder = option.desc
textbox.id = `${option.id}-text`
if (localStorage.getItem(option.id)) textbox.value = localStorage.getItem(option.id)
let br = document.createElement('br')
if(textbox.id == "zip-code-text"){
textbox.setAttribute('maxlength', '5')
textbox.style.fontSize = '35px'
label.style.width = "auto"
zipContainer.appendChild(label)
zipContainer.appendChild(textbox)
zipContainer.appendChild(br)
}
else{
advancedSettingsOptions.appendChild(label)
advancedSettingsOptions.appendChild(textbox)
advancedSettingsOptions.appendChild(br)
}
//<br>
})
let advancedButtonContainer = document.createElement('div')
advancedButtonContainer.classList.add('settings-container')
settingsPrompt.appendChild(advancedButtonContainer)
let advancedButton = document.createElement('button')
advancedButton.innerHTML = "Show advanced options"
advancedButton.id = "advanced-options-text"
advancedButton.setAttribute('onclick', 'toggleAdvancedSettings()')
advancedButton.classList.add('regular-text', 'settings-input', 'button')
advancedButtonContainer.appendChild(advancedButton)
//<button class="setting-item settings-text" id="submit-button" onclick="checkZipCode();" style="margin-bottom: 10px;">Start</button>-->
let btn = document.createElement('button')
btn.classList.add('setting-item', 'settings-text', 'settings-input', 'button')
btn.id = 'submit-button'
btn.onclick = CONFIG.submit
btn.style = 'margin-bottom: 10px;'
btn.appendChild(document.createTextNode('Start'))
settingsPrompt.appendChild(btn)
if (localStorage.getItem('loop') === 'y') {
CONFIG.loop = true;
hideSettings();
CONFIG.submit()
}
}
}
CONFIG.unitField = CONFIG.units === 'm' ? 'metric' : (CONFIG.units === 'h' ? 'uk_hybrid' : 'imperial')
| 42.37 | 158 | 0.657069 |
18169a0cd7d0462c6d5af222e33fd372decf621b | 271 | js | JavaScript | aula15/vetornatela.js | EduAvelar/curso-de-javascript | a1fadc246f8cd712cfb2cc611cd24a8a8f2da115 | [
"MIT"
] | null | null | null | aula15/vetornatela.js | EduAvelar/curso-de-javascript | a1fadc246f8cd712cfb2cc611cd24a8a8f2da115 | [
"MIT"
] | null | null | null | aula15/vetornatela.js | EduAvelar/curso-de-javascript | a1fadc246f8cd712cfb2cc611cd24a8a8f2da115 | [
"MIT"
] | null | null | null | let valores = [8,1,7,4,2,9]
/*for(let pos = 0; pos<valores.length; pos++){
console.log(` A posição ${pos} tem o valor ${valores[pos]}`)
}*/
for(let pos in valores){
console.log(` A posição ${pos} tem o valor ${valores[pos]} `)
}
console.log(valores.indexOf(7)) | 24.636364 | 65 | 0.619926 |
181775bc255f31664fab11fa56f7ee3e043c28b1 | 7,994 | js | JavaScript | lib/jThree.XFile.js | 59naga/j3 | e19f703b64e1f088aa8be484e75ded9a698489e3 | [
"MIT"
] | null | null | null | lib/jThree.XFile.js | 59naga/j3 | e19f703b64e1f088aa8be484e75ded9a698489e3 | [
"MIT"
] | null | null | null | lib/jThree.XFile.js | 59naga/j3 | e19f703b64e1f088aa8be484e75ded9a698489e3 | [
"MIT"
] | null | null | null | /*!
* jThree.XFile.js JavaScript Library v1.1
* http://www.jthree.com/
*
* Requires jThree v2.0.0
* Includes XLoader.js | Copyright (c) 2014 Matsuda Mitsuhide
*
* The MIT License
*
* Copyright (c) 2014 Matsuda Mitsuhide
*
* 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.
*
* Date: 2014-09-12
*/
THREE.XLoader = function( url, fn, error ) {
this.txrPath = /\//.test( url ) ? url.slice( 0, url.lastIndexOf( "/" ) + 1 ) : "";
this.onload = fn;
this.onerror = error;
this.mode = null;
this.modeArr = [];
this.uvIdx = [];
this.txrs = {};
this.nArr = [];
this.uvArr = [];
this.vColors = [];
this.vId = {};
this.txrLength = 0;
this.meshNormalsVector = [];
this.gmt = new THREE.Geometry;
this.mtrs = new THREE.MeshFaceMaterial;
var xhr = new XMLHttpRequest;
var that = this;
xhr.onload = function() {
if ( xhr.status === 200 ) {
that.parse( xhr.response );
} else {
that.onerror && that.onerror( url, xhr.statusText );
}
that = xhr = null;
};
xhr.onerror = function() {
that.onerror && that.onerror( url, xhr.statusText );
};
xhr.open( 'GET', url, true );
xhr.responseType = 'text';
xhr.send();
};
THREE.XLoader.prototype = {
constructor: THREE.XLoader,
parse: function( text ) {
var that = this;
text.replace( /^xof[\s.]+?\r\n/, "" ).split( "\r\n" ).forEach( function( row ) {
that.decision( row );
} );
if ( this.uvArr.length ) {
this.uvIdx.forEach( function( arr ) {
that.gmt.faceVertexUvs[ 0 ].push( [ that.uvArr[ arr[ 0 ] ], that.uvArr[ arr[ 1 ] ], that.uvArr[ arr[ 2 ] ], that.uvArr[ arr[ 3 ] ] ] );
} );
}
if ( this.vColors.length ) {
this.gmt.faces.forEach( function( face ) {
face.vertexColors = [ that.vColors[ face.a ], that.vColors[ face.b ], that.vColors[ face.c ] ];
isFinite( face.d ) && ( face.vertexColors[ 3 ] = that.vColors[ face.d ] );
} );
}
this.gmt.computeCentroids();
!this.meshNormalsVector.length && this.gmt.computeFaceNormals();
this.gmt.computeVertexNormals();
!this.txrLength && this.onload( new THREE.Mesh( this.gmt, this.mtrs ) );
this.txrPath =
this.mode =
this.modeArr =
this.uvIdx =
this.txrs =
this.nArr =
this.uvArr =
this.vColors =
this.meshNormalsVector =
this.vId = null;
},
decision: function ( row ) {
if ( !row || /^\s+$/.test( row ) ) return;
if ( /{.+?}/.test( row ) ) {
if ( /^\s*TextureFilename/.test( row ) ) {
this.TextureFilename( row.match( /{\s*(.+)?\s*}/ )[ 1 ] );
}
return;
} else if ( /{/.test( row ) ) {
this.modeArr.push( this.mode );
this.mode = row.match( /^\s*([a-zA-Z]+)/ )[ 1 ];
this.nArr.push( this.n );
this.n = 0;
return;
} else if ( /}/.test( row ) ) {
this.mode = this.modeArr.pop();
this.n = this.nArr.pop();
return;
}
if ( this.mode && !/^(Header|template)$/.test( this.mode ) ) {
this.n++;
this[ this.mode ] && this[ this.mode ]( row );
}
},
toRgb: function( r, g, b ) {
return "rgb(" + Math.floor( r * 100 ) + "%," + Math.floor( g * 100 ) + "%," + Math.floor( b * 100 ) + "%)";
},
Mesh: function( row ) {
row = row.split( ";" );
if ( row.length === 2 && row[ 1 ] === "" ) {
return;
} else if ( row.length === 3 || row[ 2 ] === "" || row.length === 2 && /,/.test( row[ 1 ] ) ) {//face
var num = row[ 1 ].split( "," );
if ( /3/.test( row[ 0 ] ) ) {//face3
this.gmt.faces.push( new THREE.Face3( +num[ 2 ], +num[ 1 ], +num[ 0 ] ) );
this.uvIdx.push( [ +num[ 2 ], +num[ 1 ], +num[ 0 ] ] );
} else {//face4
this.gmt.faces.push( new THREE.Face4( +num[ 3 ], +num[ 2 ], +num[ 1 ], +num[ 0 ] ) );
this.uvIdx.push( [ +num[ 3 ], +num[ 2 ], +num[ 1 ], +num[ 0 ] ] );
}
} else {//vector
var id = row.join( ";" ), v = this.vId[ id ] = this.vId[ id ] || new THREE.Vector3( +row[ 0 ], +row[ 1 ], -row[ 2 ] );
this.gmt.vertices.push( v );
}
},
MeshNormals: function( row ) {
row = row.split( ";" );
if ( row.length === 2 ) {
return;
} else if ( row.length === 3 || row[ 2 ] === "" ) {//face
!this.faceN && ( this.faceN = this.n );
var num = row[ 1 ].split( "," );
//Correct probably face.vertexNormals...
if ( /3/.test( row[ 0 ] ) ) {//face3
this.gmt.faces[ this.n - this.faceN ].normal = this.meshNormalsVector[ +num[ 0 ] ];
} else {//face4
this.gmt.faces[ this.n - this.faceN ].normal = this.meshNormalsVector[ +num[ 0 ] ];
}
} else {//vector
this.meshNormalsVector.push( new THREE.Vector3( +row[ 0 ], +row[ 1 ], -row[ 2 ] ) );
}
},
MeshMaterialList: function( row ) {
if ( this.n < 3 ) return;
this.gmt.faces[ this.n - 3 ].materialIndex = +row.match( /[0-9]+/ )[ 0 ];
},
Material: function( row ) {
row = row.split( ";" );
if ( this.n === 1 ) {
this.mtr = new THREE.MeshPhongMaterial( { ambient: "#444", color: this.toRgb( row[ 0 ], row[ 1 ], row[ 2 ] ), opacity: + row[ 3 ] } );
this.mtrs.materials.push( this.mtr );
} else if ( this.n === 2 ) {
this.mtr.shininess = + row[ 0 ];
} else if ( this.n === 3 ) {
this.mtr.specular.setStyle( this.toRgb( row[ 0 ], row[ 1 ], row[ 2 ] ) );
} else if ( this.n === 4 ) {
this.mtr.emissive.setStyle( this.toRgb( row[ 0 ], row[ 1 ], row[ 2 ] ) );
}
},
TextureFilename: function( row ) {
row = row.split( '"' )[ 1 ].split( "\\" ).join( "/" ).split( "*" )[ 0 ];
if ( this.txrs[ row ] ) {
this.mtr.map = this.txrs[ row ];
return;
}
var that = this;
this.txrLength++;
this.mtr.map = this.txrs[ row ] = THREE.ImageUtils.loadTexture( this.txrPath + row, undefined, function() {
if ( --that.txrLength ) return;
that.onload( new THREE.Mesh( that.gmt, that.mtrs ) );
that = null;
}, function() {
if ( --that.txrLength ) return;
that.onerror( new THREE.Mesh( that.gmt, that.mtrs ) );
that = null;
} );
},
MeshTextureCoords: function( row ) {
if ( this.n === 1 ) return;
row = row.split( ";" );
var v;
row[1] = 1 - row[1]; // reverse V
// adjustment
v = +row[0];
v = v % 1.0;
if ( v < 0 ) {
v += 1;
}
row[0] = v;
v = row[1];
v = v % 1.0;
if ( v < 0 ) {
v += 1;
}
row[1] = v;
this.uvArr.push( new THREE.Vector2( row[ 0 ], row[ 1 ] ) );
},
MeshVertexColors: function( row ) {
return;
if ( this.n === 1 ) {
this.mtrs.materials.forEach( function( mtr ) {
this.vertexColors = THREE.VertexColors;
} );
return;
}
row = row.split( ";" );
this.vColors[ +row[ 0 ] ] = new THREE.Color( this.toRgb( row[ 1 ], row[ 2 ], row[ 3 ] ) );
}
};
jThree.modelHooks.x = function( url, loaded, errored ) {
new THREE.XLoader( url, function( mesh ) {
loaded( mesh );
loaded = errored = null;
}, function() {
errored();
loaded = errored = null;
} );
}; | 28.049123 | 140 | 0.55379 |
1817b23d34f423f32db4dd049ed5530d22332d47 | 39,599 | js | JavaScript | build/index.js | ganesh-91/react-data-grid | ed1fc46053a54e985d3d954883b497292da517f0 | [
"MIT"
] | null | null | null | build/index.js | ganesh-91/react-data-grid | ed1fc46053a54e985d3d954883b497292da517f0 | [
"MIT"
] | null | null | null | build/index.js | ganesh-91/react-data-grid | ed1fc46053a54e985d3d954883b497292da517f0 | [
"MIT"
] | null | null | null | module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 9);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {
module.exports = require("react");
/***/ }),
/* 1 */
/***/ (function(module, exports) {
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
module.exports = function() {
var list = [];
// return the list of modules as css string
list.toString = function toString() {
var result = [];
for(var i = 0; i < this.length; i++) {
var item = this[i];
if(item[2]) {
result.push("@media " + item[2] + "{" + item[1] + "}");
} else {
result.push(item[1]);
}
}
return result.join("");
};
// import a list of modules into the list
list.i = function(modules, mediaQuery) {
if(typeof modules === "string")
modules = [[null, modules, ""]];
var alreadyImportedModules = {};
for(var i = 0; i < this.length; i++) {
var id = this[i][0];
if(typeof id === "number")
alreadyImportedModules[id] = true;
}
for(i = 0; i < modules.length; i++) {
var item = modules[i];
// skip already imported module
// this implementation is not 100% perfect for weird media query combinations
// when a module is imported multiple times with different media queries.
// I hope this will never occur (Hey this way we have smaller bundles)
if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
if(mediaQuery && !item[2]) {
item[2] = mediaQuery;
} else if(mediaQuery) {
item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
}
list.push(item);
}
}
};
return list;
};
/***/ }),
/* 2 */
/***/ (function(module, exports) {
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var stylesInDom = {},
memoize = function(fn) {
var memo;
return function () {
if (typeof memo === "undefined") memo = fn.apply(this, arguments);
return memo;
};
},
isOldIE = memoize(function() {
return /msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase());
}),
getHeadElement = memoize(function () {
return document.head || document.getElementsByTagName("head")[0];
}),
singletonElement = null,
singletonCounter = 0,
styleElementsInsertedAtTop = [];
module.exports = function(list, options) {
if(typeof DEBUG !== "undefined" && DEBUG) {
if(typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
}
options = options || {};
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
// tags it will allow on a page
if (typeof options.singleton === "undefined") options.singleton = isOldIE();
// By default, add <style> tags to the bottom of <head>.
if (typeof options.insertAt === "undefined") options.insertAt = "bottom";
var styles = listToStyles(list);
addStylesToDom(styles, options);
return function update(newList) {
var mayRemove = [];
for(var i = 0; i < styles.length; i++) {
var item = styles[i];
var domStyle = stylesInDom[item.id];
domStyle.refs--;
mayRemove.push(domStyle);
}
if(newList) {
var newStyles = listToStyles(newList);
addStylesToDom(newStyles, options);
}
for(var i = 0; i < mayRemove.length; i++) {
var domStyle = mayRemove[i];
if(domStyle.refs === 0) {
for(var j = 0; j < domStyle.parts.length; j++)
domStyle.parts[j]();
delete stylesInDom[domStyle.id];
}
}
};
}
function addStylesToDom(styles, options) {
for(var i = 0; i < styles.length; i++) {
var item = styles[i];
var domStyle = stylesInDom[item.id];
if(domStyle) {
domStyle.refs++;
for(var j = 0; j < domStyle.parts.length; j++) {
domStyle.parts[j](item.parts[j]);
}
for(; j < item.parts.length; j++) {
domStyle.parts.push(addStyle(item.parts[j], options));
}
} else {
var parts = [];
for(var j = 0; j < item.parts.length; j++) {
parts.push(addStyle(item.parts[j], options));
}
stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
}
}
}
function listToStyles(list) {
var styles = [];
var newStyles = {};
for(var i = 0; i < list.length; i++) {
var item = list[i];
var id = item[0];
var css = item[1];
var media = item[2];
var sourceMap = item[3];
var part = {css: css, media: media, sourceMap: sourceMap};
if(!newStyles[id])
styles.push(newStyles[id] = {id: id, parts: [part]});
else
newStyles[id].parts.push(part);
}
return styles;
}
function insertStyleElement(options, styleElement) {
var head = getHeadElement();
var lastStyleElementInsertedAtTop = styleElementsInsertedAtTop[styleElementsInsertedAtTop.length - 1];
if (options.insertAt === "top") {
if(!lastStyleElementInsertedAtTop) {
head.insertBefore(styleElement, head.firstChild);
} else if(lastStyleElementInsertedAtTop.nextSibling) {
head.insertBefore(styleElement, lastStyleElementInsertedAtTop.nextSibling);
} else {
head.appendChild(styleElement);
}
styleElementsInsertedAtTop.push(styleElement);
} else if (options.insertAt === "bottom") {
head.appendChild(styleElement);
} else {
throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");
}
}
function removeStyleElement(styleElement) {
styleElement.parentNode.removeChild(styleElement);
var idx = styleElementsInsertedAtTop.indexOf(styleElement);
if(idx >= 0) {
styleElementsInsertedAtTop.splice(idx, 1);
}
}
function createStyleElement(options) {
var styleElement = document.createElement("style");
styleElement.type = "text/css";
insertStyleElement(options, styleElement);
return styleElement;
}
function createLinkElement(options) {
var linkElement = document.createElement("link");
linkElement.rel = "stylesheet";
insertStyleElement(options, linkElement);
return linkElement;
}
function addStyle(obj, options) {
var styleElement, update, remove;
if (options.singleton) {
var styleIndex = singletonCounter++;
styleElement = singletonElement || (singletonElement = createStyleElement(options));
update = applyToSingletonTag.bind(null, styleElement, styleIndex, false);
remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true);
} else if(obj.sourceMap &&
typeof URL === "function" &&
typeof URL.createObjectURL === "function" &&
typeof URL.revokeObjectURL === "function" &&
typeof Blob === "function" &&
typeof btoa === "function") {
styleElement = createLinkElement(options);
update = updateLink.bind(null, styleElement);
remove = function() {
removeStyleElement(styleElement);
if(styleElement.href)
URL.revokeObjectURL(styleElement.href);
};
} else {
styleElement = createStyleElement(options);
update = applyToTag.bind(null, styleElement);
remove = function() {
removeStyleElement(styleElement);
};
}
update(obj);
return function updateStyle(newObj) {
if(newObj) {
if(newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap)
return;
update(obj = newObj);
} else {
remove();
}
};
}
var replaceText = (function () {
var textStore = [];
return function (index, replacement) {
textStore[index] = replacement;
return textStore.filter(Boolean).join('\n');
};
})();
function applyToSingletonTag(styleElement, index, remove, obj) {
var css = remove ? "" : obj.css;
if (styleElement.styleSheet) {
styleElement.styleSheet.cssText = replaceText(index, css);
} else {
var cssNode = document.createTextNode(css);
var childNodes = styleElement.childNodes;
if (childNodes[index]) styleElement.removeChild(childNodes[index]);
if (childNodes.length) {
styleElement.insertBefore(cssNode, childNodes[index]);
} else {
styleElement.appendChild(cssNode);
}
}
}
function applyToTag(styleElement, obj) {
var css = obj.css;
var media = obj.media;
if(media) {
styleElement.setAttribute("media", media)
}
if(styleElement.styleSheet) {
styleElement.styleSheet.cssText = css;
} else {
while(styleElement.firstChild) {
styleElement.removeChild(styleElement.firstChild);
}
styleElement.appendChild(document.createTextNode(css));
}
}
function updateLink(linkElement, obj) {
var css = obj.css;
var sourceMap = obj.sourceMap;
if(sourceMap) {
// http://stackoverflow.com/a/26603875
css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
}
var blob = new Blob([css], { type: "text/css" });
var oldSrc = linkElement.href;
linkElement.href = URL.createObjectURL(blob);
if(oldSrc)
URL.revokeObjectURL(oldSrc);
}
/***/ }),
/* 3 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
var _radioControl = __webpack_require__(7);
var _radioControl2 = _interopRequireDefault(_radioControl);
var _selectControl = __webpack_require__(8);
var _selectControl2 = _interopRequireDefault(_selectControl);
var _checkControl = __webpack_require__(6);
var _checkControl2 = _interopRequireDefault(_checkControl);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var ElementsManager = function (_Component) {
_inherits(ElementsManager, _Component);
function ElementsManager() {
_classCallCheck(this, ElementsManager);
return _possibleConstructorReturn(this, (ElementsManager.__proto__ || Object.getPrototypeOf(ElementsManager)).apply(this, arguments));
}
_createClass(ElementsManager, [{
key: 'render',
value: function render() {
if (this.props.data.cntrlType === 'input') {
return _react2.default.createElement('input', { type: 'text', value: this.props.data.value, readOnly: true });
}
if (this.props.data.cntrlType === 'select') {
return _react2.default.createElement(_selectControl2.default, { data: this.props.data });
}
if (this.props.data.cntrlType === 'data') {
return _react2.default.createElement(
'span',
null,
this.props.data.value
);
}
if (this.props.data.cntrlType === 'check') {
return _react2.default.createElement(_checkControl2.default, { data: this.props.data });
}
if (this.props.data.cntrlType === 'radio') {
return _react2.default.createElement(_radioControl2.default, { data: this.props.data });
}
}
}]);
return ElementsManager;
}(_react.Component);
exports.default = ElementsManager;
/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__(0);
var React = _interopRequireWildcard(_react);
__webpack_require__(13);
var _pageLink = __webpack_require__(10);
var _pageLink2 = _interopRequireDefault(_pageLink);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var PaginationComponent = function (_React$Component) {
_inherits(PaginationComponent, _React$Component);
function PaginationComponent() {
_classCallCheck(this, PaginationComponent);
var _this = _possibleConstructorReturn(this, (PaginationComponent.__proto__ || Object.getPrototypeOf(PaginationComponent)).call(this));
_this.handlePaginationChange = _this.handlePaginationChange.bind(_this);
return _this;
}
_createClass(PaginationComponent, [{
key: 'render',
value: function render() {
var rows = [];
var pgNum = [];
var showPagination = true;
for (var i = 1; i <= Math.ceil(this.props.itemCount / this.props.itemPerPage); i++) {
if (i >= this.props.activePage - 4 && i <= this.props.activePage + 4) {
pgNum.push(React.createElement(_pageLink2.default, {
activePage: this.props.activePage,
handlePaginationChange: this.handlePaginationChange,
index: i,
key: i }));
}
rows.push(React.createElement(_pageLink2.default, {
activePage: this.props.activePage,
handlePaginationChange: this.handlePaginationChange,
index: i,
key: i }));
}
if (this.props.itemCount < this.props.itemPerPage) {
showPagination = false;
}
// const pgNum = rows.slice(this.props.activePage,9);
return React.createElement(
'nav',
{ 'aria-label': 'Page navigation' },
React.createElement(
'ul',
{ hidden: !showPagination, className: 'pagination pagination-sm' },
pgNum
)
);
}
}, {
key: 'handlePaginationChange',
value: function handlePaginationChange(action, event) {
if (action === 'TO_PAGE_NUMBER') {
this.props.pageChange(parseInt(event.target.value, 10));
}
}
}]);
return PaginationComponent;
}(React.Component);
exports.default = PaginationComponent;
/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(11);
if(typeof content === 'string') content = [[module.i, content, '']];
// add the styles to the DOM
var update = __webpack_require__(2)(content, {});
if(content.locals) module.exports = content.locals;
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../node_modules/css-loader/index.js!./index.css", function() {
var newContent = require("!!../node_modules/css-loader/index.js!./index.css");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var CheckControl = function CheckControl(props) {
return props.data.options.map(function (el, i) {
return _react2.default.createElement(
"span",
{ key: i },
_react2.default.createElement("input", { type: "checkbox", name: props.data.key, value: el, checked: props.data.value.includes(el), readOnly: true }),
" ",
el
);
});
};
exports.default = CheckControl;
/***/ }),
/* 7 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var RadioControl = function RadioControl(props) {
return props.data.options.map(function (el, i) {
return _react2.default.createElement(
"span",
{ key: i },
_react2.default.createElement("input", { type: "radio", value: el, checked: props.data.value === el, readOnly: true }),
" ",
el
);
});
};
exports.default = RadioControl;
/***/ }),
/* 8 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var SelectControl = function SelectControl(props) {
return _react2.default.createElement(
'select',
{ value: props.data.value, readOnly: true },
props.data.options.map(function (el, i) {
return _react2.default.createElement(
'option',
{ value: el, key: i },
el
);
})
);
};
exports.default = SelectControl;
/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
__webpack_require__(5);
var _pagination = __webpack_require__(4);
var _pagination2 = _interopRequireDefault(_pagination);
var _elementsManager = __webpack_require__(3);
var _elementsManager2 = _interopRequireDefault(_elementsManager);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var ReactDataTable = function (_React$Component) {
_inherits(ReactDataTable, _React$Component);
function ReactDataTable() {
_classCallCheck(this, ReactDataTable);
var _this = _possibleConstructorReturn(this, (ReactDataTable.__proto__ || Object.getPrototypeOf(ReactDataTable)).call(this));
_this.state = {
list: [],
filter: {},
sortOrder: {},
header: [],
activePage: 1,
itemPerPage: ""
};
_this.getSortIcon = _this.getSortIcon.bind(_this);
_this.filterList = _this.filterList.bind(_this);
_this.sortIcon = _this.sortIcon.bind(_this);
_this.handlePaginationChange = _this.handlePaginationChange.bind(_this);
return _this;
}
_createClass(ReactDataTable, [{
key: 'componentWillMount',
value: function componentWillMount() {
this.setState({
itemPerPage: this.props.itemPerPage,
list: this.props.list
});
this.getHeaderFromList(this.props.header);
}
}, {
key: 'getSortIcon',
value: function getSortIcon(name) {
if (name === "asc") {
return _react2.default.createElement('i', { className: 'fa fa-caret-up', 'aria-hidden': 'true' });
}
if (name === "desc") {
return _react2.default.createElement('i', { className: 'fa fa-caret-down', 'aria-hidden': 'true' });
}
if (name === "default") {
return _react2.default.createElement('i', { className: 'fa fa-sort', 'aria-hidden': 'true' });
}
}
}, {
key: 'filterList',
value: function filterList(key, arr) {
var _this2 = this;
return _react2.default.createElement(
'select',
{ value: this.state.filter[key], onChange: function onChange(e) {
_this2.filterChanged(key, e);
} },
_react2.default.createElement(
'option',
{ value: '' },
'All'
),
arr.map(function (el, i) {
return _react2.default.createElement(
'option',
{ key: i, value: el },
el
);
})
);
}
}, {
key: 'sortIcon',
value: function sortIcon(num) {
var _this3 = this;
return _react2.default.createElement(
'span',
{ className: 'table__thead--sort-icon',
onClick: function onClick() {
_this3.sortChanged(num);
} },
this.getSortIcon(this.state.sortOrder[num])
);
}
}, {
key: 'render',
value: function render() {
var _this4 = this;
var noData = _react2.default.createElement(
'tr',
null,
_react2.default.createElement(
'td',
{ className: 'table__tbody--tr-td no-data', colSpan: '100%' },
'No Data !!'
)
);
var listEl = this.state.list.map(function (el, i) {
if (i <= _this4.state.activePage * _this4.state.itemPerPage - 1 && i >= (_this4.state.activePage - 1) * _this4.state.itemPerPage) {
return _react2.default.createElement(
'tr',
{ className: 'table__tbody--tr', key: i },
el.map(function (elm, ind) {
return _react2.default.createElement(
'td',
{ key: i + ind, className: 'table__tbody--tr-td' },
_react2.default.createElement(_elementsManager2.default, { data: elm })
);
})
);
}
});
return _react2.default.createElement(
'div',
{ className: 'custom-classes' },
_react2.default.createElement(
'table',
{ className: 'table' },
_react2.default.createElement(
'thead',
{ className: 'table__thead' },
_react2.default.createElement(
'tr',
{ className: 'table__thead--tr' },
this.props.header.map(function (el, i) {
return _react2.default.createElement(
'th',
{ key: i, className: 'table__thead--th' },
_react2.default.createElement(
'div',
{ className: 'table__thead--name' },
_react2.default.createElement(
'span',
null,
el.name
),
el.sort && _this4.sortIcon(el.colNum)
)
);
})
),
_react2.default.createElement(
'tr',
{ className: 'table__thead--tr' },
this.props.header.map(function (el, i) {
return _react2.default.createElement(
'th',
{ key: i, className: 'table__thead--th' },
_react2.default.createElement(
'div',
null,
el.filter && _this4.filterList(el.colNum, el.filterArr)
)
);
})
)
),
_react2.default.createElement(
'tbody',
{ className: 'table__tbody' },
this.state.list.length > 0 ? listEl : noData
)
),
_react2.default.createElement(_pagination2.default, {
itemCount: this.state.list.length,
maxButtons: 5,
itemPerPage: this.state.itemPerPage,
activePage: this.state.activePage,
pageChange: this.handlePaginationChange })
);
}
}, {
key: 'sortChanged',
value: function sortChanged(colNum) {
var sortOrder = JSON.parse(JSON.stringify(this.state.sortOrder));
var dataList = JSON.parse(JSON.stringify(this.state.list));
Object.keys(sortOrder).forEach(function (key) {
if (parseInt(key) !== parseInt(colNum)) {
sortOrder[key] = "default";
}
});
if (sortOrder[colNum] === 'asc') {
sortOrder[colNum] = "desc";
} else if (sortOrder[colNum] === 'desc') {
sortOrder[colNum] = "default";
} else if (sortOrder[colNum] === 'default') {
sortOrder[colNum] = "asc";
}
if (sortOrder[colNum] !== '') {
if (sortOrder[colNum] === 'default') {
dataList = this.props.list;
} else {
var sort = sortOrder[colNum] === 'asc' ? true : false;
dataList.sort(function (a, b) {
var nameA = a[colNum].value.toLowerCase(),
nameB = b[colNum].value.toLowerCase();
if (nameA < nameB) return sort ? -1 : 1;
if (nameA > nameB) return sort ? 1 : -1;
return 0;
});
}
}
this.setState({ activePage: 1, sortOrder: sortOrder, list: dataList });
}
}, {
key: '_checkFilterHelper',
value: function _checkFilterHelper(dataArr, filterList) {
var count = 0;
Object.keys(filterList).map(function (el) {
if (filterList[el] === '' || (Array.isArray(dataArr[el].value) ? dataArr[el].value.includes(filterList[el]) : filterList[el] === dataArr[el].value)) {
count++;
}
});
return Object.keys(filterList).length === count ? true : false;
}
}, {
key: 'filterChanged',
value: function filterChanged(prop, e) {
var _this5 = this;
var filter = JSON.parse(JSON.stringify(this.state.filter));
filter[prop] = e.target.value;
var newList = [];
this.props.list.map(function (el) {
if (_this5._checkFilterHelper(el, filter)) {
newList.push(el);
}
});
this.setState({ filter: filter, list: newList });
}
}, {
key: 'getHeaderFromList',
value: function getHeaderFromList(list) {
var filterObj = {};
var sortObj = {};
list.map(function (el) {
if (el.filter) {
filterObj[el.colNum] = "";
}
if (el.sort) {
sortObj[el.colNum] = "default";
}
});
this.setState({
filter: filterObj,
sortOrder: sortObj
});
}
}, {
key: 'handlePaginationChange',
value: function handlePaginationChange(value) {
this.setState({ activePage: value });
}
}]);
return ReactDataTable;
}(_react2.default.Component);
exports.default = ReactDataTable;
/***/ }),
/* 10 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = __webpack_require__(0);
var React = _interopRequireWildcard(_react);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
var PageLink = function PageLink(props) {
var handlePaginationChange = function handlePaginationChange(event) {
props.handlePaginationChange('TO_PAGE_NUMBER', event);
};
return React.createElement(
'li',
{ className: 'page-item',
onClick: handlePaginationChange },
React.createElement(
'button',
{ type: 'button', value: props.index,
className: "page-link " + (props.activePage === props.index ? "active" : "") },
props.index
)
);
};
exports.default = PageLink;
/***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(1)();
// imports
// module
exports.push([module.i, ".pagination {\n display: flex;\n flex-direction: row;\n list-style: none;\n padding: 0px;\n justify-content: flex-end;\n margin-right: 20px;\n}\n\n.pagination .page-link {\n /* margin: 0px 5px; */\n /* height: 25px; */\n background-color: transparent;\n border: none;\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n /* width: 25px; */\n font-size: 13px;\n padding: 0px 5px;\n}\n\n.pagination .page-link.active {\n /* padding: 0px 5px; */\n text-decoration: none;\n background-color: cornflowerblue;\n color: white;\n border-radius: 3px;\n}\n\n.table {\n width: 100%;\n border-top: 1px solid gray;\n border-left: 1px solid gray;\n border-right: 1px solid gray;\n border-spacing: 0px;\n}\n\n.table__thead--tr:last-child .table__thead--th {\n border-bottom: 1px solid gray;\n padding: 0px 8px 8px 8px;\n}\n\n.table__thead--tr:last-child .table__thead--th:not(:last-child) {\n border-right: 1px solid gray;\n}\n\n.table__thead--tr:first-child .table__thead--th {\n padding: 8px 8px 0px 8px;\n}\n\n.table__thead--tr:first-child .table__thead--th:not(:last-child) {\n border-right: 1px solid gray;\n}\n\n.table__thead--tr .table__thead--th {\n min-width: 200px;\n text-align: left;\n}\n\n.table__thead--th .table__thead--name {}\n\n.table__thead--th .table__thead--name .table__thead--sort-icon {\n margin-left: 5px;\n}\n\n.table__tbody--tr {}\n\n.table__tbody--tr-td {\n padding: 4px 8px;\n border-bottom: 1px solid gray;\n}\n\n.table__tbody--tr-td:not(:last-child) {\n border-right: 1px solid gray;\n}\n\n.table__tbody--tr-td.no-data {\n text-align: center;\n}", ""]);
// exports
/***/ }),
/* 12 */
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(1)();
// imports
// module
exports.push([module.i, ".pagination {\n display: flex;\n flex-direction: row;\n list-style: none;\n padding: 0px;\n justify-content: flex-end;\n margin-right: 20px;\n}\n\n.pagination .page-link {\n /* margin: 0px 5px; */\n /* height: 25px; */\n background-color: transparent;\n border: none;\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n /* width: 25px; */\n font-size: 13px;\n padding: 0px 5px;\n}\n\n.pagination .page-link.active {\n /* padding: 0px 5px; */\n text-decoration: none;\n background-color: cornflowerblue;\n color: white;\n border-radius: 3px;\n}\n", ""]);
// exports
/***/ }),
/* 13 */
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(12);
if(typeof content === 'string') content = [[module.i, content, '']];
// add the styles to the DOM
var update = __webpack_require__(2)(content, {});
if(content.locals) module.exports = content.locals;
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../node_modules/css-loader/index.js!./pagination.css", function() {
var newContent = require("!!../../node_modules/css-loader/index.js!./pagination.css");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ })
/******/ ]); | 36.802045 | 1,721 | 0.587591 |
1817d695c88f38bf0c4e386ec25e1019732c245b | 1,803 | js | JavaScript | packages/mars-theme/src/old/assets/jss/nextjs-material-kit/pages/components.js | talehm/frontity | 69235aa25b3c26620cc977ec752abbb7fbd07463 | [
"MIT"
] | null | null | null | packages/mars-theme/src/old/assets/jss/nextjs-material-kit/pages/components.js | talehm/frontity | 69235aa25b3c26620cc977ec752abbb7fbd07463 | [
"MIT"
] | null | null | null | packages/mars-theme/src/old/assets/jss/nextjs-material-kit/pages/components.js | talehm/frontity | 69235aa25b3c26620cc977ec752abbb7fbd07463 | [
"MIT"
] | null | null | null | import { container, grayColor, searchForm } from "../../nextjs-material-kit.js";
const componentsStyle = theme => ({
container,
brand: {
color: "#FFFFFF",
textAlign: "center"
},
title: {
fontSize: "4.2rem",
fontWeight: "600",
display: "inline-block",
position: "relative",
"@media (max-width: 576px)": {
display: "none",
},
},
selectCategory: {
backgroundColor: "white",
height: "unset",
padding: "8px 24px 2px 10px",
"& .MuiInput-underline::after, .MuiInput-underline::before": {
left: "unset",
right: "unset",
bottom: "unset",
content: "none"
}
},
subtitle: {
fontSize: "1.313rem",
maxWidth: "100%",
margin: "10px 0 0",
"@media (min-width: 360px)": {
fontSize: 16,
},
},
main: {
background: "#FFFFFF",
position: "relative",
zIndex: "3"
},
searchIcon: {
width: "20px !important",
height: "20px !important",
color: "inherit",
},
searchBtn: { marginTop: 10 },
formControl: {
[theme.breakpoints.down("md")]: {
margin: "10px 0 0 0px !important",
color: grayColor
},
margin: "10px 0 0 0 !important",
paddingTop: "0",
},
searchForm,
inputRootCustomClasses: {
margin: "0!important"
},
mainRaised: {
margin: "-60px 30px 0px",
borderRadius: "6px",
boxShadow:
"0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2)",
"@media (max-width: 830px)": {
marginLeft: "10px",
marginRight: "10px"
}
},
mainNotFound: {
height: "50vh",
textAlign: "center",
lineHeight: "50vh",
},
link: {
textDecoration: "none"
},
textCenter: {
textAlign: "center"
}
});
export default componentsStyle;
| 20.258427 | 116 | 0.556295 |
18181d06f7a0b662e9240243b3e97ef7b5ac1793 | 7,838 | js | JavaScript | src_demo/js/site/pages/pages.js | mmilano/SidePanelCollapse | 2c1ac5475bafb43f27a7928e3a5679b215f495ad | [
"MIT"
] | null | null | null | src_demo/js/site/pages/pages.js | mmilano/SidePanelCollapse | 2c1ac5475bafb43f27a7928e3a5679b215f495ad | [
"MIT"
] | null | null | null | src_demo/js/site/pages/pages.js | mmilano/SidePanelCollapse | 2c1ac5475bafb43f27a7928e3a5679b215f495ad | [
"MIT"
] | 1 | 2021-06-28T20:03:17.000Z | 2021-06-28T20:03:17.000Z | // pages.js
// master array object of scripts specific to each individual page.
// one for each page in the site.
// key = pageID
//
/* jshint sub:true */ // suppress warnings about using [] notation when it can be expressed in dot notation
/* globals SidePanelCollapse, site */ // tell jshint about global variables that are not formally defined in the particular file
/* jshint latedef: false */ // prohibits the use of a variable before it was defined
"use strict";
// utility methods
const util = {
// utility method to check if window is larger than breakpoint
checkWidth: function() {
// Bootstrap values are included as css variables in the Bootstrap css.
// get the value
let breakpoint_size = parseInt(getComputedStyle(document.body).getPropertyValue("--breakpoint-lg"));
if (!breakpoint_size) {
// if no value, then the browser doesn't support css variables.
// so use an arbitrary default value
breakpoint_size = 42; // breakpoint size default. arbitrary breakpoint size value in px.
};
// get width of the current window
const pageWidth = window.innerWidth;
return (pageWidth > breakpoint_size ? true : false);
},
scrollSpyCreate: function(target, shouldSpy) {
// if a target value is passed, use that; if not, use a default value for the primary nav
target = target ? target : "#primaryNav";
// check if scrollspy should activate based on the window width - in certain cases, wider window sizes
// default to the computed active flag, whatever that is
shouldSpy = (shouldSpy !== undefined) ? shouldSpy : util.checkWidth();
if (shouldSpy) {
$(document.body).scrollspy({
target: target,
// offset = Pixels to offset from top when calculating position of scroll.
// https://getbootstrap.com/docs/4.6/components/scrollspy/#options
offset: 110,
});
};
},
scrollSpyRefresh: function() {
$(document.body).scrollspy("refresh");
},
scrollSpyDispose: function() {
$(document.body).scrollspy("dispose");
},
scrollSpyToggle: function(target) {
util.scrollSpyDispose();
util.scrollSpyCreate(target);
},
checkIfDisplayed: function getDisplayStyle(el) {
// setup function for the passed in element for ongoing use in page
// return true if the element of interest IS displayed
return function() {
return (getComputedStyle(el).display !== "none" ? true : false );
};
},
};
// define page specific scripts, if any are needed.
// if there is no specific, default will be used
const pages = {
// pages script for homepage ()= index.html)
"index": function indexPage(pageID) {
// handle toggling the nav & scrollspy
function navSpy(flag) {
if (flag) {
// TRUE = now the horiz nav IS displayed
// so dispose of the existing scrollspy, and create a new one for the primarynav
util.scrollSpyToggle(navHorizontal);
// console.log ("toggle: now display " + navHorizontal);
} else {
// FALSE = now the horiz nav IS NOT displayed
// so dispose of the existing scrollspy, and create a new one for sidenav
util.scrollSpyToggle(navVertical);
// console.log ("toggle: now display " + navVertical);
}
}
// instantiate a new side panel for the page for when/if the sidenav will display
// options for this page
const sidepanelOptions = {
durationShow: "1.25s",
durationHide: "1s",
durationHideFast: "0.5s",
backdropStyleClass: "dark",
};
// expose sidepanel as global for demo purposes
window.sidepanel = new SidePanelCollapse(sidepanelOptions);
// define the 2 different nav's for the page
// the horizontal - primaryNav - displayed at very large window sizes (Bootstrap definition of large)
// the vertical - sidePanelNav - displayed when the primary nav is collapsed at smaller window sizes
//
// for scrollspy, these need to be css selectors for the <nav> element on this page
const navHorizontal = "#primaryNav";
const navVertical = "#sidePanelNav";
// deal with the 2 possible primary navs on the page:
// start by checking
// the primarynav horizontal nav that will collapse depending to screen size (= navbar-expand-*)
const horizontalNav = document.getElementById("primaryNav-horiz");
// is the horizontal nav being displayed (i.e. have a display value other than 'none'?)
// debugger;
const horizontalNavDisplayed = util.checkIfDisplayed(horizontalNav);
let horizontalNavIsDisplayed = util.checkIfDisplayed(horizontalNav)();
// create the scrollspy on the nav for the current state of the index page
// pages needs to have the scrollspy work on both horizontal and vertical navs
let targetNav = horizontalNavIsDisplayed ? navHorizontal : navVertical;
// initialize boolean value for determining if the nav display toggled between display states,
// meaning the the nav changed from horiz to vertical
let previousNavWasHoriz = horizontalNavIsDisplayed;
// create the first scrollSpy on the currently displayed nav, and it "should spy" now.
util.scrollSpyCreate(targetNav, true);
// resize events: update the primaryNav behavior
window.addEventListener("resize", (e) => {
// check the current style.display value
let horizontalNavIsDisplayed = horizontalNavDisplayed();
if (horizontalNavIsDisplayed && !previousNavWasHoriz) {
// if: horiz nav IS true (=displayed) && previous-nav is false, then
navSpy(true);
previousNavWasHoriz = true;
} else if (!horizontalNavIsDisplayed && previousNavWasHoriz) {
// else if: horiz nav is NOT displayed and previous-nav is true, then
navSpy(false);
previousNavWasHoriz = false;
}
}, false);
},
// default page handler
"default": function(pageID) {
// can do something with pageID if necessary
// instantiate a new sidepanel for the page
// with options (different from index)
const sidepanelOptions = {
durationShow: "1.25s",
durationHide: ".7s",
durationHideFast: "0.2s",
backdropStyle: "dark",
};
// expose sidepanel as global for demo purposes
window.sidepanel = new SidePanelCollapse(sidepanelOptions);
// only activate scrollspy on TOC if window is above certain size
// this is dependent on the layout being in columns >= checked size, so that TOC will be displayed
util.scrollSpyCreate("#tableOfContents", util.checkWidth());
},
};
// *****
// page function
// general opening script for each page
//
// establish some of the global values for the page, and call page specific function(s)
const pageRouter = function(pageID) {
// page name/info for debugging
console.log ("page: ", pageID);
// if there is page=specific function defined, invoke that
// if no page function defined, invoke the default
if (typeof site.pageMethods[pageID] !== "undefined") {
site.pageMethods[pageID](pageID);
} else {
site.pageMethods.default(pageID);
};
};
// expose specific methods
pages.pageRouter = pageRouter;
module.exports = pages; | 39.786802 | 131 | 0.630135 |
1818470907e3e124533387f9b1c7cbf5a1d75c21 | 19,107 | js | JavaScript | node_modules/@aws-cdk/aws-elasticloadbalancing/test/test.loadbalancer.js | messagepluscoza/action-deploy-aws-static-site | 655a2de1d80273c754388874086f3b212cb7483d | [
"MIT"
] | null | null | null | node_modules/@aws-cdk/aws-elasticloadbalancing/test/test.loadbalancer.js | messagepluscoza/action-deploy-aws-static-site | 655a2de1d80273c754388874086f3b212cb7483d | [
"MIT"
] | 19 | 2021-06-01T05:56:31.000Z | 2022-03-01T04:13:17.000Z | node_modules/@aws-cdk/aws-elasticloadbalancing/test/test.loadbalancer.js | abaldawa/action-deploy-aws-static-site | eba96876ccf2d513b74d7d641ebec1927f29caa3 | [
"MIT"
] | null | null | null | "use strict";
const assert_1 = require("@aws-cdk/assert");
const aws_ec2_1 = require("@aws-cdk/aws-ec2");
const core_1 = require("@aws-cdk/core");
const lib_1 = require("../lib");
class FakeTarget {
constructor() {
this.connections = new aws_ec2_1.Connections({
peer: aws_ec2_1.Peer.ipv4('666.666.666.666/666'),
});
}
attachToClassicLB(_loadBalancer) {
// Nothing to do. Normally we set a property on ourselves so
// our instances know to bind to the LB on startup.
}
}
module.exports = {
'test specifying nonstandard port works'(test) {
const stack = new core_1.Stack(undefined, undefined, { env: { account: '1234', region: 'test' } });
stack.node.setContext('availability-zones:1234:test', ['test-1a', 'test-1b']);
const vpc = new aws_ec2_1.Vpc(stack, 'VCP');
const lb = new lib_1.LoadBalancer(stack, 'LB', { vpc });
lb.addListener({
externalProtocol: lib_1.LoadBalancingProtocol.HTTP,
externalPort: 8080,
internalProtocol: lib_1.LoadBalancingProtocol.HTTP,
internalPort: 8080,
});
assert_1.expect(stack).to(assert_1.haveResource('AWS::ElasticLoadBalancing::LoadBalancer', {
Listeners: [{
InstancePort: '8080',
InstanceProtocol: 'http',
LoadBalancerPort: '8080',
Protocol: 'http',
}],
}));
test.done();
},
'add a health check'(test) {
// GIVEN
const stack = new core_1.Stack();
const vpc = new aws_ec2_1.Vpc(stack, 'VCP');
// WHEN
new lib_1.LoadBalancer(stack, 'LB', {
vpc,
healthCheck: {
interval: core_1.Duration.minutes(1),
path: '/ping',
protocol: lib_1.LoadBalancingProtocol.HTTPS,
port: 443,
},
});
// THEN
assert_1.expect(stack).to(assert_1.haveResource('AWS::ElasticLoadBalancing::LoadBalancer', {
HealthCheck: {
HealthyThreshold: '2',
Interval: '60',
Target: 'HTTPS:443/ping',
Timeout: '5',
UnhealthyThreshold: '5',
},
}));
test.done();
},
'add a listener and load balancing target'(test) {
// GIVEN
const stack = new core_1.Stack();
const vpc = new aws_ec2_1.Vpc(stack, 'VCP');
const elb = new lib_1.LoadBalancer(stack, 'LB', {
vpc,
healthCheck: {
interval: core_1.Duration.minutes(1),
path: '/ping',
protocol: lib_1.LoadBalancingProtocol.HTTPS,
port: 443,
},
});
// WHEN
elb.addListener({ externalPort: 80, internalPort: 8080 });
elb.addTarget(new FakeTarget());
// THEN: at the very least it added a security group rule for the backend
assert_1.expect(stack).to(assert_1.haveResource('AWS::EC2::SecurityGroup', {
SecurityGroupEgress: [
{
Description: 'Port 8080 LB to fleet',
CidrIp: '666.666.666.666/666',
FromPort: 8080,
IpProtocol: 'tcp',
ToPort: 8080,
},
],
}));
test.done();
},
'enable cross zone load balancing'(test) {
// GIVEN
const stack = new core_1.Stack();
const vpc = new aws_ec2_1.Vpc(stack, 'VCP');
// WHEN
new lib_1.LoadBalancer(stack, 'LB', {
vpc,
crossZone: true,
});
// THEN
assert_1.expect(stack).to(assert_1.haveResource('AWS::ElasticLoadBalancing::LoadBalancer', {
CrossZone: true,
}));
test.done();
},
'disable cross zone load balancing'(test) {
// GIVEN
const stack = new core_1.Stack();
const vpc = new aws_ec2_1.Vpc(stack, 'VCP');
// WHEN
new lib_1.LoadBalancer(stack, 'LB', {
vpc,
crossZone: false,
});
// THEN
assert_1.expect(stack).to(assert_1.haveResource('AWS::ElasticLoadBalancing::LoadBalancer', {
CrossZone: false,
}));
test.done();
},
'cross zone load balancing enabled by default'(test) {
// GIVEN
const stack = new core_1.Stack();
const vpc = new aws_ec2_1.Vpc(stack, 'VCP');
// WHEN
new lib_1.LoadBalancer(stack, 'LB', {
vpc,
});
// THEN
assert_1.expect(stack).to(assert_1.haveResource('AWS::ElasticLoadBalancing::LoadBalancer', {
CrossZone: true,
}));
test.done();
},
'use specified subnet'(test) {
// GIVEN
const stack = new core_1.Stack();
const vpc = new aws_ec2_1.Vpc(stack, 'VCP', {
subnetConfiguration: [
{
name: 'public',
subnetType: aws_ec2_1.SubnetType.PUBLIC,
cidrMask: 21,
},
{
name: 'private1',
subnetType: aws_ec2_1.SubnetType.PRIVATE,
cidrMask: 21,
},
{
name: 'private2',
subnetType: aws_ec2_1.SubnetType.PRIVATE,
cidrMask: 21,
},
],
});
// WHEN
new lib_1.LoadBalancer(stack, 'LB', {
vpc,
subnetSelection: {
subnetName: 'private1',
},
});
// THEN
assert_1.expect(stack).to(assert_1.haveResource('AWS::ElasticLoadBalancing::LoadBalancer', {
Subnets: vpc.selectSubnets({
subnetName: 'private1',
}).subnetIds.map((subnetId) => stack.resolve(subnetId)),
}));
test.done();
},
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5sb2FkYmFsYW5jZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0ZXN0LmxvYWRiYWxhbmNlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsNENBQXVEO0FBQ3ZELDhDQUFzRTtBQUN0RSx3Q0FBZ0Q7QUFFaEQsZ0NBQWtGO0FBZ01sRixNQUFNLFVBQVU7SUFBaEI7UUFDa0IsZ0JBQVcsR0FBRyxJQUFJLHFCQUFXLENBQUM7WUFDNUMsSUFBSSxFQUFFLGNBQUksQ0FBQyxJQUFJLENBQUMscUJBQXFCLENBQUM7U0FDdkMsQ0FBQyxDQUFDO0lBTUwsQ0FBQztJQUpRLGlCQUFpQixDQUFDLGFBQTJCO1FBQ2xELDREQUE0RDtRQUM1RCxtREFBbUQ7SUFDckQsQ0FBQztDQUNGO0FBdk1ELGlCQUFTO0lBQ1Asd0NBQXdDLENBQUMsSUFBVTtRQUNqRCxNQUFNLEtBQUssR0FBRyxJQUFJLFlBQUssQ0FBQyxTQUFTLEVBQUUsU0FBUyxFQUFFLEVB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OiAncHJpdmF0ZTEnLFxuICAgICAgfSkuc3VibmV0SWRzLm1hcCgoc3VibmV0SWQ6IHN0cmluZykgPT4gc3RhY2sucmVzb2x2ZShzdWJuZXRJZCkpLFxuICAgIH0pKTtcblxuICAgIHRlc3QuZG9uZSgpO1xuICB9LFxuXG59O1xuXG5jbGFzcyBGYWtlVGFyZ2V0IGltcGxlbWVudHMgSUxvYWRCYWxhbmNlclRhcmdldCB7XG4gIHB1YmxpYyByZWFkb25seSBjb25uZWN0aW9ucyA9IG5ldyBDb25uZWN0aW9ucyh7XG4gICAgcGVlcjogUGVlci5pcHY0KCc2NjYuNjY2LjY2Ni42NjYvNjY2JyksXG4gIH0pO1xuXG4gIHB1YmxpYyBhdHRhY2hUb0NsYXNzaWNMQihfbG9hZEJhbGFuY2VyOiBMb2FkQmFsYW5jZXIpOiB2b2lkIHtcbiAgICAvLyBOb3RoaW5nIHRvIGRvLiBOb3JtYWxseSB3ZSBzZXQgYSBwcm9wZXJ0eSBvbiBvdXJzZWx2ZXMgc29cbiAgICAvLyBvdXIgaW5zdGFuY2VzIGtub3cgdG8gYmluZCB0byB0aGUgTEIgb24gc3RhcnR1cC5cbiAgfVxufVxuIl19 | 107.949153 | 13,070 | 0.841262 |
181852c06fc1456564962fda7778fcf4c2fa397c | 16,010 | js | JavaScript | src/utils/transform.js | unbiased-security/reactivecore | 25fa2f747bacb9a3f2950467f472ce4f80df6a0f | [
"Apache-2.0"
] | null | null | null | src/utils/transform.js | unbiased-security/reactivecore | 25fa2f747bacb9a3f2950467f472ce4f80df6a0f | [
"Apache-2.0"
] | null | null | null | src/utils/transform.js | unbiased-security/reactivecore | 25fa2f747bacb9a3f2950467f472ce4f80df6a0f | [
"Apache-2.0"
] | null | null | null | import XDate from 'xdate';
import { componentTypes, queryTypes } from './constants';
import dateFormats from './dateFormats';
import { formatDate, isValidDateRangeQueryFormat } from './helper';
export const componentToTypeMap = {
// search components
[componentTypes.reactiveList]: queryTypes.search,
[componentTypes.dataSearch]: queryTypes.search,
[componentTypes.categorySearch]: queryTypes.search,
[componentTypes.searchBox]: queryTypes.suggestion,
// term components
[componentTypes.singleList]: queryTypes.term,
[componentTypes.multiList]: queryTypes.term,
[componentTypes.singleDataList]: queryTypes.term,
[componentTypes.singleDropdownList]: queryTypes.term,
[componentTypes.multiDataList]: queryTypes.term,
[componentTypes.multiDropdownList]: queryTypes.term,
[componentTypes.tagCloud]: queryTypes.term,
[componentTypes.toggleButton]: queryTypes.term,
// basic components
[componentTypes.numberBox]: queryTypes.term,
// range components
[componentTypes.datePicker]: queryTypes.range,
[componentTypes.dateRange]: queryTypes.range,
[componentTypes.dynamicRangeSlider]: queryTypes.range,
[componentTypes.singleDropdownRange]: queryTypes.range,
[componentTypes.multiDropdownRange]: queryTypes.range,
[componentTypes.singleRange]: queryTypes.range,
[componentTypes.multiRange]: queryTypes.range,
[componentTypes.rangeSlider]: queryTypes.range,
[componentTypes.ratingsFilter]: queryTypes.range,
[componentTypes.rangeInput]: queryTypes.range,
// map components
[componentTypes.geoDistanceDropdown]: queryTypes.geo,
[componentTypes.geoDistanceSlider]: queryTypes.geo,
[componentTypes.reactiveMap]: queryTypes.geo,
};
const multiRangeComponents = [componentTypes.multiRange, componentTypes.multiDropdownRange];
const dateRangeComponents = [componentTypes.dateRange, componentTypes.datePicker];
const searchComponents = [
componentTypes.categorySearch,
componentTypes.dataSearch,
componentTypes.searchBox,
];
const listComponentsWithPagination = [
componentTypes.singleList,
componentTypes.multiList,
componentTypes.singleDropdownList,
componentTypes.multiDropdownList,
];
export const getNormalizedField = (field) => {
if (field && !Array.isArray(field)) {
return [field];
}
return field;
};
export const isInternalComponent = (componentID = '') => componentID.endsWith('__internal');
export const getInternalComponentID = (componentID = '') => `${componentID}__internal`;
export const getHistogramComponentID = (componentID = '') => `${componentID}__histogram__internal`;
export const isDRSRangeComponent = (componentID = '') => componentID.endsWith('__range__internal');
export const isSearchComponent = (componentType = '') => searchComponents.includes(componentType);
export const isComponentUsesLabelAsValue = (componentType = '') =>
componentType === componentTypes.multiDataList
|| componentType === componentTypes.singleDataList;
export const hasPaginationSupport = (componentType = '') =>
listComponentsWithPagination.includes(componentType);
export const getRSQuery = (componentId, props, execute = true) => {
if (props && componentId) {
const queryType = props.type ? props.type : componentToTypeMap[props.componentType];
// dataField is a required field for components other than search
// TODO: Revisit this logic based on the Appbase version
// dataField is no longer a required field in RS API
if (!isSearchComponent(props.componentType) && !props.dataField) {
return null;
}
return {
id: componentId,
type: queryType,
dataField: getNormalizedField(props.dataField),
execute,
react: props.react,
highlight: props.highlight,
highlightField: getNormalizedField(props.highlightField),
fuzziness: props.fuzziness,
searchOperators: props.searchOperators,
includeFields: props.includeFields,
excludeFields: props.excludeFields,
size: props.size,
aggregationSize: props.aggregationSize,
from: props.from, // Need to maintain for RL
queryFormat: props.queryFormat,
sortBy: props.sortBy,
fieldWeights: getNormalizedField(props.fieldWeights),
includeNullValues: props.includeNullValues,
aggregationField: props.aggregationField || undefined,
categoryField: props.categoryField || undefined,
missingLabel: props.missingLabel || undefined,
showMissing: props.showMissing,
nestedField: props.nestedField || undefined,
interval: props.interval,
customHighlight: props.customHighlight,
customQuery: props.customQuery,
defaultQuery: props.defaultQuery,
value: props.value,
categoryValue: props.categoryValue || undefined,
after: props.after || undefined,
aggregations: props.aggregations || undefined,
enableSynonyms: props.enableSynonyms,
selectAllLabel: props.selectAllLabel,
pagination: props.pagination,
queryString: props.queryString,
distinctField: props.distinctField,
distinctFieldConfig: props.distinctFieldConfig,
index: props.index,
...(queryType === queryTypes.suggestion
? {
enablePopularSuggestions: props.enablePopularSuggestions,
enableRecentSuggestions: props.enableRecentSuggestions,
popularSuggestionsConfig: props.popularSuggestionsConfig,
recentSuggestionsConfig: props.recentSuggestionsConfig,
applyStopwords: props.applyStopwords,
customStopwords: props.customStopwords,
enablePredictiveSuggestions: props.enablePredictiveSuggestions,
featuredSuggestionsConfig: props.featuredSuggestionsConfig,
indexSuggestionsConfig: props.indexSuggestionsConfig,
enableFeaturedSuggestions: props.enableFeaturedSuggestions,
enableIndexSuggestions: props.enableIndexSuggestions,
}
: {}),
calendarInterval: props.calendarInterval,
};
}
return null;
};
export const getValidInterval = (interval, range = {}) => {
const min = Math.ceil((range.end - range.start) / 100) || 1;
if (!interval) {
return min;
} else if (interval < min) {
return min;
}
return interval;
};
export const extractPropsFromState = (store, component, customOptions) => {
const componentProps = store.props[component];
if (!componentProps) {
return null;
}
const queryType = componentToTypeMap[componentProps.componentType];
const calcValues = store.selectedValues[component] || store.internalValues[component];
let value = calcValues !== undefined && calcValues !== null ? calcValues.value : undefined;
let queryFormat = componentProps.queryFormat;
// calendarInterval only supported when using date types
let calendarInterval;
let { interval } = componentProps;
let type = componentToTypeMap[componentProps.componentType];
let dataField = componentProps.dataField;
let aggregations;
let pagination; // pagination for `term` type of queries
let from = componentProps.from; // offset for RL
// For term queries i.e list component `dataField` will be treated as aggregationField
if (queryType === queryTypes.term) {
// Only apply pagination prop for the components which supports it otherwise it can break the UI
if (componentProps.showLoadMore && hasPaginationSupport(componentProps.componentType)) {
pagination = true;
}
// Extract values from components that are type of objects
// This code handles the controlled behavior in list components for e.g ToggleButton
if (value != null && typeof value === 'object' && value.value) {
value = value.value;
} else if (Array.isArray(value)) {
const parsedValue = [];
value.forEach((val) => {
if (val != null && typeof val === 'object' && val.value) {
parsedValue.push(val.value);
} else {
parsedValue.push(val);
}
});
value = parsedValue;
}
}
if (queryType === queryTypes.range) {
if (Array.isArray(value)) {
if (multiRangeComponents.includes(componentProps.componentType)) {
value = value.map(({ start, end }) => ({
start,
end,
}));
} else {
value = {
start: value[0],
end: value[1],
};
}
} else if (componentProps.showHistogram) {
const internalComponentID = getInternalComponentID(component);
let internalComponentValue = store.internalValues[internalComponentID];
if (!internalComponentValue) {
// Handle dynamic range slider
const histogramComponentID = getHistogramComponentID(component);
internalComponentValue = store.internalValues[histogramComponentID];
}
if (internalComponentValue && Array.isArray(internalComponentValue.value)) {
value = {
start: internalComponentValue.value[0],
end: internalComponentValue.value[1],
};
// Set interval
interval = getValidInterval(interval, value);
}
}
if (isDRSRangeComponent(component)) {
aggregations = ['min', 'max'];
} else if (componentProps.showHistogram) {
aggregations = ['histogram'];
}
// handle number box, number box query changes based on the `queryFormat` value
if (
componentProps.componentType === componentTypes.dynamicRangeSlider
|| componentProps.componentType === componentTypes.rangeSlider
) {
calendarInterval = Object.keys(dateFormats).includes(queryFormat)
? componentProps.calendarInterval
: undefined;
// Set value
if (value) {
if (isValidDateRangeQueryFormat(componentProps.queryFormat)) {
// check if date types are dealt with
value = {
start: formatDate(new XDate(value.start), componentProps),
end: formatDate(new XDate(value.end), componentProps),
};
} else {
value = {
start: parseFloat(value.start),
end: parseFloat(value.end),
};
}
}
}
// handle date components
if (dateRangeComponents.includes(componentProps.componentType)) {
// Remove query format for `date` components
queryFormat = 'or';
// Set value
if (value) {
if (typeof value === 'string') {
value = {
start: formatDate(new XDate(value).addHours(-24), componentProps),
end: formatDate(new XDate(value), componentProps),
};
} else if (Array.isArray(value)) {
value = value.map(val => ({
start: formatDate(new XDate(val).addHours(-24), componentProps),
end: formatDate(new XDate(val), componentProps),
}));
}
}
}
}
if (queryType === queryTypes.geo) {
// override the value extracted from selectedValues reducer
value = undefined;
const geoCalcValues
= store.selectedValues[component]
|| store.internalValues[component]
|| store.internalValues[getInternalComponentID(component)];
if (geoCalcValues && geoCalcValues.meta) {
if (geoCalcValues.meta.distance && geoCalcValues.meta.coordinates) {
value = {
distance: geoCalcValues.meta.distance,
location: geoCalcValues.meta.coordinates,
};
if (componentProps.unit) {
value.unit = componentProps.unit;
}
}
if (
geoCalcValues.meta.mapBoxBounds
&& geoCalcValues.meta.mapBoxBounds.top_left
&& geoCalcValues.meta.mapBoxBounds.bottom_right
) {
value = {
// Note: format will be reverse of what we're using now
geoBoundingBox: {
topLeft: `${geoCalcValues.meta.mapBoxBounds.top_left[1]}, ${geoCalcValues.meta.mapBoxBounds.top_left[0]}`,
bottomRight: `${geoCalcValues.meta.mapBoxBounds.bottom_right[1]}, ${geoCalcValues.meta.mapBoxBounds.bottom_right[0]}`,
},
};
}
}
}
// handle number box, number box query changes based on the `queryFormat` value
if (componentProps.componentType === componentTypes.numberBox) {
if (queryFormat === 'exact') {
type = 'term';
} else {
type = 'range';
if (queryFormat === 'lte') {
value = {
end: value,
boost: 2.0,
};
} else {
value = {
start: value,
boost: 2.0,
};
}
}
// Remove query format
queryFormat = 'or';
}
// Fake dataField for ReactiveComponent
// TODO: Remove it after some time. The `dataField` is no longer required
if (componentProps.componentType === componentTypes.reactiveComponent) {
// Set the type to `term`
type = 'term';
dataField = 'reactive_component_field';
// Don't set value property for ReactiveComponent
// since it is driven by `defaultQuery` and `customQuery`
value = undefined;
}
// Assign default value as an empty string for search components so search relevancy can work
if (isSearchComponent(componentProps.componentType) && !value) {
value = '';
}
// Handle components which uses label instead of value as the selected value
if (isComponentUsesLabelAsValue(componentProps.componentType)) {
const { data } = componentProps;
let absValue = [];
if (value && Array.isArray(value)) {
absValue = value;
} else if (value && typeof value === 'string') {
absValue = [value];
}
const normalizedValue = [];
if (absValue.length) {
if (data && Array.isArray(data)) {
absValue.forEach((val) => {
const dataItem = data.find(o => o.label === val);
if (dataItem && dataItem.value) {
normalizedValue.push(dataItem.value);
}
});
}
}
if (normalizedValue.length) {
value = normalizedValue;
} else {
value = undefined;
}
}
if (componentProps.componentType === componentTypes.reactiveList) {
// We set selected page as the value in the redux store for RL.
// It's complex to change this logic in the component so changed it here.
if (value > 0) {
from = (value - 1) * (componentProps.size || 10);
}
value = undefined;
}
return {
...componentProps,
calendarInterval,
dataField,
queryFormat,
type,
aggregations,
interval,
react: store.dependencyTree ? store.dependencyTree[component] : undefined,
customQuery: store.customQueries ? store.customQueries[component] : undefined,
defaultQuery: store.defaultQueries ? store.defaultQueries[component] : undefined,
customHighlight: store.customHighlightOptions
? store.customHighlightOptions[component]
: undefined,
categoryValue: store.internalValues[component]
? store.internalValues[component].category
: undefined,
value:
componentProps.componentType === componentTypes.searchBox ? value || undefined : value,
pagination,
from,
...customOptions,
};
};
export function flatReactProp(reactProp, componentID) {
let flattenReact = [];
const flatReact = (react) => {
if (react && Object.keys(react)) {
Object.keys(react).forEach((r) => {
if (react[r]) {
if (typeof react[r] === 'string') {
flattenReact = [...flattenReact, react[r]];
} else if (Array.isArray(react[r])) {
flattenReact = [...flattenReact, ...react[r]];
} else if (typeof react[r] === 'object') {
flatReact(react[r]);
}
}
});
}
};
flatReact(reactProp);
// Remove cyclic dependencies
flattenReact = flattenReact.filter(react => react !== componentID);
return flattenReact;
}
export const getDependentQueries = (store, componentID, orderOfQueries = []) => {
const finalQuery = {};
const react = flatReactProp(store.dependencyTree[componentID], componentID);
react.forEach((componentObject) => {
const component = componentObject;
const customQuery = store.customQueries[component];
if (!isInternalComponent(component)) {
const calcValues = store.selectedValues[component] || store.internalValues[component];
// Only include queries for that component that has `customQuery` or `value` defined
if ((calcValues || customQuery) && !finalQuery[component]) {
let execute = false;
if (Array.isArray(orderOfQueries) && orderOfQueries.includes(component)) {
execute = true;
}
const componentProps = store.props[component];
// build query
const dependentQuery = getRSQuery(
component,
extractPropsFromState(store, component, {
...(componentProps
&& componentProps.componentType === componentTypes.searchBox
? {
...(execute === false ? { type: queryTypes.search } : {}),
...(calcValues.category
? { categoryValue: calcValues.category }
: {}),
}
: {}),
}),
execute,
);
if (dependentQuery) {
finalQuery[component] = dependentQuery;
}
}
}
});
return finalQuery;
};
| 34.06383 | 124 | 0.710743 |
1818a6669bb4b25cddba8a31a6b39f79d2bd1f3d | 1,099 | js | JavaScript | src/Presentation/vue-app/src/store/brand.js | vedprakashyadav/MyInventoryHub | 328394d4032687a1b1e92e8cacefa7ad87d45f95 | [
"MIT"
] | null | null | null | src/Presentation/vue-app/src/store/brand.js | vedprakashyadav/MyInventoryHub | 328394d4032687a1b1e92e8cacefa7ad87d45f95 | [
"MIT"
] | 1 | 2021-06-13T01:16:31.000Z | 2021-06-13T01:16:31.000Z | src/Presentation/vue-app/src/store/brand.js | vedprakashyadav/MyInventoryHub | 328394d4032687a1b1e92e8cacefa7ad87d45f95 | [
"MIT"
] | 1 | 2021-06-15T01:29:58.000Z | 2021-06-15T01:29:58.000Z |
import brandService from "@/services/brandService";
const brand = {
state() {
return {
brands: []
}
},
getters: {
brands(state) {
return (filter)=>{
if(!filter)
return state.brands;
let filteredData = [...state.brands];
if (filter.name)
filteredData = filteredData.filter(x => x.name.toLowerCase().includes(filter.name.toLowerCase()));
return filteredData;
}
},
totalBrand(state) {
return state.brands.length;
}
},
mutations: {
getBrands(state, brands) {
state.brands = brands;
}
},
actions: {
async getBrands(context) {
let brands = await brandService.getBrands();
context.commit("getBrands", brands);
},
async saveBrand(context, brand) {
await brandService.addBrand(brand);
context.dispatch("getBrands");
}
}
}
export default brand; | 26.804878 | 118 | 0.481347 |
18190dbb6f87c9ec28562763d1e983b29ffdb7d9 | 178 | js | JavaScript | middlewares/errorMiddleware.js | alexz9/backend-nodejs-session-auth | 0cfa1c01bdf8462d2f051334e2711c19c935a755 | [
"MIT"
] | null | null | null | middlewares/errorMiddleware.js | alexz9/backend-nodejs-session-auth | 0cfa1c01bdf8462d2f051334e2711c19c935a755 | [
"MIT"
] | null | null | null | middlewares/errorMiddleware.js | alexz9/backend-nodejs-session-auth | 0cfa1c01bdf8462d2f051334e2711c19c935a755 | [
"MIT"
] | null | null | null | module.exports = function errorMiddleware(error, req, res){
if(error && res.status){
console.log(error);
return res.status(500).send("Bad request");
}
} | 29.666667 | 60 | 0.617978 |
1819436d4aa6651ed2fcd7fd13909d1df000cf03 | 1,015 | js | JavaScript | config/project.js | isabella232/compass-crud | ba6a6f8abf2d7fc16155679b90f77996208de343 | [
"Apache-2.0"
] | null | null | null | config/project.js | isabella232/compass-crud | ba6a6f8abf2d7fc16155679b90f77996208de343 | [
"Apache-2.0"
] | 1 | 2021-02-23T12:56:59.000Z | 2021-02-23T12:56:59.000Z | config/project.js | isabella232/compass-crud | ba6a6f8abf2d7fc16155679b90f77996208de343 | [
"Apache-2.0"
] | null | null | null | const path = require('path');
const semver = require('semver');
const autoprefixer = require('autoprefixer');
const packageJson = require(path.join(__dirname, '/../package.json'));
// Gets a valid version range for the current electron dependency declared in our package.json
// Eg: "^1.6.1" would yield ">=1.6.1"
const electronVersion = semver.Range(packageJson.devDependencies.electron).set[0][0].value; // eslint-disable-line new-cap
module.exports = {
path: {
// The src path to our application
src: path.join(__dirname, '/../src'),
// The build path to where our bundle will be output
output: path.join(__dirname, '/../lib'),
// The path to the electron directory
electron: path.join(__dirname, '/../electron'),
// The path to the storybook directory
storybook: path.join(__dirname, '/../.storybook'),
// The path to the test directory.
test: path.join(__dirname, '/../test')
},
plugin: {
autoprefixer: autoprefixer(`electron ${electronVersion}`)
}
};
| 32.741935 | 122 | 0.675862 |
181a10342bf072b1e1b57dd0b8bf0c945d9c926c | 2,315 | js | JavaScript | code/commands/lint.js | rrainn/PlaceCompile | a666b4c1baf8156190817475cdf1c8a76c86363d | [
"Unlicense"
] | null | null | null | code/commands/lint.js | rrainn/PlaceCompile | a666b4c1baf8156190817475cdf1c8a76c86363d | [
"Unlicense"
] | 3 | 2021-08-29T20:11:52.000Z | 2021-09-03T03:07:51.000Z | code/commands/lint.js | rrainn/PlaceCompile | a666b4c1baf8156190817475cdf1c8a76c86363d | [
"Unlicense"
] | null | null | null | const fs = require("fs").promises;
const path = require("path");
module.exports = async () => {
const files = (await fs.readdir(path.join(__dirname, "..", "..", "data"))).filter((file) => file.endsWith(".geojson") && !file.startsWith("_")).sort();
let primarySuccess = true;
for (const file of files) {
const string = await fs.readFile(path.join(__dirname, "..", "..", "data", file), "utf8");
const data = JSON.parse(string);
const spider = file.replace(".geojson", "");
const success = lint(data, spider);
if (!success) {
primarySuccess = false;
}
}
if (!primarySuccess) {
process.exit(1);
}
};
function lint(data, spider) {
let success = true;
data.features.forEach((feature) => {
if (feature.geometry.type !== "Point") {
console.error(`${spider}: ${feature.properties.ref} is not a point`);
}
if (!feature.geometry.coordinates.every((coordinate) => typeof coordinate === "number")) {
console.error(`${spider}: ${feature.properties.ref} has coordinates are not all numbers`);
}
if (feature.geometry.coordinates.length !== 2) {
console.error(`${spider}: ${feature.properties.ref} has more than 2 coordinates`);
}
if (feature.geometry.coordinates[0] < -180 || feature.geometry.coordinates[0] > 180) {
console.error(`${spider}: ${feature.properties.ref} has invalid longitude`);
}
if (feature.geometry.coordinates[1] < -90 || feature.geometry.coordinates[1] > 90) {
console.error(`${spider}: ${feature.properties.ref} has invalid latitude`);
}
if (feature.geometry.coordinates[0] === feature.geometry.coordinates[1]) {
console.error(`${spider}: ${feature.properties.ref} coordinates are identical`);
}
Object.entries(feature.properties).forEach(([key, value]) => {
if (value === "") {
console.error(`${spider}: ${feature.properties.ref} has empty string for property ${key}`);
}
if (value === undefined) {
console.error(`${spider}: ${feature.properties.ref} has undefined for property ${key}`);
}
if (value === null) {
console.error(`${spider}: ${feature.properties.ref} has null for property ${key}`);
}
if (typeof value === "string" && value.includes("undefined")) {
console.error(`${spider}: ${feature.properties.ref} has undefined in string for property ${key}`);
}
});
});
return success;
}
| 36.171875 | 152 | 0.646652 |
181a6cba919e4a6f02a8554a8b368aa501670ea4 | 301 | js | JavaScript | lib/services/requires-io.service.js | doniyor2109/shields-extension | c38c138e548857fb78ac0d522c0ab4e42c20063f | [
"MIT"
] | null | null | null | lib/services/requires-io.service.js | doniyor2109/shields-extension | c38c138e548857fb78ac0d522c0ab4e42c20063f | [
"MIT"
] | 1 | 2020-03-30T16:25:30.000Z | 2020-03-30T16:25:30.000Z | lib/services/requires-io.service.js | doniyor2109/github-badge | c38c138e548857fb78ac0d522c0ab4e42c20063f | [
"MIT"
] | null | null | null | const { Base } = require('./common');
class RequiresIo extends Base {
static supporterImgParams = ['service', 'user', 'repo', 'user'];
get imgNamedParams() {
const { github } = this.data;
return {
service: 'github',
...github,
};
}
}
module.exports = { RequiresIo };
| 17.705882 | 66 | 0.581395 |
181a7b376e9dccf11ef1df83cb277139c0034366 | 1,138 | js | JavaScript | lib/mongoose.js | monumentum/astronode-mongoose-adapter | 60583b517b962363f59b6b80a165aca4478ebcc2 | [
"MIT"
] | null | null | null | lib/mongoose.js | monumentum/astronode-mongoose-adapter | 60583b517b962363f59b6b80a165aca4478ebcc2 | [
"MIT"
] | null | null | null | lib/mongoose.js | monumentum/astronode-mongoose-adapter | 60583b517b962363f59b6b80a165aca4478ebcc2 | [
"MIT"
] | null | null | null | const mongoose = require('mongoose');
const mongoInit = require('./initialize');
const MongooseMethods = require('./methods');
const Schema = mongoose.Schema;
const { omit, get, each, mapValues } = require('lodash');
const { DataAdapter } = require('astronode-plugin');
mongoose.Promise = require('bluebird');
const createSchema = schema =>
schema instanceof Schema ?
schema : new mongoose.Schema(schema);
class MongooseAdapter extends DataAdapter {
constructor(opts) {
super(MongooseMethods);
this.uri = `mongodb://${opts.uri}:${opts.port}/${opts.database}`;
this.opts = omit(opts, 'uri', 'port', 'database');
}
autoinitialize(config) {
this.conn = mongoose.createConnection(this.uri, this.opts);
return mongoInit(this.conn).then(() => {
const models = this._registerModels(config.models);
super.autoinitialize({ models });
});
}
_registerModels(models) {
return mapValues(models, (schema, name) => {
return this.conn.model(name, createSchema(schema));
});
}
}
module.exports = MongooseAdapter; | 30.756757 | 73 | 0.637083 |
181a83bb5f6a2de6c1204642778b69394713543e | 623 | js | JavaScript | packages/zip/__tests__/index.js | goblindegook/fun | e855f50208dee88dcb7c27f12694e2674b234e0b | [
"MIT"
] | 4 | 2016-09-23T20:57:43.000Z | 2019-06-13T16:22:17.000Z | packages/zip/__tests__/index.js | goblindegook/funny | e855f50208dee88dcb7c27f12694e2674b234e0b | [
"MIT"
] | null | null | null | packages/zip/__tests__/index.js | goblindegook/funny | e855f50208dee88dcb7c27f12694e2674b234e0b | [
"MIT"
] | null | null | null | import zip from '..'
describe('zip', () => {
it('returns empty array', () => {
const a = []
const b = []
expect(zip(a, b)).toEqual([])
})
it('combines elements', () => {
const a = [1, 2, 3]
const b = ['a', 'b', 'c']
expect(zip(a, b)).toEqual([[1, 'a'], [2, 'b'], [3, 'c']])
})
it('creates an array only as long as the shortest input', () => {
const a = [1, 2, 3]
const b = ['a']
expect(zip(a, b)).toEqual([[1, 'a']])
})
it('is curried', () => {
const a = [1, 2, 3]
const b = ['a', 'b', 'c']
expect(zip(a)(b)).toEqual([[1, 'a'], [2, 'b'], [3, 'c']])
})
})
| 22.25 | 67 | 0.426966 |
181b0692cf13bcb92c6e473dc4cf3e41c50fc208 | 40 | js | JavaScript | packages/fcl/src/VERSION.js | lay2dev/fcl-js | 5ee0ef402255280e1b7af24306a87f46f696a85c | [
"Apache-2.0"
] | null | null | null | packages/fcl/src/VERSION.js | lay2dev/fcl-js | 5ee0ef402255280e1b7af24306a87f46f696a85c | [
"Apache-2.0"
] | null | null | null | packages/fcl/src/VERSION.js | lay2dev/fcl-js | 5ee0ef402255280e1b7af24306a87f46f696a85c | [
"Apache-2.0"
] | null | null | null | export const VERSION = "0.0.78-alpha.8"
| 20 | 39 | 0.7 |
181b2232ce420933670c90c677e23f9dc3f58e50 | 83 | js | JavaScript | src/common/js/shopStatus.js | itwenqiang/open_api_ablesky | e5fa2c0bb2da5e1abec6723805e595bc8e03cdaf | [
"MIT"
] | null | null | null | src/common/js/shopStatus.js | itwenqiang/open_api_ablesky | e5fa2c0bb2da5e1abec6723805e595bc8e03cdaf | [
"MIT"
] | 3 | 2021-03-10T01:23:53.000Z | 2022-02-10T20:30:14.000Z | src/common/js/shopStatus.js | tliwyl/ablesky-cms | 330001821f0f8af73fd98444c07978ffabd518df | [
"MIT"
] | 1 | 2019-12-10T11:03:21.000Z | 2019-12-10T11:03:21.000Z | let shopStatus = {
0: "待审核",
1: "拒绝",
2: "通过"
};
export default shopStatus;
| 10.375 | 26 | 0.554217 |
181b789cbeb7b224e70830bec843c7c069dfce9a | 1,578 | js | JavaScript | app/SafePassSecondScreen.js | vicentedealencar/SafePass | 7d39d98adf750a3e06d6c1c17eb30cb6011e9050 | [
"MIT"
] | null | null | null | app/SafePassSecondScreen.js | vicentedealencar/SafePass | 7d39d98adf750a3e06d6c1c17eb30cb6011e9050 | [
"MIT"
] | null | null | null | app/SafePassSecondScreen.js | vicentedealencar/SafePass | 7d39d98adf750a3e06d6c1c17eb30cb6011e9050 | [
"MIT"
] | null | null | null | import React from 'react'
import {
TextInput,
PassInput,
ViewBox,
ViewSpaced,
Button
} from './BaseComponents'
import { encode } from './utils'
import DownloadButton from './DownloadButton'
export default class SafePassSecondScreen extends React.Component {
state = {
pass: '',
textarea: null
}
render() {
return (
<ViewBox>
<ViewSpaced>
<PassInput
value={this.state.pass || this.props.pass}
onChangeText={pass => this.setState({ pass })}
placeholder="senha"
/>
</ViewSpaced>
<ViewSpaced>
<TextInput
multiline
numberOfLines={10}
onChangeText={textarea => this.setState({ textarea })}
value={
this.state.textarea === ''
? ''
: this.state.textarea || this.props.content
}
placeholder="conteúdo secreto"
/>
</ViewSpaced>
<ViewSpaced>
<DownloadButton
title="codificar & baixar"
disabled={
!(this.state.pass || this.props.pass) ||
!(this.state.textarea || this.props.content)
}
encode={() =>
encode(
this.state.pass || this.props.pass,
this.state.textarea || this.props.content
)
}
/>
{this.state.encoded}
</ViewSpaced>
<Button title="voltar" onPress={this.props.onNext} color="#53acf3" />
</ViewBox>
)
}
}
| 25.451613 | 77 | 0.500634 |
181ba128eda110feb026bba9b69dbebd82e7880d | 280 | js | JavaScript | proj.ios_mac/Photon-iOS_SDK/doc/cpp/html/search/functions_7.js | h-iwata/MultiplayPaint | b170ec60bdda93c041ef59625ac2d6eba54d0335 | [
"MIT"
] | 1 | 2016-05-31T22:56:26.000Z | 2016-05-31T22:56:26.000Z | proj.ios_mac/Photon-iOS_SDK/doc/cpp/html/search/functions_7.js | h-iwata/MultiplayPaint | b170ec60bdda93c041ef59625ac2d6eba54d0335 | [
"MIT"
] | null | null | null | proj.ios_mac/Photon-iOS_SDK/doc/cpp/html/search/functions_7.js | h-iwata/MultiplayPaint | b170ec60bdda93c041ef59625ac2d6eba54d0335 | [
"MIT"
] | null | null | null | var searchData=
[
['hashtable',['Hashtable',['../a00065.html#a0ad0446c753219c70f36fbc7e015a8b3',1,'ExitGames::Common::Hashtable::Hashtable(void)'],['../a00065.html#ae63eda21b425ea17b3a89d280a347e89',1,'ExitGames::Common::Hashtable::Hashtable(const Hashtable &toCopy)']]]
];
| 56 | 258 | 0.757143 |
181bf2787be277b0dbce3544e0b512477738d802 | 5,663 | js | JavaScript | day11/day11.js | dtryon/aoc2020 | 2b24df274baf8ec8b176e130a4e5debc69eb895e | [
"MIT"
] | null | null | null | day11/day11.js | dtryon/aoc2020 | 2b24df274baf8ec8b176e130a4e5debc69eb895e | [
"MIT"
] | null | null | null | day11/day11.js | dtryon/aoc2020 | 2b24df274baf8ec8b176e130a4e5debc69eb895e | [
"MIT"
] | null | null | null | const fs = require('fs');
const findUp = (x, y, list) => {
const inRangeRows = list.slice(0, x);
inRangeRows.reverse();
const column = inRangeRows.map(row => row[y]);
return column.find(v => v !== '.');
}
const findDown = (x, y, list) => {
const inRangeRows = list.slice(x+1, list.length);
const column = inRangeRows.map(row => row[y]);
return column.find(v => v !== '.');
}
const findLeft = (x, y, list) => {
const row = list[x];
const inRangeValues = row.slice(0, y);
inRangeValues.reverse();
return inRangeValues.find(val => val !== '.');
}
const findRight = (x, y, list) => {
const row = list[x];
const inRangeValues = row.slice(y+1, row.length);
return inRangeValues.find(val => val !== '.');
}
const findUpLeft = (x, y, list) => {
const inRangeRows = list.slice(0, x);
inRangeRows.reverse();
const cells = inRangeRows.map((row, i) => row[y-(i+1)]);
return cells.filter(n => n).find(val => val !== '.');
}
const findUpRight = (x, y, list) => {
const inRangeRows = list.slice(0, x);
inRangeRows.reverse();
const cells = inRangeRows.map((row, i) => row[y+(i+1)]);
return cells.filter(n => n).find(val => val !== '.');
}
const findDownLeft = (x, y, list) => {
const inRangeRows = list.slice(x+1, list.length);
const cells = inRangeRows.map((row, i) => row[y-(i+1)]);
return cells.filter(n => n).find(val => val !== '.');
}
const findDownRight = (x, y, list) => {
const inRangeRows = list.slice(x+1, list.length);
const cells = inRangeRows.map((row, i) => row[y+(i+1)]);
return cells.filter(n => n).find(val => val !== '.');
}
shouldChangeStepTwo = (x, y, list) => {
const value = list[x][y];
const up = findUp(x, y, list);
const down = findDown(x, y, list);
const left = findLeft(x, y, list);
const right = findRight(x, y, list);
const upleft = findUpLeft(x, y, list);
const upright = findUpRight(x, y, list);
const downleft = findDownLeft(x, y, list);
const downright = findDownRight(x, y, list);
const allCells = [up, down, left, right, upleft, upright, downleft, downright ];
const cellsToCheck = allCells.filter(n => n).filter(n => n !== '.');
if (value === '#') {
return cellsToCheck.filter(n => n === '#').length >= 5;
}
if (value === 'L') {
return cellsToCheck.every(c => c === 'L');
}
return false;
}
shouldChangeStepOne = (x, y, list) => {
const value = list[x][y];
const upBoundary = 0;
const downBoundary = list.length-1;
const leftBoundary = 0;
const rightBoundary = list[0].length-1;
let up;
let down;
let left;
let right;
let upleft;
let upright;
let downleft;
let downright;
if (x === upBoundary && y === leftBoundary) {
down = list[x+1][y];
right = list[x][y-1];
downright = list[x+1][y+1];
} else if (x === downBoundary && y === leftBoundary) {
up = list[x-1][y];
right = list[x][y+1];
upright = list[x-1][y+1];
} else if (x === upBoundary && y === rightBoundary) {
down = list[x+1][y];
left = list[x][y-1];
downleft = list[x+1][y-1];
} else if (x === downBoundary && y === rightBoundary) {
up = list[x-1][y];
left = list[x][y-1];
upleft = list[x-1][y-1];
} else if (x === upBoundary) {
down = list[x+1][y];
left = list[x][y-1];
right = list[x][y+1];
downleft = list[x+1][y-1];
downright = list[x+1][y+1];
} else if (x === downBoundary) {
up = list[x-1][y];
left = list[x][y-1];
right = list[x][y+1];
upleft = list[x-1][y-1];
upright = list[x-1][y+1];
} else if (y === leftBoundary) {
up = list[x-1][y];
down = list[x+1][y];
right = list[x][y+1];
upright = list[x-1][y+1];
downright = list[x+1][y+1];
} else if (y === rightBoundary) {
up = list[x-1][y];
down = list[x+1][y];
left = list[x][y-1];
upleft = list[x-1][y-1];
downleft = list[x+1][y-1];
} else {
up = list[x-1][y];
down = list[x+1][y];
left = list[x][y-1];
right = list[x][y+1];
upleft = list[x-1][y-1];
upright = list[x-1][y+1];
downleft = list[x+1][y-1];
downright = list[x+1][y+1];
}
const allCells = [up, down, left, right, upleft, upright, downleft, downright ];
const cellsToCheck = allCells.filter(n => n).filter(n => n !== '.');
if (value === '#') {
return cellsToCheck.filter(n => n === '#').length >= 4;
}
if (value === 'L') {
return cellsToCheck.every(c => c === 'L');
}
return false;
}
const main = () => {
const numbers = fs.readFileSync('input.txt', {encoding:'utf8', flag:'r'});
const list = numbers.split(/\n/).filter(n => n).map((r, i) => {
return r.split('');
});
let currentCycleChanges = [];
while(true) {
//console.log(list);
list.forEach((row, x) => row.forEach((val, y) => {
if (shouldChangeStepTwo(x, y, list)) {
currentCycleChanges.push([x, y]);
}
}));
currentCycleChanges.forEach(([x, y]) => {
const val = list[x][y];
if (val === 'L') {
list[x][y] = '#';
} else if (val === '#') {
list[x][y] = 'L'
}
});
if (currentCycleChanges.length === 0) {
break;
}
currentCycleChanges = [];
}
let occupied = 0;
list.forEach((row, x) => row.forEach((val, y) => {
if (list[x][y] === '#') {
occupied++;
}
}));
console.log(occupied);
// const testGrid = [
// ['.', '.', '.', '.', '.', '.', '.', '#', '.'],
// ['.', '.', '.', '#', '.', '.', '.', '.', '.'],
// ['.', '#', '.', '.', '.', '.', '.', '.', '.'],
// ['.', '.', '.', '.', '.', '.', '.', '.', '.'],
// ['.', '.', '#', 'L', '.', '.', '.', '.', '#'],
// ['.', '.', '.', '.', '#', '.', '.', '.', '.'],
// ['.', '.', '.', '.', '.', '.', '.', '.', '.'],
// ['#', '.', '.', '.', '.', '.', '.', '.', '.'],
// ['.', '.', '.', '#', '.', '.', '.', '.', '.']
// ];
// console.log(testGrid[4][3]);
// console.log(findRight(4, 3, testGrid));
}
main();
| 25.168889 | 81 | 0.524987 |
181ce959462962e94612fb5d3798c647bdf31e02 | 49 | js | JavaScript | packages/playground/resolve/custom-main-field/index.custom.js | laineus/vite | 65aaeeee8761419cede335c197c5df8f0f8eac3b | [
"MIT"
] | 35,869 | 2020-05-22T13:01:20.000Z | 2022-03-31T23:59:08.000Z | packages/playground/resolve/custom-main-field/index.custom.js | laineus/vite | 65aaeeee8761419cede335c197c5df8f0f8eac3b | [
"MIT"
] | 4,640 | 2020-05-22T13:03:15.000Z | 2022-03-31T21:56:17.000Z | packages/playground/resolve/custom-main-field/index.custom.js | laineus/vite | 65aaeeee8761419cede335c197c5df8f0f8eac3b | [
"MIT"
] | 3,453 | 2020-05-23T08:38:07.000Z | 2022-03-31T11:57:50.000Z | export const msg = '[success] custom main field'
| 24.5 | 48 | 0.734694 |
181cf6273ab2fe091da065c59323d18607fcef4b | 438 | js | JavaScript | loops_and_iterations/for_statement/example.js | marlloncsoares/javascript-studies | 1eafe6fdf3677fdafe6b9d0dd4d16550ecda0f17 | [
"MIT"
] | null | null | null | loops_and_iterations/for_statement/example.js | marlloncsoares/javascript-studies | 1eafe6fdf3677fdafe6b9d0dd4d16550ecda0f17 | [
"MIT"
] | null | null | null | loops_and_iterations/for_statement/example.js | marlloncsoares/javascript-studies | 1eafe6fdf3677fdafe6b9d0dd4d16550ecda0f17 | [
"MIT"
] | null | null | null | // Escreve a tabuada de 10 na tela.
for (let i = 0; i <= 10; i++)
{
console.log(`10 x ${i} = ${i * 10}`);
}
// Mostra os números pares entre 0 e 10.
for (let i = 0; i<= 10; i++)
{
if ((i % 2) === 0)
{
console.log(`O número ${i} é par.`);
}
}
// Escreve a tabuada de 0 a 10 na tela
for (let i = 0; i <= 10; i++)
{
for (let j = 0; j <= 10; j++)
{
console.log(`${i} x ${j} = ${i * j}`);
}
} | 19.043478 | 46 | 0.429224 |
181d8eb1d7f7f6aa83dc60b6049cfac9bd2412cb | 72 | js | JavaScript | app/components/motion-simulator.js | ef4/motion-simulation | 2be5527830433e6b9eb0f337cdbc3a8e5eb6c264 | [
"MIT"
] | null | null | null | app/components/motion-simulator.js | ef4/motion-simulation | 2be5527830433e6b9eb0f337cdbc3a8e5eb6c264 | [
"MIT"
] | null | null | null | app/components/motion-simulator.js | ef4/motion-simulation | 2be5527830433e6b9eb0f337cdbc3a8e5eb6c264 | [
"MIT"
] | null | null | null | export { default } from 'motion-simulator/components/motion-simulator';
| 36 | 71 | 0.791667 |
181e9c4d21404dd6be3658070aedb8eef2ae439b | 47 | js | JavaScript | src/components/userProfile/wallet/claim/ClaimList/index.js | GolosChain/golos.io | d7e1f766f6a25ba9808dd9039ae742ebcc677f06 | [
"MIT"
] | 5 | 2016-09-12T22:48:49.000Z | 2019-06-01T14:29:51.000Z | src/components/userProfile/wallet/claim/ClaimList/index.js | GolosChain/golos.io | d7e1f766f6a25ba9808dd9039ae742ebcc677f06 | [
"MIT"
] | 363 | 2016-09-15T14:23:06.000Z | 2021-12-09T01:09:15.000Z | src/components/userProfile/wallet/claim/ClaimList/index.js | GolosChain/golos.io | d7e1f766f6a25ba9808dd9039ae742ebcc677f06 | [
"MIT"
] | 7 | 2016-09-26T18:27:43.000Z | 2020-10-29T19:14:01.000Z | export { default } from './ClaimList.connect';
| 23.5 | 46 | 0.702128 |
181ef1640d459a58dcf7d7d4bea89d867f25155a | 763 | js | JavaScript | src/hooks/useWindowSize/useWindowSize.js | ykukharskyi/window-size | e3736d0a01d79047b1fc2b7e865c360d8ed79133 | [
"MIT"
] | null | null | null | src/hooks/useWindowSize/useWindowSize.js | ykukharskyi/window-size | e3736d0a01d79047b1fc2b7e865c360d8ed79133 | [
"MIT"
] | null | null | null | src/hooks/useWindowSize/useWindowSize.js | ykukharskyi/window-size | e3736d0a01d79047b1fc2b7e865c360d8ed79133 | [
"MIT"
] | null | null | null | import { useEffect, useState } from "react";
const useWindowSize = () => {
const [windowHeight, setWindowHeight] = useState(window.innerHeight);
const [windowWidth, setWindowWidth] = useState(window.innerWidth);
useEffect(() => {
const handleResize = () => {
setWindowHeight(window.innerHeight);
setWindowWidth(window.innerWidth);
};
window.addEventListener("resize", handleResize, { passive: true });
window.addEventListener("orientationchange", handleResize, {
passive: true
});
return () => {
window.removeEventListener("resize", handleResize);
window.removeEventListener("orientationchange", handleResize);
};
}, []);
return { windowHeight, windowWidth };
};
export default useWindowSize;
| 31.791667 | 71 | 0.68152 |
181f14f36033f9e7e719d780267e56c8fa06b14d | 9,551 | js | JavaScript | .vuepress/config.js | cloudtrekkie/AzureTipsAndTricks | ba645f7397f0bd9b9803a3165b35658314f5f273 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | .vuepress/config.js | cloudtrekkie/AzureTipsAndTricks | ba645f7397f0bd9b9803a3165b35658314f5f273 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | .vuepress/config.js | cloudtrekkie/AzureTipsAndTricks | ba645f7397f0bd9b9803a3165b35658314f5f273 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | const currentDateUTC = new Date().toUTCString()
module.exports = {
title: 'Azure Tips and Tricks',
dest: './public',
base: '/AzureTipsAndTricks/',
markdown: {
lineNumbers: true
},
themeConfig: {
domain: 'http://azuredev.tips',
displayAllHeaders: true,
sidebar: 'auto',
searchMaxSuggestions: 10,
repo: 'microsoft/azuretipsandtricks',
repoLabel: 'Star this Repo',
editLinks: true,
editLinkText: 'Edit this page on GitHub',
logo: '/files/vintage.png',
sidebar: [
{
title: 'Home',
collapsable: false,
children: [
'/'
]
},
{
title: 'Tips',
collapsable: false
},
{
title: 'Recently Added',
collapsable: false,
children: ['/blog/tip236','/blog/tip235','/blog/tip234','/blog/tip233','/blog/tip232','/blog/tip231','/blog/tip230','/blog/tip229','/blog/tip228','/blog/tip227','/blog/tip226','/blog/tip225','/blog/tip224','/blog/tip223','/blog/tip222','/blog/tip221','/blog/tip220']
},
{
title: 'App Service',
collapsable: true,
children: ['/blog/tip236','/blog/tip232','/blog/tip218','/blog/tip216','/blog/tip208','/blog/tip16', '/blog/tip20', '/blog/tip21', '/blog/tip22', '/blog/tip23', '/blog/tip26', '/blog/tip27', '/blog/tip28', '/blog/tip29', '/blog/tip30', '/blog/tip31', '/blog/tip32', '/blog/tip33',
'/blog/tip101', '/blog/tip102', '/blog/tip103', '/blog/tip104', '/blog/tip105', '/blog/tip107', '/blog/tip108', '/blog/tip109', '/blog/tip110',
'/blog/tip112', '/blog/tip113', '/blog/tip117', '/blog/tip119', '/blog/tip132', '/blog/tip143',
'/blog/tip144', '/blog/tip149', '/blog/tip184']
},
{
title: 'APIM',
collapsable: true,
children: ['/blog/tip197']
},
{
title: 'Authentication',
collapsable: true,
children: ['/blog/tip190']
},
{
title: 'AzCopy',
collapsable: true,
children: ['/blog/tip81',
'/blog/tip139']
},
{
title: 'Blueprints',
collapsable: true,
children: ['/blog/tip210']
},
{
title: 'CDN',
collapsable: true,
children: ['/blog/tip203']
},
{
title: 'CLI',
collapsable: true,
children: ['/blog/tip200','/blog/tip199','/blog/tip7', '/blog/tip8', '/blog/tip19', '/blog/tip34', '/blog/tip111']
},
{
title: 'Cloud Shell',
collapsable: true,
children: ['/blog/tip11', '/blog/tip13', '/blog/tip14', '/blog/tip15', '/blog/tip17', '/blog/tip49', '/blog/tip69', '/blog/tip127', '/blog/tip131', '/blog/tip142']
},
{
title: 'Cognitive Services',
collapsable: true,
children: ['/blog/tip70', '/blog/tip71', '/blog/tip72', '/blog/tip129', '/blog/tip154']
},
{
title: 'Containers',
collapsable: true,
children: ['/blog/tip236','/blog/tip45', '/blog/tip46', '/blog/tip47', '/blog/tip48', '/blog/tip54', '/blog/tip55', '/blog/tip56', '/blog/tip57', '/blog/tip58', '/blog/tip60']
},
{
title: 'Cosmos DB',
collapsable: true,
children: ['/blog/tip204','/blog/tip185', '/blog/tip65', '/blog/tip66', '/blog/tip67', '/blog/tip68', '/blog/tip152', '/blog/tip166', '/blog/tip167']
},
{
title: 'DevOps',
collapsable: true,
children: ['/blog/tip233','/blog/tip206','/blog/tip168', '/blog/tip169']
},
{
title: 'Front Door',
collapsable: true,
children: ['/blog/tip192']
},
{
title: 'Functions',
collapsable: true,
children: ['/blog/tip211','/blog/tip196','/blog/tip35', '/blog/tip36', '/blog/tip50', '/blog/tip51', '/blog/tip52', '/blog/tip61', '/blog/tip62', '/blog/tip63', '/blog/tip64', '/blog/tip94', '/blog/tip97', '/blog/tip98', '/blog/tip99', '/blog/tip100', '/blog/tip130', '/blog/tip133', '/blog/tip134', '/blog/tip135', '/blog/tip136', '/blog/tip147', '/blog/tip148', '/blog/tip157', '/blog/tip158', '/blog/tip161']
},
{
title: 'HD Insight',
collapsable: true,
children: ['/blog/tip172']
},
{
title: 'iOS',
collapsable: true,
children: ['/blog/tip188', '/blog/tip187']
},
{
title: 'IoT',
collapsable: true,
children: ['/blog/tip96', '/blog/tip114', '/blog/tip122', '/blog/tip123', '/blog/tip124', '/blog/tip125', '/blog/tip126']
},
{
title: 'Key Vault',
collapsable: true,
children: ['/blog/tip180', '/blog/tip181']
},
{
title: 'Kubernetes',
collapsable: true,
children: ['/blog/tip234','/blog/tip230','/blog/tip229','/blog/tip228']
},
{
title: 'Logic Apps',
collapsable: true,
children: ['/blog/tip227','/blog/tip37', '/blog/tip38', '/blog/tip39', '/blog/tip40', '/blog/tip41', '/blog/tip42', '/blog/tip43', '/blog/tip44', '/blog/tip156', '/blog/tip159']
},
{
title: 'Machine Learning',
collapsable: true,
children: ['/blog/tip202', '/blog/tip189', '/blog/tip174', '/blog/tip175']
},
{
title: 'Media Services',
collapsable: true,
children: ['/blog/tip178',
'/blog/tip179']
},
{
title: 'Monitor',
collapsable: true,
children: ['/blog/tip205','/blog/tip195']
},
{
title: 'Portal',
collapsable: true,
children: ['/blog/tip1', '/blog/tip2', '/blog/tip3', '/blog/tip4', '/blog/tip5', '/blog/tip6', '/blog/tip116']
},
{
title: 'PowerShell',
collapsable: true,
children: ['/blog/tip211','/blog/tip198', '/blog/tip194', '/blog/tip24', '/blog/tip120', '/blog/tip137']
},
{
title: 'Productivity',
collapsable: true,
children: ['/blog/tip215','/blog/tip214','/blog/tip213','/blog/tip18', '/blog/tip25', '/blog/tip115', '/blog/tip128', '/blog/tip150', '/blog/tip153', '/blog/tip155', '/blog/tip162', '/blog/tip163', '/blog/tip164', '/blog/tip173', '/blog/tip176', '/blog/tip177', '/blog/tip183']
},
{
title: 'SAP',
collapsable: true,
children: ['/blog/tip170', '/blog/tip171']
},
{
title: 'SDKs',
collapsable: true,
children: ['/blog/tip193']
},
{
title: 'SendGrid',
collapsable: true,
children: ['/blog/tip73']
},
{
title: 'SignalR',
collapsable: true,
children: ['/blog/tip186']
},
{
title: 'SQL',
collapsable: true,
children: ['/blog/tip90', '/blog/tip91', '/blog/tip92', '/blog/tip93', '/blog/tip140', '/blog/tip145', '/blog/tip146']
},
{
title: 'Storage',
collapsable: true,
children: ['/blog/tip212','/blog/tip74', '/blog/tip75', '/blog/tip76', '/blog/tip77', '/blog/tip78', '/blog/tip79', '/blog/tip80', '/blog/tip82', '/blog/tip83', '/blog/tip84', '/blog/tip85', '/blog/tip86', '/blog/tip87', '/blog/tip88', '/blog/tip89', '/blog/tip95', '/blog/tip138', '/blog/tip141']
},
{
title: 'Virtual Machines',
collapsable: true,
children: ['/blog/tip235','/blog/tip209','/blog/tip207','/blog/tip201', '/blog/tip191', '/blog/tip9', '/blog/tip10', '/blog/tip12', '/blog/tip53']
},
{
title: 'VNET',
collapsable: true,
children: ['/blog/tip182']
},
],
nav: [
{ text: 'Home', link: '/' },
{ text: 'Videos', link: 'http://videos.azuredev.tips' },
{ text: 'Live Streaming', link: 'http://twitch.tv/mbcrump' },
{ text: 'Questions?', link: 'https://github.com/Microsoft/AzureTipsAndTricks/issues/' },
{ text: 'RSS Feed', link: 'https://microsoft.github.io/AzureTipsAndTricks/rss.xml' }
]//,
// logo: '/vintage.png'
},
plugins: [
[
'@vuepress/google-analytics',
{
ga: 'UA-17277477-4' // UA-00000000-0
}
],
[
'@vuepress/search',
{
searchMaxSuggestions: 10
}
],
[
'vuepress-plugin-rss',
{
base_url: '/',
site_url: 'https://microsoft.github.io/AzureTipsAndTricks',
copyright: '2019 Microsoft',
filter: frontmatter => frontmatter.date <= new Date(currentDateUTC),
count: 20
}
],
'vuepress-plugin-janitor'
],
head: [
[
'link',
{ rel: 'apple-touch-icon', sizes: '57x57', href: '/apple-icon-57x57.png' }
],
[
'link',
{ rel: 'apple-touch-icon', sizes: '60x60', href: '/apple-icon-60x60.png' }
],
[
'link',
{ rel: 'apple-touch-icon', sizes: '72x72', href: '/apple-icon-72x72.png' }
],
[
'link',
{ rel: 'apple-touch-icon', sizes: '76x76', href: '/apple-icon-76x76.png' }
],
[
'link',
{
rel: 'apple-touch-icon',
sizes: '114x114',
href: '/apple-icon-114x114.png'
}
],
[
'link',
{
rel: 'apple-touch-icon',
sizes: '120x120',
href: '/apple-icon-120x120.png'
}
],
[
'link',
{
rel: 'apple-touch-icon',
sizes: '144x144',
href: '/apple-icon-144x144.png'
}
],
[
'link',
{
rel: 'apple-touch-icon',
sizes: '152x152',
href: '/apple-icon-152x152.png'
}
],
[
'link',
{
rel: 'apple-touch-icon',
sizes: '180x180',
href: '/apple-icon-180x180.png'
}
],
[
'link',
{
rel: 'icon',
type: 'image/png',
sizes: '192x192',
href: '/android-icon-192x192.png'
}
],
[
'link',
{
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: '/favicon-32x32.png'
}
],
[
'link',
{
rel: 'icon',
type: 'image/png',
sizes: '96x96',
href: '/favicon-96x96.png'
}
],
[
'link',
{
rel: 'icon',
type: 'image/png',
sizes: '16x16',
href: '/favicon-16x16.png'
}
],
['link', { rel: 'manifest', href: '/manifest.json' }],
['meta', { name: 'msapplication-TileColor', content: '#ffffff' }],
[
'meta',
{ name: 'msapplication-TileImage', content: '/ms-icon-144x144.png' }
],
['meta', { name: 'theme-color', content: '#ffffff' }],
['script', { async: true, src: "https://platform.twitter.com/widgets.js", charset: "utf-8" }]
]
}
| 27.288571 | 415 | 0.561302 |
181fcbae36d0f3adb282c5686792894a1abd1b4a | 1,178 | js | JavaScript | integrationTests/cypress/support/step_definitions/dogu_integration_test_library_steps.js | cloudogu/scm | 9eb6dcfce58d415a5ec171111fc14f0ba5826e9b | [
"MIT"
] | 2 | 2019-04-24T21:59:26.000Z | 2021-02-15T08:12:39.000Z | integrationTests/cypress/support/step_definitions/dogu_integration_test_library_steps.js | cloudogu/scm | 9eb6dcfce58d415a5ec171111fc14f0ba5826e9b | [
"MIT"
] | 6 | 2018-03-21T12:00:08.000Z | 2021-10-05T15:55:05.000Z | integrationTests/cypress/support/step_definitions/dogu_integration_test_library_steps.js | cloudogu/scm | 9eb6dcfce58d415a5ec171111fc14f0ba5826e9b | [
"MIT"
] | 2 | 2018-08-16T14:37:35.000Z | 2021-05-27T01:20:27.000Z | // Loads all steps from the dogu integration library into this project
const doguTestLibrary = require('@cloudogu/dogu-integration-test-library')
doguTestLibrary.registerSteps()
When("the burger menu is open", () => {
cy.get('button[class=navbar-burger]').click();
});
When("the user clicks the dogu logout button", () => {
Cypress.on('uncaught:exception', () => {
return false;
});
cy.get('button[class=navbar-burger]').click();
cy.get('[data-testid=primary-navigation-logout]').click();
cy.url().should('contain', 'cas/logout');
cy.get('h2[class=banner-heading]').should('be.visible');
});
Then("the user has administrator privileges in the dogu", () => {
Cypress.on('uncaught:exception', () => {
return false;
});
cy.get('button[class=navbar-burger]').click();
cy.get('[data-testid="primary-navigation-admin"]').should('be.visible')
});
Then("the user has no administrator privileges in the dogu", () => {
Cypress.on('uncaught:exception', () => {
return false;
});
cy.get('button[class=navbar-burger]').click();
cy.get('[data-testid="primary-navigation-admin"]').should('not.exist')
});
| 34.647059 | 75 | 0.640917 |
181fcf8ba8748c8b235af4c22e1438b49af18cba | 34,011 | js | JavaScript | test/services/file/fileservice-share-tests.js | gfox1527/azure-storage-node | 1587a87f719286ce53f4f57295c3a61ac113ee4c | [
"Apache-2.0"
] | null | null | null | test/services/file/fileservice-share-tests.js | gfox1527/azure-storage-node | 1587a87f719286ce53f4f57295c3a61ac113ee4c | [
"Apache-2.0"
] | null | null | null | test/services/file/fileservice-share-tests.js | gfox1527/azure-storage-node | 1587a87f719286ce53f4f57295c3a61ac113ee4c | [
"Apache-2.0"
] | 1 | 2021-12-09T09:37:11.000Z | 2021-12-09T09:37:11.000Z | //
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
var assert = require('assert');
var url = require('url');
// Lib includes
var testutil = require('../../framework/util');
var SR = require('../../../lib/common/util/sr');
var TestSuite = require('../../framework/test-suite');
if (testutil.isBrowser()) {
var azure = AzureStorage.File;
} else {
var azure = require('../../../');
}
var Constants = azure.Constants;
var FileUtilities = azure.FileUtilities;
var HttpConstants = Constants.HttpConstants;
var shareNamesPrefix = 'share-test-share-';
var fileService;
var shareName;
var suite = new TestSuite('fileservice-share-tests');
var runOrSkip = testutil.itSkipMock(suite.isMocked);
var skipBrowser = testutil.itSkipBrowser();
var skipMockAndBrowser = testutil.itSkipMockAndBrowser(suite.isMocked);
var timeout = (suite.isRecording || !suite.isMocked) ? 30000 : 10;
describe('FileShare', function () {
before(function (done) {
if (suite.isMocked) {
testutil.POLL_REQUEST_INTERVAL = 0;
}
suite.setupSuite(function () {
fileService = testutil.getFileService(azure);
done();
});
});
after(function (done) {
suite.teardownSuite(done);
});
beforeEach(function (done) {
shareName = suite.getName(shareNamesPrefix);
suite.setupTest(done);
});
afterEach(function (done) {
fileService.deleteShareIfExists(shareName, function (deleteError) {
assert.equal(deleteError, null);
suite.teardownTest(done);
});
});
describe('doesShareExist', function () {
it('should work', function (done) {
fileService.doesShareExist(shareName, function (existsError, existsResult) {
assert.equal(existsError, null);
assert.strictEqual(existsResult.exists, false);
fileService.createShare(shareName, function (createError, share1, createShareResponse) {
assert.equal(createError, null);
assert.notEqual(share1, null);
assert.equal(createShareResponse.statusCode, HttpConstants.HttpResponseCodes.Created);
fileService.doesShareExist(shareName, function (existsError, existsResult2) {
assert.equal(existsError, null);
assert.strictEqual(existsResult2.exists, true);
assert.notEqual(existsResult2.name, null);
assert.notEqual(existsResult2.etag, null);
assert.notEqual(existsResult2.lastModified, null);
done();
});
});
});
});
});
describe('createShare', function () {
it('should detect incorrect share names', function (done) {
assert.throws(function () { fileService.createShare(null, function () { }); },
function(err) {
return (typeof err.name === 'undefined' || err.name === 'ArgumentNullError') && err.message === 'Required argument share for function createShare is not defined';
});
assert.throws(function () { fileService.createShare('', function () { }); },
function(err) {
return (typeof err.name === 'undefined' || err.name === 'ArgumentNullError') && err.message === 'Required argument share for function createShare is not defined';
});
assert.throws(function () { fileService.createShare('as', function () { }); },
function(err) {
if ((typeof err.name === 'undefined' || err.name === 'ArgumentError') && err.message === 'Share name must be between 3 and 63 characters long.') {
return true;
}
});
assert.throws(function () { fileService.createShare('a--s', function () { }); },
function(err){
return (err instanceof SyntaxError) && err.message === 'Share name format is incorrect.';
});
assert.throws(function () { fileService.createShare('cont-', function () { }); },
function(err){
return (err instanceof SyntaxError) && err.message === 'Share name format is incorrect.';
});
assert.throws(function () { fileService.createShare('conTain', function () { }); },
function(err){
return (err instanceof SyntaxError) && err.message === 'Share name format is incorrect.';
});
done();
});
it('should work with options', function (done) {
var quotaValue = 10;
var options = { quota: quotaValue };
fileService.createShare(shareName, options, function (createError, share1, createShareResponse) {
assert.equal(createError, null);
assert.notEqual(share1, null);
if (share1) {
assert.notEqual(share1.name, null);
assert.notEqual(share1.etag, null);
assert.notEqual(share1.lastModified, null);
}
assert.equal(createShareResponse.statusCode, HttpConstants.HttpResponseCodes.Created);
// creating again will result in a duplicate error
fileService.createShare(shareName, function (createError2, share2) {
assert.equal(createError2.code, Constants.FileErrorCodeStrings.SHARE_ALREADY_EXISTS);
assert.equal(share2, null);
fileService.getShareProperties(shareName, function (getError, shareResult, getResponse) {
assert.equal(getError, null);
assert.notEqual(shareResult, null);
assert.notEqual(shareResult.requestId, null);
assert.equal(shareResult.quota, quotaValue);
assert.notEqual(getResponse, null);
assert.equal(getResponse.isSuccessful, true);
fileService.deleteShare(shareName, function (deleteError) {
assert.equal(deleteError, null);
done();
});
});
});
});
});
});
describe('createShareIfNotExists', function() {
it('should create a share if not exists', function (done) {
fileService.createShareIfNotExists(shareName, function (createError, createResult) {
assert.equal(createError, null);
assert.equal(createResult.created, true);
fileService.doesShareExist(shareName, function (existsError, existsResult) {
assert.equal(existsError, null);
assert.equal(existsResult.exists, true);
assert.notEqual(existsResult.etag, null);
assert.notEqual(existsResult.lastModified, null);
fileService.createShareIfNotExists(shareName, function (createError2, createdResult2) {
assert.equal(createError2, null);
assert.equal(createdResult2.created, false);
assert.notEqual(createdResult2.name, null);
assert.notEqual(createdResult2.etag, null);
assert.notEqual(createdResult2.lastModified, null);
fileService.deleteShare(shareName, function (deleteError) {
assert.equal(deleteError, null);
fileService.createShareIfNotExists(shareName, function (createError3) {
assert.notEqual(createError3, null);
assert.equal(createError3.code, 'ShareBeingDeleted');
done();
});
});
});
});
});
});
it('should throw if called without a callback', function (done) {
assert.throws(function () { fileService.createShareIfNotExists('name'); },
function (err) { return typeof err.name === 'undefined' || err.name === 'ArgumentNullError';}
);
done();
});
});
describe('deleteShareIfExists', function() {
it('should delete a share if exists', function (done) {
fileService.doesShareExist(shareName, function(existsError, existsResult){
assert.equal(existsError, null);
assert.strictEqual(existsResult.exists, false);
fileService.deleteShareIfExists(shareName, function (deleteError, deleted) {
assert.equal(deleteError, null);
assert.strictEqual(deleted, false);
fileService.createShare(shareName, function (createError, share1, createShareResponse) {
assert.equal(createError, null);
assert.notEqual(share1, null);
assert.notEqual(share1.name, null);
assert.notEqual(share1.etag, null);
assert.notEqual(share1.lastModified, null);
assert.equal(createShareResponse.statusCode, HttpConstants.HttpResponseCodes.Created);
// delete if exists should succeed
fileService.deleteShareIfExists(shareName, function (deleteError2, deleted2) {
assert.equal(deleteError2, null);
assert.strictEqual(deleted2, true);
fileService.doesShareExist(shareName, function(existsError, existsResult){
assert.equal(existsError, null);
assert.strictEqual(existsResult.exists, false);
done();
});
});
});
});
});
});
it('should throw if called without a callback', function (done) {
assert.throws(function () { fileService.deleteShareIfExists('name'); },
function (err) { return typeof err.name === 'undefined' || err.name === 'ArgumentNullError';}
);
done();
});
});
describe('setShareProperties', function () {
it('should work', function (done) {
fileService.createShareIfNotExists(shareName, function (createError, createResult) {
assert.equal(createError, null);
assert.equal(createResult.created, true);
var quotaValue = 30;
var properties = { quota: quotaValue };
fileService.setShareProperties(shareName, properties, function (setPropError, setPropResult, setPropResponse) {
assert.equal(setPropError, null);
assert.ok(setPropResponse.isSuccessful);
fileService.getShareProperties(shareName, function (getError, share2, getResponse) {
assert.equal(getError, null);
assert.notEqual(share2, null);
assert.notEqual(null, share2.requestId);
assert.equal(share2.quota, quotaValue);
assert.notEqual(getResponse, null);
assert.equal(getResponse.isSuccessful, true);
fileService.deleteShare(shareName, function (deleteError) {
assert.equal(deleteError, null);
done();
});
});
});
});
});
});
describe('getShareProperties', function () {
skipBrowser('should work', function (done) {
fileService.createShareIfNotExists(shareName, function (createError, createResult) {
assert.equal(createError, null);
assert.equal(createResult.created, true);
var metadata = { 'Color': 'Blue' };
fileService.setShareMetadata(shareName, metadata, function (setMetadataError, setMetadataResult, setMetadataResponse) {
assert.equal(setMetadataError, null);
assert.ok(setMetadataResponse.isSuccessful);
fileService.getShareProperties(shareName, function (getError, share2, getResponse) {
assert.equal(getError, null);
assert.notEqual(share2, null);
assert.notEqual(null, share2.requestId);
if (suite.metadataCaseSensitive) {
assert.strictEqual(share2.metadata.Color, metadata.Color);
} else {
assert.strictEqual(share2.metadata.color, metadata.Color);
}
assert.notEqual(getResponse, null);
assert.equal(getResponse.isSuccessful, true);
fileService.deleteShare(shareName, function (deleteError) {
assert.equal(deleteError, null);
done();
});
});
});
});
});
});
describe('setShareMetadata', function () {
it('should work', function (done) {
fileService.createShareIfNotExists(shareName, function (createError, createResult) {
assert.equal(createError, null);
assert.equal(createResult.created, true);
var metadata = { 'class': 'test' };
fileService.setShareMetadata(shareName, metadata, function (setMetadataError, setMetadataResult, setMetadataResponse) {
assert.equal(setMetadataError, null);
assert.ok(setMetadataResponse.isSuccessful);
fileService.getShareMetadata(shareName, function (getMetadataError, shareMetadata, getMetadataResponse) {
assert.equal(getMetadataError, null);
assert.notEqual(shareMetadata, null);
assert.notEqual(shareMetadata.metadata, null);
assert.equal(shareMetadata.metadata.class, 'test');
assert.ok(getMetadataResponse.isSuccessful);
fileService.deleteShare(shareName, function (deleteError) {
assert.equal(deleteError, null);
done();
});
});
});
});
});
it('should merge the metadata', function (done) {
fileService.createShareIfNotExists(shareName, function (createError, createResult) {
assert.equal(createError, null);
assert.equal(createResult.created, true);
var metadata = { color: 'blue', Color: 'Orange', COLOR: 'Red' };
fileService.setShareMetadata(shareName, metadata, function (setMetadataError, setMetadataResult, setMetadataResponse) {
assert.equal(setMetadataError, null);
assert.ok(setMetadataResponse.isSuccessful);
fileService.getShareMetadata(shareName, function (getMetadataError, shareMetadata, getMetadataResponse) {
assert.equal(getMetadataError, null);
assert.notEqual(shareMetadata, null);
assert.notEqual(shareMetadata.metadata, null);
assert.equal(shareMetadata.metadata.color, 'blue,Orange,Red');
assert.ok(getMetadataResponse.isSuccessful);
fileService.deleteShare(shareName, function (deleteError) {
assert.equal(deleteError, null);
done();
});
});
});
});
});
it('should ignore the metadata in the options', function (done) {
fileService.createShareIfNotExists(shareName, function (createError, createResult) {
assert.equal(createError, null);
assert.equal(createResult.created, true);
var metadata = { color: 'blue', Color: 'Orange', COLOR: 'Red' };
var options = { metadata: { color: 'White', Color: 'Black', COLOR: 'yellow' } };
fileService.setShareMetadata(shareName, metadata, options, function (setMetadataError, setMetadataResult, setMetadataResponse) {
assert.equal(setMetadataError, null);
assert.ok(setMetadataResponse.isSuccessful);
fileService.getShareMetadata(shareName, function (getMetadataError, shareMetadata, getMetadataResponse) {
assert.equal(getMetadataError, null);
assert.notEqual(shareMetadata, null);
assert.notEqual(shareMetadata.metadata, null);
assert.strictEqual(shareMetadata.metadata.color, 'blue,Orange,Red');
assert.ok(getMetadataResponse.isSuccessful);
fileService.deleteShare(shareName, function (deleteError) {
assert.equal(deleteError, null);
done();
});
});
});
});
});
});
describe('setShareMetadataThrows', function () {
it('should work', function (done) {
function setShareMetadata(shareName, metadata) {
fileService.setShareMetadata(shareName, metadata, function(){});
}
assert.throws( function() { setShareMetadata(shareName, {'' : 'value1'}); },
function (err) {return (typeof err.name === 'undefined' || err.name === 'ArgumentError') && err.message === SR.METADATA_KEY_INVALID});
assert.throws( function() { setShareMetadata(shareName, {' ' : 'value1'}); },
function (err) {return (typeof err.name === 'undefined' || err.name === 'ArgumentError') && err.message === SR.METADATA_KEY_INVALID});
assert.throws( function() { setShareMetadata(shareName, {'\n\t' : 'value1'}); },
function (err) {return (typeof err.name === 'undefined' || err.name === 'ArgumentError') && err.message === SR.METADATA_KEY_INVALID});
assert.throws( function() { setShareMetadata(shareName, {'key1' : null}); },
function (err) {return (typeof err.name === 'undefined' || err.name === 'ArgumentError') && err.message === SR.METADATA_VALUE_INVALID});
assert.throws( function() { setShareMetadata(shareName, {'key1' : ''}); },
function (err) {return (typeof err.name === 'undefined' || err.name === 'ArgumentError') && err.message === SR.METADATA_VALUE_INVALID});
assert.throws( function() { setShareMetadata(shareName, {'key1' : '\n\t'}); },
function (err) {return (typeof err.name === 'undefined' || err.name === 'ArgumentError') && err.message === SR.METADATA_VALUE_INVALID});
assert.throws( function() { setShareMetadata(shareName, {'key1' : ' '}); },
function (err) {return (typeof err.name === 'undefined' || err.name === 'ArgumentError') && err.message === SR.METADATA_VALUE_INVALID});
done();
});
});
describe('listShares', function () {
it('shouldWork', function (done) {
var shareName1 = suite.getName(shareNamesPrefix);
var metadata1 = {
color: 'orange',
sharenumber: '01',
somemetadataname: 'SomeMetadataValue'
};
var shareName2 = suite.getName(shareNamesPrefix);
var metadata2 = {
color: 'pink',
sharenumber: '02',
somemetadataname: 'SomeMetadataValue'
};
var shareName3 = suite.getName(shareNamesPrefix);
var metadata3 = {
color: 'brown',
sharenumber: '03',
somemetadataname: 'SomeMetadataValue'
};
var shareName4 = suite.getName(shareNamesPrefix);
var metadata4 = {
color: 'blue',
sharenumber: '04',
somemetadataname: 'SomeMetadataValue'
};
var validateAndDeleteShares = function (shares, callback) {
var entries = [];
shares.forEach(function (share) {
if (share.name == shareName1) {
assert.equal(share.metadata.color, metadata1.color);
assert.equal(share.metadata.sharenumber, metadata1.sharenumber);
assert.equal(share.metadata.somemetadataname, metadata1.somemetadataname);
entries.push(share.name);
} else if (share.name == shareName2) {
assert.equal(share.metadata.color, metadata2.color);
assert.equal(share.metadata.sharenumber, metadata2.sharenumber);
assert.equal(share.metadata.somemetadataname, metadata2.somemetadataname);
entries.push(share.name);
} else if (share.name == shareName3) {
assert.equal(share.metadata.color, metadata3.color);
assert.equal(share.metadata.sharenumber, metadata3.sharenumber);
assert.equal(share.metadata.somemetadataname, metadata3.somemetadataname);
entries.push(share.name);
} else if (share.name == shareName4) {
assert.equal(share.metadata.color, metadata4.color);
assert.equal(share.metadata.sharenumber, metadata4.sharenumber);
assert.equal(share.metadata.somemetadataname, metadata4.somemetadataname);
entries.push(share.name);
}
});
fileService.deleteShare(shareName1, function (err) {
assert.equal(null, err);
fileService.deleteShare(shareName2, function (err) {
assert.equal(null, err);
fileService.deleteShare(shareName3, function (err) {
assert.equal(null, err);
fileService.deleteShare(shareName4, function (err) {
assert.equal(null, err);
callback(entries);
});
});
});
});
};
fileService.createShare(shareName1, { metadata: metadata1 }, function (createError1, createShare1, createResponse1) {
assert.equal(createError1, null);
assert.notEqual(createShare1, null);
assert.ok(createResponse1.isSuccessful);
fileService.createShare(shareName2, { metadata: metadata2 }, function (createError2, createShare2, createResponse2) {
assert.equal(createError2, null);
assert.notEqual(createShare2, null);
assert.ok(createResponse2.isSuccessful);
fileService.createShare(shareName3, { metadata: metadata3 }, function (createError3, createShare3, createResponse3) {
assert.equal(createError3, null);
assert.notEqual(createShare3, null);
assert.ok(createResponse3.isSuccessful);
fileService.createShare(shareName4, { metadata: metadata4 }, function (createError4, createShare4, createResponse4) {
assert.equal(createError4, null);
assert.notEqual(createShare4, null);
assert.ok(createResponse4.isSuccessful);
var options = {
'maxResults': 3,
'include': 'metadata',
};
listShares(shareNamesPrefix, options, null, function (shares) {
validateAndDeleteShares(shares, function(entries){
assert.equal(entries.length, 4);
done();
});
});
});
});
});
});
});
it('noPrefix', function (done) {
var listSharesWithoutPrefix = function (options, token, callback) {
fileService.listSharesSegmented(token, options, function(error, result) {
assert.equal(error, null);
var token = result.continuationToken;
if(token) {
listSharesWithoutPrefix(options, token, callback);
} else {
callback();
}
});
};
listSharesWithoutPrefix(null, null, function () {
done();
});
});
it('strangePrefix', function (done) {
listShares('中文', null, null, function (shares) {
assert.equal(shares.length, 0);
done();
});
});
});
describe('shared access signature', function () {
skipBrowser('should work with shared access policy', function (done) {
var share = 'testshare';
var directoryName = "testdir";
var fileName = "testfile";
var fileServiceassert = azure.createFileService('storageAccount', 'storageAccessKey', 'host.com:80');
var sharedAccessPolicy = {
AccessPolicy: {
Expiry: new Date('February 12, 2015 11:03:40 am GMT')
}
};
var fileUrl = fileServiceassert.getUrl(share, directoryName, fileName, fileServiceassert.generateSharedAccessSignature(share, directoryName, fileName, sharedAccessPolicy));
var parsedUrl = url.parse(fileUrl);
assert.strictEqual(parsedUrl.protocol, 'https:');
assert.strictEqual(parsedUrl.port, '80');
assert.strictEqual(parsedUrl.hostname, 'host.com');
assert.strictEqual(parsedUrl.pathname, '/' + share + '/' + directoryName + '/' + fileName);
assert.strictEqual(parsedUrl.query, 'se=2015-02-12T11%3A03%3A40Z&sv=2018-03-28&sr=f&sig=%2Bo5J7of2I0EId7I3zQnu4%2BSirJiDbgifvbOmmYRg1f8%3D');
done();
});
// Skip this case in nock because the signing key is different between live run and mocked run
skipMockAndBrowser('should work with share and file policies', function (done) {
var readWriteSharePolicy = {
AccessPolicy: {
Permissions: 'rw',
Expiry: new Date('2020-10-01')
}
};
var readCreateSharePolicy = {
AccessPolicy: {
Permissions: 'rc',
Expiry: new Date('2020-10-01')
}
};
var filePolicy = {
AccessPolicy: {
Permissions: 'd',
Expiry: new Date('2020-10-10')
}
};
fileService.createShareIfNotExists(shareName, function (createError, share, createResponse) {
var fileName = suite.getName("file-");
var directoryName = '.';
var shareSas = fileService.generateSharedAccessSignature(shareName, directoryName, null, readWriteSharePolicy);
var fileServiceShareSas = azure.createFileServiceWithSas(fileService.host, shareSas);
fileServiceShareSas.createFile(shareName, directoryName, fileName, 5, function (createError, file, createResponse) {
assert.equal(createError, null);
assert.strictEqual(file.share, shareName);
assert.strictEqual(file.directory, directoryName);
assert.strictEqual(file.name, fileName);
var fileSas = fileService.generateSharedAccessSignature(shareName, directoryName, fileName, filePolicy);
var fileServiceFileSas = azure.createFileServiceWithSas(fileService.host, fileSas);
fileServiceFileSas.deleteFile(shareName, directoryName, fileName, function (deleteError) {
assert.equal(deleteError, null);
shareSas = fileService.generateSharedAccessSignature(shareName, directoryName, null, readCreateSharePolicy);
fileServiceShareSas = azure.createFileServiceWithSas(fileService.host, shareSas);
fileServiceShareSas.createFile(shareName, directoryName, fileName, 5, function (createError, file, createResponse) {
assert.equal(createError, null);
assert.strictEqual(file.share, shareName);
assert.strictEqual(file.directory, directoryName);
assert.strictEqual(file.name, fileName);
fileServiceFileSas.deleteFile(shareName, directoryName, fileName, function (deleteError) {
assert.equal(deleteError, null);
done();
});
});
});
});
});
});
});
describe('getShareAcl', function () {
skipBrowser('should work', function (done) {
fileService.createShareIfNotExists(shareName, function () {
fileService.getShareAcl(shareName, function (shareAclError, shareResult, shareAclResponse) {
assert.equal(shareAclError, null);
assert.notEqual(shareResult, null);
if (shareResult) {
assert.equal(shareResult.publicAccessLevel, FileUtilities.SharePublicAccessType.OFF);
}
assert.equal(shareAclResponse.isSuccessful, true);
done();
});
});
});
});
describe('setShareAcl', function () {
skipBrowser('should work with policies', function (done) {
var readWriteStartDate = new Date(Date.UTC(2012, 10, 10));
var readWriteExpiryDate = new Date(readWriteStartDate);
readWriteExpiryDate.setMinutes(readWriteStartDate.getMinutes() + 10);
readWriteExpiryDate.setMilliseconds(999);
var signedIdentifiers = {
readwrite: {
Start: readWriteStartDate,
Expiry: readWriteExpiryDate,
Permissions: 'rw'
},
read: {
Expiry: readWriteStartDate,
Permissions: 'r'
}
};
fileService.createShareIfNotExists(shareName, function () {
var directoryName = suite.getName('dir-');
fileService.createDirectoryIfNotExists(shareName, directoryName, function (directoryError, directoryResult, directoryResponse) {
assert.equal(directoryError, null);
assert.notEqual(directoryResult, null);
fileService.setShareAcl(shareName, signedIdentifiers, function (setAclError, setAclShare1, setResponse1) {
assert.equal(setAclError, null);
assert.notEqual(setAclShare1, null);
assert.ok(setResponse1.isSuccessful);
setTimeout(function () {
fileService.getShareAcl(shareName, function (getAclError, getAclShare1, getResponse1) {
assert.equal(getAclError, null);
assert.notEqual(getAclShare1, null);
assert.equal(getAclShare1.publicAccessLevel, FileUtilities.SharePublicAccessType.OFF);
assert.equal(getAclShare1.signedIdentifiers.readwrite.Expiry.getTime(), readWriteExpiryDate.getTime());
assert.ok(getResponse1.isSuccessful);
fileService.setShareAcl(shareName, {}, function (setAclError2, setAclShare2, setResponse2) {
assert.equal(setAclError2, null);
assert.notEqual(setAclShare2, null);
assert.ok(setResponse2.isSuccessful);
setTimeout(function () {
fileService.getShareAcl(shareName, function (getAclError2, getAclShare2, getResponse3) {
assert.equal(getAclError2, null);
assert.notEqual(getAclShare2, null);
assert.equal(getAclShare2.publicAccessLevel, FileUtilities.SharePublicAccessType.OFF);
assert.ok(getResponse3.isSuccessful);
done();
});
}, timeout);
});
});
}, timeout);
});
});
});
});
skipBrowser('should work with signed identifiers', function (done) {
var signedIdentifiers = {
id1: {
Start: '2009-10-10T00:00:00.123Z',
Expiry: '2009-10-11T00:00:00.456Z',
Permissions: 'r'
},
id2: {
Start: '2009-11-10T00:00:00.006Z',
Expiry: '2009-11-11T00:00:00.4Z',
Permissions: 'w'
}
};
fileService.createShareIfNotExists(shareName, function () {
var directoryName = suite.getName('dir-');
var fileName = suite.getName('file-');
var fileText = 'Hello World!';
fileService.createDirectoryIfNotExists(shareName, directoryName, function (directoryError, directoryResult, directoryResponse) {
assert.equal(directoryError, null);
assert.notEqual(directoryResult, null);
fileService.setShareAcl(shareName, signedIdentifiers, function (setAclError, setAclShare, setAclResponse) {
assert.equal(setAclError, null);
assert.notEqual(setAclShare, null);
assert.ok(setAclResponse.isSuccessful);
setTimeout(function () {
fileService.getShareAcl(shareName, function (getAclError, shareAcl, getAclResponse) {
assert.equal(getAclError, null);
assert.notEqual(shareAcl, null);
assert.notEqual(getAclResponse, null);
if (getAclResponse) {
assert.equal(getAclResponse.isSuccessful, true);
}
assert.equal(shareAcl.signedIdentifiers.id1.Start.getTime(), new Date('2009-10-10T00:00:00.123Z').getTime());
assert.equal(shareAcl.signedIdentifiers.id1.Expiry.getTime(), new Date('2009-10-11T00:00:00.456Z').getTime());
assert.equal(shareAcl.signedIdentifiers.id1.Permissions, 'r');
assert.equal(shareAcl.signedIdentifiers.id2.Start.getTime(), new Date('2009-11-10T00:00:00.006Z').getTime());
assert.equal(shareAcl.signedIdentifiers.id2.Start.getMilliseconds(), 6);
assert.equal(shareAcl.signedIdentifiers.id2.Expiry.getTime(), new Date('2009-11-11T00:00:00.4Z').getTime());
assert.equal(shareAcl.signedIdentifiers.id2.Expiry.getMilliseconds(), 400);
assert.equal(shareAcl.signedIdentifiers.id2.Permissions, 'w');
done();
});
}, timeout);
});
});
});
});
});
describe('getShareStats', function () {
it('should work', function (done) {
fileService.createShareIfNotExists(shareName, function (createError, createResult) {
assert.equal(createError, null);
assert.equal(createResult.created, true);
fileService.getShareStats(shareName, function (getError, stats, getResponse) {
assert.equal(getError, null);
assert.equal(stats.shareStats.shareUsage, 0);
var fileText = 'hi there';
var fileName = suite.getName("file-");
fileService.createFileFromText(shareName, '', fileName, fileText, function (uploadErr) {
assert.equal(uploadErr, null);
fileService.getShareStats(shareName, function (getError, stats, getResponse) {
assert.equal(getError, null);
assert.equal(stats.shareStats.shareUsage, 1);
fileService.deleteShare(shareName, function (deleteError) {
assert.equal(deleteError, null);
done();
});
});
});
});
});
});
});
});
function listShares (prefix, options, token, callback) {
var entries = [];
// Helper function that allows us to do a full listing.
var recursionHelper = function(err, result) {
assert.equal(err, null);
entries.push.apply(entries, result.entries);
if (result.continuationToken) {
// call list shares again with the new continuation token
fileService.listSharesSegmentedWithPrefix(
prefix,
result.continuationToken,
options,
recursionHelper);
} else {
callback(entries);
}
};
fileService.listSharesSegmentedWithPrefix(prefix, token, options, recursionHelper);
} | 41.225455 | 178 | 0.619917 |
18207509b92c889cd884af72aa8fcc3692c5228f | 4,291 | js | JavaScript | src/adjectives.js | creately/project-name-generator | 41d0a9de9e7aa62b71d49d804409532cfd45f5e7 | [
"ISC"
] | null | null | null | src/adjectives.js | creately/project-name-generator | 41d0a9de9e7aa62b71d49d804409532cfd45f5e7 | [
"ISC"
] | 1 | 2018-11-06T09:48:42.000Z | 2018-11-06T09:48:42.000Z | src/adjectives.js | creately/project-name-generator | 41d0a9de9e7aa62b71d49d804409532cfd45f5e7 | [
"ISC"
] | 1 | 2018-10-21T07:54:06.000Z | 2018-10-21T07:54:06.000Z | module.exports =
[ 'active',
'adorable',
'adventurous',
'affectionate',
'agreeable',
'amazing',
'amusing',
'ancient',
'angry',
'annoying',
'anxious',
'arrogant',
'artistic',
'astonishing',
'attractive',
'awesome',
'awkward',
'bashful',
'beautiful',
'beefy',
'bewildered',
'big',
'bitter',
'bizarre',
'blessed',
'blissful',
'blushing',
'boiling',
'bold',
'bored',
'boring',
'bossy',
'bouncy',
'brainy',
'brave',
'breathtaking',
'bright',
'brilliant',
'broad',
'bumpy',
'burly',
'busy',
'calm',
'canny',
'careful',
'careless',
'caring',
'cautious',
'charmed',
'charming',
'cheeky',
'cheerful',
'cheerful',
'chivalrous',
'classy',
'clever',
'clumsy',
'cold',
'colorful',
'comical',
'compassionate',
'concerned',
'condescending',
'confused',
'conscious',
'cool',
'cooperative',
'coordinated',
'courageous',
'cowardly',
'cozy',
'crabby',
'crafty',
'crazy',
'creative',
'creepy',
'cuddly',
'cultured',
'curious',
'cute',
'daffy',
'dashing',
'dazzling',
'dear',
'delicate',
'delightful',
'determined',
'difficult',
'disobedient',
'doubtful',
'dramatic',
'dreamy',
'dynamic',
'eccentric',
'egocentric',
'elderly',
'embarrassed',
'enchanted',
'energetic',
'energized',
'entertaining',
'enthusiastic',
'envious',
'excited',
'extraordinary',
'fainthearted',
'fake',
'familiar',
'famous',
'fancy',
'fantastic',
'fascinated',
'festive',
'fiery',
'flawless',
'flourishing',
'flowery',
'fluffy',
'flying',
'forgetful',
'frank',
'freezing',
'friendly',
'frightened',
'fun',
'funny',
'furry',
'futuristic',
'gaudy',
'gentle',
'gifted',
'gigantic',
'glamorous',
'gleeful',
'gloomy',
'glorious',
'golden',
'goofy',
'graceful',
'grateful',
'greedy',
'groovy',
'grouchy',
'grumpy',
'guilty',
'happy',
'heavy',
'helpful',
'high-spirited',
'hilarious',
'honest',
'hungry',
'hypercritical',
'hysterical',
'imaginary',
'imaginative',
'incredible',
'innocent',
'intelligent',
'interesting',
'jazzy',
'jealous',
'jolly',
'jovial',
'joyful',
'jumpy',
'kind',
'kind-hearted',
'kindhearted',
'knowledgeable',
'lawful',
'lazy',
'learned',
'likeable',
'little',
'lively',
'loving',
'loyal',
'lucky',
'lying',
'magical',
'magnificent',
'majestic',
'malicious',
'marvelous',
'materialistic',
'mellow',
'merry',
'messy',
'miniature',
'mischievous',
'modern',
'modest',
'moral',
'mushy',
'musical',
'mysterious',
'neat',
'needy',
'nervous',
'new',
'nice',
'noble',
'noisy',
'nosy',
'nutty',
'obedient',
'obnoxious',
'observant',
'odd',
'old',
'optimistic',
'ordinary',
'overconfident',
'panicky',
'pink',
'playful',
'pleasant',
'pleased',
'possessive',
'precious',
'pretty',
'problem-solving',
'promising',
'prompt',
'prosperous',
'proud',
'punctual',
'pushy',
'puzzled',
'quarrelsome',
'quick-tempered',
'quiet',
'quirky',
'rabid',
'radioactive',
'rare',
'rebel',
'reliable',
'remarkable',
'responsible',
'righteous',
'romantic',
'royal',
'rude',
'sassy',
'scary',
'secretive',
'selfish',
'sensitive',
'serious',
'shallow',
'sharp',
'shiny',
'shrewd',
'shy',
'silent',
'silly',
'simple',
'skillful',
'sleepy',
'slimy',
'sloppy',
'small',
'smiling',
'snappy',
'sneezy',
'snobbish',
'social',
'sophisticated',
'sour',
'spiritual',
'spooky',
'stingy',
'strange',
'successful',
'sulky',
'sunny',
'superb',
'superstitious',
'supreme',
'swanky',
'sweet',
'sympathetic',
'tacky',
'talented',
'tasteful',
'tasteless',
'teeny',
'thankful',
'therapeutic',
'thoughtful',
'thoughtless',
'thrilled',
'ticklish',
'tidy',
'tiny',
'tired',
'tough',
'trustworthy',
'truthful',
'unbiased',
'undefeated',
'uninterested',
'unknown',
'untidy',
'uplifting',
'uptight',
'valuable',
'victorious',
'wacky',
'wanted',
'warm',
'wiggly',
'wise',
'witty',
'wonderful',
'wondrous',
'worried',
'yellow',
'young' ];
| 13.28483 | 20 | 0.548357 |
182116e83745d78af27105780f548dcb5455dfda | 600 | js | JavaScript | test/internal/laws/Bifunctor.js | wiltonruntime/sanctuary | 07d28cbe7549eb2907a6432e961e6476c3c44d54 | [
"MIT"
] | null | null | null | test/internal/laws/Bifunctor.js | wiltonruntime/sanctuary | 07d28cbe7549eb2907a6432e961e6476c3c44d54 | [
"MIT"
] | null | null | null | test/internal/laws/Bifunctor.js | wiltonruntime/sanctuary | 07d28cbe7549eb2907a6432e961e6476c3c44d54 | [
"MIT"
] | null | null | null | 'use strict';
var bimap = require('../bimap');
var compose = require('../compose_');
var forall = require('../forall');
var id = require('../id');
module.exports = function(equals) {
return forall({
// bimap id id p = p
identity: function(p) {
var lhs = bimap(id)(id)(p);
var rhs = p;
return equals(lhs)(rhs);
},
// bimap (f . g) (h . i) p = bimap f h (bimap g i p)
composition: function(p, f, g, h, i) {
var lhs = bimap(compose(f)(g))(compose(h)(i))(p);
var rhs = bimap(f)(h)(bimap(g)(i)(p));
return equals(lhs)(rhs);
}
});
};
| 21.428571 | 57 | 0.526667 |
1822126ba789b473f69174328fcc4dece526769c | 1,040 | js | JavaScript | src-noconflict/snippets/sql.js | websharks/ace-builds | 423f576e59173fc866189da37f9c15458082a740 | [
"BSD-3-Clause"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | src-noconflict/snippets/sql.js | websharks/ace-builds | 423f576e59173fc866189da37f9c15458082a740 | [
"BSD-3-Clause"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | src-noconflict/snippets/sql.js | websharks/ace-builds | 423f576e59173fc866189da37f9c15458082a740 | [
"BSD-3-Clause"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | ace.define("ace/snippets/sql",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText = "snippet tbl\n\
create table ${1:table} (\n\
${2:columns}\n\
);\n\
snippet col\n\
${1:name} ${2:type} ${3:default ''} ${4:not null}\n\
snippet ccol\n\
${1:name} varchar2(${2:size}) ${3:default ''} ${4:not null}\n\
snippet ncol\n\
${1:name} number ${3:default 0} ${4:not null}\n\
snippet dcol\n\
${1:name} date ${3:default sysdate} ${4:not null}\n\
snippet ind\n\
create index ${3:$1_$2} on ${1:table}(${2:column});\n\
snippet uind\n\
create unique index ${1:name} on ${2:table}(${3:column});\n\
snippet tblcom\n\
comment on table ${1:table} is '${2:comment}';\n\
snippet colcom\n\
comment on column ${1:table}.${2:column} is '${3:comment}';\n\
snippet addcol\n\
alter table ${1:table} add (${2:column} ${3:type});\n\
snippet seq\n\
create sequence ${1:name} start with ${2:1} increment by ${3:1} minvalue ${4:1};\n\
snippet s*\n\
select * from ${1:table}\n\
";
exports.scope = "sql";
});
| 30.588235 | 98 | 0.625 |
1822c22eb85439dd684e8daceb1d2e33ab83ba09 | 849 | js | JavaScript | node_modules/@glidejs/glide/tests/unit/object.test.js | xFelipeRR/atendti_web | a31b0cce0a74339008d0fde2ceac6e4115b2c123 | [
"MIT"
] | 4 | 2019-02-14T15:54:49.000Z | 2022-02-06T21:03:37.000Z | node_modules/@glidejs/glide/tests/unit/object.test.js | xFelipeRR/atendti_web | a31b0cce0a74339008d0fde2ceac6e4115b2c123 | [
"MIT"
] | 6 | 2020-02-11T23:30:28.000Z | 2022-03-11T23:34:45.000Z | node_modules/@glidejs/glide/tests/unit/object.test.js | xFelipeRR/atendti_web | a31b0cce0a74339008d0fde2ceac6e4115b2c123 | [
"MIT"
] | 1 | 2019-10-15T15:19:48.000Z | 2019-10-15T15:19:48.000Z | import { define, mergeOptions } from '../../src/utils/object'
describe('Function', () => {
test('`define` should create object getters and setters', () => {
let obj = {}
expect(typeof obj.property).toBe('undefined')
define(obj, 'property', {
get () {
return this._prop
},
set (value) {
this._prop = value
}
})
obj.property = 'value'
expect(obj.property).toBe('value')
})
test('`merge` should deep merge defaults and options object', () => {
let obj = mergeOptions(
{
a: 1,
b: 2,
classes: {
d: 3,
e: 4
}
},
{
a: 5,
classes: {
d: 6
}
}
)
expect(obj).toEqual({
a: 5,
b: 2,
classes: {
d: 6,
e: 4
}
})
})
})
| 16.326923 | 71 | 0.432273 |
1822eb8aff54d1adc3d28e478a755862a7e555d2 | 1,284 | js | JavaScript | src/Navbar/Navbar.js | Amadek/tracksabout-client | 153838a7c9e19500e1df58e66d2758d706ab5dc1 | [
"MIT"
] | null | null | null | src/Navbar/Navbar.js | Amadek/tracksabout-client | 153838a7c9e19500e1df58e66d2758d706ab5dc1 | [
"MIT"
] | null | null | null | src/Navbar/Navbar.js | Amadek/tracksabout-client | 153838a7c9e19500e1df58e66d2758d706ab5dc1 | [
"MIT"
] | null | null | null | import React from 'react';
import NavBarState from './NavbarState';
export default class Navbar extends React.Component {
render () {
return (
<nav className='navbar navbar-expand-lg navbar-dark bg-dark'>
<div className='container-fluid'>
<span className='navbar-brand' role='button' onClick={() => this.props.onNavItemClick(NavBarState.home)}>TracksAbout</span>
<button
className='navbar-toggler' type='button'
data-bs-toggle='collapse' data-bs-target='#navbarNav'
aria-controls='navbarNav' aria-expanded='false' aria-label='Toggle navigation'
>
<span className='navbar-toggler-icon' />
</button>
<div className='collapse navbar-collapse' id='navbarNav'>
<div className='navbar-nav'>
<span className='nav-link' role='button' onClick={() => this.props.onNavItemClick(NavBarState.search)}>Search</span>
<span className='nav-link' role='button' onClick={() => this.props.onNavItemClick(NavBarState.upload)}>Upload</span>
<span className='nav-link' role='button' onClick={() => this.props.onNavItemClick(NavBarState.queue)}>Queue</span>
</div>
</div>
</div>
</nav>
);
}
}
| 44.275862 | 133 | 0.616822 |
1822fc03ed95f65755bfc1fba698b5c9e320f654 | 4,928 | js | JavaScript | src/components/ui/react-select-overrides.js | d2cube/d2cube | 40268f51e5b74f3c14c1c1aaea8ce9db38dc3ea2 | [
"MIT"
] | 8 | 2021-09-17T17:37:53.000Z | 2022-03-28T10:15:16.000Z | src/components/ui/react-select-overrides.js | chrisrzhou/d2cube-mirror | 40268f51e5b74f3c14c1c1aaea8ce9db38dc3ea2 | [
"MIT"
] | 10 | 2021-09-14T08:42:27.000Z | 2021-09-22T06:18:39.000Z | src/components/ui/react-select-overrides.js | d2cube/d2cube | 40268f51e5b74f3c14c1c1aaea8ce9db38dc3ea2 | [
"MIT"
] | null | null | null | import {components as rsComponents} from 'react-windowed-select';
import {k, props} from 'uinix-fp';
import {Element, useTheme} from 'uinix-ui';
import BrandText from './brand-text.js';
// eslint-disable-next-line react-hooks/rules-of-hooks
const theme = useTheme();
// TODO: uinix-ui to allow accessing theme values via property path
const themedStyles = {
bordered: props('bordered')(theme.borders),
borderWidth: props('border')(theme.borderWidths),
diabloFont: props('diablo')(theme.fontFamilies),
bodyFont: props('body')(theme.fontFamilies),
fontSizeSmall: props('s')(theme.fontSizes),
hover: props('hover')(theme.opacities),
interfaceActive: props('interface.active')(theme.colors),
interfaceBackground: props('interface.background')(theme.colors),
interfaceHover: props('interface.hover')(theme.colors),
borderColor: props('interface.border')(theme.colors),
brandPrimaryColor: props('brand.primary')(theme.colors),
textPrimaryColor: props('text.primary')(theme.colors),
textMutedColor: props('text.muted')(theme.colors),
defaultFontSize: props('m')(theme.fontSizes),
spacingExtraSmall: props('xs')(theme.spacings),
spacingSmall: props('s')(theme.spacings),
spacingMedium: props('m')(theme.spacings),
};
export const components = {
DropdownIndicator: k(null),
IndicatorSeparator: k(null),
Menu: (props) => {
const {children, getValue, selectProps, ...rest} = props;
const {isMulti, max} = selectProps;
const hasExceededMaxMultiSelection =
isMulti && max && getValue().length >= max;
return (
<rsComponents.Menu {...rest}>
{hasExceededMaxMultiSelection ? (
<Element p="s">
<BrandText
color="text.muted"
text={`Only ${max} selections allowed`}
/>
</Element>
) : (
children
)}
</rsComponents.Menu>
);
},
};
export const styles = {
clearIndicator: () => ({
color: themedStyles.borderColor,
display: 'flex',
}),
container: () => ({
fontSize: themedStyles.fontSizeSmall,
position: 'relative',
width: '100%',
}),
control: () => ({
backgroundColor: themedStyles.interfaceBackground,
border: themedStyles.bordered,
display: 'flex',
fontFamily: themedStyles.diabloFont,
justifyContent: 'space-between',
padding: themedStyles.spacingSmall,
'> div': {
padding: 0,
},
':hover': {
border: themedStyles.bordered,
},
}),
groupHeading: () => ({
borderBottom: themedStyles.bordered,
borderTop: themedStyles.bordered,
color: themedStyles.textMutedColor,
fontFamily: themedStyles.diabloFont,
fontSize: themedStyles.largeFontSize,
padding: themedStyles.spacingSmall,
marginTop: `calc(-${themedStyles.spacingMedium} - ${themedStyles.borderWidth})`,
}),
input: () => ({
color: themedStyles.textPrimaryColor,
fontFamily: themedStyles.bodyFont,
}),
menuList: () => ({
backgroundColor: themedStyles.interfaceBackground,
maxHeight: 400,
overflowY: 'auto',
}),
menu: () => ({
backgroundColor: themedStyles.interfaceBackground,
border: themedStyles.bordered,
color: themedStyles.textPrimaryColor,
left: 0,
marginTop: themedStyles.spacingSmall,
position: 'absolute',
right: 0,
'> div': {
padding: 0,
},
zIndex: 1,
}),
multiValueLabel: () => ({
color: themedStyles.brandPrimaryColor,
fontSize: themedStyles.fontSizeSmall,
paddingLeft: themedStyles.spacingSmall,
paddingRight: themedStyles.spacingSmall,
}),
multiValue: () => ({
backgroundColor: themedStyles.interfaceBackground,
border: themedStyles.bordered,
display: 'flex',
margin: themedStyles.spacingExtraSmall,
paddingLeft: themedStyles.spacingSmall,
paddingRight: themedStyles.spacingSmall,
}),
multiValueRemove: () => ({
color: themedStyles.borderColor,
display: 'flex',
alignItems: 'center',
':hover': {
opacity: themedStyles.hover,
},
paddingLeft: themedStyles.spacingExtraSmall,
paddingRight: themedStyles.spacingExtraSmall,
}),
noOptionsMessage: () => ({
fontFamily: themedStyles.diabloFont,
color: themedStyles.textMutedColor,
padding: themedStyles.spacingSmall,
}),
option: (_, state) => ({
backgroundColor: state.isSelected
? themedStyles.interfaceActive
: state.isFocused
? themedStyles.interfaceHover
: themedStyles.interfaceBackground,
fontFamily: themedStyles.diabloFont,
fontSize: themedStyles.fontSizeSmall,
padding: themedStyles.spacingSmall,
':hover': {
backgroundColor: state.isSelected
? themedStyles.interfaceActive
: themedStyles.interfaceHover,
},
}),
placeholder: () => ({
color: themedStyles.textMutedColor,
}),
singleValue: () => ({
color: themedStyles.textPrimaryColor,
flex: 'auto',
}),
};
| 30.233129 | 84 | 0.666193 |
182319e2743e3ad2fe3531e38a7657a1b7ca062f | 25,065 | js | JavaScript | src/Tether.js | skylark-integration/skylark-tether | a0a87af474cd7ce5415842db6dbcf4403a1b73af | [
"MIT"
] | null | null | null | src/Tether.js | skylark-integration/skylark-tether | a0a87af474cd7ce5415842db6dbcf4403a1b73af | [
"MIT"
] | 4 | 2020-09-08T00:23:32.000Z | 2021-09-02T08:06:24.000Z | src/Tether.js | skylark-integration/skylark-tether | a0a87af474cd7ce5415842db6dbcf4403a1b73af | [
"MIT"
] | null | null | null | define([
"skylark-langx/skylark",
'./abutment',
'./constraint',
'./shift',
'./evented',
'./utils/classes',
'./utils/deferred',
'./utils/general',
'./utils/offset',
'./utils/bounds',
'./utils/parents',
'./utils/type-check'
], function (skylark,Abutment, Constraint, Shift, evented, _classes, deferred, general, _offset, bounds, parents, typecheck) {
'use strict';
const TetherBase = {
modules: [
Constraint,
Abutment,
Shift
]
};
function isFullscreenElement(e) {
let d = e.ownerDocument;
let fe = d.fullscreenElement || d.webkitFullscreenElement || d.mozFullScreenElement || d.msFullscreenElement;
return fe === e;
}
function within(a, b, diff = 1) {
return a + diff >= b && b >= a - diff;
}
const transformKey = (() => {
if (typecheck.isUndefined(document)) {
return '';
}
const el = document.createElement('div');
const transforms = [
'transform',
'WebkitTransform',
'OTransform',
'MozTransform',
'msTransform'
];
for (let i = 0; i < transforms.length; ++i) {
const key = transforms[i];
if (el.style[key] !== undefined) {
return key;
}
}
})();
const tethers = [];
const position = () => {
tethers.forEach(tether => {
tether.position(false);
});
deferred.flush();
};
function now() {
return performance.now();
}
(() => {
let lastCall = null;
let lastDuration = null;
let pendingTimeout = null;
const tick = () => {
if (!typecheck.isUndefined(lastDuration) && lastDuration > 16) {
lastDuration = Math.min(lastDuration - 16, 250);
pendingTimeout = setTimeout(tick, 250);
return;
}
if (!typecheck.isUndefined(lastCall) && now() - lastCall < 10) {
return;
}
if (pendingTimeout != null) {
clearTimeout(pendingTimeout);
pendingTimeout = null;
}
lastCall = now();
position();
lastDuration = now() - lastCall;
};
if (!typecheck.isUndefined(window) && !typecheck.isUndefined(window.addEventListener)) {
[
'resize',
'scroll',
'touchmove'
].forEach(event => {
window.addEventListener(event, tick);
});
}
})();
class TetherClass extends evented.Evented {
constructor(options) {
super();
this.position = this.position.bind(this);
tethers.push(this);
this.history = [];
this.setOptions(options, false);
TetherBase.modules.forEach(module => {
if (!typecheck.isUndefined(module.initialize)) {
module.initialize.call(this);
}
});
this.position();
}
setOptions(options, pos = true) {
const defaults = {
offset: '0 0',
targetOffset: '0 0',
targetAttachment: 'auto auto',
classPrefix: 'tether',
bodyElement: document.body
};
this.options = general.extend(defaults, options);
let {element, target, targetModifier, bodyElement} = this.options;
this.element = element;
this.target = target;
this.targetModifier = targetModifier;
if (typeof bodyElement === 'string') {
bodyElement = document.querySelector(bodyElement);
}
this.bodyElement = bodyElement;
if (this.target === 'viewport') {
this.target = document.body;
this.targetModifier = 'visible';
} else if (this.target === 'scroll-handle') {
this.target = document.body;
this.targetModifier = 'scroll-handle';
}
[
'element',
'target'
].forEach(key => {
if (typecheck.isUndefined(this[key])) {
throw new Error('Tether Error: Both element and target must be defined');
}
if (!typecheck.isUndefined(this[key].jquery)) {
this[key] = this[key][0];
} else if (typecheck.isString(this[key])) {
this[key] = document.querySelector(this[key]);
}
});
this._addClasses();
if (!this.options.attachment) {
throw new Error('Tether Error: You must provide an attachment');
}
this.targetAttachment = _offset.parseTopLeft(this.options.targetAttachment);
this.attachment = _offset.parseTopLeft(this.options.attachment);
this.offset = _offset.parseTopLeft(this.options.offset);
this.targetOffset = _offset.parseTopLeft(this.options.targetOffset);
if (!typecheck.isUndefined(this.scrollParents)) {
this.disable();
}
if (this.targetModifier === 'scroll-handle') {
this.scrollParents = [this.target];
} else {
this.scrollParents = parents.getScrollParents(this.target);
}
if (!(this.options.enabled === false)) {
this.enable(pos);
}
}
getTargetBounds() {
if (!typecheck.isUndefined(this.targetModifier)) {
if (this.targetModifier === 'visible') {
return bounds.getVisibleBounds(this.bodyElement, this.target);
} else if (this.targetModifier === 'scroll-handle') {
return bounds.getScrollHandleBounds(this.bodyElement, this.target);
}
} else {
return bounds.getBounds(this.bodyElement, this.target);
}
}
clearCache() {
this._cache = {};
}
cache(k, getter) {
if (typecheck.isUndefined(this._cache)) {
this._cache = {};
}
if (typecheck.isUndefined(this._cache[k])) {
this._cache[k] = getter.call(this);
}
return this._cache[k];
}
enable(pos = true) {
const {classes, classPrefix} = this.options;
if (!(this.options.addTargetClasses === false)) {
_classes.addClass(this.target, _classes.getClass('enabled', classes, classPrefix));
}
_classes.addClass(this.element, _classes.getClass('enabled', classes, classPrefix));
this.enabled = true;
this.scrollParents.forEach(parent => {
if (parent !== this.target.ownerDocument) {
parent.addEventListener('scroll', this.position);
}
});
if (pos) {
this.position();
}
}
disable() {
const {classes, classPrefix} = this.options;
_classes.removeClass(this.target, _classes.getClass('enabled', classes, classPrefix));
_classes.removeClass(this.element, _classes.getClass('enabled', classes, classPrefix));
this.enabled = false;
if (!typecheck.isUndefined(this.scrollParents)) {
this.scrollParents.forEach(parent => {
parent.removeEventListener('scroll', this.position);
});
}
}
destroy() {
this.disable();
this._removeClasses();
tethers.forEach((tether, i) => {
if (tether === this) {
tethers.splice(i, 1);
}
});
if (tethers.length === 0) {
bounds.removeUtilElements(this.bodyElement);
}
}
updateAttachClasses(elementAttach, targetAttach) {
elementAttach = elementAttach || this.attachment;
targetAttach = targetAttach || this.targetAttachment;
const sides = [
'left',
'top',
'bottom',
'right',
'middle',
'center'
];
const {classes, classPrefix} = this.options;
if (!typecheck.isUndefined(this._addAttachClasses) && this._addAttachClasses.length) {
this._addAttachClasses.splice(0, this._addAttachClasses.length);
}
if (typecheck.isUndefined(this._addAttachClasses)) {
this._addAttachClasses = [];
}
this.add = this._addAttachClasses;
if (elementAttach.top) {
this.add.push(`${ _classes.getClass('element-attached', classes, classPrefix) }-${ elementAttach.top }`);
}
if (elementAttach.left) {
this.add.push(`${ _classes.getClass('element-attached', classes, classPrefix) }-${ elementAttach.left }`);
}
if (targetAttach.top) {
this.add.push(`${ _classes.getClass('target-attached', classes, classPrefix) }-${ targetAttach.top }`);
}
if (targetAttach.left) {
this.add.push(`${ _classes.getClass('target-attached', classes, classPrefix) }-${ targetAttach.left }`);
}
this.all = [];
sides.forEach(side => {
this.all.push(`${ _classes.getClass('element-attached', classes, classPrefix) }-${ side }`);
this.all.push(`${ _classes.getClass('target-attached', classes, classPrefix) }-${ side }`);
});
deferred.defer(() => {
if (typecheck.isUndefined(this._addAttachClasses)) {
return;
}
_classes.updateClasses(this.element, this._addAttachClasses, this.all);
if (!(this.options.addTargetClasses === false)) {
_classes.updateClasses(this.target, this._addAttachClasses, this.all);
}
delete this._addAttachClasses;
});
}
position(flushChanges = true) {
if (!this.enabled) {
return;
}
this.clearCache();
const targetAttachment = _offset.autoToFixedAttachment(this.targetAttachment, this.attachment);
this.updateAttachClasses(this.attachment, targetAttachment);
const elementPos = this.cache('element-bounds', () => {
return bounds.getBounds(this.bodyElement, this.element);
});
let {width, height} = elementPos;
if (width === 0 && height === 0 && !typecheck.isUndefined(this.lastSize)) {
({width, height} = this.lastSize);
} else {
this.lastSize = {
width,
height
};
}
const targetPos = this.cache('target-bounds', () => {
return this.getTargetBounds();
});
const targetSize = targetPos;
let offset = _offset.offsetToPx(_offset.attachmentToOffset(this.attachment), {
width,
height
});
let targetOffset = _offset.offsetToPx(_offset.attachmentToOffset(targetAttachment), targetSize);
const manualOffset = _offset.offsetToPx(this.offset, {
width,
height
});
const manualTargetOffset = _offset.offsetToPx(this.targetOffset, targetSize);
offset = _offset.addOffset(offset, manualOffset);
targetOffset = _offset.addOffset(targetOffset, manualTargetOffset);
let left = targetPos.left + targetOffset.left - offset.left;
let top = targetPos.top + targetOffset.top - offset.top;
let scrollbarSize;
for (let i = 0; i < TetherBase.modules.length; ++i) {
const module = TetherBase.modules[i];
const ret = module.position.call(this, {
left,
top,
targetAttachment,
targetPos,
elementPos,
offset,
targetOffset,
manualOffset,
manualTargetOffset,
scrollbarSize,
attachment: this.attachment
});
if (ret === false) {
return false;
} else if (typecheck.isUndefined(ret) || !typecheck.isObject(ret)) {
continue;
} else {
({top, left} = ret);
}
}
const next = {
page: {
top,
left
},
viewport: {
top: top - pageYOffset,
bottom: pageYOffset - top - height + innerHeight,
left: left - pageXOffset,
right: pageXOffset - left - width + innerWidth
}
};
let doc = this.target.ownerDocument;
let win = doc.defaultView;
if (win.innerHeight > doc.documentElement.clientHeight) {
scrollbarSize = this.cache('scrollbar-size', general.getScrollBarSize);
next.viewport.bottom -= scrollbarSize.height;
}
if (win.innerWidth > doc.documentElement.clientWidth) {
scrollbarSize = this.cache('scrollbar-size', general.getScrollBarSize);
next.viewport.right -= scrollbarSize.width;
}
if ([
'',
'static'
].indexOf(doc.body.style.position) === -1 || [
'',
'static'
].indexOf(doc.body.parentElement.style.position) === -1) {
next.page.bottom = doc.body.scrollHeight - top - height;
next.page.right = doc.body.scrollWidth - left - width;
}
if (!typecheck.isUndefined(this.options.optimizations) && this.options.optimizations.moveElement !== false && typecheck.isUndefined(this.targetModifier)) {
const offsetParent = this.cache('target-offsetparent', () => parents.getOffsetParent(this.target));
const offsetPosition = this.cache('target-offsetparent-bounds', () => bounds.getBounds(this.bodyElement, offsetParent));
const offsetParentStyle = getComputedStyle(offsetParent);
const offsetParentSize = offsetPosition;
const offsetBorder = {};
[
'Top',
'Left',
'Bottom',
'Right'
].forEach(side => {
offsetBorder[side.toLowerCase()] = parseFloat(offsetParentStyle[`border${ side }Width`]);
});
offsetPosition.right = doc.body.scrollWidth - offsetPosition.left - offsetParentSize.width + offsetBorder.right;
offsetPosition.bottom = doc.body.scrollHeight - offsetPosition.top - offsetParentSize.height + offsetBorder.bottom;
if (next.page.top >= offsetPosition.top + offsetBorder.top && next.page.bottom >= offsetPosition.bottom) {
if (next.page.left >= offsetPosition.left + offsetBorder.left && next.page.right >= offsetPosition.right) {
const {scrollLeft, scrollTop} = offsetParent;
next.offset = {
top: next.page.top - offsetPosition.top + scrollTop - offsetBorder.top,
left: next.page.left - offsetPosition.left + scrollLeft - offsetBorder.left
};
}
}
}
this.move(next);
this.history.unshift(next);
if (this.history.length > 3) {
this.history.pop();
}
if (flushChanges) {
deferred.flush();
}
return true;
}
move(pos) {
if (typecheck.isUndefined(this.element.parentNode)) {
return;
}
const same = {};
for (let type in pos) {
same[type] = {};
for (let key in pos[type]) {
let found = false;
for (let i = 0; i < this.history.length; ++i) {
const point = this.history[i];
if (!typecheck.isUndefined(point[type]) && !within(point[type][key], pos[type][key])) {
found = true;
break;
}
}
if (!found) {
same[type][key] = true;
}
}
}
let css = {
top: '',
left: '',
right: '',
bottom: ''
};
const transcribe = (_same, _pos) => {
const hasOptimizations = !typecheck.isUndefined(this.options.optimizations);
const gpu = hasOptimizations ? this.options.optimizations.gpu : null;
if (gpu !== false) {
let yPos, xPos;
if (_same.top) {
css.top = 0;
yPos = _pos.top;
} else {
css.bottom = 0;
yPos = -_pos.bottom;
}
if (_same.left) {
css.left = 0;
xPos = _pos.left;
} else {
css.right = 0;
xPos = -_pos.right;
}
if (typecheck.isNumber(window.devicePixelRatio) && devicePixelRatio % 1 === 0) {
xPos = Math.round(xPos * devicePixelRatio) / devicePixelRatio;
yPos = Math.round(yPos * devicePixelRatio) / devicePixelRatio;
}
css[transformKey] = `translateX(${ xPos }px) translateY(${ yPos }px)`;
if (transformKey !== 'msTransform') {
css[transformKey] += ' translateZ(0)';
}
} else {
if (_same.top) {
css.top = `${ _pos.top }px`;
} else {
css.bottom = `${ _pos.bottom }px`;
}
if (_same.left) {
css.left = `${ _pos.left }px`;
} else {
css.right = `${ _pos.right }px`;
}
}
};
const hasOptimizations = !typecheck.isUndefined(this.options.optimizations);
let allowPositionFixed = true;
if (hasOptimizations && this.options.optimizations.allowPositionFixed === false) {
allowPositionFixed = false;
}
let moved = false;
if ((same.page.top || same.page.bottom) && (same.page.left || same.page.right)) {
css.position = 'absolute';
transcribe(same.page, pos.page);
} else if (allowPositionFixed && (same.viewport.top || same.viewport.bottom) && (same.viewport.left || same.viewport.right)) {
css.position = 'fixed';
transcribe(same.viewport, pos.viewport);
} else if (!typecheck.isUndefined(same.offset) && same.offset.top && same.offset.left) {
css.position = 'absolute';
const offsetParent = this.cache('target-offsetparent', () => parents.getOffsetParent(this.target));
if (parents.getOffsetParent(this.element) !== offsetParent) {
deferred.defer(() => {
this.element.parentNode.removeChild(this.element);
offsetParent.appendChild(this.element);
});
}
transcribe(same.offset, pos.offset);
moved = true;
} else {
css.position = 'absolute';
transcribe({
top: true,
left: true
}, pos.page);
}
if (!moved) {
if (this.options.bodyElement) {
if (this.element.parentNode !== this.options.bodyElement) {
this.options.bodyElement.appendChild(this.element);
}
} else {
let offsetParentIsBody = true;
let currentNode = this.element.parentNode;
while (currentNode && currentNode.nodeType === 1 && currentNode.tagName !== 'BODY' && !isFullscreenElement(currentNode)) {
if (getComputedStyle(currentNode).position !== 'static') {
offsetParentIsBody = false;
break;
}
currentNode = currentNode.parentNode;
}
if (!offsetParentIsBody) {
this.element.parentNode.removeChild(this.element);
this.element.ownerDocument.body.appendChild(this.element);
}
}
}
const writeCSS = {};
let write = false;
for (let key in css) {
let val = css[key];
let elVal = this.element.style[key];
if (elVal !== val) {
write = true;
writeCSS[key] = val;
}
}
if (write) {
deferred.defer(() => {
general.extend(this.element.style, writeCSS);
this.trigger('repositioned');
});
}
}
_addClasses() {
const {classes, classPrefix} = this.options;
_classes.addClass(this.element, _classes.getClass('element', classes, classPrefix));
if (!(this.options.addTargetClasses === false)) {
_classes.addClass(this.target, _classes.getClass('target', classes, classPrefix));
}
}
_removeClasses() {
const {classes, classPrefix} = this.options;
_classes.removeClass(this.element, _classes.getClass('element', classes, classPrefix));
if (!(this.options.addTargetClasses === false)) {
_classes.removeClass(this.target, _classes.getClass('target', classes, classPrefix));
}
this.all.forEach(className => {
this.element.classList.remove(className);
this.target.classList.remove(className);
});
}
}
TetherClass.modules = [];
TetherBase.position = position;
let Tether = general.extend(TetherClass, TetherBase);
Tether.modules.push({
initialize() {
const {classes, classPrefix} = this.options;
this.markers = {};
[
'target',
'element'
].forEach(type => {
const el = document.createElement('div');
el.className = _classes.getClass(`${ type }-marker`, classes, classPrefix);
const dot = document.createElement('div');
dot.className = _classes.getClass('marker-dot', classes, classPrefix);
el.appendChild(dot);
this[type].appendChild(el);
this.markers[type] = {
dot,
el
};
});
},
position({manualOffset, manualTargetOffset}) {
const offsets = {
element: manualOffset,
target: manualTargetOffset
};
for (let type in offsets) {
const offset = offsets[type];
for (let side in offset) {
let val = offset[side];
if (!typecheck.isString(val) || val.indexOf('%') === -1 && val.indexOf('px') === -1) {
val += 'px';
}
if (this.markers[type].dot.style[side] !== val) {
this.markers[type].dot.style[side] = val;
}
}
}
return true;
}
});
return skylark.attach("intg.Tether", Tether);
}); | 41.705491 | 167 | 0.474726 |
182385de9ffb9bdf6c61d1880a429025f12e4bc5 | 1,055 | js | JavaScript | public/assets/style/core/dist/components/menu/menu.js | henhen87/Code-Flo | 86822b85d2832138d2d6a02400aea95bcf00b674 | [
"MIT"
] | null | null | null | public/assets/style/core/dist/components/menu/menu.js | henhen87/Code-Flo | 86822b85d2832138d2d6a02400aea95bcf00b674 | [
"MIT"
] | null | null | null | public/assets/style/core/dist/components/menu/menu.js | henhen87/Code-Flo | 86822b85d2832138d2d6a02400aea95bcf00b674 | [
"MIT"
] | null | null | null | /*
* Copyright 2015 Palantir Technologies, Inc. All rights reserved.
* Licensed under the BSD-3 License as modified (the “License”); you may obtain a copy
* of the license at https://github.com/palantir/blueprint/blob/master/LICENSE
* and https://github.com/palantir/blueprint/blob/master/PATENTS
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var classNames = require("classnames");
var React = require("react");
var Classes = require("../../common/classes");
var Menu = (function (_super) {
tslib_1.__extends(Menu, _super);
function Menu() {
return _super !== null && _super.apply(this, arguments) || this;
}
Menu.prototype.render = function () {
return React.createElement("ul", { className: classNames(Classes.MENU, this.props.className) }, this.props.children);
};
return Menu;
}(React.Component));
Menu.displayName = "Blueprint.Menu";
exports.Menu = Menu;
exports.MenuFactory = React.createFactory(Menu);
//# sourceMappingURL=menu.js.map
| 37.678571 | 125 | 0.701422 |
1824f80902526d5343c0a9c7fcffb914a02ef317 | 4,585 | js | JavaScript | src/textures/Texture.js | placebomorning/jrb_game-01 | 79437480b990b41d1a481231fac8eee6b8b00855 | [
"MIT"
] | null | null | null | src/textures/Texture.js | placebomorning/jrb_game-01 | 79437480b990b41d1a481231fac8eee6b8b00855 | [
"MIT"
] | null | null | null | src/textures/Texture.js | placebomorning/jrb_game-01 | 79437480b990b41d1a481231fac8eee6b8b00855 | [
"MIT"
] | null | null | null | var Class = require('../utils/Class');
var Frame = require('./Frame');
var TextureSource = require('./TextureSource');
/**
* A Texture consists of a source, usually an Image from the Cache, or a Canvas, and a collection
* of Frames. The Frames represent the different areas of the Texture. For example a texture atlas
* may have many Frames, one for each element within the atlas. Where-as a single image would have
* just one frame, that encompasses the whole image.
*
* Textures are managed by the global TextureManager. This is a singleton class that is
* responsible for creating and delivering Textures and their corresponding Frames to Game Objects.
*
* Sprites and other Game Objects get the texture data they need from the TextureManager.
*/
var Texture = new Class({
initialize:
function Texture (manager, key, source, width, height)
{
this.manager = manager;
if (!Array.isArray(source))
{
source = [ source ];
}
this.key = key;
/**
* The source that is used to create the texture.
* Usually an Image, but can also be a Canvas.
*/
this.source = [];
this.frames = {};
// Any additional data that was set in the source JSON (if any), or any extra data you'd like to store relating to this texture
this.customData = {};
this.firstFrame = '__BASE';
this.frameTotal = 0;
// Load the Sources
for (var i = 0; i < source.length; i++)
{
this.source.push(new TextureSource(this, source[i], width, height));
}
},
add: function (name, sourceIndex, x, y, width, height)
{
var frame = new Frame(this, name, sourceIndex, x, y, width, height);
this.frames[name] = frame;
// Set the first frame of the Texture (other than __BASE)
// This is used to ensure we don't spam the display with entire
// atlases of sprite sheets, but instead just the first frame of them
// should the dev incorrectly specify the frame index
if (this.frameTotal === 1)
{
this.firstFrame = name;
}
this.frameTotal++;
return frame;
},
has: function (name)
{
return (this.frames[name]);
},
get: function (name)
{
if (name === undefined || name === null || (typeof name !== 'string' && typeof name !== 'number'))
{
name = (this.frameTotal === 1) ? '__BASE' : this.firstFrame;
}
var frame = this.frames[name];
if (!frame)
{
console.warn('No Texture.frame found with name ' + name);
return this.frames['__BASE'];
}
else
{
return frame;
}
},
getTextureSourceIndex: function (source)
{
for (var i = 0; i < this.source.length; i++)
{
if (this.source[i] === source)
{
return i;
}
}
return -1;
},
// source = TextureSource object
getFramesFromTextureSource: function (sourceIndex)
{
var out = [];
for (var frameName in this.frames)
{
if (frameName === '__BASE')
{
continue;
}
var frame = this.frames[frameName];
if (frame.sourceIndex === sourceIndex)
{
out.push(frame.name);
}
}
return out;
},
getFrameNames: function (includeBase)
{
if (includeBase === undefined) { includeBase = false; }
var out = Object.keys(this.frames);
if (!includeBase)
{
var idx = out.indexOf('__BASE');
if (idx !== -1)
{
out.splice(idx, 1);
}
}
return out;
},
getSourceImage: function (name)
{
if (name === undefined || name === null || this.frameTotal === 1)
{
name = '__BASE';
}
var frame = this.frames[name];
if (!frame)
{
console.warn('No Texture.frame found with name ' + name);
return this.frames['__BASE'].source.image;
}
else
{
return frame.source.image;
}
},
setFilter: function (filterMode)
{
for (var i = 0; i < this.source.length; i++)
{
this.source[i].setFilter(filterMode);
}
},
destroy: function ()
{
}
});
module.exports = Texture;
| 24.131579 | 136 | 0.527372 |
18260ae41c705c79361ac1a6bb70e91256585882 | 1,191 | js | JavaScript | src/app/tools/settingsPopup/options/movableObjects.js | danielrootkit/myvision | 6f0e01cc83bcdd90429e78cba393415f74df3f92 | [
"MIT"
] | 1 | 2020-07-19T18:16:06.000Z | 2020-07-19T18:16:06.000Z | src/app/tools/settingsPopup/options/movableObjects.js | dnsamw/myvision | 6f0e01cc83bcdd90429e78cba393415f74df3f92 | [
"MIT"
] | null | null | null | src/app/tools/settingsPopup/options/movableObjects.js | dnsamw/myvision | 6f0e01cc83bcdd90429e78cba393415f74df3f92 | [
"MIT"
] | 1 | 2020-07-19T18:15:58.000Z | 2020-07-19T18:15:58.000Z | import { getMovableObjectsState, setMovableObjectsState } from '../../state';
import { getAllExistingShapes } from '../../../canvas/objects/allShapes/allShapes';
function changeExistingImagesMovability(shapes) {
if (getMovableObjectsState()) {
Object.keys(shapes).forEach((key) => {
const object = shapes[key].shapeRef;
if (object.shapeName === 'polygon' || object.shapeName === 'bndBox') {
object.lockMovementX = false;
object.lockMovementY = false;
object.hoverCursor = 'move';
}
});
} else {
Object.keys(shapes).forEach((key) => {
const object = shapes[key].shapeRef;
if (object.shapeName === 'polygon' || object.shapeName === 'bndBox') {
object.lockMovementX = true;
object.lockMovementY = true;
object.hoverCursor = 'default';
}
});
}
}
function changeMovaleObjectsSetting() {
if (getMovableObjectsState()) {
setMovableObjectsState(false);
} else {
setMovableObjectsState(true);
}
const currentCanvasShapes = getAllExistingShapes();
changeExistingImagesMovability(currentCanvasShapes);
}
export { changeMovaleObjectsSetting, changeExistingImagesMovability };
| 32.189189 | 83 | 0.670865 |
1826b8011a14bee0bb9d6d2495989f7cee6379bb | 749 | js | JavaScript | tests/baselines/reference/collisionCodeGenModuleWithFunctionChildren.js | fdecampredon/jsx-typescript-old-version | f84ea6a7881723953a6c38d643de432c17fd5d98 | [
"Apache-2.0"
] | 3 | 2018-03-29T12:12:45.000Z | 2019-04-16T10:59:34.000Z | tests/baselines/reference/collisionCodeGenModuleWithFunctionChildren.js | fdecampredon/jsx-typescript-old-version | f84ea6a7881723953a6c38d643de432c17fd5d98 | [
"Apache-2.0"
] | null | null | null | tests/baselines/reference/collisionCodeGenModuleWithFunctionChildren.js | fdecampredon/jsx-typescript-old-version | f84ea6a7881723953a6c38d643de432c17fd5d98 | [
"Apache-2.0"
] | null | null | null | //// [collisionCodeGenModuleWithFunctionChildren.ts]
module M {
export var x = 3;
function fn(M, p = x) { }
}
module M {
function fn2() {
var M;
var p = x;
}
}
module M {
function fn3() {
function M() {
var p = x;
}
}
}
//// [collisionCodeGenModuleWithFunctionChildren.js]
var M;
(function (_M) {
_M.x = 3;
function fn(M, p) {
if (typeof p === "undefined") { p = _M.x; }
}
})(M || (M = {}));
var M;
(function (_M) {
function fn2() {
var M;
var p = _M.x;
}
})(M || (M = {}));
var M;
(function (_M) {
function fn3() {
function M() {
var p = _M.x;
}
}
})(M || (M = {}));
| 15.93617 | 53 | 0.417891 |
1828b1932b27475885be68b3a3b1f607e3ee95ce | 78,143 | js | JavaScript | js/deps/jquery.dataTables.min.js | Mattibdry/GcFormsCatalogue_testing | 2c4aee48b77add80403d04c6f7a0fd5e9d4b8ecd | [
"MIT"
] | null | null | null | js/deps/jquery.dataTables.min.js | Mattibdry/GcFormsCatalogue_testing | 2c4aee48b77add80403d04c6f7a0fd5e9d4b8ecd | [
"MIT"
] | null | null | null | js/deps/jquery.dataTables.min.js | Mattibdry/GcFormsCatalogue_testing | 2c4aee48b77add80403d04c6f7a0fd5e9d4b8ecd | [
"MIT"
] | null | null | null | /*! DataTables 1.10.2
* ©2008-2014 SpryMedia Ltd - datatables.net/license
*/
!function(a,b,c){!function(a){"use strict";"function"==typeof define&&define.amd?define("datatables",["jquery"],a):"object"==typeof exports?a(require("jquery")):jQuery&&!jQuery.fn.dataTable&&a(jQuery)}(function(d){"use strict";function e(a){var b,c,f="a aa ai ao as b fn i m o s ",g={};d.each(a,function(d,h){b=d.match(/^([^A-Z]+?)([A-Z])/),b&&-1!==f.indexOf(b[1]+" ")&&(c=d.replace(b[0],b[2].toLowerCase()),g[c]=d,"o"===b[1]&&e(a[d]))}),a._hungarianMap=g}function f(a,b,g){a._hungarianMap||e(a);var h;d.each(b,function(e,i){h=a._hungarianMap[e],h===c||!g&&b[h]!==c||("o"===h.charAt(0)?(b[h]||(b[h]={}),d.extend(!0,b[h],b[e]),f(a[h],b[h],g)):b[h]=b[e])})}function g(a){var b=Wa.defaults.oLanguage,c=a.sZeroRecords;!a.sEmptyTable&&c&&"No data available in table"===b.sEmptyTable&&La(a,a,"sZeroRecords","sEmptyTable"),!a.sLoadingRecords&&c&&"Loading..."===b.sLoadingRecords&&La(a,a,"sZeroRecords","sLoadingRecords"),a.sInfoThousands&&(a.sThousands=a.sInfoThousands);var d=a.sDecimal;d&&Ua(d)}function h(a){rb(a,"ordering","bSort"),rb(a,"orderMulti","bSortMulti"),rb(a,"orderClasses","bSortClasses"),rb(a,"orderCellsTop","bSortCellsTop"),rb(a,"order","aaSorting"),rb(a,"orderFixed","aaSortingFixed"),rb(a,"paging","bPaginate"),rb(a,"pagingType","sPaginationType"),rb(a,"pageLength","iDisplayLength"),rb(a,"searching","bFilter");var b=a.aoSearchCols;if(b)for(var c=0,d=b.length;d>c;c++)b[c]&&f(Wa.models.oSearch,b[c])}function i(a){rb(a,"orderable","bSortable"),rb(a,"orderData","aDataSort"),rb(a,"orderSequence","asSorting"),rb(a,"orderDataType","sortDataType")}function j(a){var b=a.oBrowser,c=d("<div/>").css({position:"absolute",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(d("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(d('<div class="test"/>').css({width:"100%",height:10}))).appendTo("body"),e=c.find(".test");b.bScrollOversize=100===e[0].offsetWidth,b.bScrollbarLeft=1!==e.offset().left,c.remove()}function k(a,b,d,e,f,g){var h,i=e,j=!1;for(d!==c&&(h=d,j=!0);i!==f;)a.hasOwnProperty(i)&&(h=j?b(h,a[i],i,a):a[i],j=!0,i+=g);return h}function l(a,c){var e=Wa.defaults.column,f=a.aoColumns.length,g=d.extend({},Wa.models.oColumn,e,{nTh:c?c:b.createElement("th"),sTitle:e.sTitle?e.sTitle:c?c.innerHTML:"",aDataSort:e.aDataSort?e.aDataSort:[f],mData:e.mData?e.mData:f,idx:f});a.aoColumns.push(g);var h=a.aoPreSearchCols;h[f]=d.extend({},Wa.models.oSearch,h[f]),m(a,f,null)}function m(a,b,e){var g=a.aoColumns[b],h=a.oClasses,j=d(g.nTh);if(!g.sWidthOrig){g.sWidthOrig=j.attr("width")||null;var k=(j.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);k&&(g.sWidthOrig=k[1])}e!==c&&null!==e&&(i(e),f(Wa.defaults.column,e),e.mDataProp===c||e.mData||(e.mData=e.mDataProp),e.sType&&(g._sManualType=e.sType),e.className&&!e.sClass&&(e.sClass=e.className),d.extend(g,e),La(g,e,"sWidth","sWidthOrig"),"number"==typeof e.iDataSort&&(g.aDataSort=[e.iDataSort]),La(g,e,"aDataSort"));var l=g.mData,m=B(l),n=g.mRender?B(g.mRender):null,o=function(a){return"string"==typeof a&&-1!==a.indexOf("@")};g._bAttrSrc=d.isPlainObject(l)&&(o(l.sort)||o(l.type)||o(l.filter)),g.fnGetData=function(a,b,d){var e=m(a,b,c,d);return n&&b?n(e,b,a,d):e},g.fnSetData=function(a,b,c){return C(l)(a,b,c)},a.oFeatures.bSort||(g.bSortable=!1,j.addClass(h.sSortableNone));var p=-1!==d.inArray("asc",g.asSorting),q=-1!==d.inArray("desc",g.asSorting);g.bSortable&&(p||q)?p&&!q?(g.sSortingClass=h.sSortableAsc,g.sSortingClassJUI=h.sSortJUIAscAllowed):!p&&q?(g.sSortingClass=h.sSortableDesc,g.sSortingClassJUI=h.sSortJUIDescAllowed):(g.sSortingClass=h.sSortable,g.sSortingClassJUI=h.sSortJUI):(g.sSortingClass=h.sSortableNone,g.sSortingClassJUI="")}function n(a){if(a.oFeatures.bAutoWidth!==!1){var b=a.aoColumns;sa(a);for(var c=0,d=b.length;d>c;c++)b[c].nTh.style.width=b[c].sWidth}var e=a.oScroll;(""!==e.sY||""!==e.sX)&&qa(a),Pa(a,null,"column-sizing",[a])}function o(a,b){var c=r(a,"bVisible");return"number"==typeof c[b]?c[b]:null}function p(a,b){var c=r(a,"bVisible"),e=d.inArray(b,c);return-1!==e?e:null}function q(a){return r(a,"bVisible").length}function r(a,b){var c=[];return d.map(a.aoColumns,function(a,d){a[b]&&c.push(d)}),c}function s(a){var b,d,e,f,g,h,i,j,k,l=a.aoColumns,m=a.aoData,n=Wa.ext.type.detect;for(b=0,d=l.length;d>b;b++)if(i=l[b],k=[],!i.sType&&i._sManualType)i.sType=i._sManualType;else if(!i.sType){for(e=0,f=n.length;f>e;e++){for(g=0,h=m.length;h>g&&(k[g]===c&&(k[g]=y(a,g,b,"type")),j=n[e](k[g],a),j&&"html"!==j);g++);if(j){i.sType=j;break}}i.sType||(i.sType="string")}}function t(a,b,e,f){var g,h,i,j,k,m,n,o=a.aoColumns;if(b)for(g=b.length-1;g>=0;g--){n=b[g];var p=n.targets!==c?n.targets:n.aTargets;for(d.isArray(p)||(p=[p]),i=0,j=p.length;j>i;i++)if("number"==typeof p[i]&&p[i]>=0){for(;o.length<=p[i];)l(a);f(p[i],n)}else if("number"==typeof p[i]&&p[i]<0)f(o.length+p[i],n);else if("string"==typeof p[i])for(k=0,m=o.length;m>k;k++)("_all"==p[i]||d(o[k].nTh).hasClass(p[i]))&&f(k,n)}if(e)for(g=0,h=e.length;h>g;g++)f(g,e[g])}function u(a,b,c,e){var f=a.aoData.length,g=d.extend(!0,{},Wa.models.oRow,{src:c?"dom":"data"});g._aData=b,a.aoData.push(g);for(var h=a.aoColumns,i=0,j=h.length;j>i;i++)c&&z(a,f,i,y(a,f,i)),h[i].sType=null;return a.aiDisplayMaster.push(f),(c||!a.oFeatures.bDeferRender)&&I(a,f,c,e),f}function v(a,b){var c;return b instanceof d||(b=d(b)),b.map(function(b,d){return c=H(a,d),u(a,c.data,d,c.cells)})}function w(a,b){return b._DT_RowIndex!==c?b._DT_RowIndex:null}function x(a,b,c){return d.inArray(c,a.aoData[b].anCells)}function y(a,b,d,e){var f=a.iDraw,g=a.aoColumns[d],h=a.aoData[b]._aData,i=g.sDefaultContent,j=g.fnGetData(h,e,{settings:a,row:b,col:d});if(j===c)return a.iDrawError!=f&&null===i&&(Ka(a,0,"Requested unknown parameter "+("function"==typeof g.mData?"{function}":"'"+g.mData+"'")+" for row "+b,4),a.iDrawError=f),i;if(j!==h&&null!==j||null===i){if("function"==typeof j)return j.call(h)}else j=i;return null===j&&"display"==e?"":j}function z(a,b,c,d){var e=a.aoColumns[c],f=a.aoData[b]._aData;e.fnSetData(f,d,{settings:a,row:b,col:c})}function A(a){return d.map(a.match(/(\\.|[^\.])+/g),function(a){return a.replace(/\\./g,".")})}function B(a){if(d.isPlainObject(a)){var b={};return d.each(a,function(a,c){c&&(b[a]=B(c))}),function(a,d,e,f){var g=b[d]||b._;return g!==c?g(a,d,e,f):a}}if(null===a)return function(a){return a};if("function"==typeof a)return function(b,c,d,e){return a(b,c,d,e)};if("string"!=typeof a||-1===a.indexOf(".")&&-1===a.indexOf("[")&&-1===a.indexOf("("))return function(b,c){return b[a]};var e=function(a,b,d){var f,g,h,i;if(""!==d)for(var j=A(d),k=0,l=j.length;l>k;k++){if(f=j[k].match(sb),g=j[k].match(tb),f){j[k]=j[k].replace(sb,""),""!==j[k]&&(a=a[j[k]]),h=[],j.splice(0,k+1),i=j.join(".");for(var m=0,n=a.length;n>m;m++)h.push(e(a[m],b,i));var o=f[0].substring(1,f[0].length-1);a=""===o?h:h.join(o);break}if(g)j[k]=j[k].replace(tb,""),a=a[j[k]]();else{if(null===a||a[j[k]]===c)return c;a=a[j[k]]}}return a};return function(b,c){return e(b,c,a)}}function C(a){if(d.isPlainObject(a))return C(a._);if(null===a)return function(){};if("function"==typeof a)return function(b,c,d){a(b,"set",c,d)};if("string"!=typeof a||-1===a.indexOf(".")&&-1===a.indexOf("[")&&-1===a.indexOf("("))return function(b,c){b[a]=c};var b=function(a,d,e){for(var f,g,h,i,j,k=A(e),l=k[k.length-1],m=0,n=k.length-1;n>m;m++){if(g=k[m].match(sb),h=k[m].match(tb),g){k[m]=k[m].replace(sb,""),a[k[m]]=[],f=k.slice(),f.splice(0,m+1),j=f.join(".");for(var o=0,p=d.length;p>o;o++)i={},b(i,d[o],j),a[k[m]].push(i);return}h&&(k[m]=k[m].replace(tb,""),a=a[k[m]](d)),(null===a[k[m]]||a[k[m]]===c)&&(a[k[m]]={}),a=a[k[m]]}l.match(tb)?a=a[l.replace(tb,"")](d):a[l.replace(sb,"")]=d};return function(c,d){return b(c,d,a)}}function D(a){return mb(a.aoData,"_aData")}function E(a){a.aoData.length=0,a.aiDisplayMaster.length=0,a.aiDisplay.length=0}function F(a,b,d){for(var e=-1,f=0,g=a.length;g>f;f++)a[f]==b?e=f:a[f]>b&&a[f]--;-1!=e&&d===c&&a.splice(e,1)}function G(a,b,d,e){var f,g,h=a.aoData[b];if("dom"!==d&&(d&&"auto"!==d||"dom"!==h.src)){var i,j=h.anCells;if(j)for(f=0,g=j.length;g>f;f++){for(i=j[f];i.childNodes.length;)i.removeChild(i.firstChild);j[f].innerHTML=y(a,b,f,"display")}}else h._aData=H(a,h).data;h._aSortData=null,h._aFilterData=null;var k=a.aoColumns;if(e!==c)k[e].sType=null;else for(f=0,g=k.length;g>f;f++)k[f].sType=null;J(h)}function H(a,b){var c,e,f,g,h=[],i=[],j=b.firstChild,k=0,l=a.aoColumns,m=function(a,b,c){if("string"==typeof a){var d=a.indexOf("@");if(-1!==d){var e=a.substring(d+1);f["@"+e]=c.getAttribute(e)}}},n=function(a){e=l[k],g=d.trim(a.innerHTML),e&&e._bAttrSrc?(f={display:g},m(e.mData.sort,f,a),m(e.mData.type,f,a),m(e.mData.filter,f,a),h.push(f)):h.push(g),k++};if(j)for(;j;)c=j.nodeName.toUpperCase(),("TD"==c||"TH"==c)&&(n(j),i.push(j)),j=j.nextSibling;else{i=b.anCells;for(var o=0,p=i.length;p>o;o++)n(i[o])}return{data:h,cells:i}}function I(a,c,d,e){var f,g,h,i,j,k=a.aoData[c],l=k._aData,m=[];if(null===k.nTr){for(f=d||b.createElement("tr"),k.nTr=f,k.anCells=m,f._DT_RowIndex=c,J(k),i=0,j=a.aoColumns.length;j>i;i++)h=a.aoColumns[i],g=d?e[i]:b.createElement(h.sCellType),m.push(g),(!d||h.mRender||h.mData!==i)&&(g.innerHTML=y(a,c,i,"display")),h.sClass&&(g.className+=" "+h.sClass),h.bVisible&&!d?f.appendChild(g):!h.bVisible&&d&&g.parentNode.removeChild(g),h.fnCreatedCell&&h.fnCreatedCell.call(a.oInstance,g,y(a,c,i),l,c,i);Pa(a,"aoRowCreatedCallback",null,[f,l,c])}k.nTr.setAttribute("role","row")}function J(a){var b=a.nTr,c=a._aData;if(b){if(c.DT_RowId&&(b.id=c.DT_RowId),c.DT_RowClass){var e=c.DT_RowClass.split(" ");a.__rowc=a.__rowc?qb(a.__rowc.concat(e)):e,d(b).removeClass(a.__rowc.join(" ")).addClass(c.DT_RowClass)}c.DT_RowData&&d(b).data(c.DT_RowData)}}function K(a){var b,c,e,f,g,h=a.nTHead,i=a.nTFoot,j=0===d("th, td",h).length,k=a.oClasses,l=a.aoColumns;for(j&&(f=d("<tr/>").appendTo(h)),b=0,c=l.length;c>b;b++)g=l[b],e=d(g.nTh).addClass(g.sClass),j&&e.appendTo(f),a.oFeatures.bSort&&(e.addClass(g.sSortingClass),g.bSortable!==!1&&(e.attr("tabindex",a.iTabIndex).attr("aria-controls",a.sTableId),Ea(a,g.nTh,b))),g.sTitle!=e.html()&&e.html(g.sTitle),Ra(a,"header")(a,e,g,k);if(j&&P(a.aoHeader,h),d(h).find(">tr").attr("role","row"),d(h).find(">tr>th, >tr>td").addClass(k.sHeaderTH),d(i).find(">tr>th, >tr>td").addClass(k.sFooterTH),null!==i){var m=a.aoFooter[0];for(b=0,c=m.length;c>b;b++)g=l[b],g.nTf=m[b].cell,g.sClass&&d(g.nTf).addClass(g.sClass)}}function L(a,b,e){var f,g,h,i,j,k,l,m,n,o=[],p=[],q=a.aoColumns.length;if(b){for(e===c&&(e=!1),f=0,g=b.length;g>f;f++){for(o[f]=b[f].slice(),o[f].nTr=b[f].nTr,h=q-1;h>=0;h--)a.aoColumns[h].bVisible||e||o[f].splice(h,1);p.push([])}for(f=0,g=o.length;g>f;f++){if(l=o[f].nTr)for(;k=l.firstChild;)l.removeChild(k);for(h=0,i=o[f].length;i>h;h++)if(m=1,n=1,p[f][h]===c){for(l.appendChild(o[f][h].cell),p[f][h]=1;o[f+m]!==c&&o[f][h].cell==o[f+m][h].cell;)p[f+m][h]=1,m++;for(;o[f][h+n]!==c&&o[f][h].cell==o[f][h+n].cell;){for(j=0;m>j;j++)p[f+j][h+n]=1;n++}d(o[f][h].cell).attr("rowspan",m).attr("colspan",n)}}}}function M(a){var b=Pa(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==d.inArray(!1,b))return void oa(a,!1);var e=[],f=0,g=a.asStripeClasses,h=g.length,i=(a.aoOpenRows.length,a.oLanguage),j=a.iInitDisplayStart,k="ssp"==Sa(a),l=a.aiDisplay;a.bDrawing=!0,j!==c&&-1!==j&&(a._iDisplayStart=k?j:j>=a.fnRecordsDisplay()?0:j,a.iInitDisplayStart=-1);var m=a._iDisplayStart,n=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,oa(a,!1);else if(k){if(!a.bDestroying&&!S(a))return}else a.iDraw++;if(0!==l.length)for(var o=k?0:m,p=k?a.aoData.length:n,r=o;p>r;r++){var s=l[r],t=a.aoData[s];null===t.nTr&&I(a,s);var u=t.nTr;if(0!==h){var v=g[f%h];t._sRowStripe!=v&&(d(u).removeClass(t._sRowStripe).addClass(v),t._sRowStripe=v)}Pa(a,"aoRowCallback",null,[u,t._aData,f,r]),e.push(u),f++}else{var w=i.sZeroRecords;1==a.iDraw&&"ajax"==Sa(a)?w=i.sLoadingRecords:i.sEmptyTable&&0===a.fnRecordsTotal()&&(w=i.sEmptyTable),e[0]=d("<tr/>",{"class":h?g[0]:""}).append(d("<td />",{valign:"top",colSpan:q(a),"class":a.oClasses.sRowEmpty}).html(w))[0]}Pa(a,"aoHeaderCallback","header",[d(a.nTHead).children("tr")[0],D(a),m,n,l]),Pa(a,"aoFooterCallback","footer",[d(a.nTFoot).children("tr")[0],D(a),m,n,l]);var x=d(a.nTBody);x.children().detach(),x.append(d(e)),Pa(a,"aoDrawCallback","draw",[a]),a.bSorted=!1,a.bFiltered=!1,a.bDrawing=!1}function N(a,b){var c=a.oFeatures,d=c.bSort,e=c.bFilter;d&&Ba(a),e?X(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice(),b!==!0&&(a._iDisplayStart=0),a._drawHold=b,M(a),a._drawHold=!1}function O(a){var b=a.oClasses,c=d(a.nTable),e=d("<div/>").insertBefore(c),f=a.oFeatures,g=d("<div/>",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=e[0],a.nTableWrapper=g[0],a.nTableReinsertBefore=a.nTable.nextSibling;for(var h,i,j,k,l,m,n=a.sDom.split(""),o=0;o<n.length;o++){if(h=null,i=n[o],"<"==i){if(j=d("<div/>")[0],k=n[o+1],"'"==k||'"'==k){for(l="",m=2;n[o+m]!=k;)l+=n[o+m],m++;if("H"==l?l=b.sJUIHeader:"F"==l&&(l=b.sJUIFooter),-1!=l.indexOf(".")){var p=l.split(".");j.id=p[0].substr(1,p[0].length-1),j.className=p[1]}else"#"==l.charAt(0)?j.id=l.substr(1,l.length-1):j.className=l;o+=m}g.append(j),g=d(j)}else if(">"==i)g=g.parent();else if("l"==i&&f.bPaginate&&f.bLengthChange)h=ka(a);else if("f"==i&&f.bFilter)h=W(a);else if("r"==i&&f.bProcessing)h=na(a);else if("t"==i)h=pa(a);else if("i"==i&&f.bInfo)h=ea(a);else if("p"==i&&f.bPaginate)h=la(a);else if(0!==Wa.ext.feature.length)for(var q=Wa.ext.feature,r=0,s=q.length;s>r;r++)if(i==q[r].cFeature){h=q[r].fnInit(a);break}if(h){var t=a.aanFeatures;t[i]||(t[i]=[]),t[i].push(h),g.append(h)}}e.replaceWith(g)}function P(a,b){var c,e,f,g,h,i,j,k,l,m,n,o=d(b).children("tr"),p=function(a,b,c){for(var d=a[b];d[c];)c++;return c};for(a.splice(0,a.length),f=0,i=o.length;i>f;f++)a.push([]);for(f=0,i=o.length;i>f;f++)for(c=o[f],k=0,e=c.firstChild;e;){if("TD"==e.nodeName.toUpperCase()||"TH"==e.nodeName.toUpperCase())for(l=1*e.getAttribute("colspan"),m=1*e.getAttribute("rowspan"),l=l&&0!==l&&1!==l?l:1,m=m&&0!==m&&1!==m?m:1,j=p(a,f,k),n=1===l?!0:!1,h=0;l>h;h++)for(g=0;m>g;g++)a[f+g][j+h]={cell:e,unique:n},a[f+g].nTr=c;e=e.nextSibling}}function Q(a,b,c){var d=[];c||(c=a.aoHeader,b&&(c=[],P(c,b)));for(var e=0,f=c.length;f>e;e++)for(var g=0,h=c[e].length;h>g;g++)!c[e][g].unique||d[g]&&a.bSortCellsTop||(d[g]=c[e][g].cell);return d}function R(a,b,c){if(Pa(a,"aoServerParams","serverParams",[b]),b&&d.isArray(b)){var e={},f=/(.*?)\[\]$/;d.each(b,function(a,b){var c=b.name.match(f);if(c){var d=c[0];e[d]||(e[d]=[]),e[d].push(b.value)}else e[b.name]=b.value}),b=e}var g,h=a.ajax,i=a.oInstance;if(d.isPlainObject(h)&&h.data){g=h.data;var j=d.isFunction(g)?g(b):g;b=d.isFunction(g)&&j?j:d.extend(!0,b,j),delete h.data}var k={data:b,success:function(b){var d=b.error||b.sError;d&&a.oApi._fnLog(a,0,d),a.json=b,Pa(a,null,"xhr",[a,b]),c(b)},dataType:"json",cache:!1,type:a.sServerMethod,error:function(b,c,d){var e=a.oApi._fnLog;"parsererror"==c?e(a,0,"Invalid JSON response",1):4===b.readyState&&e(a,0,"Ajax error",7),oa(a,!1)}};a.oAjaxData=b,Pa(a,null,"preXhr",[a,b]),a.fnServerData?a.fnServerData.call(i,a.sAjaxSource,d.map(b,function(a,b){return{name:b,value:a}}),c,a):a.sAjaxSource||"string"==typeof h?a.jqXHR=d.ajax(d.extend(k,{url:h||a.sAjaxSource})):d.isFunction(h)?a.jqXHR=h.call(i,b,c,a):(a.jqXHR=d.ajax(d.extend(k,h)),h.data=g)}function S(a){return a.bAjaxDataGet?(a.iDraw++,oa(a,!0),R(a,T(a),function(b){U(a,b)}),!1):!0}function T(a){var b,c,e,f,g=a.aoColumns,h=g.length,i=a.oFeatures,j=a.oPreviousSearch,k=a.aoPreSearchCols,l=[],m=Aa(a),n=a._iDisplayStart,o=i.bPaginate!==!1?a._iDisplayLength:-1,p=function(a,b){l.push({name:a,value:b})};p("sEcho",a.iDraw),p("iColumns",h),p("sColumns",mb(g,"sName").join(",")),p("iDisplayStart",n),p("iDisplayLength",o);var q={draw:a.iDraw,columns:[],order:[],start:n,length:o,search:{value:j.sSearch,regex:j.bRegex}};for(b=0;h>b;b++)e=g[b],f=k[b],c="function"==typeof e.mData?"function":e.mData,q.columns.push({data:c,name:e.sName,searchable:e.bSearchable,orderable:e.bSortable,search:{value:f.sSearch,regex:f.bRegex}}),p("mDataProp_"+b,c),i.bFilter&&(p("sSearch_"+b,f.sSearch),p("bRegex_"+b,f.bRegex),p("bSearchable_"+b,e.bSearchable)),i.bSort&&p("bSortable_"+b,e.bSortable);i.bFilter&&(p("sSearch",j.sSearch),p("bRegex",j.bRegex)),i.bSort&&(d.each(m,function(a,b){q.order.push({column:b.col,dir:b.dir}),p("iSortCol_"+a,b.col),p("sSortDir_"+a,b.dir)}),p("iSortingCols",m.length));var r=Wa.ext.legacy.ajax;return null===r?a.sAjaxSource?l:q:r?l:q}function U(a,b){var d=function(a,d){return b[a]!==c?b[a]:b[d]},e=d("sEcho","draw"),f=d("iTotalRecords","recordsTotal"),g=d("iTotalDisplayRecords","recordsFiltered");if(e){if(1*e<a.iDraw)return;a.iDraw=1*e}E(a),a._iRecordsTotal=parseInt(f,10),a._iRecordsDisplay=parseInt(g,10);for(var h=V(a,b),i=0,j=h.length;j>i;i++)u(a,h[i]);a.aiDisplay=a.aiDisplayMaster.slice(),a.bAjaxDataGet=!1,M(a),a._bInitComplete||ia(a,b),a.bAjaxDataGet=!0,oa(a,!1)}function V(a,b){var e=d.isPlainObject(a.ajax)&&a.ajax.dataSrc!==c?a.ajax.dataSrc:a.sAjaxDataProp;return"data"===e?b.aaData||b[e]:""!==e?B(e)(b):b}function W(a){var c=a.oClasses,e=a.sTableId,f=a.oLanguage,g=a.oPreviousSearch,h=a.aanFeatures,i='<input type="search" class="'+c.sFilterInput+'"/>',j=f.sSearch;j=j.match(/_INPUT_/)?j.replace("_INPUT_",i):j+i;var k=d("<div/>",{id:h.f?null:e+"_filter","class":c.sFilter}).append(d("<label/>").append(j)),l=function(){var b=(h.f,this.value?this.value:"");b!=g.sSearch&&(X(a,{sSearch:b,bRegex:g.bRegex,bSmart:g.bSmart,bCaseInsensitive:g.bCaseInsensitive}),a._iDisplayStart=0,M(a))},m=d("input",k).val(g.sSearch).attr("placeholder",f.sSearchPlaceholder).bind("keyup.DT search.DT input.DT paste.DT cut.DT","ssp"===Sa(a)?ta(l,400):l).bind("keypress.DT",function(a){return 13==a.keyCode?!1:void 0}).attr("aria-controls",e);return d(a.nTable).on("search.dt.DT",function(c,d){if(a===d)try{m[0]!==b.activeElement&&m.val(g.sSearch)}catch(e){}}),k[0]}function X(a,b,d){var e=a.oPreviousSearch,f=a.aoPreSearchCols,g=function(a){e.sSearch=a.sSearch,e.bRegex=a.bRegex,e.bSmart=a.bSmart,e.bCaseInsensitive=a.bCaseInsensitive},h=function(a){return a.bEscapeRegex!==c?!a.bEscapeRegex:a.bRegex};if(s(a),"ssp"!=Sa(a)){$(a,b.sSearch,d,h(b),b.bSmart,b.bCaseInsensitive),g(b);for(var i=0;i<f.length;i++)Z(a,f[i].sSearch,i,h(f[i]),f[i].bSmart,f[i].bCaseInsensitive);Y(a)}else g(b);a.bFiltered=!0,Pa(a,null,"search",[a])}function Y(a){for(var b,c,d=Wa.ext.search,e=a.aiDisplay,f=0,g=d.length;g>f;f++){for(var h=[],i=0,j=e.length;j>i;i++)c=e[i],b=a.aoData[c],d[f](a,b._aFilterData,c,b._aData,i)&&h.push(c);e.length=0,e.push.apply(e,h)}}function Z(a,b,c,d,e,f){if(""!==b)for(var g,h=a.aiDisplay,i=_(b,d,e,f),j=h.length-1;j>=0;j--)g=a.aoData[h[j]]._aFilterData[c],i.test(g)||h.splice(j,1)}function $(a,b,c,d,e,f){var g,h,i,j=_(b,d,e,f),k=a.oPreviousSearch.sSearch,l=a.aiDisplayMaster;if(0!==Wa.ext.search.length&&(c=!0),h=ba(a),b.length<=0)a.aiDisplay=l.slice();else for((h||c||k.length>b.length||0!==b.indexOf(k)||a.bSorted)&&(a.aiDisplay=l.slice()),g=a.aiDisplay,i=g.length-1;i>=0;i--)j.test(a.aoData[g[i]]._sFilterRow)||g.splice(i,1)}function _(a,b,c,e){if(a=b?a:aa(a),c){var f=d.map(a.match(/"[^"]+"|[^ ]+/g)||"",function(a){return'"'===a.charAt(0)?a.match(/^"(.*)"$/)[1]:a});a="^(?=.*?"+f.join(")(?=.*?")+").*$"}return new RegExp(a,e?"i":"")}function aa(a){return a.replace(eb,"\\$1")}function ba(a){var b,c,d,e,f,g,h,i,j=a.aoColumns,k=Wa.ext.type.search,l=!1;for(c=0,e=a.aoData.length;e>c;c++)if(i=a.aoData[c],!i._aFilterData){for(g=[],d=0,f=j.length;f>d;d++)b=j[d],b.bSearchable?(h=y(a,c,d,"filter"),k[b.sType]&&(h=k[b.sType](h)),null===h&&(h=""),"string"!=typeof h&&h.toString&&(h=h.toString())):h="",h.indexOf&&-1!==h.indexOf("&")&&(ub.innerHTML=h,h=vb?ub.textContent:ub.innerText),h.replace&&(h=h.replace(/[\r\n]/g,"")),g.push(h);i._aFilterData=g,i._sFilterRow=g.join(" "),l=!0}return l}function ca(a){return{search:a.sSearch,smart:a.bSmart,regex:a.bRegex,caseInsensitive:a.bCaseInsensitive}}function da(a){return{sSearch:a.search,bSmart:a.smart,bRegex:a.regex,bCaseInsensitive:a.caseInsensitive}}function ea(a){var b=a.sTableId,c=a.aanFeatures.i,e=d("<div/>",{"class":a.oClasses.sInfo,id:c?null:b+"_info"});return c||(a.aoDrawCallback.push({fn:fa,sName:"information"}),e.attr("role","status").attr("aria-live","polite"),d(a.nTable).attr("aria-describedby",b+"_info")),e[0]}function fa(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,e=a._iDisplayStart+1,f=a.fnDisplayEnd(),g=a.fnRecordsTotal(),h=a.fnRecordsDisplay(),i=h?c.sInfo:c.sInfoEmpty;h!==g&&(i+=" "+c.sInfoFiltered),i+=c.sInfoPostFix,i=ga(a,i);var j=c.fnInfoCallback;null!==j&&(i=j.call(a.oInstance,a,e,f,g,h,i)),d(b).html(i)}}function ga(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,f=a.fnRecordsDisplay(),g=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a,f)).replace(/_PAGE_/g,c.call(a,g?1:Math.ceil(d/e))).replace(/_PAGES_/g,c.call(a,g?1:Math.ceil(f/e)))}function ha(a){var b,c,d,e=a.iInitDisplayStart,f=a.aoColumns,g=a.oFeatures;if(!a.bInitialised)return void setTimeout(function(){ha(a)},200);for(O(a),K(a),L(a,a.aoHeader),L(a,a.aoFooter),oa(a,!0),g.bAutoWidth&&sa(a),b=0,c=f.length;c>b;b++)d=f[b],d.sWidth&&(d.nTh.style.width=ya(d.sWidth));N(a);var h=Sa(a);"ssp"!=h&&("ajax"==h?R(a,[],function(c){var d=V(a,c);for(b=0;b<d.length;b++)u(a,d[b]);a.iInitDisplayStart=e,N(a),oa(a,!1),ia(a,c)},a):(oa(a,!1),ia(a)))}function ia(a,b){a._bInitComplete=!0,b&&n(a),Pa(a,"aoInitComplete","init",[a,b])}function ja(a,b){var c=parseInt(b,10);a._iDisplayLength=c,Qa(a),Pa(a,null,"length",[a,c])}function ka(a){for(var b=a.oClasses,c=a.sTableId,e=a.aLengthMenu,f=d.isArray(e[0]),g=f?e[0]:e,h=f?e[1]:e,i=d("<select/>",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect}),j=0,k=g.length;k>j;j++)i[0][j]=new Option(h[j],g[j]);var l=d("<div><label/></div>").addClass(b.sLength);return a.aanFeatures.l||(l[0].id=c+"_length"),l.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",i[0].outerHTML)),d("select",l).val(a._iDisplayLength).bind("change.DT",function(b){ja(a,d(this).val()),M(a)}),d(a.nTable).bind("length.dt.DT",function(b,c,e){a===c&&d("select",l).val(e)}),l[0]}function la(a){var b=a.sPaginationType,c=Wa.ext.pager[b],e="function"==typeof c,f=function(a){M(a)},g=d("<div/>").addClass(a.oClasses.sPaging+b)[0],h=a.aanFeatures;return e||c.fnInit(a,g,f),h.p||(g.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(e){var b,d,g=a._iDisplayStart,i=a._iDisplayLength,j=a.fnRecordsDisplay(),k=-1===i,l=k?0:Math.ceil(g/i),m=k?1:Math.ceil(j/i),n=c(l,m);for(b=0,d=h.p.length;d>b;b++)Ra(a,"pageButton")(a,h.p[b],b,n,l,m)}else c.fnUpdate(a,f)},sName:"pagination"})),g}function ma(a,b,c){var d=a._iDisplayStart,e=a._iDisplayLength,f=a.fnRecordsDisplay();0===f||-1===e?d=0:"number"==typeof b?(d=b*e,d>f&&(d=0)):"first"==b?d=0:"previous"==b?(d=e>=0?d-e:0,0>d&&(d=0)):"next"==b?f>d+e&&(d+=e):"last"==b?d=Math.floor((f-1)/e)*e:Ka(a,0,"Unknown paging action: "+b,5);var g=a._iDisplayStart!==d;return a._iDisplayStart=d,g&&(Pa(a,null,"page",[a]),c&&M(a)),g}function na(a){return d("<div/>",{id:a.aanFeatures.r?null:a.sTableId+"_processing","class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function oa(a,b){a.oFeatures.bProcessing&&d(a.aanFeatures.r).css("display",b?"block":"none"),Pa(a,null,"processing",[a,b])}function pa(a){var b=d(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var e=c.sX,f=c.sY,g=a.oClasses,h=b.children("caption"),i=h.length?h[0]._captionSide:null,j=d(b[0].cloneNode(!1)),k=d(b[0].cloneNode(!1)),l=b.children("tfoot"),m="<div/>",n=function(a){return a?ya(a):null};c.sX&&"100%"===b.attr("width")&&b.removeAttr("width"),l.length||(l=null);var o=d(m,{"class":g.sScrollWrapper}).append(d(m,{"class":g.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:e?n(e):"100%"}).append(d(m,{"class":g.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(j.removeAttr("id").css("margin-left",0).append(b.children("thead")))).append("top"===i?h:null)).append(d(m,{"class":g.sScrollBody}).css({overflow:"auto",height:n(f),width:n(e)}).append(b));l&&o.append(d(m,{"class":g.sScrollFoot}).css({overflow:"hidden",border:0,width:e?n(e):"100%"}).append(d(m,{"class":g.sScrollFootInner}).append(k.removeAttr("id").css("margin-left",0).append(b.children("tfoot")))).append("bottom"===i?h:null));var p=o.children(),q=p[0],r=p[1],s=l?p[2]:null;return e&&d(r).scroll(function(a){var b=this.scrollLeft;q.scrollLeft=b,l&&(s.scrollLeft=b)}),a.nScrollHead=q,a.nScrollBody=r,a.nScrollFoot=s,a.aoDrawCallback.push({fn:qa,sName:"scrolling"}),o[0]}function qa(a){var b,c,e,f,g,h,i,j,k,l=a.oScroll,m=l.sX,n=l.sXInner,p=l.sY,q=l.iBarWidth,r=d(a.nScrollHead),s=r[0].style,t=r.children("div"),u=t[0].style,v=t.children("table"),w=a.nScrollBody,x=d(w),y=w.style,z=d(a.nScrollFoot),A=z.children("div"),B=A.children("table"),C=d(a.nTHead),D=d(a.nTable),E=D[0],F=E.style,G=a.nTFoot?d(a.nTFoot):null,H=a.oBrowser,I=H.bScrollOversize,J=[],K=[],L=[],M=function(a){var b=a.style;b.paddingTop="0",b.paddingBottom="0",b.borderTopWidth="0",b.borderBottomWidth="0",b.height=0};if(D.children("thead, tfoot").remove(),g=C.clone().prependTo(D),b=C.find("tr"),e=g.find("tr"),g.find("th, td").removeAttr("tabindex"),G&&(h=G.clone().prependTo(D),c=G.find("tr"),f=h.find("tr")),m||(y.width="100%",r[0].style.width="100%"),d.each(Q(a,g),function(b,c){i=o(a,b),c.style.width=a.aoColumns[i].sWidth}),G&&ra(function(a){a.style.width=""},f),l.bCollapse&&""!==p&&(y.height=x[0].offsetHeight+C[0].offsetHeight+"px"),k=D.outerWidth(),""===m?(F.width="100%",I&&(D.find("tbody").height()>w.offsetHeight||"scroll"==x.css("overflow-y"))&&(F.width=ya(D.outerWidth()-q))):""!==n?F.width=ya(n):k==x.width()&&x.height()<D.height()?(F.width=ya(k-q),D.outerWidth()>k-q&&(F.width=ya(k))):F.width=ya(k),k=D.outerWidth(),ra(M,e),ra(function(a){L.push(a.innerHTML),J.push(ya(d(a).css("width")))},e),ra(function(a,b){a.style.width=J[b]},b),d(e).height(0),G&&(ra(M,f),ra(function(a){K.push(ya(d(a).css("width")))},f),ra(function(a,b){a.style.width=K[b]},c),d(f).height(0)),ra(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+L[b]+"</div>",a.style.width=J[b]},e),G&&ra(function(a,b){a.innerHTML="",a.style.width=K[b]},f),D.outerWidth()<k?(j=w.scrollHeight>w.offsetHeight||"scroll"==x.css("overflow-y")?k+q:k,I&&(w.scrollHeight>w.offsetHeight||"scroll"==x.css("overflow-y"))&&(F.width=ya(j-q)),(""===m||""!==n)&&Ka(a,1,"Possible column misalignment",6)):j="100%",y.width=ya(j),s.width=ya(j),G&&(a.nScrollFoot.style.width=ya(j)),p||I&&(y.height=ya(E.offsetHeight+q)),p&&l.bCollapse){y.height=ya(p);var N=m&&E.offsetWidth>w.offsetWidth?q:0;E.offsetHeight<w.offsetHeight&&(y.height=ya(E.offsetHeight+N))}var O=D.outerWidth();v[0].style.width=ya(O),u.width=ya(O);var P=D.height()>w.clientHeight||"scroll"==x.css("overflow-y"),R="padding"+(H.bScrollbarLeft?"Left":"Right");u[R]=P?q+"px":"0px",G&&(B[0].style.width=ya(O),A[0].style.width=ya(O),A[0].style[R]=P?q+"px":"0px"),x.scroll(),!a.bSorted&&!a.bFiltered||a._drawHold||(w.scrollTop=0)}function ra(a,b,c){for(var d,e,f=0,g=0,h=b.length;h>g;){for(d=b[g].firstChild,e=c?c[g].firstChild:null;d;)1===d.nodeType&&(c?a(d,e,f):a(d,f),f++),d=d.nextSibling,e=c?e.nextSibling:null;g++}}function sa(b){var c,e,f,g,h,i=b.nTable,j=b.aoColumns,k=b.oScroll,l=k.sY,m=k.sX,o=k.sXInner,p=j.length,s=r(b,"bVisible"),t=d("th",b.nTHead),u=i.getAttribute("width"),v=i.parentNode,w=!1;for(c=0;c<s.length;c++)e=j[s[c]],null!==e.sWidth&&(e.sWidth=ua(e.sWidthOrig,v),w=!0);if(w||m||l||p!=q(b)||p!=t.length){var x=d(i).clone().empty().css("visibility","hidden").removeAttr("id").append(d(b.nTHead).clone(!1)).append(d(b.nTFoot).clone(!1)).append(d("<tbody><tr/></tbody>"));x.find("tfoot th, tfoot td").css("width","");var y=x.find("tbody tr");for(t=Q(b,x.find("thead")[0]),c=0;c<s.length;c++)e=j[s[c]],t[c].style.width=null!==e.sWidthOrig&&""!==e.sWidthOrig?ya(e.sWidthOrig):"";if(b.aoData.length)for(c=0;c<s.length;c++)f=s[c],e=j[f],d(wa(b,f)).clone(!1).append(e.sContentPadding).appendTo(y);if(x.appendTo(v),m&&o?x.width(o):m?(x.css("width","auto"),x.width()<v.offsetWidth&&x.width(v.offsetWidth)):l?x.width(v.offsetWidth):u&&x.width(u),va(b,x[0]),m){var z=0;for(c=0;c<s.length;c++)e=j[s[c]],h=d(t[c]).outerWidth(),z+=null===e.sWidthOrig?h:parseInt(e.sWidth,10)+h-d(t[c]).width();x.width(ya(z)),i.style.width=ya(z)}for(c=0;c<s.length;c++)e=j[s[c]],g=d(t[c]).width(),g&&(e.sWidth=ya(g));i.style.width=ya(x.css("width")),x.remove()}else for(c=0;p>c;c++)j[c].sWidth=ya(t.eq(c).width());u&&(i.style.width=ya(u)),!u&&!m||b._reszEvt||(d(a).bind("resize.DT-"+b.sInstance,ta(function(){n(b)})),b._reszEvt=!0)}function ta(a,b){var d,e,f=b||200;return function(){var b=this,g=+new Date,h=arguments;d&&d+f>g?(clearTimeout(e),e=setTimeout(function(){d=c,a.apply(b,h)},f)):d?(d=g,a.apply(b,h)):d=g}}function ua(a,c){if(!a)return 0;var e=d("<div/>").css("width",ya(a)).appendTo(c||b.body),f=e[0].offsetWidth;return e.remove(),f}function va(a,b){var c=a.oScroll;if(c.sX||c.sY){var e=c.sX?0:c.iBarWidth;b.style.width=ya(d(b).outerWidth()-e)}}function wa(a,b){var c=xa(a,b);if(0>c)return null;var e=a.aoData[c];return e.nTr?e.anCells[b]:d("<td/>").html(y(a,c,b,"display"))[0]}function xa(a,b){for(var c,d=-1,e=-1,f=0,g=a.aoData.length;g>f;f++)c=y(a,f,b,"display")+"",c=c.replace(wb,""),c.length>d&&(d=c.length,e=f);return e}function ya(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function za(){if(!Wa.__scrollbarWidth){var a=d("<p/>").css({width:"100%",height:200,padding:0})[0],b=d("<div/>").css({position:"absolute",top:0,left:0,width:200,height:150,padding:0,overflow:"hidden",visibility:"hidden"}).append(a).appendTo("body"),c=a.offsetWidth;b.css("overflow","scroll");var e=a.offsetWidth;c===e&&(e=b[0].clientWidth),b.remove(),Wa.__scrollbarWidth=c-e}return Wa.__scrollbarWidth}function Aa(a){var b,c,e,f,g,h,i,j=[],k=a.aoColumns,l=a.aaSortingFixed,m=d.isPlainObject(l),n=[],o=function(a){a.length&&!d.isArray(a[0])?n.push(a):n.push.apply(n,a)};for(d.isArray(l)&&o(l),m&&l.pre&&o(l.pre),o(a.aaSorting),m&&l.post&&o(l.post),b=0;b<n.length;b++)for(i=n[b][0],f=k[i].aDataSort,c=0,e=f.length;e>c;c++)g=f[c],h=k[g].sType||"string",j.push({src:i,col:g,dir:n[b][1],index:n[b][2],type:h,formatter:Wa.ext.type.order[h+"-pre"]});return j}function Ba(a){var b,c,d,e,f,g=[],h=Wa.ext.type.order,i=a.aoData,j=(a.aoColumns,0),k=a.aiDisplayMaster;for(s(a),f=Aa(a),b=0,c=f.length;c>b;b++)e=f[b],e.formatter&&j++,Ga(a,e.col);if("ssp"!=Sa(a)&&0!==f.length){for(b=0,d=k.length;d>b;b++)g[k[b]]=b;k.sort(j===f.length?function(a,b){var c,d,e,h,j,k=f.length,l=i[a]._aSortData,m=i[b]._aSortData;for(e=0;k>e;e++)if(j=f[e],c=l[j.col],d=m[j.col],h=d>c?-1:c>d?1:0,0!==h)return"asc"===j.dir?h:-h;return c=g[a],d=g[b],d>c?-1:c>d?1:0}:function(a,b){var c,d,e,j,k,l,m=f.length,n=i[a]._aSortData,o=i[b]._aSortData;for(e=0;m>e;e++)if(k=f[e],c=n[k.col],d=o[k.col],l=h[k.type+"-"+k.dir]||h["string-"+k.dir],j=l(c,d),0!==j)return j;return c=g[a],d=g[b],d>c?-1:c>d?1:0})}a.bSorted=!0}function Ca(a){for(var b,c,d=a.aoColumns,e=Aa(a),f=a.oLanguage.oAria,g=0,h=d.length;h>g;g++){var i=d[g],j=i.asSorting,k=i.sTitle.replace(/<.*?>/g,""),l=i.nTh;l.removeAttribute("aria-sort"),i.bSortable?(e.length>0&&e[0].col==g?(l.setAttribute("aria-sort","asc"==e[0].dir?"ascending":"descending"),c=j[e[0].index+1]||j[0]):c=j[0],b=k+("asc"===c?f.sSortAscending:f.sSortDescending)):b=k,l.setAttribute("aria-label",b)}}function Da(a,b,e,f){var g,h=a.aoColumns[b],i=a.aaSorting,j=h.asSorting,k=function(a){var b=a._idx;return b===c&&(b=d.inArray(a[1],j)),b+1>=j.length?0:b+1};if("number"==typeof i[0]&&(i=a.aaSorting=[i]),e&&a.oFeatures.bSortMulti){var l=d.inArray(b,mb(i,"0"));-1!==l?(g=k(i[l]),i[l][1]=j[g],i[l]._idx=g):(i.push([b,j[0],0]),i[i.length-1]._idx=0)}else i.length&&i[0][0]==b?(g=k(i[0]),i.length=1,i[0][1]=j[g],
i[0]._idx=g):(i.length=0,i.push([b,j[0]]),i[0]._idx=0);N(a),"function"==typeof f&&f(a)}function Ea(a,b,c,d){var e=a.aoColumns[c];Na(b,{},function(b){e.bSortable!==!1&&(a.oFeatures.bProcessing?(oa(a,!0),setTimeout(function(){Da(a,c,b.shiftKey,d),"ssp"!==Sa(a)&&oa(a,!1)},0)):Da(a,c,b.shiftKey,d))})}function Fa(a){var b,c,e,f=a.aLastSort,g=a.oClasses.sSortColumn,h=Aa(a),i=a.oFeatures;if(i.bSort&&i.bSortClasses){for(b=0,c=f.length;c>b;b++)e=f[b].src,d(mb(a.aoData,"anCells",e)).removeClass(g+(2>b?b+1:3));for(b=0,c=h.length;c>b;b++)e=h[b].src,d(mb(a.aoData,"anCells",e)).addClass(g+(2>b?b+1:3))}a.aLastSort=h}function Ga(a,b){var c,d=a.aoColumns[b],e=Wa.ext.order[d.sSortDataType];e&&(c=e.call(a.oInstance,a,b,p(a,b)));for(var f,g,h=Wa.ext.type.order[d.sType+"-pre"],i=0,j=a.aoData.length;j>i;i++)f=a.aoData[i],f._aSortData||(f._aSortData=[]),(!f._aSortData[b]||e)&&(g=e?c[i]:y(a,i,b,"sort"),f._aSortData[b]=h?h(g):g)}function Ha(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b={time:+new Date,start:a._iDisplayStart,length:a._iDisplayLength,order:d.extend(!0,[],a.aaSorting),search:ca(a.oPreviousSearch),columns:d.map(a.aoColumns,function(b,c){return{visible:b.bVisible,search:ca(a.aoPreSearchCols[c])}})};Pa(a,"aoStateSaveParams","stateSaveParams",[a,b]),a.oSavedState=b,a.fnStateSaveCallback.call(a.oInstance,a,b)}}function Ia(a,b){var c,e,f=a.aoColumns;if(a.oFeatures.bStateSave){var g=a.fnStateLoadCallback.call(a.oInstance,a);if(g&&g.time){var h=Pa(a,"aoStateLoadParams","stateLoadParams",[a,g]);if(-1===d.inArray(!1,h)){var i=a.iStateDuration;if(!(i>0&&g.time<+new Date-1e3*i)&&f.length===g.columns.length){for(a.oLoadedState=d.extend(!0,{},g),a._iDisplayStart=g.start,a.iInitDisplayStart=g.start,a._iDisplayLength=g.length,a.aaSorting=[],d.each(g.order,function(b,c){a.aaSorting.push(c[0]>=f.length?[0,c[1]]:c)}),d.extend(a.oPreviousSearch,da(g.search)),c=0,e=g.columns.length;e>c;c++){var j=g.columns[c];f[c].bVisible=j.visible,d.extend(a.aoPreSearchCols[c],da(j.search))}Pa(a,"aoStateLoaded","stateLoaded",[a,g])}}}}}function Ja(a){var b=Wa.settings,c=d.inArray(a,mb(b,"nTable"));return-1!==c?b[c]:null}function Ka(b,c,d,e){if(d="DataTables warning: "+(null!==b?"table id="+b.sTableId+" - ":"")+d,e&&(d+=". For more information about this error, please see http://datatables.net/tn/"+e),c)a.console&&console.log&&console.log(d);else{var f=Wa.ext,g=f.sErrMode||f.errMode;if("alert"!=g)throw new Error(d);alert(d)}}function La(a,b,e,f){return d.isArray(e)?void d.each(e,function(c,e){d.isArray(e)?La(a,b,e[0],e[1]):La(a,b,e)}):(f===c&&(f=e),void(b[e]!==c&&(a[f]=b[e])))}function Ma(a,b,c){var e;for(var f in b)b.hasOwnProperty(f)&&(e=b[f],d.isPlainObject(e)?(d.isPlainObject(a[f])||(a[f]={}),d.extend(!0,a[f],e)):c&&"data"!==f&&"aaData"!==f&&d.isArray(e)?a[f]=e.slice():a[f]=e);return a}function Na(a,b,c){d(a).bind("click.DT",b,function(b){a.blur(),c(b)}).bind("keypress.DT",b,function(a){13===a.which&&(a.preventDefault(),c(a))}).bind("selectstart.DT",function(){return!1})}function Oa(a,b,c,d){c&&a[b].push({fn:c,sName:d})}function Pa(a,b,c,e){var f=[];return b&&(f=d.map(a[b].slice().reverse(),function(b,c){return b.fn.apply(a.oInstance,e)})),null!==c&&d(a.nTable).trigger(c+".dt",e),f}function Qa(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),d=a._iDisplayLength;c===a.fnRecordsDisplay()&&(b=c-d),(-1===d||0>b)&&(b=0),a._iDisplayStart=b}function Ra(a,b){var c=a.renderer,e=Wa.ext.renderer[b];return d.isPlainObject(c)&&c[b]?e[c[b]]||e._:"string"==typeof c?e[c]||e._:e._}function Sa(a){return a.oFeatures.bServerSide?"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function Ta(a,b){var c=[],d=Sb.numbers_length,e=Math.floor(d/2);return d>=b?c=ob(0,b):e>=a?(c=ob(0,d-2),c.push("ellipsis"),c.push(b-1)):a>=b-1-e?(c=ob(b-(d-2),b),c.splice(0,0,"ellipsis"),c.splice(0,0,0)):(c=ob(a-1,a+2),c.push("ellipsis"),c.push(b-1),c.splice(0,0,"ellipsis"),c.splice(0,0,0)),c.DT_el="span",c}function Ua(a){d.each({num:function(b){return Tb(b,a)},"num-fmt":function(b){return Tb(b,a,fb)},"html-num":function(b){return Tb(b,a,bb)},"html-num-fmt":function(b){return Tb(b,a,bb,fb)}},function(b,c){Xa.type.order[b+a+"-pre"]=c})}function Va(a){return function(){var b=[Ja(this[Wa.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return Wa.ext.internal[a].apply(this,b)}}var Wa,Xa,Ya,Za,$a,_a={},ab=/[\r\n]/g,bb=/<.*?>/g,cb=/^[\w\+\-]/,db=/[\w\+\-]$/,eb=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),fb=/[',$£€¥%\u2009\u202F]/g,gb=function(a){return a&&a!==!0&&"-"!==a?!1:!0},hb=function(a){var b=parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},ib=function(a,b){return _a[b]||(_a[b]=new RegExp(aa(b),"g")),"string"==typeof a?a.replace(/\./g,"").replace(_a[b],"."):a},jb=function(a,b,c){var d="string"==typeof a;return b&&d&&(a=ib(a,b)),c&&d&&(a=a.replace(fb,"")),gb(a)||!isNaN(parseFloat(a))&&isFinite(a)},kb=function(a){return gb(a)||"string"==typeof a},lb=function(a,b,c){if(gb(a))return!0;var d=kb(a);return d&&jb(pb(a),b,c)?!0:null},mb=function(a,b,d){var e=[],f=0,g=a.length;if(d!==c)for(;g>f;f++)a[f]&&a[f][b]&&e.push(a[f][b][d]);else for(;g>f;f++)a[f]&&e.push(a[f][b]);return e},nb=function(a,b,d,e){var f=[],g=0,h=b.length;if(e!==c)for(;h>g;g++)f.push(a[b[g]][d][e]);else for(;h>g;g++)f.push(a[b[g]][d]);return f},ob=function(a,b){var d,e=[];b===c?(b=0,d=a):(d=b,b=a);for(var f=b;d>f;f++)e.push(f);return e},pb=function(a){return a.replace(bb,"")},qb=function(a){var b,c,d,e=[],f=a.length,g=0;a:for(c=0;f>c;c++){for(b=a[c],d=0;g>d;d++)if(e[d]===b)continue a;e.push(b),g++}return e},rb=function(a,b,d){a[b]!==c&&(a[d]=a[b])},sb=/\[.*?\]$/,tb=/\(\)$/,ub=d("<div>")[0],vb=ub.textContent!==c,wb=/<.*?>/g;Wa=function(a){this.$=function(a,b){return this.api(!0).$(a,b)},this._=function(a,b){return this.api(!0).rows(a,b).data()},this.api=function(a){return new Ya(a?Ja(this[Xa.iApiIndex]):this)},this.fnAddData=function(a,b){var e=this.api(!0),f=d.isArray(a)&&(d.isArray(a[0])||d.isPlainObject(a[0]))?e.rows.add(a):e.row.add(a);return(b===c||b)&&e.draw(),f.flatten().toArray()},this.fnAdjustColumnSizing=function(a){var b=this.api(!0).columns.adjust(),d=b.settings()[0],e=d.oScroll;a===c||a?b.draw(!1):(""!==e.sX||""!==e.sY)&&qa(d)},this.fnClearTable=function(a){var b=this.api(!0).clear();(a===c||a)&&b.draw()},this.fnClose=function(a){this.api(!0).row(a).child.hide()},this.fnDeleteRow=function(a,b,d){var e=this.api(!0),f=e.rows(a),g=f.settings()[0],h=g.aoData[f[0][0]];return f.remove(),b&&b.call(this,g,h),(d===c||d)&&e.draw(),h},this.fnDestroy=function(a){this.api(!0).destroy(a)},this.fnDraw=function(a){this.api(!0).draw(!a)},this.fnFilter=function(a,b,d,e,f,g){var h=this.api(!0);null===b||b===c?h.search(a,d,e,g):h.column(b).search(a,d,e,g),h.draw()},this.fnGetData=function(a,b){var d=this.api(!0);if(a!==c){var e=a.nodeName?a.nodeName.toLowerCase():"";return b!==c||"td"==e||"th"==e?d.cell(a,b).data():d.row(a).data()||null}return d.data().toArray()},this.fnGetNodes=function(a){var b=this.api(!0);return a!==c?b.row(a).node():b.rows().nodes().flatten().toArray()},this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();if("TR"==c)return b.row(a).index();if("TD"==c||"TH"==c){var d=b.cell(a).index();return[d.row,d.columnVisible,d.column]}return null},this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()},this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]},this.fnPageChange=function(a,b){var d=this.api(!0).page(a);(b===c||b)&&d.draw(!1)},this.fnSetColumnVis=function(a,b,d){var e=this.api(!0).column(a).visible(b);(d===c||d)&&e.columns.adjust().draw()},this.fnSettings=function(){return Ja(this[Xa.iApiIndex])},this.fnSort=function(a){this.api(!0).order(a).draw()},this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)},this.fnUpdate=function(a,b,d,e,f){var g=this.api(!0);return d===c||null===d?g.row(b).data(a):g.cell(b,d).data(a),(f===c||f)&&g.columns.adjust(),(e===c||e)&&g.draw(),0},this.fnVersionCheck=Xa.fnVersionCheck;var b=this,e=a===c,k=this.length;e&&(a={}),this.oApi=this.internal=Xa.internal;for(var n in Wa.ext.internal)n&&(this[n]=Va(n));return this.each(function(){var n,o={},p=k>1?Ma(o,a,!0):a,q=0,r=this.getAttribute("id"),s=!1,w=Wa.defaults;if("table"!=this.nodeName.toLowerCase())return void Ka(null,0,"Non-table node initialisation ("+this.nodeName+")",2);h(w),i(w.column),f(w,w,!0),f(w.column,w.column,!0),f(w,p);var x=Wa.settings;for(q=0,n=x.length;n>q;q++){if(x[q].nTable==this){var y=p.bRetrieve!==c?p.bRetrieve:w.bRetrieve,z=p.bDestroy!==c?p.bDestroy:w.bDestroy;if(e||y)return x[q].oInstance;if(z){x[q].oInstance.fnDestroy();break}return void Ka(x[q],0,"Cannot reinitialise DataTable",3)}if(x[q].sTableId==this.id){x.splice(q,1);break}}(null===r||""===r)&&(r="DataTables_Table_"+Wa.ext._unique++,this.id=r);var A=d.extend(!0,{},Wa.models.oSettings,{nTable:this,oApi:b.internal,oInit:p,sDestroyWidth:d(this)[0].style.width,sInstance:r,sTableId:r});x.push(A),A.oInstance=1===b.length?b:d(this).dataTable(),h(p),p.oLanguage&&g(p.oLanguage),p.aLengthMenu&&!p.iDisplayLength&&(p.iDisplayLength=d.isArray(p.aLengthMenu[0])?p.aLengthMenu[0][0]:p.aLengthMenu[0]),p=Ma(d.extend(!0,{},w),p),La(A.oFeatures,p,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),La(A,p,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]),La(A.oScroll,p,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),La(A.oLanguage,p,"fnInfoCallback"),Oa(A,"aoDrawCallback",p.fnDrawCallback,"user"),Oa(A,"aoServerParams",p.fnServerParams,"user"),Oa(A,"aoStateSaveParams",p.fnStateSaveParams,"user"),Oa(A,"aoStateLoadParams",p.fnStateLoadParams,"user"),Oa(A,"aoStateLoaded",p.fnStateLoaded,"user"),Oa(A,"aoRowCallback",p.fnRowCallback,"user"),Oa(A,"aoRowCreatedCallback",p.fnCreatedRow,"user"),Oa(A,"aoHeaderCallback",p.fnHeaderCallback,"user"),Oa(A,"aoFooterCallback",p.fnFooterCallback,"user"),Oa(A,"aoInitComplete",p.fnInitComplete,"user"),Oa(A,"aoPreDrawCallback",p.fnPreDrawCallback,"user");var B=A.oClasses;if(p.bJQueryUI?(d.extend(B,Wa.ext.oJUIClasses,p.oClasses),p.sDom===w.sDom&&"lfrtip"===w.sDom&&(A.sDom='<"H"lfr>t<"F"ip>'),A.renderer?d.isPlainObject(A.renderer)&&!A.renderer.header&&(A.renderer.header="jqueryui"):A.renderer="jqueryui"):d.extend(B,Wa.ext.classes,p.oClasses),d(this).addClass(B.sTable),(""!==A.oScroll.sX||""!==A.oScroll.sY)&&(A.oScroll.iBarWidth=za()),A.oScroll.sX===!0&&(A.oScroll.sX="100%"),A.iInitDisplayStart===c&&(A.iInitDisplayStart=p.iDisplayStart,A._iDisplayStart=p.iDisplayStart),null!==p.iDeferLoading){A.bDeferLoading=!0;var C=d.isArray(p.iDeferLoading);A._iRecordsDisplay=C?p.iDeferLoading[0]:p.iDeferLoading,A._iRecordsTotal=C?p.iDeferLoading[1]:p.iDeferLoading}""!==p.oLanguage.sUrl?(A.oLanguage.sUrl=p.oLanguage.sUrl,d.getJSON(A.oLanguage.sUrl,null,function(a){g(a),f(w.oLanguage,a),d.extend(!0,A.oLanguage,p.oLanguage,a),ha(A)}),s=!0):d.extend(!0,A.oLanguage,p.oLanguage),null===p.asStripeClasses&&(A.asStripeClasses=[B.sStripeOdd,B.sStripeEven]);var D=A.asStripeClasses,E=d("tbody tr:eq(0)",this);-1!==d.inArray(!0,d.map(D,function(a,b){return E.hasClass(a)}))&&(d("tbody tr",this).removeClass(D.join(" ")),A.asDestroyStripes=D.slice());var F,G=[],I=this.getElementsByTagName("thead");if(0!==I.length&&(P(A.aoHeader,I[0]),G=Q(A)),null===p.aoColumns)for(F=[],q=0,n=G.length;n>q;q++)F.push(null);else F=p.aoColumns;for(q=0,n=F.length;n>q;q++)l(A,G?G[q]:null);if(t(A,p.aoColumnDefs,F,function(a,b){m(A,a,b)}),E.length){var J=function(a,b){return a.getAttribute("data-"+b)?b:null};d.each(H(A,E[0]).cells,function(a,b){var d=A.aoColumns[a];if(d.mData===a){var e=J(b,"sort")||J(b,"order"),f=J(b,"filter")||J(b,"search");(null!==e||null!==f)&&(d.mData={_:a+".display",sort:null!==e?a+".@data-"+e:c,type:null!==e?a+".@data-"+e:c,filter:null!==f?a+".@data-"+f:c},m(A,a))}})}var K=A.oFeatures;if(p.bStateSave&&(K.bStateSave=!0,Ia(A,p),Oa(A,"aoDrawCallback",Ha,"state_save")),p.aaSorting===c){var L=A.aaSorting;for(q=0,n=L.length;n>q;q++)L[q][1]=A.aoColumns[q].asSorting[0]}Fa(A),K.bSort&&Oa(A,"aoDrawCallback",function(){if(A.bSorted){var a=Aa(A),b={};d.each(a,function(a,c){b[c.src]=c.dir}),Pa(A,null,"order",[A,a,b]),Ca(A)}}),Oa(A,"aoDrawCallback",function(){(A.bSorted||"ssp"===Sa(A)||K.bDeferRender)&&Fa(A)},"sc"),j(A);var M=d(this).children("caption").each(function(){this._captionSide=d(this).css("caption-side")}),N=d(this).children("thead");0===N.length&&(N=d("<thead/>").appendTo(this)),A.nTHead=N[0];var O=d(this).children("tbody");0===O.length&&(O=d("<tbody/>").appendTo(this)),A.nTBody=O[0];var R=d(this).children("tfoot");if(0===R.length&&M.length>0&&(""!==A.oScroll.sX||""!==A.oScroll.sY)&&(R=d("<tfoot/>").appendTo(this)),0===R.length||0===R.children().length?d(this).addClass(B.sNoFooter):R.length>0&&(A.nTFoot=R[0],P(A.aoFooter,A.nTFoot)),p.aaData)for(q=0;q<p.aaData.length;q++)u(A,p.aaData[q]);else(A.bDeferLoading||"dom"==Sa(A))&&v(A,d(A.nTBody).children("tr"));A.aiDisplay=A.aiDisplayMaster.slice(),A.bInitialised=!0,s===!1&&ha(A)}),b=null,this};var xb=[],yb=Array.prototype,zb=function(a){var b,c,e=Wa.settings,f=d.map(e,function(a,b){return a.nTable});return a?a.nTable&&a.oApi?[a]:a.nodeName&&"table"===a.nodeName.toLowerCase()?(b=d.inArray(a,f),-1!==b?[e[b]]:null):a&&"function"==typeof a.settings?a.settings().toArray():("string"==typeof a?c=d(a):a instanceof d&&(c=a),c?c.map(function(a){return b=d.inArray(this,f),-1!==b?e[b]:null}).toArray():void 0):[]};Ya=function(a,b){if(!this instanceof Ya)throw"DT API must be constructed as a new object";var c=[],e=function(a){var b=zb(a);b&&c.push.apply(c,b)};if(d.isArray(a))for(var f=0,g=a.length;g>f;f++)e(a[f]);else e(a);this.context=qb(c),b&&this.push.apply(this,b.toArray?b.toArray():b),this.selector={rows:null,cols:null,opts:null},Ya.extend(this,this,xb)},Wa.Api=Ya,Ya.prototype={concat:yb.concat,context:[],each:function(a){for(var b=0,c=this.length;c>b;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=this.context;return b.length>a?new Ya(b[a],this[a]):null},filter:function(a){var b=[];if(yb.filter)b=yb.filter.call(this,a,this);else for(var c=0,d=this.length;d>c;c++)a.call(this,this[c],c,this)&&b.push(this[c]);return new Ya(this.context,b)},flatten:function(){var a=[];return new Ya(this.context,a.concat.apply(a,this.toArray()))},join:yb.join,indexOf:yb.indexOf||function(a,b){for(var c=b||0,d=this.length;d>c;c++)if(this[c]===a)return c;return-1},iterator:function(a,b,d){var e,f,g,h,i,j,k,l,m=[],n=this.context,o=this.selector;for("string"==typeof a&&(d=b,b=a,a=!1),f=0,g=n.length;g>f;f++)if("table"===b)e=d(n[f],f),e!==c&&m.push(e);else if("columns"===b||"rows"===b)e=d(n[f],this[f],f),e!==c&&m.push(e);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b)for(k=this[f],"column-rows"===b&&(j=Fb(n[f],o.opts)),h=0,i=k.length;i>h;h++)l=k[h],e="cell"===b?d(n[f],l.row,l.column,f,h):d(n[f],l,f,h,j),e!==c&&m.push(e);if(m.length){var p=new Ya(n,a?m.concat.apply([],m):m),q=p.selector;return q.rows=o.rows,q.cols=o.cols,q.opts=o.opts,p}return this},lastIndexOf:yb.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(a){var b=[];if(yb.map)b=yb.map.call(this,a,this);else for(var c=0,d=this.length;d>c;c++)b.push(a.call(this,this[c],c));return new Ya(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:yb.pop,push:yb.push,reduce:yb.reduce||function(a,b){return k(this,a,b,0,this.length,1)},reduceRight:yb.reduceRight||function(a,b){return k(this,a,b,this.length-1,-1,-1)},reverse:yb.reverse,selector:null,shift:yb.shift,sort:yb.sort,splice:yb.splice,toArray:function(){return yb.slice.call(this)},to$:function(){return d(this)},toJQuery:function(){return d(this)},unique:function(){return new Ya(this.context,qb(this))},unshift:yb.unshift},Ya.extend=function(a,b,c){if(b&&(b instanceof Ya||b.__dt_wrapper)){var e,f,g,h=function(a,b,c){return function(){var d=b.apply(a,arguments);return Ya.extend(d,d,c.methodExt),d}};for(e=0,f=c.length;f>e;e++)g=c[e],b[g.name]="function"==typeof g.val?h(a,g.val,g):d.isPlainObject(g.val)?{}:g.val,b[g.name].__dt_wrapper=!0,Ya.extend(a,b[g.name],g.propExt)}},Ya.register=Za=function(a,b){if(d.isArray(a))for(var c=0,e=a.length;e>c;c++)Ya.register(a[c],b);else{var f,g,h,i,j=a.split("."),k=xb,l=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c].name===b)return a[c];return null};for(f=0,g=j.length;g>f;f++){i=-1!==j[f].indexOf("()"),h=i?j[f].replace("()",""):j[f];var m=l(k,h);m||(m={name:h,val:{},methodExt:[],propExt:[]},k.push(m)),f===g-1?m.val=b:k=i?m.methodExt:m.propExt}}},Ya.registerPlural=$a=function(a,b,e){Ya.register(a,e),Ya.register(b,function(){var a=e.apply(this,arguments);return a===this?this:a instanceof Ya?a.length?d.isArray(a[0])?new Ya(a.context,a[0]):a[0]:c:a})};var Ab=function(a,b){if("number"==typeof a)return[b[a]];var c=d.map(b,function(a,b){return a.nTable});return d(c).filter(a).map(function(a){var e=d.inArray(this,c);return b[e]}).toArray()};Za("tables()",function(a){return a?new Ya(Ab(a,this.context)):this}),Za("table()",function(a){var b=this.tables(a),c=b.context;return c.length?new Ya(c[0]):b}),$a("tables().nodes()","table().node()",function(){return this.iterator("table",function(a){return a.nTable})}),$a("tables().body()","table().body()",function(){return this.iterator("table",function(a){return a.nTBody})}),$a("tables().header()","table().header()",function(){return this.iterator("table",function(a){return a.nTHead})}),$a("tables().footer()","table().footer()",function(){return this.iterator("table",function(a){return a.nTFoot})}),$a("tables().containers()","table().container()",function(){return this.iterator("table",function(a){return a.nTableWrapper})}),Za("draw()",function(a){return this.iterator("table",function(b){N(b,a===!1)})}),Za("page()",function(a){return a===c?this.page.info().page:this.iterator("table",function(b){ma(b,a)})}),Za("page.info()",function(a){if(0===this.context.length)return c;var b=this.context[0],d=b._iDisplayStart,e=b._iDisplayLength,f=b.fnRecordsDisplay(),g=-1===e;return{page:g?0:Math.floor(d/e),pages:g?1:Math.ceil(f/e),start:d,end:b.fnDisplayEnd(),length:e,recordsTotal:b.fnRecordsTotal(),recordsDisplay:f}}),Za("page.len()",function(a){return a===c?0!==this.context.length?this.context[0]._iDisplayLength:c:this.iterator("table",function(b){ja(b,a)})});var Bb=function(a,b,c){if("ssp"==Sa(a)?N(a,b):(oa(a,!0),R(a,[],function(c){E(a);for(var d=V(a,c),e=0,f=d.length;f>e;e++)u(a,d[e]);N(a,b),oa(a,!1)})),c){var d=new Ya(a);d.one("draw",function(){c(d.ajax.json())})}};Za("ajax.json()",function(){var a=this.context;return a.length>0?a[0].json:void 0}),Za("ajax.params()",function(){var a=this.context;return a.length>0?a[0].oAjaxData:void 0}),Za("ajax.reload()",function(a,b){return this.iterator("table",function(c){Bb(c,b===!1,a)})}),Za("ajax.url()",function(a){var b=this.context;return a===c?0===b.length?c:(b=b[0],b.ajax?d.isPlainObject(b.ajax)?b.ajax.url:b.ajax:b.sAjaxSource):this.iterator("table",function(b){d.isPlainObject(b.ajax)?b.ajax.url=a:b.ajax=a})}),Za("ajax.url().load()",function(a,b){return this.iterator("table",function(c){Bb(c,b===!1,a)})});var Cb=function(a,b){var e,f,g,h,i,j,k=[];for(a&&"string"!=typeof a&&a.length!==c||(a=[a]),g=0,h=a.length;h>g;g++)for(f=a[g]&&a[g].split?a[g].split(","):[a[g]],i=0,j=f.length;j>i;i++)e=b("string"==typeof f[i]?d.trim(f[i]):f[i]),e&&e.length&&k.push.apply(k,e);return k},Db=function(a){return a||(a={}),a.filter&&!a.search&&(a.search=a.filter),{search:a.search||"none",order:a.order||"current",page:a.page||"all"}},Eb=function(a){for(var b=0,c=a.length;c>b;b++)if(a[b].length>0)return a[0]=a[b],a.length=1,a.context=[a.context[b]],a;return a.length=0,a},Fb=function(a,b){var c,e,f,g=[],h=a.aiDisplay,i=a.aiDisplayMaster,j=b.search,k=b.order,l=b.page;if("ssp"==Sa(a))return"removed"===j?[]:ob(0,i.length);if("current"==l)for(c=a._iDisplayStart,e=a.fnDisplayEnd();e>c;c++)g.push(h[c]);else if("current"==k||"applied"==k)g="none"==j?i.slice():"applied"==j?h.slice():d.map(i,function(a,b){return-1===d.inArray(a,h)?a:null});else if("index"==k||"original"==k)for(c=0,e=a.aoData.length;e>c;c++)"none"==j?g.push(c):(f=d.inArray(c,h),(-1===f&&"removed"==j||f>=0&&"applied"==j)&&g.push(c));return g},Gb=function(a,b,c){return Cb(b,function(b){var e=hb(b);if(null!==e&&!c)return[e];var f=Fb(a,c);if(null!==e&&-1!==d.inArray(e,f))return[e];if(!b)return f;for(var g=[],h=0,i=f.length;i>h;h++)g.push(a.aoData[f[h]].nTr);return b.nodeName&&-1!==d.inArray(b,g)?[b._DT_RowIndex]:d(g).filter(b).map(function(){return this._DT_RowIndex}).toArray()})};Za("rows()",function(a,b){a===c?a="":d.isPlainObject(a)&&(b=a,a=""),b=Db(b);var e=this.iterator("table",function(c){return Gb(c,a,b)});return e.selector.rows=a,e.selector.opts=b,e}),Za("rows().nodes()",function(){return this.iterator("row",function(a,b){return a.aoData[b].nTr||c})}),Za("rows().data()",function(){return this.iterator(!0,"rows",function(a,b){return nb(a.aoData,b,"_aData")})}),$a("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){var d=b.aoData[c];return"search"===a?d._aFilterData:d._aSortData})}),$a("rows().invalidate()","row().invalidate()",function(a){return this.iterator("row",function(b,c){G(b,c,a)})}),$a("rows().indexes()","row().index()",function(){return this.iterator("row",function(a,b){return b})}),$a("rows().remove()","row().remove()",function(){var a=this;return this.iterator("row",function(b,c,e){var f=b.aoData;f.splice(c,1);for(var g=0,h=f.length;h>g;g++)null!==f[g].nTr&&(f[g].nTr._DT_RowIndex=g);d.inArray(c,b.aiDisplay);F(b.aiDisplayMaster,c),F(b.aiDisplay,c),F(a[e],c,!1),Qa(b)})}),Za("rows.add()",function(a){var b=this.iterator("table",function(b){var c,d,e,f=[];for(d=0,e=a.length;e>d;d++)c=a[d],f.push(c.nodeName&&"TR"===c.nodeName.toUpperCase()?v(b,c)[0]:u(b,c));return f}),c=this.rows(-1);return c.pop(),c.push.apply(c,b.toArray()),c}),Za("row()",function(a,b){return Eb(this.rows(a,b))}),Za("row().data()",function(a){var b=this.context;return a===c?b.length&&this.length?b[0].aoData[this[0]]._aData:c:(b[0].aoData[this[0]]._aData=a,G(b[0],this[0],"data"),this)}),Za("row().node()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]].nTr||null:null}),Za("row.add()",function(a){a instanceof d&&a.length&&(a=a[0]);var b=this.iterator("table",function(b){return a.nodeName&&"TR"===a.nodeName.toUpperCase()?v(b,a)[0]:u(b,a)});return this.row(b[0])});var Hb=function(a,b,c,e){var f=[],g=function(b,c){if(b.nodeName&&"tr"===b.nodeName.toLowerCase())f.push(b);else{var e=d("<tr><td/></tr>").addClass(c);d("td",e).addClass(c).html(b)[0].colSpan=q(a),f.push(e[0])}};if(d.isArray(c)||c instanceof d)for(var h=0,i=c.length;i>h;h++)g(c[h],e);else g(c,e);b._details&&b._details.remove(),b._details=d(f),b._detailsShow&&b._details.insertAfter(b.nTr)},Ib=function(a){var b=a.context;if(b.length&&a.length){var d=b[0].aoData[a[0]];d._details&&(d._details.remove(),d._detailsShow=c,d._details=c)}},Jb=function(a,b){var c=a.context;if(c.length&&a.length){var d=c[0].aoData[a[0]];d._details&&(d._detailsShow=b,b?d._details.insertAfter(d.nTr):d._details.detach(),Kb(c[0]))}},Kb=function(a){var b=new Ya(a),c=".dt.DT_details",d="draw"+c,e="column-visibility"+c,f="destroy"+c,g=a.aoData;b.off(d+" "+e+" "+f),mb(g,"_details").length>0&&(b.on(d,function(c,d){a===d&&b.rows({page:"current"}).eq(0).each(function(a){var b=g[a];b._detailsShow&&b._details.insertAfter(b.nTr)})}),b.on(e,function(b,c,d,e){if(a===c)for(var f,h=q(c),i=0,j=g.length;j>i;i++)f=g[i],f._details&&f._details.children("td[colspan]").attr("colspan",h)}),b.on(f,function(b,c){if(a===c)for(var d=0,e=g.length;e>d;d++)g[d]._details&&Ib(g[d])}))},Lb="",Mb=Lb+"row().child",Nb=Mb+"()";Za(Nb,function(a,b){var d=this.context;return a===c?d.length&&this.length?d[0].aoData[this[0]]._details:c:(a===!0?this.child.show():a===!1?Ib(this):d.length&&this.length&&Hb(d[0],d[0].aoData[this[0]],a,b),this)}),Za([Mb+".show()",Nb+".show()"],function(a){return Jb(this,!0),this}),Za([Mb+".hide()",Nb+".hide()"],function(){return Jb(this,!1),this}),Za([Mb+".remove()",Nb+".remove()"],function(){return Ib(this),this}),Za(Mb+".isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var Ob=/^(.+):(name|visIdx|visible)$/,Pb=function(a,b,c){var e=a.aoColumns,f=mb(e,"sName"),g=mb(e,"nTh");return Cb(b,function(b){var c=hb(b);if(""===b)return ob(e.length);if(null!==c)return[c>=0?c:e.length+c];var h="string"==typeof b?b.match(Ob):"";if(!h)return d(g).filter(b).map(function(){return d.inArray(this,g)}).toArray();switch(h[2]){case"visIdx":case"visible":var i=parseInt(h[1],10);if(0>i){var j=d.map(e,function(a,b){return a.bVisible?b:null});return[j[j.length+i]]}return[o(a,i)];case"name":return d.map(f,function(a,b){return a===h[1]?b:null})}})},Qb=function(a,b,e,f){var g,h,i,j,k=a.aoColumns,l=k[b],m=a.aoData;if(e===c)return l.bVisible;if(l.bVisible!==e){if(e){var o=d.inArray(!0,mb(k,"bVisible"),b+1);for(h=0,i=m.length;i>h;h++)j=m[h].nTr,g=m[h].anCells,j&&j.insertBefore(g[b],g[o]||null)}else d(mb(a.aoData,"anCells",b)).detach();l.bVisible=e,L(a,a.aoHeader),L(a,a.aoFooter),(f===c||f)&&(n(a),(a.oScroll.sX||a.oScroll.sY)&&qa(a)),Pa(a,null,"column-visibility",[a,b,e]),Ha(a)}};Za("columns()",function(a,b){a===c?a="":d.isPlainObject(a)&&(b=a,a=""),b=Db(b);var e=this.iterator("table",function(c){return Pb(c,a,b)});return e.selector.cols=a,e.selector.opts=b,e}),$a("columns().header()","column().header()",function(a,b){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh})}),$a("columns().footer()","column().footer()",function(a,b){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf})}),$a("columns().data()","column().data()",function(){return this.iterator("column-rows",function(a,b,c,d,e){for(var f=[],g=0,h=e.length;h>g;g++)f.push(y(a,e[g],b,""));return f})}),$a("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,d,e,f){return nb(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)})}),$a("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,e){return nb(a.aoData,e,"anCells",b)})}),$a("columns().visible()","column().visible()",function(a,b){return this.iterator("column",function(d,e){return a===c?d.aoColumns[e].bVisible:Qb(d,e,a,b)})}),$a("columns().indexes()","column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===a?p(b,c):c})}),Za("columns.adjust()",function(){return this.iterator("table",function(a){n(a)})}),Za("column.index()",function(a,b){if(0!==this.context.length){var c=this.context[0];if("fromVisible"===a||"toData"===a)return o(c,b);if("fromData"===a||"toVisible"===a)return p(c,b)}}),Za("column()",function(a,b){return Eb(this.columns(a,b))});var Rb=function(a,b,e){var f,g,h,i,j,k=a.aoData,l=Fb(a,e),m=nb(k,l,"anCells"),n=d([].concat.apply([],m)),o=a.aoColumns.length;return Cb(b,function(a){if(null===a||a===c){for(g=[],h=0,i=l.length;i>h;h++)for(f=l[h],j=0;o>j;j++)g.push({row:f,column:j});return g}return d.isPlainObject(a)?[a]:n.filter(a).map(function(a,b){return f=b.parentNode._DT_RowIndex,{row:f,column:d.inArray(b,k[f].anCells)}}).toArray()})};Za("cells()",function(a,b,e){if(d.isPlainObject(a)&&(typeof a.row!==c?(e=b,b=null):(e=a,a=null)),d.isPlainObject(b)&&(e=b,b=null),null===b||b===c)return this.iterator("table",function(b){return Rb(b,a,Db(e))});var f,g,h,i,j,k=this.columns(b,e),l=this.rows(a,e),m=this.iterator("table",function(a,b){for(f=[],g=0,h=l[b].length;h>g;g++)for(i=0,j=k[b].length;j>i;i++)f.push({row:l[b][g],column:k[b][i]});return f});return d.extend(m.selector,{cols:b,rows:a,opts:e}),m}),$a("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(a,b,c){return a.aoData[b].anCells[c]})}),Za("cells().data()",function(){return this.iterator("cell",function(a,b,c){return y(a,b,c)})}),$a("cells().cache()","cell().cache()",function(a){return a="search"===a?"_aFilterData":"_aSortData",this.iterator("cell",function(b,c,d){return b.aoData[c][a][d]})}),$a("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:p(a,c)}})}),Za(["cells().invalidate()","cell().invalidate()"],function(a){var b=this.selector;return this.rows(b.rows,b.opts).invalidate(a),this}),Za("cell()",function(a,b,c){return Eb(this.cells(a,b,c))}),Za("cell().data()",function(a){var b=this.context,d=this[0];return a===c?b.length&&d.length?y(b[0],d[0].row,d[0].column):c:(z(b[0],d[0].row,d[0].column,a),G(b[0],d[0].row,"data",d[0].column),this)}),Za("order()",function(a,b){var e=this.context;return a===c?0!==e.length?e[0].aaSorting:c:("number"==typeof a?a=[[a,b]]:d.isArray(a[0])||(a=Array.prototype.slice.call(arguments)),this.iterator("table",function(b){b.aaSorting=a.slice()}))}),Za("order.listener()",function(a,b,c){return this.iterator("table",function(d){Ea(d,a,b,c)})}),Za(["columns().order()","column().order()"],function(a){var b=this;return this.iterator("table",function(c,e){var f=[];d.each(b[e],function(b,c){f.push([c,a])}),c.aaSorting=f})}),Za("search()",function(a,b,e,f){var g=this.context;return a===c?0!==g.length?g[0].oPreviousSearch.sSearch:c:this.iterator("table",function(c){c.oFeatures.bFilter&&X(c,d.extend({},c.oPreviousSearch,{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===e?!0:e,bCaseInsensitive:null===f?!0:f}),1)})}),$a("columns().search()","column().search()",function(a,b,e,f){return this.iterator("column",function(g,h){var i=g.aoPreSearchCols;return a===c?i[h].sSearch:void(g.oFeatures.bFilter&&(d.extend(i[h],{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===e?!0:e,bCaseInsensitive:null===f?!0:f}),X(g,g.oPreviousSearch,1)))})}),Za("state()",function(){return this.context.length?this.context[0].oSavedState:null}),Za("state.clear()",function(){return this.iterator("table",function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})}),Za("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),Za("state.save()",function(){return this.iterator("table",function(a){Ha(a)})}),Wa.versionCheck=Wa.fnVersionCheck=function(a){for(var b,c,d=Wa.version.split("."),e=a.split("."),f=0,g=e.length;g>f;f++)if(b=parseInt(d[f],10)||0,c=parseInt(e[f],10)||0,b!==c)return b>c;return!0},Wa.isDataTable=Wa.fnIsDataTable=function(a){var b=d(a).get(0),c=!1;return d.each(Wa.settings,function(a,d){(d.nTable===b||d.nScrollHead===b||d.nScrollFoot===b)&&(c=!0)}),c},Wa.tables=Wa.fnTables=function(a){return jQuery.map(Wa.settings,function(b){return!a||a&&d(b.nTable).is(":visible")?b.nTable:void 0})},Wa.camelToHungarian=f,Za("$()",function(a,b){var c=this.rows(b).nodes(),e=d(c);return d([].concat(e.filter(a).toArray(),e.find(a).toArray()))}),d.each(["on","one","off"],function(a,b){Za(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0].match(/\.dt\b/)||(a[0]+=".dt");var c=d(this.tables().nodes());return c[b].apply(c,a),this})}),Za("clear()",function(){return this.iterator("table",function(a){E(a)})}),Za("settings()",function(){return new Ya(this.context,this.context)}),Za("data()",function(){return this.iterator("table",function(a){return mb(a.aoData,"_aData")}).flatten()}),Za("destroy()",function(b){return b=b||!1,this.iterator("table",function(c){var e,f=c.nTableWrapper.parentNode,g=c.oClasses,h=c.nTable,i=c.nTBody,j=c.nTHead,k=c.nTFoot,l=d(h),m=d(i),n=d(c.nTableWrapper),o=d.map(c.aoData,function(a){return a.nTr});c.bDestroying=!0,Pa(c,"aoDestroyCallback","destroy",[c]),b||new Ya(c).columns().visible(!0),
n.unbind(".DT").find(":not(tbody *)").unbind(".DT"),d(a).unbind(".DT-"+c.sInstance),h!=j.parentNode&&(l.children("thead").detach(),l.append(j)),k&&h!=k.parentNode&&(l.children("tfoot").detach(),l.append(k)),l.detach(),n.detach(),c.aaSorting=[],c.aaSortingFixed=[],Fa(c),d(o).removeClass(c.asStripeClasses.join(" ")),d("th, td",j).removeClass(g.sSortable+" "+g.sSortableAsc+" "+g.sSortableDesc+" "+g.sSortableNone),c.bJUI&&(d("th span."+g.sSortIcon+", td span."+g.sSortIcon,j).detach(),d("th, td",j).each(function(){var a=d("div."+g.sSortJUIWrapper,this);d(this).append(a.contents()),a.detach()})),!b&&f&&f.insertBefore(h,c.nTableReinsertBefore),m.children().detach(),m.append(o),l.css("width",c.sDestroyWidth).removeClass(g.sTable),e=c.asDestroyStripes.length,e&&m.children().each(function(a){d(this).addClass(c.asDestroyStripes[a%e])});var p=d.inArray(c,Wa.settings);-1!==p&&Wa.settings.splice(p,1)})}),Wa.version="1.10.2",Wa.settings=[],Wa.models={},Wa.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},Wa.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null},Wa.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},Wa.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+"_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:d.extend({},Wa.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null},e(Wa.defaults),Wa.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},e(Wa.defaults.column),Wa.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:c,oAjaxData:c,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Sa(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Sa(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=this._iDisplayLength,b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=this.oFeatures,f=e.bPaginate;return e.bServerSide?f===!1||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!f||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{}},Wa.ext=Xa={classes:{},errMode:"alert",feature:[],search:[],internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:Wa.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:Wa.version},d.extend(Xa,{afnFiltering:Xa.search,aTypes:Xa.type.detect,ofnSearch:Xa.type.search,oSort:Xa.type.order,afnSortData:Xa.order,aoFeatures:Xa.feature,oApi:Xa.internal,oStdClasses:Xa.classes,oPagination:Xa.pager}),d.extend(Wa.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""}),function(){var a="";a="";var b=a+"ui-state-default",c=a+"css_right ui-icon ui-icon-",e=a+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";d.extend(Wa.ext.oJUIClasses,Wa.ext.classes,{sPageButton:"fg-button ui-button "+b,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:b+" sorting_asc",sSortDesc:b+" sorting_desc",sSortable:b+" sorting",sSortableAsc:b+" sorting_asc_disabled",sSortableDesc:b+" sorting_desc_disabled",sSortableNone:b+" sorting_disabled",sSortJUIAsc:c+"triangle-1-n",sSortJUIDesc:c+"triangle-1-s",sSortJUI:c+"carat-2-n-s",sSortJUIAscAllowed:c+"carat-1-n",sSortJUIDescAllowed:c+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+b,sScrollFoot:"dataTables_scrollFoot "+b,sHeaderTH:b,sFooterTH:b,sJUIHeader:e+" ui-corner-tl ui-corner-tr",sJUIFooter:e+" ui-corner-bl ui-corner-br"})}();var Sb=Wa.ext.pager;d.extend(Sb,{simple:function(a,b){return["previous","next"]},full:function(a,b){return["first","previous","next","last"]},simple_numbers:function(a,b){return["previous",Ta(a,b),"next"]},full_numbers:function(a,b){return["first","previous",Ta(a,b),"next","last"]},_numbers:Ta,numbers_length:7}),d.extend(!0,Wa.ext.renderer,{pageButton:{_:function(a,c,e,f,g,h){var i,j,k=a.oClasses,l=a.oLanguage.oPaginate,m=0,n=function(b,c){var f,o,p,q,r=function(b){ma(a,b.data.action,!0)};for(f=0,o=c.length;o>f;f++)if(q=c[f],d.isArray(q)){var s=d("<"+(q.DT_el||"div")+"/>").appendTo(b);n(s,q)}else{switch(i="",j="",q){case"ellipsis":b.append("<span>…</span>");break;case"first":i=l.sFirst,j=q+(g>0?"":" "+k.sPageButtonDisabled);break;case"previous":i=l.sPrevious,j=q+(g>0?"":" "+k.sPageButtonDisabled);break;case"next":i=l.sNext,j=q+(h-1>g?"":" "+k.sPageButtonDisabled);break;case"last":i=l.sLast,j=q+(h-1>g?"":" "+k.sPageButtonDisabled);break;default:i=q+1,j=g===q?k.sPageButtonActive:""}i&&(p=d("<a>",{"class":k.sPageButton+" "+j,"aria-controls":a.sTableId,"data-dt-idx":m,tabindex:a.iTabIndex,id:0===e&&"string"==typeof q?a.sTableId+"_"+q:null}).html(i).appendTo(b),Na(p,{action:q},r),m++)}};try{var o=d(b.activeElement).data("dt-idx");n(d(c).empty(),f),null!==o&&d(c).find("[data-dt-idx="+o+"]").focus()}catch(p){}}}});var Tb=function(a,b,c,d){return a&&"-"!==a?(b&&(a=ib(a,b)),a.replace&&(c&&(a=a.replace(c,"")),d&&(a=a.replace(d,""))),1*a):-(1/0)};return d.extend(Xa.type.order,{"date-pre":function(a){return Date.parse(a)||0},"html-pre":function(a){return gb(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return gb(a)?"":"string"==typeof a?a.toLowerCase():a.toString?a.toString():""},"string-asc":function(a,b){return b>a?-1:a>b?1:0},"string-desc":function(a,b){return b>a?1:a>b?-1:0}}),Ua(""),d.extend(Wa.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return jb(a,c)?"num"+c:null},function(a,b){if(a&&(!cb.test(a)||!db.test(a)))return null;var c=Date.parse(a);return null!==c&&!isNaN(c)||gb(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return jb(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return lb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return lb(a,c,!0)?"html-num-fmt"+c:null},function(a,b){return gb(a)||"string"==typeof a&&-1!==a.indexOf("<")?"html":null}]),d.extend(Wa.ext.type.search,{html:function(a){return gb(a)?a:"string"==typeof a?a.replace(ab," ").replace(bb,""):""},string:function(a){return gb(a)?a:"string"==typeof a?a.replace(ab," "):a}}),d.extend(!0,Wa.ext.renderer,{header:{_:function(a,b,c,e){d(a.nTable).on("order.dt.DT",function(d,f,g,h){if(a===f){var i=c.idx;b.removeClass(c.sSortingClass+" "+e.sSortAsc+" "+e.sSortDesc).addClass("asc"==h[i]?e.sSortAsc:"desc"==h[i]?e.sSortDesc:c.sSortingClass)}})},jqueryui:function(a,b,c,e){var f=c.idx;d("<div/>").addClass(e.sSortJUIWrapper).append(b.contents()).append(d("<span/>").addClass(e.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b),d(a.nTable).on("order.dt.DT",function(d,g,h,i){a===g&&(b.removeClass(e.sSortAsc+" "+e.sSortDesc).addClass("asc"==i[f]?e.sSortAsc:"desc"==i[f]?e.sSortDesc:c.sSortingClass),b.find("span."+e.sSortIcon).removeClass(e.sSortJUIAsc+" "+e.sSortJUIDesc+" "+e.sSortJUI+" "+e.sSortJUIAscAllowed+" "+e.sSortJUIDescAllowed).addClass("asc"==i[f]?e.sSortJUIAsc:"desc"==i[f]?e.sSortJUIDesc:c.sSortingClassJUI))})}}}),Wa.render={number:function(a,b,c,d){return{display:function(e){var f=0>e?"-":"";e=Math.abs(parseFloat(e));var g=parseInt(e,10),h=c?b+(e-g).toFixed(c).substring(2):"";return f+(d||"")+g.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+h}}}},d.extend(Wa.ext.internal,{_fnExternApiFunc:Va,_fnBuildAjax:R,_fnAjaxUpdate:S,_fnAjaxParameters:T,_fnAjaxUpdateDraw:U,_fnAjaxDataSrc:V,_fnAddColumn:l,_fnColumnOptions:m,_fnAdjustColumnSizing:n,_fnVisibleToColumnIndex:o,_fnColumnIndexToVisible:p,_fnVisbleColumns:q,_fnGetColumns:r,_fnColumnTypes:s,_fnApplyColumnDefs:t,_fnHungarianMap:e,_fnCamelToHungarian:f,_fnLanguageCompat:g,_fnBrowserDetect:j,_fnAddData:u,_fnAddTr:v,_fnNodeToDataIndex:w,_fnNodeToColumnIndex:x,_fnGetCellData:y,_fnSetCellData:z,_fnSplitObjNotation:A,_fnGetObjectDataFn:B,_fnSetObjectDataFn:C,_fnGetDataMaster:D,_fnClearTable:E,_fnDeleteIndex:F,_fnInvalidateRow:G,_fnGetRowElements:H,_fnCreateTr:I,_fnBuildHead:K,_fnDrawHead:L,_fnDraw:M,_fnReDraw:N,_fnAddOptionsHtml:O,_fnDetectHeader:P,_fnGetUniqueThs:Q,_fnFeatureHtmlFilter:W,_fnFilterComplete:X,_fnFilterCustom:Y,_fnFilterColumn:Z,_fnFilter:$,_fnFilterCreateSearch:_,_fnEscapeRegex:aa,_fnFilterData:ba,_fnFeatureHtmlInfo:ea,_fnUpdateInfo:fa,_fnInfoMacros:ga,_fnInitialise:ha,_fnInitComplete:ia,_fnLengthChange:ja,_fnFeatureHtmlLength:ka,_fnFeatureHtmlPaginate:la,_fnPageChange:ma,_fnFeatureHtmlProcessing:na,_fnProcessingDisplay:oa,_fnFeatureHtmlTable:pa,_fnScrollDraw:qa,_fnApplyToChildren:ra,_fnCalculateColumnWidths:sa,_fnThrottle:ta,_fnConvertToWidth:ua,_fnScrollingWidthAdjust:va,_fnGetWidestNode:wa,_fnGetMaxLenString:xa,_fnStringToCss:ya,_fnScrollBarWidth:za,_fnSortFlatten:Aa,_fnSort:Ba,_fnSortAria:Ca,_fnSortListener:Da,_fnSortAttachListener:Ea,_fnSortingClasses:Fa,_fnSortData:Ga,_fnSaveState:Ha,_fnLoadState:Ia,_fnSettingsFromNode:Ja,_fnLog:Ka,_fnMap:La,_fnBindAction:Na,_fnCallbackReg:Oa,_fnCallbackFire:Pa,_fnLengthOverflow:Qa,_fnRenderer:Ra,_fnDataSource:Sa,_fnRowAttributes:J,_fnCalculateEnd:function(){}}),d.fn.dataTable=Wa,d.fn.dataTableSettings=Wa.settings,d.fn.dataTableExt=Wa.ext,d.fn.DataTable=function(a){return d(this).dataTable(a).api()},d.each(Wa,function(a,b){d.fn.DataTable[a]=b}),d.fn.dataTable})}(window,document); | 13,023.833333 | 32,014 | 0.675608 |
182a26c88dfb27041248e06346538775517fc91a | 94 | js | JavaScript | resources/js/store-modules/state.js | tanyaruabuha/otton-price-monitoring | 056eac61cfaa336f66b15e11f7369716f5f52024 | [
"MIT"
] | null | null | null | resources/js/store-modules/state.js | tanyaruabuha/otton-price-monitoring | 056eac61cfaa336f66b15e11f7369716f5f52024 | [
"MIT"
] | null | null | null | resources/js/store-modules/state.js | tanyaruabuha/otton-price-monitoring | 056eac61cfaa336f66b15e11f7369716f5f52024 | [
"MIT"
] | null | null | null | let state = {
allProductId: [],
errors: [],
products: []
};
export default state
| 11.75 | 21 | 0.553191 |
182a4bd709ab0214ef4bddbae79f4c282804d6f2 | 3,346 | js | JavaScript | backend/server.js | alan-nascimento/auth-bank | 12f72a51060b2b9cb04ef8b2c8ef6c517530088d | [
"MIT"
] | null | null | null | backend/server.js | alan-nascimento/auth-bank | 12f72a51060b2b9cb04ef8b2c8ef6c517530088d | [
"MIT"
] | 2 | 2021-03-10T22:47:05.000Z | 2022-02-19T03:53:19.000Z | backend/server.js | alan-nascimento/auth-bank | 12f72a51060b2b9cb04ef8b2c8ef6c517530088d | [
"MIT"
] | 1 | 2020-06-25T19:30:11.000Z | 2020-06-25T19:30:11.000Z | const fs = require('fs');
const jwt = require('jsonwebtoken');
const bodyParser = require('body-parser');
const jsonServer = require('json-server');
const server = jsonServer.create();
const router = jsonServer.router('./database.json');
let userdb = JSON.parse(fs.readFileSync('./users.json', 'UTF-8'));
server.use(bodyParser.urlencoded({ extended: true }));
server.use(bodyParser.json());
server.use(jsonServer.defaults());
const PORT = 8000;
const EXPIRES_IN = '12h';
const SECRET_KEY = '123456789';
function createToken(payload) {
return jwt.sign(payload, SECRET_KEY, { expiresIn: EXPIRES_IN });
}
function verifyToken(token) {
return jwt.verify(token, SECRET_KEY, (err, decode) =>
decode !== undefined ? decode : err
);
}
function isAuthenticated({ email, password }) {
return (
userdb.users.findIndex(
user => user.email === email && user.password === password
) !== -1
);
}
server.post('/auth/register', (req, res) => {
console.log(req.body);
const { email, password, name } = req.body;
if (isAuthenticated({ email, password }) === true) {
const status = 401;
const message = 'This email is already in use';
return res.status(status).json({ status, message });
}
fs.readFile('./users.json', (err, file) => {
if (err) {
const status = 401;
const message = err;
return res.status(status).json({ status, message });
}
let data = JSON.parse(file.toString());
let last_item_id =
data.users.length > 0 ? data.users[data.users.length - 1].id : 0;
data.users.push({ id: last_item_id + 1, email, password, name });
userdb = data;
});
const access_token = createToken({ email, password });
console.log('Access Token:' + access_token);
res.status(200).json({ access_token });
});
server.post('/auth/login', (req, res) => {
console.log(`Login endpoint called, request body: ${req.body}`);
const { email, password } = req.body;
if (isAuthenticated({ email, password }) === false) {
const status = 401;
const message = 'Wrong email ou password!';
return res.status(status).json({ status, message });
}
const access_token = createToken({ email, password });
const user = {
...userdb.users.find(
user => user.email === email && user.password === password
)
};
delete user.password;
console.log(`Access Token: ${access_token}`);
console.log(`User: ${user}`);
res.status(200).json({ access_token, user });
});
server.use(/^(?!\/auth).*$/, (req, res, next) => {
const isInvalidToken =
!req.headers.authorization ||
req.headers.authorization.split(' ')[0] !== 'Bearer';
if (isInvalidToken) {
const status = 401;
const message = 'Invalid token';
return res.status(status).json({ status, message });
}
try {
const verifyTokenResult = verifyToken(
req.headers.authorization.split(' ')[1]
);
if (verifyTokenResult instanceof Error) {
const status = 401;
const message = 'Authentication token not found';
return res.status(status).json({ status, message });
}
next();
} catch (err) {
const status = 401;
const message = 'Revoked token';
return res.status(status).json({ status, message });
}
});
server.use(router);
server.listen(PORT, () => console.log(`Listening on port ${PORT}.`));
| 24.785185 | 71 | 0.631799 |
182ac7f1366fd6741027f299cb374cd2ebd00861 | 220,233 | js | JavaScript | public/24.js | coder866/fortevue | 1e84ccbc537c0f52df5e19cd6f6d11fc2f56999c | [
"MIT"
] | null | null | null | public/24.js | coder866/fortevue | 1e84ccbc537c0f52df5e19cd6f6d11fc2f56999c | [
"MIT"
] | null | null | null | public/24.js | coder866/fortevue | 1e84ccbc537c0f52df5e19cd6f6d11fc2f56999c | [
"MIT"
] | null | null | null | (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[24],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/components/core/charts/ApexChart.vue?vue&type=script&lang=js&":
/*!************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/src/components/core/charts/ApexChart.vue?vue&type=script&lang=js& ***!
\************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var apexcharts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! apexcharts */ \"./node_modules/apexcharts/dist/apexcharts.common.js\");\n/* harmony import */ var apexcharts__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(apexcharts__WEBPACK_IMPORTED_MODULE_0__);\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'ApexChart',\n props: ['element', 'chartOption', 'isLive'],\n mounted: function mounted() {\n var _this = this;\n\n var selector = '#' + _this.element;\n var chart = new apexcharts__WEBPACK_IMPORTED_MODULE_0___default.a(document.querySelector(selector), _this.chartOption);\n setTimeout(function () {\n chart.render();\n\n if (_this.isLive) {\n setInterval(function () {\n _this.getNewSeries(_this.lastDate, {\n min: 10,\n max: 90\n });\n\n chart.updateSeries([{\n data: _this.data\n }]);\n }, 1000);\n }\n }, 500);\n },\n data: function data() {\n return {\n lastDate: 0,\n data: [],\n TICKINTERVAL: 86400000,\n XAXISRANGE: 777600000\n };\n },\n methods: {\n getNewSeries: function getNewSeries(baseval, yrange) {\n var newDate = baseval + this.TICKINTERVAL;\n this.lastDate = newDate;\n\n for (var i = 0; i < this.data.length - 10; i++) {\n this.data[i].x = newDate - this.XAXISRANGE - this.TICKINTERVAL;\n this.data[i].y = 0;\n }\n\n this.data.push({\n x: newDate,\n y: Math.floor(Math.random() * (yrange.max - yrange.min + 1)) + yrange.min\n });\n }\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vcmVzb3VyY2VzL2pzL3NyYy9jb21wb25lbnRzL2NvcmUvY2hhcnRzL0FwZXhDaGFydC52dWU/ZDI3MCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFJQTtBQUNBO0FBQ0EsbUJBREE7QUFFQSw2Q0FGQTtBQUdBLFNBSEEscUJBR0E7QUFDQTs7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFDQTtBQUNBO0FBQ0E7QUFDQSxtQkFEQTtBQUVBO0FBRkE7O0FBSUE7QUFDQTtBQURBO0FBR0EsU0FSQSxFQVFBLElBUkE7QUFTQTtBQUNBLEtBYkEsRUFhQSxHQWJBO0FBY0EsR0FyQkE7QUFzQkEsTUF0QkEsa0JBc0JBO0FBQ0E7QUFDQSxpQkFEQTtBQUVB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uICB9XG59XG48L3NjcmlwdD5cbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/components/core/charts/ApexChart.vue?vue&type=script&lang=js&\n");
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=script&lang=js&":
/*!*******************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=script&lang=js& ***!
\*******************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _components_core_charts_AmChart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../components/core/charts/AmChart */ \"./resources/js/src/components/core/charts/AmChart.vue\");\n/* harmony import */ var _components_core_charts_ApexChart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../components/core/charts/ApexChart */ \"./resources/js/src/components/core/charts/ApexChart.vue\");\n/* harmony import */ var _config_pluginInit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../config/pluginInit */ \"./resources/js/src/config/pluginInit.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'Dashboard6',\n mounted: function mounted() {\n _config_pluginInit__WEBPACK_IMPORTED_MODULE_2__[\"core\"].index();\n },\n components: {\n ApexChart: _components_core_charts_ApexChart__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n AmChart: _components_core_charts_AmChart__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n },\n data: function data() {\n return {\n chart1: {\n chart: {\n height: 90,\n type: 'area',\n sparkline: {\n enabled: true\n },\n group: 'sparklines'\n },\n dataLabels: {\n enabled: false\n },\n stroke: {\n width: 3,\n curve: 'smooth'\n },\n fill: {\n type: 'gradient',\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.5,\n opacityTo: 0\n }\n },\n series: [{\n name: 'series1',\n data: [60, 15, 50, 30, 70]\n }],\n colors: ['#827af3'],\n xaxis: {\n type: 'datetime',\n categories: ['2018-08-19T00:00:00', '2018-09-19T01:30:00', '2018-10-19T02:30:00', '2018-11-19T01:30:00', '2018-12-19T01:30:00']\n },\n tooltip: {\n x: {\n format: 'dd/MM/yy HH:mm'\n }\n }\n },\n chart2: {\n chart: {\n height: 90,\n type: 'area',\n sparkline: {\n enabled: true\n },\n group: 'sparklines'\n },\n dataLabels: {\n enabled: false\n },\n stroke: {\n width: 3,\n curve: 'smooth'\n },\n fill: {\n type: 'gradient',\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.5,\n opacityTo: 0\n }\n },\n series: [{\n name: 'series1',\n data: [70, 40, 60, 30, 60]\n }],\n colors: ['#b777f3'],\n xaxis: {\n type: 'datetime',\n categories: ['2018-08-19T00:00:00', '2018-09-19T01:30:00', '2018-10-19T02:30:00', '2018-11-19T01:30:00', '2018-12-19T01:30:00']\n },\n tooltip: {\n x: {\n format: 'dd/MM/yy HH:mm'\n }\n }\n },\n chart13: {\n chart: {\n height: 320,\n type: 'radialBar',\n stroke: {\n show: true,\n curve: 'smooth',\n lineCap: 'butt',\n colors: undefined,\n width: 3,\n dashArray: 0\n }\n },\n plotOptions: {\n radialBar: {\n hollow: {\n margin: 10,\n size: '30%',\n background: 'transparent',\n image: undefined,\n imageWidth: 64,\n imageHeight: 64\n },\n dataLabels: {\n name: {\n fontSize: '22px'\n },\n value: {\n fontSize: '16px'\n },\n total: {\n show: true,\n label: 'Total',\n formatter: function formatter(w) {\n // By default this function returns the average of all series. The below is just an example to show the use of custom formatter function\n return 249;\n }\n }\n }\n }\n },\n fill: {\n type: 'gradient'\n },\n colors: ['#0084ff', '#00ca00', '#ffd400', '#b777f3'],\n series: [44, 55,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ICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImlxLWNhcmQtaGVhZGVyLXRvb2xiYXIgZC1mbGV4IGFsaWduLWl0ZW1zLWNlbnRlclwiPlxuICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImRyb3Bkb3duXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cImRyb3Bkb3duLXRvZ2dsZSB0ZXh0LXByaW1hcnlcIiBpZD1cImRyb3Bkb3duTWVudUJ1dHRvbjQxXCIgZGF0YS10b2dnbGU9XCJkcm9wZG93blwiIGFyaWEtZXhwYW5kZWQ9XCJmYWxzZVwiIHJvbGU9XCJidXR0b25cIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpIGNsYXNzPVwicmktbW9yZS0yLWxpbmVcIj48L2k+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NwYW4+XG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJkcm9wZG93bi1tZW51IGRyb3Bkb3duLW1lbnUtcmlnaHRcIiBzdHlsZT1cIlwiPlxuICAgICAgICAgICAgICAgICAgICAgIDxhIGNsYXNzPVwiZHJvcGRvd24taXRlbVwiIGhyZWY9XCIjXCI+PGkgY2xhc3M9XCJyaS1leWUtbGluZSBtci0yXCI+PC9pPlZpZXc8L2E+XG4gICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XCJkcm9wZG93bi1pdGVtXCIgaHJlZj1cIiNcIj48aSBjbGFzcz1cInJpLWJvb2ttYXJrLWxpbmUgbXItMlwiPjwvaT5BcHBvaW50bWVudDwvYT5cbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgPC9saT5cbiAgICAgICAgICAgICAgPGxpIGNsYXNzPVwiZC1mbGV4IG1iLTQgYWxpZ24taXRlbXMtY2VudGVyXCI+XG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInVzZXItaW1nIGltZy1mbHVpZFwiPjxpbWcgc3JjPVwiLi4vLi4vYXNzZXRzL2ltYWdlcy91c2VyL3VzZXItMDIuanBnXCIgYWx0PVwic3RvcnktaW1nXCIgY2xhc3M9XCJyb3VuZGVkLWNpcmNsZSBhdmF0YXItNDBcIj48L2Rpdj5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwibWVkaWEtc3VwcG9ydC1pbmZvIG1sLTNcIj5cbiAgICAgICAgICAgICAgICAgIDxoNj5CYXJiIER3eWVyPC9oNj5cbiAgICAgICAgICAgICAgICAgIDxwIGNsYXNzPVwibWItMCBmb250LXNpemUtMTJcIj5EZXZlbG9wZXI8L3A+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImlxLWNhcmQtaGVhZGVyLXRvb2xiYXIgZC1mbGV4IGFsaWduLWl0ZW1zLWNlbnRlclwiPlxuICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImRyb3Bkb3duIHNob3dcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwiZHJvcGRvd24tdG9nZ2xlIHRleHQtcHJpbWFyeVwiIGlkPVwiZHJvcGRvd25NZW51QnV0dG9uNDJcIiBkYXRhLXRvZ2dsZT1cImRyb3Bkb3duXCIgYXJpYS1leHBhbmRlZD1cInRydWVcIiByb2xlPVwiYnV0dG9uXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aSBjbGFzcz1cInJpLW1vcmUtMi1saW5lXCI+PC9pPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiZHJvcGRvd24tbWVudSBkcm9wZG93bi1tZW51LXJpZ2h0XCI+XG4gICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XCJkcm9wZG93bi1pdGVtXCIgaHJlZj1cIiNcIj48aSBjbGFzcz1cInJpLWV5ZS1saW5lIG1yLTJcIj48L2k+VmlldzwvYT5cbiAgICAgICAgICAgICAgICAgICAgICA8YSBjbGFzcz1cImRyb3Bkb3duLWl0ZW1cIiBocmVmPVwiI1wiPjxpIGNsYXNzPVwicmktYm9va21hcmstbGluZSBtci0yXCI+PC9pPkFwcG9pbnRtZW50PC9hPlxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICA8L2xpPlxuICAgICAgICAgICAgICA8bGkgY2xhc3M9XCJkLWZsZXggbWItNCBhbGlnbi1pdGVtcy1jZW50ZXJcIj5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwidXNlci1pbWcgaW1nLWZsdWlkXCI+PGltZyBzcmM9XCIuLi8uLi9hc3NldHMvaW1hZ2VzL3VzZXIvdXNlci0wMy5qcGdcIiBhbHQ9XCJzdG9yeS1pbWdcIiBjbGFzcz1cInJvdW5kZWQtY2lyY2xlIGF2YXRhci00MFwiPjwvZGl2PlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJtZWRpYS1zdXBwb3J0LWluZm8gbWwtM1wiPlxuICAgICAgICAgICAgICAgICAgPGg2PlRlcnJ5IEFraTwvaDY+XG4gICAgICAgICAgICAgICAgICA8cCBjbGFzcz1cIm1iLTAgZm9udC1zaXplLTEyXCI+VGVzdGVyPC9wPlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJpcS1jYXJkLWhlYWRlci10b29sYmFyIGQtZmxleCBhbGlnbi1pdGVtcy1jZW50ZXJcIj5cbiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJkcm9wZG93biBzaG93XCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cImRyb3Bkb3duLXRvZ2dsZSB0ZXh0LXByaW1hcnlcIiBpZD1cImRyb3Bkb3duTWVudUJ1dHRvbjQzXCIgZGF0YS10b2dnbGU9XCJkcm9wZG93blwiIGFyaWEtZXhwYW5kZWQ9XCJ0cnVlXCIgcm9sZT1cImJ1dHRvblwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGkgY2xhc3M9XCJyaS1tb3JlLTItbGluZVwiPjwvaT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvc3Bhbj5cbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImRyb3Bkb3duLW1lbnUgZHJvcGRvd24tbWVudS1yaWdodFwiPlxuICAgICAgICAgICAgICAgICAgICAgIDxhIGNsYXNzPVwiZHJvcGRvd24taXRlbVwiIGhyZWY9XCIjXCI+PGkgY2xhc3M9XCJyaS1leWUtbGluZSBtci0yXCI+PC9pPlZpZXc8L2E+XG4gICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XCJkcm9wZG93bi1pdGVtXCIgaHJlZj1cIiNcIj48aSBjbGFzcz1cInJpLWJvb2ttYXJrLWxpbmUgbXItMlwiPjwvaT5BcHBvaW50bWVudDwvYT5cbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgPC9saT5cbiAgICAgICAgICAgICAgPGxpIGNsYXNzPVwiZC1mbGV4IG1iLTQgYWxpZ24taXRlbXMtY2VudGVyXCI+XG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInVzZXItaW1nIGltZy1mbHVpZFwiPjxpbWcgc3JjPVwiLi4vLi4vYXNzZXRzL2ltYWdlcy91c2VyL3VzZXItMDQuanBnXCIgYWx0PVwic3RvcnktaW1nXCIgY2xhc3M9XCJyb3VuZGVkLWNpcmNsZSBhdmF0YXItNDBcIj48L2Rpdj5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwibWVkaWEtc3VwcG9ydC1pbmZvIG1sLTNcIj5cbiAgICAgICAgICAgICAgICAgIDxoNj5Sb2JpbiBCYW5rczwvaDY+XG4gICAgICAgICAgICAgICAgICA8cCBjbGFzcz1cIm1iLTAgZm9udC1zaXplLTEyXCI+V2ViIERlc2lnbmVyPC9wPlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJpcS1jYXJkLWhlYWRlci10b29sYmFyIGQtZmxleCBhbGlnbi1pdGVtcy1jZW50ZXJcIj5cbiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJkcm9wZG93biBzaG93XCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cImRyb3Bkb3duLXRvZ2dsZSB0ZXh0LXByaW1hcnlcIiBpZD1cImRyb3Bkb3duTWVudUJ1dHRvbjQ0XCIgZGF0YS10b2dnbGU9XCJkcm9wZG93blwiIGFyaWEtZXhwYW5kZWQ9XCJ0cnVlXCIgcm9sZT1cImJ1dHRvblwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGkgY2xhc3M9XCJyaS1tb3JlLTItbGluZVwiPjwvaT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvc3Bhbj5cbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImRyb3Bkb3duLW1lbnUgZHJvcGRvd24tbWVudS1yaWdodFwiPlxuICAgICAgICAgICAgICAgICAgICAgIDxhIGNsYXNzPVwiZHJvcGRvd24taXRlbVwiIGhyZWY9XCIjXCI+PGkgY2xhc3M9XCJyaS1leWUtbGluZSBtci0yXCI+PC9pPlZpZXc8L2E+XG4gICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XCJkcm9wZG93bi1pdGVtXCIgaHJlZj1cIiNcIj48aSBjbGFzcz1cInJpLWJvb2ttYXJrLWxpbmUgbXItMlwiPjwvaT5BcHBvaW50bWVudDwvYT5cbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgPC9saT5cbiAgICAgICAgICAgICAgPGxpIGNsYXNzPVwiZC1mbGV4IG1iLTQgYWxpZ24taXRlbXMtY2VudGVyXCI+XG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInVzZXItaW1nIGltZy1mbHVpZFwiPjxpbWcgc3JjPVwiLi4vLi4vYXNzZXRzL2ltYWdlcy91c2VyL3VzZXItMDUuanBnXCIgYWx0PVwic3RvcnktaW1nXCIgY2xhc3M9XCJyb3VuZGVkLWNpcmNsZSBhdmF0YXItNDBcIj48L2Rpdj5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwibWVkaWEtc3VwcG9ydC1pbmZvIG1sLTNcIj5cbiAgICAgICAgICAgICAgICAgIDxoNj5CYXJyeSBXaW5lPC9oNj5cbiAgICAgICAgICAgICAgICAgIDxwIGNsYXNzPVwibWItMCBmb250LXNpemUtMTJcIj5EZXZlbG9wZXI8L3A+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImlxLWNhcmQtaGVhZGVyLXRvb2xiYXIgZC1mbGV4IGFsaWduLWl0ZW1zLWNlbnRlclwiPlxuICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImRyb3Bkb3duIHNob3dcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwiZHJvcGRvd24tdG9nZ2xlIHRleHQtcHJpbWFyeVwiIGlkPVwiZHJvcGRvd25NZW51QnV0dG9uNDVcIiBkYXRhLXRvZ2dsZT1cImRyb3Bkb3duXCIgYXJpYS1leHBhbmRlZD1cInRydWVcIiByb2xlPVwiYnV0dG9uXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aSBjbGFzcz1cInJpLW1vcmUtMi1saW5lXCI+PC9pPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiZHJvcGRvd24tbWVudSBkcm9wZG93bi1tZW51LXJpZ2h0XCI+XG4gICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XCJkcm9wZG93bi1pdGVtXCIgaHJlZj1cIiNcIj48aSBjbGFzcz1cInJpLWV5ZS1saW5lIG1yLTJcIj48L2k+VmlldzwvYT5cbiAgICAgICAgICAgICAgICAgICAgICA8YSBjbGFzcz1cImRyb3Bkb3duLWl0ZW1cIiBocmVmPVwiI1wiPjxpIGNsYXNzPVwicmktYm9va21hcmstbGluZSBtci0yXCI+PC9pPkFwcG9pbnRtZW50PC9hPlxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICA8L2xpPlxuICAgICAgICAgICAgPC91bD5cbiAgICAgICAgICA8L3RlbXBsYXRlPlxuICAgICAgICA8L2lxLWNhcmQ+XG4gICAgICA8L2ItY29sPlxuICAgICAgPGItY29sIGxnPVwiNFwiPlxuICAgICAgICA8aXEtY2FyZD5cbiAgICAgICAgICA8dGVtcGxhdGUgdi1zbG90OmJvZHk+XG4gICAgICAgICAgICA8aDY+R3JhcGggUHJvZml0IE1hcmdpbjwvaDY+XG4gICAgICAgICAgICA8aDI+ODAlPC9oMj5cbiAgICAgIC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ICAgICAgIGVuYWJsZWQ6IHRydWVcbiAgICAgICAgICB9LFxuICAgICAgICAgIGdyb3VwOiAnc3BhcmtsaW5lcydcblxuICAgICAgICB9LFxuICAgICAgICBkYXRhTGFiZWxzOiB7XG4gICAgICAgICAgZW5hYmxlZDogZmFsc2VcbiAgICAgICAgfSxcbiAgICAgICAgc3Ryb2tlOiB7XG4gICAgICAgICAgd2lkdGg6IDMsXG4gICAgICAgICAgY3VydmU6ICdzbW9vdGgnXG4gICAgICAgIH0sXG4gICAgICAgIGZpbGw6IHtcbiAgICAgICAgICB0eXBlOiAnZ3JhZGllbnQnLFxuICAgICAgICAgIGdyYWRpZW50OiB7XG4gICAgICAgICAgICBzaGFkZUludGVuc2l0eTogMSxcbiAgICAgICAgICAgIG9wYWNpdHlGcm9tOiAwLjUsXG4gICAgICAgICAgICBvcGFjaXR5VG86IDBcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHNlcmllczogW3tcbiAgICAgICAgICBuYW1lOiAnc2VyaWVzMScsXG4gICAgICAgICAgZGF0YTogWzYwLCAxNSwgNTAsIDMwLCA3MF1cbiAgICAgICAgfV0sXG4gICAgICAgIGNvbG9yczogWycjODI3YWYzJ10sXG5cbiAgICAgICAgeGF4aXM6IHtcbiAgICAgICAgICB0eXBlOiAnZGF0ZXRpbWUnLFxuICAgICAgICAgIGNhdGVnb3JpZXM6IFsnMjAxOC0wOC0xOVQwMDowMDowMCcsICcyMDE4LTA5LTE5VDAxOjMwOjAwJywgJzIwMTgtMTAtMTlUMDI6MzA6MDAnLCAnMjAxOC0xMS0xOVQwMTozMDowMCcsICcyMDE4LTEyLTE5VDAxOjMwOjAwJ11cbiAgICAgICAgfSxcbiAgICAgICAgdG9vbHRpcDoge1xuICAgICAgICAgIHg6IHtcbiAgICAgICAgICAgIGZvcm1hdDogJ2RkL01NL3l5IEhIOm1tJ1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfSxcbiAgICAgIGNoYXJ0Mjoge1xuICAgICAgICBjaGFydDoge1xuICAgICAgICAgIGhlaWdodDogOTAsXG4gICAgICAgICAgdHlwZTogJ2FyZWEnLFxuICAgICAgICAgIHNwYXJrbGluZToge1xuICAgICAgICAgICAgZW5hYmxlZDogdHJ1ZVxuICAgICAgICAgIH0sXG4gICAgICAgICAgZ3JvdXA6ICdzcGFya2xpbmVzJ1xuXG4gICAgICAgIH0sXG4gICAgICAgIGRhdGFMYWJlbHM6IHtcbiAgICAgICAgICBlbmFibGVkOiBmYWxzZVxuICAgICAgICB9LFxuICAgICAgICBzdHJva2U6IHtcbiAgICAgICAgICB3aWR0aDogMyxcbiAgICAgICAgICBjdXJ2ZTogJ3Ntb290aCdcbiAgICAgICAgfSxcbiAgICAgICAgZmlsbDoge1xuICAgICAgICAgIHR5cGU6ICdncmFkaWVudCcsXG4gICAgICAgICAgZ3JhZGllbnQ6IHtcbiAgICAgICAgICAgIHNoYWRlSW50ZW5zaXR5OiAxLFxuICAgICAgICAgICAgb3BhY2l0eUZyb206IDAuNSxcbiAgICAgICAgICAgIG9wYWNpdHlUbzogMFxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgc2VyaWVzOiBbe1xuICAgICAgICAgIG5hbWU6ICdzZXJpZXMxJyxcbiAgICAgICAgICBkYXRhOiBbNzAsIDQwLCA2MCwgMzAsIDYwXVxuICAgICAgICB9XSxcbiAgICAgICAgY29sb3JzOiBbJyNiNzc3ZjMnXSxcbiAgICAgICAgeGF4aXM6IHtcbiAgICAgICAgICB0eXBlOiAnZGF0ZXRpbWUnLFxuICAgICAgICAgIGNhdGVnb3JpZXM6IFsnMjAxOC0wOC0xOVQwMDowMDowMCcsICcyMDE4LTA5LTE5VDAxOjMwOjAwJywgJzIwMTgtMTAtMTlUMDI6MzA6MDAnLCAnMjAxOC0xMS0xOVQwMTozMDowMCcsICcyMDE4LTEyLTE5VDAxOjMwOjAwJ11cbiAgICAgICAgfSxcbiAgICAgICAgdG9vbHRpcDoge1xuICAgICAgICAgIHg6IHtcbiAgICAgICAgICAgIGZvcm1hdDogJ2RkL01NL3l5IEhIOm1tJ1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfSxcbiAgICAgIGNoYXJ0MTM6IHtcbiAgICAgICAgY2hhcnQ6IHtcbiAgICAgICAgICBoZWlnaHQ6IDMyMCxcbiAgICAgICAgICB0eXBlOiAncmFkaWFsQmFyJyxcbiAgICAgICAgICBzdHJva2U6IHtcbiAgICAgICAgICAgIHNob3c6IHRydWUsXG4gICAgICAgICAgICBjdXJ2ZTogJ3Ntb290aCcsXG4gICAgICAgICAgICBsaW5lQ2FwOiAnYnV0dCcsXG4gICAgICAgICAgICBjb2xvcnM6IHVuZGVmaW5lZCxcbiAgICAgICAgICAgIHdpZHRoOiAzLFxuICAgICAgICAgICAgZGFzaEFycmF5OiAwXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBwbG90T3B0aW9uczoge1xuICAgICAgICAgIHJhZGlhbEJhcjoge1xuICAgICAgICAgICAgaG9sbG93OiB7XG4gICAgICAgICAgICAgIG1hcmdpbjogMTAsXG4gICAgICAgICAgICAgIHNpemU6ICczMCUnLFxuICAgICAgICAgICAgICBiYWNrZ3JvdW5kOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICAgICAgICBpbWFnZTogdW5kZWZpbmVkLFxuICAgICAgICAgICAgICBpbWFnZVdpZHRoOiA2NCxcbiAgICAgICAgICAgICAgaW1hZ2VIZWlnaHQ6IDY0XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgZGF0YUxhYmVsczoge1xuICAgICAgICAgICAgICBuYW1lOiB7XG4gICAgICAgICAgICAgICAgZm9udFNpemU6ICcyMnB4J1xuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB2YWx1ZToge1xuICAgICAgICAgICAgICAgIGZvbnRTaXplOiAnMTZweCdcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgdG90YWw6IHtcbiAgICAgICAgICAgICAgICBzaG93OiB0cnVlLFxuICAgICAgICAgICAgICAgIGxhYmVsOiAnVG90YWwnLFxuICAgICAgICAgICAgICAgIGZvcm1hdHRlcjogZnVuY3Rpb24gKHcpIHtcbiAgICAgICAgICAgICAgICAgIC8vIEJ5IGRlZmF1bHQgdGhpcyBmdW5jdGlvbiByZXR1cm5zIHRoZSBhdmVyYWdlIG9mIGFsbCBzZXJpZXMuIFRoZSBiZWxvdyBpcyBqdXN0IGFuIGV4YW1wbGUgdG8gc2hvdyB0aGUgdXNlIG9mIGN1c3RvbSBmb3JtYXR0ZXIgZnVuY3Rpb25cbiAgICAgICAgICAgICAgICAgIHJldHVybiAyNDlcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGZpbGw6IHtcbiAgICAgICAgICB0eXBlOiAnZ3JhZGllbnQnXG4gICAgICAgIH0sXG4gICAgICAgIGNvbG9yczogWycjMDA4NGZmJywgJyMwMGNhMDAnLCAnI2ZmZDQwMCcsICcjYjc3N2YzJ10sXG4gICAgICAgIHNlcmllczogWzQ0LCA1NSwgNjcsIDgwXSxcbiAgICAgICAgc3Ryb2tlOiB7XG4gICAgICAgICAgbGluZUNhcDogJ3JvdW5kJ1xuICAgICAgICB9LFxuICAgICAgICBsYWJlbHM6IFsnIFNhbGVzJywgJ1Byb2ZpdCcsICdDb3N0JywgJ0ludmVzdG1lbnQnXVxuICAgICAgfVxuICAgIH1cbiAgfVxufVxuPC9zY3JpcHQ+XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=script&lang=js&\n");
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/components/core/charts/ApexChart.vue?vue&type=template&id=03cd99fc&":
/*!****************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/src/components/core/charts/ApexChart.vue?vue&type=template&id=03cd99fc& ***!
\****************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { attrs: { id: _vm.element } })\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL2NvbXBvbmVudHMvY29yZS9jaGFydHMvQXBleENoYXJ0LnZ1ZT9jOGUxIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0Esb0JBQW9CLFNBQVMsa0JBQWtCLEVBQUU7QUFDakQ7QUFDQTtBQUNBIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2xvYWRlcnMvdGVtcGxhdGVMb2FkZXIuanM/IS4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPyEuL3Jlc291cmNlcy9qcy9zcmMvY29tcG9uZW50cy9jb3JlL2NoYXJ0cy9BcGV4Q2hhcnQudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTAzY2Q5OWZjJi5qcyIsInNvdXJjZXNDb250ZW50IjpbInZhciByZW5kZXIgPSBmdW5jdGlvbiAoKSB7XG4gIHZhciBfdm0gPSB0aGlzXG4gIHZhciBfaCA9IF92bS4kY3JlYXRlRWxlbWVudFxuICB2YXIgX2MgPSBfdm0uX3NlbGYuX2MgfHwgX2hcbiAgcmV0dXJuIF9jKFwiZGl2XCIsIHsgYXR0cnM6IHsgaWQ6IF92bS5lbGVtZW50IH0gfSlcbn1cbnZhciBzdGF0aWNSZW5kZXJGbnMgPSBbXVxucmVuZGVyLl93aXRoU3RyaXBwZWQgPSB0cnVlXG5cbmV4cG9ydCB7IHJlbmRlciwgc3RhdGljUmVuZGVyRm5zIH0iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/components/core/charts/ApexChart.vue?vue&type=template&id=03cd99fc&\n");
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=template&id=02a54238&":
/*!***********************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=template&id=02a54238& ***!
\***********************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"b-container\",\n { attrs: { fluid: \"\" } },\n [\n _c(\n \"b-row\",\n [\n _c(\n \"b-col\",\n { attrs: { md: \"6\", lg: \"3\" } },\n [\n _c(\"iq-card\", {\n attrs: { bodyClass: \"relative-background\" },\n scopedSlots: _vm._u([\n {\n key: \"body\",\n fn: function () {\n return [\n _c(\n \"div\",\n { staticClass: \"d-flex align-items-center\" },\n [\n _c(\n \"div\",\n {\n staticClass:\n \"rounded-circle iq-card-icon iq-bg-primary mr-3\",\n },\n [\n _c(\"i\", {\n staticClass: \"ri-exchange-dollar-line\",\n }),\n ]\n ),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"text-left\" }, [\n _c(\"h4\", {}, [_vm._v(\"425\")]),\n _vm._v(\" \"),\n _c(\"h5\", {}, [_vm._v(\"Investment\")]),\n ]),\n ]\n ),\n _vm._v(\" \"),\n _c(\"p\", { staticClass: \" mb-0 mt-3\" }, [\n _vm._v(\"Total for This Month.\"),\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"background-image\" }, [\n _c(\"img\", {\n staticClass: \"img-fluid\",\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/page-img/36.png */ \"./resources/js/src/assets/images/page-img/36.png\"),\n },\n }),\n ]),\n ]\n },\n proxy: true,\n },\n ]),\n }),\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"b-col\",\n { attrs: { md: \"6\", lg: \"3\" } },\n [\n _c(\"iq-card\", {\n attrs: { \"body-class\": \"relative-background\" },\n scopedSlots: _vm._u([\n {\n key: \"body\",\n fn: function () {\n return [\n _c(\n \"div\",\n { staticClass: \"d-flex align-items-center\" },\n [\n _c(\n \"div\",\n {\n staticClass:\n \"rounded-circle iq-card-icon iq-bg-warning mr-3\",\n },\n [_c(\"i\", { staticClass: \"ri-guide-line\" })]\n ),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"text-left\" }, [\n _c(\"h4\", {}, [_vm._v(\"425\")]),\n _vm._v(\" \"),\n _c(\"h5\", {}, [_vm._v(\"Sales\")]),\n ]),\n ]\n ),\n _vm._v(\" \"),\n _c(\"p\", { staticClass: \" mb-0 mt-3\" }, [\n _vm._v(\"Total for This Month.\"),\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"background-image\" }, [\n _c(\"img\", {\n staticClass: \"img-fluid\",\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/page-img/37.png */ \"./resources/js/src/assets/images/page-img/37.png\"),\n },\n }),\n ]),\n ]\n },\n proxy: true,\n },\n ]),\n }),\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"b-col\",\n { attrs: { md: \"6\", lg: \"3\" } },\n [\n _c(\"iq-card\", {\n attrs: { \"body-class\": \"relative-background\" },\n scopedSlots: _vm._u([\n {\n key: \"body\",\n fn: function () {\n return [\n _c(\n \"div\",\n { staticClass: \"d-flex align-items-center\" },\n [\n _c(\n \"div\",\n {\n staticClass:\n \"rounded-circle iq-card-icon iq-bg-danger mr-3\",\n },\n [\n _c(\"i\", {\n staticClass: \"ri-money-pound-circle-line\",\n }),\n ]\n ),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"text-left\" }, [\n _c(\"h4\", {}, [_vm._v(\"425\")]),\n _vm._v(\" \"),\n _c(\"h5\", {}, [_vm._v(\"Cost\")]),\n ]),\n ]\n ),\n _vm._v(\" \"),\n _c(\"p\", { staticClass: \" mb-0 mt-3\" }, [\n _vm._v(\"Total for This Month.\"),\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"background-image\" }, [\n _c(\"img\", {\n staticClass: \"img-fluid\",\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/page-img/38.png */ \"./resources/js/src/assets/images/page-img/38.png\"),\n },\n }),\n ]),\n ]\n },\n proxy: true,\n },\n ]),\n }),\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"b-col\",\n { attrs: { md: \"6\", lg: \"3\" } },\n [\n _c(\"iq-card\", {\n attrs: { \"body-class\": \"relative-background\" },\n scopedSlots: _vm._u([\n {\n key: \"body\",\n fn: function () {\n return [\n _c(\n \"div\",\n { staticClass: \"d-flex align-items-center\" },\n [\n _c(\n \"div\",\n {\n staticClass:\n \"rounded-circle iq-card-icon iq-bg-info mr-3\",\n },\n [_c(\"i\", { staticClass: \"ri-numbers-line\" })]\n ),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"text-left\" }, [\n _c(\"h4\", {}, [_vm._v(\"425\")]),\n _vm._v(\" \"),\n _c(\"h5\", {}, [_vm._v(\"Profit\")]),\n ]),\n ]\n ),\n _vm._v(\" \"),\n _c(\"p\", { staticClass: \" mb-0 mt-3\" }, [\n _vm._v(\"Total for This Month.\"),\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"background-image\" }, [\n _c(\"img\", {\n staticClass: \"img-fluid\",\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/page-img/39.png */ \"./resources/js/src/assets/images/page-img/39.png\"),\n },\n }),\n ]),\n ]\n },\n proxy: true,\n },\n ]),\n }),\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"b-col\",\n { attrs: { lg: \"8\" } },\n [\n _c(\"iq-card\", {\n staticStyle: { position: \"relative\" },\n scopedSlots: _vm._u([\n {\n key: \"headerTitle\",\n fn: function () {\n return [\n _c(\"h4\", { staticClass: \"card-title\" }, [\n _vm._v(\"Earning Growth\"),\n ]),\n ]\n },\n proxy: true,\n },\n {\n key: \"headerAction\",\n fn: function () {\n return [\n _c(\"ul\", { staticClass: \"nav nav-pills\" }, [\n _c(\"li\", { staticClass: \"nav-item\" }, [\n _c(\n \"a\",\n {\n staticClass: \"nav-link active\",\n attrs: { href: \"#\" },\n },\n [_vm._v(\"Latest\")]\n ),\n ]),\n _vm._v(\" \"),\n _c(\"li\", { staticClass: \"nav-item\" }, [\n _c(\n \"a\",\n { staticClass: \"nav-link\", attrs: { href: \"#\" } },\n [_vm._v(\"Month\")]\n ),\n ]),\n _vm._v(\" \"),\n _c(\"li\", { staticClass: \"nav-item\" }, [\n _c(\n \"a\",\n { staticClass: \"nav-link\", attrs: { href: \"#\" } },\n [_vm._v(\"All Time\")]\n ),\n ]),\n ]),\n ]\n },\n proxy: true,\n },\n {\n key: \"body\",\n fn: function () {\n return [\n _c(\n \"div\",\n {\n staticStyle: { height: \"410px\" },\n attrs: { id: \"home-Groth-chart\" },\n },\n [\n _c(\"AmChart\", {\n attrs: {\n element: \"home-chart-06\",\n type: \"dashboard2\",\n height: 350,\n },\n }),\n ],\n 1\n ),\n ]\n },\n proxy: true,\n },\n ]),\n }),\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"b-col\",\n { attrs: { lg: \"4\" } },\n [\n _c(\n \"iq-card\",\n {\n attrs: {\n \"class-name\":\n \"iq-card-block iq-card-stretch iq-card-height\",\n },\n },\n [\n _c(\"div\", {\n style:\n \"background: url(\" +\n __webpack_require__(/*! ../../assets/images/page-img/40.png */ \"./resources/js/src/assets/images/page-img/40.png\") +\n \") no-repeat scroll bottom; background-size: contain; height: 505px;\",\n }),\n ]\n ),\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"b-col\",\n { attrs: { lg: \"4\" } },\n [\n _c(\"iq-card\", {\n scopedSlots: _vm._u([\n {\n key: \"headerTitle\",\n fn: function () {\n return [\n _c(\"h4\", { staticClass: \"card-title\" }, [\n _vm._v(\"Perfomance\"),\n ]),\n ]\n },\n proxy: true,\n },\n {\n key: \"body\",\n fn: function () {\n return [\n _c(\n \"div\",\n { attrs: { id: \"home-perfomer-chart\" } },\n [\n _c(\"ApexChart\", {\n attrs: {\n element: \"chart-13\",\n chartOption: _vm.chart13,\n },\n }),\n ],\n 1\n ),\n ]\n },\n proxy: true,\n },\n ]),\n }),\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"b-col\",\n { attrs: { lg: \"4\" } },\n [\n _c(\"iq-card\", {\n scopedSlots: _vm._u([\n {\n key: \"headerTitle\",\n fn: function () {\n return [\n _c(\"h4\", { staticClass: \"card-title\" }, [\n _vm._v(\"Users\"),\n ]),\n ]\n },\n proxy: true,\n },\n {\n key: \"body\",\n fn: function () {\n return [\n _c(\"ul\", { staticClass: \"perfomer-lists m-0 p-0\" }, [\n _c(\n \"li\",\n { staticClass: \"d-flex mb-4 align-items-center\" },\n [\n _c(\"div\", { staticClass: \"user-img img-fluid\" }, [\n _c(\"img\", {\n staticClass: \"rounded-circle avatar-40\",\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/user/user-01.jpg */ \"./resources/js/src/assets/images/user/user-01.jpg\"),\n alt: \"story-img\",\n },\n }),\n ]),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"media-support-info ml-3\" },\n [\n _c(\"h6\", [_vm._v(\"Paul Molive\")]),\n _vm._v(\" \"),\n _c(\n \"p\",\n { staticClass: \"mb-0 font-size-12\" },\n [_vm._v(\"UI/UX Designer\")]\n ),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"iq-card-header-toolbar d-flex align-items-center\",\n },\n [\n _c(\"div\", { staticClass: \"dropdown\" }, [\n _c(\n \"span\",\n {\n staticClass:\n \"dropdown-toggle text-primary\",\n attrs: {\n id: \"dropdownMenuButton41\",\n \"data-toggle\": \"dropdown\",\n \"aria-expanded\": \"false\",\n role: \"button\",\n },\n },\n [\n _c(\"i\", {\n staticClass: \"ri-more-2-line\",\n }),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"dropdown-menu dropdown-menu-right\",\n },\n [\n _c(\n \"a\",\n {\n staticClass: \"dropdown-item\",\n attrs: { href: \"#\" },\n },\n [\n _c(\"i\", {\n staticClass: \"ri-eye-line mr-2\",\n }),\n _vm._v(\"View\"),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"a\",\n {\n staticClass: \"dropdown-item\",\n attrs: { href: \"#\" },\n },\n [\n _c(\"i\", {\n staticClass:\n \"ri-bookmark-line mr-2\",\n }),\n _vm._v(\"Appointment\"),\n ]\n ),\n ]\n ),\n ]),\n ]\n ),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"li\",\n { staticClass: \"d-flex mb-4 align-items-center\" },\n [\n _c(\"div\", { staticClass: \"user-img img-fluid\" }, [\n _c(\"img\", {\n staticClass: \"rounded-circle avatar-40\",\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/user/user-02.jpg */ \"./resources/js/src/assets/images/user/user-02.jpg\"),\n alt: \"story-img\",\n },\n }),\n ]),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"media-support-info ml-3\" },\n [\n _c(\"h6\", [_vm._v(\"Barb Dwyer\")]),\n _vm._v(\" \"),\n _c(\n \"p\",\n { staticClass: \"mb-0 font-size-12\" },\n [_vm._v(\"Developer\")]\n ),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"iq-card-header-toolbar d-flex align-items-center\",\n },\n [\n _c(\"div\", { staticClass: \"dropdown show\" }, [\n _c(\n \"span\",\n {\n staticClass:\n \"dropdown-toggle text-primary\",\n attrs: {\n id: \"dropdownMenuButton42\",\n \"data-toggle\": \"dropdown\",\n \"aria-expanded\": \"true\",\n role: \"button\",\n },\n },\n [\n _c(\"i\", {\n staticClass: \"ri-more-2-line\",\n }),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"dropdown-menu dropdown-menu-right\",\n },\n [\n _c(\n \"a\",\n {\n staticClass: \"dropdown-item\",\n attrs: { href: \"#\" },\n },\n [\n _c(\"i\", {\n staticClass: \"ri-eye-line mr-2\",\n }),\n _vm._v(\"View\"),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"a\",\n {\n staticClass: \"dropdown-item\",\n attrs: { href: \"#\" },\n },\n [\n _c(\"i\", {\n staticClass:\n \"ri-bookmark-line mr-2\",\n }),\n _vm._v(\"Appointment\"),\n ]\n ),\n ]\n ),\n ]),\n ]\n ),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"li\",\n { staticClass: \"d-flex mb-4 align-items-center\" },\n [\n _c(\"div\", { staticClass: \"user-img img-fluid\" }, [\n _c(\"img\", {\n staticClass: \"rounded-circle avatar-40\",\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/user/user-03.jpg */ \"./resources/js/src/assets/images/user/user-03.jpg\"),\n alt: \"story-img\",\n },\n }),\n ]),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"media-support-info ml-3\" },\n [\n _c(\"h6\", [_vm._v(\"Terry Aki\")]),\n _vm._v(\" \"),\n _c(\n \"p\",\n { staticClass: \"mb-0 font-size-12\" },\n [_vm._v(\"Tester\")]\n ),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"iq-card-header-toolbar d-flex align-items-center\",\n },\n [\n _c(\"div\", { staticClass: \"dropdown show\" }, [\n _c(\n \"span\",\n {\n staticClass:\n \"dropdown-toggle text-primary\",\n attrs: {\n id: \"dropdownMenuButton43\",\n \"data-toggle\": \"dropdown\",\n \"aria-expanded\": \"true\",\n role: \"button\",\n },\n },\n [\n _c(\"i\", {\n staticClass: \"ri-more-2-line\",\n }),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"dropdown-menu dropdown-menu-right\",\n },\n [\n _c(\n \"a\",\n {\n staticClass: \"dropdown-item\",\n attrs: { href: \"#\" },\n },\n [\n _c(\"i\", {\n staticClass: \"ri-eye-line mr-2\",\n }),\n _vm._v(\"View\"),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"a\",\n {\n staticClass: \"dropdown-item\",\n attrs: { href: \"#\" },\n },\n [\n _c(\"i\", {\n staticClass:\n \"ri-bookmark-line mr-2\",\n }),\n _vm._v(\"Appointment\"),\n ]\n ),\n ]\n ),\n ]),\n ]\n ),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"li\",\n { staticClass: \"d-flex mb-4 align-items-center\" },\n [\n _c(\"div\", { staticClass: \"user-img img-fluid\" }, [\n _c(\"img\", {\n staticClass: \"rounded-circle avatar-40\",\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/user/user-04.jpg */ \"./resources/js/src/assets/images/user/user-04.jpg\"),\n alt: \"story-img\",\n },\n }),\n ]),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"media-support-info ml-3\" },\n [\n _c(\"h6\", [_vm._v(\"Robin Banks\")]),\n _vm._v(\" \"),\n _c(\n \"p\",\n { staticClass: \"mb-0 font-size-12\" },\n [_vm._v(\"Web Designer\")]\n ),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"iq-card-header-toolbar d-flex align-items-center\",\n },\n [\n _c(\"div\", { staticClass: \"dropdown show\" }, [\n _c(\n \"span\",\n {\n staticClass:\n \"dropdown-toggle text-primary\",\n attrs: {\n id: \"dropdownMenuButton44\",\n \"data-toggle\": \"dropdown\",\n \"aria-expanded\": \"true\",\n role: \"button\",\n },\n },\n [\n _c(\"i\", {\n staticClass: \"ri-more-2-line\",\n }),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"dropdown-menu dropdown-menu-right\",\n },\n [\n _c(\n \"a\",\n {\n staticClass: \"dropdown-item\",\n attrs: { href: \"#\" },\n },\n [\n _c(\"i\", {\n staticClass: \"ri-eye-line mr-2\",\n }),\n _vm._v(\"View\"),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"a\",\n {\n staticClass: \"dropdown-item\",\n attrs: { href: \"#\" },\n },\n [\n _c(\"i\", {\n staticClass:\n \"ri-bookmark-line mr-2\",\n }),\n _vm._v(\"Appointment\"),\n ]\n ),\n ]\n ),\n ]),\n ]\n ),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"li\",\n { staticClass: \"d-flex mb-4 align-items-center\" },\n [\n _c(\"div\", { staticClass: \"user-img img-fluid\" }, [\n _c(\"img\", {\n staticClass: \"rounded-circle avatar-40\",\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/user/user-05.jpg */ \"./resources/js/src/assets/images/user/user-05.jpg\"),\n alt: \"story-img\",\n },\n }),\n ]),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"media-support-info ml-3\" },\n [\n _c(\"h6\", [_vm._v(\"Barry Wine\")]),\n _vm._v(\" \"),\n _c(\n \"p\",\n { staticClass: \"mb-0 font-size-12\" },\n [_vm._v(\"Developer\")]\n ),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"iq-card-header-toolbar d-flex align-items-center\",\n },\n [\n _c(\"div\", { staticClass: \"dropdown show\" }, [\n _c(\n \"span\",\n {\n staticClass:\n \"dropdown-toggle text-primary\",\n attrs: {\n id: \"dropdownMenuButton45\",\n \"data-toggle\": \"dropdown\",\n \"aria-expanded\": \"true\",\n role: \"button\",\n },\n },\n [\n _c(\"i\", {\n staticClass: \"ri-more-2-line\",\n }),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"dropdown-menu dropdown-menu-right\",\n },\n [\n _c(\n \"a\",\n {\n staticClass: \"dropdown-item\",\n attrs: { href: \"#\" },\n },\n [\n _c(\"i\", {\n staticClass: \"ri-eye-line mr-2\",\n }),\n _vm._v(\"View\"),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"a\",\n {\n staticClass: \"dropdown-item\",\n attrs: { href: \"#\" },\n },\n [\n _c(\"i\", {\n staticClass:\n \"ri-bookmark-line mr-2\",\n }),\n _vm._v(\"Appointment\"),\n ]\n ),\n ]\n ),\n ]),\n ]\n ),\n ]\n ),\n ]),\n ]\n },\n proxy: true,\n },\n ]),\n }),\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"b-col\",\n { attrs: { lg: \"4\" } },\n [\n _c(\n \"iq-card\",\n {\n scopedSlots: _vm._u([\n {\n key: \"body\",\n fn: function () {\n return [\n _c(\"h6\", [_vm._v(\"Graph Profit Margin\")]),\n _vm._v(\" \"),\n _c(\"h2\", [_vm._v(\"80%\")]),\n ]\n },\n proxy: true,\n },\n ]),\n },\n [\n _vm._v(\" \"),\n _c(\n \"div\",\n { attrs: { id: \"chart-1\" } },\n [\n _c(\"ApexChart\", {\n attrs: { element: \"chart-1\", chartOption: _vm.chart1 },\n }),\n ],\n 1\n ),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"iq-card\",\n {\n scopedSlots: _vm._u([\n {\n key: \"body\",\n fn: function () {\n return [\n _c(\"h6\", [_vm._v(\"Total revenue\")]),\n _vm._v(\" \"),\n _c(\"h2\", [_vm._v(\"$9250\")]),\n ]\n },\n proxy: true,\n },\n ]),\n },\n [\n _vm._v(\" \"),\n _c(\n \"div\",\n { attrs: { id: \"chart-2\" } },\n [\n _c(\"ApexChart\", {\n attrs: { element: \"chart-2\", chartOption: _vm.chart2 },\n }),\n ],\n 1\n ),\n ]\n ),\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"b-col\",\n { attrs: { lg: \"6\" } },\n [\n _c(\"iq-card\", {\n scopedSlots: _vm._u([\n {\n key: \"headerTitle\",\n fn: function () {\n return [\n _c(\"h4\", { staticClass: \"card-title\" }, [\n _vm._v(\"Recent Tranjection\"),\n ]),\n ]\n },\n proxy: true,\n },\n {\n key: \"body\",\n fn: function () {\n return [\n _c(\n \"table\",\n { staticClass: \"table mb-0 table-borderless\" },\n [\n _c(\"thead\", [\n _c(\"tr\", [\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\"Price\"),\n ]),\n _vm._v(\" \"),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\"Amount\"),\n ]),\n _vm._v(\" \"),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\"When\"),\n ]),\n _vm._v(\" \"),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\"Status\"),\n ]),\n ]),\n ]),\n _vm._v(\" \"),\n _c(\"tbody\", [\n _c(\"tr\", [\n _c(\"td\", [_vm._v(\"0.001245689\")]),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\"$25632.00\")]),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\"10 min ago\")]),\n _vm._v(\" \"),\n _c(\"td\", [\n _c(\n \"div\",\n {\n staticClass:\n \"badge badge-pill badge-success\",\n },\n [_vm._v(\"Success\")]\n ),\n ]),\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", [_vm._v(\"0.00002457899\")]),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\"$45826.00\")]),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\"15 min ago\")]),\n _vm._v(\" \"),\n _c(\"td\", [\n _c(\n \"div\",\n {\n staticClass:\n \"badge badge-pill badge-success\",\n },\n [_vm._v(\"Success\")]\n ),\n ]),\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", [_vm._v(\"0.004578965\")]),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\"$458756.00\")]),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\"30 min ago\")]),\n _vm._v(\" \"),\n _c(\"td\", [\n _c(\n \"div\",\n {\n staticClass:\n \"badge badge-pill badge-primary\",\n },\n [_vm._v(\"Pending\")]\n ),\n ]),\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", [_vm._v(\"0.0000124587\")]),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\"$4589652.00\")]),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\"45 min ago\")]),\n _vm._v(\" \"),\n _c(\"td\", [\n _c(\n \"div\",\n {\n staticClass:\n \"badge badge-pill badge-danger\",\n },\n [_vm._v(\"cancel\")]\n ),\n ]),\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", [_vm._v(\"0.0002356896\")]),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\"$45869.00\")]),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\"1 hour ago\")]),\n _vm._v(\" \"),\n _c(\"td\", [\n _c(\n \"div\",\n {\n staticClass:\n \"badge badge-pill badge-success\",\n },\n [_vm._v(\"Success\")]\n ),\n ]),\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", [_vm._v(\"0.000568953\")]),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\"$475896.00\")]),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\"1 hour ago\")]),\n _vm._v(\" \"),\n _c(\"td\", [\n _c(\n \"div\",\n {\n staticClass:\n \"badge badge-pill badge-warning text-white\",\n },\n [_vm._v(\"Hold\")]\n ),\n ]),\n ]),\n ]),\n ]\n ),\n ]\n },\n proxy: true,\n },\n ]),\n }),\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"b-col\",\n { attrs: { lg: \"6\" } },\n [\n _c(\"iq-card\", {\n scopedSlots: _vm._u([\n {\n key: \"headerTitle\",\n fn: function () {\n return [\n _c(\"h4\", { staticClass: \"card-title\" }, [\n _vm._v(\"Activity\"),\n ]),\n ]\n },\n proxy: true,\n },\n {\n key: \"body\",\n fn: function () {\n return [\n _c(\"ul\", { staticClass: \"iq-timeline\" }, [\n _c(\"li\", [\n _c(\"div\", { staticClass: \"timeline-dots\" }),\n _vm._v(\" \"),\n _c(\"h6\", { staticClass: \"float-left mb-1\" }, [\n _vm._v(\"Client Login\"),\n ]),\n _vm._v(\" \"),\n _c(\"small\", { staticClass: \"float-right mt-1\" }, [\n _vm._v(\"24 February 2020\"),\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"d-inline-block w-100\" }, [\n _c(\"p\", [\n _vm._v(\n \"Bonbon macaroon jelly beans gummi bears jelly lollipop apple\"\n ),\n ]),\n ]),\n ]),\n _vm._v(\" \"),\n _c(\"li\", [\n _c(\"div\", {\n staticClass: \"timeline-dots border-success\",\n }),\n _vm._v(\" \"),\n _c(\"h6\", { staticClass: \"float-left mb-1\" }, [\n _vm._v(\"Scheduled Maintenance\"),\n ]),\n _vm._v(\" \"),\n _c(\"small\", { staticClass: \"float-right mt-1\" }, [\n _vm._v(\"23 February 2020\"),\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"d-inline-block w-100\" }, [\n _c(\"p\", [\n _vm._v(\n \"Bonbon macaroon jelly beans gummi bears jelly lollipop apple\"\n ),\n ]),\n ]),\n ]),\n _vm._v(\" \"),\n _c(\"li\", [\n _c(\"div\", {\n staticClass: \"timeline-dots border-primary\",\n }),\n _vm._v(\" \"),\n _c(\"h6\", { staticClass: \"float-left mb-1\" }, [\n _vm._v(\"Client Call\"),\n ]),\n _vm._v(\" \"),\n _c(\"small\", { staticClass: \"float-right mt-1\" }, [\n _vm._v(\"19 February 2020\"),\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"d-inline-block w-100\" }, [\n _c(\"p\", [\n _vm._v(\n \"Bonbon macaroon jelly beans gummi bears jelly lollipop apple\"\n ),\n ]),\n ]),\n ]),\n _vm._v(\" \"),\n _c(\"li\", [\n _c(\"div\", {\n staticClass: \"timeline-dots border-warning\",\n }),\n _vm._v(\" \"),\n _c(\"h6\", { staticClass: \"float-left mb-1\" }, [\n _vm._v(\"Mega event\"),\n ]),\n _vm._v(\" \"),\n _c(\"small\", { staticClass: \"float-right mt-1\" }, [\n _vm._v(\"15 February 2020\"),\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"d-inline-block w-100\" }, [\n _c(\"p\", [\n _vm._v(\n \"Bonbon macaroon jelly beans gummi bears jelly lollipop apple\"\n ),\n ]),\n ]),\n ]),\n ]),\n ]\n },\n proxy: true,\n },\n ]),\n }),\n ],\n 1\n ),\n ],\n 1\n ),\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL3ZpZXdzL0Rhc2hib2FyZHMvRGFzaGJvYXJkNi52dWU/NjRlNyJdLCJuYW1lcyI6W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1ZSZ0eXBlPXRlbXBsYXRlJmlkPTAyYTU0MjM4Ji5qcyIsInNvdXJjZXNDb250ZW50IjpbInZhciByZW5kZXIgPSBmdW5jdGlvbiAoKSB7XG4gIHZhciBfdm0gPSB0aGlzXG4gIHZhciBfaCA9IF92bS4kY3JlYXRlRWxlbWVudFxuICB2YXIgX2MgPSBfdm0uX3NlbGYuX2MgfHwgX2hcbiAgcmV0dXJuIF9jKFxuICAgIFwiYi1jb250YWluZXJcIixcbiAgICB7IGF0dHJzOiB7IGZsdWlkOiBcIlwiIH0gfSxcbiAgICBbXG4gICAgICBfYyhcbiAgICAgICAgXCJiLXJvd1wiLFxuICAgICAgICBbXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImItY29sXCIsXG4gICAgICAgICAgICB7IGF0dHJzOiB7IG1kOiBcIjZcIiwgbGc6IFwiM1wiIH0gfSxcbiAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgX2MoXCJpcS1jYXJkXCIsIHtcbiAgICAgICAgICAgICAgICBhdHRyczogeyBib2R5Q2xhc3M6IFwicmVsYXRpdmUtYmFja2dyb3VuZFwiIH0sXG4gICAgICAgICAgICAgICAgc2NvcGVkU2xvdHM6IF92bS5fdShbXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGtleTogXCJib2R5XCIsXG4gICAgICAgICAgICAgICAgICAgIGZuOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFtcbiAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICB7IHN0YXRpY0NsYXNzOiBcImQtZmxleCBhbGlnbi1pdGVtcy1jZW50ZXJcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInJvdW5kZWQtY2lyY2xlIGlxLWNhcmQtaWNvbiBpcS1iZy1wcmltYXJ5IG1yLTNcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiaVwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwicmktZXhjaGFuZ2UtZG9sbGFyLWxpbmVcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiZGl2XCIsIHsgc3RhdGljQ2xhc3M6IFwidGV4dC1sZWZ0XCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJoNFwiLCB7fSwgW192bS5fdihcIjQyNVwiKV0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiaDVcIiwge30sIFtfdm0uX3YoXCJJbnZlc3RtZW50XCIpXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJwXCIsIHsgc3RhdGljQ2xhc3M6IFwiIG1iLTAgbXQtM1wiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiVG90YWwgZm9yIFRoaXMgTW9udGguXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJkaXZcIiwgeyBzdGF0aWNDbGFzczogXCJiYWNrZ3JvdW5kLWltYWdlXCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImltZ1wiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiaW1nLWZsdWlkXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNyYzogcmVxdWlyZShcIi4uLy4uL2Fzc2V0cy9pbWFnZXMvcGFnZS1pbWcvMzYucG5nXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBwcm94eTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgXSxcbiAgICAgICAgICAgIDFcbiAgICAgICAgICApLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImItY29sXCIsXG4gICAgICAgICAgICB7IGF0dHJzOiB7IG1kOiBcIjZcIiwgbGc6IFwiM1wiIH0gfSxcbiAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgX2MoXCJpcS1jYXJkXCIsIHtcbiAgICAgICAgICAgICAgICBhdHRyczogeyBcImJvZHktY2xhc3NcIjogXCJyZWxhdGl2ZS1iYWNrZ3JvdW5kXCIgfSxcbiAgICAgICAgICAgICAgICBzY29wZWRTbG90czogX3ZtLl91KFtcbiAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAga2V5OiBcImJvZHlcIixcbiAgICAgICAgICAgICAgICAgICAgZm46IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gW1xuICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgIFwiZGl2XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHsgc3RhdGljQ2xhc3M6IFwiZC1mbGV4IGFsaWduLWl0ZW1zLWNlbnRlclwiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZGl2XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwicm91bmRlZC1jaXJjbGUgaXEtY2FyZC1pY29uIGlxLWJnLXdhcm5pbmcgbXItM1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtfYyhcImlcIiwgeyBzdGF0aWNDbGFzczogXCJyaS1ndWlkZS1saW5lXCIgfSldXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiZGl2XCIsIHsgc3RhdGljQ2xhc3M6IFwidGV4dC1sZWZ0XCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJoNFwiLCB7fSwgW192bS5fdihcIjQyNVwiKV0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiaDVcIiwge30sIFtfdm0uX3YoXCJTYWxlc1wiKV0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwicFwiLCB7IHN0YXRpY0NsYXNzOiBcIiBtYi0wIG10LTNcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIlRvdGFsIGZvciBUaGlzIE1vbnRoLlwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiZGl2XCIsIHsgc3RhdGljQ2xhc3M6IFwiYmFja2dyb3VuZC1pbWFnZVwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJpbWdcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcImltZy1mbHVpZFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzcmM6IHJlcXVpcmUoXCIuLi8uLi9hc3NldHMvaW1hZ2VzL3BhZ2UtaW1nLzM3LnBuZ1wiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgcHJveHk6IHRydWUsXG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAxXG4gICAgICAgICAgKSxcbiAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgIF9jKFxuICAgICAgICAgICAgXCJiLWNvbFwiLFxuICAgICAgICAgICAgeyBhdHRyczogeyBtZDogXCI2XCIsIGxnOiBcIjNcIiB9IH0sXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgIF9jKFwiaXEtY2FyZFwiLCB7XG4gICAgICAgICAgICAgICAgYXR0cnM6IHsgXCJib2R5LWNsYXNzXCI6IFwicmVsYXRpdmUtYmFja2dyb3VuZFwiIH0sXG4gICAgICAgICAgICAgICAgc2NvcGVkU2xvdHM6IF92bS5fdShbXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGtleTogXCJib2R5XCIsXG4gICAgICAgICAgICAgICAgICAgIGZuOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFtcbiAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICB7IHN0YXRpY0NsYXNzOiBcImQtZmxleCBhbGlnbi1pdGVtcy1jZW50ZXJcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInJvdW5kZWQtY2lyY2xlIGlxLWNhcmQtaWNvbiBpcS1iZy1kYW5nZXIgbXItM1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJpXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJyaS1tb25leS1wb3VuZC1jaXJjbGUtbGluZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJkaXZcIiwgeyBzdGF0aWNDbGFzczogXCJ0ZXh0LWxlZnRcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImg0XCIsIHt9LCBbX3ZtLl92KFwiNDI1XCIpXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJoNVwiLCB7fSwgW192bS5fdihcIkNvc3RcIildKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICBfYyhcInBcIiwgeyBzdGF0aWNDbGFzczogXCIgbWItMCBtdC0zXCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCJUb3RhbCBmb3IgVGhpcyBNb250aC5cIiksXG4gICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcImJhY2tncm91bmQtaW1hZ2VcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiaW1nXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJpbWctZmx1aWRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3JjOiByZXF1aXJlKFwiLi4vLi4vYXNzZXRzL2ltYWdlcy9wYWdlLWltZy8zOC5wbmdcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIHByb3h5OiB0cnVlLFxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICBdLFxuICAgICAgICAgICAgMVxuICAgICAgICAgICksXG4gICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICBfYyhcbiAgICAgICAgICAgIFwiYi1jb2xcIixcbiAgICAgICAgICAgIHsgYXR0cnM6IHsgbWQ6IFwiNlwiLCBsZzogXCIzXCIgfSB9LFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICBfYyhcImlxLWNhcmRcIiwge1xuICAgICAgICAgICAgICAgIGF0dHJzOiB7IFwiYm9keS1jbGFzc1wiOiBcInJlbGF0aXZlLWJhY2tncm91bmRcIiB9LFxuICAgICAgICAgICAgICAgIHNjb3BlZFNsb3RzOiBfdm0uX3UoW1xuICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBrZXk6IFwiYm9keVwiLFxuICAgICAgICAgICAgICAgICAgICBmbjogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBbXG4gICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgeyBzdGF0aWNDbGFzczogXCJkLWZsZXggYWxpZ24taXRlbXMtY2VudGVyXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJyb3VuZGVkLWNpcmNsZSBpcS1jYXJkLWljb24gaXEtYmctaW5mbyBtci0zXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW19jKFwiaVwiLCB7IHN0YXRpY0NsYXNzOiBcInJpLW51bWJlcnMtbGluZVwiIH0pXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcInRleHQtbGVmdFwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiaDRcIiwge30sIFtfdm0uX3YoXCI0MjVcIildKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImg1XCIsIHt9LCBbX3ZtLl92KFwiUHJvZml0XCIpXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJwXCIsIHsgc3RhdGljQ2xhc3M6IFwiIG1iLTAgbXQtM1wiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiVG90YWwgZm9yIFRoaXMgTW9udGguXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJkaXZcIiwgeyBzdGF0aWNDbGFzczogXCJiYWNrZ3JvdW5kLWltYWdlXCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImltZ1wiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiaW1nLWZsdWlkXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNyYzogcmVxdWlyZShcIi4uLy4uL2Fzc2V0cy9pbWFnZXMvcGFnZS1pbWcvMzkucG5nXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBwcm94eTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgXSxcbiAgICAgICAgICAgIDFcbiAgICAgICAgICApLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImItY29sXCIsXG4gICAgICAgICAgICB7IGF0dHJzOiB7IGxnOiBcIjhcIiB9IH0sXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgIF9jKFwiaXEtY2FyZFwiLCB7XG4gICAgICAgICAgICAgICAgc3RhdGljU3R5bGU6IHsgcG9zaXRpb246IFwicmVsYXRpdmVcIiB9LFxuICAgICAgICAgICAgICAgIHNjb3BlZFNsb3RzOiBfdm0uX3UoW1xuICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBrZXk6IFwiaGVhZGVyVGl0bGVcIixcbiAgICAgICAgICAgICAgICAgICAgZm46IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gW1xuICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJoNFwiLCB7IHN0YXRpY0NsYXNzOiBcImNhcmQtdGl0bGVcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIkVhcm5pbmcgR3Jvd3RoXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBwcm94eTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGtleTogXCJoZWFkZXJBY3Rpb25cIixcbiAgICAgICAgICAgICAgICAgICAgZm46IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gW1xuICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJ1bFwiLCB7IHN0YXRpY0NsYXNzOiBcIm5hdiBuYXYtcGlsbHNcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwibGlcIiwgeyBzdGF0aWNDbGFzczogXCJuYXYtaXRlbVwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiYVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJuYXYtbGluayBhY3RpdmVcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHsgaHJlZjogXCIjXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbX3ZtLl92KFwiTGF0ZXN0XCIpXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImxpXCIsIHsgc3RhdGljQ2xhc3M6IFwibmF2LWl0ZW1cIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImFcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsgc3RhdGljQ2xhc3M6IFwibmF2LWxpbmtcIiwgYXR0cnM6IHsgaHJlZjogXCIjXCIgfSB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW192bS5fdihcIk1vbnRoXCIpXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImxpXCIsIHsgc3RhdGljQ2xhc3M6IFwibmF2LWl0ZW1cIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImFcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsgc3RhdGljQ2xhc3M6IFwibmF2LWxpbmtcIiwgYXR0cnM6IHsgaHJlZjogXCIjXCIgfSB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW192bS5fdihcIkFsbCBUaW1lXCIpXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBwcm94eTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGtleTogXCJib2R5XCIsXG4gICAgICAgICAgICAgICAgICAgIGZuOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFtcbiAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljU3R5bGU6IHsgaGVpZ2h0OiBcIjQxMHB4XCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyBpZDogXCJob21lLUdyb3RoLWNoYXJ0XCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiQW1DaGFydFwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbGVtZW50OiBcImhvbWUtY2hhcnQtMDZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogXCJkYXNoYm9hcmQyXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhlaWdodDogMzUwLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIHByb3h5OiB0cnVlLFxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICBdLFxuICAgICAgICAgICAgMVxuICAgICAgICAgICksXG4gICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICBfYyhcbiAgICAgICAgICAgIFwiYi1jb2xcIixcbiAgICAgICAgICAgIHsgYXR0cnM6IHsgbGc6IFwiNFwiIH0gfSxcbiAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgXCJpcS1jYXJkXCIsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgXCJjbGFzcy1uYW1lXCI6XG4gICAgICAgICAgICAgICAgICAgICAgXCJpcS1jYXJkLWJsb2NrIGlxLWNhcmQtc3RyZXRjaCBpcS1jYXJkLWhlaWdodFwiLFxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgIF9jKFwiZGl2XCIsIHtcbiAgICAgICAgICAgICAgICAgICAgc3R5bGU6XG4gICAgICAgICAgICAgICAgICAgICAgXCJiYWNrZ3JvdW5kOiB1cmwoXCIgK1xuICAgICAgICAgICAgICAgICAgICAgIHJlcXVpcmUoXCIuLi8uLi9hc3NldHMvaW1hZ2VzL3BhZ2UtaW1nLzQwLnBuZ1wiKSArXG4gICAgICAgICAgICAgICAgICAgICAgXCIpIG5vLXJlcGVhdCBzY3JvbGwgYm90dG9tOyBiYWNrZ3JvdW5kLXNpemU6IGNvbnRhaW47IGhlaWdodDogNTA1cHg7XCIsXG4gICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICBdLFxuICAgICAgICAgICAgMVxuICAgICAgICAgICksXG4gICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICBfYyhcbiAgICAgICAgICAgIFwiYi1jb2xcIixcbiAgICAgICAgICAgIHsgYXR0cnM6IHsgbGc6IFwiNFwiIH0gfSxcbiAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgX2MoXCJpcS1jYXJkXCIsIHtcbiAgICAgICAgICAgICAgICBzY29wZWRTbG90czogX3ZtLl91KFtcbiAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAga2V5OiBcImhlYWRlclRpdGxlXCIsXG4gICAgICAgICAgICAgICAgICAgIGZuOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFtcbiAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiaDRcIiwgeyBzdGF0aWNDbGFzczogXCJjYXJkLXRpdGxlXCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCJQZXJmb21hbmNlXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBwcm94eTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGtleTogXCJib2R5XCIsXG4gICAgICAgICAgICAgICAgICAgIGZuOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFtcbiAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICB7IGF0dHJzOiB7IGlkOiBcImhvbWUtcGVyZm9tZXItY2hhcnRcIiB9IH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcIkFwZXhDaGFydFwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbGVtZW50OiBcImNoYXJ0LTEzXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNoYXJ0T3B0aW9uOiBfdm0uY2hhcnQxMyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBwcm94eTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgXSxcbiAgICAgICAgICAgIDFcbiAgICAgICAgICApLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImItY29sXCIsXG4gICAgICAgICAgICB7IGF0dHJzOiB7IGxnOiBcIjRcIiB9IH0sXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgIF9jKFwiaXEtY2FyZFwiLCB7XG4gICAgICAgICAgICAgICAgc2NvcGVkU2xvdHM6IF92bS5fdShbXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGtleTogXCJoZWFkZXJUaXRsZVwiLFxuICAgICAgICAgICAgICAgICAgICBmbjogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBbXG4gICAgICAgICAgICAgICAgICAgICAgICBfYyhcImg0XCIsIHsgc3RhdGljQ2xhc3M6IFwiY2FyZC10aXRsZVwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiVXNlcnNcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIHByb3h5OiB0cnVlLFxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAga2V5OiBcImJvZHlcIixcbiAgICAgICAgICAgICAgICAgICAgZm46IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gW1xuICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJ1bFwiLCB7IHN0YXRpY0NsYXNzOiBcInBlcmZvbWVyLWxpc3RzIG0tMCBwLTBcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwibGlcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IHN0YXRpY0NsYXNzOiBcImQtZmxleCBtYi00IGFsaWduLWl0ZW1zLWNlbnRlclwiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJkaXZcIiwgeyBzdGF0aWNDbGFzczogXCJ1c2VyLWltZyBpbWctZmx1aWRcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiaW1nXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJyb3VuZGVkLWNpcmNsZSBhdmF0YXItNDBcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3JjOiByZXF1aXJlKFwiLi4vLi4vYXNzZXRzL2ltYWdlcy91c2VyL3VzZXItMDEuanBnXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWx0OiBcInN0b3J5LWltZ1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZGl2XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsgc3RhdGljQ2xhc3M6IFwibWVkaWEtc3VwcG9ydC1pbmZvIG1sLTNcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJoNlwiLCBbX3ZtLl92KFwiUGF1bCBNb2xpdmVcIildKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJwXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IHN0YXRpY0NsYXNzOiBcIm1iLTAgZm9udC1zaXplLTEyXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtfdm0uX3YoXCJVSS9VWCBEZXNpZ25lclwiKV1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImlxLWNhcmQtaGVhZGVyLXRvb2xiYXIgZC1mbGV4IGFsaWduLWl0ZW1zLWNlbnRlclwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJkaXZcIiwgeyBzdGF0aWNDbGFzczogXCJkcm9wZG93blwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInNwYW5cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkcm9wZG93bi10b2dnbGUgdGV4dC1wcmltYXJ5XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkOiBcImRyb3Bkb3duTWVudUJ1dHRvbjQxXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImRhdGEtdG9nZ2xlXCI6IFwiZHJvcGRvd25cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiYXJpYS1leHBhbmRlZFwiOiBcImZhbHNlXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByb2xlOiBcImJ1dHRvblwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImlcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwicmktbW9yZS0yLWxpbmVcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkcm9wZG93bi1tZW51IGRyb3Bkb3duLW1lbnUtcmlnaHRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJhXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcImRyb3Bkb3duLWl0ZW1cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHsgaHJlZjogXCIjXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiaVwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwicmktZXllLWxpbmUgbXItMlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiVmlld1wiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImFcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiZHJvcGRvd24taXRlbVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyBocmVmOiBcIiNcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJpXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwicmktYm9va21hcmstbGluZSBtci0yXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCJBcHBvaW50bWVudFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJsaVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsgc3RhdGljQ2xhc3M6IFwiZC1mbGV4IG1iLTQgYWxpZ24taXRlbXMtY2VudGVyXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcInVzZXItaW1nIGltZy1mbHVpZFwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJpbWdcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcInJvdW5kZWQtY2lyY2xlIGF2YXRhci00MFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzcmM6IHJlcXVpcmUoXCIuLi8uLi9hc3NldHMvaW1hZ2VzL3VzZXIvdXNlci0wMi5qcGdcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbHQ6IFwic3RvcnktaW1nXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyBzdGF0aWNDbGFzczogXCJtZWRpYS1zdXBwb3J0LWluZm8gbWwtM1wiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImg2XCIsIFtfdm0uX3YoXCJCYXJiIER3eWVyXCIpXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwicFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyBzdGF0aWNDbGFzczogXCJtYi0wIGZvbnQtc2l6ZS0xMlwiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbX3ZtLl92KFwiRGV2ZWxvcGVyXCIpXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZGl2XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiaXEtY2FyZC1oZWFkZXItdG9vbGJhciBkLWZsZXggYWxpZ24taXRlbXMtY2VudGVyXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcImRyb3Bkb3duIHNob3dcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJzcGFuXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZHJvcGRvd24tdG9nZ2xlIHRleHQtcHJpbWFyeVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZDogXCJkcm9wZG93bk1lbnVCdXR0b240MlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkYXRhLXRvZ2dsZVwiOiBcImRyb3Bkb3duXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImFyaWEtZXhwYW5kZWRcIjogXCJ0cnVlXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByb2xlOiBcImJ1dHRvblwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImlcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwicmktbW9yZS0yLWxpbmVcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkcm9wZG93bi1tZW51IGRyb3Bkb3duLW1lbnUtcmlnaHRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJhXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcImRyb3Bkb3duLWl0ZW1cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHsgaHJlZjogXCIjXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiaVwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwicmktZXllLWxpbmUgbXItMlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiVmlld1wiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImFcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiZHJvcGRvd24taXRlbVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyBocmVmOiBcIiNcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJpXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwicmktYm9va21hcmstbGluZSBtci0yXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCJBcHBvaW50bWVudFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJsaVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsgc3RhdGljQ2xhc3M6IFwiZC1mbGV4IG1iLTQgYWxpZ24taXRlbXMtY2VudGVyXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcInVzZXItaW1nIGltZy1mbHVpZFwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJpbWdcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcInJvdW5kZWQtY2lyY2xlIGF2YXRhci00MFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzcmM6IHJlcXVpcmUoXCIuLi8uLi9hc3NldHMvaW1hZ2VzL3VzZXIvdXNlci0wMy5qcGdcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbHQ6IFwic3RvcnktaW1nXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyBzdGF0aWNDbGFzczogXCJtZWRpYS1zdXBwb3J0LWluZm8gbWwtM1wiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImg2XCIsIFtfdm0uX3YoXCJUZXJyeSBBa2lcIildKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJwXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IHN0YXRpY0NsYXNzOiBcIm1iLTAgZm9udC1zaXplLTEyXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtfdm0uX3YoXCJUZXN0ZXJcIildXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJpcS1jYXJkLWhlYWRlci10b29sYmFyIGQtZmxleCBhbGlnbi1pdGVtcy1jZW50ZXJcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiZGl2XCIsIHsgc3RhdGljQ2xhc3M6IFwiZHJvcGRvd24gc2hvd1wiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInNwYW5cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkcm9wZG93bi10b2dnbGUgdGV4dC1wcmltYXJ5XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkOiBcImRyb3Bkb3duTWVudUJ1dHRvbjQzXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImRhdGEtdG9nZ2xlXCI6IFwiZHJvcGRvd25cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiYXJpYS1leHBhbmRlZFwiOiBcInRydWVcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvbGU6IFwiYnV0dG9uXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiaVwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJyaS1tb3JlLTItbGluZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImRyb3Bkb3duLW1lbnUgZHJvcGRvd24tbWVudS1yaWdodFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImFcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiZHJvcGRvd24taXRlbVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyBocmVmOiBcIiNcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJpXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJyaS1leWUtbGluZSBtci0yXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCJWaWV3XCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiYVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJkcm9wZG93bi1pdGVtXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7IGhyZWY6IFwiI1wiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImlcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJyaS1ib29rbWFyay1saW5lIG1yLTJcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIkFwcG9pbnRtZW50XCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImxpXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgeyBzdGF0aWNDbGFzczogXCJkLWZsZXggbWItNCBhbGlnbi1pdGVtcy1jZW50ZXJcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiZGl2XCIsIHsgc3RhdGljQ2xhc3M6IFwidXNlci1pbWcgaW1nLWZsdWlkXCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImltZ1wiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwicm91bmRlZC1jaXJjbGUgYXZhdGFyLTQwXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNyYzogcmVxdWlyZShcIi4uLy4uL2Fzc2V0cy9pbWFnZXMvdXNlci91c2VyLTA0LmpwZ1wiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsdDogXCJzdG9yeS1pbWdcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IHN0YXRpY0NsYXNzOiBcIm1lZGlhLXN1cHBvcnQtaW5mbyBtbC0zXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiaDZcIiwgW192bS5fdihcIlJvYmluIEJhbmtzXCIpXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwicFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyBzdGF0aWNDbGFzczogXCJtYi0wIGZvbnQtc2l6ZS0xMlwiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbX3ZtLl92KFwiV2ViIERlc2lnbmVyXCIpXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZGl2XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiaXEtY2FyZC1oZWFkZXItdG9vbGJhciBkLWZsZXggYWxpZ24taXRlbXMtY2VudGVyXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcImRyb3Bkb3duIHNob3dcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJzcGFuXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZHJvcGRvd24tdG9nZ2xlIHRleHQtcHJpbWFyeVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZDogXCJkcm9wZG93bk1lbnVCdXR0b240NFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkYXRhLXRvZ2dsZVwiOiBcImRyb3Bkb3duXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImFyaWEtZXhwYW5kZWRcIjogXCJ0cnVlXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByb2xlOiBcImJ1dHRvblwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImlcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwicmktbW9yZS0yLWxpbmVcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkcm9wZG93bi1tZW51IGRyb3Bkb3duLW1lbnUtcmlnaHRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJhXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcImRyb3Bkb3duLWl0ZW1cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHsgaHJlZjogXCIjXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiaVwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwicmktZXllLWxpbmUgbXItMlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiVmlld1wiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImFcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiZHJvcGRvd24taXRlbVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyBocmVmOiBcIiNcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJpXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwicmktYm9va21hcmstbGluZSBtci0yXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCJBcHBvaW50bWVudFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJsaVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsgc3RhdGljQ2xhc3M6IFwiZC1mbGV4IG1iLTQgYWxpZ24taXRlbXMtY2VudGVyXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcInVzZXItaW1nIGltZy1mbHVpZFwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJpbWdcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcInJvdW5kZWQtY2lyY2xlIGF2YXRhci00MFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzcmM6IHJlcXVpcmUoXCIuLi8uLi9hc3NldHMvaW1hZ2VzL3VzZXIvdXNlci0wNS5qcGdcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbHQ6IFwic3RvcnktaW1nXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyBzdGF0aWNDbGFzczogXCJtZWRpYS1zdXBwb3J0LWluZm8gbWwtM1wiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImg2XCIsIFtfdm0uX3YoXCJCYXJyeSBXaW5lXCIpXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwicFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyBzdGF0aWNDbGFzczogXCJtYi0wIGZvbnQtc2l6ZS0xMlwiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbX3ZtLl92KFwiRGV2ZWxvcGVyXCIpXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZGl2XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiaXEtY2FyZC1oZWFkZXItdG9vbGJhciBkLWZsZXggYWxpZ24taXRlbXMtY2VudGVyXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcImRyb3Bkb3duIHNob3dcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJzcGFuXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZHJvcGRvd24tdG9nZ2xlIHRleHQtcHJpbWFyeVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZDogXCJkcm9wZG93bk1lbnVCdXR0b240NVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkYXRhLXRvZ2dsZVwiOiBcImRyb3Bkb3duXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImFyaWEtZXhwYW5kZWRcIjogXCJ0cnVlXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByb2xlOiBcImJ1dHRvblwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImlcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwicmktbW9yZS0yLWxpbmVcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkcm9wZG93bi1tZW51IGRyb3Bkb3duLW1lbnUtcmlnaHRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJhXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcImRyb3Bkb3duLWl0ZW1cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHsgaHJlZjogXCIjXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiaVwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwicmktZXllLWxpbmUgbXItMlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiVmlld1wiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImFcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiZHJvcGRvd24taXRlbVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyBocmVmOiBcIiNcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJpXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwicmktYm9va21hcmstbGluZSBtci0yXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCJBcHBvaW50bWVudFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgcHJveHk6IHRydWUsXG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAxXG4gICAgICAgICAgKSxcbiAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgIF9jKFxuICAgICAgICAgICAgXCJiLWNvbFwiLFxuICAgICAgICAgICAgeyBhdHRyczogeyBsZzogXCI0XCIgfSB9LFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICBcImlxLWNhcmRcIixcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICBzY29wZWRTbG90czogX3ZtLl91KFtcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgIGtleTogXCJib2R5XCIsXG4gICAgICAgICAgICAgICAgICAgICAgZm46IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiaDZcIiwgW192bS5fdihcIkdyYXBoIFByb2ZpdCBNYXJnaW5cIildKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJoMlwiLCBbX3ZtLl92KFwiODAlXCIpXSksXG4gICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICBwcm94eTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgICAgICAgICB7IGF0dHJzOiB7IGlkOiBcImNoYXJ0LTFcIiB9IH0sXG4gICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICBfYyhcIkFwZXhDaGFydFwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyBlbGVtZW50OiBcImNoYXJ0LTFcIiwgY2hhcnRPcHRpb246IF92bS5jaGFydDEgfSxcbiAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgIFwiaXEtY2FyZFwiLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgIHNjb3BlZFNsb3RzOiBfdm0uX3UoW1xuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAga2V5OiBcImJvZHlcIixcbiAgICAgICAgICAgICAgICAgICAgICBmbjogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJoNlwiLCBbX3ZtLl92KFwiVG90YWwgcmV2ZW51ZVwiKV0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImgyXCIsIFtfdm0uX3YoXCIkOTI1MFwiKV0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgcHJveHk6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgICAgeyBhdHRyczogeyBpZDogXCJjaGFydC0yXCIgfSB9LFxuICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgX2MoXCJBcGV4Q2hhcnRcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHsgZWxlbWVudDogXCJjaGFydC0yXCIsIGNoYXJ0T3B0aW9uOiBfdm0uY2hhcnQyIH0sXG4gICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgXSxcbiAgICAgICAgICAgIDFcbiAgICAgICAgICApLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImItY29sXCIsXG4gICAgICAgICAgICB7IGF0dHJzOiB7IGxnOiBcIjZcIiB9IH0sXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgIF9jKFwiaXEtY2FyZFwiLCB7XG4gICAgICAgICAgICAgICAgc2NvcGVkU2xvdHM6IF92bS5fdShbXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGtleTogXCJoZWFkZXJUaXRsZVwiLFxuICAgICAgICAgICAgICAgICAgICBmbjogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBbXG4gICAgICAgICAgICAgICAgICAgICAgICBfYyhcImg0XCIsIHsgc3RhdGljQ2xhc3M6IFwiY2FyZC10aXRsZVwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiUmVjZW50IFRyYW5qZWN0aW9uXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBwcm94eTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGtleTogXCJib2R5XCIsXG4gICAgICAgICAgICAgICAgICAgIGZuOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFtcbiAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICBcInRhYmxlXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHsgc3RhdGljQ2xhc3M6IFwidGFibGUgbWItMCB0YWJsZS1ib3JkZXJsZXNzXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwidGhlYWRcIiwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJ0clwiLCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwidGhcIiwgeyBhdHRyczogeyBzY29wZTogXCJjb2xcIiB9IH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCJQcmljZVwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwidGhcIiwgeyBhdHRyczogeyBzY29wZTogXCJjb2xcIiB9IH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCJBbW91bnRcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRoXCIsIHsgYXR0cnM6IHsgc2NvcGU6IFwiY29sXCIgfSB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiV2hlblwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwidGhcIiwgeyBhdHRyczogeyBzY29wZTogXCJjb2xcIiB9IH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCJTdGF0dXNcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRib2R5XCIsIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwidHJcIiwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRkXCIsIFtfdm0uX3YoXCIwLjAwMTI0NTY4OVwiKV0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRkXCIsIFtfdm0uX3YoXCIkMjU2MzIuMDBcIildKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJ0ZFwiLCBbX3ZtLl92KFwiMTAgbWluIGFnb1wiKV0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRkXCIsIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZGl2XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiYmFkZ2UgYmFkZ2UtcGlsbCBiYWRnZS1zdWNjZXNzXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW192bS5fdihcIlN1Y2Nlc3NcIildXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRyXCIsIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJ0ZFwiLCBbX3ZtLl92KFwiMC4wMDAwMjQ1Nzg5OVwiKV0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRkXCIsIFtfdm0uX3YoXCIkNDU4MjYuMDBcIildKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJ0ZFwiLCBbX3ZtLl92KFwiMTUgbWluIGFnb1wiKV0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRkXCIsIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZGl2XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiYmFkZ2UgYmFkZ2UtcGlsbCBiYWRnZS1zdWNjZXNzXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW192bS5fdihcIlN1Y2Nlc3NcIildXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRyXCIsIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJ0ZFwiLCBbX3ZtLl92KFwiMC4wMDQ1Nzg5NjVcIildKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJ0ZFwiLCBbX3ZtLl92KFwiJDQ1ODc1Ni4wMFwiKV0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRkXCIsIFtfdm0uX3YoXCIzMCBtaW4gYWdvXCIpXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwidGRcIiwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJiYWRnZSBiYWRnZS1waWxsIGJhZGdlLXByaW1hcnlcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbX3ZtLl92KFwiUGVuZGluZ1wiKV1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwidHJcIiwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRkXCIsIFtfdm0uX3YoXCIwLjAwMDAxMjQ1ODdcIildKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJ0ZFwiLCBbX3ZtLl92KFwiJDQ1ODk2NTIuMDBcIildKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJ0ZFwiLCBbX3ZtLl92KFwiNDUgbWluIGFnb1wiKV0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRkXCIsIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZGl2XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiYmFkZ2UgYmFkZ2UtcGlsbCBiYWRnZS1kYW5nZXJcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbX3ZtLl92KFwiY2FuY2VsXCIpXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJ0clwiLCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwidGRcIiwgW192bS5fdihcIjAuMDAwMjM1Njg5NlwiKV0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRkXCIsIFtfdm0uX3YoXCIkNDU4NjkuMDBcIildKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJ0ZFwiLCBbX3ZtLl92KFwiMSBob3VyIGFnb1wiKV0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRkXCIsIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZGl2XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiYmFkZ2UgYmFkZ2UtcGlsbCBiYWRnZS1zdWNjZXNzXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW192bS5fdihcIlN1Y2Nlc3NcIildXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRyXCIsIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJ0ZFwiLCBbX3ZtLl92KFwiMC4wMDA1Njg5NTNcIildKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJ0ZFwiLCBbX3ZtLl92KFwiJDQ3NTg5Ni4wMFwiKV0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInRkXCIsIFtfdm0uX3YoXCIxIGhvdXIgYWdvXCIpXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwidGRcIiwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJiYWRnZSBiYWRnZS1waWxsIGJhZGdlLXdhcm5pbmcgdGV4dC13aGl0ZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtfdm0uX3YoXCJIb2xkXCIpXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBwcm94eTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgXSxcbiAgICAgICAgICAgIDFcbiAgICAgICAgICApLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImItY29sXCIsXG4gICAgICAgICAgICB7IGF0dHJzOiB7IGxnOiBcIjZcIiB9IH0sXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgIF9jKFwiaXEtY2FyZFwiLCB7XG4gICAgICAgICAgICAgICAgc2NvcGVkU2xvdHM6IF92bS5fdShbXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGtleTogXCJoZWFkZXJUaXRsZVwiLFxuICAgICAgICAgICAgICAgICAgICBmbjogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBbXG4gICAgICAgICAgICAgICAgICAgICAgICBfYyhcImg0XCIsIHsgc3RhdGljQ2xhc3M6IFwiY2FyZC10aXRsZVwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiQWN0aXZpdHlcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIHByb3h5OiB0cnVlLFxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAga2V5OiBcImJvZHlcIixcbiAgICAgICAgICAgICAgICAgICAgZm46IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gW1xuICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJ1bFwiLCB7IHN0YXRpY0NsYXNzOiBcImlxLXRpbWVsaW5lXCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImxpXCIsIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcInRpbWVsaW5lLWRvdHNcIiB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiaDZcIiwgeyBzdGF0aWNDbGFzczogXCJmbG9hdC1sZWZ0IG1iLTFcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCJDbGllbnQgTG9naW5cIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInNtYWxsXCIsIHsgc3RhdGljQ2xhc3M6IFwiZmxvYXQtcmlnaHQgbXQtMVwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIjI0IEZlYnJ1YXJ5IDIwMjBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcImQtaW5saW5lLWJsb2NrIHctMTAwXCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJwXCIsIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiQm9uYm9uIG1hY2Fyb29uIGplbGx5IGJlYW5zIGd1bW1pIGJlYXJzIGplbGx5IGxvbGxpcG9wIGFwcGxlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJsaVwiLCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJkaXZcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwidGltZWxpbmUtZG90cyBib3JkZXItc3VjY2Vzc1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJoNlwiLCB7IHN0YXRpY0NsYXNzOiBcImZsb2F0LWxlZnQgbWItMVwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIlNjaGVkdWxlZCBNYWludGVuYW5jZVwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwic21hbGxcIiwgeyBzdGF0aWNDbGFzczogXCJmbG9hdC1yaWdodCBtdC0xXCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiMjMgRmVicnVhcnkgMjAyMFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiZGl2XCIsIHsgc3RhdGljQ2xhc3M6IFwiZC1pbmxpbmUtYmxvY2sgdy0xMDBcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInBcIiwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJCb25ib24gbWFjYXJvb24gamVsbHkgYmVhbnMgZ3VtbWkgYmVhcnMgamVsbHkgbG9sbGlwb3AgYXBwbGVcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImxpXCIsIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJ0aW1lbGluZS1kb3RzIGJvcmRlci1wcmltYXJ5XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImg2XCIsIHsgc3RhdGljQ2xhc3M6IFwiZmxvYXQtbGVmdCBtYi0xXCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiQ2xpZW50IENhbGxcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInNtYWxsXCIsIHsgc3RhdGljQ2xhc3M6IFwiZmxvYXQtcmlnaHQgbXQtMVwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIjE5IEZlYnJ1YXJ5IDIwMjBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcImQtaW5saW5lLWJsb2NrIHctMTAwXCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJwXCIsIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiQm9uYm9uIG1hY2Fyb29uIGplbGx5IGJlYW5zIGd1bW1pIGJlYXJzIGplbGx5IGxvbGxpcG9wIGFwcGxlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJsaVwiLCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJkaXZcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwidGltZWxpbmUtZG90cyBib3JkZXItd2FybmluZ1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJoNlwiLCB7IHN0YXRpY0NsYXNzOiBcImZsb2F0LWxlZnQgbWItMVwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIk1lZ2EgZXZlbnRcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInNtYWxsXCIsIHsgc3RhdGljQ2xhc3M6IFwiZmxvYXQtcmlnaHQgbXQtMVwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIjE1IEZlYnJ1YXJ5IDIwMjBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcImQtaW5saW5lLWJsb2NrIHctMTAwXCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJwXCIsIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiQm9uYm9uIG1hY2Fyb29uIGplbGx5IGJlYW5zIGd1bW1pIGJlYXJzIGplbGx5IGxvbGxpcG9wIGFwcGxlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgcHJveHk6IHRydWUsXG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAxXG4gICAgICAgICAgKSxcbiAgICAgICAgXSxcbiAgICAgICAgMVxuICAgICAgKSxcbiAgICBdLFxuICAgIDFcbiAgKVxufVxudmFyIHN0YXRpY1JlbmRlckZucyA9IFtdXG5yZW5kZXIuX3dpdGhTdHJpcHBlZCA9IHRydWVcblxuZXhwb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=template&id=02a54238&\n");
/***/ }),
/***/ "./resources/js/src/assets/images/page-img/36.png":
/*!********************************************************!*\
!*** ./resources/js/src/assets/images/page-img/36.png ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = \"/images/36.png?28b45a280622a667ef58e4d036dc8d39\";//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL2Fzc2V0cy9pbWFnZXMvcGFnZS1pbWcvMzYucG5nP2YyZTciXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEiLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvc3JjL2Fzc2V0cy9pbWFnZXMvcGFnZS1pbWcvMzYucG5nLmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcIi9pbWFnZXMvMzYucG5nPzI4YjQ1YTI4MDYyMmE2NjdlZjU4ZTRkMDM2ZGM4ZDM5XCI7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/src/assets/images/page-img/36.png\n");
/***/ }),
/***/ "./resources/js/src/assets/images/page-img/37.png":
/*!********************************************************!*\
!*** ./resources/js/src/assets/images/page-img/37.png ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = \"/images/37.png?53c74d1bcb72304b72c68c8fef9f7cbd\";//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL2Fzc2V0cy9pbWFnZXMvcGFnZS1pbWcvMzcucG5nPzU3NjUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEiLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvc3JjL2Fzc2V0cy9pbWFnZXMvcGFnZS1pbWcvMzcucG5nLmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcIi9pbWFnZXMvMzcucG5nPzUzYzc0ZDFiY2I3MjMwNGI3MmM2OGM4ZmVmOWY3Y2JkXCI7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/src/assets/images/page-img/37.png\n");
/***/ }),
/***/ "./resources/js/src/assets/images/page-img/38.png":
/*!********************************************************!*\
!*** ./resources/js/src/assets/images/page-img/38.png ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = \"/images/38.png?183a7488b3ed878c6773d5af649abdab\";//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL2Fzc2V0cy9pbWFnZXMvcGFnZS1pbWcvMzgucG5nP2M1YmQiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEiLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvc3JjL2Fzc2V0cy9pbWFnZXMvcGFnZS1pbWcvMzgucG5nLmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcIi9pbWFnZXMvMzgucG5nPzE4M2E3NDg4YjNlZDg3OGM2NzczZDVhZjY0OWFiZGFiXCI7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/src/assets/images/page-img/38.png\n");
/***/ }),
/***/ "./resources/js/src/assets/images/page-img/39.png":
/*!********************************************************!*\
!*** ./resources/js/src/assets/images/page-img/39.png ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = \"/images/39.png?5cc8a9713d5625698c58358f8adfbb00\";//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL2Fzc2V0cy9pbWFnZXMvcGFnZS1pbWcvMzkucG5nPzhmODIiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEiLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvc3JjL2Fzc2V0cy9pbWFnZXMvcGFnZS1pbWcvMzkucG5nLmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcIi9pbWFnZXMvMzkucG5nPzVjYzhhOTcxM2Q1NjI1Njk4YzU4MzU4ZjhhZGZiYjAwXCI7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/src/assets/images/page-img/39.png\n");
/***/ }),
/***/ "./resources/js/src/assets/images/page-img/40.png":
/*!********************************************************!*\
!*** ./resources/js/src/assets/images/page-img/40.png ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = \"/images/40.png?85482df34eda50a42712ff5604e32a2d\";//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL2Fzc2V0cy9pbWFnZXMvcGFnZS1pbWcvNDAucG5nP2Y2YmMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEiLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvc3JjL2Fzc2V0cy9pbWFnZXMvcGFnZS1pbWcvNDAucG5nLmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcIi9pbWFnZXMvNDAucG5nPzg1NDgyZGYzNGVkYTUwYTQyNzEyZmY1NjA0ZTMyYTJkXCI7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/src/assets/images/page-img/40.png\n");
/***/ }),
/***/ "./resources/js/src/assets/images/user/user-01.jpg":
/*!*********************************************************!*\
!*** ./resources/js/src/assets/images/user/user-01.jpg ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = \"/images/user-01.jpg?22e5a82300637450aa1b4f2de5871337\";//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL2Fzc2V0cy9pbWFnZXMvdXNlci91c2VyLTAxLmpwZz82ZTE3Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIiwiZmlsZSI6Ii4vcmVzb3VyY2VzL2pzL3NyYy9hc3NldHMvaW1hZ2VzL3VzZXIvdXNlci0wMS5qcGcuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwiL2ltYWdlcy91c2VyLTAxLmpwZz8yMmU1YTgyMzAwNjM3NDUwYWExYjRmMmRlNTg3MTMzN1wiOyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/src/assets/images/user/user-01.jpg\n");
/***/ }),
/***/ "./resources/js/src/assets/images/user/user-02.jpg":
/*!*********************************************************!*\
!*** ./resources/js/src/assets/images/user/user-02.jpg ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = \"/images/user-02.jpg?db1fcba8d6e6510718cae7307174f939\";//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL2Fzc2V0cy9pbWFnZXMvdXNlci91c2VyLTAyLmpwZz9mNGRlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIiwiZmlsZSI6Ii4vcmVzb3VyY2VzL2pzL3NyYy9hc3NldHMvaW1hZ2VzL3VzZXIvdXNlci0wMi5qcGcuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwiL2ltYWdlcy91c2VyLTAyLmpwZz9kYjFmY2JhOGQ2ZTY1MTA3MThjYWU3MzA3MTc0ZjkzOVwiOyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/src/assets/images/user/user-02.jpg\n");
/***/ }),
/***/ "./resources/js/src/assets/images/user/user-03.jpg":
/*!*********************************************************!*\
!*** ./resources/js/src/assets/images/user/user-03.jpg ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = \"/images/user-03.jpg?a25e92f09c9354a61dbcc1150101a9f5\";//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL2Fzc2V0cy9pbWFnZXMvdXNlci91c2VyLTAzLmpwZz82NTFmIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIiwiZmlsZSI6Ii4vcmVzb3VyY2VzL2pzL3NyYy9hc3NldHMvaW1hZ2VzL3VzZXIvdXNlci0wMy5qcGcuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwiL2ltYWdlcy91c2VyLTAzLmpwZz9hMjVlOTJmMDljOTM1NGE2MWRiY2MxMTUwMTAxYTlmNVwiOyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/src/assets/images/user/user-03.jpg\n");
/***/ }),
/***/ "./resources/js/src/assets/images/user/user-04.jpg":
/*!*********************************************************!*\
!*** ./resources/js/src/assets/images/user/user-04.jpg ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = \"/images/user-04.jpg?ac29a2570bc401ae27a4ce915817eaf5\";//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL2Fzc2V0cy9pbWFnZXMvdXNlci91c2VyLTA0LmpwZz9kZjdmIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIiwiZmlsZSI6Ii4vcmVzb3VyY2VzL2pzL3NyYy9hc3NldHMvaW1hZ2VzL3VzZXIvdXNlci0wNC5qcGcuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwiL2ltYWdlcy91c2VyLTA0LmpwZz9hYzI5YTI1NzBiYzQwMWFlMjdhNGNlOTE1ODE3ZWFmNVwiOyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/src/assets/images/user/user-04.jpg\n");
/***/ }),
/***/ "./resources/js/src/assets/images/user/user-05.jpg":
/*!*********************************************************!*\
!*** ./resources/js/src/assets/images/user/user-05.jpg ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = \"/images/user-05.jpg?1c0efd4bac21364863911f337fcd51cf\";//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL2Fzc2V0cy9pbWFnZXMvdXNlci91c2VyLTA1LmpwZz9mZWMxIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIiwiZmlsZSI6Ii4vcmVzb3VyY2VzL2pzL3NyYy9hc3NldHMvaW1hZ2VzL3VzZXIvdXNlci0wNS5qcGcuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwiL2ltYWdlcy91c2VyLTA1LmpwZz8xYzBlZmQ0YmFjMjEzNjQ4NjM5MTFmMzM3ZmNkNTFjZlwiOyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/src/assets/images/user/user-05.jpg\n");
/***/ }),
/***/ "./resources/js/src/components/core/charts/ApexChart.vue":
/*!***************************************************************!*\
!*** ./resources/js/src/components/core/charts/ApexChart.vue ***!
\***************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _ApexChart_vue_vue_type_template_id_03cd99fc___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ApexChart.vue?vue&type=template&id=03cd99fc& */ \"./resources/js/src/components/core/charts/ApexChart.vue?vue&type=template&id=03cd99fc&\");\n/* harmony import */ var _ApexChart_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ApexChart.vue?vue&type=script&lang=js& */ \"./resources/js/src/components/core/charts/ApexChart.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _ApexChart_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _ApexChart_vue_vue_type_template_id_03cd99fc___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _ApexChart_vue_vue_type_template_id_03cd99fc___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/src/components/core/charts/ApexChart.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL2NvbXBvbmVudHMvY29yZS9jaGFydHMvQXBleENoYXJ0LnZ1ZT8xNzJlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQXdGO0FBQzNCO0FBQ0w7OztBQUd4RDtBQUNzRztBQUN0RyxnQkFBZ0IsMkdBQVU7QUFDMUIsRUFBRSwrRUFBTTtBQUNSLEVBQUUsb0ZBQU07QUFDUixFQUFFLDZGQUFlO0FBQ2pCO0FBQ0E7QUFDQTtBQUNBOztBQUVBOztBQUVBO0FBQ0EsSUFBSSxLQUFVLEVBQUUsWUFpQmY7QUFDRDtBQUNlLGdGIiwiZmlsZSI6Ii4vcmVzb3VyY2VzL2pzL3NyYy9jb21wb25lbnRzL2NvcmUvY2hhcnRzL0FwZXhDaGFydC52dWUuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyByZW5kZXIsIHN0YXRpY1JlbmRlckZucyB9IGZyb20gXCIuL0FwZXhDaGFydC52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9MDNjZDk5ZmMmXCJcbmltcG9ydCBzY3JpcHQgZnJvbSBcIi4vQXBleENoYXJ0LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIlxuZXhwb3J0ICogZnJvbSBcIi4vQXBleENoYXJ0LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIlxuXG5cbi8qIG5vcm1hbGl6ZSBjb21wb25lbnQgKi9cbmltcG9ydCBub3JtYWxpemVyIGZyb20gXCIhLi4vLi4vLi4vLi4vLi4vLi4v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InJlc291cmNlcy9qcy9zcmMvY29tcG9uZW50cy9jb3JlL2NoYXJ0cy9BcGV4Q2hhcnQudnVlXCJcbmV4cG9ydCBkZWZhdWx0IGNvbXBvbmVudC5leHBvcnRzIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/src/components/core/charts/ApexChart.vue\n");
/***/ }),
/***/ "./resources/js/src/components/core/charts/ApexChart.vue?vue&type=script&lang=js&":
/*!****************************************************************************************!*\
!*** ./resources/js/src/components/core/charts/ApexChart.vue?vue&type=script&lang=js& ***!
\****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ApexChart_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ApexChart.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/components/core/charts/ApexChart.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ApexChart_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL2NvbXBvbmVudHMvY29yZS9jaGFydHMvQXBleENoYXJ0LnZ1ZT81MzczIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQSx3Q0FBMk0sQ0FBZ0IscVBBQUcsRUFBQyIsImZpbGUiOiIuL3Jlc291cmNlcy9qcy9zcmMvY29tcG9uZW50cy9jb3JlL2NoYXJ0cy9BcGV4Q2hhcnQudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJi5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBtb2QgZnJvbSBcIi0hLi4vLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2JhYmVsLWxvYWRlci9saWIvaW5kZXguanM/P3JlZi0tNC0wIS4uLy4uLy4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vQXBleENoYXJ0LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIjsgZXhwb3J0IGRlZmF1bHQgbW9kOyBleHBvcnQgKiBmcm9tIFwiLSEuLi8uLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8/cmVmLS00LTAhLi4vLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9BcGV4Q2hhcnQudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/src/components/core/charts/ApexChart.vue?vue&type=script&lang=js&\n");
/***/ }),
/***/ "./resources/js/src/components/core/charts/ApexChart.vue?vue&type=template&id=03cd99fc&":
/*!**********************************************************************************************!*\
!*** ./resources/js/src/components/core/charts/ApexChart.vue?vue&type=template&id=03cd99fc& ***!
\**********************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ApexChart_vue_vue_type_template_id_03cd99fc___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ApexChart.vue?vue&type=template&id=03cd99fc& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/components/core/charts/ApexChart.vue?vue&type=template&id=03cd99fc&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ApexChart_vue_vue_type_template_id_03cd99fc___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ApexChart_vue_vue_type_template_id_03cd99fc___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL2NvbXBvbmVudHMvY29yZS9jaGFydHMvQXBleENoYXJ0LnZ1ZT9iM2EzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQSIsImZpbGUiOiIuL3Jlc291cmNlcy9qcy9zcmMvY29tcG9uZW50cy9jb3JlL2NoYXJ0cy9BcGV4Q2hhcnQudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTAzY2Q5OWZjJi5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCItIS4uLy4uLy4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9sb2FkZXJzL3RlbXBsYXRlTG9hZGVyLmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi4vLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9BcGV4Q2hhcnQudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTAzY2Q5OWZjJlwiIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/src/components/core/charts/ApexChart.vue?vue&type=template&id=03cd99fc&\n");
/***/ }),
/***/ "./resources/js/src/views/Dashboards/Dashboard6.vue":
/*!**********************************************************!*\
!*** ./resources/js/src/views/Dashboards/Dashboard6.vue ***!
\**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Dashboard6_vue_vue_type_template_id_02a54238___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Dashboard6.vue?vue&type=template&id=02a54238& */ \"./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=template&id=02a54238&\");\n/* harmony import */ var _Dashboard6_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dashboard6.vue?vue&type=script&lang=js& */ \"./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _Dashboard6_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _Dashboard6_vue_vue_type_template_id_02a54238___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _Dashboard6_vue_vue_type_template_id_02a54238___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/src/views/Dashboards/Dashboard6.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL3ZpZXdzL0Rhc2hib2FyZHMvRGFzaGJvYXJkNi52dWU/YzBiNSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUF5RjtBQUMzQjtBQUNMOzs7QUFHekQ7QUFDbUc7QUFDbkcsZ0JBQWdCLDJHQUFVO0FBQzFCLEVBQUUsZ0ZBQU07QUFDUixFQUFFLHFGQUFNO0FBQ1IsRUFBRSw4RkFBZTtBQUNqQjtBQUNBO0FBQ0E7QUFDQTs7QUFFQTs7QUFFQTtBQUNBLElBQUksS0FBVSxFQUFFLFlBaUJmO0FBQ0Q7QUFDZSxnRiIsImZpbGUiOiIuL3Jlc291cmNlcy9qcy9zcmMvdmlld3MvRGFzaGJvYXJkcy9EYXNoYm9hcmQ2LnZ1ZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHJlbmRlciwgc3RhdGljUmVuZGVyRm5zIH0gZnJvbSBcIi4vRGFzaGJvYXJkNi52dWU/dnVlJnR5cGU9dGVtcGxhdG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FzaGJvYXJkNi52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9MDJhNTQyMzgmXCIsIGZ1bmN0aW9uICgpIHtcbiAgICAgIGFwaS5yZXJlbmRlcignMDJhNTQyMzgnLCB7XG4gICAgICAgIHJlbmRlcjogcmVuZGVyLFxuICAgICAgICBzdGF0aWNSZW5kZXJGbnM6IHN0YXRpY1JlbmRlckZuc1xuICAgICAgfSlcbiAgICB9KVxuICB9XG59XG5jb21wb25lbnQub3B0aW9ucy5fX2ZpbGUgPSBcInJlc291cmNlcy9qcy9zcmMvdmlld3MvRGFzaGJvYXJkcy9EYXNoYm9hcmQ2LnZ1ZVwiXG5leHBvcnQgZGVmYXVsdCBjb21wb25lbnQuZXhwb3J0cyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/src/views/Dashboards/Dashboard6.vue\n");
/***/ }),
/***/ "./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=script&lang=js&":
/*!***********************************************************************************!*\
!*** ./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=script&lang=js& ***!
\***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Dashboard6_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./Dashboard6.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_D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pack-internal:///./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=script&lang=js&\n");
/***/ }),
/***/ "./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=template&id=02a54238&":
/*!*****************************************************************************************!*\
!*** ./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=template&id=02a54238& ***!
\*****************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Dashboard6_vue_vue_type_template_id_02a54238___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./Dashboard6.vue?vue&type=template&id=02a54238& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=template&id=02a54238&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Dashboard6_vue_vue_type_template_id_02a54238___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Dashboard6_vue_vue_type_template_id_02a54238___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvc3JjL3ZpZXdzL0Rhc2hib2FyZHMvRGFzaGJvYXJkNi52dWU/ZWE5MSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEiLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvc3JjL3ZpZXdzL0Rhc2hib2FyZHMvRGFzaGJvYXJkNi52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9MDJhNTQyMzgmLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi0hLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2xvYWRlcnMvdGVtcGxhdGVMb2FkZXIuanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL0Rhc2hib2FyZDYudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTAyYTU0MjM4JlwiIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/src/views/Dashboards/Dashboard6.vue?vue&type=template&id=02a54238&\n");
/***/ })
}]); | 945.206009 | 146,255 | 0.732538 |
182b08343270c2c1fe40ed326ddf82161e97f276 | 1,366 | js | JavaScript | src/coffee-script.js | andrewhead/atom-for-codescoop-demo | fbbb341931705c889e92d873d477ea371c25a1a9 | [
"MIT"
] | 2 | 2020-07-14T20:23:47.000Z | 2020-08-28T18:08:06.000Z | src/coffee-script.js | andrewhead/atom-for-codescoop-demo | fbbb341931705c889e92d873d477ea371c25a1a9 | [
"MIT"
] | null | null | null | src/coffee-script.js | andrewhead/atom-for-codescoop-demo | fbbb341931705c889e92d873d477ea371c25a1a9 | [
"MIT"
] | 1 | 2020-08-28T18:11:31.000Z | 2020-08-28T18:11:31.000Z | /** @babel */
'use strict'
var crypto = require('crypto')
var path = require('path')
var CoffeeScript = null
exports.shouldCompile = function () {
return true
}
exports.getCachePath = function (sourceCode) {
return path.join(
'coffee',
crypto
.createHash('sha1')
.update(sourceCode, 'utf8')
.digest('hex') + '.js'
)
}
exports.compile = function (sourceCode, filePath) {
if (!CoffeeScript) {
var previousPrepareStackTrace = Error.prepareStackTrace
CoffeeScript = require('coffee-script')
// When it loads, coffee-script reassigns Error.prepareStackTrace. We have
// already reassigned it via the 'source-map-support' module, so we need
// to set it back.
Error.prepareStackTrace = previousPrepareStackTrace
}
if (process.platform === 'win32') {
filePath = 'file:///' + path.resolve(filePath).replace(/\\/g, '/')
}
var output = CoffeeScript.compile(sourceCode, {
filename: filePath,
sourceFiles: [filePath],
inlineMap: true,
transpile: {
plugins: [
"@babel/plugin-transform-for-of"
]
}
})
var result = /(\s*\bfor\b.*\bof\b.*\s)/.exec(output)
if (result)
console.log(filePath, result[1])
// Strip sourceURL from output so there wouldn't be duplicate entries
// in devtools.
return output.replace(/\/\/# sourceURL=[^'"\n]+\s*$/, '')
}
| 24.392857 | 78 | 0.639824 |
182bd3abfb00d3359ead9257aad2ba5ba794f1ca | 3,572 | js | JavaScript | src/utils/helpers.js | DalerAsrorov/componofy | 4216a102ce84de9b4c137372f850056dde78d626 | [
"Apache-2.0"
] | 20 | 2018-01-01T19:38:41.000Z | 2022-03-24T20:37:40.000Z | src/utils/helpers.js | DalerAsrorov/componofy | 4216a102ce84de9b4c137372f850056dde78d626 | [
"Apache-2.0"
] | 22 | 2017-12-30T21:43:54.000Z | 2022-03-08T22:43:16.000Z | src/utils/helpers.js | DalerAsrorov/componofy | 4216a102ce84de9b4c137372f850056dde78d626 | [
"Apache-2.0"
] | 2 | 2018-08-08T14:17:52.000Z | 2018-08-30T03:50:31.000Z | import * as R from 'ramda';
const HOST_URL = window.location.origin;
// eslint-disable-next-line no-unused-vars
const DEV_SERVER_URL = 'http://localhost:3001';
export const replaceTo = (path) => {
window.location.replace(`${HOST_URL}${path}`);
};
export const formatTracks = (tracks) => {
return tracks.map((trackObject) => {
const { track, ...rest } = trackObject;
return {
...track,
...rest,
};
});
};
export const removeDuplicates = R.curry((data, prop) => {
return R.pipe(
R.groupBy(R.prop(prop)),
R.values,
R.pipe(R.map(R.take(1)), R.flatten)
)(data);
});
export const swapKeysAndValues = (map, fn = toString) => {
return R.zipObj(R.values(map), R.map(fn, R.keys(map)));
};
export const filterSearchPlaylist = (searchTerm, playlists) => {
const stringContains = (mainStr, compareToStr) =>
R.toUpper(mainStr).indexOf(R.toUpper(compareToStr)) > -1;
const containsInfo = (playlist) => {
if (stringContains(playlist.name, searchTerm)) {
return true;
}
return !!R.find(
R.propSatisfies((name) => stringContains(name, searchTerm), 'name')
)(playlist.tracks.list);
};
return R.filter(containsInfo, playlists);
};
export const formatPlaylistsData = (playlistsMap, tracksMap) => {
return R.pipe(
R.toPairs,
R.map(([playlistKey, playlistData]) => {
let { list, ...restTrackProps } = playlistData.tracks;
list = playlistData.tracks.list.map((trackID) => tracksMap[trackID]);
return {
...playlistData,
id: playlistKey,
tracks: {
list,
...restTrackProps,
},
};
})
)(playlistsMap);
};
export const isDomElementInFocus = (domElement) =>
domElement === document.activeElement;
export const safeString = (str = '') => str;
export const safeBool = (bool = true) => bool;
export const getAllPlaylistsTrackIds = (playlistsMap = {}) => {
return R.pipe(
R.values,
R.map(R.path(['tracks', 'list'])),
R.flatten,
// filter undefined and null values
R.filter((item) => item)
)(playlistsMap);
};
export const mergeTuples = (accum, tuple) => {
let playlistId = tuple[1];
let playlistTrackIds = tuple[0];
let newTuple = playlistTrackIds.map((trackId) => [trackId, playlistId]);
accum = accum.concat(newTuple);
return accum;
};
// returns a tuple with [trackId, playlistId]
export const getAllPlaylistTracksTuple = (playlistMap = {}) => {
const getTrackPlaylistTuple = (playlistObject) => [
playlistObject.tracks.list,
playlistObject.id,
];
return R.pipe(
R.values,
R.map(getTrackPlaylistTuple),
R.reduce(mergeTuples, [])
)(playlistMap);
};
export const getAllPlaylistTracksFromMap = (
playlistsState,
shouldAssignPlaylist = false
) => {
if (R.isEmpty(playlistsState.entities)) {
return;
}
const {
entities: { playlists: playlistMap },
} = playlistsState;
const {
entities: { tracks: tracksMap },
} = playlistsState;
const trackPlaylistTuples = getAllPlaylistTracksTuple(playlistMap);
const allAddedTracks = trackPlaylistTuples.map((tuple) => {
let track = tracksMap[tuple[0]];
if (shouldAssignPlaylist) {
track.playlist = playlistMap[tuple[1]];
}
return track;
});
return allAddedTracks;
};
export const getExpandStatusText = (hasOpenPlaylist = false) => {
return hasOpenPlaylist ? 'Collapse' : 'Expand';
};
export const toTop = () => {
document.body.scrollTop = 0; // For Safari
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
};
| 24.29932 | 78 | 0.645297 |
182bf31b1d864eeaca513ccb341ce0329f150be7 | 172 | js | JavaScript | packages/backtop/index.js | iGuru-T/element | 2e857103e6547f959dfda8499ebbcfc9663ff7e5 | [
"MIT"
] | null | null | null | packages/backtop/index.js | iGuru-T/element | 2e857103e6547f959dfda8499ebbcfc9663ff7e5 | [
"MIT"
] | null | null | null | packages/backtop/index.js | iGuru-T/element | 2e857103e6547f959dfda8499ebbcfc9663ff7e5 | [
"MIT"
] | null | null | null | import Backtop from './src/main';
/* istanbul ignore next */
Backtop.install = function(Vue) {
Vue.component(Backtop.name, Backtop);
};
export default Backtop;
| 19.111111 | 40 | 0.680233 |
182cc9fa7277c13ec5a68988ae756e8f70cfccb3 | 418 | js | JavaScript | service/apis/globalConfig.js | LianjiaTech/ke-ve | 77bbbf7196f47a676557fb9b339ac9f39358095c | [
"MIT"
] | 62 | 2020-01-15T02:23:55.000Z | 2022-02-10T07:45:30.000Z | service/apis/globalConfig.js | LianjiaTech/ke-ve | 77bbbf7196f47a676557fb9b339ac9f39358095c | [
"MIT"
] | 1 | 2021-12-03T10:42:02.000Z | 2021-12-03T10:42:02.000Z | service/apis/globalConfig.js | LianjiaTech/ke-ve | 77bbbf7196f47a676557fb9b339ac9f39358095c | [
"MIT"
] | 16 | 2020-01-15T02:32:19.000Z | 2021-05-25T03:31:49.000Z | // 一些全局配置 终端/编辑器
const express = require('express');
const globalConfigModel = require('../../lib/model/config');
var router = express.Router();
router.get('/detail', function(req, res) {
const data = globalConfigModel.getAll();
res.success({ data });
});
router.post('/update', function(req, res) {
globalConfigModel.update(req.body);
res.success({ code: 0, msg: '配置修改成功' });
});
module.exports = router;
| 23.222222 | 60 | 0.669856 |
182d27d4c2bf3da84839a5a505f38662285ffaa9 | 327 | js | JavaScript | app/templates/src/app/components/webDevTec/_webDevTec.service.js | viniciusdacal/generator-angular-rockr | 4f0ff532113cbb91bafb12f2ee8dc5ee3ec9605a | [
"MIT"
] | null | null | null | app/templates/src/app/components/webDevTec/_webDevTec.service.js | viniciusdacal/generator-angular-rockr | 4f0ff532113cbb91bafb12f2ee8dc5ee3ec9605a | [
"MIT"
] | null | null | null | app/templates/src/app/components/webDevTec/_webDevTec.service.js | viniciusdacal/generator-angular-rockr | 4f0ff532113cbb91bafb12f2ee8dc5ee3ec9605a | [
"MIT"
] | null | null | null | (function () {
'use strict';
angular
.module('<%- appName %>')
.service('webDevTec', webDevTec);
/** @ngInject */
function webDevTec() {
var data = <%- technologies %>;
this.getTec = getTec;
function getTec() {
return data;
}
}
})();
| 16.35 | 45 | 0.446483 |
182d4839a6c7a50253f93af3993cb78e63837659 | 317 | js | JavaScript | front/reducers/utils.js | ValentinAlexandrovGeorgiev/react-redux-node-boilerplate | 05f904161974e13cb67bbf5d25c13fa83bad768d | [
"MIT"
] | null | null | null | front/reducers/utils.js | ValentinAlexandrovGeorgiev/react-redux-node-boilerplate | 05f904161974e13cb67bbf5d25c13fa83bad768d | [
"MIT"
] | 9 | 2020-02-12T00:13:02.000Z | 2022-02-10T06:58:36.000Z | front/reducers/utils.js | ValentinAlexandrovGeorgiev/react-redux-node-boilerplate | 05f904161974e13cb67bbf5d25c13fa83bad768d | [
"MIT"
] | 4 | 2020-07-23T04:56:53.000Z | 2021-02-17T12:01:05.000Z | import {
SET_LANGUAGE
} from 'actions/const'
module.exports = function (state = {}, action) {
let nextState = Object.assign({}, state)
switch (action.type) {
case SET_LANGUAGE: {
return {
...nextState,
lang: action.payload
}
}
default: {
return state
}
}
}
| 15.85 | 48 | 0.55836 |
182d720e17ef4edb4bf37abf7227280f794a18ab | 42,410 | js | JavaScript | static/js/135.launcher-language.5791826f.chunk.js | dashboarder/dashboarder.github.io | 7c887f07cf12c2e1b02eceaccaa979a95477d6f6 | [
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 1 | 2021-08-19T12:06:21.000Z | 2021-08-19T12:06:21.000Z | static/js/135.launcher-language.5791826f.chunk.js | dashboarder/dashboarder.github.io | 7c887f07cf12c2e1b02eceaccaa979a95477d6f6 | [
"Apache-2.0",
"CC0-1.0",
"MIT"
] | null | null | null | static/js/135.launcher-language.5791826f.chunk.js | dashboarder/dashboarder.github.io | 7c887f07cf12c2e1b02eceaccaa979a95477d6f6 | [
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 1 | 2021-08-19T12:06:46.000Z | 2021-08-19T12:06:46.000Z | (this.webpackChunklauncher=this.webpackChunklauncher||[]).push([[4283],{50968:e=>{"use strict";e.exports=JSON.parse('{"domain":"messages","locale_data":{"messages":{"":{"domain":"messages"},"Failed to launch %1$s":["Error en executar %1$s"],"Play Minecraft Dungeons in the Minecraft Launcher":["Juga al Minecraft Dungeons al llan\xe7ador del Minecraft"],"Download the Minecraft Launcher to play Minecraft Dungeons":["Descarrega el llan\xe7ador del Minecraft per jugar al Minecraft Dungeons"],"Information tooltip":["Nota informativa"],"Minecraft Dungeons can only be played from the Minecraft Launcher. Please switch launchers to continue playing the game.":["Nom\xe9s pots jugar al Minecraft Dungeons des del llan\xe7ador del Minecraft. Per favor, canvia de llan\xe7ador per continuar jugant."],"Minecraft Dungeons can only be played from the Minecraft Launcher. Please download the Launcher to continue playing the game.":["Nom\xe9s pots jugar al Minecraft Dungeons des del llan\xe7ador del Minecraft. Per favor, descarrega el llan\xe7ador per continuar jugant."],"Open the Minecraft Launcher":["Obri el llan\xe7ador del Minecraft"],"Open launcher":["Obri el llan\xe7ador"],"Download the Minecraft Launcher":["Descarrega el llan\xe7ador del Minecraft"],"Download":["Descarrega"],"Contact support":["Suport"],"Starting %1$s, this launcher isn\u2019t supported anymore. To continue playing Minecraft Dungeons, please %2$sdownload the Minecraft Launcher%3$s.":["A partir del %1$s, este llan\xe7ador perdr\xe0 el suport. Per continuar jugant al Minecraft Dungeons %2$sdescarrega\'t el llan\xe7ador del Minecraft%3$s."],"Oh no! Something went wrong, and we couldn\u2019t connect to the Minecraft services.":["Oh no! Alguna cosa ha anat malament i no hem pogut connectar-nos als serveis del Minecraft."],"Try again":["Torna-ho a provar"],"Ooops... just one more thing!":["Vaja... nom\xe9s una coseta m\xe9s!"],"Before you can play Minecraft: Java Edition, it\u2019s time to get creative and pick your own Minecraft profile name on the web. It only takes a minute!":["Abans de jugar al Minecraft: Java Edition, \xe9s el moment de ser creatiu i triar el teu nom del perfil del Minecraft a la web. Nom\xe9s ser\xe0 un minut!"],"Dismiss dialog":["Tanca el di\xe0leg"],"Close":["Tanca"],"Create your Minecraft profile on the web":["Crea el teu perfil del Minecraft a la web"],"Create profile":["Crea un perfil"],"Successfully paused download":["La desc\xe0rrega s\'ha pausat correctament"],"Unable to pause download":["No s\'ha pogut pausar la desc\xe0rrega"],"Successfully resumed download":["La desc\xe0rrega s\'ha repr\xe9s correctament"],"Unable to resume download":["No s\'ha pogut reprendre la desc\xe0rrega"],"Successfully canceled download":["La desc\xe0rrega s\'ha cancel\xb7lat correctament"],"Unable to cancel download":["No s\'ha pogut cancel\xb7lar la desc\xe0rrega"],"Frequently asked questions":["Preguntes m\xe9s freq\xfcents"],"Question":["Pregunta"],"Answer":["Resposta"],"Dismiss":["Descarta"],"Read more":["Llig m\xe9s"],"Open article":["Obri l\'article"],"Remove %1$s":["Elimina %1$s"],"Log into %1$s":["Inicia la sessi\xf3 com a %1$s"],"Migrate %1$s to a Microsoft account":["Migra %1$s a un compte de Microsoft"],"Migrate":["Migra"],"Log out and remove account details from the Minecraft Launcher":["Tanca la sessi\xf3 i elimina els detalls del compte del llan\xe7ador del Minecraft"],"Add account":["Afig un compte"],"Microsoft login":["Inicia la sessi\xf3 amb Microsoft"],"Mojang login":["Inicia la sessi\xf3 amb Mojang"],"Create a new Microsoft account":["Crea un nou compte de Microsoft"],"Go back":["Arrere"],"We have not started migrating to Microsoft accounts yet. We\u2019ll let you know when your account can be migrated. %1$sCheck out the FAQ%2$s":["Encara no hem comen\xe7at a migrar als comptes de Microsoft. T\'avisarem quan pugues fer-ho. %1$sMira les preguntes m\xe9s freq\xfcents%2$s"],"We\u2019re gradually moving from Mojang accounts to Microsoft accounts.%1$s%2$sCheck out the Account Migration FAQ%3$s":["Estem canviant gradualment de comptes de Mojang a comptes de Microsoft.%1$s%2$sMira les preguntes m\xe9s freq\xfcents sobre migraci\xf3 de comptes%3$s"],"Still have a Mojang account? You\u2019ll need to migrate to a Microsoft account to log in. %1$sGet started%2$s":["Encara amb un compte de Mojang? Haur\xe0s de migrar-lo a un compte de Microsoft per iniciar la sessi\xf3. %1$sComen\xe7a%2$s"],"Minecraft has moved from Mojang accounts to Microsoft accounts. If you still have a Mojang account, please %1$sfollow these steps%2$s.":["El Minecraft s\'ha mogut del compte de Mojang al compte de Microsoft. Si encara tens un compte de Mojang, %1$sseguix estos passos%2$s."],"Mojang Account (Email)":["Compte de Mojang (correu electr\xf2nic)"],"Email tooltip":["Informaci\xf3 sobre els correus electr\xf2nics"],"Email or username":["Correu electr\xf2nic o nom d\'usuari"],"Read more about how to log into the Minecraft Launcher":["Llig m\xe9s sobre com iniciar la sessi\xf3 al llan\xe7ador del Minecraft"],"Username field":["Camp de nom d\'usuari"],"Password":["Contrasenya"],"Password field":["Camp de contrasenya"],"Keep me logged in":["Deixa la sessi\xf3 iniciada"],"Forgot password?":["Has oblidat la contrasenya?"],"Log in":["Inicia la sessi\xf3"],"If your account was created after November 2012 or if it has been migrated, use your email. Otherwise, use your username.":["Si et creares el compte despr\xe9s de novembre de 2012 o si ja l\'has migrat, utilitza el teu correu. Si no, utilitza el teu nom d\'usuari."],"Please enter email/username":["Introdu\xefx el teu correu electr\xf2nic/nom d\'usuari"],"Please enter password":["Introdu\xefx la teua contrasenya"],"Loading...":["Carregant..."],"Our ability to support macOS 10.9 is coming to an end later in 2021. Please consider updating your operating system to continue to get updates.":["El suport de macOS 10.9 acabar\xe0 este any 2021. Per favor, actualitza el sistema operatiu per continuar rebent actualitzacions."],"News":["Novetats"],"Settings":["Configuraci\xf3"],"Account migration FAQ":["FAQs sobre migraci\xf3 de comptes"],"Unable to fetch FAQ":["No s\'han pogut obtenir les FAQs"],"Loading FAQ...":["Carregant les FAQs..."],"Could not find FAQ":["No s\'han trobat les preguntes freq\xfcents"],"Ready to move to a Microsoft account?":["Est\xe0s preparat per canviar a un compte de Microsoft?"],"As you %1$smight have heard%2$s, we\u2019re migrating all Mojang accounts to Microsoft accounts to increase account security and player safety.":["Com %1$sja sabr\xe0s%2$s, estem migrant els comptes de Mojang a comptes de Microsoft per augmentar la seguretat tant dels jugadors com dels propis comptes."],"Well, today is your lucky day! You can now migrate to a Microsoft account, giving you access to improved account security, a single account for all Minecraft games, and a special cape. %1$sCheck out the FAQ for more information%2$s, or get started right away \u2014 it only takes a couple of minutes.":["Hui \xe9s el teu dia de sort! Ja pots migrar a un compte de Microsoft, accedint a una millor seguretat, un \xfanic compte per a tots els jocs del Minecraft i una capa especial. %1$sMira les preguntes m\xe9s freq\xfcents per a m\xe9s informaci\xf3%2$s, o comen\xe7a la migraci\xf3 - nom\xe9s seran uns minuts."],"Get started":["Comen\xe7a"],"Migrate your Mojang account to a Microsoft Account to get improved account security and claim your special cape.":["Migra el teu compte de Mojang a un compte de Microsoft per millorar-ne la seguretat i reclamar la teua capa."],"Starting %1$s, you won\u2019t be able to log in with your Mojang account. Migrate to a Microsoft account to continue playing.":["A partir del %1$s ja no podr\xe0s iniciar la sessi\xf3 amb el teu compte de Mojang. Migra a un compte de Microsoft per continuar jugant."],"Read more about %1$s on the web":["Llig m\xe9s sobre %1$s a la web"],"Read more about %1$s":["Llig m\xe9s sobre %1$s"],"Owned":["Comprat"],"Unable to fetch patch notes":["No s\'han pogut carregar les notes d\'actualitzaci\xf3"],"Downloading":["Descarregant"],"Idle":["Absent"],"Paused":["En pausa"],"Preparing":["Preparant"],"Finalizing":["Finalitzant"],"Checking dependencies":["Comprovant les depend\xe8ncies"],"Succeeded":["Completat"],"Error":["Error"],"Selected":["Seleccionat"],"Help":["Ajuda"],"Official Mojang support":["Suport oficial de Mojang"],"How do I play Minecraft?":["Com es juga al Minecraft?"],"FAQ/Support Center":["Preguntes freq\xfcents i suport"],"Mojang Support on Twitter":["Suport de Mojang al Twitter"],"Report a Launcher bug":["Informa d\'un error del llan\xe7ador"],"Give feedback: Launcher":["Opina: llan\xe7ador"],"Give feedback: Minecraft Dungeons":["Opina: Minecraft Dungeons"],"Give feedback: Minecraft: Java Edition Snapshots":["Opina: Versions en proves del Minecraft: Java Edition"],"Social media":["Xarxes socials"],"Community driven sites":["P\xe0gines web gestionades per la comunitat"],"Mojang account":["Compte de Mojang"],"Microsoft account":["Compte de Microsoft"],"Manage account":["Gestiona el compte"],"External link":["Enlla\xe7 extern"],"Manage Minecraft: Java Edition profile":["Gestiona el perfil del Minecraft: Java Edition"],"Log out":["Tanca la sessi\xf3"],"Choose account":["Tria un compte"],"View all accounts":["Veure tots els comptes"],"This is an older game version that doesn\u2019t support the latest player safety features.":["Esta \xe9s una versi\xf3 antiga del joc que no suporta les \xfaltimes mesures de seguretat."],"This installation has been modified and might not support the latest player safety features.":["Esta instal\xb7laci\xf3 ha sigut modificada i potser no suporte les \xfaltimes mesures de seguretat."],"Failed to initialize account. Please try again later.":["No s\'ha pogut inicialitzar el compte. Per favor, prova-ho m\xe9s tard."],"Failed to reconnect. Please try again later.":["No s\'ha pogut tornar a connectar. Per favor, prova-ho m\xe9s tard."],"Unable to log out. Please try again.":["No s\'ha pogut tancar la sessi\xf3. Per favor, torna a internar-ho."],"Successfully logged out":["Has tancat la sessi\xf3"],"Successfully reconnected":["S\'ha tornat a connectar amb \xe8xit"],"Successfully logged in":["Has iniciat la sessi\xf3 correctament"],"Successfully switched account":["Has canviat de compte correctament"],"What\u2019s new in the Launcher?":["Qu\xe8 hi ha de nou al llan\xe7ador?"],"%1$s version":["versi\xf3 %1$s"],"Play":["Juga"],"DLC":["DLC"],"FAQ":["FAQ"],"Installation":["Instal\xb7laci\xf3"],"Patch notes":["Notes d\'actualitzaci\xf3"],"Repair":["Repara"],"Update":["Actualitzaci\xf3"],"Install":["Instal\xb7la"],"Required: %1$s (%2$s available)":["Requerit: %1$s (%2$s disponible)"],"Successfully installed Minecraft Dungeons":["El Minecraft Dungeons s\'ha instal\xb7lat correctament"],"Minecraft Dungeons requires additional disk space to install.":["Minecraft Dungeons requerix espai addicional al disc per a instal\xb7lar-se."],"Bundle":["Paquet"],"Minecraft Dungeons isn\u2019t available on %1$s":["El Minecraft Dungeons no est\xe0 disponible en %1$s"],"Buy %1$s":["Compra %1$s"],"Buy now":["Compra\'l ara"],"You own this DLC, but can\u2019t play it as Minecraft Dungeons isn\u2019t available on %1$s":["Tens este DLC per\xf2 no pots jugar-hi, ja que el Minecraft Dungeons no est\xe0 disponible en %1$s"],"Search":["Busca"],"DLC or bundle name":["DLC o nom del paquet"],"Content":["Contingut"],"Special package with multiple pieces of content grouped":["Paquet especial amb m\xfaltiples elements de contingut"],"Bundled content":["Contingut empaquetat"],"Individual pieces of extra content":["Peces individuals de contingut addicional"],"Downloadable content":["Contingut descarregable"],"DLCs":["DLCs"],"Account":["Compte"],"Content you have already purchased":["Contingut que ja has comprat"],"Owned content":["El meu contingut"],"Show my DLCs":["Mostra els meus DLCs"],"Unable to fetch DLCs":["No s\'han pogut carregar els DLCs"],"No matching DLCs or bundles found":["No s\'han trobat DLCs o paquets coincidents"],"No DLCs or bundles matched your search":["No hi ha DLCs o paquets que coincidisquen amb la busca"],"Uninstall %1$s":["Desinstal\xb7la %1$s"],"Are you sure you want to uninstall Minecraft Dungeons? This action will remove the game from your system but keep the Launcher installed. You can choose to erase the save data or keep it to continue playing with your characters in the future.":["Est\xe0s segur que vols desinstal\xb7lar el Minecraft Dungeons? Aix\xf2 eliminar\xe0 el joc del teu sistema, per\xf2 mantindr\xe0 el llan\xe7ador instal\xb7lat. Pots triar esborrar les dades guardades o conservar-les per continuar jugant amb els teus personatges en el futur."],"Erase local saved data for \\"%1$s\\"":["Esborra les dades locals guardades per \\"%1$s\\""],"Cancel":["Cancel\xb7la"],"Uninstall":["Desinstal\xb7la"],"Buy %1$s at minecraft.net":["Compra %1$s a minecraft.net"],"Buy %1$s to get your adventure started":["Compra %1$s perqu\xe8 comence la teua aventura"],"Go to %1$s to buy %2$s.":["Ves a %1$s per a comprar %2$s."],"%1$s installation":["%1$s instal\xb7laci\xf3"],"Repair installation":["Repara la instal\xb7laci\xf3"],"Want to give feedback? Head over to our %1$sfeedback website%2$s":["Vols donar-nos la teua opini\xf3? Deixa\'ns els teus comentaris a %1$sla nostra web%2$s"],"You can find more patch notes on %1$shelp.minecraft.net%2$s":["Pots trobar m\xe9s notes de l\'actualitzaci\xf3 a %1$shelp.minecraft.net%2$s"],"Failed to fetch patch notes":["Error en carregar les notes d\'actualitzaci\xf3"],"Please check if you are connected to the internet and try again. If you are connected and still can\u2019t see the patch notes, we might have technical difficulties and will be back online soon.":["Per favor, comprova que tens connexi\xf3 a internet i prova-ho de nou. Si est\xe0s connectat i encara no pots vore les notes d\'actualitzaci\xf3, potser tenim dificultats t\xe8cniques i prompte estar\xe0 disponible de nou."],"Couldn\u2019t find patch notes":["No s\'han trobat notes d\'actualitzaci\xf3"],"Switch to %1$s to play %2$s":["Canvia a %1$s per a jugar a %2$s"],"Switch to <strong>%1$s</strong> to play Minecraft Dungeons.":["Canvia a <strong>%1$s</strong> per a jugar al Minecraft Dungeons."],"Change account":["Canvia el compte"],"Hero image for %1$s":["Imatge d\'heroi per a %1$s"],"Logotype for %1$s":["Logotip per a %1$s"],"Report a bug":["Informa d\'un error"],"You are about to install:":["Est\xe0s a punt d\'instal\xb7lar:"],"Game size:":["Mida del joc:"],"Required disk space:":["Espai de disc necessari:"],"(%1$s available)":["(%1$s disponible)"],"Error icon":["Icona d\'error"],"Install location":["Ubicaci\xf3 de la instal\xb7laci\xf3"],"Browse":["Examina"],"Cancel install":["Cancel\xb7la la instal\xb7laci\xf3"],"Whoops!":["Ups!"],"Sorry, something went wrong connecting to our servers. Please try again later, and if the error persists, you can report a bug %1$shere%2$s":["Ho sentim, alguna cosa ha anat malament en connectar amb els nostres servidors. Per favor, prova-ho m\xe9s tard, i si l\'error persistix, pots reportar-ho %1$sac\xed%2$s"],"Not available on %1$s":["No disponible a %1$s"],"<strong>Where is the play button!?</strong> Minecraft Dungeons isn\u2019t available on Mac and Linux. You can play the game on PC, Nintendo Switch, PlayStation 4, Xbox One, and Xbox Game Pass.":["<strong>On est\xe0 el bot\xf3 de jugar!?</strong> El Minecraft Dungeons no est\xe0 disponible per a Mac o Linux. Pots jugar-hi a l\'ordinador, Nintendo Switch, PlayStation 4, Xbox One i Xbox Game Pass."],"<strong>Where is the buy button!?</strong> Minecraft Dungeons isn\u2019t available on Mac and Linux. You can play the game on PC, Nintendo Switch, PlayStation 4, Xbox One, and Xbox Game Pass.":["<strong>On est\xe0 el bot\xf3 de comprar!?</strong> El Minecraft Dungeons no est\xe0 disponible per a Mac o Linux. Pots jugar-hi a l\'ordinador, Nintendo Switch, PlayStation 4, Xbox One i Xbox Game Pass."],"<strong>Where is the play button!?</strong> Minecraft Dungeons isn\u2019t available on Linux and Mac. You can play the game on PC, Nintendo Switch, PlayStation 4, Xbox One, and Xbox Game Pass.":["<strong>On est\xe0 el bot\xf3 de jugar!?</strong> El Minecraft Dungeons no est\xe0 disponible per a Linux o Mac. Pots jugar-hi a l\'ordinador, Nintendo Switch, PlayStation 4, Xbox One i Xbox Game Pass."],"<strong>Where is the buy button!?</strong> Minecraft Dungeons isn\u2019t available on Linux and Mac. You can play the game on PC, Nintendo Switch, PlayStation 4, Xbox One, and Xbox Game Pass.":["<strong>On est\xe0 el bot\xf3 de comprar!?</strong> El Minecraft Dungeons no est\xe0 disponible per a Linux o Mac. Pots jugar-hi a l\'ordinador, Nintendo Switch, PlayStation 4, Xbox One i Xbox Game Pass."],"Learn more about %1$s":["M\xe9s informaci\xf3 sobre %1$s"],"Learn more":["Llig-ne m\xe9s"],"Fight your way through an all-new action-adventure game, inspired by classic dungeon crawlers and set in the Minecraft universe!":["Obri\'t cam\xed a trav\xe9s d\'un nou joc d\'acci\xf3 i aventura, inspirat en els jocs cl\xe0ssics de masmorres i ambientat en l\'univers del Minecraft!"],"<strong>Have you already purchased Minecraft Dungeons and can\u2019t see the play button?</strong> If you have bought the game on the Microsoft Store, you have to launch the game from there.":["<strong>Ja t\'has comprat el Minecraft Dungeons i no veus el bot\xf3 de jugar?</strong> Si te l\'has comprat des de la botiga de Microsoft, has de llan\xe7ar el joc des d\'all\xed."],"Launch Minecraft Dungeons from %1$s":["Executa el Minecraft Dungeons des de %1$s"],"Installations":["Instal\xb7lacions"],"Skins":["Aspectes"],"Play demo":["Juga la demostraci\xf3"],"Play offline":["Juga sense connexi\xf3"],"Unable to delete installation":["No s\'ha pogut eliminar la instal\xb7laci\xf3"],"Unable to duplicate installation":["No s\'ha pogut duplicar la instal\xb7laci\xf3"],"Unable to edit installation":["No s\'ha pogut editar la instal\xb7laci\xf3"],"Unable to create installation":["No s\'ha pogut crear la instal\xb7laci\xf3"],"Successfully created installation":["S\'ha creat la instal\xb7laci\xf3 correctament"],"Successfully updated installation":["S\'ha actualitzat la instal\xb7laci\xf3 correctament"],"Successfully duplicated installation":["S\'ha duplicat la instal\xb7laci\xf3 correctament"],"Successfully deleted installation":["S\'ha eliminat la instal\xb7laci\xf3 correctament"],"Latest release":["\xdaltima versi\xf3"],"Latest snapshot":["\xdaltima versi\xf3 en proves"],"unnamed installation":["instal\xb7laci\xf3 sense nom"],"The game is already running in this game directory":["El joc ja s\'est\xe0 executant en este directori"],"Starting it again may cause malfunction or corrupt your saved worlds. To solve this, create a new installation in a separate game directory.":["Tornar a iniciar-ho podria causar errors de funcionament o danyar els teus mons. Per solucionar-ho, crea una nova instal\xb7laci\xf3 en un directori de joc diferent."],"Already joined the game as this user":["Ja t\'has unit al joc amb este usuari"],"Please note that you can only join a world or server once per user. Your first session will not be saved if you continue.":["Nom\xe9s pots unir-te a un m\xf3n o servidor una vegada per usuari. La teua primera sessi\xf3 no es guardar\xe0 si continues."],"We cannot take responsibility for any issues if you choose to start another game. Would you like to continue anyway?":["No ens fem responsables dels problemes que puguen sorgir si decidixes comen\xe7ar un altre joc. Vols continuar igualment?"],"Start anyway":["Inicia\'l igualment"],"You are about to play a version of Minecraft: Java Edition that does not support the latest player safety features.":["Est\xe0s a punt de jugar a una versi\xf3 del Minecraft: Java Edition que no suporta les \xfaltimes mesures de seguretat."],"You are about to play a Minecraft: Java Edition installation that has been modified. We can\u2019t guarantee the game will support the latest player safety features.":["Est\xe0s a punt de jugar amb una instal\xb7laci\xf3 del Minecraft: Java Edition modificada. No podem garantir que el joc suporte les \xfaltimes mesures de seguretat."],"To access these features, play a more recent version of Minecraft: Java Edition. %1$sRead more about player safety features%2$s":["Per accedir a estes funcions, juga a una versi\xf3 del Minecraft: Java Edition m\xe9s recent. %1$sLlig m\xe9s sobre les funcions per a la seguretat del jugador%2$s"],"To access these features, play a more recent version of Minecraft: Java Edition without mods. %1$sRead more about player safety features%2$s":["Per accedir a estes funcions, juga a una versi\xf3 del Minecraft: Java Edition m\xe9s recent sense mods. %1$sLlig m\xe9s sobre les funcions per a la seguretat del jugador%2$s"],"I understand the risks. Don\u2019t warn me again about this installation.":["Entenc els riscos. No em tornes a advertir sobre aquesta instal\xb7laci\xf3."],"Proceed":["Continua"],"Sorry, unable to start Minecraft. Please check your configuration.":["Ho lamentem, no s\'ha pogut iniciar el Minecraft. Comprova la teua configuraci\xf3."],"Sorry, unable to start Minecraft.":["Ho lamentem, no s\'ha pogut iniciar el Minecraft."],"Unable to get details":["No s\'han pogut obtindre els detalls"],"Latest played":["Jugat per \xfaltima vegada"],"Name":["Nom"],"Search...":["Busca..."],"Search for installation":["Busca instal\xb7laci\xf3"],"Sort by":["Ordena per"],"Versions":["Versions"],"Release versions":["Versions estrenades"],"Releases":["Estrenades"],"Run snapshot versions in a separate game directory to avoid corrupting your worlds.":["Juga les versions en proves en un directori de joc diferent per evitar corrompre els teus mons."],"Snapshot versions":["Versions en proves"],"Snapshots":["En proves"],"Modded installations":["Instal\xb7lacions amb mods"],"Modded":["Amb mods"],"Reset":["Reinicia"],"Game directory":["Directori de joc"],"Use default directory":["Utilitza el directori predeterminat"],"Some mods might require the installation to be located in the .minecraft folder. To use the .minecraft game directory,":["Potser alguns mods necessiten ser instal\xb7lats per ubicar-los a la carpeta .minecraft. Per utilitzar este directori,"],"Set .minecraft as the game directory for this installation":["Fes .minecraft el directori per a esta instal\xb7laci\xf3"],"click here.":["clica ac\xed."],"Resolution":["Resoluci\xf3"],"Minimum resolution is 300x260.":["La resoluci\xf3 m\xednima \xe9s de 300x260."],"Be careful, changing these options may cause the installation to malfunction.":["Ves amb compte: canviar estes opcions pot provocar un mal funcionament en la instal\xb7laci\xf3."],"Less options":["Menys opcions"],"More options":["M\xe9s opcions"],"Java executable":["Executable de Java"],"Use bundled Java runtime":["Utilitza la versi\xf3 de Java inclosa"],"JVM Arguments":["Arguments JVM"],"Create":["Crea"],"Save":["Guarda"],"Installation icon":["Icona d\'instal\xb7laci\xf3"],"auto":["autom\xe0tica"],"Resolution dropdown":["Llistat de resolucions"],"width":["ampl\xe0ria"],"height":["al\xe7ada"],"Icons must be 128x128 pixel PNG files.":["Les icones han de ser arxius PNG de 128x128 p\xedxels."],"Browse for an icon":["Busca una icona"],"Version":["Versi\xf3"],"Server":["Servidor"],"Version is required":["Selecciona una versi\xf3"],"Locate game directory":["Ubica el directori del joc"],"more options":["m\xe9s opcions"],"Edit":["Edita"],"Duplicate":["Duplica"],"Delete":["Elimina"],"Are you sure you want to delete?":["Est\xe0s segur que vols eliminar-ho?"],"Edit installation":["Edita la instal\xb7laci\xf3"],"result available":["resultat disponible"],"results available":["resultats disponibles"],"New installation":["Instal\xb7laci\xf3 nova"],"No result":["Cap resultat"],"Found no installations matching your search":["No s\'han trobat instal\xb7lacions que coincidisquen amb la teua busca"],"Create new installation":["Crea una nova instal\xb7laci\xf3"],"Report bugs here:":["Informa d\'errors ac\xed:"],"%1$sMinecraft issue tracker%2$s":["%1$sRegistre d\'errors del Minecraft%2$s"],"Want to give feedback?":["Vols donar-nos la teua opini\xf3?"],"Head over to our %1$sfeedback website%2$s or come chat with us about it on the %3$sofficial Minecraft Discord%4$s":["Escriu-la a la nostra %1$sweb de suggeriments%2$s o escriu-nos sobre ella al %3$sDiscord oficial del Minecraft%4$s"],"No matching results":["No s\'ha trobat cap resultat"],"We couldn\u2019t find any patch notes matching your filter settings. If you have version filters turned off, try turning them back on.":["No s\'han trobat notes d\'actualitzaci\xf3 que coincidisquen amb els filtres de la busca. Si tens els filtres de versi\xf3 desactivats, prova a activar-los."],"More patch notes":["Notes d\'altres actualitzacions"],"Buy Minecraft: Java Edition":["Compra Minecraft: Java Edition"],"Buy now!":["Compra\'l ara!"],"You already own Minecraft: Java Edition on the account %1$s. You can switch to this account to play, or buy a new copy for the currently active account: %2$s":["Ja tens el Minecraft: Java Edition al compte %1$s. Pots canviar a este compte per jugar-hi, o comprar-ne una c\xf2pia per a l\'actual compte %2$s"],"Switch account":["Canvia de compte"],"Choose installation:":["Tria la instal\xb7laci\xf3:"],"Switch account to play %1$s":["Canvia de compte per a jugar a %1$s"],"Switch to <strong>%1$s</strong> to play the full version of Minecraft: Java Edition.":["Canvia a <strong>%1$s</strong> per a jugar a la versi\xf3 completa del Minecraft: Java Edition."],"To access the entire Minecraft: Java Edition with this account, head over to our website, buy the game and continue your Minecraft adventure.":["Per a accedir a la versi\xf3 completa del Minecraft: Java Edition amb este compte, dirigix-te al nostre lloc web, compra el joc i continua la teua aventura al Minecraft."],"Learn more about why you only can play the demo version of Minecraft: Java Edition":["Obt\xedn m\xe9s informaci\xf3 sobre per qu\xe8 nom\xe9s pots jugar a la versi\xf3 de demostraci\xf3 del Minecraft: Java Edition"],"Use":["Utilitza"],"Skin images must be 64x64 or 64x32 pixel PNG files.":["Els aspectes han de ser imatges PNG de 64x64 o 64x32 p\xedxels."],"No cape":["Sense capa"],"Applying skin...":["Aplicant l\'aspecte..."],"Read more about creating your own skin":["Llig m\xe9s sobre com personalitzar el teu aspecte"],"unnamed skin":["aspecte sense nom"],"Player model":["Model del jugador"],"Classic":["Cl\xe0ssic"],"Slim":["Prim"],"Skin file":["Arxiu de l\'aspecte"],"Skin file tooltip":["Informaci\xf3 sobre els arxius de l\'aspecte"],"Create your own skin or find ready-made skins on the internet! Check out %1$sthis help article%2$s for more information.":["Personalitza el teu propi aspecte o troba\'n ja confeccionats a Internet! Consulta %1$seste article d\'ajuda%2$s per obtindre\'n m\xe9s informaci\xf3."],"Cape":["Capa"],"Capes are special rewards players can unlock through different events, campaigns and other happy happenings.":["Les capes s\xf3n recompenses especials que els jugadors poden desbloquejar a trav\xe9s de diferents esdeveniments, campanyes i altres."],"Cape tooltip":["Informaci\xf3 sobre les capes"],"No capes available. Capes are special rewards players can unlock through different events, campaigns and other happy happenings.":["No hi ha capes disponibles. Les capes s\xf3n recompenses especials que els jugadors poden desbloquejar a trav\xe9s de diferents esdeveniments, campanyes i altres."],"Save & Use":["Guarda i utilitza"],"Add new skin":["Afig un nou aspecte"],"Edit skin":["Edita l\'aspecte"],"Use %1$s as your in-game skin":["Utilitza %1$s com a aspecte al joc"],"More options for %1$s":["M\xe9s opcions per a %1$s"],"Delete %1$s":["Elimina %1$s"],"Duplicate %1$s":["Duplica %1$s"],"Edit %1$s":["Edita %1$s"],"New skin":["Nou aspecte"],"Sorry! We could not load your skins.":["Ho lamentem! No hem pogut carregar els teus aspectes."],"Current":["Actual"],"Add to library":["Afig a la biblioteca"],"Library":["Biblioteca"],"Successfully updated your skin!":["Has actualitzat amb \xe8xit el teu aspecte!"],"Unable to activate skin":["No s\'ha pogut activar l\'aspecte"],"Successfully deleted skin":["Has eliminat l\'aspecte correctament"],"Unable to delete skin":["No s\'ha pogut eliminar l\'aspecte"],"Successfully saved skin":["Has guardat l\'aspecte amb \xe8xit"],"Unable to save skin":["No s\'ha pogut guardar l\'aspecte"],"Successfully duplicated skin":["Has duplicat l\'aspecte correctament"],"Unable to duplicate skin":["No s\'ha pogut duplicar l\'aspecte"],"Manage your skins at minecraft.net":["Administra els teus aspectes a minecraft.net"],"Access today!":["Accedix ara!"],"Buy Minecraft: Java Edition to manage your skins here":["Compra el Minecraft: Java Edition per gestionar els teus aspectes"],"Go to %1$s to buy Minecraft: Java Edition.":["Ves a %1$s per comprar el Minecraft: Java Edition."],"Before you can manage your skins for Minecraft: Java Edition, it\u2019s time to get creative and pick your own Minecraft profile name on the web. It only takes a minute!":["Abans que pugues gestionar els teus aspectes del Minecraft: Java Edition, \xe9s el moment de ser creatiu i triar el teu nom del perfil a la web. Nom\xe9s ser\xe0 un minut!"],"Go to %1$s to create your Minecraft profile name.":["Ves a %1$s per crear el teu nom del perfil del Minecraft."],"WebGL support needed":["Es necessita suport WebGL"],"Sorry! Your device does not support WebGL, which is required to manage skins.":["Ho lamentem! El teu dispositiu no \xe9s compatible amb WebGL, necessari per gestionar aspectes."],"You can still manage your skin on %1$s":["Pots gestionar el teu aspecte a %1$s"],"News filtering":["Filtratge de not\xedcies"],"Categories":["Categories"],"News related to Minecraft: Java Edition":["Not\xedcies relacionades amb el Minecraft: Java Edition"],"News related to Minecraft Dungeons":["Not\xedcies relacionades amb el Minecraft Dungeons"],"Failed to fetch news":["No s\'han pogut filtrar les not\xedcies"],"Please check if you are connected to the internet and try again. If you are connected and still can\u2019t see the news, we might have technical difficulties and will be back online soon.":["Comprova si est\xe0s connectat a Internet i torna-ho a provar. Si tens connexi\xf3 i continues sense vore les novetats, potser tenim dificultats t\xe8cniques i prompte ho solucionarem."],"Loading news...":["Carregant novetats..."],"We couldn\u2019t find any news content matching your search. If you have category filters turned off, try turning them back on and search again.":["No hem trobat cap not\xedcia relacionada amb la teua busca. Si tens filtres de categories desactivats, prova a activar-los i prova de nou."],"Read more on the web":["Llig m\xe9s a la web"],"General":["General"],"Accounts":["Comptes"],"About":["Sobre"],"Unknown":["Desconegut"],"What\u2019s new?":["Qu\xe8 hi ha de nou?"],"Credits and Third party licenses":["Cr\xe8dits i llic\xe8ncies de tercers"],"A big thanks to:":["Moltes gr\xe0cies a:"],"%1$s for letting us use your awesome work as inspiration for Skins":["%1$s per deixar-nos utilitzar el teu fant\xe0stic treball com a inspiraci\xf3 per als aspectes"],"Third party licenses":["Llic\xe8ncies de tercers"],"Set %1$s as the active account":["Establix %1$s com a compte actiu"],"Active":["Actiu"],"Migrate Mojang account to a Microsoft account":["Migra el compte de Mojang a un compte de Microsoft"],"Migrate to Microsoft account":["Migra a un compte de Microsoft"],"Remove account":["Elimina el compte"],"Set as active":["Establix com a actiu"],"List of signed in Microsoft accounts":["Llista de comptes registrats a Microsoft"],"Add Microsoft account":["Afig un compte de Microsoft"],"List of signed in Mojang accounts":["Llista de comptes registrats a Mojang"],"Add Mojang account":["Afig un compte de Mojang"],"Launcher settings":["Configuraci\xf3 del llan\xe7ador"],"Use beta version of the Launcher":["Utilitza la versi\xf3 beta del llan\xe7ador"],"Keep the Launcher open while games are running":["Mant\xedn el llan\xe7ador obert mentre s\'executa el joc"],"Animate transitions between pages in the Launcher":["Anima les transicions entre p\xe0gines del llan\xe7ador"],"Animate play button on the Play pages in the Launcher":["Anima el bot\xf3 de \\"Juga\\" a les p\xe0gines del llan\xe7ador"],"Disable hardware acceleration (requires restarting the Launcher)":["Desactiva l\'acceleraci\xf3 de maquinari (haur\xe0s de reiniciar el llan\xe7ador)"],"Minecraft: Java Edition settings":["Configuraci\xf3 del Minecraft: Java Edition"],"Open output log when Minecraft: Java Edition starts":["Obri els registres quan s\'inicie el Minecraft: Java Edition"],"Automatically send Minecraft: Java Edition crash reports to Mojang Studios":["Envia autom\xe0ticament informes d\u2019errors del Minecraft: Java Edition a Mojang Studios"],"Historical versions":["Versions antigues"],"Show historical versions of Minecraft: Java Edition in the Launcher":["Mostra les versions hist\xf2riques del Minecraft: Java Edition al llan\xe7ador"],"Minecraft Launcher channel":["Canal del llan\xe7ador del Minecraft"],"Failed to save file.":["No s\'ha pogut guardar el fitxer."],"Some game files are missing, and can\u2019t be downloaded while the launcher is in offline mode. Please connect to the internet and try again.":["Falten alguns arxius del joc i no es poden descarregar mentre el llan\xe7ador estiga en mode sense connexi\xf3. Per favor, connecta\'t a internet i torna a intentar-ho."],"Unable to read the asset index.":["No s\'ha pogut llegir la llista de recursos."],"The asset index is corrupt.":["La llista de recursos est\xe0 corrompuda."],"Unable to create directory.":["No s\'ha pogut crear el directori."],"Unable to install version.":["No s\'ha pogut instal\xb7lar la versi\xf3."],"Unable to save download":["No s\'ha pogut guardar la desc\xe0rrega"],"Unable to extract native files.":["No s\'han pogut extraure els arxius natius."],"A library file is invalid.":["Un arxiu de la biblioteca no \xe9s v\xe0lid."],"Unable to copy file.":["No s\'ha pogut copiar l\'arxiu."],"Unable to locate game files.":["No s\'han pogut trobar els arxius del joc."],"Unable to locate the Java runtime.":["No s\'ha pogut trobar l\'executable de Java."],"The specified custom log config does not exist.":["La configuraci\xf3 de registre personalitzada que has escrit no existix."],"The specific version of the game does not support custom log configs.":["La versi\xf3 seleccionada no \xe9s compatible amb la configuraci\xf3 de registre personalitzada."],"Unable to monitor game log.":["No s\'ha pogut monitoritzar el registre del joc."],"Unable to start Java.":["No s\'ha pogut iniciar Java."],"Unable to monitor game status.":["No s\'ha pogut monitoritzar l\'estat del joc."],"Failed to download file.":["Error en descarregar l\'arxiu."],"Failed to start download.":["Error en iniciar la desc\xe0rrega."],"Unable to delete a corrupt file.":["No s\'ha pogut eliminar un arxiu danyat."],"Unable to access file.":["No s\'ha pogut accedir a l\'arxiu."],"Internal error.":["Error intern."],"Unable to create temporary directory.":["No s\'ha pogut crear un directori temporal."],"The version manifest is corrupt.":["La versi\xf3 seleccionada est\xe0 danyada."],"The game directory is invalid or inaccessible.":["El directori del joc no \xe9s v\xe0lid o \xe9s inaccessible."],"Failed to download file, the file contents differ from what was expected.":["Error en descarregar l\'arxiu, el contingut diferix d\'aquell que s\'esperava."],"The manifest is unreadable or does not contain expected information":["L\'arxiu de manifest \xe9s il\xb7legible o no cont\xe9 la informaci\xf3 esperada"],"Source file has unsupported compression":["La compressi\xf3 del fitxer d\'origen no est\xe0 suportada"],"Unable to set file permissions.":["No s\'han pogut establir els permisos del fitxer."],"Unable to move file.":["No s\'ha pogut moure el fitxer."],"Unable to delete file.":["No s\'ha pogut eliminar el fitxer."],"Unable to create symbolic link.":["No s\'ha pogut crear l\'enlla\xe7 simb\xf2lic."],"Unable to decompress file.":["No s\'ha pogut descomprimir l\'arxiu."],"Unable to run program.":["No s\'ha pogut executar el programa."],"Unable to write file.":["No s\'ha pogut escriure l\'arxiu."],"The game failed to start for reasons unknown to us. Please try again later.":["El joc no s\'ha pogut iniciar per raons desconegudes. Torna a intentar-ho m\xe9s tard."],"Name: %1$s":["Nom: %1$s"],"URL: %1$s":["URL: %1$s"],"Error details: %1$s":["Detalls de l\'error: %1$s"],"Filename on disk: %1$s":["Nom de l\'arxiu al disc: %1$s"],"Path: %1$s":["Ruta: %1$s"],"Exists: %1$s":["Existix: %1$s"],"Game crashed":["El joc ha deixat de funcionar"],"Exit Code: %1$s":["Codi d\'eixida: %1$s"],"An unexpected issue occurred and the game has crashed. We\u2019re sorry for the inconvenience.":["S\'ha produ\xeft un error inesperat i el joc ha deixat de funcionar. Lamentem les mol\xe8sties."],"Launching the game failed!":["Error en iniciar el joc!"],"Installing the game failed!":["La instal\xb7laci\xf3 del joc ha fallat!"],"Updating the game failed!":["L\'actualitzaci\xf3 del joc ha fallat!"],"Something went wrong...":["Alguna cosa ha anat malament..."],"Could not open crash report":["No s\'ha pogut obrir l\'informe de l\'error"],"View crash report":["Mira l\'informe de l\'error"],"Dialog pagination":["Paginaci\xf3 del di\xe0leg"],"Display dialog %1$s":["Mostra di\xe0leg %1$s"],"Unable to save your change. Please try again.":["No s\'ha pogut guardar el canvi. Per favor, intenta-ho de nou."],"Download icon":["Icona de desc\xe0rrega"],"A new Launcher update is ready. Restart the Launcher to use the latest version.":["Ja est\xe0 preparada la nova actualitzaci\xf3 del llan\xe7ador. Reinicia\'l per fer-la servir."],"<strong>Launcher update:</strong> A new version of the Launcher is available. Please %1$sclick here%2$s for more details.":["<strong>Actualitzaci\xf3 del llan\xe7ador:</strong> Hi ha una nova versi\xf3 del llan\xe7ador disponible. Per favor, fes %1$sclic ac\xed%2$s per veure\'n m\xe9s detalls."],"Error! Unable to set language":["Error! No s\'ha pogut establir la llengua"],"Information circle":["Cercle d\'informaci\xf3"],"Warning triangle":["Triangle d\'advert\xe8ncia"],"Close alert":["Tanca l\'av\xeds"],"Thumbnail for %1$s":["Miniatura per a %1$s"],"Loading":["Carregant"],"Resume download":["Repr\xe9n la desc\xe0rrega"],"Pause download":["Pausa la desc\xe0rrega"],"Cancel download":["Cancel\xb7la la desc\xe0rrega"],"Sorry, something went terribly wrong and you probably encountered a bug. Please file a report %1$shere%2$s":["Ho lamentem, alguna cosa ha anat malament i probablement has trobat un error. Per favor, presenta un informe %1$sac\xed%2$s"],"1 result":["1 resultat"],"%1$s results":["%1$s resultats"],"Language":["Llengua"],"<strong>%1$s is %2$s%% translated!</strong> Want to help translate? Go to %3$sCrowdin%4$s":["<strong>\xa1%1$s est\xe0 tradu\xeft al %2$s%%!</strong> Vols ajudar a traduir-lo? V\xe9s a la %3$sCrowdin%4$s"],"Close notification":["Tanca la notificaci\xf3"],"Downloading update":["Descarregant l\'actualitzaci\xf3"],"Preparing update":["Preparant l\'actualitzaci\xf3"],"Preparing repair":["Preparant la reparaci\xf3"],"Finalizing update":["Acabant l\'actualitzaci\xf3"],"Finalizing repair":["Acabant la reparaci\xf3"],"Canceled":["Cancel\xb7lat"],"English - United States":["Catal\xe0 (Valenci\xe0) - Pa\xeds Valenci\xe0"],"Failed to start game":["No s\'ha pogut iniciar el joc"],"Failed to remove game":["No s\'ha pogut eliminar el joc"],"Failed to fetch product metadata":["No s\'han pogut obtindre les metadades del producte"],"Invalid email or password":["Correu electr\xf2nic o contrasenya incorrectes"],"Could not establish a connection":["No s\'ha pogut establir la connexi\xf3"],"Sorry! Make sure you are online and try again":["Ho lamentem! Assegura\'t que est\xe0s en l\xednia i prova de nou"],"Failed to install game":["No s\'ha pogut instal\xb7lar el joc"],"Failed to find installed product":["No s\'ha trobat el producte instal\xb7lat"],"Could not delete a file":["No s\'ha pogut eliminar un fitxer"],"Failed to pause download at this time":["No s\'ha pogut posar en pausa la baixada"],"Failed to provide a result as the operation was interrupted or never completed":["No s\'ha pogut proporcionar el resultat, ja que l\'operaci\xf3 s\'ha interromput o no s\'ha finalitzat"],"Failed to check for game dependencies":["No s\'han pogut comprovar les depend\xe8ncies del joc"],"Not enough disk space.":["No hi ha prou espai al disc."],"You do not have permission to install Minecraft Dungeons at the selected location. Please try a different one.":["No tens perm\xeds per instal\xb7lar el Minecraft Dungeons a la ubicaci\xf3 seleccionada. Prova\'n una diferent."],"Minecraft Dungeons can not be installed at the same location the Minecraft Dungeons Launcher is installed.":["El Minecraft Dungeons no es pot instal\xb7lar a la mateixa ubicaci\xf3 que el seu llan\xe7ador."],"We were unable to verify what products you own. Please check your internet connection.":["No hem pogut verificar els teus productes. Per favor, comprova la teua connexi\xf3 a internet."],"Something went wrong, and we were unable to verify what products you own.":["Alguna cosa ha anat malament i no podem verificar els teus productes."],"You have migrated your account successfully! To continue, please login with your Microsoft account.":["Has migrat el teu compte correctament! Per continuar, inicia la sessi\xf3 amb el teu compte de Microsoft."],"This account is already logged in. Please try again with a different account.":["Este compte ja t\xe9 la sessi\xf3 iniciada. Torna a intentar-ho amb un altre compte."],"Something went wrong in the login process. If the problem persists, check your internet connection.":["Alguna cosa ha anat malament en el proc\xe9s d\'inici de sessi\xf3. Si el problema persistix, verifica la teua connexi\xf3 a Internet."],"Something went wrong in the login process.":["Alguna cosa ha anat malament en el proc\xe9s d\'inici de sessi\xf3."],"Unable to open directory.":["No s\'ha pogut obrir el directori."],"Sorry! Something unexpected went wrong...":["Ho sentim! Alguna cosa ha anat malament..."]}}}')}}]); | 42,410 | 42,410 | 0.744258 |
182dc26734babb8210e6610a0789da9c5dbe4c5a | 2,360 | js | JavaScript | tailwind.config.js | Claudioefe/kwd-dashboard | 7a1654e157ddab41dfe82b5c3886490750056f65 | [
"MIT"
] | 372 | 2021-02-03T11:19:08.000Z | 2022-03-31T10:57:17.000Z | tailwind.config.js | Claudioefe/kwd-dashboard | 7a1654e157ddab41dfe82b5c3886490750056f65 | [
"MIT"
] | 12 | 2021-05-01T14:23:08.000Z | 2022-02-24T23:29:19.000Z | tailwind.config.js | Claudioefe/kwd-dashboard | 7a1654e157ddab41dfe82b5c3886490750056f65 | [
"MIT"
] | 112 | 2021-02-02T22:05:50.000Z | 2022-03-30T14:54:23.000Z | const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
module.exports = {
mode: "jit",
purge: ['./public/**/*.html'],
darkMode: 'class', // or 'media' or false
theme: {
extend: {
fontFamily: {
sans: ['cairo', ...defaultTheme.fontFamily.sans],
},
colors: {
light: 'var(--light)',
dark: 'var(--dark)',
darker: 'var(--darker)',
primary: {
DEFAULT: 'var(--color-primary)',
50: 'var(--color-primary-50)',
100: 'var(--color-primary-100)',
light: 'var(--color-primary-light)',
lighter: 'var(--color-primary-lighter)',
dark: 'var(--color-primary-dark)',
darker: 'var(--color-primary-darker)',
},
secondary: {
DEFAULT: colors.fuchsia[600],
50: colors.fuchsia[50],
100: colors.fuchsia[100],
light: colors.fuchsia[500],
lighter: colors.fuchsia[400],
dark: colors.fuchsia[700],
darker: colors.fuchsia[800],
},
success: {
DEFAULT: colors.green[600],
50: colors.green[50],
100: colors.green[100],
light: colors.green[500],
lighter: colors.green[400],
dark: colors.green[700],
darker: colors.green[800],
},
warning: {
DEFAULT: colors.orange[600],
50: colors.orange[50],
100: colors.orange[100],
light: colors.orange[500],
lighter: colors.orange[400],
dark: colors.orange[700],
darker: colors.orange[800],
},
danger: {
DEFAULT: colors.red[600],
50: colors.red[50],
100: colors.red[100],
light: colors.red[500],
lighter: colors.red[400],
dark: colors.red[700],
darker: colors.red[800],
},
info: {
DEFAULT: colors.cyan[600],
50: colors.cyan[50],
100: colors.cyan[100],
light: colors.cyan[500],
lighter: colors.cyan[400],
dark: colors.cyan[700],
darker: colors.cyan[800],
},
},
},
},
variants: {
extend: {
backgroundColor: ['checked', 'disabled'],
opacity: ['dark'],
overflow: ['hover'],
},
},
plugins: [],
}
| 28.433735 | 57 | 0.500424 |
182ea0db0370bc303a83ce81053ec31bfda2de62 | 2,150 | js | JavaScript | packages/KendoUICore.2014.3.1119/content/Scripts/kendo/2014.3.1119/kendo.mobile.shim.min.js | quyumbdse/MvcMovie | 7827eff38f084c30577ffe86435abfce4724f616 | [
"MIT"
] | 2 | 2015-03-16T05:56:19.000Z | 2021-09-07T07:08:07.000Z | packages/KendoUICore.2014.3.1119/content/Scripts/kendo/2014.3.1119/kendo.mobile.shim.min.js | quyumbdse/MvcMovie | 7827eff38f084c30577ffe86435abfce4724f616 | [
"MIT"
] | null | null | null | packages/KendoUICore.2014.3.1119/content/Scripts/kendo/2014.3.1119/kendo.mobile.shim.min.js | quyumbdse/MvcMovie | 7827eff38f084c30577ffe86435abfce4724f616 | [
"MIT"
] | 1 | 2021-09-07T07:08:47.000Z | 2021-09-07T07:08:47.000Z | /**
* Copyright 2014 Telerik AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
!function(e,define){define(["./kendo.popup.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile.ui,r=n.ui.Popup,o='<div class="km-shim"/>',a="hide",s=i.Widget,l=s.extend({init:function(t,i){var l=this,c=n.mobile.application,d=n.support.mobileOS,h=c?c.os.name:d?d.name:"ios",u="ios"===h||"wp"===h||(c?c.os.skin:!1),f="blackberry"===h,p=i.align||(u?"bottom center":f?"center right":"center center"),g=i.position||(u?"bottom center":f?"center right":"center center"),m=i.effect||(u?"slideIn:up":f?"slideIn:left":"fade:in"),v=e(o).handler(l).hide();s.fn.init.call(l,t,i),l.shim=v,t=l.element,i=l.options,i.className&&l.shim.addClass(i.className),i.modal||l.shim.on("up","_hide"),(c?c.element:e(document.body)).append(v),l.popup=new r(l.element,{anchor:v,modal:!0,appendTo:v,origin:p,position:g,animation:{open:{effects:m,duration:i.duration},close:{duration:i.duration}},close:function(e){var t=!1;l._apiCall||(t=l.trigger(a)),t&&e.preventDefault(),l._apiCall=!1},deactivate:function(){v.hide()},open:function(){v.show()}}),n.notify(l)},events:[a],options:{name:"Shim",modal:!1,align:t,position:t,effect:t,duration:200},show:function(){this.popup.open()},hide:function(){this._apiCall=!0,this.popup.close()},destroy:function(){s.fn.destroy.call(this),this.shim.kendoDestroy(),this.popup.destroy(),this.shim.remove()},_hide:function(t){t&&e.contains(this.shim.children().children(".k-popup")[0],t.target)||this.popup.close()}});i.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}); | 134.375 | 1,555 | 0.710698 |
182ecf530e0e3bcc5b2d6875be0507cbc34620bd | 925 | js | JavaScript | tools/postinstall.js | chai2010/guetzli-js | 84e20fa11e70fe0a03438d3b4658f3684d4b0d5c | [
"MIT"
] | 38 | 2017-03-23T10:39:45.000Z | 2022-01-18T02:14:37.000Z | tools/postinstall.js | chai2010/guetzli-js | 84e20fa11e70fe0a03438d3b4658f3684d4b0d5c | [
"MIT"
] | 3 | 2017-03-28T19:40:41.000Z | 2017-04-10T07:33:41.000Z | tools/postinstall.js | chai2010/guetzli-js | 84e20fa11e70fe0a03438d3b4658f3684d4b0d5c | [
"MIT"
] | 3 | 2017-03-26T03:21:49.000Z | 2017-04-06T07:26:17.000Z | // Copyright 2017 <chaishushan{AT}gmail.com>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
const fs = require('fs')
const path = require('path')
const PKG_ROOT = path.join(path.dirname(fs.realpathSync(__filename)), '..');
function removeDirectory(path) {
if(fs.existsSync(path)) {
fs.readdirSync(path).forEach(function(file, index) {
const curPath = path + "/" + file;
if(fs.lstatSync(curPath).isDirectory()) { // recurse
removeDirectory(curPath);
} else { // delete file
fs.unlinkSync(curPath);
}
})
fs.rmdirSync(path);
}
}
function copyFile(fromPath, toPath) {
fs.writeFileSync(toPath, fs.readFileSync(fromPath))
}
if(require.main === module) {
copyFile(PKG_ROOT+'/build/Release/guetzli.node', PKG_ROOT+'/dist/build/Release/guetzli.node')
removeDirectory(PKG_ROOT+'/build')
}
| 28.90625 | 95 | 0.678919 |
182f78fce21d9548f99204eb94df77ef55af0dd1 | 2,974 | js | JavaScript | static/js/emotion/videoPlayer.js | AmineAfia/spacerater | 5cab4e682910b31481ca1e2da55a3b4c8e956c1a | [
"MIT"
] | null | null | null | static/js/emotion/videoPlayer.js | AmineAfia/spacerater | 5cab4e682910b31481ca1e2da55a3b4c8e956c1a | [
"MIT"
] | null | null | null | static/js/emotion/videoPlayer.js | AmineAfia/spacerater | 5cab4e682910b31481ca1e2da55a3b4c8e956c1a | [
"MIT"
] | null | null | null | //------------------------------------
// videoPlayer.js
// javascript object responsible for video UI on result view
// dependencies: jquery.js, jquery-ui.js (scrubber interaction)
// created: April 2016
// author: Steve Rucker
//------------------------------------
var videoPlayer = videoPlayer || {};
var playButton = $("#play-pause");
var progressHolder = $("#progress-holder");
var progressBar = $("#progress-bar");
var progressTime = $("#progress-time");
var curtain = $("#highcharts-curtain");
var titles = $("#highcharts-titles");
var videoPlayer = {
init: function () {
this.handleButtonPresses();
this.videoScrubbing();
},
handleButtonPresses: function () {
var self = this;
playButton.on("click", function(e) {
e.preventDefault();
self.playPause();
curtain.show();
if (video.paused == true) {
playButton.removeClass("pause");
playButton.addClass("play");
}
else {
playButton.removeClass("play");
playButton.addClass("pause");
}
});
},
playPause: function () {
var self = this;
if ( video.paused || video.ended ) {
if ( video.ended ) { video.currentTime = 0; }
video.play();
self.trackPlayProgress();
}
else {
video.pause();
self.stopTrackingPlayProgress();
}
},
converttoTime: function (timeInSeconds) {
var minutes = Math.round(Math.floor(timeInSeconds / 60));
var seconds = Math.round(timeInSeconds - minutes * 60);
var time=('0' + minutes).slice(-2)+':'+('0' + seconds).slice(-2);
return time;
},
trackPlayProgress: function (){
var self = this;
(function progressTrack() {
if ( video.ended == true ) {
self.stopTrackingPlayProgress();
}
else {
self.updatePlayProgress();
playProgressInterval = setTimeout(progressTrack, 50);
}
})();
},
updatePlayProgress: function () {
var self = this;
progressBar.width( (video.currentTime / video.duration) * (progressHolder[0].offsetWidth) );
progressTime.html(self.converttoTime(video.currentTime));
var widthPercent = 100 - ((video.currentTime / video.duration) * 100);
curtain.width( widthPercent + "%");
featurePointAnimation.getFeaturePoints(video.currentTime);
if ( widthPercent < 80 || curtain.css("display") == "none") {
titles.css("z-index",2);
}
else {
titles.css("z-index",3);
}
if ( widthPercent < 60 ) {
$(".highcharts-tooltip").css("visibility","visible");
}
else {
$(".highcharts-tooltip").css("visibility","hidden");
}
},
// Video was stopped, so stop updating progress.
stopTrackingPlayProgress: function () {
clearTimeout( playProgressInterval );
},
videoScrubbing: function () {
var self = this;
progressHolder.slider({
value: 0,
orientation: "horizontal",
range: "min",
animate: true,
slide: function(event, ui) {
curtain.show();
video.currentTime = (ui.value * video.duration)/100;
self.updatePlayProgress();
}
});
}
};
| 27.537037 | 95 | 0.619368 |
1830a1c150a60c77a7347561a04bc170979ae6f9 | 64 | js | JavaScript | src/components/changelog/index.js | johny5w/sectors-without-number | 1563421d2c250db3733169de0db275bd41bdb5a5 | [
"MIT"
] | 92 | 2017-08-11T06:41:53.000Z | 2022-02-12T18:44:20.000Z | src/components/changelog/index.js | johny5w/sectors-without-number | 1563421d2c250db3733169de0db275bd41bdb5a5 | [
"MIT"
] | 176 | 2017-07-25T21:30:32.000Z | 2022-03-03T15:45:21.000Z | src/components/changelog/index.js | johny5w/sectors-without-number | 1563421d2c250db3733169de0db275bd41bdb5a5 | [
"MIT"
] | 32 | 2017-08-11T09:43:27.000Z | 2022-03-02T10:53:13.000Z | import Changelog from './changelog';
export default Changelog;
| 16 | 36 | 0.78125 |
1831ce63eb0bd0bd59525eb64a9b302a67cfc975 | 19,259 | js | JavaScript | app/bower_components/vega-lite/src/schema/schema.js | thejasonlewis/gloo-demo | 8562323f4b8ad06238a2535101e8ca58c8586734 | [
"MIT"
] | null | null | null | app/bower_components/vega-lite/src/schema/schema.js | thejasonlewis/gloo-demo | 8562323f4b8ad06238a2535101e8ca58c8586734 | [
"MIT"
] | null | null | null | app/bower_components/vega-lite/src/schema/schema.js | thejasonlewis/gloo-demo | 8562323f4b8ad06238a2535101e8ca58c8586734 | [
"MIT"
] | null | null | null | // Package of defining Vega-lite Specification's json schema
'use strict';
require('../globals');
var schema = module.exports = {},
util = require('../util'),
toMap = util.toMap,
colorbrewer = require('colorbrewer');
schema.util = require('./schemautil');
schema.marktype = {
type: 'string',
enum: ['point', 'tick', 'bar', 'line', 'area', 'circle', 'square', 'text']
};
schema.aggregate = {
type: 'string',
enum: ['avg', 'sum', 'median', 'min', 'max', 'count'],
supportedEnums: {
Q: ['avg', 'median', 'sum', 'min', 'max', 'count'],
O: ['median','min','max'],
N: [],
T: ['avg', 'median', 'min', 'max'],
'': ['count']
},
supportedTypes: toMap([Q, N, O, T, ''])
};
schema.getSupportedRole = function(encType) {
return schema.schema.properties.encoding.properties[encType].supportedRole;
};
schema.timeUnits = ['year', 'month', 'day', 'date', 'hours', 'minutes', 'seconds'];
schema.defaultTimeFn = 'month';
schema.timeUnit = {
type: 'string',
enum: schema.timeUnits,
supportedTypes: toMap([T])
};
schema.scale_type = {
type: 'string',
// TODO(kanitw) read vega's schema here, add description
enum: ['linear', 'log', 'pow', 'sqrt', 'quantile'],
default: 'linear',
supportedTypes: toMap([Q])
};
schema.field = {
type: 'object',
properties: {
name: {
type: 'string'
}
}
};
var clone = util.duplicate;
var merge = schema.util.merge;
schema.MAXBINS_DEFAULT = 15;
var bin = {
type: ['boolean', 'object'],
default: false,
properties: {
maxbins: {
type: 'integer',
default: schema.MAXBINS_DEFAULT,
minimum: 2,
description: 'Maximum number of bins.'
}
},
supportedTypes: toMap([Q]) // TODO: add O after finishing #81
};
var typicalField = merge(clone(schema.field), {
type: 'object',
properties: {
type: {
type: 'string',
enum: [N, O, Q, T]
},
aggregate: schema.aggregate,
timeUnit: schema.timeUnit,
bin: bin,
scale: {
type: 'object',
properties: {
type: schema.scale_type,
reverse: {
type: 'boolean',
default: false,
supportedTypes: toMap([Q, T])
},
zero: {
type: 'boolean',
description: 'Include zero',
default: true,
supportedTypes: toMap([Q, T])
},
nice: {
type: 'string',
enum: ['second', 'minute', 'hour', 'day', 'week', 'month', 'year'],
supportedTypes: toMap([T])
},
useRawDomain: {
type: 'boolean',
default: undefined,
description: 'Use the raw data range as scale domain instead of ' +
'aggregated data for aggregate axis. ' +
'This option does not work with sum or count aggregate' +
'as they might have a substantially larger scale range.' +
'By default, use value from config.useRawDomain.'
}
}
}
}
});
var onlyOrdinalField = merge(clone(schema.field), {
type: 'object',
supportedRole: {
dimension: true
},
properties: {
type: {
type: 'string',
enum: [N, O, Q, T] // ordinal-only field supports Q when bin is applied and T when time unit is applied.
},
timeUnit: schema.timeUnit,
bin: bin,
aggregate: {
type: 'string',
enum: ['count'],
supportedTypes: toMap([N, O]) // FIXME this looks weird to me
}
}
});
var axisMixin = {
type: 'object',
supportedMarktypes: {point: true, tick: true, bar: true, line: true, area: true, circle: true, square: true},
properties: {
axis: {
type: 'object',
properties: {
grid: {
type: 'boolean',
default: true,
description: 'A flag indicate if gridlines should be created in addition to ticks.'
},
layer: {
type: 'string',
default: 'back',
description: 'A string indicating if the axis (and any gridlines) should be placed above or below the data marks.'
},
orient: {
type: 'string',
default: undefined,
enum: ['top', 'right', 'left', 'bottom'],
description: 'The orientation of the axis. One of top, bottom, left or right. The orientation can be used to further specialize the axis type (e.g., a y axis oriented for the right edge of the chart).'
},
ticks: {
type: 'integer',
default: 5,
minimum: 0,
description: 'A desired number of ticks, for axes visualizing quantitative scales. The resulting number may be different so that values are "nice" (multiples of 2, 5, 10) and lie within the underlying scale\'s range.'
},
title: {
type: 'string',
default: undefined,
description: 'A title for the axis. (Shows field name and its function by default.)'
},
titleMaxLength: {
type: 'integer',
default: undefined,
minimum: 0,
description: 'Max length for axis title if the title is automatically generated from the field\'s description'
},
titleOffset: {
type: 'integer',
default: undefined, // auto
description: 'A title offset value for the axis.'
},
format: {
type: 'string',
default: undefined, // auto
description: 'The formatting pattern for axis labels. '+
'If not undefined, this will be determined by ' +
'small/largeNumberFormat and the max value ' +
'of the field.'
},
maxLabelLength: {
type: 'integer',
default: 25,
minimum: 0,
description: 'Truncate labels that are too long.'
},
labelAngle: {
type: 'integer',
default: undefined, // auto
minimum: 0,
maximum: 360,
description: 'Angle by which to rotate labels. Set to 0 to force horizontal.'
},
}
}
}
};
var sortMixin = {
type: 'object',
properties: {
sort: {
type: 'array',
default: [],
items: {
type: 'object',
supportedTypes: toMap([N, O]),
required: ['name', 'aggregate'],
properties: {
name: {
type: 'string'
},
aggregate: {
type: 'string',
enum: ['avg', 'sum', 'min', 'max', 'count']
},
reverse: {
type: 'boolean',
default: false
}
}
}
}
}
};
var bandMixin = {
type: 'object',
properties: {
band: {
type: 'object',
properties: {
size: {
type: 'integer',
minimum: 0,
default: undefined
},
padding: {
type: 'integer',
minimum: 0,
default: 1
}
}
}
}
};
var legendMixin = {
type: 'object',
properties: {
legend: {
type: 'object',
description: 'Properties of a legend.',
properties: {
title: {
type: 'string',
default: undefined,
description: 'A title for the legend. (Shows field name and its function by default.)'
}
}
}
}
};
var textMixin = {
type: 'object',
supportedMarktypes: {'text': true},
properties: {
align: {
type: 'string',
default: 'right'
},
baseline: {
type: 'string',
default: 'middle'
},
color: {
type: 'string',
role: 'color',
default: '#000000'
},
margin: {
type: 'integer',
default: 4,
minimum: 0
},
placeholder: {
type: 'string',
default: 'Abc'
},
font: {
type: 'object',
properties: {
weight: {
type: 'string',
enum: ['normal', 'bold'],
default: 'normal'
},
size: {
type: 'integer',
default: 10,
minimum: 0
},
family: {
type: 'string',
default: 'Helvetica Neue'
},
style: {
type: 'string',
default: 'normal',
enum: ['normal', 'italic']
}
}
},
format: {
type: 'string',
default: undefined, // auto
description: 'The formatting pattern for text value. '+
'If not undefined, this will be determined by ' +
'small/largeNumberFormat and the max value ' +
'of the field.'
},
}
};
var sizeMixin = {
type: 'object',
supportedMarktypes: {point: true, bar: true, circle: true, square: true, text: true},
properties: {
value: {
type: 'integer',
default: 30,
minimum: 0,
description: 'Size of marks.'
}
}
};
var colorMixin = {
type: 'object',
supportedMarktypes: {point: true, tick: true, bar: true, line: true, area: true, circle: true, square: true, 'text': true},
properties: {
value: {
type: 'string',
role: 'color',
default: '#4682b4',
description: 'Color to be used for marks.'
},
opacity: {
type: 'number',
default: undefined, // auto
minimum: 0,
maximum: 1
},
scale: {
type: 'object',
properties: {
range: {
type: ['string', 'array'],
default: undefined,
description:
'Color palette, if undefined vega-lite will use data property' +
'to pick one from c10palette, c20palette, or ordinalPalette.'
//FIXME
},
c10palette: {
type: 'string',
default: 'category10',
enum: [
// Tableau
'category10', 'category10k',
// Color Brewer
'Pastel1', 'Pastel2', 'Set1', 'Set2', 'Set3'
]
},
c20palette: {
type: 'string',
default: 'category20',
enum: ['category20', 'category20b', 'category20c']
},
ordinalPalette: {
type: 'string',
default: undefined,
description: 'Color palette to encode ordinal variables.',
enum: util.keys(colorbrewer)
},
quantitativeRange: {
type: 'array',
default: ['#AFC6A3', '#09622A'], // tableau greens
// default: ['#ccece6', '#00441b'], // BuGn.9 [2-8]
description: 'Color range to encode quantitative variables.',
minItems: 2,
maxItems: 2,
items: {
type: 'string',
role: 'color'
}
}
}
}
}
};
var shapeMixin = {
type: 'object',
supportedMarktypes: {point: true, circle: true, square: true},
properties: {
value: {
type: 'string',
enum: ['circle', 'square', 'cross', 'diamond', 'triangle-up', 'triangle-down'],
default: 'circle',
description: 'Mark to be used.'
},
filled: {
type: 'boolean',
default: false,
description: 'Whether the shape\'s color should be used as fill color instead of stroke color.'
}
}
};
var detailMixin = {
type: 'object',
supportedMarktypes: {point: true, tick: true, line: true, circle: true, square: true}
};
var rowMixin = {
properties: {
height: {
type: 'number',
minimum: 0,
default: 150
}
}
};
var colMixin = {
properties: {
width: {
type: 'number',
minimum: 0,
default: 150
},
axis: {
properties: {
maxLabelLength: {
type: 'integer',
default: 12,
minimum: 0,
description: 'Truncate labels that are too long.'
}
}
}
}
};
var facetMixin = {
type: 'object',
supportedMarktypes: {point: true, tick: true, bar: true, line: true, area: true, circle: true, square: true, text: true},
properties: {
padding: {
type: 'number',
minimum: 0,
maximum: 1,
default: 0.1
}
}
};
var requiredNameType = {
required: ['name', 'type']
};
var multiRoleField = merge(clone(typicalField), {
supportedRole: {
measure: true,
dimension: true
}
});
var quantitativeField = merge(clone(typicalField), {
supportedRole: {
measure: true,
dimension: 'ordinal-only' // using size to encoding category lead to order interpretation
}
});
var onlyQuantitativeField = merge(clone(typicalField), {
supportedRole: {
measure: true
}
});
var x = merge(clone(multiRoleField), axisMixin, bandMixin, requiredNameType, sortMixin);
var y = clone(x);
var facet = merge(clone(onlyOrdinalField), requiredNameType, facetMixin, sortMixin);
var row = merge(clone(facet), axisMixin, rowMixin);
var col = merge(clone(facet), axisMixin, colMixin);
var size = merge(clone(quantitativeField), legendMixin, sizeMixin, sortMixin);
var color = merge(clone(multiRoleField), legendMixin, colorMixin, sortMixin);
var shape = merge(clone(onlyOrdinalField), legendMixin, shapeMixin, sortMixin);
var detail = merge(clone(onlyOrdinalField), detailMixin, sortMixin);
// we only put aggregated measure in pivot table
var text = merge(clone(onlyQuantitativeField), textMixin, sortMixin);
// TODO add label
var filter = {
type: 'array',
items: {
type: 'object',
properties: {
operands: {
type: 'array',
items: {
type: ['string', 'boolean', 'integer', 'number']
}
},
operator: {
type: 'string',
enum: ['>', '>=', '=', '!=', '<', '<=', 'notNull']
}
}
}
};
var data = {
type: 'object',
properties: {
// data source
formatType: {
type: 'string',
enum: ['json', 'csv'],
default: 'json'
},
url: {
type: 'string',
default: undefined
},
values: {
type: 'array',
default: undefined,
description: 'Pass array of objects instead of a url to a file.',
items: {
type: 'object',
additionalProperties: true
}
}
}
};
var config = {
type: 'object',
properties: {
// template
width: {
type: 'integer',
default: undefined
},
height: {
type: 'integer',
default: undefined
},
viewport: {
type: 'array',
items: {
type: 'integer'
},
default: undefined
},
gridColor: {
type: 'string',
role: 'color',
default: '#000000'
},
gridOpacity: {
type: 'number',
minimum: 0,
maximum: 1,
default: 0.08
},
// filter null
filterNull: {
type: 'object',
properties: {
O: {type:'boolean', default: false},
Q: {type:'boolean', default: true},
T: {type:'boolean', default: true}
}
},
toggleSort: {
type: 'string',
default: O
},
autoSortLine: {
type: 'boolean',
default: true
},
// single plot
singleHeight: {
// will be overwritten by bandWidth * (cardinality + padding)
type: 'integer',
default: 200,
minimum: 0
},
singleWidth: {
// will be overwritten by bandWidth * (cardinality + padding)
type: 'integer',
default: 200,
minimum: 0
},
// band size
largeBandSize: {
type: 'integer',
default: 21,
minimum: 0
},
smallBandSize: {
//small multiples or single plot with high cardinality
type: 'integer',
default: 12,
minimum: 0
},
largeBandMaxCardinality: {
type: 'integer',
default: 10
},
// small multiples
cellPadding: {
type: 'number',
default: 0.1
},
cellGridColor: {
type: 'string',
role: 'color',
default: '#000000'
},
cellGridOpacity: {
type: 'number',
minimum: 0,
maximum: 1,
default: 0.15
},
cellBackgroundColor: {
type: 'string',
role: 'color',
default: 'rgba(0,0,0,0)'
},
textCellWidth: {
type: 'integer',
default: 90,
minimum: 0
},
// marks
strokeWidth: {
type: 'integer',
default: 2,
minimum: 0
},
singleBarOffset: {
type: 'integer',
default: 5,
minimum: 0
},
// scales
timeScaleLabelLength: {
type: 'integer',
default: 3,
minimum: 0,
description: 'Max length for values in dayScaleLabel and monthScaleLabel. Zero means using full names in dayScaleLabel/monthScaleLabel.'
},
dayScaleLabel: {
type: 'array',
items: {
type: 'string'
},
default: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
description: 'Axis labels for day of week, starting from Sunday.' +
'(Consistent with Javascript -- See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDay.'
},
monthScaleLabel: {
type: 'array',
items: {
type: 'string'
},
default: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
description: 'Axis labels for month.'
},
// other
characterWidth: {
type: 'integer',
default: 6
},
maxSmallNumber: {
type: 'number',
default: 10000,
description: 'maximum number that a field will be considered smallNumber.'+
'Used for axis labelling.'
},
smallNumberFormat: {
type: 'string',
default: '',
description: 'D3 Number format for axis labels and text tables '+
'for number <= maxSmallNumber. Used for axis labelling.'
},
largeNumberFormat: {
type: 'string',
default: '.3s',
description: 'D3 Number format for axis labels and text tables ' +
'for number > maxSmallNumber.'
},
timeFormat: {
type: 'string',
default: '%Y-%m-%d',
description: 'Date format for axis labels.'
},
useRawDomain: {
type: 'boolean',
default: false,
description: 'Use the raw data range as scale domain instead of ' +
'aggregated data for aggregate axis. ' +
'This option does not work with sum or count aggregate' +
'as they might have a substantially larger scale range.' +
'By default, use value from config.useRawDomain.'
}
}
};
/** @type Object Schema of a vega-lite specification */
schema.schema = {
$schema: 'http://json-schema.org/draft-04/schema#',
description: 'Schema for Vega-lite specification',
type: 'object',
required: ['marktype', 'encoding', 'data'],
properties: {
data: data,
marktype: schema.marktype,
encoding: {
type: 'object',
properties: {
x: x,
y: y,
row: row,
col: col,
size: size,
color: color,
shape: shape,
text: text,
detail: detail
}
},
filter: filter,
config: config
}
};
schema.encTypes = util.keys(schema.schema.properties.encoding.properties);
/** Instantiate a verbose vl spec from the schema */
schema.instantiate = function() {
return schema.util.instantiate(schema.schema);
};
| 24.47141 | 227 | 0.534659 |
1831fd7467b5535229b4b1fd300d4368c82591be | 10,952 | js | JavaScript | scripts/generate-clients/copy-to-deno.js | christophgysin/aws-sdk-js-v3 | 58ae611eed4f0bbc47ec20c91d9de4c2651e60e8 | [
"Apache-2.0"
] | 43 | 2020-09-04T04:07:36.000Z | 2022-03-29T03:52:27.000Z | scripts/generate-clients/copy-to-deno.js | christophgysin/aws-sdk-js-v3 | 58ae611eed4f0bbc47ec20c91d9de4c2651e60e8 | [
"Apache-2.0"
] | 32 | 2020-09-29T19:26:57.000Z | 2022-03-05T17:06:50.000Z | scripts/generate-clients/copy-to-deno.js | christophgysin/aws-sdk-js-v3 | 58ae611eed4f0bbc47ec20c91d9de4c2651e60e8 | [
"Apache-2.0"
] | 8 | 2020-11-19T23:04:02.000Z | 2021-12-01T20:49:30.000Z | const fsx = require("fs-extra");
const path = require("path");
const fs = require("fs");
const DENO_STD_VERSION = "0.119.0";
async function copyPackage(packageName, packageDir, destinationDir) {
if (packageName.endsWith("-deno")) {
// skip here - copy instead at the end
return;
}
await fsx.mkdirp(path.join(destinationDir, packageName));
let hasSrc = false;
let hasTsFiles = false;
for (const dpath of await fsx.readdir(packageDir)) {
if (dpath === "src") {
hasSrc = true;
}
if (dpath.endsWith(".ts")) {
hasTsFiles = true;
}
}
if (hasSrc && hasTsFiles) {
throw new Error("has mix of inline srcs and src dir");
}
if (hasSrc) {
return copyPackage(packageName, path.join(packageDir, "src"), destinationDir);
}
for (const dpath of await fsx.readdir(packageDir)) {
if (dpath.endsWith(".spec.ts")) {
continue;
}
if (dpath === "e2e") {
continue;
}
if (dpath === "package.json") {
let topath = dpath;
await fsx.copyFile(path.join(packageDir, dpath), path.join(destinationDir, packageName, topath));
}
if (dpath.endsWith(".ts")) {
let topath = dpath;
// skip the other runtime configs
if (dpath === "runtimeConfig.native.ts") {
continue;
}
if (dpath === "runtimeConfig.browser.ts") {
continue;
}
if (dpath === "index.ts") {
topath = "mod.ts";
}
await fsx.copyFile(path.join(packageDir, dpath), path.join(destinationDir, packageName, topath));
continue;
}
const stat = await fsx.stat(path.join(packageDir, dpath));
if (stat.isDirectory()) {
if (dpath.endsWith("node_modules")) {
continue;
}
const src = path.join(packageDir, dpath);
const dest = path.join(destinationDir, packageName, dpath);
await fsx.copy(src, dest, {
filter: (filename) => !filename.endsWith(".spec.ts"),
});
}
}
}
// Overwrite some packages with a deno implementation instead of editing the node implementation
async function copyDenoPackage(packageName, packageDir, destinationDir) {
const resultPackageName = packageName.replace(/-deno$/g, "");
await fsx.mkdirp(path.join(destinationDir, resultPackageName));
await fsx.copy(packageDir, path.join(destinationDir, resultPackageName));
}
async function copyDenoPackages(sourceDirs, destinationDir) {
for (const packagesDir of sourceDirs) {
for (const packageName of await fsx.readdir(packagesDir)) {
if (!packageName.endsWith("-deno")) {
continue;
}
await copyDenoPackage(packageName, path.join(packagesDir, packageName), destinationDir);
}
}
}
async function denoifyTree(tpath, depth) {
const stat = await fsx.stat(tpath);
if (stat.isDirectory()) {
for (const dpath of await fsx.readdir(tpath)) {
await denoifyTree(path.join(tpath, dpath), depth + 1);
}
return;
}
await denoifyTsFile(tpath, depth);
}
// fixup imports for deno and also refer any @aws- imports to the local copy
async function denoifyTsFile(file, depth) {
const fileContent = await fsx.readFile(file);
const lines = fileContent.toString().split("\n");
const extraHeaderLines = {};
const output = [];
const context = { state: null };
for (const line of lines) {
if (line.match(/\bBuffer\b/)) {
if (file !== "deno/util-buffer-from/mod.ts") {
extraHeaderLines[
"buffer"
] = `import { Buffer } from "https://deno.land/std@${DENO_STD_VERSION}/node/buffer.ts";`;
}
}
if (line.match(/\bprocess\./)) {
extraHeaderLines["process"] = `import process from "https://deno.land/std@${DENO_STD_VERSION}/node/process.ts";`;
}
output.push(await denoifyLine(file, context, depth, line));
}
await fsx.writeFile(
file,
[...Object.values(extraHeaderLines), ...output.filter((line) => line !== undefined)].join("\n")
);
}
async function denoifyLine(file, context, depth, line) {
const isRuntimeConfig = file.endsWith("/runtimeConfig.ts");
if (isRuntimeConfig) {
let match;
if ((match = line.match(/runtime: "node"/))) {
return line.replace(match[0], 'runtime: "deno"');
}
// Don't show warnings for deno versions
if (line.match(/emitWarningIfUnsupportedVersion\(process\.version\);/)) {
return;
}
// Use fetch API instead of http module
if ((match = line.match(/import .* NodeHttpHandler,? .* from .*/))) {
return line.replace(
match[0],
'import { FetchHttpHandler, streamCollector } from "../fetch-http-handler/mod.ts";'
);
}
if ((match = line.match(/new NodeHttpHandler\(/))) {
return line.replace(match[0], "new FetchHttpHandler(");
}
// Use blobHasher instead of fileStreamHasher
if ((match = line.match(/import .* fileStreamHasher,? .* from .*/))) {
return line.replace(match[0], 'import { blobHasher as streamHasher } from "../hash-blob-browser/mod.ts";');
}
// Use eventstream-serde-browser
if ((match = line.match(/import .* eventStreamSerdeProvider,? .* from .*/))) {
return line.replace(match[0], 'import { eventStreamSerdeProvider } from "../eventstream-serde-browser/mod.ts";');
}
// Use body-checksum-browser
if ((match = line.match(/import .* from .*body-checksum-node.*/))) {
return line.replace(match[0], 'import { bodyChecksumGenerator } from "../body-checksum-browser/mod.ts";');
}
}
if (line.match(/\bprocess\.emitWarning/)) {
return line.replace("process.emitWarning", "console.warn");
}
if (line.match(/\bNodeJS\.ProcessEnv\b/)) {
return line.replace("NodeJS.ProcessEnv", "{[key: string]: string}");
}
if (line.match(/\bhomedir\(\)/)) {
return line.replace("homedir()", "homedir()!");
}
if (line === 'import packageInfo from "./package.json";') {
const pkgjson = await fsx.readJson(path.join(path.dirname(file), "package.json"));
return `const packageInfo = { version: "${pkgjson.version}" };`;
}
if (line.match(/tagValueProcessor: \(val\) => /)) {
return line.replace("(val)", "(val: string)");
}
if (context.state === null && line.match(/^ *import/)) {
context.state = "import";
}
if (context.state === null && line.match(/^ *export/)) {
context.state = "export";
}
if (context.state === "import" || context.state === "export") {
const match = line.match(/^(.*) from +("|')([^"']+)("|');/);
if (match) {
const importLhs = match[1];
const importFrom = match[3];
context.state = null;
const relpath = [...new Array(depth - 1)].map(() => "..").join("/");
line = await denoifyImport(file, relpath, importLhs, importFrom);
if (depth === 0) {
throw new Error(`denoifyTsFile ${file} - unexpected import to @aws-sdk at depth 0`);
}
}
}
if (file === "deno/shared-ini-file-loader/mod.ts") {
if (line.match(/resolve\(data\);/)) {
return line.replace("data", "data!");
}
}
// Ignore type check on passing Readable chunk to Buffer.from()
if (file === "deno/lib-storage/chunker.ts" || file === "deno/lib-storage/chunks/getDataReadable.ts") {
if (line.match(/Buffer\.from\(/)) {
return ` // @ts-ignore\n${line}`;
}
}
return line;
}
async function denoifyImport(file, relpath, importLhs, importFrom) {
const importFromAWSSDKmatch = importFrom.match(/@aws-sdk\/(.*)/);
if (!importFromAWSSDKmatch || importFrom.match(/@aws-sdk\/hash-node/)) {
const absImportFromMatch = importFrom.match(/^([^.].*)/);
if (absImportFromMatch) {
if (importFrom.startsWith("https://deno.land/std")) {
// ignore
}
switch (importFrom) {
case "@aws-crypto/crc32":
case "@aws-sdk/hash-node":
case "entities":
return `${importLhs} from "https://jspm.dev/${importFrom}";`;
case "fast-xml-parser":
return `${importLhs} from "https://jspm.dev/${importFrom}@3";`;
case "uuid":
return `${importLhs} from "${relpath}/${importFrom}/mod.ts";`;
case "mnemonist/lru-cache":
return `${importLhs} from "${relpath}/lru-cache/mod.ts";`;
case "buffer":
case "child_process":
case "crypto":
case "events":
case "fs":
case "net":
case "os":
case "path":
case "process":
case "stream":
case "url":
return `${importLhs} from "https://deno.land/std@${DENO_STD_VERSION}/node/${importFrom}.ts";`;
case "http":
case "http2":
case "https":
case "nock":
return;
default:
console.error(`Absolute import of: ${importFrom} (${file})`);
}
}
if (!importFrom.endsWith(".ts")) {
const importDir = path.resolve(path.join(file, "..", importFrom));
if (fs.existsSync(importDir)) {
return `${importLhs} from "${importFrom}/index.ts";`;
}
return `${importLhs} from "${importFrom}.ts";`;
}
console.error("import not handled:", file, importFrom);
}
if (importFromAWSSDKmatch) {
const module = importFromAWSSDKmatch[1].replace(/(body-checksum|eventstream-serde)-node/, "$1-browser");
const checkAt = path.resolve(path.join(file, "..", `${relpath}/${module}/mod.ts`));
const exists = await fsx.exists(checkAt);
if (!exists) {
console.error(`denoifyLine ${file} - Cannot find ${checkAt}`);
}
return `${importLhs} from "${relpath}/${module}/mod.ts";`;
}
console.error("import not handled:", file, importFrom);
}
async function copyToDeno(sourceDirs, destinationDir) {
await fsx.emptyDir(destinationDir);
const excludePackages = ["body-checksum-node", "eventstream-serde-node", "md5-js"];
const keepBrowserPackages = [
"body-checksum-browser",
"eventstream-serde-browser",
"hash-blob-browser",
"util-base64-browser",
];
for (const packagesDir of sourceDirs) {
for (const package of await fsx.readdir(packagesDir)) {
if (excludePackages.includes(package)) {
continue;
}
// (using the node flavoured implementations)
// skip implementation packages for native and browser
if (package.endsWith("-native")) {
continue;
}
if (package.endsWith("-browser")) {
if (!keepBrowserPackages.includes(package)) {
continue;
}
}
if (package.endsWith("documentation-generator")) {
continue;
}
await copyPackage(package, path.join(packagesDir, package), destinationDir);
}
}
await denoifyTree(destinationDir, 0);
// Overwrite some packages with a deno implementation instead of editing the node implementation
await copyDenoPackages(sourceDirs, destinationDir);
}
if (require.main === module) {
(async () => {
await copyToDeno(["./clients", "./packages", "./lib"], "./deno");
})();
}
module.exports = {
copyToDeno,
};
| 30.087912 | 119 | 0.610208 |
18325d95f61f7ed59e2f9a751ad4f0649200ac70 | 832 | js | JavaScript | examples/chess/server/resetdb.js | ikhalikov/react-rethinkdb | a1cf6514d2508bb67b86d30dd354bdac95bbd47d | [
"MIT"
] | 960 | 2015-07-02T20:38:54.000Z | 2021-11-08T11:06:33.000Z | examples/chess/server/resetdb.js | ikhalikov/react-rethinkdb | a1cf6514d2508bb67b86d30dd354bdac95bbd47d | [
"MIT"
] | 40 | 2015-07-02T23:26:05.000Z | 2021-01-10T03:17:17.000Z | examples/chess/server/resetdb.js | ikhalikov/react-rethinkdb | a1cf6514d2508bb67b86d30dd354bdac95bbd47d | [
"MIT"
] | 74 | 2015-07-04T14:34:47.000Z | 2022-03-28T02:16:29.000Z | import Promise from 'bluebird';
import {r} from 'rethinkdb-websocket-server';
import cfg from './config';
const connPromise = Promise.promisify(r.connect)({
host: cfg.dbHost,
port: cfg.dbPort,
db: cfg.dbName,
});
const run = q => connPromise.then(c => q.run(c));
console.log('Resetting chess db...');
const recreateDb = name => run(r.dbDrop(name))
.catch(() => {})
.then(() => run(r.dbCreate(name)));
const recreateTable = name => run(r.tableDrop(name))
.catch(() => {})
.then(() => run(r.tableCreate(name)));
recreateDb(cfg.dbName).then(() => (
Promise.all([
recreateTable('games'),
recreateTable('moves'),
])
)).then(() => {
connPromise.then(c => c.close());
console.log('Completed');
});
| 26.83871 | 68 | 0.542067 |
183350f6fe6c8c1cb73ed4d9e772a468f033c70d | 144 | js | JavaScript | assets/grocery_crud/js/jquery_plugins/config/jquery.chosen.config.js | skdude/backend | f7676d48b6e9fe29d440d77f0d1474592e18981e | [
"MIT"
] | null | null | null | assets/grocery_crud/js/jquery_plugins/config/jquery.chosen.config.js | skdude/backend | f7676d48b6e9fe29d440d77f0d1474592e18981e | [
"MIT"
] | null | null | null | assets/grocery_crud/js/jquery_plugins/config/jquery.chosen.config.js | skdude/backend | f7676d48b6e9fe29d440d77f0d1474592e18981e | [
"MIT"
] | null | null | null | $(function(){
$(".chosen-select,.chosen-multiple-select").chosen({
allow_single_deselect:true,
disable_search_threshold: 10
});
}); | 20.571429 | 53 | 0.673611 |
18336a444c39dfede7bfb58f09053d81a74a50a6 | 2,992 | js | JavaScript | packages/horchata/src/util/_identifierContData.js | forivall/tacoscript-incubator | 6754fa7abd43f62d803bd4ad2c3f06a0383139f7 | [
"MIT"
] | 52 | 2015-11-15T18:54:51.000Z | 2021-11-19T01:03:06.000Z | packages/horchata/src/util/_identifierContData.js | forivall/tacoscript-incubator | 6754fa7abd43f62d803bd4ad2c3f06a0383139f7 | [
"MIT"
] | 44 | 2015-10-08T05:11:44.000Z | 2022-03-09T21:05:07.000Z | packages/horchata/src/util/_identifierContData.js | forivall/tacoscript-incubator | 6754fa7abd43f62d803bd4ad2c3f06a0383139f7 | [
"MIT"
] | 5 | 2016-02-23T23:36:26.000Z | 2017-11-21T18:21:14.000Z | export const nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e4-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19b0-\u19c0\u19c8\u19c9\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8d0-\ua8d9\ua8e0-\ua8f1\ua900-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2d\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f";
export const astralIdentifierCodes = [509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,16,9,83,11,168,11,6,9,8,2,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,316,19,13,9,214,6,3,8,112,16,16,9,82,12,9,9,535,9,20855,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,4305,6,792618,239];
| 997.333333 | 2,621 | 0.770053 |
18336dccd199a9acfb23290b7e81eeeabab3091a | 551 | js | JavaScript | runtime/cmd/grepfile.js | baytechc/waasabi-init | 9081a0a4a02074fa6db02386a82b762508c0d3ee | [
"Apache-2.0"
] | null | null | null | runtime/cmd/grepfile.js | baytechc/waasabi-init | 9081a0a4a02074fa6db02386a82b762508c0d3ee | [
"Apache-2.0"
] | 6 | 2021-06-21T19:08:43.000Z | 2021-11-19T14:55:35.000Z | runtime/cmd/grepfile.js | baytechc/waasabi-init | 9081a0a4a02074fa6db02386a82b762508c0d3ee | [
"Apache-2.0"
] | null | null | null | import dispatch from '../dispatch.js'
import cmdRun from './run.js'
import { cmdarg } from '../util.js'
export default async function cmdGrepfile(cmd, rest) {
const pattern = rest.shift()
const fileName = cmdarg(cmd)
console.log(':: grep for '+pattern+' in '+fileName)
const subcmd = [
'grep',
'-Pom1',
'--color=never',
pattern,
fileName
]
const res = await cmdRun(subcmd)
res.out = res.out?.trimEnd('\n') ?? ''
if (rest?.length) {
console.log(rest)
return await dispatch(rest, res)
}
return res
}
| 19.678571 | 54 | 0.62069 |