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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
05b64fec251e553ddd52c1e28ed0633377b108bd | 1,066 | js | JavaScript | server/scripts/videorecorder.js | abhishekm47/WebRTC-Server-Python | 78bcc00bc0d42e8cb1c4632dda850b9f63e42c45 | [
"MIT"
] | 3 | 2021-07-31T14:18:05.000Z | 2021-09-06T14:59:04.000Z | server/scripts/videorecorder.js | abhishekm47/WebRTC-Server-Python | 78bcc00bc0d42e8cb1c4632dda850b9f63e42c45 | [
"MIT"
] | null | null | null | server/scripts/videorecorder.js | abhishekm47/WebRTC-Server-Python | 78bcc00bc0d42e8cb1c4632dda850b9f63e42c45 | [
"MIT"
] | 1 | 2021-07-25T08:32:19.000Z | 2021-07-25T08:32:19.000Z |
(function(scope) {
function VideoRecorder(bufferLength, media, video, canvas, format, quality) {
format = format || "image/jpeg";
quality = quality || 0.8;
var frameRate = 60;
var canvasCtx = canvas.getContext("2d");
var width = canvas.width;
var height = canvas.height;
var frameRequestId = null;
var videoStreamUrl = media;
var frames = new fQueue(frameRate*bufferLength);
video.srcObject = videoStreamUrl;
function drawVideoFrame(time) {
frameRequestId = requestAnimationFrame(drawVideoFrame);
canvasCtx.drawImage(video, 0, 0, width, height);
frames.enqueue(canvas.toDataURL(format, quality));
};
this.start = function() {
requestAnimationFrame(drawVideoFrame);
};
this.stop = function() {
cancelAnimationFrame(frameRequestId);
URL.revokeObjectURL(videoStreamUrl);
};
this.getBuffer = function() {
return frames;
};
this.getFrameRate = function() {
return frameRate;
};
}
scope.VideoRecorder = VideoRecorder;
})(window); | 25.380952 | 78 | 0.657598 |
05b666888a0c78b6a0fcf62cb28dc609f0f220c6 | 2,873 | js | JavaScript | lib/role-methods.js | Jaswal1p/stunning-staff-tracker | e52f5d2154c422387485edd7a7d62571313c958d | [
"MIT"
] | null | null | null | lib/role-methods.js | Jaswal1p/stunning-staff-tracker | e52f5d2154c422387485edd7a7d62571313c958d | [
"MIT"
] | null | null | null | lib/role-methods.js | Jaswal1p/stunning-staff-tracker | e52f5d2154c422387485edd7a7d62571313c958d | [
"MIT"
] | null | null | null | const inquirer = require('inquirer');
const mysql = require('mysql2');
const { promptUser } = require('../server');
// connection to the database as on the employee-methods.js and department-methods.js files
const connection = require('../db/connection');
const viewAllRole = () => {
connection.query(
`SELECT role.id, role.title, role.salary, department.name
FROM role
LEFT JOIN department
ON role.department_id = department.id`,
function (err, results, fields) {
if (err) {
console.log(err.message);
return;
}
console.table(results);
promptUser();
}
);
};
const addRole = () => {
connection.query(
`SELECT * FROM department`,
function (err, results, fields) {
if (err) {
console.log(err);
return;
}
let deptArr = [];
results.forEach(item => {
deptArr.push(item.name)
})
inquirer
.prompt([
{
type: 'text',
name: 'role_title',
message: 'Please enter the name of the role you would like to add: '
},
{
type: 'number',
name: 'salary',
message: 'Please enter the salary for this role: NOTE: Do not use commas and/or periods'
},
{
type: 'list',
name: 'department',
message: 'Please select the department where this role will be added',
choices: deptArr
}
])
.then((data) => {
let department_id;
for (let i = 0; i < deptArr.length; i++) {
if (deptArr[i] === data.department) {
department_id = i + 1;
};
};
connection.query(
`INSERT INTO role (title, salary, department_id)
VALUES(?, ?, ?)`,
[data.role_title, data.salary, department_id],
function (err, results, fields) {
if (err) {
console.log(err.message);
return;
}
console.log('Role added!')
// viewAllRole();
promptUser();
}
);
});
}
);
};
module.exports = { viewAllRole, addRole }; | 31.228261 | 112 | 0.390184 |
05b8d48bf65037d6a7dde8c61659de57f24de382 | 725 | js | JavaScript | src/components/socialCard.js | AkLato/recepty | 770cd00f8e8449a10cb73ffe0b20fc961c2378f4 | [
"MIT"
] | null | null | null | src/components/socialCard.js | AkLato/recepty | 770cd00f8e8449a10cb73ffe0b20fc961c2378f4 | [
"MIT"
] | null | null | null | src/components/socialCard.js | AkLato/recepty | 770cd00f8e8449a10cb73ffe0b20fc961c2378f4 | [
"MIT"
] | null | null | null | import React from "react"
import socialCardStyles from "./socialCard.module.scss"
const Card = () => {
return (
<div>
<div className={socialCardStyles.card}>
<div className={socialCardStyles.bg}>
<p>Bc. Tomáš Rajsigl</p>
<p>JavaScript Dev </p>
<a href="https://www.aklato.eu/">
<p>Portfolio</p>{" "}
</a>
<span>
<a href="mailto:rajsigltom@gmail.com">
<button>Mail</button>
</a>
<a href="https://www.linkedin.com/in/tom%C3%A1%C5%A1-rajsigl-660683b9/">
<button>LinkedIn</button>
</a>
</span>
</div>
</div>
</div>
)
}
export default Card
| 25 | 84 | 0.50069 |
05b99f6fe68c8a76389bc964f6aaef7b66db10fa | 129 | js | JavaScript | public/fontend/js/custom.js | Xanraxinhi/AmazingBridge | ff18cf79a126ed378d06c66f088bf244095b0a60 | [
"MIT"
] | null | null | null | public/fontend/js/custom.js | Xanraxinhi/AmazingBridge | ff18cf79a126ed378d06c66f088bf244095b0a60 | [
"MIT"
] | null | null | null | public/fontend/js/custom.js | Xanraxinhi/AmazingBridge | ff18cf79a126ed378d06c66f088bf244095b0a60 | [
"MIT"
] | null | null | null | $('#comp-kdt8vq011').on("click",function () {
console.log(2);
$('#comp-kdt8vpzfinlineContent').removeClass('active');
})
| 25.8 | 59 | 0.627907 |
0539501378e4ad9658c2c8510eece96cb9e68ece | 483 | js | JavaScript | twitter-clone/src/components/SignUpBtn.js | mhmdali102/ReactJS | 8802fe260c8122d0a701abd159f752c6f689ad43 | [
"MIT"
] | 1 | 2021-12-30T00:06:01.000Z | 2021-12-30T00:06:01.000Z | twitter-clone/src/components/SignUpBtn.js | mhmdali102/ReactJS | 8802fe260c8122d0a701abd159f752c6f689ad43 | [
"MIT"
] | null | null | null | twitter-clone/src/components/SignUpBtn.js | mhmdali102/ReactJS | 8802fe260c8122d0a701abd159f752c6f689ad43 | [
"MIT"
] | null | null | null | import styles from "./SignUpBtn.module.css";
const SignUpBtn = ({
Icon,
text,
bgColor,
color,
border,
bold,
action,
error,
}) => {
return (
<button
className={`${styles.btn} ${border && styles.brdr} ${bold && styles.bld}`}
style={{ backgroundColor: bgColor, color }}
onClick={action}
disabled={error ? "disabled" : ""}
>
{Icon && <Icon className={styles.icon} />}
{text}
</button>
);
};
export default SignUpBtn;
| 17.888889 | 80 | 0.565217 |
053a66b3dfc6daaa0598639c2bce7b00c5c08872 | 147 | js | JavaScript | src/server/settings-app/src/js/components/Dashboard.js | gebv/gong | 8538f22ef1132df0fe529d964246f1b5059f4a61 | [
"MIT"
] | 3 | 2016-03-18T04:25:56.000Z | 2017-09-01T20:56:45.000Z | src/server/settings-app/src/js/components/Dashboard.js | gebv/gong | 8538f22ef1132df0fe529d964246f1b5059f4a61 | [
"MIT"
] | 3 | 2016-04-03T05:51:59.000Z | 2016-04-13T06:25:38.000Z | src/server/settings-app/src/js/components/Dashboard.js | gebv/gong | 8538f22ef1132df0fe529d964246f1b5059f4a61 | [
"MIT"
] | null | null | null | var m = require("mithril");
var Component = {
view: function(c, args) {
return <h1>Dashboard</h1>
}
}
module.exports = Component; | 16.333333 | 33 | 0.598639 |
053aa3c1642aa0ac4da541aab406ac2b1fa4fd65 | 9,521 | js | JavaScript | controls/Select2Control.js | BackboneBootstrap/backbonebootstrap-core | 92ad1a92786b4dbd6e05bacdb4e6e9c29c0944ff | [
"Apache-2.0"
] | 1 | 2015-04-07T20:53:42.000Z | 2015-04-07T20:53:42.000Z | controls/Select2Control.js | BackboneBootstrap/backbonebootstrap-core | 92ad1a92786b4dbd6e05bacdb4e6e9c29c0944ff | [
"Apache-2.0"
] | null | null | null | controls/Select2Control.js | BackboneBootstrap/backbonebootstrap-core | 92ad1a92786b4dbd6e05bacdb4e6e9c29c0944ff | [
"Apache-2.0"
] | null | null | null | /*globals define*/
define( [
'jquery', 'lodash', 'require', 'select2', 'select2_locale',
'src/models/BaseCollection',
'src/utils/mixins/evaluate',
'src/controls/InputControl',
'src/utils/convert'
], function(
$, _, require, select2, select2_locale,
BaseCollection,
_evaluate,
InputControl,
convert
){
'use strict';
var Select2Control = InputControl.extend({
initialize: function(options) {
options = options || {};
_.defaults(this, options);
_.bindAll(this, 'queryHandler', 'initSelectionHandler',
'onCollectionReset', '_formatResult');
this.type = this.type || 'select2combo';
this.addSupportedType(this.type);
this.inputType = 'hidden';
if (this.collection) {
// can be a function returning a new collection instance
this.collection = _.result(this, 'collection');
} else if (_.isFunction(this.Collection)) {
this.collection = new this.Collection();
} else {
throw new Error('no collection instance nor Collection constructor specified');
}
// already used options.collection and options.Collection
// don't want BaseControl.initialize to process them again
options = _.omit(options, ['collection', 'Collection']);
// query to pass to collection
// it will be added to the query to filter by the input of the user
this.query = options.query || undefined;
//safety check
if (!BaseCollection) BaseCollection = require('src/models/BaseCollection');
if (!this.collection instanceof BaseCollection) {
throw new Error('could not instantiate source collection');
}
// don't fetch total number of records from select2 controls
this.collection.fetchTotal = false;
// this.order
this.order = this.order || '';
this.multiple = this.multiple === undefined ? false : this.multiple;
// idAttribute
this.idAttribute = this.idAttribute || this.collection.model.prototype.idAttribute;
if (!this.idAttribute) throw new Error('no idAttribute specified');
if (!this.display) throw new Error('no display function or attribute specified');
if (_.isString(this.display)) this.filterAttributes = this.display;
if (!this.filterAttributes) {
// throw new Error('no filterAttributes specified for field ' + this.field.name);
}
InputControl.prototype.initialize.call(this, options);
this.columns = this.columns || undefined;
this.initializeColumns();
},
init: function() {
// #TODO: bug
// this should be initialized in initialize, but
// afterRender is called in a different context (this) than initialize
// and onCollectionRest
// there are controls instantiated for each field!
this.listenTo(this.collection, 'reset', this.onCollectionReset);
},
afterRender: function() {
this.$input.select2({
multiple : this.multiple,
query : this.queryHandler,
initSelection : this.initSelectionHandler,
allowClear : true,
// width : '500px',
dropdownAutoWidth : true,
formatResult : this.formatResult
});
// #TODO: use select2 events - events test
// this.$input.on('select2-focus', function() { console.log('select2-focus');} );
// this.$input.on('select2-blur', function() { console.log('select2-blur');} );
//super.afterRender
InputControl.prototype.afterRender.apply(this, arguments);
return this;
},
initSelectionHandler: function(element, callback) {
var data = this.getRowData(this.field.val());
callback(data);
},
onCollectionReset: function(collection) {
var data = [];
_.each(this.collection.models, function(model) {
data.push(this.getRowData(model.attributes));
}, this);
// prepare object to pass back to select2
var results = {
results : data,
more : collection.more,
context : this
};
if (this.queryCallback) this.queryCallback(results);
},
getRowData: function(attrs) {
var data = {
id : _.evaluate(attrs, this.idAttribute),
text : _.evaluate(attrs, this.display)
};
// if there are any columns defined
// save all the attributes to be used from the
// display function of each column
if (this.columns) data.attrs = attrs;
return data;
},
// check http://ivaynberg.github.com/select2/ (query parameter)
queryHandler: function(options) {
var queryParams = {
filter : options.term || '',
filterBy : this.filterAttributes,
page : options.page || 1,
order : this.order,
len : 10,
query : _.isFunction(this.query) ? this.query(options) : this.query
};
// save the callback for calling it later
this.queryCallback = options.callback;
this.collection.setParams(queryParams).fetch();
},
renderHtmlErrors: function(field, $container, $input, $error) {
var $select2Input = $container.find('a.select2-choice');
// super.renderHtmlErrors
InputControl.prototype.renderHtmlErrors.call(this,
field, $container, $select2Input, $error
);
},
// columns handling functions
/**
* Initializes the controls to display in the drop down combo.
*
* Select2Control allows you to specify an array of fields/expressions to
* show in a drop down table.
*
* The array should contain an object with the display field or display
* expresson and the width of the column.
*
* The display property can be a string representing the field to show, or a
* function to calculate the expression to show in that column. The function
* will receive the attrbutes of the model
*
* Example:
*
* columns : [
* { display: 'ZonaId', width: '10' },
* { display: 'Codigo', width: '20' },
* {
* display: function(attrs) {
* return attrs.Descripcion + ' (' + attrs.Codigo + ')';
* },
* width: '50'
* }
* ]
*
* Here we define three columns. The first two will show the fields ZonaId and
* Codigo, and the last one will display the evaluation of a function. The
* width of each column will be calculated proportionally to the total width
* of all of them.
*
* @return {[type]} [description]
*/
initializeColumns: function() {
// no columns defined
if (!this.columns || this.columns.length === 0) {
this.columns = undefined;
this.formatResult = undefined;
return;
}
// columns defined as a string
// format: col1:10,col2:30
if (_.isString(this.columns)) {
var columns = this.columns;
this.columns = [];
var withWidth = columns.split(',');
_.each(withWidth, function(column) {
var pair = column.split(':');
this.columns.push({
display : pair[0],
width : pair.length === 0 ? null : pair[1]
});
}, this);
}
// helper function to calculate the total width of the columns
var sumWidth = function(columns) {
return _.reduce(columns, function(memo, column) {
return memo + parseInt(column.width || 0, 10);
}, 0);
};
var totalWidth = sumWidth(this.columns);
// handle columns with no width specified
var colsWithNoWidth = _.filter(this.columns, function(column) {
return !column.width;
});
// there's at least one column with no width
if (colsWithNoWidth.length > 0) {
var defWidth;
// calculate default column, just take the average
if (totalWidth === 0) defWidth = 10;
else defWidth = totalWidth / this.columns.length;
_.each(colsWithNoWidth, function(column) {
column.width = defWidth.toString();
});
// recalculate total width
totalWidth = sumWidth(this.columns);
}
_.each(this.columns, function(column) {
if (!column.display) throw new Error('no display value specified for column');
// if it's a string, it's the name of the field
// create a function that return the attribute with that name
if (_.isString(column.display)) {
var field = column.display;
column.display = function(attrs) {
return attrs[field];
};
} else if (!_.isFunction(column.display)) {
throw new Error('column.display should be a string representing a field name or a function');
}
// calculate width
column.width = convert.truncate(column.width * 100 / totalWidth).toString();
});
// add the difference to the first column
var diff = 100 - sumWidth(this.columns);
if (diff > 0) {
this.columns[0].width =
(parseInt(this.columns[0].width, 10) + diff).toString();
}
this.formatResult = this._formatResult;
},
// helper function to highlight some text
highlight: function(text, search, before, after) {
if (!search || !text) return text;
before = before || '<span class="select2-match">';
after = after || '</span>';
var pattern = new RegExp('(' + search + ')', 'igm');
return text.replace(pattern, before + '$1' + after);
},
_formatResult: function(data, container, query) {
var attrs = data.attrs,
html = '<table width="100%"><tr>';
_.each(this.columns, function(column) {
html += '<td width="' + column.width + '%">' +
this.highlight(column.display(attrs).toString(), query.term) +
'</td>';
}, this);
html += '</tr></table>';
return html;
}
});
return Select2Control;
});
| 30.225397 | 101 | 0.630186 |
053bddd7df3ce7a6cb6b746aada13eb3daf01f00 | 2,495 | js | JavaScript | router/messegs.js | AaronWangCong/wangcongblog-server | 77dfcacb52757f684d24219ed89aff7d67f954d0 | [
"MIT"
] | 1 | 2019-04-25T08:06:54.000Z | 2019-04-25T08:06:54.000Z | router/messegs.js | AaronWangCong/wangcongblog-server | 77dfcacb52757f684d24219ed89aff7d67f954d0 | [
"MIT"
] | null | null | null | router/messegs.js | AaronWangCong/wangcongblog-server | 77dfcacb52757f684d24219ed89aff7d67f954d0 | [
"MIT"
] | null | null | null | const router = require('koa-router')();
const Utils = require('../utils');
const Tips = require('../utils/tip');
const db = require('../db');
//创建一个弹幕
router.post('/oa/messegsAdd',async (ctx,next)=>{
let data = Utils.filter(ctx.request.body, ['msg','name']);
let res = Utils.formatData(data, [
{key: 'msg', type: 'string'},
{key: 'name', type: 'string'}
]);
if (!res) return ctx.body = Tips[1007];
let {msg = '', name = '', create_time = '', random_color = '', top = 0, time = 0} = data;
create_time = Utils.formatCurrentTime(create_time);
random_color = Utils.randomColor(random_color);
top = Math.floor(Math.random()*300+50);
time = Math.floor(Math.random()*10+1);
let sql = `INSERT INTO t_msg(msg,create_time,top,time,name,random_color) VALUES(?,?,?,?,?,?)`,
value = [msg, create_time, top, time, name, random_color];
await db.query(sql, value).then(res => {
ctx.body = {
...Tips[0]
}
}).catch(() => {
ctx.body = Tips[1002];
})
});
//查询所有消息
router.get('/oa/noticeMessige', async (ctx, next) => {
await db.query('SELECT * FROM t_msg').then(res => {
if (res.length > 0) {
ctx.body = {
...Tips[0],
flag: true,
rows: res
};
} else {
ctx.body = Tips[1003];
}
}).catch(() => {
ctx.body = Tips[1002];
})
})
//添加首页滚屏通知
router.post('/oa/addnotice',async (ctx,next)=>{
let data = Utils.filter(ctx.request.body, ['msg']);
let res = Utils.formatData(data, [
{key: 'msg', type: 'string'}
]);
if (!res) return ctx.body = Tips[1007];
let {msg = '', create_time = ''} = data;
create_time = Utils.formatCurrentTime(create_time);
let sql = `INSERT INTO t_notice(msg,create_time) VALUES(?,?)`,
value = [msg, create_time];
await db.query(sql, value).then(res => {
ctx.body = {
...Tips[0]
}
}).catch(() => {
ctx.body = Tips[1002];
})
});
//查询首页滚屏通知
router.get('/oa/noticeInfo', async (ctx, next) => {
await db.query('SELECT * FROM t_notice').then(res => {
if (res.length > 0) {
ctx.body = {
...Tips[0],
rows: res
};
} else {
console.log(res)
ctx.body = Tips[1003];
}
}).catch(() => {
console.log('1002',res)
ctx.body = Tips[1002];
})
})
module.exports = router; | 29.702381 | 96 | 0.513427 |
053bf8942bef35090ba3a8a09a6bbc2c053349a9 | 850 | js | JavaScript | src/containers/NavBar.js | Radivarig/react-redux-template | ad70d73c4fdf3f356cdcfd0192588e75ad3dc64b | [
"MIT"
] | null | null | null | src/containers/NavBar.js | Radivarig/react-redux-template | ad70d73c4fdf3f356cdcfd0192588e75ad3dc64b | [
"MIT"
] | null | null | null | src/containers/NavBar.js | Radivarig/react-redux-template | ad70d73c4fdf3f356cdcfd0192588e75ad3dc64b | [
"MIT"
] | null | null | null | import React from "react"
import { connect } from "react-redux"
import { push } from "connected-react-router"
export const mapStateToProps = (state) => {
return {
"counter": state.counter,
}
}
export const mapDispatchToProps = (dispatch) => ({
"increment": () => dispatch ({ "type": "COUNTER_PLUS_ONE" }),
"push": (path) => dispatch (push (path)),
})
let NavBar = (props) => {
return (
<div>
<button onClick={() => props.push ("/foo")}>Foo</button>
<button onClick={() => props.push ("/bar")}>Bar</button>
<button onClick={() => props.push ("/somecomponent")}>Some component</button>
<hr />
Counter: {props.counter}
<button onClick={props.increment}>Increment</button>
<hr />
</div>
)
}
NavBar = connect (
mapStateToProps,
mapDispatchToProps,
) (NavBar)
export default NavBar
| 24.285714 | 83 | 0.610588 |
053c98847c18979901213d55a8725cdb5c6ffcba | 510 | js | JavaScript | src/store/modules/gateway.js | heroicNeZha/AnalysisEngine | 132f125262df90404ea9981c0a2dfafe596db49d | [
"MIT"
] | null | null | null | src/store/modules/gateway.js | heroicNeZha/AnalysisEngine | 132f125262df90404ea9981c0a2dfafe596db49d | [
"MIT"
] | null | null | null | src/store/modules/gateway.js | heroicNeZha/AnalysisEngine | 132f125262df90404ea9981c0a2dfafe596db49d | [
"MIT"
] | 3 | 2020-03-19T15:32:21.000Z | 2021-04-16T10:51:33.000Z | import { addGateway } from '@/api/gateway'
const actions = {
// gateway add
add({ commit }, gatewayForm) {
const { name, description, type, companyId } = gatewayForm
return new Promise((resolve, reject) => {
addGateway({ name: name.trim(), description: description, type: type, companyId: companyId }).then(response => {
console.log(response)
resolve()
}).catch(error => {
reject(error)
})
})
}
}
export default {
namespaced: true,
actions
}
| 21.25 | 118 | 0.601961 |
053cf9b4d2c6d7c3b3ede595492b3ebad082ffb0 | 1,832 | js | JavaScript | 2020/day07/part2.js | mfederczuk/advent-of-code-2020 | 4406692ee1c63b00a9c83029b15c857eed86432e | [
"Apache-2.0"
] | 2 | 2021-01-11T17:46:19.000Z | 2021-01-11T17:47:07.000Z | 2020/day07/part2.js | mfederczuk/advent-of-code-2020 | 4406692ee1c63b00a9c83029b15c857eed86432e | [
"Apache-2.0"
] | null | null | null | 2020/day07/part2.js | mfederczuk/advent-of-code-2020 | 4406692ee1c63b00a9c83029b15c857eed86432e | [
"Apache-2.0"
] | 1 | 2020-12-02T16:00:59.000Z | 2020-12-02T16:00:59.000Z | /*
* Copyright (c) 2020 Michael Federczuk
*
* SPDX-License-Identifier: MPL-2.0 AND Apache-2.0
*/
import { readFileSync } from "fs";
let inputFilePath = "example_input_1";
if(process.argv.length >= 3) inputFilePath = process.argv[2];
const inputFile = readFileSync(inputFilePath).toString();
String.prototype.removeSuffix = function(suffix) {
if(suffix instanceof RegExp) {
const match = this.match(suffix);
if(match.groups["suffix"]) {
return this.substring(0, this.length - match.groups["suffix"].length);
}
} else if(this.endsWith(suffix)) {
return this.substring(0, this.length - suffix.length);
}
return this;
};
/**
* {
* [color: string]: [amount: number, color: string][]
* }
*/
const bags = inputFile.trim()
.split("\n")
.map((s) => (s.removeSuffix(".")))
.reduce((bags, s) => {
const match = s.match(/^(?<bag>.*) bags contain (?<childBags>.*)$/);
const childBags = match.groups["childBags"]
.split(", ")
.map((s) => (s.removeSuffix(/(?<suffix> bag(s)?)$/)))
.reduce((childBags, s) => {
const match = s.match(/^(?<amount>\d+) (?<color>.*)$/);
if(match !== null) {
childBags.push([
Number(match.groups["amount"]),
match.groups["color"]
]);
}
return childBags;
}, []);
bags[match.groups["bag"]] = childBags;
return bags;
}, {});
const ourBagColor = "shiny gold";
/*
* I'm sure that there is a better way to do it, but I'm to lazy to keep working on it.
* It works, that's all that matters.
*/
function countBags(accumulator, bagColor) {
const childBags = bags[bagColor];
childBags.forEach((childBag) => {
for(let i = 0; i < childBag[0]; ++i) {
++accumulator;
accumulator = countBags(accumulator, childBag[1]);
}
});
return accumulator;
}
console.log(countBags(0, ourBagColor));
| 24.756757 | 87 | 0.612445 |
053de4dee48c1ece9e0e1298fa190e8201608cdd | 2,399 | js | JavaScript | Src/Resource.js | MattMayuga/MeteorStriker | fcb12cf9d379deada2c5aded85ec9ddf0729254d | [
"CC-BY-3.0"
] | null | null | null | Src/Resource.js | MattMayuga/MeteorStriker | fcb12cf9d379deada2c5aded85ec9ddf0729254d | [
"CC-BY-3.0"
] | null | null | null | Src/Resource.js | MattMayuga/MeteorStriker | fcb12cf9d379deada2c5aded85ec9ddf0729254d | [
"CC-BY-3.0"
] | 4 | 2019-05-21T05:37:01.000Z | 2020-10-04T18:05:13.000Z | /** @const リソースファイル設定 */
var rc = (()=>{
return{
/** リソースディレクトリ */
DIRECTORY : "../Res/",
/** 画像 */
img : {
devLogo : [ "Text/devLogo.png", 1, 1, ], //開発者ロゴ
title : [ "Text/title.png", 1, 1, ], //タイトルロゴ
bgGround : [ "Bg/bgGround.png", 1, 1, ], //背景(地上)
bgSpace : [ "Bg/bgSpace.png", 1, 1, ], //背景(宇宙)
bgLaunch : [ "Text/bgLaunch.png", 1, 1, ], //背景(シーン開始テキスト)
player : [ "Actor/momoko.png", 4, 4, ], //プレイヤーキャラクター
navigator : [ "Text/navigator.png", 5, 5, ], //ナビゲーターアイコン
aimCursor : [ "Aim/aimCur.png", 2, 2, ], //エイミングカーソル
aimBar : [ "Aim/aimBar.png", 1, 1, ], //エイミングゲージ
aimValue : [ "Aim/aimValue.png", 4, 3, ], //エイミング値
hitArea : [ "Aim/hitArea.png", 1, 4, ], //ヒット領域
meteor : [ "Actor/meteor.png", 2, 2, ], //メテオ
distance : [ "Text/distance.png", 1, 1, ], //飛距離表示
txtLaunch : [ "Text/txtLaunch.png", 1, 2, ], //シーン入場テキスト
balloonTail : [ "Text/balloonTail.png", 1, 1, ], //フキダシしっぽ
achievement : [ "Text/achievement.png", 4, 4, ], //実績アイコン
flare : [ "Fx/fxFlare.png", 1, 1, ], //隕石エフェクト
explosion : [ "Fx/fxExplosion.png", 1, 1, ], //爆発エフェクト
flyFx : [ "Fx/fxFly.png", 1, 1, ], //プレイヤーエフェクト
hitFx : [ "Fx/fxHit.png", 2, 4, ], //ヒットエフェクト
preliminaryFx : [ "Fx/fxPreliminary.png", 1, 1, ], //予備動作エフェクト
emitFx : [ "Fx/fxEmit.png", 4, 2, ], //エミットエフェクト
touched : [ "Fx/fxTouch.png", 4, 2, ], //タッチエフェクト
navigationButton: [ "Ui/btnNavigation.png", 2, 3, ], //ナビゲーションボタン
titleButton : [ "Ui/btnTitle.png", 4, 6, ], //タイトル画面等のボタン
labelButton : [ "Ui/btnLabel.png", 1, 1, ], //ラベル付きボタン
lockPanel : [ "Ui/lockPanel.png", 1, 2, ], //ロック表示パネル
},
/** サウンド */
sfx : {
btnHover: "Ui/hover.mp3",
btnClick: "Ui/click.mp3",
achievement: "Ui/achievement.mp3",
hit: "hit.mp3",
explosion: "explosion.mp3",
fail: "fail.mp3",
emit: "emit.mp3",
preliminary: "preliminary.mp3",
txtLaunch: "Ui/hover.mp3",
},
bgm : {
meteorite: "meteorite.mp3",
strike: "strike.mp3",
},
/** システム用 */
sysImg : {
white : "Sys/white.png",
},
sysAudio:{
void: "Sys/void.mp3",
},
/** フォント名 */
font : {
talk : { Family:"Kosugi Maru", },
distance : { Family:"VT323", },
},
};
})();
var g_resources = [];
for(let i in rc.sysImg) g_resources.push(`${rc.DIRECTORY}${rc.sysImg[i]}`);
for(let i in rc.img) g_resources.push(`${rc.DIRECTORY}Img/${rc.img[i][0]}`);
| 29.617284 | 76 | 0.55273 |
053de5fa9ec59d1af5b43d999cd685abd34e4b9c | 3,122 | js | JavaScript | node_modules/caniuse-lite/data/regions/YE.js | KruthikaShyamSundar/wildlife_park | 60023d7d513691c615f9120d6407427c5d49c23c | [
"MIT"
] | 77 | 2021-05-10T06:48:19.000Z | 2022-03-28T05:51:24.000Z | node_modules/caniuse-lite/data/regions/YE.js | KruthikaShyamSundar/wildlife_park | 60023d7d513691c615f9120d6407427c5d49c23c | [
"MIT"
] | 42 | 2021-09-27T21:21:51.000Z | 2022-03-16T21:28:44.000Z | node_modules/caniuse-lite/data/regions/YE.js | KruthikaShyamSundar/wildlife_park | 60023d7d513691c615f9120d6407427c5d49c23c | [
"MIT"
] | 14 | 2021-06-03T15:58:14.000Z | 2022-03-17T17:44:03.000Z | module.exports={C:{"3":0.05097,"44":0.00232,"45":0.00927,"47":0.00695,"49":0.00695,"50":0.00463,"51":0.00232,"52":0.07414,"54":0.00232,"56":0.01159,"57":0.00463,"59":0.00695,"60":0.00463,"61":0.00463,"62":0.00927,"63":0.00463,"64":0.00232,"65":0.00695,"66":0.00463,"67":0.00232,"68":0.00232,"69":0.00463,"72":0.02085,"77":0.00927,"78":0.01159,"80":0.00232,"83":0.00232,"84":0.00695,"85":0.00232,"86":0.00463,"87":0.00463,"88":0.00695,"89":0.0139,"90":0.00232,"91":0.01622,"92":0.01854,"93":0.00927,"94":0.52828,"95":1.35313,"96":0.00695,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 46 48 53 55 58 70 71 73 74 75 76 79 81 82 97 3.5 3.6"},D:{"37":0.01854,"40":0.00232,"43":0.00232,"46":0.00463,"48":0.00463,"49":0.01854,"50":0.00232,"52":0.00232,"53":0.00695,"55":0.00927,"56":0.01622,"57":0.01159,"58":0.00232,"60":0.00232,"62":0.00232,"63":0.02085,"64":0.00695,"65":0.00695,"66":0.00927,"67":0.00695,"68":0.00927,"69":0.01159,"70":0.0139,"71":0.0139,"72":0.01622,"73":0.01159,"74":0.02549,"75":0.01622,"76":0.01159,"77":0.00927,"78":0.02085,"79":0.06024,"80":0.03244,"81":0.02085,"83":0.04866,"84":0.0139,"85":0.02317,"86":0.08805,"87":0.06951,"88":0.03707,"89":0.095,"90":0.04634,"91":0.09963,"92":0.16914,"93":0.09268,"94":0.18304,"95":0.42401,"96":8.5868,"98":0.00695,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 41 42 44 45 47 51 54 59 61 97 99"},F:{"28":0.00232,"65":0.03244,"66":0.0139,"68":0.00695,"79":0.01159,"80":0.00463,"81":0.06024,"82":0.10658,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 67 69 70 71 72 73 74 75 76 77 78 9.5-9.6 10.5 10.6 11.1 11.5 11.6 12.1","10.0-10.1":0},E:{"4":0,"14":0.0139,"15":0.00463,_:"0 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1","13.1":0.00232,"14.1":0.02549,"15.1":0.04171,"15.2":0.00695},B:{"12":0.00232,"13":0.00232,"17":0.0278,"18":0.00232,"84":0.01854,"85":0.00695,"89":0.00927,"90":0.00927,"92":0.01622,"93":0.00695,"94":0.01854,"95":0.03476,"96":0.83412,_:"14 15 16 79 80 81 83 86 87 88 91"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.01544,"5.0-5.1":0.00061,"6.0-6.1":0.00138,"7.0-7.1":0.0162,"8.1-8.4":0.00092,"9.0-9.2":0,"9.3":0.00352,"10.0-10.2":0.00535,"10.3":0.00886,"11.0-11.2":0.0162,"11.3-11.4":0.00535,"12.0-12.1":0.02461,"12.2-12.5":0.19044,"13.0-13.1":0.00627,"13.2":0.00459,"13.3":0.02262,"13.4-13.7":0.04769,"14.0-14.4":0.39983,"14.5-14.8":0.33747,"15.0-15.1":0.38684,"15.2":0.03454},P:{"4":0.22115,"5.0-5.4":0.08042,"6.2-6.4":0.0201,"7.2-7.4":0.17089,"8.2":0.03037,"9.2":0.22115,"10.1":0.05026,"11.1-11.2":0.25131,"12.0":0.08042,"13.0":0.31162,"14.0":0.26136,"15.0":0.74386},I:{"0":0,"3":0,"4":0.00093,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00774,"4.2-4.3":0.00867,"4.4":0,"4.4.3-4.4.4":0.11326},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"11":0.03476,_:"6 7 8 9 10 5.5"},N:{"11":0.04513,_:"10"},J:{"7":0,"10":0},O:{"0":5.61554},H:{"0":13.87654},L:{"0":59.42471},S:{"2.5":0},R:{_:"0"},M:{"0":0.36874},Q:{"10.4":0}};
| 1,561 | 3,121 | 0.589366 |
053deb62733dc162328ba1b946c8fc06b2e13a8a | 81 | js | JavaScript | src/styleguide/mock-data/data-object/video.js | verstaerker/koel-theme-new-feathers | 486ac296347a99cfc5b76dad8ab178a66c9f9ead | [
"MIT"
] | 8 | 2018-04-03T15:24:48.000Z | 2022-02-22T12:43:40.000Z | src/styleguide/mock-data/data-object/video.js | verstaerker/koel-theme-new-feathers | 486ac296347a99cfc5b76dad8ab178a66c9f9ead | [
"MIT"
] | 162 | 2018-04-05T14:31:53.000Z | 2022-03-30T08:48:55.000Z | src/styleguide/mock-data/data-object/video.js | verstaerker/koel-theme-new-feathers | 486ac296347a99cfc5b76dad8ab178a66c9f9ead | [
"MIT"
] | 4 | 2018-09-10T09:55:27.000Z | 2020-03-30T14:01:03.000Z | export default {
youtubeUrl: 'https://www.youtube.com/watch?v=rSSPwrdGx-M',
};
| 20.25 | 60 | 0.703704 |
053f5126bceeca8b82ee5c2a93083a2b53b6f025 | 1,072 | js | JavaScript | tests/fixtures/usersRoles.js | ArchiCroc/pup-plus | 71271c080981ce953573cffd27cf8f73a6073490 | [
"MIT"
] | 4 | 2019-10-10T08:50:11.000Z | 2022-03-29T04:36:42.000Z | tests/fixtures/usersRoles.js | ArchiCroc/pup-plus | 71271c080981ce953573cffd27cf8f73a6073490 | [
"MIT"
] | null | null | null | tests/fixtures/usersRoles.js | ArchiCroc/pup-plus | 71271c080981ce953573cffd27cf8f73a6073490 | [
"MIT"
] | 3 | 2019-12-07T08:23:22.000Z | 2020-07-27T12:27:36.000Z | import faker from 'faker';
export function getInitialItems() {
return [];
}
export function getMockItem(random, includeOptional = true) {
random = random || Math.floor(Math.random() * 1000);
faker.seed(random);
return {
_id: undefined,
name: faker.lorem.slug().substr(0, 64),
createdAt: faker.date.past(10),
createdBy: {
__crossReference: 'Users',
query: 'users',
edges: 'users',
labelKey: 'fullName',
valueKey: '_id',
idType: 'String',
variables: { roles: 'user' },
key: 'createdById',
label: faker.helpers.randomize(['Test Admin01', 'Test User01', 'Test User02']),
},
updatedAt: faker.date.past(1),
updatedBy: {
__crossReference: 'Users',
query: 'users',
edges: 'users',
labelKey: 'fullName',
valueKey: '_id',
idType: 'String',
variables: { roles: 'user' },
key: 'updatedById',
label: faker.helpers.randomize(['Test Admin01', 'Test User01', 'Test User02']),
},
};
}
export default { getInitialItems, getMockItem };
| 24.930233 | 85 | 0.598881 |
05400463777113e69b839b380b38ef4335522de7 | 327 | js | JavaScript | jobs/anonymizeConferences.js | adenoix/audioconf | 83cf5e2d6f74638aba30e674f5fbaa1b735f2518 | [
"MIT"
] | 4 | 2021-01-03T06:22:27.000Z | 2021-08-02T08:51:42.000Z | jobs/anonymizeConferences.js | adenoix/audioconf | 83cf5e2d6f74638aba30e674f5fbaa1b735f2518 | [
"MIT"
] | 54 | 2020-11-25T10:57:03.000Z | 2022-03-31T13:00:04.000Z | jobs/anonymizeConferences.js | adenoix/audioconf | 83cf5e2d6f74638aba30e674f5fbaa1b735f2518 | [
"MIT"
] | 4 | 2020-10-30T20:51:35.000Z | 2020-11-21T13:58:48.000Z | const db = require("../lib/db")
module.exports = async () => {
try {
console.debug("Start of anonymisation job")
const conferences = await db.anonymizeConferences()
console.debug("End of anonymisation job")
return conferences
} catch (error) {
console.error("Error during anonymization", error)
}
}
| 23.357143 | 55 | 0.669725 |
0541b6be7e9d66ca643f5e2b0f3be971d33c7ec8 | 121 | js | JavaScript | reducer/index.js | Thammasok/react-new-project | b91fcec8fac52241f3a96e74b3a18e7102852de1 | [
"MIT"
] | null | null | null | reducer/index.js | Thammasok/react-new-project | b91fcec8fac52241f3a96e74b3a18e7102852de1 | [
"MIT"
] | null | null | null | reducer/index.js | Thammasok/react-new-project | b91fcec8fac52241f3a96e74b3a18e7102852de1 | [
"MIT"
] | null | null | null | import { combineReducers } from 'redux';
// import clock from './clock';
export default combineReducers({
// clock
}); | 20.166667 | 40 | 0.68595 |
0541e56dab08f08f01cb8a0d1c3cb2f1a0489bd8 | 1,310 | js | JavaScript | src/main/webapp/oldjs/specific/inicioRedSocial/model.js | ivangm4/ausiasYield2015 | ceebc9e6a0638beec4934c4baa561392f587288b | [
"MIT"
] | null | null | null | src/main/webapp/oldjs/specific/inicioRedSocial/model.js | ivangm4/ausiasYield2015 | ceebc9e6a0638beec4934c4baa561392f587288b | [
"MIT"
] | null | null | null | src/main/webapp/oldjs/specific/inicioRedSocial/model.js | ivangm4/ausiasYield2015 | ceebc9e6a0638beec4934c4baa561392f587288b | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2014 raznara
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
var inicioRedSocialModel = function (strClase) {
this.clase = strClase;
};
inicioRedSocialModel.prototype = new model('publicacion');
inicioRedSocialModel.prototype.getClassNameInicioRedSocial = function () {
return this.getClassName() + "Modelo";
};
inicioRedSocialModel.prototype.duplicateOne = function (id) {
$.when(ajax().ajaxCallSync(this.urlJson + '&op=duplicate&id=' + id, 'GET', '')).done(function (data) {
feedback = data;
});
return feedback;
};
var oInicioRedSocialModel = new inicioRedSocialModel('publicacion'); | 40.9375 | 106 | 0.729008 |
0542d501bb3fe7e4a2d91837da91f08eeaa9d77f | 508 | js | JavaScript | public/static/pc/js/user/wallet/apply/common.js | h136799711/api_resource | f818707578c42658e1f201efc1db989a214e3f17 | [
"MIT"
] | null | null | null | public/static/pc/js/user/wallet/apply/common.js | h136799711/api_resource | f818707578c42658e1f201efc1db989a214e3f17 | [
"MIT"
] | null | null | null | public/static/pc/js/user/wallet/apply/common.js | h136799711/api_resource | f818707578c42658e1f201efc1db989a214e3f17 | [
"MIT"
] | null | null | null | $('.btn.save').click(function(){
var money = $('#money');
var password = $('#password');
if($.trim(money.val())==''){
antd.message.error('必须填写金额!');
money.focus();
return;
}else{
if(parseFloat(money.val())<=0){
antd.message.error('提现金额必须大于0!');
money.focus();
return;
}
}
if(password.val()==''){
antd.message.error('必须填写登录密码!');
password.focus();
return;
}
apply.submit();
}); | 24.190476 | 45 | 0.466535 |
054373b1f7714632ef2da884344ffeded4f9238c | 1,498 | js | JavaScript | setup/src/universal/features/common_ui/form/inputs/InputDatepicker/index.js | ch-apptitude/goomi | f3aed4148d637dcf5067d983845c1781e8240c4c | [
"MIT"
] | 7 | 2017-09-21T07:59:31.000Z | 2019-12-05T18:26:30.000Z | setup/src/universal/features/common_ui/form/inputs/InputDatepicker/index.js | ch-apptitude/goomi | f3aed4148d637dcf5067d983845c1781e8240c4c | [
"MIT"
] | null | null | null | setup/src/universal/features/common_ui/form/inputs/InputDatepicker/index.js | ch-apptitude/goomi | f3aed4148d637dcf5067d983845c1781e8240c4c | [
"MIT"
] | null | null | null | /**
*
* InputDatepicker
*
*/
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { pure } from 'recompose';
import moment from 'moment';
import StyledDatePicker from './styles.js';
class InputDatepicker extends PureComponent {
constructor(props) {
super(props);
this.state = { value: props.value };
}
componentWillReceiveProps(nextProps) {
if (nextProps.value !== this.state.value) {
this.setState({ value: nextProps.value });
}
}
onChange = (newValue) => {
this.setState({ value: newValue });
if (this.props.onChange) {
this.props.onChange(newValue);
}
};
render() {
const { className, placeholder, name, id, min } = this.props;
return (
<StyledDatePicker
name={name}
id={id}
className={className}
selected={this.state.value}
onChange={this.onChange}
placeholderText={placeholder}
minDate={min || moment()}
dateFormat="DD.MM.YYYY"
/>
);
}
}
InputDatepicker.propTypes = {
onChange: PropTypes.func.isRequired,
name: PropTypes.string.isRequired,
id: PropTypes.string.isRequired,
value: PropTypes.oneOfType([PropTypes.object, PropTypes.oneOf([null])]),
placeholder: PropTypes.string,
className: PropTypes.string,
min: PropTypes.instanceOf(Date),
};
InputDatepicker.defaultProps = {
placeholder: '',
className: '',
min: undefined,
value: undefined,
};
export default pure(InputDatepicker);
| 22.029412 | 74 | 0.651535 |
054386736d76616ad108eaae1faec46fc78b40bf | 1,334 | js | JavaScript | controllers/userValidator.js | denisecase/web-app-2020-fall | d56d57a05af2e4592a61741d53fd2d1668f4b17b | [
"MIT"
] | 2 | 2021-07-31T11:56:33.000Z | 2021-07-31T11:56:46.000Z | controllers/userValidator.js | denisecase/web-app-2020-fall | d56d57a05af2e4592a61741d53fd2d1668f4b17b | [
"MIT"
] | 18 | 2020-10-23T00:28:26.000Z | 2020-12-06T16:20:12.000Z | controllers/userValidator.js | denisecase/web-app-2020-fall | d56d57a05af2e4592a61741d53fd2d1668f4b17b | [
"MIT"
] | 83 | 2020-10-21T16:23:51.000Z | 2021-03-19T04:00:54.000Z | const { body, validationResult } = require('express-validator');
const LOG = require('../util/logger');
module.exports.checkValidationRules = () => {
LOG.info('Starting user checkValidationRules.....');
return [
body('email', 'Email is required').isEmail(),
body('password', '6-20 character password is required')
.isLength({ min: 6 })
.custom((val, req) => {
if (val !== req.body.password2) {
throw new Error('Passwords do not match');
}
}),
];
};
module.exports.validate = (req, res, next) => {
LOG.info('Starting user validate.....');
// see example of errors format at the end of this file
const errors = validationResult(req);
if (errors.isEmpty()) {
return next();
}
const extractedErrors = [];
errors.array().map((err) => extractedErrors.push({ [err.param]: err.msg }));
// return res.status(422).json({
// errors: extractedErrors,
// });
try {
res.locals.errors = extractedErrors;
return res.render('user/register.ejs', { title: 'Error', res });
} catch (err) {
return res.status(422).json({
err,
});
}
};
/**
* {
"errors": [
{
"email": "Email is required"
},
{
"password": "6-20 character password is required"
},
{
"password": "value is not defined"
}
]
}
*/
| 23.403509 | 78 | 0.574963 |
0544eb89acf207e46a6d07eee1f5e3dc7277eecd | 2,729 | js | JavaScript | packages/api-i18n/src/plugins/i18n.js | roman-vabishchevych/webiny-js | 861028aac2ff1b58e3b2bd9a479f4dcaa4ff463a | [
"MIT"
] | 1 | 2019-12-06T10:02:11.000Z | 2019-12-06T10:02:11.000Z | packages/api-i18n/src/plugins/i18n.js | roman-vabishchevych/webiny-js | 861028aac2ff1b58e3b2bd9a479f4dcaa4ff463a | [
"MIT"
] | null | null | null | packages/api-i18n/src/plugins/i18n.js | roman-vabishchevych/webiny-js | 861028aac2ff1b58e3b2bd9a479f4dcaa4ff463a | [
"MIT"
] | null | null | null | // @flow
import type { ApiContext, PluginType } from "@webiny/api/types";
import acceptLanguageParser from "accept-language-parser";
export default ([
{
type: "graphql-context",
name: "graphql-context-i18n",
apply: async (context: ApiContext & Object) => {
let locales = context.plugins.byName("graphql-context-i18n-get-locales");
if (!locales) {
throw new Error(
'Cannot load locales - missing "graphql-context-i18n-get-locales" plugin.'
);
}
const { event } = context;
const self = {
__i18n: {
acceptLanguage: null,
defaultLocale: null,
locale: null,
locales: await locales.resolve({ context })
},
getDefaultLocale() {
const allLocales = self.getLocales();
return allLocales.find(item => item.default === true);
},
getLocale() {
if (self.__i18n.locale) {
return self.__i18n.locale;
}
let allLocales = self.getLocales();
const acceptLanguage = acceptLanguageParser.pick(
allLocales.map(item => item.code),
event.headers["accept-language"]
);
let currentLocale;
if (acceptLanguage) {
currentLocale = allLocales.find(item => item.code === acceptLanguage);
}
if (!currentLocale) {
currentLocale = self.getDefaultLocale();
}
// $FlowFixMe
self.__i18n.locale = currentLocale;
return self.__i18n.locale;
},
getLocales() {
return self.__i18n.locales;
},
getValue(value) {
if (!value) {
return "";
}
if (Array.isArray(value.values)) {
const locale = self.getLocale();
if (!locale) {
return "";
}
const valuesValue = value.values.find(value => value.locale === locale.id);
return valuesValue ? valuesValue.value : "";
}
return value.value || "";
}
};
context.i18n = self;
}
}
]: Array<PluginType>);
| 34.544304 | 99 | 0.417369 |
054553e089d27d1182f471c73d2cb1170bc63b02 | 3,493 | js | JavaScript | routes/events.js | tomikarikj/dreamevents | a859f3d1c3c4fe4df07e14908926efc8891c56df | [
"MIT"
] | null | null | null | routes/events.js | tomikarikj/dreamevents | a859f3d1c3c4fe4df07e14908926efc8891c56df | [
"MIT"
] | 7 | 2020-09-06T16:42:20.000Z | 2022-02-26T15:51:12.000Z | routes/events.js | tomikarikj/dreamevents | a859f3d1c3c4fe4df07e14908926efc8891c56df | [
"MIT"
] | null | null | null | const express = require('express');
const router = express.Router();
const { check, validationResult } = require('express-validator');
const auth = require('../middleware/auth');
const Event = require('../models/Event');
const User = require('../models/User');
// @route POST api/events
// @desc Create an event
// @access Private
router.post(
'/',
[
auth,
[
check('name', 'Event name is required')
.not()
.isEmpty(),
check('description', 'Event description is required')
.not()
.isEmpty(),
check('date', 'Event date is required')
.not()
.isEmpty()
]
],
async (req, res) => {
const errors = validationResult(req);
if (!errors.isEmpty()) {
return res.status(400).json({ errors: errors.array() });
}
try {
const user = await User.findById(req.user.id).select('-password');
const newEvent = new Event({
createdBy: user.id,
name: req.body.name,
description: req.body.description,
date: req.body.date
});
const event = await newEvent.save();
res.json(event);
} catch (err) {
console.error(err.message);
res.status(500).send('Server error');
}
}
);
// @route GET api/events
// @desc Get all events
// @access Private
router.get('/', auth, async (req, res) => {
try {
const events = await Event.find().sort({ date: -1 });
res.json(events);
} catch (err) {
console.error(err.message);
res.status(500).send('Server error');
}
});
// @route GET api/events/:id
// @desc Get event by ID
// @access Private
router.get('/:id', auth, async (req, res) => {
try {
const event = await Event.findById(req.params.id);
if (!event) {
return res.status(404).json({ msg: 'Event not found' });
}
res.json(event);
} catch (err) {
console.error(err.message);
if (err.kind === 'ObjectId') {
return res.status(404).json({ msg: 'Event not found' });
}
res.status(500).send('Server error');
}
});
// @route DELETE api/events/:id
// @desc Delete an event
// @access Private
router.delete('/:id', auth, async (req, res) => {
try {
const event = await Event.findById(req.params.id);
if (!event) {
return res.status(404).json({ msg: 'Event not found' });
}
// Check user
if (event.createdBy.toString() !== req.user.id) {
return res.status(401).json({ msg: 'User not authorized' });
}
await event.remove();
res.json({ msg: 'Event removed' });
} catch (err) {
console.error(err.message);
if (err.kind === 'ObjectId') {
return res.status(404).json({ msg: 'Event not found' });
}
res.status(500).send('Server error');
}
});
// @route PUT api/events/:id
// @desc Update an event
// @access Private
router.put('/:id', auth, async (req, res) => {
try {
const event = await Event.findById(req.params.id);
if (!event) {
return res.status(404).json({ msg: 'Event not found' });
}
// Check user
if (event.createdBy.toString() !== req.user.id) {
return res.status(401).json({ msg: 'User not authorized' });
}
await event.updateOne(req.body);
res.json({ msg: 'Event updated' });
} catch (err) {
console.error(err.message);
if (err.kind === 'ObjectId') {
return res.status(404).json({ msg: 'Event not found' });
}
res.status(500).send('Server error');
}
});
module.exports = router;
| 24.089655 | 72 | 0.572574 |
0545d26064368d16e072030e7e529330b7ebfa9f | 2,174 | js | JavaScript | src/ElementContainer.js | alexchekmenev/mongodb-driver | 822d044bf04a44673d7362347d6e19d562fcf214 | [
"Apache-2.0"
] | null | null | null | src/ElementContainer.js | alexchekmenev/mongodb-driver | 822d044bf04a44673d7362347d6e19d562fcf214 | [
"Apache-2.0"
] | null | null | null | src/ElementContainer.js | alexchekmenev/mongodb-driver | 822d044bf04a44673d7362347d6e19d562fcf214 | [
"Apache-2.0"
] | null | null | null | class ElementContainer {
constructor(elementsByHash) {
this.elements = new Map()
this.elementsByHash = elementsByHash
this.hasAggregationFunction = false
}
/**
* NOTE position starts from 1
* @param position {number}
* @param element {Element}
*/
setElement(position, element) {
this.elements.set(position, element)
if (element instanceof SelectElement) {
this.hasAggregationFunction |= element.isAggregationFunction
}
const hash = element.getHash()
if (!this.elementsByHash.has(hash)) {
element.setHashId(this.elementsByHash.size + 1)
this.elementsByHash.set(hash, element)
} else {
const found = this.elementsByHash.get(hash)
element.setHashId(found.hashId)
}
}
/**
*
* @param position
* @returns {Element}
*/
getByReference(position) {
if (this.elements.has(position)) {
return this.elements.get(position)
}
throw new Error('No element at this position')
}
entries() {
return this.elements.entries()
}
get size() {
return this.elements.size
}
}
class Element {
constructor(raw, compiled, uid) {
this.raw = raw
this.compiled = compiled
this.uid = uid || null
this.hashId = null
}
setHashId(id) {
this.hashId = id
}
getHash() {
return JSON.stringify(this.compiled) // FIXME use .toString() on typed input
}
}
class SelectElement extends Element {
constructor(raw, compiled, uid, isAggregationFunction = false) {
super(raw, compiled, uid);
this.isAggregationFunction = isAggregationFunction
}
}
class GroupElement extends Element {
constructor(raw, compiled) {
super(raw, compiled, null);
}
}
class OrderElement extends Element {
constructor(raw, compiled, sortOrder) {
super(raw, compiled, null);
this.sortOrder = sortOrder === 'DESC' ? -1 : 1
}
}
module.exports = {
SelectElement,
GroupElement,
OrderElement,
ElementContainer
}
| 23.376344 | 84 | 0.596596 |
054634d402244b60b2062599d828878109eeba61 | 3,818 | js | JavaScript | pages/loginPage/loginPage.js | FrikanRw/Amplify---Detox | f0e9254d22287698a66aa58a4f5f58522506a6b6 | [
"MIT"
] | 5 | 2018-07-10T14:53:16.000Z | 2022-01-09T12:35:45.000Z | pages/loginPage/loginPage.js | FrikanRw/Amplify---Detox | f0e9254d22287698a66aa58a4f5f58522506a6b6 | [
"MIT"
] | null | null | null | pages/loginPage/loginPage.js | FrikanRw/Amplify---Detox | f0e9254d22287698a66aa58a4f5f58522506a6b6 | [
"MIT"
] | null | null | null | import React, { Component } from 'react';
import { View, Text, TextInput, ScrollView, Button } from 'react-native';
import { Actions } from 'react-native-router-flux';
import { Auth } from 'aws-amplify';
// common
import { validateEmail, validatePassword, colorByValidation } from '../../assests/common';
import styles from '../styles';
class LoginPage extends Component {
constructor(props) {
super(props);
this.state = {
username: '',
password: '',
validEmail: false,
validPassword: '',
trySignin: false,
modalShow: false,
};
}
/**
* Handles validation on input, button enables on valid email
*/
onEmailChange = (emailInput) => {
const isEmailValid = validateEmail(emailInput);
this.setState({
validEmail: isEmailValid,
username: emailInput,
});
}
/**
* Handles validation on input, line goes green on valid password, red on bad password
*/
onPasswordChange = (passwordInput) => {
if (passwordInput !== '') {
const isPasswordValid = validatePassword(passwordInput);
this.setState({
validPassword: isPasswordValid ? 'GOOD' : 'BAD',
password: passwordInput,
});
} else {
this.setState({
validPassword: '',
password: passwordInput,
});
}
}
// Fires the login
login = () => {
this.setState({ trySignin: true });
Auth.signIn(this.state.username, this.state.password)
.then((user) => {
Actions.welcome({ user });
})
.catch(err => console.log(err))
}
//scroll function to pull down Scrollview after input
scrollDown =() => {
this.scroll.scrollTo({ x: 0, y: 0, animated: true });
}
render() {
return (
<View testID="signInpage" style={{flex:1, margin:24 ,justifyContent:'center', alignItems: 'center', marginTop:150}}>
<ScrollView
ref={(scroll) => { this.scroll = scroll; }}
showsVerticalScrollIndicator={false}>
<Text style={{color:'#00072d', fontSize:16}}>Welcome Back</Text>
<Text style={{color:'#00072d', fontSize:14}}>Please sign in below</Text>
<View style={styles.TextInputContainer}>
<TextInput
testID="email-login"
placeholder="Email address"
keyboardType="email-address"
autoCapitalize="none"
autoCorrect={false}
style={styles.TextInput}
value={this.state.username}
onChangeText={username => this.onEmailChange(username)}
underlineColorAndroid="transparent"
/>
</View>
<View style={[styles.TextInputContainer,
{ borderBottomColor: colorByValidation(this.state.validPassword) }]}
>
<TextInput
testID="password-login"
placeholder="Password"
autoCapitalize="none"
secureTextEntry
style={styles.TextInput}
value={this.state.password}
onChangeText={password => this.onPasswordChange(password)}
underlineColorAndroid="transparent"
onEndEditing={() => this.scrollDown()}
/>
</View>
<View style={styles.ButtonContainer}>
<Button
onPress={() => this.login()}
disabled={!this.state.validEmail}
title="SIGN IN"
color="#064789"
testID="sign_in_button"
/>
</View>
<View style={styles.Bumper} />
</ScrollView>
</View>
);
}
}
export default LoginPage;
| 32.084034 | 122 | 0.542431 |
05468679feff050bc8775011cdd43d577fae5b78 | 977 | js | JavaScript | modules/storageAdapters/localStorage.js | Wolvan/ark-anon | b63e38ec49f2a6babdbbb8810835f1714f8ab951 | [
"MIT"
] | null | null | null | modules/storageAdapters/localStorage.js | Wolvan/ark-anon | b63e38ec49f2a6babdbbb8810835f1714f8ab951 | [
"MIT"
] | null | null | null | modules/storageAdapters/localStorage.js | Wolvan/ark-anon | b63e38ec49f2a6babdbbb8810835f1714f8ab951 | [
"MIT"
] | null | null | null | 'use strict';
const META = {
author: "Wolvan",
name: "StorageAdapter:localStorage",
description: "Get and store data based on localStorage.",
version: "1.0.0"
};
const persist = require("node-persist");
const StorageAdapter = require("../storage.js");
const storage = new WeakMap();
class LocalStorageAdapter extends StorageAdapter {
constructor(storageOptions) {
super();
let store = persist.create(storageOptions);
store.initSync();
storage.set(this, store);
}
get(key) {
return storage.get(this).getItem(key);
}
set(key, value, options) {
return storage.get(this).setItem(key, value, options);
}
list() {
return new Promise.resolve(storage.get(this).keys());
}
delete(key) {
return storage.get(this).removeItem(key);
}
clear() {
return storage.get(this).clear();
}
}
module.exports = LocalStorageAdapter;
module.exports.META = META;
| 23.829268 | 62 | 0.62436 |
0548824b187fe91f2533a0bead46e447d54b0091 | 402 | js | JavaScript | js/question_with_cookie.js | sumirart/sensenet.github.io | 9273eb3fe34b89d4f5cbf1825bb3c70cbff00de0 | [
"MIT"
] | null | null | null | js/question_with_cookie.js | sumirart/sensenet.github.io | 9273eb3fe34b89d4f5cbf1825bb3c70cbff00de0 | [
"MIT"
] | null | null | null | js/question_with_cookie.js | sumirart/sensenet.github.io | 9273eb3fe34b89d4f5cbf1825bb3c70cbff00de0 | [
"MIT"
] | null | null | null | function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+ d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
$(document).on('click','.js-go_to_survey', function () {
setCookie('openquestion', 'true', 30)
$(this).closest('.js-slide_block').removeClass('open');
});
| 30.923077 | 71 | 0.609453 |
05499e20088c2068d2343d5257f9719c054b19fb | 1,242 | js | JavaScript | tests/experiments/exploratory/filtering/step1-2-runmocha.js | andreendo/noderacer | 9fc2dc8b35c4077ee57423f4454a4c3ef145a18a | [
"Apache-2.0"
] | 13 | 2020-02-24T15:40:24.000Z | 2022-02-16T12:51:40.000Z | tests/experiments/exploratory/filtering/step1-2-runmocha.js | andreendo/noderacer | 9fc2dc8b35c4077ee57423f4454a4c3ef145a18a | [
"Apache-2.0"
] | 1 | 2021-03-03T02:09:53.000Z | 2021-03-03T02:47:45.000Z | tests/experiments/exploratory/filtering/step1-2-runmocha.js | andreendo/noderacer | 9fc2dc8b35c4077ee57423f4454a4c3ef145a18a | [
"Apache-2.0"
] | 2 | 2020-01-11T15:53:49.000Z | 2020-01-13T12:21:24.000Z | // It checks if the projects run with a vanilla Mocha test runner
// Some projects have some parameters that need to be provided to Mocha
const shell = require('shelljs');
const fs = require('fs');
const BENCHMARK_FOLDER = '/downloads/benchmarks';
// const PROJECTS_FILE = './tests/benchmarks/exploratory/filtering/res/projects-1-passed.txt';
const PROJECTS_FILE = './tests/benchmarks/exploratory/filtering/res/projects-1-1-command.txt';
const OUTPUT_FILE = './tests/benchmarks/exploratory/filtering/res/output-1-command.txt'
fs.writeFileSync(OUTPUT_FILE, '');
let passed = 0, failed = 0;
fs.readFileSync(PROJECTS_FILE, 'utf-8').split('\n').forEach(line => {
line = line.split(',');
let project = line[0], parameters = line[1];
shell.cd(`${BENCHMARK_FOLDER}/${project}`);
let out = shell.exec(`mocha --exit -R spec ${parameters}`, { silent: false });
let specOutput = out.stdout.includes('passing') || out.stdout.includes('failing');
if (specOutput)
passed++;
else
failed++;
let toPrint = `${project},${out.code},${out.code === 0},${specOutput}\n`;
console.log(toPrint);
fs.appendFileSync(OUTPUT_FILE, toPrint, 'utf-8')
});
console.log(`passed: ${passed}, failed: ${failed}`); | 37.636364 | 94 | 0.679549 |
0549d83d2de801f4ece7bd2cc2d31df0bc41e55c | 1,784 | js | JavaScript | tracportal/htdocs/js/messages/ja.js | isabella232/TracPortalPlugin | 985581b16aad360cfc78d6b901c93fb922f7bc30 | [
"MIT"
] | 2 | 2015-01-19T05:53:30.000Z | 2016-01-08T10:30:02.000Z | tracportal/htdocs/js/messages/ja.js | iij/TracPortalPlugin | 985581b16aad360cfc78d6b901c93fb922f7bc30 | [
"MIT"
] | 1 | 2022-01-20T12:47:18.000Z | 2022-01-20T12:47:18.000Z | tracportal/htdocs/js/messages/ja.js | isabella232/TracPortalPlugin | 985581b16aad360cfc78d6b901c93fb922f7bc30 | [
"MIT"
] | 3 | 2016-12-08T02:25:36.000Z | 2022-01-20T12:10:58.000Z | // Generated messages javascript file from compiled MO file
babel.Translations.load({"domain":"tracportal-js","locale":"ja","messages":{"%s results":"%s \u4ef6","Active: ":"\u30a2\u30af\u30c6\u30a3\u30d6\uff1a","Author":"\u66f4\u65b0\u8005","Cc":"\u95a2\u4fc2\u8005","Close":"\u30af\u30ed\u30fc\u30ba","Closed: ":"\u30af\u30ed\u30fc\u30ba\uff1a","Component":"\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8","Created":"\u4f5c\u6210\u65e5\u6642","Creator: ":"\u66f4\u65b0\u8005\uff1a","Description":"\u8a73\u7d30","Detail":"\u8a73\u7d30","Due: ":"\u671f\u65e5\uff1a","ID":"ID","Keywords":"\u30ad\u30fc\u30ef\u30fc\u30c9","Milestone":"\u30de\u30a4\u30eb\u30b9\u30c8\u30fc\u30f3","More Search Results ...":"\u691c\u7d22\u7d50\u679c\u30da\u30fc\u30b8\u3078\u79fb\u52d5","Name":"\u540d\u79f0","New: ":"\u65b0\u898f\uff1a","No matches found.":"\u4e00\u81f4\u3059\u308b\u3082\u306e\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\uff0e","No recent changes":"\u6700\u8fd1\u306e\u5909\u66f4\u306f\u3042\u308a\u307e\u305b\u3093\u3002","No roadmap":"\u30de\u30a4\u30eb\u30b9\u30c8\u30fc\u30f3\u306f\u3042\u308a\u307e\u305b\u3093\u3002","No ticket":"\u30c1\u30b1\u30c3\u30c8\u306f\u3042\u308a\u307e\u305b\u3093\u3002","Owner":"\u62c5\u5f53\u8005","Priority":"\u512a\u5148\u5ea6","Reporter":"\u5831\u544a\u8005","Resolution":"\u89e3\u6c7a\u65b9\u6cd5","Severity":"\u91cd\u8981\u5ea6","Status":"\u30b9\u30c6\u30fc\u30bf\u30b9","Summary":"\u6982\u8981","Ticket":"\u30c1\u30b1\u30c3\u30c8","Ticket Detail":"\u30c1\u30b1\u30c3\u30c8\u8a73\u7d30\u60c5\u5831","Total Tickets: ":"\u30c1\u30b1\u30c3\u30c8\u306e\u4ef6\u6570\uff1a","Type":"\u5206\u985e","Updated":"\u66f4\u65b0\u65e5\u6642","Version":"\u30d0\u30fc\u30b8\u30e7\u30f3","anonymous":"\u533f\u540d"},"plural_expr":"0"}).install();
| 594.666667 | 1,723 | 0.734305 |
0549ead0f44e502865a4f9fa0148d17db1594df7 | 915 | js | JavaScript | src/components/Fusion/env.js | stellar-fox/fusion | eb715c4d43bb6a5e9244345dd56326430857a2d2 | [
"Apache-2.0"
] | null | null | null | src/components/Fusion/env.js | stellar-fox/fusion | eb715c4d43bb6a5e9244345dd56326430857a2d2 | [
"Apache-2.0"
] | null | null | null | src/components/Fusion/env.js | stellar-fox/fusion | eb715c4d43bb6a5e9244345dd56326430857a2d2 | [
"Apache-2.0"
] | null | null | null | import { homepage, name, version } from "../../../package.json"
import { timeUnit } from "@xcmats/js-toolbox"
// application name
export const appName = name
// application visible name
export const appVisName = "Stellar Fusion™"
// application version (taken from package.json)
export const appVersion = version
// DOM attach point
export const appRootDomId = "app"
// base URL
export const appBasePath = homepage
// base for REST API queries
export const apiBase = "https://api.stellarfox.net/"
// Session Storage application state key
export const ssAppStateKey = `Fusion.${appVersion}`
// Session Storage save throttling time - finest possible granularity (in ms)
export const ssSaveThrottlingTime = timeUnit.second
// default drawer width (when unfolded)
export const drawerWidth = 240
// Gravatar base URL
export const gravatarBase = "https://www.gravatar.com/avatar/"
| 14.52381 | 77 | 0.727869 |
054a12386b09a53add7ba25ab52a2028fb42d15e | 790 | js | JavaScript | js/cavemanPreload.js | timyc/Lifestyle-and-Sustainability-Calculator | baea8a1ec07e8280496ab846ef05f42766f7ea46 | [
"MIT"
] | null | null | null | js/cavemanPreload.js | timyc/Lifestyle-and-Sustainability-Calculator | baea8a1ec07e8280496ab846ef05f42766f7ea46 | [
"MIT"
] | null | null | null | js/cavemanPreload.js | timyc/Lifestyle-and-Sustainability-Calculator | baea8a1ec07e8280496ab846ef05f42766f7ea46 | [
"MIT"
] | null | null | null | document.getElementById('imgPreload').innerHTML = "<img src='img/infographic-card1.png' /><img src='img/infographic-card1-blurred.png' /><img src='img/infographic-card2.png' /><img src='img/infographic-card2-blurred.png' /><img src='img/infographic-card3.png' /><img src='img/infographic-card3-blurred.png' /><img src='img/infographic-card4.png' /><img src='img/infographic-card4-blurred.png' /><img src='img/infographic-card5.png' /><img src='img/infographic-card5-blurred.png' /><img src='img/infographic-card6.png' /><img src='img/infographic-card6-blurred.png' /><img src='img/infographic-card7.png' /><img src='img/infographic-card7-blurred.png' /><img src='img/rankA.png' /><img src='img/rankB.png' /><img src='img/rankC.png' /><img src='img/rankD.png' /><img src='img/rankF.png' />"; | 790 | 790 | 0.717722 |
054b3e6403ea3d84602e7f37eae6214b03f39b54 | 3,668 | js | JavaScript | src/components/vueFem2.js | felixgrey/fem2-vue | 0e5cd6b5fb5e7e42e0a4e94af0012363c6bab715 | [
"MIT"
] | null | null | null | src/components/vueFem2.js | felixgrey/fem2-vue | 0e5cd6b5fb5e7e42e0a4e94af0012363c6bab715 | [
"MIT"
] | null | null | null | src/components/vueFem2.js | felixgrey/fem2-vue | 0e5cd6b5fb5e7e42e0a4e94af0012363c6bab715 | [
"MIT"
] | null | null | null | import Vue from 'vue';
import $ from 'jquery';
import BootstrapVue from 'bootstrap-vue';
import VueRouter from 'vue-router';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap-vue/dist/bootstrap-vue.css';
import ECharts from 'vue-echarts';
import { Agent, monkey, blank} from './common';
export * from './common';
Vue.use(BootstrapVue);
Vue.use(VueRouter);
Vue.component('v-chart', ECharts);
// 随机函数名
const _callback =`_wrapedEmitterCallback${Date.now()}`;
// jquery实现事件发射器
Agent.Emitter= class JqEvent {
constructor(){
this.core = $({});
}
// callback匹配jquery参数格式
_wrapedCallback(callback){
const warpedCallback = (jqEvt) => {
return callback(...jqEvt.femData);
}
callback[_callback] = warpedCallback;
return warpedCallback;
}
// 监听事件
on(name, callback) {
this.core.on(name, this._wrapedCallback(callback));
}
// 一次性监听
once(name, callback) {
this.core.one(name, this._wrapedCallback(callback));
}
// 发射事件
emit(name, ...femData) {
this.core.trigger({type:name, femData});
}
// 解除监听
off(name, callback) {
this.core.off(name, callback[_callback]);
}
};
// 定义组件的修饰器
Agent.component = (agentName, option = {}) => {
if(!agentName) {
throw new Error('must has agentName: Agent.component(agentName)');
}
return (Component) => {
// 类格式的参数,取vue属性值
if(typeof Component === 'function'){
Component = new Component().vue;
}
// 代理vue生命周期
Component.created = monkey(Component.created, null, function(result) {
const _vue = this;
const myViewOption = {...option};
const $viewProtoType = myViewOption.$view = myViewOption.$view || {};
// 视图原型,代理onModelChange方法,刷新组件
$viewProtoType.onModelChange = monkey($viewProtoType.onModelChange, null, function(result, [model = {}]) {
// 更新vue数据
_vue.model = model;
// 必须根据具体框架确定$modelChange触发时机
$viewProtoType.store && $viewProtoType.store.emit(`$modelChange:${this.uniKey}`);
return result;
});
const $view = this.$View = Agent.createView(agentName, myViewOption);
$view.initView({$name: '$storeView'}, myViewOption.$store || this.store); // 定义在props里的store
this.$Store = $view.store || null;
this.$Controller = $view.controller || null;
this.$Model = this.$Store ? $view.store.model : null;
return result;
});
Component.mounted = monkey(Component.mounted, null, function(result) {
if (result !== false) {
this.$View && this.$View.viewReady();
}
return result;
});
Component.beforeDestroy = monkey(Component.beforeDestroy, null, function(result) {
this.$View && this.$View.viewOff();
this.$View = null;
return result;
});
const props = Component.props = Component.props || {};
props.config = {type: Object};
props.store = {type: Object};
const oldData = Component.data || blank;
if(typeof oldData === 'function') {
Component.data = function (){
const result = {...oldData.bind(this)(), model:{}};
return result;
}
} else {
Component.data = {...oldData, model:{}};
}
return Component;
}
}
// 封装JQuery的ajax
Agent.ajax = function(url, data, option = {}){
return new Promise((resolve, reject) => {
$.ajax(Object.assign({
$resolve: resolve,
$reject: reject,
url,
data,
dataType: 'json',
type: 'get',
success: resolve,
error: function (XHR, msg, err) {
reject(err);
},
}, option));
});
};
// Agent.router相关在vue根实例创建后注入
| 26.57971 | 112 | 0.604962 |
054d7551ad1f57af22eb9e47ab04c35452d1073a | 406 | js | JavaScript | dispatcher.js | voscarmv/lemonade_stand | bbd33dc05233f63865890ba56618df5f79fcefa8 | [
"MIT"
] | 1 | 2021-11-02T18:00:00.000Z | 2021-11-02T18:00:00.000Z | dispatcher.js | voscarmv/lemonade_stand | bbd33dc05233f63865890ba56618df5f79fcefa8 | [
"MIT"
] | null | null | null | dispatcher.js | voscarmv/lemonade_stand | bbd33dc05233f63865890ba56618df5f79fcefa8 | [
"MIT"
] | null | null | null | import { execSync } from 'child_process';
import queue from './queue.js';
import served from './served.js';
for (const txId in queue) {
if(!served[txId]){
console.log(`serving ${txId}`);
const tokenId = queue[txId];
const output = execSync(`./deployer.sh ${txId} ${tokenId}`);
console.log(output.toString());
} else {
console.log(`${txId} served`);
}
}
| 27.066667 | 68 | 0.586207 |
054d7fedb4fc5161cf09ec260bf6f5f4504c1a37 | 657 | js | JavaScript | public/js/crypt.js | subrat1995/codehub | e0a4ef38991c3565459b40a7ee4ab740ac70e5dd | [
"MIT"
] | null | null | null | public/js/crypt.js | subrat1995/codehub | e0a4ef38991c3565459b40a7ee4ab740ac70e5dd | [
"MIT"
] | null | null | null | public/js/crypt.js | subrat1995/codehub | e0a4ef38991c3565459b40a7ee4ab740ac70e5dd | [
"MIT"
] | null | null | null | var passwords = ['The Lost Symbol'];
var indexOld;
var index = Math.floor((Math.random() * passwords.length));
var password = passwords[index];
var characters = [];
var counter = 0;
var interval = setInterval(function(){
for(i = 0; i < counter; i++) {
characters[i] = password.charAt(i);
}
for(i = counter; i < password.length; i++) {
characters[i] = Math.random().toString(36).charAt(2);
}
$('#crypt').text(characters.join(''));
}, 200);
var interval2;
function hack() {
counter++;
if(counter == password.length){
clearInterval(interval2);
}
}
$(window).on('load', function(){
interval2 = setInterval(hack,200);
});
| 19.323529 | 59 | 0.625571 |
05509d7b785d3359bf07944ca74b2478f01374f0 | 93,220 | js | JavaScript | hk/0639_d.js | daodao10/chart | 216d9b2fe3ebbcf84f4f0d253baf3072e0e4ce5f | [
"MIT"
] | 1 | 2021-07-13T01:51:12.000Z | 2021-07-13T01:51:12.000Z | hk/0639_d.js | daodao10/chart | 216d9b2fe3ebbcf84f4f0d253baf3072e0e4ce5f | [
"MIT"
] | null | null | null | hk/0639_d.js | daodao10/chart | 216d9b2fe3ebbcf84f4f0d253baf3072e0e4ce5f | [
"MIT"
] | null | null | null | var data=[['20000103',0.0789],
['20000104',0.0984],
['20000105',0.0945],
['20000106',0.0891],
['20000107',0.0859],
['20000110',0.082],
['20000111',0.0883],
['20000112',0.0898],
['20000113',0.0914],
['20000114',0.0906],
['20000117',0.0836],
['20000119',0.0976],
['20000120',0.1015],
['20000121',0.1062],
['20000124',0.1531],
['20000125',0.1359],
['20000126',0.1429],
['20000127',0.1531],
['20000128',0.15],
['20000131',0.1375],
['20000201',0.1367],
['20000202',0.1414],
['20000203',0.2226],
['20000208',0.207],
['20000209',0.1953],
['20000210',0.1906],
['20000211',0.1867],
['20000214',0.1656],
['20000215',0.1679],
['20000216',0.1914],
['20000217',0.1765],
['20000218',0.1781],
['20000221',0.1758],
['20000222',0.1469],
['20000223',0.1562],
['20000224',0.1453],
['20000225',0.1234],
['20000228',0.0914],
['20000229',0.1351],
['20000301',0.1133],
['20000302',0.1148],
['20000303',0.125],
['20000306',0.1203],
['20000307',0.1172],
['20000308',0.1133],
['20000309',0.1281],
['20000310',0.1875],
['20000313',0.2109],
['20000314',0.1867],
['20000315',0.1875],
['20000316',0.1484],
['20000317',0.1695],
['20000320',0.1633],
['20000321',0.1523],
['20000322',0.1515],
['20000323',0.1797],
['20000327',0.1687],
['20000328',0.1718],
['20000329',0.1765],
['20000330',0.1578],
['20000331',0.1664],
['20000403',0.157],
['20000405',0.1406],
['20000406',0.1469],
['20000407',0.1437],
['20000410',0.1406],
['20000411',0.1406],
['20000412',0.1375],
['20000413',0.139],
['20000414',0.1281],
['20000417',0.1008],
['20000418',0.1031],
['20000419',0.0969],
['20000420',0.1],
['20000425',0.0976],
['20000426',0.0961],
['20000427',0.0976],
['20000428',0.1039],
['20000502',0.1094],
['20000503',0.1055],
['20000504',0.1],
['20000505',0.1008],
['20000508',0.0976],
['20000509',0.0922],
['20000510',0.0922],
['20000512',0.0922],
['20000515',0.0937],
['20000516',0.0922],
['20000517',0.0922],
['20000519',0.1078],
['20000524',0.0953],
['20000525',0.0844],
['20000526',0.0836],
['20000529',0.0781],
['20000530',0.0781],
['20000531',0.0883],
['20000601',0.082],
['20000602',0.075],
['20000607',0.0937],
['20000608',0.0937],
['20000609',0.0867],
['20000612',0.0867],
['20000613',0.0898],
['20000619',0.0883],
['20000620',0.082],
['20000621',0.0789],
['20000622',0.0781],
['20000623',0.0734],
['20000626',0.0711],
['20000627',0.0711],
['20000628',0.0656],
['20000629',0.068],
['20000630',0.0687],
['20000705',0.0719],
['20000706',0.0734],
['20000707',0.0836],
['20000710',0.0734],
['20000711',0.0719],
['20000712',0.0703],
['20000718',0.0664],
['20000719',0.0609],
['20000720',0.0609],
['20000721',0.0656],
['20000724',0.0625],
['20000725',0.0609],
['20000727',0.0609],
['20000728',0.0609],
['20000731',0.0594],
['20000802',0.0602],
['20000803',0.0586],
['20000809',0.0641],
['20000810',0.0609],
['20000811',0.0586],
['20000815',0.0609],
['20000816',0.0609],
['20000817',0.0633],
['20000818',0.0641],
['20000821',0.0562],
['20000822',0.0625],
['20000823',0.0672],
['20000824',0.0609],
['20000825',0.0641],
['20000828',0.0664],
['20000829',0.0664],
['20000830',0.0633],
['20000831',0.0664],
['20000901',0.0641],
['20000904',0.0664],
['20000911',0.0617],
['20000912',0.0602],
['20000918',0.0578],
['20000921',0.057],
['20000922',0.0547],
['20000929',0.0547],
['20001003',0.0547],
['20001004',0.0547],
['20001005',0.0547],
['20001009',0.0555],
['20001010',0.0555],
['20001011',0.0547],
['20001012',0.0555],
['20001013',0.0547],
['20001020',0.0508],
['20001023',0.0508],
['20001103',0.0469],
['20001106',0.0516],
['20001109',0.0578],
['20001110',0.0586],
['20001113',0.0609],
['20001114',0.0625],
['20001122',0.0625],
['20001124',0.0555],
['20001127',0.0523],
['20001128',0.0531],
['20001129',0.0531],
['20001130',0.0508],
['20001204',0.05],
['20001205',0.0484],
['20001207',0.057],
['20001208',0.057],
['20001213',0.0602],
['20001214',0.0602],
['20001215',0.0586],
['20001218',0.0578],
['20001219',0.0594],
['20001220',0.0594],
['20001227',0.0594],
['20001228',0.057],
['20001229',0.0594],
['20010103',0.0609],
['20010104',0.0594],
['20010105',0.0594],
['20010111',0.0594],
['20010115',0.0586],
['20010116',0.0586],
['20010117',0.0594],
['20010118',0.0602],
['20010122',0.0625],
['20010201',0.0625],
['20010205',0.0594],
['20010206',0.0602],
['20010209',0.057],
['20010212',0.0609],
['20010216',0.0625],
['20010219',0.0703],
['20010220',0.0641],
['20010221',0.0633],
['20010223',0.0648],
['20010226',0.0648],
['20010302',0.0625],
['20010308',0.0719],
['20010309',0.0781],
['20010312',0.0773],
['20010313',0.0734],
['20010314',0.0766],
['20010316',0.0695],
['20010320',0.0633],
['20010328',0.0726],
['20010329',0.0781],
['20010330',0.0742],
['20010402',0.0789],
['20010403',0.082],
['20010404',0.0781],
['20010406',0.0781],
['20010409',0.0781],
['20010410',0.0781],
['20010411',0.0781],
['20010412',0.0781],
['20010417',0.0781],
['20010418',0.0781],
['20010419',0.0781],
['20010420',0.0781],
['20010423',0.0742],
['20010424',0.0719],
['20010425',0.0719],
['20010426',0.0742],
['20010427',0.0742],
['20010502',0.0781],
['20010503',0.0812],
['20010509',0.0742],
['20010510',0.0742],
['20010511',0.0781],
['20010515',0.0734],
['20010516',0.0773],
['20010517',0.0781],
['20010518',0.0812],
['20010521',0.082],
['20010522',0.082],
['20010523',0.0812],
['20010524',0.0984],
['20010525',0.1008],
['20010528',0.1094],
['20010529',0.114],
['20010530',0.1156],
['20010531',0.1344],
['20010601',0.1562],
['20010604',0.1945],
['20010605',0.1914],
['20010606',0.1672],
['20010607',0.1617],
['20010608',0.1797],
['20010611',0.1718],
['20010612',0.1633],
['20010613',0.1594],
['20010614',0.1406],
['20010615',0.1562],
['20010618',0.1531],
['20010619',0.1562],
['20010620',0.1594],
['20010621',0.1531],
['20010622',0.1445],
['20010626',0.1406],
['20010627',0.1406],
['20010628',0.1312],
['20010629',0.1398],
['20010703',0.1445],
['20010704',0.1484],
['20010705',0.1406],
['20010711',0.1445],
['20010712',0.1414],
['20010713',0.1445],
['20010716',0.1422],
['20010717',0.1508],
['20010718',0.1461],
['20010719',0.1484],
['20010720',0.1422],
['20010801',0.1351],
['20010802',0.1336],
['20010803',0.1125],
['20010806',0.1125],
['20010807',0.1023],
['20010808',0.1039],
['20010809',0.1031],
['20010810',0.1094],
['20010813',0.1109],
['20010814',0.1109],
['20010815',0.1148],
['20010817',0.1172],
['20010820',0.1211],
['20010821',0.1351],
['20010822',0.1445],
['20010823',0.1406],
['20010824',0.1406],
['20010827',0.1656],
['20010828',0.1562],
['20010829',0.1484],
['20010830',0.1453],
['20010831',0.1484],
['20010903',0.1453],
['20010904',0.1476],
['20010905',0.1508],
['20010906',0.1445],
['20010907',0.1445],
['20010910',0.1406],
['20010911',0.1484],
['20010912',0.1445],
['20010914',0.1437],
['20010917',0.1429],
['20010918',0.1328],
['20010919',0.1414],
['20010920',0.1406],
['20010921',0.1273],
['20010924',0.1328],
['20010925',0.1281],
['20010926',0.125],
['20010927',0.1289],
['20010928',0.125],
['20011003',0.1242],
['20011004',0.125],
['20011005',0.125],
['20011008',0.1281],
['20011010',0.1204],
['20011011',0.1136],
['20011012',0.1196],
['20011016',0.1174],
['20011017',0.1174],
['20011018',0.1181],
['20011019',0.1174],
['20011022',0.1174],
['20011024',0.1181],
['20011026',0.1211],
['20011029',0.1211],
['20011030',0.1272],
['20011031',0.1211],
['20011101',0.128],
['20011102',0.1325],
['20011105',0.1325],
['20011106',0.1302],
['20011107',0.1492],
['20011108',0.1492],
['20011109',0.1378],
['20011112',0.1401],
['20011113',0.1401],
['20011114',0.1401],
['20011115',0.1401],
['20011116',0.1325],
['20011119',0.1325],
['20011120',0.1325],
['20011121',0.134],
['20011122',0.1408],
['20011123',0.1386],
['20011126',0.1386],
['20011127',0.1348],
['20011128',0.1461],
['20011129',0.1401],
['20011130',0.1401],
['20011203',0.1363],
['20011204',0.1363],
['20011205',0.1348],
['20011206',0.1348],
['20011207',0.1355],
['20011211',0.134],
['20011212',0.1363],
['20011214',0.1363],
['20011217',0.1348],
['20011219',0.1333],
['20011220',0.1408],
['20011221',0.1537],
['20011224',0.1476],
['20011227',0.1537],
['20011228',0.1537],
['20011231',0.1575],
['20020102',0.1598],
['20020103',0.1817],
['20020104',0.1878],
['20020107',0.1893],
['20020108',0.1931],
['20020109',0.1893],
['20020110',0.1893],
['20020111',0.2044],
['20020114',0.1893],
['20020115',0.1893],
['20020116',0.1893],
['20020117',0.1969],
['20020118',0.1893],
['20020121',0.1893],
['20020122',0.1878],
['20020123',0.1893],
['20020124',0.1825],
['20020125',0.1741],
['20020128',0.1817],
['20020129',0.1757],
['20020130',0.1711],
['20020131',0.1666],
['20020201',0.162],
['20020204',0.1605],
['20020205',0.159],
['20020206',0.1514],
['20020207',0.1514],
['20020208',0.1552],
['20020215',0.1454],
['20020218',0.1514],
['20020219',0.1446],
['20020220',0.1461],
['20020221',0.1461],
['20020222',0.1514],
['20020225',0.1492],
['20020226',0.1499],
['20020227',0.1492],
['20020228',0.1461],
['20020304',0.1461],
['20020305',0.1476],
['20020306',0.1476],
['20020307',0.1492],
['20020308',0.1575],
['20020312',0.1552],
['20020313',0.1613],
['20020314',0.1847],
['20020315',0.1719],
['20020318',0.1726],
['20020319',0.1688],
['20020320',0.1779],
['20020321',0.1863],
['20020322',0.1802],
['20020325',0.1779],
['20020326',0.1741],
['20020327',0.1817],
['20020328',0.1832],
['20020402',0.1893],
['20020403',0.1931],
['20020404',0.2044],
['20020408',0.2082],
['20020409',0.212],
['20020410',0.2196],
['20020411',0.2158],
['20020412',0.2158],
['20020415',0.2196],
['20020416',0.2233],
['20020417',0.2233],
['20020418',0.2158],
['20020419',0.2271],
['20020422',0.2271],
['20020423',0.2233],
['20020424',0.2158],
['20020425',0.212],
['20020426',0.2044],
['20020429',0.2006],
['20020502',0.2082],
['20020506',0.2082],
['20020507',0.212],
['20020508',0.2196],
['20020509',0.2271],
['20020510',0.2196],
['20020513',0.2196],
['20020514',0.2158],
['20020515',0.2271],
['20020516',0.2271],
['20020517',0.2196],
['20020521',0.2158],
['20020522',0.2271],
['20020523',0.2461],
['20020524',0.2461],
['20020527',0.2461],
['20020528',0.2347],
['20020529',0.2423],
['20020530',0.2612],
['20020531',0.2726],
['20020603',0.2726],
['20020604',0.265],
['20020605',0.265],
['20020606',0.2612],
['20020607',0.2536],
['20020610',0.2536],
['20020611',0.2498],
['20020612',0.2423],
['20020613',0.2385],
['20020614',0.2347],
['20020617',0.2196],
['20020618',0.2271],
['20020619',0.2158],
['20020620',0.212],
['20020621',0.2082],
['20020624',0.2082],
['20020625',0.2233],
['20020626',0.2271],
['20020627',0.2271],
['20020628',0.2271],
['20020702',0.2233],
['20020704',0.2271],
['20020705',0.2309],
['20020708',0.2271],
['20020709',0.2271],
['20020710',0.2233],
['20020711',0.2271],
['20020712',0.2271],
['20020715',0.2271],
['20020716',0.2271],
['20020717',0.2196],
['20020718',0.2196],
['20020719',0.2271],
['20020722',0.2196],
['20020723',0.2233],
['20020724',0.2271],
['20020725',0.2423],
['20020726',0.2158],
['20020729',0.2233],
['20020730',0.2271],
['20020731',0.2233],
['20020801',0.2233],
['20020802',0.2271],
['20020805',0.2271],
['20020806',0.2271],
['20020807',0.2271],
['20020808',0.2309],
['20020809',0.2347],
['20020812',0.2271],
['20020813',0.2233],
['20020814',0.2233],
['20020815',0.2271],
['20020816',0.2271],
['20020819',0.2271],
['20020820',0.2271],
['20020821',0.2347],
['20020822',0.2385],
['20020823',0.2423],
['20020826',0.2423],
['20020827',0.2423],
['20020828',0.2461],
['20020829',0.2423],
['20020830',0.2498],
['20020902',0.2536],
['20020903',0.2612],
['20020904',0.2726],
['20020905',0.2801],
['20020906',0.2877],
['20020909',0.3028],
['20020910',0.3142],
['20020911',0.3218],
['20020912',0.3142],
['20020913',0.3028],
['20020916',0.2839],
['20020917',0.2726],
['20020918',0.265],
['20020919',0.2688],
['20020920',0.2498],
['20020923',0.2726],
['20020924',0.265],
['20020925',0.2498],
['20020926',0.2423],
['20020927',0.2423],
['20020930',0.2536],
['20021002',0.2347],
['20021003',0.2423],
['20021004',0.2347],
['20021007',0.2347],
['20021008',0.2271],
['20021009',0.2309],
['20021010',0.2196],
['20021011',0.2271],
['20021017',0.2385],
['20021022',0.212],
['20021023',0.2271],
['20021024',0.2271],
['20021025',0.2347],
['20021028',0.2498],
['20021029',0.2461],
['20021030',0.2498],
['20021031',0.2498],
['20021101',0.2498],
['20021104',0.265],
['20021105',0.2726],
['20021106',0.2801],
['20021107',0.2877],
['20021108',0.2877],
['20021111',0.3028],
['20021112',0.2991],
['20021113',0.2991],
['20021114',0.3028],
['20021115',0.3028],
['20021118',0.3104],
['20021119',0.318],
['20021120',0.318],
['20021121',0.318],
['20021122',0.318],
['20021125',0.3142],
['20021126',0.2877],
['20021127',0.2991],
['20021128',0.3142],
['20021129',0.3104],
['20021202',0.3407],
['20021203',0.3786],
['20021209',0.371],
['20021210',0.3369],
['20021211',0.3407],
['20021212',0.3028],
['20021213',0.3331],
['20021216',0.3142],
['20021217',0.3028],
['20021218',0.2915],
['20021219',0.3256],
['20021220',0.3407],
['20021223',0.3521],
['20021224',0.3634],
['20021227',0.3331],
['20021230',0.3331],
['20021231',0.3331],
['20030102',0.3331],
['20030103',0.3331],
['20030106',0.3256],
['20030107',0.3293],
['20030108',0.3293],
['20030109',0.3293],
['20030110',0.3331],
['20030113',0.3407],
['20030114',0.3369],
['20030115',0.3369],
['20030116',0.3369],
['20030117',0.3331],
['20030120',0.3331],
['20030121',0.3256],
['20030122',0.3256],
['20030123',0.318],
['20030124',0.3142],
['20030127',0.3028],
['20030128',0.318],
['20030129',0.3142],
['20030205',0.3142],
['20030206',0.3104],
['20030207',0.318],
['20030210',0.318],
['20030211',0.318],
['20030212',0.3218],
['20030213',0.3256],
['20030214',0.3256],
['20030217',0.318],
['20030218',0.318],
['20030219',0.318],
['20030220',0.318],
['20030221',0.3142],
['20030224',0.3142],
['20030225',0.3142],
['20030226',0.318],
['20030227',0.3104],
['20030228',0.3142],
['20030303',0.3104],
['20030304',0.3028],
['20030305',0.3028],
['20030306',0.2915],
['20030307',0.2915],
['20030311',0.265],
['20030312',0.2498],
['20030313',0.2347],
['20030314',0.2498],
['20030317',0.2574],
['20030318',0.2574],
['20030319',0.2839],
['20030321',0.2574],
['20030327',0.2574],
['20030328',0.2574],
['20030401',0.265],
['20030402',0.2688],
['20030408',0.265],
['20030409',0.2574],
['20030429',0.2423],
['20030505',0.2385],
['20030506',0.2271],
['20030507',0.2423],
['20030513',0.212],
['20030519',0.2196],
['20030520',0.2196],
['20030521',0.2385],
['20030522',0.2498],
['20030523',0.212],
['20030526',0.2347],
['20030527',0.2309],
['20030529',0.2271],
['20030530',0.2196],
['20030602',0.2233],
['20030603',0.2233],
['20030605',0.1969],
['20030606',0.2006],
['20030609',0.212],
['20030612',0.212],
['20030613',0.212],
['20030616',0.2044],
['20030617',0.2196],
['20030618',0.2196],
['20030619',0.1969],
['20030620',0.2006],
['20030623',0.2158],
['20030624',0.2158],
['20030625',0.2196],
['20030626',0.2044],
['20030630',0.2006],
['20030703',0.1893],
['20030708',0.2044],
['20030709',0.1931],
['20030710',0.1764],
['20030711',0.1779],
['20030714',0.1893],
['20030715',0.1832],
['20030721',0.1787],
['20030722',0.1825],
['20030723',0.1741],
['20030724',0.1764],
['20030729',0.159],
['20030731',0.1817],
['20030801',0.1893],
['20030804',0.1832],
['20030805',0.1794],
['20030807',0.1969],
['20030808',0.1931],
['20030811',0.2196],
['20030812',0.2196],
['20030813',0.212],
['20030814',0.2158],
['20030815',0.2082],
['20030818',0.212],
['20030819',0.2044],
['20030820',0.1893],
['20030821',0.2196],
['20030825',0.2044],
['20030826',0.2044],
['20030827',0.2044],
['20030828',0.2271],
['20030829',0.2574],
['20030901',0.2196],
['20030902',0.2347],
['20030903',0.265],
['20030904',0.2574],
['20030905',0.265],
['20030908',0.265],
['20030909',0.2612],
['20030910',0.2574],
['20030915',0.2423],
['20030916',0.2423],
['20030917',0.2423],
['20030918',0.265],
['20030919',0.2271],
['20030924',0.2271],
['20030925',0.2271],
['20030929',0.2271],
['20031002',0.212],
['20031003',0.265],
['20031006',0.1893],
['20031008',0.2271],
['20031013',0.1931],
['20031016',0.1969],
['20031017',0.2006],
['20031021',0.1931],
['20031022',0.2082],
['20031023',0.2082],
['20031027',0.212],
['20031028',0.212],
['20031029',0.2082],
['20031031',0.212],
['20031103',0.2044],
['20031105',0.1893],
['20031106',0.2082],
['20031107',0.2044],
['20031110',0.2044],
['20031111',0.2082],
['20031113',0.2082],
['20031114',0.212],
['20031117',0.1969],
['20031118',0.1969],
['20031119',0.1931],
['20031120',0.1969],
['20031121',0.1817],
['20031124',0.2044],
['20031202',0.1969],
['20031203',0.1893],
['20031205',0.1931],
['20031208',0.1741],
['20031209',0.1969],
['20031210',0.2044],
['20031212',0.1969],
['20031215',0.2044],
['20031217',0.1931],
['20031218',0.1893],
['20031222',0.212],
['20031229',0.1931],
['20031230',0.1931],
['20031231',0.2044],
['20040102',0.1893],
['20040105',0.1931],
['20040108',0.1847],
['20040109',0.1969],
['20040112',0.2044],
['20040113',0.1893],
['20040114',0.1893],
['20040115',0.2196],
['20040116',0.2309],
['20040119',0.2726],
['20040120',0.2574],
['20040121',0.2347],
['20040126',0.2801],
['20040127',0.2726],
['20040129',0.2498],
['20040130',0.2498],
['20040202',0.2461],
['20040203',0.2423],
['20040204',0.2423],
['20040205',0.2461],
['20040206',0.2536],
['20040209',0.2726],
['20040210',0.2498],
['20040211',0.2726],
['20040212',0.2498],
['20040216',0.2498],
['20040217',0.2498],
['20040218',0.2574],
['20040219',0.2498],
['20040220',0.2498],
['20040223',0.2574],
['20040224',0.2498],
['20040226',0.2271],
['20040227',0.2347],
['20040301',0.212],
['20040303',0.2006],
['20040304',0.1969],
['20040309',0.1893],
['20040311',0.2006],
['20040312',0.1863],
['20040315',0.1969],
['20040316',0.2006],
['20040317',0.2196],
['20040318',0.2006],
['20040322',0.1969],
['20040323',0.2044],
['20040325',0.2271],
['20040326',0.2461],
['20040329',0.265],
['20040330',0.2801],
['20040331',0.2498],
['20040401',0.2196],
['20040406',0.212],
['20040416',0.2196],
['20040420',0.2271],
['20040426',0.2044],
['20040427',0.2271],
['20040428',0.2347],
['20040429',0.2536],
['20040430',0.2423],
['20040504',0.2498],
['20040506',0.2423],
['20040507',0.2347],
['20040510',0.2461],
['20040512',0.2347],
['20040513',0.2271],
['20040514',0.2347],
['20040520',0.2271],
['20040521',0.2347],
['20040524',0.2271],
['20040525',0.2233],
['20040527',0.2233],
['20040602',0.2385],
['20040603',0.2309],
['20040604',0.2309],
['20040607',0.2233],
['20040608',0.2271],
['20040614',0.2196],
['20040615',0.2196],
['20040616',0.2271],
['20040617',0.2082],
['20040618',0.2082],
['20040621',0.212],
['20040625',0.2044],
['20040630',0.212],
['20040702',0.212],
['20040705',0.2044],
['20040706',0.2233],
['20040712',0.212],
['20040713',0.2082],
['20040719',0.2006],
['20040720',0.2271],
['20040723',0.2044],
['20040728',0.2082],
['20040729',0.1931],
['20040804',0.1893],
['20040809',0.1893],
['20040811',0.1969],
['20040816',0.1969],
['20040819',0.1893],
['20040820',0.1969],
['20040827',0.1969],
['20040831',0.1893],
['20040902',0.1893],
['20040903',0.1855],
['20040906',0.1817],
['20040907',0.1741],
['20040908',0.1741],
['20040909',0.1893],
['20040910',0.1893],
['20040913',0.1863],
['20040914',0.1893],
['20040915',0.1893],
['20040921',0.2044],
['20040922',0.1969],
['20040924',0.1931],
['20040927',0.1825],
['20040928',0.1749],
['20040930',0.1741],
['20041004',0.1681],
['20041005',0.1931],
['20041015',0.1969],
['20041018',0.184],
['20041019',0.1893],
['20041021',0.1893],
['20041025',0.1817],
['20041026',0.1741],
['20041027',0.1969],
['20041029',0.2044],
['20041101',0.1969],
['20041103',0.2082],
['20041105',0.2271],
['20041108',0.2309],
['20041109',0.2385],
['20041112',0.2461],
['20041115',0.2423],
['20041116',0.2423],
['20041117',0.2423],
['20041118',0.2347],
['20041119',0.2347],
['20041122',0.2347],
['20041123',0.2498],
['20041124',0.2726],
['20041125',0.2726],
['20041126',0.2763],
['20041129',0.2991],
['20041130',0.3293],
['20041201',0.3142],
['20041202',0.3028],
['20041203',0.2801],
['20041208',0.2877],
['20041209',0.2877],
['20041213',0.2953],
['20041214',0.2877],
['20041215',0.3028],
['20041216',0.2953],
['20041217',0.2801],
['20041220',0.2953],
['20041221',0.2915],
['20041222',0.2915],
['20041223',0.2877],
['20041224',0.2877],
['20041228',0.3028],
['20041229',0.3028],
['20041230',0.3028],
['20041231',0.2953],
['20050103',0.3028],
['20050104',0.3028],
['20050105',0.3028],
['20050107',0.3028],
['20050111',0.2953],
['20050112',0.2915],
['20050113',0.3028],
['20050119',0.3028],
['20050120',0.3028],
['20050121',0.3028],
['20050125',0.2877],
['20050127',0.2688],
['20050128',0.2991],
['20050203',0.2726],
['20050214',0.2991],
['20050216',0.2991],
['20050217',0.2991],
['20050218',0.2877],
['20050221',0.2991],
['20050223',0.2991],
['20050224',0.2801],
['20050228',0.2801],
['20050302',0.2801],
['20050303',0.265],
['20050308',0.2498],
['20050309',0.2801],
['20050310',0.2574],
['20050311',0.2688],
['20050314',0.2612],
['20050315',0.2574],
['20050316',0.2498],
['20050322',0.2574],
['20050323',0.2385],
['20050329',0.2574],
['20050330',0.2498],
['20050401',0.2385],
['20050404',0.2385],
['20050406',0.2347],
['20050408',0.265],
['20050411',0.3104],
['20050412',0.3218],
['20050413',0.3142],
['20050414',0.318],
['20050415',0.3104],
['20050418',0.2877],
['20050420',0.3028],
['20050421',0.2877],
['20050422',0.3028],
['20050425',0.3028],
['20050426',0.3028],
['20050427',0.318],
['20050428',0.3331],
['20050429',0.3558],
['20050503',0.3786],
['20050504',0.3786],
['20050505',0.424],
['20050506',0.4088],
['20050509',0.3786],
['20050510',0.4013],
['20050511',0.3786],
['20050512',0.4013],
['20050513',0.3786],
['20050517',0.3786],
['20050518',0.371],
['20050519',0.3634],
['20050520',0.3634],
['20050523',0.3634],
['20050524',0.3634],
['20050525',0.371],
['20050526',0.3786],
['20050527',0.3786],
['20050530',0.3786],
['20050531',0.371],
['20050601',0.3558],
['20050602',0.371],
['20050603',0.3634],
['20050607',0.3634],
['20050609',0.3596],
['20050610',0.3596],
['20050613',0.3786],
['20050617',0.3672],
['20050620',0.3445],
['20050621',0.3445],
['20050622',0.3748],
['20050623',0.371],
['20050624',0.371],
['20050627',0.3558],
['20050628',0.3558],
['20050802',0.3786],
['20050803',0.3634],
['20050804',0.371],
['20050808',0.371],
['20050809',0.3672],
['20050810',0.3596],
['20050811',0.3331],
['20050812',0.3596],
['20050815',0.3634],
['20050816',0.3596],
['20050817',0.3596],
['20050818',0.3218],
['20050819',0.3445],
['20050823',0.3293],
['20050824',0.3483],
['20050825',0.3293],
['20050826',0.3256],
['20050829',0.3483],
['20050830',0.3407],
['20050831',0.3521],
['20050901',0.3407],
['20050902',0.3634],
['20050905',0.3407],
['20050906',0.3331],
['20050908',0.3483],
['20050909',0.3407],
['20050912',0.3369],
['20050913',0.3407],
['20050914',0.3483],
['20050915',0.3407],
['20050916',0.3369],
['20050920',0.3407],
['20050921',0.3369],
['20050922',0.3369],
['20050923',0.3483],
['20050926',0.3369],
['20050927',0.3483],
['20050928',0.3521],
['20050929',0.3483],
['20050930',0.3521],
['20051003',0.3521],
['20051004',0.3521],
['20051005',0.3558],
['20051006',0.3521],
['20051007',0.3445],
['20051010',0.3596],
['20051012',0.3558],
['20051013',0.3596],
['20051014',0.3596],
['20051017',0.3634],
['20051018',0.3558],
['20051019',0.3558],
['20051020',0.3521],
['20051021',0.3786],
['20051024',0.3861],
['20051025',0.4164],
['20051026',0.424],
['20051027',0.424],
['20051028',0.4164],
['20051031',0.4316],
['20051101',0.4618],
['20051102',0.5073],
['20051103',0.5451],
['20051104',0.5375],
['20051107',0.4997],
['20051108',0.4845],
['20051109',0.4694],
['20051110',0.4921],
['20051111',0.5148],
['20051114',0.5148],
['20051115',0.4997],
['20051116',0.5148],
['20051117',0.5224],
['20051118',0.5073],
['20051121',0.5527],
['20051122',0.5603],
['20051123',0.583],
['20051124',0.5603],
['20051125',0.5754],
['20051128',0.636],
['20051129',0.7041],
['20051130',0.689],
['20051201',0.6814],
['20051202',0.6814],
['20051205',0.689],
['20051206',0.689],
['20051207',0.7041],
['20051208',0.7041],
['20051209',0.6965],
['20051212',0.689],
['20051213',0.689],
['20051214',0.6965],
['20051215',0.689],
['20051216',0.6965],
['20051219',0.689],
['20051220',0.6814],
['20051221',0.689],
['20051222',0.6814],
['20051223',0.6814],
['20051228',0.6814],
['20051229',0.6587],
['20051230',0.6511],
['20060103',0.6133],
['20060104',0.6057],
['20060105',0.6208],
['20060106',0.6208],
['20060109',0.636],
['20060110',0.6133],
['20060111',0.6133],
['20060112',0.6057],
['20060113',0.5981],
['20060116',0.6057],
['20060117',0.6133],
['20060118',0.6208],
['20060119',0.6435],
['20060120',0.6208],
['20060123',0.6435],
['20060124',0.6663],
['20060125',0.636],
['20060126',0.6208],
['20060127',0.636],
['20060201',0.636],
['20060202',0.6208],
['20060203',0.6208],
['20060206',0.6208],
['20060207',0.6057],
['20060208',0.6284],
['20060209',0.6435],
['20060210',0.6435],
['20060213',0.6435],
['20060214',0.6511],
['20060215',0.6587],
['20060216',0.6435],
['20060217',0.6435],
['20060220',0.636],
['20060221',0.6284],
['20060222',0.6284],
['20060223',0.6284],
['20060224',0.6208],
['20060227',0.6057],
['20060228',0.6057],
['20060301',0.5905],
['20060302',0.5905],
['20060303',0.5754],
['20060306',0.6057],
['20060307',0.6208],
['20060308',0.6208],
['20060309',0.6284],
['20060310',0.636],
['20060313',0.6435],
['20060314',0.6435],
['20060315',0.6511],
['20060316',0.6208],
['20060317',0.6208],
['20060320',0.636],
['20060321',0.6133],
['20060322',0.6208],
['20060323',0.6133],
['20060327',0.6511],
['20060328',0.6587],
['20060329',0.6587],
['20060330',0.7722],
['20060331',0.7495],
['20060403',0.795],
['20060404',0.954],
['20060406',1.0599],
['20060407',1.1357],
['20060410',1.1811],
['20060411',1.2265],
['20060412',1.2114],
['20060413',1.1735],
['20060418',1.0978],
['20060419',1.0751],
['20060420',1.0145],
['20060421',1.0069],
['20060424',1.0221],
['20060425',0.9842],
['20060426',1.0145],
['20060427',1.1054],
['20060428',1.1584],
['20060502',1.1281],
['20060503',1.1357],
['20060504',1.1357],
['20060508',1.1357],
['20060509',1.1357],
['20060510',1.1205],
['20060511',1.1205],
['20060512',1.1054],
['20060515',1.0751],
['20060516',1.0675],
['20060517',1.0902],
['20060518',1.0827],
['20060519',1.1811],
['20060522',1.1357],
['20060523',1.1659],
['20060524',1.1357],
['20060525',1.0978],
['20060526',1.1357],
['20060529',1.1735],
['20060530',1.1508],
['20060601',1.1735],
['20060602',1.1432],
['20060605',1.1584],
['20060606',1.1508],
['20060607',1.1205],
['20060608',1.1357],
['20060609',1.1432],
['20060612',1.1357],
['20060613',1.1054],
['20060614',1.1281],
['20060615',1.1432],
['20060616',1.1205],
['20060621',1.1054],
['20060622',1.0902],
['20060623',1.1357],
['20060627',1.1281],
['20060628',1.1281],
['20060629',1.0902],
['20060630',1.0902],
['20060703',1.0902],
['20060704',1.0297],
['20060705',1.0145],
['20060706',0.9842],
['20060707',0.9842],
['20060713',0.9615],
['20060717',1.0751],
['20060718',1.1129],
['20060719',1.0978],
['20060720',1.1129],
['20060721',1.1054],
['20060725',1.0599],
['20060726',1.0751],
['20060727',1.0524],
['20060728',1.0524],
['20060801',1.0524],
['20060802',1.0448],
['20060803',1.0675],
['20060804',1.0372],
['20060808',1.0524],
['20060811',1.0297],
['20060814',1.0221],
['20060815',0.9842],
['20060816',1.0069],
['20060817',1.0145],
['20060818',1.0221],
['20060821',1.0221],
['20060822',1.0221],
['20060823',1.0221],
['20060824',0.9842],
['20060825',1.0145],
['20060828',1.0069],
['20060829',1.0221],
['20060830',1.0069],
['20060831',0.9767],
['20060901',0.9842],
['20060904',1.0297],
['20060905',1.0448],
['20060906',1.0372],
['20060907',1.0069],
['20060908',1.0145],
['20060911',0.9842],
['20060912',1.0069],
['20060913',0.9918],
['20060914',1.0221],
['20060915',1.0221],
['20060918',1.0145],
['20060919',1.0145],
['20060920',0.9842],
['20060921',0.9994],
['20060922',1.0221],
['20060925',0.9842],
['20060926',0.9615],
['20060927',0.8328],
['20060928',0.7571],
['20060929',0.8707],
['20061003',0.9842],
['20061004',1.0372],
['20061005',1.0221],
['20061006',0.9918],
['20061009',0.9918],
['20061010',1.0221],
['20061011',1.0599],
['20061012',1.0069],
['20061013',1.0751],
['20061016',1.0524],
['20061017',1.0297],
['20061018',1.0297],
['20061019',1.0069],
['20061020',1.0145],
['20061023',0.9994],
['20061024',0.9767],
['20061025',0.9842],
['20061026',0.9842],
['20061027',0.9615],
['20061031',0.9842],
['20061101',0.9767],
['20061102',0.9842],
['20061103',0.954],
['20061106',0.9842],
['20061107',0.9767],
['20061108',0.9691],
['20061109',0.9691],
['20061110',0.9388],
['20061113',0.9388],
['20061114',0.901],
['20061115',0.8782],
['20061116',0.8782],
['20061117',0.8555],
['20061120',0.8555],
['20061121',0.848],
['20061122',0.8252],
['20061123',0.8707],
['20061124',0.8177],
['20061127',0.7495],
['20061128',0.6587],
['20061129',0.8631],
['20061130',0.7571],
['20061201',0.795],
['20061204',0.7722],
['20061205',0.7571],
['20061206',0.7874],
['20061207',0.7798],
['20061208',0.7798],
['20061211',0.7722],
['20061212',0.7647],
['20061213',0.7722],
['20061214',0.795],
['20061215',0.7571],
['20061218',0.7571],
['20061219',0.7722],
['20061220',0.7571],
['20061221',0.742],
['20061222',0.7344],
['20061227',0.7722],
['20061228',0.742],
['20061229',0.7268],
['20070102',0.7117],
['20070103',0.7495],
['20070104',0.7571],
['20070105',0.7495],
['20070108',0.742],
['20070109',0.7193],
['20070110',0.7041],
['20070111',0.7041],
['20070112',0.7041],
['20070115',0.6965],
['20070116',0.7041],
['20070117',0.7041],
['20070118',0.7041],
['20070119',0.6965],
['20070122',0.689],
['20070123',0.6133],
['20070124',0.6965],
['20070125',0.8707],
['20070126',0.9615],
['20070129',1.0978],
['20070130',1.4006],
['20070131',1.3931],
['20070201',1.3249],
['20070202',1.2644],
['20070205',1.2946],
['20070206',1.2795],
['20070207',1.2795],
['20070208',1.2568],
['20070209',1.2946],
['20070212',1.2871],
['20070213',1.2492],
['20070214',1.2492],
['20070215',1.2719],
['20070216',1.2871],
['20070221',1.2946],
['20070222',1.2871],
['20070223',1.2795],
['20070226',1.5066],
['20070227',1.5596],
['20070228',1.5142],
['20070301',1.6581],
['20070302',1.7868],
['20070305',1.8473],
['20070306',1.8776],
['20070307',1.7565],
['20070308',1.7489],
['20070309',1.6505],
['20070312',1.8019],
['20070313',1.7868],
['20070314',1.8322],
['20070321',1.9079],
['20070322',1.8246],
['20070323',1.7943],
['20070326',1.7489],
['20070327',1.6883],
['20070328',1.7489],
['20070329',1.7262],
['20070330',1.7489],
['20070402',1.7338],
['20070403',1.6732],
['20070404',1.6581],
['20070410',1.5899],
['20070411',1.5899],
['20070412',1.8549],
['20070413',1.8398],
['20070416',1.7413],
['20070417',1.6656],
['20070418',1.7565],
['20070419',1.6959],
['20070420',1.7943],
['20070423',1.7489],
['20070424',1.7489],
['20070425',1.6656],
['20070426',1.6959],
['20070427',1.6732],
['20070430',1.6656],
['20070502',1.7716],
['20070503',1.7413],
['20070504',1.7111],
['20070507',1.6883],
['20070508',1.6505],
['20070509',1.6656],
['20070510',1.6656],
['20070511',1.6808],
['20070514',1.7111],
['20070515',1.6808],
['20070516',1.6732],
['20070517',1.9382],
['20070518',1.923],
['20070521',2.1805],
['20070522',2.5363],
['20070523',2.8013],
['20070525',2.8316],
['20070528',2.771],
['20070529',2.7483],
['20070530',2.6574],
['20070531',2.6347],
['20070601',2.6271],
['20070604',2.6499],
['20070605',2.6423],
['20070606',2.6574],
['20070607',2.665],
['20070608',2.6877],
['20070611',2.7256],
['20070612',2.6499],
['20070613',2.771],
['20070614',2.6877],
['20070615',2.6953],
['20070618',2.5817],
['20070620',2.612],
['20070621',2.5363],
['20070622',2.559],
['20070625',2.6044],
['20070626',2.5741],
['20070627',2.559],
['20070628',2.5211],
['20070629',2.4152],
['20070703',2.453],
['20070704',2.3849],
['20070705',2.4757],
['20070706',2.4303],
['20070709',2.6423],
['20070710',2.771],
['20070711',3.0057],
['20070712',3.0965],
['20070713',2.9603],
['20070716',2.9678],
['20070717',2.9376],
['20070718',2.9376],
['20070719',2.8846],
['20070720',2.8013],
['20070723',2.7937],
['20070724',2.7029],
['20070725',2.7937],
['20070726',2.8013],
['20070727',2.7483],
['20070730',2.7256],
['20070731',2.7559],
['20070801',2.6499],
['20070802',2.5514],
['20070803',2.5893],
['20070806',2.3849],
['20070807',1.9685],
['20070808',2.4227],
['20070809',2.4152],
['20070810',2.3773],
['20070813',2.3243],
['20070814',2.347],
['20070815',2.3167],
['20070816',2.2335],
['20070817',2.1577],
['20070820',2.1729],
['20070821',2.082],
['20070822',2.2562],
['20070823',2.3243],
['20070824',2.3092],
['20070827',2.5439],
['20070828',2.4227],
['20070829',2.4909],
['20070830',2.4076],
['20070831',2.4076],
['20070903',2.453],
['20070904',2.3849],
['20070905',2.4227],
['20070906',2.5741],
['20070907',2.7861],
['20070910',2.9148],
['20070911',2.8467],
['20070912',2.8164],
['20070913',2.7786],
['20070914',2.7786],
['20070917',2.7029],
['20070918',2.6044],
['20070919',2.6044],
['20070920',2.5363],
['20070921',2.5287],
['20070924',2.4757],
['20070925',2.4909],
['20070927',2.506],
['20070928',2.5514],
['20071002',2.6726],
['20071003',2.5893],
['20071004',2.6953],
['20071005',3.2555],
['20071008',3.1268],
['20071009',3.3464],
['20071010',3.5054],
['20071011',3.3615],
['20071012',3.407],
['20071015',3.4145],
['20071016',3.4827],
['20071017',3.5584],
['20071018',3.7779],
['20071022',3.7325],
['20071023',4.1489],
['20071024',3.8915],
['20071025',3.6947],
['20071026',3.7325],
['20071029',3.7098],
['20071030',3.7477],
['20071031',3.8915],
['20071101',3.8915],
['20071102',3.9596],
['20071105',3.7325],
['20071106',3.7779],
['20071107',3.7779],
['20071108',3.6947],
['20071109',3.6568],
['20071112',3.6417],
['20071113',3.7552],
['20071114',3.8309],
['20071115',3.7477],
['20071116',3.7855],
['20071119',3.7098],
['20071120',3.6341],
['20071121',3.6341],
['20071122',3.6492],
['20071123',3.5811],
['20071126',3.5508],
['20071127',3.5584],
['20071128',3.407],
['20071129',3.4827],
['20071130',3.6568],
['20071203',3.4827],
['20071204',3.4827],
['20071205',3.3918],
['20071206',3.3842],
['20071207',3.5054],
['20071210',3.4827],
['20071211',3.5432],
['20071212',3.4827],
['20071213',3.5054],
['20071214',3.5584],
['20071217',3.4902],
['20071218',3.3994],
['20071219',3.4448],
['20071220',3.407],
['20071221',3.407],
['20071224',3.4221],
['20071227',3.5281],
['20071228',3.6568],
['20071231',3.7855],
['20080102',3.9899],
['20080103',3.9521],
['20080104',3.9218],
['20080107',3.8764],
['20080108',3.8688],
['20080109',3.9521],
['20080110',4.0051],
['20080111',4.3382],
['20080114',4.2549],
['20080115',4.2776],
['20080116',4.1716],
['20080117',4.1338],
['20080118',4.1792],
['20080121',3.9369],
['20080122',3.4978],
['20080123',3.7477],
['20080124',3.6341],
['20080125',3.9369],
['20080128',3.8839],
['20080129',3.7704],
['20080130',3.8385],
['20080131',3.8385],
['20080201',3.7704],
['20080204',3.8006],
['20080205',3.7855],
['20080206',3.7704],
['20080211',3.6947],
['20080212',3.7401],
['20080213',3.7552],
['20080214',3.7628],
['20080215',3.7401],
['20080218',3.6038],
['20080219',3.5811],
['20080220',3.4297],
['20080221',3.4827],
['20080222',3.2253],
['20080225',3.407],
['20080226',3.407],
['20080227',3.1874],
['20080228',3.1495],
['20080229',3.1723],
['20080303',3.1495],
['20080304',3.1723],
['20080305',3.1571],
['20080306',3.1117],
['20080307',2.9451],
['20080310',2.9376],
['20080311',3.2783],
['20080312',3.3312],
['20080313',3.1268],
['20080314',3.2934],
['20080317',2.9906],
['20080318',2.9148],
['20080319',2.6726],
['20080320',2.3167],
['20080325',2.9754],
['20080326',2.7937],
['20080327',2.7937],
['20080328',2.93],
['20080331',2.8013],
['20080401',2.8467],
['20080402',2.9073],
['20080403',2.9073],
['20080407',2.9603],
['20080408',3.248],
['20080409',3.5205],
['20080410',3.4524],
['20080411',3.3994],
['20080414',3.5054],
['20080415',3.3994],
['20080416',3.4372],
['20080417',3.4221],
['20080418',3.4448],
['20080424',3.3085],
['20080425',3.3085],
['20080428',3.4221],
['20080429',3.407],
['20080430',3.6795],
['20080502',3.5811],
['20080505',3.6417],
['20080506',3.5811],
['20080507',3.5054],
['20080508',3.4978],
['20080509',3.4297],
['20080522',3.8082],
['20080523',3.8234],
['20080526',3.8234],
['20080527',3.8234],
['20080528',3.6644],
['20080529',3.6719],
['20080530',3.6189],
['20080602',3.5584],
['20080603',3.6038],
['20080604',3.6644],
['20080605',3.6568],
['20080606',3.6947],
['20080610',3.6492],
['20080611',3.6189],
['20080612',3.6417],
['20080613',3.7174],
['20080618',3.7401],
['20080619',3.8688],
['20080623',3.8309],
['20080624',3.8082],
['20080625',3.9899],
['20080626',4.5956],
['20080627',4.641],
['20080630',4.5426],
['20080702',4.3685],
['20080703',4.1111],
['20080704',4.2776],
['20080707',4.2852],
['20080708',4.2776],
['20080709',4.5653],
['20080710',4.535],
['20080711',4.5048],
['20080714',4.5653],
['20080715',4.535],
['20080716',4.535],
['20080717',4.5653],
['20080718',4.535],
['20080721',4.6107],
['20080722',4.4896],
['20080723',4.4669],
['20080724',4.482],
['20080725',4.323],
['20080728',3.9748],
['20080729',4.0581],
['20080730',4.1035],
['20080731',4.1641],
['20080801',4.2776],
['20080804',4.3003],
['20080805',3.8461],
['20080807',3.9066],
['20080808',3.8915],
['20080811',3.7325],
['20080812',3.8082],
['20080813',3.7401],
['20080814',3.7098],
['20080815',3.5962],
['20080818',3.3237],
['20080819',2.8467],
['20080820',3.0133],
['20080821',3.1117],
['20080825',3.3615],
['20080826',3.2934],
['20080827',3.2177],
['20080828',3.1268],
['20080829',3.2253],
['20080901',3.0738],
['20080902',3.1041],
['20080903',3.0511],
['20080904',2.8316],
['20080905',2.6271],
['20080908',2.7331],
['20080909',2.7256],
['20080910',2.6271],
['20080911',2.453],
['20080912',2.4152],
['20080916',2.1956],
['20080917',2.082],
['20080918',2.0063],
['20080919',2.082],
['20080922',2.188],
['20080923',2.1577],
['20080924',2.0139],
['20080925',1.9912],
['20080926',2.0896],
['20080929',2.1653],
['20080930',2.2259],
['20081002',2.0745],
['20081003',2.0745],
['20081006',2.0442],
['20081008',1.8019],
['20081009',1.764],
['20081010',1.5142],
['20081013',1.5142],
['20081014',1.5142],
['20081015',1.4006],
['20081016',1.2341],
['20081017',1.0448],
['20081020',0.9085],
['20081021',0.9085],
['20081022',0.8858],
['20081023',0.8934],
['20081024',0.901],
['20081027',0.901],
['20081028',0.9085],
['20081029',0.9161],
['20081030',1.0978],
['20081031',1.0675],
['20081103',1.1432],
['20081104',1.1735],
['20081105',1.1584],
['20081106',0.954],
['20081107',1.1962],
['20081110',1.2871],
['20081111',1.2568],
['20081112',1.2265],
['20081113',1.2265],
['20081114',1.2265],
['20081117',1.2795],
['20081118',1.3476],
['20081119',1.3325],
['20081120',1.3401],
['20081121',1.2644],
['20081124',1.1432],
['20081125',1.1357],
['20081126',1.1357],
['20081127',1.1357],
['20081128',1.1811],
['20081201',1.1735],
['20081202',1.1584],
['20081203',1.1357],
['20081204',1.1508],
['20081205',1.1659],
['20081208',1.2189],
['20081209',1.2038],
['20081210',1.3628],
['20081211',1.4158],
['20081212',1.3931],
['20081215',1.4764],
['20081216',1.4158],
['20081217',1.3628],
['20081218',1.4082],
['20081219',1.3401],
['20081222',1.3628],
['20081223',1.3855],
['20081224',1.4536],
['20081229',1.4082],
['20081230',1.4158],
['20081231',1.4688],
['20090102',1.4461],
['20090105',1.4764],
['20090106',1.4082],
['20090107',1.4006],
['20090108',1.4309],
['20090109',1.4461],
['20090112',1.4309],
['20090113',1.4006],
['20090114',1.4309],
['20090115',1.4082],
['20090116',1.4082],
['20090119',1.3855],
['20090120',1.3552],
['20090121',1.3325],
['20090122',1.3704],
['20090123',1.3704],
['20090129',1.3628],
['20090130',1.3476],
['20090202',1.3325],
['20090203',1.4082],
['20090204',1.4234],
['20090205',1.5066],
['20090206',1.5142],
['20090209',1.5066],
['20090210',1.5218],
['20090211',1.5748],
['20090212',1.4991],
['20090213',1.5142],
['20090216',1.4839],
['20090217',1.4461],
['20090218',1.3931],
['20090219',1.4082],
['20090220',1.3855],
['20090223',1.3779],
['20090224',1.3476],
['20090225',1.3779],
['20090226',1.3855],
['20090227',1.3779],
['20090302',1.3174],
['20090303',1.2871],
['20090304',1.2871],
['20090305',1.2871],
['20090306',1.2341],
['20090309',1.1508],
['20090310',1.1584],
['20090311',1.1811],
['20090312',1.1432],
['20090313',1.1584],
['20090316',1.1584],
['20090317',1.1887],
['20090318',1.1735],
['20090319',1.2341],
['20090320',1.3022],
['20090323',1.3552],
['20090324',1.3476],
['20090325',1.3022],
['20090326',1.3098],
['20090327',1.3098],
['20090330',1.2492],
['20090331',1.2341],
['20090401',1.2568],
['20090402',1.3401],
['20090403',1.4006],
['20090406',1.3779],
['20090407',1.3779],
['20090408',1.3174],
['20090409',1.3628],
['20090414',1.4536],
['20090415',1.6732],
['20090416',1.5899],
['20090417',1.5445],
['20090420',1.7868],
['20090421',1.8019],
['20090422',1.6278],
['20090423',1.764],
['20090424',1.7338],
['20090427',1.5975],
['20090428',1.5142],
['20090429',1.5748],
['20090430',1.6429],
['20090504',1.8776],
['20090505',1.923],
['20090506',2.1577],
['20090507',2.2562],
['20090508',2.5211],
['20090511',2.3243],
['20090512',2.294],
['20090513',2.3849],
['20090514',2.4152],
['20090515',2.4227],
['20090518',2.3849],
['20090519',2.3849],
['20090520',2.3924],
['20090521',2.3622],
['20090522',2.3319],
['20090525',2.2486],
['20090526',2.1653],
['20090527',2.3167],
['20090529',2.3394],
['20090601',2.5893],
['20090602',2.7104],
['20090603',2.9906],
['20090604',3.089],
['20090605',3.1193],
['20090608',2.8618],
['20090609',2.8921],
['20090610',3.036],
['20090611',2.9754],
['20090612',3.0057],
['20090615',2.93],
['20090616',2.771],
['20090617',2.877],
['20090618',2.8921],
['20090619',3.0057],
['20090622',3.0284],
['20090623',2.8316],
['20090624',2.9678],
['20090625',3.0057],
['20090626',3.3161],
['20090629',3.3237],
['20090630',3.2404],
['20090702',3.2631],
['20090703',3.354],
['20090706',3.301],
['20090707',3.3085],
['20090708',3.2101],
['20090709',3.2707],
['20090710',3.3994],
['20090713',3.2707],
['20090714',3.5054],
['20090715',3.5054],
['20090716',3.4145],
['20090717',3.5887],
['20090720',3.5584],
['20090721',3.3994],
['20090722',3.5281],
['20090723',3.5432],
['20090724',3.8082],
['20090727',4.1489],
['20090728',4.1489],
['20090729',3.9369],
['20090730',3.8764],
['20090731',3.8688],
['20090803',3.9596],
['20090804',3.9294],
['20090805',3.8915],
['20090806',3.8536],
['20090807',4.0505],
['20090810',4.2398],
['20090811',4.2852],
['20090812',4.1035],
['20090813',4.3155],
['20090814',4.3155],
['20090817',4.0808],
['20090818',4.0126],
['20090819',3.9521],
['20090820',4.0126],
['20090821',3.9369],
['20090824',4.0126],
['20090825',4.0732],
['20090826',4.3079],
['20090827',4.2473],
['20090828',4.0354],
['20090831',3.9975],
['20090901',3.7325],
['20090902',3.4902],
['20090903',3.8612],
['20090904',4.0126],
['20090907',4.1413],
['20090908',4.0505],
['20090909',3.9824],
['20090910',4.0051],
['20090911',4.0505],
['20090914',4.0354],
['20090915',4.0505],
['20090916',4.2095],
['20090917',4.2928],
['20090918',4.1565],
['20090921',4.2398],
['20090922',4.1641],
['20090923',4.1413],
['20090924',3.9445],
['20090925',3.9596],
['20090928',3.9596],
['20090929',3.9369],
['20090930',3.9218],
['20091002',3.9218],
['20091005',3.9369],
['20091006',3.9899],
['20091007',4.0202],
['20091008',4.0429],
['20091009',4.0883],
['20091012',3.9975],
['20091013',4.0505],
['20091014',4.0808],
['20091015',4.0278],
['20091016',4.0656],
['20091019',4.0732],
['20091020',4.0808],
['20091021',4.3003],
['20091022',4.5426],
['20091023',4.5956],
['20091027',4.694],
['20091028',4.694],
['20091029',4.4215],
['20091030',4.5577],
['20091102',4.5426],
['20091103',4.8833],
['20091104',4.9439],
['20091105',4.9666],
['20091106',5.1331],
['20091109',5.2846],
['20091110',5.2467],
['20091111',5.2846],
['20091112',5.3224],
['20091113',5.2316],
['20091116',5.3754],
['20091117',5.2846],
['20091118',5.277],
['20091119',5.1861],
['20091120',5.2164],
['20091123',5.224],
['20091124',5.3981],
['20091125',5.3678],
['20091126',5.4057],
['20091127',5.1483],
['20091130',5.542],
['20091201',5.6783],
['20091202',5.754],
['20091203',6.019],
['20091204',5.9811],
['20091207',5.7464],
['20091208',5.9054],
['20091209',5.8675],
['20091210',5.9432],
['20091211',6.0568],
['20091214',5.8297],
['20091215',5.6858],
['20091216',5.6631],
['20091217',5.5798],
['20091218',5.4587],
['20091221',5.4814],
['20091222',5.5268],
['20091223',5.5117],
['20091224',5.6631],
['20091228',5.86],
['20091229',5.7691],
['20091230',5.6934],
['20091231',5.7691],
['20100104',6.0417],
['20100105',6.2915],
['20100106',6.3596],
['20100107',6.4354],
['20100108',6.1931],
['20100111',6.2309],
['20100112',6.1325],
['20100113',5.8524],
['20100114',5.9811],
['20100115',6.1552],
['20100118',6.1401],
['20100119',6.1098],
['20100120',5.9205],
['20100121',5.5647],
['20100122',5.436],
['20100125',5.4436],
['20100126',5.1937],
['20100127',5.2391],
['20100128',5.1861],
['20100129',5.0801],
['20100201',5.1029],
['20100202',5.3376],
['20100203',5.4511],
['20100204',5.2694],
['20100205',4.8757],
['20100208',4.6032],
['20100209',4.6713],
['20100210',4.853],
['20100211',4.9287],
['20100212',4.9287],
['20100217',4.9666],
['20100218',4.8303],
['20100219',4.8076],
['20100222',4.9439],
['20100223',5.224],
['20100224',5.3376],
['20100225',5.2543],
['20100226',5.224],
['20100301',5.2997],
['20100302',5.2089],
['20100303',4.9893],
['20100304',4.9893],
['20100305',5.012],
['20100308',5.1634],
['20100309',4.9893],
['20100310',4.9969],
['20100311',4.8984],
['20100312',4.9136],
['20100315',4.9136],
['20100316',4.747],
['20100317',4.8833],
['20100318',4.9363],
['20100319',4.906],
['20100322',4.7773],
['20100323',4.588],
['20100324',4.4896],
['20100325',4.2322],
['20100326',4.4972],
['20100329',4.6865],
['20100330',4.5956],
['20100331',4.4669],
['20100401',4.4593],
['20100407',4.5577],
['20100408',4.3685],
['20100409',4.3155],
['20100412',4.3382],
['20100413',4.3836],
['20100414',4.376],
['20100415',4.4063],
['20100416',4.3458],
['20100419',4.2701],
['20100420',4.4669],
['20100421',4.641],
['20100422',4.4518],
['20100423',4.3458],
['20100426',4.3685],
['20100427',4.3306],
['20100428',4.2473],
['20100429',4.1565],
['20100430',4.2095],
['20100503',4.0808],
['20100504',3.9824],
['20100505',3.7552],
['20100506',3.5962],
['20100507',3.5054],
['20100510',3.8536],
['20100511',3.7931],
['20100512',3.8612],
['20100513',3.9294],
['20100514',3.8309],
['20100517',3.5205],
['20100518',3.5735],
['20100519',3.407],
['20100520',3.2934],
['20100524',3.4221],
['20100525',3.2177],
['20100526',3.2707],
['20100527',3.5054],
['20100528',3.6719],
['20100531',3.6644],
['20100601',3.5508],
['20100602',3.4751],
['20100603',3.4675],
['20100604',3.4372],
['20100607',3.2783],
['20100608',3.2934],
['20100609',3.2631],
['20100610',3.3464],
['20100611',3.3312],
['20100614',3.4297],
['20100615',3.4524],
['20100617',3.4675],
['20100618',3.513],
['20100621',3.6795],
['20100622',3.6947],
['20100623',3.6114],
['20100624',3.6719],
['20100625',3.5508],
['20100628',3.5054],
['20100629',3.3464],
['20100630',3.3237],
['20100702',3.1571],
['20100705',3.1193],
['20100706',3.195],
['20100707',3.2253],
['20100708',3.2555],
['20100709',3.354],
['20100712',3.2783],
['20100713',3.1495],
['20100714',3.1041],
['20100715',3.0133],
['20100716',2.9451],
['20100719',2.9603],
['20100720',3.1268],
['20100721',3.1874],
['20100722',3.3161],
['20100723',3.3312],
['20100726',3.3464],
['20100727',3.3464],
['20100728',3.3237],
['20100729',3.3464],
['20100730',3.3994],
['20100802',3.6568],
['20100803',3.6871],
['20100804',3.6417],
['20100805',3.6189],
['20100806',3.5735],
['20100809',3.5811],
['20100810',3.4675],
['20100811',3.407],
['20100812',3.2934],
['20100813',3.354],
['20100816',3.3918],
['20100817',3.4221],
['20100818',3.4524],
['20100819',3.513],
['20100820',3.4751],
['20100823',3.46],
['20100824',3.4751],
['20100825',3.3161],
['20100826',3.2783],
['20100827',3.1041],
['20100830',3.1268],
['20100831',3.0814],
['20100901',3.142],
['20100902',3.2858],
['20100903',3.301],
['20100906',3.407],
['20100907',3.354],
['20100908',3.3237],
['20100909',3.3085],
['20100910',3.2934],
['20100913',3.3842],
['20100914',3.3464],
['20100915',3.3161],
['20100916',3.2631],
['20100917',3.301],
['20100920',3.3085],
['20100921',3.3237],
['20100922',3.3842],
['20100924',3.4221],
['20100927',3.6871],
['20100928',3.7098],
['20100929',4.0581],
['20100930',3.9975],
['20101004',4.0732],
['20101005',4.0429],
['20101006',4.0581],
['20101007',3.9748],
['20101008',3.8764],
['20101011',4.0278],
['20101012',4.0126],
['20101013',4.1186],
['20101014',4.2019],
['20101015',4.1716],
['20101018',4.0883],
['20101019',4.1565],
['20101020',3.9748],
['20101021',4.0505],
['20101022',4.0429],
['20101025',4.0732],
['20101026',4.1413],
['20101027',4.0278],
['20101028',4.0051],
['20101029',3.9445],
['20101101',4.0278],
['20101102',4.0656],
['20101103',4.1716],
['20101104',4.3685],
['20101105',4.4745],
['20101108',4.4669],
['20101109',4.4063],
['20101110',4.2928],
['20101111',4.4139],
['20101112',4.2322],
['20101115',4.1413],
['20101116',3.9748],
['20101117',3.8234],
['20101118',3.8991],
['20101119',3.9521],
['20101122',3.9899],
['20101123',3.8991],
['20101124',4.0656],
['20101125',4.1792],
['20101126',4.1868],
['20101129',4.1641],
['20101130',4.0581],
['20101201',4.0202],
['20101202',4.1035],
['20101203',4.1035],
['20101206',4.2398],
['20101207',4.1338],
['20101208',3.9899],
['20101209',3.9066],
['20101210',3.8991],
['20101213',3.8839],
['20101214',3.9899],
['20101215',3.9748],
['20101216',3.8612],
['20101217',3.9369],
['20101220',3.9142],
['20101221',3.9066],
['20101222',3.8234],
['20101223',3.8385],
['20101224',3.8536],
['20101228',3.8309],
['20101229',3.8461],
['20101230',3.9672],
['20101231',4.0354],
['20110103',4.1338],
['20110104',4.4442],
['20110105',4.535],
['20110106',4.4518],
['20110107',4.4063],
['20110110',4.4366],
['20110111',4.4972],
['20110112',4.6183],
['20110113',4.5729],
['20110114',4.5426],
['20110117',4.3533],
['20110118',4.3079],
['20110119',4.3003],
['20110120',4.2246],
['20110121',4.1489],
['20110124',4.1413],
['20110125',4.1186],
['20110126',4.1868],
['20110127',4.0656],
['20110128',3.9672],
['20110131',3.9824],
['20110201',4.0505],
['20110202',4.1338],
['20110207',4.1262],
['20110208',4.1262],
['20110209',3.9899],
['20110210',3.7855],
['20110211',3.7477],
['20110214',3.9294],
['20110215',3.9975],
['20110216',3.9824],
['20110217',3.8991],
['20110218',3.9142],
['20110221',3.9521],
['20110222',3.7931],
['20110223',3.7931],
['20110224',3.7477],
['20110225',4.3306],
['20110228',4.3382],
['20110301',4.4366],
['20110302',4.3609],
['20110303',4.3458],
['20110304',4.3003],
['20110307',4.3003],
['20110308',4.3306],
['20110309',4.2852],
['20110310',4.2625],
['20110311',4.2928],
['20110314',4.3306],
['20110315',4.2322],
['20110316',4.2019],
['20110317',4.1565],
['20110318',4.2171],
['20110321',4.3382],
['20110322',4.3609],
['20110323',4.3533],
['20110324',4.3685],
['20110325',4.3685],
['20110328',4.2701],
['20110329',4.2019],
['20110330',4.2322],
['20110331',4.2322],
['20110401',4.3306],
['20110404',4.535],
['20110406',4.4972],
['20110407',4.4215],
['20110408',4.5653],
['20110411',4.6335],
['20110412',4.5048],
['20110413',4.5275],
['20110414',4.4442],
['20110415',4.4063],
['20110418',4.3609],
['20110419',4.3685],
['20110420',4.4442],
['20110421',4.4366],
['20110426',4.3382],
['20110427',4.3533],
['20110428',4.1338],
['20110429',4.1186],
['20110503',4.0051],
['20110504',3.9748],
['20110505',4.0202],
['20110506',4.0278],
['20110509',4.2171],
['20110511',4.1943],
['20110512',4.0656],
['20110513',4.0808],
['20110516',4.0732],
['20110517',4.1111],
['20110518',4.1868],
['20110519',4.1111],
['20110520',4.0808],
['20110523',3.9521],
['20110524',3.8991],
['20110525',3.6871],
['20110526',3.5357],
['20110527',3.6341],
['20110530',3.7022],
['20110531',3.7855],
['20110601',3.7628],
['20110602',3.7401],
['20110603',3.7098],
['20110607',3.7098],
['20110608',3.6189],
['20110609',3.4524],
['20110610',3.4372],
['20110613',3.3994],
['20110614',3.2783],
['20110615',3.2177],
['20110616',3.1495],
['20110617',3.2555],
['20110620',3.1571],
['20110621',3.2707],
['20110622',3.2783],
['20110623',3.2934],
['20110624',3.4372],
['20110627',3.5281],
['20110628',3.5811],
['20110629',3.5735],
['20110630',3.5962],
['20110704',3.7628],
['20110705',3.7477],
['20110706',3.7249],
['20110707',3.7022],
['20110708',3.6795],
['20110711',3.5811],
['20110712',3.354],
['20110713',3.5281],
['20110714',3.4902],
['20110715',3.4902],
['20110718',3.3767],
['20110719',3.354],
['20110720',3.4524],
['20110721',3.4448],
['20110722',3.5811],
['20110725',3.513],
['20110726',3.5962],
['20110727',3.4902],
['20110728',3.4448],
['20110729',3.3085],
['20110801',3.4145],
['20110802',3.2404],
['20110803',3.1571],
['20110804',3.1723],
['20110805',3.0057],
['20110808',2.8164],
['20110809',2.506],
['20110810',2.5211],
['20110811',2.4682],
['20110812',2.5136],
['20110815',2.7331],
['20110816',2.7256],
['20110817',2.8467],
['20110818',2.7559],
['20110819',2.6347],
['20110822',2.5514],
['20110823',2.665],
['20110824',2.5969],
['20110825',2.6726],
['20110826',2.612],
['20110829',2.6347],
['20110830',2.6877],
['20110831',2.7861],
['20110901',2.877],
['20110902',2.8543],
['20110905',2.6726],
['20110906',2.7029],
['20110907',2.771],
['20110908',2.7331],
['20110909',2.718],
['20110912',2.665],
['20110914',2.5211],
['20110915',2.4606],
['20110916',2.4606],
['20110919',2.4454],
['20110920',2.3773],
['20110921',2.3924],
['20110922',2.2107],
['20110923',2.135],
['20110926',1.9155],
['20110927',1.9912],
['20110928',2.1123],
['20110930',1.9874],
['20111003',1.7186],
['20111004',1.5407],
['20111006',1.7186],
['20111007',1.9079],
['20111010',1.8852],
['20111011',2.029],
['20111012',2.2259],
['20111013',2.4984],
['20111014',2.4682],
['20111017',2.5893],
['20111018',2.2335],
['20111019',2.2335],
['20111020',2.0896],
['20111021',2.1956],
['20111024',2.3319],
['20111025',2.4303],
['20111026',2.4833],
['20111027',2.5893],
['20111028',2.6044],
['20111031',2.4454],
['20111101',2.4152],
['20111102',2.4379],
['20111103',2.4682],
['20111104',2.612],
['20111107',2.4606],
['20111108',2.4909],
['20111109',2.4682],
['20111110',2.2032],
['20111111',2.2183],
['20111114',2.3622],
['20111115',2.3319],
['20111116',2.2713],
['20111117',2.2789],
['20111118',2.2032],
['20111121',2.1047],
['20111122',2.1199],
['20111123',2.1199],
['20111124',2.1653],
['20111125',2.135],
['20111128',2.241],
['20111129',2.2183],
['20111130',2.2637],
['20111201',2.4],
['20111202',2.3622],
['20111205',2.2864],
['20111206',2.2032],
['20111207',2.241],
['20111208',2.2183],
['20111209',2.1577],
['20111212',2.1577],
['20111213',2.1047],
['20111214',2.082],
['20111215',2.0442],
['20111216',2.029],
['20111219',1.9912],
['20111220',1.9533],
['20111221',1.976],
['20111222',2.0366],
['20111223',2.0669],
['20111228',1.9609],
['20111229',1.976],
['20111230',1.976],
['20120103',2.029],
['20120104',2.0139],
['20120105',2.029],
['20120106',1.9988],
['20120109',2.0366],
['20120110',2.1502],
['20120111',2.2335],
['20120112',2.2107],
['20120113',2.1956],
['20120116',2.0896],
['20120117',2.2032],
['20120118',2.2107],
['20120119',2.2107],
['20120120',2.2259],
['20120126',2.4227],
['20120127',2.3773],
['20120130',2.3622],
['20120131',2.3622],
['20120201',2.3167],
['20120202',2.3773],
['20120203',2.4076],
['20120206',2.5211],
['20120207',2.5287],
['20120208',2.6423],
['20120209',2.612],
['20120210',2.4454],
['20120213',2.4303],
['20120214',2.3697],
['20120215',2.5666],
['20120216',2.506],
['20120217',2.5363],
['20120220',2.4682],
['20120221',2.4984],
['20120222',2.4833],
['20120223',2.4379],
['20120224',2.5287],
['20120227',2.4757],
['20120228',2.5211],
['20120229',2.4984],
['20120301',2.4],
['20120302',2.4303],
['20120305',2.3546],
['20120306',2.2713],
['20120307',2.2032],
['20120308',2.2335],
['20120309',2.2486],
['20120312',2.2486],
['20120313',2.2864],
['20120314',2.241],
['20120315',2.2486],
['20120316',2.1577],
['20120319',2.135],
['20120320',2.0896],
['20120321',2.0896],
['20120322',2.0896],
['20120323',2.1805],
['20120326',2.1426],
['20120327',2.1502],
['20120328',2.0896],
['20120329',1.9988],
['20120330',1.9912],
['20120402',2.0215],
['20120403',2.1502],
['20120405',2.1199],
['20120410',2.0139],
['20120411',1.9836],
['20120412',1.9079],
['20120413',1.8776],
['20120416',2.0215],
['20120417',2.0215],
['20120418',1.9988],
['20120419',1.9988],
['20120420',1.9912],
['20120423',1.9836],
['20120424',1.976],
['20120425',1.9836],
['20120426',2.0517],
['20120427',2.0442],
['20120430',2.0593],
['20120502',2.0896],
['20120503',2.0745],
['20120504',2.0669],
['20120507',1.9912],
['20120508',2.029],
['20120509',1.9685],
['20120510',1.9306],
['20120511',1.9079],
['20120514',1.9003],
['20120515',1.9003],
['20120516',1.8398],
['20120517',1.8095],
['20120518',1.7489],
['20120521',1.8776],
['20120522',1.9458],
['20120523',1.8549],
['20120524',1.9079],
['20120525',1.923],
['20120528',1.9306],
['20120529',2.0139],
['20120530',2.0442],
['20120531',1.923],
['20120601',1.9155],
['20120604',1.7792],
['20120605',1.764],
['20120606',1.8398],
['20120607',1.764],
['20120608',1.7413],
['20120611',1.8246],
['20120612',1.8019],
['20120613',1.8019],
['20120614',1.7489],
['20120615',1.7792],
['20120618',1.7489],
['20120619',1.7413],
['20120620',1.7943],
['20120621',1.7565],
['20120622',1.7413],
['20120625',1.7111],
['20120626',1.6808],
['20120627',1.6202],
['20120628',1.5066],
['20120629',1.5066],
['20120703',1.5445],
['20120704',1.6051],
['20120705',1.6051],
['20120706',1.6429],
['20120709',1.5596],
['20120710',1.5142],
['20120711',1.5218],
['20120712',1.5142],
['20120713',1.5066],
['20120716',1.4915],
['20120717',1.5293],
['20120718',1.4991],
['20120719',1.5142],
['20120720',1.5293],
['20120723',1.4991],
['20120724',1.4915],
['20120725',1.4839],
['20120726',1.5142],
['20120727',1.6202],
['20120730',1.5823],
['20120731',1.5823],
['20120801',1.6808],
['20120802',1.6581],
['20120803',1.6581],
['20120806',1.6656],
['20120807',1.6959],
['20120808',1.7186],
['20120809',1.764],
['20120810',1.7035],
['20120813',1.6581],
['20120814',1.6505],
['20120815',1.6202],
['20120816',1.6126],
['20120817',1.5975],
['20120820',1.6353],
['20120821',1.6278],
['20120822',1.5823],
['20120823',1.6278],
['20120824',1.5975],
['20120827',1.5899],
['20120828',1.5899],
['20120829',1.5672],
['20120830',1.5369],
['20120831',1.5521],
['20120903',1.5218],
['20120904',1.5218],
['20120905',1.4839],
['20120906',1.5142],
['20120907',1.5823],
['20120910',1.5975],
['20120911',1.5823],
['20120912',1.6126],
['20120913',1.5748],
['20120914',1.6126],
['20120917',1.6051],
['20120918',1.5672],
['20120919',1.5899],
['20120920',1.5596],
['20120921',1.5521],
['20120924',1.5521],
['20120925',1.5596],
['20120926',1.5066],
['20120927',1.5823],
['20120928',1.5748],
['20121003',1.6353],
['20121004',1.5975],
['20121005',1.6505],
['20121008',1.6051],
['20121009',1.6353],
['20121010',1.6959],
['20121011',1.7413],
['20121012',1.8019],
['20121015',1.8095],
['20121016',1.817],
['20121017',1.8246],
['20121018',1.9003],
['20121019',1.9003],
['20121022',1.9836],
['20121024',2.0215],
['20121025',2.0593],
['20121026',2.0517],
['20121029',2.0442],
['20121030',2.0139],
['20121031',2.0517],
['20121101',2.1426],
['20121102',2.188],
['20121105',2.1956],
['20121106',2.188],
['20121107',2.2032],
['20121108',2.2032],
['20121109',2.1275],
['20121112',2.135],
['20121113',2.1577],
['20121114',2.2032],
['20121115',2.0896],
['20121116',2.1577],
['20121119',2.188],
['20121120',2.2183],
['20121121',2.2335],
['20121122',2.2637],
['20121123',2.2562],
['20121126',2.188],
['20121127',2.1805],
['20121128',2.1047],
['20121129',2.1956],
['20121130',2.135],
['20121203',2.1426],
['20121204',2.1956],
['20121205',2.2032],
['20121206',2.2032],
['20121207',2.2107],
['20121210',2.188],
['20121211',2.2107],
['20121212',2.2183],
['20121213',2.2335],
['20121214',2.2259],
['20121217',2.2107],
['20121218',2.188],
['20121219',2.2259],
['20121220',2.2335],
['20121221',2.2335],
['20121224',2.2032],
['20121227',2.1729],
['20121228',2.241],
['20121231',2.1502],
['20130102',2.2107],
['20130103',2.347],
['20130104',2.4076],
['20130107',2.506],
['20130108',2.4984],
['20130109',2.453],
['20130110',2.5439],
['20130111',2.3849],
['20130114',2.4076],
['20130115',2.4757],
['20130116',2.4833],
['20130117',2.4757],
['20130118',2.4833],
['20130121',2.5211],
['20130122',2.4606],
['20130123',2.4454],
['20130124',2.4606],
['20130125',2.4303],
['20130128',2.3849],
['20130129',2.4303],
['20130130',2.4984],
['20130131',2.5287],
['20130201',2.5136],
['20130204',2.5439],
['20130205',2.4606],
['20130206',2.4606],
['20130207',2.4833],
['20130208',2.4984],
['20130214',2.6423],
['20130215',2.7256],
['20130218',2.6574],
['20130219',2.5817],
['20130220',2.6196],
['20130221',2.612],
['20130222',2.612],
['20130225',2.559],
['20130226',2.4909],
['20130227',2.4606],
['20130228',2.5817],
['20130301',2.559],
['20130304',2.4303],
['20130305',2.453],
['20130306',2.453],
['20130307',2.5363],
['20130308',2.612],
['20130311',2.4984],
['20130312',2.506],
['20130313',2.5363],
['20130314',2.6196],
['20130315',2.6271],
['20130318',2.6347],
['20130319',2.6044],
['20130320',2.506],
['20130321',2.4909],
['20130322',2.453],
['20130325',2.4984],
['20130326',2.4606],
['20130327',2.506],
['20130328',2.612],
['20130402',2.5136],
['20130403',2.4984],
['20130405',2.4379],
['20130408',2.4303],
['20130409',2.5741],
['20130410',2.5363],
['20130411',2.4606],
['20130412',2.4682],
['20130415',2.4606],
['20130416',2.4757],
['20130417',2.4833],
['20130418',2.4303],
['20130419',2.4379],
['20130422',2.4227],
['20130423',2.4303],
['20130424',2.3243],
['20130425',2.3546],
['20130426',2.3243],
['20130429',2.2562],
['20130430',2.294],
['20130502',2.2183],
['20130503',2.2486],
['20130506',2.241],
['20130507',2.2259],
['20130508',2.241],
['20130509',2.2486],
['20130510',2.241],
['20130513',2.3016],
['20130514',2.3016],
['20130515',2.3167],
['20130516',2.3016],
['20130520',2.3546],
['20130521',2.3849],
['20130522',2.3546],
['20130523',2.3167],
['20130524',2.3546],
['20130527',2.347],
['20130528',2.4606],
['20130529',2.347],
['20130530',2.3697],
['20130531',2.3622],
['20130603',2.347],
['20130604',2.3697],
['20130605',2.3319],
['20130606',2.294],
['20130607',2.3319],
['20130610',2.2713],
['20130611',2.2486],
['20130613',2.1653],
['20130614',2.0972],
['20130617',2.0442],
['20130618',2.0593],
['20130619',2.0215],
['20130620',1.9533],
['20130621',2.0442],
['20130624',2.0745],
['20130625',2.0139],
['20130626',2.0593],
['20130627',2.082],
['20130628',2.3092],
['20130702',2.1275],
['20130703',2.0139],
['20130704',2.082],
['20130705',2.135],
['20130708',2.1199],
['20130709',2.0972],
['20130710',2.0745],
['20130711',2.1123],
['20130712',2.082],
['20130715',2.1729],
['20130716',2.029],
['20130717',2.0215],
['20130718',2.082],
['20130719',2.1199],
['20130722',2.029],
['20130723',2.0896],
['20130724',2.0139],
['20130725',1.9912],
['20130726',1.9798],
['20130729',1.9988],
['20130730',1.9685],
['20130731',1.923],
['20130801',1.9079],
['20130802',1.9003],
['20130805',1.8928],
['20130806',1.87],
['20130807',1.8019],
['20130808',1.764],
['20130809',1.8776],
['20130812',1.9988],
['20130813',1.976],
['20130815',1.9685],
['20130816',1.9382],
['20130819',1.923],
['20130820',1.9155],
['20130821',1.9382],
['20130822',1.9912],
['20130823',1.9609],
['20130826',1.9988],
['20130827',1.9609],
['20130828',1.9685],
['20130829',1.976],
['20130830',1.9685],
['20130902',2.0215],
['20130903',2.0972],
['20130904',2.0745],
['20130905',2.0593],
['20130906',2.029],
['20130909',2.0517],
['20130910',2.0896],
['20130911',2.1502],
['20130912',2.2032],
['20130913',2.0669],
['20130916',2.0972],
['20130917',2.0745],
['20130918',2.0517],
['20130919',2.0442],
['20130923',2.1047],
['20130924',2.1047],
['20130925',2.0972],
['20130926',2.0366],
['20130927',1.9685],
['20130930',1.9685],
['20131002',1.9609],
['20131003',1.9912],
['20131004',1.9988],
['20131007',1.9685],
['20131008',1.9988],
['20131009',1.9458],
['20131010',1.9382],
['20131011',1.9079],
['20131015',1.9609],
['20131016',2.029],
['20131017',2.0063],
['20131018',2.0593],
['20131021',2.0063],
['20131022',1.9609],
['20131023',1.9836],
['20131024',1.9912],
['20131025',1.9988],
['20131028',1.9912],
['20131029',1.9836],
['20131030',1.9912],
['20131031',1.9685],
['20131101',1.9836],
['20131104',1.9836],
['20131105',1.9533],
['20131106',1.9988],
['20131107',1.9685],
['20131108',1.9609],
['20131111',1.9533],
['20131112',1.9306],
['20131113',1.8852],
['20131114',2.0063],
['20131115',2.0063],
['20131118',2.0517],
['20131119',2.0669],
['20131120',2.0517],
['20131121',2.0669],
['20131122',2.0745],
['20131125',2.0745],
['20131126',2.0517],
['20131127',2.0593],
['20131128',2.029],
['20131129',2.0669],
['20131202',2.0896],
['20131203',2.082],
['20131204',2.1275],
['20131205',2.0896],
['20131206',2.1199],
['20131209',2.1199],
['20131210',2.0669],
['20131211',2.0593],
['20131212',2.0669],
['20131213',2.0593],
['20131216',1.976],
['20131217',1.9458],
['20131218',2.0139],
['20131219',1.9609],
['20131220',2.0139],
['20131223',2.0215],
['20131224',2.0745],
['20131227',2.0745],
['20131230',2.0745],
['20131231',2.0517],
['20140102',2.082],
['20140103',2.0366],
['20140106',2.0442],
['20140107',2.0517],
['20140108',2.0215],
['20140109',1.9685],
['20140110',1.8322],
['20140113',1.9003],
['20140114',1.8398],
['20140115',1.9003],
['20140116',1.8473],
['20140117',1.8625],
['20140120',1.87],
['20140121',1.8322],
['20140122',1.7943],
['20140123',1.7262],
['20140124',1.7111],
['20140127',1.6732],
['20140128',1.6278],
['20140129',1.6353],
['20140130',1.6126],
['20140204',1.5596],
['20140205',1.5899],
['20140206',1.5975],
['20140207',1.5975],
['20140210',1.6353],
['20140211',1.6581],
['20140212',1.6353],
['20140213',1.6808],
['20140214',1.6959],
['20140217',1.6429],
['20140218',1.6581],
['20140219',1.6353],
['20140220',1.6505],
['20140221',1.6429],
['20140224',1.6429],
['20140225',1.6202],
['20140226',1.5521],
['20140227',1.5823],
['20140228',1.5823],
['20140303',1.5899],
['20140304',1.5823],
['20140305',1.6202],
['20140306',1.6581],
['20140307',1.6883],
['20140310',1.6581],
['20140311',1.6581],
['20140312',1.6656],
['20140313',1.6959],
['20140314',1.6429],
['20140317',1.6202],
['20140318',1.6202],
['20140319',1.6126],
['20140320',1.6732],
['20140321',1.7413],
['20140324',1.764],
['20140325',1.7565],
['20140326',1.7716],
['20140327',1.764],
['20140328',1.7868],
['20140331',1.7868],
['20140401',1.7565],
['20140402',1.6883],
['20140403',1.7262],
['20140404',1.7338],
['20140407',1.7792],
['20140408',1.7565],
['20140409',1.7792],
['20140410',1.8398],
['20140411',1.7868],
['20140414',1.8776],
['20140415',1.87],
['20140416',1.8852],
['20140417',1.8852],
['20140422',1.8852],
['20140423',1.8473],
['20140424',1.8322],
['20140425',1.8019],
['20140428',1.7868],
['20140429',1.7716],
['20140430',1.7413],
['20140502',1.8322],
['20140505',1.8246],
['20140507',1.8019],
['20140508',1.8019],
['20140509',1.7868],
['20140512',1.8398],
['20140513',1.8625],
['20140514',1.8625],
['20140515',1.6732],
['20140516',1.6202],
['20140519',1.6278],
['20140520',1.6278],
['20140521',1.6656],
['20140522',1.6656],
['20140523',1.6051],
['20140526',1.5142],
['20140527',1.5142],
['20140528',1.5218],
['20140529',1.5142],
['20140530',1.4385],
['20140603',1.4915],
['20140604',1.4764],
['20140605',1.4082],
['20140606',1.4309],
['20140609',1.4536],
['20140610',1.3855],
['20140611',1.3779],
['20140612',1.3704],
['20140613',1.3704],
['20140616',1.3022],
['20140617',1.2341],
['20140618',1.2644],
['20140619',1.3098],
['20140620',1.2871],
['20140623',1.2644],
['20140624',1.2416],
['20140625',1.1962],
['20140626',1.2189],
['20140627',1.2265],
['20140630',1.2038],
['20140702',1.2265],
['20140703',1.2568],
['20140704',1.3401],
['20140707',1.3779],
['20140708',1.3931],
['20140709',1.3931],
['20140710',1.3476],
['20140711',1.3931],
['20140714',1.4158],
['20140715',1.4461],
['20140716',1.4461],
['20140717',1.4612],
['20140718',1.4839],
['20140721',1.4461],
['20140722',1.4612],
['20140723',1.4839],
['20140724',1.4991],
['20140725',1.5369],
['20140728',1.5823],
['20140729',1.6126],
['20140730',1.5748],
['20140731',1.5369],
['20140801',1.5975],
['20140804',1.6278],
['20140805',1.6051],
['20140806',1.6656],
['20140807',1.6808],
['20140808',1.6353],
['20140811',1.6581],
['20140812',1.6959],
['20140813',1.7262],
['20140814',1.7338],
['20140815',1.7489],
['20140818',1.6959],
['20140819',1.6202],
['20140820',1.6278],
['20140821',1.6126],
['20140822',1.6126],
['20140825',1.6202],
['20140826',1.6126],
['20140827',1.6202],
['20140828',1.6126],
['20140829',1.6126],
['20140901',1.5596],
['20140902',1.5218],
['20140903',1.5142],
['20140904',1.5142],
['20140905',1.5369],
['20140908',1.4991],
['20140910',1.4612],
['20140911',1.4764],
['20140912',1.4309],
['20140915',1.4461],
['20140916',1.4158],
['20140917',1.4612],
['20140918',1.4385],
['20140919',1.4764],
['20140922',1.4158],
['20140923',1.4234],
['20140924',1.4461],
['20140925',1.3855],
['20140926',1.3476],
['20140929',1.3325],
['20140930',1.3174],
['20141003',1.3704],
['20141006',1.3704],
['20141007',1.3779],
['20141008',1.3931],
['20141009',1.3779],
['20141010',1.3779],
['20141013',1.3628],
['20141014',1.3779],
['20141015',1.3401],
['20141016',1.3249],
['20141017',1.3552],
['20141020',1.3552],
['20141021',1.3476],
['20141022',1.3628],
['20141023',1.3325],
['20141024',1.3249],
['20141027',1.3174],
['20141028',1.3249],
['20141029',1.3476],
['20141030',1.3401],
['20141031',1.3249],
['20141103',1.3401],
['20141104',1.3628],
['20141105',1.3628],
['20141106',1.3628],
['20141107',1.3401],
['20141110',1.4006],
['20141111',1.3931],
['20141112',1.4234],
['20141113',1.4461],
['20141114',1.4385],
['20141117',1.3931],
['20141118',1.3628],
['20141119',1.3704],
['20141120',1.3628],
['20141121',1.3931],
['20141124',1.4234],
['20141125',1.4234],
['20141126',1.4385],
['20141127',1.4158],
['20141128',1.4082],
['20141201',1.3476],
['20141202',1.3779],
['20141203',1.3628],
['20141204',1.4006],
['20141205',1.3779],
['20141208',1.3552],
['20141209',1.3401],
['20141210',1.3325],
['20141211',1.3174],
['20141212',1.2946],
['20141215',1.2946],
['20141216',1.2871],
['20141217',1.2946],
['20141218',1.2871],
['20141219',1.2946],
['20141222',1.3022],
['20141223',1.2719],
['20141224',1.2871],
['20141229',1.2568],
['20141230',1.2871],
['20141231',1.2795],
['20150102',1.2644],
['20150105',1.3249],
['20150106',1.3098],
['20150107',1.3098],
['20150108',1.3022],
['20150109',1.2946],
['20150112',1.2871],
['20150113',1.2795],
['20150114',1.2644],
['20150115',1.2719],
['20150116',1.2568],
['20150119',1.2568],
['20150120',1.2568],
['20150121',1.2719],
['20150122',1.2568],
['20150123',1.2416],
['20150126',1.2492],
['20150127',1.2265],
['20150128',1.2038],
['20150129',1.2038],
['20150130',1.2114],
['20150202',1.2114],
['20150203',1.2189],
['20150204',1.2114],
['20150205',1.1887],
['20150206',1.1659],
['20150209',1.1357],
['20150210',1.1205],
['20150211',1.0902],
['20150212',1.1205],
['20150213',1.1281],
['20150216',1.1281],
['20150217',1.1205],
['20150218',1.1129],
['20150223',1.1205],
['20150224',1.1281],
['20150225',1.1205],
['20150226',1.1357],
['20150227',1.1508],
['20150302',1.1735],
['20150303',1.2265],
['20150304',1.2341],
['20150305',1.1962],
['20150306',1.1887],
['20150309',1.1584],
['20150310',1.1659],
['20150311',1.1584],
['20150312',1.1735],
['20150313',1.1508],
['20150316',1.1887],
['20150317',1.2038],
['20150318',1.2038],
['20150319',1.1962],
['20150320',1.1887],
['20150323',1.1735],
['20150324',1.1659],
['20150325',1.1129],
['20150326',1.1357],
['20150327',1.1281],
['20150330',1.1811],
['20150331',1.1962],
['20150401',1.1811],
['20150402',1.2341],
['20150408',1.3779],
['20150409',1.4158],
['20150410',1.4234],
['20150413',1.4839],
['20150414',1.4536],
['20150415',1.4764],
['20150416',1.4915],
['20150417',1.4612],
['20150420',1.3779],
['20150421',1.4006],
['20150422',1.4158],
['20150423',1.4158],
['20150424',1.4234],
['20150427',1.4612],
['20150428',1.4536],
['20150429',1.4461],
['20150430',1.5066],
['20150504',1.5218],
['20150505',1.4915],
['20150506',1.4461],
['20150507',1.3325],
['20150508',1.3704],
['20150511',1.3855],
['20150512',1.3704],
['20150513',1.3704],
['20150514',1.3704],
['20150515',1.3704],
['20150518',1.4006],
['20150519',1.3855],
['20150520',1.3704],
['20150521',1.3628],
['20150522',1.3931],
['20150526',1.4309],
['20150527',1.4158],
['20150528',1.3628],
['20150529',1.3779],
['20150601',1.4158],
['20150602',1.4006],
['20150603',1.3855],
['20150604',1.3704],
['20150605',1.3628],
['20150608',1.3628],
['20150609',1.3325],
['20150610',1.3249],
['20150611',1.3325],
['20150612',1.3476],
['20150615',1.3628],
['20150616',1.3249],
['20150617',1.3249],
['20150618',1.3325],
['20150619',1.3325],
['20150622',1.3249],
['20150623',1.3552],
['20150624',1.3931],
['20150625',1.4158],
['20150626',1.3779],
['20150629',1.3628],
['20150630',1.3704],
['20150702',1.3022],
['20150703',1.2416],
['20150706',1.1811],
['20150707',1.0675],
['20150708',0.8631],
['20150709',1.0372],
['20150710',1.0978],
['20150713',1.1205],
['20150714',1.0978],
['20150715',1.0599],
['20150716',1.0599],
['20150717',1.0751],
['20150720',1.0524],
['20150721',1.0599],
['20150722',1.0221],
['20150723',1.0297],
['20150724',1.0221],
['20150727',0.9464],
['20150728',0.9312],
['20150729',0.9388],
['20150730',0.8934],
['20150731',0.8858],
['20150803',0.8858],
['20150804',0.9161],
['20150805',0.9085],
['20150806',0.9085],
['20150807',0.9161],
['20150810',0.9464],
['20150811',0.9464],
['20150812',0.8934],
['20150813',0.8707],
['20150814',0.8858],
['20150817',0.8782],
['20150818',0.8782],
['20150819',0.8707],
['20150820',0.8555],
['20150821',0.795],
['20150824',0.689],
['20150825',0.6814],
['20150826',0.6663],
['20150827',0.6965],
['20150828',0.7571],
['20150831',0.742],
['20150901',0.7344],
['20150902',0.7571],
['20150904',0.7495],
['20150907',0.7571],
['20150908',0.7722],
['20150909',0.8101],
['20150910',0.8177],
['20150911',0.8555],
['20150914',0.8555],
['20150915',0.8555],
['20150916',0.8817],
['20150917',0.8992],
['20150918',0.9254],
['20150921',0.9166],
['20150922',0.9341],
['20150923',0.8817],
['20150924',0.873],
['20150925',0.8643],
['20150929',0.8643],
['20150930',0.8381],
['20151002',0.8555],
['20151005',0.8643],
['20151006',0.8555],
['20151007',0.9079],
['20151008',0.9079],
['20151009',0.8992],
['20151012',0.9428],
['20151013',0.9341],
['20151014',0.9254],
['20151015',0.9428],
['20151016',0.9428],
['20151019',0.9428],
['20151020',0.9428],
['20151022',0.9166],
['20151023',0.9166],
['20151026',0.9428],
['20151027',0.9166],
['20151028',0.9341],
['20151029',0.9254],
['20151030',0.9166],
['20151102',0.9079],
['20151103',0.9166],
['20151104',0.9166],
['20151105',0.9254],
['20151106',0.9166],
['20151109',0.9079],
['20151110',0.9166],
['20151111',0.9166],
['20151112',0.9166],
['20151113',0.9166],
['20151116',0.9166],
['20151117',0.8817],
['20151118',0.9079],
['20151119',0.8992],
['20151120',0.9254],
['20151123',0.9079],
['20151124',0.8904],
['20151125',0.9166],
['20151126',0.9254],
['20151127',0.9079],
['20151130',0.9079],
['20151201',0.8992],
['20151202',0.8904],
['20151203',0.8904],
['20151204',0.8904],
['20151207',0.873],
['20151208',0.8643],
['20151209',0.8643],
['20151210',0.8555],
['20151211',0.8555],
['20151214',0.8643],
['20151215',0.873],
['20151216',0.8817],
['20151217',0.873],
['20151218',0.8643],
['20151221',0.8555],
['20151222',0.8817],
['20151223',0.8904],
['20151224',0.8817],
['20151228',0.8904],
['20151229',0.8904],
['20151230',0.8904],
['20151231',0.873],
['20160104',0.873],
['20160105',0.873],
['20160106',0.9079],
['20160107',0.8817],
['20160108',0.8643],
['20160111',0.8293],
['20160112',0.8031],
['20160113',0.8031],
['20160114',0.8031],
['20160115',0.7682],
['20160118',0.742],
['20160119',0.742],
['20160120',0.7071],
['20160121',0.6809],
['20160122',0.7071],
['20160125',0.7159],
['20160126',0.6897],
['20160127',0.7159],
['20160128',0.7071],
['20160129',0.7246],
['20160201',0.7159],
['20160202',0.7333],
['20160203',0.7246],
['20160204',0.7508],
['20160205',0.7508],
['20160211',0.7333],
['20160212',0.742],
['20160215',0.7333],
['20160216',0.7595],
['20160217',0.7508],
['20160218',0.7595],
['20160219',0.7508],
['20160222',0.777],
['20160223',0.7857],
['20160224',0.777],
['20160225',0.7682],
['20160226',0.777],
['20160229',0.7682],
['20160301',0.777],
['20160302',0.7944],
['20160303',0.7944],
['20160304',0.8293],
['20160307',0.873],
['20160308',0.873],
['20160309',0.8555],
['20160310',0.8555],
['20160311',0.873],
['20160314',0.873],
['20160315',0.8555],
['20160316',0.8293],
['20160317',0.8468],
['20160318',0.8817],
['20160321',0.873],
['20160322',0.873],
['20160323',0.873],
['20160324',0.8468],
['20160329',0.8381],
['20160330',0.8555],
['20160331',0.8555],
['20160401',0.8468],
['20160405',0.8381],
['20160406',0.8817],
['20160407',0.9254],
['20160408',0.9254],
['20160411',0.9865],
['20160412',1.0563],
['20160413',1.1262],
['20160414',1.1349],
['20160415',1.0912],
['20160418',1.0912],
['20160419',1.1174],
['20160420',1.0825],
['20160421',1.0825],
['20160422',1.065],
['20160425',1.0389],
['20160426',1.0563],
['20160427',1.0389],
['20160428',1.0389],
['20160429',1.0214],
['20160503',1.0214],
['20160504',1.0127],
['20160505',1.0825],
['20160506',1.065],
['20160509',1.0389],
['20160510',1.0389],
['20160511',1.0301],
['20160512',1.065],
['20160513',1.0127],
['20160516',0.9777],
['20160517',0.9952],
['20160518',0.9777],
['20160519',0.9865],
['20160520',1.0127],
['20160523',0.9865],
['20160524',0.969],
['20160525',1.0039],
['20160526',1.0127],
['20160527',1.0127],
['20160530',0.9952],
['20160531',1.0563],
['20160601',1.0389],
['20160602',1.0039],
['20160603',1.0563],
['20160606',1.0563],
['20160607',1.1087],
['20160608',1.0825],
['20160610',1.0563],
['20160613',1.0127],
['20160614',1.0039],
['20160615',1.0214],
['20160616',1.0476],
['20160617',1.0738],
['20160620',1.0825],
['20160621',1.1],
['20160622',1.1262],
['20160623',1.1436],
['20160624',1.1],
['20160627',1.1873],
['20160628',1.196],
['20160629',1.1873],
['20160630',1.2047],
['20160704',1.1873],
['20160705',1.2047],
['20160706',1.2135],
['20160707',1.2833],
['20160708',1.2658],
['20160711',1.292],
['20160712',1.3357],
['20160713',1.3357],
['20160714',1.292],
['20160715',1.2658],
['20160718',1.2396],
['20160719',1.2222],
['20160720',1.196],
['20160721',1.196],
['20160722',1.2047],
['20160725',1.1785],
['20160726',1.196],
['20160727',1.1873],
['20160728',1.1785],
['20160729',1.2047],
['20160801',1.2309],
['20160803',1.2222],
['20160804',1.2222],
['20160805',1.2135],
['20160808',1.2658],
['20160809',1.2746],
['20160810',1.292],
['20160811',1.3095],
['20160812',1.292],
['20160815',1.2746],
['20160816',1.2746],
['20160817',1.2484],
['20160818',1.196],
['20160819',1.1785],
['20160822',1.1611],
['20160823',1.1698],
['20160824',1.1698],
['20160825',1.1611],
['20160826',1.2658],
['20160829',1.2309],
['20160830',1.292],
['20160831',1.2571],
['20160901',1.2309],
['20160902',1.2309],
['20160905',1.2309],
['20160906',1.3095],
['20160907',1.2833],
['20160908',1.3182],
['20160909',1.3667],
['20160912',1.2891],
['20160913',1.2891],
['20160914',1.2504],
['20160915',1.2697],
['20160919',1.3182],
['20160920',1.3667],
['20160921',1.357],
['20160922',1.3764],
['20160923',1.4054],
['20160926',1.4539],
['20160927',1.6284],
['20160928',1.6284],
['20160929',1.7156],
['20160930',1.6962],
['20161003',1.7641],
['20161004',1.7447],
['20161005',1.735],
['20161006',1.6962],
['20161007',1.6671],
['20161011',1.6478],
['20161012',1.5702],
['20161013',1.5218],
['20161014',1.5508],
['20161017',1.6381],
['20161018',1.6381],
['20161019',1.6865],
['20161020',1.6381],
['20161024',1.6962],
['20161025',1.6768],
['20161026',1.6962],
['20161027',1.6478],
['20161028',1.6478],
['20161031',1.6284],
['20161101',1.609],
['20161102',1.5799],
['20161103',1.5508],
['20161104',1.5411],
['20161107',1.6865],
['20161108',1.6768],
['20161109',1.6381],
['20161110',1.6962],
['20161111',1.7932],
['20161114',1.8125],
['20161115',1.7447],
['20161116',1.7738],
['20161117',1.7447],
['20161118',1.6962],
['20161121',1.6381],
['20161122',1.6284],
['20161123',1.6865],
['20161124',1.7447],
['20161125',1.7641],
['20161128',1.7156],
['20161129',1.6962],
['20161130',1.6187],
['20161201',1.6187],
['20161202',1.6381],
['20161205',1.6284],
['20161206',1.6768],
['20161207',1.7447],
['20161208',1.7059],
['20161209',1.6478],
['20161212',1.6478],
['20161213',1.6187],
['20161214',1.609],
['20161215',1.6187],
['20161216',1.5896],
['20161219',1.609],
['20161220',1.5314],
['20161221',1.5218],
['20161222',1.4539],
['20161223',1.4442],
['20161228',1.4442],
['20161229',1.4151],
['20161230',1.4733],
['20170103',1.4539],
['20170104',1.4345],
['20170105',1.4636],
['20170106',1.4442],
['20170109',1.4151],
['20170110',1.5024],
['20170111',1.5605],
['20170112',1.5799],
['20170113',1.5605],
['20170116',1.5702],
['20170117',1.5121],
['20170118',1.4636],
['20170119',1.3958],
['20170120',1.3667],
['20170123',1.3861],
['20170124',1.4442],
['20170125',1.483],
['20170126',1.4927],
['20170127',1.4733],
['20170201',1.4636],
['20170202',1.4539],
['20170203',1.3861],
['20170206',1.3376],
['20170207',1.3085],
['20170208',1.3861],
['20170209',1.4733],
['20170210',1.483],
['20170213',1.5314],
['20170214',1.5799],
['20170215',1.6187],
['20170216',1.609],
['20170217',1.5896],
['20170220',1.5896],
['20170221',1.6381],
['20170222',1.6865],
['20170223',1.7059],
['20170224',1.6284],
['20170227',1.6768],
['20170228',1.6768],
['20170301',1.6187],
['20170302',1.6381],
['20170303',1.6187],
['20170306',1.6381],
['20170307',1.6575],
['20170308',1.7059],
['20170309',1.6187],
['20170310',1.5896],
['20170313',1.6187],
['20170314',1.5799],
['20170315',1.5605],
['20170316',1.6284],
['20170317',1.5896],
['20170320',1.6478],
['20170321',1.6381],
['20170322',1.5702],
['20170323',1.5993],
['20170324',1.4733],
['20170327',1.4248],
['20170328',1.4539],
['20170329',1.4248],
['20170330',1.4151],
['20170331',1.3861],
['20170403',1.4539],
['20170405',1.5218],
['20170406',1.4927],
['20170407',1.4927],
['20170410',1.4733],
['20170411',1.4248],
['20170412',1.4442],
['20170413',1.4054],
['20170418',1.3861],
['20170419',1.357],
['20170420',1.3764],
['20170421',1.357],
['20170424',1.2988],
['20170425',1.357],
['20170426',1.3182],
['20170427',1.3667],
['20170428',1.3861],
['20170502',1.3764],
['20170504',1.3376],
['20170505',1.2697],
['20170508',1.2504],
['20170509',1.2601],
['20170510',1.2601],
['20170511',1.2407],
['20170512',1.2407],
['20170515',1.2891],
['20170516',1.2697],
['20170517',1.2601],
['20170518',1.231],
['20170519',1.2601],
['20170522',1.2697],
['20170523',1.2407],
['20170524',1.2407],
['20170525',1.2988],
['20170526',1.2794],
['20170529',1.2601],
['20170531',1.2697],
['20170601',1.2213],
['20170602',1.231],
['20170605',1.231],
['20170606',1.231],
['20170607',1.2213],
['20170608',1.2407],
['20170609',1.2407],
['20170612',1.2213],
['20170613',1.2601],
['20170614',1.3279],
['20170615',1.2988],
['20170616',1.2407],
['20170619',1.2504],
['20170620',1.2407],
['20170621',1.2697],
['20170622',1.2697],
['20170623',1.2697],
['20170626',1.2601],
['20170627',1.2504],
['20170628',1.2504],
['20170629',1.4054],
['20170630',1.4054],
['20170703',1.3764],
['20170704',1.3764],
['20170705',1.4054],
['20170706',1.357],
['20170707',1.4636],
['20170710',1.4539],
['20170711',1.4927],
['20170712',1.5121],
['20170713',1.4927],
['20170714',1.5218],
['20170717',1.5218],
['20170718',1.5896],
['20170719',1.7447],
['20170720',1.6962],
['20170721',1.6575],
['20170724',1.6284],
['20170725',1.6478],
['20170726',1.6381],
['20170727',1.6284],
['20170728',1.6671],
['20170731',1.7544],
['20170801',1.735],
['20170802',1.735],
['20170803',1.6575],
['20170804',1.6962],
['20170807',1.7738],
['20170808',1.7156],
['20170809',1.7447],
['20170810',1.6671],
['20170811',1.5896],
['20170814',1.6284],
['20170815',1.5605],
['20170816',1.6187],
['20170817',1.6962],
['20170818',1.6865],
['20170821',1.6865],
['20170822',1.735],
['20170824',1.7253],
['20170825',1.7059],
['20170828',1.6865],
['20170829',1.6478],
['20170830',1.6381],
['20170831',1.7156],
['20170901',1.861],
['20170904',1.8901],
['20170905',1.8901],
['20170906',1.8416],
['20170907',1.8804],
['20170908',1.9192],
['20170911',1.8513],
['20170912',1.9095],
['20170913',1.861],
['20170914',1.8319],
['20170915',1.735],
['20170918',1.7447],
['20170919',1.7059],
['20170920',1.7932],
['20170921',1.7059],
['20170922',1.6962],
['20170925',1.5993],
['20170926',1.6865],
['20170927',1.7738],
['20170928',1.6671],
['20170929',1.7156],
['20171003',1.7253],
['20171004',1.6768],
['20171006',1.8125],
['20171009',1.7738],
['20171010',1.7641],
['20171011',1.7253],
['20171012',1.7253],
['20171013',1.7835],
['20171016',1.7932],
['20171017',1.7932],
['20171018',1.7641],
['20171019',1.6865],
['20171020',1.7835],
['20171023',1.7253],
['20171024',1.6865],
['20171025',1.6962],
['20171026',1.6478],
['20171027',1.5993],
['20171030',1.5896],
['20171031',1.6284],
['20171101',1.609],
['20171102',1.6284],
['20171103',1.5896],
['20171106',1.5508],
['20171107',1.609],
['20171108',1.6187],
['20171109',1.6381],
['20171110',1.609],
['20171113',1.6381],
['20171114',1.609],
['20171115',1.5314],
['20171116',1.5121],
['20171117',1.4248],
['20171120',1.4733],
['20171121',1.4927],
['20171122',1.5314],
['20171123',1.5314],
['20171124',1.5508],
['20171127',1.5314],
['20171128',1.5218],
['20171129',1.5508],
['20171130',1.5702],
['20171201',1.5702],
['20171204',1.5605],
['20171205',1.5605],
['20171206',1.483],
['20171207',1.4345],
['20171208',1.4539],
['20171211',1.4636],
['20171212',1.4636],
['20171213',1.5121],
['20171214',1.5314],
['20171215',1.5314],
['20171218',1.5702],
['20171219',1.5993],
['20171220',1.5799],
['20171221',1.5411],
['20171222',1.5702],
['20171227',1.5993],
['20171228',1.609],
['20171229',1.6284],
['20180102',1.7932],
['20180103',1.7738],
['20180104',1.6962],
['20180105',1.7253],
['20180108',1.8513],
['20180109',1.8222],
['20180110',1.8028],
['20180111',1.7253],
['20180112',1.7544],
['20180115',1.6671],
['20180116',1.6865],
['20180117',1.6768],
['20180118',1.6575],
['20180119',1.7059],
['20180122',1.7835],
['20180123',1.7641],
['20180124',1.7641],
['20180125',1.7932],
['20180126',1.735],
['20180129',1.8998],
['20180130',1.861],
['20180131',1.8416],
['20180201',2.0839],
['20180202',2.3166],
['20180205',2.1615],
['20180206',1.8998],
['20180207',1.9676],
['20180208',1.9192],
['20180209',1.7932],
['20180212',1.8222],
['20180213',1.8416],
['20180214',2.0258],
['20180215',2.0645],
['20180220',2.0839],
['20180221',2.1324],
['20180222',2.1324],
['20180223',2.3941],
['20180226',2.4426],
['20180227',2.3553],
['20180228',2.3941],
['20180301',2.3456],
['20180302',2.2778],
['20180305',2.1906],
['20180306',2.239],
['20180307',2.1809],
['20180308',2.239],
['20180309',2.1421],
['20180312',2.1712],
['20180313',2.1227],
['20180314',2.3166],
['20180315',2.239],
['20180316',2.2099],
['20180319',2.1421],
['20180320',2.1324],
['20180321',2.0839],
['20180322',2.0452],
['20180323',1.9192],
['20180326',1.9773],
['20180327',1.8998],
['20180328',1.8901],
['20180329',1.9385],
['20180403',1.8707],
['20180404',1.8416],
['20180406',1.8319],
['20180409',1.8222],
['20180410',1.8125],
['20180411',1.9192],
['20180412',1.8707],
['20180413',1.8222],
['20180416',1.8125],
['20180417',1.8125],
['20180418',1.8319],
['20180419',1.9095],
['20180420',1.8319],
['20180423',1.8707],
['20180424',1.9385],
['20180425',1.9192],
['20180426',1.8707],
['20180427',1.8707],
['20180430',1.8901],
['20180502',1.9192],
['20180503',1.9192],
['20180504',1.9095],
['20180507',1.9676],
['20180508',1.9579],
['20180509',2.0742],
['20180510',2.0839],
['20180511',2.113],
['20180514',2.1324],
['20180515',2.1227],
['20180516',2.1324],
['20180517',2.1324],
['20180518',2.1712],
['20180521',2.0839],
['20180523',2.0161],
['20180524',1.987],
['20180525',2.0452],
['20180528',2.0355],
['20180529',2.0355],
['20180530',1.987],
['20180531',1.97],
['20180601',2.1],
['20180604',2.1],
['20180605',2.07],
['20180606',2.13],
['20180607',2.09],
['20180608',2.09],
['20180611',2.08],
['20180612',2.12],
['20180613',2.09],
['20180614',1.99],
['20180615',2.07],
['20180619',1.99],
['20180620',1.97],
['20180621',1.99],
['20180622',2.04],
['20180625',1.98],
['20180626',1.92],
['20180627',1.77],
['20180628',1.8],
['20180629',1.87],
['20180703',1.84],
['20180704',1.78],
['20180705',1.74],
['20180706',1.76],
['20180709',1.8],
['20180710',1.79],
['20180711',1.78],
['20180712',1.83],
['20180713',1.84],
['20180716',1.82],
['20180717',1.81],
['20180718',1.8],
['20180719',1.8],
['20180720',1.82],
['20180723',1.85],
['20180724',1.99],
['20180725',1.94],
['20180726',1.94],
['20180727',1.96],
['20180730',1.92],
['20180731',1.89],
['20180801',1.88],
['20180802',1.84],
['20180803',1.85],
['20180806',1.8],
['20180807',1.84],
['20180808',1.87],
['20180809',1.91],
['20180810',1.85],
['20180813',1.86],
['20180814',1.82],
['20180815',1.77],
['20180816',1.76],
['20180817',1.78],
['20180820',1.82],
['20180821',1.84],
['20180822',1.87],
['20180823',1.85],
['20180824',1.85],
['20180827',1.86],
['20180828',1.8],
['20180829',1.83],
['20180830',1.81],
['20180831',1.75],
['20180903',1.72],
['20180904',1.74],
['20180905',1.73],
['20180906',1.7],
['20180907',1.66],
['20180910',1.54],
['20180911',1.43],
['20180912',1.48],
['20180913',1.49],
['20180914',1.53],
['20180917',1.51],
['20180918',1.58],
['20180919',1.65],
['20180920',1.57],
['20180921',1.69],
['20180924',1.74],
['20180926',1.72],
['20180927',1.75],
['20180928',1.74],
['20181002',1.69],
['20181003',1.7],
['20181004',1.73],
['20181005',1.74],
['20181008',1.62],
['20181009',1.62],
['20181010',1.67],
['20181011',1.59],
['20181012',1.63],
['20181015',1.59],
['20181016',1.6],
['20181018',1.55],
['20181019',1.6],
['20181022',1.64],
['20181023',1.59],
['20181024',1.6],
['20181025',1.59],
['20181026',1.61],
['20181029',1.57],
['20181030',1.56],
['20181031',1.58],
['20181101',1.66],
['20181102',1.69],
['20181105',1.69],
['20181106',1.68],
['20181107',1.68],
['20181108',1.67],
['20181109',1.68],
['20181112',1.64],
['20181113',1.67],
['20181114',1.65],
['20181115',1.67],
['20181116',1.68],
['20181119',1.67],
['20181120',1.62],
['20181121',1.64],
['20181122',1.62],
['20181123',1.59],
['20181126',1.58],
['20181127',1.55],
['20181128',1.59],
['20181129',1.58],
['20181130',1.64],
['20181203',1.67],
['20181204',1.65],
['20181205',1.65],
['20181206',1.63],
['20181207',1.64],
['20181210',1.64],
['20181211',1.62],
['20181212',1.62],
['20181213',1.62],
['20181214',1.63],
['20181217',1.63],
['20181218',1.61],
['20181219',1.61],
['20181220',1.6],
['20181221',1.57],
['20181224',1.6],
['20181227',1.58],
['20181228',1.57],
['20181231',1.59],
['20190102',1.55],
['20190103',1.56],
['20190104',1.55],
['20190107',1.63],
['20190108',1.59],
['20190109',1.62],
['20190110',1.62],
['20190111',1.63],
['20190114',1.61],
['20190115',1.66],
['20190116',1.65],
['20190117',1.65],
['20190118',1.67],
['20190121',1.69],
['20190122',1.66],
['20190123',1.67],
['20190124',1.67],
['20190125',1.67],
['20190128',1.67],
['20190129',1.66],
['20190130',1.67],
['20190131',1.66],
['20190201',1.78],
['20190204',1.8],
['20190208',1.81],
['20190211',1.8],
['20190212',1.81],
['20190213',1.85],
['20190214',1.83],
['20190215',1.8],
['20190218',1.81],
['20190219',1.83],
['20190220',1.85],
['20190221',1.84],
['20190222',1.83],
['20190225',1.85],
['20190226',1.85],
['20190227',1.83],
['20190228',1.78],
['20190301',1.82],
['20190304',1.84],
['20190305',1.84],
['20190306',1.81],
['20190307',1.8],
['20190308',1.78],
['20190311',1.78],
['20190312',1.8],
['20190313',1.82],
['20190314',1.8],
['20190315',1.85],
['20190318',1.82],
['20190319',1.81],
['20190320',1.84],
['20190321',1.87],
['20190322',1.86],
['20190325',1.83],
['20190326',1.82],
['20190327',1.8],
['20190328',1.79],
['20190329',1.8],
['20190401',1.85],
['20190402',1.87],
['20190403',1.91],
['20190404',1.95],
['20190408',1.92],
['20190409',1.92],
['20190410',1.98],
['20190411',1.99],
['20190412',2.06],
['20190415',2.01],
['20190416',2.04],
['20190417',1.99],
['20190418',1.99],
['20190423',1.95],
['20190424',2],
['20190425',1.94],
['20190426',1.94],
['20190429',1.93],
['20190430',1.9],
['20190502',1.92],
['20190503',1.91],
['20190506',1.85],
['20190507',1.89],
['20190508',1.83],
['20190509',1.77],
['20190510',1.8],
['20190514',1.8],
['20190515',1.78],
['20190516',1.78],
['20190517',1.77],
['20190520',1.79],
['20190521',1.77],
['20190522',1.77],
['20190523',1.74],
['20190524',1.77],
['20190527',1.75],
['20190528',1.71],
['20190529',1.72],
['20190530',1.74],
['20190531',1.63],
['20190603',1.64],
['20190604',1.58],
['20190605',1.65],
['20190606',1.67],
['20190610',1.67],
['20190611',1.66],
['20190612',1.63],
['20190613',1.62],
['20190614',1.6],
['20190617',1.57],
['20190618',1.59],
['20190619',1.64],
['20190620',1.64],
['20190621',1.67],
['20190624',1.68],
['20190625',1.66],
['20190626',1.65],
['20190627',1.68],
['20190628',1.7],
['20190702',1.75],
['20190703',1.78],
['20190704',1.78],
['20190705',1.76],
['20190708',1.73],
['20190709',1.71],
['20190710',1.73],
['20190711',1.73],
['20190712',1.72],
['20190715',1.71],
['20190716',1.74],
['20190717',1.73],
['20190718',1.74],
['20190719',1.72],
['20190722',1.69],
['20190723',1.68],
['20190724',1.69],
['20190725',1.69],
['20190726',1.7],
['20190729',1.69],
['20190730',1.69],
['20190731',1.63],
['20190801',1.64],
['20190802',1.63],
['20190805',1.61],
['20190806',1.62],
['20190807',1.65],
['20190808',1.65],
['20190809',1.62],
['20190812',1.63],
['20190813',1.6],
['20190814',1.61],
['20190815',1.61],
['20190816',1.63],
['20190819',1.64],
['20190820',1.65],
['20190821',1.58],
['20190822',1.58],
['20190823',1.65],
['20190826',1.63],
['20190827',1.65],
['20190828',1.69],
['20190829',1.71],
['20190830',1.65]];
var source='finance.yahoo.com'; | 20.770945 | 31 | 0.614825 |
0551a0d2c212401d49d388fff8967dbb3618cac2 | 1,000 | js | JavaScript | src/lib/console.js | Ikagaka/named-kernel-manager-default-plugins.js | 2056fe12bea22cb68c5b0f9276ea3de98c94873a | [
"MIT"
] | null | null | null | src/lib/console.js | Ikagaka/named-kernel-manager-default-plugins.js | 2056fe12bea22cb68c5b0f9276ea3de98c94873a | [
"MIT"
] | null | null | null | src/lib/console.js | Ikagaka/named-kernel-manager-default-plugins.js | 2056fe12bea22cb68c5b0f9276ea3de98c94873a | [
"MIT"
] | null | null | null | import {NamedKernelManagerRoutings, NamedKernelManagerControllers, NamedKernelManagerController} from 'named-kernel-manager';
export class ConsoleRouting {
setup(routes) {
routes.controller('ConsoleController', (routes) => {
routes.from('NamedKernelManager', (routes) => {
routes.event('start');
});
});
}
}
export class ConsoleController extends NamedKernelManagerController {
constructor(manager) {
super(manager);
const namedManager = this.manager.components.NamedManager;
// shortcuts
this.manager.log = (message) => namedManager.console.log(message);
this.manager.warn = (message) => namedManager.console.warn(message);
this.manager.error = (message) => namedManager.console.error(message);
this.manager.info = (message) => namedManager.console.info(message);
}
start() {
}
}
NamedKernelManagerControllers.ConsoleController = ConsoleController;
NamedKernelManagerRoutings.push(ConsoleRouting);
| 33.333333 | 126 | 0.708 |
055218220ccb8a004475f0a02f53a98912b402bb | 85,174 | js | JavaScript | public/js/custom-script.js | hostvilleng/dorcas-hub-business | b239fa3c59474f6f2b4715f6b2797ad8413cc084 | [
"MIT"
] | null | null | null | public/js/custom-script.js | hostvilleng/dorcas-hub-business | b239fa3c59474f6f2b4715f6b2797ad8413cc084 | [
"MIT"
] | 3 | 2021-06-26T07:39:07.000Z | 2022-02-14T01:03:14.000Z | public/js/custom-script.js | hostvilleng/dorcas-hub-business | b239fa3c59474f6f2b4715f6b2797ad8413cc084 | [
"MIT"
] | null | null | null | var productName = 'Hub';
var Hub = {
productName: 'Dorcas Hub',
utilities: {
getElementAttributes: function (target) {
if (!target.hasAttributes()) {
return [];
}
var attributes = {};
var attrs = target.attributes;
for (var i = 0; i < attrs.length; i++) {
attributes[attrs[i].name] = attrs[i].value;
}
return attributes;
},
randomId: function (length) {
length = typeof length === 'undefined' || isNaN(length) ? 7 : parseInt(length, 10);
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < length; i++) {
text += possible.charAt(Math.floor(Math.random() * possible.length));
}
return text;
},
GUID: function () {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + '-' + s4() + '-' + s4() + '-' +
s4() + '-' + s4() + s4() + s4();
}
},
Styles: {
tableActionColumnStyle: function (value, row, index, field) {
return {
classes: '',
css: {}
};
}
},
Table: {
formatCustomers: function (row) {
row.name = [row.firstname || '', row.lastname || ''].join(' ');
row.basic_info = '<div class="row valign-wrapper">' +
'<div class="col s3">' +
' <img src="'+row.photo+'" alt="" class="circle responsive-img">' +
'</div>' +
'<div class="col s9 no-padding">' +
' <span class="black-text">' +
' <a href="'+(typeof row.email !== 'undefined' ? 'mailto:'+row.email : '#')+'">'+row.name+'<i class="tiny material-icons">open_in_new</i> </a><br>' +
' <small>'+(typeof row.email !== 'undefined' ? row.email : '-')+'</small>' +
' </span>' +
'</div>' +
'</div>';
if (typeof row.contacts !== 'undefined' && typeof row.contacts.data !== 'undefined') {
var customLabel = '';
for (var i = 0; i < row.contacts.data.length; i++) {
customLabel = row.contacts.data[i].name.toLowerCase().replace(/\s/g, '_');
row[customLabel] = row.contacts.data[i].value;
}
}
row.created_at = moment(row.created_at).format('DD MMM, YYYY');
row.buttons = '<a class="waves-effect btn-flat btn-small grey-text text-darken-3 view" href="/apps/crm/customers/' + row.id + '">View</a>'+
'<a class="waves-effect btn-flat remove red-text btn-small" href="#" data-id="'+row.id+'" data-name="'+row.name+'">DELETE</a>';
return row;
},
formatProducts: function (row) {
row.description_info = '<span class="truncate">'+row.description+'</span>';
var unit_prices = [];
if (typeof row.prices !== 'undefined') {
var price = null;
for (var i = 0; i < row.prices.data.length; i++) {
if (i > 0) {
unit_prices.push('<div class="chip">+ ' + (row.prices.data.length - 1)+ ' more</div>');
break;
}
price = row.prices.data[i];
unit_prices.push('<div class="chip">' + price.currency+ ' ' + price.unit_price.formatted + '</div>');
}
row.unit_prices = unit_prices.join('');
}
row.created_at = moment(row.created_at).format('DD MMM, YYYY');
row.buttons = '<a class="waves-effect btn-flat btn-small grey-text text-darken-3 view" href="/apps/inventory/products/' + row.id + '">View</a>'+
'<a class="waves-effect btn-flat remove red-text btn-small" href="#" data-id="'+row.id+'" data-name="'+row.name+'">DELETE</a>';
return row;
},
formatOrders: function (row) {
if (typeof row.products !== 'undefined' && typeof row.products.data !== 'undefined' && row.products.data.length > 0) {
row.cart_content = row.products.data.length;
} else if (typeof row.inline_product !== 'undefined') {
// should be an inline product
row.cart_content = 1;
}
row.reminder_on = '<div class="chip">' + (row.has_reminders ? 'Yes' : 'No') + '</div>';
row.due_at = typeof row.due_at !== 'undefined' && row.due_at !== null ? moment(row.due_at).format('DD MMM, YYYY') : '';
row.created_at = moment(row.created_at).format('DD MMM, YYYY');
row.buttons = '<a class="waves-effect btn-flat grey-text text-darken-3 btn-small view" href="/apps/invoicing/orders/' + row.id + '">View</a>';
return row;
},
formatStocks: function (row) {
row.activity = row.action.title_case() + 'ed'; // converts add => Added; subtract => Subtracted
row.date = moment(row.created_at).format('DD MMM, YYYY HH:mm');
return row;
},
formatDirectory: function (row) {
if (row.cost_type === 'free') {
row.cost = 'FREE';
} else {
row.cost = row.cost_currency + row.cost_amount.formatted;
}
if (row.cost_type !== 'free' && row.cost_frequency !== 'standard') {
row.cost += ' /' + row.cost_frequency;
}
var categories = [];
if (typeof row.user !== 'undefined' && typeof row.user.data.is_professional_verified !== 'undefined') {
let is_verified = row.user.data.is_professional_verified;
row.provider_verified = '<div class="chip ' + (is_verified ? 'green white-text' : '') + '">'+ (is_verified ? 'Verified' : 'Unverified') +'</div>';
}
for (var i = 0; i < row.categories.data.length; i++) {
categories.push(
'<div class="chip truncate"><a class="black-text" href="/directory?category_id=' +
row.categories.data[i].id + '">'+row.categories.data[i].name.title_case()+'</a></div>'
);
}
row.category_list = categories.join('<br>');
row.cost_type = row.cost_type.title_case();
row.provider = '<div class="chip"><img src="'+row.user.data.photo+'" alt="Provider Avatar">'+ row.user.data.firstname + ' ' + row.user.data.lastname +'</div>';
row.buttons = '<a class="waves-effect btn-flat grey-text text-darken-3 btn-small view" href="/directory/' + row.id + '">Details</a>';
return row;
},
formatAccountingEntries: function (row) {
row.account_link = '<a href="/apps/finance/entries?account=' + row.account.data.id + '">' + row.account.data.display_name + '</a>';
row.created_at = moment(row.created_at).format('DD MMM, YYYY');
row.buttons = '<a class="waves-effect btn-flat red-text text-darken-3 btn-small remove" href="#" data-id="'+row.id+'">Delete</a>';
if (typeof row.account.data !== 'undefined' && row.account.data.name == 'unconfirmed') {
row.buttons += '<a class="waves-effect btn-flat black-text text-darken-3 btn-small view" href="/apps/finance/entries/' + row.id + '" >Confirm</a>'
}
return row;
}
},
tours: {
business_departments: {
id: "business-departments-tour",
i18n: {
stepNums : ["1"]
},
steps: [
{
content: "You can always add a new department by clicking on this button, and entering the department name.",
target: "button-add-new",
placement: "left"
}
]
},
dashboard: {
id: "dashboard-tour",
i18n: {
stepNums : ["1"]
},
steps: [
{
content: "You can see the current summary of some of the most important data in your account",
target: "card-stats",
placement: "buttom"
},
{
content: "This graph will show you sales information (based on orders) from the last 30 days.",
target: "revenue-chart",
placement: "top"
},
{
content: "Use this button to quickly navigate to your Invoicing app.",
target: "goto-orders",
placement: "left"
}
]
},
navigation: {
id: "navigation-tour",
i18n: {
stepNums : ["1"]
},
steps: [
{
content: "This is your " + window.productName + " dashboard. It will always show a summary of your account",
target: "nav-item-dashboard",
placement: "right"
},
{
content: "Below this, you will find basic apps for organising information about your business",
target: "nav-item-business",
placement: "right",
showPrevButton: true
},
{
content: "You can switch your account plan anytime you want; to gain access to more features of " + window.productName + ".",
target: "nav-item-business-upgrade-plan",
placement: "right",
showPrevButton: true
},
{
content: "View the status of your " + window.productName + " subscription anytime you want to.",
target: "nav-item-business-subscription",
placement: "right",
showPrevButton: true
},
{
content: "We also have apps. They are small applications that you can use to perform certain functions. They will be updated regularly.",
target: "nav-item-apps",
placement: "right",
showPrevButton: true
},
{
content: "Our first app is a CRM tool. You can use it to keep records of your customers, their contact information, as well as multiple notes on each of them",
target: "nav-item-apps-crm",
placement: "right",
onNext: function () {
$('#nav-item-apps-crm').not('.active').click();
},
showPrevButton: true
},
{
content: "We just mentioned collecting contact information for your contacts; by default, you can only enter the customer's email and password. With custom fields, you can configure additional information to collect.",
target: "nav-item-apps-crm-custom-fields",
placement: "right",
showPrevButton: true
},
{
content: "Come here when you're ready to start adding your customers.",
target: "nav-item-apps-crm-customers",
placement: "right",
showPrevButton: true
},
{
content: "As a business, we know you have a structure for your organisation; we hope to help you digitise this information",
target: "nav-item-hr",
placement: "right",
onNext: function () {
$('#nav-item-hr').not('.active').click();
},
showPrevButton: true
},
{
content: "An example is managing the various departments in your company.",
target: "nav-item-hr-departments",
placement: "right",
showPrevButton: true
},
{
content: "Managing your employee information",
target: "nav-item-hr-employees",
placement: "right",
showPrevButton: true
},
{
content: "Or the various employee teams you have in your business.",
target: "nav-item-hr-teams",
placement: "right",
showPrevButton: true
},
{
content: "Finally, we have invoicing. Continue to understand what it is...",
target: "nav-item-apps-invoicing",
placement: "top",
onNext: function () {
$('#nav-item-apps-invoicing').not('.active').click();
},
showPrevButton: true
},
{
content: "When you're ready, you can start adding your products by navigating to this place.",
target: "nav-item-apps-invoicing-products",
placement: "top",
showPrevButton: true
},
{
content: "When you create an order, an invoice is automatically generated for your customer, the customer is also alerted by email; if you set a due date on the order (and turned on reminders); reminders will also be sent periodically to the customer till you mark the order as paid.",
target: "nav-item-apps-invoicing-orders",
placement: "top",
showPrevButton: true
},
{
content: "We know you use various tools to get your work done; well, we have you covered as well. You can always add connections for those services, and use them along side your " + this.productName + " apps.",
target: "nav-item-integrations",
placement: "top",
showPrevButton: false,
onNext: function () {
$('#nav-item-apps-invoicing.active').click();
}
},
{
content: "Feel free to share with us various details about your business; you can also update your login information from here.",
target: "nav-item-settings",
placement: "top",
showPrevButton: true
}
]
}
}
};
/**
* A simple method to convert a string to it's "title case" representation.
*
* title case => Title Case
* tITLE CAse => Title Case
*
* @returns {string}
*/
String.prototype.title_case = function () {
this.toLowerCase();
var components = this.split(' ');
return components.map(function (component) {
return component.charAt(0).toUpperCase() + component.substr(1).toLowerCase();
}).join(' ');
};
Vue.component('table-check-all-box', {
template: '<div><input type="checkbox" v-bind:class="classes" v-bind:id="id" v-bind:name="id" v-model="isChecked" ' +
'v-on:change="checkChildren($event)"><label v-bind:for="id"> </label></div>',
props: {
checked: {
type: Boolean,
default: false
},
id: String,
classes: {
type: String,
default: 'check-all filled-in'
}
},
data: function () {
return {
isChecked: this.checked
}
},
methods: {
checkChildren: function (event) {
console.log('Vue.js change event');
this.checked = event.target.checked;
var parent = event.target.parentNode;
var className = parent.hasAttribute('data-item-class') ? parent.getAttribute('data-item-class') : '';
if (className.length > 0) {
var boxes = document.querySelectorAll('input[type=checkbox].' + className);
for (var i = 0; i < boxes.length; i++) {
boxes[i].checked = this.checked;
}
}
}
}
});
Vue.component('access-grant-company-card', {
template: '<div class="col s12">' +
'<div class="card">' +
'<div class="card-content">' +
'<span class="card-title"><h4>{{ company.name }}</h4></span>' +
'<p class="flow-text">Phone: {{ company.phone !== null ? company.phone : "-" }}</p>' +
'<p class="flow-text">Email: {{ company.email !== null ? company.email : "-" }}</p>' +
'</div>' +
'<div class="card-action">' +
'<a href="#" v-on:click.prevent="requestModules"">Request Access</a>' +
'</div>' +
'</div>' +
'</div>',
props: {
index: {
type: Number,
required: true
},
company: {
type: Object,
required: true
}
},
methods: {
requestModules: function () {
this.$emit('request-modules', this.index);
},
}
});
Vue.component('access-grant-card', {
template: '<div class="col s12">' +
'<div class="card" v-bind:class="{\'yellow lighten-5\': grant.status === \'pending\', \'green lighten-5\': grant.status === \'accepted\'}">' +
'<div class="card-content">' +
'<span class="card-title"><h4>{{ grant.company.data.name }}</h4></span>' +
'<p class="flow-text">Approved Modules: {{ grant.extra_json.modules.length }}</p>' +
'<p class="flow-text">Pending: {{ grant.extra_json.pending_modules.length }}</p>' +
'</div>' +
'<div class="card-action">' +
'<a v-bind:href="grant.url" class="btn-flat" target="_blank" v-bind:class="{\'disabled\': grant.status !== \'accepted\'}">Gain Access</a>' +
'</div>' +
'</div>' +
'</div>',
props: {
index: {
type: Number,
required: true
},
grant: {
type: Object,
required: true
}
},
methods: {
requestModules: function () {
this.$emit('request-modules', this.index);
},
}
});
Vue.component('contact-field', {
template: '<div class="col s12">' +
'<div class="card">' +
'<div class="card-content">' +
'<span class="card-title"><h4>{{ title }}</h4></span>' +
'<p v-bind:class="content_class">{{ field_name }}</p>' +
'</div>' +
'<div class="card-action">' +
'<a href="#" class="grey-text text-darken-3" v-bind:data-id="record_id" v-on:click.prevent="edit">Edit</a>' +
'<a href="#" class="red-text" v-bind:data-id="record_id" v-on:click.prevent="deleteField" v-if="showDelete">REMOVE</a>' +
'</div>' +
'</div>' +
'</div>',
props: {
title: {
type: String,
default: 'Custom Field'
},
content_class: {
type: String,
default: 'flow-text'
},
field_name: {
type: String,
required: true
},
record_id: {
type: [String, Number],
required: true
},
seen: {
type: Boolean,
default: true
},
showDelete: {
type: Boolean,
default: false
}
},
data: function () {
return {
visible: this.seen
}
},
methods: {
edit: function () {
var context = this;
swal({
title: "Update Field",
text: "Enter new name ["+context.field_name+"]:",
type: "input",
showCancelButton: true,
closeOnConfirm: false,
animation: "slide-from-top",
showLoaderOnConfirm: true,
inputPlaceholder: "Custom Field Name"
},
function(inputValue){
if (inputValue === false) return false;
if (inputValue === "") {
swal.showInputError("You need to write something!");
return false
}
axios.put("/xhr/crm/custom-fields/"+context.record_id, {
name: inputValue
}).then(function (response) {
console.log(response);
context.field_name = inputValue;
return swal("Success", "The custom field was successfully updated.", "success");
})
.catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
return swal("Oops!", message, "warning");
});
});
},
deleteField: function (event) {
var attrs = Hub.utilities.getElementAttributes(event.target);
var id = attrs['data-id'] || null;
if (id === null) {
return false;
}
var context = this;
swal({
title: "Are you sure?",
text: "You are about to delete the custom field (" + this.field_name + ").",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!",
closeOnConfirm: false,
showLoaderOnConfirm: true
}, function() {
axios.delete("/xhr/crm/custom-fields/" + id)
.then(function (response) {
console.log(response);
context.visible = false;
context.$emit('remove', id);
return swal("Deleted!", "The contact field was successfully deleted.", "success");
})
.catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
return swal("Delete Failed", message, "warning");
});
});
}
}
});
Vue.component('professional-social-connection', {
template: '<div class="col s12">' +
'<div class="card">' +
'<div class="card-content">' +
'<span class="card-title"><h4>{{ connection.channel.title_case() }}</h4></span>' +
'<p class="flow-text" v-if="connection.id !== null && connection.id.length > 0">{{ connection.id }}</p>' +
'<p><a v-bind:href="connection.url" target="_blank">{{ connection.url }}</a></p>' +
'</div>' +
'<div class="card-action">' +
'<a v-bind:href="connection.url" class="black-text" target="_blank">OPEN</a>' +
'<a href="#" class="red-text" v-on:click.prevent="deleteField">REMOVE</a>' +
'</div>' +
'</div>' +
'</div>',
props: {
index: {
type: Number,
required: true
},
connection: {
type: Object,
required: true
}
},
data: function () {
return {
visible: this.seen
}
},
methods: {
deleteField: function (event) {
var context = this;
swal({
title: "Are you sure?",
text: "You are about to delete the " + this.connection.channel.title_case() + " connection.",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!",
closeOnConfirm: false,
showLoaderOnConfirm: true
}, function() {
axios.delete("/xhr/directory/social-connections", {
params: {index: context.index}
}).then(function (response) {
console.log(response);
context.$emit('delete-connection', context.index);
return swal("Deleted!", "The connection was successfully deleted.", "success");
})
.catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
return swal("Delete Failed", message, "warning");
});
});
}
}
});
Vue.component('professional-credential', {
template: '<div class="col s12">' +
'<div class="card">' +
'<div class="card-content">' +
'<span class="card-title"><h4>{{ credential.certification }} ({{ credential.year }})</h4></span>' +
'<p class="flow-text" v-if="credential.title !== null">{{ credential.title }} ({{ credential.type }})</p>' +
'<p>{{ credential.description }}</p>' +
'</div>' +
'<div class="card-action">' +
'<a href="#" class="red-text" v-on:click.prevent="deleteField">REMOVE</a>' +
'</div>' +
'</div>' +
'</div>',
props: {
index: {
type: Number,
required: true
},
credential: {
type: Object,
required: true
}
},
data: function () {
return {
visible: this.seen
}
},
methods: {
deleteField: function () {
var context = this;
swal({
title: "Are you sure?",
text: "You are about to delete the " + this.credential.certification+ " credential.",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!",
closeOnConfirm: false,
showLoaderOnConfirm: true
}, function() {
axios.delete("/xhr/directory/credentials/" + context.credential.id)
.then(function (response) {
console.log(response);
context.$emit('delete-credential', context.index);
return swal("Deleted!", "The credential was successfully deleted.", "success");
})
.catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
return swal("Delete Failed", message, "warning");
});
});
}
}
});
Vue.component('professional-experience', {
template: '<div class="col s12">' +
'<div class="card">' +
'<div class="card-content">' +
'<span class="card-title"><h4>{{ experience.designation }}</h4></span>' +
'<p class="flow-text">{{ experience.company }}</p>' +
'<p>{{ experience.from_year }} - {{ experience.to_year === null ? "Present" : experience.to_year }}</p>' +
'</div>' +
'<div class="card-action">' +
'<a href="#" class="red-text" v-on:click.prevent="deleteField">REMOVE</a>' +
'</div>' +
'</div>' +
'</div>',
props: {
index: {
type: Number,
required: true
},
experience: {
type: Object,
required: true
}
},
data: function () {
return {
visible: this.seen
}
},
methods: {
deleteField: function () {
var context = this;
swal({
title: "Are you sure?",
text: "You are about to delete experience at " + this.experience.company+ " experience.",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!",
closeOnConfirm: false,
showLoaderOnConfirm: true
}, function() {
axios.delete("/xhr/directory/experiences/" + context.experience.id)
.then(function (response) {
console.log(response);
context.$emit('delete-experience', context.index);
return swal("Deleted!", "The experience was successfully deleted.", "success");
})
.catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
return swal("Delete Failed", message, "warning");
});
});
}
}
});
Vue.component('professional-service', {
template: '<div class="col s12">' +
'<div class="card">' +
'<div class="card-content">' +
'<span class="card-title"><h4>{{ service.title }}</h4></span>' +
'<p class="flow-text">{{ service.cost_currency }}{{ service.cost_amount.formatted }} <small>{{ service.cost_frequency !== "standard" ? "per " + service.cost_frequency.title_case() : "" }}</small></p>' +
'<div class="chip" v-for="category in service.categories.data">{{ category.name }}</div>' +
'</div>' +
'<div class="card-action">' +
'<a href="#" class="black-text" v-on:click.prevent="editField">EDIT</a>' +
'<a href="#" class="red-text" v-on:click.prevent="deleteField">REMOVE</a>' +
'</div>' +
'</div>' +
'</div>',
props: {
index: {
type: Number,
required: true
},
service: {
type: Object,
required: true
}
},
methods: {
editField: function () {
this.$emit('edit-service', this.index);
},
deleteField: function () {
var context = this;
swal({
title: "Are you sure?",
text: "You are about to delete service " + this.service.title,
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!",
closeOnConfirm: false,
showLoaderOnConfirm: true
}, function() {
axios.delete("/xhr/directory/services/" + context.service.id)
.then(function (response) {
console.log(response);
context.$emit('delete-service', context.index);
return swal("Deleted!", "The service was successfully deleted.", "success");
})
.catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
return swal("Delete Failed", message, "warning");
});
});
}
}
});
Vue.component('professional-service-request', {
template: '<div class="col s12">' +
'<div class="card" v-bind:class="{\'grey lighten-3\': request.is_read}">' +
'<div class="card-content">' +
'<span class="card-title activator"><h4>{{ request.service.data.title }} <i class="material-icons right">info_outline</i></h4></span>' +
'<p class="flow-text">{{ request.company.data.name }}</p>' +
'<p>{{ request.message.substr(0, 50) + (request.message.length > 50 ? "..." : "") }}</p>' +
'</div>' +
'<div class="card-action">' +
'<a href="#" class="red-text" v-on:click.prevent="reject" v-if="request.status === \'pending\'">REJECT</a>' +
'<a href="#" class="black-text" v-on:click.prevent="accept" v-if="request.status === \'pending\'">ACCEPT</a>' +
'<a v-bind:href="request.attachment_url" target="_blank" class="black-text" v-bind:class="{right: request.status === \'pending\'}" v-if="typeof request.attachment_url === \'string\'">Open Attachment</a>' +
'</div>' +
'<div class="card-reveal">' +
' <span class="card-title grey-text text-darken-4">Request Details<i class="material-icons right">close</i></span>' +
' <p><strong>Business</strong><br>{{ request.company.data.name }}</p>' +
' <p><strong>Email</strong><br>{{ request.company.data.email }}</p>' +
' <p><strong>Phone</strong><br>{{ request.company.data.phone }}</p>' +
' <p><strong>Date</strong><br>{{ moment(request.created_at).format("ddd DD MMM, YYYY") }}</p>' +
' <p><strong>Additional Message</strong><br>{{ request.message }}</p>' +
' <p v-if="request.attachment_url !== null"><strong>Supporting Document</strong><br><a v-bind:href="request.attachment_url" target="_blank">Download Attachment</a></p>' +
'</div>'+
'</div>' +
'</div>',
props: {
index: {
type: Number,
required: true
},
request: {
type: Object,
required: true
}
},
methods: {
accept: function () {
var context = this;
swal({
title: "Accept the request?",
text: "You are about to accept this service request. An invoice will be send to the customer as well.",
type: "info",
showCancelButton: true,
confirmButtonText: "Continue",
closeOnConfirm: false,
showLoaderOnConfirm: true
}, function() {
axios.put("/xhr/directory/service-requests/" + context.request.id, {status: 'accepted'})
.then(function (response) {
console.log(response);
context.$emit('request-marked', context.index, response.data);
return swal("Done!", "The service request was successfully accepted. An invoice will be sent to the customer", "success");
})
.catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
return swal("Acceptance Failed", message, "warning");
});
});
},
moment: function (dateString) {
return moment(dateString);
},
reject: function () {
var context = this;
swal({
title: "Reject the request?",
text: "You are about to reject this service request. ",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Continue",
closeOnConfirm: false,
showLoaderOnConfirm: true
}, function() {
axios.put("/xhr/directory/service-requests/" + context.request.id, {status: 'rejected'})
.then(function (response) {
console.log(response);
context.$emit('request-marked', context.index, response.data);
return swal("Done!", "The service request was successfully rejected.", "success");
})
.catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
return swal("Rejection Failed", message, "warning");
});
});
}
}
});
/**
* Settings Toggle component for the right-nav
*/
Vue.component('settings-toggle', {
template: '<div class="switch right"><label>'+
'<input v-on:change="updateSetting($event)" v-model="isChecked" type="checkbox" v-bind:name="name">'+
'<span class="lever"></span>'+
'</label></div>',
props: {
checked: Boolean,
name: String
},
data: function () {
return {
isChecked: this.checked
}
},
methods: {
updateSetting: function (event) {
var attrs = Hub.utilities.getElementAttributes(event.target);
// get the attributes
console.log(attrs);
var context = this;
console.log({name: attrs['name'] || 'none', enabled: event.target.checked});
axios.post("/xhr/settings", {name: attrs['name'] || 'none', enabled: event.target.checked})
.then(function (response) {
context.checked = true;
swal("Done", "The change was successfully saved.", "success");
})
.catch(function (error) {
var e = error.response.data.errors[0];
console.log(error.response.data.errors);
context.isChecked = false;
return swal("Update Failed", e.title, "warning");
});
}
}
});
Vue.component('product-category', {
template: '<div class="col s12">' +
'<div class="card">' +
'<div class="card-content">' +
'<span class="card-title"><h4>{{ category.name }} ({{ category.products_count }})</h4></span>' +
'<p class="flow-text">{{ category.slug }}</p>' +
'</div>' +
'<div class="card-action">' +
'<a href="#" class="grey-text text-darken-3" v-on:click.prevent="edit">Edit</a>' +
'<a href="#" class="red-text" v-on:click.prevent="deleteField" v-if="showDelete">REMOVE</a>' +
'</div>' +
'</div>' +
'</div>',
props: {
category: {
type: Object,
required: true
},
index: {
type: Number,
required: true
},
showDelete: {
type: Boolean,
default: false
}
},
data: function () {
return {
visible: this.seen
}
},
methods: {
edit: function () {
var context = this;
swal({
title: "Update Category",
text: "Enter new name [" + context.category.name + "]:",
type: "input",
showCancelButton: true,
closeOnConfirm: false,
animation: "slide-from-top",
showLoaderOnConfirm: true,
inputPlaceholder: "Custom Field Name"
},
function(inputValue){
if (inputValue === false) return false;
if (inputValue === "") {
swal.showInputError("You need to write something!");
return false
}
axios.put("/xhr/inventory/categories/"+context.category.id, {
name: inputValue,
update_slug: true
}).then(function (response) {
console.log(response);
context.$emit('update', context.index, response.data);
return swal("Success", "The category name was successfully updated.", "success");
})
.catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
return swal("Oops!", message, "warning");
});
});
},
deleteField: function () {
var context = this;
swal({
title: "Are you sure?",
text: "You are about to delete the category (" + context.category.name + ").",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!",
closeOnConfirm: false,
showLoaderOnConfirm: true
}, function() {
axios.delete("/xhr/inventory/categories/" + context.category.id)
.then(function (response) {
console.log(response);
context.$emit('remove', context.index);
return swal("Deleted!", "The category was successfully deleted.", "success");
})
.catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
return swal("Delete Failed", message, "warning");
});
});
}
}
});
Vue.component('product-price-control', {
template: '<div class="row">' +
' <div class="input-field col s12 m4">' +
' <select v-bind:id="id_currency" name="currencies[]" v-model="currency" class="browser-default">' +
' <option value="EUR">EUR</option>' +
' <option value="NGN">NGN</option>' +
' <option value="USD">USD</option>' +
' </select>' +
' </div>' +
' <div class="input-field col s12 m7">' +
' <input v-bind:id="id_price" type="number" name="prices[]" maxlength="10" min="0" step="0.01" v-model="price">' +
' <label v-bind:for="id_price">Unit Price</label>' +
' </div>' +
' <div class="input-field col s12 m1">' +
' <a href="#" class="grey-text text-darken-3" v-on:click.prevent="removeEntry"><i class="material-icons small">clear</i></a>' +
' </div>'+
'</div>',
data: function () {
return {
price: this.opening_price,
currency: this.opening_currency
};
},
props: {
id_currency: {
type: String,
required: true
},
id_price: {
type: String,
required: true
},
opening_currency: {
type: String,
default: 'NGN'
},
opening_price: {
type: [Number, String],
default: 0
},
index: {
type: Number,
required: true
}
},
mounted: function () {
//$('select#'+this.id_currency).material_select();
},
methods: {
removeEntry: function () {
this.$emit('remove', this.index);
}
}
});
Vue.component('cart-item', {
template: '<div class="row">' +
' <div class="input-field col s12 m6">' +
' <select name="products[]" class="browser-default" v-model="product" v-on:change="updatePrice">' +
' <option value="" disabled>Select a Product</option>' +
' <option v-for="product in products" :key="product.id" :value="product.id">' +
' {{ product.name }}' +
' </option>' +
' </select>' +
' </div>' +
' <div class="input-field col s12 m2">' +
' <input v-bind:id="quantity_id" name="quantities[]" type="number" min="1" v-model="quantity" v-on:keyup="syncCart" v-on:change="syncCart">' +
' <label v-bind:for="quantity_id">Quantity</label>' +
' </div>' +
' <div class="input-field col s12 m3">' +
' <input v-bind:id="unit_price_id" name="unit_prices[]" type="number" min="0" step="0.01" v-model="unit_price" v-on:keyup="syncCart" v-on:change="syncCart">' +
' <label v-bind:for="unit_price_id">Unit Price</label>' +
' </div>' +
' <div class="input-field col s12 m1">' +
' <a href="#" class="grey-text text-darken-3" v-on:click.prevent="removeItem"><i class="material-icons small">clear</i></a>' +
' </div>'+
'</div>',
data: function () {
return {
products: this.$parent.products,
product: '',
quantity: 0,
itemIndex: this.index,
unit_price: 0,
currency: this.$parent.currency
}
},
props: {
quantity_id: {
type: String,
required: true
},
unit_price_id: {
type: String,
required: true
},
index: {
type: Number,
required: true
}
},
methods: {
updatePrice: function () {
console.log('checking for price...');
context = this;
var product = this.products.find(function (p) {
return p.id === context.product;
});
if (typeof product === 'undefined') {
return;
}
var price = typeof product.default_unit_price !== 'undefined' && typeof product.default_unit_price.raw !== 'undefined' ?
parseFloat(product.default_unit_price.raw) : 0;
// set the initial price
if (typeof product.prices !== 'undefined' && typeof product.prices.data !== 'undefined') {
for (var i = 0; i < product.prices.data.length; i++) {
if (product.prices.data[i].currency !== this.currency) {
continue;
}
price = parseFloat(product.prices.data[i].unit_price.raw);
break;
}
}
this.unit_price = price;
this.syncCart();
},
removeItem: function () {
this.$emit('remove-item', this.itemIndex);
},
syncCart: function () {
this.$emit('sync-cart', this.itemIndex, this.quantity, this.unit_price, this.product);
}
}
});
Vue.component('integration-installer', {
template: '<div class="col s12" v-if="!installed">' +
' <div class="card">' +
' <div class="card-content center">' +
' <h6 class="card-title font-weight-400">{{ display_name }}</h6>' +
' <p>{{ description}}</p>' +
' </div>' +
' <div class="card-tabs">' +
' <ul class="tabs tabs-fixed-width">' +
' <li class="tab"><a class="active" v-bind:href="integration_tab_href">Integration</a></li>' +
' <li class="tab"><a v-bind:href="config_tab_href" style="">Install</a></li>' +
' </ul>'+
' </div>' +
' <div class="card-content">' +
' <div v-bind:id="integration_tab_id" class="center active">' +
' <img v-bind:src="image" width="300">' +
' </div>' +
' <div v-bind:id="config_tab_id" class="center">' +
' <form class="col s12 mb-5" action="" method="post" v-on:submit.prevent="installApp">' +
' <div class="row">' +
' <div v-for="(setting, index) in integration_configurations" :key="name + index" class="input-field col s12">' +
' <input v-bind:id="name + index" type="text" v-model="integration_configurations[index].value" required>' +
' <label v-bind:for="name + index">{{ setting.label }}</label>' +
' </div>' +
' </div>' +
' <div class="row">' +
' <div class="col s12">' +
' <div class="progress" v-if="installing">' +
' <div class="indeterminate"></div>' +
' </div>' +
' <button class="btn blue waves-effect waves-light center" type="submit" v-if="!installing">Install</button>' +
' </div>' +
' </div>' +
' </form>' +
' </div>' +
' </div>' +
' </div>' +
' </div>',
data: function () {
return {
integration_type: this.type,
integration_name: this.name,
integration_configurations: this.configurations,
installing: false
};
},
props: {
type: {
type: String,
required: true
},
image: {
type: String,
required: true
},
name: {
type: String,
required: true
},
display_name: {
type: String,
required: false,
default: function () {
return this.name.title_case();
}
},
description: {
type: String,
required: false,
default: ''
},
configurations: {
type: Array,
required: false,
default: []
},
installed: {
type: Boolean,
required: false,
default: false
},
index: {
type: Number,
required: true
}
},
computed: {
integration_tab_id: function () {
return this.name + '-integration';
},
integration_tab_href: function () {
return '#' + this.integration_tab_id;
},
config_tab_id: function () {
return this.name + '-config';
},
config_tab_href: function () {
return '#' + this.config_tab_id;
}
},
methods: {
installApp: function () {
var context = this;
context.installing = true;
axios.post("/xhr/integrations", {
type: context.integration_type,
name: context.integration_name,
configurations: context.integration_configurations
}).then(function (response) {
console.log(response);
context.installed = true;
context.installing = false;
context.$emit('installed', context.index);
Materialize.toast('Added the ' + context.display_name + ' integration to your account.', 4000);
}).catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
context.installing = false;
Materialize.toast("Oops!" + message, 4000);
});
}
}
});
Vue.component('integration-manager', {
template: '<div class="col s12">' +
' <div class="card">' +
' <div class="card-content center">' +
' <h6 class="card-title font-weight-400">{{ display_name}}</h6>' +
' <p>{{ description}}</p>' +
' <a class="waves-effect waves-light btn red fixed-margin mt-3" v-on:click.prevent="uninstall">Uninstall</a>' +
' </div>' +
' <div class="card-tabs">' +
' <ul class="tabs tabs-fixed-width">' +
' <li class="tab"><a class="active" v-bind:href="integration_tab_href">Integration</a></li>' +
' <li class="tab"><a v-bind:href="config_tab_href" style="">Settings</a></li>' +
' </ul>'+
' </div>' +
' <div class="card-content">' +
' <div v-bind:id="integration_tab_id" class="center active">' +
' <img v-bind:src="image" width="300">' +
' </div>' +
' <div v-bind:id="config_tab_id" class="center">' +
' <form class="col s12 mb-5" action="" method="post" v-on:submit.prevent="updateApp">' +
' <div class="row">' +
' <div v-for="(setting, index) in integration_configurations" :key="name + index" class="input-field col s12">' +
' <input v-bind:id="name + index" type="text" v-model="integration_configurations[index].value" required>' +
' <label v-bind:for="name + index">{{ setting.label }}</label>' +
' </div>' +
' </div>' +
' <div class="row">' +
' <div class="col s12">' +
' <div class="progress" v-if="updating">' +
' <div class="indeterminate"></div>' +
' </div>' +
' <button class="btn blue waves-effect waves-light center" type="submit" v-if="!updating">Update</button>' +
' </div>' +
' </div>' +
' </form>' +
' </div>' +
' </div>' +
' </div>' +
' </div>',
data: function () {
return {
integration_type: this.type,
integration_name: this.name,
integration_configurations: this.configurations,
updating: false
};
},
props: {
id: {
type: [String, Number],
required: true
},
type: {
type: String,
required: true
},
image: {
type: String,
required: true
},
name: {
type: String,
required: true
},
display_name: {
type: String,
required: false,
default: function () {
return this.name.title_case();
}
},
description: {
type: String,
required: false,
default: ''
},
configurations: {
type: Array,
required: false,
default: []
},
installed: {
type: Boolean,
required: false,
default: false
},
index: {
type: Number,
required: true
}
},
computed: {
integration_tab_id: function () {
return this.name + '-integration';
},
integration_tab_href: function () {
return '#' + this.integration_tab_id;
},
config_tab_id: function () {
return this.name + '-config';
},
config_tab_href: function () {
return '#' + this.config_tab_id;
}
},
methods: {
updateApp: function () {
var context = this;
context.updating = true;
axios.put("/xhr/integrations/" + context.id, {
type: context.integration_type,
name: context.integration_name,
configurations: context.integration_configurations
}).then(function (response) {
console.log(response);
context.updating = false;
Materialize.toast('Updated the settings for the ' + context.display_name + ' integration.', 4000);
}).catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
context.updating = false;
Materialize.toast("Oops!" + message, 4000);
});
},
uninstall: function () {
var context = this;
swal({
title: "Are you sure?",
text: "You are about to uninstall the " + this.display_name + " integration.",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, uninstall it!",
closeOnConfirm: false,
showLoaderOnConfirm: true
}, function() {
context.updating = true;
axios.delete("/xhr/integrations/" + context.id)
.then(function (response) {
console.log(response);
context.visible = false;
context.$emit('remove-integration', context.index);
return swal("Uninstalled!", "The integration was successfully uninstalled.", "success");
})
.catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
return swal("Uninstall Failed", message, "warning");
});
});
}
}
});
Vue.component('plan-chooser', {
template: '<article class="col s12">' +
' <div class="card z-depth-1">' +
' <div class="card-image teal waves-effect">' +
' <div class="card-title">{{ display_name }}</div>' +
' <div class="price">' +
' <sup>NGN</sup>{{ profile.price_monthly.formatted.substring(0, profile.price_monthly.formatted.indexOf(".")) }}' +
' <sub>/mo</sub>' +
' </div>' +
' <div v-if="short_description.length > 0" class="price-desc tooltipped" data-position="bottom" data-delay="50" v-bind:data-tooltip="description">{{ short_description }}</div>' +
' </div>' +
' <div class="card-content">' +
' <ul class="collection">' +
' <li class="collection-item" v-for="(text, index) in features" :key="index">{{ text }}</li>'+
' </ul>' +
' </div>' +
' <div class="card-action center-align">' +
' <p v-if="typeof footnote !== \'undefined\' && footnote.length > 0">{{ footnote }}</p>' +
' <a class="waves-effect waves-light light-blue btn" href="#!" v-bind:class="{disabled: isCurrentPlan}" v-on:click.prevent="setPlan">Select Plan</a>' +
' </div>'+
' </div>' +
' </div>' +
'</article>',
data: function () {
return {
business: this.$parent.business
};
},
computed: {
isCurrentPlan: function () {
return this.business.plan.data.id === this.profile.id;
},
dropdownId: function () {
return 'dropdown' + this.profile.id;
}
},
props: {
name: {
type: String,
required: true
},
display_name: {
type: String,
required: false,
default: function () {
return this.name.title_case();
}
},
features: {
type: Array,
required: false,
default: function () {
return [];
}
},
short_description: {
type: String,
required: false,
default: ''
},
description: {
type: String,
required: false,
default: ''
},
index: {
type: Number,
required: true
},
profile: {
type: Object,
required: true
},
footnote: {
type: String,
required: false,
default: ''
}
},
methods: {
setPlan: function () {
var context = this;
swal({
title: "Switch Plan",
text: "Would you like to switch to the " + this.display_name + " plan?",
type: "warning",
showCancelButton: true,
confirmButtonText: "Yes, subscribe.",
closeOnConfirm: false,
showLoaderOnConfirm: true
}, function() {
axios.post("/xhr/plans", {
plan: context.name
}).then(function (response) {
console.log(response);
window.location = '/home';
})
.catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
return swal("Action Failed", message, "warning");
});
});
}
}
});
Vue.component('blog-category', {
template: '<div class="col s12">' +
'<div class="card">' +
'<div class="card-content">' +
'<span class="card-title"><h4>{{ category.name }} ({{ category.posts_count }})</h4></span>' +
'<p class="flow-text">{{ category.slug }}</p>' +
'</div>' +
'<div class="card-action">' +
'<a href="#" class="grey-text text-darken-3" v-on:click.prevent="edit">Edit</a>' +
'<a href="#" class="red-text" v-on:click.prevent="deleteField" v-if="showDelete">REMOVE</a>' +
'</div>' +
'</div>' +
'</div>',
props: {
category: {
type: Object,
required: true
},
index: {
type: Number,
required: true
},
showDelete: {
type: Boolean,
default: false
}
},
data: function () {
return {
visible: this.seen
}
},
methods: {
edit: function () {
var context = this;
swal({
title: "Update Category",
text: "Enter new name [" + context.category.name + "]:",
type: "input",
showCancelButton: true,
closeOnConfirm: false,
animation: "slide-from-top",
showLoaderOnConfirm: true,
inputPlaceholder: "Custom Field Name"
},
function(inputValue){
if (inputValue === false) return false;
if (inputValue === "") {
swal.showInputError("You need to write something!");
return false
}
axios.put("/xhr/ecommerce/blog/categories/"+context.category.id, {
name: inputValue,
update_slug: true
}).then(function (response) {
console.log(response);
context.$emit('update', context.index, response.data);
return swal("Success", "The category name was successfully updated.", "success");
})
.catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
return swal("Oops!", message, "warning");
});
});
},
deleteField: function () {
var context = this;
swal({
title: "Are you sure?",
text: "You are about to delete the category (" + context.category.name + ").",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!",
closeOnConfirm: false,
showLoaderOnConfirm: true
}, function() {
axios.delete("/xhr/ecommerce/blog/categories/" + context.category.id)
.then(function (response) {
console.log(response);
context.$emit('remove', context.index);
return swal("Deleted!", "The category was successfully deleted.", "success");
})
.catch(function (error) {
var message = '';
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
var e = error.response.data.errors[0];
message = e.title;
} else if (error.request) {
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
message = 'The request was made but no response was received';
} else {
// Something happened in setting up the request that triggered an Error
message = error.message;
}
return swal("Delete Failed", message, "warning");
});
});
}
}
});
Vue.component('advert-card', {
template: '<div class="col s12 m4">' +
' <div class="card">' +
' <div class="card-image">' +
' <img v-bind:src="advert.image_url" v-bind:alt="advert.title + \' image\'" />' +
' <span class="card-title">{{ advert.title }}</span>' +
' </div>' +
' <div class="card-action">' +
' <a v-if="typeof advert.redirect_url !== \'undefined\' && advert.redirect_url !== null"' +
' v-bind:href="advert.redirect_url" target="_blank">Open Link</a>' +
' <a href="#" v-on:click.prevent="editAdvert">Edit</a>' +
' <a href="#" class="red-text right" v-on:click.prevent="deleteAdvert">Delete</a>\n' +
' </div>' +
' </div>' +
' </div>',
props: {
advert: {
type: Object,
required: true
},
index: {
type: Number,
required: true
}
},
methods: {
editAdvert: function () {
this.$emit('edit-advert', this.index);
},
deleteAdvert: function () {
this.$emit('delete-advert', this.index);
}
}
});
Vue.component('group-card', {
template: '<div class="col s12">' +
'<div class="card">' +
'<div class="card-content">' +
'<span class="card-title"><h4>{{ group.name + (typeof group.customers_count !== \'undefined\' ? " (" + group.customers_count + ")" : "") }}</h4></span>' +
'<p>{{ group.description }}</p>' +
'</div>' +
'<div class="card-action">' +
'<a v-bind:href="\'/apps/crm/customers?groups=\' + group.id" class="grey-text text-darken-3">Customers</a>' +
'<a href="#" class="grey-text text-darken-3" v-on:click.prevent="editGroup">Edit</a>' +
'<a href="#" class="red-text" v-on:click.prevent="deleteGroup">Delete</a>' +
'</div>' +
'</div>' +
'</div>',
props: {
group: {
type: Object,
required: true
},
index: {
type: Number,
required: true
}
},
methods: {
editGroup: function () {
this.$emit('edit-group', this.index);
},
deleteGroup: function () {
this.$emit('delete-group', this.index);
}
}
});
Vue.component('webmail-account', {
template: '<div class="col s12">' +
' <div class="card">' +
' <div class="card-content">' +
' <span class="card-title">{{ email.login }}</span>' +
' <p><strong>Storage Quota: </strong>{{ email.diskquota }}MB<br><strong>Used Storage: </strong>{{ email.diskusedpercent_float }}%</p>' +
' </div>' +
' <div class="card-action">' +
' <a target="_blank" :href="\'http://\' + email.domain + \'/webmail\'">WebMail</a>' +
' <a class="red-text right" v-on:click.prevent="deleteEmail" href="#">Delete</a>' +
' </div>' +
' </div>' +
' </div>',
props: {
email: {
type: Object,
required: true
},
index: {
type: Number,
required: true
}
},
methods: {
deleteEmail: function () {
this.$emit('delete-email', this.index);
}
}
});
Vue.component('app-store-app', {
template: '<div class="col s12">' +
' <div class="card">' +
' <div class="card-content center">' +
' <h6 class="card-title font-weight-400">{{ app.name }}</h6>' +
' <p><a :href="app.homepage_url" v-if="app.homepage_url !== null" target="_blank">{{ app.homepage_url }}</a></p>' +
' <a class="waves-effect waves-light btn fixed-margin mt-3" v-if="app.is_installed && app.homepage_url !== null && app.type === \'web\'" :href="app.homepage_url + \'/install/setup?token=\' + auth_token" target="_blank">Launch</a>' +
' <a class="waves-effect waves-light btn red fixed-margin mt-3" v-if="app.is_installed" v-on:click.prevent="uninstall">Uninstall</a>' +
' <a class="waves-effect waves-light btn fixed-margin mt-3" v-if="!app.is_installed" v-on:click.prevent="install">Install</a>' +
' </div>' +
' <div class="card-tabs">' +
' <ul class="tabs tabs-fixed-width">' +
' <li class="tab"><a class="active" v-bind:href="branding_tab_href">Product</a></li>' +
' <li class="tab"><a v-bind:href="description_tab_href" style="">Description</a></li>' +
' </ul>'+
' </div>' +
' <div class="card-content">' +
' <div v-bind:id="branding_tab_id" class="center active">' +
' <img v-bind:src="app.icon_url" width="300">' +
' </div>' +
' <div v-bind:id="description_tab_id" class="">' +
' <p>{{ app.description}}</p>' +
' </div>' +
' </div>' +
' </div>' +
' </div>',
data: function () {
return {
updating: false,
auth_token: ''
};
},
computed: {
branding_tab_id: function () {
return this.app.type + '_' + this.index + '-branding';
},
branding_tab_href: function () {
return '#' + this.branding_tab_id;
},
description_tab_id: function () {
return this.app.type + '_' + this.index + '-description';
},
description_tab_href: function () {
return '#' + this.description_tab_id;
}
},
mounted: function () {
$('ul.tabs').tabs();
this.auth_token = this.$parent.authorization_token;
},
props: {
app: {
type: Object,
required: true
},
index: {
type: Number,
required: true
}
},
methods: {
install: function () {
this.$emit('install-app', this.index);
},
uninstall: function () {
this.$emit('uninstall-app', this.index);
}
}
}); | 43.235533 | 305 | 0.454 |
0554c03367bcda499022f70f3b4d836a99c7cef9 | 144 | js | JavaScript | src/selectors/getProp.js | just-paja/redux-saga-resources | 4cab806db2d8ecba73c56a60138d1a4233c33c8e | [
"MIT"
] | null | null | null | src/selectors/getProp.js | just-paja/redux-saga-resources | 4cab806db2d8ecba73c56a60138d1a4233c33c8e | [
"MIT"
] | 3 | 2020-09-04T07:59:48.000Z | 2021-05-06T22:05:54.000Z | src/selectors/getProp.js | just-paja/redux-saga-resources | 4cab806db2d8ecba73c56a60138d1a4233c33c8e | [
"MIT"
] | 1 | 2019-07-05T06:27:12.000Z | 2019-07-05T06:27:12.000Z | import getStateProperty from './getStateProperty'
export default getStateProperty(prop => state => (
state ? (state[prop] || null) : null
))
| 24 | 50 | 0.708333 |
0554ed087191868521f643618ba7ab8c57f20606 | 2,568 | js | JavaScript | js/plugins.js | ariven/Form_Builder-for-CodeIgniter | 72f3ecf9e0f85a56776c3064385a659706870ed3 | [
"MIT"
] | 4 | 2015-12-02T02:42:24.000Z | 2020-05-22T05:09:49.000Z | js/plugins.js | ariven/Form_Builder-for-CodeIgniter | 72f3ecf9e0f85a56776c3064385a659706870ed3 | [
"MIT"
] | null | null | null | js/plugins.js | ariven/Form_Builder-for-CodeIgniter | 72f3ecf9e0f85a56776c3064385a659706870ed3 | [
"MIT"
] | 2 | 2020-09-21T07:22:46.000Z | 2021-10-22T00:50:59.000Z | /**
* http://plugins.jquery.com/files/issues/jjquery.cookie-modified.js_.txt
*
* CSRF fix
*
*/
jQuery.cookie = function(name, value, options) {
if (typeof value != 'undefined' || (name && typeof name != 'string')) { // name and value given, set cookie
if (typeof name == 'string') {
options = options || {};
if (value === null) {
value = '';
options.expires = -1;
}
var expires = '';
if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
var date;
if (typeof options.expires == 'number') {
date = new Date();
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
} else {
date = options.expires;
}
expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
}
// CAUTION: Needed to parenthesize options.path and options.domain
// in the following expressions, otherwise they evaluate to undefined
// in the packed version for some reason...
var path = options.path ? '; path=' + (options.path) : '';
var domain = options.domain ? '; domain=' + (options.domain) : '';
var secure = options.secure ? '; secure' : '';
document.cookie = name + '=' + encodeURIComponent(value) + expires + path + domain + secure;
} else { // `name` is really an object of multiple cookies to be set.
for (var n in name) { jQuery.cookie(n, name[n], value||options); }
}
} else { // get cookie (or all cookies if name is not provided)
var returnValue = {};
if (document.cookie) {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]);
// Does this cookie string begin with the name we want?
if (!name) {
var nameLength = cookie.indexOf('=');
returnValue[ cookie.substr(0, nameLength)] = decodeURIComponent(cookie.substr(nameLength+1));
} else if (cookie.substr(0, name.length + 1) == (name + '=')) {
returnValue = decodeURIComponent(cookie.substr(name.length + 1));
break;
}
}
}
return returnValue;
}
};
| 43.525424 | 117 | 0.507788 |
0556e4ce604668535de0773ed10f726cdd4aa27b | 354 | js | JavaScript | backend/src/modules/file/ManageFiles.js | Cerberrus/aic-test | d8064d5a47ceb295d871d8de1025576e93b66bbc | [
"MIT"
] | 3 | 2020-12-24T11:32:07.000Z | 2021-06-06T09:33:41.000Z | backend/src/modules/file/ManageFiles.js | Cerberrus/aic-test | d8064d5a47ceb295d871d8de1025576e93b66bbc | [
"MIT"
] | null | null | null | backend/src/modules/file/ManageFiles.js | Cerberrus/aic-test | d8064d5a47ceb295d871d8de1025576e93b66bbc | [
"MIT"
] | 1 | 2021-06-06T09:33:48.000Z | 2021-06-06T09:33:48.000Z | const fs = require("fs");
class ManageFiles {
deleteFile = (filePath) => { //Принимает путь файла и удаляет его
try {
const exist = fs.existsSync(filePath)
if(exist){
fs.unlinkSync(filePath);
}
return true
} catch (e) {
console.error(e);
return false;
}
};
}
module.exports = ManageFiles | 22.125 | 74 | 0.573446 |
0556fdbd1b4fdf9b4c650598aae3b99d6ce58c48 | 385 | js | JavaScript | racional/src/html/search/all_5.js | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-Jdorta62 | 1b15eaed0702b8ffe188a9604549e8b1c0acbd91 | [
"MIT"
] | null | null | null | racional/src/html/search/all_5.js | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-Jdorta62 | 1b15eaed0702b8ffe188a9604549e8b1c0acbd91 | [
"MIT"
] | null | null | null | racional/src/html/search/all_5.js | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-Jdorta62 | 1b15eaed0702b8ffe188a9604549e8b1c0acbd91 | [
"MIT"
] | null | null | null | var searchData=
[
['racional_6',['Racional',['../classRacional.html',1,'Racional'],['../classRacional.html#a37e0512a400d82a493e33d5219f24d61',1,'Racional::Racional()']]],
['racional_2ecc_7',['racional.cc',['../racional_8cc.html',1,'']]],
['racional_2eh_8',['racional.h',['../racional_8h.html',1,'']]],
['racionales_2ecc_9',['racionales.cc',['../racionales_8cc.html',1,'']]]
];
| 48.125 | 154 | 0.657143 |
0557b480adb001dc889317e17188a1f34f10c7a7 | 6,582 | js | JavaScript | dist/src/docs/529f92e4.ce89d38c.js | ss-mvp/tricktionary-be | 8b3de8557993498989a9cebae64939fc0709ab17 | [
"MIT"
] | 1 | 2021-04-10T16:10:52.000Z | 2021-04-10T16:10:52.000Z | dist/src/docs/529f92e4.ce89d38c.js | ss-mvp/tricktionary-be | 8b3de8557993498989a9cebae64939fc0709ab17 | [
"MIT"
] | 142 | 2021-02-04T21:06:57.000Z | 2022-03-24T01:09:00.000Z | dist/src/docs/529f92e4.ce89d38c.js | ss-mvp/tricktionary-be | 8b3de8557993498989a9cebae64939fc0709ab17 | [
"MIT"
] | 1 | 2021-11-22T19:32:22.000Z | 2021-11-22T19:32:22.000Z | (window.webpackJsonp=window.webpackJsonp||[]).push([[24],{151:function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return u}));var n=r(0),a=r.n(n);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):b(b({},t),e)),r},d=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},s=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(r),s=n,u=d["".concat(c,".").concat(s)]||d[s]||m[s]||o;return r?a.a.createElement(u,b(b({ref:t},l),{},{components:r})):a.a.createElement(u,b({ref:t},l))}));function u(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,c=new Array(o);c[0]=s;var b={};for(var i in t)hasOwnProperty.call(t,i)&&(b[i]=t[i]);b.originalType=e,b.mdxType="string"==typeof e?e:n,c[1]=b;for(var l=2;l<o;l++)c[l]=r[l];return a.a.createElement.apply(null,c)}return a.a.createElement.apply(null,r)}s.displayName="MDXCreateElement"},92:function(e,t,r){"use strict";r.r(t),r.d(t,"frontMatter",(function(){return c})),r.d(t,"metadata",(function(){return b})),r.d(t,"toc",(function(){return i})),r.d(t,"default",(function(){return p}));var n=r(3),a=r(7),o=(r(0),r(151)),c={},b={unversionedId:"tricktionary/modules/handleerrormessage",id:"tricktionary/modules/handleerrormessage",isDocsHomePage:!1,title:"handleerrormessage",description:"tricktionary-be / Exports / handleErrorMessage",source:"@site/docs/tricktionary/modules/handleerrormessage.md",slug:"/tricktionary/modules/handleerrormessage",permalink:"/help/docs/tricktionary/modules/handleerrormessage",version:"current"},i=[{value:"Table of contents",id:"table-of-contents",children:[{value:"Functions",id:"functions",children:[]}]},{value:"Functions",id:"functions-1",children:[{value:"default",id:"default",children:[]}]}],l={toc:i};function p(e){var t=e.components,r=Object(a.a)(e,["components"]);return Object(o.b)("wrapper",Object(n.a)({},l,r,{components:t,mdxType:"MDXLayout"}),Object(o.b)("p",null,Object(o.b)("a",{parentName:"p",href:"/help/docs/tricktionary/README"},"tricktionary-be")," / ",Object(o.b)("a",{parentName:"p",href:"/help/docs/tricktionary/modules"},"Exports")," / handleErrorMessage"),Object(o.b)("h1",{id:"module-handleerrormessage"},"Module: handleErrorMessage"),Object(o.b)("h2",{id:"table-of-contents"},"Table of contents"),Object(o.b)("h3",{id:"functions"},"Functions"),Object(o.b)("ul",null,Object(o.b)("li",{parentName:"ul"},Object(o.b)("a",{parentName:"li",href:"/help/docs/tricktionary/modules/handleerrormessage#default"},"default"))),Object(o.b)("h2",{id:"functions-1"},"Functions"),Object(o.b)("h3",{id:"default"},"default"),Object(o.b)("p",null,"\u25b8 ",Object(o.b)("strong",{parentName:"p"},"default"),"(",Object(o.b)("inlineCode",{parentName:"p"},"io"),": ",Object(o.b)("em",{parentName:"p"},"any"),", ",Object(o.b)("inlineCode",{parentName:"p"},"socket"),": ",Object(o.b)("em",{parentName:"p"},"any"),", ",Object(o.b)("inlineCode",{parentName:"p"},"code"),": ",Object(o.b)("em",{parentName:"p"},"number"),", ",Object(o.b)("inlineCode",{parentName:"p"},"error"),": ",Object(o.b)("em",{parentName:"p"},"string")," ","|"," ",Object(o.b)("em",{parentName:"p"},"undefined"),"): ",Object(o.b)("em",{parentName:"p"},"Promise"),"<void",">"),Object(o.b)("p",null,'emit "error" message to player at socket.id'),Object(o.b)("h4",{id:"parameters"},"Parameters:"),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",{parentName:"tr",align:"left"},"Name"),Object(o.b)("th",{parentName:"tr",align:"left"},"Type"),Object(o.b)("th",{parentName:"tr",align:"left"},"Description"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"io")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"any (socketio)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"socket")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"any")),Object(o.b)("td",{parentName:"tr",align:"left"},"any (socketio)")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"code")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"number")),Object(o.b)("td",{parentName:"tr",align:"left"},"-")),Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("inlineCode",{parentName:"td"},"error")),Object(o.b)("td",{parentName:"tr",align:"left"},Object(o.b)("em",{parentName:"td"},"string")," ","|"," ",Object(o.b)("em",{parentName:"td"},"undefined")),Object(o.b)("td",{parentName:"tr",align:"left"},"string")))),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Returns:")," ",Object(o.b)("em",{parentName:"p"},"Promise"),"<void",">"),Object(o.b)("p",null,"Defined in: ",Object(o.b)("a",{parentName:"p",href:"https://github.com/story-squad/tricktionary-be/blob/0b1420e/src/sockets/handleErrorMessage.ts#L9"},"handleErrorMessage.ts:9")))}p.isMDXComponent=!0}}]); | 6,582 | 6,582 | 0.67168 |
0558f8203fdf8b83958c25b68b29e1cf4c476318 | 424 | js | JavaScript | app/api/root.js | MarkoN95/Voting-App | d0e6d17dcc2206bc156e5eb4ea2a3092b433b86c | [
"MIT"
] | 1 | 2020-07-24T02:34:06.000Z | 2020-07-24T02:34:06.000Z | app/api/root.js | MarkoN95/Voting-App | d0e6d17dcc2206bc156e5eb4ea2a3092b433b86c | [
"MIT"
] | null | null | null | app/api/root.js | MarkoN95/Voting-App | d0e6d17dcc2206bc156e5eb4ea2a3092b433b86c | [
"MIT"
] | null | null | null | const login = require("./login");
const logout = require("./logout");
const register = require("./register");
const polls = require("./polls");
const polledits = require("./polledits");
const voting = require("./voting");
const deleteAccount = require("./deleteAccount");
module.exports = function(app) {
login(app);
logout(app);
register(app);
polls(app);
polledits(app);
voting(app);
deleteAccount(app);
};
| 23.555556 | 49 | 0.67217 |
055baf01242ce95473d32450dad564050f35c426 | 5,196 | js | JavaScript | src/index.js | Javran/swf-extract | 2f1d9ea91620a0ad2e3b86202ed4ac5259cdd3f3 | [
"MIT"
] | 14 | 2017-11-30T07:34:27.000Z | 2021-12-18T02:54:46.000Z | src/index.js | Javran/swf-extract | 2f1d9ea91620a0ad2e3b86202ed4ac5259cdd3f3 | [
"MIT"
] | null | null | null | src/index.js | Javran/swf-extract | 2f1d9ea91620a0ad2e3b86202ed4ac5259cdd3f3 | [
"MIT"
] | 5 | 2017-11-24T08:50:14.000Z | 2021-11-04T10:39:09.000Z | /**
* Simple module for reading SWF properties
*
* (c) 2014 Rafael Leal Dias <rafaeldias.c at gmail dot com>
* MIT LICENCE
*
*/
import zlib from 'zlib'
import lzma from 'lzma-purejs'
import Stream from 'stream'
import { SWFBuffer } from './swf-buffer'
const readSWFTags = (buff, callbacks) => {
while (buff.pointer < buff.buffer.length) {
const {code,length} = buff.readTagCodeAndLength()
const pos = buff.pointer
setTimeout(() =>
callbacks.tag(code,length,buff.buffer,pos))
buff.incr(length)
}
setTimeout(() => callbacks.done())
}
/**
* Reads tags and their contents, passing a SWF object to callback
*
* @param {SWFBuffer} buff
* @param {Buffer} compressed_buff
* @api private
*
*/
const readSWFBuff = (buff, compressedBuff, callbacks) => {
// skipping magic numbers
buff.seek(3)
const swf = {
version: buff.readUInt8(),
fileLength: {
compressed: compressedBuff.length,
uncompressed: buff.readUIntLE(32),
},
// Returns a RECT object. i.e : { x : 0, y : 0, width : 200, height: 300 }
frameSize: buff.readRect(),
frameRate: buff.readUIntLE(16)/256,
frameCount: buff.readUIntLE(16),
}
setTimeout(() => callbacks.header(swf))
readSWFTags(buff, callbacks)
}
/**
* Uncompress SWF and start reading it
*
* @param {Buffer} swf
*
*/
const uncompress = (swf, callbacks) => {
const [swfType] = swf
// uncompressed
if (swfType === 0x46) {
return readSWFBuff(new SWFBuffer(swf), swf, callbacks)
}
// zlib compressed
if (swfType === 0x43) {
const compressedBuff = swf.slice(8)
const uncompressedBuff =
Buffer.concat([swf.slice(0, 8), zlib.unzipSync(
compressedBuff,
/*
suppress default error handling in case the file is truncated
ref: https://nodejs.org/api/zlib.html as of Jan 03, 2018
*/
{ finishFlush: zlib.constants.Z_SYNC_FLUSH }
)])
return readSWFBuff(new SWFBuffer(uncompressedBuff), swf, callbacks)
}
// lzma compressed
if (swfType === 0x5a) {
/*
reference: https://helpx.adobe.com/flash-player/kb/exception-thrown-you-decompress-lzma-compressed.html
- 0~3: ZWS + version
- 4~7: Uncompressed length
- 8~11: Compressed length bytes
- 12~16: LZMA properties
- 17~: Compressed data
*/
const compressedBuff = swf.slice(17)
const lzmaProperties = swf.slice(12,16+1)
const uncompressedLenBuff = swf.slice(4,7+1)
/* eslint-disable no-bitwise */
const uncompressedLength =
uncompressedLenBuff[0] +
(uncompressedLenBuff[1] << 8) +
(uncompressedLenBuff[2] << 16) +
(uncompressedLenBuff[3] << 24) - 8
/* eslint-enable no-bitwise */
/*
// this part works with
// but it's just too slow to be useful
const lzma2 = require('lzma')
const recompressLenBuff = Buffer.alloc(8,0)
recompressLenBuff[0] = uncompressedLength & 0xFF
recompressLenBuff[1] = (uncompressedLength >> 8) & 0xFF
recompressLenBuff[2] = (uncompressedLength >> 16) & 0xFF
recompressLenBuff[3] = (uncompressedLength >> 24) & 0xFF
const lzmaData = Buffer.concat([lzmaProperties,recompressLenBuff,compressedBuff])
if (true) {
const uncompressedBuff = Buffer.from(lzma2.decompress(lzmaData))
return readSWFBuff(new SWFBuffer(uncompressedBuff), swf, callbacks)
}
*/
const inputStream = new Stream()
{
let pos = 0
inputStream.readByte = () => {
if (pos < compressedBuff.length) {
const v = compressedBuff[pos]
++pos
return v
} else {
return -1
}
}
}
const outputStream = new Stream()
{
const buffer = new Buffer(uncompressedLength)
let pos = 0
outputStream.writeByte = _byte => {
buffer[pos] = _byte
++pos
}
outputStream.getBuffer = () =>
(pos !== buffer.length) ?
buffer.slice(0,pos) :
buffer
}
lzma.decompress(lzmaProperties, inputStream, outputStream, -1)
const uncompressedBuff = Buffer.concat([swf.slice(0, 8), outputStream.getBuffer()])
return readSWFBuff(new SWFBuffer(uncompressedBuff), swf, callbacks)
}
setTimeout(() => callbacks.error(new Error(`Unknown SWF compression type: ${swfType}`)))
}
/*
callbacks:
error(e)
header(swf)
tag(code,length,buffer,pos)
done()
*/
const readFromBuffer = (buffer,callbacks) => {
if (! Buffer.isBuffer(buffer))
throw new Error(`expecting a buffer`)
return uncompress(buffer,callbacks)
}
const readFromBufferP = buffer => new Promise(
(resolve, reject) => {
const data = {tags: []}
readFromBuffer(buffer,{
error: e => reject(e),
header: swf => Object.assign(data,swf),
tag: (code, length, swfBuf, pos) => {
const tag = {
code, length,
rawData: Buffer.from(swfBuf.buffer,pos,length),
}
data.tags.push(tag)
},
done: () => resolve(data),
})
})
export * from './tag-readers'
export * from './swf-tags'
export * from './extract-images'
export * from './extract-sounds'
export { readFromBuffer, readFromBufferP }
| 25.346341 | 110 | 0.622594 |
055dd00e808ed8ca54b0b1cfd2eb60d3151608e2 | 1,338 | js | JavaScript | assets/js/transportation.js | darmilola/AssistPayDashboard | e7d616dbda6ab2dada104abfc01c01060dca4144 | [
"MIT"
] | null | null | null | assets/js/transportation.js | darmilola/AssistPayDashboard | e7d616dbda6ab2dada104abfc01c01060dca4144 | [
"MIT"
] | null | null | null | assets/js/transportation.js | darmilola/AssistPayDashboard | e7d616dbda6ab2dada104abfc01c01060dca4144 | [
"MIT"
] | null | null | null | $('#add-new-company-button').click(function(event) {
event.preventDefault();
$('#add-new-company').toggle();
$('#company-list').toggle();
$('#drivers_list').toggle();
});
$('#cancel-edit').click(function(event) {
event.preventDefault();
$('#add-new-company').toggle();
$('#company-list').toggle();
$('#drivers_list').toggle();
});
$('#view_company_routes').click(function(event) {
event.preventDefault();
$('#company-list').toggle();
$('#drivers_list').toggle();
$('#company_routes_list').toggle();
});
$('#add-new-route-button').click(function(event) {
event.preventDefault();
$('#drivers_list').toggle();
$('#add-new-route').toggle();
});
$('#dismiss_bookings').click(function(event) {
event.preventDefault();
$('#booking-list').toggle();
$('#booking_list_root').toggle();
$('#transport_list').toggle();
$('#add-new-route-button').toggle();
$('#drivers_list').toggle();
});
$('#cancel-add').click(function(event) {
event.preventDefault();
$('#company-list').toggle();
$('#drivers_list').toggle();
$('#add-new-route').toggle();
});
$('#close_route').click(function(event) {
event.preventDefault();
$('#company-list').toggle();
$('#drivers_list').toggle();
$('#company_routes_list').toggle();
});
| 23.068966 | 52 | 0.57997 |
055e1d81eb20f66875bbccf10b7316d30122fe1b | 955 | js | JavaScript | public/js/actionable.js | liautaud/fiches | 31141b97330fa952b3eab0d4a660b1d9122a440d | [
"MIT"
] | 1 | 2017-05-19T10:34:04.000Z | 2017-05-19T10:34:04.000Z | public/js/actionable.js | liautaud/fiches | 31141b97330fa952b3eab0d4a660b1d9122a440d | [
"MIT"
] | null | null | null | public/js/actionable.js | liautaud/fiches | 31141b97330fa952b3eab0d4a660b1d9122a440d | [
"MIT"
] | null | null | null | $(function () {
var showSuccess = function () {
$('#message-snackbar').eq(0).MaterialSnackbar.showSnackbar({
message: 'Les éléments ont été supprimés avec succès'
});
};
$('[data-action]').click(function () {
var action = $(this).attr('data-action');
var $target = $($(this).attr('data-target'));
$target.find(':checked').parents('tr').each(function () {
var $el = $(this);
var url = $el.attr('data-' + action + '-url');
var method = $el.attr('data-' + action + '-method') || 'POST';
if (url) {
$.post(url, {
_method: method,
_token: document.CSRF_TOKEN
}, function (data) {
$el.slideUp(function () {
$el.remove();
});
});
}
});
});
}); | 32.931034 | 75 | 0.40733 |
055e5756fef030b11101137cb7fac0962de3e3b3 | 2,392 | js | JavaScript | src/data/categories.js | italia/daf-publicdata | d863f7b2ed1bcb394f3aa8b825963b82d5475317 | [
"Apache-2.0"
] | 9 | 2017-10-08T13:28:38.000Z | 2020-05-01T22:35:40.000Z | src/data/categories.js | italia/daf-dataportal-public | d863f7b2ed1bcb394f3aa8b825963b82d5475317 | [
"Apache-2.0"
] | 28 | 2017-10-06T21:56:50.000Z | 2019-03-25T16:51:49.000Z | src/data/categories.js | italia/daf-dataportal-public | d863f7b2ed1bcb394f3aa8b825963b82d5475317 | [
"Apache-2.0"
] | 21 | 2017-10-06T14:20:58.000Z | 2020-12-29T19:52:13.000Z | const categories = [
{
"id": 1,
"name": "Agricoltura, pesca, silvicoltura e prodotti alimentari",
"tag": "Agricoltura"
},
{
"id": 2,
"name": "Economia e finanze",
"tag": "Economia"
},
{
"id": 3,
"name": "Istruzione, cultura e sport",
"tag": "Istruzione"
},
{
"id": 4,
"name": "Energia",
"tag": "Energia"
},
{
"id": 5,
"name": "Ambiente",
"tag": "Ambiente"
},
{
"id": 6,
"name": "Governo e settore pubblico",
"tag": "Governo"
},
{
"id": 7,
"name": "Salute",
"tag": "Salute"
},
{
"id": 8,
"name": "Tematiche internazionali",
"tag": "Internazionali"
},
{
"id": 9,
"name": "Giustizia, sistema giuridico e sicurezza pubblica",
"tag": "Giustizia"
},
{
"id": 10,
"name": "Regioni e città",
"tag": "Regioni"
},
{
"id": 11,
"name": "Popolazione e società",
"tag": "Società"
},
{
"id": 12,
"name": "Scienza e tecnologia",
"tag": "Scienza"
},
{
"id": 13,
"name": "Trasporti",
"tag": "Trasporti"
}
];
export default categories; | 34.666667 | 89 | 0.224498 |
055e60f3541d9a079352034a110806eec377277c | 643 | js | JavaScript | src/services/UploadImageProduct.js | NacerYeles/ProjetImmobillier | 6ae2ee38a3ab9b26f073fecf2e42317556fc12bb | [
"MIT"
] | null | null | null | src/services/UploadImageProduct.js | NacerYeles/ProjetImmobillier | 6ae2ee38a3ab9b26f073fecf2e42317556fc12bb | [
"MIT"
] | null | null | null | src/services/UploadImageProduct.js | NacerYeles/ProjetImmobillier | 6ae2ee38a3ab9b26f073fecf2e42317556fc12bb | [
"MIT"
] | null | null | null | const config = require('../../app/config.js');
module.exports = class UploadImageProduct {
moveFile(file) {
return new Promise((resolve, reject) => {
const regex = /[^a-z0-9_\.]/i;
let baseName = file.name.replace(regex,'_').replace('__','_');
let uploadPath = config.directory_product_image+'/'+baseName;
console.log("baseName : ", baseName);
console.log("uploadPath : ", uploadPath);
file.mv(uploadPath, (err) => {
console.log(err);
if(err) reject();
resolve(baseName);
} );
});
}
} | 33.842105 | 74 | 0.510109 |
055ef1ee83af5e218cf1bff4692772b2d76d41c7 | 1,502 | js | JavaScript | src/components/input/custom-select-field.js | nsschultz/fantasy-baseball-ui | 95ebd6e0243572d99d24721a0de21fc58bfb868d | [
"MIT"
] | null | null | null | src/components/input/custom-select-field.js | nsschultz/fantasy-baseball-ui | 95ebd6e0243572d99d24721a0de21fc58bfb868d | [
"MIT"
] | null | null | null | src/components/input/custom-select-field.js | nsschultz/fantasy-baseball-ui | 95ebd6e0243572d99d24721a0de21fc58bfb868d | [
"MIT"
] | null | null | null | import { Checkbox, FormControl, InputLabel, ListItemText, MenuItem, Select } from '@material-ui/core';
import React, { useState } from 'react';
import CustomInuptBase from './custom-input-base';
import PropTypes from 'prop-types';
const CustomSelectField = ({ field, lookup, onHandleFilterChange, filterValues, title, width }) => {
const [filters, setFilters] = useState(filterValues || []);
const onChange = (event) => {
setFilters(event.target.value);
onHandleFilterChange(event);
};
return (
<FormControl variant='outlined'>
{title ? <InputLabel>{title}</InputLabel> : null}
<Select
input={<CustomInuptBase id={'select-multiple-checkbox-' + field}/>}
multiple
onChange={(event) => onChange(event)}
renderValue={(selecteds) => selecteds.map((selected) => lookup[selected]).join(', ')}
style={{width: width ? width : 100}}
value={filters}
>
{Object.keys(lookup).map((key) => (
<MenuItem key={key} value={key}>
<Checkbox checked={filters.indexOf(key.toString()) > -1} />
<ListItemText primary={lookup[key]} />
</MenuItem>
))}
</Select>
</FormControl>
);
};
CustomSelectField.propTypes = {
field: PropTypes.string.isRequired,
lookup: PropTypes.any.isRequired,
onHandleFilterChange: PropTypes.func.isRequired,
filterValues: PropTypes.array,
title: PropTypes.string,
width: PropTypes.number
};
export default CustomSelectField; | 32.652174 | 102 | 0.645806 |
055effad0d98e78e8a82b1a1fabb4e3e85d47572 | 2,854 | js | JavaScript | public/javascripts/controls.js | padawin/game-framework-js | 18354023e2382f7c3ecaa2094e7291f599a9dee4 | [
"MIT"
] | null | null | null | public/javascripts/controls.js | padawin/game-framework-js | 18354023e2382f7c3ecaa2094e7291f599a9dee4 | [
"MIT"
] | null | null | null | public/javascripts/controls.js | padawin/game-framework-js | 18354023e2382f7c3ecaa2094e7291f599a9dee4 | [
"MIT"
] | null | null | null | if (typeof (require) != 'undefined') {
var loader = require('../../node_modules/Butterfly-js/dist/butterfly.min.js').loader;
}
/**
* Module to deal with the game controls on the keyboard
*/
loader.addModule('Controls',
'B',
function (B) {
"use strict";
/**
* PRIVATE METHOD
*
* Function to execute when a keyboard key is pressed
* If the key is an arrow, the event must be stopped to prevent
* the page scroll or navigation
*/
function keyDownEvent (e) {
B.Events.fire('keydown', [e.keyCode]);
if (~([
controls.KEY_DOWN_ARROW,
controls.KEY_LEFT_ARROW,
controls.KEY_RIGHT_ARROW,
controls.KEY_UP_ARROW
].indexOf(e.keyCode))
) {
e.preventDefault();
}
}
/**
* PRIVATE METHOD
*
* Function to execute when a keyboard key is released
* If the key is an arrow, the event must be stopped to prevent
* the page scroll or navigation
*/
function keyUpEvent (e) {
B.Events.fire('keyup', [e.keyCode]);
if (~([
controls.KEY_DOWN_ARROW,
controls.KEY_LEFT_ARROW,
controls.KEY_RIGHT_ARROW,
controls.KEY_UP_ARROW
].indexOf(e.keyCode))
) {
e.preventDefault();
}
}
/**
* PRIVATE METHOD
*
* Function to calculate the coordinates of the mouse in an element
* according to the element's position and the cursor's position
*/
function _mouseCoordinates (element, event) {
var rect = element.getBoundingClientRect(),
root = document.documentElement;
return [
event.clientX - rect.left - root.scrollLeft,
event.clientY - rect.top - root.scrollTop
];
}
/**
* PRIVATE METHOD
*
* Function to execute when the mouse is moved
*
* fires the application event mouse-moved with the coordinates of
* the mouse
*/
function mouseMovedEvent (e) {
B.Events.fire('mouse-moved', _mouseCoordinates(this, e));
}
/**
* PRIVATE METHOD
*
* Function to execute when the mouse is clicked
*
* fires the application event mouse-clicked with the coordinates of
* the mouse
*/
function mouseClickedEvent (e) {
B.Events.fire('mouse-clicked', _mouseCoordinates(this, e));
}
/**
* Controls module to manage input events and transmit them in the
* application via Butterfly's events
*/
var controls = {
init: function (eventKey, eventMouseElement) {
if (eventKey) {
document.addEventListener('keydown', keyDownEvent);
document.addEventListener('keyup', keyUpEvent);
}
if (eventMouseElement) {
// @TODO add click and mouse down/up
document.addEventListener(
'mousemove',
mouseMovedEvent.bind(eventMouseElement)
);
document.addEventListener(
'mousedown',
mouseClickedEvent.bind(eventMouseElement)
);
}
},
KEY_LEFT_ARROW: 37,
KEY_UP_ARROW: 38,
KEY_RIGHT_ARROW: 39,
KEY_DOWN_ARROW: 40,
KEY_W: 87,
KEY_A: 65,
KEY_S: 83,
KEY_D: 68
};
return controls;
});
| 21.953846 | 86 | 0.673441 |
055fbed61b2b2701ef7c0d3469ba22c254ba35e0 | 401 | js | JavaScript | yqboots-web/yqboots-web-layout/src/main/resources/templates/fragments/datetime.js | zhanhongbo1112/yqboots-framework | d84ce992e0d3af1fcc1818c7c23d04ad3f116564 | [
"Apache-2.0"
] | null | null | null | yqboots-web/yqboots-web-layout/src/main/resources/templates/fragments/datetime.js | zhanhongbo1112/yqboots-framework | d84ce992e0d3af1fcc1818c7c23d04ad3f116564 | [
"Apache-2.0"
] | null | null | null | yqboots-web/yqboots-web-layout/src/main/resources/templates/fragments/datetime.js | zhanhongbo1112/yqboots-framework | d84ce992e0d3af1fcc1818c7c23d04ad3f116564 | [
"Apache-2.0"
] | null | null | null | define(['jquery/jquery-ui'], function () {
return {
startup: function () {
$('#datetime').datetimepicker({
controlType: 'select',
oneLine: true,
timeFormat: 'HH:mm:ss',
prevText: '<i class="fa fa-angle-left"></i>',
nextText: '<i class="fa fa-angle-right"></i>'
});
}
};
}); | 30.846154 | 61 | 0.428928 |
05601c12f113c5a37882951e1e6871d4ef3ff2ef | 2,713 | js | JavaScript | redbubble/node_modules/@redbubble/design-system/react/ProductNav/MobileProductNav/Header.js | vunamhung/codebases | f1d4beccca4e57c2684d281464b9ae462f76ee65 | [
"MIT"
] | null | null | null | redbubble/node_modules/@redbubble/design-system/react/ProductNav/MobileProductNav/Header.js | vunamhung/codebases | f1d4beccca4e57c2684d281464b9ae462f76ee65 | [
"MIT"
] | null | null | null | redbubble/node_modules/@redbubble/design-system/react/ProductNav/MobileProductNav/Header.js | vunamhung/codebases | f1d4beccca4e57c2684d281464b9ae462f76ee65 | [
"MIT"
] | null | null | null | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, FormattedMessage } from 'react-intl';
import Text from '../../Text';
import TextLink from '../../TextLink';
import Box from '../../Box';
import AuthenticatedHeader from './AuthenticatedHeader';
const messages = defineMessages({
loggedInMenuWelcomeMessage: 'Hi there!',
});
const Header = ({
intl,
userInfo,
baseUrl,
doLogin,
doSignup,
openUserAccountMenu,
}) => {
if (userInfo.isLoggedIn) {
return (
<AuthenticatedHeader
userInfo={userInfo}
intl={intl}
openUserAccountMenu={openUserAccountMenu}
/>
);
}
const logInLink = (
<FormattedMessage
defaultMessage="Log In"
id="logInOrSignUp.logIn"
description="The 'Log In' text within a link to the Log In page which forms part of the 'Log In or Sign Up' string"
>
{txt => (
<TextLink
href={`${baseUrl}/auth/login`}
onClick={typeof doLogin === 'function' ? doLogin : undefined}
data-testid="ds-header-login-action"
>
{ txt }
</TextLink>
)}
</FormattedMessage>
);
const signUpLink = (
<FormattedMessage
defaultMessage="Sign Up"
id="logInOrSignUp.signUp"
description="The 'Sign Up' text within a link to the Sign Up page which forms part of the 'Log In or Sign Up' string"
>
{txt => (
<TextLink
href={`${baseUrl}/signup`}
onClick={typeof doSignup === 'function' ? doSignup : undefined}
data-testid="ds-header-signup-action"
>
{ txt }
</TextLink>
)}
</FormattedMessage>
);
return (
<Box
padding="m"
style={{ backgroundColor: 'var(--ds-color-background-alt-100)' }}
>
<Text type="body" display="block">
{ intl.formatMessage(messages.loggedInMenuWelcomeMessage) }
</Text>
<Text type="body" display="block">
<FormattedMessage
defaultMessage={'{logIn} or {signUp}'}
values={{
logIn: logInLink,
signUp: signUpLink,
}}
/>
</Text>
</Box>
);
};
Header.propTypes = {
// eslint-disable-next-line react/no-typos
intl: PropTypes.shape({}).isRequired,
userInfo: PropTypes.shape({
avatar: PropTypes.string,
username: PropTypes.string,
locale: PropTypes.string,
country: PropTypes.string,
isLoggedIn: PropTypes.bool,
}),
baseUrl: PropTypes.string.isRequired,
doLogin: PropTypes.func,
doSignup: PropTypes.func,
};
Header.defaultProps = {
userInfo: {},
doLogin: null,
doSignup: null,
};
Header.displayName = 'Header';
export default Header;
| 24.223214 | 123 | 0.603391 |
05608b3ff26e4e9be72ae3b49481611de5869d24 | 157 | js | JavaScript | .eslintrc.js | QinChaoMo/ResourceManageWebApp | 758b6027a93c4c0603a64d692188a2c477580415 | [
"MIT"
] | null | null | null | .eslintrc.js | QinChaoMo/ResourceManageWebApp | 758b6027a93c4c0603a64d692188a2c477580415 | [
"MIT"
] | null | null | null | .eslintrc.js | QinChaoMo/ResourceManageWebApp | 758b6027a93c4c0603a64d692188a2c477580415 | [
"MIT"
] | null | null | null | 'use strict';
const OFF = 0;
const ERROR = 2;
module.exports = {
// Stop ESLint from looking for a configuration file in parent folders
root: true,
};
| 15.7 | 72 | 0.681529 |
05622493b7f2c8bd061e2b2f9d37b21b5b52e606 | 1,691 | js | JavaScript | serverless-microsling/lib/default-renderers.js | stbischof/sling-whiteboard | 738b68aa0a98feca3b9c48a29ba5777f125c236b | [
"Apache-2.0"
] | 38 | 2018-01-23T10:48:29.000Z | 2022-02-08T15:33:32.000Z | serverless-microsling/lib/default-renderers.js | stbischof/sling-whiteboard | 738b68aa0a98feca3b9c48a29ba5777f125c236b | [
"Apache-2.0"
] | 47 | 2018-02-16T07:20:30.000Z | 2021-06-15T17:24:14.000Z | serverless-microsling/lib/default-renderers.js | stbischof/sling-whiteboard | 738b68aa0a98feca3b9c48a29ba5777f125c236b | [
"Apache-2.0"
] | 35 | 2018-01-18T20:20:43.000Z | 2021-11-08T13:16:13.000Z | /*
* Copyright 2019 The Apache Software Foundation.
*
* 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.
*/
/* eslint-disable no-console */
'use strict';
module.exports.renderers = {
text: {
getRendererInfo : (resourceType, extension) => {
return extension == 'txt' ? { contentType : 'text/plain' } : null;
},
render : (resource) => {
return { output: `${resource.title}\n${resource.body}\n` };
},
},
json: {
getRendererInfo : (resourceType, extension) => {
return extension == 'json' ? { contentType : 'application/json' } : null;
},
render : (resource) => {
return { output: JSON.stringify(resource, 2, null) };
},
},
html: {
getRendererInfo : (resourceType, extension) => {
return extension == 'html' ? { contentType : 'text/html' } : null;
},
render : (resource) => {
return { output: `
<html>
<head>
<title>${resource.title}</title>
</head>
<body>
<h1>
${resource.title}
</h1>
<div>${resource.body}</div>
<div style="color:blue">This is the default HTML rendering</div>
</body>
</html>
`};
},
},
}; | 29.155172 | 79 | 0.605559 |
05629129e5b8e8b92551261a23a9651d6885a173 | 418 | js | JavaScript | lib/stepper/index.js | Mikeccx/vanke-vant | 66a302010649b9b1a2890029b026bd1c4ee83da1 | [
"MIT"
] | null | null | null | lib/stepper/index.js | Mikeccx/vanke-vant | 66a302010649b9b1a2890029b026bd1c4ee83da1 | [
"MIT"
] | null | null | null | lib/stepper/index.js | Mikeccx/vanke-vant | 66a302010649b9b1a2890029b026bd1c4ee83da1 | [
"MIT"
] | null | null | null | "use strict";
exports.__esModule = true;
exports.Stepper = exports.default = void 0;
var _utils = require("../utils");
var _Stepper2 = _interopRequireDefault(require("./Stepper"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Stepper = (0, _utils.withInstall)(_Stepper2.default);
exports.Stepper = Stepper;
var _default = Stepper;
exports.default = _default; | 27.866667 | 95 | 0.729665 |
0562c3eb6c98e33bcdefd8a0cb30706074bf4fdb | 355 | js | JavaScript | js-parts/part-read-xml.js | Fraaanz/Data-Driven-Generative-Design-Basics | c65690e275a6271f42a7c9c9e65fe40bb5c3a3a6 | [
"MIT"
] | 1 | 2020-11-04T18:51:25.000Z | 2020-11-04T18:51:25.000Z | js-parts/part-read-xml.js | Fraaanz/Data-Driven-Generative-Design-Basics | c65690e275a6271f42a7c9c9e65fe40bb5c3a3a6 | [
"MIT"
] | null | null | null | js-parts/part-read-xml.js | Fraaanz/Data-Driven-Generative-Design-Basics | c65690e275a6271f42a7c9c9e65fe40bb5c3a3a6 | [
"MIT"
] | null | null | null | // 📊 LOAD XML DATA ----------------------------------------
// Do not forget to load the D3 Framework in your HTML file!
d3.xml("../sources/demo-data/HealthData-StepCount-Demo.xml").then(function (data) {
var xml = data.documentElement.getElementsByTagName("Record");
console.log(xml);
console.log(xml.innerHTML = xml[1].getAttribute("value"));
}); | 44.375 | 83 | 0.633803 |
0562c4e5697bd60f594316c396f39e885c2a18d5 | 7,509 | js | JavaScript | src/models/Entities/LoadSpans/PurchaseLoadSpan.js | calebsandfort/isupportmobile | 1ddd111ca29e87541806ea000b59d69972f03f9e | [
"Apache-2.0"
] | null | null | null | src/models/Entities/LoadSpans/PurchaseLoadSpan.js | calebsandfort/isupportmobile | 1ddd111ca29e87541806ea000b59d69972f03f9e | [
"Apache-2.0"
] | null | null | null | src/models/Entities/LoadSpans/PurchaseLoadSpan.js | calebsandfort/isupportmobile | 1ddd111ca29e87541806ea000b59d69972f03f9e | [
"Apache-2.0"
] | null | null | null | //@flow
/******************************************************************************
* THIS FILE IS GENERATED ANY CHANGES WILL BE LOST NEXT TIME CODE IS GENERATED *
******************************************************************************/
import SupportRepresentativeLoadSpan from './SupportRepresentativeLoadSpan';
import PurchaseStatusLoadSpan from './PurchaseStatusLoadSpan';
import CustomerLoadSpan from './CustomerLoadSpan';
import CostCenterLoadSpan from './CostCenterLoadSpan';
import JobFunctionLoadSpan from './JobFunctionLoadSpan';
import IncidentLoadSpan from './IncidentLoadSpan';
import ProblemLoadSpan from './ProblemLoadSpan';
import ChangeLoadSpan from './ChangeLoadSpan';
import AssetLoadSpan from './AssetLoadSpan';
import PurchaseTemplateLoadSpan from './PurchaseTemplateLoadSpan';
import CompanyLoadSpan from './CompanyLoadSpan';
import EndUserDesktopDefinitionLoadSpan from './EndUserDesktopDefinitionLoadSpan';
import RuleGroupLoadSpan from './RuleGroupLoadSpan';
import LoadSpanBase from './LoadSpanBase';
export class PurchaseLoadSpan extends LoadSpanBase {
number: boolean;
createdDate: boolean;
modifiedDate: boolean;
closedDate: boolean;
shortDescription: boolean;
requestNumber: boolean;
comments: boolean;
customNumber: boolean;
fromServiceCatalog: boolean;
associatedCost: boolean;
userBrowser: boolean;
userDevice: boolean;
mySupportSubmissionIpAddress: boolean;
modifiedByCustomer: boolean;
modifiedByAssignedCustomer: boolean;
approvalState: boolean;
author: SupportRepresentativeLoadSpan;
modifiedBy: SupportRepresentativeLoadSpan;
status: PurchaseStatusLoadSpan;
customerRequestedBy: CustomerLoadSpan;
customerRecipient: CustomerLoadSpan;
customerBillTo: CustomerLoadSpan;
repRequestedBy: SupportRepresentativeLoadSpan;
repRecipient: SupportRepresentativeLoadSpan;
repBillTo: SupportRepresentativeLoadSpan;
costCenter: CostCenterLoadSpan;
jobFunction: JobFunctionLoadSpan;
sourceIncident: IncidentLoadSpan;
sourceProblem: ProblemLoadSpan;
sourceChange: ChangeLoadSpan;
sourceAsset: AssetLoadSpan;
template: PurchaseTemplateLoadSpan;
customerRequestedByCompany: CompanyLoadSpan;
customerRecipientCompany: CompanyLoadSpan;
customerBillToCompany: CompanyLoadSpan;
socialClient: EndUserDesktopDefinitionLoadSpan;
staticEffectiveRuleGroup: RuleGroupLoadSpan;
constructor(){
super();
this.number = false;
this.createdDate = false;
this.modifiedDate = false;
this.closedDate = false;
this.shortDescription = false;
this.requestNumber = false;
this.comments = false;
this.customNumber = false;
this.fromServiceCatalog = false;
this.associatedCost = false;
this.userBrowser = false;
this.userDevice = false;
this.mySupportSubmissionIpAddress = false;
this.modifiedByCustomer = false;
this.modifiedByAssignedCustomer = false;
this.approvalState = false;
}
get authorLoadSpan(): SupportRepresentativeLoadSpan {
if(!this.author){
this.author = new SupportRepresentativeLoadSpan();
}
return this.author;
}
get modifiedByLoadSpan(): SupportRepresentativeLoadSpan {
if(!this.modifiedBy){
this.modifiedBy = new SupportRepresentativeLoadSpan();
}
return this.modifiedBy;
}
get statusLoadSpan(): PurchaseStatusLoadSpan {
if(!this.status){
this.status = new PurchaseStatusLoadSpan();
}
return this.status;
}
get customerRequestedByLoadSpan(): CustomerLoadSpan {
if(!this.customerRequestedBy){
this.customerRequestedBy = new CustomerLoadSpan();
}
return this.customerRequestedBy;
}
get customerRecipientLoadSpan(): CustomerLoadSpan {
if(!this.customerRecipient){
this.customerRecipient = new CustomerLoadSpan();
}
return this.customerRecipient;
}
get customerBillToLoadSpan(): CustomerLoadSpan {
if(!this.customerBillTo){
this.customerBillTo = new CustomerLoadSpan();
}
return this.customerBillTo;
}
get repRequestedByLoadSpan(): SupportRepresentativeLoadSpan {
if(!this.repRequestedBy){
this.repRequestedBy = new SupportRepresentativeLoadSpan();
}
return this.repRequestedBy;
}
get repRecipientLoadSpan(): SupportRepresentativeLoadSpan {
if(!this.repRecipient){
this.repRecipient = new SupportRepresentativeLoadSpan();
}
return this.repRecipient;
}
get repBillToLoadSpan(): SupportRepresentativeLoadSpan {
if(!this.repBillTo){
this.repBillTo = new SupportRepresentativeLoadSpan();
}
return this.repBillTo;
}
get costCenterLoadSpan(): CostCenterLoadSpan {
if(!this.costCenter){
this.costCenter = new CostCenterLoadSpan();
}
return this.costCenter;
}
get jobFunctionLoadSpan(): JobFunctionLoadSpan {
if(!this.jobFunction){
this.jobFunction = new JobFunctionLoadSpan();
}
return this.jobFunction;
}
get sourceIncidentLoadSpan(): IncidentLoadSpan {
if(!this.sourceIncident){
this.sourceIncident = new IncidentLoadSpan();
}
return this.sourceIncident;
}
get sourceProblemLoadSpan(): ProblemLoadSpan {
if(!this.sourceProblem){
this.sourceProblem = new ProblemLoadSpan();
}
return this.sourceProblem;
}
get sourceChangeLoadSpan(): ChangeLoadSpan {
if(!this.sourceChange){
this.sourceChange = new ChangeLoadSpan();
}
return this.sourceChange;
}
get sourceAssetLoadSpan(): AssetLoadSpan {
if(!this.sourceAsset){
this.sourceAsset = new AssetLoadSpan();
}
return this.sourceAsset;
}
get templateLoadSpan(): PurchaseTemplateLoadSpan {
if(!this.template){
this.template = new PurchaseTemplateLoadSpan();
}
return this.template;
}
get customerRequestedByCompanyLoadSpan(): CompanyLoadSpan {
if(!this.customerRequestedByCompany){
this.customerRequestedByCompany = new CompanyLoadSpan();
}
return this.customerRequestedByCompany;
}
get customerRecipientCompanyLoadSpan(): CompanyLoadSpan {
if(!this.customerRecipientCompany){
this.customerRecipientCompany = new CompanyLoadSpan();
}
return this.customerRecipientCompany;
}
get customerBillToCompanyLoadSpan(): CompanyLoadSpan {
if(!this.customerBillToCompany){
this.customerBillToCompany = new CompanyLoadSpan();
}
return this.customerBillToCompany;
}
get socialClientLoadSpan(): EndUserDesktopDefinitionLoadSpan {
if(!this.socialClient){
this.socialClient = new EndUserDesktopDefinitionLoadSpan();
}
return this.socialClient;
}
get staticEffectiveRuleGroupLoadSpan(): RuleGroupLoadSpan {
if(!this.staticEffectiveRuleGroup){
this.staticEffectiveRuleGroup = new RuleGroupLoadSpan();
}
return this.staticEffectiveRuleGroup;
}
loadAllProperties() {
this.number = true;
this.createdDate = true;
this.modifiedDate = true;
this.closedDate = true;
this.shortDescription = true;
this.requestNumber = true;
this.comments = true;
this.customNumber = true;
this.fromServiceCatalog = true;
this.associatedCost = true;
this.userBrowser = true;
this.userDevice = true;
this.mySupportSubmissionIpAddress = true;
this.modifiedByCustomer = true;
this.modifiedByAssignedCustomer = true;
this.approvalState = true;
}
}
export default PurchaseLoadSpan;
/******************************************************************************
* THIS FILE IS GENERATED ANY CHANGES WILL BE LOST NEXT TIME CODE IS GENERATED *
******************************************************************************/
| 27.505495 | 82 | 0.722466 |
05636c48178ca54cb6be0b2d3a45e7699b3f74e1 | 63 | js | JavaScript | frontend/pages/api/match.js | dirk-rossbach/asskicker | ed6752790c48772a009e86f67ac046c59778fa57 | [
"Unlicense"
] | 2 | 2021-05-13T09:56:53.000Z | 2021-05-15T13:12:43.000Z | frontend/pages/api/match.js | dirk-rossbach/asskicker | ed6752790c48772a009e86f67ac046c59778fa57 | [
"Unlicense"
] | null | null | null | frontend/pages/api/match.js | dirk-rossbach/asskicker | ed6752790c48772a009e86f67ac046c59778fa57 | [
"Unlicense"
] | null | null | null | export default function handler(req, res) {
console.log();
}
| 15.75 | 43 | 0.698413 |
05639034898672f562f0a7491d9c97315b2a0755 | 562 | js | JavaScript | scripts/fix.env.js | scryptachain/scrypta-idanodejs | 2bbf2863873d8814ea1acb0799f8244f3efd3515 | [
"MIT"
] | 3 | 2020-06-05T20:39:58.000Z | 2021-09-19T01:19:46.000Z | scripts/fix.env.js | BdcashProtocol/bdcash-nodesh | 3714cf6c18244755a4a2dcb73625b55de0efa967 | [
"MIT"
] | 13 | 2019-07-15T21:42:48.000Z | 2022-02-15T00:48:07.000Z | scripts/fix.env.js | scryptachain/scrypta-idanodejs | 2bbf2863873d8814ea1acb0799f8244f3efd3515 | [
"MIT"
] | 5 | 2019-06-19T21:40:01.000Z | 2022-03-31T11:04:21.000Z | const fs = require('fs');
const process = require('process');
let key = process.argv.slice(2)
async function run() {
let update = ""
if (key[0] !== undefined && key[1] !== undefined) {
let dotenv = fs.readFileSync('.env').toString('utf8').split("\n")
for (let k in dotenv) {
if (dotenv[k].indexOf(key[0]) !== -1) {
update += key[0] + "=" + key[1]
} else {
update += dotenv[k]
}
update += "\n"
}
fs.writeFileSync('.env', update)
}
}
run() | 28.1 | 73 | 0.467972 |
0563c05bab5a77440c550dc306d5f3299c07eaac | 3,148 | js | JavaScript | src/components/charts/StockPriceMovementChart.js | dendriel/stock-view-front | ec4f97fdc68615865bb4ce168f044f6575f1addb | [
"0BSD"
] | null | null | null | src/components/charts/StockPriceMovementChart.js | dendriel/stock-view-front | ec4f97fdc68615865bb4ce168f044f6575f1addb | [
"0BSD"
] | null | null | null | src/components/charts/StockPriceMovementChart.js | dendriel/stock-view-front | ec4f97fdc68615865bb4ce168f044f6575f1addb | [
"0BSD"
] | null | null | null | import ReactApexChart from 'react-apexcharts'
import stockService from "../../services/stock.service";
import {useEffect, useState} from "react";
import moment from "moment";
export default function StockPriceMovementChart(props) {
const [series, setSeries] = useState([])
useEffect(() => {
const ticker = props.ticker
if (!ticker) {
console.log("Could not load stock price movement chart. Not ticker specified.")
return
}
stockService.getPrices(ticker)
.then(response => {
if (response && response.data) {
loadSeries(ticker, response.data)
// TODO: if data.prices are empty, load NOT FOUND (/prices)
}
})
.catch(error => {
console.log(`Failed to retrieve prices for ticker ${ticker}. Error: ${error}`)
})
}, [props.ticker])
const loadSeries = (ticker, data) => {
console.log(data)
if (data.length === 0) {
console.log("Invalid series data!")
return;
}
data = data[0]
let seriesData = data.prices.map(entry =>
[
moment.utc(entry.date, 'DD/MM/YY HH:mm'),
entry.price
]
)
setSeries([{
name: ticker,
data: seriesData
}])
}
const state = {
options: {
chart: {
type: 'area',
stacked: false,
height: 350,
zoom: {
type: 'x',
enabled: true,
autoScaleYaxis: true
},
toolbar: {
autoSelected: 'zoom'
}
},
dataLabels: {
enabled: false
},
markers: {
size: 0,
},
title: {
text: 'Stock Price Movement',
align: 'left'
},
fill: {
type: 'gradient',
gradient: {
shadeIntensity: 1,
inverseColors: false,
opacityFrom: 0.5,
opacityTo: 0,
stops: [0, 90, 100]
},
},
yaxis: {
labels: {
formatter: function (val) {
return val.toFixed(2)
},
},
title: {
text: 'Price'
},
},
xaxis: {
type: 'datetime'
},
tooltip: {
shared: false,
x: {
format: 'dd/MM/yyyy HH:mm'
}
}
},
};
return(
<div>
<ReactApexChart options={state.options} series={series} type="area" height={350} />
</div>
)
}
| 27.137931 | 96 | 0.377382 |
0564294e0c204ede55dd6ed62c2b6776141b8c4a | 436 | js | JavaScript | public/assets/js/diseaselist.js | ManNeu/Vaccination-Tracker | 0063755cb0fa245e164129ae1f79f93dc6c3d83a | [
"MIT"
] | null | null | null | public/assets/js/diseaselist.js | ManNeu/Vaccination-Tracker | 0063755cb0fa245e164129ae1f79f93dc6c3d83a | [
"MIT"
] | 1 | 2020-11-22T07:20:05.000Z | 2020-11-22T07:20:05.000Z | public/assets/js/diseaselist.js | ManNeu/Project02-03 | 0063755cb0fa245e164129ae1f79f93dc6c3d83a | [
"MIT"
] | null | null | null | var diseases = [
["Cholera"],
["Hepatitis A"],
["Hepatitis B"],
["Malaria"],
["Measels"],
["Meningitis"],
["Polio"],
["Rabies"],
["Typhoid"],
["Yellow Fever"],
["Japanese Encephalitis"],
["Pneumonia"],
["Mumps"],
["Rubella"],
["Tetinus"],
["Diphtheria"],
["Pertussis"],
["Chickenpox (Varicella)"],
["Influenza"],
["HPV (Human Papillomavirus)"],
["Shingles (Herpes Zoster)"],
["Covid-19"],
];
| 17.44 | 33 | 0.538991 |
0565278692d8ffc5f71ab060fe47925b5866f357 | 178 | js | JavaScript | htdocs_symfony/assets/backend/backend.js | bekuno/oc-server3 | 95da5f4e211e118f6b46da94306f6f00ab0e7fa0 | [
"RSA-MD"
] | 34 | 2015-03-17T08:05:21.000Z | 2021-09-14T14:44:49.000Z | htdocs_symfony/assets/backend/backend.js | fraggle-DE/oc-server3 | 0d6a9d570c5faef6c66ef6fbe8a7d973389c6517 | [
"RSA-MD"
] | 278 | 2015-05-21T10:34:15.000Z | 2022-03-30T17:55:05.000Z | htdocs_symfony/assets/backend/backend.js | fraggle-DE/oc-server3 | 0d6a9d570c5faef6c66ef6fbe8a7d973389c6517 | [
"RSA-MD"
] | 47 | 2015-01-17T22:00:04.000Z | 2022-03-02T21:06:40.000Z | // Starting with our APP Code
import './styles/app.scss';
// Import thrid pary packagist
import $ from 'jquery';
import 'bootstrap';
console.log('Loaded BACKEND entrypoint');
| 17.8 | 41 | 0.724719 |
05659c9205f58ff2ac4ad3eed6bc776b0ad96568 | 355 | js | JavaScript | fundamentos/4_bloco.js | rod33oliver/curso-javascript | b194cee06ece84e1074efaac0ae8bf4704b8c5da | [
"MIT"
] | 1 | 2021-11-17T02:40:28.000Z | 2021-11-17T02:40:28.000Z | fundamentos/4_bloco.js | rod33oliver/curso-javascript | b194cee06ece84e1074efaac0ae8bf4704b8c5da | [
"MIT"
] | null | null | null | fundamentos/4_bloco.js | rod33oliver/curso-javascript | b194cee06ece84e1074efaac0ae8bf4704b8c5da | [
"MIT"
] | null | null | null | // conceitos de bloco de código. este está em { }
{
console.log('Passo #03');
console.log('Passo #01');
console.log('Passo #02');
}
{
console.log('Passo #04');
console.log('Passo #05');
console.log('Passo #06');
}
{
{
{
{
{
{}
}
}
}
}
} | 12.678571 | 50 | 0.383099 |
0565d500105ed28bf2787fe717f659e23decc808 | 55 | js | JavaScript | src/viz/HistogramBarLabel.js | adamosimpson21/magicstats | b7215840a3c7724d05513a7b9aa5df7d42ff5615 | [
"MIT"
] | null | null | null | src/viz/HistogramBarLabel.js | adamosimpson21/magicstats | b7215840a3c7724d05513a7b9aa5df7d42ff5615 | [
"MIT"
] | null | null | null | src/viz/HistogramBarLabel.js | adamosimpson21/magicstats | b7215840a3c7724d05513a7b9aa5df7d42ff5615 | [
"MIT"
] | null | null | null | //TODO: break out component for The letters on the bars | 55 | 55 | 0.781818 |
056661684a52547e8af46ec7bfba19ce24225c26 | 3,426 | js | JavaScript | lib/cluster/index.js | solzimer/nsyslog | ea0a397cc4e961e078faba0518b46416d24ff482 | [
"MIT"
] | 8 | 2017-05-18T07:59:06.000Z | 2021-12-07T15:18:17.000Z | lib/cluster/index.js | solzimer/nsyslog | ea0a397cc4e961e078faba0518b46416d24ff482 | [
"MIT"
] | 7 | 2021-04-16T12:41:19.000Z | 2022-03-24T03:51:40.000Z | lib/cluster/index.js | solzimer/nsyslog | ea0a397cc4e961e078faba0518b46416d24ff482 | [
"MIT"
] | 3 | 2019-12-02T18:19:07.000Z | 2020-06-08T00:04:06.000Z | const
NODE_FORKED = 'NODE_FORKED',
nativefork = require('child_process').fork,
extend = require('extend'),
logger = require('../logger'),
isMaster = process.env[NODE_FORKED]!="true";
const handlers = {};
const children = {};
/**
* Base cluster message
* @memberof cluster
* @class
*/
class Message {
/**
* Creates a new cluster message
* @param {Object} props Message properties. Must include at least:
* @param {string} props.module Target module name
*/
constructor(props) {
props = Object.assign({module:'module'},props);
/**
* Target module name
* @type {String}
*/
this.module = props.module;
for(let k in props) {
this[k] = props[k];
}
}
};
/**
* Message listener template
* @memberof cluster
* @param {ChildProcess} child Child process
* @param {string} module Module identifier
* @param {cluster.Message} msg Message
*/
function fhandler(child, module, msg) {}
if(!isMaster) {
process.on('message',msg=>msgHandler(process,msg));
}
/**
* Forks a new process with the specified script
* @memberof cluster
* @param {string} module Script path
* @param {Array<string>} args Script arguments
* @param {object} opts fork options
*/
function fork(module,args,opts) {
let child = nativefork(
module || "./",args||[],
extend(true,{},opts||{},{env : {NODE_FORKED:"true"}})
);
children[child.pid] = child;
child.on('message',msg=>msgHandler(child,msg));
child.on('close',()=>delete children[child.pid]);
return child;
}
/**
* Subscribe to child messages
* @memberof cluster
* @param {string} module Module identifier
* @param {ChildProcess} [child] Child process to subscribe
* @param {cluster.fhandler} handler Listener handler
*/
function on(module, child, handler) {
if(!handler) {
handler = child || fhandler;
child = null;
}
handlers[module] = handlers[module] || [];
handlers[module].push({child,handler});
}
/**
* Removes a subscription to child messages
* @memberof cluster
* @param {string} module Module identifier
* @param {ChildProcess} [child] Child process to subscribe
* @param {cluster.fhandler} handler Listener handler
*/
function off(module, child, handler) {
if(!handler) {
handler = child || fhandler;
child = null;
}
let hdls = handlers[module] || [];
let idx = hdls.findIndex(hdl=>hdl.handler==handler && hdl.child==child);
if(idx>=0) hdls.splice(idx,1);
}
/**
* Removes all subscriptions to messages from a module
* @memberof cluster
* @param {string} module Module identifier
*/
function removeAllListeners(module) {
if(module) handlers[module] = [];
else Object.keys(handlers).forEach(h=>delete handlers[h]);
}
/**
* Broadcast a message to all children
* @memberof cluster
* @param {string} module Module identifier
* @param {cluster.Message} msg Message
*/
function broadcast(module,msg) {
Object.keys(children).forEach(pid=>{
children[pid].send(extend(msg,{module}));
});
}
function msgHandler(child,msg) {
let module = msg.module;
let hdls = handlers[module] || [];
if(module) {
let len = hdls.length;
for(let i=0;i<len;i++) {
let hdl = hdls[i];
try {
if(hdl && (!hdl.child || hdl.child==child))
hdl.handler(child,module,msg);
}catch(err) {
console.error(err);
logger.error(err);
}
}
}
}
/**
* NSyslog Cluster module
* @namespace cluster
*/
module.exports = {
Message,
isMaster,
fork,
on,
off,
removeAllListeners,
broadcast
};
| 21.961538 | 73 | 0.666375 |
0566eabc5d094864c71bc2f6d0548c41c962b083 | 282 | js | JavaScript | js/filters/timefilter.js | avinashbnaik/oflline-to-do-list | d94bd4e03e1291ed3dbfb211eb706e53d41e8328 | [
"Apache-2.0"
] | null | null | null | js/filters/timefilter.js | avinashbnaik/oflline-to-do-list | d94bd4e03e1291ed3dbfb211eb706e53d41e8328 | [
"Apache-2.0"
] | null | null | null | js/filters/timefilter.js | avinashbnaik/oflline-to-do-list | d94bd4e03e1291ed3dbfb211eb706e53d41e8328 | [
"Apache-2.0"
] | null | null | null | app.filter('timeFilter', function() {
return function(seconds) {
var mins, secs, time = "";
mins = parseInt(seconds / 60);
secs = seconds % 60;
if (secs < 10) {
secs = "0" + secs;
}
return mins + ":" + secs;
}
});
| 23.5 | 38 | 0.453901 |
0566ed421fd7cdf6b63006bf577547a4cfaf7aa6 | 758 | js | JavaScript | test/mocks/productDecoratorsMock.js | cloudinary/cloudinary_sfcc_site_cartridge | d1d2989f9034732efdd447756e6fa64e5eac2124 | [
"MIT"
] | null | null | null | test/mocks/productDecoratorsMock.js | cloudinary/cloudinary_sfcc_site_cartridge | d1d2989f9034732efdd447756e6fa64e5eac2124 | [
"MIT"
] | null | null | null | test/mocks/productDecoratorsMock.js | cloudinary/cloudinary_sfcc_site_cartridge | d1d2989f9034732efdd447756e6fa64e5eac2124 | [
"MIT"
] | null | null | null | 'use strict';
var proxyquire = require('proxyquire').noCallThru().noPreserveCache();
var sinon = require('sinon');
var stubCloudinary = sinon.stub();
var stubRaw = sinon.stub();
function MockProductDecorator() {
return this;
}
function proxyModel() {
module.__proto__.superModule = MockProductDecorator; // eslint-disable-line no-proto
var stubs = {
stubCloudinary: stubCloudinary,
stubRaw: stubRaw
};
var mocks = proxyquire('../../cartridges/int_cloudinary_sfra/cartridge/models/product/decorators/index', {
'*/cartridge/models/product/decorators/cloudinary': stubCloudinary
});
mocks.raw = stubRaw;
return {
mocks: mocks,
stubs: stubs
};
}
module.exports = proxyModel();
| 22.294118 | 110 | 0.671504 |
05670e84d535fd2c342c432e7aa63ee303ec8597 | 4,205 | js | JavaScript | prototypes/text_channel/alert.js | Garma1337/CompHubBot | 7f7ba739d8edf300079f5916b04a7334af93e8de | [
"MIT"
] | null | null | null | prototypes/text_channel/alert.js | Garma1337/CompHubBot | 7f7ba739d8edf300079f5916b04a7334af93e8de | [
"MIT"
] | null | null | null | prototypes/text_channel/alert.js | Garma1337/CompHubBot | 7f7ba739d8edf300079f5916b04a7334af93e8de | [
"MIT"
] | null | null | null | const { MessageActionRow } = require('discord-buttons');
const { TextChannel } = require('discord.js');
const config = require('../../config');
const TYPE_PLAIN = 'plain';
const TYPE_PRIMARY = 'primary';
const TYPE_INFO = 'info';
const TYPE_SUCCESS = 'success';
const TYPE_WARNING = 'warning';
const TYPE_ERROR = 'error';
/**
* Sends an alert message to a channel
* @param content
* @param type
* @param mentions
* @param buttons
* @param menus
* @returns null
*/
// eslint-disable-next-line func-names
TextChannel.prototype.alert = function (content, type, mentions, buttons, menus) {
let messageOptions = {};
let pings = [];
const buttonRow = new MessageActionRow();
if (typeof mentions !== 'undefined' && mentions.length > 0) {
pings = mentions.map((m) => `<@!${m}>`);
}
if (typeof buttons !== 'undefined' && buttons.length > 0) {
buttons.forEach((b) => {
buttonRow.addComponent(b);
});
}
if (typeof menus !== 'undefined' && menus.length >= 5) {
menus = [];
}
const types = [
TYPE_PLAIN,
TYPE_PRIMARY,
TYPE_INFO,
TYPE_SUCCESS,
TYPE_WARNING,
TYPE_ERROR,
];
if (!types.includes(type)) {
return this.send('Invalid alert type.');
}
const colors = {
[TYPE_PLAIN]: 0,
[TYPE_PRIMARY]: config.default_embed_color,
[TYPE_INFO]: 3901635,
[TYPE_SUCCESS]: 7844437,
[TYPE_WARNING]: 16763981,
[TYPE_ERROR]: 12458289,
};
const emotes = {
[TYPE_PLAIN]: ':grey_exclamation:',
[TYPE_PRIMARY]: ':bookmark_tabs:',
[TYPE_INFO]: ':information_source:',
[TYPE_SUCCESS]: ':white_check_mark:',
[TYPE_WARNING]: ':warning:',
[TYPE_ERROR]: ':no_entry:',
};
const headings = {
[TYPE_PLAIN]: 'Text',
[TYPE_PRIMARY]: 'Alert',
[TYPE_INFO]: 'Info',
[TYPE_SUCCESS]: 'Success!',
[TYPE_WARNING]: 'Warning!',
[TYPE_ERROR]: 'Error!',
};
const color = colors[type];
const emote = emotes[type];
const heading = headings[type];
if (type !== TYPE_PLAIN) {
content = `\u200B\n${content}`;
}
const embed = {
color,
fields: [
{
name: `${emote} ${heading}`,
value: content,
},
],
};
// Embed Field Values can only be up to 1024 characters
if (content.length > 1024) {
messageOptions = {
content: pings.join(', '),
files: [{
attachment: Buffer.from(content, 'utf-8'),
name: 'message.txt',
}],
};
return this.send(messageOptions).then(() => {
this.send('The output was too big, therefore the message is attached as a text file.');
});
}
if (type === TYPE_PLAIN) {
if (pings.length > 0) {
messageOptions.content = `${pings.join(', ')}\n${content}`;
} else {
messageOptions.content = content;
}
} else {
messageOptions.content = pings.join(', ');
messageOptions.embed = embed;
}
if (buttonRow.components.length > 0) {
messageOptions.components = [buttonRow];
}
if (typeof menus !== 'undefined' && menus.length > 0) {
messageOptions.menus = menus;
}
return this.send(messageOptions);
};
// eslint-disable-next-line func-names
TextChannel.prototype.primary = function (content, mentions, buttons, menus) {
return this.alert(content, TYPE_PRIMARY, mentions, buttons, menus);
};
// eslint-disable-next-line func-names
TextChannel.prototype.info = function (content, mentions, buttons, menus) {
return this.alert(content, TYPE_INFO, mentions, buttons, menus);
};
// eslint-disable-next-line func-names
TextChannel.prototype.success = function (content, mentions, buttons, menus) {
// eslint-disable-next-line max-len
return this.alert(content, TYPE_SUCCESS, mentions, buttons, menus);
};
// eslint-disable-next-line func-names
TextChannel.prototype.warn = function (content, mentions, buttons, menus) {
// eslint-disable-next-line max-len
return this.alert(content, TYPE_WARNING, mentions, buttons, menus);
};
// eslint-disable-next-line func-names
TextChannel.prototype.error = function (content, mentions, buttons, menus) {
// eslint-disable-next-line max-len
return this.alert(content, TYPE_ERROR, mentions, buttons, menus).then((m) => m.delete({ timeout: 30000 }));
};
| 25.797546 | 109 | 0.638288 |
05671018c27b963112657edf9a976d88dd25db46 | 866 | js | JavaScript | src/services/collectionImage.js | 3rendan/ATHtest | a794f23b73760bebaf074ba43c9cee60225cafbc | [
"MIT"
] | null | null | null | src/services/collectionImage.js | 3rendan/ATHtest | a794f23b73760bebaf074ba43c9cee60225cafbc | [
"MIT"
] | null | null | null | src/services/collectionImage.js | 3rendan/ATHtest | a794f23b73760bebaf074ba43c9cee60225cafbc | [
"MIT"
] | null | null | null | export default function collectionImage(id) {
switch(id){
case 1:
return 'https://providenceathenaeum.org/wp-content/uploads/2020/09/ProvAth_Alcoves-with-busts.jpg';
case 2:
return 'https://images.antiquesatlas.com/dealer-stock-images/studiort/JA_McColvin_18641920_Oil_Lands_as237a752z-1.jpg';
case 3:
return 'https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftse3.mm.bing.net%2Fth%3Fid%3DOIP.6TdtK2ECfk2Z1zJQwXNUEAHaFO%26pid%3DApi&f=1';
case 4:
return 'https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftse1.mm.bing.net%2Fth%3Fid%3DOIP.1qlHSIOI2UoMyLUTjMeaygHaHa%26pid%3DApi&f=1';
case 5:
return 'https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftse2.mm.bing.net%2Fth%3Fid%3DOIP.WVRVpP_ABrO-TAloaDmMsgHaFj%26pid%3DApi&f=1';
// no default
}
}
| 48.111111 | 153 | 0.710162 |
056b0a48cefaf725a46e759887c713399099b7ad | 14,624 | js | JavaScript | public/js/dojo-1.6.1/dojo/_base/query.js | younginnovations/aidstream-old | f5620435a9eed9766b2df5cf7148f94450f9be0e | [
"MIT"
] | 5 | 2015-02-20T16:11:30.000Z | 2017-05-15T11:50:44.000Z | web-app/public/js/dojo/_base/query.js | skobbler/AddressHunter | 092bbb612df05377099ea07f7f9263f6adb878ae | [
"BSD-3-Clause"
] | 29 | 2021-03-13T06:58:13.000Z | 2021-03-13T06:58:29.000Z | web-app/public/js/dojo/_base/query.js | skobbler/AddressHunter | 092bbb612df05377099ea07f7f9263f6adb878ae | [
"BSD-3-Clause"
] | 4 | 2015-07-14T16:16:05.000Z | 2021-03-10T08:15:54.000Z | /*
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojo._base.query"]){
dojo._hasResource["dojo._base.query"]=true;
(function(){
var _1=function(d){
var _2=d.trim;
var _3=d.forEach;
var _4=(d._NodeListCtor=d.NodeList);
var _5=function(){
return d.doc;
};
var _6=((d.isWebKit||d.isMozilla)&&((_5().compatMode)=="BackCompat"));
var _7=!!_5().firstChild["children"]?"children":"childNodes";
var _8=">~+";
var _9=false;
var _a=function(){
return true;
};
var _b=function(_c){
if(_8.indexOf(_c.slice(-1))>=0){
_c+=" * ";
}else{
_c+=" ";
}
var ts=function(s,e){
return _2(_c.slice(s,e));
};
var _d=[];
var _e=-1,_f=-1,_10=-1,_11=-1,_12=-1,_13=-1,_14=-1,lc="",cc="",_15;
var x=0,ql=_c.length,_16=null,_17=null;
var _18=function(){
if(_14>=0){
var tv=(_14==x)?null:ts(_14,x);
_16[(_8.indexOf(tv)<0)?"tag":"oper"]=tv;
_14=-1;
}
};
var _19=function(){
if(_13>=0){
_16.id=ts(_13,x).replace(/\\/g,"");
_13=-1;
}
};
var _1a=function(){
if(_12>=0){
_16.classes.push(ts(_12+1,x).replace(/\\/g,""));
_12=-1;
}
};
var _1b=function(){
_19();
_18();
_1a();
};
var _1c=function(){
_1b();
if(_11>=0){
_16.pseudos.push({name:ts(_11+1,x)});
}
_16.loops=(_16.pseudos.length||_16.attrs.length||_16.classes.length);
_16.oquery=_16.query=ts(_15,x);
_16.otag=_16.tag=(_16["oper"])?null:(_16.tag||"*");
if(_16.tag){
_16.tag=_16.tag.toUpperCase();
}
if(_d.length&&(_d[_d.length-1].oper)){
_16.infixOper=_d.pop();
_16.query=_16.infixOper.query+" "+_16.query;
}
_d.push(_16);
_16=null;
};
for(;lc=cc,cc=_c.charAt(x),x<ql;x++){
if(lc=="\\"){
continue;
}
if(!_16){
_15=x;
_16={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){
return (_9)?this.otag:this.tag;
}};
_14=x;
}
if(_e>=0){
if(cc=="]"){
if(!_17.attr){
_17.attr=ts(_e+1,x);
}else{
_17.matchFor=ts((_10||_e+1),x);
}
var cmf=_17.matchFor;
if(cmf){
if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){
_17.matchFor=cmf.slice(1,-1);
}
}
_16.attrs.push(_17);
_17=null;
_e=_10=-1;
}else{
if(cc=="="){
var _1d=("|~^$*".indexOf(lc)>=0)?lc:"";
_17.type=_1d+cc;
_17.attr=ts(_e+1,x-_1d.length);
_10=x+1;
}
}
}else{
if(_f>=0){
if(cc==")"){
if(_11>=0){
_17.value=ts(_f+1,x);
}
_11=_f=-1;
}
}else{
if(cc=="#"){
_1b();
_13=x+1;
}else{
if(cc=="."){
_1b();
_12=x;
}else{
if(cc==":"){
_1b();
_11=x;
}else{
if(cc=="["){
_1b();
_e=x;
_17={};
}else{
if(cc=="("){
if(_11>=0){
_17={name:ts(_11+1,x),value:null};
_16.pseudos.push(_17);
}
_f=x;
}else{
if((cc==" ")&&(lc!=cc)){
_1c();
}
}
}
}
}
}
}
}
}
return _d;
};
var _1e=function(_1f,_20){
if(!_1f){
return _20;
}
if(!_20){
return _1f;
}
return function(){
return _1f.apply(window,arguments)&&_20.apply(window,arguments);
};
};
var _21=function(i,arr){
var r=arr||[];
if(i){
r.push(i);
}
return r;
};
var _22=function(n){
return (1==n.nodeType);
};
var _23="";
var _24=function(_25,_26){
if(!_25){
return _23;
}
if(_26=="class"){
return _25.className||_23;
}
if(_26=="for"){
return _25.htmlFor||_23;
}
if(_26=="style"){
return _25.style.cssText||_23;
}
return (_9?_25.getAttribute(_26):_25.getAttribute(_26,2))||_23;
};
var _27={"*=":function(_28,_29){
return function(_2a){
return (_24(_2a,_28).indexOf(_29)>=0);
};
},"^=":function(_2b,_2c){
return function(_2d){
return (_24(_2d,_2b).indexOf(_2c)==0);
};
},"$=":function(_2e,_2f){
var _30=" "+_2f;
return function(_31){
var ea=" "+_24(_31,_2e);
return (ea.lastIndexOf(_2f)==(ea.length-_2f.length));
};
},"~=":function(_32,_33){
var _34=" "+_33+" ";
return function(_35){
var ea=" "+_24(_35,_32)+" ";
return (ea.indexOf(_34)>=0);
};
},"|=":function(_36,_37){
var _38=" "+_37+"-";
return function(_39){
var ea=" "+_24(_39,_36);
return ((ea==_37)||(ea.indexOf(_38)==0));
};
},"=":function(_3a,_3b){
return function(_3c){
return (_24(_3c,_3a)==_3b);
};
}};
var _3d=(typeof _5().firstChild.nextElementSibling=="undefined");
var _3e=!_3d?"nextElementSibling":"nextSibling";
var _3f=!_3d?"previousElementSibling":"previousSibling";
var _40=(_3d?_22:_a);
var _41=function(_42){
while(_42=_42[_3f]){
if(_40(_42)){
return false;
}
}
return true;
};
var _43=function(_44){
while(_44=_44[_3e]){
if(_40(_44)){
return false;
}
}
return true;
};
var _45=function(_46){
var _47=_46.parentNode;
var i=0,_48=_47[_7],ci=(_46["_i"]||-1),cl=(_47["_l"]||-1);
if(!_48){
return -1;
}
var l=_48.length;
if(cl==l&&ci>=0&&cl>=0){
return ci;
}
_47["_l"]=l;
ci=-1;
for(var te=_47["firstElementChild"]||_47["firstChild"];te;te=te[_3e]){
if(_40(te)){
te["_i"]=++i;
if(_46===te){
ci=i;
}
}
}
return ci;
};
var _49=function(_4a){
return !((_45(_4a))%2);
};
var _4b=function(_4c){
return ((_45(_4c))%2);
};
var _4d={"checked":function(_4e,_4f){
return function(_50){
return !!("checked" in _50?_50.checked:_50.selected);
};
},"first-child":function(){
return _41;
},"last-child":function(){
return _43;
},"only-child":function(_51,_52){
return function(_53){
if(!_41(_53)){
return false;
}
if(!_43(_53)){
return false;
}
return true;
};
},"empty":function(_54,_55){
return function(_56){
var cn=_56.childNodes;
var cnl=_56.childNodes.length;
for(var x=cnl-1;x>=0;x--){
var nt=cn[x].nodeType;
if((nt===1)||(nt==3)){
return false;
}
}
return true;
};
},"contains":function(_57,_58){
var cz=_58.charAt(0);
if(cz=="\""||cz=="'"){
_58=_58.slice(1,-1);
}
return function(_59){
return (_59.innerHTML.indexOf(_58)>=0);
};
},"not":function(_5a,_5b){
var p=_b(_5b)[0];
var _5c={el:1};
if(p.tag!="*"){
_5c.tag=1;
}
if(!p.classes.length){
_5c.classes=1;
}
var ntf=_5d(p,_5c);
return function(_5e){
return (!ntf(_5e));
};
},"nth-child":function(_5f,_60){
var pi=parseInt;
if(_60=="odd"){
return _4b;
}else{
if(_60=="even"){
return _49;
}
}
if(_60.indexOf("n")!=-1){
var _61=_60.split("n",2);
var _62=_61[0]?((_61[0]=="-")?-1:pi(_61[0])):1;
var idx=_61[1]?pi(_61[1]):0;
var lb=0,ub=-1;
if(_62>0){
if(idx<0){
idx=(idx%_62)&&(_62+(idx%_62));
}else{
if(idx>0){
if(idx>=_62){
lb=idx-idx%_62;
}
idx=idx%_62;
}
}
}else{
if(_62<0){
_62*=-1;
if(idx>0){
ub=idx;
idx=idx%_62;
}
}
}
if(_62>0){
return function(_63){
var i=_45(_63);
return (i>=lb)&&(ub<0||i<=ub)&&((i%_62)==idx);
};
}else{
_60=idx;
}
}
var _64=pi(_60);
return function(_65){
return (_45(_65)==_64);
};
}};
var _66=(d.isIE<9||(dojo.isIE&&dojo.isQuirks))?function(_67){
var clc=_67.toLowerCase();
if(clc=="class"){
_67="className";
}
return function(_68){
return (_9?_68.getAttribute(_67):_68[_67]||_68[clc]);
};
}:function(_69){
return function(_6a){
return (_6a&&_6a.getAttribute&&_6a.hasAttribute(_69));
};
};
var _5d=function(_6b,_6c){
if(!_6b){
return _a;
}
_6c=_6c||{};
var ff=null;
if(!("el" in _6c)){
ff=_1e(ff,_22);
}
if(!("tag" in _6c)){
if(_6b.tag!="*"){
ff=_1e(ff,function(_6d){
return (_6d&&(_6d.tagName==_6b.getTag()));
});
}
}
if(!("classes" in _6c)){
_3(_6b.classes,function(_6e,idx,arr){
var re=new RegExp("(?:^|\\s)"+_6e+"(?:\\s|$)");
ff=_1e(ff,function(_6f){
return re.test(_6f.className);
});
ff.count=idx;
});
}
if(!("pseudos" in _6c)){
_3(_6b.pseudos,function(_70){
var pn=_70.name;
if(_4d[pn]){
ff=_1e(ff,_4d[pn](pn,_70.value));
}
});
}
if(!("attrs" in _6c)){
_3(_6b.attrs,function(_71){
var _72;
var a=_71.attr;
if(_71.type&&_27[_71.type]){
_72=_27[_71.type](a,_71.matchFor);
}else{
if(a.length){
_72=_66(a);
}
}
if(_72){
ff=_1e(ff,_72);
}
});
}
if(!("id" in _6c)){
if(_6b.id){
ff=_1e(ff,function(_73){
return (!!_73&&(_73.id==_6b.id));
});
}
}
if(!ff){
if(!("default" in _6c)){
ff=_a;
}
}
return ff;
};
var _74=function(_75){
return function(_76,ret,bag){
while(_76=_76[_3e]){
if(_3d&&(!_22(_76))){
continue;
}
if((!bag||_77(_76,bag))&&_75(_76)){
ret.push(_76);
}
break;
}
return ret;
};
};
var _78=function(_79){
return function(_7a,ret,bag){
var te=_7a[_3e];
while(te){
if(_40(te)){
if(bag&&!_77(te,bag)){
break;
}
if(_79(te)){
ret.push(te);
}
}
te=te[_3e];
}
return ret;
};
};
var _7b=function(_7c){
_7c=_7c||_a;
return function(_7d,ret,bag){
var te,x=0,_7e=_7d[_7];
while(te=_7e[x++]){
if(_40(te)&&(!bag||_77(te,bag))&&(_7c(te,x))){
ret.push(te);
}
}
return ret;
};
};
var _7f=function(_80,_81){
var pn=_80.parentNode;
while(pn){
if(pn==_81){
break;
}
pn=pn.parentNode;
}
return !!pn;
};
var _82={};
var _83=function(_84){
var _85=_82[_84.query];
if(_85){
return _85;
}
var io=_84.infixOper;
var _86=(io?io.oper:"");
var _87=_5d(_84,{el:1});
var qt=_84.tag;
var _88=("*"==qt);
var ecs=_5()["getElementsByClassName"];
if(!_86){
if(_84.id){
_87=(!_84.loops&&_88)?_a:_5d(_84,{el:1,id:1});
_85=function(_89,arr){
var te=d.byId(_84.id,(_89.ownerDocument||_89));
if(!te||!_87(te)){
return;
}
if(9==_89.nodeType){
return _21(te,arr);
}else{
if(_7f(te,_89)){
return _21(te,arr);
}
}
};
}else{
if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_84.classes.length&&!_6){
_87=_5d(_84,{el:1,classes:1,id:1});
var _8a=_84.classes.join(" ");
_85=function(_8b,arr,bag){
var ret=_21(0,arr),te,x=0;
var _8c=_8b.getElementsByClassName(_8a);
while((te=_8c[x++])){
if(_87(te,_8b)&&_77(te,bag)){
ret.push(te);
}
}
return ret;
};
}else{
if(!_88&&!_84.loops){
_85=function(_8d,arr,bag){
var ret=_21(0,arr),te,x=0;
var _8e=_8d.getElementsByTagName(_84.getTag());
while((te=_8e[x++])){
if(_77(te,bag)){
ret.push(te);
}
}
return ret;
};
}else{
_87=_5d(_84,{el:1,tag:1,id:1});
_85=function(_8f,arr,bag){
var ret=_21(0,arr),te,x=0;
var _90=_8f.getElementsByTagName(_84.getTag());
while((te=_90[x++])){
if(_87(te,_8f)&&_77(te,bag)){
ret.push(te);
}
}
return ret;
};
}
}
}
}else{
var _91={el:1};
if(_88){
_91.tag=1;
}
_87=_5d(_84,_91);
if("+"==_86){
_85=_74(_87);
}else{
if("~"==_86){
_85=_78(_87);
}else{
if(">"==_86){
_85=_7b(_87);
}
}
}
}
return _82[_84.query]=_85;
};
var _92=function(_93,_94){
var _95=_21(_93),qp,x,te,qpl=_94.length,bag,ret;
for(var i=0;i<qpl;i++){
ret=[];
qp=_94[i];
x=_95.length-1;
if(x>0){
bag={};
ret.nozip=true;
}
var gef=_83(qp);
for(var j=0;(te=_95[j]);j++){
gef(te,ret,bag);
}
if(!ret.length){
break;
}
_95=ret;
}
return ret;
};
var _96={},_97={};
var _98=function(_99){
var _9a=_b(_2(_99));
if(_9a.length==1){
var tef=_83(_9a[0]);
return function(_9b){
var r=tef(_9b,new _4());
if(r){
r.nozip=true;
}
return r;
};
}
return function(_9c){
return _92(_9c,_9a);
};
};
var nua=navigator.userAgent;
var wk="WebKit/";
var _9d=(d.isWebKit&&(nua.indexOf(wk)>0)&&(parseFloat(nua.split(wk)[1])>528));
var _9e=d.isIE?"commentStrip":"nozip";
var qsa="querySelectorAll";
var _9f=(!!_5()[qsa]&&(!d.isSafari||(d.isSafari>3.1)||_9d));
var _a0=/n\+\d|([^ ])?([>~+])([^ =])?/g;
var _a1=function(_a2,pre,ch,_a3){
return ch?(pre?pre+" ":"")+ch+(_a3?" "+_a3:""):_a2;
};
var _a4=function(_a5,_a6){
_a5=_a5.replace(_a0,_a1);
if(_9f){
var _a7=_97[_a5];
if(_a7&&!_a6){
return _a7;
}
}
var _a8=_96[_a5];
if(_a8){
return _a8;
}
var qcz=_a5.charAt(0);
var _a9=(-1==_a5.indexOf(" "));
if((_a5.indexOf("#")>=0)&&(_a9)){
_a6=true;
}
var _aa=(_9f&&(!_a6)&&(_8.indexOf(qcz)==-1)&&(!d.isIE||(_a5.indexOf(":")==-1))&&(!(_6&&(_a5.indexOf(".")>=0)))&&(_a5.indexOf(":contains")==-1)&&(_a5.indexOf(":checked")==-1)&&(_a5.indexOf("|=")==-1));
if(_aa){
var tq=(_8.indexOf(_a5.charAt(_a5.length-1))>=0)?(_a5+" *"):_a5;
return _97[_a5]=function(_ab){
try{
if(!((9==_ab.nodeType)||_a9)){
throw "";
}
var r=_ab[qsa](tq);
r[_9e]=true;
return r;
}
catch(e){
return _a4(_a5,true)(_ab);
}
};
}else{
var _ac=_a5.split(/\s*,\s*/);
return _96[_a5]=((_ac.length<2)?_98(_a5):function(_ad){
var _ae=0,ret=[],tp;
while((tp=_ac[_ae++])){
ret=ret.concat(_98(tp)(_ad));
}
return ret;
});
}
};
var _af=0;
var _b0=d.isIE?function(_b1){
if(_9){
return (_b1.getAttribute("_uid")||_b1.setAttribute("_uid",++_af)||_af);
}else{
return _b1.uniqueID;
}
}:function(_b2){
return (_b2._uid||(_b2._uid=++_af));
};
var _77=function(_b3,bag){
if(!bag){
return 1;
}
var id=_b0(_b3);
if(!bag[id]){
return bag[id]=1;
}
return 0;
};
var _b4="_zipIdx";
var _b5=function(arr){
if(arr&&arr.nozip){
return (_4._wrap)?_4._wrap(arr):arr;
}
var ret=new _4();
if(!arr||!arr.length){
return ret;
}
if(arr[0]){
ret.push(arr[0]);
}
if(arr.length<2){
return ret;
}
_af++;
if(d.isIE&&_9){
var _b6=_af+"";
arr[0].setAttribute(_b4,_b6);
for(var x=1,te;te=arr[x];x++){
if(arr[x].getAttribute(_b4)!=_b6){
ret.push(te);
}
te.setAttribute(_b4,_b6);
}
}else{
if(d.isIE&&arr.commentStrip){
try{
for(var x=1,te;te=arr[x];x++){
if(_22(te)){
ret.push(te);
}
}
}
catch(e){
}
}else{
if(arr[0]){
arr[0][_b4]=_af;
}
for(var x=1,te;te=arr[x];x++){
if(arr[x][_b4]!=_af){
ret.push(te);
}
te[_b4]=_af;
}
}
}
return ret;
};
d.query=function(_b7,_b8){
_4=d._NodeListCtor;
if(!_b7){
return new _4();
}
if(_b7.constructor==_4){
return _b7;
}
if(typeof _b7!="string"){
return new _4(_b7);
}
if(typeof _b8=="string"){
_b8=d.byId(_b8);
if(!_b8){
return new _4();
}
}
_b8=_b8||_5();
var od=_b8.ownerDocument||_b8.documentElement;
_9=(_b8.contentType&&_b8.contentType=="application/xml")||(d.isOpera&&(_b8.doctype||od.toString()=="[object XMLDocument]"))||(!!od)&&(d.isIE?od.xml:(_b8.xmlVersion||od.xmlVersion));
var r=_a4(_b7)(_b8);
if(r&&r.nozip&&!_4._wrap){
return r;
}
return _b5(r);
};
d.query.pseudos=_4d;
d._filterQueryResult=function(_b9,_ba,_bb){
var _bc=new d._NodeListCtor(),_bd=_b(_ba),_be=(_bd.length==1&&!/[^\w#\.]/.test(_ba))?_5d(_bd[0]):function(_bf){
return dojo.query(_ba,_bb).indexOf(_bf)!=-1;
};
for(var x=0,te;te=_b9[x];x++){
if(_be(te)){
_bc.push(te);
}
}
return _bc;
};
};
var _c0=function(){
acme={trim:function(str){
str=str.replace(/^\s+/,"");
for(var i=str.length-1;i>=0;i--){
if(/\S/.test(str.charAt(i))){
str=str.substring(0,i+1);
break;
}
}
return str;
},forEach:function(arr,_c1,_c2){
if(!arr||!arr.length){
return;
}
for(var i=0,l=arr.length;i<l;++i){
_c1.call(_c2||window,arr[i],i,arr);
}
},byId:function(id,doc){
if(typeof id=="string"){
return (doc||document).getElementById(id);
}else{
return id;
}
},doc:document,NodeList:Array};
var n=navigator;
var dua=n.userAgent;
var dav=n.appVersion;
var tv=parseFloat(dav);
acme.isOpera=(dua.indexOf("Opera")>=0)?tv:undefined;
acme.isKhtml=(dav.indexOf("Konqueror")>=0)?tv:undefined;
acme.isWebKit=parseFloat(dua.split("WebKit/")[1])||undefined;
acme.isChrome=parseFloat(dua.split("Chrome/")[1])||undefined;
var _c3=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);
if(_c3&&!acme.isChrome){
acme.isSafari=parseFloat(dav.split("Version/")[1]);
if(!acme.isSafari||parseFloat(dav.substr(_c3+7))<=419.3){
acme.isSafari=2;
}
}
if(document.all&&!acme.isOpera){
acme.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;
}
Array._wrap=function(arr){
return arr;
};
return acme;
};
if(this["dojo"]){
dojo.provide("dojo._base.query");
dojo.require("dojo._base.NodeList");
dojo.require("dojo._base.lang");
_1(this["queryPortability"]||this["acme"]||dojo);
}else{
_1(this["queryPortability"]||this["acme"]||_c0());
}
})();
}
| 17.184489 | 200 | 0.622538 |
056bc16ab323864d6f709914a8dccf3fb53352e7 | 1,519 | js | JavaScript | dist/task-queue-storage.js | exogee-technology/kew | f7add6c23fe0e06197e8abbee6b4b22a44b8f0d3 | [
"MIT"
] | 1 | 2021-12-03T21:25:24.000Z | 2021-12-03T21:25:24.000Z | dist/task-queue-storage.js | exogee-technology/kew | f7add6c23fe0e06197e8abbee6b4b22a44b8f0d3 | [
"MIT"
] | null | null | null | dist/task-queue-storage.js | exogee-technology/kew | f7add6c23fe0e06197e8abbee6b4b22a44b8f0d3 | [
"MIT"
] | null | null | null | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TaskQueueStorageManager = void 0;
/** Task Queue Storage Manager */
class TaskQueueStorageManager {
constructor() {
this.currentTasks = [];
this.finishedTasks = [];
this.references = {};
this.storage = {};
}
async use(storage) {
this.storage = storage;
await this.load();
}
// Write the queue to storage
async sync() {
if (this.storage.sync) {
await this.storage.sync({
currentTasks: this.currentTasks,
finishedTasks: this.finishedTasks,
references: this.references,
});
}
}
// Load the queue from storage
async load() {
if (this.storage.load) {
const loaded = await this.storage.load();
this.currentTasks =
loaded?.currentTasks && Array.isArray(loaded.currentTasks) ? loaded.currentTasks : [];
this.finishedTasks =
loaded?.finishedTasks && Array.isArray(loaded.finishedTasks) ? loaded.finishedTasks : [];
this.references =
loaded?.references && !Array.isArray(loaded.references) ? loaded.references : {};
}
}
// Remove all data
async removeAll() {
this.currentTasks = [];
this.finishedTasks = [];
this.references = {};
await this.sync();
}
}
exports.TaskQueueStorageManager = TaskQueueStorageManager;
| 32.319149 | 105 | 0.571429 |
056c6fd6bf220b6ad9ec2f68cfa8daaed5fb8c4b | 59 | js | JavaScript | src/lib/brokers/Broker.js | yzabiyaka/dosmth_blink | cecbc7e825a22c780712336c2f389e26f2bfdd6b | [
"MIT"
] | 6 | 2017-06-07T14:04:39.000Z | 2021-07-11T12:38:11.000Z | src/lib/brokers/Broker.js | yzabiyaka/dosmth_blink | cecbc7e825a22c780712336c2f389e26f2bfdd6b | [
"MIT"
] | 238 | 2017-03-08T22:49:09.000Z | 2022-03-03T22:24:27.000Z | src/lib/brokers/Broker.js | yzabiyaka/dosmth_blink | cecbc7e825a22c780712336c2f389e26f2bfdd6b | [
"MIT"
] | 2 | 2017-12-04T15:03:19.000Z | 2018-02-05T18:13:12.000Z | 'use strict';
class Broker {
}
module.exports = Broker;
| 7.375 | 24 | 0.661017 |
056cea92e14754584b1cb807e713692f7c766088 | 99 | js | JavaScript | index.js | pirxpilot/sax-super-stream | 37ce43020091854e06aefabec360bf94442de151 | [
"MIT"
] | null | null | null | index.js | pirxpilot/sax-super-stream | 37ce43020091854e06aefabec360bf94442de151 | [
"MIT"
] | null | null | null | index.js | pirxpilot/sax-super-stream | 37ce43020091854e06aefabec360bf94442de151 | [
"MIT"
] | null | null | null | module.exports = require('./lib/stream');
Object.assign(module.exports, require('./lib/parsers'));
| 33 | 56 | 0.717172 |
056d03bcfc81866e03ff41beef7717097bef5877 | 5,879 | js | JavaScript | src/assets/svgs/stats/index.js | yRodrigo2219/lolapi | e69dcbc21b52b7cb00b839bd47d6630edec313d1 | [
"MIT"
] | null | null | null | src/assets/svgs/stats/index.js | yRodrigo2219/lolapi | e69dcbc21b52b7cb00b839bd47d6630edec313d1 | [
"MIT"
] | 1 | 2021-06-07T19:09:26.000Z | 2021-06-09T17:12:48.000Z | src/assets/svgs/stats/index.js | yRodrigo2219/lolapi | e69dcbc21b52b7cb00b839bd47d6630edec313d1 | [
"MIT"
] | null | null | null | import React from 'react';
export const STAT_TYPE = Object.freeze({
COIN: 'coin',
DRAKE: 'drake',
INHIB: 'inhib',
SWORD: 'sword',
TOWER: 'tower',
BARON: 'baron',
CREEP: 'creep',
});
export default function StatSVG({ stat }) {
switch (stat) {
case STAT_TYPE.COIN:
return CoinSVG();
case STAT_TYPE.DRAKE:
return DrakeSVG();
case STAT_TYPE.INHIB:
return InhibSVG();
case STAT_TYPE.SWORD:
return SwordSVG();
case STAT_TYPE.TOWER:
return TowerSVG();
case STAT_TYPE.BARON:
return BaronSVG();
default:
return CreepSVG();
}
}
const CreepSVG = () => (
<svg width="20" height="24" viewBox="0 0 20 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11 0H9L0 14L10 24L20 14L11 0ZM4 12L6 10L10 14L14 10L16 12L10 21L4 12Z" fill="#7108A6" />
</svg>
)
const CoinSVG = () => (
<svg width="40" height="36" viewBox="0 0 40 36" xmlns="http://www.w3.org/2000/svg">
<path fillRule="evenodd" clipRule="evenodd" d="M40 15.44C40 20 32.84 24 24 24C15.16 24 8 20 8 15.44V8.56C8 4 15.16 0 24 0C32.84 0 40 4 40 8.56V15.44Z" />
<path fillRule="evenodd" clipRule="evenodd" d="M16 18.84C19.3906 18.653 22.7527 19.5496 25.6 21.4V26.6C22.7527 28.4504 19.3906 29.347 16 29.16C12.6094 29.347 9.24726 28.4504 6.4 26.6V21.4C9.24726 19.5496 12.6094 18.653 16 18.84ZM16 12C7.16 12 0 16 0 20.56V27.44C0 32 7.16 36 16 36C24.84 36 32 32 32 27.44V20.56C32 16 24.84 12 16 12Z" />
</svg>
);
const DrakeSVG = () => (
<svg width="38" height="40" viewBox="0 0 38 40" xmlns="http://www.w3.org/2000/svg">
<path d="M27.0596 31.7188V29.5193L29.527 19.6454C30.145 17.178 29.6014 14.6133 28.0359 12.6083C26.4703 10.6033 24.1138 9.45312 21.5698 9.45312H16.1432C13.5989 9.45312 11.2427 10.6033 9.67712 12.6083C8.11157 14.6133 7.56805 17.178 8.18604 19.6454L10.6534 29.5193V31.7188C10.6534 36.2415 14.3338 40 18.8565 40C23.3792 40 27.0596 36.2415 27.0596 31.7188ZM14.9976 19.1714L17.3413 21.5152L15.6842 23.1723L13.3405 20.8286L14.9976 19.1714ZM17.6846 35.2344H15.3409V32.8906H17.6846V35.2344ZM22.3721 35.2344H20.0284V32.8906H22.3721V35.2344ZM22.0288 23.1723L20.3717 21.5152L22.7155 19.1714L24.3726 20.8286L22.0288 23.1723Z" />
<path d="M29.4034 29.8074V31.3913C31.5399 29.8996 32.919 27.4503 32.919 24.6875V23.5156H30.976L29.4034 29.8074Z" />
<path d="M35.2203 2.4231C31.6739 2.55127 28.7454 3.11646 26.0126 5.43396C25.6174 5.74615 24.8853 6.42517 24.108 7.42218C26.3757 7.97943 28.4045 9.27277 29.8828 11.1664C30.0793 11.4178 30.2527 11.6815 30.4239 11.9458C31.1807 9.53247 32.5113 8.2019 33.9685 6.74988C34.7134 6.00739 35.4837 5.23926 36.1954 4.30328L37.6935 2.33368L35.2203 2.4231Z" />
<path d="M16.1432 7.10938H21.5698C21.5747 7.10938 21.5793 7.11029 21.5839 7.11029L18.8565 0L16.1292 7.11029C16.1337 7.11029 16.1383 7.10938 16.1432 7.10938Z" />
<path d="M0 2.33368L1.49811 4.30328C2.20978 5.23926 2.98004 6.00739 3.72498 6.74896C5.18616 8.20465 6.51917 9.5401 7.27509 11.9659C7.44995 11.6943 7.62848 11.4243 7.8302 11.1664C9.30511 9.27704 11.3284 7.98584 13.5898 7.42676C12.8162 6.43219 12.0908 5.75806 11.7133 5.45929C8.94806 3.11646 6.01959 2.55127 2.47314 2.4231L0 2.33368Z" />
<path d="M8.30963 31.3916V29.8077L6.73737 23.5156H4.79401V24.6875C4.79401 27.4503 6.1731 29.8996 8.30963 31.3916Z" />
<path d="M31.5616 21.1719H33.2706C33.7851 20.1025 34.0909 18.9166 34.0909 17.6562V16.4844H32.0505C32.1863 17.7136 32.1118 18.9734 31.8008 20.2151L31.5616 21.1719Z" />
<path d="M3.62213 16.4844V17.6562C3.62213 18.9166 3.92761 20.1025 4.44214 21.1719H6.15173L5.91217 20.213C5.6015 18.9722 5.52673 17.7133 5.66254 16.4844H3.62213Z" />
</svg>
)
const InhibSVG = () => (
<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<path d="M20 0C31.044 0 40 8.956 40 20C40 31.044 31.044 40 20 40C8.954 40 0 31.044 0 20C0 8.956 8.954 0 20 0ZM20 4C11.278 4 4 11.27 4 20C4 28.73 11.278 36 20 36C28.724 36 36 28.73 36 20C36 11.27 28.724 4 20 4ZM20 12L28 20L20 28L12 20L20 12Z" />
</svg>
)
const SwordSVG = () => (
<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<path d="M28.8889 0L13.3356 20V23.3333L6.66667 16.6667L4.44444 24.4444L7.78 27.7778L0 35.5556V40H4.44444L12.2222 32.2222L15.5578 35.5556L23.3356 33.3333L16.6667 26.6667H20L40 11.1111V0H28.8889ZM16.6667 21.6667L31.1133 6.66667H33.3356V8.88889L18.3356 23.3333H16.6667V21.6667Z" />
</svg>
)
const TowerSVG = () => (
<svg width="30" height="40" viewBox="0 0 30 40" xmlns="http://www.w3.org/2000/svg">
<path d="M9.0912 0V9.08938L5.4529 7.27296L0 10.9076L1.81642 18.1824L14.5459 25.4535L27.2736 18.1824L29.0918 10.9076L23.6353 7.27296L19.9988 9.08938V0H9.0912ZM12.7277 9.08938V3.63648H16.3642V9.08938L14.5459 10.9076L12.7277 9.08938ZM21.8171 14.5441L14.5459 20.0006L7.27114 14.5441L14.5459 16.3642L21.8171 14.5441ZM14.5454 29.0906L21.8183 25.4541L20.0001 36.3653H23.6348V40H5.45417V36.3653H9.09065L7.2706 25.4541L14.5454 29.0906Z" />
</svg>
)
const BaronSVG = () => (
<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<path d="M30 21.01C30 22.66 28.662 24 27.008 24H26.992C25.338 24 24 22.66 24 21.01V20.99C24 19.34 25.338 18 26.992 18H27.008C28.662 18 30 19.34 30 20.99V21.01ZM22 16.016C22 17.112 21.112 18 20.016 18H19.984C18.888 18 18 17.112 18 16.016V15.984C18 14.888 18.888 14 19.984 14H20.016C21.112 14 22 14.888 22 15.984V16.016ZM22 26.02C22 27.114 21.114 28 20.02 28H19.98C18.886 28 18 27.114 18 26.02V25.98C18 24.886 18.886 24 19.98 24H20.02C21.114 24 22 24.886 22 25.98V26.02ZM16 21.028C16 22.67 14.668 24 13.028 24H12.972C11.332 24 10 22.67 10 21.028V20.972C10 19.332 11.332 18 12.972 18H13.028C14.668 18 16 19.332 16 20.972V21.028ZM40 8L26 0V4L32 10L28 14L20 6L12 14L8 10L14 4V0L0 8L8 18L0 26L6 34V26H10L12 36L16 40V32L20 36L24 32V40L28 36L30 26H34V34L40 26L32 18L40 8Z" />
</svg>
) | 73.4875 | 771 | 0.712536 |
056d0a8ee24baf831862dba9f3ac7ef461152e14 | 748 | js | JavaScript | commands/reload.js | Purgador/walterio | e937df6ff0395dfffaa69c7e137d519b0cdafdca | [
"MIT"
] | null | null | null | commands/reload.js | Purgador/walterio | e937df6ff0395dfffaa69c7e137d519b0cdafdca | [
"MIT"
] | null | null | null | commands/reload.js | Purgador/walterio | e937df6ff0395dfffaa69c7e137d519b0cdafdca | [
"MIT"
] | 1 | 2020-10-23T05:02:42.000Z | 2020-10-23T05:02:42.000Z | module.exports = async (client, message, args, ops) => {
if(!([ops.ownerID].includes(message.author.id) || [ops.idWitherBlood].includes(message.author.id)))
return message.channel.send(ops.lang.commands.eval.error);
const reload = new ops.Discord.MessageEmbed()
.setTitle(':arrows_counterclockwise: | **Recargando el sistema**')
.setDescription('`Espera 5 Segundos`')
.setThumbnail(`https://cdn.discordapp.com/attachments/571049817921290250/572433829801754655/a8keeuutawx01.gif`)
.setColor(0x00ffff)
.setFooter('Requerido por '+ message.author.username +'')
message.channel.send(reload).then(() => {
client.destroy()
process.exit();
});
} | 49.866667 | 119 | 0.643048 |
056f4c676f8d30f2882ce30d6f6e3c88006fa2aa | 1,069 | js | JavaScript | demo/views/fuxinxin/select/menu.js | john-yan2016/myComponents | 865b3d76e3b200b38412d1ae1b22bdfe0404f31f | [
"MIT"
] | null | null | null | demo/views/fuxinxin/select/menu.js | john-yan2016/myComponents | 865b3d76e3b200b38412d1ae1b22bdfe0404f31f | [
"MIT"
] | null | null | null | demo/views/fuxinxin/select/menu.js | john-yan2016/myComponents | 865b3d76e3b200b38412d1ae1b22bdfe0404f31f | [
"MIT"
] | null | null | null | import React from 'react';
export default class Menu extends React.Component {
render() {
const props = this.props;
const style = {
top : props.height - 1,
display : props.showMenu && !props.disabled ? '' : 'none',
lineHeight : props.optionHeight + 'px',
maxHeight : props.optionHeight * 8 + 2
};
const options = props.options.map((item, index) => {
if(item.disabled){
return <li key={index} className='select-disabled-option' >{item.text || item}</li>
}
return (
<li key={index}
className={index === props.focused ? 'select-focused-option' : ''}
onClick={e=>props.handleChoose(e, index)}
onMouseEnter={props.focusOption.bind(null, index)}
>
{item.text || item}
</li>
)
});
return <ul className="select-option thin-scroll" style={style}>{options}</ul>;
}
} | 33.40625 | 100 | 0.487371 |
056f829abd6f446afe8b4a30c79c278e3e5333aa | 107,707 | js | JavaScript | vendor/angular/angular.min.js | nmlseo/font-awesome-animatio | 9b69a99b898109adf400c4957b45d3f05ad90c0c | [
"MIT"
] | 2 | 2018-06-14T14:39:31.000Z | 2018-11-13T13:36:30.000Z | vendor/angular/angular.min.js | nmlseo/font-awesome-animatio | 9b69a99b898109adf400c4957b45d3f05ad90c0c | [
"MIT"
] | null | null | null | vendor/angular/angular.min.js | nmlseo/font-awesome-animatio | 9b69a99b898109adf400c4957b45d3f05ad90c0c | [
"MIT"
] | 2 | 2018-06-14T14:39:45.000Z | 2021-02-21T02:35:14.000Z | /*
AngularJS v1.3.0-build.2603+sha.5dee9e4
(c) 2010-2014 Google, Inc. http://angularjs.org
License: MIT
*/
(function(O,V,r){'use strict';function B(b){return function(){var a=arguments[0],c,a="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.3.0-build.2603+sha.5dee9e4/"+(b?b+"/":"")+a;for(c=1;c<arguments.length;c++)a=a+(1==c?"?":"&")+"p"+(c-1)+"="+encodeURIComponent("function"==typeof arguments[c]?arguments[c].toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof arguments[c]?"undefined":"string"!=typeof arguments[c]?JSON.stringify(arguments[c]):arguments[c]);return Error(a)}}function db(b){if(null==
b||Da(b))return!1;var a=b.length;return 1===b.nodeType&&a?!0:v(b)||L(b)||0===a||"number"===typeof a&&0<a&&a-1 in b}function q(b,a,c){var d;if(b)if(P(b))for(d in b)"prototype"==d||("length"==d||"name"==d||b.hasOwnProperty&&!b.hasOwnProperty(d))||a.call(c,b[d],d);else if(b.forEach&&b.forEach!==q)b.forEach(a,c);else if(db(b))for(d=0;d<b.length;d++)a.call(c,b[d],d);else for(d in b)b.hasOwnProperty(d)&&a.call(c,b[d],d);return b}function Vb(b){var a=[],c;for(c in b)b.hasOwnProperty(c)&&a.push(c);return a.sort()}
function dd(b,a,c){for(var d=Vb(b),e=0;e<d.length;e++)a.call(c,b[d[e]],d[e]);return d}function Wb(b){return function(a,c){b(c,a)}}function eb(){for(var b=ka.length,a;b;){b--;a=ka[b].charCodeAt(0);if(57==a)return ka[b]="A",ka.join("");if(90==a)ka[b]="0";else return ka[b]=String.fromCharCode(a+1),ka.join("")}ka.unshift("0");return ka.join("")}function Xb(b,a){a?b.$$hashKey=a:delete b.$$hashKey}function D(b){var a=b.$$hashKey;q(arguments,function(a){a!==b&&q(a,function(a,c){b[c]=a})});Xb(b,a);return b}
function Y(b){return parseInt(b,10)}function Yb(b,a){return D(new (D(function(){},{prototype:b})),a)}function w(){}function Ea(b){return b}function aa(b){return function(){return b}}function C(b){return"undefined"===typeof b}function A(b){return"undefined"!==typeof b}function T(b){return null!=b&&"object"===typeof b}function v(b){return"string"===typeof b}function Ab(b){return"number"===typeof b}function ra(b){return"[object Date]"===ya.call(b)}function L(b){return"[object Array]"===ya.call(b)}function P(b){return"function"===
typeof b}function fb(b){return"[object RegExp]"===ya.call(b)}function Da(b){return b&&b.document&&b.location&&b.alert&&b.setInterval}function ed(b){return!(!b||!(b.nodeName||b.prop&&b.attr&&b.find))}function fd(b,a,c){var d=[];q(b,function(b,f,g){d.push(a.call(c,b,f,g))});return d}function gb(b,a){if(b.indexOf)return b.indexOf(a);for(var c=0;c<b.length;c++)if(a===b[c])return c;return-1}function Fa(b,a){var c=gb(b,a);0<=c&&b.splice(c,1);return a}function ca(b,a){if(Da(b)||b&&b.$evalAsync&&b.$watch)throw Pa("cpws");
if(a){if(b===a)throw Pa("cpi");if(L(b))for(var c=a.length=0;c<b.length;c++)a.push(ca(b[c]));else{c=a.$$hashKey;q(a,function(b,c){delete a[c]});for(var d in b)a[d]=ca(b[d]);Xb(a,c)}}else(a=b)&&(L(b)?a=ca(b,[]):ra(b)?a=new Date(b.getTime()):fb(b)?a=RegExp(b.source):T(b)&&(a=ca(b,{})));return a}function Zb(b,a){a=a||{};for(var c in b)!b.hasOwnProperty(c)||"$"===c.charAt(0)&&"$"===c.charAt(1)||(a[c]=b[c]);return a}function za(b,a){if(b===a)return!0;if(null===b||null===a)return!1;if(b!==b&&a!==a)return!0;
var c=typeof b,d;if(c==typeof a&&"object"==c)if(L(b)){if(!L(a))return!1;if((c=b.length)==a.length){for(d=0;d<c;d++)if(!za(b[d],a[d]))return!1;return!0}}else{if(ra(b))return ra(a)&&b.getTime()==a.getTime();if(fb(b)&&fb(a))return b.toString()==a.toString();if(b&&b.$evalAsync&&b.$watch||a&&a.$evalAsync&&a.$watch||Da(b)||Da(a)||L(a))return!1;c={};for(d in b)if("$"!==d.charAt(0)&&!P(b[d])){if(!za(b[d],a[d]))return!1;c[d]=!0}for(d in a)if(!c.hasOwnProperty(d)&&"$"!==d.charAt(0)&&a[d]!==r&&!P(a[d]))return!1;
return!0}return!1}function $b(){return V.securityPolicy&&V.securityPolicy.isActive||V.querySelector&&!(!V.querySelector("[ng-csp]")&&!V.querySelector("[data-ng-csp]"))}function hb(b,a){var c=2<arguments.length?sa.call(arguments,2):[];return!P(a)||a instanceof RegExp?a:c.length?function(){return arguments.length?a.apply(b,c.concat(sa.call(arguments,0))):a.apply(b,c)}:function(){return arguments.length?a.apply(b,arguments):a.call(b)}}function gd(b,a){var c=a;"string"===typeof b&&"$"===b.charAt(0)?c=
r:Da(a)?c="$WINDOW":a&&V===a?c="$DOCUMENT":a&&(a.$evalAsync&&a.$watch)&&(c="$SCOPE");return c}function ta(b,a){return"undefined"===typeof b?r:JSON.stringify(b,gd,a?" ":null)}function ac(b){return v(b)?JSON.parse(b):b}function Qa(b){"function"===typeof b?b=!0:b&&0!==b.length?(b=I(""+b),b=!("f"==b||"0"==b||"false"==b||"no"==b||"n"==b||"[]"==b)):b=!1;return b}function ha(b){b=y(b).clone();try{b.empty()}catch(a){}var c=y("<div>").append(b).html();try{return 3===b[0].nodeType?I(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,
function(a,b){return"<"+I(b)})}catch(d){return I(c)}}function bc(b){try{return decodeURIComponent(b)}catch(a){}}function cc(b){var a={},c,d;q((b||"").split("&"),function(b){b&&(c=b.split("="),d=bc(c[0]),A(d)&&(b=A(c[1])?bc(c[1]):!0,a[d]?L(a[d])?a[d].push(b):a[d]=[a[d],b]:a[d]=b))});return a}function dc(b){var a=[];q(b,function(b,d){L(b)?q(b,function(b){a.push(Aa(d,!0)+(!0===b?"":"="+Aa(b,!0)))}):a.push(Aa(d,!0)+(!0===b?"":"="+Aa(b,!0)))});return a.length?a.join("&"):""}function Bb(b){return Aa(b,
!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Aa(b,a){return encodeURIComponent(b).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,a?"%20":"+")}function hd(b,a){var c,d,e=ec.length;b=y(b);for(d=0;d<e;++d)if(c=ec[d]+a,v(c=b.attr(c)))return c;return null}function id(b,a){function c(a){a&&d.push(a)}var d=[b],e,f,g={},h=["ng:app","ng-app","x-ng-app","data-ng-app"],l=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;q(h,function(a){h[a]=
!0;c(V.getElementById(a));a=a.replace(":","\\:");b.querySelectorAll&&(q(b.querySelectorAll("."+a),c),q(b.querySelectorAll("."+a+"\\:"),c),q(b.querySelectorAll("["+a+"]"),c))});q(d,function(a){if(!e){var b=l.exec(" "+a.className+" ");b?(e=a,f=(b[2]||"").replace(/\s+/g,",")):q(a.attributes,function(b){!e&&h[b.name]&&(e=a,f=b.value)})}});e&&(g.strictDi=null!==hd(e,"strict-di"),a(e,f?[f]:[],g))}function fc(b,a,c){T(c)||(c={});c=D({strictDi:!1},c);var d=function(){b=y(b);if(b.injector()){var d=b[0]===
V?"document":ha(b);throw Pa("btstrpd",d);}a=a||[];a.unshift(["$provide",function(a){a.value("$rootElement",b)}]);a.unshift("ng");d=Cb(a,c.strictDi);d.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(a,b,c,d,e){a.$apply(function(){b.data("$injector",d);c(b)(a)})}]);return d},e=/^NG_DEFER_BOOTSTRAP!/;if(O&&!e.test(O.name))return d();O.name=O.name.replace(e,"");Ra.resumeBootstrap=function(b){q(b,function(b){a.push(b)});d()}}function ib(b,a){a=a||"_";return b.replace(jd,
function(b,d){return(d?a:"")+b.toLowerCase()})}function Db(b,a,c){if(!b)throw Pa("areq",a||"?",c||"required");return b}function Sa(b,a,c){c&&L(b)&&(b=b[b.length-1]);Db(P(b),a,"not a function, got "+(b&&"object"==typeof b?b.constructor.name||"Object":typeof b));return b}function Ba(b,a){if("hasOwnProperty"===b)throw Pa("badname",a);}function gc(b,a,c){if(!a)return b;a=a.split(".");for(var d,e=b,f=a.length,g=0;g<f;g++)d=a[g],b&&(b=(e=b)[d]);return!c&&P(b)?hb(e,b):b}function Eb(b){var a=b[0];b=b[b.length-
1];if(a===b)return y(a);var c=[a];do{a=a.nextSibling;if(!a)break;c.push(a)}while(a!==b);return y(c)}function kd(b){var a=B("$injector"),c=B("ng");b=b.angular||(b.angular={});b.$$minErr=b.$$minErr||B;return b.module||(b.module=function(){var b={};return function(e,f,g){if("hasOwnProperty"===e)throw c("badname","module");f&&b.hasOwnProperty(e)&&(b[e]=null);return b[e]||(b[e]=function(){function b(a,d,e){return function(){c[e||"push"]([a,d,arguments]);return p}}if(!f)throw a("nomod",e);var c=[],d=[],
m=b("$injector","invoke"),p={_invokeQueue:c,_runBlocks:d,requires:f,name:e,provider:b("$provide","provider"),factory:b("$provide","factory"),service:b("$provide","service"),value:b("$provide","value"),constant:b("$provide","constant","unshift"),animation:b("$animateProvider","register"),filter:b("$filterProvider","register"),controller:b("$controllerProvider","register"),directive:b("$compileProvider","directive"),config:m,run:function(a){d.push(a);return this}};g&&m(g);return p}())}}())}function ld(b){D(b,
{bootstrap:fc,copy:ca,extend:D,equals:za,element:y,forEach:q,injector:Cb,noop:w,bind:hb,toJson:ta,fromJson:ac,identity:Ea,isUndefined:C,isDefined:A,isString:v,isFunction:P,isObject:T,isNumber:Ab,isElement:ed,isArray:L,version:md,isDate:ra,lowercase:I,uppercase:Ga,callbacks:{counter:0},$$minErr:B,$$csp:$b});Ta=kd(O);try{Ta("ngLocale")}catch(a){Ta("ngLocale",[]).provider("$locale",nd)}Ta("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:od});a.provider("$compile",hc).directive({a:pd,
input:ic,textarea:ic,form:qd,script:rd,select:sd,style:td,option:ud,ngBind:vd,ngBindHtml:wd,ngBindTemplate:xd,ngClass:yd,ngClassEven:zd,ngClassOdd:Ad,ngCloak:Bd,ngController:Cd,ngForm:Dd,ngHide:Ed,ngIf:Fd,ngInclude:Gd,ngInit:Hd,ngNonBindable:Id,ngPluralize:Jd,ngRepeat:Kd,ngShow:Ld,ngStyle:Md,ngSwitch:Nd,ngSwitchWhen:Od,ngSwitchDefault:Pd,ngOptions:Qd,ngTransclude:Rd,ngModel:Sd,ngList:Td,ngChange:Ud,required:jc,ngRequired:jc,ngValue:Vd,ngModelOptions:Wd}).directive({ngInclude:Xd}).directive(Fb).directive(kc);
a.provider({$anchorScroll:Yd,$animate:Zd,$browser:$d,$cacheFactory:ae,$controller:be,$document:ce,$exceptionHandler:de,$filter:lc,$interpolate:ee,$interval:fe,$http:ge,$httpBackend:he,$location:ie,$log:je,$parse:ke,$rootScope:le,$q:me,$sce:ne,$sceDelegate:oe,$sniffer:pe,$templateCache:qe,$timeout:re,$window:se,$$rAF:te,$$asyncCallback:ue})}])}function Ua(b){return b.replace(ve,function(a,b,d,e){return e?d.toUpperCase():d}).replace(we,"Moz$1")}function Gb(b,a,c,d){function e(b){var e=c&&b?[this.filter(b)]:
[this],l=a,k,m,p,n,s,t;if(!d||null!=b)for(;e.length;)for(k=e.shift(),m=0,p=k.length;m<p;m++)for(n=y(k[m]),l?n.triggerHandler("$destroy"):l=!l,s=0,n=(t=n.children()).length;s<n;s++)e.push(Ha(t[s]));return f.apply(this,arguments)}var f=Ha.fn[b],f=f.$original||f;e.$original=f;Ha.fn[b]=e}function xe(b,a){var c,d,e=a.createDocumentFragment(),f=[];if(Hb.test(b)){c=c||e.appendChild(a.createElement("div"));d=(ye.exec(b)||["",""])[1].toLowerCase();d=ea[d]||ea._default;c.innerHTML=d[1]+b.replace(ze,"<$1></$2>")+
d[2];for(d=d[0];d--;)c=c.lastChild;f=f.concat(sa.call(c.childNodes,void 0));c=e.firstChild;c.textContent=""}else f.push(a.createTextNode(b));e.textContent="";e.innerHTML="";q(f,function(a){e.appendChild(a)});return e}function M(b){if(b instanceof M)return b;v(b)&&(b=ba(b));if(!(this instanceof M)){if(v(b)&&"<"!=b.charAt(0))throw Ib("nosel");return new M(b)}if(v(b)){var a;a=V;var c;b=(c=Ae.exec(b))?[a.createElement(c[1])]:(c=xe(b,a))?c.childNodes:[]}mc(this,b)}function Jb(b){return b.cloneNode(!0)}
function Ia(b){nc(b);var a=0;for(b=b.childNodes||[];a<b.length;a++)Ia(b[a])}function oc(b,a,c,d){if(A(d))throw Ib("offargs");var e=la(b,"events");la(b,"handle")&&(C(a)?q(e,function(a,c){Va(b,c,a);delete e[c]}):q(a.split(" "),function(a){C(c)?(Va(b,a,e[a]),delete e[a]):Fa(e[a]||[],c)}))}function nc(b,a){var c=b[jb],d=Wa[c];d&&(a?delete Wa[c].data[a]:(d.handle&&(d.events.$destroy&&d.handle({},"$destroy"),oc(b)),delete Wa[c],b[jb]=r))}function la(b,a,c){var d=b[jb],d=Wa[d||-1];if(A(c))d||(b[jb]=d=++Be,
d=Wa[d]={}),d[a]=c;else return d&&d[a]}function pc(b,a,c){var d=la(b,"data"),e=A(c),f=!e&&A(a),g=f&&!T(a);d||g||la(b,"data",d={});if(e)d[a]=c;else if(f){if(g)return d&&d[a];D(d,a)}else return d}function Kb(b,a){return b.getAttribute?-1<(" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+a+" "):!1}function kb(b,a){a&&b.setAttribute&&q(a.split(" "),function(a){b.setAttribute("class",ba((" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+ba(a)+" "," ")))})}
function lb(b,a){if(a&&b.setAttribute){var c=(" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");q(a.split(" "),function(a){a=ba(a);-1===c.indexOf(" "+a+" ")&&(c+=a+" ")});b.setAttribute("class",ba(c))}}function mc(b,a){if(a){a=a.nodeName||!A(a.length)||Da(a)?[a]:a;for(var c=0;c<a.length;c++)b.push(a[c])}}function qc(b,a){return mb(b,"$"+(a||"ngController")+"Controller")}function mb(b,a,c){b=y(b);9==b[0].nodeType&&(b=b.find("html"));for(a=L(a)?a:[a];b.length;){for(var d=b[0],e=0,f=a.length;e<
f;e++)if((c=b.data(a[e]))!==r)return c;b=y(d.parentNode||11===d.nodeType&&d.host)}}function rc(b){for(var a=0,c=b.childNodes;a<c.length;a++)Ia(c[a]);for(;b.firstChild;)b.removeChild(b.firstChild)}function sc(b,a){var c=nb[a.toLowerCase()];return c&&tc[b.nodeName]&&c}function Ce(b,a){var c=function(c,e){c.preventDefault||(c.preventDefault=function(){c.returnValue=!1});c.stopPropagation||(c.stopPropagation=function(){c.cancelBubble=!0});c.target||(c.target=c.srcElement||V);if(C(c.defaultPrevented)){var f=
c.preventDefault;c.preventDefault=function(){c.defaultPrevented=!0;f.call(c)};c.defaultPrevented=!1}c.isDefaultPrevented=function(){return c.defaultPrevented||!1===c.returnValue};var g=Zb(a[e||c.type]||[]);q(g,function(a){a.call(b,c)});8>=U?(c.preventDefault=null,c.stopPropagation=null,c.isDefaultPrevented=null):(delete c.preventDefault,delete c.stopPropagation,delete c.isDefaultPrevented)};c.elem=b;return c}function Ja(b){var a=typeof b,c;"object"==a&&null!==b?"function"==typeof(c=b.$$hashKey)?c=
b.$$hashKey():c===r&&(c=b.$$hashKey=eb()):c=b;return a+":"+c}function Xa(b){q(b,this.put,this)}function De(b){return(b=b.toString().replace(uc,"").match(vc))?"function("+(b[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function Lb(b,a,c){var d;if("function"==typeof b){if(!(d=b.$inject)){d=[];if(b.length){if(a)throw v(c)&&c||(c=b.name||De(b)),Ka("strictdi",c);a=b.toString().replace(uc,"");a=a.match(vc);q(a[1].split(Ee),function(a){a.replace(Fe,function(a,b,c){d.push(c)})})}b.$inject=d}}else L(b)?(a=b.length-
1,Sa(b[a],"fn"),d=b.slice(0,a)):Sa(b,"fn",!0);return d}function Cb(b,a){function c(a){return function(b,c){if(T(b))q(b,Wb(a));else return a(b,c)}}function d(a,b){Ba(a,"service");if(P(b)||L(b))b=n.instantiate(b);if(!b.$get)throw Ka("pget",a);return p[a+l]=b}function e(a,b){return d(a,{$get:b})}function f(a){var b=[],c,d,e,h;q(a,function(a){if(!m.get(a)){m.put(a,!0);try{if(v(a))for(c=Ta(a),b=b.concat(f(c.requires)).concat(c._runBlocks),d=c._invokeQueue,e=0,h=d.length;e<h;e++){var g=d[e],l=n.get(g[0]);
l[g[1]].apply(l,g[2])}else P(a)?b.push(n.invoke(a)):L(a)?b.push(n.invoke(a)):Sa(a,"module")}catch(k){throw L(a)&&(a=a[a.length-1]),k.message&&(k.stack&&-1==k.stack.indexOf(k.message))&&(k=k.message+"\n"+k.stack),Ka("modulerr",a,k.stack||k.message||k);}}});return b}function g(b,c){function d(a){if(b.hasOwnProperty(a)){if(b[a]===h)throw Ka("cdep",k.join(" <- "));return b[a]}try{return k.unshift(a),b[a]=h,b[a]=c(a)}catch(e){throw b[a]===h&&delete b[a],e;}finally{k.shift()}}function e(b,c,f,h){"string"===
typeof f&&(h=f,f=null);var g=[];h=Lb(b,a,h);var l,k,m;k=0;for(l=h.length;k<l;k++){m=h[k];if("string"!==typeof m)throw Ka("itkn",m);g.push(f&&f.hasOwnProperty(m)?f[m]:d(m))}b.$inject||(b=b[l]);return b.apply(c,g)}return{invoke:e,instantiate:function(a,b,c){var d=function(){};d.prototype=(L(a)?a[a.length-1]:a).prototype;d=new d;a=e(a,d,b,c);return T(a)||P(a)?a:d},get:d,annotate:Lb,has:function(a){return p.hasOwnProperty(a+l)||b.hasOwnProperty(a)}}}a=!0===a;var h={},l="Provider",k=[],m=new Xa,p={$provide:{provider:c(d),
factory:c(e),service:c(function(a,b){return e(a,["$injector",function(a){return a.instantiate(b)}])}),value:c(function(a,b){return e(a,aa(b))}),constant:c(function(a,b){Ba(a,"constant");p[a]=b;s[a]=b}),decorator:function(a,b){var c=n.get(a+l),d=c.$get;c.$get=function(){var a=t.invoke(d,c);return t.invoke(b,null,{$delegate:a})}}}},n=p.$injector=g(p,function(){throw Ka("unpr",k.join(" <- "));},a),s={},t=s.$injector=g(s,function(a){var b=n.get(a+l);return t.invoke(b.$get,b,r,a)},a);q(f(b),function(a){t.invoke(a||
w)});return t}function Yd(){var b=!0;this.disableAutoScrolling=function(){b=!1};this.$get=["$window","$location","$rootScope",function(a,c,d){function e(a){var b=null;q(a,function(a){b||"a"!==I(a.nodeName)||(b=a)});return b}function f(){var b=c.hash(),d;b?(d=g.getElementById(b))?d.scrollIntoView():(d=e(g.getElementsByName(b)))?d.scrollIntoView():"top"===b&&a.scrollTo(0,0):a.scrollTo(0,0)}var g=a.document;b&&d.$watch(function(){return c.hash()},function(){d.$evalAsync(f)});return f}]}function ue(){this.$get=
["$$rAF","$timeout",function(b,a){return b.supported?function(a){return b(a)}:function(b){return a(b,0,!1)}}]}function Ge(b,a,c,d){function e(a){try{a.apply(null,sa.call(arguments,1))}finally{if(t--,0===t)for(;G.length;)try{G.pop()()}catch(b){c.error(b)}}}function f(a,b){(function S(){q(x,function(a){a()});u=b(S,a)})()}function g(){z=null;N!=h.url()&&(N=h.url(),q(ma,function(a){a(h.url())}))}var h=this,l=a[0],k=b.location,m=b.history,p=b.setTimeout,n=b.clearTimeout,s={};h.isMock=!1;var t=0,G=[];h.$$completeOutstandingRequest=
e;h.$$incOutstandingRequestCount=function(){t++};h.notifyWhenNoOutstandingRequests=function(a){q(x,function(a){a()});0===t?a():G.push(a)};var x=[],u;h.addPollFn=function(a){C(u)&&f(100,p);x.push(a);return a};var N=k.href,E=a.find("base"),z=null;h.url=function(a,c){k!==b.location&&(k=b.location);m!==b.history&&(m=b.history);if(a){if(N!=a)return N=a,d.history?c?m.replaceState(null,"",a):(m.pushState(null,"",a),E.attr("href",E.attr("href"))):(z=a,c?k.replace(a):k.href=a),h}else return z||k.href.replace(/%27/g,
"'")};var ma=[],K=!1;h.onUrlChange=function(a){if(!K){if(d.history)y(b).on("popstate",g);if(d.hashchange)y(b).on("hashchange",g);else h.addPollFn(g);K=!0}ma.push(a);return a};h.baseHref=function(){var a=E.attr("href");return a?a.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var Q={},da="",H=h.baseHref();h.cookies=function(a,b){var d,e,f,h;if(a)b===r?l.cookie=escape(a)+"=;path="+H+";expires=Thu, 01 Jan 1970 00:00:00 GMT":v(b)&&(d=(l.cookie=escape(a)+"="+escape(b)+";path="+H).length+1,4096<d&&c.warn("Cookie '"+
a+"' possibly not set or overflowed because it was too large ("+d+" > 4096 bytes)!"));else{if(l.cookie!==da)for(da=l.cookie,d=da.split("; "),Q={},f=0;f<d.length;f++)e=d[f],h=e.indexOf("="),0<h&&(a=unescape(e.substring(0,h)),Q[a]===r&&(Q[a]=unescape(e.substring(h+1))));return Q}};h.defer=function(a,b){var c;t++;c=p(function(){delete s[c];e(a)},b||0);s[c]=!0;return c};h.defer.cancel=function(a){return s[a]?(delete s[a],n(a),e(w),!0):!1}}function $d(){this.$get=["$window","$log","$sniffer","$document",
function(b,a,c,d){return new Ge(b,d,a,c)}]}function ae(){this.$get=function(){function b(b,d){function e(a){a!=p&&(n?n==a&&(n=a.n):n=a,f(a.n,a.p),f(a,p),p=a,p.n=null)}function f(a,b){a!=b&&(a&&(a.p=b),b&&(b.n=a))}if(b in a)throw B("$cacheFactory")("iid",b);var g=0,h=D({},d,{id:b}),l={},k=d&&d.capacity||Number.MAX_VALUE,m={},p=null,n=null;return a[b]={put:function(a,b){if(k<Number.MAX_VALUE){var c=m[a]||(m[a]={key:a});e(c)}if(!C(b))return a in l||g++,l[a]=b,g>k&&this.remove(n.key),b},get:function(a){if(k<
Number.MAX_VALUE){var b=m[a];if(!b)return;e(b)}return l[a]},remove:function(a){if(k<Number.MAX_VALUE){var b=m[a];if(!b)return;b==p&&(p=b.p);b==n&&(n=b.n);f(b.n,b.p);delete m[a]}delete l[a];g--},removeAll:function(){l={};g=0;m={};p=n=null},destroy:function(){m=h=l=null;delete a[b]},info:function(){return D({},h,{size:g})}}}var a={};b.info=function(){var b={};q(a,function(a,e){b[e]=a.info()});return b};b.get=function(b){return a[b]};return b}}function qe(){this.$get=["$cacheFactory",function(b){return b("templates")}]}
function hc(b,a){var c={},d="Directive",e=/^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,f=/(([\d\w\-_]+)(?:\:([^;]+))?;?)/,g=/^(on[a-z]+|formaction)$/;this.directive=function l(a,e){Ba(a,"directive");v(a)?(Db(e,"directiveFactory"),c.hasOwnProperty(a)||(c[a]=[],b.factory(a+d,["$injector","$exceptionHandler",function(b,d){var e=[];q(c[a],function(c,f){try{var g=b.invoke(c);P(g)?g={compile:aa(g)}:!g.compile&&g.link&&(g.compile=aa(g.link));g.priority=g.priority||0;g.index=f;g.name=g.name||a;g.require=g.require||
g.controller&&g.name;g.restrict=g.restrict||"A";e.push(g)}catch(l){d(l)}});return e}])),c[a].push(e)):q(a,Wb(l));return this};this.aHrefSanitizationWhitelist=function(b){return A(b)?(a.aHrefSanitizationWhitelist(b),this):a.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(b){return A(b)?(a.imgSrcSanitizationWhitelist(b),this):a.imgSrcSanitizationWhitelist()};this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope",
"$document","$sce","$animate","$$sanitizeUri",function(a,b,m,p,n,s,t,G,x,u,N,E){function z(a,b,c,d,e){a instanceof y||(a=y(a));q(a,function(b,c){3==b.nodeType&&b.nodeValue.match(/\S+/)&&(a[c]=y(b).wrap("<span></span>").parent()[0])});var f=K(a,b,a,c,d,e);ma(a,"ng-scope");return function(b,c,d){Db(b,"scope");var e=c?La.clone.call(a):a;q(d,function(a,b){e.data("$"+b+"Controller",a)});d=0;for(var g=e.length;d<g;d++){var l=e[d].nodeType;1!==l&&9!==l||e.eq(d).data("$scope",b)}c&&c(e,b);f&&f(b,e,e);return e}}
function ma(a,b){try{a.addClass(b)}catch(c){}}function K(a,b,c,d,e,f){function g(a,c,d,e){var f,k,m,p,n,s,t;f=c.length;var J=Array(f);for(n=0;n<f;n++)J[n]=c[n];t=n=0;for(s=l.length;n<s;t++)k=J[t],c=l[n++],f=l[n++],m=y(k),c?(c.scope?(p=a.$new(),m.data("$scope",p)):p=a,(m=c.transclude)||!e&&b?c(f,p,k,d,Q(a,m||b)):c(f,p,k,d,e)):f&&f(a,k.childNodes,r,e)}for(var l=[],k,m,p,n,s=0;s<a.length;s++)k=new Mb,m=da(a[s],[],k,0===s?d:r,e),(f=m.length?ia(m,a[s],k,b,c,null,[],[],f):null)&&f.scope&&ma(y(a[s]),"ng-scope"),
k=f&&f.terminal||!(p=a[s].childNodes)||!p.length?null:K(p,f?f.transclude:b),l.push(f,k),n=n||f||k,f=null;return n?g:null}function Q(a,b){return function(c,d,e){var f=!1;c||(c=a.$new(),f=c.$$transcluded=!0);d=b(c,d,e);if(f)d.on("$destroy",hb(c,c.$destroy));return d}}function da(a,b,c,d,g){var k=c.$attr,l;switch(a.nodeType){case 1:S(b,na(Ma(a).toLowerCase()),"E",d,g);var m,p,n;l=a.attributes;for(var s=0,t=l&&l.length;s<t;s++){var x=!1,G=!1;m=l[s];if(!U||8<=U||m.specified){p=m.name;n=na(p);X.test(n)&&
(p=ib(n.substr(6),"-"));var N=n.replace(/(Start|End)$/,"");n===N+"Start"&&(x=p,G=p.substr(0,p.length-5)+"end",p=p.substr(0,p.length-6));n=na(p.toLowerCase());k[n]=p;c[n]=m=ba(m.value);sc(a,n)&&(c[n]=!0);M(a,b,m,n);S(b,n,"A",d,g,x,G)}}a=a.className;if(v(a)&&""!==a)for(;l=f.exec(a);)n=na(l[2]),S(b,n,"C",d,g)&&(c[n]=ba(l[3])),a=a.substr(l.index+l[0].length);break;case 3:B(b,a.nodeValue);break;case 8:try{if(l=e.exec(a.nodeValue))n=na(l[1]),S(b,n,"M",d,g)&&(c[n]=ba(l[2]))}catch(u){}}b.sort(C);return b}
function H(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw ja("uterdir",b,c);1==a.nodeType&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--);d.push(a);a=a.nextSibling}while(0<e)}else d.push(a);return y(d)}function R(a,b,c){return function(d,e,f,g,l){e=H(e[0],b,c);return a(d,e,f,g,l)}}function ia(a,c,d,e,f,g,l,n,p){function x(a,b,c,d){if(a){c&&(a=R(a,c,d));a.require=F.require;if(Q===F||F.$$isolateScope)a=xc(a,{isolateScope:!0});l.push(a)}if(b){c&&(b=R(b,c,d));b.require=F.require;
if(Q===F||F.$$isolateScope)b=xc(b,{isolateScope:!0});n.push(b)}}function G(a,b,c){var d,e="data",f=!1;if(v(a)){for(;"^"==(d=a.charAt(0))||"?"==d;)a=a.substr(1),"^"==d&&(e="inheritedData"),f=f||"?"==d;d=null;c&&"data"===e&&(d=c[a]);d=d||b[e]("$"+a+"Controller");if(!d&&!f)throw ja("ctreq",a,B);}else L(a)&&(d=[],q(a,function(a){d.push(G(a,b,c))}));return d}function N(a,e,f,g,p){function x(a,b){var c;2>arguments.length&&(b=a,a=r);D&&(c=da);return p(a,b,c)}var u,J,z,E,R,H,da={},ob;u=c===f?d:Zb(d,new Mb(y(f),
d.$attr));J=u.$$element;if(Q){var S=/^\s*([@=&])(\??)\s*(\w*)\s*$/;g=y(f);H=e.$new(!0);ia&&ia===Q.$$originalDirective?g.data("$isolateScope",H):g.data("$isolateScopeNoTemplate",H);ma(g,"ng-isolate-scope");q(Q.scope,function(a,c){var d=a.match(S)||[],f=d[3]||c,g="?"==d[2],d=d[1],l,m,p,n;H.$$isolateBindings[c]=d+f;switch(d){case "@":u.$observe(f,function(a){H[c]=a});u.$$observers[f].$$scope=e;u[f]&&(H[c]=b(u[f])(e));break;case "=":if(g&&!u[f])break;m=s(u[f]);n=m.literal?za:function(a,b){return a===
b};p=m.assign||function(){l=H[c]=m(e);throw ja("nonassign",u[f],Q.name);};l=H[c]=m(e);H.$watch(function(){var a=m(e);n(a,H[c])||(n(a,l)?p(e,a=H[c]):H[c]=a);return l=a},null,m.literal);break;case "&":m=s(u[f]);H[c]=function(a){return m(e,a)};break;default:throw ja("iscp",Q.name,c,a);}})}ob=p&&x;K&&q(K,function(a){var b={$scope:a===Q||a.$$isolateScope?H:e,$element:J,$attrs:u,$transclude:ob},c;R=a.controller;"@"==R&&(R=u[a.name]);c=t(R,b);da[a.name]=c;D||J.data("$"+a.name+"Controller",c);a.controllerAs&&
(b.$scope[a.controllerAs]=c)});g=0;for(z=l.length;g<z;g++)try{E=l[g],E(E.isolateScope?H:e,J,u,E.require&&G(E.require,J,da),ob)}catch(F){m(F,ha(J))}g=e;Q&&(Q.template||null===Q.templateUrl)&&(g=H);a&&a(g,f.childNodes,r,p);for(g=n.length-1;0<=g;g--)try{E=n[g],E(E.isolateScope?H:e,J,u,E.require&&G(E.require,J,da),ob)}catch(A){m(A,ha(J))}}p=p||{};for(var u=-Number.MAX_VALUE,E,K=p.controllerDirectives,Q=p.newIsolateScopeDirective,ia=p.templateDirective,S=p.nonTlbTranscludeDirective,C=!1,D=p.hasElementTranscludeDirective,
Z=d.$$element=y(c),F,B,W,Ya=e,O,M=0,oa=a.length;M<oa;M++){F=a[M];var U=F.$$start,X=F.$$end;U&&(Z=H(c,U,X));W=r;if(u>F.priority)break;if(W=F.scope)E=E||F,F.templateUrl||(I("new/isolated scope",Q,F,Z),T(W)&&(Q=F));B=F.name;!F.templateUrl&&F.controller&&(W=F.controller,K=K||{},I("'"+B+"' controller",K[B],F,Z),K[B]=F);if(W=F.transclude)C=!0,F.$$tlb||(I("transclusion",S,F,Z),S=F),"element"==W?(D=!0,u=F.priority,W=H(c,U,X),Z=d.$$element=y(V.createComment(" "+B+": "+d[B]+" ")),c=Z[0],pb(f,y(sa.call(W,0)),
c),Ya=z(W,e,u,g&&g.name,{nonTlbTranscludeDirective:S})):(W=y(Jb(c)).contents(),Z.empty(),Ya=z(W,e));if(F.template)if(I("template",ia,F,Z),ia=F,W=P(F.template)?F.template(Z,d):F.template,W=Y(W),F.replace){g=F;W=Hb.test(W)?y(ba(W)):[];c=W[0];if(1!=W.length||1!==c.nodeType)throw ja("tplrt",B,"");pb(f,Z,c);oa={$attr:{}};W=da(c,[],oa);var $=a.splice(M+1,a.length-(M+1));Q&&wc(W);a=a.concat(W).concat($);A(d,oa);oa=a.length}else Z.html(W);if(F.templateUrl)I("template",ia,F,Z),ia=F,F.replace&&(g=F),N=w(a.splice(M,
a.length-M),Z,d,f,Ya,l,n,{controllerDirectives:K,newIsolateScopeDirective:Q,templateDirective:ia,nonTlbTranscludeDirective:S}),oa=a.length;else if(F.compile)try{O=F.compile(Z,d,Ya),P(O)?x(null,O,U,X):O&&x(O.pre,O.post,U,X)}catch(aa){m(aa,ha(Z))}F.terminal&&(N.terminal=!0,u=Math.max(u,F.priority))}N.scope=E&&!0===E.scope;N.transclude=C&&Ya;p.hasElementTranscludeDirective=D;return N}function wc(a){for(var b=0,c=a.length;b<c;b++)a[b]=Yb(a[b],{$$isolateScope:!0})}function S(b,e,f,g,k,p,n){if(e===k)return null;
k=null;if(c.hasOwnProperty(e)){var s;e=a.get(e+d);for(var t=0,x=e.length;t<x;t++)try{s=e[t],(g===r||g>s.priority)&&-1!=s.restrict.indexOf(f)&&(p&&(s=Yb(s,{$$start:p,$$end:n})),b.push(s),k=s)}catch(G){m(G)}}return k}function A(a,b){var c=b.$attr,d=a.$attr,e=a.$$element;q(a,function(d,e){"$"!=e.charAt(0)&&(b[e]&&(d+=("style"===e?";":" ")+b[e]),a.$set(e,d,!0,c[e]))});q(b,function(b,f){"class"==f?(ma(e,b),a["class"]=(a["class"]?a["class"]+" ":"")+b):"style"==f?(e.attr("style",e.attr("style")+";"+b),a.style=
(a.style?a.style+";":"")+b):"$"==f.charAt(0)||a.hasOwnProperty(f)||(a[f]=b,d[f]=c[f])})}function w(a,b,c,d,e,f,g,l){var k=[],m,s,t=b[0],x=a.shift(),G=D({},x,{templateUrl:null,transclude:null,replace:null,$$originalDirective:x}),N=P(x.templateUrl)?x.templateUrl(b,c):x.templateUrl;b.empty();p.get(u.getTrustedResourceUrl(N),{cache:n}).success(function(p){var n,u;p=Y(p);if(x.replace){p=Hb.test(p)?y(ba(p)):[];n=p[0];if(1!=p.length||1!==n.nodeType)throw ja("tplrt",x.name,N);p={$attr:{}};pb(d,b,n);var z=
da(n,[],p);T(x.scope)&&wc(z);a=z.concat(a);A(c,p)}else n=t,b.html(p);a.unshift(G);m=ia(a,n,c,e,b,x,f,g,l);q(d,function(a,c){a==n&&(d[c]=b[0])});for(s=K(b[0].childNodes,e);k.length;){p=k.shift();u=k.shift();var E=k.shift(),R=k.shift(),z=b[0];if(u!==t){var H=u.className;l.hasElementTranscludeDirective&&x.replace||(z=Jb(n));pb(E,y(u),z);ma(y(z),H)}u=m.transclude?Q(p,m.transclude):R;m(s,p,z,d,u)}k=null}).error(function(a,b,c,d){throw ja("tpload",d.url);});return function(a,b,c,d,e){k?(k.push(b),k.push(c),
k.push(d),k.push(e)):m(s,b,c,d,e)}}function C(a,b){var c=b.priority-a.priority;return 0!==c?c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function I(a,b,c,d){if(b)throw ja("multidir",b.name,c.name,a,ha(d));}function B(a,c){var d=b(c,!0);d&&a.push({priority:0,compile:aa(function(a,b){var c=b.parent(),e=c.data("$binding")||[];e.push(d);ma(c.data("$binding",e),"ng-binding");a.$watch(d,function(a){b[0].nodeValue=a})})})}function O(a,b){if("srcdoc"==b)return u.HTML;var c=Ma(a);if("xlinkHref"==b||
"FORM"==c&&"action"==b||"IMG"!=c&&("src"==b||"ngSrc"==b))return u.RESOURCE_URL}function M(a,c,d,e){var f=b(d,!0);if(f){if("multiple"===e&&"SELECT"===Ma(a))throw ja("selmulti",ha(a));c.push({priority:100,compile:function(){return{pre:function(c,d,l){d=l.$$observers||(l.$$observers={});if(g.test(e))throw ja("nodomevents");if(f=b(l[e],!0,O(a,e)))l[e]=f(c),(d[e]||(d[e]=[])).$$inter=!0,(l.$$observers&&l.$$observers[e].$$scope||c).$watch(f,function(a,b){"class"===e&&a!=b?l.$updateClass(a,b):l.$set(e,a)})}}}})}}
function pb(a,b,c){var d=b[0],e=b.length,f=d.parentNode,g,l;if(a)for(g=0,l=a.length;g<l;g++)if(a[g]==d){a[g++]=c;l=g+e-1;for(var k=a.length;g<k;g++,l++)l<k?a[g]=a[l]:delete a[g];a.length-=e-1;break}f&&f.replaceChild(c,d);a=V.createDocumentFragment();a.appendChild(d);c[y.expando]=d[y.expando];d=1;for(e=b.length;d<e;d++)f=b[d],y(f).remove(),a.appendChild(f),delete b[d];b[0]=c;b.length=1}function xc(a,b){return D(function(){return a.apply(null,arguments)},a,b)}var Mb=function(a,b){this.$$element=a;this.$attr=
b||{}};Mb.prototype={$normalize:na,$addClass:function(a){a&&0<a.length&&N.addClass(this.$$element,a)},$removeClass:function(a){a&&0<a.length&&N.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=yc(a,b),d=yc(b,a);0===c.length?N.removeClass(this.$$element,d):0===d.length?N.addClass(this.$$element,c):N.setClass(this.$$element,c,d)},$set:function(a,b,c,d){var e=sc(this.$$element[0],a);e&&(this.$$element.prop(a,b),d=e);this[a]=b;d?this.$attr[a]=d:(d=this.$attr[a])||(this.$attr[a]=d=ib(a,
"-"));e=Ma(this.$$element);if("A"===e&&"href"===a||"IMG"===e&&"src"===a)this[a]=b=E(b,"src"===a);!1!==c&&(null===b||b===r?this.$$element.removeAttr(d):this.$$element.attr(d,b));(c=this.$$observers)&&q(c[a],function(a){try{a(b)}catch(c){m(c)}})},$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers={}),e=d[a]||(d[a]=[]);e.push(b);G.$evalAsync(function(){e.$$inter||b(c[a])});return function(){Fa(e,b)}}};var Z=b.startSymbol(),oa=b.endSymbol(),Y="{{"==Z||"}}"==oa?Ea:function(a){return a.replace(/\{\{/g,
Z).replace(/}}/g,oa)},X=/^ngAttr[A-Z]/;return z}]}function na(b){return Ua(b.replace(He,""))}function yc(b,a){var c="",d=b.split(/\s+/),e=a.split(/\s+/),f=0;a:for(;f<d.length;f++){for(var g=d[f],h=0;h<e.length;h++)if(g==e[h])continue a;c+=(0<c.length?" ":"")+g}return c}function be(){var b={},a=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(a,d){Ba(a,"controller");T(a)?D(b,a):b[a]=d};this.$get=["$injector","$window",function(c,d){return function(e,f){var g,h,l;v(e)&&(g=e.match(a),h=g[1],l=g[3],e=
b.hasOwnProperty(h)?b[h]:gc(f.$scope,h,!0)||gc(d,h,!0),Sa(e,h,!0));g=c.instantiate(e,f,h);if(l){if(!f||"object"!=typeof f.$scope)throw B("$controller")("noscp",h||e.name,l);f.$scope[l]=g}return g}}]}function ce(){this.$get=["$window",function(b){return y(b.document)}]}function de(){this.$get=["$log",function(b){return function(a,c){b.error.apply(b,arguments)}}]}function zc(b){var a={},c,d,e;if(!b)return a;q(b.split("\n"),function(b){e=b.indexOf(":");c=I(ba(b.substr(0,e)));d=ba(b.substr(e+1));c&&(a[c]=
a[c]?a[c]+(", "+d):d)});return a}function Ac(b){var a=T(b)?b:r;return function(c){a||(a=zc(b));return c?a[I(c)]||null:a}}function Bc(b,a,c){if(P(c))return c(b,a);q(c,function(c){b=c(b,a)});return b}function ge(){var b=/^\s*(\[|\{[^\{])/,a=/[\}\]]\s*$/,c=/^\)\]\}',?\n/,d={"Content-Type":"application/json;charset=utf-8"},e=this.defaults={transformResponse:[function(d){v(d)&&(d=d.replace(c,""),b.test(d)&&a.test(d)&&(d=ac(d)));return d}],transformRequest:[function(a){return T(a)&&"[object File]"!==ya.call(a)&&
"[object Blob]"!==ya.call(a)?ta(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ca(d),put:ca(d),patch:ca(d)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},f=this.interceptors=[],g=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(a,b,c,d,p,n){function s(a){function c(a){var b=D({},a,{data:Bc(a.data,a.headers,d.transformResponse)});return 200<=a.status&&300>a.status?b:p.reject(b)}var d={method:"get",
transformRequest:e.transformRequest,transformResponse:e.transformResponse},f=function(a){function b(a){var c;q(a,function(b,d){P(b)&&(c=b(),null!=c?a[d]=c:delete a[d])})}var c=e.headers,d=D({},a.headers),f,g,c=D({},c.common,c[I(a.method)]);b(c);b(d);a:for(f in c){a=I(f);for(g in d)if(I(g)===a)continue a;d[f]=c[f]}return d}(a);D(d,a);d.headers=f;d.method=Ga(d.method);(a=Nb(d.url)?b.cookies()[d.xsrfCookieName||e.xsrfCookieName]:r)&&(f[d.xsrfHeaderName||e.xsrfHeaderName]=a);var g=[function(a){f=a.headers;
var b=Bc(a.data,Ac(f),a.transformRequest);C(a.data)&&q(f,function(a,b){"content-type"===I(b)&&delete f[b]});C(a.withCredentials)&&!C(e.withCredentials)&&(a.withCredentials=e.withCredentials);return t(a,b,f).then(c,c)},r],h=p.when(d);for(q(u,function(a){(a.request||a.requestError)&&g.unshift(a.request,a.requestError);(a.response||a.responseError)&&g.push(a.response,a.responseError)});g.length;){a=g.shift();var k=g.shift(),h=h.then(a,k)}h.success=function(a){h.then(function(b){a(b.data,b.status,b.headers,
d)});return h};h.error=function(a){h.then(null,function(b){a(b.data,b.status,b.headers,d)});return h};return h}function t(b,c,f){function g(a,b,c,e){u&&(200<=a&&300>a?u.put(r,[a,b,zc(c),e]):u.remove(r));l(b,a,c,e);d.$$phase||d.$apply()}function l(a,c,d,e){c=Math.max(c,0);(200<=c&&300>c?n.resolve:n.reject)({data:a,status:c,headers:Ac(d),config:b,statusText:e})}function k(){var a=gb(s.pendingRequests,b);-1!==a&&s.pendingRequests.splice(a,1)}var n=p.defer(),t=n.promise,u,q,r=G(b.url,b.params);s.pendingRequests.push(b);
t.then(k,k);(b.cache||e.cache)&&(!1!==b.cache&&"GET"==b.method)&&(u=T(b.cache)?b.cache:T(e.cache)?e.cache:x);if(u)if(q=u.get(r),A(q)){if(q.then)return q.then(k,k),q;L(q)?l(q[1],q[0],ca(q[2]),q[3]):l(q,200,{},"OK")}else u.put(r,t);C(q)&&a(b.method,r,c,g,f,b.timeout,b.withCredentials,b.responseType);return t}function G(a,b){if(!b)return a;var c=[];dd(b,function(a,b){null===a||C(a)||(L(a)||(a=[a]),q(a,function(a){T(a)&&(a=ta(a));c.push(Aa(b)+"="+Aa(a))}))});0<c.length&&(a+=(-1==a.indexOf("?")?"?":"&")+
c.join("&"));return a}var x=c("$http"),u=[];q(f,function(a){u.unshift(v(a)?n.get(a):n.invoke(a))});q(g,function(a,b){var c=v(a)?n.get(a):n.invoke(a);u.splice(b,0,{response:function(a){return c(p.when(a))},responseError:function(a){return c(p.reject(a))}})});s.pendingRequests=[];(function(a){q(arguments,function(a){s[a]=function(b,c){return s(D(c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){q(arguments,function(a){s[a]=function(b,c,d){return s(D(d||{},{method:a,url:b,data:c}))}})})("post",
"put");s.defaults=e;return s}]}function Ie(b){if(8>=U&&(!b.match(/^(get|post|head|put|delete|options)$/i)||!O.XMLHttpRequest))return new O.ActiveXObject("Microsoft.XMLHTTP");if(O.XMLHttpRequest)return new O.XMLHttpRequest;throw B("$httpBackend")("noxhr");}function he(){this.$get=["$browser","$window","$document",function(b,a,c){return Je(b,Ie,b.defer,a.angular.callbacks,c[0])}]}function Je(b,a,c,d,e){function f(a,b,c){var f=e.createElement("script"),g=null;f.type="text/javascript";f.src=a;f.async=
!0;g=function(a){Va(f,"load",g);Va(f,"error",g);e.body.removeChild(f);f=null;var h=-1,t="unknown";a&&("load"!==a.type||d[b].called||(a={type:"error"}),t=a.type,h="error"===a.type?404:200);c&&c(h,t)};qb(f,"load",g);qb(f,"error",g);e.body.appendChild(f);return g}var g=-1;return function(e,l,k,m,p,n,s,t){function G(){u=g;E&&E();z&&z.abort()}function x(a,d,e,f,g){K&&c.cancel(K);E=z=null;0===d&&(d=e?200:"file"==ua(l).protocol?404:0);a(1223===d?204:d,e,f,g||"");b.$$completeOutstandingRequest(w)}var u;b.$$incOutstandingRequestCount();
l=l||b.url();if("jsonp"==I(e)){var N="_"+(d.counter++).toString(36);d[N]=function(a){d[N].data=a;d[N].called=!0};var E=f(l.replace("JSON_CALLBACK","angular.callbacks."+N),N,function(a,b){x(m,a,d[N].data,"",b);d[N]=w})}else{var z=a(e);z.open(e,l,!0);q(p,function(a,b){A(a)&&z.setRequestHeader(b,a)});z.onreadystatechange=function(){if(z&&4==z.readyState){var a=null,b=null;u!==g&&(a=z.getAllResponseHeaders(),b="response"in z?z.response:z.responseText);x(m,u||z.status,b,a,z.statusText||"")}};s&&(z.withCredentials=
!0);if(t)try{z.responseType=t}catch(r){if("json"!==t)throw r;}z.send(k||null)}if(0<n)var K=c(G,n);else n&&n.then&&n.then(G)}}function ee(){var b="{{",a="}}";this.startSymbol=function(a){return a?(b=a,this):b};this.endSymbol=function(b){return b?(a=b,this):a};this.$get=["$parse","$exceptionHandler","$sce",function(c,d,e){function f(f,k,m){for(var p,n,s=0,t=[],G=f.length,x=!1,u=[];s<G;)-1!=(p=f.indexOf(b,s))&&-1!=(n=f.indexOf(a,p+g))?(s!=p&&t.push(f.substring(s,p)),t.push(s=c(x=f.substring(p+g,n))),
s.exp=x,s=n+h,x=!0):(s!=G&&t.push(f.substring(s)),s=G);(G=t.length)||(t.push(""),G=1);if(m&&1<t.length)throw Cc("noconcat",f);if(!k||x)return u.length=G,s=function(a){try{for(var b=0,c=G,g;b<c;b++)"function"==typeof(g=t[b])&&(g=g(a),g=m?e.getTrusted(m,g):e.valueOf(g),null===g||C(g)?g="":"string"!=typeof g&&(g=ta(g))),u[b]=g;return u.join("")}catch(h){a=Cc("interr",f,h.toString()),d(a)}},s.exp=f,s.parts=t,s}var g=b.length,h=a.length;f.startSymbol=function(){return b};f.endSymbol=function(){return a};
return f}]}function fe(){this.$get=["$rootScope","$window","$q",function(b,a,c){function d(d,g,h,l){var k=a.setInterval,m=a.clearInterval,p=c.defer(),n=p.promise,s=0,t=A(l)&&!l;h=A(h)?h:0;n.then(null,null,d);n.$$intervalId=k(function(){p.notify(s++);0<h&&s>=h&&(p.resolve(s),m(n.$$intervalId),delete e[n.$$intervalId]);t||b.$apply()},g);e[n.$$intervalId]=p;return n}var e={};d.cancel=function(a){return a&&a.$$intervalId in e?(e[a.$$intervalId].reject("canceled"),clearInterval(a.$$intervalId),delete e[a.$$intervalId],
!0):!1};return d}]}function nd(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"\u00a4",posSuf:"",negPre:"(\u00a4",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January February March April May June July August September October November December".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(b){return 1===b?"one":"other"}}}}function Dc(b){b=b.split("/");for(var a=b.length;a--;)b[a]=Bb(b[a]);return b.join("/")}function Ec(b,a,c){b=ua(b,c);a.$$protocol=
b.protocol;a.$$host=b.hostname;a.$$port=Y(b.port)||Ke[b.protocol]||null}function Fc(b,a,c){var d="/"!==b.charAt(0);d&&(b="/"+b);b=ua(b,c);a.$$path=decodeURIComponent(d&&"/"===b.pathname.charAt(0)?b.pathname.substring(1):b.pathname);a.$$search=cc(b.search);a.$$hash=decodeURIComponent(b.hash);a.$$path&&"/"!=a.$$path.charAt(0)&&(a.$$path="/"+a.$$path)}function pa(b,a){if(0===a.indexOf(b))return a.substr(b.length)}function Za(b){var a=b.indexOf("#");return-1==a?b:b.substr(0,a)}function Ob(b){return b.substr(0,
Za(b).lastIndexOf("/")+1)}function Gc(b,a){this.$$html5=!0;a=a||"";var c=Ob(b);Ec(b,this,b);this.$$parse=function(a){var e=pa(c,a);if(!v(e))throw Pb("ipthprfx",a,c);Fc(e,this,b);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var a=dc(this.$$search),b=this.$$hash?"#"+Bb(this.$$hash):"";this.$$url=Dc(this.$$path)+(a?"?"+a:"")+b;this.$$absUrl=c+this.$$url.substr(1)};this.$$rewrite=function(d){var e;if((e=pa(b,d))!==r)return d=e,(e=pa(a,e))!==r?c+(pa("/",e)||e):b+d;if((e=pa(c,
d))!==r)return c+e;if(c==d+"/")return c}}function Qb(b,a){var c=Ob(b);Ec(b,this,b);this.$$parse=function(d){var e=pa(b,d)||pa(c,d),e="#"==e.charAt(0)?pa(a,e):this.$$html5?e:"";if(!v(e))throw Pb("ihshprfx",d,a);Fc(e,this,b);d=this.$$path;var f=/^\/?.*?:(\/.*)/;0===e.indexOf(b)&&(e=e.replace(b,""));f.exec(e)||(d=(e=f.exec(d))?e[1]:d);this.$$path=d;this.$$compose()};this.$$compose=function(){var c=dc(this.$$search),e=this.$$hash?"#"+Bb(this.$$hash):"";this.$$url=Dc(this.$$path)+(c?"?"+c:"")+e;this.$$absUrl=
b+(this.$$url?a+this.$$url:"")};this.$$rewrite=function(a){if(Za(b)==Za(a))return a}}function Hc(b,a){this.$$html5=!0;Qb.apply(this,arguments);var c=Ob(b);this.$$rewrite=function(d){var e;if(b==Za(d))return d;if(e=pa(c,d))return b+a+e;if(c===d+"/")return c}}function rb(b){return function(){return this[b]}}function Ic(b,a){return function(c){if(C(c))return this[b];this[b]=a(c);this.$$compose();return this}}function ie(){var b="",a=!1;this.hashPrefix=function(a){return A(a)?(b=a,this):b};this.html5Mode=
function(b){return A(b)?(a=b,this):a};this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(c,d,e,f){function g(a){c.$broadcast("$locationChangeSuccess",h.absUrl(),a)}var h,l=d.baseHref(),k=d.url();a?(l=k.substring(0,k.indexOf("/",k.indexOf("//")+2))+(l||"/"),e=e.history?Gc:Hc):(l=Za(k),e=Qb);h=new e(l,"#"+b);h.$$parse(h.$$rewrite(k));f.on("click",function(a){if(!a.ctrlKey&&!a.metaKey&&2!=a.which){for(var b=y(a.target);"a"!==I(b[0].nodeName);)if(b[0]===f[0]||!(b=b.parent())[0])return;
var e=b.prop("href");T(e)&&"[object SVGAnimatedString]"===e.toString()&&(e=ua(e.animVal).href);var g=h.$$rewrite(e);e&&(!b.attr("target")&&g&&!a.isDefaultPrevented())&&(a.preventDefault(),g!=d.url()&&(h.$$parse(g),c.$apply(),O.angular["ff-684208-preventDefault"]=!0))}});h.absUrl()!=k&&d.url(h.absUrl(),!0);d.onUrlChange(function(a){h.absUrl()!=a&&(c.$evalAsync(function(){var b=h.absUrl();h.$$parse(a);c.$broadcast("$locationChangeStart",a,b).defaultPrevented?(h.$$parse(b),d.url(b)):g(b)}),c.$$phase||
c.$digest())});var m=0;c.$watch(function(){var a=d.url(),b=h.$$replace;m&&a==h.absUrl()||(m++,c.$evalAsync(function(){c.$broadcast("$locationChangeStart",h.absUrl(),a).defaultPrevented?h.$$parse(a):(d.url(h.absUrl(),b),g(a))}));h.$$replace=!1;return m});return h}]}function je(){var b=!0,a=this;this.debugEnabled=function(a){return A(a)?(b=a,this):b};this.$get=["$window",function(c){function d(a){a instanceof Error&&(a.stack?a=a.message&&-1===a.stack.indexOf(a.message)?"Error: "+a.message+"\n"+a.stack:
a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function e(a){var b=c.console||{},e=b[a]||b.log||w;a=!1;try{a=!!e.apply}catch(l){}return a?function(){var a=[];q(arguments,function(b){a.push(d(b))});return e.apply(b,a)}:function(a,b){e(a,null==b?"":b)}}return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){b&&c.apply(a,arguments)}}()}}]}function fa(b,a){if("constructor"===b)throw Ca("isecfld",a);return b}function $a(b,
a){if(b){if(b.constructor===b)throw Ca("isecfn",a);if(b.document&&b.location&&b.alert&&b.setInterval)throw Ca("isecwindow",a);if(b.children&&(b.nodeName||b.prop&&b.attr&&b.find))throw Ca("isecdom",a);}return b}function sb(b,a,c,d,e){e=e||{};a=a.split(".");for(var f,g=0;1<a.length;g++){f=fa(a.shift(),d);var h=b[f];h||(h={},b[f]=h);b=h;b.then&&e.unwrapPromises&&(va(d),"$$v"in b||function(a){a.then(function(b){a.$$v=b})}(b),b.$$v===r&&(b.$$v={}),b=b.$$v)}f=fa(a.shift(),d);return b[f]=c}function Jc(b,
a,c,d,e,f,g){fa(b,f);fa(a,f);fa(c,f);fa(d,f);fa(e,f);return g.unwrapPromises?function(g,l){var k=l&&l.hasOwnProperty(b)?l:g,m;if(null==k)return k;(k=k[b])&&k.then&&(va(f),"$$v"in k||(m=k,m.$$v=r,m.then(function(a){m.$$v=a})),k=k.$$v);if(!a)return k;if(null==k)return r;(k=k[a])&&k.then&&(va(f),"$$v"in k||(m=k,m.$$v=r,m.then(function(a){m.$$v=a})),k=k.$$v);if(!c)return k;if(null==k)return r;(k=k[c])&&k.then&&(va(f),"$$v"in k||(m=k,m.$$v=r,m.then(function(a){m.$$v=a})),k=k.$$v);if(!d)return k;if(null==
k)return r;(k=k[d])&&k.then&&(va(f),"$$v"in k||(m=k,m.$$v=r,m.then(function(a){m.$$v=a})),k=k.$$v);if(!e)return k;if(null==k)return r;(k=k[e])&&k.then&&(va(f),"$$v"in k||(m=k,m.$$v=r,m.then(function(a){m.$$v=a})),k=k.$$v);return k}:function(f,g){var k=g&&g.hasOwnProperty(b)?g:f;if(null==k)return k;k=k[b];if(!a)return k;if(null==k)return r;k=k[a];if(!c)return k;if(null==k)return r;k=k[c];if(!d)return k;if(null==k)return r;k=k[d];return e?null==k?r:k=k[e]:k}}function Le(b,a){fa(b,a);return function(a,
d){return null==a?r:(d&&d.hasOwnProperty(b)?d:a)[b]}}function Me(b,a,c){fa(b,c);fa(a,c);return function(c,e){if(null==c)return r;c=(e&&e.hasOwnProperty(b)?e:c)[b];return null==c?r:c[a]}}function Kc(b,a,c){if(Rb.hasOwnProperty(b))return Rb[b];var d=b.split("."),e=d.length,f;if(a.unwrapPromises||1!==e)if(a.unwrapPromises||2!==e)if(a.csp)f=6>e?Jc(d[0],d[1],d[2],d[3],d[4],c,a):function(b,f){var g=0,h;do h=Jc(d[g++],d[g++],d[g++],d[g++],d[g++],c,a)(b,f),f=r,b=h;while(g<e);return h};else{var g="var p;\n";
q(d,function(b,d){fa(b,c);g+="if(s == null) return undefined;\ns="+(d?"s":'((k&&k.hasOwnProperty("'+b+'"))?k:s)')+'["'+b+'"];\n'+(a.unwrapPromises?'if (s && s.then) {\n pw("'+c.replace(/(["\r\n])/g,"\\$1")+'");\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v=v;});\n}\n s=s.$$v\n}\n':"")});var g=g+"return s;",h=new Function("s","k","pw",g);h.toString=aa(g);f=a.unwrapPromises?function(a,b){return h(a,b,va)}:h}else f=Me(d[0],d[1],c);else f=Le(d[0],c);"hasOwnProperty"!==
b&&(Rb[b]=f);return f}function ke(){var b={},a={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0};this.unwrapPromises=function(b){return A(b)?(a.unwrapPromises=!!b,this):a.unwrapPromises};this.logPromiseWarnings=function(b){return A(b)?(a.logPromiseWarnings=b,this):a.logPromiseWarnings};this.$get=["$filter","$sniffer","$log",function(c,d,e){a.csp=d.csp;va=function(b){a.logPromiseWarnings&&!Lc.hasOwnProperty(b)&&(Lc[b]=!0,e.warn("[$parse] Promise found in the expression `"+b+"`. Automatic unwrapping of promises in Angular expressions is deprecated."))};
return function(d){var e;switch(typeof d){case "string":if(b.hasOwnProperty(d))return b[d];e=new Sb(a);e=(new ab(e,c,a)).parse(d,!1);"hasOwnProperty"!==d&&(b[d]=e);return e;case "function":return d;default:return w}}}]}function me(){this.$get=["$rootScope","$exceptionHandler",function(b,a){return Ne(function(a){b.$evalAsync(a)},a)}]}function Ne(b,a){function c(a){return a}function d(a){return g(a)}var e=function(){var g=[],k,m;return m={resolve:function(a){if(g){var c=g;g=r;k=f(a);c.length&&b(function(){for(var a,
b=0,d=c.length;b<d;b++)a=c[b],k.then(a[0],a[1],a[2])})}},reject:function(a){m.resolve(h(a))},notify:function(a){if(g){var c=g;g.length&&b(function(){for(var b,d=0,e=c.length;d<e;d++)b=c[d],b[2](a)})}},promise:{then:function(b,f,h){var m=e(),G=function(d){try{m.resolve((P(b)?b:c)(d))}catch(e){m.reject(e),a(e)}},x=function(b){try{m.resolve((P(f)?f:d)(b))}catch(c){m.reject(c),a(c)}},u=function(b){try{m.notify((P(h)?h:c)(b))}catch(d){a(d)}};g?g.push([G,x,u]):k.then(G,x,u);return m.promise},"catch":function(a){return this.then(null,
a)},"finally":function(a){function b(a,c){var d=e();c?d.resolve(a):d.reject(a);return d.promise}function d(e,f){var g=null;try{g=(a||c)()}catch(h){return b(h,!1)}return g&&P(g.then)?g.then(function(){return b(e,f)},function(a){return b(a,!1)}):b(e,f)}return this.then(function(a){return d(a,!0)},function(a){return d(a,!1)})}}}},f=function(a){return a&&P(a.then)?a:{then:function(c){var d=e();b(function(){d.resolve(c(a))});return d.promise}}},g=function(a){var b=e();b.reject(a);return b.promise},h=function(c){return{then:function(f,
g){var h=e();b(function(){try{h.resolve((P(g)?g:d)(c))}catch(b){h.reject(b),a(b)}});return h.promise}}};return{defer:e,reject:g,when:function(h,k,m,p){var n=e(),s,t=function(b){try{return(P(k)?k:c)(b)}catch(d){return a(d),g(d)}},G=function(b){try{return(P(m)?m:d)(b)}catch(c){return a(c),g(c)}},x=function(b){try{return(P(p)?p:c)(b)}catch(d){a(d)}};b(function(){f(h).then(function(a){s||(s=!0,n.resolve(f(a).then(t,G,x)))},function(a){s||(s=!0,n.resolve(G(a)))},function(a){s||n.notify(x(a))})});return n.promise},
all:function(a){var b=e(),c=0,d=L(a)?[]:{};q(a,function(a,e){c++;f(a).then(function(a){d.hasOwnProperty(e)||(d[e]=a,--c||b.resolve(d))},function(a){d.hasOwnProperty(e)||b.reject(a)})});0===c&&b.resolve(d);return b.promise}}}function te(){this.$get=["$window","$timeout",function(b,a){var c=b.requestAnimationFrame||b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame,d=b.cancelAnimationFrame||b.webkitCancelAnimationFrame||b.mozCancelAnimationFrame||b.webkitCancelRequestAnimationFrame,e=!!c,f=e?
function(a){var b=c(a);return function(){d(b)}}:function(b){var c=a(b,16.66,!1);return function(){a.cancel(c)}};f.supported=e;return f}]}function le(){var b=10,a=B("$rootScope"),c=null;this.digestTtl=function(a){arguments.length&&(b=a);return b};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(d,e,f,g){function h(){this.$id=eb();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this["this"]=this.$root=this;
this.$$destroyed=!1;this.$$asyncQueue=[];this.$$postDigestQueue=[];this.$$listeners={};this.$$listenerCount={};this.$$isolateBindings={}}function l(b){if(n.$$phase)throw a("inprog",n.$$phase);n.$$phase=b}function k(a,b){var c=f(a);Sa(c,b);return c}function m(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&delete a.$$listenerCount[c];while(a=a.$parent)}function p(){}h.prototype={constructor:h,$new:function(a){a?(a=new h,a.$root=this.$root,a.$$asyncQueue=this.$$asyncQueue,a.$$postDigestQueue=
this.$$postDigestQueue):(a=function(){},a.prototype=this,a=new a,a.$id=eb());a["this"]=a;a.$$listeners={};a.$$listenerCount={};a.$parent=this;a.$$watchers=a.$$nextSibling=a.$$childHead=a.$$childTail=null;a.$$prevSibling=this.$$childTail;this.$$childHead?this.$$childTail=this.$$childTail.$$nextSibling=a:this.$$childHead=this.$$childTail=a;return a},$watch:function(a,b,d){var e=k(a,"watch"),f=this.$$watchers,g={fn:b,last:p,get:e,exp:a,eq:!!d};c=null;if(!P(b)){var h=k(b||w,"listener");g.fn=function(a,
b,c){h(c)}}if("string"==typeof a&&e.constant){var l=g.fn;g.fn=function(a,b,c){l.call(this,a,b,c);Fa(f,g)}}f||(f=this.$$watchers=[]);f.unshift(g);return function(){Fa(f,g);c=null}},$watchCollection:function(a,b){var c=this,d,e,g,h=1<b.length,k=0,l=f(a),m=[],n={},p=!0,q=0;return this.$watch(function(){d=l(c);var a,b;if(T(d))if(db(d))for(e!==m&&(e=m,q=e.length=0,k++),a=d.length,q!==a&&(k++,e.length=q=a),b=0;b<a;b++)e[b]!==e[b]&&d[b]!==d[b]||e[b]===d[b]||(k++,e[b]=d[b]);else{e!==n&&(e=n={},q=0,k++);a=
0;for(b in d)d.hasOwnProperty(b)&&(a++,e.hasOwnProperty(b)?e[b]!==d[b]&&(k++,e[b]=d[b]):(q++,e[b]=d[b],k++));if(q>a)for(b in k++,e)e.hasOwnProperty(b)&&!d.hasOwnProperty(b)&&(q--,delete e[b])}else e!==d&&(e=d,k++);return k},function(){p?(p=!1,b(d,d,c)):b(d,g,c);if(h)if(T(d))if(db(d)){g=Array(d.length);for(var a=0;a<d.length;a++)g[a]=d[a]}else for(a in g={},d)Mc.call(d,a)&&(g[a]=d[a]);else g=d})},$digest:function(){var d,f,g,h,k=this.$$asyncQueue,m=this.$$postDigestQueue,q,z,r=b,K,Q=[],y,H,R;l("$digest");
c=null;do{z=!1;for(K=this;k.length;){try{R=k.shift(),R.scope.$eval(R.expression)}catch(A){n.$$phase=null,e(A)}c=null}a:do{if(h=K.$$watchers)for(q=h.length;q--;)try{if(d=h[q])if((f=d.get(K))!==(g=d.last)&&!(d.eq?za(f,g):"number"==typeof f&&"number"==typeof g&&isNaN(f)&&isNaN(g)))z=!0,c=d,d.last=d.eq?ca(f):f,d.fn(f,g===p?f:g,K),5>r&&(y=4-r,Q[y]||(Q[y]=[]),H=P(d.exp)?"fn: "+(d.exp.name||d.exp.toString()):d.exp,H+="; newVal: "+ta(f)+"; oldVal: "+ta(g),Q[y].push(H));else if(d===c){z=!1;break a}}catch(v){n.$$phase=
null,e(v)}if(!(h=K.$$childHead||K!==this&&K.$$nextSibling))for(;K!==this&&!(h=K.$$nextSibling);)K=K.$parent}while(K=h);if((z||k.length)&&!r--)throw n.$$phase=null,a("infdig",b,ta(Q));}while(z||k.length);for(n.$$phase=null;m.length;)try{m.shift()()}catch(S){e(S)}},$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this!==n&&(q(this.$$listenerCount,hb(null,m,this)),a.$$childHead==this&&(a.$$childHead=this.$$nextSibling),a.$$childTail==this&&
(a.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=null,this.$$listeners={},this.$$watchers=this.$$asyncQueue=this.$$postDigestQueue=[],this.$destroy=this.$digest=this.$apply=w,this.$on=this.$watch=function(){return w})}},$eval:function(a,b){return f(a)(this,b)},$evalAsync:function(a){n.$$phase||
n.$$asyncQueue.length||g.defer(function(){n.$$asyncQueue.length&&n.$digest()});this.$$asyncQueue.push({scope:this,expression:a})},$$postDigest:function(a){this.$$postDigestQueue.push(a)},$apply:function(a){try{return l("$apply"),this.$eval(a)}catch(b){e(b)}finally{n.$$phase=null;try{n.$digest()}catch(c){throw e(c),c;}}},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]);c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++;while(d=d.$parent);
var e=this;return function(){c[gb(c,b)]=null;m(e,1,a)}},$emit:function(a,b){var c=[],d,f=this,g=!1,h={name:a,targetScope:f,stopPropagation:function(){g=!0},preventDefault:function(){h.defaultPrevented=!0},defaultPrevented:!1},k=[h].concat(sa.call(arguments,1)),l,m;do{d=f.$$listeners[a]||c;h.currentScope=f;l=0;for(m=d.length;l<m;l++)if(d[l])try{d[l].apply(null,k)}catch(n){e(n)}else d.splice(l,1),l--,m--;if(g)break;f=f.$parent}while(f);return h},$broadcast:function(a,b){for(var c=this,d=this,f={name:a,
targetScope:this,preventDefault:function(){f.defaultPrevented=!0},defaultPrevented:!1},g=[f].concat(sa.call(arguments,1)),h,k;c=d;){f.currentScope=c;d=c.$$listeners[a]||[];h=0;for(k=d.length;h<k;h++)if(d[h])try{d[h].apply(null,g)}catch(l){e(l)}else d.splice(h,1),h--,k--;if(!(d=c.$$listenerCount[a]&&c.$$childHead||c!==this&&c.$$nextSibling))for(;c!==this&&!(d=c.$$nextSibling);)c=c.$parent}return f}};var n=new h;return n}]}function od(){var b=/^\s*(https?|ftp|mailto|tel|file):/,a=/^\s*(https?|ftp|file|blob):|data:image\//;
this.aHrefSanitizationWhitelist=function(a){return A(a)?(b=a,this):b};this.imgSrcSanitizationWhitelist=function(b){return A(b)?(a=b,this):a};this.$get=function(){return function(c,d){var e=d?a:b,f;if(!U||8<=U)if(f=ua(c).href,""!==f&&!f.match(e))return"unsafe:"+f;return c}}}function Oe(b){if("self"===b)return b;if(v(b)){if(-1<b.indexOf("***"))throw wa("iwcard",b);b=b.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08").replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*");return RegExp("^"+
b+"$")}if(fb(b))return RegExp("^"+b.source+"$");throw wa("imatcher");}function Nc(b){var a=[];A(b)&&q(b,function(b){a.push(Oe(b))});return a}function oe(){this.SCE_CONTEXTS=ga;var b=["self"],a=[];this.resourceUrlWhitelist=function(a){arguments.length&&(b=Nc(a));return b};this.resourceUrlBlacklist=function(b){arguments.length&&(a=Nc(b));return a};this.$get=["$injector",function(c){function d(a){var b=function(a){this.$$unwrapTrustedValue=function(){return a}};a&&(b.prototype=new a);b.prototype.valueOf=
function(){return this.$$unwrapTrustedValue()};b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()};return b}var e=function(a){throw wa("unsafe");};c.has("$sanitize")&&(e=c.get("$sanitize"));var f=d(),g={};g[ga.HTML]=d(f);g[ga.CSS]=d(f);g[ga.URL]=d(f);g[ga.JS]=d(f);g[ga.RESOURCE_URL]=d(g[ga.URL]);return{trustAs:function(a,b){var c=g.hasOwnProperty(a)?g[a]:null;if(!c)throw wa("icontext",a,b);if(null===b||b===r||""===b)return b;if("string"!==typeof b)throw wa("itype",a);return new c(b)},
getTrusted:function(c,d){if(null===d||d===r||""===d)return d;var f=g.hasOwnProperty(c)?g[c]:null;if(f&&d instanceof f)return d.$$unwrapTrustedValue();if(c===ga.RESOURCE_URL){var f=ua(d.toString()),m,p,n=!1;m=0;for(p=b.length;m<p;m++)if("self"===b[m]?Nb(f):b[m].exec(f.href)){n=!0;break}if(n)for(m=0,p=a.length;m<p;m++)if("self"===a[m]?Nb(f):a[m].exec(f.href)){n=!1;break}if(n)return d;throw wa("insecurl",d.toString());}if(c===ga.HTML)return e(d);throw wa("unsafe");},valueOf:function(a){return a instanceof
f?a.$$unwrapTrustedValue():a}}}]}function ne(){var b=!0;this.enabled=function(a){arguments.length&&(b=!!a);return b};this.$get=["$parse","$sniffer","$sceDelegate",function(a,c,d){if(b&&c.msie&&8>c.msieDocumentMode)throw wa("iequirks");var e=ca(ga);e.isEnabled=function(){return b};e.trustAs=d.trustAs;e.getTrusted=d.getTrusted;e.valueOf=d.valueOf;b||(e.trustAs=e.getTrusted=function(a,b){return b},e.valueOf=Ea);e.parseAs=function(b,c){var d=a(c);return d.literal&&d.constant?d:function(a,c){return e.getTrusted(b,
d(a,c))}};var f=e.parseAs,g=e.getTrusted,h=e.trustAs;q(ga,function(a,b){var c=I(b);e[Ua("parse_as_"+c)]=function(b){return f(a,b)};e[Ua("get_trusted_"+c)]=function(b){return g(a,b)};e[Ua("trust_as_"+c)]=function(b){return h(a,b)}});return e}]}function pe(){this.$get=["$window","$document",function(b,a){var c={},d=Y((/android (\d+)/.exec(I((b.navigator||{}).userAgent))||[])[1]),e=/Boxee/i.test((b.navigator||{}).userAgent),f=a[0]||{},g=f.documentMode,h,l=/^(Moz|webkit|O|ms)(?=[A-Z])/,k=f.body&&f.body.style,
m=!1,p=!1;if(k){for(var n in k)if(m=l.exec(n)){h=m[0];h=h.substr(0,1).toUpperCase()+h.substr(1);break}h||(h="WebkitOpacity"in k&&"webkit");m=!!("transition"in k||h+"Transition"in k);p=!!("animation"in k||h+"Animation"in k);!d||m&&p||(m=v(f.body.style.webkitTransition),p=v(f.body.style.webkitAnimation))}return{history:!(!b.history||!b.history.pushState||4>d||e),hashchange:"onhashchange"in b&&(!g||7<g),hasEvent:function(a){if("input"==a&&9==U)return!1;if(C(c[a])){var b=f.createElement("div");c[a]="on"+
a in b}return c[a]},csp:$b(),vendorPrefix:h,transitions:m,animations:p,android:d,msie:U,msieDocumentMode:g}}]}function re(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(b,a,c,d){function e(e,h,l){var k=c.defer(),m=k.promise,p=A(l)&&!l;h=a.defer(function(){try{k.resolve(e())}catch(a){k.reject(a),d(a)}finally{delete f[m.$$timeoutId]}p||b.$apply()},h);m.$$timeoutId=h;f[h]=k;return m}var f={};e.cancel=function(b){return b&&b.$$timeoutId in f?(f[b.$$timeoutId].reject("canceled"),
delete f[b.$$timeoutId],a.defer.cancel(b.$$timeoutId)):!1};return e}]}function ua(b,a){var c=b;U&&(X.setAttribute("href",c),c=X.href);X.setAttribute("href",c);return{href:X.href,protocol:X.protocol?X.protocol.replace(/:$/,""):"",host:X.host,search:X.search?X.search.replace(/^\?/,""):"",hash:X.hash?X.hash.replace(/^#/,""):"",hostname:X.hostname,port:X.port,pathname:"/"===X.pathname.charAt(0)?X.pathname:"/"+X.pathname}}function Nb(b){b=v(b)?ua(b):b;return b.protocol===Oc.protocol&&b.host===Oc.host}
function se(){this.$get=aa(O)}function lc(b){function a(d,e){if(T(d)){var f={};q(d,function(b,c){f[c]=a(c,b)});return f}return b.factory(d+c,e)}var c="Filter";this.register=a;this.$get=["$injector",function(a){return function(b){return a.get(b+c)}}];a("currency",Pc);a("date",Qc);a("filter",Pe);a("json",Qe);a("limitTo",Re);a("lowercase",Se);a("number",Rc);a("orderBy",Sc);a("uppercase",Te)}function Pe(){return function(b,a,c){if(!L(b))return b;var d=typeof c,e=[];e.check=function(a){for(var b=0;b<e.length;b++)if(!e[b](a))return!1;
return!0};"function"!==d&&(c="boolean"===d&&c?function(a,b){return Ra.equals(a,b)}:function(a,b){if(a&&b&&"object"===typeof a&&"object"===typeof b){for(var d in a)if("$"!==d.charAt(0)&&Mc.call(a,d)&&c(a[d],b[d]))return!0;return!1}b=(""+b).toLowerCase();return-1<(""+a).toLowerCase().indexOf(b)});var f=function(a,b){if("string"==typeof b&&"!"===b.charAt(0))return!f(a,b.substr(1));switch(typeof a){case "boolean":case "number":case "string":return c(a,b);case "object":switch(typeof b){case "object":return c(a,
b);default:for(var d in a)if("$"!==d.charAt(0)&&f(a[d],b))return!0}return!1;case "array":for(d=0;d<a.length;d++)if(f(a[d],b))return!0;return!1;default:return!1}};switch(typeof a){case "boolean":case "number":case "string":a={$:a};case "object":for(var g in a)(function(b){"undefined"!=typeof a[b]&&e.push(function(c){return f("$"==b?c:c&&c[b],a[b])})})(g);break;case "function":e.push(a);break;default:return b}d=[];for(g=0;g<b.length;g++){var h=b[g];e.check(h)&&d.push(h)}return d}}function Pc(b){var a=
b.NUMBER_FORMATS;return function(b,d){C(d)&&(d=a.CURRENCY_SYM);return Tc(b,a.PATTERNS[1],a.GROUP_SEP,a.DECIMAL_SEP,2).replace(/\u00A4/g,d)}}function Rc(b){var a=b.NUMBER_FORMATS;return function(b,d){return Tc(b,a.PATTERNS[0],a.GROUP_SEP,a.DECIMAL_SEP,d)}}function Tc(b,a,c,d,e){if(null==b||!isFinite(b)||T(b))return"";var f=0>b;b=Math.abs(b);var g=b+"",h="",l=[],k=!1;if(-1!==g.indexOf("e")){var m=g.match(/([\d\.]+)e(-?)(\d+)/);m&&"-"==m[2]&&m[3]>e+1?g="0":(h=g,k=!0)}if(k)0<e&&(-1<b&&1>b)&&(h=b.toFixed(e));
else{g=(g.split(Uc)[1]||"").length;C(e)&&(e=Math.min(Math.max(a.minFrac,g),a.maxFrac));g=Math.pow(10,e);b=Math.round(b*g)/g;b=(""+b).split(Uc);g=b[0];b=b[1]||"";var m=0,p=a.lgSize,n=a.gSize;if(g.length>=p+n)for(m=g.length-p,k=0;k<m;k++)0===(m-k)%n&&0!==k&&(h+=c),h+=g.charAt(k);for(k=m;k<g.length;k++)0===(g.length-k)%p&&0!==k&&(h+=c),h+=g.charAt(k);for(;b.length<e;)b+="0";e&&"0"!==e&&(h+=d+b.substr(0,e))}l.push(f?a.negPre:a.posPre);l.push(h);l.push(f?a.negSuf:a.posSuf);return l.join("")}function tb(b,
a,c){var d="";0>b&&(d="-",b=-b);for(b=""+b;b.length<a;)b="0"+b;c&&(b=b.substr(b.length-a));return d+b}function $(b,a,c,d){c=c||0;return function(e){e=e["get"+b]();if(0<c||e>-c)e+=c;0===e&&-12==c&&(e=12);return tb(e,a,d)}}function ub(b,a){return function(c,d){var e=c["get"+b](),f=Ga(a?"SHORT"+b:b);return d[f][e]}}function Vc(b){var a=(new Date(b,0,1)).getDay();return new Date(b,0,(4>=a?5:12)-a)}function Wc(b){return function(a){var c=Vc(a.getFullYear());a=+new Date(a.getFullYear(),a.getMonth(),a.getDate()+
(4-a.getDay()))-+c;a=1+Math.round(a/6048E5);return tb(a,b)}}function Qc(b){function a(a){var b;if(b=a.match(c)){a=new Date(0);var f=0,g=0,h=b[8]?a.setUTCFullYear:a.setFullYear,l=b[8]?a.setUTCHours:a.setHours;b[9]&&(f=Y(b[9]+b[10]),g=Y(b[9]+b[11]));h.call(a,Y(b[1]),Y(b[2])-1,Y(b[3]));f=Y(b[4]||0)-f;g=Y(b[5]||0)-g;h=Y(b[6]||0);b=Math.round(1E3*parseFloat("0."+(b[7]||0)));l.call(a,f,g,h,b)}return a}var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
return function(c,e){var f="",g=[],h,l;e=e||"mediumDate";e=b.DATETIME_FORMATS[e]||e;v(c)&&(c=Ue.test(c)?Y(c):a(c));Ab(c)&&(c=new Date(c));if(!ra(c))return c;for(;e;)(l=Ve.exec(e))?(g=g.concat(sa.call(l,1)),e=g.pop()):(g.push(e),e=null);q(g,function(a){h=We[a];f+=h?h(c,b.DATETIME_FORMATS):a.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return f}}function Qe(){return function(b){return ta(b,!0)}}function Re(){return function(b,a){if(!L(b)&&!v(b))return b;a=Infinity===Math.abs(Number(a))?Number(a):Y(a);
if(v(b))return a?0<=a?b.slice(0,a):b.slice(a,b.length):"";var c=[],d,e;a>b.length?a=b.length:a<-b.length&&(a=-b.length);0<a?(d=0,e=a):(d=b.length+a,e=b.length);for(;d<e;d++)c.push(b[d]);return c}}function Sc(b){return function(a,c,d){function e(a,b){return Qa(b)?function(b,c){return a(c,b)}:a}function f(a,b){var c=typeof a,d=typeof b;return c==d?("string"==c&&(a=a.toLowerCase(),b=b.toLowerCase()),a===b?0:a<b?-1:1):c<d?-1:1}if(!L(a)||!c)return a;c=L(c)?c:[c];c=fd(c,function(a){var c=!1,d=a||Ea;if(v(a)){if("+"==
a.charAt(0)||"-"==a.charAt(0))c="-"==a.charAt(0),a=a.substring(1);d=b(a);if(d.constant){var g=d();return e(function(a,b){return f(a[g],b[g])},c)}}return e(function(a,b){return f(d(a),d(b))},c)});for(var g=[],h=0;h<a.length;h++)g.push(a[h]);return g.sort(e(function(a,b){for(var d=0;d<c.length;d++){var e=c[d](a,b);if(0!==e)return e}return 0},d))}}function xa(b){P(b)&&(b={link:b});b.restrict=b.restrict||"AC";return aa(b)}function Xc(b,a,c,d){function e(a,c){c=c?"-"+ib(c,"-"):"";d.removeClass(b,(a?vb:
wb)+c);d.addClass(b,(a?wb:vb)+c)}var f=this,g=b.parent().controller("form")||xb,h=0,l=f.$error={},k=[];f.$name=a.name||a.ngForm;f.$dirty=!1;f.$pristine=!0;f.$valid=!0;f.$invalid=!1;g.$addControl(f);b.addClass(Na);e(!0);f.$addControl=function(a){Ba(a.$name,"input");k.push(a);a.$name&&(f[a.$name]=a)};f.$removeControl=function(a){a.$name&&f[a.$name]===a&&delete f[a.$name];q(l,function(b,c){f.$setValidity(c,!0,a)});Fa(k,a)};f.$setValidity=function(a,b,c){var d=l[a];if(b)d&&(Fa(d,c),d.length||(h--,h||
(e(b),f.$valid=!0,f.$invalid=!1),l[a]=!1,e(!0,a),g.$setValidity(a,!0,f)));else{h||e(b);if(d){if(-1!=gb(d,c))return}else l[a]=d=[],h++,e(!1,a),g.$setValidity(a,!1,f);d.push(c);f.$valid=!1;f.$invalid=!0}};f.$setDirty=function(){d.removeClass(b,Na);d.addClass(b,yb);f.$dirty=!0;f.$pristine=!1;g.$setDirty()};f.$setPristine=function(){d.removeClass(b,yb);d.addClass(b,Na);f.$dirty=!1;f.$pristine=!0;q(k,function(a){a.$setPristine()})}}function qa(b,a,c,d){b.$setValidity(a,c);return c?d:r}function Xe(b,a,
c){var d=c.prop("validity");T(d)&&b.$parsers.push(function(c){if(b.$error[a]||!(d.badInput||d.customError||d.typeMismatch)||d.valueMissing)return c;b.$setValidity(a,!1)})}function bb(b,a,c,d,e,f){var g=a.prop("validity");if(!e.android){var h=!1;a.on("compositionstart",function(a){h=!0});a.on("compositionend",function(){h=!1;l()})}var l=function(e){if(!h){var f=a.val(),k=e&&e.type;Qa(c.ngTrim||"T")&&(f=ba(f));if(d.$viewValue!==f||g&&""===f&&!g.valueMissing)b.$$phase?d.$setViewValue(f,k):b.$apply(function(){d.$setViewValue(f,
k)})}};if(d.$options&&d.$options.updateOn)a.on(d.$options.updateOn,l);if(!d.$options||d.$options.updateOnDefault){if(e.hasEvent("input"))a.on("input",l);else{var k,m=function(a){k||(k=f.defer(function(){l(a);k=null}))};a.on("keydown",function(a){var b=a.keyCode;91===b||(15<b&&19>b||37<=b&&40>=b)||m(a)});if(e.hasEvent("paste"))a.on("paste cut",m)}a.on("change",l)}d.$render=function(){a.val(d.$isEmpty(d.$viewValue)?"":d.$viewValue)};var p=c.ngPattern;p&&((e=p.match(/^\/(.*)\/([gim]*)$/))?(p=RegExp(e[1],
e[2]),e=function(a){return qa(d,"pattern",d.$isEmpty(a)||p.test(a),a)}):e=function(c){var e=b.$eval(p);if(!e||!e.test)throw B("ngPattern")("noregexp",p,e,ha(a));return qa(d,"pattern",d.$isEmpty(c)||e.test(c),c)},d.$formatters.push(e),d.$parsers.push(e));if(c.ngMinlength){var n=Y(c.ngMinlength);e=function(a){return qa(d,"minlength",d.$isEmpty(a)||a.length>=n,a)};d.$parsers.push(e);d.$formatters.push(e)}if(c.ngMaxlength){var s=Y(c.ngMaxlength);e=function(a){return qa(d,"maxlength",d.$isEmpty(a)||a.length<=
s,a)};d.$parsers.push(e);d.$formatters.push(e)}}function zb(b,a){return function(c){var d;return ra(c)?c:v(c)&&(b.lastIndex=0,c=b.exec(c))?(c.shift(),d={yyyy:0,MM:1,dd:1,HH:0,mm:0},q(c,function(b,c){c<a.length&&(d[a[c]]=+b)}),new Date(d.yyyy,d.MM-1,d.dd,d.HH,d.mm)):NaN}}function cb(b,a,c,d){return function(e,f,g,h,l,k,m){bb(e,f,g,h,l,k);h.$parsers.push(function(d){if(h.$isEmpty(d))return h.$setValidity(b,!0),null;if(a.test(d))return h.$setValidity(b,!0),c(d);h.$setValidity(b,!1);return r});h.$formatters.push(function(a){return ra(a)?
m("date")(a,d):""});g.min&&(e=function(a){var b=h.$isEmpty(a)||c(a)>=c(g.min);h.$setValidity("min",b);return b?a:r},h.$parsers.push(e),h.$formatters.push(e));g.max&&(e=function(a){var b=h.$isEmpty(a)||c(a)<=c(g.max);h.$setValidity("max",b);return b?a:r},h.$parsers.push(e),h.$formatters.push(e))}}function Tb(b,a){b="ngClass"+b;return["$animate",function(c){function d(a,b){var c=[],d=0;a:for(;d<a.length;d++){for(var e=a[d],m=0;m<b.length;m++)if(e==b[m])continue a;c.push(e)}return c}function e(a){if(!L(a)){if(v(a))return a.split(" ");
if(T(a)){var b=[];q(a,function(a,c){a&&b.push(c)});return b}}return a}return{restrict:"AC",link:function(f,g,h){function l(a,b){var c=g.data("$classCounts")||{},d=[];q(a,function(a){if(0<b||c[a])c[a]=(c[a]||0)+b,c[a]===+(0<b)&&d.push(a)});g.data("$classCounts",c);return d.join(" ")}function k(b){if(!0===a||f.$index%2===a){var k=e(b||[]);if(!m){var q=l(k,1);h.$addClass(q)}else if(!za(b,m)){var t=e(m),q=d(k,t),k=d(t,k),k=l(k,-1),q=l(q,1);0===q.length?c.removeClass(g,k):0===k.length?c.addClass(g,q):
c.setClass(g,q,k)}}m=ca(b)}var m;f.$watch(h[b],k,!0);h.$observe("class",function(a){k(f.$eval(h[b]))});"ngClass"!==b&&f.$watch("$index",function(c,d){var g=c&1;if(g!==d&1){var k=e(f.$eval(h[b]));g===a?(g=l(k,1),h.$addClass(g)):(g=l(k,-1),h.$removeClass(g))}})}}}]}var I=function(b){return v(b)?b.toLowerCase():b},Mc=Object.prototype.hasOwnProperty,Ga=function(b){return v(b)?b.toUpperCase():b},U,y,Ha,sa=[].slice,Ye=[].push,ya=Object.prototype.toString,Pa=B("ng"),Ra=O.angular||(O.angular={}),Ta,Ma,ka=
["0","0","0"];U=Y((/msie (\d+)/.exec(I(navigator.userAgent))||[])[1]);isNaN(U)&&(U=Y((/trident\/.*; rv:(\d+)/.exec(I(navigator.userAgent))||[])[1]));w.$inject=[];Ea.$inject=[];var ba=function(){return String.prototype.trim?function(b){return v(b)?b.trim():b}:function(b){return v(b)?b.replace(/^\s\s*/,"").replace(/\s\s*$/,""):b}}();Ma=9>U?function(b){b=b.nodeName?b:b[0];return b.scopeName&&"HTML"!=b.scopeName?Ga(b.scopeName+":"+b.nodeName):b.nodeName}:function(b){return b.nodeName?b.nodeName:b[0].nodeName};
var ec=["ng-","data-ng-","ng:","x-ng-"],jd=/[A-Z]/g,md={full:"1.3.0-build.2603+sha.5dee9e4",major:1,minor:3,dot:0,codeName:"snapshot"},Wa=M.cache={},jb=M.expando="ng-"+(new Date).getTime(),Be=1,qb=O.document.addEventListener?function(b,a,c){b.addEventListener(a,c,!1)}:function(b,a,c){b.attachEvent("on"+a,c)},Va=O.document.removeEventListener?function(b,a,c){b.removeEventListener(a,c,!1)}:function(b,a,c){b.detachEvent("on"+a,c)};M._data=function(b){return this.cache[b[this.expando]]||{}};var ve=/([\:\-\_]+(.))/g,
we=/^moz([A-Z])/,Ib=B("jqLite"),Ae=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Hb=/<|&#?\w+;/,ye=/<([\w:]+)/,ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ea={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ea.optgroup=ea.option;ea.tbody=ea.tfoot=ea.colgroup=ea.caption=ea.thead;ea.th=
ea.td;var La=M.prototype={ready:function(b){function a(){c||(c=!0,b())}var c=!1;"complete"===V.readyState?setTimeout(a):(this.on("DOMContentLoaded",a),M(O).on("load",a))},toString:function(){var b=[];q(this,function(a){b.push(""+a)});return"["+b.join(", ")+"]"},eq:function(b){return 0<=b?y(this[b]):y(this[this.length+b])},length:0,push:Ye,sort:[].sort,splice:[].splice},nb={};q("multiple selected checked disabled readOnly required open".split(" "),function(b){nb[I(b)]=b});var tc={};q("input select option textarea button form details".split(" "),
function(b){tc[Ga(b)]=!0});q({data:pc,inheritedData:mb,scope:function(b){return y(b).data("$scope")||mb(b.parentNode||b,["$isolateScope","$scope"])},isolateScope:function(b){return y(b).data("$isolateScope")||y(b).data("$isolateScopeNoTemplate")},controller:qc,injector:function(b){return mb(b,"$injector")},removeAttr:function(b,a){b.removeAttribute(a)},hasClass:Kb,css:function(b,a,c){a=Ua(a);if(A(c))b.style[a]=c;else{var d;8>=U&&(d=b.currentStyle&&b.currentStyle[a],""===d&&(d="auto"));d=d||b.style[a];
8>=U&&(d=""===d?r:d);return d}},attr:function(b,a,c){var d=I(a);if(nb[d])if(A(c))c?(b[a]=!0,b.setAttribute(a,d)):(b[a]=!1,b.removeAttribute(d));else return b[a]||(b.attributes.getNamedItem(a)||w).specified?d:r;else if(A(c))b.setAttribute(a,c);else if(b.getAttribute)return b=b.getAttribute(a,2),null===b?r:b},prop:function(b,a,c){if(A(c))b[a]=c;else return b[a]},text:function(){function b(b,d){var e=a[b.nodeType];if(C(d))return e?b[e]:"";b[e]=d}var a=[];9>U?(a[1]="innerText",a[3]="nodeValue"):a[1]=
a[3]="textContent";b.$dv="";return b}(),val:function(b,a){if(C(a)){if("SELECT"===Ma(b)&&b.multiple){var c=[];q(b.options,function(a){a.selected&&c.push(a.value||a.text)});return 0===c.length?null:c}return b.value}b.value=a},html:function(b,a){if(C(a))return b.innerHTML;for(var c=0,d=b.childNodes;c<d.length;c++)Ia(d[c]);b.innerHTML=a},empty:rc},function(b,a){M.prototype[a]=function(a,d){var e,f;if(b!==rc&&(2==b.length&&b!==Kb&&b!==qc?a:d)===r){if(T(a)){for(e=0;e<this.length;e++)if(b===pc)b(this[e],
a);else for(f in a)b(this[e],f,a[f]);return this}e=b.$dv;f=e===r?Math.min(this.length,1):this.length;for(var g=0;g<f;g++){var h=b(this[g],a,d);e=e?e+h:h}return e}for(e=0;e<this.length;e++)b(this[e],a,d);return this}});q({removeData:nc,dealoc:Ia,on:function a(c,d,e,f){if(A(f))throw Ib("onargs");var g=la(c,"events"),h=la(c,"handle");g||la(c,"events",g={});h||la(c,"handle",h=Ce(c,g));q(d.split(" "),function(d){var f=g[d];if(!f){if("mouseenter"==d||"mouseleave"==d){var m=V.body.contains||V.body.compareDocumentPosition?
function(a,c){var d=9===a.nodeType?a.documentElement:a,e=c&&c.parentNode;return a===e||!!(e&&1===e.nodeType&&(d.contains?d.contains(e):a.compareDocumentPosition&&a.compareDocumentPosition(e)&16))}:function(a,c){if(c)for(;c=c.parentNode;)if(c===a)return!0;return!1};g[d]=[];a(c,{mouseleave:"mouseout",mouseenter:"mouseover"}[d],function(a){var c=a.relatedTarget;c&&(c===this||m(this,c))||h(a,d)})}else qb(c,d,h),g[d]=[];f=g[d]}f.push(e)})},off:oc,one:function(a,c,d){a=y(a);a.on(c,function f(){a.off(c,
d);a.off(c,f)});a.on(c,d)},replaceWith:function(a,c){var d,e=a.parentNode;Ia(a);q(new M(c),function(c){d?e.insertBefore(c,d.nextSibling):e.replaceChild(c,a);d=c})},children:function(a){var c=[];q(a.childNodes,function(a){1===a.nodeType&&c.push(a)});return c},contents:function(a){return a.contentDocument||a.childNodes||[]},append:function(a,c){q(new M(c),function(c){1!==a.nodeType&&11!==a.nodeType||a.appendChild(c)})},prepend:function(a,c){if(1===a.nodeType){var d=a.firstChild;q(new M(c),function(c){a.insertBefore(c,
d)})}},wrap:function(a,c){c=y(c)[0];var d=a.parentNode;d&&d.replaceChild(c,a);c.appendChild(a)},remove:function(a){Ia(a);var c=a.parentNode;c&&c.removeChild(a)},after:function(a,c){var d=a,e=a.parentNode;q(new M(c),function(a){e.insertBefore(a,d.nextSibling);d=a})},addClass:lb,removeClass:kb,toggleClass:function(a,c,d){c&&q(c.split(" "),function(c){var f=d;C(f)&&(f=!Kb(a,c));(f?lb:kb)(a,c)})},parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},next:function(a){if(a.nextElementSibling)return a.nextElementSibling;
for(a=a.nextSibling;null!=a&&1!==a.nodeType;)a=a.nextSibling;return a},find:function(a,c){return a.getElementsByTagName?a.getElementsByTagName(c):[]},clone:Jb,triggerHandler:function(a,c,d){c=(la(a,"events")||{})[c];d=d||[];var e=[{preventDefault:w,stopPropagation:w}];q(c,function(c){c.apply(a,e.concat(d))})}},function(a,c){M.prototype[c]=function(c,e,f){for(var g,h=0;h<this.length;h++)C(g)?(g=a(this[h],c,e,f),A(g)&&(g=y(g))):mc(g,a(this[h],c,e,f));return A(g)?g:this};M.prototype.bind=M.prototype.on;
M.prototype.unbind=M.prototype.off});Xa.prototype={put:function(a,c){this[Ja(a)]=c},get:function(a){return this[Ja(a)]},remove:function(a){var c=this[a=Ja(a)];delete this[a];return c}};var vc=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,Ee=/,/,Fe=/^\s*(_?)(\S+?)\1\s*$/,uc=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,Ka=B("$injector");Cb.$$annotate=Lb;var Ze=B("$animate"),Zd=["$provide",function(a){this.$$selectors={};this.register=function(c,d){var e=c+"-animation";if(c&&"."!=c.charAt(0))throw Ze("notcsel",c);this.$$selectors[c.substr(1)]=
e;a.factory(e,d)};this.classNameFilter=function(a){1===arguments.length&&(this.$$classNameFilter=a instanceof RegExp?a:null);return this.$$classNameFilter};this.$get=["$timeout","$$asyncCallback",function(a,d){return{enter:function(a,c,g,h){g?g.after(a):c.prepend(a);h&&d(h)},leave:function(a,c){a.remove();c&&d(c)},move:function(a,c,d,h){this.enter(a,c,d,h)},addClass:function(a,c,g){c=v(c)?c:L(c)?c.join(" "):"";q(a,function(a){lb(a,c)});g&&d(g)},removeClass:function(a,c,g){c=v(c)?c:L(c)?c.join(" "):
"";q(a,function(a){kb(a,c)});g&&d(g)},setClass:function(a,c,g,h){q(a,function(a){lb(a,c);kb(a,g)});h&&d(h)},enabled:w}}]}],ja=B("$compile");hc.$inject=["$provide","$$sanitizeUriProvider"];var He=/^(x[\:\-_]|data[\:\-_])/i,Cc=B("$interpolate"),$e=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Ke={http:80,https:443,ftp:21},Pb=B("$location");Hc.prototype=Qb.prototype=Gc.prototype={$$html5:!1,$$replace:!1,absUrl:rb("$$absUrl"),url:function(a,c){if(C(a))return this.$$url;var d=$e.exec(a);d[1]&&this.path(decodeURIComponent(d[1]));
(d[2]||d[1])&&this.search(d[3]||"");this.hash(d[5]||"",c);return this},protocol:rb("$$protocol"),host:rb("$$host"),port:rb("$$port"),path:Ic("$$path",function(a){return"/"==a.charAt(0)?a:"/"+a}),search:function(a,c){switch(arguments.length){case 0:return this.$$search;case 1:if(v(a))this.$$search=cc(a);else if(T(a))this.$$search=a;else throw Pb("isrcharg");break;default:C(c)||null===c?delete this.$$search[a]:this.$$search[a]=c}this.$$compose();return this},hash:Ic("$$hash",Ea),replace:function(){this.$$replace=
!0;return this}};var Ca=B("$parse"),Lc={},va,Oa={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:w,"+":function(a,c,d,e){d=d(a,c);e=e(a,c);return A(d)?A(e)?d+e:d:A(e)?e:r},"-":function(a,c,d,e){d=d(a,c);e=e(a,c);return(A(d)?d:0)-(A(e)?e:0)},"*":function(a,c,d,e){return d(a,c)*e(a,c)},"/":function(a,c,d,e){return d(a,c)/e(a,c)},"%":function(a,c,d,e){return d(a,c)%e(a,c)},"^":function(a,c,d,e){return d(a,c)^e(a,c)},"=":w,"===":function(a,c,d,e){return d(a,
c)===e(a,c)},"!==":function(a,c,d,e){return d(a,c)!==e(a,c)},"==":function(a,c,d,e){return d(a,c)==e(a,c)},"!=":function(a,c,d,e){return d(a,c)!=e(a,c)},"<":function(a,c,d,e){return d(a,c)<e(a,c)},">":function(a,c,d,e){return d(a,c)>e(a,c)},"<=":function(a,c,d,e){return d(a,c)<=e(a,c)},">=":function(a,c,d,e){return d(a,c)>=e(a,c)},"&&":function(a,c,d,e){return d(a,c)&&e(a,c)},"||":function(a,c,d,e){return d(a,c)||e(a,c)},"&":function(a,c,d,e){return d(a,c)&e(a,c)},"|":function(a,c,d,e){return e(a,
c)(a,c,d(a,c))},"!":function(a,c,d){return!d(a,c)}},af={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Sb=function(a){this.options=a};Sb.prototype={constructor:Sb,lex:function(a){this.text=a;this.index=0;this.ch=r;this.lastCh=":";this.tokens=[];var c;for(a=[];this.index<this.text.length;){this.ch=this.text.charAt(this.index);if(this.is("\"'"))this.readString(this.ch);else if(this.isNumber(this.ch)||this.is(".")&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(this.ch))this.readIdent(),
this.was("{,")&&("{"===a[0]&&(c=this.tokens[this.tokens.length-1]))&&(c.json=-1===c.text.indexOf("."));else if(this.is("(){}[].,;:?"))this.tokens.push({index:this.index,text:this.ch,json:this.was(":[,")&&this.is("{[")||this.is("}]:,")}),this.is("{[")&&a.unshift(this.ch),this.is("}]")&&a.shift(),this.index++;else if(this.isWhitespace(this.ch)){this.index++;continue}else{var d=this.ch+this.peek(),e=d+this.peek(2),f=Oa[this.ch],g=Oa[d],h=Oa[e];h?(this.tokens.push({index:this.index,text:e,fn:h}),this.index+=
3):g?(this.tokens.push({index:this.index,text:d,fn:g}),this.index+=2):f?(this.tokens.push({index:this.index,text:this.ch,fn:f,json:this.was("[,:")&&this.is("+-")}),this.index+=1):this.throwError("Unexpected next character ",this.index,this.index+1)}this.lastCh=this.ch}return this.tokens},is:function(a){return-1!==a.indexOf(this.ch)},was:function(a){return-1!==a.indexOf(this.lastCh)},peek:function(a){a=a||1;return this.index+a<this.text.length?this.text.charAt(this.index+a):!1},isNumber:function(a){return"0"<=
a&&"9">=a},isWhitespace:function(a){return" "===a||"\r"===a||"\t"===a||"\n"===a||"\v"===a||"\u00a0"===a},isIdent:function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"_"===a||"$"===a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},throwError:function(a,c,d){d=d||this.index;c=A(c)?"s "+c+"-"+this.index+" ["+this.text.substring(c,d)+"]":" "+d;throw Ca("lexerr",a,c,this.text);},readNumber:function(){for(var a="",c=this.index;this.index<this.text.length;){var d=I(this.text.charAt(this.index));
if("."==d||this.isNumber(d))a+=d;else{var e=this.peek();if("e"==d&&this.isExpOperator(e))a+=d;else if(this.isExpOperator(d)&&e&&this.isNumber(e)&&"e"==a.charAt(a.length-1))a+=d;else if(!this.isExpOperator(d)||e&&this.isNumber(e)||"e"!=a.charAt(a.length-1))break;else this.throwError("Invalid exponent")}this.index++}a*=1;this.tokens.push({index:c,text:a,json:!0,fn:function(){return a}})},readIdent:function(){for(var a=this,c="",d=this.index,e,f,g,h;this.index<this.text.length;){h=this.text.charAt(this.index);
if("."===h||this.isIdent(h)||this.isNumber(h))"."===h&&(e=this.index),c+=h;else break;this.index++}if(e)for(f=this.index;f<this.text.length;){h=this.text.charAt(f);if("("===h){g=c.substr(e-d+1);c=c.substr(0,e-d);this.index=f;break}if(this.isWhitespace(h))f++;else break}d={index:d,text:c};if(Oa.hasOwnProperty(c))d.fn=Oa[c],d.json=Oa[c];else{var l=Kc(c,this.options,this.text);d.fn=D(function(a,c){return l(a,c)},{assign:function(d,e){return sb(d,c,e,a.text,a.options)}})}this.tokens.push(d);g&&(this.tokens.push({index:e,
text:".",json:!1}),this.tokens.push({index:e+1,text:g,json:!1}))},readString:function(a){var c=this.index;this.index++;for(var d="",e=a,f=!1;this.index<this.text.length;){var g=this.text.charAt(this.index),e=e+g;if(f)"u"===g?(g=this.text.substring(this.index+1,this.index+5),g.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+g+"]"),this.index+=4,d+=String.fromCharCode(parseInt(g,16))):d=(f=af[g])?d+f:d+g,f=!1;else if("\\"===g)f=!0;else{if(g===a){this.index++;this.tokens.push({index:c,
text:e,string:d,json:!0,fn:function(){return d}});return}d+=g}this.index++}this.throwError("Unterminated quote",c)}};var ab=function(a,c,d){this.lexer=a;this.$filter=c;this.options=d};ab.ZERO=D(function(){return 0},{constant:!0});ab.prototype={constructor:ab,parse:function(a,c){this.text=a;this.json=c;this.tokens=this.lexer.lex(a);c&&(this.assignment=this.logicalOR,this.functionCall=this.fieldAccess=this.objectIndex=this.filterChain=function(){this.throwError("is not valid json",{text:a,index:0})});
var d=c?this.primary():this.statements();0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]);d.literal=!!d.literal;d.constant=!!d.constant;return d},primary:function(){var a;if(this.expect("("))a=this.filterChain(),this.consume(")");else if(this.expect("["))a=this.arrayDeclaration();else if(this.expect("{"))a=this.object();else{var c=this.expect();(a=c.fn)||this.throwError("not a primary expression",c);c.json&&(a.constant=!0,a.literal=!0)}for(var d;c=this.expect("(","[",
".");)"("===c.text?(a=this.functionCall(a,d),d=null):"["===c.text?(d=a,a=this.objectIndex(a)):"."===c.text?(d=a,a=this.fieldAccess(a)):this.throwError("IMPOSSIBLE");return a},throwError:function(a,c){throw Ca("syntax",c.text,a,c.index+1,this.text,this.text.substring(c.index));},peekToken:function(){if(0===this.tokens.length)throw Ca("ueoe",this.text);return this.tokens[0]},peek:function(a,c,d,e){if(0<this.tokens.length){var f=this.tokens[0],g=f.text;if(g===a||g===c||g===d||g===e||!(a||c||d||e))return f}return!1},
expect:function(a,c,d,e){return(a=this.peek(a,c,d,e))?(this.json&&!a.json&&this.throwError("is not valid json",a),this.tokens.shift(),a):!1},consume:function(a){this.expect(a)||this.throwError("is unexpected, expecting ["+a+"]",this.peek())},unaryFn:function(a,c){return D(function(d,e){return a(d,e,c)},{constant:c.constant})},ternaryFn:function(a,c,d){return D(function(e,f){return a(e,f)?c(e,f):d(e,f)},{constant:a.constant&&c.constant&&d.constant})},binaryFn:function(a,c,d){return D(function(e,f){return c(e,
f,a,d)},{constant:a.constant&&d.constant})},statements:function(){for(var a=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&a.push(this.filterChain()),!this.expect(";"))return 1===a.length?a[0]:function(c,d){for(var e,f=0;f<a.length;f++){var g=a[f];g&&(e=g(c,d))}return e}},filterChain:function(){for(var a=this.expression(),c;;)if(c=this.expect("|"))a=this.binaryFn(a,c.fn,this.filter());else return a},filter:function(){for(var a=this.expect(),c=this.$filter(a.text),d=[];;)if(a=this.expect(":"))d.push(this.expression());
else{var e=function(a,e,h){h=[h];for(var l=0;l<d.length;l++)h.push(d[l](a,e));return c.apply(a,h)};return function(){return e}}},expression:function(){return this.assignment()},assignment:function(){var a=this.ternary(),c,d;return(d=this.expect("="))?(a.assign||this.throwError("implies assignment but ["+this.text.substring(0,d.index)+"] can not be assigned to",d),c=this.ternary(),function(d,f){return a.assign(d,c(d,f),f)}):a},ternary:function(){var a=this.logicalOR(),c,d;if(this.expect("?")){c=this.ternary();
if(d=this.expect(":"))return this.ternaryFn(a,c,this.ternary());this.throwError("expected :",d)}else return a},logicalOR:function(){for(var a=this.logicalAND(),c;;)if(c=this.expect("||"))a=this.binaryFn(a,c.fn,this.logicalAND());else return a},logicalAND:function(){var a=this.equality(),c;if(c=this.expect("&&"))a=this.binaryFn(a,c.fn,this.logicalAND());return a},equality:function(){var a=this.relational(),c;if(c=this.expect("==","!=","===","!=="))a=this.binaryFn(a,c.fn,this.equality());return a},
relational:function(){var a=this.additive(),c;if(c=this.expect("<",">","<=",">="))a=this.binaryFn(a,c.fn,this.relational());return a},additive:function(){for(var a=this.multiplicative(),c;c=this.expect("+","-");)a=this.binaryFn(a,c.fn,this.multiplicative());return a},multiplicative:function(){for(var a=this.unary(),c;c=this.expect("*","/","%");)a=this.binaryFn(a,c.fn,this.unary());return a},unary:function(){var a;return this.expect("+")?this.primary():(a=this.expect("-"))?this.binaryFn(ab.ZERO,a.fn,
this.unary()):(a=this.expect("!"))?this.unaryFn(a.fn,this.unary()):this.primary()},fieldAccess:function(a){var c=this,d=this.expect().text,e=Kc(d,this.options,this.text);return D(function(c,d,h){return e(h||a(c,d))},{assign:function(e,g,h){return sb(a(e,h),d,g,c.text,c.options)}})},objectIndex:function(a){var c=this,d=this.expression();this.consume("]");return D(function(e,f){var g=a(e,f),h=d(e,f),l;if(!g)return r;(g=$a(g[h],c.text))&&(g.then&&c.options.unwrapPromises)&&(l=g,"$$v"in g||(l.$$v=r,l.then(function(a){l.$$v=
a})),g=g.$$v);return g},{assign:function(e,f,g){var h=d(e,g);return $a(a(e,g),c.text)[h]=f}})},functionCall:function(a,c){var d=[];if(")"!==this.peekToken().text){do d.push(this.expression());while(this.expect(","))}this.consume(")");var e=this;return function(f,g){for(var h=[],l=c?c(f,g):f,k=0;k<d.length;k++)h.push(d[k](f,g));k=a(f,g,l)||w;$a(l,e.text);$a(k,e.text);h=k.apply?k.apply(l,h):k(h[0],h[1],h[2],h[3],h[4]);return $a(h,e.text)}},arrayDeclaration:function(){var a=[],c=!0;if("]"!==this.peekToken().text){do{if(this.peek("]"))break;
var d=this.expression();a.push(d);d.constant||(c=!1)}while(this.expect(","))}this.consume("]");return D(function(c,d){for(var g=[],h=0;h<a.length;h++)g.push(a[h](c,d));return g},{literal:!0,constant:c})},object:function(){var a=[],c=!0;if("}"!==this.peekToken().text){do{if(this.peek("}"))break;var d=this.expect(),d=d.string||d.text;this.consume(":");var e=this.expression();a.push({key:d,value:e});e.constant||(c=!1)}while(this.expect(","))}this.consume("}");return D(function(c,d){for(var e={},l=0;l<
a.length;l++){var k=a[l];e[k.key]=k.value(c,d)}return e},{literal:!0,constant:c})}};var Rb={},wa=B("$sce"),ga={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},X=V.createElement("a"),Oc=ua(O.location.href,!0);lc.$inject=["$provide"];Pc.$inject=["$locale"];Rc.$inject=["$locale"];var Uc=".",We={yyyy:$("FullYear",4),yy:$("FullYear",2,0,!0),y:$("FullYear",1),MMMM:ub("Month"),MMM:ub("Month",!0),MM:$("Month",2,1),M:$("Month",1,1),dd:$("Date",2),d:$("Date",1),HH:$("Hours",2),H:$("Hours",
1),hh:$("Hours",2,-12),h:$("Hours",1,-12),mm:$("Minutes",2),m:$("Minutes",1),ss:$("Seconds",2),s:$("Seconds",1),sss:$("Milliseconds",3),EEEE:ub("Day"),EEE:ub("Day",!0),a:function(a,c){return 12>a.getHours()?c.AMPMS[0]:c.AMPMS[1]},Z:function(a){a=-1*a.getTimezoneOffset();return a=(0<=a?"+":"")+(tb(Math[0<a?"floor":"ceil"](a/60),2)+tb(Math.abs(a%60),2))},ww:Wc(2),w:Wc(1)},Ve=/((?:[^yMdHhmsaZEw']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|w+))(.*)/,Ue=/^\-?\d+$/;Qc.$inject=["$locale"];var Se=
aa(I),Te=aa(Ga);Sc.$inject=["$parse"];var pd=aa({restrict:"E",compile:function(a,c){8>=U&&(c.href||c.name||c.$set("href",""),a.append(V.createComment("IE fix")));if(!c.href&&!c.xlinkHref&&!c.name)return function(a,c){var f="[object SVGAnimatedString]"===ya.call(c.prop("href"))?"xlink:href":"href";c.on("click",function(a){c.attr(f)||a.preventDefault()})}}}),Fb={};q(nb,function(a,c){if("multiple"!=a){var d=na("ng-"+c);Fb[d]=function(){return{priority:100,link:function(a,f,g){a.$watch(g[d],function(a){g.$set(c,
!!a)})}}}}});q(["src","srcset","href"],function(a){var c=na("ng-"+a);Fb[c]=function(){return{priority:99,link:function(d,e,f){var g=a,h=a;"href"===a&&"[object SVGAnimatedString]"===ya.call(e.prop("href"))&&(h="xlinkHref",f.$attr[h]="xlink:href",g=null);f.$observe(c,function(a){a&&(f.$set(h,a),U&&g&&e.prop(g,f[h]))})}}}});var xb={$addControl:w,$removeControl:w,$setValidity:w,$setDirty:w,$setPristine:w};Xc.$inject=["$element","$attrs","$scope","$animate"];var Yc=function(a){return["$timeout",function(c){return{name:"form",
restrict:a?"EAC":"E",controller:Xc,compile:function(){return{pre:function(a,e,f,g){if(!f.action){var h=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1};qb(e[0],"submit",h);e.on("$destroy",function(){c(function(){Va(e[0],"submit",h)},0,!1)})}var l=e.parent().controller("form"),k=f.name||f.ngForm;k&&sb(a,k,g,k);if(l)e.on("$destroy",function(){l.$removeControl(g);k&&sb(a,k,r,k);D(g,xb)})}}}}}]},qd=Yc(),Dd=Yc(!0),bf=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,
cf=/^[a-z0-9!#$%&'*+/=?^_`{|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*$/i,df=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Zc=/^(\d{4})-(\d{2})-(\d{2})$/,$c=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)$/,Ub=/^(\d{4})-W(\d\d)$/,ad=/^(\d{4})-(\d\d)$/,bd=/^(\d\d):(\d\d)$/,ef=/(\b|^)default(\b|$)/,cd={text:bb,date:cb("date",Zc,zb(Zc,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":cb("datetimelocal",$c,zb($c,["yyyy","MM","dd","HH","mm"]),"yyyy-MM-ddTHH:mm"),time:cb("time",bd,zb(bd,["HH","mm"]),"HH:mm"),week:cb("week",Ub,function(a){if(ra(a))return a;
if(v(a)){Ub.lastIndex=0;var c=Ub.exec(a);if(c){a=+c[1];var d=+c[2],c=Vc(a),d=7*(d-1);return new Date(a,0,c.getDate()+d)}}return NaN},"yyyy-Www"),month:cb("month",ad,zb(ad,["yyyy","MM"]),"yyyy-MM"),number:function(a,c,d,e,f,g){bb(a,c,d,e,f,g);e.$parsers.push(function(a){var c=e.$isEmpty(a);if(c||df.test(a))return e.$setValidity("number",!0),""===a?null:c?a:parseFloat(a);e.$setValidity("number",!1);return r});Xe(e,"number",c);e.$formatters.push(function(a){return e.$isEmpty(a)?"":""+a});d.min&&(a=function(a){var c=
parseFloat(d.min);return qa(e,"min",e.$isEmpty(a)||a>=c,a)},e.$parsers.push(a),e.$formatters.push(a));d.max&&(a=function(a){var c=parseFloat(d.max);return qa(e,"max",e.$isEmpty(a)||a<=c,a)},e.$parsers.push(a),e.$formatters.push(a));e.$formatters.push(function(a){return qa(e,"number",e.$isEmpty(a)||Ab(a),a)})},url:function(a,c,d,e,f,g){bb(a,c,d,e,f,g);a=function(a){return qa(e,"url",e.$isEmpty(a)||bf.test(a),a)};e.$formatters.push(a);e.$parsers.push(a)},email:function(a,c,d,e,f,g){bb(a,c,d,e,f,g);
a=function(a){return qa(e,"email",e.$isEmpty(a)||cf.test(a),a)};e.$formatters.push(a);e.$parsers.push(a)},radio:function(a,c,d,e){C(d.name)&&c.attr("name",eb());var f=function(f){c[0].checked&&a.$apply(function(){e.$setViewValue(d.value,f&&f.type)})};if(e.$options&&e.$options.updateOn)c.on(e.$options.updateOn,f);if(!e.$options||e.$options.updateOnDefault)c.on("click",f);e.$render=function(){c[0].checked=d.value==e.$viewValue};d.$observe("value",e.$render)},checkbox:function(a,c,d,e){var f=d.ngTrueValue,
g=d.ngFalseValue;v(f)||(f=!0);v(g)||(g=!1);d=function(d){a.$apply(function(){e.$setViewValue(c[0].checked,d&&d.type)})};if(e.$options&&e.$options.updateOn)c.on(e.$options.updateOn,d);if(!e.$options||e.$options.updateOnDefault)c.on("click",d);e.$render=function(){c[0].checked=e.$viewValue};e.$isEmpty=function(a){return a!==f};e.$formatters.push(function(a){return a===f});e.$parsers.push(function(a){return a?f:g})},hidden:w,button:w,submit:w,reset:w,file:w},ic=["$browser","$sniffer","$filter",function(a,
c,d){return{restrict:"E",require:["?ngModel"],link:function(e,f,g,h){h[0]&&(cd[I(g.type)]||cd.text)(e,f,g,h[0],c,a,d)}}}],wb="ng-valid",vb="ng-invalid",Na="ng-pristine",yb="ng-dirty",ff=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout",function(a,c,d,e,f,g,h){function l(a,c){c=c?"-"+ib(c,"-"):"";g.removeClass(e,(a?vb:wb)+c);g.addClass(e,(a?wb:vb)+c)}this.$modelValue=this.$viewValue=Number.NaN;this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$pristine=
!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$name=d.name;var k=f(d.ngModel),m=k.assign,p=null,n=this;if(!m)throw B("ngModel")("nonassign",d.ngModel,ha(e));this.$render=w;this.$isEmpty=function(a){return C(a)||""===a||null===a||a!==a};var s=e.inheritedData("$formController")||xb,t=0,r=this.$error={};e.addClass(Na);l(!0);this.$setValidity=function(a,c){r[a]!==!c&&(c?(r[a]&&t--,t||(l(!0),n.$valid=!0,n.$invalid=!1)):(l(!1),n.$invalid=!0,n.$valid=!1,t++),r[a]=!c,l(c,a),s.$setValidity(a,c,n))};
this.$setPristine=function(){n.$dirty=!1;n.$pristine=!0;g.removeClass(e,yb);g.addClass(e,Na)};this.$cancelUpdate=function(){h.cancel(p);n.$render()};this.$$realSetViewValue=function(d){n.$viewValue=d;n.$pristine&&(n.$dirty=!0,n.$pristine=!1,g.removeClass(e,Na),g.addClass(e,yb),s.$setDirty());q(n.$parsers,function(a){d=a(d)});n.$modelValue!==d&&(n.$modelValue=d,m(a,d),q(n.$viewChangeListeners,function(a){try{a()}catch(d){c(d)}}))};this.$setViewValue=function(a,c){var d=n.$options&&(T(n.$options.debounce)?
n.$options.debounce[c]||n.$options.debounce["default"]||0:n.$options.debounce)||0;h.cancel(p);d?p=h(function(){n.$$realSetViewValue(a)},d):n.$$realSetViewValue(a)};a.$watch(function(){var c=k(a);if(n.$modelValue!==c){var d=n.$formatters,e=d.length;for(n.$modelValue=c;e--;)c=d[e](c);n.$viewValue!==c&&(n.$viewValue=c,n.$render())}return c})}],Sd=function(){return{require:["ngModel","^?form","^?ngModelOptions"],controller:ff,link:function(a,c,d,e){var f=e[0],g=e[1]||xb;g.$addControl(f);e[2]&&(f.$options=
e[2].$options);a.$on("$destroy",function(){g.$removeControl(f)})}}},Ud=aa({require:"ngModel",link:function(a,c,d,e){e.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),jc=function(){return{require:"?ngModel",link:function(a,c,d,e){if(e){d.required=!0;var f=function(a){if(d.required&&e.$isEmpty(a))e.$setValidity("required",!1);else return e.$setValidity("required",!0),a};e.$formatters.push(f);e.$parsers.unshift(f);d.$observe("required",function(){f(e.$viewValue)})}}}},Td=function(){return{require:"ngModel",
link:function(a,c,d,e){var f=(a=/\/(.*)\//.exec(d.ngList))&&RegExp(a[1])||d.ngList||",";e.$parsers.push(function(a){if(!C(a)){var c=[];a&&q(a.split(f),function(a){a&&c.push(ba(a))});return c}});e.$formatters.push(function(a){return L(a)?a.join(", "):r});e.$isEmpty=function(a){return!a||!a.length}}}},gf=/^(true|false|\d+)$/,Vd=function(){return{priority:100,compile:function(a,c){return gf.test(c.ngValue)?function(a,c,f){f.$set("value",a.$eval(f.ngValue))}:function(a,c,f){a.$watch(f.ngValue,function(a){f.$set("value",
a)})}}}},Wd=function(){return{controller:["$scope","$attrs",function(a,c){var d=this;this.$options=a.$eval(c.ngModelOptions);this.$options.updateOn?(this.$options.updateOnDefault=!1,this.$options.updateOn=this.$options.updateOn.replace(ef,function(){d.$options.updateOnDefault=!0;return" "})):this.$options.updateOnDefault=!0}]}},vd=xa(function(a,c,d){c.addClass("ng-binding").data("$binding",d.ngBind);a.$watch(d.ngBind,function(a){c.text(a==r?"":a)})}),xd=["$interpolate",function(a){return function(c,
d,e){c=a(d.attr(e.$attr.ngBindTemplate));d.addClass("ng-binding").data("$binding",c);e.$observe("ngBindTemplate",function(a){d.text(a)})}}],wd=["$sce","$parse",function(a,c){return function(d,e,f){e.addClass("ng-binding").data("$binding",f.ngBindHtml);var g=c(f.ngBindHtml);d.$watch(function(){return(g(d)||"").toString()},function(c){e.html(a.getTrustedHtml(g(d))||"")})}}],yd=Tb("",!0),Ad=Tb("Odd",0),zd=Tb("Even",1),Bd=xa({compile:function(a,c){c.$set("ngCloak",r);a.removeClass("ng-cloak")}}),Cd=[function(){return{scope:!0,
controller:"@",priority:500}}],kc={};q("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(a){var c=na("ng-"+a);kc[c]=["$parse",function(d){return{compile:function(e,f){var g=d(f[c]);return function(c,d,e){d.on(I(a),function(a){c.$apply(function(){g(c,{$event:a})})})}}}}]});var Fd=["$animate",function(a){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(c,
d,e,f,g){var h,l,k;c.$watch(e.ngIf,function(f){Qa(f)?l||(l=c.$new(),g(l,function(c){c[c.length++]=V.createComment(" end ngIf: "+e.ngIf+" ");h={clone:c};a.enter(c,d.parent(),d)})):(k&&(k.remove(),k=null),l&&(l.$destroy(),l=null),h&&(k=Eb(h.clone),a.leave(k,function(){k=null}),h=null))})}}}],Gd=["$http","$templateCache","$anchorScroll","$animate","$sce",function(a,c,d,e,f){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Ra.noop,compile:function(g,h){var l=h.ngInclude||
h.src,k=h.onload||"",m=h.autoscroll;return function(g,h,q,t,r){var x=0,u,y,E,z=function(){y&&(y.remove(),y=null);u&&(u.$destroy(),u=null);E&&(e.leave(E,function(){y=null}),y=E,E=null)};g.$watch(f.parseAsResourceUrl(l),function(f){var l=function(){!A(m)||m&&!g.$eval(m)||d()},q=++x;f?(a.get(f,{cache:c}).success(function(a){if(q===x){var c=g.$new();t.template=a;a=r(c,function(a){z();e.enter(a,null,h,l)});u=c;E=a;u.$emit("$includeContentLoaded");g.$eval(k)}}).error(function(){q===x&&z()}),g.$emit("$includeContentRequested")):
(z(),t.template=null)})}}}}],Xd=["$compile",function(a){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(c,d,e,f){d.html(f.template);a(d.contents())(c)}}}],Hd=xa({priority:450,compile:function(){return{pre:function(a,c,d){a.$eval(d.ngInit)}}}}),Id=xa({terminal:!0,priority:1E3}),Jd=["$locale","$interpolate",function(a,c){var d=/{}/g;return{restrict:"EA",link:function(e,f,g){var h=g.count,l=g.$attr.when&&f.attr(g.$attr.when),k=g.offset||0,m=e.$eval(l)||{},p={},n=c.startSymbol(),
s=c.endSymbol(),r=/^when(Minus)?(.+)$/;q(g,function(a,c){r.test(c)&&(m[I(c.replace("when","").replace("Minus","-"))]=f.attr(g.$attr[c]))});q(m,function(a,e){p[e]=c(a.replace(d,n+h+"-"+k+s))});e.$watch(function(){var c=parseFloat(e.$eval(h));if(isNaN(c))return"";c in m||(c=a.pluralCat(c-k));return p[c](e,f,!0)},function(a){f.text(a)})}}}],Kd=["$parse","$animate",function(a,c){var d=B("ngRepeat");return{transclude:"element",priority:1E3,terminal:!0,$$tlb:!0,link:function(e,f,g,h,l){var k=g.ngRepeat,
m=k.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),p,n,s,r,G,x,u={$id:Ja};if(!m)throw d("iexp",k);g=m[1];h=m[2];(m=m[3])?(p=a(m),n=function(a,c,d){x&&(u[x]=a);u[G]=c;u.$index=d;return p(e,u)}):(s=function(a,c){return Ja(c)},r=function(a){return a});m=g.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/);if(!m)throw d("iidexp",g);G=m[3]||m[1];x=m[2];var A={};e.$watchCollection(h,function(a){var g,h,m=f[0],p,u={},H,R,v,w,S,B,D=[];if(db(a))S=a,p=n||s;else{p=n||r;S=[];
for(v in a)a.hasOwnProperty(v)&&"$"!=v.charAt(0)&&S.push(v);S.sort()}H=S.length;h=D.length=S.length;for(g=0;g<h;g++)if(v=a===S?g:S[g],w=a[v],w=p(v,w,g),Ba(w,"`track by` id"),A.hasOwnProperty(w))B=A[w],delete A[w],u[w]=B,D[g]=B;else{if(u.hasOwnProperty(w))throw q(D,function(a){a&&a.scope&&(A[a.id]=a)}),d("dupes",k,w);D[g]={id:w};u[w]=!1}for(v in A)A.hasOwnProperty(v)&&(B=A[v],g=Eb(B.clone),c.leave(g),q(g,function(a){a.$$NG_REMOVED=!0}),B.scope.$destroy());g=0;for(h=S.length;g<h;g++){v=a===S?g:S[g];
w=a[v];B=D[g];D[g-1]&&(m=D[g-1].clone[D[g-1].clone.length-1]);if(B.scope){R=B.scope;p=m;do p=p.nextSibling;while(p&&p.$$NG_REMOVED);B.clone[0]!=p&&c.move(Eb(B.clone),null,y(m));m=B.clone[B.clone.length-1]}else R=e.$new();R[G]=w;x&&(R[x]=v);R.$index=g;R.$first=0===g;R.$last=g===H-1;R.$middle=!(R.$first||R.$last);R.$odd=!(R.$even=0===(g&1));B.scope||l(R,function(a){a[a.length++]=V.createComment(" end ngRepeat: "+k+" ");c.enter(a,null,y(m));m=a;B.scope=R;B.clone=a;u[B.id]=B})}A=u})}}}],Ld=["$animate",
function(a){return function(c,d,e){c.$watch(e.ngShow,function(c){a[Qa(c)?"removeClass":"addClass"](d,"ng-hide")})}}],Ed=["$animate",function(a){return function(c,d,e){c.$watch(e.ngHide,function(c){a[Qa(c)?"addClass":"removeClass"](d,"ng-hide")})}}],Md=xa(function(a,c,d){a.$watch(d.ngStyle,function(a,d){d&&a!==d&&q(d,function(a,d){c.css(d,"")});a&&c.css(a)},!0)}),Nd=["$animate",function(a){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(c,d,e,f){var g,
h,l,k=[];c.$watch(e.ngSwitch||e.on,function(d){var p,n=k.length;if(0<n){if(l){for(p=0;p<n;p++)l[p].remove();l=null}l=[];for(p=0;p<n;p++){var s=h[p];k[p].$destroy();l[p]=s;a.leave(s,function(){l.splice(p,1);0===l.length&&(l=null)})}}h=[];k=[];if(g=f.cases["!"+d]||f.cases["?"])c.$eval(e.change),q(g,function(d){var e=c.$new();k.push(e);d.transclude(e,function(c){var e=d.element;h.push(c);a.enter(c,e.parent(),e)})})})}}}],Od=xa({transclude:"element",priority:800,require:"^ngSwitch",link:function(a,c,
d,e,f){e.cases["!"+d.ngSwitchWhen]=e.cases["!"+d.ngSwitchWhen]||[];e.cases["!"+d.ngSwitchWhen].push({transclude:f,element:c})}}),Pd=xa({transclude:"element",priority:800,require:"^ngSwitch",link:function(a,c,d,e,f){e.cases["?"]=e.cases["?"]||[];e.cases["?"].push({transclude:f,element:c})}}),Rd=xa({link:function(a,c,d,e,f){if(!f)throw B("ngTransclude")("orphan",ha(c));f(function(a){c.empty();c.append(a)})}}),rd=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(c,d){"text/ng-template"==
d.type&&a.put(d.id,c[0].text)}}}],hf=B("ngOptions"),Qd=aa({terminal:!0}),sd=["$compile","$parse",function(a,c){var d=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,e={$setViewValue:w};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(a,c,d){var l=this,k={},m=e,p;l.databound=d.ngModel;l.init=function(a,
c,d){m=a;p=d};l.addOption=function(c){Ba(c,'"option value"');k[c]=!0;m.$viewValue==c&&(a.val(c),p.parent()&&p.remove())};l.removeOption=function(a){this.hasOption(a)&&(delete k[a],m.$viewValue==a&&this.renderUnknownOption(a))};l.renderUnknownOption=function(c){c="? "+Ja(c)+" ?";p.val(c);a.prepend(p);a.val(c);p.prop("selected",!0)};l.hasOption=function(a){return k.hasOwnProperty(a)};c.$on("$destroy",function(){l.renderUnknownOption=w})}],link:function(e,g,h,l){function k(a,c,d,e){d.$render=function(){var a=
d.$viewValue;e.hasOption(a)?(w.parent()&&w.remove(),c.val(a),""===a&&x.prop("selected",!0)):C(a)&&x?c.val(""):e.renderUnknownOption(a)};c.on("change",function(){a.$apply(function(){w.parent()&&w.remove();d.$setViewValue(c.val())})})}function m(a,c,d){var e;d.$render=function(){var a=new Xa(d.$viewValue);q(c.find("option"),function(c){c.selected=A(a.get(c.value))})};a.$watch(function(){za(e,d.$viewValue)||(e=ca(d.$viewValue),d.$render())});c.on("change",function(){a.$apply(function(){var a=[];q(c.find("option"),
function(c){c.selected&&a.push(c.value)});d.$setViewValue(a)})})}function p(e,f,g){function h(){var a={"":[]},c=[""],d,k,r,t,z;t=g.$modelValue;z=y(e)||[];var D=n?Vb(z):z,H,J,C;J={};r=!1;var E,I;if(s)if(w&&L(t))for(r=new Xa([]),C=0;C<t.length;C++)J[m]=t[C],r.put(w(e,J),t[C]);else r=new Xa(t);for(C=0;H=D.length,C<H;C++){k=C;if(n){k=D[C];if("$"===k.charAt(0))continue;J[n]=k}J[m]=z[k];d=p(e,J)||"";(k=a[d])||(k=a[d]=[],c.push(d));s?d=A(r.remove(w?w(e,J):q(e,J))):(w?(d={},d[m]=t,d=w(e,d)===w(e,J)):d=t===
q(e,J),r=r||d);E=l(e,J);E=A(E)?E:"";k.push({id:w?w(e,J):n?D[C]:C,label:E,selected:d})}s||(v||null===t?a[""].unshift({id:"",label:"",selected:!r}):r||a[""].unshift({id:"?",label:"",selected:!0}));J=0;for(D=c.length;J<D;J++){d=c[J];k=a[d];x.length<=J?(t={element:B.clone().attr("label",d),label:k.label},z=[t],x.push(z),f.append(t.element)):(z=x[J],t=z[0],t.label!=d&&t.element.attr("label",t.label=d));E=null;C=0;for(H=k.length;C<H;C++)r=k[C],(d=z[C+1])?(E=d.element,d.label!==r.label&&E.text(d.label=r.label),
d.id!==r.id&&E.val(d.id=r.id),d.selected!==r.selected&&E.prop("selected",d.selected=r.selected)):(""===r.id&&v?I=v:(I=u.clone()).val(r.id).attr("selected",r.selected).text(r.label),z.push({element:I,label:r.label,id:r.id,selected:r.selected}),E?E.after(I):t.element.append(I),E=I);for(C++;z.length>C;)z.pop().element.remove()}for(;x.length>J;)x.pop()[0].element.remove()}var k;if(!(k=t.match(d)))throw hf("iexp",t,ha(f));var l=c(k[2]||k[1]),m=k[4]||k[6],n=k[5],p=c(k[3]||""),q=c(k[2]?k[1]:m),y=c(k[7]),
w=k[8]?c(k[8]):null,x=[[{element:f,label:""}]];v&&(a(v)(e),v.removeClass("ng-scope"),v.remove());f.empty();f.on("change",function(){e.$apply(function(){var a,c=y(e)||[],d={},h,k,l,p,t,u,v;if(s)for(k=[],p=0,u=x.length;p<u;p++)for(a=x[p],l=1,t=a.length;l<t;l++){if((h=a[l].element)[0].selected){h=h.val();n&&(d[n]=h);if(w)for(v=0;v<c.length&&(d[m]=c[v],w(e,d)!=h);v++);else d[m]=c[h];k.push(q(e,d))}}else{h=f.val();if("?"==h)k=r;else if(""===h)k=null;else if(w)for(v=0;v<c.length;v++){if(d[m]=c[v],w(e,d)==
h){k=q(e,d);break}}else d[m]=c[h],n&&(d[n]=h),k=q(e,d);1<x[0].length&&x[0][1].id!==h&&(x[0][1].selected=!1)}g.$setViewValue(k)})});g.$render=h;e.$watch(h)}if(l[1]){var n=l[0];l=l[1];var s=h.multiple,t=h.ngOptions,v=!1,x,u=y(V.createElement("option")),B=y(V.createElement("optgroup")),w=u.clone();h=0;for(var z=g.children(),D=z.length;h<D;h++)if(""===z[h].value){x=v=z.eq(h);break}n.init(l,v,w);s&&(l.$isEmpty=function(a){return!a||0===a.length});t?p(e,g,l):s?m(e,g,l):k(e,g,l,n)}}}}],ud=["$interpolate",
function(a){var c={addOption:w,removeOption:w};return{restrict:"E",priority:100,compile:function(d,e){if(C(e.value)){var f=a(d.text(),!0);f||e.$set("value",d.text())}return function(a,d,e){var k=d.parent(),m=k.data("$selectController")||k.parent().data("$selectController");m&&m.databound?d.prop("selected",!1):m=c;f?a.$watch(f,function(a,c){e.$set("value",a);a!==c&&m.removeOption(c);m.addOption(a)}):m.addOption(e.value);d.on("$destroy",function(){m.removeOption(e.value)})}}}}],td=aa({restrict:"E",
terminal:!1});O.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):((Ha=O.jQuery)?(y=Ha,D(Ha.fn,{scope:La.scope,isolateScope:La.isolateScope,controller:La.controller,injector:La.injector,inheritedData:La.inheritedData}),Gb("remove",!0,!0,!1),Gb("empty",!1,!1,!1),Gb("html",!1,!1,!0)):y=M,Ra.element=y,ld(Ra),y(V).ready(function(){id(V,fc)}))})(window,document);!angular.$$csp()&&angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}</style>');
//# sourceMappingURL=angular.min.js.map
| 496.345622 | 641 | 0.63254 |
056fdcbe92911846f0a97d6fc58cadbebc9c38ae | 674 | js | JavaScript | game/health.js | Mikalodonen/asteroids | 7feb97cc50c626c1ce52a5209e7a2d0b95c362b3 | [
"MIT"
] | null | null | null | game/health.js | Mikalodonen/asteroids | 7feb97cc50c626c1ce52a5209e7a2d0b95c362b3 | [
"MIT"
] | null | null | null | game/health.js | Mikalodonen/asteroids | 7feb97cc50c626c1ce52a5209e7a2d0b95c362b3 | [
"MIT"
] | null | null | null | function Health() {
this.health = 100
this.maxHealth = 100
this.deathHealth = 0
this.isGameOver = function () {
return this.health <= 0
}
this.takeDamage = function () {
this.health = this.health - 0.5
if (this.health < 0) {
this.health = 0
}
}
this.render = function () {
push()
stroke(83, 76, 99)
strokeWeight(4)
noFill()
rect(width / 2 - 100, 700, 200, 15, 20)
noStroke()
fill(255, 38, 53)
rect(width / 2 - 100, 700, map(this.health, 0, this.maxHealth, 0, 200), 15, 20)
pop()
}
}
| 20.424242 | 88 | 0.467359 |
0570d7a8c296d5ac86a26cfaf1cfcbc3ddd0e45a | 532 | js | JavaScript | src/components/shared/card/index.stories.js | orion-search/graphql-backend | def68ecaf0936d5d541b0cd3d0c6418c81a14499 | [
"MIT"
] | 6 | 2020-07-23T11:05:09.000Z | 2022-01-14T03:00:10.000Z | src/components/shared/card/index.stories.js | orion-search/graphql-backend | def68ecaf0936d5d541b0cd3d0c6418c81a14499 | [
"MIT"
] | 16 | 2020-02-06T14:16:54.000Z | 2020-08-29T15:39:05.000Z | src/components/shared/card/index.stories.js | orion-search/graphql-backend | def68ecaf0936d5d541b0cd3d0c6418c81a14499 | [
"MIT"
] | 1 | 2021-09-22T08:01:32.000Z | 2021-09-22T08:01:32.000Z | import React from "react";
import { Card } from ".";
import { withKnobs } from "@storybook/addon-knobs";
import icon from "../../../assets/img/landing-progress.svg";
export default {
title: "Design System/Molecules/Card",
component: Card,
decorators: [withKnobs],
};
export const Text_Card = () => {
return (
<Card
image={icon}
title={"Measure progress in science"}
text={
"Orion creates indicators showing dimensions of scientific progress, like research diversity."
}
/>
);
};
| 22.166667 | 102 | 0.639098 |
0570f5742ad1be31ead3807f81056e3e0224a24f | 152,351 | js | JavaScript | main/assets/FormOutlined.f3cd8e60.js | mikexia930/DouBao | 85692c0a7e8c55c865908a9fe6122751e4fadd4d | [
"Apache-2.0"
] | 1 | 2022-01-14T03:19:24.000Z | 2022-01-14T03:19:24.000Z | main/assets/FormOutlined.f3cd8e60.js | mikexia930/DouBao | 85692c0a7e8c55c865908a9fe6122751e4fadd4d | [
"Apache-2.0"
] | null | null | null | main/assets/FormOutlined.f3cd8e60.js | mikexia930/DouBao | 85692c0a7e8c55c865908a9fe6122751e4fadd4d | [
"Apache-2.0"
] | null | null | null | import{W as $e,a as U,f as Ut,P as u,_ as O,B as Ee,w as ye,X as Le,E as Pe,V as rt,c as te,n as Cr,e as Y,R as Mr,y as Fr,m as le,G as Gt,Y as at,M as ue,Z as kr,$ as Xt,a0 as Or,a1 as Yt,a2 as Zt,a3 as Re,a4 as Kt,a5 as Qt,a6 as qe,a7 as xr,a8 as it,a9 as Jt,s as ot,K as lt,b as Ve,t as be,o as en,aa as Er,U as we,z as Ce,Q as tn,ab as Pr,i as nn,ac as Sr,ad as rn,ae as an,af as Ar,ag as st,ah as $r,ai as _r,aj as Tr,ak as on,al as ln,am as sn,an as Dr,d as Br,ao as jr,x as ut,ap as Nr,N as un,O as Ir,aq as zr,D as Lr,ar as cn,as as Rr,at as qr,au as Vr,L as Hr,H as fn,u as dn,p as Wr,T as hn,F as Ur,av as vn,aw as Gr,r as Xr}from"./LangLib.0b7683e5.js";import{B as Me,i as pn,r as mn,C as Yr,f as Zr,t as Kr,a as gn,R as Qr,b as Jr,c as yn,e as bn}from"./dayjs.min.9507e080.js";import{d as J,H as G,n as o,K as de,S as ct,G as Fe,P as ce,M as ea,I as He,J as ta,F as wn,i as se,E as pe,R as Cn,D as na,Q as ra,Z as ke,j as aa,W as Mn,_ as ia,o as ft,e as dt,w as We,$ as Ue}from"./vendor.1e75f2db.js";import{_ as Fn}from"./index.7fa67c48.js";var oa={prefixCls:u.string,size:{type:String}},ht=J({name:"AButtonGroup",props:oa,setup:function(e,n){var r=n.slots,a=$e("btn-group",e),i=a.prefixCls,l=a.direction,s=G(function(){var v,d=e.size,f="";switch(d){case"large":f="lg";break;case"small":f="sm";break}return v={},U(v,"".concat(i.value),!0),U(v,"".concat(i.value,"-").concat(f),f),U(v,"".concat(i.value,"-rtl"),l.value==="rtl"),v});return function(){var v;return o("div",{class:s.value},[Ut((v=r.default)===null||v===void 0?void 0:v.call(r))])}}});Me.Group=ht;Me.install=function(t){return t.component(Me.name,Me),t.component(ht.name,ht),t};var la=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,sa=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],vt={},fe;function ua(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&vt[n])return vt[n];var r=window.getComputedStyle(t),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),l=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=sa.map(function(d){return"".concat(d,":").concat(r.getPropertyValue(d))}).join(";"),v={sizingStyle:s,paddingSize:i,borderSize:l,boxSizing:a};return e&&n&&(vt[n]=v),v}function ca(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;fe||(fe=document.createElement("textarea"),document.body.appendChild(fe)),t.getAttribute("wrap")?fe.setAttribute("wrap",t.getAttribute("wrap")):fe.removeAttribute("wrap");var a=ua(t,e),i=a.paddingSize,l=a.borderSize,s=a.boxSizing,v=a.sizingStyle;fe.setAttribute("style","".concat(v,";").concat(la)),fe.value=t.value||t.placeholder||"";var d=Number.MIN_SAFE_INTEGER,f=Number.MAX_SAFE_INTEGER,c=fe.scrollHeight,g;if(s==="border-box"?c+=l:s==="content-box"&&(c-=i),n!==null||r!==null){fe.value=" ";var C=fe.scrollHeight-i;n!==null&&(d=C*n,s==="border-box"&&(d=d+i+l),c=Math.max(d,c)),r!==null&&(f=C*r,s==="border-box"&&(f=f+i+l),g=c>f?"":"hidden",c=Math.min(f,c))}return{height:"".concat(c,"px"),minHeight:"".concat(d,"px"),maxHeight:"".concat(f,"px"),overflowY:g,resize:"none"}}var pt=0,kn=1,fa=2,da=O(O({},pn),{autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:u.func}),ha=J({name:"ResizableTextArea",mixins:[Ee],inheritAttrs:!1,props:da,setup:function(){return{nextFrameActionId:void 0,textArea:null,resizeFrameId:void 0}},data:function(){return{textareaStyles:{},resizeStatus:pt}},watch:{value:function(){var e=this;de(function(){e.resizeTextarea()})}},mounted:function(){this.resizeTextarea()},beforeUnmount:function(){ye.cancel(this.nextFrameActionId),ye.cancel(this.resizeFrameId)},methods:{saveTextArea:function(e){this.textArea=e},handleResize:function(e){var n=this.$data.resizeStatus;n===pt&&this.$emit("resize",e)},resizeOnNextFrame:function(){ye.cancel(this.nextFrameActionId),this.nextFrameActionId=ye(this.resizeTextarea)},resizeTextarea:function(){var e=this,n=this.$props.autoSize||this.$props.autosize;if(!(!n||!this.textArea)){var r=n.minRows,a=n.maxRows,i=ca(this.textArea,!1,r,a);this.setState({textareaStyles:i,resizeStatus:kn},function(){ye.cancel(e.resizeFrameId),e.resizeFrameId=ye(function(){e.setState({resizeStatus:fa},function(){e.resizeFrameId=ye(function(){e.setState({resizeStatus:pt}),e.fixFirefoxAutoScroll()})})})})}},fixFirefoxAutoScroll:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,n=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,n)}}catch{}},renderTextArea:function(){var e=this,n=O(O({},Le(this)),this.$attrs),r=n.prefixCls,a=n.autoSize,i=n.autosize,l=n.disabled,s=n.class,v=this.$data,d=v.textareaStyles,f=v.resizeStatus;Pe(i===void 0,"Input.TextArea","autosize is deprecated, please use autoSize instead.");var c=rt(n,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy"]),g=te(r,s,U({},"".concat(r,"-disabled"),l));"value"in c&&(c.value=c.value||"");var C=O(O(O({},n.style),d),f===kn?{overflowX:"hidden",overflowY:"hidden"}:null),M=O(O({},c),{style:C,class:g});return M.autofocus||delete M.autofocus,o(Mr,{onResize:this.handleResize,disabled:!(a||i)},{default:function(){return[ct(o("textarea",Y(Y({},M),{},{ref:e.saveTextArea}),null),[[Cr]])]}})}},render:function(){return this.renderTextArea()}}),va=ha,pa=O(O({},pn),{autosize:Gt(u.oneOfType([Object,Boolean])),autoSize:Gt(u.oneOfType([Object,Boolean])),showCount:u.looseBool,onCompositionstart:u.func,onCompositionend:u.func}),ps=J({name:"ATextarea",inheritAttrs:!1,props:O({},pa),setup:function(){return{configProvider:Fe("configProvider",at),resizableTextArea:null,clearableInput:null}},data:function(){var e=typeof this.value=="undefined"?this.defaultValue:this.value;return{stateValue:typeof e=="undefined"?"":e}},watch:{value:function(e){this.stateValue=e}},mounted:function(){de(function(){})},methods:{setValue:function(e,n){Fr(this,"value")?this.$forceUpdate():this.stateValue=e,de(function(){n&&n()})},handleKeyDown:function(e){e.keyCode===13&&this.$emit("pressEnter",e),this.$emit("keydown",e)},triggerChange:function(e){this.$emit("update:value",e.target.value),this.$emit("change",e),this.$emit("input",e)},handleChange:function(e){var n=this,r=e.target,a=r.value,i=r.composing,l=r.isComposing;(l||i)&&this.lazy||this.stateValue===a||(this.setValue(e.target.value,function(){var s;(s=n.resizableTextArea)===null||s===void 0||s.resizeTextarea()}),mn(this.resizableTextArea.textArea,e,this.triggerChange))},focus:function(){this.resizableTextArea.textArea.focus()},blur:function(){this.resizableTextArea.textArea.blur()},saveTextArea:function(e){this.resizableTextArea=e},saveClearableInput:function(e){this.clearableInput=e},handleReset:function(e){var n=this;this.setValue("",function(){n.resizableTextArea.renderTextArea(),n.focus()}),mn(this.resizableTextArea.textArea,e,this.triggerChange)},renderTextArea:function(e){var n=Le(this),r=this.$attrs,a=r.style,i=r.class,l=O(O(O({},n),this.$attrs),{style:!n.showCount&&a,class:!n.showCount&&i,showCount:null,prefixCls:e,onInput:this.handleChange,onChange:this.handleChange,onKeydown:this.handleKeyDown});return o(va,Y(Y({},l),{},{ref:this.saveTextArea}),null)}},render:function(){var e=this.stateValue,n=this.prefixCls,r=this.maxlength,a=this.showCount,i=this.$attrs,l=i.style,s=i.class,v=this.configProvider.getPrefixCls,d=v("input",n),f=Zr(e),c=Number(r)>0;f=c?f.slice(0,r):f;var g=O(O(O({},Le(this)),this.$attrs),{prefixCls:d,inputType:"text",element:this.renderTextArea(d),handleReset:this.handleReset}),C=o(Yr,Y(Y({},g),{},{value:f,ref:this.saveClearableInput}),null);if(a){var M=le(f).length,h="".concat(M).concat(c?" / ".concat(r):"");C=o("div",{class:te("".concat(d,"-textarea"),"".concat(d,"-textarea-show-count"),s),style:l,"data-count":h},[C])}return C}}),ma={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},ga=ma;function ya(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){ba(t,a,n[a])})}return t}function ba(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mt=function(e,n){var r=ya({},e,n.attrs);return o(ue,ce(r,{icon:ga}),null)};mt.displayName="CheckCircleOutlined";mt.inheritAttrs=!1;var wa=mt,Ca={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ma=Ca;function Fa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){ka(t,a,n[a])})}return t}function ka(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var gt=function(e,n){var r=Fa({},e,n.attrs);return o(ue,ce(r,{icon:Ma}),null)};gt.displayName="ExclamationCircleOutlined";gt.inheritAttrs=!1;var Oa=gt,xa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Ea=xa;function Pa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Sa(t,a,n[a])})}return t}function Sa(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yt=function(e,n){var r=Pa({},e,n.attrs);return o(ue,ce(r,{icon:Ea}),null)};yt.displayName="InfoCircleOutlined";yt.inheritAttrs=!1;var Aa=yt,$a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"},_a=$a;function Ta(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Da(t,a,n[a])})}return t}function Da(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bt=function(e,n){var r=Ta({},e,n.attrs);return o(ue,ce(r,{icon:_a}),null)};bt.displayName="CloseCircleOutlined";bt.inheritAttrs=!1;var Ba=bt,ja={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},Na=ja;function Ia(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){za(t,a,n[a])})}return t}function za(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wt=function(e,n){var r=Ia({},e,n.attrs);return o(ue,ce(r,{icon:Na}),null)};wt.displayName="CheckCircleFilled";wt.inheritAttrs=!1;var On=wt,La={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},Ra=La;function qa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Va(t,a,n[a])})}return t}function Va(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ct=function(e,n){var r=qa({},e,n.attrs);return o(ue,ce(r,{icon:Ra}),null)};Ct.displayName="ExclamationCircleFilled";Ct.inheritAttrs=!1;var xn=Ct,Ha=Symbol("SizeProvider"),Wa=function(e){var n=e?G(function(){return e.size}):Fe(Ha,G(function(){return"default"}));return n},Ua="__lodash_hash_undefined__";function Ga(t){return this.__data__.set(t,Ua),this}function Xa(t){return this.__data__.has(t)}function _e(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new kr;++e<n;)this.add(t[e])}_e.prototype.add=_e.prototype.push=Ga;_e.prototype.has=Xa;function En(t,e,n,r){for(var a=t.length,i=n+(r?1:-1);r?i--:++i<a;)if(e(t[i],i,t))return i;return-1}function Ya(t){return t!==t}function Za(t,e,n){for(var r=n-1,a=t.length;++r<a;)if(t[r]===e)return r;return-1}function Ka(t,e,n){return e===e?Za(t,e,n):En(t,Ya,n)}function Qa(t,e){var n=t==null?0:t.length;return!!n&&Ka(t,e,0)>-1}function Ja(t,e,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(e,t[r]))return!0;return!1}function Mt(t,e){return t.has(e)}function ei(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Pn=1/0,ti=17976931348623157e292;function ni(t){if(!t)return t===0?t:0;if(t=Kr(t),t===Pn||t===-Pn){var e=t<0?-1:1;return e*ti}return t===t?t:0}function ri(t){var e=ni(t),n=e%1;return e===e?n?e-n:e:0}function ai(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var ii=1,oi=2;function Sn(t,e,n,r,a,i){var l=n&ii,s=t.length,v=e.length;if(s!=v&&!(l&&v>s))return!1;var d=i.get(t),f=i.get(e);if(d&&f)return d==e&&f==t;var c=-1,g=!0,C=n&oi?new _e:void 0;for(i.set(t,e),i.set(e,t);++c<s;){var M=t[c],h=e[c];if(r)var w=l?r(h,M,c,e,t,i):r(M,h,c,t,e,i);if(w!==void 0){if(w)continue;g=!1;break}if(C){if(!ai(e,function(p,S){if(!Mt(C,S)&&(M===p||a(M,p,n,r,i)))return C.push(S)})){g=!1;break}}else if(!(M===h||a(M,h,n,r,i))){g=!1;break}}return i.delete(t),i.delete(e),g}function li(t){var e=-1,n=Array(t.size);return t.forEach(function(r,a){n[++e]=[a,r]}),n}var si=1,ui=2,ci="[object Boolean]",fi="[object Date]",di="[object Error]",hi="[object Map]",vi="[object Number]",pi="[object RegExp]",mi="[object Set]",gi="[object String]",yi="[object Symbol]",bi="[object ArrayBuffer]",wi="[object DataView]",An=Xt?Xt.prototype:void 0,Ft=An?An.valueOf:void 0;function Ci(t,e,n,r,a,i,l){switch(n){case wi:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case bi:return!(t.byteLength!=e.byteLength||!i(new Yt(t),new Yt(e)));case ci:case fi:case vi:return Or(+t,+e);case di:return t.name==e.name&&t.message==e.message;case pi:case gi:return t==e+"";case hi:var s=li;case mi:var v=r&si;if(s||(s=ei),t.size!=e.size&&!v)return!1;var d=l.get(t);if(d)return d==e;r|=ui,l.set(t,e);var f=Sn(s(t),s(e),r,a,i,l);return l.delete(t),f;case yi:if(Ft)return Ft.call(t)==Ft.call(e)}return!1}var Mi=1,Fi=Object.prototype,ki=Fi.hasOwnProperty;function Oi(t,e,n,r,a,i){var l=n&Mi,s=Zt(t),v=s.length,d=Zt(e),f=d.length;if(v!=f&&!l)return!1;for(var c=v;c--;){var g=s[c];if(!(l?g in e:ki.call(e,g)))return!1}var C=i.get(t),M=i.get(e);if(C&&M)return C==e&&M==t;var h=!0;i.set(t,e),i.set(e,t);for(var w=l;++c<v;){g=s[c];var p=t[g],S=e[g];if(r)var F=l?r(S,p,g,e,t,i):r(p,S,g,t,e,i);if(!(F===void 0?p===S||a(p,S,n,r,i):F)){h=!1;break}w||(w=g=="constructor")}if(h&&!w){var b=t.constructor,$=e.constructor;b!=$&&"constructor"in t&&"constructor"in e&&!(typeof b=="function"&&b instanceof b&&typeof $=="function"&&$ instanceof $)&&(h=!1)}return i.delete(t),i.delete(e),h}var xi=1,$n="[object Arguments]",_n="[object Array]",Ge="[object Object]",Ei=Object.prototype,Tn=Ei.hasOwnProperty;function Pi(t,e,n,r,a,i){var l=Re(t),s=Re(e),v=l?_n:Kt(t),d=s?_n:Kt(e);v=v==$n?Ge:v,d=d==$n?Ge:d;var f=v==Ge,c=d==Ge,g=v==d;if(g&&Qt(t)){if(!Qt(e))return!1;l=!0,f=!1}if(g&&!f)return i||(i=new qe),l||xr(t)?Sn(t,e,n,r,a,i):Ci(t,e,v,n,r,a,i);if(!(n&xi)){var C=f&&Tn.call(t,"__wrapped__"),M=c&&Tn.call(e,"__wrapped__");if(C||M){var h=C?t.value():t,w=M?e.value():e;return i||(i=new qe),a(h,w,n,r,i)}}return g?(i||(i=new qe),Oi(t,e,n,r,a,i)):!1}function Xe(t,e,n,r,a){return t===e?!0:t==null||e==null||!it(t)&&!it(e)?t!==t&&e!==e:Pi(t,e,n,r,Xe,a)}function Dn(t,e){return Xe(t,e)}var kt;function Bn(t){if(t||kt===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top=0,r.left=0,r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var a=e.offsetWidth;n.style.overflow="scroll";var i=e.offsetWidth;a===i&&(i=n.clientWidth),document.body.removeChild(n),kt=a-i}return kt}var jn={width:u.any,height:u.any,defaultOpen:u.looseBool,firstEnter:u.looseBool,open:u.looseBool,prefixCls:u.string,placement:u.string,level:u.oneOfType([u.string,u.array]),levelMove:u.oneOfType([u.number,u.func,u.array]),ease:u.string,duration:u.string,handler:u.any,showMask:u.looseBool,maskStyle:u.object,className:u.string,wrapStyle:u.object,maskClosable:u.looseBool,afterVisibleChange:u.func,keyboard:u.looseBool},Si=O(O({},jn),{wrapperClassName:u.string,forceRender:u.looseBool,getContainer:u.oneOfType([u.string,u.func,u.object,u.looseBool])});O(O({},jn),{getContainer:u.func,getOpenCount:u.func,switchScrollingEffect:u.func});function Ai(t){return Array.isArray(t)?t:[t]}var Nn={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},In=Object.keys(Nn).filter(function(t){if(typeof document=="undefined")return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],zn=Nn[In];function Ln(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r):t.attachEvent&&t.attachEvent("on".concat(e),n)}function Rn(t,e,n,r){t.removeEventListener?t.removeEventListener(e,n,r):t.attachEvent&&t.detachEvent("on".concat(e),n)}function $i(t,e){var n;return typeof t=="function"?n=t(e):n=t,Array.isArray(n)?n.length===2?n:[n[0],n[1]]:[n]}var qn=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},_i=globalThis&&globalThis.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n};function Ye(){}var Te={},Ze=!(typeof window!="undefined"&&window.document&&window.document.createElement),Ti=J({name:"Drawer",mixins:[Ee],inheritAttrs:!1,props:Jt(Si,{prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",firstEnter:!1,showMask:!0,handler:!0,maskStyle:{},wrapperClassName:""}),data:function(){this.levelDom=[],this.contentDom=null,this.maskDom=null,this.handlerdom=null,this.mousePos=null,this.sFirstEnter=this.firstEnter,this.timeout=null,this.children=null,this.dom=null,this.drawerId=Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9))).toString(16);var e=this.open!==void 0?this.open:!!this.defaultOpen;return Te[this.drawerId]=e,this.orignalOpen=this.open,this.preProps=O({},this.$props),{sOpen:e,isOpenChange:void 0,passive:void 0,container:void 0}},watch:{open:function(t){function e(n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){var e=this;t!==void 0&&t!==this.preProps.open&&(this.isOpenChange=!0,this.container||this.getDefault(this.$props),this.setState({sOpen:open})),this.preProps.open=t,t&&setTimeout(function(){e.domFocus()})}),placement:function(e){e!==this.preProps.placement&&(this.contentDom=null),this.preProps.placement=e},level:function(e){this.preProps.level!==e&&this.getParentAndLevelDom(this.$props),this.preProps.level=e}},mounted:function(){var e=this;de(function(){Ze||(e.passive=ot?{passive:!1}:!1);var n=e.getOpen();(e.handler||n||e.sFirstEnter)&&(e.getDefault(e.$props),n&&(e.isOpenChange=!0,de(function(){e.domFocus()})),e.$forceUpdate())})},updated:function(){var e=this;de(function(){!e.sFirstEnter&&e.container&&(e.$forceUpdate(),e.sFirstEnter=!0)})},beforeUnmount:function(){delete Te[this.drawerId],delete this.isOpenChange,this.container&&(this.sOpen&&this.setLevelDomTransform(!1,!0),document.body.style.overflow=""),this.sFirstEnter=!1,clearTimeout(this.timeout)},methods:{domFocus:function(){this.dom&&this.dom.focus()},onKeyDown:function(e){e.keyCode===lt.ESC&&(e.stopPropagation(),this.__emit("close",e))},onMaskTouchEnd:function(e){this.__emit("close",e),this.onTouchEnd(e,!0)},onIconTouchEnd:function(e){this.__emit("handleClick",e),this.onTouchEnd(e)},onTouchEnd:function(e,n){if(this.open===void 0){var r=n||this.sOpen;this.isOpenChange=!0,this.setState({sOpen:!r})}},onWrapperTransitionEnd:function(e){if(e.target===this.contentWrapper&&e.propertyName.match(/transform$/)){var n=this.getOpen();this.dom.style.transition="",!n&&this.getCurrentDrawerSome()&&(document.body.style.overflowX="",this.maskDom&&(this.maskDom.style.left="",this.maskDom.style.width="")),this.afterVisibleChange&&this.afterVisibleChange(!!n)}},getDefault:function(e){this.getParentAndLevelDom(e),(e.getContainer||e.parent)&&(this.container=this.defaultGetContainer())},getCurrentDrawerSome:function(){return!Object.keys(Te).some(function(e){return Te[e]})},getSelfContainer:function(){return this.container},getParentAndLevelDom:function(e){var n=this;if(!Ze){var r=e.level,a=e.getContainer;if(this.levelDom=[],a){if(typeof a=="string"){var i=document.querySelectorAll(a)[0];this.parent=i}typeof a=="function"&&(this.parent=a()),Ve(a)==="object"&&a instanceof window.HTMLElement&&(this.parent=a)}if(!a&&this.container&&(this.parent=this.container.parentNode),r==="all"){var l=Array.prototype.slice.call(this.parent.children);l.forEach(function(s){s.nodeName!=="SCRIPT"&&s.nodeName!=="STYLE"&&s.nodeName!=="LINK"&&s!==n.container&&n.levelDom.push(s)})}else r&&Ai(r).forEach(function(s){document.querySelectorAll(s).forEach(function(v){n.levelDom.push(v)})})}},setLevelDomTransform:function(e,n,r,a){var i=this,l=this.$props,s=l.placement,v=l.levelMove,d=l.duration,f=l.ease,c=l.getContainer;if(!Ze&&(this.levelDom.forEach(function(F){if(F&&(i.isOpenChange||n)){F.style.transition="transform ".concat(d," ").concat(f),Ln(F,zn,i.trnasitionEnd);var b=e?a:0;if(v){var $=$i(v,{target:F,open:e});b=e?$[0]:$[1]||0}var _=typeof b=="number"?"".concat(b,"px"):b,E=s==="left"||s==="top"?_:"-".concat(_);F.style.transform=b?"".concat(r,"(").concat(E,")"):"",F.style.msTransform=b?"".concat(r,"(").concat(E,")"):""}}),c==="body")){var g=["touchstart"],C=[document.body,this.maskDom,this.handlerdom,this.contentDom],M=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Bn(1):0,h="width ".concat(d," ").concat(f),w="transform ".concat(d," ").concat(f);if(e&&document.body.style.overflow!=="hidden"){if(document.body.style.overflow="hidden",M&&(document.body.style.position="relative",document.body.style.width="calc(100% - ".concat(M,"px)"),clearTimeout(this.timeout),this.dom)){switch(this.dom.style.transition="none",s){case"right":this.dom.style.transform="translateX(-".concat(M,"px)"),this.dom.style.msTransform="translateX(-".concat(M,"px)");break;case"top":case"bottom":this.dom.style.width="calc(100% - ".concat(M,"px)"),this.dom.style.transform="translateZ(0)";break}this.timeout=setTimeout(function(){i.dom.style.transition="".concat(w,",").concat(h),i.dom.style.width="",i.dom.style.transform="",i.dom.style.msTransform=""})}C.forEach(function(F,b){!F||Ln(F,g[b]||"touchmove",b?i.removeMoveHandler:i.removeStartHandler,i.passive)})}else if(this.getCurrentDrawerSome()){if(document.body.style.overflow="",(this.isOpenChange||n)&&M&&(document.body.style.position="",document.body.style.width="",In&&(document.body.style.overflowX="hidden"),s==="right"&&this.maskDom&&(this.maskDom.style.left="-".concat(M,"px"),this.maskDom.style.width="calc(100% + ".concat(M,"px)")),clearTimeout(this.timeout),this.dom)){this.dom.style.transition="none";var p;switch(s){case"right":{this.dom.style.transform="translateX(".concat(M,"px)"),this.dom.style.msTransform="translateX(".concat(M,"px)"),this.dom.style.width="100%",h="width 0s ".concat(f," ").concat(d);break}case"top":case"bottom":{this.dom.style.width="calc(100% + ".concat(M,"px)"),this.dom.style.height="100%",this.dom.style.transform="translateZ(0)",p="height 0s ".concat(f," ").concat(d);break}}this.timeout=setTimeout(function(){i.dom.style.transition="".concat(w,",").concat(p?"".concat(p,","):"").concat(h),i.dom.style.transform="",i.dom.style.msTransform="",i.dom.style.width="",i.dom.style.height=""})}C.forEach(function(F,b){!F||Rn(F,g[b]||"touchmove",b?i.removeMoveHandler:i.removeStartHandler,i.passive)})}}var S=this.$attrs.onChange;S&&this.isOpenChange&&this.sFirstEnter&&(S(e),this.isOpenChange=!1)},getChildToRender:function(e){var n,r=this,a,i=this.$props,l=i.prefixCls,s=i.placement,v=i.handler,d=i.showMask,f=i.maskStyle,c=i.width,g=i.height,C=i.wrapStyle,M=i.keyboard,h=i.maskClosable,w=this.$attrs,p=w.class,S=w.style,F=_i(w,["class","style"]),b=be(this),$=te(l,(n={},U(n,"".concat(l,"-").concat(s),!0),U(n,"".concat(l,"-open"),e),U(n,"no-mask",!d),U(n,p,p),n)),_=this.isOpenChange,E=s==="left"||s==="right",A="translate".concat(E?"X":"Y"),q=s==="left"||s==="top"?"-100%":"100%",z=e?"":"".concat(A,"(").concat(q,")");if(_===void 0||_){var L=this.contentDom?this.contentDom.getBoundingClientRect()[E?"width":"height"]:0,X=(E?c:g)||L;this.setLevelDomTransform(e,!1,A,X)}var j;if(v!==!1){var N=o("div",{class:"drawer-handle",onClick:function(){}},[o("i",{class:"drawer-handle-icon"},null)]),x=this.handler,D=x||N,B=D.props&&D.props.onClick;j=en(D,{onClick:function(P){B&&B(P),r.onIconTouchEnd(P)},ref:function(P){r.handlerdom=P}})}var y=O(O({},F),{class:$,onTransitionend:this.onWrapperTransitionEnd,onKeydown:e&&M?this.onKeyDown:Ye,style:O(O({},C),S)}),m=(a={},U(a,ot?"onTouchstartPassive":"onTouchstart",e?this.removeStartHandler:Ye),U(a,ot?"onTouchmovePassive":"onTouchmove",e?this.removeMoveHandler:Ye),a);return o("div",Y(Y({ref:function(P){r.dom=P}},y),{},{tabindex:-1}),[d&&o("div",{key:e,class:"".concat(l,"-mask"),onClick:h?this.onMaskTouchEnd:Ye,style:f,ref:function(P){r.maskDom=P}},null),o("div",{class:"".concat(l,"-content-wrapper"),style:{transform:z,msTransform:z,width:qn(c)?"".concat(c,"px"):c,height:qn(g)?"".concat(g,"px"):g},ref:function(P){r.contentWrapper=P}},[o("div",Y({class:"".concat(l,"-content"),ref:function(P){r.contentDom=P}},m),[b]),j])])},getOpen:function(){return this.open!==void 0?this.open:this.sOpen},getTouchParentScroll:function(e,n,r,a){if(!n||n===document)return!1;if(n===e.parentNode)return!0;var i=Math.max(Math.abs(r),Math.abs(a))===Math.abs(a),l=Math.max(Math.abs(r),Math.abs(a))===Math.abs(r),s=n.scrollHeight-n.clientHeight,v=n.scrollWidth-n.clientWidth,d=n.scrollTop,f=n.scrollLeft;n.scrollTo&&n.scrollTo(n.scrollLeft+1,n.scrollTop+1);var c=n.scrollTop,g=n.scrollLeft;return n.scrollTo&&n.scrollTo(n.scrollLeft-1,n.scrollTop-1),i&&(!s||!(c-d)||s&&(n.scrollTop>=s&&a<0||n.scrollTop<=0&&a>0))||l&&(!v||!(g-f)||v&&(n.scrollLeft>=v&&r<0||n.scrollLeft<=0&&r>0))?this.getTouchParentScroll(e,n.parentNode,r,a):!1},removeStartHandler:function(e){e.touches.length>1||(this.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY})},removeMoveHandler:function(e){if(!(e.changedTouches.length>1)){var n=e.currentTarget,r=e.changedTouches[0].clientX-this.startPos.x,a=e.changedTouches[0].clientY-this.startPos.y;(n===this.maskDom||n===this.handlerdom||n===this.contentDom&&this.getTouchParentScroll(n,e.target,r,a))&&e.preventDefault()}},trnasitionEnd:function(e){Rn(e.target,zn,this.trnasitionEnd),e.target.style.transition=""},defaultGetContainer:function(){if(Ze)return null;var e=document.createElement("div");return this.parent.appendChild(e),this.wrapperClassName&&(e.className=this.wrapperClassName),e}},render:function(){var e=this,n=this.$props,r=n.getContainer,a=n.wrapperClassName,i=n.handler,l=n.forceRender,s=this.getOpen(),v=null;Te[this.drawerId]=s&&this.container;var d=this.getChildToRender(this.sFirstEnter?s:!1);if(!r)return o("div",{class:a,ref:function(g){e.container=g}},[d]);if(!this.container||!s&&!this.sFirstEnter)return null;var f=!!i||l;return(f||s||this.dom)&&(v=o(ea,{to:this.getSelfContainer()},{default:function(){return[d]}})),v}}),Di=Ti,Bi=globalThis&&globalThis.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n},ji=we("top","right","bottom","left"),Ni=J({name:"ADrawer",mixins:[Ee],inheritAttrs:!1,props:{closable:u.looseBool.def(!0),destroyOnClose:u.looseBool,getContainer:u.any,maskClosable:u.looseBool.def(!0),mask:u.looseBool.def(!0),maskStyle:u.object,wrapStyle:u.object,bodyStyle:u.object,headerStyle:u.object,drawerStyle:u.object,title:u.VNodeChild,visible:u.looseBool,width:u.oneOfType([u.string,u.number]).def(256),height:u.oneOfType([u.string,u.number]).def(256),zIndex:u.number,prefixCls:u.string,placement:u.oneOf(ji).def("right"),level:u.any.def(null),wrapClassName:u.string,handle:u.VNodeChild,afterVisibleChange:u.func,keyboard:u.looseBool.def(!0),onClose:u.func,"onUpdate:visible":u.func},setup:function(e){var n=Fe("configProvider",at);return{configProvider:n,destroyClose:!1,preVisible:e.visible,parentDrawer:Fe("parentDrawer",null)}},data:function(){return{sPush:!1}},beforeCreate:function(){He("parentDrawer",this)},mounted:function(){var e=this.visible;e&&this.parentDrawer&&this.parentDrawer.push()},updated:function(){var e=this;de(function(){e.preVisible!==e.visible&&e.parentDrawer&&(e.visible?e.parentDrawer.push():e.parentDrawer.pull()),e.preVisible=e.visible})},beforeUnmount:function(){this.parentDrawer&&this.parentDrawer.pull()},methods:{domFocus:function(){this.$refs.vcDrawer&&this.$refs.vcDrawer.domFocus()},close:function(e){this.$emit("update:visible",!1),this.$emit("close",e)},push:function(){this.setState({sPush:!0})},pull:function(){var e=this;this.setState({sPush:!1},function(){e.domFocus()})},onDestroyTransitionEnd:function(){var e=this.getDestroyOnClose();!e||this.visible||(this.destroyClose=!0,this.$forceUpdate())},getDestroyOnClose:function(){return this.destroyOnClose&&!this.visible},getPushTransform:function(e){if(e==="left"||e==="right")return"translateX(".concat(e==="left"?180:-180,"px)");if(e==="top"||e==="bottom")return"translateY(".concat(e==="top"?180:-180,"px)")},getRcDrawerStyle:function(){var e=this.$props,n=e.zIndex,r=e.placement,a=e.wrapStyle,i=this.$data.sPush;return O({zIndex:n,transform:i?this.getPushTransform(r):void 0},a)},renderHeader:function(e){var n=this.$props,r=n.closable,a=n.headerStyle,i=Ce(this,"title");if(!i&&!r)return null;var l=i?"".concat(e,"-header"):"".concat(e,"-header-no-title");return o("div",{class:l,style:a},[i&&o("div",{class:"".concat(e,"-title")},[i]),r?this.renderCloseIcon(e):null])},renderCloseIcon:function(e){var n=this.closable;return n&&o("button",{key:"closer",onClick:this.close,"aria-label":"Close",class:"".concat(e,"-close")},[o(tn,null,null)])},renderBody:function(e){var n,r;if(this.destroyClose&&!this.visible)return null;this.destroyClose=!1;var a=this.$props,i=a.bodyStyle,l=a.drawerStyle,s={},v=this.getDestroyOnClose();return v&&(s.opacity=0,s.transition="opacity .3s"),o("div",{class:"".concat(e,"-wrapper-body"),style:O(O({},s),l),onTransitionend:this.onDestroyTransitionEnd},[this.renderHeader(e),o("div",{key:"body",class:"".concat(e,"-body"),style:i},[(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)])])}},render:function(){var e,n=this,r=Le(this),a=r.prefixCls,i=r.width,l=r.height,s=r.visible,v=r.placement,d=r.wrapClassName,f=r.mask,c=Bi(r,["prefixCls","width","height","visible","placement","wrapClassName","mask"]),g=f?"":"no-mask",C={};v==="left"||v==="right"?C.width=typeof i=="number"?"".concat(i,"px"):i:C.height=typeof l=="number"?"".concat(l,"px"):l;var M=Ce(this,"handle")||!1,h=this.configProvider.getPrefixCls,w=h("drawer",a),p=this.$attrs.class,S=O(O(O(O(O({},this.$attrs),rt(c,["closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","visible","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","pageHeader","autoInsertSpaceInButton"])),{onClose:this.close,handler:M}),C),{prefixCls:w,open:s,showMask:f,placement:v,class:te((e={},U(e,p,!!p),U(e,d,!!d),U(e,g,!!g),e)),wrapStyle:this.getRcDrawerStyle(),ref:"vcDrawer"});return o(Di,S,{default:function(){return[n.renderBody(w)]}})}}),Ii=Er(Ni),zi=1,Li=4;function Ke(t){return Pr(t,zi|Li)}var Vn={exports:{}};(function(t){var e=function(n){var r=Object.prototype,a=r.hasOwnProperty,i,l=typeof Symbol=="function"?Symbol:{},s=l.iterator||"@@iterator",v=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function f(y,m,k){return Object.defineProperty(y,m,{value:k,enumerable:!0,configurable:!0,writable:!0}),y[m]}try{f({},"")}catch{f=function(m,k,P){return m[k]=P}}function c(y,m,k,P){var T=m&&m.prototype instanceof S?m:S,I=Object.create(T.prototype),W=new x(P||[]);return I._invoke=L(y,k,W),I}n.wrap=c;function g(y,m,k){try{return{type:"normal",arg:y.call(m,k)}}catch(P){return{type:"throw",arg:P}}}var C="suspendedStart",M="suspendedYield",h="executing",w="completed",p={};function S(){}function F(){}function b(){}var $={};f($,s,function(){return this});var _=Object.getPrototypeOf,E=_&&_(_(D([])));E&&E!==r&&a.call(E,s)&&($=E);var A=b.prototype=S.prototype=Object.create($);F.prototype=b,f(A,"constructor",b),f(b,"constructor",F),F.displayName=f(b,d,"GeneratorFunction");function q(y){["next","throw","return"].forEach(function(m){f(y,m,function(k){return this._invoke(m,k)})})}n.isGeneratorFunction=function(y){var m=typeof y=="function"&&y.constructor;return m?m===F||(m.displayName||m.name)==="GeneratorFunction":!1},n.mark=function(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,b):(y.__proto__=b,f(y,d,"GeneratorFunction")),y.prototype=Object.create(A),y},n.awrap=function(y){return{__await:y}};function z(y,m){function k(I,W,H,R){var Z=g(y[I],y,W);if(Z.type==="throw")R(Z.arg);else{var K=Z.arg,ee=K.value;return ee&&typeof ee=="object"&&a.call(ee,"__await")?m.resolve(ee.__await).then(function(ie){k("next",ie,H,R)},function(ie){k("throw",ie,H,R)}):m.resolve(ee).then(function(ie){K.value=ie,H(K)},function(ie){return k("throw",ie,H,R)})}}var P;function T(I,W){function H(){return new m(function(R,Z){k(I,W,R,Z)})}return P=P?P.then(H,H):H()}this._invoke=T}q(z.prototype),f(z.prototype,v,function(){return this}),n.AsyncIterator=z,n.async=function(y,m,k,P,T){T===void 0&&(T=Promise);var I=new z(c(y,m,k,P),T);return n.isGeneratorFunction(m)?I:I.next().then(function(W){return W.done?W.value:I.next()})};function L(y,m,k){var P=C;return function(I,W){if(P===h)throw new Error("Generator is already running");if(P===w){if(I==="throw")throw W;return B()}for(k.method=I,k.arg=W;;){var H=k.delegate;if(H){var R=X(H,k);if(R){if(R===p)continue;return R}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(P===C)throw P=w,k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);P=h;var Z=g(y,m,k);if(Z.type==="normal"){if(P=k.done?w:M,Z.arg===p)continue;return{value:Z.arg,done:k.done}}else Z.type==="throw"&&(P=w,k.method="throw",k.arg=Z.arg)}}}function X(y,m){var k=y.iterator[m.method];if(k===i){if(m.delegate=null,m.method==="throw"){if(y.iterator.return&&(m.method="return",m.arg=i,X(y,m),m.method==="throw"))return p;m.method="throw",m.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var P=g(k,y.iterator,m.arg);if(P.type==="throw")return m.method="throw",m.arg=P.arg,m.delegate=null,p;var T=P.arg;if(!T)return m.method="throw",m.arg=new TypeError("iterator result is not an object"),m.delegate=null,p;if(T.done)m[y.resultName]=T.value,m.next=y.nextLoc,m.method!=="return"&&(m.method="next",m.arg=i);else return T;return m.delegate=null,p}q(A),f(A,d,"Generator"),f(A,s,function(){return this}),f(A,"toString",function(){return"[object Generator]"});function j(y){var m={tryLoc:y[0]};1 in y&&(m.catchLoc=y[1]),2 in y&&(m.finallyLoc=y[2],m.afterLoc=y[3]),this.tryEntries.push(m)}function N(y){var m=y.completion||{};m.type="normal",delete m.arg,y.completion=m}function x(y){this.tryEntries=[{tryLoc:"root"}],y.forEach(j,this),this.reset(!0)}n.keys=function(y){var m=[];for(var k in y)m.push(k);return m.reverse(),function P(){for(;m.length;){var T=m.pop();if(T in y)return P.value=T,P.done=!1,P}return P.done=!0,P}};function D(y){if(y){var m=y[s];if(m)return m.call(y);if(typeof y.next=="function")return y;if(!isNaN(y.length)){var k=-1,P=function T(){for(;++k<y.length;)if(a.call(y,k))return T.value=y[k],T.done=!1,T;return T.value=i,T.done=!0,T};return P.next=P}}return{next:B}}n.values=D;function B(){return{value:i,done:!0}}return x.prototype={constructor:x,reset:function(y){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(N),!y)for(var m in this)m.charAt(0)==="t"&&a.call(this,m)&&!isNaN(+m.slice(1))&&(this[m]=i)},stop:function(){this.done=!0;var y=this.tryEntries[0],m=y.completion;if(m.type==="throw")throw m.arg;return this.rval},dispatchException:function(y){if(this.done)throw y;var m=this;function k(R,Z){return I.type="throw",I.arg=y,m.next=R,Z&&(m.method="next",m.arg=i),!!Z}for(var P=this.tryEntries.length-1;P>=0;--P){var T=this.tryEntries[P],I=T.completion;if(T.tryLoc==="root")return k("end");if(T.tryLoc<=this.prev){var W=a.call(T,"catchLoc"),H=a.call(T,"finallyLoc");if(W&&H){if(this.prev<T.catchLoc)return k(T.catchLoc,!0);if(this.prev<T.finallyLoc)return k(T.finallyLoc)}else if(W){if(this.prev<T.catchLoc)return k(T.catchLoc,!0)}else if(H){if(this.prev<T.finallyLoc)return k(T.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(y,m){for(var k=this.tryEntries.length-1;k>=0;--k){var P=this.tryEntries[k];if(P.tryLoc<=this.prev&&a.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var T=P;break}}T&&(y==="break"||y==="continue")&&T.tryLoc<=m&&m<=T.finallyLoc&&(T=null);var I=T?T.completion:{};return I.type=y,I.arg=m,T?(this.method="next",this.next=T.finallyLoc,p):this.complete(I)},complete:function(y,m){if(y.type==="throw")throw y.arg;return y.type==="break"||y.type==="continue"?this.next=y.arg:y.type==="return"?(this.rval=this.arg=y.arg,this.method="return",this.next="end"):y.type==="normal"&&m&&(this.next=m),p},finish:function(y){for(var m=this.tryEntries.length-1;m>=0;--m){var k=this.tryEntries[m];if(k.finallyLoc===y)return this.complete(k.completion,k.afterLoc),N(k),p}},catch:function(y){for(var m=this.tryEntries.length-1;m>=0;--m){var k=this.tryEntries[m];if(k.tryLoc===y){var P=k.completion;if(P.type==="throw"){var T=P.arg;N(k)}return T}}throw new Error("illegal catch attempt")},delegateYield:function(y,m,k){return this.delegate={iterator:D(y),resultName:m,nextLoc:k},this.method==="next"&&(this.arg=i),p}},n}(t.exports);try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}})(Vn);var me=Vn.exports;function Oe(){return Oe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Oe.apply(this,arguments)}function Ri(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,De(t,e)}function Ot(t){return Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ot(t)}function De(t,e){return De=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},De(t,e)}function qi(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qe(t,e,n){return qi()?Qe=Reflect.construct:Qe=function(a,i,l){var s=[null];s.push.apply(s,i);var v=Function.bind.apply(a,s),d=new v;return l&&De(d,l.prototype),d},Qe.apply(null,arguments)}function Vi(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function xt(t){var e=typeof Map=="function"?new Map:void 0;return xt=function(r){if(r===null||!Vi(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return Qe(r,arguments,Ot(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),De(a,r)},xt(t)}var Hi=/%[sdj%]/g,Wi=function(){};typeof process!="undefined"&&process.env;function Et(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function ne(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=1,a=e[0],i=e.length;if(typeof a=="function")return a.apply(null,e.slice(1));if(typeof a=="string"){var l=String(a).replace(Hi,function(s){if(s==="%%")return"%";if(r>=i)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch{return"[Circular]"}break;default:return s}});return l}return a}function Ui(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function Q(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Ui(e)&&typeof t=="string"&&!t)}function Gi(t,e,n){var r=[],a=0,i=t.length;function l(s){r.push.apply(r,s),a++,a===i&&n(r)}t.forEach(function(s){e(s,l)})}function Hn(t,e,n){var r=0,a=t.length;function i(l){if(l&&l.length){n(l);return}var s=r;r=r+1,s<a?e(t[s],i):n([])}i([])}function Xi(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var Wn=function(t){Ri(e,t);function e(n,r){var a;return a=t.call(this,"Async Validation Error")||this,a.errors=n,a.fields=r,a}return e}(xt(Error));function Yi(t,e,n,r){if(e.first){var a=new Promise(function(c,g){var C=function(w){return r(w),w.length?g(new Wn(w,Et(w))):c()},M=Xi(t);Hn(M,n,C)});return a.catch(function(c){return c}),a}var i=e.firstFields||[];i===!0&&(i=Object.keys(t));var l=Object.keys(t),s=l.length,v=0,d=[],f=new Promise(function(c,g){var C=function(h){if(d.push.apply(d,h),v++,v===s)return r(d),d.length?g(new Wn(d,Et(d))):c()};l.length||(r(d),c()),l.forEach(function(M){var h=t[M];i.indexOf(M)!==-1?Hn(h,n,C):Gi(h,n,C)})});return f.catch(function(c){return c}),f}function Un(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function Gn(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];typeof r=="object"&&typeof t[n]=="object"?t[n]=Oe({},t[n],r):t[n]=r}}return t}function Xn(t,e,n,r,a,i){t.required&&(!n.hasOwnProperty(t.field)||Q(e,i||t.type))&&r.push(ne(a.messages.required,t.fullField))}function Zi(t,e,n,r,a){(/^\s+$/.test(e)||e==="")&&r.push(ne(a.messages.whitespace,t.fullField))}var Pt={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Be={integer:function(e){return Be.number(e)&&parseInt(e,10)===e},float:function(e){return Be.number(e)&&!Be.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Be.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(Pt.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(Pt.url)},hex:function(e){return typeof e=="string"&&!!e.match(Pt.hex)}};function Ki(t,e,n,r,a){if(t.required&&e===void 0){Xn(t,e,n,r,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?Be[l](e)||r.push(ne(a.messages.types[l],t.fullField,t.type)):l&&typeof e!==t.type&&r.push(ne(a.messages.types[l],t.fullField,t.type))}function Qi(t,e,n,r,a){var i=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",v=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=e,f=null,c=typeof e=="number",g=typeof e=="string",C=Array.isArray(e);if(c?f="number":g?f="string":C&&(f="array"),!f)return!1;C&&(d=e.length),g&&(d=e.replace(v,"_").length),i?d!==t.len&&r.push(ne(a.messages[f].len,t.fullField,t.len)):l&&!s&&d<t.min?r.push(ne(a.messages[f].min,t.fullField,t.min)):s&&!l&&d>t.max?r.push(ne(a.messages[f].max,t.fullField,t.max)):l&&s&&(d<t.min||d>t.max)&&r.push(ne(a.messages[f].range,t.fullField,t.min,t.max))}var Se="enum";function Ji(t,e,n,r,a){t[Se]=Array.isArray(t[Se])?t[Se]:[],t[Se].indexOf(e)===-1&&r.push(ne(a.messages[Se],t.fullField,t[Se].join(", ")))}function eo(t,e,n,r,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(ne(a.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(e)||r.push(ne(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var V={required:Xn,whitespace:Zi,type:Ki,range:Qi,enum:Ji,pattern:eo};function to(t,e,n,r,a){var i=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Q(e,"string")&&!t.required)return n();V.required(t,e,r,i,a,"string"),Q(e,"string")||(V.type(t,e,r,i,a),V.range(t,e,r,i,a),V.pattern(t,e,r,i,a),t.whitespace===!0&&V.whitespace(t,e,r,i,a))}n(i)}function no(t,e,n,r,a){var i=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Q(e)&&!t.required)return n();V.required(t,e,r,i,a),e!==void 0&&V.type(t,e,r,i,a)}n(i)}function ro(t,e,n,r,a){var i=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(e===""&&(e=void 0),Q(e)&&!t.required)return n();V.required(t,e,r,i,a),e!==void 0&&(V.type(t,e,r,i,a),V.range(t,e,r,i,a))}n(i)}function ao(t,e,n,r,a){var i=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Q(e)&&!t.required)return n();V.required(t,e,r,i,a),e!==void 0&&V.type(t,e,r,i,a)}n(i)}function io(t,e,n,r,a){var i=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Q(e)&&!t.required)return n();V.required(t,e,r,i,a),Q(e)||V.type(t,e,r,i,a)}n(i)}function oo(t,e,n,r,a){var i=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Q(e)&&!t.required)return n();V.required(t,e,r,i,a),e!==void 0&&(V.type(t,e,r,i,a),V.range(t,e,r,i,a))}n(i)}function lo(t,e,n,r,a){var i=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Q(e)&&!t.required)return n();V.required(t,e,r,i,a),e!==void 0&&(V.type(t,e,r,i,a),V.range(t,e,r,i,a))}n(i)}function so(t,e,n,r,a){var i=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(e==null&&!t.required)return n();V.required(t,e,r,i,a,"array"),e!=null&&(V.type(t,e,r,i,a),V.range(t,e,r,i,a))}n(i)}function uo(t,e,n,r,a){var i=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Q(e)&&!t.required)return n();V.required(t,e,r,i,a),e!==void 0&&V.type(t,e,r,i,a)}n(i)}var co="enum";function fo(t,e,n,r,a){var i=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Q(e)&&!t.required)return n();V.required(t,e,r,i,a),e!==void 0&&V[co](t,e,r,i,a)}n(i)}function ho(t,e,n,r,a){var i=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Q(e,"string")&&!t.required)return n();V.required(t,e,r,i,a),Q(e,"string")||V.pattern(t,e,r,i,a)}n(i)}function vo(t,e,n,r,a){var i=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Q(e,"date")&&!t.required)return n();if(V.required(t,e,r,i,a),!Q(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),V.type(t,s,r,i,a),s&&V.range(t,s.getTime(),r,i,a)}}n(i)}function po(t,e,n,r,a){var i=[],l=Array.isArray(e)?"array":typeof e;V.required(t,e,r,i,a,l),n(i)}function St(t,e,n,r,a){var i=t.type,l=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(Q(e,i)&&!t.required)return n();V.required(t,e,r,l,a,i),Q(e,i)||V.type(t,e,r,l,a)}n(l)}function mo(t,e,n,r,a){var i=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Q(e)&&!t.required)return n();V.required(t,e,r,i,a)}n(i)}var je={string:to,method:no,number:ro,boolean:ao,regexp:io,integer:oo,float:lo,array:so,object:uo,enum:fo,pattern:ho,date:vo,url:St,hex:St,email:St,required:po,any:mo};function At(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var $t=At();function ge(t){this.rules=null,this._messages=$t,this.define(t)}ge.prototype={messages:function(e){return e&&(this._messages=Gn(At(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var n,r;for(n in e)e.hasOwnProperty(n)&&(r=e[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(e,n,r){var a=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var i=e,l=n,s=r;if(typeof l=="function"&&(s=l,l={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function v(h){var w,p=[],S={};function F(b){if(Array.isArray(b)){var $;p=($=p).concat.apply($,b)}else p.push(b)}for(w=0;w<h.length;w++)F(h[w]);p.length?S=Et(p):(p=null,S=null),s(p,S)}if(l.messages){var d=this.messages();d===$t&&(d=At()),Gn(d,l.messages),l.messages=d}else l.messages=this.messages();var f,c,g={},C=l.keys||Object.keys(this.rules);C.forEach(function(h){f=a.rules[h],c=i[h],f.forEach(function(w){var p=w;typeof p.transform=="function"&&(i===e&&(i=Oe({},i)),c=i[h]=p.transform(c)),typeof p=="function"?p={validator:p}:p=Oe({},p),p.validator=a.getValidationMethod(p),p.field=h,p.fullField=p.fullField||h,p.type=a.getType(p),!!p.validator&&(g[h]=g[h]||[],g[h].push({rule:p,value:c,source:i,field:h}))})});var M={};return Yi(g,l,function(h,w){var p=h.rule,S=(p.type==="object"||p.type==="array")&&(typeof p.fields=="object"||typeof p.defaultField=="object");S=S&&(p.required||!p.required&&h.value),p.field=h.field;function F(_,E){return Oe({},E,{fullField:p.fullField+"."+_})}function b(_){_===void 0&&(_=[]);var E=_;if(Array.isArray(E)||(E=[E]),!l.suppressWarning&&E.length&&ge.warning("async-validator:",E),E.length&&p.message!==void 0&&(E=[].concat(p.message)),E=E.map(Un(p)),l.first&&E.length)return M[p.field]=1,w(E);if(!S)w(E);else{if(p.required&&!h.value)return p.message!==void 0?E=[].concat(p.message).map(Un(p)):l.error&&(E=[l.error(p,ne(l.messages.required,p.field))]),w(E);var A={};if(p.defaultField)for(var q in h.value)h.value.hasOwnProperty(q)&&(A[q]=p.defaultField);A=Oe({},A,h.rule.fields);for(var z in A)if(A.hasOwnProperty(z)){var L=Array.isArray(A[z])?A[z]:[A[z]];A[z]=L.map(F.bind(null,z))}var X=new ge(A);X.messages(l.messages),h.rule.options&&(h.rule.options.messages=l.messages,h.rule.options.error=l.error),X.validate(h.value,h.rule.options||l,function(j){var N=[];E&&E.length&&N.push.apply(N,E),j&&j.length&&N.push.apply(N,j),w(N.length?N:null)})}}var $;p.asyncValidator?$=p.asyncValidator(p,h.value,b,h.source,l):p.validator&&($=p.validator(p,h.value,b,h.source,l),$===!0?b():$===!1?b(p.message||p.field+" fails"):$ instanceof Array?b($):$ instanceof Error&&b($.message)),$&&$.then&&$.then(function(){return b()},function(_){return b(_)})},function(h){v(h)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!je.hasOwnProperty(e.type))throw new Error(ne("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var n=Object.keys(e),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?je.required:je[this.getType(e)]||!1}};ge.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");je[e]=n};ge.warning=Wi;ge.messages=$t;ge.validators=je;function he(t){return t==null?[]:Array.isArray(t)?t:[t]}function _t(t){return he(t)}function go(t,e){return t&&t.some(function(n){return bo(n,e)})}function Yn(t){return Ve(t)==="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function Zn(t,e){var n=Array.isArray(t)?le(t):O({},t);return e&&Object.keys(e).forEach(function(r){var a=n[r],i=e[r],l=Yn(a)&&Yn(i);n[r]=l?Zn(a,i||{}):i}),n}function yo(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce(function(a,i){return Zn(a,i)},t)}function bo(t,e){return!t||!e||t.length!==e.length?!1:t.every(function(n,r){return e[r]===n})}var re="'${name}' is not a valid ${type}",Tt={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:re,method:re,array:re,object:re,number:re,date:re,boolean:re,integer:re,float:re,regexp:re,email:re,url:re,hex:re},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Je=globalThis&&globalThis.__awaiter||function(t,e,n,r){function a(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function s(f){try{d(r.next(f))}catch(c){l(c)}}function v(f){try{d(r.throw(f))}catch(c){l(c)}}function d(f){f.done?i(f.value):a(f.value).then(s,v)}d((r=r.apply(t,e||[])).next())})},wo=ge;function Co(t,e){return t.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return e[r]})}function Dt(t,e,n,r,a){return Je(this,void 0,void 0,me.mark(function i(){var l,s,v,d,f,c,g,C;return me.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return l=O({},n),delete l.ruleIndex,s=null,l&&l.type==="array"&&l.defaultField&&(s=l.defaultField,delete l.defaultField),v=new wo(U({},t,[l])),d=yo({},Tt,r.validateMessages),v.messages(d),f=[],h.prev=8,h.next=11,Promise.resolve(v.validate(U({},t,e),O({},r)));case 11:h.next=16;break;case 13:h.prev=13,h.t0=h.catch(8),h.t0.errors?f=h.t0.errors.map(function(w,p){var S=w.message;return nn(S)?ta(S,{key:"error_".concat(p)}):S}):(console.error(h.t0),f=[d.default()]);case 16:if(!(!f.length&&s)){h.next=21;break}return h.next=19,Promise.all(e.map(function(w,p){return Dt("".concat(t,".").concat(p),w,s,r,a)}));case 19:return c=h.sent,h.abrupt("return",c.reduce(function(w,p){return[].concat(le(w),le(p))},[]));case 21:return g=O(O(O({},n),{name:t,enum:(n.enum||[]).join(", ")}),a),C=f.map(function(w){return typeof w=="string"?Co(w,g):w}),h.abrupt("return",C);case 24:case"end":return h.stop()}},i,null,[[8,13]])}))}function Kn(t,e,n,r,a,i){var l=this,s=t.join("."),v=n.map(function(c,g){var C=c.validator,M=O(O({},c),{ruleIndex:g});return C&&(M.validator=function(h,w,p){var S=!1,F=function(){for(var _=arguments.length,E=new Array(_),A=0;A<_;A++)E[A]=arguments[A];Promise.resolve().then(function(){S||p.apply(void 0,E)})},b=C(h,w,F);S=b&&typeof b.then=="function"&&typeof b.catch=="function",S&&b.then(function(){p()}).catch(function($){p($||" ")})}),M}).sort(function(c,g){var C=c.warningOnly,M=c.ruleIndex,h=g.warningOnly,w=g.ruleIndex;return!!C==!!h?M-w:C?1:-1}),d;if(a===!0)d=new Promise(function(c,g){return Je(l,void 0,void 0,me.mark(function C(){var M,h,w;return me.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:M=0;case 1:if(!(M<v.length)){S.next=12;break}return h=v[M],S.next=5,Dt(s,e,h,r,i);case 5:if(w=S.sent,!w.length){S.next=9;break}return g([{errors:w,rule:h}]),S.abrupt("return");case 9:M+=1,S.next=1;break;case 12:c([]);case 13:case"end":return S.stop()}},C)}))});else{var f=v.map(function(c){return Dt(s,e,c,r,i).then(function(g){return{errors:g,rule:c}})});d=(a?Fo(f):Mo(f)).then(function(c){return Promise.reject(c)})}return d.catch(function(c){return c}),d}function Mo(t){return Je(this,void 0,void 0,me.mark(function e(){return me.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(a){var i,l=(i=[]).concat.apply(i,le(a));return l}));case 1:case"end":return r.stop()}},e)}))}function Fo(t){return Je(this,void 0,void 0,me.mark(function e(){var n;return me.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=0,a.abrupt("return",new Promise(function(i){t.forEach(function(l){l.then(function(s){s.errors.length&&i([s]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return a.stop()}},e)}))}var ko=1,Oo=2;function xo(t,e,n,r){var a=n.length,i=a,l=!r;if(t==null)return!i;for(t=Object(t);a--;){var s=n[a];if(l&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++a<i;){s=n[a];var v=s[0],d=t[v],f=s[1];if(l&&s[2]){if(d===void 0&&!(v in t))return!1}else{var c=new qe;if(r)var g=r(d,f,v,t,e,c);if(!(g===void 0?Xe(f,d,ko|Oo,r,c):g))return!1}}return!0}function Qn(t){return t===t&&!Sr(t)}function Eo(t){for(var e=rn(t),n=e.length;n--;){var r=e[n],a=t[r];e[n]=[r,a,Qn(a)]}return e}function Jn(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function Po(t){var e=Eo(t);return e.length==1&&e[0][2]?Jn(e[0][0],e[0][1]):function(n){return n===t||xo(n,t,e)}}function So(t,e,n){var r=t==null?void 0:an(t,e);return r===void 0?n:r}function Ao(t,e){return t!=null&&e in Object(t)}function $o(t,e,n){e=Ar(e,t);for(var r=-1,a=e.length,i=!1;++r<a;){var l=st(e[r]);if(!(i=t!=null&&n(t,l)))break;t=t[l]}return i||++r!=a?i:(a=t==null?0:t.length,!!a&&$r(a)&&_r(l,a)&&(Re(t)||Tr(t)))}function _o(t,e){return t!=null&&$o(t,e,Ao)}var To=1,Do=2;function Bo(t,e){return on(t)&&Qn(e)?Jn(st(t),e):function(n){var r=So(n,t);return r===void 0&&r===e?_o(n,t):Xe(e,r,To|Do)}}function jo(t){return function(e){return e==null?void 0:e[t]}}function No(t){return function(e){return an(e,t)}}function Io(t){return on(t)?jo(st(t)):No(t)}function er(t){return typeof t=="function"?t:t==null?ln:typeof t=="object"?Re(t)?Bo(t[0],t[1]):Po(t):Io(t)}function zo(t){return function(e,n,r){var a=Object(e);if(!sn(e)){var i=er(n);e=rn(e),n=function(s){return i(a[s],s,a)}}var l=t(e,n,r);return l>-1?a[i?e[l]:l]:void 0}}var Lo=Math.max;function Ro(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var a=n==null?0:ri(n);return a<0&&(a=Lo(r+a,0)),En(t,er(e),a)}var qo=zo(Ro),Vo=qo,tr=Symbol("formContextKey"),nr=function(e){He(tr,e)},Bt=function(){return Fe(tr,{labelAlign:G(function(){return"right"}),vertical:G(function(){return!1}),addField:function(n,r){},removeField:function(n){},model:G(function(){}),rules:G(function(){}),requiredMark:G(function(){return!1})})},rr=Symbol("formItemPrefixContextKey"),Ho=function(e){He(rr,e)},Wo=function(){return Fe(rr,{prefixCls:G(function(){return""})})},jt=function(e,n){var r,a=n.slots,i=n.emit,l=n.attrs,s,v,d,f,c,g=O(O({},e),l),C=g.prefixCls,M=g.htmlFor,h=g.labelCol,w=g.labelAlign,p=g.colon,S=g.required,F=g.requiredMark,b=Dr("Form"),$=Br(b,1),_=$[0],E=(s=e.label)!==null&&s!==void 0?s:(v=a.label)===null||v===void 0?void 0:v.call(a);if(!E)return null;var A=Bt(),q=A.vertical,z=A.labelAlign,L=A.labelCol,X=A.colon,j=h||(L==null?void 0:L.value)||{},N=w||(z==null?void 0:z.value),x="".concat(C,"-item-label"),D=te(x,N==="left"&&"".concat(x,"-left"),j.class),B=E,y=p===!0||(X==null?void 0:X.value)!==!1&&p!==!1,m=y&&!q.value;m&&typeof E=="string"&&E.trim()!==""&&(B=E.replace(/[:|:]\s*$/,"")),B=o(wn,null,[B,(d=a.tooltip)===null||d===void 0?void 0:d.call(a,{class:"".concat(C,"-item-tooltip")})]),F==="optional"&&!S&&(B=o(wn,null,[B,o("span",{class:"".concat(C,"-item-optional")},[((f=_.value)===null||f===void 0?void 0:f.optional)||((c=jr.Form)===null||c===void 0?void 0:c.optional)])]));var k=te((r={},U(r,"".concat(C,"-item-required"),S),U(r,"".concat(C,"-item-required-mark-optional"),F==="optional"),U(r,"".concat(C,"-item-no-colon"),!y),r));return o(gn,Y(Y({},j),{},{class:D}),{default:function(){return[o("label",{"html-for":M,class:k,title:typeof E=="string"?E:"",onClick:function(I){return i("click",I)}},[B])]}})};jt.displayName="FormItemLabel";jt.inheritAttrs=!1;var Uo=jt,Go=J({name:"ErrorList",props:["errors","help","onDomErrorVisibleChange"],setup:function(e){var n=$e("",e),r=n.prefixCls,a=Wo(),i=a.prefixCls,l=a.status,s=se(!!(e.errors&&e.errors.length)),v=se(l.value),d=se(),f=se(le(e.errors));return pe([function(){return le(e.errors)},function(){return e.help}],function(c){window.clearTimeout(d.value),e.help?(s.value=!!(e.errors&&e.errors.length),s.value&&(f.value=c[0])):d.value=window.setTimeout(function(){s.value=!!(e.errors&&e.errors.length),s.value&&(f.value=c[0])})}),Cn(function(){window.clearTimeout(d.value)}),pe([s,l],function(){s.value&&l.value&&(v.value=l.value)}),pe(s,function(){var c;s.value&&((c=e.onDomErrorVisibleChange)===null||c===void 0||c.call(e,!0))},{immediate:!0,flush:"post"}),function(){var c,g="".concat(i.value,"-item-explain"),C=ut("".concat(r.value,"-show-help"),{onAfterLeave:function(){var h;(h=e.onDomErrorVisibleChange)===null||h===void 0||h.call(e,!1)}});return o(Nr,C,{default:function(){return[s.value?o("div",{class:te(g,U({},"".concat(g,"-").concat(v.value),v.value)),key:"help"},[(c=f.value)===null||c===void 0?void 0:c.map(function(h,w){return o("div",{key:w,role:"alert"},[h])})]):null]}})}}}),Xo={success:On,warning:xn,error:un,validating:Ir},Yo=J({slots:["help","extra","errors"],inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","validateStatus","onDomErrorVisibleChange","wrapperCol","help","extra","status"],setup:function(e,n){var r=n.slots,a=Bt(),i=a.wrapperCol,l=O({},a);return delete l.labelCol,delete l.wrapperCol,nr(l),Ho({prefixCls:G(function(){return e.prefixCls}),status:G(function(){return e.status})}),na(function(){e.onDomErrorVisibleChange(!1)}),function(){var s,v,d,f,c=e.prefixCls,g=e.wrapperCol,C=e.help,M=C===void 0?(s=r.help)===null||s===void 0?void 0:s.call(r):C,h=e.errors,w=h===void 0?(v=r.errors)===null||v===void 0?void 0:v.call(r):h,p=e.onDomErrorVisibleChange,S=e.hasFeedback,F=e.validateStatus,b=e.extra,$=b===void 0?(d=r.extra)===null||d===void 0?void 0:d.call(r):b,_="".concat(c,"-item"),E=g||(i==null?void 0:i.value)||{},A=te("".concat(_,"-control"),E.class),q=F&&Xo[F],z=S&&q?o("span",{class:"".concat(_,"-children-icon")},[o(q,null,null)]):null,L=o("div",{class:"".concat(_,"-control-input")},[o("div",{class:"".concat(_,"-control-input-content")},[(f=r.default)===null||f===void 0?void 0:f.call(r)]),z]),X=o(Go,{errors:w,help:M,onDomErrorVisibleChange:p},null),j=$?o("div",{class:"".concat(_,"-extra")},[$]):null;return o(gn,Y(Y({},E),{},{class:A}),{default:function(){return[L,X,j]}})}}}),Zo=Yo;we("success","warning","error","validating","");function Nt(t,e,n){var r=t,a=e,i=0;try{for(var l=a.length;i<l-1&&!(!r&&!n);++i){var s=a[i];if(s in r)r=r[s];else{if(n)throw Error("please transfer a valid name path to form item!");break}}if(n&&!r)throw Error("please transfer a valid name path to form item!")}catch{console.error("please transfer a valid name path to form item!")}return{o:r,k:a[i],v:r?r[a[i]]:void 0}}var Ko={id:u.string,htmlFor:u.string,prefixCls:u.string,label:u.VNodeChild,help:u.VNodeChild,extra:u.VNodeChild,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:u.looseBool.def(!1),colon:u.looseBool,labelAlign:u.oneOf(we("left","right")),prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:u.oneOfType([Array,Object]),autoLink:u.looseBool.def(!0),required:u.looseBool,validateFirst:u.looseBool,validateStatus:u.oneOf(we("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean},Qo=0,Jo=J({name:"AFormItem",mixins:[Ee],inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:Ko,slots:["help","label","extra"],setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose;zr(e.prop===void 0);var l="form-item-".concat(++Qo),s=$e("form",e),v=s.prefixCls,d=Bt(),f=G(function(){return e.name||e.prop}),c=se([]),g=se(!1),C=se(!1),M=se(),h=G(function(){var x=f.value;return _t(x)}),w=G(function(){var x=e.id;if(x)return x;if(h.value.length){var D=d.name.value,B=h.value.join("_");return D?"".concat(D,"_").concat(B):B}else return}),p=G(function(){var x=d.model.value;if(!(!x||!f.value))return Nt(x,h.value,!0).v}),S=se(Ke(p.value)),F=G(function(){var x=e.validateTrigger!==void 0?e.validateTrigger:d.validateTrigger.value;return x=x===void 0?"change":x,he(x)}),b=G(function(){var x=d.rules.value,D=e.rules,B=e.required!==void 0?{required:!!e.required,trigger:F.value}:[],y=Nt(x,h.value);x=x?y.o[y.k]||y.v:[];var m=[].concat(D||x||[]);return Vo(m,function(k){return k.required})?m:m.concat(B)}),$=G(function(){var x=b.value,D=!1;return x&&x.length&&x.every(function(B){return B.required?(D=!0,!1):!0}),D||e.required}),_=se();ra(function(){_.value=e.validateStatus});var E=function(D){var B=e.validateFirst,y=B===void 0?!1:B,m=e.messageVariables,k=D||{},P=k.triggerName,T=b.value;if(P&&(T=T.filter(function(W){var H=W.trigger;if(!H&&!F.value.length)return!0;var R=he(H||F.value);return R.includes(P)})),!T.length)return Promise.resolve();var I=Kn(h.value,p.value,T,D,y,m);return _.value="validating",c.value=[],I.catch(function(W){return W}).then(function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(_.value==="validating"){var H=W.filter(function(R){return R&&R.errors.length});_.value=H.length?"error":"success",c.value=H.map(function(R){return R.errors})}}),I},A=function(){E({triggerName:"blur"})},q=function(){if(g.value){g.value=!1;return}E({triggerName:"change"})},z=function(){_.value="",g.value=!1,c.value=[]},L=function(){_.value="",g.value=!0,c.value=[];var D=d.model.value||{},B=p.value,y=Nt(D,h.value,!0);Array.isArray(B)?y.o[y.k]=[].concat(S.value):y.o[y.k]=S.value,de(function(){g.value=!1})},X=function(){var D=w.value;if(!(!D||!M.value)){var B=M.value.$el.querySelector('[id="'.concat(D,'"]'));B&&B.focus&&B.focus()}};i({onFieldBlur:A,onFieldChange:q,clearValidate:z,resetField:L});var j=!1;pe(f,function(x){x?j||(j=!0,d.addField(l,{fieldValue:p,fieldId:w,fieldName:f,resetField:L,clearValidate:z,namePath:h,validateRules:E,rules:b})):(j=!1,d.removeField(l))},{immediate:!0}),Cn(function(){d.removeField(l)});var N=G(function(){var x;return x={},U(x,"".concat(v.value,"-item"),!0),U(x,"".concat(v.value,"-item-has-feedback"),_.value&&e.hasFeedback),U(x,"".concat(v.value,"-item-has-success"),_.value==="success"),U(x,"".concat(v.value,"-item-has-warning"),_.value==="warning"),U(x,"".concat(v.value,"-item-has-error"),_.value==="error"),U(x,"".concat(v.value,"-item-is-validating"),_.value==="validating"),U(x,"".concat(v.value,"-item-hidden"),e.hidden),x});return function(){var x,D,B,y,m,k,P=(x=e.help)!==null&&x!==void 0?x:r.help?Lr(r.help()):null,T=Ut((D=r.default)===null||D===void 0?void 0:D.call(r)),I=T[0];if(f.value&&e.autoLink&&nn(I)){var W=I.props||{},H=W.onBlur,R=W.onChange;I=en(I,O(O({},w.value?{id:w.value}:void 0),{onBlur:function(){if(Array.isArray(R))for(var K=0,ee=R.length;K<ee;K++)H[K].apply(H,arguments);else H&&H.apply(void 0,arguments);A()},onChange:function(){if(Array.isArray(R))for(var K=0,ee=R.length;K<ee;K++)R[K].apply(R,arguments);else R&&R.apply(void 0,arguments);q()}}))}return o(Qr,Y(Y({},a),{},{class:[N.value,C.value||!!P?"".concat(v.value,"-item-with-help"):"",a.class],key:"row"}),{default:function(){return[o(Uo,Y(Y({},e),{},{htmlFor:w.value,required:$.value,requiredMark:d.requiredMark.value,prefixCls:v.value,onClick:X,label:(B=e.label)!==null&&B!==void 0?B:(y=r.label)===null||y===void 0?void 0:y.call(r)}),null),o(Zo,Y(Y({},e),{},{errors:P!=null?he(P):c.value,prefixCls:v.value,status:_.value,onDomErrorVisibleChange:function(ee){return C.value=ee},validateStatus:_.value,ref:M,help:P,extra:(m=e.extra)!==null&&m!==void 0?m:(k=r.extra)===null||k===void 0?void 0:k.call(r)}),{default:function(){return[[I,T.slice(1)]]}})]}})}}});function ar(t){var e=!1,n=t.length,r=[];return t.length?new Promise(function(a,i){t.forEach(function(l,s){l.catch(function(v){return e=!0,v}).then(function(v){n-=1,r[s]=v,!(n>0)&&(e&&i(r),a(r))})})}):Promise.resolve([])}function ir(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function or(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function It(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return or(n.overflowY,e)||or(n.overflowX,e)||function(r){var a=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!a&&(a.clientHeight<r.scrollHeight||a.clientWidth<r.scrollWidth)}(t)}return!1}function et(t,e,n,r,a,i,l,s){return i<t&&l>e||i>t&&l<e?0:i<=t&&s<=n||l>=e&&s>=n?i-t-r:l>e&&s<n||i<t&&s>n?l-e+a:0}function lr(t,e){var n=window,r=e.scrollMode,a=e.block,i=e.inline,l=e.boundary,s=e.skipOverflowHiddenElements,v=typeof l=="function"?l:function(ie){return ie!==l};if(!ir(t))throw new TypeError("Invalid target");for(var d=document.scrollingElement||document.documentElement,f=[],c=t;ir(c)&&v(c);){if((c=c.parentElement)===d){f.push(c);break}c!=null&&c===document.body&&It(c)&&!It(document.documentElement)||c!=null&&It(c,s)&&f.push(c)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,C=n.visualViewport?n.visualViewport.height:innerHeight,M=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,w=t.getBoundingClientRect(),p=w.height,S=w.width,F=w.top,b=w.right,$=w.bottom,_=w.left,E=a==="start"||a==="nearest"?F:a==="end"?$:F+p/2,A=i==="center"?_+S/2:i==="end"?b:_,q=[],z=0;z<f.length;z++){var L=f[z],X=L.getBoundingClientRect(),j=X.height,N=X.width,x=X.top,D=X.right,B=X.bottom,y=X.left;if(r==="if-needed"&&F>=0&&_>=0&&$<=C&&b<=g&&F>=x&&$<=B&&_>=y&&b<=D)return q;var m=getComputedStyle(L),k=parseInt(m.borderLeftWidth,10),P=parseInt(m.borderTopWidth,10),T=parseInt(m.borderRightWidth,10),I=parseInt(m.borderBottomWidth,10),W=0,H=0,R="offsetWidth"in L?L.offsetWidth-L.clientWidth-k-T:0,Z="offsetHeight"in L?L.offsetHeight-L.clientHeight-P-I:0;if(d===L)W=a==="start"?E:a==="end"?E-C:a==="nearest"?et(h,h+C,C,P,I,h+E,h+E+p,p):E-C/2,H=i==="start"?A:i==="center"?A-g/2:i==="end"?A-g:et(M,M+g,g,k,T,M+A,M+A+S,S),W=Math.max(0,W+h),H=Math.max(0,H+M);else{W=a==="start"?E-x-P:a==="end"?E-B+I+Z:a==="nearest"?et(x,B,j,P,I+Z,E,E+p,p):E-(x+j/2)+Z/2,H=i==="start"?A-y-k:i==="center"?A-(y+N/2)+R/2:i==="end"?A-D+T+R:et(y,D,N,k,T+R,A,A+S,S);var K=L.scrollLeft,ee=L.scrollTop;E+=ee-(W=Math.max(0,Math.min(ee+W,L.scrollHeight-j+Z))),A+=K-(H=Math.max(0,Math.min(K+H,L.scrollWidth-N+R)))}q.push({el:L,top:W,left:H})}return q}function sr(t){return t===Object(t)&&Object.keys(t).length!==0}function el(t,e){e===void 0&&(e="auto");var n="scrollBehavior"in document.body.style;t.forEach(function(r){var a=r.el,i=r.top,l=r.left;a.scroll&&n?a.scroll({top:i,left:l,behavior:e}):(a.scrollTop=i,a.scrollLeft=l)})}function tl(t){return t===!1?{block:"end",inline:"nearest"}:sr(t)?t:{block:"start",inline:"nearest"}}function nl(t,e){var n=!t.ownerDocument.documentElement.contains(t);if(sr(e)&&typeof e.behavior=="function")return e.behavior(n?[]:lr(t,e));if(!n){var r=tl(e);return el(lr(t,r),r.behavior)}}var rl=Math.min;function al(t,e,n){for(var r=n?Ja:Qa,a=t[0].length,i=t.length,l=i,s=Array(i),v=1/0,d=[];l--;){var f=t[l];l&&e&&(f=cn(f,Rr(e))),v=rl(f.length,v),s[l]=!n&&(e||a>=120&&f.length>=120)?new _e(l&&f):void 0}f=t[0];var c=-1,g=s[0];e:for(;++c<a&&d.length<v;){var C=f[c],M=e?e(C):C;if(C=n||C!==0?C:0,!(g?Mt(g,M):r(d,M,n))){for(l=i;--l;){var h=s[l];if(!(h?Mt(h,M):r(t[l],M,n)))continue e}g&&g.push(M),d.push(C)}}return d}function il(t,e){return qr(Vr(t,e,ln),t+"")}function ol(t){return it(t)&&sn(t)}function ll(t){return ol(t)?t:[]}var sl=il(function(t){var e=cn(t,ll);return e.length&&e[0]===t[0]?al(e):[]}),ul=sl;function ur(t){var e=!1;return t&&t.length&&t.every(function(n){return n.required?(e=!0,!1):!0}),e}function cr(t){return t==null?[]:Array.isArray(t)?t:[t]}function zt(t,e,n){var r=t;e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,"");for(var a=e.split("."),i=0,l=a.length;i<l-1&&!(!r&&!n);++i){var s=a[i];if(s in r)r=r[s];else{if(n)throw new Error("please transfer a valid name path to validate!");break}}return{o:r,k:a[i],v:r?r[a[i]]:null,isValid:r&&a[i]in r}}function cl(t,e,n){var r=Ke(ke(t)),a=aa({}),i=G(function(){return e?Object.keys(ke(e)):[]});pe(i,function(){var S={};i.value.forEach(function(b){S[b]=a[b]||{autoLink:!1,required:ur(ke(e)[b])},delete a[b]});for(var F in a)Object.prototype.hasOwnProperty.call(a,F)&&delete a[F];O(a,S)},{immediate:!0});var l=function(F){O(ke(t),O(O({},Ke(r)),F)),de(function(){Object.keys(a).forEach(function(b){a[b]={autoLink:!1,required:ur(ke(e)[b])}})})},s=function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],b=arguments.length>1?arguments[1]:void 0;return b.length?F.filter(function($){var _=cr($.trigger||"change");return ul(_,b).length}):F},v=null,d=function(F){for(var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=arguments.length>2?arguments[2]:void 0,_=[],E={},A=function(N){var x=F[N],D=zt(ke(t),x,$);if(!D.isValid)return"continue";E[x]=D.v;var B=s(ke(e)[x],cr(b&&b.trigger));B.length&&_.push(f(x,D.v,B,b||{}).then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(y){var m=[],k=[];return y.forEach(function(P){var T=P.rule.warningOnly,I=P.errors;T?k.push.apply(k,le(I)):m.push.apply(m,le(I))}),m.length?Promise.reject({name:x,errors:m,warnings:k}):{name:x,errors:m,warnings:k}}))},q=0;q<F.length;q++)var z=A(q);var L=ar(_);v=L;var X=L.then(function(){return v===L?Promise.resolve(E):Promise.reject([])}).catch(function(j){var N=j.filter(function(x){return x&&x.errors.length});return Promise.reject({values:E,errorFields:N,outOfDate:v!==L})});return X.catch(function(j){return j}),X},f=function(F,b,$){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},E=Kn([F],b,$,O({validateMessages:Tt},_),!!_.validateFirst);return a[F]?(a[F].validateStatus="validating",E.catch(function(A){return A}).then(function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(a[F].validateStatus==="validating"){var q=A.filter(function(z){return z&&z.errors.length});a[F].validateStatus=q.length?"error":"success",a[F].help=q.length?q.map(function(z){return z.errors}):""}}),E):E.catch(function(A){return A})},c=function(F,b){var $=[],_=!0;F?Array.isArray(F)?$=F:$=[F]:(_=!1,$=i.value);var E=d($,b||{},_);return E.catch(function(A){return A}),E},g=function(F){var b=[];F?Array.isArray(F)?b=F:b=[F]:b=i.value,b.forEach(function($){a[$]&&O(a[$],{validateStatus:"",help:""})})},C=function(F){for(var b={autoLink:!1},$=[],_=Array.isArray(F)?F:[F],E=0;E<_.length;E++){var A=_[E];(A==null?void 0:A.validateStatus)==="error"&&(b.validateStatus="error",A.help&&$.push(A.help)),b.required=b.required||(A==null?void 0:A.required)}return b.help=$,b},M=r,h=!0,w=function(F){var b=[];i.value.forEach(function($){var _=zt(F,$,!1),E=zt(M,$,!1),A=h&&(n==null?void 0:n.immediate)&&_.isValid;(A||!Dn(_.v,E.v))&&b.push($)}),c(b,{trigger:"change"}),h=!1,M=Ke(F)},p=n==null?void 0:n.debounce;return pe(t,p&&p.wait?Jr(w,p.wait,Hr(p,["wait"])):w,{immediate:n&&!!n.immediate,deep:!0}),pe(e,function(){n&&n.validateOnRuleChange&&c()},{deep:!0}),{modelRef:t,rulesRef:e,initialModel:r,validateInfos:a,resetFields:l,validate:c,validateField:f,mergeValidateInfo:C,clearValidate:g}}var fl={layout:u.oneOf(we("horizontal","inline","vertical")),labelCol:{type:Object},wrapperCol:{type:Object},colon:u.looseBool,labelAlign:u.oneOf(we("left","right")),prefixCls:u.string,requiredMark:{type:[String,Boolean],default:void 0},hideRequiredMark:u.looseBool,model:u.object,rules:{type:Object},validateMessages:u.object,validateOnRuleChange:u.looseBool,scrollToFirstError:{type:[Boolean,Object]},onSubmit:u.func,onFinish:u.func,onFinishFailed:u.func,name:u.string,validateTrigger:{type:[String,Array]},size:{type:String}};function dl(t,e){return Dn(he(t),he(e))}var hl=J({name:"AForm",inheritAttrs:!1,props:fn(fl,{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:Jo,useForm:cl,emits:["finishFailed","submit","finish"],setup:function(e,n){var r=n.emit,a=n.slots,i=n.expose,l=n.attrs,s=Wa(e),v=$e("form",e),d=v.prefixCls,f=v.direction,c=v.form,g=G(function(){return e.requiredMark===""||e.requiredMark}),C=G(function(){var j;return g.value!==void 0?g.value:c&&((j=c.value)===null||j===void 0?void 0:j.requiredMark)!==void 0?c.value.requiredMark:!e.hideRequiredMark}),M=G(function(){var j;return te(d.value,(j={},U(j,"".concat(d.value,"-").concat(e.layout),!0),U(j,"".concat(d.value,"-hide-required-mark"),C.value===!1),U(j,"".concat(d.value,"-rtl"),f.value==="rtl"),U(j,"".concat(d.value,"-").concat(s.value),s.value),j))}),h=se(),w={},p=function(N,x){w[N]=x},S=function(N){delete w[N]},F=function(N){var x=!!N,D=x?he(N).map(_t):[];return x?Object.values(w).filter(function(B){return D.findIndex(function(y){return dl(y,B.fieldName.value)})>-1}):Object.values(w)},b=function(N){if(!e.model){Pe(!1,"Form","model is required for resetFields to work.");return}F(N).forEach(function(x){x.resetField()})},$=function(N){F(N).forEach(function(x){x.clearValidate()})},_=function(N){var x=e.scrollToFirstError;if(r("finishFailed",N),x&&N.errorFields.length){var D={};Ve(x)==="object"&&(D=x),A(N.errorFields[0].name,D)}},E=function(){return L.apply(void 0,arguments)},A=function(N){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=F(N);if(D.length){var B=D[0].fieldId.value,y=B?document.getElementById(B):null;y&&nl(y,O({scrollMode:"if-needed",block:"nearest"},x))}},q=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,x={};if(Object.values(w).forEach(function(B){var y=B.fieldName,m=B.fieldValue;x[y.value]=m.value}),N===!0)return x;var D={};return he(N).forEach(function(B){return D[B]=x[B]}),D},z=function(N,x){if(Pe(!(N instanceof Function),"Form","validateFields/validateField/validate not support callback, please use promise instead"),!e.model)return Pe(!1,"Form","model is required for validateFields to work."),Promise.reject("Form `model` is required for validateFields to work.");var D=!!N,B=D?he(N).map(_t):[],y=[];Object.values(w).forEach(function(P){var T;if(D||B.push(P.namePath.value),!!((T=P.rules)===null||T===void 0?void 0:T.value.length)){var I=P.namePath.value;if(!D||go(B,I)){var W=P.validateRules(O({validateMessages:O(O({},Tt),e.validateMessages)},x));y.push(W.then(function(){return{name:I,errors:[],warnings:[]}}).catch(function(H){var R=[],Z=[];return H.forEach(function(K){var ee=K.rule.warningOnly,ie=K.errors;ee?Z.push.apply(Z,le(ie)):R.push.apply(R,le(ie))}),R.length?Promise.reject({name:I,errors:R,warnings:Z}):{name:I,errors:R,warnings:Z}}))}}});var m=ar(y);h.value=m;var k=m.then(function(){return h.value===m?Promise.resolve(q(B)):Promise.reject([])}).catch(function(P){var T=P.filter(function(I){return I&&I.errors.length});return Promise.reject({values:q(B),errorFields:T,outOfDate:h.value!==m})});return k.catch(function(P){return P}),k},L=function(){return z.apply(void 0,arguments)},X=function(N){if(N.preventDefault(),N.stopPropagation(),r("submit",N),e.model){var x=z();x.then(function(D){r("finish",D)}).catch(function(D){_(D)})}};return i({resetFields:b,clearValidate:$,validateFields:z,getFieldsValue:q,validate:E,scrollToField:A}),nr({model:G(function(){return e.model}),name:G(function(){return e.name}),labelAlign:G(function(){return e.labelAlign}),labelCol:G(function(){return e.labelCol}),wrapperCol:G(function(){return e.wrapperCol}),vertical:G(function(){return e.layout==="vertical"}),colon:G(function(){return e.colon}),requiredMark:C,validateTrigger:G(function(){return e.validateTrigger}),rules:G(function(){return e.rules}),addField:p,removeField:S}),pe(function(){return e.rules},function(){e.validateOnRuleChange&&z()}),function(){var j;return o("form",Y(Y({},l),{},{onSubmit:X,class:[M.value,l.class]}),[(j=a.default)===null||j===void 0?void 0:j.call(a)])}}}),ms=hl,vl={visible:u.looseBool,hiddenClassName:u.string,forceRender:u.looseBool},fr={props:vl,render:function(){return o("div",null,[be(this)])}},tt=function(t){var e=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;if(!!e){if(t){document.body.style.position="",document.body.style.width="";return}var n=Bn();n&&(document.body.style.position="relative",document.body.style.width="calc(100% - ".concat(n,"px)"))}};function dr(){return{keyboard:u.looseBool,mask:u.looseBool,afterClose:u.func,closable:u.looseBool,maskClosable:u.looseBool,visible:u.looseBool,destroyOnClose:u.looseBool,mousePosition:u.shape({x:u.number,y:u.number}).loose,title:u.any,footer:u.any,transitionName:u.string,maskTransitionName:u.string,animation:u.any,maskAnimation:u.any,wrapStyle:u.object,bodyStyle:u.object,maskStyle:u.object,prefixCls:u.string,wrapClassName:u.string,width:u.oneOfType([u.string,u.number]),height:u.oneOfType([u.string,u.number]),zIndex:u.number,bodyProps:u.any,maskProps:u.any,wrapProps:u.any,getContainer:u.any,dialogStyle:u.object,dialogClass:u.string,closeIcon:u.any,forceRender:u.looseBool,getOpenCount:u.func,focusTriggerAfterClose:u.looseBool,onClose:u.func}}var pl=dr(),ml=0;function Lt(){}function hr(t,e){var n=t["page".concat(e?"Y":"X","Offset")],r="scroll".concat(e?"Top":"Left");if(typeof n!="number"){var a=t.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function vr(t,e){var n=t.style;["Webkit","Moz","Ms","ms"].forEach(function(r){n["".concat(r,"TransformOrigin")]=e}),n.transformOrigin=e}function gl(t){var e=t.getBoundingClientRect(),n={left:e.left,top:e.top},r=t.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=hr(a),n.top+=hr(a,!0),n}var ve={},pr=J({name:"VcDialog",mixins:[Ee],inheritAttrs:!1,props:Jt(pl,{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:function(){return null},focusTriggerAfterClose:!0}),data:function(){return Pe(!this.dialogClass,"Modal","dialogClass is deprecated, please use class instead."),Pe(!this.dialogStyle,"Modal","dialogStyle is deprecated, please use style instead."),{inTransition:!1,titleId:"rcDialogTitle".concat(ml++),dialogMouseDown:void 0}},watch:{visible:function(e){var n=this;this.$nextTick(function(){n.updatedCallback(!e)})}},created:function(){He("dialogContext",this)},mounted:function(){var e=this;this.$nextTick(function(){e.updatedCallback(!1),(e.forceRender||e.getContainer===!1&&!e.visible)&&e.$refs.wrap&&(e.$refs.wrap.style.display="none")})},beforeUnmount:function(){var e=this.visible,n=this.getOpenCount;(e||this.inTransition)&&!n()&&this.switchScrollingEffect(),clearTimeout(this.timeoutId)},methods:{getDialogWrap:function(){return this.$refs.wrap},updatedCallback:function(e){var n=this.mousePosition,r=this.mask,a=this.focusTriggerAfterClose;if(this.visible){if(!e){this.openTime=Date.now(),this.switchScrollingEffect(),this.tryFocus();var i=dn(this.$refs.dialog);if(n){var l=gl(i);vr(i,"".concat(n.x-l.left,"px ").concat(n.y-l.top,"px"))}else vr(i,"")}}else if(e&&(this.inTransition=!0,r&&this.lastOutSideFocusNode&&a)){try{this.lastOutSideFocusNode.focus()}catch{this.lastOutSideFocusNode=null}this.lastOutSideFocusNode=null}},tryFocus:function(){Wr(this.$refs.wrap,document.activeElement)||(this.lastOutSideFocusNode=document.activeElement,this.$refs.sentinelStart.focus())},onAnimateLeave:function(){var e=this.afterClose;this.$refs.wrap&&(this.$refs.wrap.style.display="none"),this.inTransition=!1,this.switchScrollingEffect(),e&&e()},onDialogMouseDown:function(){this.dialogMouseDown=!0},onMaskMouseUp:function(){var e=this;this.dialogMouseDown&&(this.timeoutId=setTimeout(function(){e.dialogMouseDown=!1},0))},onMaskClick:function(e){Date.now()-this.openTime<300||e.target===e.currentTarget&&!this.dialogMouseDown&&this.close(e)},onKeydown:function(e){var n=this.$props;if(n.keyboard&&e.keyCode===lt.ESC){e.stopPropagation(),this.close(e);return}if(n.visible&&e.keyCode===lt.TAB){var r=document.activeElement,a=this.$refs.sentinelStart;e.shiftKey?r===a&&this.$refs.sentinelEnd.focus():r===this.$refs.sentinelEnd&&a.focus()}},getDialogElement:function(){var e=this,n=this.closable,r=this.prefixCls,a=this.width,i=this.height,l=this.title,s=this.footer,v=this.bodyStyle,d=this.visible,f=this.bodyProps,c=this.forceRender,g=this.closeIcon,C=this.dialogStyle,M=C===void 0?{}:C,h=this.dialogClass,w=h===void 0?"":h,p=O({},M);a!==void 0&&(p.width=typeof a=="number"?"".concat(a,"px"):a),i!==void 0&&(p.height=typeof i=="number"?"".concat(i,"px"):i);var S;s&&(S=o("div",{key:"footer",class:"".concat(r,"-footer"),ref:"footer"},[s]));var F;l&&(F=o("div",{key:"header",class:"".concat(r,"-header"),ref:"header"},[o("div",{class:"".concat(r,"-title"),id:this.titleId},[l])]));var b;n&&(b=o("button",{type:"button",key:"close",onClick:this.close||Lt,"aria-label":"Close",class:"".concat(r,"-close")},[g||o("span",{class:"".concat(r,"-close-x")},null)]));var $=this.$attrs,_=$.style,E=$.class,A=O(O({},_),p),q={width:0,height:0,overflow:"hidden"},z=[r,E,w],L=this.getTransitionName(),X=ct(o(fr,{key:"dialog-element",role:"document",ref:"dialog",style:A,class:z,forceRender:c,onMousedown:this.onDialogMouseDown},{default:function(){return[o("div",{tabindex:0,ref:"sentinelStart",style:q,"aria-hidden":"true"},null),o("div",{class:"".concat(r,"-content")},[b,F,o("div",Y({key:"body",class:"".concat(r,"-body"),style:v,ref:"body"},f),[be(e)]),S]),o("div",{tabindex:0,ref:"sentinelEnd",style:q,"aria-hidden":"true"},null)]}}),[[Mn,d]]),j=ut(L,{onAfterLeave:this.onAnimateLeave});return o(hn,Y({key:"dialog"},j),{default:function(){return[d||!e.destroyOnClose?X:null]}})},getZIndexStyle:function(){var e={},n=this.$props;return n.zIndex!==void 0&&(e.zIndex=n.zIndex),e},getWrapStyle:function(){return O(O({},this.getZIndexStyle()),this.wrapStyle)},getMaskStyle:function(){return O(O({},this.getZIndexStyle()),this.maskStyle)},getMaskElement:function(){var e=this.$props,n;if(e.mask){var r=this.getMaskTransitionName(),a=ct(o(fr,Y({style:this.getMaskStyle(),key:"mask",class:"".concat(e.prefixCls,"-mask")},e.maskProps||{}),null),[[Mn,e.visible]]);if(r){var i=ut(r);n=o(hn,Y({key:"mask"},i),{default:function(){return[a]}})}else n=a}return n},getMaskTransitionName:function(){var e=this.$props,n=e.maskTransitionName,r=e.maskAnimation;return!n&&r&&(n="".concat(e.prefixCls,"-").concat(r)),n},getTransitionName:function(){var e=this.$props,n=e.transitionName,r=e.animation;return!n&&r&&(n="".concat(e.prefixCls,"-").concat(r)),n},switchScrollingEffect:function(){var e=this.getOpenCount,n=e();if(n===1){if(ve.hasOwnProperty("overflowX"))return;ve={overflowX:document.body.style.overflowX,overflowY:document.body.style.overflowY,overflow:document.body.style.overflow},tt(),document.body.style.overflow="hidden"}else n||(ve.overflow!==void 0&&(document.body.style.overflow=ve.overflow),ve.overflowX!==void 0&&(document.body.style.overflowX=ve.overflowX),ve.overflowY!==void 0&&(document.body.style.overflowY=ve.overflowY),ve={},tt(!0))},close:function(e){this.__emit("close",e)}},render:function(){var e=this.prefixCls,n=this.maskClosable,r=this.visible,a=this.wrapClassName,i=this.title,l=this.wrapProps,s=this.getWrapStyle();return r&&(s.display=null),o("div",{class:"".concat(e,"-root")},[this.getMaskElement(),o("div",Y({tabindex:-1,onKeydown:this.onKeydown,class:"".concat(e,"-wrap ").concat(a||""),ref:"wrap",onClick:n?this.onMaskClick:Lt,onMouseup:n?this.onMaskMouseUp:Lt,role:"dialog","aria-labelledby":i?this.titleId:null,style:s},l),[this.getDialogElement()])])}});function mr(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.element,r=n===void 0?document.body:n,a={},i=Object.keys(t);return i.forEach(function(l){a[l]=r.style[l]}),i.forEach(function(l){r.style[l]=t[l]}),a}var ae=0,yl=!(typeof window!="undefined"&&window.document&&window.document.createElement),nt={},bl=J({name:"PortalWrapper",props:{wrapperClassName:u.string,forceRender:u.looseBool,getContainer:u.any,children:u.func,visible:u.looseBool},data:function(){this._component=null;var e=this.$props.visible;return ae=e?ae+1:ae,{}},watch:{visible:function(e){ae=e?ae+1:ae-1},getContainer:function(e,n){var r=typeof e=="function"&&typeof n=="function";(r?e.toString()!==n.toString():e!==n)&&this.removeCurrentContainer(!1)}},updated:function(){this.setWrapperClassName()},beforeUnmount:function(){var e=this.$props.visible;ae=e&&ae?ae-1:ae,this.removeCurrentContainer(e)},methods:{getParent:function(){var e=this.$props.getContainer;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(Ve(e)==="object"&&e instanceof window.HTMLElement)return e}return document.body},getDomContainer:function(){if(yl)return null;if(!this.container){this.container=document.createElement("div");var e=this.getParent();e&&e.appendChild(this.container)}return this.setWrapperClassName(),this.container},setWrapperClassName:function(){var e=this.$props.wrapperClassName;this.container&&e&&e!==this.container.className&&(this.container.className=e)},savePortal:function(e){this._component=e},removeCurrentContainer:function(){this.container=null,this._component=null},switchScrollingEffect:function(){ae===1&&!Object.keys(nt).length?(tt(),nt=mr({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):ae||(mr(nt),nt={},tt(!0))}},render:function(){var e=this.$props,n=e.children,r=e.forceRender,a=e.visible,i=null,l={getOpenCount:function(){return ae},getContainer:this.getDomContainer,switchScrollingEffect:this.switchScrollingEffect};return(r||a||this._component)&&(i=o(Ur,{getContainer:this.getDomContainer,children:n(l),ref:this.savePortal},null)),i}}),gr=dr(),wl=J({inheritAttrs:!1,props:O(O({},gr),{visible:gr.visible.def(!1)}),render:function(){var e=this,n=this.$props,r=n.visible,a=n.getContainer,i=n.forceRender,l=O(O(O({},this.$props),this.$attrs),{ref:"_component",key:"dialog"});return a===!1?o(pr,Y(Y({},l),{},{getOpenCount:function(){return 2}}),{default:function(){return[be(e)]}}):o(bl,{visible:r,forceRender:i,getContainer:a,children:function(v){return l=O(O({},l),v),o(pr,l,{default:function(){return[be(e)]}})}},null)}}),Cl=wl,Rt=null,Ml=function(e){Rt={x:e.pageX,y:e.pageY},setTimeout(function(){return Rt=null},100)};typeof window!="undefined"&&window.document&&window.document.documentElement&&Xr(document.documentElement,"click",Ml,!0);function Fl(){}var kl={prefixCls:u.string,visible:u.looseBool,confirmLoading:u.looseBool,title:u.any,closable:u.looseBool,closeIcon:u.any,onOk:{type:Function},onCancel:{type:Function},afterClose:u.func.def(Fl),centered:u.looseBool,width:u.oneOfType([u.string,u.number]),footer:u.any,okText:u.any,okType:{type:String},cancelText:u.any,icon:u.any,maskClosable:u.looseBool,forceRender:u.looseBool,okButtonProps:u.shape(bn).loose,cancelButtonProps:u.shape(bn).loose,destroyOnClose:u.looseBool,wrapClassName:u.string,maskTransitionName:u.string,transitionName:u.string,getContainer:u.any,zIndex:u.number,bodyStyle:u.style,maskStyle:u.style,mask:u.looseBool,keyboard:u.looseBool,wrapProps:u.object,focusTriggerAfterClose:u.looseBool},Ae=[],oe=J({name:"AModal",inheritAttrs:!1,props:fn(kl,{width:520,transitionName:"zoom",maskTransitionName:"fade",confirmLoading:!1,visible:!1,okType:"primary"}),emits:["update:visible","cancel","change","ok"],setup:function(){return{configProvider:Fe("configProvider",at)}},data:function(){return{sVisible:!!this.visible}},watch:{visible:function(e){this.sVisible=e}},methods:{handleCancel:function(e){this.$emit("update:visible",!1),this.$emit("cancel",e),this.$emit("change",!1)},handleOk:function(e){this.$emit("ok",e)},renderFooter:function(e){var n=this,r=this.okType,a=this.confirmLoading,i=O({onClick:this.handleCancel},this.cancelButtonProps||{}),l=O(O(O({onClick:this.handleOk},yn(r)),{loading:a}),this.okButtonProps||{});return o("div",null,[o(Me,i,{default:function(){return[Ce(n,"cancelText")||e.cancelText]}}),o(Me,l,{default:function(){return[Ce(n,"okText")||e.okText]}})])}},render:function(){var e=this.prefixCls,n=this.sVisible,r=this.wrapClassName,a=this.centered,i=this.getContainer,l=this.$attrs,s=be(this),v=this.configProvider,d=v.getPrefixCls,f=v.getPopupContainer,c=d("modal",e),g=o(Gr,{componentName:"Modal",defaultLocale:vn(),children:this.renderFooter},null),C=Ce(this,"closeIcon"),M=o("span",{class:"".concat(c,"-close-x")},[C||o(tn,{class:"".concat(c,"-close-icon")},null)]),h=Ce(this,"footer"),w=Ce(this,"title"),p=O(O(O({},this.$props),l),{getContainer:i===void 0?f:i,prefixCls:c,wrapClassName:te(U({},"".concat(c,"-centered"),!!a),r),title:w,footer:h===void 0?g:h,visible:n,mousePosition:Rt,closeIcon:M,onClose:this.handleCancel});return o(Cl,p,{default:function(){return[s]}})}}),Ol={type:{type:String},actionFn:u.func,closeModal:u.func,autofocus:u.looseBool,buttonProps:u.object},yr=J({mixins:[Ee],props:Ol,setup:function(){return{timeoutId:void 0}},data:function(){return{loading:!1}},mounted:function(){var e=this;this.autofocus&&(this.timeoutId=setTimeout(function(){return dn(e).focus()}))},beforeUnmount:function(){clearTimeout(this.timeoutId)},methods:{onClick:function(){var e=this,n=this.actionFn,r=this.closeModal;if(n){var a;n.length?a=n(r):(a=n(),a||r()),a&&a.then&&(this.setState({loading:!0}),a.then(function(){r.apply(void 0,arguments)},function(i){console.error(i),e.setState({loading:!1})}))}else r()}},render:function(){var e=this,n=this.type,r=this.loading,a=this.buttonProps,i=O(O(O({},yn(n)),{onClick:this.onClick,loading:r}),a);return o(Me,i,{default:function(){return[be(e)]}})}});function Ne(t,e){return typeof e=="function"?e():e}var br=function(e){var n=e.icon,r=e.onCancel,a=e.onOk,i=e.close,l=e.closable,s=l===void 0?!1:l,v=e.zIndex,d=e.afterClose,f=e.visible,c=e.keyboard,g=e.centered,C=e.getContainer,M=e.maskStyle,h=e.okButtonProps,w=e.cancelButtonProps,p=e.okType||"primary",S=e.prefixCls||"ant-modal",F="".concat(S,"-confirm"),b="okCancel"in e?e.okCancel:!0,$=e.width||416,_=e.style||{},E=e.mask===void 0?!0:e.mask,A=e.maskClosable===void 0?!1:e.maskClosable,q=vn(),z=Ne("okText",e.okText)||(b?q.okText:q.justOkText),L=Ne("cancelText",e.cancelText)||q.cancelText,X=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",j=e.transitionName||"zoom",N=e.maskTransitionName||"fade",x=te(F,"".concat(F,"-").concat(e.type),"".concat(S,"-").concat(e.type),e.class),D=b&&o(yr,{actionFn:r,closeModal:i,autofocus:X==="cancel",buttonProps:w},{default:function(){return[L]}});return o(oe,{prefixCls:S,class:x,wrapClassName:te(U({},"".concat(F,"-centered"),!!g)),onCancel:function(y){return i({triggerCancel:!0},y)},visible:f,title:"",transitionName:j,footer:"",maskTransitionName:N,mask:E,maskClosable:A,maskStyle:M,style:_,width:$,zIndex:v,afterClose:d,keyboard:c,centered:g,getContainer:C,closable:s},{default:function(){return[o("div",{class:"".concat(F,"-body-wrapper")},[o("div",{class:"".concat(F,"-body")},[Ne("icon",n),e.title===void 0?null:o("span",{class:"".concat(F,"-title")},[Ne("title",e.title)]),o("div",{class:"".concat(F,"-content")},[Ne("content",e.content)])]),o("div",{class:"".concat(F,"-btns")},[D,o(yr,{type:p,actionFn:a,closeModal:i,autofocus:X==="ok",buttonProps:h},{default:function(){return[z]}})])])]}})};br.inheritAttrs=!1;var xl=br,El=function(e){var n=document.createElement("div");document.body.appendChild(n);var r=O(O({},rt(e,["parentContext","appContext"])),{close:i,visible:!0}),a=null;function i(){for(var f=arguments.length,c=new Array(f),g=0;g<f;g++)c[g]=arguments[g];r=O(O({},r),{visible:!1,afterClose:s.bind.apply(s,[this].concat(c))}),l(r)}function l(f){r=O(O({},r),f),a&&(O(a.component.props,r),a.component.update())}function s(){a&&n.parentNode&&(O(a.component.props,{vIf:!1}),a.component.update(),a=null,n.parentNode.removeChild(n));for(var f=arguments.length,c=new Array(f),g=0;g<f;g++)c[g]=arguments[g];var C=c.some(function(w){return w&&w.triggerCancel});e.onCancel&&C&&e.onCancel.apply(e,c);for(var M=0;M<Ae.length;M++){var h=Ae[M];if(h===i){Ae.splice(M,1);break}}}var v=function(c){return c.vIf?o(xl,c,null):null};function d(f){var c=o(v,O(O({},f),{vIf:!0}));return c.appContext=e.parentContext||e.appContext||c.appContext,ia(c,n),c}return a=d(r),Ae.push(i),{destroy:i,update:l}},Ie=El,Pl=function(e){var n=O({type:"info",icon:function(){return o(Aa,null,null)},okCancel:!1},e);return Ie(n)},Sl=function(e){var n=O({type:"success",icon:function(){return o(wa,null,null)},okCancel:!1},e);return Ie(n)},Al=function(e){var n=O({type:"error",icon:function(){return o(Ba,null,null)},okCancel:!1},e);return Ie(n)},wr=function(e){var n=O({type:"warning",icon:function(){return o(Oa,null,null)},okCancel:!1},e);return Ie(n)},$l=wr,_l=function(e){var n=O({type:"confirm",okCancel:!0},e);return Ie(n)};oe.info=Pl;oe.success=Sl;oe.error=Al;oe.warning=wr;oe.warn=$l;oe.confirm=_l;oe.destroyAll=function(){for(;Ae.length;){var e=Ae.pop();e&&e()}};oe.install=function(t){return t.component(oe.name,oe),t};var Tl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},Dl=Tl;function Bl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){jl(t,a,n[a])})}return t}function jl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qt=function(e,n){var r=Bl({},e,n.attrs);return o(ue,ce(r,{icon:Dl}),null)};qt.displayName="WarningFilled";qt.inheritAttrs=!1;var Nl=qt,Il=function(){return o("svg",{width:"252",height:"294"},[o("defs",null,[o("path",{d:"M0 .387h251.772v251.772H0z"},null)]),o("g",{fill:"none","fill-rule":"evenodd"},[o("g",{transform:"translate(0 .012)"},[o("mask",{fill:"#fff"},null),o("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),o("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),o("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),o("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),o("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),o("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),o("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),o("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),o("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),o("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),o("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),o("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),o("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),o("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),o("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),o("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),o("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),o("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),o("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),o("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),o("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),o("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),o("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),o("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),o("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),o("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),o("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),o("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),o("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),o("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),o("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),o("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),o("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),o("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),o("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),o("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),o("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),o("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),o("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),o("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),o("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),o("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])])},zl=Il,Ll=function(){return o("svg",{width:"254",height:"294"},[o("defs",null,[o("path",{d:"M0 .335h253.49v253.49H0z"},null),o("path",{d:"M0 293.665h253.49V.401H0z"},null)]),o("g",{fill:"none","fill-rule":"evenodd"},[o("g",{transform:"translate(0 .067)"},[o("mask",{fill:"#fff"},null),o("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),o("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),o("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),o("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),o("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),o("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),o("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),o("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),o("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),o("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),o("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),o("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),o("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),o("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),o("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),o("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),o("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),o("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),o("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),o("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),o("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),o("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),o("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),o("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),o("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),o("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),o("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),o("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),o("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),o("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),o("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),o("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),o("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),o("mask",{fill:"#fff"},null),o("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),o("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),o("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),o("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),o("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),o("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),o("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),o("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),o("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),o("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),o("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])])},Rl=Ll,ql=function(){return o("svg",{width:"251",height:"294"},[o("g",{fill:"none","fill-rule":"evenodd"},[o("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),o("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),o("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),o("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),o("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),o("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),o("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),o("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),o("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),o("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),o("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),o("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),o("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),o("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),o("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),o("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),o("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),o("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),o("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),o("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),o("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),o("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),o("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),o("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),o("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),o("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),o("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),o("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),o("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),o("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),o("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),o("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),o("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),o("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),o("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),o("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),o("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),o("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),o("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),o("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])])},Vl=ql,Hl={success:On,error:un,info:xn,warning:Nl},ze={"404":zl,"500":Rl,"403":Vl},Wl=Object.keys(ze),Ul={prefixCls:u.string,icon:u.any,status:u.oneOf(we("success","error","info","warning","404","403","500")).def("info"),title:u.any,subTitle:u.any,extra:u.any},Gl=function(e,n){var r=n.status,a=n.icon;if(Wl.includes("".concat(r))){var i=ze[r];return o("div",{class:"".concat(e,"-icon ").concat(e,"-image")},[o(i,null,null)])}var l=Hl[r],s=a||o(l,null,null);return o("div",{class:"".concat(e,"-icon")},[s])},Xl=function(e,n){return n&&o("div",{class:"".concat(e,"-extra")},[n])},xe=J({name:"AResult",props:Ul,slots:["title","subTitle","icon","extra"],setup:function(e,n){var r=n.slots,a=$e("result",e),i=a.prefixCls,l=a.direction,s=G(function(){return te(i.value,"".concat(i.value,"-").concat(e.status),U({},"".concat(i.value,"-rtl"),l.value==="rtl"))});return function(){var v,d,f,c,g,C,M,h,w=(v=e.title)!==null&&v!==void 0?v:(d=r.title)===null||d===void 0?void 0:d.call(r),p=(f=e.subTitle)!==null&&f!==void 0?f:(c=r.subTitle)===null||c===void 0?void 0:c.call(r),S=(g=e.icon)!==null&&g!==void 0?g:(C=r.icon)===null||C===void 0?void 0:C.call(r),F=(M=e.extra)!==null&&M!==void 0?M:(h=r.extra)===null||h===void 0?void 0:h.call(r),b=i.value;return o("div",{class:s.value},[Gl(b,{status:e.status,icon:S}),o("div",{class:"".concat(b,"-title")},[w]),p&&o("div",{class:"".concat(b,"-subtitle")},[p]),Xl(b,F),r.default&&o("div",{class:"".concat(b,"-content")},[r.default()])])}}});xe.PRESENTED_IMAGE_403=ze[403];xe.PRESENTED_IMAGE_404=ze[404];xe.PRESENTED_IMAGE_500=ze[500];xe.install=function(t){return t.component(xe.name,xe),t};var gs=xe,Yl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Zl=Yl;function Kl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Ql(t,a,n[a])})}return t}function Ql(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vt=function(e,n){var r=Kl({},e,n.attrs);return o(ue,ce(r,{icon:Zl}),null)};Vt.displayName="DeleteOutlined";Vt.inheritAttrs=!1;var ys=Vt;const Jl=J({name:"XDrawer",props:{visible:Boolean,title:String,width:Number},setup(t,e){function n(){e.emit("handleDrawer",{type:"cancel"})}return{handleCancel:n}}});function es(t,e,n,r,a,i){const l=Ii;return t.title?(ft(),dt(l,{key:0,title:t.title,width:t.width,placement:"right",closable:!1,visible:t.visible,onClose:t.handleCancel},{default:We(()=>[Ue(t.$slots,"content")]),_:3},8,["title","width","visible","onClose"])):(ft(),dt(l,{key:1,width:t.width,placement:"right",closable:!1,visible:t.visible,onClose:t.handleCancel},{title:We(()=>[Ue(t.$slots,"title")]),default:We(()=>[Ue(t.$slots,"content")]),_:3},8,["width","visible","onClose"]))}var bs=Fn(Jl,[["render",es]]);const ts=J({name:"XModal",props:{visible:Boolean,title:String,btn:Object},setup(t,e){function n(){e.emit("handleModel",{type:"ok"})}function r(){e.emit("handleModel",{type:"cancel"})}return{handleOk:n,handleCancel:r}}});function ns(t,e,n,r,a,i){const l=oe;return ft(),dt(l,{visible:t.visible,title:t.title,"ok-text":t.btn.okText,"cancel-text":t.btn.cancelText,onOk:t.handleOk,onCancel:t.handleCancel},{default:We(()=>[Ue(t.$slots,"content")]),_:3},8,["visible","title","ok-text","cancel-text","onOk","onCancel"])}var ws=Fn(ts,[["render",ns]]),rs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},as=rs;function is(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){os(t,a,n[a])})}return t}function os(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ht=function(e,n){var r=is({},e,n.attrs);return o(ue,ce(r,{icon:as}),null)};Ht.displayName="ClearOutlined";Ht.inheritAttrs=!1;var Cs=Ht,ls={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},ss=ls;function us(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){cs(t,a,n[a])})}return t}function cs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Wt=function(e,n){var r=us({},e,n.attrs);return o(ue,ce(r,{icon:ss}),null)};Wt.displayName="FormOutlined";Wt.inheritAttrs=!1;var Ms=Wt;export{Cs as C,ys as D,Oa as E,ms as F,oe as M,ws as X,bs as _,Ms as a,ps as b,Jo as c,gs as d};
| 12,695.916667 | 150,447 | 0.684846 |
0571de586ffa855fff9d4b40c778061282c9debc | 494 | js | JavaScript | src/App.spec.js | stackr23/react-stack | 73ddf8a97e57382579bbf80c4aecd13ddb3623f3 | [
"MIT"
] | null | null | null | src/App.spec.js | stackr23/react-stack | 73ddf8a97e57382579bbf80c4aecd13ddb3623f3 | [
"MIT"
] | 3 | 2022-01-28T14:58:21.000Z | 2022-01-29T12:35:18.000Z | src/App.spec.js | stackr23/react-stack | 73ddf8a97e57382579bbf80c4aecd13ddb3623f3 | [
"MIT"
] | null | null | null | import React from 'react'
import App from './App.tsx'
const { enzyme: { mount }, chai: { expect }} = global
describe('<App />', function() {
const wrapper = mount(<App />)
it('renders without errors', function() {
expect(wrapper).to.have.descendants('#app_headline')
})
// it('renders with child component <Test foo="foo" />', function() {
// expect(wrapper).to.contain(<Test content="PLACEHOLDER" />)
// expect(wrapper).to.have.descendants('#test_content')
// })
})
| 26 | 71 | 0.633603 |
057347f870b84a61c1de8e81d129c98dcfea0c8a | 1,788 | js | JavaScript | build/animations/easer.min.js | jasmith79/ui-components-lite | dce1d7887f92eee306fc534765f2292c149c163e | [
"MIT"
] | null | null | null | build/animations/easer.min.js | jasmith79/ui-components-lite | dce1d7887f92eee306fc534765f2292c149c163e | [
"MIT"
] | null | null | null | build/animations/easer.min.js | jasmith79/ui-components-lite | dce1d7887f92eee306fc534765f2292c149c163e | [
"MIT"
] | null | null | null | import{defineUIComponent,document,global}from'../utils/dom.min.js';import{generateCSSClassName}from'../utils/styler.min.js';const orientations={left:['X','-'],right:['X',''],up:['Y','-'],down:['Y','']};export default((a)=>defineUIComponent({name:'ui-easer',registerElement:!1,definition:class extends a{constructor(){super(),this._animations=[]}defineSlideAnimation({direction:a,timing:b=500,fn:c='ease',distance:d='100%'}){this._animations.sliding||(this._animations.sliding={});const[e,f]=orientations[a],g=f&&d.match('-')?'':f,h=generateCSSClassName(),i=generateCSSClassName(),j=document.createElement('template');j.innerHTML=`
<style>
:host {
transition-property: transform;
transition-duration: ${b}ms;
transition-timing-function: ${c};
transform: translate3d(0, 0, 0);
}
:host(.${h}) {
transform: translate${e}(${g}${d});
}
:host(.${i}) {
transform: translate${e}(0);
}
</style>
`,global._usingShady&&global.ShadyCSS.prepareTemplate(j,this.tagName.toLowerCase()),this.shadowRoot.appendChild(document.importNode(j.content,!0));const k=this,l={_isIn:!1,easeIn(){return this._isIn=!0,k.classList.add(h),global._usingShady&&ShadyCSS.styleSubtree(k),new Promise((a)=>{global.setTimeout(()=>{k.classList.remove(i),global._usingShady&&ShadyCSS.styleSubtree(k),a(!0)},b)})},easeOut(){return this._isIn=!1,k.classList.add(i),global._usingShady&&ShadyCSS.styleSubtree(k),new Promise((a)=>{global.setTimeout(()=>{k.classList.remove(h),global._usingShady&&ShadyCSS.styleSubtree(k),a(!0)},b)})},toggle(){return this._isIn?this.easeOut():this.easeIn()},get styles(){return styles}};return this._animations.sliding[a.toLowerCase()]=l,l}}})); | 99.333333 | 753 | 0.662752 |
057387b62b63d189385d76697d7e894997ead5ab | 2,286 | js | JavaScript | chat-plugins/uop.js | WeWuzNidokangz/TrashChannel | 59b3c7ac2545bbbd65210a6346b735bb9cfb2692 | [
"MIT"
] | 10 | 2016-10-16T13:15:20.000Z | 2018-05-28T01:11:16.000Z | chat-plugins/uop.js | WeWuzNidokangz/TrashChannel | 59b3c7ac2545bbbd65210a6346b735bb9cfb2692 | [
"MIT"
] | 147 | 2016-08-14T02:02:22.000Z | 2019-01-23T22:23:47.000Z | chat-plugins/uop.js | WeWuzNidokangz/TrashChannel | 59b3c7ac2545bbbd65210a6346b735bb9cfb2692 | [
"MIT"
] | 65 | 2016-08-13T04:38:35.000Z | 2019-11-27T19:30:26.000Z | /* +------------------------+
* | UOP Utils |
* +------------------------+
* | Stuff UOP needs in his |
* | life |
* +------------------------+
*
* +------------------------+
* | Custom Color Framework |
* | (modified for DH) |
* +------------------------+
* | Written: 13-03-2018 |
* | Modified: 04-04-2018 |
* +------------------------+
*/
fs = require("fs");
if (!UOP.colors) UOP.colors = {};
UOP.isColor = function(color) {
color = color.toUpperCase();
if (color === "DELETE") return "delete";
validvalues = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"];
color = color.replace(/\s/g, "");
if (color.startsWith("#")) color = color.substring(1);
if (color.length != 6 && color.length != 3) return false;
let ret = "#"
if (color.length === 3) {
for (let c in color) {
let letter = color[c]
if (validvalues.indexOf(letter) === -1) return false;
ret += letter;
ret += letter;
}
}
else {
for (let c in color) {
let letter = color[c]
if (validvalues.indexOf(letter) === -1) return false;
ret += letter;
}
}
return ret;
}
exports.commands = {
customcolour: 'customcolor',
customcolor: function (target, room, user) {
if (!this.can('hotpatch')) return false;
if (!target || target.indexOf(',') < 0) return this.parse('/help customcolor');
let parts = target.split(',');
let username = toId(parts[0]);
let color = UOP.isColor(parts[1]);
if (color === false) {
return this.errorReply("Please input a valid hexadecimal color value");
}
if (color === "delete" && username in UOP.colors) delete UOP.colors[username];
else UOP.colors[username] = color;
fs.writeFileSync(UOP.CONFIG_PATH + "/colors.json", JSON.stringify(UOP.colors,null,4));
csshelper.buildCustomCss();
return this.sendReply("Custom color updated.")
},
customcolorhelp: [
"/customcolor [user], [color] - Sets a custom username color for the specified user. Requires ~",
"/customcolor [user], delete - Delete custom username color for a user. Requires ~"],
}
| 32.197183 | 105 | 0.502187 |
0573bb15d23c35fa8cf327cd938e7881302c613a | 2,506 | js | JavaScript | cup-o-crm-frontend/src/views/product/ProductListView/ProductCard.js | cupocode/cup-o-crm | b2159eed2d6370ee7c7ddf53213cfd6b1a28262d | [
"MIT"
] | null | null | null | cup-o-crm-frontend/src/views/product/ProductListView/ProductCard.js | cupocode/cup-o-crm | b2159eed2d6370ee7c7ddf53213cfd6b1a28262d | [
"MIT"
] | null | null | null | cup-o-crm-frontend/src/views/product/ProductListView/ProductCard.js | cupocode/cup-o-crm | b2159eed2d6370ee7c7ddf53213cfd6b1a28262d | [
"MIT"
] | null | null | null | import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import {
Avatar,
Box,
Card,
CardContent,
Divider,
// Grid,
Typography,
makeStyles
} from '@material-ui/core';
// import AccessTimeIcon from '@material-ui/icons/AccessTime';
// import GetAppIcon from '@material-ui/icons/GetApp';
const useStyles = makeStyles((theme) => ({
root: {
display: 'flex',
flexDirection: 'column',
boxShadow: '0 1px 1px rgba(0,0,0,0.12), 0 2px 2px rgba(0,0,0,0.12), 0 4px 4px rgba(0,0,0,0.12), 0 8px 8px rgba(0,0,0,0.12),0 16px 16px rgba(0,0,0,0.12)'
},
statsItem: {
alignItems: 'center',
display: 'flex'
},
statsIcon: {
marginRight: theme.spacing(1)
}
}));
const ProductCard = ({ className, product, ...rest }) => {
const classes = useStyles();
return (
<Card
className={clsx(classes.root, className)}
{...rest}
>
<CardContent>
<Box
display="flex"
justifyContent="center"
mb={3}
>
<Avatar
alt="Product"
src={product.media}
variant="square"
/>
</Box>
<Typography
align="center"
color="textPrimary"
gutterBottom
variant="h4"
>
{product.title}
</Typography>
<Typography
align="center"
color="textPrimary"
variant="body1"
>
{product.description}
</Typography>
<Typography
align="center"
color="textPrimary"
variant="h5"
>
{product.detail1}
</Typography>
<Typography
align="center"
color="textPrimary"
variant="h5"
>
{product.detail2}
</Typography>
<Typography
align="center"
color="textPrimary"
variant="h5"
>
{product.detail3}
</Typography>
<Typography
align="center"
color="textPrimary"
variant="h5"
>
{product.detail4}
</Typography>
<Typography
align="center"
color="textPrimary"
variant="h5"
>
{product.detail5}
</Typography>
</CardContent>
<Box flexGrow={1} />
<Divider />
</Card>
);
};
ProductCard.propTypes = {
className: PropTypes.string,
product: PropTypes.object.isRequired
};
export default ProductCard;
| 21.791304 | 156 | 0.519952 |
05744ee6ca59ab6afdf4f75db1ca479820ca2626 | 78 | js | JavaScript | server/apps/bible/data/seeders/genesis/index.js | reggiechapple/bible-one | 2da59153a7465150d9a4e105e6cf58480c725494 | [
"BSD-3-Clause"
] | null | null | null | server/apps/bible/data/seeders/genesis/index.js | reggiechapple/bible-one | 2da59153a7465150d9a4e105e6cf58480c725494 | [
"BSD-3-Clause"
] | null | null | null | server/apps/bible/data/seeders/genesis/index.js | reggiechapple/bible-one | 2da59153a7465150d9a4e105e6cf58480c725494 | [
"BSD-3-Clause"
] | null | null | null |
const bibleExtractor = require("../../../utils/bibleUtils");
// find chapter | 19.5 | 60 | 0.666667 |
05748abf55b76905072d58a9741d91c28868f483 | 387 | js | JavaScript | dist/scripts/watchcolors.js | JebBarbas/jebcolors | 7cd8f6bf1b19364c6568c7596dccd087a542355d | [
"0BSD"
] | 1 | 2021-07-17T18:01:56.000Z | 2021-07-17T18:01:56.000Z | dist/scripts/watchcolors.js | JebBarbas/jebcolors | 7cd8f6bf1b19364c6568c7596dccd087a542355d | [
"0BSD"
] | null | null | null | dist/scripts/watchcolors.js | JebBarbas/jebcolors | 7cd8f6bf1b19364c6568c7596dccd087a542355d | [
"0BSD"
] | null | null | null | "use strict";
// This only runs when you run watchcolors, and only displays a message that says that the server is running
Object.defineProperty(exports, "__esModule", { value: true });
// Imports
var logs_1 = require("../functions/logs");
// Main
console.log('');
logs_1.info('Running "npx serve test" to create a server and see the colors ...');
//# sourceMappingURL=watchcolors.js.map | 43 | 108 | 0.728682 |
0575b2892cdfb85924a77ca3b0894339e365037d | 1,156 | js | JavaScript | packages/docs/.docusaurus/client-modules.js | younkue/egjs-infinitegrid | 69900d17ef7e692f1356dc18fb3e78f6e4c5e0b9 | [
"MIT"
] | 2 | 2018-03-20T05:57:09.000Z | 2018-05-31T10:03:46.000Z | packages/docs/.docusaurus/client-modules.js | younkue/egjs-infinitegrid | 69900d17ef7e692f1356dc18fb3e78f6e4c5e0b9 | [
"MIT"
] | null | null | null | packages/docs/.docusaurus/client-modules.js | younkue/egjs-infinitegrid | 69900d17ef7e692f1356dc18fb3e78f6e4c5e0b9 | [
"MIT"
] | 1 | 2018-06-02T21:57:47.000Z | 2018-06-02T21:57:47.000Z | export default [
require('/Users/daybrush/Desktop/naver/egjs-infinitegrid/packages/docs/node_modules/@docusaurus/plugin-google-analytics/lib/analytics'),
require('/Users/daybrush/Desktop/naver/egjs-infinitegrid/packages/docs/node_modules/infima/dist/css/default/default.css'),
require('/Users/daybrush/Desktop/naver/egjs-infinitegrid/packages/docs/node_modules/@docusaurus/theme-classic/lib/prism-include-languages'),
require('/Users/daybrush/Desktop/naver/egjs-infinitegrid/packages/docs/node_modules/@docusaurus/theme-classic/lib/admonitions.css'),
require('/Users/daybrush/Desktop/naver/egjs-infinitegrid/packages/docs/node_modules/@docusaurus/theme-classic/lib/nprogress'),
require('/Users/daybrush/Desktop/naver/egjs-infinitegrid/packages/docs/src/css/custom.css'),
require('/Users/daybrush/Desktop/naver/egjs-infinitegrid/packages/docs/node_modules/@egjs/react-flicking/dist/flicking.css'),
require('/Users/daybrush/Desktop/naver/egjs-infinitegrid/packages/docs/node_modules/@egjs/flicking-plugins/dist/flicking-plugins.css'),
require('/Users/daybrush/Desktop/naver/egjs-infinitegrid/packages/docs/src/css/bulma-override.sass'),
];
| 96.333333 | 142 | 0.813149 |
0576521b288ac3880f1522a51cbe869fde337092 | 1,656 | js | JavaScript | Sunday 20_3/task4/js/app.js | RaghadKarasneh/JavaScript_tasks | 80f179c01dc7ca25b2fa7ce53fffdb0b248df7f0 | [
"MIT"
] | null | null | null | Sunday 20_3/task4/js/app.js | RaghadKarasneh/JavaScript_tasks | 80f179c01dc7ca25b2fa7ce53fffdb0b248df7f0 | [
"MIT"
] | null | null | null | Sunday 20_3/task4/js/app.js | RaghadKarasneh/JavaScript_tasks | 80f179c01dc7ca25b2fa7ce53fffdb0b248df7f0 | [
"MIT"
] | null | null | null | /*Asking user to insert values*/
let first_num= prompt('Please enter the first value');
let second_num= prompt('Please enter the second value');
let third_num= prompt('Please enter the third value');
/*Converting Strings to Numbers*/
let x= Number(first_num);
let y= Number(second_num);
let z= Number(third_num);
/*Adding Numbers to html page*/
document.getElementById('fnum').innerHTML=x;
document.getElementById('snum').innerHTML=y;
document.getElementById('tnum').innerHTML=z;
/*First Condition: Numbers divided by 3 */
if ((x%3==0) || (y%3==0) || (z%3==0)){
console.log('fizz');
document.getElementById('result1').innerHTML="fizz";
}else{
console.log('No number of the inserted numbers is divisible by 3');
document.getElementById('result1').innerHTML="No number of the inserted numbers is divisible by 3";
}
/*Second Condition: Numbers divided by 5 */
if((x%5==0) || (y%5==0) || (z%5==0)){
console.log('buzz');
document.getElementById('result2').innerHTML="buzz";
}else{
console.log('No number of the inserted numbers is divisible by 5');
document.getElementById('result2').innerHTML="No number of the inserted numbers is divisible by 5";
}
/* Third Condition: Numbers divided by 3 an5 together */
if( ((x%3==0) && (x%5==0)) || ((y%3==0) && (y%5==0)) || ((z%3==0) && (z%5==0))){
console.log('fizz buzz');
document.getElementById('result3').innerHTML= "fizz buzz";
}else{
console.log('No number of the inserted numbers is divisible by 3 and 5 in the same time');
document.getElementById('result3').innerHTML="No number of the inserted numbers is divisible by 3 and 5 in the same time";
}
| 36.8 | 130 | 0.683575 |
0578c516772851bde7682ec0b1c4871890856792 | 4,761 | js | JavaScript | docs/group__selection.js | DL42/3P_custom_synonymous | 657fedddb8f97243243f03c460e6e43ea5ed432c | [
"MIT"
] | 4 | 2016-03-14T21:47:59.000Z | 2016-09-21T06:00:48.000Z | docs/group__selection.js | DL42/3P_custom_synonymous | 657fedddb8f97243243f03c460e6e43ea5ed432c | [
"MIT"
] | 1 | 2017-05-08T01:34:57.000Z | 2017-05-08T01:34:57.000Z | docs/group__selection.js | DL42/3P_custom_synonymous | 657fedddb8f97243243f03c460e6e43ea5ed432c | [
"MIT"
] | null | null | null | var group__selection =
[
[ "selection_constant", "struct_sim___model_1_1selection__constant.html", [
[ "selection_constant", "struct_sim___model_1_1selection__constant.html#a2d3b2c23a0d90df57297fb4bef4a3948", null ],
[ "selection_constant", "struct_sim___model_1_1selection__constant.html#a2725914daa4fcebef72188d8961c3676", null ],
[ "selection_constant", "struct_sim___model_1_1selection__constant.html#abbf17ccf5569d5653eb7ba2c2c8c2a32", null ],
[ "operator()", "struct_sim___model_1_1selection__constant.html#ade86242f1cc46f79749b3ec93a687f04", null ],
[ "s", "struct_sim___model_1_1selection__constant.html#a71a6be221724c941d8c04e50bcf4e518", null ]
] ],
[ "selection_linear_frequency_dependent", "struct_sim___model_1_1selection__linear__frequency__dependent.html", [
[ "selection_linear_frequency_dependent", "struct_sim___model_1_1selection__linear__frequency__dependent.html#a8be661bd0b78c0ba51cf9e150f8974ab", null ],
[ "selection_linear_frequency_dependent", "struct_sim___model_1_1selection__linear__frequency__dependent.html#a9f1c79cb25ee855d9e11ee89a27c4c13", null ],
[ "selection_linear_frequency_dependent", "struct_sim___model_1_1selection__linear__frequency__dependent.html#ad51f0156a2585901b0e6b56dac2b92e4", null ],
[ "operator()", "struct_sim___model_1_1selection__linear__frequency__dependent.html#a8bd992bcf8ae83693e7d174aab0bc3af", null ],
[ "slope", "struct_sim___model_1_1selection__linear__frequency__dependent.html#a2b70934fb3a79ef9da90b2309e8d3377", null ],
[ "intercept", "struct_sim___model_1_1selection__linear__frequency__dependent.html#a9cbf3c88051f734bfd15f9131f3e43c5", null ]
] ],
[ "selection_sine_wave", "struct_sim___model_1_1selection__sine__wave.html", [
[ "selection_sine_wave", "struct_sim___model_1_1selection__sine__wave.html#a1a9c26afe7f88c9480e6ad9249ff490c", null ],
[ "selection_sine_wave", "struct_sim___model_1_1selection__sine__wave.html#a8ab5e54e8ee553f46db88c98cb163542", null ],
[ "selection_sine_wave", "struct_sim___model_1_1selection__sine__wave.html#a18829a903a422a5b75e0c453445cec3d", null ],
[ "operator()", "struct_sim___model_1_1selection__sine__wave.html#a4e9277ed2f000f5b9027ffd6d8b2aeb5", null ],
[ "A", "struct_sim___model_1_1selection__sine__wave.html#ad129f94ee81366e9bb4289a15b26eaeb", null ],
[ "pi", "struct_sim___model_1_1selection__sine__wave.html#a1fb48ad369d059ddb9360367370514ab", null ],
[ "rho", "struct_sim___model_1_1selection__sine__wave.html#aafc64625d052ab9b89bb1c226b940621", null ],
[ "D", "struct_sim___model_1_1selection__sine__wave.html#a19ca0266ccdbe9439043848bae758109", null ],
[ "generation_shift", "struct_sim___model_1_1selection__sine__wave.html#a8ccec42135d9590a1d97fd6dee5587c2", null ]
] ],
[ "selection_population_specific", "struct_sim___model_1_1selection__population__specific.html", [
[ "selection_population_specific", "struct_sim___model_1_1selection__population__specific.html#a7f5ac7e77616d098b4af56ab0b42e500", null ],
[ "selection_population_specific", "struct_sim___model_1_1selection__population__specific.html#a63d40d29d2c97a1c631abafc6d9e6e63", null ],
[ "operator()", "struct_sim___model_1_1selection__population__specific.html#ac35fd51cbbd3b3112ba42a6f830a3b74", null ],
[ "pop", "struct_sim___model_1_1selection__population__specific.html#a47613f98f9cb3a114f4457dfc59ddad7", null ],
[ "generation_shift", "struct_sim___model_1_1selection__population__specific.html#a6893a262ea5503c5c448754041514e9f", null ],
[ "s", "struct_sim___model_1_1selection__population__specific.html#aee2df85f26d7fdce977b5f06e42fba6a", null ],
[ "s_pop", "struct_sim___model_1_1selection__population__specific.html#a45b6c4987f6eee5c798f9e8108f19695", null ]
] ],
[ "selection_piecewise", "struct_sim___model_1_1selection__piecewise.html", [
[ "selection_piecewise", "struct_sim___model_1_1selection__piecewise.html#aa636908f82dd8ac68d26779dbf6c9e63", null ],
[ "selection_piecewise", "struct_sim___model_1_1selection__piecewise.html#ac887be8dc0531afe948a3646902ad92e", null ],
[ "operator()", "struct_sim___model_1_1selection__piecewise.html#a1d0505a8710c8c473b83e21096b4ce18", null ],
[ "inflection_point", "struct_sim___model_1_1selection__piecewise.html#a3e8b8e91d906eed7152712b75926de73", null ],
[ "generation_shift", "struct_sim___model_1_1selection__piecewise.html#a3a6922239328eae6a8dae79c39354bc0", null ],
[ "s1", "struct_sim___model_1_1selection__piecewise.html#a35ab3b05d974d0201837a2d83f406901", null ],
[ "s2", "struct_sim___model_1_1selection__piecewise.html#af3b3be48cdf56ca7d44b39c4814ece98", null ]
] ]
]; | 101.297872 | 159 | 0.813064 |
0579d2b9ae9414feb0bf692d991b2779a57b3663 | 1,697 | js | JavaScript | gwt-2.8.2/samples/Showcase/war/showcase/deferredjs/84A419A88EFF2AE64AE1C3438E692272/21.cache.js | hariPrasad525/Nitya_Annaccounting | 7e259ea4f53ee508455f6fee487240bea2c9e97d | [
"Apache-2.0"
] | null | null | null | gwt-2.8.2/samples/Showcase/war/showcase/deferredjs/84A419A88EFF2AE64AE1C3438E692272/21.cache.js | hariPrasad525/Nitya_Annaccounting | 7e259ea4f53ee508455f6fee487240bea2c9e97d | [
"Apache-2.0"
] | null | null | null | gwt-2.8.2/samples/Showcase/war/showcase/deferredjs/84A419A88EFF2AE64AE1C3438E692272/21.cache.js | hariPrasad525/Nitya_Annaccounting | 7e259ea4f53ee508455f6fee487240bea2c9e97d | [
"Apache-2.0"
] | null | null | null | $wnd.showcase.runAsyncCallback21("function Oqb(a){this.a=a}\nfunction Qqb(a){this.a=a}\nfunction Dbb(a){var b,c;b=EO(Yac(a.a,spc),5);if(b==null){c=RN(LN(u6,1),olc,2,6,['Bonjour le monde',tpc,'Grid']);_ac(a.a,spc,c);return c}else{return b}}\nfunction Eqb(b){var c,d,e,f;e=eUb(b.d,eh(b.d).selectedIndex);c=EO(Cgc(b.f,e),6);try{f=T7b(iWb(b.e));d=T7b(iWb(b.c));_Kb(b.a,c,d,f)}catch(a){a=O7(a);if(LO(a,90)){return}else throw P7(a)}}\nfunction Dqb(a){var b,c,d,e,f,g,h,i;a.f=new Ggc;a.a=new bLb;oh(a.a,upc,upc);hh(a.a,vpc);i=Dbb(a.b);h=new CPb('Hello World');WKb(a.a,h,10,20);Dgc(a.f,i[0],h);c=new RLb('Cliquez-moi!');WKb(a.a,c,80,45);Dgc(a.f,i[1],c);d=new iSb(2,3);d.o[Nlc]='1';for(e=0;e<3;e++){CRb(d,0,e,e+'');FRb(d,1,e,new WHb((zcb(),pcb)))}WKb(a.a,d,60,100);Dgc(a.f,i[2],d);b=new VOb;ji(b,a.a);g=new VOb;ji(g,Cqb(a));f=new nTb;f.e[xnc]=10;kTb(f,g);kTb(f,b);return f}\nfunction Cqb(a){var b,c,d,e,f,g;e=new MRb;a.e=new vWb;sh(a.e,'3em');mWb(a.e,'100');a.c=new vWb;sh(a.c,'3em');mWb(a.c,'60');a.d=new jUb;CRb(e,0,0,'<b>Points \\xE0 circuler:<\\/b>');FRb(e,0,1,a.d);CRb(e,1,0,'<b>Bord du dessus:<\\/b>');FRb(e,1,1,a.e);CRb(e,2,0,'<b>Bord gauche:<\\/b>');FRb(e,2,1,a.c);for(d=(f=(new bcc(a.f)).a.Vh().fc(),new gcc(f));d.a.Og();){c=(b=EO(d.a.Pg(),36),IO(b._h()));_Tb(a.d,c)}Kh(a.d,new Oqb(a),(Gt(),Gt(),Ft));g=new Qqb(a);Kh(a.e,g,(iu(),iu(),hu));Kh(a.c,g,(null,hu));return e}\nvar spc='cwAbsolutePanelWidgetNames';s8(457,1,Ylc);_.Bc=function Nqb(){Iab(this.b,Dqb(this.a))};s8(458,1,Qlc,Oqb);_.Rc=function Pqb(a){Fqb(this.a)};var RZ=B7b(cmc,'CwAbsolutePanel/3',458);s8(459,1,fpc,Qqb);_.Uc=function Rqb(a){Eqb(this.a)};var SZ=B7b(cmc,'CwAbsolutePanel/4',459);Tic(Al)(21);\n//# sourceURL=showcase-21.js\n")
| 848.5 | 1,696 | 0.614614 |
057a77e11bfc50c34e2d1515410b2b5c13ae8c51 | 698 | js | JavaScript | src/components/Header.js | croeber/homeslice | 560f5a6ccab736d74f639ed762b40cd6ed7f26ab | [
"MIT"
] | null | null | null | src/components/Header.js | croeber/homeslice | 560f5a6ccab736d74f639ed762b40cd6ed7f26ab | [
"MIT"
] | 1 | 2020-08-12T21:15:06.000Z | 2020-08-12T21:15:06.000Z | src/components/Header.js | croeber/homeslice | 560f5a6ccab736d74f639ed762b40cd6ed7f26ab | [
"MIT"
] | null | null | null | import React from "react";
import { Link } from "react-router-dom";
import { connect } from "react-redux";
const Header = ({ loggedIn }) => (
<div>
<nav id="main-navbar" className="navbar navbar-light bg-light">
<a className="navbar-brand" href="#">
<img src="" width="30" height="30" alt="" />
Chris Roeber
</a>
<Link to="/" className="link">
Home
</Link>
<Link to="/about" className="link">
About
</Link>
<Link to="/contact" className="link">
Contact
</Link>
</nav>
</div>
);
const mapStateToProps = state => ({
loggedIn: state.loggedIn
});
export default connect(mapStateToProps)(Header);
| 22.516129 | 67 | 0.567335 |
057f84d207bd02c93c530839c133511912f13643 | 6,252 | js | JavaScript | test/test.dbv1.js | thrust-bitcodes/thrust-database | 0e384cdcc390325a1e26b6d5e7b8967cf0c5a052 | [
"MIT"
] | 1 | 2020-07-24T18:01:01.000Z | 2020-07-24T18:01:01.000Z | test/test.dbv1.js | thrust-bitcodes/thrust-database | 0e384cdcc390325a1e26b6d5e7b8967cf0c5a052 | [
"MIT"
] | 14 | 2018-02-26T14:35:43.000Z | 2018-05-30T13:54:00.000Z | test/test.dbv1.js | thrust-bitcodes/thrust-database | 0e384cdcc390325a1e26b6d5e7b8967cf0c5a052 | [
"MIT"
] | 6 | 2018-02-22T14:48:30.000Z | 2019-09-30T14:42:10.000Z | /**
* @author Nery Jr
*/
loadJar('./sqlite-jdbc-3.21.0.1.jar')
var db = require('../dist/index')
var majesty = require('majesty')
function exec(describe, it, beforeEach, afterEach, expect, should, assert) {
var rs
describe('Módulo de acesso a base de dados relacional [db]', function() {
describe('API de execução simples e direta de um commando SQL [execute].', function() {
it('Executando comando DML DROP TABLE table ', function() {
rs = db.execute('DROP TABLE ttest')
expect(rs.error).to.equal(false)
})
it('Executando comando DML CREATE table ', function() {
rs = db.execute('CREATE TABLE ttest (key INTEGER PRIMARY KEY AUTOINCREMENT, num NUMERIC, txt VARCHAR(64)) ')
expect(rs.error).to.equal(false)
})
it('Executando comando INSERT table ', function() {
expect((rs = db.execute("INSERT INTO ttest (num, txt) values (1, 'Num Um')")).error).to.equal(false)
expect(rs.keys.length).to.equal(1)
expect((rs = db.execute("INSERT INTO ttest (num, txt) values (2, 'Num Dois'), " +
"(3, 'Num Três'), (4, 'Num Quatro'), (5, 'Num Cinco')")).error).to.equal(false)
expect(rs.keys).to.satisfy(function(res) {
return res.constructor.toString().contains('function Array()') &&
(res.length === 4 || (res.length === 1 && res[0] === 5))
})
expect((rs = db.execute("INSERT INTO ttest (num, txt) values (2, 'Numero Dois (2)'), " +
"(4, 'Numero Quatro (2)')")).error).to.equal(false)
expect(rs.keys).to.satisfy(function(res) {
return res.constructor.toString().contains('function Array()') &&
(res.length === 2 || (res.length === 1 && res[0] === 7))
})
})
it('Executando comando UPDATE table ', function() {
expect((rs = db.execute('UPDATE ttest SET num=num*10')).error).to.equal(false)
expect(rs.affectedRows).to.equal(7)
expect((rs = db.execute("UPDATE ttest SET num=num*10, txt='Trezentos' WHERE num=30")).error).to.equal(false)
expect(rs.affectedRows).to.equal(1)
expect((rs = db.execute('SELECT num, txt FROM ttest WHERE num=300')).length).to.equal(1)
expect(JSON.stringify(rs[0])).to.equal(JSON.stringify({num: 300, txt: 'Trezentos'}))
})
it('Executando comando DELETE table ', function() {
expect((rs = db.execute('DELETE FROM ttest WHERE num=10 OR key=5')).error).to.equal(false)
expect(rs.affectedRows).to.equal(2)
expect((rs = db.execute('DELETE FROM ttest WHERE num IN (20, 40)')).error).to.equal(false)
expect(rs.affectedRows).to.equal(4)
expect((rs = db.execute('SELECT COUNT(*) FROM ttest')).length).to.equal(1)
expect((rs = db.execute('DELETE FROM ttest')).error).to.equal(false)
})
it('Executando comando SELECT table ', function() {
rs = db.execute("INSERT INTO ttest (num, txt) values (1, 'Num Um'), " +
" (2, 'Num Dois'), (3, 'Num Três'), (4, 'Num Quatro'), (5, 'Num Cinco')")
expect((rs = db.execute('SELECT * FROM ttest')).length).to.equal(5)
expect(rs.length).to.equal(5)
expect((rs = db.execute('SELECT COUNT(*) as count FROM ttest')).length).to.equal(1)
expect(rs[0].count).to.equal(5)
expect((rs = db.execute('SELECT num, txt FROM ttest ORDER BY num LIMIT 2')).length).to.equal(2)
expect(JSON.stringify(rs[0])).to.equal(JSON.stringify({num: 1, txt: 'Num Um'}))
expect(JSON.stringify(rs[1])).to.equal(JSON.stringify({num: 2, txt: 'Num Dois'}))
expect((rs = db.execute('SELECT num, txt FROM ttest ORDER BY num LIMIT 2 OFFSET 2')).length).to.equal(2)
expect(JSON.stringify(rs[0])).to.equal(JSON.stringify({num: 3, txt: 'Num Três'}))
expect(JSON.stringify(rs[1])).to.equal(JSON.stringify({num: 4, txt: 'Num Quatro'}))
expect((rs = db.execute('SELECT num, txt FROM ttest ORDER BY num LIMIT 2 OFFSET 4')).length).to.equal(1)
expect(JSON.stringify(rs)).to.equal(JSON.stringify([{num: 5, txt: 'Num Cinco'}]))
expect((rs = db.execute('SELECT num, txt FROM ttest WHERE num > 1 ORDER BY num LIMIT 2 OFFSET 2')).length).to.equal(2)
expect(JSON.stringify(rs)).to.equal(JSON.stringify([{'num': 4, 'txt': 'Num Quatro'}, {'num': 5, 'txt': 'Num Cinco'}]))
})
})
describe('API de execução de commandos SQL em uma única transação [executeInSingleTransaction].', function() {
it('Executando sequência de comandos SQL em um cenário de NÃO problemas ou erro (commit) ', function() {
var cmd = "INSERT INTO ttest (num, txt) values (6, 'Num Seis'), " +
" (7, 'Num Sete'), (8, 'Num Oito'), (9, 'Num Nove')"
rs = db.executeInSingleTransaction(function(db, context) {
db.execute(cmd)
db.execute('UPDATE ttest SET num=' + context.num + ", txt = '" + context.txt + "' WHERE num=9")
}, {num: 99, txt: 'Num Noventa e Nove'})
expect(rs.error).to.equal(false)
expect((rs = db.execute('SELECT COUNT(*) as count FROM ttest WHERE num=99')).length).to.equal(1)
expect(rs[0].count).to.equal(1)
})
it('Executando transação (sequência de comandos SQL) em um cenário COM problemas ou erro (rollback) ', function() {
// testando exeções e rollback
rs = db.executeInSingleTransaction(function(db, context) {
rs = db.execute('UPDATE ttest SET num=' + context.num + ", txt = '" + context.txt + "' WHERE num=99")
throw new Error('Why this')
// rs = db.execute('DELETE FROM ttest')
}, {num: 999, txt: 'Num Novecenetos e Noventa e Nove'})
expect(rs.error).to.equal(true)
expect((rs = db.execute('SELECT COUNT(*) as count FROM ttest WHERE num=99')).length).to.equal(1)
expect(rs[0].count).to.equal(1)
})
})
})
}
java.lang.Runtime.getRuntime().exec('cmd /k chcp 65001')
var res = majesty.run(exec)
print('', res.success.length, ' scenarios executed with success and')
print('', res.failure.length, ' scenarios executed with failure.\n')
res.failure.forEach(function(fail) {
print('[', fail.scenario, '] => ', fail.execption)
})
| 50.829268 | 126 | 0.599968 |
057ffec32bae58939902d306d69f6c40305792b4 | 320 | js | JavaScript | artifact_evaluation/data/codeCoverage/montage_generate/235.js | weucode/COMFORT | 0cfce5d70a58503f8ba3c3ff825abc24b79a1d2b | [
"Apache-2.0"
] | 55 | 2021-03-05T06:42:22.000Z | 2022-02-22T05:33:47.000Z | artifact_evaluation/data/codeCoverage/montage_generate/235.js | Delepha/COMFORT | a76ab2cc0069542b2bd75e4952c4709eef936124 | [
"Apache-2.0"
] | null | null | null | artifact_evaluation/data/codeCoverage/montage_generate/235.js | Delepha/COMFORT | a76ab2cc0069542b2bd75e4952c4709eef936124 | [
"Apache-2.0"
] | 20 | 2021-04-14T15:17:05.000Z | 2022-02-15T10:48:00.000Z | function f0(message) {
this.message = message || '';
}
f0.prototype.toString = function () {
return 'Test262Error: ' + this.message;
};
var v0;
v0 = function v0(message) {
throw new f0(message);
};
function action() {
var v24 = o + v17 + ' ', list, Number = v28 * v10;
return typeof o == 'string';
}
| 21.333333 | 54 | 0.596875 |
0580ec9c695b22391a3bc567574f8ad81a8297ea | 261 | js | JavaScript | server/routes/tags.route.js | nandhamurali/Server_Code_SaaS_listapp | 4e157fb2d69bd8a33237d4c1898cce55232c2523 | [
"MIT"
] | null | null | null | server/routes/tags.route.js | nandhamurali/Server_Code_SaaS_listapp | 4e157fb2d69bd8a33237d4c1898cce55232c2523 | [
"MIT"
] | null | null | null | server/routes/tags.route.js | nandhamurali/Server_Code_SaaS_listapp | 4e157fb2d69bd8a33237d4c1898cce55232c2523 | [
"MIT"
] | 1 | 2021-11-03T00:48:43.000Z | 2021-11-03T00:48:43.000Z | const router = require("express").Router();
const tagsController = require("../controllers/tags.controller");
router.get("/getalltags", tagsController.getAllTags);
router.get("/getalltagstemplates", tagsController.getAllTagTemplates);
module.exports = router; | 37.285714 | 70 | 0.781609 |
0582d9c0842c1a06d04da6f2539a5e6dc83abea8 | 1,160 | js | JavaScript | server/helpers/apiHelpers.js | tomcernera/Mock-TA-Badmovies | 6e4691bda958c994c020fc7e34bf9ee873c873f7 | [
"MIT"
] | null | null | null | server/helpers/apiHelpers.js | tomcernera/Mock-TA-Badmovies | 6e4691bda958c994c020fc7e34bf9ee873c873f7 | [
"MIT"
] | null | null | null | server/helpers/apiHelpers.js | tomcernera/Mock-TA-Badmovies | 6e4691bda958c994c020fc7e34bf9ee873c873f7 | [
"MIT"
] | null | null | null | const request = require('request');
const axios = require('axios');
const { API_KEY } = require('../../config.js');
// write out logic/functions required to query TheMovieDB.org
// FOR REFERENCE:
// https://www.themoviedb.org/account/signup
// https://developers.themoviedb.org/3/discover/movie-discover
// Get your API Key and save it in your config file
// Don't forget to export your functions and require them within your server file
getGenreList = (callback) => {
axios.get(`https://api.themoviedb.org/3/genre/movie/list?api_key=${API_KEY}&language=en-US`)
.then(results => callback(null,results.data.genres))
.catch(err => callback(err))
}
getMovieList = (genre,callback) => {
axios.get(`https://api.themoviedb.org/3/discover/movie?api_key=${API_KEY}&with_genres=${genre}&popularity.desc`)
.then(movies => callback(null,movies.data.results))
.catch(err => callback(err))
}
module.exports.getGenreList = getGenreList;
module.exports.getMovieList = getMovieList;
// https://api.themoviedb.org/3/discover/movie?api_key=9b1bc5e077bacda27dc0062b4fa2234e&language=en-US&sort_by=popularity.desc&include_adult=false&include_video=false&page=1 | 38.666667 | 173 | 0.74569 |
05839d7b2acdf9fc3a857fcfca6c627bf15c3e32 | 693 | js | JavaScript | dashboard-react/piotr-rygiel/58-react-wireframe-4/src/components/roadMap/index.js | olegtaranenko/gw-proxy-serverless | afb5d7b7cfaf6bfb82bafe951e45c76a11a0ffd3 | [
"Apache-2.0"
] | null | null | null | dashboard-react/piotr-rygiel/58-react-wireframe-4/src/components/roadMap/index.js | olegtaranenko/gw-proxy-serverless | afb5d7b7cfaf6bfb82bafe951e45c76a11a0ffd3 | [
"Apache-2.0"
] | null | null | null | dashboard-react/piotr-rygiel/58-react-wireframe-4/src/components/roadMap/index.js | olegtaranenko/gw-proxy-serverless | afb5d7b7cfaf6bfb82bafe951e45c76a11a0ffd3 | [
"Apache-2.0"
] | null | null | null | import React, { useState } from 'react';
import './style.scss';
export default function RoadMap() {
const months = ['Month1', 'Month2', 'Month3', 'Month4', 'Month5', 'Month6'];
const [current, setCurrent] = useState(0);
return (
<ul className="nav nav-tabs wizard">
{months.map((month, index) => {
return (
<li
key={month}
className={
index == current ? 'active' : index < current ? 'completed' : ''
}
onClick={() => setCurrent(index)}
>
<a data-toggle="tab" aria-expanded="false">
{month}
</a>
</li>
);
})}
</ul>
);
}
| 26.653846 | 78 | 0.473304 |
0584c29d75d219c52ceba9524593d1814b7f4f41 | 1,172 | js | JavaScript | utils/src/pull-request-info.js | sensrtrx/actions | a405095c9487fccf06b8a4d43487a76d1d35edeb | [
"MIT"
] | 17 | 2020-08-19T11:32:53.000Z | 2022-03-03T16:29:52.000Z | utils/src/pull-request-info.js | sensrtrx/actions | a405095c9487fccf06b8a4d43487a76d1d35edeb | [
"MIT"
] | 321 | 2019-11-28T07:06:47.000Z | 2022-03-22T09:33:00.000Z | utils/src/pull-request-info.js | sensrtrx/actions | a405095c9487fccf06b8a4d43487a76d1d35edeb | [
"MIT"
] | 11 | 2019-12-19T07:19:14.000Z | 2022-03-24T04:14:43.000Z | const core = require('@actions/core');
const { GitHub } = require('@actions/github');
let { context } = require('@actions/github');
let pullRequestCache;
const fetchPullRequestInfo = async (githubToken) => {
const octokit = new GitHub(githubToken);
const { owner, repo } = context.repo;
return octokit.pulls.list({
owner,
repo,
state: 'open',
head: `${owner}:${context.ref.replace('refs/heads/', '')}`,
}).then((response) => response.data.find(
(pr) => pr.head.sha === context.sha,
)).catch((err) => {
core.warning(`Failed to find pull requests. Reason: ${err.message}`);
return undefined;
});
};
const getPullRequestInfo = async (githubToken) => {
if (pullRequestCache) {
return pullRequestCache;
}
if (context.eventName === 'pull_request') {
const { pull_request: pullRequest } = context.payload;
pullRequestCache = pullRequest;
} else {
pullRequestCache = await fetchPullRequestInfo(githubToken);
}
return pullRequestCache;
};
module.exports = {
setContext: (ctx) => {
// Used to mock the context in tests.
context = ctx;
pullRequestCache = undefined;
},
getPullRequestInfo,
};
| 26.044444 | 73 | 0.65273 |
0585d4c68dda8fc1cc15b541d39cb253f2cf6c66 | 3,264 | js | JavaScript | src/components/Xverify.js | TheDMSGroup/embed.js | d1c6af279e44c4774ef5bf4edb2eba6f4064756e | [
"MIT"
] | 3 | 2019-04-23T13:18:49.000Z | 2020-07-13T18:13:40.000Z | src/components/Xverify.js | ivanljutyj/embed.js | d1c6af279e44c4774ef5bf4edb2eba6f4064756e | [
"MIT"
] | 6 | 2019-01-11T18:57:55.000Z | 2019-04-08T17:15:50.000Z | src/components/Xverify.js | ivanljutyj/embed.js | d1c6af279e44c4774ef5bf4edb2eba6f4064756e | [
"MIT"
] | null | null | null | import FormioUtils from "formiojs/utils";
import forEach from "lodash/foreach";
import fetch from 'unfetch'
class Xverify
{
phoneField = '';
constructor(form)
{
this.form = form;
}
get xverifyApiEndpoint()
{
return this.form.config.url + '/api/v1/lead/xverify/' + this.form.config.account;
}
extractFormSetting(keyName)
{
if (this.hasOwnProperty('form'))
if (this.form.hasOwnProperty('instance'))
if (this.form.instance.hasOwnProperty('wizard'))
if (this.form.instance.wizard.hasOwnProperty(keyName))
return this.form.instance.wizard[keyName];
return null;
}
needsToBeValidated(payload)
{
if (this.findPhone(payload) && !payload.hasOwnProperty(this.phoneField + '_valid')) {
return true;
}
if (payload.hasOwnProperty('email') && !payload.hasOwnProperty('email_valid')) {
return true;
}
return false;
}
/**
* Find the phone number in the payload
*
* @param payload
*/
findPhone(payload)
{
return Object.keys(payload)
.filter(field => field.includes('phone') && !field.includes('consent') && !field.includes('valid'))
.reduce((obj, key) => {
this.phoneField = key;
obj[key] = payload[key];
return obj;
}, {});
}
validate(payload)
{
let xverifyPayload = {};
if (this.extractFormSetting('verify_email') === null) {
xverifyPayload['email'] = payload.email;
}
if (this.extractFormSetting('verify_phone') === null) {
xverifyPayload['phone'] = Object.values(this.findPhone(payload)).toString();
}
if (this.extractFormSetting('verify_email') && payload.hasOwnProperty('email')) {
xverifyPayload['email'] = payload.email;
}
if (this.extractFormSetting('verify_phone') && this.findPhone(payload)) {
xverifyPayload['phone'] = Object.values(this.findPhone(payload)).toString();
// Support legacy phone_cell field
xverifyPayload['phone_cell'] = Object.values(this.findPhone(payload)).toString();
}
return fetch(this.xverifyApiEndpoint, {
method: 'POST',
body: JSON.stringify({...xverifyPayload, ...this.form.payload}),
headers: {
'Content-Type': 'text/plain; charset=utf-8'
}
})
.then((response) => response.json())
.then((results) => {
let errors = [];
forEach(results, (fieldResult) => {
if (!fieldResult.valid) {
FormioUtils.getComponent(
this.form.instance.components,
this.phoneField
).setCustomValidity(fieldResult.message, true);
errors.push(fieldResult.message);
} else {
payload[this.phoneField + '_valid'] = true;
}
});
if (errors.length > 0) {
throw new Error(errors);
}
})
}
}
export default Xverify; | 30.504673 | 111 | 0.533395 |
0587dbcbf6db93d829c336d2e10e8da9857e601a | 16,824 | js | JavaScript | src/components/pages/About/container.js | humaniq/humaniq-pwa-website | fdb9b71d9160acde17c891e13140ea8a577b5919 | [
"Apache-2.0"
] | 8 | 2017-09-28T07:32:34.000Z | 2019-03-14T14:01:33.000Z | src/components/pages/About/container.js | humaniq/humaniq-pwa-website | fdb9b71d9160acde17c891e13140ea8a577b5919 | [
"Apache-2.0"
] | 4 | 2017-08-22T15:40:13.000Z | 2017-09-26T11:41:11.000Z | src/components/pages/About/container.js | humaniq/humaniq-pwa-website | fdb9b71d9160acde17c891e13140ea8a577b5919 | [
"Apache-2.0"
] | 11 | 2017-08-22T15:00:00.000Z | 2020-11-01T14:15:57.000Z | import {connect} from 'react-redux';
import Page from './page'
function mapStateToProps() {
return {advisers, team, timeLineData};
}
export default connect(mapStateToProps)(Page);
const imgPath = 'img/team_g'
// const founders = [
// {
// name: 'Alex Fork',
// position: 'Head of Humaniq',
// bio: 'Humaniq founder and Fintech entrepreneur Alex is one of the most important members of the international Blockchain community, who has worked with the UN to lead the deployment of Blockchain technology to improve the efficiency of UN resources and remittances. He has also spearheaded the harnessing of blockchains in Russia, organising a conference for 500 participants on the Ethereum Blockchain; authoring Bitcoin. More than Just Money; and founding the Fintech accelerator for startups in Russia, Future Fintech. He started Humaniq to help lift the global banked out of poverty.',
// imgSrc: `${imgPath}/alex_fork.png`
// },
// {
// name: 'Dinis Guarda',
// position: 'CEO and Co-Founder of Humaniq',
// bio: 'Digital age influencer Dinis is the founder of digital communications consultancy Ztudium and manager of websites <a href="https://intelligenthq.com" target="_blank">intelligenthq.com</a>, <a href="https://openbusinesscouncil.org" target="_blank">openbusinesscouncil.org</a>, <a href="https://tradersdna.com" target="_blank">tradersdna.com</a>, and <a href="https://hedgethink.com" target="_blank">hedgethink.com</a>. Dinis also co-founded BlockchainAge, a blockchain research and tech influencer, platform, book and film; led the digital strategy for invstr.com; authored books including The Next Tsunami: Blockchain plus AI and IOT and led a digital master course in London for Group INSEEC. He has been ranked as in the top 100 Blockchain and Fintech influencers.',
// imgSrc: `${imgPath}/dinis_guarda.jpg`
// },
// {
// name: 'Dmitry Kaminskiy',
// position: 'Executive Chairman and Co-Founder',
// bio: 'An innovative entrepreneur and investor active in Biotech, Fintech, Blockchain and artificial intelligence, Dmitry is co-founder of the Deep Knowledge Ventures investment fund, focused on investments in AI and Deeptech. He adheres to the principle of impact investment in all his business activities, believing that business should make a social impact, and he supports the deployment of Blockchain for Good, which led to his decision to support Humaniq from its inception.',
// imgSrc: `${imgPath}/dmitry_kaminskiy.jpg`
// },
// ]
const advisers = [
// {
// name: 'Dinis Guarda',
// position: 'Adviser',
// bio:
// 'Digital age influencer Dinis is the founder of digital communications consultancy Ztudium and manager of websites <a href="https://intelligenthq.com" target="_blank">intelligenthq.com</a>, <a href="https://openbusinesscouncil.org" target="_blank">openbusinesscouncil.org</a>, <a href="https://tradersdna.com" target="_blank">tradersdna.com</a>, and <a href="https://hedgethink.com" target="_blank">hedgethink.com</a>. Dinis also co-founded BlockchainAge, a blockchain research and tech influencer, platform, book and film; led the digital strategy for invstr.com; authored books including The Next Tsunami: Blockchain plus AI and IOT and led a digital master course in London for Group INSEEC. He has been ranked as in the top 100 Blockchain and Fintech influencers.',
// imgSrc: `${imgPath}/dinis_guarda.png`,
// },
{
name: 'David Applefield',
position: 'Adviser',
bio:
'Is an American writer and media specialist living in Paris. He has as spent his career developing creative and innovative solutions for business leaders, heads of state, ministries, NGOs, and other not-for- profit foundations. He is the Financial Times representative for Africa, the Middle East and emerging markets.',
imgSrc: `${imgPath}/david_applefield.png`,
},
// {
// name: 'Iggy Bassi',
// position: 'Adviser',
// bio:
// 'Is the co-founder and serves as a Director of GADCO, a venture focused on sustainable agriculture and livelihood development in West Africa with LATAM technologies. He has a long track record in building companies in the technology, finance, and impact markets – in both emerged and emerging markets. Over the past 20 years he has advised many global companies (inc. Fortune 500), sovereigns, and entrepreneurs on solving problems in competitiveness, sustainability, scenario planning, and structuring complex transactions. He works at the intersection of technology, sustainability, food security, global security, and innovative thinking around the collaborative economy.',
// imgSrc: `${imgPath}/iggy_bassi.png`,
// },
{
name: 'Matt McKibbin',
position: 'Adviser',
bio:
'Is a business development guru and a decentralization evangelist. He became interested in Bitcoin and the blockchain technology in 2012. Technologically savvy, he is an extroverted connector driven by a desire to see transformative and decentralized technologies positively affect the 7 billion people on the planet. He is based in the Washington DC metro area.',
imgSrc: `${imgPath}/matt_mckibbin.png`,
},
{
name: 'Alex Bausch',
position: 'Adviser',
bio:
'Is an entrepreneur with broad experience in all aspects of international business development and the creation of global technology companies. He strongly believes in partner ecosystems which aim to inspire and spawn new innovations. His specialties include: SaaS services, mobile identity security, the IoT, enterprise managed mobility, decentralised ledger technology, marketing, and product development.',
imgSrc: `${imgPath}/alex_bausch.png`,
},
{
name: 'Nick Ayton',
position: 'Adviser',
bio:
'Is a writer, speaker and educator of all things Blockchain and Cryptocurrency. He is a Fintech 100 Influencer and Number 21 Rise Blockchain Top 100. He has had eight startups and held many senior roles in major IT and tech companies. He now chairs various Blockchain events and advises a range of clients on Blockchain technology, bitcoin and Ethereum. One of his latest projects is to raise funds using cryptoeconomics and create a new film finance model to make a mini- series for TV about the Bitcoin Revolution, an asset backed Token, and a new Media and Film Production business on Ethereum.',
imgSrc: `${imgPath}/nick_ayton.png`,
},
// {
// name: 'Ron Morris',
// position: 'Adviser',
// bio:
// 'Has been designing and delivering educational programs in multiple countries for over a decade. After several years working for Groupe INSEEC, France’s largest higher education group, he went on to direct their London campus, bringing in top-tier thought leaders, practitioners, and companies to contribute to programs and events. He has now opened a new campus for Groupe INSEEC in San Francisco, delivering immersive, challenge-based programs focused on innovation and entrepreneurship, bringing together a wide range of startups, accelerators, institutes, and thought leaders.',
// imgSrc: `${imgPath}/ron_morris.png`,
// },
// {
// name: 'Tim Campbell',
// position: 'Adviser',
// bio: "In previous roles Tim has been a key government advisor on Diversity, Small Business Social Enterprise and Entrepreneurship. Tim was also Boris Johnson's Training and Enterprise ambassador for the City of London whilst Mr Johnson was Mayor of London.<br />In February 2012 Tim was awarded the MBE for his efforts supporting enterprise and he currently sits on the City of London's Education Board. Tim is a keen runner and martial arts enthusiast and is happily married with two children. ",
// imgSrc: `${imgPath}/tim_campbell.png`,
// },
{
name: 'Michael Terpin',
position: 'Adviser',
bio:
"Michael Terpin co-founded BitAngels (www.bitangels.co), the world's first angel network for digital currency startups, in May 2013, and now serves as its chairman. The distributed angel network currently has more than 600 members, and it has made more than 25 investments in bitcoin and cryptocurrency companies with two exits and several follow-on rounds. Terpin is also co-founder and managing partner of bCommerce Labs (www.bcommercelabs.com), the first technology incubator fund focused on e-commerce companies for bitcoin and the blockchain, and a partner at Flight VC.",
imgSrc: `${imgPath}/michael_terpin.png`,
},
{
name: 'Dmitry Kaminskiy',
position: 'Adviser',
bio:
'An innovative entrepreneur and investor active in Biotech, Fintech, Blockchain and artificial intelligence, Dmitry is co-founder of the Deep Knowledge Ventures investment fund, focused on investments in AI and Deeptech. He adheres to the principle of impact investment in all his business activities, believing that business should make a social impact, and he supports the deployment of Blockchain for Good, which led to his decision to support Humaniq from its inception.',
imgSrc: `${imgPath}/dmitry_kaminskiy.png`,
},
// {
// name: 'Chami Akmeemana',
// position: 'Adviser',
// imgSrc: `${imgPath}/chami_akmeemana.png`,
// },
{
name: 'Paolo Tasca',
position: 'Adviser',
bio: 'Paolo Tasca is a FinTech economist specialising in P2P Financial System. An advisor for different international organisations including the EU Parliament on blockchain technologies, Paolo recently joined the University College London as Director of the Centre for Blockchain Technologies (UCL CBT). Prior to that, he has been a senior research economist at Deutsche Bundesbank working on digital currencies and P2P lending. Paolo is the co-author of the bestseller "FINTECH Book" and the co-editor of the book "Banking Beyond Banks and Money.',
imgSrc: `${imgPath}/paolo_tasca.png`,
},
]
const team = [
{
name: 'Alex Fork',
position: 'Founder, CEO',
bio: 'Humaniq founder and Fintech entrepreneur Alex is one of the most important members of the international Blockchain community, who has worked with the UN to lead the deployment of Blockchain technology to improve the efficiency of UN resources and remittances. He has also spearheaded the harnessing of blockchains in Russia, organising a conference for 500 participants on the Ethereum Blockchain; authoring Bitcoin. More than Just Money; and founding the Fintech accelerator for startups in Russia, Future Fintech. He started Humaniq to help lift the global banked out of poverty.',
imgSrc: `${imgPath}/alex_fork.png`,
},
{
name: 'Javed Khattak',
position: 'CFO',
bio: 'Javed has a background as an actuary and of finance, consulting and startups. He loves technology, especially gadgets, AI and virtual reality, and believes in Blockchain for Good. He is working with Humaniq to bring greater opportunities and fairness to the world.',
imgSrc: `${imgPath}/javed_khattak.png`,
},
{
name: 'Hazem Danny Al-Nakib',
position: 'CIO',
bio: '',
imgSrc: `${imgPath}/hazem_danny.jpg`,
},
{
name: 'Anton Mozgovoy',
position: 'Team Lead',
bio: 'Anton was motivated to work with Humaniq to use his experience in both computer science and finance to help to bring happiness for all across the world. He is passionate about freedriving and wakeboarding, and, of course, staying late to finish work.',
imgSrc: `${imgPath}/anton_mozgovoy.png`
},
// {
// name: 'Peyman Irani',
// position: 'SMM, CSS',
// bio: 'Peyman’s background is in sales and marketing, entrepreneurship, and social media and he is passionate about his family, innovation and humanitarian capitalism. Fairness means a lot to him and he believes we can do something great for humanity at Humaniq.',
// imgSrc: `${imgPath}/peyman_irani.png`,
// },
{
name: 'Kirill Goryunov',
position: 'CPO',
bio: '',
imgSrc: `${imgPath}/kirill_goryunov.jpg`,
},
{
name: 'Kherel Kechil',
position: 'Lead Frontend Developer',
bio: 'Kherel is a digital nomad. He joined Humaniq to experience and participate in the financial evolution, and observe changes to the better in the country where he currently resides - China.',
imgSrc: `${imgPath}/kherel_kechil.png`,
},
// {
// name: 'Serafima Semkina',
// position: 'CAO',
// bio: 'Bringing experience of management and economics, Serafima’s passions include art, music and Russian literature and the crypto-economy. She cannot stand inequality and is happy to have the opportunity to tackle it with Humaniq.',
// imgSrc: `${imgPath}/serafima_semkina.png`
// },
{
name: 'Harry Bright',
position: 'CBDO',
bio: 'Bringing experience of management and economics, Serafima’s passions include art, music and Russian literature and the crypto-economy. She cannot stand inequality and is happy to have the opportunity to tackle it with Humaniq.',
imgSrc: `${imgPath}/harry_bright.jpg`,
},
// {
// name: 'Pavel Kiselyov',
// position: 'Lead Backend Developer',
// bio: '',
// imgSrc: `${imgPath}/pavel_kiselyov.jpg`
// },
// {
// name: 'Georgii Oleinikov',
// position: 'Developer',
// bio: 'Bringing experience of mathematics and computer science, Georgii loves things that have an impact and people that make these things happen. He believes there is big room for improvement in the financial sector, with many not served.',
// imgSrc: `${imgPath}/georgii_oleinikov.png`
// },
{
name: 'Segrey Blinov',
position: 'SMM, CSS',
bio: 'Bringing experience of social media and customer service support, Segrey is passionate about Blockchain technology and his family.',
imgSrc: `${imgPath}/segrey_blinov.png`,
},
{
name: 'Danny Kass',
position: 'SMM, CSS',
bio: 'Danny’s background is in social media, B2B sales and customer service support. He loves cryptoeconomy and technology and at Humaniq is motivated to disrupt the financial industry with an ecosystem for entrepreneurs to make changes from the bottom up.',
imgSrc: `${imgPath}/danny_kass.png`,
},
{
name: 'Andrey Shevchenko',
position: 'SMM, CSS',
bio: 'Andriy has experience in computer science, security research, online community building and entrepreneurship and is passionate about both improving the world and space exploration. At Humaniq he wants to contribute to something good for humanity and boost financial independence.',
imgSrc: `${imgPath}/andriy_schechenko.png`,
},
{
name: 'Lee Baker',
position: 'Writer',
bio: 'Lee has a background in both communications and community organising and loves story-telling to inspire positive action and to connect with others to change things for the better. He wants to unleash the power of the collaborative economy and help everyone to put their destinies into their own hands.',
imgSrc: `${imgPath}/lee_baker.png`,
},
{
name: 'Olga Derbio',
position: 'Graphic Designer',
bio: 'Olga has a background in architecture, interior design and graphic design, and is passionate about inspiring others, building sites, spontaneity, and the universe. She is at Humaniq so she can be creative for social good - and to become a crypto geek!',
imgSrc: `${imgPath}/olga_derbio.png`,
},
]
const timeLineData = [
{
year: '2016',
months: [
{
name: 'April',
events: [
'Inception of the Humaniq idea by Alex Fork.',
]
},
{
name: 'November',
events: [
'Humaniq Whitebook is written and the original project team is formed.',
]
},
{
name: 'December',
events: [
'Humaniq.co website is launched and pre-ICO is announced',
]
},
],
},
{
year: '2017',
months: [
{
name: 'February',
events: [
'Smart contracts are being developed, due diligence and marketing campaign take place.',
'Humaniq team meets with project partners in India. Alex Fork conducts the first performance tests of the project in unbanked regions of India.',
'Humaniq announces first online hackathon',
'Pre-ICO (crowdsale) is launched',
]
},
{
name: 'March',
events: [
'Alpha version of the app is available for testing on IOS and Android.',
]
},
{
name: 'April',
events: [
'Humaniq collects $1.5 mln in the first hour of their ICO.',
]
},
{
name: 'May',
events: [
'App with new enchanced biometrics is being released.',
]
},
{
name: 'Now',
events: [
'Humaniq is 43 people now, working from 14 countries.',
]
},
],
},
] | 60.301075 | 781 | 0.713683 |
a1a5e4052a2f46e00403d39389db4b2eb7868df1 | 2,142 | js | JavaScript | src/validation.test.js | grawlinson/quick-epub | 070846ffd53bf9844659e0d533325f193340d902 | [
"MIT"
] | 6 | 2016-08-17T17:39:16.000Z | 2020-07-22T09:10:49.000Z | src/validation.test.js | grawlinson/quick-epub | 070846ffd53bf9844659e0d533325f193340d902 | [
"MIT"
] | 6 | 2017-05-12T04:20:42.000Z | 2021-03-22T08:10:35.000Z | src/validation.test.js | grawlinson/quick-epub | 070846ffd53bf9844659e0d533325f193340d902 | [
"MIT"
] | 1 | 2016-07-28T12:21:09.000Z | 2016-07-28T12:21:09.000Z | import { expect } from "chai";
import { validateInput } from "./validation";
describe("validation", () => {
const data = {
language: "en",
title: "White Fang",
author: ["Jack London", "White Fang"],
publisher: "Project Gutenberg",
description: "Something to describe, I guess.",
chapters: [
{
title: "CHAPTER I - THE TRAIL OF THE MEAT",
content:
"Dark spruce forest frowned on either side the frozen waterway."
},
{
title: "CHAPTER II - THE SHE-WOLF",
content:
"Breakfast eaten and the slim camp-outfit lashed to the sled..."
},
{
title: "CHAPTER III - THE HUNGER CRY",
content: "The day began auspiciously."
}
],
identifiers: {
isbn10: "this is definitely not a valid ISBN-10 number",
isbn13: "nor is this a valid ISBN-13 number",
doi: "yep. not valid either."
},
dates: {
published: `${new Date().toISOString().split(".")[0]}Z`,
modified: `${new Date().toISOString().split(".")[0]}Z`
},
appendChapterTitles: true,
output: "Jack London - White Fang.epub"
};
describe("validate", () => {
it("should pass validation if a valid object is passed", done => {
validateInput(data)
.then(result => {
expect(result).to.be.an("object");
expect(result).to.contain.all.keys([
"language",
"title",
"author",
"publisher",
"description",
"chapters",
"identifiers",
"dates",
"appendChapterTitles",
"output"
]);
done();
})
.catch(done);
});
it("should fail validation if nothing valid is passed", () =>
validateInput({ title: "Only Thing Passed" })
.then(() => {
throw new Error("test should have failed");
})
.catch(error => {
expect(error).to.be.an("error");
expect(error).to.have.property("message");
expect(error).to.have.property("message", "validation failed");
}));
});
});
| 28.945946 | 74 | 0.52521 |