text
stringlengths 3
1.05M
|
---|
import os
result = os.getenv("OS", '1')
from functools import partial
def start():
pass
partial(start)
import importlib
pickle = importlib.import_module(name='pickle')
value = pickle.dumps(dict(name="test", age=10))
print(value)
print(os.fspath("/Volumes"))
print(os.getppid())
|
"""This module provides classes that make up an issue report."""
import logging
import json
import operator
from jinja2 import PackageLoader, Environment
from typing import Dict, List, Any, Optional
import hashlib
from mythril.laser.execution_info import ExecutionInfo
from mythril.solidity.soliditycontract import SolidityContract
from mythril.analysis.swc_data import SWC_TO_TITLE
from mythril.support.source_support import Source
from mythril.support.start_time import StartTime
from mythril.support.support_utils import get_code_hash
from mythril.support.signatures import SignatureDB
from time import time
log = logging.getLogger(__name__)
class Issue:
"""Representation of an issue and its location."""
def __init__(
self,
contract: str,
function_name: str,
address: int,
swc_id: str,
title: str,
bytecode: str,
gas_used=(None, None),
severity=None,
description_head="",
description_tail="",
transaction_sequence=None,
source_location=None,
):
"""
:param contract: The contract
:param function_name: Function name where the issue is detected
:param address: The address of the issue
:param swc_id: Issue's corresponding swc-id
:param title: Title
:param bytecode: bytecode of the issue
:param gas_used: amount of gas used
:param severity: The severity of the issue
:param description_head: The top part of description
:param description_tail: The bottom part of the description
:param debug: The transaction sequence
"""
self.title = title
self.contract = contract
self.function = function_name
self.address = address
self.description_head = description_head
self.description_tail = description_tail
self.description = "%s\n%s" % (description_head, description_tail)
self.severity = severity
self.swc_id = swc_id
self.min_gas_used, self.max_gas_used = gas_used
self.filename = None
self.code = None
self.lineno = None
self.source_mapping = None
self.discovery_time = time() - StartTime().global_start_time
self.bytecode_hash = get_code_hash(bytecode)
self.transaction_sequence = transaction_sequence
self.source_location = source_location
@property
def transaction_sequence_users(self):
"""Returns the transaction sequence without pre-generated block data"""
return self.transaction_sequence
@property
def transaction_sequence_jsonv2(self):
"""Returns the transaction sequence as a json string with pre-generated block data"""
return (
self.add_block_data(self.transaction_sequence)
if self.transaction_sequence
else None
)
@staticmethod
def add_block_data(transaction_sequence: Dict):
"""Adds sane block data to a transaction_sequence"""
for step in transaction_sequence["steps"]:
step["gasLimit"] = "0x7d000"
step["gasPrice"] = "0x773594000"
step["blockCoinbase"] = "0xcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcb"
step["blockDifficulty"] = "0xa7d7343662e26"
step["blockGasLimit"] = "0x7d0000"
step["blockNumber"] = "0x66e393"
step["blockTime"] = "0x5bfa4639"
return transaction_sequence
@property
def as_dict(self):
"""
:return:
"""
issue = {
"title": self.title,
"swc-id": self.swc_id,
"contract": self.contract,
"description": self.description,
"function": self.function,
"severity": self.severity,
"address": self.address,
"tx_sequence": self.transaction_sequence,
"min_gas_used": self.min_gas_used,
"max_gas_used": self.max_gas_used,
"sourceMap": self.source_mapping,
}
if self.filename and self.lineno:
issue["filename"] = self.filename
issue["lineno"] = self.lineno
if self.code:
issue["code"] = self.code
return issue
def _set_internal_compiler_error(self):
"""
Adds the false positive to description and changes severity to low
"""
self.severity = "Low"
self.description_tail += (
" This issue is reported for internal compiler generated code."
)
self.description = "%s\n%s" % (self.description_head, self.description_tail)
self.code = ""
def add_code_info(self, contract):
"""
:param contract:
"""
if self.address and isinstance(contract, SolidityContract):
is_constructor = False
if (
contract.creation_code
in self.transaction_sequence["steps"][-1]["input"]
and self.function == "constructor"
):
is_constructor = True
if self.source_location:
codeinfo = contract.get_source_info(
self.source_location, constructor=is_constructor
)
else:
codeinfo = contract.get_source_info(
self.address, constructor=is_constructor
)
if codeinfo is None:
self.source_mapping = self.address
self.filename = "Internal File"
return
self.filename = codeinfo.filename
self.code = codeinfo.code
self.lineno = codeinfo.lineno
if self.lineno is None:
self._set_internal_compiler_error()
self.source_mapping = codeinfo.solc_mapping
else:
self.source_mapping = self.address
def resolve_function_names(self):
"""Resolves function names for each step"""
if (
self.transaction_sequence is None
or "steps" not in self.transaction_sequence
):
return
signatures = SignatureDB()
for step in self.transaction_sequence["steps"]:
_hash = step["input"][:10]
try:
sig = signatures.get(_hash)
# TODO: Check other mythx tools for dependency before supporting multiple possible function names
if len(sig) > 0:
step["name"] = sig[0]
else:
step["name"] = "unknown"
except ValueError:
step["name"] = "unknown"
class Report:
"""A report containing the content of multiple issues."""
environment = Environment(
loader=PackageLoader("mythril.analysis"), trim_blocks=True
)
def __init__(
self,
contracts=None,
exceptions=None,
execution_info: Optional[List[ExecutionInfo]] = None,
):
"""
:param contracts:
:param exceptions:
"""
self.issues = {} # type: Dict[bytes, Issue]
self.solc_version = ""
self.meta = {} # type: Dict[str, Any]
self.source = Source()
self.source.get_source_from_contracts_list(contracts)
self.exceptions = exceptions or []
self.execution_info = execution_info or []
def sorted_issues(self):
"""
:return:
"""
issue_list = [issue.as_dict for key, issue in self.issues.items()]
return sorted(issue_list, key=operator.itemgetter("address", "title"))
def append_issue(self, issue):
"""
:param issue:
"""
m = hashlib.md5()
m.update(
(issue.contract + issue.function + str(issue.address) + issue.title).encode(
"utf-8"
)
)
issue.resolve_function_names()
self.issues[m.digest()] = issue
def as_text(self):
"""
:return:
"""
name = self._file_name()
template = Report.environment.get_template("report_as_text.jinja2")
return template.render(filename=name, issues=self.sorted_issues())
def as_json(self):
"""
:return:
"""
result = {"success": True, "error": None, "issues": self.sorted_issues()}
return json.dumps(result, sort_keys=True)
def _get_exception_data(self) -> dict:
if not self.exceptions:
return {}
logs = [] # type: List[Dict]
for exception in self.exceptions:
logs += [{"level": "error", "hidden": True, "msg": exception}]
return {"logs": logs}
def as_swc_standard_format(self):
"""Format defined for integration and correlation.
:return:
"""
# Setup issues
_issues = []
for _, issue in self.issues.items():
idx = self.source.get_source_index(issue.bytecode_hash)
try:
title = SWC_TO_TITLE[issue.swc_id]
except KeyError:
title = "Unspecified Security Issue"
extra = {"discoveryTime": int(issue.discovery_time * 10 ** 9)}
if issue.transaction_sequence_jsonv2:
extra["testCases"] = [issue.transaction_sequence_jsonv2]
_issues.append(
{
"swcID": "SWC-" + issue.swc_id,
"swcTitle": title,
"description": {
"head": issue.description_head,
"tail": issue.description_tail,
},
"severity": issue.severity,
"locations": [{"sourceMap": "%d:1:%d" % (issue.address, idx)}],
"extra": extra,
}
)
# Setup meta
meta_data = self.meta
# Add logs to meta
meta_data.update(self._get_exception_data())
# Add execution info to meta
analysis_duration = int(
round((time() - StartTime().global_start_time) * (10 ** 9))
)
meta_data["mythril_execution_info"] = {"analysis_duration": analysis_duration}
for execution_info in self.execution_info:
meta_data["mythril_execution_info"].update(execution_info.as_dict())
result = [
{
"issues": _issues,
"sourceType": self.source.source_type,
"sourceFormat": self.source.source_format,
"sourceList": self.source.source_list,
"meta": meta_data,
}
]
return json.dumps(result, sort_keys=True)
def as_markdown(self):
"""
:return:
"""
filename = self._file_name()
template = Report.environment.get_template("report_as_markdown.jinja2")
return template.render(filename=filename, issues=self.sorted_issues())
def _file_name(self):
"""
:return:
"""
if len(self.issues.values()) > 0:
return list(self.issues.values())[0].filename
|
export const mockImgCover = (index) => `/static/mock-images/covers/cover_${index}.jpg`;
export const mockImgProduct = (index) => `/static/mock-images/products/product_${index}.jpg`;
export const mockImgAvatar = (index) => `/static/mock-images/avatars/avatar_${index}.jpg`;
|
#from decimal import Decimal as D, getcontext
from math import sqrt
#getcontext().prec = 40
from PySigmoid import *
D = Posit
set_posit_env(128, 4)
def area(a, b, c):
s = (a + b + c) / D(2)
return sqrt(s) * sqrt(s-a) * sqrt(s-b) * sqrt(s-c)
a = D(7)
b = D(7) / D(2) + D(3) * D(2)**D(-111)
c = b
k = area(a,b,c)
set_posit_env(16, 5)
print(Posit(float(k))) |
// Expenses Reducer
const expensesReducerDefaultState = [];
const expensesReducer = (state = expensesReducerDefaultState, action) => {
switch (action.type) {
case 'ADD_EXPENSE':
return [
...state,
action.expense
];
case 'REMOVE_EXPENSE':
return state.filter(({ id }) => id !== action.id);
case 'EDIT_EXPENSE':
return state.map((expense) => {
if (expense.id === action.id) {
return {
...expense,
...action.updates
};
} else {
return expense;
};
});
case 'SET_EXPENSES':
return action.expenses;
default:
return state;
}
};
export default expensesReducer; |
/**
* Kendo UI v2016.1.412 (http://www.telerik.com/kendo-ui)
* Copyright 2016 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial license terms.
*/
!function(y){"function"==typeof define&&define.amd?define(["kendo.core.min"],y):y()}(function(){!function(y,d){kendo.cultures["ku-Arab"]={name:"ku-Arab",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-%n","%n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"٪"},currency:{name:"",abbr:"",pattern:["$-n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"د.ع."}},calendars:{standard:{days:{names:["یەکشەممە","دووشەممە","سێشەممە","چوارشەممە","پێنجشەممە","ھەینی","شەممە"],namesAbbr:["یەکشەممە","دووشەممە","سێشەممە","چوارشەممە","پێنجشەممە","ھەینی","شەممە"],namesShort:["ی","د","س","چ","پ","ھ","ش"]},months:{names:["کانوونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمووز","ئاب","ئەیلوول","تشرینی یەکەم","تشرینی دووەم","کانونی یەکەم"],namesAbbr:["کانوونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمووز","ئاب","ئەیلوول","تشرینی یەکەم","تشرینی دووەم","کانونی یەکەم"]},AM:["پ.ن","پ.ن","پ.ن"],PM:["د.ن","د.ن","د.ن"],patterns:{d:"yyyy/MM/dd",D:"dddd, dd MMMM, yyyy",F:"dddd, dd MMMM, yyyy hh:mm:ss tt",g:"yyyy/MM/dd hh:mm tt",G:"yyyy/MM/dd hh:mm:ss tt",m:"d MMMM",M:"d MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"hh:mm tt",T:"hh:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0}}}}(this)});
//# sourceMappingURL=kendo.culture.ku-Arab.min.js.map
|
import Struct from '~/classes/Struct';
export default new Struct().fromSchema1([
{ child: { type: Number, name: 'nIndex', len: 32 } },
{ child: { type: String, name: 'strCode', len: 64 } },
{ child: { type: Boolean, name: 'bExist', len: 32 } },
{ child: { type: String, name: 'strModel', len: 64 } },
{ child: { type: Number, name: 'nIconIDX', len: 32 } },
{ child: { type: String, name: 'strName', len: 64 } },
{ child: { type: Number, name: 'nKindClt', len: 32 } },
{ child: { type: Number, name: 'nFixPart', len: 32 } },
{ child: { type: String, name: 'strCivil', len: 64 } },
{ child: { type: String, name: 'strMapCode', len: 64 } },
{ child: { type: String, name: 'strDummyName', len: 64 } },
{ child: { type: Number, name: 'nGenMob', len: 32 } },
{ child: { type: Number, name: 'nMoney', len: 32 } },
{ child: { type: Number, name: 'nStdPrice', len: 32 } },
{ child: { type: Number, name: 'nStdPoint', len: 32 } },
{ child: { type: Number, name: 'nGoldPoint', len: 32 } },
{ child: { type: Number, name: 'nKillPoint', len: 32 } },
{ child: { type: Number, name: 'nProcPoint', len: 32 } },
{ child: { type: Number, name: 'nStoragePrice', len: 32 } },
{ child: { type: Boolean, name: 'bQualification', len: 32 } },
{ child: { type: Number, name: 'fMobAdd', len: 32, as: 'float' } },
{ child: { type: Number, name: 'nTerminateTime', len: 32 } },
{ child: { type: Number, name: 'nEndIF', len: 32 } },
{ child: { type: String, name: 'strMobID', len: 64 } },
{ child: { type: Number, name: 'nMobCount', len: 32 } },
{ child: { type: Boolean, name: 'bItemLooting', len: 32 } },
{ child: { type: Number, name: 'nExp', len: 32 } },
{ child: { type: Number, name: 'nDalant', len: 32 } },
{ child: { type: Number, name: 'nGold', len: 32 } },
{ child: { type: Boolean, name: 'bSell', len: 32 } },
{ child: { type: Boolean, name: 'bExchange', len: 32 } },
{ child: { type: Boolean, name: 'bGround', len: 32 } },
{ child: { type: Boolean, name: 'bStoragePossible', len: 32 } },
{ child: { type: Boolean, name: 'bUseableNormalAcc', len: 32 } },
{ child: { type: String, name: 'strTooltipIndex', len: 64 } },
{ child: { type: String, name: 'strMissionIndex', len: 64 } },
{ child: { type: Boolean, name: 'bIsTime', len: 32 } },
]);
|
var express = require('express')
const zlib = require("zlib")
const fs = require("fs")
const queryString = require('query-string')
const parse = require('url-parse')
const cookiejar = require('cookiejar')
const {CookieAccessInfo, CookieJar, Cookie} = cookiejar
let config = {
httpprefix: 'https', port: 443,
serverName: 'siteproxy-five.now.sh',
}
let blockedSites = ['merlinblog.xyz']
if (process.env.herokuAddr) {
config.serverName = process.env.herokuAddr
}
console.log(`config.serverName:${config.serverName}`)
if (process.env.localFlag === 'true') {
config.httpprefix = 'http'
config.port = '8011'
process.env.PORT = config.port
config.serverName = '127.0.0.1'
}
let {httpprefix, serverName, port, accessCode} = config
const urlModify = ({httpType, host, url}) => {
// this url is actually a partial url, without https://${host}:${port}
let newpath = url.replace(`/${httpType}/${host}`, '') || '/'
var parsed = parse(newpath)
const parsedQuery = queryString.parse(parsed.query)
if (host.indexOf('googlevideo.com') !== -1) {
console.log(`mime = ${parsedQuery['mime']}`)
if (parsedQuery['mime'] === 'audio/mp4') {
// parsedQuery['mime'] = 'audio%2Fwebm'
}
}
parsed.set('query', queryString.stringify(parsedQuery))
// console.log(`after change: ${parsed.href}`)
return parsed.href
}
const locationReplaceMap302 = ({location, serverName, httpprefix, host, httpType}) => {
let myRe
if (!location) {
return '/'
}
if (location.startsWith('https://')) {
myRe = new RegExp('https://([-a-z0-9A-Z.]+)', 'g')
location = location.replace(myRe, `${httpprefix}://${serverName}:${port}/https/$1`)
} else
if (location.startsWith('http://')) {
myRe = new RegExp('http://([-a-z0-9A-Z.]+)', 'g')
location = location.replace(myRe, `${httpprefix}://${serverName}:${port}/http/$1`)
} else
if (location.startsWith('/') && location.indexOf(`/${httpType}/${host}`) === -1) {
location = `/${httpType}/${host}${location}`
}
myRe = new RegExp(`/${httpprefix}/${serverName}:${port}`, 'g') // match group
location = location.replace(myRe, '')
return location
}
const regReplaceMap = {
'"//([-a-z0-9A-Z.]+)': `"//${serverName}:${port}/https/$1`, // default use https
'\'//([-a-z0-9A-Z.]+)': `'//${serverName}:${port}/https/$1`,// default use https
'url[(]//([-a-z0-9A-Z.]+)': `url(//${serverName}:${port}/https/$1`,// default use https
'https:(././)([-a-z0-9A-Z.]+)': `${httpprefix}:$1${serverName}:${port}\\/https\\/$2`,
'http:(././)([-a-z0-9A-Z.]+)': `${httpprefix}:$1${serverName}:${port}\\/http\\/$2`,
'https://([-a-z0-9A-Z.]+)': `${httpprefix}://${serverName}:${port}/https/$1`,
'http://([-a-z0-9A-Z.]+)': `${httpprefix}://${serverName}:${port}/http/$1`,
'https%3a%2f%2f([-a-z0-9A-Z]+?)': `${httpprefix}%3a%2f%2f${serverName}%3a${port}%2fhttps%2f$1`,
'http%3a%2f%2f([-a-z0-9A-Z]+?)': `${httpprefix}%3a%2f%2f${serverName}%3a${port}%2fhttp%2f$1`,
'https%3A%2F%2F([-a-z0-9A-Z]+?)': `${httpprefix}%3A%2F%2F${serverName}%3A${port}%2Fhttps%2F$1`,
'http%3A%2F%2F([-a-z0-9A-Z]+?)': `${httpprefix}%3A%2F%2F${serverName}%3A${port}%2Fhttp%2F$1`,
' integrity=".+?"': '', // remove integrity
}
const pathReplace = ({host, httpType, body}) => {
// href="//127.0.0.1:8011/https/n
let myRe = new RegExp(`href=([\"\']?)/([-a-z0-9_]+?)`, 'g')
body = body.replace(myRe, `href=$1/${httpType}/${host}/$2`)
myRe = new RegExp(`href[ ]?=[ ]?"/([-a-z0-9_])`, 'g')
body = body.replace(myRe, `href="/${httpType}/${host}/$1`)
myRe = new RegExp(`(href=\\\\")\\\\/`, 'g')
body = body.replace(myRe, `$1\\/${httpType}\\/${host}\\/`)
myRe = new RegExp(` src=([\"\']?)/([-a-z0-9_]+?)`, 'g')
body = body.replace(myRe, ` src=$1/${httpType}/${host}/$2`)
myRe = new RegExp(` src="/"`, 'g')
body = body.replace(myRe, ` src="/${httpType}/${host}/"`)
myRe = new RegExp(` src=(."././)([a-z])`, 'g')
body = body.replace(myRe, ` src=$1${serverName}:${port}\\/${httpType}\\/$2`) // src=\"\/\/s.ytimg.com\/yts\/img\/avatar_48-
/*
myRe = new RegExp(' src=(["\'])//([-a-z0-9]+?)', 'g')
body = body.replace(myRe, ` src=$1//${serverName}:${port}/${httpType}/${host}/$2`)
*/
myRe = new RegExp('([:, ]url[(]["\']?)/([-a-z0-9]+?)', 'g')
body = body.replace(myRe, `$1/${httpType}/${host}/$2`)
myRe = new RegExp('("url":[ ]?")/([-a-z0-9_]+?)', 'g')
body = body.replace(myRe, `$1/${httpType}/${host}/$2`)
myRe = new RegExp('("url":[ ]?")(\\\\/)([-a-z0-9_]+?)', 'g')
body = body.replace(myRe, `$1$2${httpType}$2${host}/$3`) // {"url":"\/watch?v=tTzRY7F_1OU",...}
myRe = new RegExp('(sUrl":[ ]?")/([-a-z0-9_]+?)', 'g')
body = body.replace(myRe, `$1/${httpType}/${host}/$2`)
myRe = new RegExp('(url:[ ]?")/([-a-z0-9_]+?)', 'g')
body = body.replace(myRe, `$1/${httpType}/${host}/$2`)
myRe = new RegExp('(rl.":.")./([-a-z0-9_]+?)', 'g')
body = body.replace(myRe, `$1\\/${httpType}\\/${host}\\/$2`)
myRe = new RegExp('(rl.":.")././([-a-z0-9_]+?)', 'g') // interpreterUrl\":\"\/\/www.google.com\/js\/bg\/jeQSBy52GP_vj-aLADK6D_RsHFfZXrt-vZElH-uv2ok.js\"`)).toBe(-1)
body = body.replace(myRe, `$1\\/\\/${serverName}:${port}\\/${httpType}\\/$2`)
myRe = new RegExp('("path":")/([-a-z0-9_]+?)', 'g')
body = body.replace(myRe, `$1/${httpType}/${host}/$2`)
myRe = new RegExp(' action="/([-a-z0-9A-Z]+?)', 'g')
body = body.replace(myRe, ` action="/${httpType}/${host}/$1`)
return body
}
const siteSpecificReplace = {
'www.google.com': {
'(s=.)/images/': `$1/https/www.google.com/images/`,
'(/xjs/_)':`/https/www.google.com$1`,
'srcset="/images/branding/googlelogo': `srcset="/https/www.google.com/images/branding/googlelogo`,
'"(/gen_204\?)': `"/https/www.google.com$1`,
'"(www.gstatic.com)"': `"${serverName}:${port}/https/$1"`,
'J+"://"': `J+"://${serverName}:${port}/https/"`,
'continue=.+?"': 'continue="', // fix the gmail login issue.
's_mda=/.https:(././).+?/http/': `s_mda=/^http:$1`, // recover Ybs regular expression
'href="/https/www.google.com/g(.;)': 'href="/g$1',
'[\(]"/url': `\("/https/www.google.com/url`, //s_Gj("/url?sa=t&source=web&rct=j");s_Nj
'"/url"': `"/https/www.google.com/url"`,
// 'f="/"[+]f': `f="/https/www.google.com/"\+f`,
},
'www.gstatic.com': {
'href="/https/www.gstatic.com/g(.;)': 'href="/g$1',
},
'accounts.google.com': {
'Yba=/.+?/http/': `Yba=/^http:\\/\\/`, // recover Ybs regular expression
'continue%3Dhttps.+?ManageAccount': 'continue%3D', // fix the gmail login issue.
'"signin/v2': '"https/accounts.google.com/signin/v2',
'quot;https://[:-a-z0-9A-Z.]+?/https/accounts.google.com/ManageAccount': `quot;`,
},
'youtube.com': {
'b."get_video_info"': `"${httpprefix}://${serverName}:${port}/https/www.youtube.com/get_video_info"`,
'c<a.C.length': `c<a.C.length&&a.C[c].style`, // fixed the exception.
// ' .......*?"Captions URL".': ' true', // Ms(Os(a, jfa, null), a, b, "Captions URL") // time costy
'throw Error."Untrusted URL.+?;': ';',
'"//"(.this\.{6,10}"/api/stats/qoe")': `"//${serverName}:${port}/https/"$1`, // b=g.Ad("//"+this.o.o.Sh+"/api/stats/qoe"
'return .\.protocol."://(i1.ytimg.com/vi/)"': `return "${httpprefix}://${serverName}:${port}/https/$1"`, // {return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
'(rl%22%3A%22%2F%2F)([-a-z0-9A-Z.]+?)': `$1${serverName}%3A${port}%2Fhttps%2F$2`, // rl%22%3A%22%2F%2Fwww.youtube.com
// '(.\..."ptracking",)': `"${httpprefix}://${serverName}:${port}/https/www.youtube.com/ptracking",`,//(d.C+"ptracking", in base.js
':"//"[+].\...[+]"/api/stats/"': `:"//${serverName}:${port}/https/www.youtube.com/api/stats/"`, // his.sa=this.O?"/api/stats/"+c:"//"+b.If+"/api/stats/"+c;d&&(t
'iconChanged_:function.[a-z],[a-z],[a-z]...*\},': `iconChanged_:function(a,b,c){},`, // iconChanged_:function(a,b,c){
'"/youtubei': `"/https/www.youtube.com/youtubei`,
'"/api/stats/"': `"/https/www.youtube.com/api/stats/"`,
'"/service_ajax"': `"/https/www.youtube.com/service_ajax"`,
// '(this\..\.logo\.hidden.*?[,;])': ``,
// '(&&this\..\.content\.insertBefore.*?;)': `;`, // && this.$.content.insertBefore(this.$.guide, this.$["page-manager"]);
'[&]{2}this\.connectedCallback[(][)][)]:': `):`, // &&this.connectedCallback()):
'="/sw.js"': `="/https/www.youtube.com/sw.js"`,
'"://"([+])': `"://${serverName}:${port}/https/"$1`,
'("\\\\/\\\\/)(www.google.com)': `$1${serverName}:${port}/https/www.google.com`,
'"://([a-z]+[.]youtube.com/)"': `"://${serverName}:${port}/https/$1"`,
'"(\\\\\\\\\\\\/).../www.google.com': `"$1$1${serverName}:${port}$1www.google.com`, // tConfig('COMMENTS_BG_IU', \"\\\/\\\/www.google.com
// '(.\..=this\.fx[(][)]);return (.)': `$1;$2.bandwidthEstimate=1000.1;return $2`,// a.C=this.fx();return a
'[a-zA-Z]\.setSizeStyle[(]..,.[)]': `1`,
'a\.....\.style.display=0===.."none":"";': `;`, // a.A[c].style.display = 0 === b ? "none" : "";
},
'm.youtube.com': {
'"/(results.search_query=)': `"/https/m.youtube.com/$1`,
'"\\\\/(results.search_query=)': `"\\/https\\/m.youtube.com\\/$1`,
'mobile-topbar-header-content search-mode"': `mobile-topbar-header-content non-search-mode"`, // enable search on youtube.
' non-search-mode cbox"': ` search-mode cbox"`,
'PLAYER_JS_URL":"': `PLAYER_JS_URL":"\\/https\\/m.youtube.com`,
'PLAYER_CSS_URL":"': `PLAYER_CSS_URL":"\\/https\\/m.youtube.com`,
'(if...[|][|])(.\.isMutedByMutedAutoplay)..': `$1($2&&$2())`, // if(!a||a.isMutedByMutedAutoplay())
},
'www.youtube.com': {
'"/(results.search_query=)': `"/https/m.youtube.com/$1`,
'"./(results.search_query=)': `"\\/https\\/www.youtube.com\\/$1`,
'PLAYER_JS_URL":"': `PLAYER_JS_URL":"\\/https\\/www.youtube.com`,
'PLAYER_CSS_URL":"': `PLAYER_CSS_URL":"\\/https\\/www.youtube.com`,
'(action=.")/results': `$1/https/www.youtube.com/results`,
// '"/channel': `"/https/www.youtube.com/channel`,
'"(\\\\/channel)': `"\\/https\\/www.youtube.com$1`,
},
'search.yahoo.com': {
'"./ra./click"': `"\\/https\\/search.yahoo.com\\/ra\\/click"`,
'(["\']).?/beacon': `$1${serverName}:${port}\\/https\\/search.yahoo.com\\/beacon`,
},
'wikipedia.org': {
},
'wikimedia.org': {
},
'twitter.com': {
'"/settings"': '"/https/twitter.com/settings"',
'"/signup"': '"/https/twitter.com/signup"',
'"/login/error"': '"/https/twitter.com/login/error"',
'"/i/flow/signup"': '"/https/twitter.com/i/flow/signup"',
'"/i/sms_login"': '"/https/twitter.com/i/sms_login"',
'"/login/check"': '"/https/twitter.com/login/check"',
'"/login"': '"/https/twitter.com/login"',
},
'zh-cn.facebook.com': {
'"/ajax/bz"': `"/https/zh-cn.facebook.com/ajax/bz"`,
},
'static.xx.fbcdn.net': {
'"/ajax/bz"': `"/https/zh-cn.facebook.com/ajax/bz"`,
'"/intern/common/': '"/https/static.xx.fbcdn.net/intern/common/',
},
'www.mitbbs.com': {
'src="img/': `src="/https/www.mitbbs.com/img/`,
'alt="img/': `alt="/https/www.mitbbs.com/img/`,
'src="[.]/img/': `src="/https/www.mitbbs.com/img/`,
'src="[.]{2}/img/': `src="/https/www.mitbbs.com/img/`,
},
'web.telegram.org': {
'"pluto"': `"${serverName}:${port}/https/pluto"`,
'"venus"': `"${serverName}:${port}/https/venus"`,
'"aurora"': `"${serverName}:${port}/https/aurora"`,
'"vesta"': `"${serverName}:${port}/https/vesta"`,
'"flora"': `"${serverName}:${port}/https/flora"`,
' href=([\"\']?)([-a-z0-9_]+?)': ` href=$1/https/web.telegram.org/$2`,
' src=([-a-z0-9_]+?)': ` src=/https/web.telegram.org/$1`,
'(getJSON.")(js/locales/)': `$1/https/web.telegram.org/js/locales/`,
},
'doubibackup.com': {
' href=([\"\']?)([-a-z0-9_]+?)': ` href=$1/https/doubibackup.com/$2`,
' src=("[-a-z0-9_]+?)': ` src=/https/doubibackup.com/$1`,
}
}
module.exports = { blockedSites, urlModify, httpprefix, serverName, port, locationReplaceMap302, regReplaceMap, siteSpecificReplace, pathReplace }
|
import React, { Component } from 'react'
import Note from './Note'
class NoteVisualizer extends Component {
render() {
const items = this.props.notes.map(e => {
return <Note key={e.title} title={e.title} content={e.content} completed={e.completed} delete={(e) => this.props.delete(e)} onComplete={(title, value) => this.props.update(title, value)} />
})
return (
items
)
}
}
export default NoteVisualizer |
import { useMemo } from 'react'
import { format as d3Format } from 'd3-format'
import { timeFormat as d3TimeFormat } from 'd3-time-format'
export const getValueFormatter = format => {
// user defined function
if (typeof format === 'function') return format
if (typeof format === 'string') {
// time format specifier
if (format.indexOf('time:') === 0) {
return d3TimeFormat(format.slice('5'))
}
// standard format specifier
return d3Format(format)
}
// no formatting
return v => `${v}`
}
export const useValueFormatter = format => useMemo(() => getValueFormatter(format), [format])
|
# coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class V1beta1ReplicaSetCondition(object):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name and the value is attribute
type.
attribute_map (dict): The key is attribute name and the value is json key
in definition.
"""
swagger_types = {
'last_transition_time': 'datetime',
'message': 'str',
'reason': 'str',
'status': 'str',
'type': 'str'
}
attribute_map = {
'last_transition_time': 'lastTransitionTime',
'message': 'message',
'reason': 'reason',
'status': 'status',
'type': 'type'
}
def __init__(self,
last_transition_time=None,
message=None,
reason=None,
status=None,
type=None):
"""
V1beta1ReplicaSetCondition - a model defined in Swagger
"""
self._last_transition_time = None
self._message = None
self._reason = None
self._status = None
self._type = None
self.discriminator = None
if last_transition_time is not None:
self.last_transition_time = last_transition_time
if message is not None:
self.message = message
if reason is not None:
self.reason = reason
self.status = status
self.type = type
@property
def last_transition_time(self):
"""
Gets the last_transition_time of this V1beta1ReplicaSetCondition.
The last time the condition transitioned from one status to another.
:return: The last_transition_time of this V1beta1ReplicaSetCondition.
:rtype: datetime
"""
return self._last_transition_time
@last_transition_time.setter
def last_transition_time(self, last_transition_time):
"""
Sets the last_transition_time of this V1beta1ReplicaSetCondition.
The last time the condition transitioned from one status to another.
:param last_transition_time: The last_transition_time of this
V1beta1ReplicaSetCondition.
:type: datetime
"""
self._last_transition_time = last_transition_time
@property
def message(self):
"""
Gets the message of this V1beta1ReplicaSetCondition.
A human readable message indicating details about the transition.
:return: The message of this V1beta1ReplicaSetCondition.
:rtype: str
"""
return self._message
@message.setter
def message(self, message):
"""
Sets the message of this V1beta1ReplicaSetCondition.
A human readable message indicating details about the transition.
:param message: The message of this V1beta1ReplicaSetCondition.
:type: str
"""
self._message = message
@property
def reason(self):
"""
Gets the reason of this V1beta1ReplicaSetCondition.
The reason for the condition's last transition.
:return: The reason of this V1beta1ReplicaSetCondition.
:rtype: str
"""
return self._reason
@reason.setter
def reason(self, reason):
"""
Sets the reason of this V1beta1ReplicaSetCondition.
The reason for the condition's last transition.
:param reason: The reason of this V1beta1ReplicaSetCondition.
:type: str
"""
self._reason = reason
@property
def status(self):
"""
Gets the status of this V1beta1ReplicaSetCondition.
Status of the condition, one of True, False, Unknown.
:return: The status of this V1beta1ReplicaSetCondition.
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""
Sets the status of this V1beta1ReplicaSetCondition.
Status of the condition, one of True, False, Unknown.
:param status: The status of this V1beta1ReplicaSetCondition.
:type: str
"""
if status is None:
raise ValueError('Invalid value for `status`, must not be `None`')
self._status = status
@property
def type(self):
"""
Gets the type of this V1beta1ReplicaSetCondition.
Type of replica set condition.
:return: The type of this V1beta1ReplicaSetCondition.
:rtype: str
"""
return self._type
@type.setter
def type(self, type):
"""
Sets the type of this V1beta1ReplicaSetCondition.
Type of replica set condition.
:param type: The type of this V1beta1ReplicaSetCondition.
:type: str
"""
if type is None:
raise ValueError('Invalid value for `type`, must not be `None`')
self._type = type
def to_dict(self):
"""
Returns the model properties as a dict
"""
result = {}
for attr, _ in iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(
map(lambda x: x.to_dict() if hasattr(x, 'to_dict') else x, value))
elif hasattr(value, 'to_dict'):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], 'to_dict') else item, value.items()))
else:
result[attr] = value
return result
def to_str(self):
"""
Returns the string representation of the model
"""
return pformat(self.to_dict())
def __repr__(self):
"""
For `print` and `pprint`
"""
return self.to_str()
def __eq__(self, other):
"""
Returns true if both objects are equal
"""
if not isinstance(other, V1beta1ReplicaSetCondition):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""
Returns true if both objects are not equal
"""
return not self == other
|
'use strict'
const test = require('ava')
const handlers = require('../../handlers/auth')
test('auth handlers test', t => {
t.truthy(handlers.doSignIn, 'handler has method doSignIn')
t.truthy(handlers.doSignOut, 'handler has method doSignOut')
})
|
import {get} from "ember-metal/property_get";
import EmberObject from "ember-runtime/system/object";
QUnit.module('EmberObject.extend');
test('Basic extend', function() {
var SomeClass = EmberObject.extend({ foo: 'BAR' });
ok(SomeClass.isClass, "A class has isClass of true");
var obj = new SomeClass();
equal(obj.foo, 'BAR');
});
test('Sub-subclass', function() {
var SomeClass = EmberObject.extend({ foo: 'BAR' });
var AnotherClass = SomeClass.extend({ bar: 'FOO' });
var obj = new AnotherClass();
equal(obj.foo, 'BAR');
equal(obj.bar, 'FOO');
});
test('Overriding a method several layers deep', function() {
var SomeClass = EmberObject.extend({
fooCnt: 0,
foo: function() { this.fooCnt++; },
barCnt: 0,
bar: function() { this.barCnt++; }
});
var AnotherClass = SomeClass.extend({
barCnt: 0,
bar: function() { this.barCnt++; this._super(); }
});
var FinalClass = AnotherClass.extend({
fooCnt: 0,
foo: function() { this.fooCnt++; this._super(); }
});
var obj = new FinalClass();
obj.foo();
obj.bar();
equal(obj.fooCnt, 2, 'should invoke both');
equal(obj.barCnt, 2, 'should invoke both');
// Try overriding on create also
obj = FinalClass.createWithMixins({
foo: function() { this.fooCnt++; this._super(); }
});
obj.foo();
obj.bar();
equal(obj.fooCnt, 3, 'should invoke final as well');
equal(obj.barCnt, 2, 'should invoke both');
});
test('With concatenatedProperties', function(){
var SomeClass = EmberObject.extend({ things: 'foo', concatenatedProperties: ['things'] });
var AnotherClass = SomeClass.extend({ things: 'bar' });
var YetAnotherClass = SomeClass.extend({ things: 'baz' });
var some = new SomeClass();
var another = new AnotherClass();
var yetAnother = new YetAnotherClass();
deepEqual(some.get('things'), ['foo'], 'base class should have just its value');
deepEqual(another.get('things'), ['foo', 'bar'], "subclass should have base class' and it's own");
deepEqual(yetAnother.get('things'), ['foo', 'baz'], "subclass should have base class' and it's own");
});
test('With concatenatedProperties class properties', function(){
var SomeClass = EmberObject.extend();
SomeClass.reopenClass({
concatenatedProperties: ['things'],
things: 'foo'
});
var AnotherClass = SomeClass.extend();
AnotherClass.reopenClass({ things: 'bar' });
var YetAnotherClass = SomeClass.extend();
YetAnotherClass.reopenClass({ things: 'baz' });
var some = new SomeClass();
var another = new AnotherClass();
var yetAnother = new YetAnotherClass();
deepEqual(get(some.constructor, 'things'), ['foo'], 'base class should have just its value');
deepEqual(get(another.constructor, 'things'), ['foo', 'bar'], "subclass should have base class' and it's own");
deepEqual(get(yetAnother.constructor, 'things'), ['foo', 'baz'], "subclass should have base class' and it's own");
});
|
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import numpy as np
import paddle
from .utils import default_trans_func
__all__ = ['RougeL', 'RougeLForDuReader']
class RougeN():
def __init__(self, n):
self.n = n
def _get_ngrams(self, words):
"""Calculates word n-grams for multiple sentences.
"""
ngram_set = set()
max_index_ngram_start = len(words) - self.n
for i in range(max_index_ngram_start + 1):
ngram_set.add(tuple(words[i:i + self.n]))
return ngram_set
def score(self, evaluated_sentences_ids, reference_sentences_ids):
overlapping_count, reference_count = self.compute(
evaluated_sentences_ids, reference_sentences_ids)
return overlapping_count / reference_count
def compute(self, evaluated_sentences_ids, reference_sentences_ids):
"""
Args:
evaluated_sentences (list): the sentences ids predicted by the model.
reference_sentences (list): the referenced sentences ids. Its size should be same as evaluated_sentences.
Returns:
overlapping_count (int): the overlapping n-gram count.
reference_count (int): the reference sentences n-gram count.
"""
if len(evaluated_sentences_ids) <= 0 or len(
reference_sentences_ids) <= 0:
raise ValueError("Collections must contain at least 1 sentence.")
reference_count = 0
overlapping_count = 0
for evaluated_sentence_ids, reference_sentence_ids in zip(
evaluated_sentences_ids, reference_sentences_ids):
evaluated_ngrams = self._get_ngrams(evaluated_sentence_ids)
reference_ngrams = self._get_ngrams(reference_sentence_ids)
reference_count += len(reference_ngrams)
# Gets the overlapping ngrams between evaluated and reference
overlapping_ngrams = evaluated_ngrams.intersection(
reference_ngrams)
overlapping_count += len(overlapping_ngrams)
return overlapping_count, reference_count
def accumulate(self):
"""
This function returns the mean precision, recall and f1 score for all accumulated minibatches.
Returns:
float: mean precision, recall and f1 score.
"""
rouge_score = self.overlapping_count / self.reference_count
return rouge_score
def reset(self):
"""
Reset function empties the evaluation memory for previous mini-batches.
"""
self.overlapping_count = 0
self.reference_count = 0
def name(self):
"""
Return name of metric instance.
"""
return "Rouge-%s" % self.n
def update(self, overlapping_count, reference_count):
"""
Args:
"""
self.overlapping_count += overlapping_count
self.reference_count += reference_count
class Rouge1(RougeN):
def __init__(self):
super(Rouge1, self).__init__(n=1)
class Rouge2(RougeN):
def __init__(self):
super(Rouge2, self).__init__(n=2)
class RougeL(paddle.metric.Metric):
r'''
Rouge-L is Recall-Oriented Understudy for Gisting Evaluation based on Longest Common Subsequence (LCS).
Longest common subsequence problem takes into account sentence level structure
similarity naturally and identifies longest co-occurring
in sequence n-grams automatically.
.. math::
R_{LCS} & = \frac{LCS(C,S)}{len(S)}
P_{LCS} & = \frac{LCS(C,S)}{len(C)}
F_{LCS} & = \frac{(1 + \gamma^2)R_{LCS}P_{LCS}}{R_{LCS}} + \gamma^2{R_{LCS}}
where `C` is the candidate sentence, and `S` is the reference sentence.
Args:
trans_func (callable, optional): `trans_func` transforms the network
output to string to calculate.
vocab (dict|paddlenlp.data.vocab, optional): Vocab for target language.
If `trans_func` is None and RougeL is used as `paddle.metric.Metric`
instance, `default_trans_func` will be performed and `vocab` must
be provided.
gamma (float): A hyperparameter to decide the weight of recall. Defaults to 1.2.
name (str, optional): Name of `paddle.metric.Metric` instance. Defaults to "rouge-l".
Examples:
.. code-block:: python
from paddlenlp.metrics import RougeL
rougel = RougeL()
cand = ["The","cat","The","cat","on","the","mat"]
ref_list = [["The","cat","is","on","the","mat"], ["There","is","a","cat","on","the","mat"]]
rougel.add_inst(cand, ref_list)
print(rougel.score()) # 0.7800511508951408
'''
def __init__(self,
trans_func=None,
vocab=None,
gamma=1.2,
name="rouge-l",
*args,
**kwargs):
super(RougeL, self).__init__(*args, **kwargs)
self.gamma = gamma
self.inst_scores = []
self._name = name
self.vocab = vocab
self.trans_func = trans_func
def lcs(self, string, sub):
"""
Calculate the length of longest common subsequence of string and sub.
Args:
string (str):
The string to be calculated, usually longer the sub string.
sub (str):
The sub string to be calculated.
Returns:
float: Returns the length of the longest common subsequence of string and sub.
"""
if len(string) < len(sub):
sub, string = string, sub
lengths = np.zeros((len(string) + 1, len(sub) + 1))
for j in range(1, len(sub) + 1):
for i in range(1, len(string) + 1):
if string[i - 1] == sub[j - 1]:
lengths[i][j] = lengths[i - 1][j - 1] + 1
else:
lengths[i][j] = max(lengths[i - 1][j], lengths[i][j - 1])
return lengths[len(string)][len(sub)]
def add_inst(self, cand, ref_list):
'''
Update the states based on the a pair of candidate and references.
Args:
cand (str): The candidate sentence generated by model.
ref_list (list): List of ground truth sentences.
'''
precs, recalls = [], []
for ref in ref_list:
basic_lcs = self.lcs(cand, ref)
prec = basic_lcs / len(cand) if len(cand) > 0. else 0.
rec = basic_lcs / len(ref) if len(ref) > 0. else 0.
precs.append(prec)
recalls.append(rec)
prec_max = max(precs)
rec_max = max(recalls)
if prec_max != 0 and rec_max != 0:
score = ((1 + self.gamma**2) * prec_max * rec_max) / \
float(rec_max + self.gamma**2 * prec_max)
else:
score = 0.0
self.inst_scores.append(score)
def update(self, output, label, seq_mask=None):
if self.trans_func is None:
if self.vocab is None:
raise AttributeError(
"The `update` method requires users to provide `trans_func` or `vocab` when initializing RougeL."
)
cand_list, ref_list = default_trans_func(output, label, seq_mask,
self.vocab)
else:
cand_list, ref_list = self.trans_func(output, label, seq_mask)
if len(cand_list) != len(ref_list):
raise ValueError(
"Length error! Please check the output of network.")
for i in range(len(cand_list)):
self.add_inst(cand_list[i], ref_list[i])
def accumulate(self):
'''
Calculate the final rouge-l metric.
'''
return 1. * sum(self.inst_scores) / len(self.inst_scores)
def score(self):
return self.accumulate()
def reset(self):
self.inst_scores = []
def name(self):
return self._name
class RougeLForDuReader(RougeL):
'''
Rouge-L metric with bonus for DuReader contest.
Please refer to `DuReader Homepage<https://ai.baidu.com//broad/subordinate?dataset=dureader>`_ for more details.
Args:
alpha (float, optional): Weight of YesNo dataset when adding bonus for DuReader contest. Defaults to 1.0.
beta (float, optional): Weight of Entity dataset when adding bonus for DuReader contest. Defaults to 1.0.
'''
def __init__(self, alpha=1.0, beta=1.0, gamma=1.2):
super(RougeLForDuReader, self).__init__(gamma)
self.alpha = alpha
self.beta = beta
def add_inst(self,
cand,
ref_list,
yn_label=None,
yn_ref=None,
entity_ref=None):
precs, recalls = [], []
for i, ref in enumerate(ref_list):
basic_lcs = self.lcs(cand, ref)
yn_bonus, entity_bonus = 0.0, 0.0
if yn_ref is not None and yn_label is not None:
yn_bonus = self.add_yn_bonus(cand, ref, yn_label, yn_ref[i])
elif entity_ref is not None:
entity_bonus = self.add_entity_bonus(cand, entity_ref)
p_denom = len(
cand) + self.alpha * yn_bonus + self.beta * entity_bonus
r_denom = len(
ref) + self.alpha * yn_bonus + self.beta * entity_bonus
prec = (basic_lcs + self.alpha * yn_bonus + self.beta * entity_bonus) \
/ p_denom if p_denom > 0. else 0.
rec = (basic_lcs + self.alpha * yn_bonus + self.beta * entity_bonus) \
/ r_denom if r_denom > 0. else 0.
precs.append(prec)
recalls.append(rec)
prec_max = max(precs)
rec_max = max(recalls)
if prec_max != 0 and rec_max != 0:
score = ((1 + self.gamma**2) * prec_max * rec_max) / \
float(rec_max + self.gamma**2 * prec_max)
else:
score = 0.0
self.inst_scores.append(score)
def add_yn_bonus(self, cand, ref, yn_label, yn_ref):
if yn_label != yn_ref:
return 0.0
lcs_ = self.lcs(cand, ref)
return lcs_
def add_entity_bonus(self, cand, entity_ref):
lcs_ = 0.0
for ent in entity_ref:
if ent in cand:
lcs_ += len(ent)
return lcs_
|
const { ModalBody } = require('react-bootstrap');
const request = require('supertest');
const assert = require('assert');
const server = 'http://localhost:3000';
const itineraryController = require('../server/controllers/itineraryController');
describe('Route integration', () => {
// This will test servers root routes to ensure correct return of content type
describe('/', () => {
describe('GET', () => {
it('Responds with 200 status and text/html content type', () => {
return request(server)
.get('/')
.expect('Content-Type', /text\/html/)
.expect(200);
});
});
});
// test for itinerary POST request
describe('/itinerary', () => {
describe('POST', () => {
it('Response with status 200 and an object as content type', () => {
return request(server)
.post('/itinerary')
.send({ location: 'Los Angeles', country: 'USA' })
.expect(200);
});
});
});
// test for main path GET request
describe('/main', () => {
describe('GET', () => {
it('Responds with 200 status and text/html content type /main', () => {
return request(server)
.get('/main')
.expect('Content-Type', /text\/html/)
.expect(200);
});
});
});
// test signup POST request
describe('/signup', () => {
describe('POST', () => {
it('Response with status 200 and an object as content type', () => {
const testInfo = {
firstName: 'Jesus',
email: '[email protected]',
username: 'BigJ',
password: 'YourNameHere',
};
return request(server)
.post('/signup')
.send(testInfo)
.expect((res) => {
expect(res.body.name).toEqual(testInfo.firstName);
})
.expect(200);
});
});
});
// test error handling
// test global error handling
});
|
'use strict';
exports.onMessageDelete = async(botClient, network, channelsCache, msg) => {
if (!msg.author || msg.author.discriminator === '0000' || !msg.channel.guild) {
return;
}
const cur = network[msg.channel.id];
if (!cur) {
return;
}
if (msg.author.bot && cur.ignoreBots !== false) { // ignore bots by default (check for false specifically)
return;
}
if (cur.ignore) { // ignore channels if needed
return;
}
const messages = channelsCache[msg.channel.id].get(msg.id);
for (const m of messages) {
m.delete().catch();
}
channelsCache[msg.channel.id].delete(msg.id);
};
|
import React from "react";
const Dashboard = React.lazy(() => import("./modules/dashboard/Dashboard"));
const CategoryList = React.lazy(() =>
import("./modules/category/CategoryList")
);
const CategoryForm = React.lazy(() =>
import("./modules/category/CategoryForm")
);
const OrderList = React.lazy(() => import("./modules/order/OrderList"));
const OrderForm = React.lazy(() => import("./modules/order/OrderForm"));
const ProductList = React.lazy(() => import("./modules/product/ProductList"));
const ProductForm = React.lazy(() => import("./modules/product/ProductForm"));
const User = React.lazy(() => import("./modules/user/User"));
const EcomRoutes = [
{ path: "/", exact: true, name: "Home" },
{ path: "/dashboard", name: "Dashboard", component: Dashboard },
{ path: "/categoryList", name: "Category List", component: CategoryList },
{ path: "/categoryForm", name: "Category Form", component: CategoryForm },
{ path: "/orderList", name: "Order List", component: OrderList },
{ path: "/orderForm", name: "Modify Order", component: OrderForm },
{ path: "/productList", name: "Product List", component: ProductList },
{ path: "/productForm", name: "Product Form", component: ProductForm },
{ path: "/userList", name: "Users", component: User },
];
export default EcomRoutes;
|
import sys
import discord
import asyncio as aio
import aioconsole
import os
import json
import random
import time
import atexit
import schedule
import time
import threading
import functools
import datetime
schedStop = threading.Event()
def timer():
while not schedStop.is_set():
schedule.run_pending()
time.sleep(1)
schedThread = threading.Thread(target=timer)
schedThread.start()
random.seed()
client = discord.Client()
f = open('path to config json file')
config = json.load(f)
f.close()
# Load JSON files
f = open(config['wotw-path'])
words = json.load(f)
f.close()
numQuotes = words['number']
quotes = words['quotes']
# Load Discord token
f = open(config['token-path'])
token = f.read()
f.close()
# Load other IDs
uID = int(config['uid'])
cID = int(config['cid'])
@client.event
async def on_ready():
schedule.every().hour.at(':00').do(notify)
schedule.every().hour.at(':15').do(notify)
schedule.every().hour.at(':30').do(notify)
schedule.every().hour.at(':45').do(notify)
print('\nProcess ID: ' + str(os.getpid()))
print(client.user.name)
print(client.user.id)
print('------')
@client.event
async def on_message(message):
if type(message.channel) is discord.TextChannel:
admin = False
for r in message.author.roles:
if r.name == 'Admin':
admin = True
break
if message.author == client.user:
return
if message.content.startswith('!'):
ch = message.channel
# !help
if message.content.startswith('!help'):
tmp = await ch.send('The following are valid commands:\n!wisdom')
# !kill
elif message.content.startswith('!kill') and admin:
tmp = await ch.send('Logging out...')
tmp = await client.close()
schedStop.set()
quit()
# !wisdom
elif message.content.startswith('!wisdom'):
q = wotw()
tmp = await ch.send('\"' + q['body'] + '\"\n- ' + q['author'])
# Invalid
else:
tmp = await ch.send('Not a valid command!')
print(time.strftime('%H:%M:%S') + '> ' + message.author.name + ' (' + str(message.author.id) + ') used command ' + message.content)
# Words of the wise
def wotw():
i = random.randint(0, numQuotes)
return quotes[i]
# ------
# Notification gathering
def send_notification(u, content, t):
print('\t' + time.strftime('%H:%M:%S') + '> Starting scheduled task: send_notification')
client.loop.create_task(u.dm_channel.send(content))
def make_dm(content, t):
print('\t' + time.strftime('%H:%M:%S') + '> Starting scheduled task: make_dm')
u = t.result()
task = client.loop.create_task(u.create_dm())
task.add_done_callback(functools.partial(send_notification, u, content))
def user_fetch(userID, content, t=None):
print('\t' + time.strftime('%H:%M:%S') + '> Starting scheduled task: user_fetch')
task = client.loop.create_task(client.fetch_user(userID))
task.add_done_callback(functools.partial(make_dm, content))
def message_count_2(userID, aft, t):
messages = t.result()
aft = aft - datetime.timedelta(hours = 4)
before = aft + datetime.timedelta(minutes = 15)
content = aft.strftime('%b %d, %y %I:%M %p') + ' to ' + before.strftime('%I:%M %p') + ':\t' + str(len(messages)) + ' messages sent'
if len(messages) > 0:
user_fetch(userID, content)
else:
print('\t\t' + time.strftime('%H:%M:%S') + '> No messages sent. Cancelling')
def message_count_1(userID, ch):
print('\t' + time.strftime('%H:%M:%S') + '> Starting scheduled task: message_count')
aft = datetime.datetime.utcnow()
aft = aft - datetime.timedelta(minutes = 15)
task = client.loop.create_task(ch.history(after=aft).flatten())
task.add_done_callback(functools.partial(message_count_2, userID, aft))
def notify():
print(time.strftime('%H:%M:%S') + '> Starting scheduled task: notify')
general = client.get_channel(cID)
if general is not None:
message_count_1(uID, general)
# ------
client.run(token) |
# Quantos dias se passaram?
# Faça uma função que recebe uma data, representada por uma string, e devolve a quantidade de dias que já se passaram desde o início daquele ano. As datas sempre serão representadas por uma string contendo dois dígitos para o dia, dois dígitos para o mês e 4 dígitos para o ano. Você pode assumir que não serão considerados anos bissextos, ou seja, fevereiro sempre possui 28 dias (consequentemente o ano sempre terá 365 dias).
# Exemplos:
# - Para a entrada '01/01/2018', sua função deve retornar 0, pois ainda não se passou nenhum dia desde o início de 2018 no dia primeiro de janeiro.
# - Para a entrada '15/03/2019', sua função deve retornar 73, pois já se passaram 31+28+14=73 dias (janeiro e fevereiro inteiros mais 14 dias).
# - Para a entrada '31/12/2021', sua função deve retornar 364, pois é o último dia do ano.
# O nome da sua função deve ser 'dias_do_ano'.
def dias_do_ano (date):
# Extrai dia, mês e ano, respectivamente, da string em formado DD/MM/AAAA
day, mounth, year = [int(date_info) for date_info in date.split("/")]
# Número de dias com base no dia do mês
days_in_day = day - 1
# Numero de dias com base no mês do ano
days_in_mounth = 0
# Conta a quantidade de dias no mêses inteiros até o mês atual
for month_i in range(1, mounth):
# Conta mêses de 31 dias
if month_i in (1, 3, 5, 7, 8, 10, 12):
days_in_mounth += 31
# Conta mêses de 30 dias
elif month_i in (4, 6, 9, 11):
days_in_mounth += 30
# Conta fevereiro com 28 dias
else:
days_in_mounth += 28
# Determina os dias no ano com base nos dias no dia atual e nos mêses
days_in_year = days_in_day + days_in_mounth
return days_in_year
# Feedback do professor:
# "excelente, muito bom"
|
/*eslint-env browser */
/*global ace, PHP */
/*eslint-disable no-console */
var editor = ace.edit("editor");
editor.setTheme("ace/theme/github");
editor.session.setMode("ace/mode/php");
editor.setShowPrintMargin(false);
var default_code = "<?php\n" + document.getElementById('features_example').innerText;
var query = new URLSearchParams(document.location.search);
var run_button = document.getElementById('run');
var analyze_button = document.getElementById('analyze');
var output_area = document.getElementById('output');
var isUsable = false;
var initial_code = query.has('code') ? query.get('code') : '';
if (query.has('code') && initial_code != default_code) {
editor.setValue(initial_code);
} else {
editor.setValue(default_code);
// Pre-render the output of the demo to show the types of issues Phan is capable of detecting.
output_area.innerHTML =
'<p><span class="phan_file">input</span>:<span class="phan_line">5</span>: <span class="phan_issuetype_normal">PhanTypeMismatchReturn</span> Returning type <span class="phan_type">int</span> but <span class="phan_functionlike">testUnionTypes()</span> is declared to return <span class="phan_type">false|string</span></p>' +
'<p><span class="phan_file">input</span>:<span class="phan_line">9</span>: <span class="phan_issuetype_critical">PhanTypeMismatchReturnReal</span> Returning type <span class="phan_type">null</span><span class="phan_details"></span> but <span class="phan_functionlike">testUnionTypes()</span> is declared to return <span class="phan_type">false|string</span><span class="phan_details"></span></p>' +
'<p><span class="phan_file">input</span>:<span class="phan_line">11</span>: <span class="phan_issuetype_normal">PhanTypeMismatchArgumentReal</span> Argument <span class="phan_index">1</span> (<span class="phan_parameter">$value</span>) is <span class="phan_type">null</span><span class="phan_details"></span> but <span class="phan_functionlike">\\testUnionTypes()</span> takes <span class="phan_type">int|string</span><span class="phan_details"></span> defined at <span class="phan_file">input</span>:<span class="phan_line">3</span></p>' +
'<p><span class="phan_file">input</span>:<span class="phan_line">15</span>: <span class="phan_issuetype_normal">PhanUnreferencedFunction</span> Possibly zero references to function <span class="phan_function">\\checkedCount()</span></p>' +
'<p><span class="phan_file">input</span>:<span class="phan_line">17</span>: <span class="phan_issuetype">PhanRedundantCondition</span> Redundant attempt to cast <span class="phan_code">$n</span> of type <span class="phan_type">int</span> to <span class="phan_type">int</span></p>' +
'<p><span class="phan_file">input</span>:<span class="phan_line">27</span>: <span class="phan_issuetype_critical">PhanUndeclaredClassMethod</span> Call to method <span class="phan_method">__construct</span> from undeclared class <span class="phan_class">\\my_class</span> (<span class="phan_suggestion">Did you mean class \\MyClass</span>)</p>' +
'<p><span class="phan_file">input</span>:<span class="phan_line">31</span>: <span class="phan_issuetype_normal">PhanTypeMismatchArgumentInternalProbablyReal</span> Argument <span class="phan_index">1</span> (<span class="phan_parameter">$obj</span>) is <span class="phan_type">bool</span><span class="phan_details"></span> but <span class="phan_functionlike">\\SplObjectStorage::attach()</span> takes <span class="phan_type">object</span><span class="phan_details"></span></p>' +
'<p><span class="phan_file">input</span>:<span class="phan_line">32</span>: <span class="phan_issuetype_critical">PhanUndeclaredMethod</span> Call to undeclared method <span class="phan_method">\\SplObjectStorage::atach</span> (<span class="phan_suggestion">Did you mean expr->attach()</span>)</p>' +
'<p><span class="phan_file">input</span>:<span class="phan_line">33</span>: <span class="phan_issuetype">PhanParamTooManyInternal</span> Call with <span class="phan_count">3</span> arg(s) to <span class="phan_functionlike">\\SplObjectStorage::attach(object $obj, $inf = default)</span> which only takes <span class="phan_count">2</span> arg(s)</p>' +
'<p><span class="phan_file">input</span>:<span class="phan_line">34</span>: <span class="phan_issuetype_critical">PhanTypeMismatchArgument</span> Argument <span class="phan_index">1</span> (<span class="phan_parameter">$x</span>) is <span class="phan_type">int</span> but <span class="phan_functionlike">\\MyClass::__construct()</span> takes <span class="phan_type">?string</span> defined at <span class="phan_file">input</span>:<span class="phan_line">46</span></p>' +
'<p><span class="phan_file">input</span>:<span class="phan_line">40</span>: <span class="phan_issuetype">PhanRedundantCondition</span> Redundant attempt to cast <span class="phan_code">$cond</span> of type <span class="phan_type">bool</span> to <span class="phan_type">bool</span></p>' +
'<p><span class="phan_file">input</span>:<span class="phan_line">40</span>: <span class="phan_issuetype_normal">PhanUnusedVariable</span> Unused definition of variable <span class="phan_variable">$always_true</span></p>' +
'<p><span class="phan_file">input</span>:<span class="phan_line">41</span>: <span class="phan_issuetype_normal">PhanUndeclaredVariable</span> Variable <span class="phan_variable">$argv</span> is undeclared (<span class="phan_suggestion">Did you mean $arg or $argc or (global $argv)</span>)</p>' +
'<p><span class="phan_file">input</span>:<span class="phan_line">42</span>: <span class="phan_issuetype_critical">PhanTypeMismatchReturnReal</span> Returning type <span class="phan_type">\\SplObjectStorage</span><span class="phan_details"></span> but <span class="phan_functionlike">demo()</span> is declared to return <span class="phan_type">?int</span><span class="phan_details"></span></p>' +
'<p><span class="phan_file">input</span>:<span class="phan_line">48</span>: <span class="phan_issuetype_normal">PhanUndeclaredProperty</span> Reference to undeclared property <span class="phan_property">\\MyClass->x</span></p>';
}
var phpModule;
var phpModuleDidLoad = false;
var combinedOutput = '';
var combinedHTMLOutput = '';
function getOrDefault(value, defaultValue) {
return value !== '' ? value : defaultValue;
}
function htmlescape(text) {
var el = document.createElement('span');
el.innerText = text;
return el.innerHTML;
}
/**
* This wraps generateNewPHPModule.
*
* It makes the buttons clickable immediately on subsequent runs,
* while silently waiting for php to become executable again.
*/
function lazyGenerateNewPHPModule(cb) {
cb = cb || function() {}
if (phpModuleDidLoad) {
cb();
return;
}
try {
phpModule = generateNewPHPModule(function () {
phpModuleDidLoad = true;
cb();
});
} catch (e) {
showWebAssemblyError("Unexpected error reloading php: " + e.toString())
}
}
function doRun(code, outputIsHTML, defaultText) {
output_area.innerHTML = '';
code = code + "\necho PHP_EOL;" // flush line buffer
console.log('evaluating code'); // , code);
let invokePHP = function () {
combinedOutput = '';
combinedHTMLOutput = '';
lazyGenerateNewPHPModule(invokePHPInner);
}
let invokePHPInner = function () {
let ret = phpModule.ccall('pib_eval', 'number', ["string"], [code])
console.log('done evaluating code', ret);
if (ret != 0) {
combinedOutput += "Error, please check your code";
combinedHTMLOutput += "Error, please check your code";
}
if (outputIsHTML && ret == 0) {
output_area.innerHTML = getOrDefault(combinedHTMLOutput.replace(/\n/g, ""), defaultText);
} else {
output_area.innerHTML = getOrDefault(combinedOutput, defaultText);
}
// Make sure the output area is rendered, then refresh the php runtime environment
requestAnimationFrame(function () {
setTimeout(function () {
try {
phpModule._pib_force_exit();
} catch (e) {
// ExitStatus
}
phpModule = null;
phpModuleDidLoad = false;
enableButtons();
isUsable = true;
console.log('buttons enabled');
requestAnimationFrame(function () {
setTimeout(function () {
console.log('render'); lazyGenerateNewPHPModule();
}, 0);
});
}, 0);
});
};
// This works around an issue seen in firefox where
// the browser's appearance won't update because JS(emscripten) is still running.
// This tries to ensure that buttons get hidden properly and output gets cleared.
requestAnimationFrame(function () {
setTimeout(invokePHP, 0);
});
}
function doRunWithWrapper(analysisWrapper, code, outputIsHTML, defaultText) {
// single quotes aren't escaped by encodeURIComponent, but double quotes are.
// Other problematic characters are escaped, and this preserves UTF-8.
var contentsFragment = 'rawurldecode("' + encodeURIComponent(code) + '")';
var analysisCode = analysisWrapper.replace('$CONTENTS_TO_ANALYZE', contentsFragment);
doRun(analysisCode, outputIsHTML, defaultText);
}
var didInit = false;
var buttons = [run_button, analyze_button];
function enableButtons() {
run_button.textContent = "Run"
analyze_button.textContent = "Analyze"
for (var button of buttons) {
button.disabled = false
button.classList.remove('disabled')
}
}
function disableButtons() {
for (var button of buttons) {
button.disabled = true
button.classList.add('disabled')
}
}
function updateQueryParams(code) {
var query = new URLSearchParams();
if (code.length < 1024 && code != default_code) {
query.append('code', code);
history.replaceState({}, document.title, "?" + query.toString());
}
}
// Based on emscripten generated source
function fetchRemotePackage(packageName, callback) {
var xhr = new XMLHttpRequest;
xhr.open('GET', packageName, true);
xhr.responseType = 'arraybuffer';
xhr.onerror = function (event) {
console.log('NetworkError for: ' + packageName, event);
showWebAssemblyError('NetworkError for: ' + packageName);
throw new Error('NetworkError for: ' + packageName);
};
xhr.onload = function (/*event */) {
console.log('xhr loaded status=' + xhr.status);
if (xhr.status == 200 || xhr.status == 304 || xhr.status == 206 || xhr.status == 0 && xhr.response) {
var packageData = xhr.response;
callback(packageData)
} else {
showWebAssemblyError(xhr.statusText + ' : ' + xhr.responseURL);
throw new Error(xhr.statusText + ' : ' + xhr.responseURL)
}
};
xhr.send(null)
}
/* This can be reused - This avoids notices about HTTP 302s and using the streaming API in some browsers (firefox), but is counterproductive if other browsers (Chrome) would normally just use disk cache. */
var phpWasmBinary = null;
function loadPhpWasm(cb) {
console.log('called loadPhpWasm');
if (phpWasmBinary) {
cb(phpWasmBinary);
return;
}
fetchRemotePackage('php.wasm', function (data) {
phpWasmBinary = data;
cb(phpWasmBinary);
});
}
function init() {
if (didInit) {
return;
}
didInit = true;
// This is a monospace element without HTML.
// output_area.innerText = "Click ANALYZE";
enableButtons();
run_button.addEventListener('click', function () {
if (!isUsable) {
console.log('skipping due to already running');
return;
}
isUsable = false;
output_area.innerText = '';
run_button.textContent = "Running"
disableButtons();
var code = editor.getValue();
updateQueryParams(code);
// TODO: Figure out why we need an error handler for this to work.
var analysisWrapper = document.getElementById('eval_wrapper_source').innerText;
code = "?>" + code;
doRunWithWrapper(analysisWrapper, code, false, 'PHP code ran successfully with no output.');
});
analyze_button.addEventListener('click', function () {
if (!isUsable) {
console.log('skipping due to already running');
return;
}
isUsable = false;
output_area.innerText = '';
analyze_button.textContent = "Analyzing"
disableButtons();
var code = editor.getValue();
updateQueryParams(code);
var analysisWrapper = document.getElementById('phan_runner_source').innerText;
doRunWithWrapper(analysisWrapper, code, true, 'Phan did not detect any errors.');
});
}
var sizeInBytes = 134217728;
var WASM_PAGE_SIZE = 65536;
var reusableWasmMemory;
function generateNewPHPModule(callback) {
fillReusableMemoryWithZeroes();
reusableWasmMemory = reusableWasmMemory || new WebAssembly.Memory({
initial: sizeInBytes / WASM_PAGE_SIZE,
maximum: sizeInBytes / WASM_PAGE_SIZE,
});
var phpModuleOptions = {
postRun: [callback],
onAbort: function(what) {
markButtonsAsUnusable();
var errorElement = document.createElement('p');
errorElement.setAttribute('class', 'phan_issuetype_critical');
errorElement.innerText = 'WebAssembly aborted: ' + what.toString();
output_area.appendChild(errorElement);
},
print: function (text) {
console.log('print', arguments);
if (arguments.length > 1) {
text = Array.prototype.slice.call(arguments).join(' ');
}
if (text == '') {
return;
}
if (didInit && phpModuleDidLoad) {
combinedOutput += htmlescape(text) + "\n";
combinedHTMLOutput += text + "\n";
}
},
printErr: function (text) {
console.log('printErr', arguments);
if (arguments.length > 1) {
text = Array.prototype.slice.call(arguments).join(' ');
}
if (text == '') {
return;
}
if (didInit && phpModuleDidLoad) {
combinedHTMLOutput += '<span class="stderr">' + text + "</span>\n";
combinedOutput += '<span class="stderr">' + htmlescape(text) + "</span>\n";
}
},
wasmBinary: phpWasmBinary,
wasmMemory: reusableWasmMemory
};
return PHP(phpModuleOptions);
}
/** This fills the wasm memory with 0s, so that the next fresh program startup succeeds */
function fillReusableMemoryWithZeroes() {
if (reusableWasmMemory) {
var arr = new Uint8Array(reusableWasmMemory.buffer);
arr.fill(0);
}
}
function markButtonsAsUnusable() {
run_button.innerText = "ERROR";
run_button.removeAttribute('title');
analyze_button.innerText = "ERROR";
analyze_button.removeAttribute('title');
disableButtons();
isUsable = false;
}
function showWebAssemblyError(message) {
output_area.setAttribute('style', 'font-family: serif');
output_area.innerHTML =
'<h1 class="phan_issuetype_critical">' + message + '</h1>' +
'<br />' +
'<p>But you can install <a href="https://github.com/phan/phan">Phan</a> locally with <a href="https://github.com/phan/phan/wiki/Getting-Started">these instructions for getting started.</a>, or try this in Firefox or Chrome.</p>';
markButtonsAsUnusable();
}
if (!window.WebAssembly) {
showWebAssemblyError('Your browser does not support WebAssembly.');
} else if (!window.PHP) {
showWebAssemblyError('Failed to load php.js.');
} else {
loadPhpWasm(function () {
console.log('successfully downloaded php.wasm to reuse');
/** This fills the wasm memory with 0s, so that the next fresh program startup succeeds */
phpModule = generateNewPHPModule(init);
isUsable = true;
});
}
|
// docs_style
// Compile and export minified theme + docs SASS to the docs CSS ('docs/css/')
const gulp = require('gulp');
const sass = require('gulp-sass');
const postcss = require('gulp-postcss');
const flexibility = require('postcss-flexibility');
const rename = require('gulp-rename');
const autoprefixer = require('autoprefixer');
const cssnano = require('cssnano');
const concat = require('gulp-concat');
gulp.task('docs_style', function(){
return gulp.src('./src/docs/sass/style.scss')
.pipe(sass().on('error', sass.logError))
.pipe(postcss([flexibility,autoprefixer({browsers: ['last 2 versions','ie 9']}), cssnano()]))
.pipe(rename({ extname: '.min.css' }))
.pipe(gulp.dest('docs/css'))
}); |
import User from '../models/User';
import Files from '../models/files';
class ProviderCotroller {
async index(req, res) {
const providers = await User.findAll({
where: {
provider: true,
},
attributes: ['name', 'email', 'avatar_id'],
include: [
{
model: Files,
as: 'avatar',
attributes: ['name', 'path', 'url'],
},
],
});
return res.json(providers);
}
}
export default new ProviderCotroller();
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = void 0;
function transformArguments() {
return ['ACL', 'SAVE'];
}
exports.transformArguments = transformArguments;
|
from cleo.helpers import option
from .installer_command import InstallerCommand
class LockCommand(InstallerCommand):
name = "lock"
description = "Locks the project dependencies."
options = [
option(
"no-update", None, "Do not update locked versions, only refresh lock file."
),
]
help = """
The <info>lock</info> command reads the <comment>pyproject.toml</> file from the
current directory, processes it, and locks the dependencies in the <comment>poetry.lock</>
file.
<info>poetry lock</info>
"""
loggers = ["poetry.repositories.pypi_repository"]
def handle(self): # type: () -> int
self._installer.use_executor(
self.poetry.config.get("experimental.new-installer", False)
)
self._installer.lock(update=not self.option("no-update"))
return self._installer.run()
|
var game = new Phaser.Game(700, 500, Phaser.AUTO, "gamebox", {preload: preload, create: create, update:update});
function equipe_bots(){
//--------- Bot 1 ----------//
bot1_equip = true;
bot1_name = "None Bot1";
// -- Create Function --
/// bot1_create()
// -- Update Functions --
/// bot1_shoot()
/// bot1_up()
/// bot1_down()
//--------- Bot 2 ----------//
bot2_equip = true;
bot2_name = "Null Bot2";
// -- Create Function --
/// bot2_create()
// -- Update Functions --
/// bot2_shoot()
/// bot2_up()
/// bot2_down()
//--------- Bot 3 ----------//
bot3_equip = true;
bot3_name = "Zilth Bot3";
//--------- Bot 4 ----------//
bot4_equip = false;
bot4_name = "Nada Bot4";
//--------- Bot 5 ----------//
bot5_equip = false;
bot5_name = "Nope Bot5";
// --------- Equipe the Bots Here -----------------///
// ---- You can equipe up to 3 Bots for the Mission
// STEP 1. Pick which bot you like to use.
// STEP 2. Change bot#_equip to true
// STEP 3. Change the If statment to include the bot#_equip variable
// and the bot#_create() function.
if(bot1_equip === true){
bot1_create();
}
if(bot2_equip === true){
bot2_create();
}
if(bot3_equip === true){
bot3_create();
}
if(bot4_equip === true){
bot4_create();
}
// if(________ === true){
// ________();
// }
} // End equipe bots
// --------- Design Controls Here-----------------///
// ---- What keys do you want to use to control your bots?
// STEP 1. Make sure bot#_equip is set to true
// STEP 2. Change the If statment to include the bot#_equip variable
// STEP 3. Pick a key to use as the shoot button, add the bot#_shoot() command inside the if statment
// STEP 4. Repete with the Up and Down commands
function use_bots(){
if(bot1_equip === true){
if(S_key.isDown){
bot1_shoot();
}
if(W_key.isDown){
bot1_up()
}else if(X_key.isDown){
bot1_down()
}
}
if(bot2_equip === true){
if(D_key.isDown){
bot2_shoot();
}
if(E_key.isDown){
bot2_up()
}else if(C_key.isDown){
bot2_down()
}
}
if(bot3_equip === true){
if(F_key.isDown){
bot3_shoot();
}
if(R_key.isDown){
bot3_up()
}else if(V_key.isDown){
bot3_down()
}
}
if(bot4_equip === true){
if(G_key.isDown){
bot4_shoot();
}
if(T_key.isDown){
bot4_up()
}else if(B_key.isDown){
bot4_down()
}
}
if(bot5_equip === true){
if(H_key.isDown){
bot5_shoot();
}
if(Y_key.isDown){
bot5_up()
}else if(N_key.isDown){
bot5_down()
}
}
} /// End use bots
var style_names = { font: "20px Arial", fill: "#FFFFFF"};
var bot1_equip;
var bot1;
var bot1_name;
var bot1_bullets;
var bot1_create;
var bot1_shoot;
var bot1_down;
var bot1_up;
var bot1_timeDelay = 500;
var bot1_bullet_time;
var bot2_equip;
var bot2;
var bot2_name;
var bot2_bullets;
var bot2_create;
var bot2_shoot;
var bot2_down;
var bot2_up;
var bot2_timeDelay = 1000;
var bot2_bullet_time;
var bot3_equip;
var bot3;
var bot3_name;
var bot3_bullets;
var bot3_create;
var bot3_shoot;
var bot3_down;
var bot3_up;
var bot3_timeDelay = 200;
var bot3_bullet_time;
var bot4_equip;
var bot4;
var bot4_name;
var bot4_bullets;
var bot4_create;
var bot4_shoot;
var bot4_down;
var bot4_up;
var bot4_timeDelay = 3000;
var bot4_bullet_time;
var bot4_bomb_timer;
var bot4_current_bomb = null;
var bot5_equip;
var bot5;
var bot5_name;
var bot5_bullets;
var bot5_create;
var bot5_shoot;
var bot5_down;
var bot5_up;
var bot5_timeDelay = 10000;
var bot5_bullet_time;
var bot5_slime_time;
var slimeHandler;
var map_keys;
//var pooled_easy_num = 20;
//var pooled_medium_num = 20;
//var pooled_hard_num = 20;
var alive = true;
var aliens_passed = 0;
var phase_index;
var phase_list;
var current_phase;
var phase1_complete = false;
var phase2_complete = false;
var phase3_complete = false;
var commentText;
/// Phase Paramters
var phase1_config = {
num: 10,
num_dead: 0,
finished: false,
name: "Phase 1",
start_delay: 2000, // in miliseconds
easy: .75,
medium: .20,
hard: .05,
spaceing: [0,
300,
200,
200,
150,
150,
150,
100,
100,
50]
}
var phase2_config = {
num: 15,
num_dead: 0,
finished: false,
name: "Phase 2",
start_delay: 2000, // in miliseconds
easy: .50,
medium: .30,
hard: .20,
spaceing: [0,
300,
200,
200,
150,
150,
150,
100,
100,
50,
50,
50,
50,
25,
25]
}
var phase3_config = {
num: 20,
num_dead: 0,
finished: false,
name: "Phase 3",
start_delay: 2000, // in miliseconds
easy: .30,
medium: .30,
hard: .40,
spaceing: [0,
300,
250,
225,
200,
200,
150,
150,
150,
100,
100,
50,
50,
50,
50,
25,
25,
25,
10,
10,
10]
}
var easy_aliens_config = {
spritesheet: "texture",
frame: 'alien2_part1.jpg',
animation: ['alien2_part1.jpg','alien2_part2.jpg', 'alien2_part3.jpg'],
boom_frames: ['alien2_part4.jpg','alien2_part5.jpg', 'alien2_part6.jpg'],
health: 10,
speed: 1
};
var medium_aliens_config = {
spritesheet: "texture",
frame: 'alien_part1.jpg',
animation: ['alien_part1.jpg','alien_part2.jpg', 'alien_part3.jpg'],
boom_frames: ['alien_part5.jpg','alien_part6.jpg', 'alien_part7.jpg','alien_part8.jpg'],
health: 15,
speed: 1
};
var hard_aliens_config = {
spritesheet: "texture",
frame: 'alien3_part1.jpg',
animation: ['alien3_part1.jpg','alien3_part2.jpg', 'alien3_part3.jpg'],
boom_frames: ['alien3_part5.jpg','alien3_part6.jpg', 'alien3_part7.jpg', 'alien3_part8.jpg'],
health: 20,
speed: 1
};
//var now;
//var next_alien;
function preload() {
/// stand in graphcis for the game
game.load.spritesheet("spritesheet", "./assets/spritesheet_updated.png", 100, 100, 20)
game.load.atlas('texture', 'assets/spritesheet_final.png', 'assets/alien6_sprite.json', Phaser.Loader.TEXTURE_ATLAS_JSON_HASH);
//game.load.atlas('texture', 'assets/alien_practice1.png', 'assets/alien_practice1.json', Phaser.Loader.TEXTURE_ATLAS_JSON_HASH);
game.load.image("test_bullet", "./assets/bulletTest.png")
game.load.image("needleBullet", "./assets/needleBullet.png")
game.load.image("flame", "./assets/flame.png")
}
function create(){
// game.stage.backgroundColor = "#a8a8a8";
game.stage.backgroundColor = "#fff";
game.physics.startSystem(Phaser.Physics.ARCADE);
/// Create background
var graphics = game.add.graphics(0, 0);
//graphics.lineStyle(2, "#000000", 1);
// graphics.beginFill(0x7e7e7e, 1);
graphics.beginFill(0xe1eaf0, 1);
/// dark gray stripe
graphics.drawRect(0,0, game.width, game.height / 5);
graphics.drawRect(0,(game.height / 5) * 2, game.width, game.height / 5);
graphics.drawRect(0, (game.height / 5) * 4, game.width, game.height / 5);
graphics.endFill();
/// cReate barb wire safe zone
safe_zone = game.add.group();
for(i =0; i <5; i ++){
safe_zone.add(game.add.sprite(0,100 * i, "spritesheet",14))
}
/// test alien
// test = game.add.sprite(game.width, 100, 'spritesheet', 0)
// test.animations.add("bounce",[0,1], 2, true);
// test.animations.play("bounce")
phase1_aliens = game.add.group();
phase1_aliens.enableBody = true;
phase1_config.group = phase1_aliens;
create_aliens(phase1_config)
phase2_aliens = game.add.group();
phase2_aliens.enableBody = true;
phase2_config.group = phase2_aliens;
create_aliens(phase2_config)
phase3_aliens = game.add.group();
phase3_aliens.enableBody = true;
phase3_config.group = phase3_aliens;
create_aliens(phase3_config)
phase_list = [
phase1_config,
phase2_config,
phase3_config
]
phase_index = 0;
current_phase = phase_list[phase_index]
current_phase.group.forEachAlive(function(alien){
alien.play('bonce');
})
// map keys
map_keys()
/// test bot
equipe_bots();
// Text
commentText = game.add.text(game.world.centerX,game.world.centerY,' ', { font: '32px Arial', fill: '#2d8457', align: 'center' });
commentText.anchor.setTo(0.5, 0.5);
commentText.visible = false;
if(current_phase.name === "Phase 1"){
commentText.visible = true;
commentText.setText("The Aliens Are Comming! \n Defend The Base!")
game.time.events.add(Phaser.Timer.SECOND * 2, fadeText, this);
}
} /// End of create function
function update(game){
use_bots();
/// Text display
if(aliens_passed == 5){
commentText.visible = true;
commentText.setText("Five Aliens Have Gotten Through!")
game.add.tween(commentText).to( { alpha: 1 }, 50, "Linear", true);
game.time.events.add(Phaser.Timer.SECOND * 2, fadeText, this);
}
else if(aliens_passed == 8){
commentText.visible = true;
commentText.setText("Eight Aliens Have Psssed You! \n Are you even trying?")
game.add.tween(commentText).to( { alpha: 1 }, 50, "Linear", true);
game.time.events.add(Phaser.Timer.SECOND * 2, fadeText, this);
}else if(aliens_passed == 12){
commentText.visible = true;
commentText.setText("Are You On The Aliens Side? \n 12 Aliens have Went By!")
game.add.tween(commentText).to( { alpha: 1 }, 50, "Linear", true);
game.time.events.add(Phaser.Timer.SECOND * 2, fadeText, this);
}
else if(aliens_passed == 16){
commentText.visible = true;
commentText.setText("Just a hint,\n the aliens are the bad guys.")
game.add.tween(commentText).to( { alpha: 1 }, 50, "Linear", true);
game.time.events.add(Phaser.Timer.SECOND * 2, fadeText, this);
}
if(current_phase.finished == false){
num_alive = 0;
current_phase.group.forEachAlive(function(alien){
alien.body.x -= alien.speed;
if(alien.body.x < 10){
alien.kill()
aliens_passed += 1;
}
})
current_phase.group.forEachAlive(function(alien){
num_alive += 1;
})
if(num_alive === 0 ){
current_phase.finished = true;
phase_index++;
if(phase_index < phase_list.length){
current_phase = phase_list[phase_index]
current_phase.group.forEachAlive(function(alien){
alien.play('bonce');
})
commentText.visible = true;
commentText.setText(current_phase.name + "!")
game.add.tween(commentText).to( { alpha: 1 }, 50, "Linear", true);
game.time.events.add(Phaser.Timer.SECOND * 2, fadeText, this);
}else{
/// show game over
commentText.visible = true
commentText.setText("ALL PHASES COMPLETE \n CONGRATS!")
game.add.tween(commentText).to( { alpha: 1 }, 50, "Linear", true);
}
}
} /// End of is current phase finished
/// This really needs to be cleaned up but hey its working
if(bot1_equip){
bot1_update()
}
if(bot2_equip){
bot2_update()
}
if(bot3_equip){
bot3_update()
}
if(bot4_equip){
bot4_update()
}
if(bot5_equip){
bot5_update()
}
} // End of Update function
/// fade text
function fadeText() {
game.add.tween(commentText).to( { alpha: 0 }, 200, Phaser.Easing.Linear.None, true);
}
function create_aliens(config){
var this_group = config.group;
/// Sort the array to be smalled to largest
var sorted_props = [[easy_aliens_config, config.easy], [medium_aliens_config, config.medium], [hard_aliens_config, config.hard]].sort(function(a,b){return a[1] - b[1]});
x_space = game.width + config.spaceing[0];
/// create 10 aliens off the screen //// REN UPDATE SO NOT CREATING POOLS ON SCREEN
for(i = 1; i <= config.num; i++){
/// Create a random number
var num = Math.random();
/// We want to pace out the aliens
/// Each of these sprties is 100 pixals wide.
x_space = x_space + config.spaceing[i - 1];
/// for y pick a random number between 0 and 4 inclusive
y_row = Math.floor((Math.random() * 5)) * 100;
if(num <= sorted_props[0][1]){ /// if less thant the smallest prob in the sorted list
/// set location off screen
var alien = this_group.create(x_space, y_row, sorted_props[0][0].spritesheet, sorted_props[0][0].frame)
alien.health = sorted_props[0][0].health
alien.speed = sorted_props[0][0].speed
alien.animations.add("bonce", sorted_props[0][0].animation, 5, true);
alien.animations.add('boom', sorted_props[0][0].boom_frames, 10, false)
}else if(num <= sorted_props[1][1]){
var alien = this_group.create(x_space, y_row, sorted_props[1][0].spritesheet, sorted_props[1][0].frame)
alien.health = sorted_props[1][0].health
alien.speed = sorted_props[1][0].speed
alien.animations.add("bonce", sorted_props[1][0].animation, 5, true);
alien.animations.add('boom', sorted_props[1][0].boom_frames, 10, false)
}else{ /// the remaining precentage is the remainder
var alien = this_group.create(x_space, y_row, sorted_props[2][0].spritesheet, sorted_props[2][0].frame)
alien.health = sorted_props[2][0].health
alien.speed = sorted_props[2][0].speed
alien.animations.add("bonce", sorted_props[2][0].animation, 5, true);
alien.animations.add('boom', sorted_props[2][0].boom_frames, 10, false)
}
}
}/// End Create Aliens
function collisionHandler (bullet, alien) {
alien.health -= bullet.damage;
// When a bullet hits an alien we kill them both
if(alien.health <= 0){
alien.animations.play("boom")
alien.animations.currentAnim.onComplete.add(function () {
alien.kill();}, this);
};
bullet.kill();
} /// End of Collision Handler
function map_keys(){
A_key = game.input.keyboard.addKey(Phaser.Keyboard.A);
B_key = game.input.keyboard.addKey(Phaser.Keyboard.B);
C_key = game.input.keyboard.addKey(Phaser.Keyboard.C);
D_key = game.input.keyboard.addKey(Phaser.Keyboard.D);
E_key = game.input.keyboard.addKey(Phaser.Keyboard.E);
F_key = game.input.keyboard.addKey(Phaser.Keyboard.F);
G_key = game.input.keyboard.addKey(Phaser.Keyboard.G);
H_key = game.input.keyboard.addKey(Phaser.Keyboard.H);
I_key = game.input.keyboard.addKey(Phaser.Keyboard.I);
J_key = game.input.keyboard.addKey(Phaser.Keyboard.J);
K_key = game.input.keyboard.addKey(Phaser.Keyboard.K);
L_key = game.input.keyboard.addKey(Phaser.Keyboard.L);
M_key = game.input.keyboard.addKey(Phaser.Keyboard.M);
N_key = game.input.keyboard.addKey(Phaser.Keyboard.N);
O_key = game.input.keyboard.addKey(Phaser.Keyboard.O);
P_key = game.input.keyboard.addKey(Phaser.Keyboard.P);
Q_key = game.input.keyboard.addKey(Phaser.Keyboard.Q);
R_key = game.input.keyboard.addKey(Phaser.Keyboard.R);
S_key = game.input.keyboard.addKey(Phaser.Keyboard.S);
T_key = game.input.keyboard.addKey(Phaser.Keyboard.T);
U_key = game.input.keyboard.addKey(Phaser.Keyboard.U);
V_key = game.input.keyboard.addKey(Phaser.Keyboard.V);
W_key = game.input.keyboard.addKey(Phaser.Keyboard.W);
X_key = game.input.keyboard.addKey(Phaser.Keyboard.X);
Y_key = game.input.keyboard.addKey(Phaser.Keyboard.Y);
Z_key = game.input.keyboard.addKey(Phaser.Keyboard.Z);
// game.input.keyboard.onDownCallback = function(e) {
// //for demonstration, next line prints the keyCode to console
// console.log(e.keyCode);
// }
}
/// ----------------------------------------------------
////// Bot 1 Code
/// ----------------------------------------------------
function bot1_create(){
if (bot1_equip != true) return;
/// Create the test bot
bot1 = game.add.sprite(0,300, "spritesheet",7)
game.physics.arcade.enable(bot1);
bot1.body.collideWorldBounds = true;
bot1.body.bounce.x = 0.05;
bot1.body.bounce.y = 0.05;
bot1_name = game.add.text(0, 0 + bot1.height, bot1_name, style_names)
bot1.addChild(bot1_name);
/// Create test bots bullets
bot1_bullets = game.add.group();
bot1_bullets.enableBody = true;
bot1_bullets.physicsBodyType = Phaser.Physics.ARACADE;
bot1_bullets.createMultiple(20, "spritesheet", 1);
bot1_bullets.setAll('outOfBoundsKill', true);
bot1_bullets.setAll('checkWorldBounds', true);
bot1_bullets.setAll('anchor.x', 0.5);
bot1_bullets.setAll('anchor.y', 0.5);
bot1_bullets.setAll('damage', 5); /// each bullet will do 5 damage
bot1_bullet_time = game.time.now;
}; /// End of test create
function bot1_shoot(){
if (bot1_equip != true) return;
if(game.time.now > bot1_bullet_time){
// change name text to white
bot1.children[0].fill = "#FFFFFF"
//// Get first existing bullet from the bot's pool
bullet = bot1_bullets.getFirstExists(false);
if(bullet){
bullet.reset(bot1.x + bot1.width + 30, bot1.y + (bot1.width/2));
bullet.body.velocity.x =+ 400;
bot1_bullet_time = game.time.now + bot1_timeDelay;
}
}/// end game.time.now >
}; /// end of test shoot
function bot1_up(){
if (bot1_equip != true) return;
bot1.y -= 3;
};
function bot1_down(){
if (bot1_equip != true) return;
bot1.y += 3;
};
function bot1_update(){
if (bot1_equip != true) return;
game.physics.arcade.overlap(bot1_bullets, current_phase.group, collisionHandler, null, this);
/// Change the Text to green when ready to fire
if(game.time.now > bot1_bullet_time){
bot1.children[0].fill = "#6fC000";
}
}/// End bot1_update
/// ----------------------------------------------------
////// Bot 2 Code
/// ----------------------------------------------------
function bot2_create(){
if (bot2_equip != true) return;
/// Create the test bot
bot2 = game.add.sprite(0,100, "spritesheet",6)
game.physics.arcade.enable(bot2);
bot2.body.collideWorldBounds = true;
bot2.body.bounce.x = 0.05;
bot2.body.bounce.y = 0.05;
bot2_name = game.add.text(0, 0 + bot2.height, bot2_name, style_names)
bot2.addChild(bot2_name);
/// Create test bots bullets
bot2_bullets = game.add.group();
bot2_bullets.enableBody = true;
bot2_bullets.physicsBodyType = Phaser.Physics.ARACADE;
bot2_bullets.createMultiple(5, "spritesheet", 2);
bot2_bullets.setAll('outOfBoundsKill', true);
bot2_bullets.setAll('checkWorldBounds', true);
bot2_bullets.setAll('anchor.x', 0.5);
bot2_bullets.setAll('anchor.y', 0.5);
bot2_bullets.setAll('damage', 10); /// each bullet will do 5 damage
bot2_bullet_time = game.time.now;
}; /// End of test create
function bot2_shoot(){
if (bot2_equip != true) return;
/// kill bullets thats are more than 150 pixals away
bot2_bullets.forEachAlive(function(bullet){
})
if(game.time.now > bot2_bullet_time){
// change name text to white
bot2.children[0].fill = "#FFFFFF"
//// Get first existing bullet from the bot's pool
bullet = bot2_bullets.getFirstExists(false);
if(bullet){
bullet.reset(bot2.x + bot2.width, bot2.y + (bot2.height/2));
bullet.body.velocity.x =+ 100;
bot2_bullet_time = game.time.now + bot2_timeDelay;
}
}/// end game.time.now >
}; /// end of test shoot
function bot2_up(){
if (bot2_equip != true) return;
bot2.y -= 1;
};
function bot2_down(){
if (bot2_equip != true) return;
bot2.y += 1;
};
function bot2_update(){
if (bot2_equip != true) return;
game.physics.arcade.overlap(bot2_bullets, current_phase.group, collisionHandler, null, this);
/// Kill bullets that are more than 150 pixals away
bot2_bullets.forEachAlive(function(bullet){
if(bullet.x > bot2.x + 200){
bullet.kill();
}
})
/// Change the Text to green when ready to fire
if(game.time.now > bot2_bullet_time){
bot2.children[0].fill = "#6fC000";
}
}/// End bot2_update
/// ----------------------------------------------------
////// Bot 3 Code
/// ----------------------------------------------------
function bot3_create(){
if (bot3_equip != true) return;
/// Create the test bot
bot3 = game.add.sprite(0,0, "spritesheet",15)
game.physics.arcade.enable(bot3);
bot3.body.collideWorldBounds = true;
bot3.body.bounce.x = 0.05;
bot3.body.bounce.y = 0.05;
bot3_name = game.add.text(0, 0 + bot3.height, bot3_name, style_names)
bot3.addChild(bot3_name);
/// Create test bots bullets
bot3_bullets = game.add.group();
bot3_bullets.enableBody = true;
bot3_bullets.physicsBodyType = Phaser.Physics.ARACADE;
bot3_bullets.createMultiple(20, "needleBullet");
bot3_bullets.setAll('outOfBoundsKill', true);
bot3_bullets.setAll('checkWorldBounds', true);
bot3_bullets.setAll('damage', 2); /// each bullet will do 5 damage
bot3_bullet_time = game.time.now;
}; /// End of test create
function bot3_shoot(){
if (bot3_equip != true) return;
/// kill bullets thats are more than 150 pixals away
bot3_bullets.forEachAlive(function(bullet){
})
if(game.time.now > bot3_bullet_time){
// change name text to white
bot3.children[0].fill = "#FFFFFF"
//// Get first existing bullet from the bot's pool
bullet = bot3_bullets.getFirstExists(false);
if(bullet){
bullet.reset(bot3.x + bot3.width, bot3.y + + (bot3.height/2));
bullet.body.velocity.x =+ 300;
bot3_bullet_time = game.time.now + bot3_timeDelay;
}
}/// end game.time.now >
}; /// end of test shoot
function bot3_up(){
if (bot3_equip != true) return;
bot3.y -= 5;
};
function bot3_down(){
if (bot3_equip != true) return;
bot3.y += 5;
};
function bot3_update(){
if (bot3_equip != true) return;
game.physics.arcade.overlap(bot3_bullets, current_phase.group, collisionHandler, null, this);
/// Change the Text to green when ready to fire
if(game.time.now > bot3_bullet_time){
bot3.children[0].fill = "#6fC000";
}
}/// End bot3_update
/// ----------------------------------------------------
////// Bot 4 Code
/// ----------------------------------------------------
function bot4_create(){
if (bot4_equip != true) return;
/// Create the test bot
bot4 = game.add.sprite(0,0, "spritesheet",16)
game.physics.arcade.enable(bot4);
bot4.body.collideWorldBounds = true;
bot4.body.bounce.x = 0.05;
bot4.body.bounce.y = 0.05;
bot4_name = game.add.text(0, 0 + bot4.height, bot4_name, style_names)
bot4.addChild(bot4_name);
//// Bot4 is a bomber, make his bombs
bot4_bullets = game.add.group();
bot4_bullets.enableBody = true;
bot4_bullets.physicsBodyType = Phaser.Physics.ARACADE;
bot4_bullets.createMultiple(1, "spritesheet", 18);
bot4_bullets.setAll('outOfBoundsKill', true);
bot4_bullets.setAll('checkWorldBounds', true);
bot4_bullets.setAll('damage', 20); /// each bomb will do 20 damage
bot4_bullets.callAll('animations.add', 'animations', 'boom', [9,10,11,12,13], 5, false);
bot4_bullets.callAll('animations.add', 'animations', 'wait', [18], 5, false);
bot4_bullet_time = game.time.now;
}; /// End of test create
function bot4_shoot(){
if (bot4_equip != true) return;
if(game.time.now > bot4_bullet_time){
// change name text to white
bot4.children[0].fill = "#FFFFFF"
//// Get first existing bullet from the bot's pool
bullet = bot4_bullets.getFirstDead(false);
if(bullet){
bullet.reset(bot4.x + bot4.width, bot4.y + (bot4.height/2));
bullet.body.velocity.x =+ 500;
bot4_bullet_time = game.time.now + bot4_timeDelay;
bot4_bomb_timer = game.time.now + 1000;
bot4_current_bomb = bullet;
bot4_current_bomb.scale.setTo(1, 1);
bot4_current_bomb.animations.play('wait')
}
}/// end game.time.now >
}; /// end of test shoot
function bot4_up(){
if (bot4_equip != true) return;
bot4.y -= 5;
};
function bot4_down(){
if (bot4_equip != true) return;
bot4.y += 5;
};
function bot4_update(){
if (bot4_equip != true) return;
game.physics.arcade.overlap(bot4_bullets, current_phase.group, collisionHandler, null, this);
/// Kill bullets that are more than 150 pixals away
bot4_bullets.forEachAlive(function(bullet){
if(bullet.x > bot4.x + 200){
bullet.body.velocity.x = 0;
}
})
// detionate bombs that have their timers expire
if (game.time.now > bot4_bomb_timer){
bot4_current_bomb.scale.setTo(2, 2);
bot4_current_bomb.animations.play('boom');
bot4_current_bomb.animations.currentAnim.onComplete.add(function () {
bot4_current_bomb.kill();
// bot4_current_bomb = null;
// bot4_bomb_timer = 0;
}, this);
}
/// Change the Text to green when ready to fire
if(game.time.now > bot4_bullet_time){
bot4.children[0].fill = "#6fC000";
}
}/// End bot4_update
/// ----------------------------------------------------
////// Bot 5 Code
/// ----------------------------------------------------
function bot5_create(){
if (bot5_equip != true) return;
/// Create the test bot
bot5 = game.add.sprite(0,500, "spritesheet",17)
game.physics.arcade.enable(bot5);
bot5.body.collideWorldBounds = true;
bot5.body.bounce.x = 0.05;
bot5.body.bounce.y = 0.05;
bot5_name = game.add.text(0, 0 + bot5.height, bot5_name, style_names)
bot5.addChild(bot5_name);
/// bot5 makes slime, these are slime squares
bot5_bullets = game.add.group();
bot5_bullets.enableBody = true;
bot5_bullets.physicsBodyType = Phaser.Physics.ARACADE;
bot5_bullets.createMultiple(3, "spritesheet", 19);
bot5_bullets.setAll('outOfBoundsKill', true);
bot5_bullets.setAll('checkWorldBounds', true);
bot5_bullets.setAll('damage', 0); /// each bullet will do 5 damage
bot5_bullet_time = game.time.now;
}; /// End of test create
function bot5_shoot(){
if (bot5_equip != true) return;
if(game.time.now > bot5_bullet_time){
// change name text to white
bot5.children[0].fill = "#FFFFFF"
slime_x = 100;
slime_y = bot5.y;
//// slime the area
bot5_bullets.forEach(function(slime){
slime.reset(slime_x, slime_y);
slime.z = 0;
slime_x += 100;
})
bot5_bullet_time = game.time.now + bot5_timeDelay
///bot5_slime_time = game.time.now + bot5_timeDelay;
}/// end game.time.now >
}; /// end of test shoot
function bot5_up(){
if (bot5_equip != true) return;
bot5.y -= 5;
};
function bot5_down(){
if (bot5_equip != true) return;
bot5.y += 5;
};
function bot5_update(){
if (bot5_equip != true) return;
game.physics.arcade.overlap(bot5_bullets, current_phase.group, slimeHandler, null, this);
/// Change the Text to green when ready to fire
if(game.time.now > bot5_bullet_time){
bot5.children[0].fill = "#6fC000";
/// remove slime
bot5_bullets.forEach(function (slime) { slime.kill(); });
current_phase.group.forEach(function (alien) { alien.speed = 1; });
}
}/// End bot5_update
function slimeHandler(slime, alien){
game.world.bringToTop(current_phase.group);
/// yeah i'm not proud of my choice either...
if(bot1_equip){
game.world.bringToTop(bot1_bullets);
}
if(bot2_equip){
game.world.bringToTop(bot2_bullets);
}
if(bot3_equip){
game.world.bringToTop(bot3_bullets);
}
if(bot4_equip){
game.world.bringToTop(bot4_bullets);
}
alien.speed = .33;
}; |
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"storybook-css-modules-preset",
"@storybook/addon-links",
"@storybook/addon-essentials"
]
}
|
// Intl.~locale.ar-TN
IntlPolyfill.__addLocaleData({locale:"ar-TN",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:true,hour12:true,formats:{short:"{1} {0}",medium:"{1} {0}",full:"{1} {0}",long:"{1} {0}",availableFormats:{"d":"d","E":"ccc",Ed:"E، d",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"d MMM، y G",GyMMMEd:"E، d MMM، y G","h":"h a","H":"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v","M":"L",Md:"d/M",MEd:"E، d/M",MMdd:"dd/MM",MMM:"LLL",MMMd:"d MMM",MMMEd:"E، d MMM",MMMMd:"d MMMM",MMMMEd:"E، d MMMM",ms:"mm:ss","y":"y",yM:"M/y",yMd:"d/M/y",yMEd:"E، d/M/y",yMM:"MM/y",yMMM:"MMM y",yMMMd:"d MMM، y",yMMMEd:"E، d MMM، y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},dateFormats:{yMMMMEEEEd:"EEEE، d MMMM، y",yMMMMd:"d MMMM، y",yMMMd:"dd/MM/y",yMd:"d/M/y"},timeFormats:{hmmsszzzz:"h:mm:ss a zzzz",hmsz:"h:mm:ss a z",hms:"h:mm:ss a",hm:"h:mm a"}},calendars:{buddhist:{months:{narrow:["ج","ف","م","أ","م","ج","ج","أ","س","أ","ن","د"],short:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],long:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},days:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],long:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},eras:{narrow:["BE"],short:["BE"],long:["التقويم البوذي"]},dayPeriods:{am:"ص",pm:"م"}},chinese:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],long:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"]},days:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],long:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},dayPeriods:{am:"ص",pm:"م"}},coptic:{months:{narrow:["١","٢","٣","٤","٥","٦","٧","٨","٩","١٠","١١","١٢","١٣"],short:["توت","بابه","هاتور","كيهك","طوبة","أمشير","برمهات","برمودة","بشنس","بؤونة","أبيب","مسرى","نسيئ"],long:["توت","بابه","هاتور","كيهك","طوبة","أمشير","برمهات","برمودة","بشنس","بؤونة","أبيب","مسرى","نسيئ"]},days:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],long:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},eras:{narrow:["ERA0","ERA1"],short:["ERA0","ERA1"],long:["ERA0","ERA1"]},dayPeriods:{am:"ص",pm:"م"}},dangi:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],long:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"]},days:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],long:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},dayPeriods:{am:"ص",pm:"م"}},ethiopic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],short:["مسكريم","تكمت","هدار","تهساس","تر","يكتت","مجابيت","ميازيا","جنبت","سين","هامل","نهاس","باجمن"],long:["مسكريم","تكمت","هدار","تهساس","تر","يكتت","مجابيت","ميازيا","جنبت","سين","هامل","نهاس","باجمن"]},days:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],long:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},eras:{narrow:["ERA0","ERA1"],short:["ERA0","ERA1"],long:["ERA0","ERA1"]},dayPeriods:{am:"ص",pm:"م"}},ethioaa:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],short:["مسكريم","تكمت","هدار","تهساس","تر","يكتت","مجابيت","ميازيا","جنبت","سين","هامل","نهاس","باجمن"],long:["مسكريم","تكمت","هدار","تهساس","تر","يكتت","مجابيت","ميازيا","جنبت","سين","هامل","نهاس","باجمن"]},days:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],long:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},eras:{narrow:["ERA0"],short:["ERA0"],long:["ERA0"]},dayPeriods:{am:"ص",pm:"م"}},generic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],long:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"]},days:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],long:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},eras:{narrow:["ERA0","ERA1"],short:["ERA0","ERA1"],long:["ERA0","ERA1"]},dayPeriods:{am:"ص",pm:"م"}},gregory:{months:{narrow:["ج","ف","م","أ","م","ج","ج","أ","س","أ","ن","د"],short:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],long:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},days:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],long:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},eras:{narrow:["ق.م","م","BCE","ب.م"],short:["ق.م","م","BCE","ب.م"],long:["قبل الميلاد","ميلادي","BCE","بعد الميلاد"]},dayPeriods:{am:"ص",pm:"م"}},hebrew:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13","7"],short:["تشري","مرحشوان","كيسلو","طيفت","شباط","آذار الأول","آذار","نيسان","أيار","سيفان","تموز","آب","أيلول","آذار الثاني"],long:["تشري","مرحشوان","كيسلو","طيفت","شباط","آذار الأول","آذار","نيسان","أيار","سيفان","تموز","آب","أيلول","آذار الثاني"]},days:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],long:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},eras:{narrow:["ص"],short:["ص"],long:["ص"]},dayPeriods:{am:"ص",pm:"م"}},indian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"],long:["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"]},days:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],long:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},eras:{narrow:["Saka"],short:["Saka"],long:["Saka"]},dayPeriods:{am:"ص",pm:"م"}},islamic:{months:{narrow:["١","٢","٣","٤","٥","٦","٧","٨","٩","١٠","١١","١٢"],short:["محرم","صفر","ربيع الأول","ربيع الآخر","جمادى الأولى","جمادى الآخرة","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة"],long:["محرم","صفر","ربيع الأول","ربيع الآخر","جمادى الأولى","جمادى الآخرة","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة"]},days:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],long:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},eras:{narrow:["هـ"],short:["هـ"],long:["هـ"]},dayPeriods:{am:"ص",pm:"م"}},islamicc:{months:{narrow:["١","٢","٣","٤","٥","٦","٧","٨","٩","١٠","١١","١٢"],short:["محرم","صفر","ربيع الأول","ربيع الآخر","جمادى الأولى","جمادى الآخرة","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة"],long:["محرم","صفر","ربيع الأول","ربيع الآخر","جمادى الأولى","جمادى الآخرة","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة"]},days:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],long:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},eras:{narrow:["هـ"],short:["هـ"],long:["هـ"]},dayPeriods:{am:"ص",pm:"م"}},japanese:{months:{narrow:["ج","ف","م","أ","م","ج","ج","أ","س","أ","ن","د"],short:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],long:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},days:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],long:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},eras:{narrow:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","M","T","S","H"],short:["تيكا","هاكتشي","هاكهو","شتشو","تيهو","كيين","وادو","رييكي","يورو","جينكي","تمبيو","تمبيو-كامبو","تمبيو-شوهو","تمبيو-هوجي","تمفو-جينجو","جينجو-كيين","هوكي","تن-أو","إنرياكو","ديدو","كونين","تنتشو","شووا (٨٣٤–٨٤٨)","كاجو","نينجو","سيكو","تنان","جوجان","جينكيي","نينا","كامبيو","شوتاي","انجي","انتشو","شوهيي","تنجيو","تنرياكو","تنتوكو","أووا","كوهو","آنا","تينروكو","تن-نن","جوجن","تنجن","إيكان","كانا","اي-ان","ايسو","شورياكو (٩٩٠–٩٩٥)","تشوتوكو","تشوهو","كانكو","تشووا","كانين","جاين","مانجو","تشوجين","تشورياكو","تشوكيو (١٠٤٠–١٠٤٤)","كانتوكو","ايشو (١٠٤٦–١٠٥٣)","تينجي","كوهيي","جيرياكو","انكيو (١٠٦٩–١٠٧٤)","شوهو (١٠٧٤–١٠٧٧)","شورياكو (١٠٧٧–١٠٨١)","ايهو","أوتوكو","كانجي","كاهو","ايتشو","شوتوكو","كووا (١٠٩٩–١١٠٤)","تشوجي","كاشو","تنين","تن-اي","ايكيو (١١١٣–١١١٨)","جن-اي","هوان","تنجي","ديجي","تنشو (١١٣١–١١٣٢)","تشوشو","هوين","ايجي","كوجي (١١٤٢–١١٤٤)","تنيو","كيوان","نينبيي","كيوجو","هجين","هيجي","ايرياكو","أوهو","تشوكان","ايمان","نين-ان","كاو","شون","أنجين","جيشو","يووا","جيي","جنريوكو","بنجي","كنكيو","شوجي","كنين","جنكيو (١٢٠٤–١٢٠٦)","كن-اي","شوجن (١٢٠٧–١٢١١)","كنرياكو","كنبو (١٢١٣–١٢١٩)","شوكيو","جو","جيننين","كروكو","أنتيي","كنكي","جويي","تمبكو","بنرياكو","كاتيي","رياكنين","ان-أو","نينجي","كنجين","هوجي","كنتشو","كوجن","شوكا","شوجن (١٢٥٩–١٢٦٠)","بن-أو","كوتشو","بن-اي","كنجي","كوان","شوو (١٢٨٨–١٢٩٣)","اينين","شوان","كنجن","كجن","توكجي","انكي","أوتشو","شووا (١٣١٢–١٣١٧)","بنبو","جنو","جنكيو (١٣٢١–١٣٢٤)","شوتشو (١٣٢٤–١٣٢٦)","كريكي","جنتكو","جنكو","كمو","إنجن","كوككو","شوهي","كنتكو","بنتشو","تنجو","كورياكو","كووا (١٣٨١–١٣٨٤)","جنتشو","مييتكو (١٣٨٤–١٣٨٧)","كاكي","كو","مييتكو (١٣٩٠–١٣٩٤)","أويي","شوتشو (١٤٢٨–١٤٢٩)","ايكيو (١٤٢٩–١٤٤١)","ككيتسو","بن-أن","هوتكو","كيوتكو","كوشو","تشوركو","كنشو","بنشو","أونين","بنمي","تشوكيو (١٤٨٧–١٤٨٩)","انتكو","ميو","بنكي","ايشو (١٥٠٤–١٥٢١)","تييي","كيوركو","تنمن","كوجي (١٥٥٥–١٥٥٨)","ايركو","جنكي","تنشو (١٥٧٣–١٥٩٢)","بنركو","كيتشو","جنوا","كان-اي","شوهو (١٦٤٤–١٦٤٨)","كيان","شوو (١٦٥٢–١٦٥٥)","ميرياكو","منجي","كنبن","انبو","تنوا","جوكيو","جنركو","هويي","شوتكو","كيوهو","جنبن","كنبو (١٧٤١–١٧٤٤)","انكيو (١٧٤٤–١٧٤٨)","كان-ان","هورياكو","مييوا","ان-اي","تنمي","كنسي","كيووا","بنكا","بنسي","تنبو","كوكا","كاي","أنسي","من-ان","بنكيو","جنجي","كيو","ميجي","تيشو","شووا","هيسي"],long:["تيكا","هاكتشي","هاكهو","شتشو","تيهو","كيين","وادو","رييكي","يورو","جينكي","تمبيو","تمبيو-كامبو","تمبيو-شوهو","تمبيو-هوجي","تمفو-جينجو","جينجو-كيين","هوكي","تن-أو","إنرياكو","ديدو","كونين","تنتشو","شووا (٨٣٤–٨٤٨)","كاجو","نينجو","سيكو","تنان","جوجان","جينكيي","نينا","كامبيو","شوتاي","انجي","انتشو","شوهيي","تنجيو","تنرياكو","تنتوكو","أووا","كوهو","آنا","تينروكو","تن-نن","جوجن","تنجن","إيكان","كانا","اي-ان","ايسو","شورياكو (٩٩٠–٩٩٥)","تشوتوكو","تشوهو","كانكو","تشووا","كانين","جاين","مانجو","تشوجين","تشورياكو","تشوكيو (١٠٤٠–١٠٤٤)","كانتوكو","ايشو (١٠٤٦–١٠٥٣)","تينجي","كوهيي","جيرياكو","انكيو (١٠٦٩–١٠٧٤)","شوهو (١٠٧٤–١٠٧٧)","شورياكو (١٠٧٧–١٠٨١)","ايهو","أوتوكو","كانجي","كاهو","ايتشو","شوتوكو","كووا (١٠٩٩–١١٠٤)","تشوجي","كاشو","تنين","تن-اي","ايكيو (١١١٣–١١١٨)","جن-اي","هوان","تنجي","ديجي","تنشو (١١٣١–١١٣٢)","تشوشو","هوين","ايجي","كوجي (١١٤٢–١١٤٤)","تنيو","كيوان","نينبيي","كيوجو","هجين","هيجي","ايرياكو","أوهو","تشوكان","ايمان","نين-ان","كاو","شون","أنجين","جيشو","يووا","جيي","جنريوكو","بنجي","كنكيو","شوجي","كنين","جنكيو (١٢٠٤–١٢٠٦)","كن-اي","شوجن (١٢٠٧–١٢١١)","كنرياكو","كنبو (١٢١٣–١٢١٩)","شوكيو","جو","جيننين","كروكو","أنتيي","كنكي","جويي","تمبكو","بنرياكو","كاتيي","رياكنين","ان-أو","نينجي","كنجين","هوجي","كنتشو","كوجن","شوكا","شوجن (١٢٥٩–١٢٦٠)","بن-أو","كوتشو","بن-اي","كنجي","كوان","شوو (١٢٨٨–١٢٩٣)","اينين","شوان","كنجن","كجن","توكجي","انكي","أوتشو","شووا (١٣١٢–١٣١٧)","بنبو","جنو","جنكيو (١٣٢١–١٣٢٤)","شوتشو (١٣٢٤–١٣٢٦)","كريكي","جنتكو","جنكو","كمو","إنجن","كوككو","شوهي","كنتكو","بنتشو","تنجو","كورياكو","كووا (١٣٨١–١٣٨٤)","جنتشو","مييتكو (١٣٨٤–١٣٨٧)","كاكي","كو","مييتكو (١٣٩٠–١٣٩٤)","أويي","شوتشو (١٤٢٨–١٤٢٩)","ايكيو (١٤٢٩–١٤٤١)","ككيتسو","بن-أن","هوتكو","كيوتكو","كوشو","تشوركو","كنشو","بنشو","أونين","بنمي","تشوكيو (١٤٨٧–١٤٨٩)","انتكو","ميو","بنكي","ايشو (١٥٠٤–١٥٢١)","تييي","كيوركو","تنمن","كوجي (١٥٥٥–١٥٥٨)","ايركو","جنكي","تنشو (١٥٧٣–١٥٩٢)","بنركو","كيتشو","جنوا","كان-اي","شوهو (١٦٤٤–١٦٤٨)","كيان","شوو (١٦٥٢–١٦٥٥)","ميرياكو","منجي","كنبن","انبو","تنوا","جوكيو","جنركو","هويي","شوتكو","كيوهو","جنبن","كنبو (١٧٤١–١٧٤٤)","انكيو (١٧٤٤–١٧٤٨)","كان-ان","هورياكو","مييوا","ان-اي","تنمي","كنسي","كيووا","بنكا","بنسي","تنبو","كوكا","كاي","أنسي","من-ان","بنكيو","جنجي","كيو","ميجي","تيشو","شووا","هيسي"]},dayPeriods:{am:"ص",pm:"م"}},persian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["فرفردن","أذربيهشت","خرداد","تار","مرداد","شهرفار","مهر","آيان","آذر","دي","بهمن","اسفندار"],long:["فرفردن","أذربيهشت","خرداد","تار","مرداد","شهرفار","مهر","آيان","آذر","دي","بهمن","اسفندار"]},days:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],long:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},eras:{narrow:["ه.ش"],short:["ه.ش"],long:["ه.ش"]},dayPeriods:{am:"ص",pm:"م"}},roc:{months:{narrow:["ج","ف","م","أ","م","ج","ج","أ","س","أ","ن","د"],short:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],long:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},days:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],long:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},eras:{narrow:["Before R.O.C.","جمهورية الصي"],short:["Before R.O.C.","جمهورية الصي"],long:["Before R.O.C.","جمهورية الصي"]},dayPeriods:{am:"ص",pm:"م"}}}},number:{nu:["latn"],patterns:{decimal:{positivePattern:"{number}",negativePattern:"{minusSign}{number}"},currency:{positivePattern:"{currency} {number}",negativePattern:"{minusSign}{currency} {number}"},percent:{positivePattern:"{number}{percentSign}",negativePattern:"{minusSign}{number}{percentSign}"}},symbols:{arab:{decimal:"٫",group:"٬",nan:"ليس رقم",plusSign:"+",minusSign:"-",percentSign:"٪",infinity:"∞"},latn:{decimal:",",group:".",nan:"ليس رقمًا",plusSign:"+",minusSign:"-",percentSign:"٪",infinity:"∞"}},currencies:{AED:"د.إ.",AUD:"AU$",BHD:"د.ب.",BRL:"R$",CAD:"CA$",CNY:"CN¥",DZD:"د.ج.",EGP:"ج.م.",EUR:"€",GBP:"£",HKD:"HK$",IDR:"ر.إن.",ILS:"₪",INR:"₹",IQD:"د.ع.",IRR:"ر.إ.",JOD:"د.أ.",JPY:"JP¥",KMF:"ف.ج.ق.",KRW:"₩",KWD:"د.ك.",LBP:"ل.ل.",LYD:"د.ل.",MAD:"د.م.",MRO:"أ.م.",MXN:"MX$",NZD:"NZ$",OMR:"ر.ع.",PKR:"ر.ب.",QAR:"ر.ق.",SAR:"ر.س.",SDD:"د.س.",SDG:"ج.س.",SSP:"ج.ج.س.",SYP:"ل.س.",THB:"฿",TND:"د.ت.",TRY:"ل.ت.",TWD:"NT$",USD:"US$",VND:"₫",XAF:"FCFA",XCD:"EC$",XOF:"CFA",XPF:"CFPF",XXX:"***",YER:"ر.ي."}}});
|
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppModule = void 0;
const common_1 = require("@nestjs/common");
const path = require("path");
const app_controller_1 = require("./app.controller");
const app_service_1 = require("./app.service");
const sequelize_1 = require("@nestjs/sequelize");
const teams_model_1 = require("./teams/teams.model");
const teams_module_1 = require("./teams/teams.module");
const leagues_model_1 = require("./leagues/leagues.model");
const leagues_module_1 = require("./leagues/leagues.module");
const season_model_1 = require("./seasons/season.model");
const season_module_1 = require("./seasons/season.module");
const race_module_1 = require("./races/race.module");
const race_model_1 = require("./races/race.model");
const team_rel_seasonsLeagues_model_1 = require("./teams/team-rel-seasonsLeagues.model");
const season_rel_leagues_model_1 = require("./seasons/season_rel_leagues.model");
const race_rel_seasonsLeagues_model_1 = require("./races/race-rel-seasonsLeagues.model");
const team_rel_raceSeasonsLeagues_model_1 = require("./teams/team_rel_raceSeasonsLeagues.model");
const config_1 = require("@nestjs/config");
const serve_static_1 = require("@nestjs/serve-static");
let AppModule = class AppModule {
};
AppModule = __decorate([
common_1.Module({
imports: [
config_1.ConfigModule.forRoot({
envFilePath: `.${process.env.NODE_ENV}.env`
}),
serve_static_1.ServeStaticModule.forRoot({
rootPath: path.resolve(__dirname, 'static'),
}),
sequelize_1.SequelizeModule.forRoot({
dialect: 'postgres',
host: process.env.POSTGRES_HOST,
port: Number(process.env.POSTGRESS_PORT),
username: process.env.POSTGRES_USER,
password: process.env.POSTGRESS_PASSWORD,
database: process.env.POSTGRES_DB,
models: [teams_model_1.Team, leagues_model_1.League, season_model_1.Season, race_model_1.Race, team_rel_seasonsLeagues_model_1.TeamRelSeasonsLeagues, season_rel_leagues_model_1.SeasonsRelLeagues, race_rel_seasonsLeagues_model_1.RaceRelSeasonsLeagues, team_rel_raceSeasonsLeagues_model_1.TeamRelRaceSeasonsLeagues],
autoLoadModels: true
}),
teams_module_1.TeamsModule,
season_module_1.SeasonsModule,
leagues_module_1.LeaguesModule,
race_module_1.RacesModule,
],
controllers: [app_controller_1.AppController],
providers: [app_service_1.AppService],
})
], AppModule);
exports.AppModule = AppModule;
//# sourceMappingURL=app.module.js.map |
const expect = require('chai').expect;
// const G6 = require('../../../src');
const G6 = require('../../../src');
// const data = require('./data');
const div = document.createElement('div');
div.id = 'dagre';
document.body.appendChild(div);
const data = {
nodes: [
{
id: '2',
type: 'alps',
name: 'alps_file2',
label: '2',
conf: [
{
label: 'conf',
value: 'pai_graph.conf'
},
{
label: 'dot',
value: 'pai_graph.dot'
},
{
label: 'init',
value: 'init.rc'
}
]
},
{
id: '1',
type: 'alps',
name: 'alps_file1',
label: '1',
conf: [
{
label: 'conf',
value: 'pai_graph.conf'
},
{
label: 'dot',
value: 'pai_graph.dot'
},
{
label: 'init',
value: 'init.rc'
}
]
},
{
id: '4',
type: 'sql',
name: 'sql_file1',
label: '4',
conf: [
{
label: 'conf',
value: 'pai_graph.conf'
},
{
label: 'dot',
value: 'pai_graph.dot'
},
{
label: 'init',
value: 'init.rc'
}
]
},
{
id: '5',
type: 'sql',
name: 'sql_file2',
label: '5',
conf: [
{
label: 'conf',
value: 'pai_graph.conf'
},
{
label: 'dot',
value: 'pai_graph.dot'
},
{
label: 'init',
value: 'init.rc'
}
]
},
{
id: '6',
type: 'feature_etl',
name: 'feature_etl_1',
label: '6',
conf: [
{
label: 'conf',
value: 'pai_graph.conf'
},
{
label: 'dot',
value: 'pai_graph.dot'
},
{
label: 'init',
value: 'init.rc'
}
]
},
{
id: '3',
type: 'alps',
name: 'alps_file3',
label: '3',
conf: [
{
label: 'conf',
value: 'pai_graph.conf'
},
{
label: 'dot',
value: 'pai_graph.dot'
},
{
label: 'init',
value: 'init.rc'
}
]
},
{
id: '7',
type: 'feature_etl',
name: 'feature_etl_1',
label: '7',
conf: [
{
label: 'conf',
value: 'pai_graph.conf'
},
{
label: 'dot',
value: 'pai_graph.dot'
},
{
label: 'init',
value: 'init.rc'
}
]
},
{
id: '8',
type: 'feature_extractor',
name: 'feature_extractor',
label: '8',
conf: [
{
label: 'conf',
value: 'pai_graph.conf'
},
{
label: 'dot',
value: 'pai_graph.dot'
},
{
label: 'init',
value: 'init.rc'
}
]
}
],
edges: [
{
source: '1',
target: '2'
},
{
source: '1',
target: '3'
},
{
source: '2',
target: '4'
},
{
source: '3',
target: '4'
},
{
source: '4',
target: '5'
},
{
source: '5',
target: '6'
},
{
source: '6',
target: '7'
},
{
source: '7',
target: '8'
}
]
};
function mathEqual(a, b) {
return Math.abs(a - b) < 1;
}
describe.only('dagre layout', () => {
it('layout with default configs', () => {
const graph = new G6.Graph({
container: div,
layout: {
type: 'dagre'
},
width: 500,
height: 500,
fitView: true
});
graph.data(data);
graph.render();
const node = data.nodes[0];
const edge = data.edges[0];
expect(mathEqual(node.x, 215));
expect(mathEqual(node.y, 196));
expect(mathEqual(edge.startPoint.x, 522));
expect(mathEqual(edge.startPoint.y, 440));
expect(mathEqual(edge.endPoint.x, 765));
expect(mathEqual(edge.endPoint.y, 498));
graph.destroy();
});
it('modify configs', () => {
data.edges.forEach(edge => {
delete edge.startPoint;
delete edge.endPoint;
delete edge.controlPoints;
});
const graph = new G6.Graph({
container: div,
layout: {
type: 'dagre',
rankdir: 'LR',
marginx: 100,
marginy: 100,
controlPoints: false
},
width: 500,
height: 500,
fitView: true
});
graph.data(data);
graph.render();
const node = data.nodes[0];
const edge = data.edges[0];
expect(mathEqual(node.x, 600));
expect(mathEqual(node.y, 1075));
expect(mathEqual(edge.startPoint.x, 531));
expect(mathEqual(edge.startPoint.y, 594));
expect(mathEqual(edge.endPoint.x, 597));
expect(mathEqual(edge.endPoint.y, 854));
expect(edge.controlPoints).to.be.undefined;
graph.destroy();
});
});
|
Elm.Native.Time = {};
Elm.Native.Time.make = function(localRuntime) {
localRuntime.Native = localRuntime.Native || {};
localRuntime.Native.Time = localRuntime.Native.Time || {};
if (localRuntime.Native.Time.values) {
return localRuntime.Native.Time.values;
}
var Signal = Elm.Signal.make(localRuntime);
var NS = Elm.Native.Signal.make(localRuntime);
var Maybe = Elm.Maybe.make(localRuntime);
var Utils = Elm.Native.Utils.make(localRuntime);
function fpsWhen(desiredFPS, isOn) {
var msPerFrame = 1000 / desiredFPS;
var ticker = NS.input(Utils.Tuple0);
function notifyTicker()
{
localRuntime.notify(ticker.id, Utils.Tuple0);
}
function firstArg(x, y) { return x; }
// input fires either when isOn changes, or when ticker fires.
// Its value is a tuple with the current timestamp, and the state of isOn
var input = NS.timestamp(A3(Signal.map2, F2(firstArg), Signal.dropRepeats(isOn), ticker));
var initialState = {
isOn: false,
timeoutId: 0,
time: localRuntime.timer.programStart,
delta: 0
};
function update(input,state) {
var currentTime = input._0;
var isOn = input._1;
var wasOn = state.isOn;
var timeoutId = state.timeoutId;
var previousTime = state.time;
if (isOn)
{
timeoutId = localRuntime.setTimeout(notifyTicker, msPerFrame);
}
else if (wasOn)
{
clearTimeout(timeoutId);
}
return {
isOn: isOn,
timeoutId: timeoutId,
time: currentTime,
delta: (isOn && !wasOn) ? 0 : currentTime - previousTime
};
}
return A2( Signal.map, function(state) { return state.delta; },
A3(Signal.foldp, F2(update), update(input.value,initialState), input) );
}
function fps(t) {
return fpsWhen(t, Signal.constant(true));
}
function every(t) {
var ticker = NS.input(Utils.Tuple0);
function tellTime() {
localRuntime.notify(ticker.id, Utils.Tuple0);
}
var clock = A2( Signal.map, fst, NS.timestamp(ticker) );
setInterval(tellTime, t);
return clock;
}
function fst(pair) {
return pair._0;
}
function read(s) {
var t = Date.parse(s);
return isNaN(t) ? Maybe.Nothing : Maybe.Just(t);
}
return localRuntime.Native.Time.values = {
fpsWhen: F2(fpsWhen),
fps: fps,
every: every,
delay: NS.delay,
timestamp: NS.timestamp,
toDate: function(t) { return new window.Date(t); },
read: read
};
};
|
"""
PRIVATE MODULE: do not import (from) it directly.
This module contains functionality for ``datetime`` related stuff.
"""
from datetime import datetime, timezone, timedelta, time, date
from typing import Union
RFC3339_DATE_PATTERN = '%Y-%m-%d'
RFC3339_TIME_PATTERN = '%H:%M:%S'
RFC3339_DATETIME_PATTERN = '{}T{}'.format(
RFC3339_DATE_PATTERN, RFC3339_TIME_PATTERN)
def to_str(
dt: Union[datetime, date],
strip_microseconds: bool,
fork_inst: type,
pattern: str = RFC3339_DATETIME_PATTERN) -> str:
offset = get_offset_str(dt, fork_inst)
if not strip_microseconds and getattr(dt, 'microsecond', None):
pattern += '.%f'
return dt.strftime("{}{}".format(pattern, offset))
def get_offset_str(
obj: Union[datetime, date, timedelta],
fork_inst: type) -> str:
"""
Return the textual offset of the given ``obj``.
:param obj: a datetime or timedelta instance.
:param fork_inst: the state holder that is used.
:return: the offset following RFC3339.
"""
result = ''
if isinstance(obj, datetime):
result = _datetime_offset_str(obj, fork_inst)
elif isinstance(obj, timedelta):
result = _timedelta_offset_str(obj)
return result
def get_datetime_inst(obj: str, pattern: str) -> datetime:
"""
Return a datetime instance with timezone info from the given ``obj``.
:param obj: the ``obj`` in RFC3339 format.
:param pattern: the datetime pattern.
:return: a datetime instance with timezone info.
"""
if obj[-1] == 'Z':
result = _datetime_utc_inst(obj, pattern)
elif 'T' in pattern:
result = _datetime_offset_inst(obj, pattern)
else:
result = datetime.strptime(obj, pattern)
return result
def _datetime_offset_str(obj: datetime, fork_inst: type) -> str:
"""
Return a textual offset (e.g. +01:00 or Z) for the given datetime.
:param obj: the datetime instance.
:return: the offset for ``obj``.
"""
tzone = obj.tzinfo
if not tzone:
# datetimes without tzinfo are treated as local times.
fork_inst._warn('The use of datetimes without timezone is dangerous '
'and can lead to undesired results.',
'datetime-without-tz')
tzone = datetime.now(timezone.utc).astimezone().tzinfo
if tzone is timezone.utc or tzone.utc is timezone.utc:
return '+00:00'
offset = 'Z'
if tzone.tzname(None) not in ('UTC', 'UTC+00:00'):
tdelta = tzone.utcoffset(None) or \
getattr(tzone, 'adjusted_offset', tzone.utcoffset(obj))
offset = _timedelta_offset_str(tdelta)
return offset
def _timedelta_offset_str(tdelta: timedelta) -> str:
"""
Return a textual offset (e.g. +01:00 or Z) for the given timedelta.
:param tdelta: the timedelta instance.
:return: the offset for ``tdelta``.
"""
offset_s = tdelta.total_seconds()
offset_h = int(offset_s / 3600)
offset_m = int((offset_s / 60) % 60)
offset_t = time(abs(offset_h), abs(offset_m))
operator = '+' if offset_s > 0 else '-'
offset = offset_t.strftime('{}%H:%M'.format(operator))
return offset
def _datetime_utc_inst(obj: str, pattern: str) -> datetime:
"""
Return a datetime instance with UTC timezone info.
:param obj: a datetime in RFC3339 format.
:param pattern: the datetime pattern that is used.
:return: a datetime instance with timezone info.
"""
dattim_str = obj[0:-1]
dattim_obj = datetime.strptime(dattim_str, pattern)
return _new_datetime(dattim_obj.date(), dattim_obj.time(), timezone.utc)
def _datetime_offset_inst(obj: str, pattern: str) -> datetime:
"""
Return a datetime instance with timezone info.
:param obj: a datetime in RFC3339 format.
:param pattern: the datetime pattern that is used.
:return: a datetime instance with timezone info.
"""
dat_str, tim_str = obj.split('T')
splitter, factor = ('+', 1) if '+' in tim_str else ('-', -1)
naive_tim_str, offset = tim_str.split(splitter)
naive_dattim_str = '{}T{}'.format(dat_str, naive_tim_str)
dattim_obj = datetime.strptime(naive_dattim_str, pattern)
hrs_str, mins_str = offset.split(':')
hrs = int(hrs_str) * factor
mins = int(mins_str) * factor
tz = timezone(offset=timedelta(hours=hrs, minutes=mins))
return _new_datetime(dattim_obj.date(), dattim_obj.time(), tz)
def _new_datetime(date_inst: date, time_inst: time, tzinfo: timezone) \
-> datetime:
"""
Return a datetime instance from a date, time and timezone.
This function was required due to the missing argument for tzinfo under the
Linux Python distribution.
:param date_inst: the date.
:param time_inst: the time.
:param tzinfo: the Timezone.
:return: a combined datetime instance.
"""
return datetime.combine(date_inst, time_inst).replace(tzinfo=tzinfo)
|
import FuiModuleModifier from "./fui-module";
export default class FuiProgressModifier extends FuiModuleModifier {
semanticModuleName = "progress";
}
|
import torch
from util.torch.activations import mish
from util.torch.initialization import weights_init
class Discriminator64(torch.nn.Module):
def __init__(self, h_size, use_bn=False, use_mish=False, n_channels=1, dropout=0.0, use_logits=True):
super().__init__()
self.use_logits = use_logits
self.n_channels = n_channels
if use_mish:
self.activ = mish
else:
self.activ = self.leaky_relu
self.dropout = dropout
self.h_size = h_size
self.conv_1 = torch.nn.Conv2d(n_channels, h_size, kernel_size=3, stride=1)
self.conv_2 = torch.nn.Conv2d(h_size, h_size * 2, kernel_size=4, stride=2)
self.conv_3 = torch.nn.Conv2d(h_size * 2, h_size * 2, kernel_size=4, stride=2)
self.conv_4 = torch.nn.Conv2d(h_size * 2, h_size * 4, kernel_size=8, stride=2)
self.conv_5 = torch.nn.Conv2d(h_size * 4, h_size * 4, kernel_size=4, stride=1)
self.use_bn = use_bn
if use_bn:
self.bn_2 = torch.nn.BatchNorm2d(self.h_size * 2)
self.bn_3 = torch.nn.BatchNorm2d(self.h_size * 2)
self.bn_4 = torch.nn.BatchNorm2d(self.h_size * 4)
self.bn_5 = torch.nn.BatchNorm2d(self.h_size * 4)
if dropout != 0:
self.dropout_layer = torch.nn.Dropout(dropout, True)
self.lin_1 = torch.nn.Linear(h_size * 4, 1)
@staticmethod
def leaky_relu(x):
return torch.nn.functional.leaky_relu(x, 0.02)
def forward(self, inp):
x = self.conv_1(inp)
x = self.activ(x)
x = self.conv_2(x)
if self.use_bn:
x = self.bn_2(x)
x = self.activ(x)
x = self.conv_3(x)
if self.use_bn:
x = self.bn_3(x)
x = self.activ(x)
x = self.conv_4(x)
if self.use_bn:
x = self.bn_4(x)
x = self.activ(x)
x = self.conv_5(x)
if self.use_bn:
x = self.bn_5(x)
x = self.activ(x)
# Flatten to vector
x = x.view(-1, self.h_size * 4)
if self.dropout != 0:
x = self.dropout_layer(x)
x = self.lin_1(x)
if not self.use_logits:
x = torch.sigmoid(x)
return x
def init_weights(self):
self.apply(weights_init) |
import { TemplateLite } from '@tjmonsi/element-lite/mixins/template-lite.js';
import { render, html } from 'lit-html';
import { template } from './template.js';
import style from './style.styl';
// import '../../smart-components/navigation-loader/index.js';
// import '../../components/side-navigation/index.js';
const { HTMLElement, customElements } = window;
class Component extends TemplateLite(HTMLElement) {
static get is () { return 'project-sidebar'; }
static get renderer () { return render; }
constructor () {
super();
this.__open = false;
}
template () {
return html`<style>${style.toString()}</style>${template(html, this)}`;
}
open () {
const sidebar = this.shadowRoot.querySelector('.sidebar');
this.__open = true;
sidebar.classList.add('open');
}
close () {
const sidebar = this.shadowRoot.querySelector('.sidebar');
this.__open = false;
sidebar.classList.remove('open');
}
}
if (!customElements.get(Component.is)) {
customElements.define(Component.is, Component);
} else {
console.warn(`${Component.is} is already defined somewhere. Please check your code.`);
}
|
(function () {
var doc = document.documentElement;
doc.classList.remove('no-js');
doc.classList.add('js');
}());
|
# Copyright 2019, OpenTelemetry Authors
#
# 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.
import mysql.connector
from ...utils.deprecation import deprecated
@deprecated(message='Use patching instead (see the docs).', version='1.0.0')
def get_traced_mysql_connection(*args, **kwargs):
return mysql.connector.MySQLConnection
|
import styles from './CustomMonthPicker.less';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import getYearOptions from './getYearOptions';
import Dropdown from '../../Dropdown/Dropdown';
import FieldLabel from '../../FieldLabel/FieldLabel';
import ScreenReaderOnly from '../../ScreenReaderOnly/ScreenReaderOnly';
import { TONE } from '../../private/tone';
const months = [
{ value: '1', label: 'Jan' },
{ value: '2', label: 'Feb' },
{ value: '3', label: 'Mar' },
{ value: '4', label: 'Apr' },
{ value: '5', label: 'May' },
{ value: '6', label: 'Jun' },
{ value: '7', label: 'Jul' },
{ value: '8', label: 'Aug' },
{ value: '9', label: 'Sep' },
{ value: '10', label: 'Oct' },
{ value: '11', label: 'Nov' },
{ value: '12', label: 'Dec' }
];
/* eslint-disable react/no-deprecated */
export default class CustomMonthPicker extends Component {
static displayName = 'CustomMonthPicker';
static propTypes = {
id: PropTypes.string.isRequired,
onChange: PropTypes.func,
onBlur: PropTypes.func,
onFocus: PropTypes.func,
value: PropTypes.shape({
month: PropTypes.number,
year: PropTypes.number
}),
valid: PropTypes.bool,
tone: PropTypes.oneOf([
TONE.POSITIVE,
TONE.INFO,
TONE.CRITICAL,
TONE.NEUTRAL
]),
minYear: PropTypes.number.isRequired,
maxYear: PropTypes.number.isRequired,
ascendingYears: PropTypes.bool.isRequired,
fieldMessageId: PropTypes.string.isRequired
};
static defaultProps = {
value: {}
};
constructor({ minYear, maxYear, ascendingYears }) {
super();
this.handleMonthChange = this.handleMonthChange.bind(this);
this.handleYearChange = this.handleYearChange.bind(this);
this.storeMonthReference = this.storeMonthReference.bind(this);
this.storeYearReference = this.storeYearReference.bind(this);
this.handleBlur = this.handleBlur.bind(this);
this.handleFocus = this.handleFocus.bind(this);
this.blurIfNotFocussed = this.blurIfNotFocussed.bind(this);
this.yearOptions = getYearOptions(minYear, maxYear, ascendingYears);
}
componentWillUpdate(newProps) {
if (
['minYear', 'maxYear', 'ascendingYears'].filter(
key => newProps[key] !== this.props[key]
)
) {
this.yearOptions = getYearOptions(
newProps.minYear,
newProps.maxYear,
newProps.ascendingYears
);
}
}
storeMonthReference(input) {
if (input !== null) {
this.monthInput = input;
}
}
storeYearReference(input) {
if (input !== null) {
this.yearInput = input;
}
}
handleMonthChange({ target: { value } }) {
const {
onChange,
value: { year }
} = this.props;
if (typeof onChange === 'function') {
onChange({
month: parseInt(value, 10),
year
});
}
}
handleYearChange({ target: { value } }) {
const {
onChange,
value: { month }
} = this.props;
if (typeof onChange === 'function') {
onChange({
month,
year: parseInt(value, 10)
});
}
}
blurIfNotFocussed(active) {
const { onBlur, value } = this.props;
if (active !== this.monthInput && active !== this.yearInput) {
onBlur(value);
}
}
handleBlur({ relatedTarget }) {
const { onBlur } = this.props;
if (typeof onBlur === 'function') {
if (relatedTarget !== null) {
this.blurIfNotFocussed(relatedTarget);
} else {
// IE 9 - 11 Hack -- relatedTarget is null in blur event
setTimeout(() => {
const { activeElement } = document;
this.blurIfNotFocussed(activeElement);
});
}
}
}
handleFocus(evt) {
const { onFocus } = this.props;
if (typeof onFocus === 'function') {
onFocus(evt);
}
}
render() {
const { id, value, valid, tone, fieldMessageId } = this.props;
// eslint-disable-next-line react/prop-types
const { label, labelProps, secondaryLabel, tertiaryLabel } = this.props;
const { month, year } = value;
const monthValue = String(month || '');
const yearValue = String(year || '');
return (
<div>
<FieldLabel
{...{
id: `${id}-month`,
label: (
<span>
{label}
<ScreenReaderOnly> Month</ScreenReaderOnly>
</span>
),
labelProps,
secondaryLabel,
tertiaryLabel
}}
/>
<FieldLabel
{...{
id: `${id}-year`,
label: <ScreenReaderOnly>{label} Year</ScreenReaderOnly>,
raw: true
}}
/>
<div className={styles.dropdownWrapper}>
<Dropdown
id={`${id}-month`}
options={months}
className={styles.dropdown}
valid={valid}
tone={tone}
message={false}
placeholder="Month"
onChange={this.handleMonthChange}
onBlur={this.handleBlur}
onFocus={this.handleFocus}
value={monthValue}
inputProps={{
ref: this.storeMonthReference,
'aria-describedby': fieldMessageId
}}
/>
<Dropdown
id={`${id}-year`}
options={this.yearOptions}
className={styles.dropdown}
valid={valid}
tone={tone}
message={false}
placeholder="Year"
onChange={this.handleYearChange}
onBlur={this.handleBlur}
onFocus={this.handleFocus}
value={yearValue}
inputProps={{
ref: this.storeYearReference,
'aria-describedby': fieldMessageId
}}
/>
</div>
</div>
);
}
}
|
define(
"dojox/atom/widget/nls/th/FeedEntryEditor", ({
doNew: "[สร้างใหม่]",
edit: "[แก้ไข]",
save: "[บันทึก]",
cancel: "[ยกเลิก]"
})
);
|
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import numpy as np
from ..proto import onnx_proto
from ..common._apply_operation import (
apply_add, apply_cast, apply_div, apply_exp,
apply_log, apply_mul, apply_pow, apply_sub, apply_reshape,
)
from ..common.data_types import Int64TensorType
from ..common._registration import register_converter
def _joint_log_likelihood_bernoulli(
scope, container, input_name, feature_log_prob_name,
class_log_prior_name, binarize, feature_count, proto_type,
sum_op_version, sum_result_name):
"""
Calculate joint log likelihood for Bernoulli Naive Bayes model.
"""
constant_name = scope.get_unique_variable_name('constant')
exp_result_name = scope.get_unique_variable_name('exp_result')
sub_result_name = scope.get_unique_variable_name('sub_result')
neg_prob_name = scope.get_unique_variable_name('neg_prob')
sum_neg_prob_name = scope.get_unique_variable_name('sum_neg_prob')
difference_matrix_name = scope.get_unique_variable_name(
'difference_matrix')
dot_prod_name = scope.get_unique_variable_name('dot_prod')
partial_sum_result_name = scope.get_unique_variable_name(
'partial_sum_result')
# Define constant slightly greater than 1 to avoid log 0
# scenarios when calculating log (1 - x) and x=1 in line 70
container.add_initializer(constant_name, proto_type, [], [1.000000001])
if binarize is not None:
threshold_name = scope.get_unique_variable_name('threshold')
condition_name = scope.get_unique_variable_name('condition')
cast_values_name = scope.get_unique_variable_name('cast_values')
zero_tensor_name = scope.get_unique_variable_name('zero_tensor')
binarised_input_name = scope.get_unique_variable_name(
'binarised_input')
num_features = feature_count.shape[1]
container.add_initializer(threshold_name, proto_type,
[1], [binarize])
container.add_initializer(
zero_tensor_name,
proto_type, [1, num_features],
np.zeros((1, num_features)).ravel())
container.add_node(
'Greater', [input_name, threshold_name],
condition_name, name=scope.get_unique_operator_name('Greater'),
op_version=9)
apply_cast(scope, condition_name, cast_values_name, container,
to=proto_type)
apply_add(scope, [zero_tensor_name, cast_values_name],
binarised_input_name, container, broadcast=1)
input_name = binarised_input_name
apply_exp(scope, feature_log_prob_name, exp_result_name, container)
apply_sub(scope, [constant_name, exp_result_name], sub_result_name,
container, broadcast=1)
apply_log(scope, sub_result_name, neg_prob_name, container)
container.add_node('ReduceSum', neg_prob_name,
sum_neg_prob_name, axes=[0],
name=scope.get_unique_operator_name('ReduceSum'))
apply_sub(scope, [feature_log_prob_name, neg_prob_name],
difference_matrix_name, container)
container.add_node(
'MatMul', [input_name, difference_matrix_name],
dot_prod_name, name=scope.get_unique_operator_name('MatMul'))
container.add_node(
'Sum', [sum_neg_prob_name, dot_prod_name],
partial_sum_result_name, op_version=sum_op_version,
name=scope.get_unique_operator_name('Sum'))
container.add_node(
'Sum', [partial_sum_result_name, class_log_prior_name],
sum_result_name, name=scope.get_unique_operator_name('Sum'),
op_version=sum_op_version)
return sum_result_name
def _joint_log_likelihood_gaussian(
scope, container, input_name, model, proto_type, sum_result_name):
"""
Calculate joint log likelihood for Gaussian Naive Bayes model.
"""
features = model.theta_.shape[1]
jointi = np.log(model.class_prior_)
sigma_sum_log = - 0.5 * np.sum(np.log(2. * np.pi * model.sigma_), axis=1)
theta_name = scope.get_unique_variable_name('theta')
sigma_name = scope.get_unique_variable_name('sigma')
sigma_sum_log_name = scope.get_unique_variable_name('sigma_sum_log')
jointi_name = scope.get_unique_variable_name('jointi')
exponent_name = scope.get_unique_variable_name('exponent')
prod_operand_name = scope.get_unique_variable_name('prod_operand')
reshaped_input_name = scope.get_unique_variable_name('reshaped_input')
subtracted_input_name = scope.get_unique_variable_name('subtracted_input')
pow_result_name = scope.get_unique_variable_name('pow_result')
div_result_name = scope.get_unique_variable_name('div_result')
reduced_sum_name = scope.get_unique_variable_name('reduced_sum')
mul_result_name = scope.get_unique_variable_name('mul_result')
part_log_likelihood_name = scope.get_unique_variable_name(
'part_log_likelihood')
theta = model.theta_.reshape((1, -1, features))
sigma = model.sigma_.reshape((1, -1, features))
container.add_initializer(theta_name, proto_type, theta.shape,
theta.ravel())
container.add_initializer(sigma_name, proto_type, sigma.shape,
sigma.ravel())
container.add_initializer(jointi_name, proto_type, [1, jointi.shape[0]],
jointi)
container.add_initializer(
sigma_sum_log_name, proto_type,
[1, sigma_sum_log.shape[0]], sigma_sum_log.ravel())
container.add_initializer(exponent_name, proto_type, [], [2])
container.add_initializer(prod_operand_name, proto_type, [], [0.5])
apply_reshape(scope, input_name, reshaped_input_name, container,
desired_shape=[-1, 1, features])
apply_sub(scope, [reshaped_input_name, theta_name], subtracted_input_name,
container, broadcast=1)
apply_pow(scope, [subtracted_input_name, exponent_name], pow_result_name,
container, broadcast=1)
apply_div(scope, [pow_result_name, sigma_name], div_result_name,
container, broadcast=1)
container.add_node('ReduceSum', div_result_name,
reduced_sum_name, axes=[2], keepdims=0,
name=scope.get_unique_operator_name('ReduceSum'))
apply_mul(scope, [reduced_sum_name, prod_operand_name], mul_result_name,
container, broadcast=1)
apply_sub(scope, [sigma_sum_log_name, mul_result_name],
part_log_likelihood_name,
container, broadcast=1)
apply_add(scope, [jointi_name, part_log_likelihood_name],
sum_result_name, container, broadcast=1)
return sum_result_name
def convert_sklearn_naive_bayes(scope, operator, container):
# Computational graph:
#
# Note: In the following graph, variable names are in lower case
# characters only and operator names are in upper case characters.
# We borrow operator names from the official ONNX spec:
# https://github.com/onnx/onnx/blob/master/docs/Operators.md
# All variables are followed by their shape in [].
#
# Symbols:
# M: Number of instances
# N: Number of features
# C: Number of classes
# input(or x): input
# output(or y): output (There are two paths for producing output, one for
# string labels and the other one for int labels)
# output_probability: class probabilties
# feature_log_prob: Empirical log probability of features given a
# class, P(x_i|y)
# class_log_prior: Smoothed empirical log probability for each class
#
# Multinomial NB
# Equation:
# y = argmax (class_log_prior + X . feature_log_prob^T)
#
# Graph:
#
# input [M, N] -> MATMUL <- feature_log_prob.T [N, C]
# |
# V
# matmul_result [M, C] -> CAST <- proto_type
# |
# V
# cast_result [M, C] -> SUM <- class_log_prior [1, C]
# |
# .-----------------'
# |
# V
# sum_result [M, C] -> ARGMAX -> argmax_output [M, 1]
# |
# V
# classes [C] -----> ARRAYFEATUREEXTRACTOR
# |
# V (string labels)
# array_feature_extractor_result [M, 1] --------------------------.
# (int labels) | |
# V |
# CAST(to=proto_type) |
# | |
# V |
# cast2_result [M, 1] |
# | |
# V |
# output_shape [1] -> RESHAPE |
# | |
# V V
# reshaped_result [M,] .-----RESHAPE
# | |
# V V
# (to=onnx_proto.TensorProto.INT64)CAST --------> output [M,]
#
# Bernoulli NB
# Equation:
# y = argmax (class_log_prior + \sum neg_prob
# + X . (feature_log_prob - neg_prob))
# neg_prob = log( 1 - e ^ feature_log_prob)
#
# Graph:
#
# .---------------------------------------------------------.
# | |
# feature_log_prob.T [N, C] -> EXP -> exp_result [N, C] |
# | |
# .----------------------' |
# | |
# V V
# constant -> SUB -> sub_result [N, C] -> LOG -> neg_prob [N, C] -> SUB
# | |
# .---------' .---------'
# | |
# V V
# .----------- sum_neg_prob [1, C] <- REDUCE_SUM difference_matrix [N, C]
# | |
# | .----------------------------------'
# | |
# | V
# | input [M, N] -> MATMUL -> dot_product [M, C]
# | |
# | V
# '------------------------------------> SUM
# |
# V
# class_log_prior [1, C] -> SUM <- partial_sum_result [M, C]
# |
# V
# sum_result [M, C] -> ARGMAX -> argmax_output [M, 1]
# |
# V
# classes [C] -------> ARRAYFEATUREEXTRACTOR
# |
# .------------------------------------'
# |
# V (string labels)
# array_feature_extractor_result [M, 1] ----------------.
# (int labels) | |
# V |
# CAST(to=proto_type) |
# | |
# V |
# cast2_result [M, 1] |
# | |
# V |
# output_shape [1] -> RESHAPE |
# | |
# V V
# reshaped_result [M,] RESHAPE
# | |
# V |
# (to=onnx_proto.TensorProto.INT64)CAST -> output [M,] <-'
#
#
# If model's binarize attribute is not null, then input of
# Bernoulli NB is produced by the following graph:
#
# input [M, N] -> GREATER <- threshold [1]
# | |
# | V
# | condition [M, N] -> CAST(to=proto_type)
# | |
# | V
# | cast_values [M, N]
# | |
# V V
# CONSTANT_LIKE -> zero_tensor [M, N] -> ADD
# |
# V
# input [M, N] <- binarised_input [M, N]
#
# Sub-graph for probability calculation common to both Multinomial
# and Bernoulli Naive Bayes
#
# sum_result [M, C] -> REDUCELOGSUMEXP -> reduce_log_sum_exp_result [M,]
# | |
# | V
# | log_prob_shape [2] -> RESHAPE
# | |
# '------------> SUB <-- reshaped_log_prob [M, 1] <---'
# |
# V
# log_prob [M, C] -> EXP -> prob_tensor [M, C] -.
# |
# output_probability [M, C] <- ZIPMAP <---------------------'
float_dtype = container.dtype
proto_type = container.proto_dtype
nb_op = operator.raw_operator
classes = nb_op.classes_
output_shape = (-1,)
sum_result_name = scope.get_unique_variable_name('sum_result')
argmax_output_name = scope.get_unique_variable_name('argmax_output')
cast2_result_name = scope.get_unique_variable_name('cast2_result')
reshaped_result_name = scope.get_unique_variable_name('reshaped_result')
classes_name = scope.get_unique_variable_name('classes')
reduce_log_sum_exp_result_name = scope.get_unique_variable_name(
'reduce_log_sum_exp_result')
log_prob_name = scope.get_unique_variable_name('log_prob')
array_feature_extractor_result_name = scope.get_unique_variable_name(
'array_feature_extractor_result')
class_type = onnx_proto.TensorProto.STRING
if np.issubdtype(nb_op.classes_.dtype, np.floating):
class_type = onnx_proto.TensorProto.INT32
classes = classes.astype(np.int32)
elif np.issubdtype(nb_op.classes_.dtype, np.signedinteger):
class_type = onnx_proto.TensorProto.INT32
else:
classes = np.array([s.encode('utf-8') for s in classes])
container.add_initializer(classes_name, class_type, classes.shape, classes)
if operator.type != 'SklearnGaussianNB':
class_log_prior_name = scope.get_unique_variable_name(
'class_log_prior')
feature_log_prob_name = scope.get_unique_variable_name(
'feature_log_prob')
class_log_prior = nb_op.class_log_prior_.astype(
float_dtype).reshape((1, -1))
feature_log_prob = nb_op.feature_log_prob_.T.astype(float_dtype)
container.add_initializer(
feature_log_prob_name, proto_type,
feature_log_prob.shape, feature_log_prob.flatten())
container.add_initializer(
class_log_prior_name, proto_type,
class_log_prior.shape, class_log_prior.flatten())
if container.target_opset < 6:
sum_op_version = 1
elif container.target_opset < 8:
sum_op_version = 6
else:
sum_op_version = 8
input_name = operator.inputs[0].full_name
if type(operator.inputs[0].type) == Int64TensorType:
cast_input_name = scope.get_unique_variable_name('cast_input')
apply_cast(scope, operator.input_full_names, cast_input_name,
container, to=proto_type)
input_name = cast_input_name
if operator.type == 'SklearnBernoulliNB':
sum_result_name = _joint_log_likelihood_bernoulli(
scope, container, input_name, feature_log_prob_name,
class_log_prior_name, nb_op.binarize, nb_op.feature_count_,
proto_type, sum_op_version, sum_result_name)
elif operator.type == 'SklearnGaussianNB':
sum_result_name = _joint_log_likelihood_gaussian(
scope, container, input_name, nb_op,
proto_type, sum_result_name)
else:
# MultinomialNB or ComplementNB
matmul_result_name = (
scope.get_unique_variable_name('matmul_result')
if operator.type == 'SklearnMultinomialNB' or len(classes) == 1
else sum_result_name)
container.add_node(
'MatMul', [input_name, feature_log_prob_name],
matmul_result_name, name=scope.get_unique_operator_name('MatMul'))
if operator.type == 'SklearnMultinomialNB' or len(classes) == 1:
apply_add(scope, [matmul_result_name, class_log_prior_name],
sum_result_name, container, broadcast=1)
container.add_node('ArgMax', sum_result_name,
argmax_output_name,
name=scope.get_unique_operator_name('ArgMax'), axis=1)
# Calculation of class probability
log_prob_shape = [-1, 1]
reshaped_log_prob_name = scope.get_unique_variable_name(
'reshaped_log_prob')
container.add_node('ReduceLogSumExp', sum_result_name,
reduce_log_sum_exp_result_name,
name=scope.get_unique_operator_name('ReduceLogSumExp'),
axes=[1], keepdims=0)
apply_reshape(scope, reduce_log_sum_exp_result_name,
reshaped_log_prob_name, container,
desired_shape=log_prob_shape)
apply_sub(scope, [sum_result_name, reshaped_log_prob_name], log_prob_name,
container, broadcast=1)
apply_exp(scope, log_prob_name, operator.outputs[1].full_name, container)
container.add_node(
'ArrayFeatureExtractor', [classes_name, argmax_output_name],
array_feature_extractor_result_name, op_domain='ai.onnx.ml',
name=scope.get_unique_operator_name('ArrayFeatureExtractor'))
# Reshape op does not seem to handle INT64 tensor even though it is
# listed as one of the supported types in the doc, so Cast was
# required here.
if class_type == onnx_proto.TensorProto.INT32:
apply_cast(scope, array_feature_extractor_result_name,
cast2_result_name, container,
to=proto_type)
apply_reshape(scope, cast2_result_name, reshaped_result_name,
container, desired_shape=output_shape)
apply_cast(scope, reshaped_result_name, operator.outputs[0].full_name,
container, to=onnx_proto.TensorProto.INT64)
else: # string labels
apply_reshape(scope, array_feature_extractor_result_name,
operator.outputs[0].full_name, container,
desired_shape=output_shape)
register_converter('SklearnBernoulliNB', convert_sklearn_naive_bayes)
register_converter('SklearnComplementNB', convert_sklearn_naive_bayes)
register_converter('SklearnGaussianNB', convert_sklearn_naive_bayes)
register_converter('SklearnMultinomialNB', convert_sklearn_naive_bayes)
|
const mongoose = require('mongoose')
const schema = new mongoose.Schema({
// 广告位名字
name:{type:String},
// 轮播图的图片+url
items:[{
image:{type:String},
url:{type:String}
}],
// 快递运费
delivery:{type:String},
// 活动
activities:[{
item:{type:String}
}],
// 微信好友二维码
friendImg: {type:String},
// 收款二维码
cashImg: {type:String}
})
module.exports = mongoose.model('Ad',schema) |
var UIHelpers = function () {
return {
BeginServiceCall: function() {
UIHelpers.DisplayAjax();
},
EndServiceCall: function () {
UIHelpers.HideAjax();
},
PostAjax: function (action, data, callback) {
var jqxhr = $.post(action, data, function (returnedViewModel) {
callback(returnedViewModel.ViewModel);
})
.done(function () { })
.fail(function () { alert("error"); })
.always(function () { })
},
PostAjaxPartialView: function (action, data, callback) {
var jqxhr = $.post(action, data, function (returnedView) {
callback(returnedView);
})
.done(function () { })
.fail(function () { alert("error"); })
.always(function () { })
},
RenderValidationErrors: function (validationErrors) {
for (var val in validationErrors) {
var obj = document.getElementById(val);
if (obj != null) {
document.getElementById(val).setAttribute("class", "validation-error");
}
}
},
ClearValidationErrors: function () {
$(':input').removeClass('validation-error');
},
FormatCurrency: function (num) {
num = isNaN(num) || num === '' || num === null ? 0.00 : num;
return parseFloat(num).toFixed(2);
},
FormatDate: function (jsonDate) {
if (jsonDate == null) return "";
if (jsonDate.length == 0) return "";
var date = new Date(parseInt(jsonDate.substr(6)));
var monthOfYear = parseInt(date.getMonth() + 1);
var dayOfMonth = parseInt(date.getDate());
if (monthOfYear < 10)
monthOfYear = "0" + monthOfYear;
if (dayOfMonth < 10)
dayOfMonth = "0" + dayOfMonth;
var output = monthOfYear + "/" + dayOfMonth + "/" + date.getFullYear();
return output;
},
FormatJsonDate: function (jsonDate) {
if (jsonDate == null) return "";
if (jsonDate.length == 0) return "";
var year = jsonDate.substr(0, 4);
var month = jsonDate.substr(5, 2);
var day = jsonDate.substr(8, 2);
var tempDate = month + "/" + day + "/" + year;
var date = new Date(tempDate);
var monthOfYear = parseInt(date.getMonth() + 1);
var dayOfMonth = parseInt(date.getDate());
if (monthOfYear < 10)
monthOfYear = "0" + monthOfYear;
if (dayOfMonth < 10)
dayOfMonth = "0" + dayOfMonth;
var output = monthOfYear + "/" + dayOfMonth + "/" + date.getFullYear();
return output;
},
FormatDateTime: function (jsonDate) {
if (jsonDate == null) return "";
if (jsonDate.length == 0) return "";
var d = new Date(parseInt(jsonDate.substr(6)));
var year = d.getFullYear();
var month = MVC5WebApplication.Pad(d.getMonth() + 1);
var day = MVC5WebApplication.Pad(d.getDate());
var hour = MVC5WebApplication.Pad(d.getHours());
var minutes = MVC5WebApplication.Pad(d.getMinutes());
var dd = "AM";
var h = hour;
if (h >= 12) {
h = hour - 12;
dd = "PM";
}
if (h == 0) {
h = 12;
}
var output = month + "/" + day + "/" + year + " " + h + ":" + minutes + " " + dd;
return output;
},
Pad: function (num) {
num = "0" + num;
return num.slice(-2);
},
FormatDateMMDDYYYY: function (date) {
var date = new Date(date);
var monthOfYear = parseInt(date.getMonth() + 1);
var dayOfMonth = parseInt(date.getDate());
if (monthOfYear < 10)
monthOfYear = "0" + monthOfYear;
if (dayOfMonth < 10)
dayOfMonth = "0" + dayOfMonth;
var output = monthOfYear + "/" + dayOfMonth + "/" + date.getFullYear();
return output;
},
DisplayTransactionStatus: function (statusNumber) {
if (statusNumber == "1")
return "Draft";
if (statusNumber == "2")
return "Approved";
if (statusNumber == "3")
return "Paid";
},
DisplayAjax: function () {
$("#AjaxIndicator").dialog({
resizable: false,
position: 'center',
height: 120,
width: 300,
modal: true,
dialogClass: 'ajax-modal'
});
},
HideAjax: function () {
$("#AjaxIndicator").dialog('close');
},
RenderErrorMessage: function (errorMessage) {
var returnMessage = "";
for (var i = 0; i < errorMessage.length; i++) {
returnMessage = returnMessage + errorMessage[i] + "<br/>";
}
var title = "Error Information";
var html = "<div class='alert alert-block alert-error'>";
html = html + "<button type='button' class='close' data-dismiss='alert'>×</button>";
html = html + "<h4>" + title + "</h4>";
html = html + returnMessage;
html = html + "</div>";
return html;
},
IsGuidEmpty: function (guid) {
var emptyGuid = "00000000-0000-0000-0000-000000000000";
if (guid == emptyGuid)
return true;
else
return false;
},
SetEmptyGuid: function () {
var emptyGuid = "00000000-0000-0000-0000-000000000000";
return emptyGuid;
},
RenderInformationalMessage: function (informationalMessage) {
toastr.info(informationalMessage);
var title = "Informational Message";
var html = "<div class='alert alert-block alert-info'>";
html = html + "<button type='button' class='close' data-dismiss='alert'>×</button>";
html = html + "<h4>" + title + "</h4>";
html = html + informationalMessage;
html = html + "</div>";
return html;
},
DisplayAjax: function () {
$.blockUI.defaults.css.border = '2px solid black';
$.blockUI.defaults.overlayCSS.backgroundColor = 'white';
$.blockUI.defaults.overlayCSS.opacity = .3;
$.blockUI({ message: '<h3><img src="/img/ajax-loader-1.gif" /> Executing request...</h3>' });
},
HideAjax: function () {
$.unblockUI();
}
};
}(); |
var callbackArguments = [];
var argument1 = function callback(){callbackArguments.push(arguments)};
var argument2 = null;
var argument3 = "";
var argument4 = function callback(){callbackArguments.push(arguments)};
var argument5 = function callback(){callbackArguments.push(arguments)};
var argument6 = true;
var argument7 = null;
var argument8 = function callback(){callbackArguments.push(arguments)};
var argument9 = [157,25,-100,59,213,607,82,618,82,82];
var argument10 = ["h","zp#=","S","03","_u_M52<]g","y3","hQ=o","?j","3aGh","Tq"];
var base_0 = [122,"#",-100,"=m",595,"3","F",157,"k5"]
var r_0= undefined
try {
r_0 = base_0.filter(argument1,argument2,argument3)
}
catch(e) {
r_0= "Error"
}
var base_1 = [122,"#",-100,"=m",595,"3","F",157,"k5"]
var r_1= undefined
try {
r_1 = base_1.filter(argument4)
}
catch(e) {
r_1= "Error"
}
var base_2 = [122,"#",-100,"=m",595,"3","F",157,"k5"]
var r_2= undefined
try {
r_2 = base_2.filter(argument5,argument6,argument7)
}
catch(e) {
r_2= "Error"
}
var base_3 = r_2
var r_3= undefined
try {
r_3 = base_3.filter(argument8,argument9,argument10)
}
catch(e) {
r_3= "Error"
}
function serialize(array){
return array.map(function(a){
if (a === null || a == undefined) return a;
var name = a.constructor.name;
if (name==='Object' || name=='Boolean'|| name=='Array'||name=='Number'||name=='String')
return JSON.stringify(a);
return name;
});
}
setTimeout(function(){
require("fs").writeFileSync("./experiments/filter/filterEmpty/test738.json",JSON.stringify({"baseObjects":serialize([base_0,base_1,base_2,base_3]),"returnObjects":serialize([r_0,r_1,r_2,r_3]),"callbackArgs":callbackArguments}))
},300) |
var pad = require('./pad');
module.exports = function lrpad(str, length, padStr) {
return pad(str, length, padStr, 'both');
};
|
export default {
akash: 1
}; |
var invokePath = require('../internal/invokePath'),
restParam = require('../function/restParam');
/**
* Creates a function that invokes the method at `path` on a given object.
* Any additional arguments are provided to the invoked method.
*
* @static
* @memberOf _
* @category Utility
* @param {Array|string} path The path of the method to invoke.
* @param {...*} [args] The arguments to invoke the method with.
* @returns {Function} Returns the new function.
* @example
*
* var objects = [
* { 'a': { 'b': { 'c': _.constant(2) } } },
* { 'a': { 'b': { 'c': _.constant(1) } } }
* ];
*
* _.map(objects, _.method('a.b.c'));
* // => [2, 1]
*
* _.invoke(_.sortBy(objects, _.method(['a', 'b', 'c'])), 'a.b.c');
* // => [1, 2]
*/
var method = restParam(function(path, args) {
return function(object) {
return invokePath(object, path, args);
};
});
module.exports = method;
|
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('cv', views.cv, name='cv'),
path('success', views.successView, name='success'),
#path('cv', views.cv.as_view(), name='cv'),
] |
// 1. Book Class: Represents a Book
class Book {
constructor(Subject, Message, Name, Phone, Email) {
this.Subject = Subject;
this.Message = Message;
this.Name = Name;
this.Phone = Phone;
this.Email = Email;
}
}
// 2. UI Class: Handle UI Tasks
class UI {
static displayBooks() {
const books = Store.getBooks();
books.forEach((book) => UI.addBookToList(book));
}
// 4. add book
static addBookToList(book) {
const list = document.querySelector('#book-list');
const row = document.createElement('tr');
row.innerHTML = `
<td>${book.Subject}</td>
<td>${book.Message}</td>
<td>${book.Name}</td>
<td>${book.Phone}</td>
<td>${book.Email}</td>
<td><a href="#" class="btn btn-danger btn-sm delete"> X </a></td>
`;
list.appendChild(row);
}
// 11. delete book
static deleteBook(el) {
// if element contains .delete class
if(el.classList.contains('delete')) {
// remove <a> -> <td> -> <tr>
el.parentElement.parentElement.remove();
}
}
// 13. show alert
// <div class="alert alert-success/alert-danger>Message</div>
static showAlert(message, className) {
const div = document.createElement('div');
div.className = `alert alert-${className}`;
div.appendChild(document.createTextNode(message));
const container = document.querySelector('.container');
const form = document.querySelector('#book-form');
container.insertBefore(div, form);
// Vanish in 3 seconds
setTimeout(() => document.querySelector('.alert').remove(), 3000);
}
// 9. clear fields
static clearFields() {
document.querySelector('#Subject').value = '';
document.querySelector('#Message').value = '';
document.querySelector('#Name').value = '';
document.querySelector('#Phone').value = '';
document.querySelector('#Email').value = '';
}
}
// Store Class: Handles Storage
class Store {
static getBooks() {
let books;
if(localStorage.getItem('books') === null) {
books = [];
} else {
books = JSON.parse(localStorage.getItem('books'));
}
return books;
}
static addBook(book) {
const books = Store.getBooks();
books.push(book);
localStorage.setItem('books', JSON.stringify(books));
}
static removeBook(Email) {
const books = Store.getBooks();
books.forEach((book, index) => {
if(book.Email === Email) {
books.splice(index, 1);
}
});
localStorage.setItem('books', JSON.stringify(books));
}
}
// 4. Event: Display Books
document.addEventListener('DOMContentLoaded', UI.displayBooks);
// 5. Event: Add a Book
document.querySelector('#book-form').addEventListener('submit', (e) => {
// 7. Prevent actual submit action
e.preventDefault();
// Get form values
const Subject = document.querySelector('#Subject').value;
const Message = document.querySelector('#Message').value;
const Name = document.querySelector('#Name').value;
const Phone = document.querySelector('#Phone').value;
const Email = document.querySelector('#Email').value;
// 12. Validate
if(Subject === '' || Message === '' || Name === '' || Phone === '' || Email === '') {
UI.showAlert('Please fill in all fields', 'danger');
} else {
// 6. Instatiate book
const book = new Book(Subject, Message, Name, Phone, Email);
// console.log(book);
// 8. Add Book to UI
UI.addBookToList(book);
// Add book to store
Store.addBook(book);
// 13. Show success message
UI.showAlert('Book Added', 'success');
// 9. Clear fields
UI.clearFields();
}
});
// 10. Event: Remove a Book - event propagation by selecting the parent
document.querySelector('#book-list').addEventListener('click', (e) => {
// console.log(e.target);
// 11. Remove book from UI
UI.deleteBook(e.target);
// Remove book from store
Store.removeBook(e.target.parentElement.previousElementSibling.textContent);
// 13. Show success message
UI.showAlert('Book Removed', 'success');
}); |
import React from 'react';
import { render, screen } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect'
import Home from '../../pages/Home.js';
import { BrowserRouter as Router } from 'react-router-dom';
describe('Homepage', () => {
it('Should render title and sub title', () => {
render(<Router> <Home /> </Router>);
expect(screen.getByText('CatWiki')).toBeInTheDocument();
expect(screen.getByTestId('text-decsription')).toBeInTheDocument();
});
it('Should render see more link', () => {
render(<Router> <Home /> </Router>);
expect(screen.getByTestId('see-more')).toBeInTheDocument();
});
}); |
import torch
from . import IqaModel
from .bunches.crop import MultiCropIm2MOS
"""
patch based models
# %% Test forward patch
%matplotlib inline
from fastiqa.basics import *
class TestMultiCropModel(MultiCropModel):
n_crops=4
crop_sz=200
def forward(self, t):
print(t.size())
p = tensor2patches(t)
show_batch(p[0])
return 1
IqaLearner.from_cls(CLIVE, TestMultiCropModel).pred_batch()
Im2MOS(CLIVE).show_batch(1, DatasetType.Valid)
# %%
IqaLearner.from_cls(FLIVE, TestMultiCropModel).pred_batch()
Im2MOS(FLIVE).show_batch(1, DatasetType.Valid)
# %%
data = MultiCropIm2MOS(CLIVE, n_crops=9, crop_sz=100)
model = TestMultiCropModel()
IqaLearner(data, model).pred_batch()
# %%
"""
def tensor2patches(t):
"for grayscale image, t = [bs, n_crops, 1, H, W]"
"[bs, n_crops*C, H, W] --> [bs, n_crops, C, H, W]"
n_dim = len(t.size())
if n_dim is 5: return t
assert(n_dim is 4 and t.size(1) % 3 == 0)
return t.reshape(t.size(0), -1, 3, t.size(-2), t.size(-1))
class MultiCropModel(IqaModel):
crop_sz = (32, 32)
n_crops = 32
@classmethod
def bunch(cls, label, **kwargs):
return MultiCropIm2MOS(label, n_crops=cls.n_crops, crop_sz=cls.crop_sz, **kwargs)
def forward(self, t):
"""
:param t: [bs, n_crops*C, H, W] or [bs, n_crops, C, H, W]
:return: [n_image, n_labels] or [n_image] when n_labels == 1
"""
if self.n_crops == 1: return self.forward_patch(t)
patches = tensor2patches(t)
bs = patches.size(0)
x = [self.forward_crops(patches[n]) for n in range(bs)]
return torch.stack(x, 0).squeeze()
def forward_crops(self, x):
"return [n_labels] for N crops from 1 image [N, 3, H, W]"
raise NotImplementedError
"""
References:
https://discuss.pytorch.org/t/how-to-extract-smaller-image-patches-3d/16837/9
"""
|
const fileHelper = require('../src/fileHelper.js');
describe('file helper', function() {
beforeEach(function (done) {
fileHelper.recreateFile();
done();
});
it('get the content as a string', function (done) {
fileHelper.getFileContents().should.not.be.null;
done();
})
it('recreates the output file', function (done) {
fileHelper.recreateFile();
fileHelper.getFileContents().length.should.equal(0);
done();
});
it('writes a header row', function (done) {
fileHelper.createHeaderRow();
let content = fileHelper.getFileContents().split('\n');
content.length.should.equal(2);
content[0].split(';').length.should.be.above(2);
done();
});
it('appends new rows with data', function (done) {
// arrange
let row = {
RowNo : 123456,
GTIN : '5900783007874',
Företagsnamn : 'Företagsnamn_Data',
GLN : 'GLN_Data',
GCP : 'GCP_Data'
};
// act
let rowWritten = fileHelper.appendRow(row);
// assert
rowWritten.should.containEql('123456');
rowWritten.should.containEql('5900783007874');
rowWritten.should.containEql('Företagsnamn_Data');
rowWritten.should.containEql('GLN_Data');
rowWritten.should.containEql('GCP_Data');
done();
});
}); |
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
export default class Footer extends Component {
render() {
return (
<div className="footer">This is footer</div>
);
}
}
if (document.getElementById('footer')) {
ReactDOM.render(<Footer />, document.getElementById('footer'));
}
|
"""
Used to manage bountytools clients
"""
from flask import Blueprint, request
# DO Library docs: https://github.com/koalalorenzo/python-digitalocean
clients = Blueprint('clients', __name__)
@clients.route('/list', methods=['GET'])
def clients_list():
"""
List available bountytools clients
:return:
"""
@clients.route('/ping', methods=['POST'])
def clients_ping():
"""
Ping bountytools clients to test connectivity
:return:
"""
@clients.route('/register', methods=['POST'])
def clients_register():
"""
Register a new client to be available
:return:
"""
@clients.route('/destroy/<client_id>', methods=['POST'])
def clients_destroy(client_id):
"""
Destroy a client and remove it from availability
:return:
"""
|
module.exports = function({
process,
fs,
rawBody,
jsYaml,
}) {
return function parseInputYaml(file) {
const stream = file ? fs.createReadStream(file) : process.stdin;
return rawBody(stream, {encoding: 'utf-8'})
.then(jsYaml.safeLoadAll);
};
}
|
'''Paint-by-numbers solver.'''
class Puzzle(object):
'''A paint-by-numbers puzzle.'''
def __init__(self, clues):
self.clues = clues
self.num_rows = len(clues['rows'])
self.num_columns = len(clues['columns'])
self.cells = []
for i in range(self.num_rows):
self.cells.append([])
for j in range(self.num_columns):
self.cells[i].append(None)
def __str__(self):
result = str(self.num_rows) + ' rows, ' + str(self.num_columns) + ' columns\n'
for row in self.cells:
result += '\n'
for cell in row:
if (cell == None):
result += ' '
else:
result += cell + ' '
return result
def set_cell(self, row, column, value):
'''Sets the color of the provided cell.'''
self.cells[row][column] = value
def solve(self):
for i, row in enumerate(self.cells):
row_clues = self.clues['rows'][i]
clues = {
'rows': [[2], [1]],
'columns': [[2], [1]],
}
puzzle = Puzzle(clues)
puzzle.set_cell(0, 0, 'b')
puzzle.set_cell(1, 1, 'w')
print puzzle
|
const copyFile = require('./copy-file');
const path = require('path');
const templatesDir = {
'app': path.join(__dirname, '../templates/app'),
'page': path.join(__dirname, '../templates/app/.templates/page'),
'component': path.join(__dirname, '../templates/app/.templates/component'),
'plugin': path.join(__dirname, '../templates/app/.templates/plugin'),
'plugin-module': path.join(__dirname, '../templates/plugin/module'),
};
function render({ params, targetDir, type, fileName, sourceDir = templatesDir[type] } = {}){
return copyFile({ params, fileName, targetDir, sourceDir });
}
module.exports = {
render,
templatesDir,
}; |
;(function($B){
var bltns = $B.InjectBuiltins()
eval(bltns)
var object = _b_.object,
str_hash = _b_.str.__hash__,
$N = _b_.None
// dictionary
function $DictClass($keys,$values){
this.iter = null
this.__class__ = dict
dict.clear(this)
var setitem = dict.__setitem__,
i = $keys.length
while(i--){setitem($keys[i], $values[i])}
}
var dict = {
__class__: _b_.type,
__module__: "builtins",
__mro__: [object],
__name__ : "dict",
$is_class: true,
$native: true
}
var $key_iterator = function(d) {
this.d = d
this.current = 0
this.iter = new $item_generator(d)
}
$key_iterator.prototype.length = function(){return this.iter.items.length}
$key_iterator.prototype.next = function(){return this.iter.next()[0]}
var $value_iterator = function(d) {
this.d = d
this.current = 0
this.iter = new $item_generator(d)
}
$value_iterator.prototype.length = function(){return this.iter.items.length}
$value_iterator.prototype.next = function(){return this.iter.next()[1]}
var $item_generator = function(d) {
this.i = 0
if(d.$jsobj){
this.items = []
for(var attr in d.$jsobj){
if(attr.charAt(0) != "$"){
var val = d.$jsobj[attr]
if(val === undefined){val = _b_.NotImplemented}
else if(val === null){val = $N}
this.items.push([attr, val])
}
}
return
}
var items = []
for(var k in d.$numeric_dict){
items.push([parseFloat(k), d.$numeric_dict[k]])
}
for(var k in d.$string_dict){items.push([k, d.$string_dict[k]])}
for(var k in d.$object_dict){items.push(d.$object_dict[k])}
this.items = items
}
$item_generator.prototype.next = function() {
if(this.i < this.items.length){
return this.items[this.i++]
}
throw _b_.StopIteration.$factory("StopIteration")
}
$item_generator.prototype.as_list = function() {
return this.items
}
var $item_iterator = function(d) {
this.d = d
this.current = 0
this.iter = new $item_generator(d)
}
$item_iterator.prototype.length = function(){return this.iter.items.length}
$item_iterator.prototype.next = function(){
return _b_.tuple.$factory(this.iter.next())
}
var $copy_dict = function(left, right){
var _l = new $item_generator(right).as_list(),
si = dict.__setitem__,
i = _l.length
while(i--){si(left, _l[i][0], _l[i][1])}
}
function toSet(items){
// Build a set from the iteration on items
var res = []
while(true){
try{res.push(items.next())}
catch(err){break}
}
return _b_.set.$factory(res)
}
var $iterator_wrapper = function(items, klass){
var res = {
__class__: klass,
__eq__: function(other){
// compare set of items to other
return $B.rich_comp("__eq__", toSet(items), other)
},
__iter__: function(){items.iter.i = 0; return res},
__len__: function(){return items.length()},
__next__: function(){
return items.next()
},
__repr__:function(){
var s = []
for(var i = 0, len = items.length(); i < len; i++){
s.push(_b_.repr(items.next()))
}
return klass.__name__ + "(["+ s.join(",") + "])"
},
}
res.__str__ = res.toString = res.__repr__
return res
}
dict.__bool__ = function () {
var $ = $B.args("__bool__", 1, {self: null}, ["self"],
arguments, {}, null, null)
return dict.__len__($.self) > 0
}
dict.__contains__ = function(){
var $ = $B.args("__contains__", 2, {self: null, item: null},
["self", "item"], arguments, {}, null, null),
self = $.self,
item = $.item
if(self.$jsobj){return self.$jsobj[item] !== undefined}
switch(typeof item) {
case "string":
return self.$string_dict[item] !== undefined
case "number":
return self.$numeric_dict[item] !== undefined
}
var _key = hash(item)
if(self.$str_hash[_key] !== undefined &&
$B.rich_comp("__eq__", item, self.$str_hash[_key])){return true}
if(self.$numeric_dict[_key] !== undefined &&
$B.rich_comp("__eq__", item, _key)){return true}
if(self.$object_dict[_key] !== undefined){
// If the key is an object, its hash must be in the dict keys but the
// key itself must compare equal to the key associated with the hash
// For instance :
//
// class X:
// def __hash__(self): return hash('u')
//
// a = {'u': 'a', X(): 'b'}
// assert set(a.values()) == {'a', 'b'}
// assert not X() in a
return $B.rich_comp("__eq__", item, self.$object_dict[_key][0])
}
return false
}
dict.__delitem__ = function(){
var $ = $B.args("__eq__", 2, {self: null, arg: null},
["self", "arg"], arguments, {}, null, null),
self = $.self,
arg = $.arg
if(self.$jsobj){
if(self.$jsobj[arg] === undefined){throw KeyError.$factory(arg)}
delete self.$jsobj[arg]
return $N
}
switch(typeof arg){
case "string":
if(self.$string_dict[arg] === undefined){
throw KeyError.$factory(_b_.str.$factory(arg))
}
delete self.$string_dict[arg]
delete self.$str_hash[str_hash(arg)]
return $N
case "number":
if(self.$numeric_dict[arg] === undefined){
throw KeyError.$factory(_b_.str.$factory(arg))
}
delete self.$numeric_dict[arg]
return $N
}
// go with defaults
var _key = hash(arg)
if(self.$object_dict[_key] !== undefined){
delete self.$object_dict[_key]
}
if(self.$jsobj){delete self.$jsobj[arg]}
return $N
}
dict.__eq__ = function(){
var $ = $B.args("__eq__", 2, {self: null, other: null},
["self", "other"], arguments, {}, null, null),
self = $.self,
other = $.other
if(! isinstance(other, dict)){return false}
if(self.$jsobj){self = jsobj2dict(self.$jsobj)}
if(other.$jsobj){other = jsobj2dict(other.$jsobj)}
if(dict.__len__(self) != dict.__len__(other)){return false}
if((self.$numeric_dict.length != other.$numeric_dict.length) ||
(self.$string_dict.length != other.$string_dict.length) ||
(self.$object_dict.length != other.$object_dict.length)){
return false
}
for(var k in self.$numeric_dict){
if(!$B.rich_comp("__eq__", other.$numeric_dict[k],
self.$numeric_dict[k])){
return false
}
}
for(var k in self.$string_dict){
if(!$B.rich_comp("__eq__", other.$string_dict[k],
self.$string_dict[k])){
return false
}
}
for(var k in self.$object_dict){
if(!$B.rich_comp("__eq__", other.$object_dict[k][1],
self.$object_dict[k][1])){
return false
}
}
return true
}
dict.__getitem__ = function(){
var $ = $B.args("__getitem__", 2, {self: null, arg: null},
["self", "arg"], arguments, {}, null, null),
self = $.self,
arg = $.arg
if(self.$jsobj){
if(!self.$jsobj.hasOwnProperty(arg)){
throw _b_.KeyError.$factory(str.$factory(arg))
}else if(self.$jsobj[arg] === undefined){
return _b_.NotImplemented
}else if(self.$jsobj[arg] === null){return $N}
return self.$jsobj[arg]
}
switch(typeof arg){
case "string":
if(self.$string_dict[arg] !== undefined){
return self.$string_dict[arg]
}
break
case "number":
if(self.$numeric_dict[arg] !== undefined){
return self.$numeric_dict[arg]
}
break
}
// since the key is more complex use 'default' method of getting item
var _key = _b_.hash(arg),
_eq = function(other){return $B.rich_comp("__eq__", arg, other)}
var sk = self.$str_hash[_key]
if(sk !== undefined && _eq(sk)){
return self.$string_dict[sk]
}
if(self.$numeric_dict[_key] !== undefined && _eq(_key)){
return self.$numeric_dict[_key]
}
if(isinstance(arg, _b_.str)){
// string subclass
var res = self.$string_dict[arg.valueOf()]
if(res !== undefined){return res}
}
var obj_ref = self.$object_dict[_key]
if(obj_ref !== undefined){
// An object with the same hash is already stored
// Lookup should fail if equality raises an exception
_eq(self.$object_dict[_key][0])
return self.$object_dict[_key][1]
}
if(self.__class__ !== dict){
try{
var missing_method = getattr(self.__class__, "__missing__")
return missing_method(self, arg)
}catch(err){}
}
throw KeyError.$factory(_b_.str.$factory(arg))
}
dict.__hash__ = None
function init_from_list(self, args){
var i = -1,
stop = args.length - 1,
si = dict.__setitem__
while(i++ < stop){
var item = args[i]
switch(typeof item[0]) {
case 'string':
self.$string_dict[item[0]] = item[1]
self.$str_hash[str_hash(item[0])] = item[0]
break
case 'number':
self.$numeric_dict[item[0]] = item[1]
break
default:
si(self, item[0], item[1])
break
}
}
}
dict.__init__ = function(self, first, second){
var $
if(first === undefined){return $N}
if(second === undefined){
if(first.__class__ === $B.JSObject){
self.$jsobj = first.js
return $N
}else if(first.$jsobj){
self.$jsobj = {}
for(var attr in first.$jsobj){
self.$jsobj[attr] = first.$jsobj[attr]
}
return $N
}else if(Array.isArray(first)){
init_from_list(self, first)
return $N
}
}
$ = $ || $B.args("dict", 1, {self:null}, ["self"],
arguments, {}, "first", "second")
var args = $.first
if(args.length > 1){
throw _b_.TypeError.$factory("dict expected at most 1 argument" +
", got 2")
}else if(args.length == 1){
args = args[0]
if(args.__class__ === dict){
['$string_dict', '$str_hash', '$numeric_dict', '$object_dict'].
forEach(function(d){
for(key in args[d]){self[d][key] = args[d][key]}
})
}else if(isinstance(args, dict)){
$copy_dict(self, args)
}else{
var keys = $B.$getattr(args, "keys", null)
if(keys !== null){
var gi = $B.$getattr(args, "__getitem__", null)
if(gi !== null){
// has keys and __getitem__ : it's a mapping, iterate on
// keys and values
gi = $B.$call(gi)
var kiter = _b_.iter($B.$call(keys)())
while(true){
try{
var key = _b_.next(kiter),
value = gi(key)
dict.__setitem__(self, key, value)
}catch(err){
if(err.__class__ === _b_.StopIteration){
break
}
throw err
}
}
return $N
}
}
if(! Array.isArray(args)){
args = _b_.list.$factory(args)
}
// Form "dict([[key1, value1], [key2,value2], ...])"
init_from_list(self, args)
}
}
var kw = $.second.$string_dict
for(var attr in kw){
switch(typeof attr){
case "string":
self.$string_dict[attr] = kw[attr]
self.$str_hash[str_hash(attr)] = attr
break
case "number":
self.$numeric_dict[attr] = kw[attr]
break
default:
si(self, attr, kw[attr])
break
}
}
return $N
}
var $dict_iterator = $B.$iterator_class("dict iterator")
dict.__iter__ = function(self) {
return dict.$$keys(self)
}
dict.__len__ = function(self) {
var _count = 0
if(self.$jsobj){
for(var attr in self.$jsobj){if(attr.charAt(0) != "$"){_count++}}
return _count
}
for(var k in self.$numeric_dict){_count++}
for(var k in self.$string_dict){_count++}
for(var k in self.$object_dict){_count++}
return _count
}
dict.__ne__ = function(self, other){return ! dict.__eq__(self, other)}
dict.__new__ = function(cls){
if(cls === undefined){
throw _b_.TypeError.$factory("int.__new__(): not enough arguments")
}
var instance = {
__class__: cls,
$numeric_dict : {},
$object_dict : {},
$string_dict : {},
$str_hash: {}
}
if(cls !== dict){
instance.__dict__ = _b_.dict.$factory()
}
return instance
}
dict.__next__ = function(self){
if(self.$iter == null){
self.$iter = new $item_generator(self)
}
try{
return self.$iter.next()
}catch (err){
if(err.__name__ !== "StopIteration"){throw err}
}
}
dict.__repr__ = function(self){
if(self.$jsobj){ // wrapper around Javascript object
return dict.__repr__(jsobj2dict(self.$jsobj))
}
var res = [],
items = new $item_generator(self).as_list()
items.forEach(function(item){
if((!self.$jsobj && item[1] === self) ||
(self.$jsobj && item[1] === self.$jsobj)){
res.push(repr(item[0]) + ": {...}")
}else{
try{
res.push(repr(item[0]) + ": " + repr(item[1]))
}catch(err){
res.push(repr(item[0]) + ": <unprintable object>")
}
}
})
return "{" + res.join(", ") + "}"
}
dict.__setitem__ = function(self, key, value){
var $ = $B.args("__setitem__", 3, {self: null, key: null, value: null},
["self", "key", "value"], arguments, {}, null, null)
return dict.$setitem($.self, $.key, $.value)
}
dict.$setitem = function(self, key, value){
if(self.$jsobj){
if(self.$from_js){
// dictionary created by method to_dict of JSObject instances
value = $B.pyobj2jsobj(value)
}
if(self.$jsobj.__class__ === _b_.type){
self.$jsobj[key] = value
if(key == "__init__" || key == "__new__"){
// If class attribute __init__ or __new__ are reset,
// the factory function has to change
self.$jsobj.$factory = $B.$instance_creator(self.$jsobj)
}
}else{
self.$jsobj[key] = value
}
return $N
}
switch(typeof key){
case "string":
self.$string_dict[key] = value
self.$str_hash[str_hash(key)] = key
return $N
case "number":
self.$numeric_dict[key] = value
return $N
}
// if we got here the key is more complex, use default method
var _key = hash(key),
_eq = function(other){return $B.rich_comp("__eq__", key, other)}
if(self.$numeric_dict[_key] !== undefined && _eq(_key)){
self.$numeric_dict[_key] = value
return $N
}
var sk = self.$str_hash[_key]
if(sk !== undefined && _eq(sk)){
self.$string_dict[sk] = value
return $N
}
var obj_ref = self.$object_dict[_key]
if(obj_ref !== undefined){
// An object with the same hash is already stored
// Lookup should fail if equality raises an exception
_eq(self.$object_dict[_key][0])
}
self.$object_dict[_key] = [key, value]
return $N
}
dict.__str__ = function(){return dict.__repr__.apply(null, arguments)}
// add "reflected" methods
$B.make_rmethods(dict)
dict.clear = function(){
// Remove all items from the dictionary.
var $ = $B.args("clear", 1, {self: null}, ["self"], arguments, {},
null, null),
self = $.self
self.$numeric_dict = {}
self.$string_dict = {}
self.$str_hash = {}
self.$object_dict = {}
if(self.$jsobj){
for(var attr in self.$jsobj){
if(attr.charAt(0) !== "$" && attr !== "__class__"){
delete self.$jsobj[attr]
}
}
}
return $N
}
dict.copy = function(self){
// Return a shallow copy of the dictionary
var $ = $B.args("copy", 1, {self: null},["self"], arguments,{},
null, null),
self = $.self,
res = _b_.dict.$factory()
$copy_dict(res, self)
return res
}
dict.fromkeys = function(){
var $ = $B.args("fromkeys", 3, {cls: null, keys: null, value: null},
["cls", "keys", "value"], arguments, {value: _b_.None}, null, null),
keys = $.keys,
value = $.value
// class method
var klass = $.cls,
res = $B.$call(klass)(),
keys_iter = $B.$iter(keys)
while(1){
try{
var key = _b_.next(keys_iter)
if(klass === dict){dict.__setitem__(res, key, value)}
else{_b_.getattr(res, "__setitem__")(key, value)}
}catch(err){
if($B.is_exc(err, [_b_.StopIteration])){
return res
}
throw err
}
}
}
dict.get = function(){
var $ = $B.args("get", 3, {self: null, key: null, _default: null},
["self", "key", "_default"], arguments, {_default: $N}, null, null)
try{return dict.__getitem__($.self, $.key)}
catch(err){
if(_b_.isinstance(err, _b_.KeyError)){return $._default}
else{throw err}
}
}
var $dict_itemsDict = $B.$iterator_class("dict_items")
dict.items = function(self){
if(arguments.length > 1){
var _len = arguments.length - 1,
_msg = "items() takes no arguments (" + _len + " given)"
throw _b_.TypeError.$factory(_msg)
}
return $iterator_wrapper(new $item_iterator(self), $dict_itemsDict)
}
var $dict_keysDict = $B.$iterator_class("dict_keys")
dict.$$keys = function(self){
if(arguments.length > 1){
var _len = arguments.length - 1,
_msg = "keys() takes no arguments (" + _len + " given)"
throw _b_.TypeError.$factory(_msg)
}
return $iterator_wrapper(new $key_iterator(self), $dict_keysDict)
}
dict.pop = function(){
var $ = $B.args("pop", 3, {self: null, key: null, _default: null},
["self", "key", "_default"], arguments, {_default: $N}, null, null),
self = $.self,
key = $.key,
_default = $._default
try{
var res = dict.__getitem__(self, key)
dict.__delitem__(self, key)
return res
}catch(err){
if(err.__class__ === _b_.KeyError){
if(_default !== undefined){return _default}
throw err
}
throw err
}
}
dict.popitem = function(self){
try{
var itm = new $item_iterator(self).next()
dict.__delitem__(self, itm[0])
return _b_.tuple.$factory(itm)
}catch(err) {
if (err.__class__ == _b_.StopIteration) {
throw KeyError.$factory("'popitem(): dictionary is empty'")
}
}
}
dict.setdefault = function(){
var $ = $B.args("setdefault", 3, {self: null, key: null, _default: null},
["self", "key", "_default"], arguments, {_default: $N}, null, null),
self = $.self,
key = $.key,
_default = $._default
try{return dict.__getitem__(self, key)}
catch(err){
if(_default === undefined){_default = $N}
dict.__setitem__(self, key, _default)
return _default
}
}
dict.update = function(self){
var $ = $B.args("update", 1, {"self": null}, ["self"], arguments,
{}, "args", "kw"),
self = $.self,
args = $.args,
kw = $.kw
if(args.length > 0){
var o = args[0]
if(isinstance(o, dict)){
if(o.$jsobj){o = jsobj2dict(o)}
$copy_dict(self, o)
}else if(hasattr(o, "__getitem__") && hasattr(o, "keys")){
var _keys = _b_.list.$factory(getattr(o, "keys")()),
si = dict.__setitem__,
i = _keys.length
while(i--){
var _value = getattr(o, "__getitem__")(_keys[i])
si(self, _keys[i], _value)
}
}
}
$copy_dict(self, kw)
return $N
}
var $dict_valuesDict = $B.$iterator_class("dict_values")
dict.values = function(self){
if(arguments.length > 1){
var _len = arguments.length - 1,
_msg = "values() takes no arguments (" + _len + " given)"
throw _b_.TypeError.$factory(_msg)
}
return $iterator_wrapper(new $value_iterator(self), $dict_valuesDict)
}
dict.$factory = function(){
var res = dict.__new__(dict)
var args = [res]
for(var i = 0, len = arguments.length; i < len ; i++){
args.push(arguments[i])
}
dict.__init__.apply(null, args)
return res
}
_b_.dict = dict
$B.set_func_names(dict, "builtins")
// This must be done after set_func_names, otherwise dict.fromkeys doesn't
// have the attribute $infos
dict.fromkeys = _b_.classmethod.$factory(dict.fromkeys)
// following are used for faster access elsewhere
$B.$dict_iterator = function(d){return new $item_generator(d)}
$B.$dict_length = dict.__len__
$B.$dict_getitem = dict.__getitem__
$B.$dict_get = dict.get
$B.$dict_set = dict.__setitem__
$B.$dict_contains = dict.__contains__
$B.$dict_items = function(d) { return new $item_generator(d).as_list() }
$B.$copy_dict = $copy_dict // copy from right to left
$B.$dict_get_copy = dict.copy // return a shallow copy
// Class for attribute __dict__ of classes
var mappingproxy = $B.mappingproxy = $B.make_class("mappingproxy",
function(obj){
if(_b_.isinstance(obj, dict)){
// Should be a dictionary
var res = $B.obj_dict(obj.$string_dict)
}else{
var res = $B.obj_dict(obj)
}
res.__class__ = mappingproxy
return res
}
)
mappingproxy.__setitem__ = function(){
throw _b_.TypeError.$factory("'mappingproxy' object does not support " +
"item assignment")
}
for(var attr in dict){
if(mappingproxy[attr] !== undefined ||
["__class__", "__mro__", "__new__", "__init__", "__delitem__",
"clear", "fromkeys", "pop", "popitem", "setdefault",
"update"].indexOf(attr) > -1){
continue
}
if(typeof dict[attr] == "function"){
mappingproxy[attr] = (function(key){
return function(){
return dict[key].apply(null, arguments)
}
})(attr)
}else{
mappingproxy[attr] = dict[attr]
}
}
$B.set_func_names(mappingproxy, "builtins")
function jsobj2dict(x){
var d = dict.$factory()
for(var attr in x){
if(attr.charAt(0) != "$" && attr !== "__class__"){
if(x[attr] === undefined){
continue
}else if(x[attr].$jsobj === x){
d.$string_dict[attr] = d
}else{
d.$string_dict[attr] = x[attr]
}
}
}
return d
}
$B.obj_dict = function(obj, from_js){
var klass = obj.__class__ || $B.get_class(obj)
if(klass !== undefined && klass.$native){
throw _b_.AttributeError.$factory(klass.__name__ +
" has no attribute '__dict__'")}
var res = dict.$factory()
res.$jsobj = obj
res.$from_js = from_js // set to true if created by JSObject.to_dict()
return res
}
})(__BRYTHON__)
|
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import math
from typing import Any, Optional
import torch
import torch.onnx.operators
from fairseq import utils
from torch import Tensor, nn
class SinusoidalPositionalEmbedding(nn.Module):
"""This module produces sinusoidal positional embeddings of any length.
Padding symbols are ignored.
"""
def __init__(self, embedding_dim, padding_idx, init_size=1024):
super().__init__()
self.embedding_dim = embedding_dim
self.padding_idx = padding_idx
self.weights = SinusoidalPositionalEmbedding.get_embedding(
init_size, embedding_dim, padding_idx
)
self.onnx_trace = False
self.register_buffer("_float_tensor", torch.FloatTensor(1))
self.max_positions = int(1e5)
def prepare_for_onnx_export_(self):
self.onnx_trace = True
@staticmethod
def get_embedding(
num_embeddings: int, embedding_dim: int, padding_idx: Optional[int] = None
):
"""Build sinusoidal embeddings.
This matches the implementation in tensor2tensor, but differs slightly
from the description in Section 3.5 of "Attention Is All You Need".
"""
half_dim = embedding_dim // 2
emb = math.log(10000) / (half_dim - 1)
emb = torch.exp(torch.arange(half_dim, dtype=torch.float) * -emb)
emb = torch.arange(num_embeddings, dtype=torch.float).unsqueeze(
1
) * emb.unsqueeze(0)
emb = torch.cat([torch.sin(emb), torch.cos(emb)], dim=1).view(
num_embeddings, -1
)
if embedding_dim % 2 == 1:
# zero pad
emb = torch.cat([emb, torch.zeros(num_embeddings, 1)], dim=1)
if padding_idx is not None:
emb[padding_idx, :] = 0
return emb
def forward(
self,
input,
incremental_state: Optional[Any] = None,
timestep: Optional[Tensor] = None,
positions: Optional[Any] = None,
):
"""Input is expected to be of size [bsz x seqlen]."""
input_dim = input.shape[1] # This is very hacky. Usually when the input subsequence
input_mul =int( 7000//input_dim) + 1 # is of size n, we get n positional embeddings. But in order
input_for_cat = tuple([input]*input_mul) # to handle both attending to the current input subsequence and to the previous (cached) one,
input = torch.cat(input_for_cat, dim = 1) # we need more positional embeddings, and so this is how we do that.
bspair = torch.onnx.operators.shape_as_tensor(input)
bsz, seq_len = bspair[0], bspair[1]
max_pos = self.padding_idx + 1 + seq_len
if self.weights is None or max_pos > self.weights.size(0):
# recompute/expand embeddings if needed
self.weights = SinusoidalPositionalEmbedding.get_embedding(
max_pos, self.embedding_dim, self.padding_idx
)
self.weights = self.weights.to(self._float_tensor)
if incremental_state is not None:
# positions is the same for every token when decoding a single step
pos = timestep.view(-1)[0] + 1 if timestep is not None else seq_len
if self.onnx_trace:
return (
self.weights.index_select(index=self.padding_idx + pos, dim=0)
.unsqueeze(1)
.repeat(bsz, 1, 1)
)
return self.weights[self.padding_idx + pos, :].expand(bsz, 1, -1)
positions = utils.make_positions(
input, self.padding_idx, onnx_trace=self.onnx_trace
)
if self.onnx_trace:
flat_embeddings = self.weights.detach().index_select(0, positions.view(-1))
embedding_shape = torch.cat(
(bsz.view(1), seq_len.view(1), torch.tensor([-1], dtype=torch.long))
)
embeddings = torch.onnx.operators.reshape_from_tensor_shape(
flat_embeddings, embedding_shape
)
return embeddings
return (
self.weights.index_select(0, positions.view(-1))
.view(bsz, seq_len, -1)
.detach()
)
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[69],{208:function(e,t,r){"use strict";r.r(t),r.d(t,"frontMatter",(function(){return a})),r.d(t,"metadata",(function(){return c})),r.d(t,"rightToc",(function(){return u})),r.d(t,"default",(function(){return p}));var n=r(2),o=r(9),i=(r(0),r(393)),a={},c={id:"version-v0.4/further-reading/contrib",isDocsHomePage:!1,title:"contrib",description:"This file is meant to collect community contributions (such as articles and how",source:"@site/versioned_docs/version-v0.4/further-reading/contrib.md",permalink:"/kratos/docs/further-reading/contrib",editUrl:"https://github.com/ory/kratos/edit/master/docs/versioned_docs/version-v0.4/further-reading/contrib.md",version:"v0.4",lastUpdatedBy:"aeneasr",lastUpdatedAt:1594198226},u=[],s={rightToc:u};function p(e){var t=e.components,r=Object(o.a)(e,["components"]);return Object(i.b)("wrapper",Object(n.a)({},s,r,{components:t,mdxType:"MDXLayout"}),Object(i.b)("p",null,"This file is meant to collect community contributions (such as articles and how\nto's) which will later be merged into appropriate sections."))}p.isMDXComponent=!0},393:function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return m}));var n=r(0),o=r.n(n);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=o.a.createContext({}),p=function(e){var t=o.a.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},l=function(e){var t=p(e.components);return o.a.createElement(s.Provider,{value:t},e.children)},f={inlineCode:"code",wrapper:function(e){var t=e.children;return o.a.createElement(o.a.Fragment,{},t)}},d=o.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,i=e.originalType,a=e.parentName,s=u(e,["components","mdxType","originalType","parentName"]),l=p(r),d=n,m=l["".concat(a,".").concat(d)]||l[d]||f[d]||i;return r?o.a.createElement(m,c(c({ref:t},s),{},{components:r})):o.a.createElement(m,c({ref:t},s))}));function m(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var i=r.length,a=new Array(i);a[0]=d;var c={};for(var u in t)hasOwnProperty.call(t,u)&&(c[u]=t[u]);c.originalType=e,c.mdxType="string"==typeof e?e:n,a[1]=c;for(var s=2;s<i;s++)a[s]=r[s];return o.a.createElement.apply(null,a)}return o.a.createElement.apply(null,r)}d.displayName="MDXCreateElement"}}]); |
(function( window, undefined ) {
kendo.cultures["ps"] = {
name: "ps",
numberFormat: {
pattern: ["n-"],
decimals: 2,
",": ",",
".": ".",
groupSize: [3],
percent: {
pattern: ["%n-","%n"],
decimals: 2,
",": ",",
".": ".",
groupSize: [3],
symbol: "%"
},
currency: {
name: "",
abbr: "",
pattern: ["$n-","$n"],
decimals: 2,
",": ",",
".": ".",
groupSize: [3],
symbol: "؋"
}
},
calendars: {
standard: {
days: {
names: ["یکشنبه","دوشنبه","سهشنبه","چارشنبه","پنجشنبه","جمعه","شنبه"],
namesAbbr: ["یکشنبه","دوشنبه","سهشنبه","چارشنبه","پنجشنبه","جمعه","شنبه"],
namesShort: ["ی","د","س","چ","پ","ج","ش"]
},
months: {
names: ["محرم","صفر","ربيع الأوّل","ربيع الثاني","جمادى الأول","جمادى الثانى","رجب","شعبان","رمضان","شوّال","ذو القعدة","ذو الحجّة"],
namesAbbr: ["محرم","صفر","ربيع الأوّل","ربيع الثاني","جمادى الأول","جمادى الثانى","رجب","شعبان","رمضان","شوّال","ذو القعدة","ذو الحجّة"]
},
AM: ["غ.م","غ.م","غ.م"],
PM: ["غ.و","غ.و","غ.و"],
patterns: {
d: "yyyy/M/d",
D: "yyyy, dd, MMMM, dddd",
F: "yyyy, dd, MMMM, dddd h:mm:ss tt",
g: "yyyy/M/d h:mm tt",
G: "yyyy/M/d h:mm:ss tt",
m: "d MMMM",
M: "d MMMM",
s: "yyyy'-'MM'-'dd'T'HH':'mm':'ss",
t: "h:mm tt",
T: "h:mm:ss tt",
u: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'",
y: "MMMM yyyy",
Y: "MMMM yyyy"
},
"/": "/",
":": ":",
firstDay: 6
}
}
}
})(this);
|
'use strict';
const { spawn } = require('child_process');
const Rx = require('rxjs');
const { fromReadableStream$ } = require('./stream');
const spawn$ = (command, args, options) => {
try {
const spawned = spawn(command, args, options);
const stdout$ = fromReadableStream$(spawned.stdout, 'data');
const stderr$ = fromReadableStream$(spawned.stderr, 'data');
const spawnedError$ = Rx.Observable.fromEvent(spawned, 'error');
return stdout$
.takeUntil(Rx.Observable.combineLatest(stderr$, spawnedError$))
.map(buffer => buffer.toString('utf-8'));
} catch (e) {
return Rx.Observable.throw(e);
}
};
spawn$('ls', ['-la', '/']).map(v => v.split('\n')).subscribe(
v => console.dir(v),
v1 => console.error('v1' + v1),
// => console.dir('c' + c)
);
|
#!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import itertools
import warnings
import torch
from botorch import fit_gpytorch_model
from botorch.acquisition.objective import ScalarizedPosteriorTransform
from botorch.exceptions.warnings import OptimizationWarning
from botorch.models.pairwise_gp import PairwiseGP, PairwiseLaplaceMarginalLogLikelihood
from botorch.models.transforms.input import Normalize
from botorch.posteriors import GPyTorchPosterior
from botorch.sampling.pairwise_samplers import PairwiseSobolQMCNormalSampler
from botorch.utils.testing import BotorchTestCase
from gpytorch.kernels import RBFKernel, ScaleKernel
from gpytorch.kernels.linear_kernel import LinearKernel
from gpytorch.means import ConstantMean
from gpytorch.priors import GammaPrior, SmoothedBoxPrior
class TestPairwiseGP(BotorchTestCase):
def _make_rand_mini_data(self, batch_shape, X_dim=2, **tkwargs):
train_X = torch.rand(*batch_shape, 2, X_dim, **tkwargs)
train_Y = train_X.sum(dim=-1, keepdim=True)
train_comp = torch.topk(train_Y, k=2, dim=-2).indices.transpose(-1, -2)
return train_X, train_Y, train_comp
def _get_model_and_data(self, batch_shape, X_dim=2, **tkwargs):
train_X, train_Y, train_comp = self._make_rand_mini_data(
batch_shape=batch_shape, X_dim=X_dim, **tkwargs
)
model_kwargs = {"datapoints": train_X, "comparisons": train_comp}
model = PairwiseGP(**model_kwargs)
return model, model_kwargs
def test_pairwise_gp(self):
for batch_shape, dtype in itertools.product(
(torch.Size(), torch.Size([2])), (torch.float, torch.double)
):
tkwargs = {"device": self.device, "dtype": dtype}
X_dim = 2
model, model_kwargs = self._get_model_and_data(
batch_shape=batch_shape, X_dim=X_dim, **tkwargs
)
train_X = model_kwargs["datapoints"]
train_comp = model_kwargs["comparisons"]
# test training
# regular training
mll = PairwiseLaplaceMarginalLogLikelihood(model).to(**tkwargs)
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=OptimizationWarning)
fit_gpytorch_model(mll, options={"maxiter": 2}, max_retries=1)
# prior training
prior_m = PairwiseGP(None, None).to(**tkwargs)
with self.assertRaises(RuntimeError):
prior_m(train_X)
# forward in training mode with non-training data
custom_m = PairwiseGP(**model_kwargs)
other_X = torch.rand(batch_shape + torch.Size([3, X_dim]), **tkwargs)
other_comp = train_comp.clone()
with self.assertRaises(RuntimeError):
custom_m(other_X)
custom_mll = PairwiseLaplaceMarginalLogLikelihood(custom_m).to(**tkwargs)
post = custom_m(train_X)
with self.assertRaises(RuntimeError):
custom_mll(post, other_comp)
# setting jitter = 0 with a singular covar will raise error
sing_train_X = torch.ones(batch_shape + torch.Size([10, X_dim]), **tkwargs)
with self.assertRaises(RuntimeError):
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=RuntimeWarning)
custom_m = PairwiseGP(sing_train_X, train_comp, jitter=0)
custom_m.posterior(sing_train_X)
# test init
self.assertIsInstance(model.mean_module, ConstantMean)
self.assertIsInstance(model.covar_module, ScaleKernel)
self.assertIsInstance(model.covar_module.base_kernel, RBFKernel)
self.assertIsInstance(
model.covar_module.base_kernel.lengthscale_prior, GammaPrior
)
self.assertIsInstance(
model.covar_module.outputscale_prior, SmoothedBoxPrior
)
self.assertEqual(model.num_outputs, 1)
self.assertEqual(model.batch_shape, batch_shape)
# test custom models
custom_m = PairwiseGP(**model_kwargs, covar_module=LinearKernel())
self.assertIsInstance(custom_m.covar_module, LinearKernel)
# prior prediction
prior_m = PairwiseGP(None, None).to(**tkwargs)
prior_m.eval()
post = prior_m.posterior(train_X)
self.assertIsInstance(post, GPyTorchPosterior)
# test trying adding jitter
pd_mat = torch.eye(2, 2)
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=RuntimeWarning)
jittered_pd_mat = model._add_jitter(pd_mat)
diag_diff = (jittered_pd_mat - pd_mat).diagonal(dim1=-2, dim2=-1)
self.assertTrue(
torch.allclose(
diag_diff,
torch.full_like(diag_diff, model._jitter),
atol=model._jitter / 10,
)
)
# test initial utility val
util_comp = torch.topk(model.utility, k=2, dim=-1).indices.unsqueeze(-2)
self.assertTrue(torch.all(util_comp == train_comp))
# test posterior
# test non batch evaluation
X = torch.rand(batch_shape + torch.Size([3, X_dim]), **tkwargs)
expected_shape = batch_shape + torch.Size([3, 1])
posterior = model.posterior(X)
self.assertIsInstance(posterior, GPyTorchPosterior)
self.assertEqual(posterior.mean.shape, expected_shape)
self.assertEqual(posterior.variance.shape, expected_shape)
# test posterior transform
post_tf = ScalarizedPosteriorTransform(weights=torch.ones(1))
posterior_tf = model.posterior(X, posterior_transform=post_tf)
self.assertTrue(torch.equal(posterior.mean, posterior_tf.mean))
# expect to raise error when output_indices is not None
with self.assertRaises(RuntimeError):
model.posterior(X, output_indices=[0])
# test re-evaluating utility when it's None
model.utility = None
posterior = model.posterior(X)
self.assertIsInstance(posterior, GPyTorchPosterior)
# test batch evaluation
X = torch.rand(2, *batch_shape, 3, X_dim, **tkwargs)
expected_shape = torch.Size([2]) + batch_shape + torch.Size([3, 1])
posterior = model.posterior(X)
self.assertIsInstance(posterior, GPyTorchPosterior)
self.assertEqual(posterior.mean.shape, expected_shape)
# test input_transform
# the untransfomed one should be stored
normalize_tf = Normalize(d=2, bounds=torch.tensor([[0, 0], [0.5, 1.5]]))
model = PairwiseGP(**model_kwargs, input_transform=normalize_tf)
self.assertTrue(torch.all(model.datapoints == train_X))
# test set_train_data strict mode
model = PairwiseGP(**model_kwargs)
changed_train_X = train_X.unsqueeze(0)
changed_train_comp = train_comp.unsqueeze(0)
# expect to raise error when set data to something different
with self.assertRaises(RuntimeError):
model.set_train_data(changed_train_X, changed_train_comp, strict=True)
# the same datapoints but changed comparison will also raise error
with self.assertRaises(RuntimeError):
model.set_train_data(train_X, changed_train_comp, strict=True)
def test_condition_on_observations(self):
for batch_shape, dtype in itertools.product(
(torch.Size(), torch.Size([2])), (torch.float, torch.double)
):
tkwargs = {"device": self.device, "dtype": dtype}
X_dim = 2
model, model_kwargs = self._get_model_and_data(
batch_shape=batch_shape, X_dim=X_dim, **tkwargs
)
train_X = model_kwargs["datapoints"]
train_comp = model_kwargs["comparisons"]
# evaluate model
model.posterior(torch.rand(torch.Size([4, X_dim]), **tkwargs))
# test condition_on_observations
# test condition_on_observations with prior mode
prior_m = PairwiseGP(None, None).to(**tkwargs)
cond_m = prior_m.condition_on_observations(train_X, train_comp)
self.assertTrue(cond_m.datapoints is train_X)
self.assertTrue(cond_m.comparisons is train_comp)
# fantasize at different input points
fant_shape = torch.Size([2])
X_fant, Y_fant, comp_fant = self._make_rand_mini_data(
batch_shape=fant_shape + batch_shape, X_dim=X_dim, **tkwargs
)
# cannot condition on non-pairwise Ys
with self.assertRaises(RuntimeError):
model.condition_on_observations(X_fant, comp_fant[..., 0])
cm = model.condition_on_observations(X_fant, comp_fant)
# make sure it's a deep copy
self.assertTrue(model is not cm)
# fantasize at same input points (check proper broadcasting)
cm_same_inputs = model.condition_on_observations(X_fant[0], comp_fant)
test_Xs = [
# test broadcasting single input across fantasy and model batches
torch.rand(4, X_dim, **tkwargs),
# separate input for each model batch and broadcast across
# fantasy batches
torch.rand(batch_shape + torch.Size([4, X_dim]), **tkwargs),
# separate input for each model and fantasy batch
torch.rand(
fant_shape + batch_shape + torch.Size([4, X_dim]), **tkwargs
),
]
for test_X in test_Xs:
posterior = cm.posterior(test_X)
self.assertEqual(
posterior.mean.shape, fant_shape + batch_shape + torch.Size([4, 1])
)
posterior_same_inputs = cm_same_inputs.posterior(test_X)
self.assertEqual(
posterior_same_inputs.mean.shape,
fant_shape + batch_shape + torch.Size([4, 1]),
)
# check that fantasies of batched model are correct
if len(batch_shape) > 0 and test_X.dim() == 2:
state_dict_non_batch = {
key: (val[0] if val.numel() > 1 else val)
for key, val in model.state_dict().items()
}
model_kwargs_non_batch = {
"datapoints": model_kwargs["datapoints"][0],
"comparisons": model_kwargs["comparisons"][0],
}
model_non_batch = model.__class__(**model_kwargs_non_batch)
model_non_batch.load_state_dict(state_dict_non_batch)
model_non_batch.eval()
model_non_batch.posterior(
torch.rand(torch.Size([4, X_dim]), **tkwargs)
)
cm_non_batch = model_non_batch.condition_on_observations(
X_fant[0][0], comp_fant[:, 0, :]
)
non_batch_posterior = cm_non_batch.posterior(test_X)
self.assertTrue(
torch.allclose(
posterior_same_inputs.mean[:, 0, ...],
non_batch_posterior.mean,
atol=1e-3,
)
)
self.assertTrue(
torch.allclose(
posterior_same_inputs.mvn.covariance_matrix[:, 0, :, :],
non_batch_posterior.mvn.covariance_matrix,
atol=1e-3,
)
)
def test_fantasize(self):
for batch_shape, dtype in itertools.product(
(torch.Size(), torch.Size([2])), (torch.float, torch.double)
):
tkwargs = {"device": self.device, "dtype": dtype}
X_dim = 2
model, model_kwargs = self._get_model_and_data(
batch_shape=batch_shape, X_dim=X_dim, **tkwargs
)
# fantasize
X_f = torch.rand(
torch.Size(batch_shape + torch.Size([4, X_dim])), **tkwargs
)
sampler = PairwiseSobolQMCNormalSampler(num_samples=3)
fm = model.fantasize(X=X_f, sampler=sampler)
self.assertIsInstance(fm, model.__class__)
fm = model.fantasize(X=X_f, sampler=sampler, observation_noise=False)
self.assertIsInstance(fm, model.__class__)
def test_load_state_dict(self):
model, _ = self._get_model_and_data(batch_shape=[])
sd = model.state_dict()
with warnings.catch_warnings(record=True) as ws:
missing, unexpected = model.load_state_dict(sd, strict=True)
# Check that the warning was raised.
self.assertTrue(any("strict=True" in str(w.message) for w in ws))
# Check that buffers are missing.
self.assertIn("datapoints", missing)
self.assertIn("D", missing)
self.assertIn("covar", missing)
|
const Terminable = require('./index.js')
const terminable = new Terminable()
const timeoutId = setTimeout(function () {
terminable.delete(timeoutId)
console.log('long running task')
}, 5000)
const state = terminable.add(timeoutId, function () {
clearTimeout(timeoutId)
setTimeout(() => console.log('clean up async'), 500)
})
process.once('SIGINT', function () {
state.cleanup()
})
console.log('Press CTRL+C to skip 5s timeout')
|
let firstItem = 1;
function firstFunction() {
let secondItem = 2;
debugger; // Breakpoint.
function secondFunction() {
let thirdItem = 3;
console.log(firstItem);
console.log(secondItem);
console.log(thirdItem);
}
secondFunction();
}
firstFunction(); |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyright and this notice and otherwise comply with the Use Terms.
/**
* @path ch12/12.10/12.10-0-10.js
* @description with introduces scope - name lookup finds function parameter
*/
function testcase() {
function f(o) {
function innerf(o, x) {
with (o) {
return x;
}
}
return innerf(o, 42);
}
if (f({}) === 42) {
return true;
}
}
runTestCase(testcase);
|
import json
import requests
import base64
import datetime
from binascii import hexlify, unhexlify
from math import floor, ceil, log, atan
def MAIN_NET_VERSION(ver):
return (0x68000000 | ver)
def TEST_NET_VERSION(ver):
return (0x98000000 | ver)
CURRENT_MOSAIC_SINK = 'TBMOSAICOD4F54EE5CDMR23CCBGOAM2XSJBR5OLC'
CURRENT_NAMESPACE_SINK = 'TAMESPACEWH4MKFMBCVFERDPOOP4FK7MTDJEYP35'
CURRENT_NETWORK_VERSION = TEST_NET_VERSION
#CURRENT_MOSAIC_SINK = 'MBMOSAICOD4F54EE5CDMR23CCBGOAM2XSKYHTOJD'
#CURRENT_NAMESPACE_SINK = 'MAMESPACEWH4MKFMBCVFERDPOOP4FK7MTCZTG5E7'
#def CURRENT_NETWORK_VERSION(ver):
# return (0x60000000 | ver)
class NemConnect:
def __init__(self, address, port):
self.address = address
self.port = port
self.nemEpoch = datetime.datetime(2015, 3, 29, 0, 6, 25, 0, None)
def getTimeStamp(self):
now = datetime.datetime.utcnow()
return int((now - self.nemEpoch).total_seconds())
def testnetNodeInfo(self):
r = self.sendGet('node/info', None)
if r.ok:
j = r.json()
return j
return None
def nodeInfo(self):
r = self.sendGet('node/info', None)
if r.ok:
j = r.json()
print(j)
if j['metaData']['application'] == 'NIS':
return j
return None
def blockAt(self, h):
data = {'height': h}
r = self.sendPost('block/at/public', data)
return r.json()
def blocksAfter(self, height):
data = {'height': height}
r = self.sendPost('local/chain/blocks-after', data)
return r.json()
def chainHeight(self):
r = self.sendGet('chain/height', None)
if r.ok:
return True, r.json()
return False, r.json()
def accountGet(self, address):
data = {'address': address}
r = self.sendGet('account/get', data)
if r.ok:
return True, r.json()
return False, r.json()
def accountOwnedMosaicsGet(self, address):
data = {'address': address}
r = self.sendGet('account/mosaic/owned', data)
if r.ok:
return True, r.json()
return False, r.json()
def accountUnlock(self, privatekey):
data = {'value': privatekey}
r = self.sendPost('account/unlock', data)
if r.ok:
return True, None
return False, r.json()
def accountIsUnlocked(self, privatekey):
data = {'value': privatekey}
r = self.sendPost('local/account/isunlocked', data)
if r.ok:
return True, None
return False, r.json()
def accountLock(self, privatekey):
data = {'value': privatekey}
r = self.sendPost('account/lock', data)
if r.ok:
return True, None
return False, r.json()
def namespaceGet(self, namespace):
data = {'namespace': namespace}
r = self.sendGet('namespace', data)
if r.ok:
return True, r.json()
return False, r.json()
def mosaicDefinition(self, mosaicFqdn):
r = self.sendGet('mosaic/definition', {'mosaicId': mosaicFqdn})
if r.ok:
return True, r.json()
return False, r.json()
def mosaicSupply(self, mosaicFqdn):
r = self.sendGet('mosaic/supply', {'mosaicId': mosaicFqdn})
if r.ok:
return True, r.json()
return False, r.json()
@staticmethod
def createData(txtype, senderPublicKey, timeStamp, version=CURRENT_NETWORK_VERSION(1)):
return {'type': txtype,
'version': version,
'signer': senderPublicKey,
'timeStamp': timeStamp,
'deadline': timeStamp + 60 * 60
}
@staticmethod
def calcMinFee(numNem):
return int(max(10 - numNem, 2, int(atan(numNem / 150000.0) * 3 * 33)))
def _constructTransfer(self, senderPublicKey, recipientCompressedKey, amount, message, mosaics, mosaicsFee):
timeStamp = self.getTimeStamp()
version = CURRENT_NETWORK_VERSION(2) if mosaics else CURRENT_NETWORK_VERSION(1)
data = NemConnect.createData(0x101, senderPublicKey, timeStamp, version)
msgFee = 0 if len(message) == 0 else max(1, len(message) / 16) * 2
fee = mosaicsFee if mosaics else NemConnect.calcMinFee(amount / 1000000)
totalFee = (msgFee + fee)
totalFee *= 1000000
custom = {
'recipient': recipientCompressedKey.replace('-', ''),
'amount': amount,
'fee': totalFee,
'message': {'type': 1, 'payload': hexlify(message)}
}
if mosaics:
custom['mosaics'] = mosaics
print "Attached mosaic:", custom['mosaics']
entity = dict(data.items() + custom.items())
return entity
def _constructImportanceTransfer(self, senderPublicKey, remotePublicKey, doAssign):
timeStamp = self.getTimeStamp()
data = NemConnect.createData(0x801, senderPublicKey, timeStamp)
custom = {
'mode': 1 if doAssign else 2,
'remoteAccount': remotePublicKey,
'fee': 8000000,
}
entity = dict(data.items() + custom.items())
return entity
def _constructModification(self, senderPublicKey, cosignatories):
timeStamp = self.getTimeStamp()
data = NemConnect.createData(0x1001, senderPublicKey, timeStamp)
custom = {
'fee': 2 * (5000000 + 3000000 * (len(cosignatories))),
'modifications': [
{'modificationType': 2, 'cosignatoryAccount': publicKey}
for publicKey in cosignatories
]
}
entity = dict(data.items() + custom.items())
return entity
def _constructNamespace(self, senderPublicKey, namespaceFqn):
timeStamp = self.getTimeStamp()
data = NemConnect.createData(0x2001, senderPublicKey, timeStamp)
parts = namespaceFqn.split('.')
rental = 50000 if len(parts) == 1 else 5000
custom = {
'rentalFeeSink': CURRENT_NAMESPACE_SINK,
'fee': 2 * 3 * 18 * 1000000,
'rentalFee': rental * 1000000,
'newPart': parts[-1],
}
if len(parts) > 1:
custom['parent'] = '.'.join(parts[:-1])
entity = dict(data.items() + custom.items())
return entity
@staticmethod
def parseMosaicFqn(mosaicFqn):
if " * " in mosaicFqn:
return mosaicFqn.split(" * ")
else:
parts = mosaicFqn.split('.')
return ('.'.join(parts[:-1]), parts[-1])
def _constructMosaic(self, senderPublicKey, mosaicFqn, description, props):
timeStamp = self.getTimeStamp()
data = NemConnect.createData(0x4001, senderPublicKey, timeStamp)
namespaceFqn,mosaicName = NemConnect.parseMosaicFqn(mosaicFqn)
custom = {
'mosaicDefinition': {
'creator': senderPublicKey,
'id': {
'namespaceId': namespaceFqn,
'name': mosaicName
},
'description': description,
'properties': [
{'name': 'divisibility', 'value': str(props['divisibility'])},
{'name': 'initialSupply', 'value': str(props['initialSupply'])},
{'name': 'supplyMutable', 'value': str(props['supplyMutable'])},
{'name': 'transferable', 'value': str(props['transferable'])}
],
},
'creationFeeSink': CURRENT_MOSAIC_SINK,
'creationFee': 50000 * 1000000,
'fee': 2 * 3 * 18 * 1000000
}
if 'levy' in props:
levyFqn = props['levy']['mosaicFqn']
namespaceFqn,mosaicName = NemConnect.parseMosaicFqn(levyFqn)
custom['mosaicDefinition']['levy'] = {
"type": props['levy']['type'],
"recipient": props['levy']['recipient'].replace('-', ''),
"mosaicId": {
'namespaceId': namespaceFqn,
'name': mosaicName
},
"fee": props['levy']['fee']
}
entity = dict(data.items() + custom.items())
return entity
def _constructMosaicSupply(self, senderPublicKey, mosaicFqn, supplyType, supplyDelta):
timeStamp = self.getTimeStamp()
data = NemConnect.createData(0x4002, senderPublicKey, timeStamp)
namespaceFqn,mosaicName = NemConnect.parseMosaicFqn(mosaicFqn)
custom = {
'mosaicId': {
'namespaceId': namespaceFqn,
'name': mosaicName
},
'supplyType': supplyType,
'delta': int(supplyDelta),
'fee': 2 * 3 * 18 * 1000000
}
entity = dict(data.items() + custom.items())
return entity
def _prepare(self, entity):
r = self.sendPost('transaction/prepare', entity)
return r.ok, r.json()
def _multisigWrapper(self, senderPublicKey, entity):
timeStamp = self.getTimeStamp()
data = NemConnect.createData(0x1004, senderPublicKey, timeStamp)
custom = {
'fee': 18000000,
'otherTrans': entity
}
entity = dict(data.items() + custom.items())
print " {+} multisig wrapped"
return entity
@staticmethod
def calcXemEquivalent(amount, q, sup, divi):
if sup == 0:
return 0
multiplier = amount # int(self.transferAmount.get()) * 1000000
equivalent = 8999999999 * q * multiplier / sup / (10 ** (divi + 6))
return equivalent
def calculateMosaicsFee(self, amount, mosaics):
data = {'fee': 0, 'mosaics': []}
for m in mosaics:
quantity = m[1]
mosaicFqn = m[0]
namespaceFqn,mosaicName = NemConnect.parseMosaicFqn(mosaicFqn)
ok, j = self.mosaicDefinition(namespaceFqn + ' * ' + mosaicName)
if not ok:
return ok, j
divisibility = int((x for x in j['properties'] if x['name'] == 'divisibility').next()['value'])
ok, j = self.mosaicSupply(namespaceFqn + ' * ' + mosaicName)
if not ok:
return ok, j
supply = int(j['supply'])
numNem = NemConnect.calcXemEquivalent(amount, quantity, supply, divisibility)
data['fee'] += NemConnect.calcMinFee(numNem)
data['mosaics'].append(
{
'mosaicId': {
'namespaceId': namespaceFqn,
'name': mosaicName
},
'quantity': quantity
}
)
data['fee'] = data['fee'] * 5 / 4
return True, data
def prepareTransfer(self, senderPublicKey, multisigPublicKey, recipientCompressedKey, amount, message, mosaics):
mosaicsFee = 0
if mosaics:
ok, j = self.calculateMosaicsFee(amount, mosaics)
if not ok:
return ok, j
mosaicsFee = j['fee']
mosaics = j['mosaics']
actualSender = multisigPublicKey or senderPublicKey
entity = self._constructTransfer(actualSender, recipientCompressedKey, amount, message, mosaics, mosaicsFee)
if multisigPublicKey:
entity = self._multisigWrapper(senderPublicKey, entity)
return self._prepare(entity)
def prepareImportanceTransfer(self, senderPublicKey, multisigPublicKey, remotePublicKey, doAssign):
actualSender = multisigPublicKey or senderPublicKey
entity = self._constructImportanceTransfer(actualSender, remotePublicKey, doAssign)
if multisigPublicKey:
entity = self._multisigWrapper(senderPublicKey, entity)
return self._prepare(entity)
def prepareProvisionNamespace(self, senderPublicKey, multisigPublicKey, namespaceFqn):
actualSender = multisigPublicKey or senderPublicKey
entity = self._constructNamespace(actualSender, namespaceFqn)
if multisigPublicKey:
entity = self._multisigWrapper(senderPublicKey, entity)
return self._prepare(entity)
def prepareMosaicCreation(self, senderPublicKey, multisigPublicKey, mosaicFqn, description, props):
actualSender = multisigPublicKey or senderPublicKey
entity = self._constructMosaic(actualSender, mosaicFqn, description, props)
if multisigPublicKey:
entity = self._multisigWrapper(senderPublicKey, entity)
return self._prepare(entity)
def prepareMosaicSupply(self, senderPublicKey, multisigPublicKey, mosaicFqn, supplyType, quantity):
actualSender = multisigPublicKey or senderPublicKey
entity = self._constructMosaicSupply(actualSender, mosaicFqn, supplyType, quantity)
if multisigPublicKey:
entity = self._multisigWrapper(senderPublicKey, entity)
return self._prepare(entity)
def multisigCreatePrepare(self, senderPublicKey, cosignatories):
timeStamp = self.getTimeStamp()
data = NemConnect.createData(0x1001, senderPublicKey, timeStamp)
custom = {
'fee': 2 * (5000000 + 3000000 * (len(cosignatories))),
'modifications': [
{'modificationType': 1, 'cosignatoryAccount': publicKey}
for publicKey in cosignatories
]
}
entity = dict(data.items() + custom.items())
r = self.sendPost('transaction/prepare', entity)
return r.ok, r.json()
def multisigModificationPrepare(self, senderPublicKey, multisig, cosignatories):
timeStamp = self.getTimeStamp()
data = NemConnect.createData(0x1004, senderPublicKey, timeStamp)
transfer = self.constructModification(multisig, cosignatories)
custom = {
'fee': 6000000 * (len(cosignatories) + 1),
'otherTrans': transfer
}
entity = dict(data.items() + custom.items())
r = self.sendPost('transaction/prepare', entity)
return r.ok, r.json()
def multisigSignaturePrepare(self, senderPublicKey, multisigAddress, txHash):
timeStamp = self.getTimeStamp()
data = NemConnect.createData(0x1002, senderPublicKey, timeStamp)
custom = {
'fee': 2 * 3000000,
'otherHash': {'data': txHash},
'otherAccount': multisigAddress
}
entity = dict(data.items() + custom.items())
r = self.sendPost('transaction/prepare', entity)
return r.ok, r.json()
def transferAnnounce(self, transferData, transferSignature):
data = {'data': transferData,
'signature': transferSignature
}
r = self.sendPost('transaction/announce', data)
return r.ok, r.json()
def sendGet(self, callName, data):
headers = {'Content-type': 'application/json'}
uri = 'http://' + self.address + ':' + str(self.port) + '/' + callName
return requests.get(uri, params=data, headers=headers, timeout=10)
def sendPost(self, callName, data):
headers = {'Content-type': 'application/json'}
uri = 'http://' + self.address + ':' + str(self.port) + '/' + callName
return requests.post(uri, data=json.dumps(data), headers=headers, timeout=10)
|
/*
* Copyright (C) 2018 Daniel Anderson
*
* This source code is licensed under the MIT license found in the LICENSE file
* in the root directory of this source tree.
*/
'use strict';
const Pipeline = require('./pipeline');
require('./format')(Pipeline);
require('./output')(Pipeline);
require('./config')(Pipeline);
require('./resize')(Pipeline);
module.exports = Pipeline;
|
/*Copyright 2010-2019 Simplemaps.com
html5countrymapv3.91
Use pursuant to license agreement at https://simplemaps.com/license */
/* shifty - v1.5.3 - 2016-11-29 - http://jeremyckahn.github.io/shifty, embedded within map logic*/
/* Raphaël 2.1.2 (tweaked, always global)- JavaScript Vector Library, Copyright © 2008-2016 Dmitry Baranovskiy (http://raphaeljs.com), Copyright © 2008-2016 Sencha Labs (http://sencha.com), Licensed under the MIT (http://raphaeljs.com/license.html) license. */
eval((function(x){var d="";var p=0;while(p<x.length){if(x.charAt(p)!="`")d+=x.charAt(p++);else{var l=x.charCodeAt(p+3)-28;if(l>4)d+=d.substr(d.length-x.charCodeAt(p+1)*96-x.charCodeAt(p+2)+3104-l,l);else d+="`";p+=4}}return d})("(function (glob, factory) {glob.eve =` -$();})(this, ` N&) {var version = \"0.4.2\", has = \"hasOwnProperty\", separator = /[\\.\\/]/, wildcard = \"*\"` }! =` z*}, numsort` -)a, b) {return a - b;}, current_event, stop, ` (!s = {n:{}}` ,!` `)name, scope) {name = String` 7!);var e =` d#, oldstop =` |#args = Array.prototype.slice.call(argum` W\"2), listeners` o\".` '%`!+\", z = 0, f`$&!lse, l, indexed = [], queue =`\"!out` /#ce =`\"X,erro`!&![];` .) = name;`\"�for (var i`!:\"ii =`!c&.length; i < ii; i++) {if (\"zIndex\" in` F&[i]) {`!o#.push(` 0(.` N\");if ` %0 < 0) {`\"C![` -/]`!P([i];}}}`!%$sort(`%s#);while (` 6#[z]` t#l =`#A\"[` 2%++]];out`!h#.apply(`%X!`%\"\")`!j\"stop) {`#3#`%J#;`&j#out;}}`#H!`#D!`#\",l`!j,`#2-`#P#l`\"c$==`%6$[z]) {`!8Fbreak;}do {z++;`\"@/]];l && ` CM} `#R#l);} else`$E%`$7(;}` 5$` PN}`#R+`'/,ce`#i'`&y# ?`(+!: null;};eve.` K\"`)(#nts` 0!`):(`*a*`,{#names`(>#.split(`,a%),`*f)item, items, k, i, ii, j, jj, nes, ` f![e]`)e&`)*\"`) (`!-!`(q3n` [\"` O#j` P\"jj = ` H'j < jj; j` N!`!]!s[j].n;`!W!`!=![`!!![i]], e[`.^$]];k = 2`(F$k--) {item =`\"3\"[k`'$\"item`!J\"`$h\"` +!;`\"/\"out.concat` 2!.f || []);}}}`#F\"es;}`(<(`$&!`0b!`.c,f`.X3if (typeof f != \"` Q$\"`0*&`0X*;}`$BI`-22`$ 8` W!.n;` \"\"`2R*`!q!`-G\"&& `#s' || (` $(`1\\$);}e.f` f!`#9#`%X.e.f`.U7e.f[i] ==`#@!`\"j&;}}e.f`$Q\"f)`(T$`##&`.l#` _\"+ `+t&` $$) {f`,,%` -%;}}`$b#`1m!` f%`#J!`(f#att`1>#`2b31`!=/) {eve`+'#null, [`2/#null]`&D$` x!)` &$` j50)));`!c$`+T#`! )` -#1` <#`+_!` 7&sub`*w#`,F!` %%`!p#(new RegExp(\"(?:\\\\.|\\\\/|^)\" + ` H# + ` 0($)\")).test(`,o))`(<%` *)`!O%`,F*`!:&` A)`'T-`)&$f`&8!ve.unbind`)%3if (!`\"<#`-q0`''%`$Q#`(`B, key, splice`-Y,cur`,>!` {!`-1K`-M&`-A\"cur`-L'+=`!,#`0>$- 2) {` .\" = [j, 1]`)|!cur`-l#f`\"i\"s[i] != `-c$`(}$`)q&` a%`(u\"` .(`2U&`!\\!key in `%}$e[has](key)` S-key`-s\"cur`#E!c`(\"$cur`#:$);}}`\"v-`\"O(`,7.cur[i]`/`$e.n`!E#`%,$e.f`#B)`0~$`+g'`0y*`+j$j`+i%e.f`!k#(j`*5!break;}}!` \\& && delete e.f;`\" \"`\"w$`!L%e.n`\"y&`-|!.n`\"u!`!`!var`'6!`&p!` 0%`2p.` ?!`!c7` ;!`!u'` J\"`!l2` `(`!w)`!6%}`%*%`\"5'`!kP` f1`1$$}}`34$`'<!`)n0`\"z!2`*{,`*O&` C$2`.Q&`&;#this, `-r%);`*=$`+2!on` O'`!@\"versi`4b!` ##` 1!to`4T\"`,73\"You are running Eve \" +` [%`!*(;});`$D!` `\"glob, factory) {` ##` 1#glob.eve);})`\"&#` Q&window, eve`%%#` 3!R(first`$3#R.is` +\", \"` <$\")`!s&loaded ? ` @!() :`\"t$\"raphael.DOMload\",` >\");`%Q#` p,arra`*\\!` t#R._engine.create[`$0!](R` b#`&r$0, 3 + ` a&[0], nu))).add`\")#`!.$`4!\"rgs = Array.prototype`2w5`-?!` {!args[arg`'r%- 1]`\"k,`&L! =`!!!.pop(`&0%`#$&`! \"`\"(7args)`#0;`&!(` JD;}`\"a&`#G>`'p(}}R`'V'\"2.1.0\";R.ev`)H!ve;var`\"<#, `2F% = /[, ]+/, ele` i! = {circle:1, rect:1, path:1, ellips` 6!tex` 6!image:1}, formatrg = /\\{(\\d+)\\}/g, `$b! = \"`$g%\", has = \"hasOwnProperty\", g = {doc:doc`\"<!, win:`(.\"}, oldR`#j\" = {was:Object`%c&`,L!`#n\"g.win, \"` K#\"), is:` 1!.` -#}, Paper`*S,this.ca = ` $\"ustomAttribute`##!};}, paper`!7!, appendChild = \"` $'\"` 8!ly` 0#ly\", concat = \"` $\"\", supportsTouch = \"ontouchstart\" in `!w! ||` #\".D`\"~#` K\"&& g.doc instanceof ` 5), E = \"\", S = \" \", Str = `-A\"`4O\"`!N!` $!\"`+!`%P\"\"click dbl` #\"mousedown` $\"move` $\"out` \"#ver` $\"up `!}&` %\"` K!` %!end` #\"cancel\"[`!6!](S),` 2\"Map = {`!(%:\"`\"i',`!5&` 1#move` /$up` .#end\"}, lowerCase`\"M\"`+V'toL` 4$, math = Math, mmax =` /!.max, mmin` (%in, abs` ($abs, pow` ($pow, PI` '$PI, nu = \"number\", s`19$\"` $\"\"`.H#`%e!rray\", `1\\'\"` $$`/0!ll` /&fill\", o`()!T` H&`(/,`2L%`'5#`'E!, pus`&M!push\", ISURL = R._` #$/^url\\(['\"]?([^\\)]+?)` )!\\)$/i, colourRegExp` K!\\s*((#[a-f\\d]{6})|` $&3})|rgba?\\(\\s*([\\d\\.]+%?\\s*,\\s*[\\d\\.]+%?\\s` \"*(?:` #,)?)\\s*\\)|hs` `,(?:deg|\\xb0|%)` ^;(?:` #,)?)` .!` x!l` $u)\\s*`#>!isnan = {NaN:1, Infinity:1, '-` &$'`.K!bezier`.J\"^(?:cubic-)?` 2\"\\(([^,]+),([^,]+),` %'\\)]+)\\)/, round`&w$` (!, set`- %`&t!` %'`&i!Flo`,T!parse` (!, toIn` +%Int, upp`(t5U` 4$, availableAttrs`&M\"` #-{'arrow-end':\"none\", ` -#`*d!` ,&blur:0, 'clip-rect':\"0 0 1e9 1e9\", cursor:\"default\", cx:0, cy:0`(q\":\"#fff\", 'fill-opac`#r\", font:\"10px \\\"Arial\\\"` D!ont-family':\"` ).size':\"10` (&tyle`!t!rmal` .%weight':400, gradient:0, h` 4!` %!ref:\"http://r`2#\"js.com/\", 'letter-spacing':0, `!{#`4d%\"M0,0\", `#&!r`\"Y!r`\"Y!src:\"`,2\"oke:\"#00`!m!` *\"-dash`,2!'` A!` /$linecap':\"butt` *+join` (.miterlimit`!\\!` /$`#_(` ,$width` -!target:\"_blank\", 'text-anchor':\"middl`' !itle:\"R`\"v\"\", transform`!s!` m!:0, `\"U!y:0}`&](nim`&X1` -'{`&B!nu`&9+csv`&(\"nu`&*!nu`&($`-W\"`& .` ^!`%V'nu`% %nu`$N&nu`$Q$path`$T!nu`$U!` \"!` ;\"`$L$`!\"&`#E,`!)!`#H*nu`\"p)` \"%`\"}%nu, `!!\"y:nu}, whitespace = /[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001` '!2` '!3` '!4` '!5` '!6` '!7` '!8` '!9` '!a\\u202f\\u205f\\u3` g#2` ?!29]/g, commaSpaces` [~`!1H*,` J~`!#E/, hs`0U!{hs:1, rg`0n!p2`#1!,?([achlmqrstvxz]),?/gi`&\\\"Comma`0O!/` ?#rqstvz])`!?~`!zC,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?` f~`%+F` K~`!#F)+)`%!!t`$v)rstm`#z~`#z~` f~`#z~`$:^pathValu`-Y\"`#.7`$0~`\"H~`-&rgi, radial_gradient = R._` #./^r(?:\\(([^,]+`\"R~`0M~` Wq([^\\)]+?)\\))?/, eldata = {}, sortByKey = function (a, b) {return a.key - b.key;` L%Number` =7toFloat(a) -` $%b);}, fun` L))`!H!pipe` *)x` c&x;}, rectPath`%K#` $&` H', y, w, h, r) {if (r` ]&[[\"M\", x + r, y], [\"l\", w - r * 2, 0` 0!a\", r, r, 0, 0, 1` )\"` H%0, h` L$` 94-` E*` G! - w` i7` N!-` z*` P$h`!>7` K$z\"]];}`\">+`\"<)`!5$`!}$` $%`!N'` `\", ellipse`#N3rx, ry`#\\$y == null) {ry = rx`!05m`!6\"- r` *\"`\"/!` i!`\"+$1` $!2 *` #<-` 9'`!o$ge`%['` #&{path:`!|&e`!f!`!\\\"el.attr(\"path\"`&!circle` @,var a =` I$s;` X%`#\"%(a.cx, a.cy, a.r` i!` 9#` ,_` '!ry` q!rect` KD`(G$(a.` ^!` i!width, a.height`!f&imag`!EE` W@` q!tex`![1bbox` r\"_getBBox()` l-bbox.x,` H!.y,` \"\"` #` '!` ~'se` &~;}}, map`&C%` \"&`!1&path, matrix`(D#!` %%`!3#path;}var`(=!, i, j, ii, jj,` 9!i;p` s\"path2curve` u!);for (i = 0, ii` ;#.length; i < ii; i++)`'z\"` ;$[i]` V\"j = 1, jj` 2#i` T%j < jj; j += 2) {x =`\"##.x`!:!i[j]`!Z#[j + 1]);y` ;&y` ,5` 0$ = x` %$` 6! = y;}`+0$`\"s\";R._g = g;R.ty`0>!g.win.SVGAngle || g.doc.implementation.hasFeature(\"http://www.w3.org/TR/SVG11/f` >\"#BasicStructure\", \"1.1\") ? \"SVG\" : \"VML\";if (`!C$=` .\"`&9#d`!W!doc.createE`!H\"(\"div\"), b;d.innerHTML = \"<v:shape adj=\\\"1\\\"/>\";b = d.firstChild;b.style.behavior = \"url(#default#VML)`!S\"!(b && typeof b.adj`!a!object\")`&M&`#E%E;}d `/7\";}R.svg = !(R.vml`'T!`\"=*;R._Paper = ` #!;R.fn`%z!perproto` 2$.` )!`! #R` $&;R._id = 0;R._o` \"%is`(P)o,`\"#!) {` \\#lowerCase.call(` 8!`\"Q!`!Y%finite\"`\"<&!isnan[has](+ o);}` C)array` D'o instanceof Array`1}%` K%null\" && o =`2N# ||` 7%`#t#o` <\"!` //`$%$` Z&O` ,!(o)` :)`!W\" &&`!D\".is` #! &` \"+` Q#` p\"ToString`\"}\"o).slice(8, -1).toL`#<$()`!f$;};`#l%clone(obj`,G#`\"&$b`&!\"` @$\" ||`!m%bj)`\"C!` P\"`#B$bj`,o\"res = new obj.cons`(~!or`+{\"var key i` N!`!/#obj`$M\"key`'-\"s[key] =`!W&` ,!)`+$&res;}R.a`*n!`%{(x1, y1, x2, y2, x3, y3`!##x3 `$;#`)}#x = x1 -` I\" = y1 - y2`(x\"x && !y`\"=&0`%W%(180 + math.atan2(- y, - x) * 180 / PI + 360) % 360;} else`)H'`!y!`!h&`!c#-` 0&`!v*;}};R.rad`\"D)deg`!W°`!'\" * PI / 180`.0!deg` I)rad` L&rad`!i(`!g#;R.snapTo` L)values, ` #!, toleranc`)s!` $$`*[!is(` (%,`)a'?` J& : 10`.;#is` r%`(%!)`$;#i =`!&\"s`1d$while (i--`$o#ab` T$[i] -` I\") <=`!Q)`\"E#` @%;}}`$)$` .\" = +` 8#;`'E\"m`!4$ %` 1$if (rem <` c5 - rem`+t\"rem >` T# -` 4;`!4&`']%` +!;}`!J!`0\"UUID`#Z!` \")(`$6&uuidRegEx, ` %\"placer`!(&` A&` *&\"xxxxxxxx-xxxx-4xxx-y` '$` 4$\".r` g\"` k5.toUpp`+i$;};})(/[xy]/g,`!-'c`$t#r =`([\"random(`(U!6 | 0, v = c`, !x\" ? r : r & 3 | 8;`\"v$.t`-8#(16);});R.setWindow`'()newwin) {eve(\"raphael` B&\", R, g.win, ` E#;` *!`,f\"win;g.doc =` @\".document`'6#_engine.initW`!$!` #-(` T!`)!var toHex`!W)color`'K#`4)!`\"#trim = /^\\s+|\\s+$/g` ]!bod;try` ?\"`!K!`.R#ActiveX`/)#\"htmlfile\");` A!.write(\"<body>` -%clo`$P!bod =` j\".body;} catch (e) {` 8\"`&V\"Popup()`\"c%` H#`$u!ange = bod`'\"#TextRange();`\"T$cacher`'1'`\"[$`\"2!bod.style.` 2! = Str` <#`&a%trim, E)`\"m!`(f\"=`!8\".queryCommandValue(\"ForeColor\");` E$`+4\" & 255) <<`&\\\"` -$65280 |` <&16711680) >>> 16`&d$\"#\" + (\"000000\"`*$$`&u)`46$-6)`#H*` \\$none\";}})`0B%`-:$`&Y!`#D#Element(\"i\");i.tit`2^!\"Rapha\\xEBl Colour Picker\";i`#B#display =`!#$` q\"body.appendChild(i`$!?` l$`$5$` #!`\"f$` r\"defaultView.getComputedStyle(i, E).getProperty`$=#` c!\"`*)!`->$`!G!`!2#;}, hsb`#O$`(U)`#?'hsb(\" + [this.h, ` #!s,` \"\"b] + \")\"` g\"l` K>l` R7l` b'rg`!:<` ]\"ex;}, prepareRGB`4-*, g, b`*d#g == null &&`3P\"r, \"o`*8!\") && \"r\" in r` '!g\"` \"&b` &\") {b = r.b;g` #!g;r` #!r`1_\"` m1s`\" !`3}$clr`10!getRGB(r)` ]!clr.r` o!clr.g;b` ##b`2V# > 1 || g ` \"#b > 1) {r /= 255;g ` \"#b` *$`%,$[`\"_#]`#$!ackag`\"q4, o` o!*` l$` \"#b` *$`,-!gb = {r:r, g:g, b:b, hex:R.rgb`#l%, `$Y$:`$b'};`\"s!o, \"finite`#t\"(rgb.opacity = o)`'x$rgb;};R`(4%`(T'lr`2V$gb`0W#is(cl`$e-h`$Y!cl`$f\"s`$g!` &$`$t\"` f\"`\"4\"R.hsb2rgb` }!;`$6! = rgb.r` )!`%6!gb.g` )!`%L!gb.b` )!h`*F!rgb`&t\"`+v\"`!$Tl`!G1l` oi`2~#`!T%`'(\"\")) {`&|+`!-!`&j!`!t4`(X\"`!v$`(Z\"`#L8rgb2hsl`\"\"&h`!X$` )!s` '#s` )!l` '#l;` Q*`\"`'v`\"F%`\"5$`!}\"{hex:`/\"\"}`#+%`#&$`# $`!8$`!2$` i$`!4$-1;}}clr`1?%`!'\"` &$`'($clr`'+!`%}#`'%)h, s, v`) \"if (`,^!is(h`%@2h`%I'` &\"`#@\"h) {v = h.b;s` #!s;h` #!h;o` #!o;}h *= 360`)o!R, G, B, X, C` F\" % 360 / 60;C = v * s;X = C * (1 - abs(h % 2 - 1));R = G = B` J!-` c#~~h;R += [C` {!0, 0`!#\"][h];G` 6!X, C, ` 7&` 6!B` 6!` F&` ;\"` 6!`#G#`,E&(`!z%o)`#Z#`($!`#N/l`#&W`)-\"h) {l`#D!l`#P-`'}!h`.`$s`.i$l`.j#h /`#q\"s /= 100;l ` \"#`#bM2 * s * (l < 0.5 ? l : 1 - l)`$!Fl - C / 2`#M~`$56`)f#`4(3b =`4Y'` 0%`2w!b[0]`2v!b[1]`2u!b[2]`#?!H, S, V, C;V = mmax` R&C = V - mmin` ,&H`#1!== 0 ?`4E\": V == r ? (g - b) / C` /$g ? (b - r` 1\"+ 2 : (r - g` *$4` q!(H + 360) % 6 * `$e!360;S`!'(0 :`$(!V`#,${h:H, s:S, b:V`3*'hs`3*'`#9&l`\"OpL, M, m, C;M`#8-m` -!`#9(C = M - m`#:1M`#92` 2!`\"l_L = (M + m)`'P!`#N-L`(E%C / (2 * L)`#p#(2 -`(s!L)`#n/l:L`#t)l`#s*_path2`2|\"`#y)) {` f#`+l!join(\",\").replace(p2s, \"$1\");};` O%repush(array, item) {for (var i = 0, ii = ` >!.length; i < ii; i++`-!#` ;![i] ===` a$`!K#` U\"` &.splice(i, 1)[0]);}}}`!J%cacher(f, scope, postprocessor) {` A%newf() {var arg = A`!$\"rototype.slice.call(arguments, 0), args`\"1!g`#%#\\u2400\"),`!;\" =` z!.`!I! =`!'!` &#|| {}, count` 1%ount` >%` (!|| [];if (` R`\"u!`\"j!` E!`!G\"`%D%`\"B) ?` \"*` e#args]) :`!f\"` )\";}` i!`$<# >`/m!0 && delete` E#` ?\"shift()];` )\"`$5#gs);` g' = f[apply](`$%#arg`!&_` Z#newf;}var preload = R._` #&`'U&src, f`%%#img = g.doc.createElement(\"img\");img.style.cssText = \"position:absolute;left:-9999em;top` $$\"` \\!on`!5-) {f`&(\"this);`)&!` ?%null;`!P\"body.removeChild` I#}` r#error` j,` ;;` 4'append` 9\"img`\"I#rc = src`*3(clrT`+9#`*r,hex;}R.getRGB =`).%`!J%colour`*7#!` (\" || !!(` 5# = Str` A$).indexOf(\"-\") + 1`'c\"`,|\"r:-1, g:-1, b` '!hex:\"none\", `\"l!:1`-/'`!o'};}`(a!`!-#= ` P\"` TE` ]3!(hsrg`)Q\"` v\".toLowerCase().sub`.C\"(0, 2)) || ` B#charAt()`!I!#\") &&`!W& toHex`\"n%`2?!res, red, green, blue, opacity, t, valu` A!gb =`!!$match` d#RegExp)`+N!rgb`$3#rgb[2]) {blue`!8!Int` /#`!x'5), 16);`!:!` -63, ` B$red` .61, 3` A#`$8!rgb[3`!5-(t = ` 5\"`#+$3)) + t`!90` ;/2` B(`!E(` 9/1` @(`!L%4]`+0!lues` K#4][split](commaSpace`.Y!` x\"Float(` L\"`1W!` \"%`0h\"(-1`%1\"%\"`%1!red *= 2.55`\"%(` Z)1` ]&1` P3` T\"` `%`#>%` [)2` ^&2` Q3` T!` ^%rgb[1]`'H,` S!0, 4` T\"rgba` W\"`&h#`!'.3]`'C!` %# &&`''#[3`!03` b$/`1A!`$%'5`#-5`#.~`#.~`#iC`!~&` F$3` H\"deg\" ||`#O$`\",-\\xB0`+`#red /= 360`$YChs`#~~`.c#R.hsb2rgb(`,s5`%A'6`%;-6`$J~`$J~`$J~`$pXl`$J~`%B&l`%+=`2H\"{r:` ?\":` ?$:` C\"`4F2rgb.hex `3x! + (16777216 |` |! |`!)\" << 8 | red << 16).` i$(16`\"v$1);R.is`\" $, \"finite`#\\$gb.`##&`!q%`\"?#rgb;}` %#{r:-1, g:-1, b` '!hex:\"none\", error:1`!}4}, R);`(]! = cacher(function (h, s, b) {`({-` 3$.hex;}` ^\"l` J6l` V*`$>\"` 3$` Z&`$4\"` S-r, g`!;)`#p/ | g`#s%`#\\:`!&!getColor = ` &`&Q!`*|!r start = this` E%.start = ` \"0|| {h:0, s:`$(!` i! || 0.75}, `\"8\"` U!`#?$` T!.h,`!(\".s,` \"#b);` 4# += 0.075;if ` H$ > 1) {` &$= 0` H#s -= 0.2` &%<= 0`&.!`!q2`!c)`!4#})`&5%`'n#;}`#&'.reset`#*)) {delete`\"7\"` c!;};` 8%catmullRom2bezier(crp, z`#c#d = [];for (var i = 0, iL`-w!crp.length;` -\"- 2 * !z > i; i += 2` c#p = [{x:+ crp[i - 2], y` %'1]}, ` 8&` 1)+` ., +` Q++ 3` 1-4` 3+5]}]`$G!z) {if (!i) {p[0] =` O'`\"##` Q(` -\"1]};} else if (` /#4 == ` c\"3` \\)0` W'` E22` Q&2` >9` k,`!Q(3]};}` u#`\"1!`!A3p[2]`!8(`\"G2`#e.;}}d.push([\"C\", (- p[0].x + 6 * p[1` '\"p[2].x) / 6` <&y` :(y` >$y` >$` T%` >\"2].x - p[3` _'` R%` ;%y` <$` `$` T\",` 7#]`(=&d;}R.parsePath`+m\"`(4)p` .%`%L$` %)` `#null;}`'C!th = paths` P(`&2!pth.arr` M&pathClone` 2%` ^#aramCounts = {a:7, c:6, h:1, l:2, m:2, r:4, q:4, s:4, t:2, v:1, z:0}, data`)[\"if (`1q!`!I&, array`1q!` ,+`&:!` 8\") {` _#`!a'`\",'}`\"n!data`*C#) {Str` 8(.replac` R\"Command,`#W'a, b, c`*`$arams`!q!, name = b.toLowerCase();c` f)Values` b,) {b &&` i#`&z\"+ b`0^!if (` u\"= \"m\"` <'`!~\" >`,2!`\"1!`'S\"b][concat](` C#sp`1O!0, 2)));`!c#\"l\";b = b` s$? \"l\" : \"L\"`#&\"`!/%r\"` d;))`)F${while `!3$`!]$=`%\\([name]`!LF` I.)`\"s\"!` a0break;}}}});}` }!`48$ = R._path2s` ,!;`'D#`%f)data);`),$ata`1S!`)3!Transform` g%cacher(`$f&T`)3*` %&`),.`(K*r:3`(/(m:6`( 2` k#`(\"-` 1#`'q;`!H$`'t5` 9$`'.%t`'RQl`'{$.call(b`'G^`&?<`$k>`$f));`!u\"ths`-v*s`\".$`-S$.ps`-^$.ps || {}`-]\"[ps]`13!ps].sleep = 100`(#%` 5! = {` 8!:100};}setTimeout`%l') {for (var key in p`%}#p[has](ke`%'\"key != `!c!p[key`!4#--;!` $( && delete ` 1\";`(-!`/F$[ps]`'T!findDotsAtSegment`\"a*1x, p1y, c1x, c` %!2x, c2y, p2x, p2y, t`#/#t1 = 1 - t, t13 = pow(t1, 3), t12` ''2), t2 = t *` K!3 = t2` '\"x =` \\!* p1x +` V!* 3 *` I!c` -#` ('` 2!2` 2!` Q!2x, y` Z'y` R/` .\"` T-` 2!` _\"y, mx =`!>#`!W! * (c1x - p1x) +`!m\"(c2x -` =!`!W\"p1x), my` X!y` O*y` X!y` Q(y` T%y` X!y), nx =` g#` S&`!\"!c`!.(p`!0&`\"[!c`!5!ny` X!`!,*`!\"!c`!.(p`!0&`\"S!c`!5!a`#y\"`#t&`\"1\", a`#M\"`#H&`!m\", c` I%`#~#`#|$c` I%`#R#`#P$alpha = 90 - math.atan2(mx - nx`#7!- ny) * 180 / PI;(mx > nx || my <` ;!&& (` h\"+= 180`']%{x:x, y:y, m:{x:m` )!my}, n:{x:n` +!ny}, start:{x:a` /!ay}, end:{x:c` -!cy}`!m#:`!'!}`(Y!bezierBBox`($O`0=$`/;!` N!\"`/5!\")) {p1x = [` DB]`0m\"bb`!C!curveDim.apply(null,`&k!`\"m'bbox.min.`\"8!` %%y, x2` (#ax` 8!` $'y, width` 6' -`!1!` c$height` G'` 4(y`#.\"isPointInside`#*-bbox, x, y`3+&x >=` a\"x && x <` '$2 && y` 6%y` )\"` 7$y2`!*#BBoxIntersec`,s*bbox1,` J!2`,]#i`0V!`!U-`#5$i` O!2` N\"1.x` W\"1.y) ||` --` ?%` )2` 5%2` ?;` 4(`!h$` W$2` p)` 4&` W#` '4` 5%` f2` T&` :\"` 9\".x <` 9% &&`!b$ >` .$ ||` \"%` E\"1` @'2` B%1.x`)u\"`\";#` o%y` m'y` o%y` n&` C$1` @'2` B%1.y);};`$z%base3(t, p1, p2, p3, p4`1e(-`0=\" + 9`,9! -` #\"3 +`06!p4`1^(1 + 6` K\"- `0m!p2` +$3`%^$` E!2 -` Z\"1` a$2;}`!O&ezlen(x1, y1, x2, y2, x3, y3, x4, y4, z`+ #z == null) {z = 1;}z = z > 1 ? 1 : z < 0 ? 0 : z;var z2` >!/ 2, n = 12, Tvalues = [-0.1252, 0.` \"\"-0.3678, 0.` \"\"-0.5873, 0.` \"\"-0.7699, 0.` \"\"-0.9041, 0.` \"\"-0.9816` ,!816], C`!(&0.249` H!249` \"\"335` +!33` \"\"03`!L!20` \"\"160` C!160` \"\"06`!9!10` \"\"047` C!0472], sum = 0;for (`*'$0; i < n; i++`%3#`*d!z2 *`\"i$[i] + z2, xbase =`%t#ct, x`$:#x`$4!), y` 2-y1`$Z\"y3, y4), comb =` f#*` n#+` S#*` \"\";sum +=`\"z$[i] *`2g\"sqrt(comb);}`&-#`!h!sum`%y'getTatL`%d?`%s!if (ll`%a!||`&;B) <` V\"`!?\"`1#\"t = 1, step`(1!`&;!`(;#-` 2!, l, e = 0.01;l =`'GDt2);while (abs(l -`!:!> e) {`!,!/= 2;t2 += (l`!Y!`'x#-1) *`!9!` aL`#Z$t`)T(i`0I$`\"a=`#S!mmax` E!x2) < mmin(`%h# ||` )#` 8#> ` H\"` 3(ax(`%}\"` U%`&##` U%` 7$` W#` 8#`$,+nx = (x1 * y2 - y1 *`!/!* (x3 -`!,!-` =!-` -'* y4 - y3 *`'[\"ny` N6y3 -`!U!- (y1 -`!Q!` Q3denominator` j#`!.%` L7`!b!;if (!` V'`\"<+px = nx /` y(, py = ny` &-x2 = + px.toFixed(2), py` 0#y` ,'`!5!px2 < +`$M)` 9' ||` o!>` >!`%2&` 0/` \\&`%+\"` I9` -2y` ['`%A#` 0/` ]%` )6` \\&`%y\"` I9` 2-`#w'`(L#{x:px, y:py}`(M,(bez1, bez2` P%` 4\"Help` 2*` L,Count` 6G, 1` S-` 2/just` v!`/#bbox1 = R.bezierBBox` L!),` 7!2` )/`%Y#!R.isBBoxI`+ %` i!` R#`#\"&`!+&`45#[]`';\"l1`,>%.apply(0`!c!1), l2` &22), n1 =`$<\"~~(l1 / 5), 1), n2` .(2` /'dots1 = []` &\"2` %#xy = {}, r`4<!`!X/`3511 + 1`3C(p`#$!findDotsAtSegment`!u#R`\"2\".concat(i / n1));`!Q!.push({x:p.`&$\".y, t:` ?\"});}`!=!`!2(2`!2(` v@2`!-)2`!3#2` ~82`!%1`!-%`\"m%j` 8\"j`!S!; j`\"i%di =`#q\"[i], di1` && + 1], dj` ,#2[j` *!` ;$2[j` <#ci = abs(di1.x - di.x) < 0.001 ? \"y\" : \"x\", cj` D$j` E#j` 35is =`28'di.x, di.y`!e!` '\"1` )!j` (!j` &\"` 4\"j1.y`'\"is`2X#xy[is.`.2&4)] == is.`./&`1h!continue;}` >1` B,;var t`\"s!i.t +`\";!(is[ci]`\"i![ci]) / (di1` '*`0h!di1.t`#1\"t), t2 = dj` \\*j` P!j[cj` c#j1` '*` d\"j` c#j.t`\"W\"t1 >= 0 && t1 <= 1`#c!&& t2` 0&2` 1%`#$#`+x(res++;} else` )!`&j%is`&n\"is`&p!1:`/1!t1`*)\"t2` )#`-4!});}}}}`.l$res;}R.path`,3%ion = `-W%(path1, path`.,,Path`-t#` 9);};` c.Number` <[`/7\";`/0*` 35`#4(` 5!`*\\!_` 9!curve` J\");` -!` (12`&2\"x1, y`4R!, y2, x1m, y1m, x2m, y2m`,R\"`0V$`-=C, ii =`!j!1.length`+9\"ii`-f)` <%[i]`&,!pi[0`(R!\"M\") {`1U!x1m = pi[1];y1 = y` )$2]`%p%` O*C\") {bez`/k!`\">\"]`-9$pi.slice(1));` |!bez1[6` v#` (!7` o&` X*,`#(&`# &` ##]` h\"x1m`!^%`-y#`-]%, jj`\"L#2`\"o%j < jj`-m(p` <%[j`\"q#j`\"j*2 = x2`\"b!j`\"s!2 = y` )$`\"h,` T%`\"p$`2W!`%.\"`\"n&j`\"l(`3v#2`\"s!` $%`\"j*` ['`%w'`%o%` \"$]` h\"x2m`!^%;}`%f!ntr`.\\$`'a#`&@(`'\\&`\"^!`+&+ +` U!r`!H%`#a%k`#d\"kk` v\"r`#`%k < kk; k`#d!intr[k].s`3(\"1 = i;` &+2 = j` ,%`%D#bez1` ((`\"v$;}`(8\"res`3d%ntr`,%1isPointInsidePath`+/-, x, y`%J#bbox`*\"!pathBBox` >!);` n#` a+` <!bbox` \\$&&`+<1, [[\"M\"` @\"], [\"H\",`!'!.x2 + 10]], 1) % 2 == 1`-;!_removedFactory`!l)methodname`--&` 4&) {eve(\"raphael.log\", null, \"Rapha\\xEBl: you are calling to ` t\" \\u201C\" +` *#name + \"` 3!D of `!W# object\",` >');};}`-2!pathDimensions`#M)`#x-`)L$`$?!paths`#v#`(v!th.bbox`\"E&clone` .&;}if (!` b#` =#{x:0, y:0, width:0, height:0, x2` 9!2:0};}p`%V\"`//+`/6#`'c\"y`'j\"X = [], Y ` \"\"p`.Z6`.\\3p` 8#`.d%`+f* = p`+g!` $!2];X`4E\"x);Y` $\"y)`)E%var dim = `!q!Dim(x, y,` ^!,` [!, p[3` '!4` '!5` '!6]);X = X[`(^\"](dim.min.x, ` &!ax.x);Y = Y` 3-y` :&y);`!m\"5`!k$6];}`+t!xmin = mmin[apply](0, X), y` %1Y), xmax` 5!ax` C-` &0Y)`$v# =` V\"-`!2!`%!$ =` R\"-`!.!, bb = {x:` >\"y:` 0\"x2:xmax`%I!y` $!`%j\"` t!`%k%` l\", c` Y\" +`!2#/ 2, c` f\" +`!1$/ 2};`&x$ =`'*#bb`+E%bb;},`%D!Clone`( -Arra`,1$`-,\"`'m#` 3%;res.toString`(y!_`'<!s` ,!`! $`-F!`!#\"ToRelative` D&` ')`!(6`)H,`!;#`)U$rel`).&`\"+%` 2%`)X#R.i` S', a` {\"|| ` ,+ &&` a!` (![0]` C$) {` :&`+I\"rs`/T!`\"_\"`!O(`&^!`#3\"[],`)w+m` (#m` )#start = 0`\",\"`!0'`)K.` 1(`)`$` ((2];` z!x;` y!y;` x!++`$J!`)|!`0$');}`+3)` G!`+9'` q!`+23`\"<!`2d\"[i]`,($a`!C)`+\\$a[0] != lowerCase.call` 2\")) {r`\"C!` )2;switch (r[0]) {case \"a\":r[1]`!)![1];r[2` ];r[3` ];r[4` ];r[5` ];r[6] = +`!\\!6] - x).toFixed(3);r[7` 6&7] - y` 3)break;`!J\"v`!G%` I\"1` 1:m\":`$A!`!w\"`$E!`!u\"default:`$.%j = 1, jj` >!`$#%j < jj; j`$'!r[j`!1&j] - (j % 2 ? x : y)`!<)}}`/9$`$Q+`$B'== \"m\") {`!]& +`&-$`!f! + y`%t'k`'E\"kk`!Z*k < kk; k`!b\"`!'![k`#}#k`/$$len`!A%` S$`%.%` N\"`%1'z\":`.g!x`'y!my`#M)h\":x += +` h#[len - 1]`$?,y` *8`#$` W02];` E3}}`-6:`,*#`(<#`,?\"res`.l%`-`)Absolut`-`)` )'`-4Uabs`-U4abs`,k~`-Y0`!.!` E&|| ` $&`%I#`!j&[`,[\"0, 0]]`-Pu+`.61` '+`.18`,m\"`.B'`!e\"crz`.*/ == 3`#;,`!J&` ,*1][0].toUpp`-i\"()` C!R` 9+2` 13Z\";`)n%r, pa,`/LM`0d%r`#s!);`/Z;u`!;$`/c2` *1`/c2A`/&o+ x`/\\.+ y`/&*V`/X'`-I$`+n*H` //x` 5)R\":var dot`',!`%S)`$8&j = 2`/z#dots`/l3dots`/~$` $$+ x;` '!++` )-y;`,H!pop();`(Z\"res`!C%catmullRom2bezier(dots, crz)`\"i*M`2$#`\"G(`()!` ,!`0A#`2*)`1eJ`2,\"+`2\",`1|&`1g*R\"`\"f#`#A;`\"#V`'n!\"R\"` f/-2));`3U$`2LK`2h*`'g1Z`2=8H` 7\"r[`2<+V\":y` $0`$P$r[r`+}$`27!`$W!` ()1]`2e'` ?.` <0`2F@abs`2J<l2c`2>)x1, y1, x2, y2`0('` +*` 9$];}, q` M3ax, ay` a'var _13 = 0.333333333` \"#, _2` 4\"666666666` \"#`!j$[_13 * x1 +` G!*` |!` /\"y` *'y` -$x2` 60` *'`!S%`\"\"!a`!p3rx, ry, angle, large_arc_flag, sweep` %#`\"u$recursive`\"L%20 = PI * 120 / 180, rad` 0\"` +! * (+`! \" || 0),`3j(y, rotate = cacher(`!`', y` j!`!)#X = x * math.cos(` 6!- y` ,$sin` /!, Y` ?(` /$ +` A&` W$`#${x:X, y:Y};})`1?!!`\"C(x`'(!`!e!`#9%-`!V!;x1 = xy.x;y` ##y;` B)`#7#` G$2` F%` ##y;var cos =`!R&`#4'`#7!), sin` :$sin` .0x = (x1 - x2) / 2, y = (y1 -`''!/ 2`!(!h`\"x#x / (rx * rx`\"w$y` /!y * ry`\"d\"h > 1) {h`!6%qrt(h);rx = h` Y!;ry` $$y;}var r`\"E!` v#, r`\"J!` q#,`,w!(`&G* ==`&L' ? -1 : 1)`$^%qrt(abs((rx2` b!2 -`!\"!*`!r#-` /!*`\"5\")`\"6\"` 4&+` 1))), cx = k`!\\!`\"R#ry +`#>!+`#9&cy` ?#-`!y\"x / rx +`#S!+`#P$, f1`\"x$asin((`#q\"cy)` s!).toFixed(9)), f2` =,2` 54;` t!x1 < cx ? PI - f1 : f1;` c!x2` .*2 : f2;f1 < 0 && (` ^!`)d!2 + f1);f2` 3&2` 0)2`%0\"`$ '&& f1 > f2) {` f!f1 -` L#;}`(I!` @+2 > f1) {` x!f2` D'`2?%1`3:!`(~#[0]`\"'\"` (&1];`$=!` (&2];`$)!` (&3]`&H\"df` $f1`!z!abs(df) >`,B!`+;#f2old` D!, x` %#`)Z\"` &\"y2`!>\"f`.T!12`,Y!`\"%1 ? 1 : -1`*+#cx +`&!\"`)z%f2)`*>\"c`&V\"`,#(f2);`-A\"a2c`*z%`.e+0`.W,old`!e#, [f2,`\"*\", cx, cy]);}`\"Z)`+R!`&l%`!N!1), s` *%`!E!1), c`&e%`!r#, s` *%`!i#, t` *$tan(df / 4), hx = 1`2I-`(n$t, hy` )5y` <\"m1 =`4%$], m2` )\" + hx * s` 4! - hy * c` >!3` >!2` :%`#>!` :%2], m4` =\"`2e\"m2[0] = 2 * m1[0] - ` /!;m2[1` /'1` 3#1]`&#!`/z(`4K$m2, m3, m4][concat](res);`'S$`2;#` 04.join()[split](\",\")`$H!new`2t$;for (var i = 0, ii`'s!s.length; i < ii; i++) {` U\"[i] = i % 2 ?`19$` 3! - 1]`3v![i]`3O\".y :` 7)` 8$ +` F\"ad).x;}`\"O#` |\";}}, findDotAtSegment = `4L&p1x, p1y, c1x, c` %!2x, c2y, p2x, p2y, t`)M#t1 = 1 - t`4!'pow(t1, 3) * p1x + ` +$2) * 3 * t`%G!x + t1` ('` 2!2` I%` \\$2x, y` h,y` ^6y` b2` I%` o%y};}, curveDim = cacher(`\"BL`\"h#a =`!z!-`&k!`\":\"p1x - (p` -&`\";!c1x), b`'4#(c` A!p1x)` ?#(` b\"` A\"c =` a#`!@!`#q!(- b +`3S'b * b - 4 * a * c)`27! / a, t2` K$-` +Dy = [`\"U!p2y], x` *\"`\"L!x], dot;abs(t1) > \"1e12\"`1N!`!Z!0.5)` 9\"2` /,2` 7$if` H!>`2%\"t1 < 1) {do`&p!`&y+`&RF1);x.push(dot.x);y` $&y)`2M\"t2`!.%2` Pc2` x;`%W\"y`%T%`&i!1y`%W\"` .%`' !c1y);`%Q'y`%W!y`%Q'y`%G!y);`%U\"` (#;`%)M;`%(M`$2~`$2~`$2~`!0#`-M$min:{x:mmin[apply](0, x), y` %,y)}, max` J\"ax` =/` ()y)}};}), path2`,f! = R._` #)`,f.ath` M#`,V#pth = !` .! &&` 7!s` C!`$P\"` /'th.` t!`3M&pathClone(` 3&;}` r! =` 9!ToAbsolute` n\", p2` 4#`!&%` 5+2), attrs = {x:0, y:0, b` &!b` '!X:0, Y:0, qx:null, qy` $!}` U#2` &SprocessPa`\"r!`#),d, pcom`#4#nx, ny`\"|&`\"n&[\"C\", d.x, d.y, d.x, d.y` *&];}!` p![0] in {T:1, Q:1})`(V!d.qx = d.qy = null);switch`!F\"[0]) {case \"M\":d.X`#O#[1];d.Y` &$2];break;` E\"A\":p`\"5\"[\"C\"][concat](a2c`&2'[`!]%` 8%p`+ !lice(1))))` i)S\":if (pcom == \"C\" ||`#%!` *!S\") {n`\")\"x * 2 - d.bx;ny` /!y` *&y;} else` F&` <%;}`!o',`#v#`!I4`!R)T`!P+Q`!Q*T\") {`#g%`!W&qx;`#x#`!W(q`!Y&` J&` >'`!Z)`!U&q2c(`%:(q` &!qy`)G\"[1]` \"#2]`!n+Q\":`!!#`$t&`!'!`$w$` l?` s,` \"#3` *$4`!%,L`%P3l` Z9` V+H` 7Jd.y` R+V` <A` %!` _#` R+Z` :CX, d.Y` T%default:`/@%path;}, fixArc`*j*p, i) {`&<!p[i].length > 7) {` -\"shift();`-T!i = ` 2!;while (pi` M#` K!.sp`'@!i++, 0,`!k+pi` 8$0, 6)));}` H', 1);ii = mmax(p` q#`.O!&& p2`!U$|| 0);}`\"-\"M`,x-1`0<#, a1, a2`\"8'ath1`/0$`/8%1[i][0]`(i!M\"` 6%` /#!` 1!) {` 0!`!b'`\"9!M\", a2.x, a2.y]);a1.bx = 0` %!y` \"$`'z$`!'!1];a1.`'~$` .!2]`\"-I;for (var i = 0, ` 3F i < ii; i++) {p[i] =`0M((p[i]`1A#);`%o\"(`%c!;` l\"(p2` B/2` L&2)` C$` V$`#!;fixM(p, p2` B#` H$` 3'2, p` -&` ?#i`&W\"seg = `!Y\"seg`4%!`\"=#` ,$len = seg`\"]%seg2` 0\"` F\"seg`\"j$;` z!`$7!seg[` X#- 2]` 3#y` *,1` 2$`$!toFloat(` 6)4]) ||`!t\".x` G$y` 743` C(y` I\"2` y\"`#g#` L'2[`\"&$` z*2.x)` R%`&3!` >9`!((2.y` R%`!+&` B+`\"i$2`'/\"` /01];}if (!p2) {pth.curve`']#Clone(p)`,*&2 ? [`%G!] : p;}, null`)u\"` J!), parseDots = R._` #(cacher(`*P&gradient) {var d` A\"[]`(52` F$`%B$`('+` [# = {}`!B!` H'[i].match(/^([^:]*):?([\\d\\.]*)/);dot.color`!q!getRGB(par[1]);if (` 8%.error) {`\"o#null;}` T(` A&hex;par[2]`$v!dot.offset`#^!` 3!+ \"%\"`!;!s.push(dot);}`\"\\!i = 1`\"V#` <!`*n#- 1`\"M,`$b!dots[i]` }#`\"l#start`'?'` ?\"`%9!`!E$`+`!, end`-6!`#t%j = i + 1; j`!'#j`!%%` c!j`!\"'` Y\"` )*`28#}`&A\"end` ?%100;` {!i;}` ,\"`!Y$end`+5\"d = (end -`!\") / (j -`!N\")`!b\"`\"c\"j`\"`$`\"H\"+= d`#N!`\"d& =`\"c#`#l!;}}`'N$dots;}), te`%n!R._` ##`&~&e`'_!per) {el ==` (\".top`.7\"` %%= el.prev);` =(bottom` A'` *#` J!next);` \"#` ?!` %#` d!` e*` -\"` =#prev` O\"` ]'}, tofront`\"&#` $%`!z2`3^\"`!w%== el`'U%;}tear` E'`!^%=`'s\"`!J$`\"g';` e%`!R&` *&` )\"`!`!back`!\\$` %#`!C<`#/$`!<F` L(`!c'`!x!` 0(`#b&` *)`!f%insertafte`%^#` #*`!k*el2`!t&`!J.2`%b<` @!`%C(` '\"`!Z&`\"6(` 6$`\"3'el2` X&`!t*before`!w(` )%`!LT`'A8`\"$\"`'*'` '\"`!P&`'K&`\"$\"prev` J&`!w!`\">)`%u\"Matrix`\"!!` \"'`!w&path, transform`-D#bb`24#Dimensions` E!), el = {_:{` K%:E}, getBBox:` p&`/o&bb;}};extractT` O$`#!!`!/&;` F#el.m`!b!`!{!` 7$Path`!\"` #+`!n8` k#mapPath` 9$`\"_#` ?-`*l!`!U,`%9\"` #/`%5*tst`)7$tstr =`(R\"`!:&el._`!r&;}` @\" Str` L!).replace(/\\.{3}|\\u2026/g,` K+ || E`/o\"tdata`![!parse`!T%String` q\", deg = 0, dx ` \"\"y` \"\"sx`3.\"sy` \"\"_`-U\"_, m = new `#\"\";`!2(=`!/#|| [];`\"J!data) {`2b%i` y\"`4&!` 8!`4%#`3x,`!~!` <$[i], tlen = t` J#, comma`2M!`##![0]).toLowerCase(), absolute = t[0] !=` N$, inv`+m!` ;%? m.` 0!t() : 0, x1, y1, x2, y2, bb`\"0!`!0%= \"t\" &&`!U#= 3`$#` l$) {x1 =`!&\".x(0, 0);y` )&y` ,#x2` ;'t[1], t[2]);y` /&y` ,)m`#r\"late(x2 -`!g\"2 - y1);} else {` :(` R(}` :#`!,r\"`' $`\"+#2) {`*J!bb || el.`*$#(1);m.rot` q&bb.x + bb.width / `#/!.y` /\"height / 2);deg += t[1]`!d$`!*(4`#5/`\"t*2`\"&!3`\"p.` /&`!O+`$_\"`\"o(` 2)` N(}`!R)`\"t3s`\"z- ||`%=)`\"}7scal`!0&` P!- `\"uKsx *`!]#sy` %\"` `%`#A05`#4=3`!I!4`#C.` /&`!k,2`#E1` 2.` X(}`!g/2`#O6m`(v)7) {m.add` h3, t[5` '!6]);}_.dirtyT = 1;`0T% = m;}}` \"*_.`-0!sx;_.`-2!sy;_.`-\\\"deg;_.`-`!`-e!m.e;_.`-h!`-m!m.f`*v!sx == 1 &&`-u!` $#!deg && _.bbox) {` #\".x += + dx;` *#y` *#y`#C%`!s)}`3D\"Empty`0x)ite`44$l = item[0];switch (l`-J*) {case \"t\":`1:#[l, 0, 0];` 4\"m` -)1` 7\", ` \"#` >$r\":if`!8\"`.o#`)u$` i*`!K!2]` \"#3]`&v%` ;)];}` q\"s` b15` i*1`!I!` j#` \"#4` p&` N/3` O.`!411];}default:`#n!equali`39'`3R!_` #0`$)&t1, t2) {t2`1Z$2`4M7t1);t1`4571)`3P#` k!` .42` >$var max`\"V$ mmax(t1`34%t2` $#), from = [], to` \"#`4A#j, jj, t`\")!t2;`4c!`4F\"` u%`4K$t`!{!t1[i] ||`' %(t2[i]);t`!t!` (!` 1*t1)`(W!tt1`4=#tt2[0` A!` .\"`'1*`1b# &&` N\"2` K%2` K%3` +%3]`\"n!` P5s` _&` I(` L$4` +%4])`%x%;}from[i]`#)!;to` \"%`\"|!j`#6#j`#p%`#n(`#q&; j < jj; j`#=!j in tt`+/!(` {#[j] =`!F!j]);` ;#2`!n\"o` 5'2` ;!}}`'B#{from:from, to:to};};R._getContainer`'#)x, y, w, h`+B#c` ?$;c` F'`(e!null`,s!R.is(x, \"object\") ? g.doc.getElementById(x) : x`%\"!` c'` d\"`#K'` 3).tagName`1p#`.*!` C) {` C%:` M%, `34!` '&.style.pixelW`3O!||`\"3&.offset` 4!, `3Y\"` F2H`3u\"` J/` 4\"}`+<,`!B8y`!#%w}`$J'` H&1, x:x, y:y` L$w` K%h`$g\"pathToRelative = ` #*;R._engine = {` I$2cur` D%` '\";R`2]&`%G&a, b, c, d, e, f`#m&new M` L!` 3.;};` Z%` ,4`$j\"a !`$g%this.a = + a;` (!b` (!b` '\"c` (!c` '\"d` (!d` '\"e` (!e` '\"f` (!f`#%` m%1` j&0` h&` $#d` 7&e` ,&f` &!}}(`\"g&`\"~\"proto) {` #'.add`\"{<var out = [[],`.>![]], `.T![`!d\", `!V\",` \"\"e], ` 4\"b` +#d` 3#f], [`4+#` `!`$V$[[a`!3!` V!b`!;!` <,`*B\"z, res`)K!a && a instanceof`$Q#`\";%` r\".a, a.c, a`!S\"a.b, a.d, a`!A+;}`-@!x`#=! x < 3; x`,|!` 4!y` 3\"y` 3\"y` 4!res` 1!` <!z` ;\"z` ;\"z` 8%+= m[x][z] *`\"M#[z][y];}out[x][y] =`\"4!}}`%4%out[0][0]`%;&out[1` )&c` <&1` ,#d` <&` +$e` <&2` ,#f` <&2];};`%H(invert`%J)`%@#me =`$c!, x = me.a * me.d - me.b` (\"c;`(}.` @!/ x,` B$` \"&c` &\"` i!` %!(` 0!` f!f` =\"d` (\"e)` 7&`!%#e` ;\"`!A#f` <!)`\"\"+clo`+E!`\"#)`!Q.`'>)`'1$`'K$`'9$e`'A$` u,translat` {*x, y`*}%dd(1`&F!0, 1`'J\"` V,scal` P., cx, cy) {`0c%`3C!y = x);(cx`/Y!y) &&`!Z\"` },` Z#`%8\"add(x` 5$y` #\"` AA-` c!-` e!`!k*rot`\"L,a`\"<# {a = R.rad(a);x = `!$!0;y = y` %\"`4R\"s`-C!math.cos(a).toFixed(9), sin` 6&sin` 2*`\"1&cos` H!, - ` \"!` ,!`#i\"`\" 3`\"1!`\"$-`0i*`\"&#`%r#x *`\"}# + y` %$c +`%a#` \\+y` G@b` _(d` c$f` \\+ge`)O*i` `&` L\"[Str.fromCharCode(97 + i)]`#&%4`'.-oString`(03R.svg ? \"` N\"(\" +`/[#get(0)`(/#get(1)` \"'2` .(3` .(4` .(5)].join() + \")\" :` f4` d)` ~)3)`$l\"` b$`\"0-Filter`\"*3\"progid:DXImageTransform.Microsoft.`+ #M11=\"`$4$`!Z\" + \", M12` +*2` 1$2` C+1` 0%` C+3` 2#Dx` **4` 0$y` **5` 1#sizingmethod='auto expand')\"`\"Y+offs`%r+`\"\\&`#o\"e`%\\'`-'$` ('];};` T%norm(a` X&a[0] * ` \"!+ a[1` (\"1];}` G)alize` T!`0t!ag =`*1#qrt(` o#);` c!&& (` $!/= mag);` r!` 0\"1` ,&}`-|)pli`1o1out = {};out.dx`2*#.e` *\"y` ($f`,-!row = [`\"q\"`03$c],`#\"#`0=$d]]` Z!`/9!`2u!`!|*row[0]));`\"P&` ,#` Q\"hear = ` .\"`#;\"row[1` '!+` 0$`#F!` 1#1];` $\" = [` B&-` W)` s%,` M&` 9&` j!` :%`!v'y`!k21`!o.1`!t)/=` i\"` _!`#:!`/+\"`!''`.f!`\"C#`\" \"if (cos < 0) {out`0`&R.deg(`!E!acos(cos))` L!sin` =0360 -`!?!` -\";}} else` ]7sin(sin));}out.isSimp`3}!!+`\"s&`0{'`&R!`%\"&` .(=`\"T(` -(|| !`!8&`#-\"isSuper` k@` _K&&`!\"(`!(!noRota`(\"!` m9` L(`*)#out`-x-`-T%`0@/shorter`)&#s = ` +# ||`1W\"`)U!](`$c#`#j%) {s`(W&+ ` %$`1g(` -#y` 5(`\"R&` <!`$}%+ ` %$` 5(`\"/#(s.dx || s.dy ? \"t`2,!s.dx,` /!] : E) + (`!L%!= 1` M\"`!>#` ,!? \"s` U#` B\",` 8%`1H#` _'`!V#? \"r` M#` ,\"` >(;`',$`1Q$m`2zn;}};})(`2+\".`$r!type)`)p!vers`%d\"navigator.userAgent.match(/V` ?\"\\/(.*?)\\s/`'a!` 67Chrome\\/(\\d+)/`%7\"` E&vendor == \"Apple Computer, Inc.\"`)1!`!Q$&&`!\\$[1] < 4`!-*plat`4U!slice(0, 2`(I!\"iP\"`!W+`!,'Google`!$&` u48) {paper`1 #afari`0t0rect`0e$rect(-99, -99`$$#width + ` (%height` -!).attr({stroke:\"none\"});setTimeout(`4O+ct.remove();});}`%}%`!U3;}var preventDefaul`2}-`!t#turnValue = false;},` R$Touch` H,`'2#` Z!originalEvent.`!\"*();}, stopPropag`,9$`!3.cancelBubb`-g!tru`!@!stop` sK` +`!=\"get` 9!Posi`!3-e`,c$crollY = g.doc.documentElem` u!` ;!Top ||` <#body` .&,` \\#X` D;Left` O1Left`,Y${x:e.clientX +` r$, y` .%Y` .%Y};}, add`\"@! = `%o*if (`!&\"` ;$Listen`/@!`!(#` G&obj, type, fn, e`!u\"`\"}#f`#%1pos =`#T-(e`.e%fn.call(` f#, e, pos.x,` \"!y);};obj`!O-(`!A#,`&r\"`0k#upports`%S\"&& touchMap[type]`!M#_`!<K, olde = e;for (var i = 0, ii = e.targe`(+\"es &&` #,.length; i < ii; i++`#w#` ;+[i]` *# == obj) {`!6!` 6-;e`'Q* =`!b!;e`({+ =`)d);e`'x, =`(c&;break;}}`#]]`#l), _`$?&` s%`&](obj`,^#`$B`` U5`!G+`!C.`+Y\"`-z&`(6'ttach` k!`'Y_`$o!`*D\"win.`$;!`3}!`*i~`+G@, x`&P!`+R0` .'`+]'`&D0` \"-||`1(+`&Y1` \".||`0;,`+#8x, `&o&`$L&(\"on\" +`$=$)`#j!detacher`0V,obj.` 6\"` F2`%a*` '#` e$;};}})(), drag = []` %\"Mov`3E!`+k-`#a)`#U+`$i$`$R~`%4<dragi, j =` &!`,n$while (j--) {` ?!` :#[j]`)[2e.`)E!es`\"X#`-#`-`),`*1\"` v$i` y!` .!` A([i` }\"` *!.identifier =`!=\"i.el._`!i!id) {x =` r\"`#e$;y` #+Y;(`.*,? ` \",: e)`'N+()`-t%`+5#{`'p,();}var no`0j!`!W%node, o, next =` ;!.nextSibling, par`/]\"` 6!` (\"N` Q!display` 3$style.` .#;`+W\"opera &&` _#`-S#Child(node);` I. = \"none\";o`!^(paper.ge`%p$ByPoint(`)-\"` R1`!53(`\"G!?`!L$insertBefore`!P!`\"g\") :` :$append`!k');o`&'!ve(\"raphael.`%$!over.\" +`!m&id`'6#.el, o);x +=`(,$;y` #&Y;` ].move` W4move_scop`/G!` y&x -`&O,x, y` $.y`,I\", e);}}` q\"Up`*s-R.unmous`$U!(`+C$)` .$up` /!Up`,o\"`)8$`(a%`!0!`(\\*`)[)i];`!J* = {}`\"Y/end`#A5nd`\"Z,start` %,`\"{4e);}`-f%;}, elproto = R.el`!L\"for (`+)%vent`+'$; i--;) {(`#/'ventNam`#=![` %%] =` u$` '*` P&fn, `!_!) {if (R.is` 0!\"` <$\")) {this`4V\"s = ` \"(|| [];` ''.push({name:`!,%, f:fn, unbind:add`1(\"` S!sha`\"~\"` )!`+/!`.s$,`\"V\"` \\#`!d$` D$)});}`1Y$his;};R[\"u`1|!`\"P1` (0`\"`(`.#`\"/6, l`#-`&G#l`&I!if`$'#s[l].name =` J#Name`*l!`#Z&undefined\") ||` q#[l].f == fn)) {` +&`#7\"();`!9#splice(l, 1);!`!H) && delete`!x(;}`\"+})`!e$i]);}`# #.data`\"m)key, valu`4_$` ;#eldata[` ~!id`#d\"` $*|| {}`1t!arg`4$!`!Z%== 0) {`!K#data;}` 141`&s(`!I!\"object`&y!`(B'in key` G#key[has](i`';%data(i, key`\"N\"`\"d*`*[*ata.get`*d!`\"+#,` $!,`!j![key]` f!);`!{'` 2!;}` \"% =`#5\"`+W+ata.s` g2` J!` k*`$J#`$:$`24\"D`$5/`\"Q& == null) {`$6.{};`4T%` .+`%q&` ++`\"2#`!<2get`!>-`$t&clone(`%H1)` Z'hover`)F*_in, f_out`*V#` ,!` $\"out` y&` q!`0@!over` R#` J$)` 3#ut(` _)out ||` =&`!A'un`!19`!*+`1Y#`!2%`1i%`!*%);}`1o!draggable`/z\"`)+%`0,\"`!\"&onmove, on`0y!, onend, `0m&, `1-', `1O%) {` ^%` =!`3U!(e.original`.W!`+l!).pr`*]!Default(`3R\"x = e.clientX, y` $'Y, scrollY =`.~\".doc`)l!Element.` :\"Top`/>%.body` .&` [$X` D;Lef`!b!` S-Left`1.\"`4`!.id`!]!identifier`+m!supportsTouc`-M!e.touches`,_#`3W!` ,$`+g#, ` +!`/N$i`/Q!` .!` A([i`2M#`!5'` 6!`!4,` %, =`0o#` Q$) {x` T%`#k#;y` #+Y;break;}}}` R'x = x +`#E$`!E(y = y` 2%Y;!` 1!`02&R`(*\"move(dragMove`(=#up` -!Up);` P!`4i\"el:`,6\"`&U&:`&S3:`&`2:`&w%});`'N#`$0!ve.on`-N'rag.` 9!`-M*` L#);`(3\"` B5move` J,move);`(\\!` ?5end` G,end`3h!`!;>`\"H' ||`\"z' ||`/N#`(g%`$H&` +&Y`$B&, e);`$|'`/'\"`+-%`$ ,`!5!`#m\"})`%=\"`$b!down(`#+#`.|2onDragO`,s-) {f ?`\"o2over`\"L*f) :` G!unbind` 1;`.3*`-#-`)M'`\"G&`'0\"`)C*if `'!!` =![i].el`(r$) {`.f(`\"c!` >)`\"n#` w&splice(i, 1`%*!`!u2*`!y+}`(o!`!W(`(s\"`!1#`(l+` /#`(n+`/}\"};paper`\"p\"circ`07!`\"l&x, y, r`\"v#out = R._engine` J#(`%H\"x || 0, y ` \"\"r` #!`%Q#__set__ &&`+|#` *\"`&,\"`1]!`%b#out`!G*rect`!@/w, h`!?6rect`!@3w` )#h` yjellips`#(1x, ry`!R3` P#`#+4` )$r` ,\"`!%]path`!V)pathString) {` #& && !R.is` 6', s` B#` */[0], array` :!` /' += E);`\"I0path(R.format[apply](R, arg`4-!s),`(q\"`!w\\imag`$-*src, `& &`$'3` S!`$5#src || \"about:blank\"`%~<`!8]tex`'i0text`!\\3tex`'b4Str(` U!` v]se`!H*itemsA`%8\"{`%U\"` )&, \"`%T!\"`%T\"` /& = ` #!.` p!typ`-G$.call(`%=%, 0`%I'`-*#)`&'(new Set`!<(`!{Dout.`\"5! `/=\"` ,!type = \"set\"`\"I8Star`\"\\*set`/}$`!4$= set`4$$.set()` X-Finis`)L*` d\"`\":&` h(;delete` &*`!L8iz`'q*width, height) {` U#`%}&` N#`$$\"`&)\"` F*` s-ViewBox`.r5fi` q4` S#`! (` I,`('+op = ` &'bottom = null`0P)`3@\" = R`%j!getOff`'/,elem`#e#b`!}!elem.getBoundingClientRect(), doc` <$ownerDoc`&v!, body = doc.body` F!Elem` -#d` B#Ele` J\"c` s!T`\"*!` D#.` *&||` l!` $*0` N$Left` F-` 0!` J*` +$0, `#2\"box`#=!+ (g.win.pageY`\"p#||` i%scroll`!=(` )%) -`!r&, l`!E\"box.` &!` m)X` b4`!_)` )&` r&Left`'N${y:top, x:left}`%B*ge`#K$ByPoin`-a.`$w#`*=(, svg`%$.canvas, targ`%Y!g.doc.e` q\"From` t!` g\";if`\":$opera`+Z!` T!.tagName == \"svg\"`!2#so =`&S&(svg), sr = svg.createSVG`&<\";sr.x = x - so.x;sr.y = y` *\"y;sr.`)H! = sr.`)K\" = 1`'^!hits` q#getInterse`\"f!List(sr,`(A!`!\"hi`.'& {`\"T%hits[` 1' - 1];}}if (!` @\"`*\"&`)/!}while (`\"`#parentNode`\"r& !`!P\"` .*` h#`)b$`!:(` [-;}` 4$`$I*` d+`!>#`\"_\");` a+`$B'`*v$?` g#getById`!}$` 8#id) :`\"@\"`\"K#` :\"`&L4sByB`-9,bbox`%C$`!F\"`0\"&` &!forEach(`,)() {if (R.isBBox`$b%(el`!f!Box(), ` w!) {set`22\"el);}}`4U%s`!X/ById`4T*d`-8%`!V%`.0\";`$s#bot`!J#bot.id == ` Q!`! #bot;}` X\"bot.next;}`%V)`!8(`\"I#`!7)callback,`!:!Arg`!)F` S$`0Z&Arg, ` <!=== false`!b&this`!T5` 7\"`$c5`+D9`$LMel.is` n!Inside` g\"`$M=` a%x_y(`\"**.x + S +` '\"y;}` @(_w_h` 2:` Q(`+_\"+ \" \\xD7 \"` 0$`+l\";}el`\"z\"`!u)`\"c4rp`\"r$realPa`,Z!getPath[` 3!type]`$X!`,7\"` 0!attr(\"transform\")`){!` %1`,_&`!'!R.` 3%Path(rp`&3\"` G.)`%3%R`!~*` O%`/q\"};`\"J$`)8#`(U*sWithoutT` r$`$}#`\"N#move`(E'{};}var _`\"o$_`\"P!` M5_.dirty || !_.bboxwt) {`#)E` L$`2N!thDimensions`!X$` ]\"` ?&.toString =`%s$;`!=$= 0`#+%` H$;`0:!`!\\'` $#T`!h'`!y/`!0* {`!]'0`(Y\"`!z@}` Q\"`\"+.map`$a!` ])`%B#matrix)`\"K$`\"3:`\"%%`\"J.`%N'clon`'u*`%(9`-S\"var ou`+1%`+u!`\"7()`'-\"`'3&)`+R#__set__`(*%` )#`+3\"out`+-%out`'2(low`!W)glow`!\\(type == \"text\"`!_,` X#` \"!|| {};`-6! = {`+-!:` k!`+7#|| 10) + (`+6#`)8\"stroke-` ?!\")` A!), fill:` X!fill ||`/3\", opacity` 6\"` &# || 0.5, offsetx` 6#` '\"` 8!` 3$` P$` '\"` 4#color` 3\"` &! || \"#000\"}, c = `-8$/ 2, r`$0),`$H#r`/`\",`&P!`,n-||`&v6` E(`&a\" ? `'$$p`&r- :` ~!;for (var i = 1; i < c +` &!++) {ou`0P#r.p` c$`%x#{`#n\":s`\"J\"`#g#s`#e\"? ` 0# : \"none\", '`$>#linejoin':\"round` ,+cap` '/`#7!':+ (`#>&c * i).toFixed(3)`$o&` C!`$q$/ c` :(}`.v'out.insertBefore`#I\"`/d\"late(s`%:$, ` #$`/5!var curves`0@\"`'*!},`$=!ointAtSegmentL` :!`(2)p1x, p1y, c1x, c` %!2x, c2y, p2x, p2y, `17%if (` '\" ==`(Q!`(Z&bezlen` MC);} else` U%R.findDots`!h%`!6EgetTatL` tE`\"(%);}`#$\"`\"v\"Factory`2N+total, sub`&O!`!i%`#<'`'R!` n\", onlystart) {`('#path2`$@!`'2\"`$P!x, y, p, l, sp = \"\"` }%`$]$point` v!`.y!`(9)0, ii` v#.`!7\"`(R\"ii`(M$p` 8#[i]`3!p[0]`-:!M\") {x = + p[1];y` $#2]`$/%l`1O#`%q/(`!t#[1],` P!, p[3` '!4` '!5` '!6])`!1!len + l >`%z*`\"D# && !`\"O$.`#0%oint` __`$/$ - len);sp += [\"C\" +`#X\"`!-\".x`#f#` (#y` '$m` 0&m` ,&` +%y`#S\"`%((`%X#sp;}`\")* = sp;`%&![\"M`!7&` c& + `!N(n` 1&n`!2&end` .&end` 5!`\"H%].join();`#q!= l;`$$5`$}&6];continue;}if (!`'`#`$!(`#+w`\"|#{x:`\"Y%y` $#y, alpha` (#` '!};}}`!p;}`$s\"p.shift() + `#t(end`#x\"`\"*$`\"H$?`(w!:`)0$ ?`)8&:`+1`\"K$0`\"6!`\"=81)`!(\"`!~\" && (`!6$`\"0E`#\"%` 0!;}`/i#getTotal`/J%`,S,(1)`/v(` .6` A\"S`\"M#` .80`\"-!R.`!(0` &'` <\"`!%/` &)` @\"`!0#`1E*`.'!from, to`+$#this`!*+`.#\" - to < 0.000001`)5&`\"#/` q').end;}var a`!Y\"` 63to`\"R!`/k$rom ?` :1a` n' : a;};elproto`# .`\"D&) {var`.! = `\"?$Path(`-v\"!`1')`)g\"` B!node` k+`\"S&` *4();}`\"v&`#=-`!f*`$T,`!l&`/>%`!NJ`!0&` n)`32)`!4,`%O,`!*'`'[\"` ;\"R._` &#[`!D!type`.t\"` &%`2S!text\" ||`!i\"` .%set\"`#V+` h#`4Z&`\"4$this`#=&path`!e*`'A0`'D'`\"^Q`(B(`(2,`*l#ef`\"b!easing_formulas = {linear:`!D&n`%_&n;}, '<'` (2pow(n, 1.7)` C!>` *:0.48` C\"<` 9-var q =` ?! - n / 1.04, Q = math.sqrt(0.1734 + q * q), x = Q - q, X =`!%!abs(x), 0.333333333` \"#) * (x < 0 ? -1 : 1), y = -` ]$Y` Z'y` K6y` U,t = X + Y + 0.5`*i$(1 - t) * 3 * t * t + ` \"\"* t;}, backIn`\"\\/s = 1.70158` g$n * n * ((s + 1)` *!- s`#Q!backOut` [+n =` ?!1`%A!` LD+ s) + 1;}, elastic` i+if (n == !!`%b*`%)'2, -10 * n) *`$_#in((n - 0.075`#G!2 * PI) / 0.3`!-%bounce`\"`37.5625, p = 2.75, l`(:!n < 1 / p) {l = s`\"5#n;} else`!o$< 2` ?#n -= 1.5 / p;` F)`$d!75` H.` G\"` T$2.2` E493` T'` F#6` 4684` K!}`#:$l;}};ef.easeIn = ef['ease-in']` )#<']` <$Out` 9(out` =%>` <&In` 9+in` >)<` F\"['back`! &.`'!\"` 0&` J&` 6!Out`&<!animationElements = [], requestAnimFrame = window.` /'` T!` 9\"||` 8$webkitR` ';moz` #<o` C=s` )5`&]&callback) {setTimeout` -%, 16`)H!`\"_%`1J0Now = + new Date, l = 0;for (; l <`#6..`2Z\"; l++` `#e =` 6.[l`22\"e.el.removed || e.paused) {continue;}var ti`$)!Now - e.start, ms = e.ms, `0M\"` *!` %\"`0w\"` ,!`1 \"diff` *!diff, to` (!to`-Q\"e.t, tha` &\"el, set = {}, now, ini` ($key`!w#initstatus) {`!]#` *) * e.anim.top`!v!prev) / (e.percent` ,'* ms;`\":!tu`\"6\"` a&;delete` &*e.stop &&`#y/splice(l--, 1)`*;%` t'(`!2\" +`!64(`\"/!/ ms)) /`\" ';}if` 7#< 0`$B)` .'ms`%>#po`\")!`$4!` i'`&&\"`)M!ttr in`$O!`/1#from[has](attr)) {switch (availableAnimAttrs[attr]) {case nu:n`'6#` `!` 8! +`!A!* ms *`%H!` 2\";break;` T!\"colour\"` X#\"rgb(\" + [upto255(round`!T\"` X!.r` _4.r)), ` ?5g` ?5g` ;9b` ?5b))].join(\",\") + \")\"`\"/)path`\"2$[]`#q&i = 0, ii =`#$'`*!%i < ii; i`*-!now[i] = [` A&[i][0]` g'j = 1, jj` e)[i` k&j < jj; j` j'[j]`$D+` .#`\";3` 8\";}`!J%` #\"`\"^\"S)` 4!` 0\"` *%`\"c(transform\":if (`$N(eal`!P\"`\"'`\"8j`\"FX`\"PL}`*Q$var g`,p!`/b&i) {`4c#`#k+` \\7;};`\"v#[\"m\", get(0)` \"\"1)` \"\"2` )#3` )#4` )#5)]];}`)')sv`#}\"`*_!== \"clip-rect\"`#{(i = 4;while (i--`#\\(`!PH`!6#default:var` X!2`!!![concat]`))')`\"E$`!=\"that.paper.custo`+|!ibute`+#`$[$`!N82`!E<`!^\"}set`,W#`'D!;}}`!:!attr(set);(`$`'d`1{\",`0&!) {setTimeout` ;') {eve(\"raphael`/K\"frame.\" + ` V+;});})(`!0!` 1&`0!\"`0h&` t'f, el, a` hSel`!\"!` ]\";` 7/inish` 8/R.is(f, \"`!#$\") && f.call(el`\"\"$e` ,!back`!},`#O&to);`3-=if (e.repeat > 1 && !e.next) {`*@!key in to`2*#to`2)\"key)) {init[key] = e.totalOrigin` 0!;}}e.el`!L\"init);runA`!O$(`!q\", e.el`!}$`4[$s[0], nul` 5!` o', `!j%- 1)`4F\"`!o\"`!y#stop) {` n9next` `;);}}}R.svg &&`#d! &` \"\"`(U\"` .$`(b#safari(`#c0`(g\" && requestAnimFrame(` D%);}`3*%`,q)color`,x&` *! > 255 ? 255 :` -#< 0 ? 0` ($;};elproto`\"V!ateWith` n)`&S!`\"r!params, ms, easing, `&=$)`.P\"e`\"(\"`+9!is`%v\"` -\".removed) {` L$ &&` W%`'7$` G!);`\"!#` )#;}var a =`!<# instanceof `$U% ?` 6$: R`\"'#ion(`!Y9, x, y`&C*a,`!0$, a`&51`\"+#`'-!))`2C\"var `3/(`$i4`32,`0+!` <,[i]`!}! =` c\" &&` _.[i].el == el) {` -/i - 1].start`!?0[i` 6#;`._#}`#h,;`%?%CubicBezierA`-*!(t, p1x, p1y, p2x, p2y, dur`'&\"`%L\"cx = 3 *` F\"b` &$(p2x - p1x) - cx, ax = 1` (! - bx, cy` R%y, b` &$(p2y` V!y` V!y, ay` S$y - by`!l&sampleCurveX(t`(7&((ax * t + bx)` ##c` $\";}` U&olve(x, epsil`\"+%t =` 5\"` r#` 6'`'2$((ay` y$y` x%` $\"` q,` T.`! #0, t1, t2, x2, d2, i`&H\"t2 = x,`&L\"`&-\"8`&*$x2 =`\"J+2) - x`)J!abs(x2) <`!\"'`!m#t2;}d2 = (3 * `\"{\"2 + 2 *`\"~$2`#\"!` `%d` d!0.000001) {`&!#`!Z!t2 - x2 / d2;}t0`!f!t1 = 1;`!z\"` c!t2 < t0`!<'0`/)\"t2 > t1` .'1;}while (t0 <` 6\"`\"91`\"?' - x`\"55if (x > x2) {`!]!t2;} else {`!f!t2`\"'#(t1 -`!c!/ 2 +`!a!` _'` $#`%k\"t, 1 / (200 *`('&);}`.E$o`+f&`.@)f) {f ? eve.on(\"raphael`2O\"frame.\" +`.8!.id, f) :` H!unbind` 1<`&v%`.y!`*3'`-3'`/f!ms`&]#`-7$ = [], newA`,3! {};` p!ms = ms` '\"times`$|!`,o$) {`-V%attr in`,#!`-/'[has](attr)) {` {#[toFloat` 2\"]`,W#[attr];`!M$.push(` =));}}` 6%sort(sortByNumber);}`!c!`.6\"`\"&$`!u#op =`\"G%[` \\%`41#- 1]` C\"`\"h'` #$;}`#8%.`$|!type.del`,5!`$u&` -!`#S#a`!;\"`#p'`!R%,`$J\"ms);a`#K%`#W&;a.del = + ` }\"|| 0`$r$a;};`!90repeat`!A)` h!` K`!3\"` ,!del`!T'math.floor(mmax` w\", 0)) || 1`!S(`!9%`3i*`!&!`3q%`#T#, status, totalOrigin, `!s$` ?# = `%>$` +#);`'9!arams, isI`!%!, ` \"$Se` z&`'S&xt, prev` z#tamp, `']!`(k!ms, fro`'y\", to` \"#diff`(-\"if (`!k\"`'q$`.}!, ii`3m0`&6#`/;\"ii`/:$var e`4:3` ~!e.el.id ==`#)$.id && e`'T#` V\"`(~#e`'+$ !`'*%) {`!<.splice(i, 1);`\"'`*-!`-O$` 0$ = e;}`!7$attr(e.`$:');`0&#}` R$`\"s\"`'3!to;}`*o%`\"s,`(y%`\"h3`+1$` ?%[i] =`\"2% ||` Y*[i] >`&!# *` 6\"top`%r)` A,;prev` &.`*b!`)*\"`-2# /` h% * `&W$ -`&#!);nex` l/ + 1];`&x\"` 6$`,{!` <#]`#4$`#4\"`&))`#e)` P&`!q,]);}`2;!!`!!\"`2P%`2P\"!`$_$`.m0` I%if (` '\"`.w*`#}!vailableAnimAttr` 8( ||`&q%paper.custo` C!ibute` b+fro`/V# `'I&`\"<\"ttr);` 4(= null && (` J)`!G&`!H!` 2!);to` 8%`\"##`0^\"switch`!r1` T\" {case nu:diff` \\%(` h%-`*g!` F$/ ms`$O#` S!\"colour\":`!W)R.getRGB`!o'`,D\"toC` K!` 8(`!\"$);`!5){r:(` G$.r`!:).r`!C\", g` 9'g` 6*g` <$b` 9'b` 6*b` >\"}`\"%)path\":`.2\"th`/q!path2curve`\"'', `!q%, toPath` D#es[1]`$`)` /$0]`\"7*[];`-n-`!U'`*c2` X&`*m! [0` _#var j = 1, jj` ])[i` c&j < jj; j` [.[j`%5#Path` )#`#%(` -\"`%?#}}`#*(transform`#5\"_`'V'_, eq = equaliseT` C$(_`#9-`/r\"q`(;-q.from`'[(eq.to`#=-` &&.rea`4`!rue`#!``\"X*0]`#m#`#*b` %)`#W7`0|$var `1V!`#\\#matrix || new M` )!, to2 = {_:{`$5%:_.` #%}, getBBox:function (`-x%` s%` =#(1);}}`'H*[m.a, m.b, m.c, m.d, m.e, m.f];extract`%&&to2`% (`$c'to2.`!P'`$i+(to2`\"=#.a - m.a`*6$` /(b` 6!`*.#` -*c` 6!c` '0d` 6!d` '0e` 6!e` '0f` 6!f` 5\"];`')csv`( \"valu`+<!Str`0z$`\"V\"[split](separator),`%1!2` F#`-n'` 9.`(@!`2!!== \"clip-rect\"`(F,` l!`(2-`'w$2`&z$while (i--`'e/(`!~\"[i`&g-`&l%`$\\'` G\"`.(#default:`\"]%[][concat]`\"_*`&0!2` 3*`0N(`!n0`3X;`*.)`\"#:`\"7'|| 0) -`3l\"2` )%`\"B$`\"1\"}}}}var easing`3h%.` *\", easyeasy`2?!` /\"_formulas[` *\"]`$]!!` B$) {` J'Str(` A\").match(bezierrg`-W#` C$&&`!#%`\"C# == 5)`*y\"`1j! =` :%;` x'`*E&t`*F&CubicB`!&!AtTime(t, +` b\"[1]` \"&2]` \"&3` -'4], ms);};`,?$`!('pipe;}}timestamp`#.&start || anim` $&+`,f!Date;e = {anim:anim, percent:p` \"\", ` m%:` w%, ` e!` '& + (` }!del`$q\"` >!tus:0, init` '#` /\"` >!, stop:false, ms:ms`${!ing:`\"4$`)r\":from, diff:diff, to:to, el:`'$#, callback:`\"S#` ($, prev:prev, next:next, repea`!|#`\"x%` )!, origin` t$.attr(), totalO` 6\"t` \"&};animationE` L\"s.push(e`&.\"`\"M#&& !isInAnim &` \"'Set) {e.stop`3L$e`$E#=`$@% - ms *`#P#`,@\"`!&-`' &1`&R&` >%();}}if (`!(.` {-e.`!\"(}` n9 && requestAnimFrame`!S&)`')%`!/$.`%G& =`\"(%` 5$`!:/` 3%`!G)eve(\"raphael.`'V&.\" +`,Y%id,` $$,`\"d!);}R` H!`!W!`)b)`%s\",`1I!`+h$`%~$) {if` ;$ instanceof A`\">%`#g%` ?\";`#e!R.is`+j#, \"`!$$\") || !`,\"# {` ~$ =`!(% ||`-=$|| null;`-K%` )!}`!E#= Object`!U#);` /!+ m`) \";var p = {}, json, attr;for`2@#i`!j$`\"7)[has]` <!) && toFloat` *#!=` `!` '.+ \"%\"` 7$) {js`#_!`'N!p`0}%`1T(`&k#!js`#7(new`#P&`$.'`&\"&`\"f#&& (p`0\"#`.j\"ing);`#=%` :\"`#M/);` v1{100:p}`!%#};elproto`%k#e`%DH`2\"!`&U\" = thi`)o\"`&r$removed`%2(&&` W%`!n!` D$`!c%` )#;`2~!anim`#D%`&^1 ?` 6$: `'j'`![:;ru`)'!` E\"`0.\"`(U).`03#s[0],`&g!` 8%`-c#`!^.`#?%se`2Y!`#;)` ~\"value`&\\#`\"6!&&` .\" !`'l\") {thi`2.!tus` O#mmin(` B!`!V#ms) /` \"%;}`!C#`#z!`!<'`+u$`!.4var out = [], i = 0, len, e`$a!`!J,`#\"/this, -1`!W*1`\"t&`!N\"`'I#len =`/!&`.8+`)i\"; i < len; i++) {e` ?0[i]`&C\".el.id =`&W\".id`()!!`#X!|| e`%M! =` ]\")`#p'`)>&`06!`.H!out`2/\"{anim:` W\",`.e#:` @$}`0z$` Y*0`#%out`(k(paus`%;.) {`\"K!var`#u\"`\"S\"`\"d5`\"g#`2^1[i]`\"I;` >1`\"g0`0~.`!z!`1+!` s#`%.$` [5) !== false) `#F!` 6-` p!d`-n$}}`',3resu`(V/`\":~`\"kM`-D!`&m9`#H-`\"7\"`#F0`&S\"`#9*delete e`#4#;`*{(`'!$`&z$)`#86stop`\"N~`%ttstop`%h.splice(i--, 1`#$/`\"%stop`4A(per`\"Co` s! == ` y$`[email protected]`# &`3o\"\",`!f*);` 8,clear` 4/`%c#toString`%a)`-%&\"Rapha\\xEBl\\u2019s object\";};var Set` N)items`28$` (!`14!`'C\"`\"}\"`#@!` +!type = \"set\"`(Z!` V$`#d*, ii = ` 8!`#]& < ii`#c(` ;![i]`&c!` %$.constructo`#n!`\"P$` +(||` v\"` </Set)`\"'#[`\")&`!>#] `'t$` Y!` +1` q$`\"U(++;}}}}, set`!I! `!$!.` '!type;` 1$`1c!`$+,`\"s!tem`4a!`3I\"`\"{,argu`&g+`#!*tem` ;(`,W$` 3!`#7$`\"pG`# 3len`\"v)`!F$`#J!len`#2+` +#item`\"~-`)c*`\"v&`,y+`&R$`&C#&& `.+#`$X&` 5\"--];` i'`!Y#pop()` t(forEac`#u*callback`,1\"Arg`&y4`\"G.`'#/` f$.call(` k#` u\"`\"p#i], i) =`,x'`\"a)`,],`!C$method in`$R$`.I$` (\"[has](` ?\")) {`\"L$[` -\"] = (`\"K&` /\"nam`!4'`&e-arg`&*(`#T)`#C#` h'el) {el`!)#name][apply](el, arg);});};})`!_$;}}`$2%attr`$+)name, value`\"C#name && R.is` 8#array)` ()[0], \"`,p#)`$a(j`$g\"jj = name`$^%j < jj; j`$b!`$A'j]`!S!` r\"j]);}} else`%*T`%:)` q&`\"?$`'6`/r!`(+,while `&@!`!)#` {$`'r#` V'`1<\"`/N*ndex, count, inser`0h! {` 5! = ` \"\"< 0 ? mmax` ( +` 9\", 0) :` &\";` g! =` G\"0, mmin` H)-` M$` E!))`10!tail`0r!, tode` $$arg`1(\", i`(!\"i = 2`4J#`-A.`#]!args`.B!(`-B();}` X%0` [\"`!<!`$/%odel` Q\"`+U!`\"S\"+ ` P&` O\"`!x/` Z%ai` I5`(f#`-z\"`!]!`!n#`!E,` >#+`\"n!`\"++`%p(` t%`&N#` $*` _'?`!*![i] :` o![i -` 5#];}`&1` ,$`\"?$=`#%\"` O%;`&L'[i]) {`.h(i++];`'>$new Set(`#Z!`.\\)exclud`&b*`+<!`(^6`.:6`!C#`2/\"`#\"$`'k\"(i, 1)`,Q%rue;}`(+(animat`!:*params, ms, easing, `/O$) {(`+e!` 1$\"` P$\") || !` 2\"`,-!`0#% =` a# || null`'q\"`383,`\"V!len,`36!, set` A#, collector;if (!len`0O,`!,%`!=!` G$`++,!--len &&`\"1%`1k\"set`/!!`!i#=`.1\"`\"E$str`\"8!?`\"($:`!F'`'`!nim` P!`#R\"ion`#82` M$);item`\"Y)[--i]`$0$(anim)`&J$i--`-t, && !`.(*removed &&`3h*` l$With(`#T\"anim,`!p!);` OD|| len--`'\\%`.{,`.#\"Afte`#h*`&v!`'R$`08.`\"*6` f((`(c!`!#3getBBox`$|,var x`.\"#y`.*#x2` )$` #\"`,$\"`!D6 i--;`)(#`\"c2`!\"#b`!;!` 4*`!Q#();x`-\\\"box.x);y` $&y);x2` 2' + box.width);y` 0'y` 4#height);}}x`1,!in[apply](0, x);y` $.`! !`1W#` A(2);`\"b!` )+y2`+0%{x:x, y:y, x2:x2, y2:y2, `!\\!:x2 - x, `!N\":y2 - y}`4R*on`+X*s) {s`##$paper.set()`#|*`-5)`$#+`-;)`2N#`#k*`!1!()`%h&`%b)toS`*+!`%`,` E#\"Rapha\\xEBl\\u2018s set\"`&D)low` Q)glowConfig`%H#r`,S%`\"7)` ,!forEach(`\"i'hape,`3R\"` Z#g = ` 2!`!(!` u(`-=!g !=`.-\" {g` Z42` l#2`\"7\"`#$\"` 4\"`-(!}}`% %ret`))sPointInsi`1^+x, y`*($` 5,alse`\"+4`*a!if (el` p*` l\") {console.log(\"runned\");` u,`2&!`!n#`!+\"`!{'` @);};R.registerFont`!{)font`*0$font.face`%;&font;}`\"%#nt`'(%` '\"|| {}`/t!fontcopy = {w:` d!w, face:{}, glyphs:{}}, family =` O!`!*) {`!=$` 5\"prop]` z)` -!;}}if `(C\"`\"!![`!2\"]`.O$` ()`%f\"` q$);} else` 60 = [` @$];` !`#K\"svg`!K-'units-per-em'] = toInt`\".'` 3+, 10`*p'`#K!`\"q%`#X\"`\"p(` ,\"`\"x\"` '!)`'%#path`\"l$` >#` \"!];`!X%` *)`$j\"path.w, k`$h!d` *\"`3]!\"M\" +` q!.d.replace(/[mlcxtrv]/g,`&A'command`&4&{l:\"L\", c:\"C\", x:\"z\", t:\"m\", r:\"l\", v:\"c\"}[` U#] || \"M\";}) + \"z\"}`*b!`!<!k`#b!`\"{#k in`!R\"k`\"r#path`\"l\"k`%`)`\"C).k[k] =` S#[k];}}}}}`-x$`()\";`,f!`3k%`(b.`%M!, w`0*!, style, stretch) {` ## =` ,$`\"1!normal\";` J!` 7!yle` -)` k\" = +` u#`)=!` 8\":400, bold:700, lighter:3` /$er:800}[` T\"`#D!400`#:!!R`'F\"`$1%;}`*-$ = ` 6#`'a$` L\"`+1#var name = new RegExp(\"(^|\\\\s)\" +`*H#`%Q'^\\w\\d\\s+!~.:_-`%^!E`$h!(\\\\s|$)\", \"i\"`'b'fontName in`!D$`$l#`!R$`$q!` ?$)` 6#name.tes`(p\"` 2$`\"$,` 4#];break`%)!var the`%'!`(j$`&/(`4,(`(d!`3|2` \\#` >#[i`#3\"` /#`-,(`$+\"'] ==`$o$&&` 51`%M!` C\"`%T%!` .6) &&`\"\"$` 1*`&P!` a$`&n$`\"Y%`'f#`\"\\$`'c)pri`'_+x, y`'X!ing,`\"G!, size, origin, letter_spac` ?!line` &$) {` A\" =` I#`'m!middle\";` M* = mmax(mmin(` ,+|| 0, 1), -1);` w(` H*` -(|| 1, 3), 1)`2\"!` n\"s = Str(`\".\")[split](E), shift`%:\"notfirs` '#`.2#E, scale;R.is`%u!, \"` b\"\"`$*!` /!`3>$`+6#`&<\")`&A(` `! = (siz`%\"!16) /`3'(`02*`!y!bb`2C(.bbox`!t$separator), top`+>!bb[0]`$(\"H`+Q$bb[3] - bb[1]`\"H#y`\"<\"h`+s&` 9! + (`$S$= \"baseline\" ?` g(+ +`!H'descent :` 7(/ 2`*C'`(r(`$(#`(j3if `%>#s[i`'G!\"\\n\") {`$<%;curr` $!`$A(;`\"/#+=`!:(*`&j);} else`3.#rev =`%'&&&`34)`!;% - 1]`.4!{}, `!5#` 51]]`!?\" +` l'? (prev.w ||` Q\"w) +` .#k &&`!D!.k` [(`'r!)`#\\$w *`(~+ :`\"O*1;}if (`!W!&&`!_!.d) {`':!+= R.transformPath` D!.d, [\"t\"`'v$*`']\"`%U%` '%\"s\"`'x#`'#`&G!`%r$, ` _!(x - top) /` =$(y -` >#` -%])`+})is.path`4`!).attr({fill:\"#000\"`+{!oke:\"none\"})`,G*add`,F)json`0Z%is` +!, \"array\")`20#res`)`$set(),`&n)json`&q#, j`'9\"`&q,j` A#[i`%N#;eleme`1i%j.type`*r!res.push(this[` 3\"](`\"C#j));`\"c%res;};R.forma`.\\*token, params`!#args`2K!is(` 3\", `\"C!) ? [0][concat]` 6#) : argu`!a!;` l! &&` Y\"` x#`-O# &&` x!`\"^# - 1`1q\"` O!= ` #!.replace(`!h\"rg,`!d'str, i) {`\"3#args[++`*%\"null ? E`!J\"s[i];}));`%I$`! !|| E`\"f\"ullfill = (` v&`\"[#` G!Regex = /\\{([^\\}]+)\\}/g, objNotatio` :&(?:(?:^|\\.)(.+?)(?=\\[|\\.|$|\\()|\\[('|\"` 5\"\\2\\])(\\(\\))?/g, `\"I#`*T!`!@%all, key`!)!`&1)obj;key`\"~%`!>,`##(` a!name, quote, ` \"!dN` .!isFunc) {name =` D! ||` 9'`0z!res`'r#` <!i`&+!`#~!s = res[name];}typeof`!a\"= \"`!?$\" &&`!%#`%)!` O%(`&!);` +\"` 2\"`$_#||` _$obj ? all :`!2\"+ \"\"`$l$`'S\"` &#`%W+`#2\"` 5#S`&\\!(str)`#0%`${&`#\"-key` R&`$8$`$%+;`+-!})();R.ninja`$T)) {oldRaphael.was ? (g.win.` .# = ` 7'i`(c!delete window` A$`\"9$R`'4!`.o!set`,B!;`'1'doc, loaded, f`$L#doc.readyState`#W%&& doc.addEventListener) {` #0(` m%`\"3,` y\"move` :3, false);`!9, \"complete\";}` +7loading\";}`!0%isL` z!() {/in/.test`\";+) ? setTimeout(` K$, 9) : R.eve(\"r`#u#DOMload\");}` r&;})(doc`,r!, \"DOMContent` ;\"\");eve.on` U.`&#() {`\"f\" = true;})`$H(`$?#!R.svg`&J%;}var has = \"hasOwnProperty\", Str =`'K#, toFlo`/P!parse` (!, toIn` +%Int, math = Math, mmax =` /!.max, abs` ($abs, pow` ($pow, separator = /[, ]+/, eve`0B!eve, E = \"\", S = \" \";var xlink`!!ttp://www.w3.org/1999/` ;!\", markers = {block:\"M5,0 0,2.5 5,5z\", classic` +, 3.5,3 3.5,2z\", diamond:\"M2.5,0 5` D!2.5,5` O\"z\", open:\"M6,1 1,3.5 6,6\", oval` Q$A2.` V!,0,0,1` %!` a\"` &*0z\"}`!x$Count`/B!{};R.to`$=\"`(C,`*&#\"Your browser supports SVG.\\nYou are running `*d!\\xEBl \" + this.version;}`#f!$` z)el, attr`&8#at` \"%`.}#el`.~!`42\"\") {`,*!$(el);}for (var key in` Z,[has](key)` .#key.sub` g\"(0, 6)` y!`$z!:` x\".setAttributeNS(` 7!`.)!` P'6)`'Y!`! \"key]));} else` R-(`.c!` <-}}` F&`&w!_g.doc.createElementNS(`&_/2000/svg\", el);el.style`1n!` %$.webkitTapHighlightCol`(1!\"rgba(0`%W!0)\");}`%\"#el;}, addGradientFill`$?+`!R!, g` ;#) {var typ`-=\"inear\", id = ` G#.id +` I%, fx = 0.5, fy` \"$o` D'node, SVG` )'paper, s = o`\";\",`%U!`#.&get`#.#ById(id);`,K!el) {`!5$`,(\"(`!u%`3Y%R._radial_`!]'`3\\*_fx, _fy) {`\"G$` M\"\"`!$!_fx &&` :#`\">!`-)#(_fx);`\"F!` (&y)`('!dir = (fy > 0.5) * 2 - 1;pow(fx -`\"x\"2) + ` .!y` ('> 0.25`%1!` y!`-?!sqrt(` 3!-` L\"` Z') *`!-!+`!&\"&& fy !`#}!` \\&fy.toFixed(5)` W!00001` U\"`%b&E;});`#L'` #$.split(/\\s*\\-\\s*/`$!\"`#,\"`%X&`%q#angle` Q)hift();` 1$-`#+%` -!` g\"isNaN` *#`,=&null`1I\"vec`/z\"[0, 0`0k\".cos(R.rad` Q$` 1#sin` **], `1.\"1 / (mmax(abs(` o\"[2])`1?!` ($3])) || 1);` 9% *= max` )$3` (%if ` ^& < 0) {` )#0]`\"I!` 5%` c'= 0;}` P'3` L+1` N)3` R%3` T#`\"o!dots`(I\"`3d!Dots`'}&`(D\"dots`#?,`*#!id`(?%/[\\(\\)\\s,\\xb0#]/g, \"_\"` [\"`)d$`%M%&& id !`)|&`$~%id) {SVG.defs.removeChild` T-);delete` S-`\"m\"!` ?-`08%`&N!+ \"`,e$\", {id:id});`!Z-= el;$`1I!`'\"%`*7# ? {fx:fx, fy:fy} : {x1:`$P%, y` %%1], x2` &$2], y` %%3]`-n&Transform:`!C$matrix.invert()});`\"w%append`\"x$);`2M%i = 0, ii =`$|!.length; i < ii; i++`2.\"` W($(\"stop\", {offset:dots[i].` )\" ?` h!` &': i ? \"100%\" : \"0%\", 'stop-color'` Y%` *! || \"#fff\"}`2D\"$(o, {fill:\"url(#\" + `01!\")\", opacity:1, 'fill-` *#':1});s.f`1A\"E;s.` 3# = 1` 2#O` ''`'4#1;}, updatePosi`/?!`1z(o`+w#bbox`0l!getBBox(1);$(o.pattern, {` ##`$D&o`$8, + \" translate(\" +` r!.x + \",` &%y`\"F\"})`3[#Arrow`!G*, value, isEnd) {if (o.`&f%path`-p$` E!s`2'#` (!).toLowerCase()`.`#\"-\"), p`\"@!`3;$e =` }\" ? \"end`$m!start\", node` I!`3\"attr`3n\"` %!, stroke =` 4\"['` *\"-width'],`&m!`!W\"`&e#`(h$ \"classic\", from, to, dx, refX`!$\", w = 3, h ` \"!t = 5;while (i--) {switch `\"N\"s[i]) {case \"block\":` '\"`!$$` (#oval` $$diamond` 2%pen` $$none\":`!i#` y%;break;` =\"wide\":h`!T!` ,(narrow` 4\"2` -)long\":w` A-short` 3\"` I$default:;}`,w!`%1%`!_!) {w += 2;h ` \"!t` (\"d`1f!;refX`$n'4 : 1;attr =`)2$`\":!`$[$:`$\\!.` '\"};} else {` `#` p!w / 2` V*` I(` a%` s\"}`.k\"o._.`\"g!s`';#`'F$` /&.endPath && markerCounter[` 2.]--;` (*M` M!` <<` @\"]--`\"1%` 5'`'h!`!!=` =%`!5+` 3!`!#?` ='`!C!`!7. = {`#0#`%'!!=`&]#`*?#pathId `1F!phael-`!'\"-\" +`(r!,`!7#` ,5se` C# + w + h`4D!!R._g.doc.getE`1:\"ById(`!+\")) {p`1(.$($(`+~#, {`*R$linecap':\"round\", d:`!;\"s[type], id:` s\"}));`#!*` 2\"]`'=!`\"x$` -1++;}var`\"I# = `!k4`\"i$), use`\"I\"` .\")` s$ = `\"'!` (\"`\")!i`!m$Id`#L$Height:h` ($Width:w, orient:\"auto\"`,Y\":`,^\"refY:h / 2});u`.D!`!$!use`#.\"xlink:href':\"`2`!`\"9\",`0\\\"`0}!`(K\" ? \"rotate(180 \"`$[!/ 2`1*!\" + `!\"!`0p! \" : E`1D!scal`1>\"w / t`1:%h` &$)`4R\"`/)':(1 / ((` I$` F!) / 2)).toFixed(4)}`$R$`%F)use);`%X/`#j#`$~+`#Z$`$s8` ;%++`#;#`!0#`$}&sByTagName`#S#[0];}$(us`1j#);var delta`,e\"*`(u'`/w$ &&`(3\"!=`09#)`%h!`,G$from`2T!`*\"*` i!`2^#|| 0;to`&h!getTotalL`2P!(`-b\"path) -`!D#` P$`\"Q%` |#` /+` M@`.;'.end`!E,);}`/.$}`/;![`'e#`*m#] = \"url(`&^!`+:%`%[!`\"`!to ||`4B!) {attr.d`!M$Subpa`!D)`4f&);}$(nod`#%`!]&[`,%!\"Path\"] =`'q#` /.`-j\"` >!`!P$` 3.dx` <!`#4!` ,.Type` ;!type` -.String` <!valu`$%&`$Ftfrom`%$,` 4B`$e>`#I4&& `$\"${d:`$7>});delete`\"H'` e)` &5`$I$` (5dx` \"7`$F\"` &5`$D$;}for `!v! in`3e*)`$T\"`+9*has]` J!) && `/z#` 5$attr]`3\\#item`0S7`'A\"` @!&&` H!.parentNode.remove`--\"item);}}}}, dasharray = {'':[0], none` $\"'-':[3, 1], '.':[1` %#-.` 2#, ` )&` &*` 0&. ` T\"3` B! ':[4` %$-':[8` 1%.` 4#` V!` :#.` ;#` ')` '*` 4#}, addDashes = function (o,`(Z\", params`#L!lue =`\"V&[Str(` 1!).toLowerCase()]`+b!` 4\"`$#\"`1I!`).!`&|![`1X*] || \"1\", butt = {round:` 9!, square` &$butt:0}[` [,linecap` g\"`!o\"` *.` 8!0`$^\"`\"M![], i`+%$.l`)c!;while (i--) {` E\"[i`+J%[i] *`\"+#+ (i % 2 ? 1 : -1) *`!]!;}$(o.`)]#`!?$`#1%':` p\".join(\",\")});}}, setFillAndS`*d\"`$%+`$\"'r node`#O!`.k&s`#Z&, vis =` A!.style.visibility;n` \"0 = \"hidden\";`)N!var att in`!0&if (`#X#`)@$)` 0#!R._availableA`$9!` 7(continue;}var`#F\"`0G!` g!att]`2)!` %\"`/7%switch`*y!) {case \"blur\":o.blu`&Y$;break;` :\"href\":` &\"title\":var hl = $(` ,#);`!?#`*u(createTex`*^!` t$hl.append`*g\"val)`#;\"` *(hl`!7*target`!4\"pn`$!$`+V&`(?!pn.tagName`(T* != \"a\"`%\"#`!q$a\");pn.insertBefore(hl,` u!`!U-` /\"`!5!hl;}if`#?! ==`!R%) {pn.setAttributeNS(xlink, \"show\"`*^#` P!blank\" ? \"new\" :` 5\")`2S%` R5att` a#);}`\"v(cursor\":`&a'` -\"`%4%`#C)ransform\":o.` $%`%+0`1 !-start\":addArrow`,i%` 80end` 7/, 1` ?*clip-rec`$o#rect = `-;'split(separator)`$!rect`+S# == 4) {o.clip && ` $\"`1+(`1+3` 8-`':\"e`%T#clip`4g!), rc` .\"`!e!);el.id`'`!`'X\"UUID();$(rc, {x:rect`1u!y` %\"1],`,x\"` )\"2], height` *\"3]}` o!`&@(rc);o.paper.defs` 0)el);$`&j!, {'`#?!path':\"url(#\" + `!]\"+ \")\"});`\"w#= rc`'2\"!`0_(pa`0e!`%p!g`&F'`\"^\"` v!\"`#s\"path` N#` j#`*?%getElementById` E!.replace(/(^url\\(#|\\)$)/g, E));`$I$`$?,`$8(clip`\"53E});delete`%,#;}`')`!r!:if (o.typ`)-\"`\"&\" {` i%d:`)J\"?`*'!rs.`\"f#R._pathToAbsolut`,R$) : \"M0,0`#Q\"_.dir`/b!1`\"|!o._.`'|!s) {\"`(L!String\" in ` 4& && `(2(` 0&.` J');\"e`1s!` 4I` J%`))!`\"g*`&a!`*x$`$(`+G(`\"%.`\"u\"fx) {`--! \"x\";`1'$` 7\"x`,N%`!*\"}`!+\"x`#}\"` V'` O$-` Q$ -` 8$`!Y! || 0)` X$r` W&`$\\!rx\"`*?\"`$j%`)N\"`!(+cx`\"#>pattern && updatePosition(o`\"T,`2^)`)u!`\"kUy`#:&y`#4,y`#.2y`#7)y`#1/y`#:&`!Y\"`#6+` X&`#-\"y`\"By`\"Lur`)I-`!:$`)Q%rx`)U\", ry` $\"}`2q&`!9:}` 6src`!*-image\")` c/`4S'href`4V$`3g+stroke-`(u#`*_$sx != 1 ||`)X!sy` *!`$T%/= mmax(abs` H#), ` $%y)) || 1`/(\"`0!$_vbSiz`/1\"lue *= ` ,+;}`\"\\:`%%['`!o#dasharray']) {addDashes(o,`&6\"` 50, params)`!W$`,3~`,fK`$,/`!w%\":`\"9)`&>#`\"*$` N(fill\":var isURL = Str`0\"#.match(R._ISURL`#U\"` B!`'9(fill`'4%`(v#`38\"r`1 !getRGB` l#` ^!!clr.error) {`29#`!V\".gradient`2O$`*K\"` -%!R.is`*_#opacity, \"undefined\") && ` ?!` i#` ,5`!v%` ;#:` h)})` (['fill-` 5#']` v9` +>`!2%` <*`!<\"` O,`*g&if (`*'(circle\"`)7\"` -%ellips` 1\"`$_'charAt() != \"r`!B\"addG`#R#Fill`%`%)) {if (\"`!>#`&}!`!X! ||`%l\"`!X$` 1&`)l!r `$B$`%5!_g.doc.getElementById`\"X!.g`)r(`&_\").replace(/^url\\(#|\\)$/g, E)`%r\"` u$`!%#stops =`!+%` ~'sByTagName(\"stop\");$(` K![` Q!.length - 1], {'stop`#&`\"F0?`&d#` 3# : 1) * `!v\"`\"].` H$`$_,` S!});}}`'L* =`#v\";`2[#ill = \"none\"`(m$clr[has]`!U&`%r9clr`!e%> 1 ? ` &(/ 100 :` ((})`+A)\":`)l2`.G3clr.hex);`3z$` _# && `!Y=`,Y#`!?Y`/q#`!,,`.8~`.]Y`%9$\":`):~`$Z!`!1(`$&$:`3+%`&g&&& !`'=\"`$T\"`$5*\")`/w(`$O-`4V\"`$T\"` &\"`$L$`0A$}`15&` k%`!4/) {`*Q~`!\"\"`*Vu`\"J%`*!#default:`'%$font-siz`'*\"`$p\" = toInt` (\", 10) + \"px\");`3X!ssrule = att`\"<&(\\-.)/g, function (w) {return w.subs`&d!(1).toUpperCase();}`*2$tyle[` y#]`,/%o._.dirty = 1`*L4`&6)}}}tuneText(o, `2x\"` y(.visibili` p!vis;}, leading = 1.2, ` Z$ =`\"('el` f%`1d\"el`(?\"!= \"text`(=!!`4)$`':\"` 3!) ||` T#` 0#font\")` \"1`$.\"` *.x` =/y\"))`#`%;}var a = el.`'K!, node` +\"`(N\"fontSize =` 6!.firstChild ?`%4#`'e%`%j#View.getComputedStyle`'v\"` T&, E).getPropertyValue`\"#)`&'\": 10`'}!`\"r/) {a.t`#p\"` 9\"` )!;while `!\",) {` -!remove` .!` 2-`\"l\"texts =`,W!` m').split(\"\\n\"), tspans = []` &#;for (var i = 0, ii =` h\"`)3#; i < ii; i++) {` R! = $(\"` &!\");i`1,\"` *!, {dy:`#z%*`&N$, x:a.x});` B!.append`\"-\"`$%%creat`&p!Node(`!B![i])`'T#` H(` a!` f#s[i] =`\"*#}} else`!b#s`%=$`+\\2`!z$`\"a!`\"U)` X!`\"L3if (i`/ !`!6%`\"5>`!O$` L%0` N#0});}}}`/i%` L!, y:a.y});el`*r)var bb`'i\"_getBBox(), dif = a.y - (bb.y + bb.height / 2);dif && R.is(dif, \"finite`21\"`!G-dif});}, `#1#`*{)`!f\"svg) {var X`#6\"Y = 0;this[0`$.!his`)Q!`$ #`$b\"raphael = true` J!.id`1?\"oid++` :)` 5!` =#` F\"matrix` K!` %\"()` 3\"realPath = null` /\"paper = svg` +\"`+2!` l$` '\"|| {}` 8\"_ = {transform:[], sx:1, sy:1, deg:0, dx:0, dy` '!irty:1};!svg.bottom`1*!` $'`!(\"`!`#prev`!K\".top;s` \"\"` J%top.n`*}\"` O\"` 9$` *\"` ^\"` :#`\"B!}, elproto`\"o!el;`$L#.` 0!`/;!=` ;$;` D#.constructor =`$}$;R._engine.p`#C\"`%*&pathS`2>!, SVG`%3#`$c!$(\"path\");SVG.canvas && ` $&`)p)el`3e\"p = new`!5$`19!SVG);p`1/\"= ` q\";setFillAndStroke(p, {fill:\"none\", s` 3!:\"#000\", path:`!g&});`4B#p;}`\"Y%rotate`\"7)deg, cx, cy`*B#`&2#moved`1>%`$#\"}deg`.M#deg`.D$separator)`0 !deg`+@# - 1) {cx = toFloat(deg[1]);cy` &+2])` x$` +(0` E#`%4\"`%n!` k!cy`!(\"cx` 3%|| ` @&`$F#bbo`!9!his.`+5$1);` ^!bbox.x`+2!ox.width / 2`!U\"` /!`+N\"ox`+K';}` g!`(G%`#)\"_` '&.concat([[\"r\"`(Z!`#X$]])`$-%`#I\"`$0%scal`$**sx, sy`#pGsx`$3#sx`$\"3sx`$**s`#w(sx`$1\"`$@(sx`$1!`$>)sx[3])`!(#` *'0]);s`$:*` {!sx`#lp}` ^\"` R&?`$V4 : cx`!}\"`!<'` H#`$m/ : cy`+l\"`$_As\", `$>*`$l7` \\!l`)2-x, d`(yA`${$d`$k4d`$t+d`(y)`$}\"` a\"` *'0]) || 0;` I!+ dy` )\"`\";Ft\", `\" \"`\"=<form`\"P)tstr`%%#_`%!$_`\"'!tstr`%C'` n#`!6';}R._extractT`!Z), ` r!`!|\"cli`1&!$`!|\"clip,`2E(`3W'.invert()}`1q$attern && updatePosition` g!` >#node` v'node` i4}`$A\"_.sx != 1 || _.sy` (!`\"`#sw`4>)[has](\"`/i\"-`'S!\") ?` 6('` 1('] : 1`!T\"attr({` 1*:sw});}`$.2hid`&n*) {!`&g( &&`!4\"paper.safari`\"N&.style.display = `1h\"`,~5how` Aj` r5` k\"` },`)\", || `!;\"` z!parentNode`&X%;}`4c!aper`$?$` (!;`!\\\"__set__ &&` >\"` )$.exclude`%q#eve.unbind(\"raphael.*.*.\" +` n\"id`%d\"`-3\"radient) {` o\"def`!k$Child` 8+`(4!tear`(&#` P!` e'`\"-+.tagName.toLowerCase() == \"a\") {` ?1` T'`!8-`#,,;} else` S3` J1);}for (var i i`$i\"`!E#[i] = typeof` 3!` ,!= \"`$s$\" ? R._`$m#Factory(i) :`+H!`4\\#`%+$= true`%`'_`1\"#`%T5`&G0`'b%`\"?#show();var `(n#`! \"`2*'{};try {`28(` v!`2A$);} catch (e) {} finall` I&` \"!|| {};}`!!!`(G$hide(`(\"%bbox`\"5'attr`\"/)name, value`1#?if` L\"`4;+res`\".\"`$O%a`$P$`,A\"` o(`,o'a)` |!s[a`$q!` 4&a];}}re`'N& && res.fill`#g& && (` -&` =!`(G&&& delete` +);re`2/'`1.%`0p'`\"K#re`\"J#`\"x!`\"J$ && R.is`#2#\"string\")`\";#`\"u$\"fill`![!`\",&`!j/` 2'`*>'`#h'` .+`#t*\"`!k%\"` G+`2})var nam`$?!name.split(separator), out`$R+i = 0, ii` N#s.length; i < ii; i++) {`!F\"` =\"[i]`+d!` /!`%0,out[name`${+` .!`*}$if (`#X!`/m'customAttribute` K#,`*G')` j0` A8.def`,/%` N(R._availableA`!S(`3+$ii - 1 ?`#,!: ` T$s[0]]`%J?array`!h$`#f'`#],`#U3`!'$[i]`#9)` z![i]);`!`$ou`%d#`!I\"!`)a)param`)j#` &\"`\"X%` J!`$\"(`$f!` X#`!~,object`\"*!` j%name`/4'key in`!+#) {eve`2K&attr`2Q!key + \"`2V(,` $!,` S#[key]`0/$` m#`$k7`+b(`%13`+z!key`+!!` ~#` ')`&F=key`&U-`#W#`&E;key].apply`4=#[].concat(`\"C();`(<'key] =`\"c(`)a&sub`#^&`\"U#par`\"*\"` 7\"`$:&[` +\"` f#` &$;}}}}setFillAndStroke`!W#`$V#`-O$`0#\"`0h%toFront`2w5`0N7`2K&parentNode.tagName.toLowerCase()`-(!a`3W%` D,` T'appendChild` k1)`*O%` U1` J1)`-}\"svg`$l);svg.top !` 0\"`%p\"_tofront`#6#svg`# 6Back`\"iL`&<#e`#n!`!p0`.]!` )\"`#-<` ?#`\"U'insertBefor`%9\"` n,`)R\"`#f8first`#=!`#c%`!G'` 4&`#/$`#]\"`!D%`!,2`! 3` )`#w!back`#t#`$@&);`$K1`$!2`!;\"After`$/)elem`49\"`#@node = ` N#`!t! ||` ($[` 0$`/b\" - 1]` ?!`39\"ode.nextSibling) {`\"I,`\"n4` J-`'f%`'BDR._` w\"after`#D#`!h#`#F*`##8`!T\"`\"Fv0`#(#`\"LH);`\"3%b` 7&`!pIblu`%G*size`/q#`)H$`$^!+ size !== 0` 9#fltr = $(\"filter\"), ` i#$(\"feGaussianBlur\");t`/s\"`!+$size;fltr.id = R.createUUID();$(blur, {stdDeviation:`!>#|| 1.5})` Y\"`%,(blur);t`1a#defs` 2)flt` :!_`\"O$ltr;$(`$(\", {`\"\"\":\"url(#\" +` <!.id + \")\"}`&R&`%,!` a\") {` ##`$K(`%C\"`&f#` B#;delete ` )#` %&`\"n&;}`!F\"` Y#`3Z%`#Y&;}`$a$;};R._engine.circl`&q*svg, x, y, r`$K#el`$6\"` H\"\")`/l!canva`/g!` $&`#))el`+i\"res = new E`&;\"(el`0'%s`\" \" = {cx:x, cy:y, r:r, fill:\"none\", s`4%!:\"#000\"}` U!type = `!O$;$` t!` k%`'3%res`\"H)rec`49*`\"H'w, h`\"G.rect`!_t`\"Q!`\"P!width:w, height:h`\"c! || 0, rx:` \"%y` \"%`\"[D`!|!`\"XEellips`%=6x, ry`\"t+` M#`$[~`\"e\"`!>!:ry`\"9F`!Y$`\"=Eimag`\"Q/src`%a(`\"X+` P!\")` ~#`$_:preserveAspectRatio`\"\"#});el.set`*!%NS(xlink, \"href\"`!C!`%p~`!c.src:src`#N*`\"P\"`#14tex`(w5text`#4+tex`(+~ 'text-anchor':\"middle\"`!K\":text, font:R._availabl`.3!s.font`&@&`&R#`&`\"`&D/`\")!;setFillAndS` S!(res`&@@setSiz`&X*`$0!`$+$) {`4I!` 0! =`$L\" ||`4^\"` )!;` &!` I\" =` Q#` :%` )\"` >\"`#Z#`&L((\"` _!\",` f')` 37` i\"` G$`!]#;`2S!his._viewBox`!o$setV` ,\".apply` A!` V#` C%`1r&hi`\"q*creat`\"p*`&&#con = R._getContainer` }#0, arguments), c` 7$ =` R!&& con.` .%, x` 4\".x, y` $#`(5$` (#`$')` -#`#S#if (!` d%`\"T!row`'&\"rror(\"SVG`!:'not found.\");}`\"'!nvs`(5\"svg\"), css = \"overflow:hidden;\", isFloating;x = x`0B!;y = y` %\"`%W-512;`%I/342;$(cnvs, {`*V$` \"!, version:1.1`*z%`\"Z\"xmlns:\"http://www.w3.org/2000/svg\"}`%G\"`#i'= 1) {cnvs.style.cssT`+,\"css + \"position:absolute;left:\" + x` ;!x;top` +!y` *\"\";R._g.doc.body`+&)cnvs);`\"& = 1;} else`! Crelative\"`!}*.first`! !) {` -&insertBefore`#K#` ?1`!;&`'$(`!i+}}`'#(new R._Paper;` M&`$x)` -'`$y+` /'`.B#=`&G!` ,(lear()` ''_lef`'[#` *$top = 0`#H(&&`\"m(renderfix`)Z,}` n(` =%(`-F%` 4%`-E,`+.#` c)`4*&, fit) {eve(\"rapha`3H\"` O#`,7#`+X+, [` S+]`0v\"s`.[\"mmax(w /`->', h` ($`-##, `\"g\"` /!top, aspectRatio = fit ? \"meet\" : \"xMinYMin\", vb, sw`&.!x == null) {`-p'bSize) {`!J#1;}delete`\" $` ;!;vb = \"0 0 \" +`!b' + S` )$`%9#`&I$` T( =`\"L!` a\"x` N#y` V#w` )#h;}$`!P\"`%s\", {`#?#:vb, preserveA`\"R&:`\"]'});while (`\"%!&& top) {sw = \"`3S\"-`11\" in top`4Z#?` \"&['` <('] : 1;` 6$({` 0*:sw})` 9!_.dirty`#9!` %'T` )$ =` ~!prev;}`%R) =`%R*!!fit]`'!$`1Q%prototype`'[6`/H'`#6)`)7$`+z\", pos;try {po` 2%getScreenCTM() ||` 1\"`2b\"SVGMatr`(\\!} catch (e)` T)` 7/var `*.#- pos.e % 1`'B$` -\"f % 1`&w!` E!||`$L#` *$`4h$`*v$`',#` )!+` y!)` ]!s.` :#` 3)`/-!}`'e!` q!` 7\"`!:\"` c#top +`!/\"` b\"`(}'` 6#` `\"}`#x*`,\\!`#r,R.`*m)` ?!`*n#`*M\"c`$.*`''$c`/T+.remove`.y#`/>*` Z!bottom`*e' `*2\";`\"0\"desc = $(\"desc\"))`/d)`1z%`$N\"TextNode(\"C` +!d with Rapha\\xEBl`*K!R.`47#));c` b)`!)%` \"3fs`!C$fs\"))`'=-move`#9,`#:)` =\"`#?%`#5'.paren`!y!`*I!` %1`#@)` 8');for (var i`*j!his`%]#[i] = typeof` 3!` ,!= \"`!]$\" ? R._` t\"dFactory(i) :`$!\"}}`/\\\"et`\"E! = R.st`!'&method in el` =!`'l#` '#[has](` ?\") && !` b$` -)) {` /%` -\"] = (`#@&` /\"name) {`+K#`+\"-arg = arguments`+n(.forEach` h'el) {el`!)#name].apply(el, arg);});};})`!^$;}}})();` Z'`\"G#!R.vml`!R%`+,\"has = \"hasOwnProperty\", Str = String, toFloat = parse` (!, math = Math, round =` 0!.` (!,`3g!` +$max, mmin` (%in, abs` ($abs, fill`!/\" = \"fill\", separator = /[, ]+/, e`'B!`*^!, m`\" ! progid:DXImageTransform.Microsoft\", S` E!\", E = \"\", map = {M:\"m\", L:\"l\", C:\"c\", Z:\"x\", m:\"t\", l:\"r\", c:\"v\", z:\"x\"}, bites = /([clmz]),?([^` &!*)/gi, blurregexp = /`!^$\\S+Blur\\([^\\)]+\\)/g, val = /-?[^,\\s-]+/g, cssDot = \"position:absolute;left:0;top:0;`3\"!:1px;height:1px\", zo`,X!21600, pathTyp`!o!{path:1, rect:1, image:1}, oval` >%circle:1, ellips` =\"path2vml`+B)path`'d#tot`\")\"[ahqstv]`\"i!comma`%f!R._`!H!oA`\"&$Str` [\".match(` ]!`)N!(` F-2curve);` |&`#o!/g`2;!` F%` t/`*>!` u2`!s#r`\"R!` 9&replace(`%'!,`\"C'all`\")%`)K!s` [#vals = [], isM`.N\"` A#.toLowerCase()`-$!m\",`!-#map[` A#];args`!3%val`!.(value`*3#` {#&&`!2!.length == 2`*I!s +=`!K\"+` t(`!3# ? \"l\" : \"L\"];`!o%;}` g!push(`**!`!,\" *`&*!)`+s!`,U#` }!` |!` '*`+\\\"pa`\"Q&`#I\", p, r;`\"K\"[]`0-(= 0, ii`+d!`\"!#; i < ii; i++) {p` 8![i];r` \"$[0]`#G*;r`\"8!z\"`%v!r = \"x\"`17'j = 1, jj = p` %j < jj; j`!#!r +=`,p\"(p[j]`\"Q$ + (j != jj - 1 ? \",\" : E);}re`#)$` (!`\"`$.join(S);}`%g!pensa`$`!`(L(deg, dx, dy`%|#m`'g!matrix();m.rotate(- ` G!0.5, 0.5`#i%{dx:m.x(` ^#, dy:m.y` ($};}, setCoords`)f*, sx, sy`!:$, deg`!@#_`\"!_,`!K!p`!I#`/$\"pos = _.` %#, o` >!node, s = o.style, y`#k\"flip`.P#dxdy, kx =`,:\"/`!>!ky` %'y;s.visibility`1b!idden\"`*=!!sx || !sy`2('o.c`\":!ize = abs(kx) + S +` (\"y);s`#C\"`#{\"deg * (sx * sy < 0 ? -1 : 1)`!\"!`\"_&c`'B\"`$V%`$F);dx = c.dx;dy` $\"y;}sx` m!&& (`\"V!+`&b#`!##` +) y\"`-$\"y = -1);s.`#(#flip;`\"3#orig`3?!dx * - kx`\"7#dy` *\"y`!q!`$6$||`$8#size`\"!#fill`$7!getElementsByTagName` U!`3|\");` C#` \"!&&` #![0];o.removeChild` L!`#%\"`!.#) {`\"u2m.x` <$[0]`%z%[1]), m.y` %4`!C\".`2U$`#a# * y`\"U#c.`\"Y!y;}if (`\"D)` U!`%H#` /&[0] *`%L!s`%V%` 3'1` 5%y);}o.append`\"C(}`&j,` )!le\";};R.to`#<\"`(x)`&}% \"Your browser doesn\\u2019t support SVG. Falling down to VML.\\nYou are running Rapha\\xEBl \" + this.version;};var addArrow`!B)o, `/L!, isEnd`1m&u`2S%`0}\"`.,*.split(\"-\"), se =` Y\" ? \"end`0b!start\",`/I!` j\"`.;#, type = \"classic\", w = \"medium\", h` #';while (i--) {switch`2P#s[i]) {case \"block\":` '\"` q$` (#oval` $$diamond` 2%pen` $$none\":`!V#` y%;break;` =\"wide` F%arrow\":h` 55long` F$short\":w` :/default:;}`3%!stroke`)V!node`)J2\"` @\"\")[0];` &\"[se + \"`!P\"] =`#b!` )/`$ \"` =!w` ,/wid` 7#h`0D#FillAndS`!P$`%q)params) {o.attr`/i\"` $\"|| {`&U\"nod`\"'&, a` ;&`0;\"`\"C!`0=#xy, newpath = pathTypes[o.type]`-W!`!/\".x != a.`/|!` ,#y` -\"y` ('`\",!` 1\"` %\"` 1&height` 6\"` %#` 3&c` x#c` t(c` z#c` v(r` C#r` >(r` C#r` =)` -#), isOva`.]!val`\"1.`!3!!=`!B'||`!2\"` *'` v!a` p\"` y%` -\"` Q(`!R\"`!F!` *'y), r`*A!o;for (var par in`$l&if`#f$[has](par)) {a[par]`$;!` 7!par];}`.S!`$U#) {a.`$^#R._getPath`\";$(o);o._.dir`-t!1;}`$+$ref`\"\\!`%O!` )!`!j%href);` &#title` @&` )\"` B%` *!` B&arget` B'` *\"` D&` +!` F%cursor` J!` $%`#k&` +!);\"blur\"`##& && o.blur`&w$blur`2m\"` *#`\"j!` B!`+_\"= \"path\" ||`'k$) {`!]!`'t'2vml(~Str(`#K\"`.[,indexOf(\"r\") ? R._`(P!oAbsolute` O$ : ` ##`!O!`!:'image\"`)!`2Y\"pos = [a.x, a.y]`$G!`2p$` 4\"`(f!,`(O%];setCoords(o, 1, 1, 0, 0, 0);}}\"transform`#\"-` 1%`\"$` (%`!c\"`(C\"`1S#cx = +`)Q!, cy` %$y, r` 2$`'h\"` %! || 0, r` @$`)F\"` 1&;`#`(R.format(\"ar{0},{1},{2},{3},{4` )#` \"\"x\", round((cx - rx) * zoom)` /&y - ry` &/x +` :4+` >0cx` *$`(D-if (\"clip-rect`#P'`#(#rect`4`#`)c#'` E%']`4_$separato`''#rect`4E# == 4) {rect[2]`#B!` $$+` $$0];` #!3` 5'3` 5'1]`0 !div`/c$clipRec`.I!R._g.doc.create`2D#(\"div\"), d`02! = div`0=\";` -\"` `!`$J)rect({1}px {2}px {3` '!0}px)\",`!H!`\"<\"!`!9)) {` l#posi`25!= \"a`(X#\"`!($top = 0` '$left` $(`0v\"= o.paper` )#+ \"px` Z%`0}#` ;&` *#` ?#`&g#rentNode.insertBefore(div,`#9!);div.appendChild`,o!)` X\"`#Q%`#,!`.l#!`%(0`+b#` H%`-T%` *$`#h\"`#_$\"auto\")` k#o.text`,J#var ` '$S`$G#` 7&`$N#`*5#fon`!%\"` D)` 1\"`.:%fon`.d%['font-family'`2v\"` J.F` :! = \"\\\"\" +`1O$` N*`'g#\",\")[0].replace(/^['\"]+|['\"]+$/g, E) +` e!`!6+size`!*5S`-U\"` >/` W+w`%/!` O5W`%\\$` @1`!B,tyl`!87`$&#` ?0)`+6#arrow-star`+0+addArrow(res,` Z%` D'` T,end` 8Fend'], 1` \\#`%2#opacity != null ||` N%stroke-`(q!']` 0.`1Z!` $/src` \"0` i!` TP` 9%`!e#` .2fill` $:` _#dasharra` (:miterlimit` *9linejoin` $=cap` :&`){#`#;!`.y#get`.a#sByTagName(fillString), new` J#false;` %$ill &&` #![0];!` )$(` F'` E\"`/i\"Nod` m)`.z\"o.type == \"image\" &&`$f') {fill`$w!`+,%src;}`%@(&& ` u!.`/K!true` w\"` +%`%m2== \"none\"` '.`#'%` m&`\"X\"`'?!` -$`!a&fi`#U%isURL`3})` 8\".match(R._ISURL`!\\\"` H!` $`0&&`!m!ode &&`$A\"remove`/~\"` i!`$\"!.rotate`\"M#` -\"`#$\"` s![1]` .\"`#]\" \"tile\"`4=!bbox`/7!getBBox(1` k#`2m'bbox.x + S +` '\"y;o._`\")!pos = [` =\",` 7#];R._preload`\"4\"[1], func` n!() {` Y$s`-~\"[this.offsetWidth, ` ''H`-F!];});} else`#\"#color = R.getRGB`#Z*hex`\"_(E`\"V*solid\"`#x!` I2error`&.!res` Q\"in {circle:1, ellipse:1} ||`$u.charAt() != \"r\") && addGradientFill`-[(` Q!,`(F!)) {a`&[#`&s#;a.g` R#`3*'ill`%1+`&v#`4M\"\"`,((`.~' || \"` %.`'1#`.j$= ((+ a`,i-+ 1 || 2) - 1) *` A\"`/@%` *1`#L2o` >+;`!1&mmin(mmax(` -#, 0)`0X!`).\"` @%` ##`*=&`+\"'`%W$`#<#}}`(^!append`(W(var `08#`-28\"` >\"`$d\"` $?[0]`-q!` r%`$7\"!` )#`-\\#` 5%` >%`-\\'` c%`+ \"`1}*`-V'`23%`,X,`2--`1gK`1a/`1M;`1G9`1A7) {` -\"`/3&;}`\"C+`.u0` 2%`!s&` ]'`/`-` `&0`\"k7== 0`%\"!(`!H(`$[!`%c(C`+i3` 8\");` S&`$;-` q'`&$` i'.hex`(#(`)C#`$A-`(xP` {(`)1-var `\"`! = (toFloat`\"/#`\"u,) ||` p\"0.75`)WA`#T6`$A!&& (`!5$`\"D&`!'$` F4`#?'w`0C! =`!}\");` g\"&&`\",#< 1` I!`!c$*` A$` O11`$V&`+]-`'H6` _'joinstyle`/)%`'|3\"`(\\!\"`!'%`(f&` H.`(|,8`!80`(l!`!?(endcap`!22` G\"== \"butt\" ? \"flat\" :` 0:square` K!` #$: \"round\"`,C(`+10`1$#` )% = {'-':\"shortdash\", '.` (%ot\", '-` '&ash` ,%` &,` 2#. ':\"` =$` '!` p#--':\"long` (% .` 8#` G$`!%!` ;$` +&` '+dot\"}`$M$dash`%&$`\"/%[has]`\"K9?` B'` .6] : E;}`0E&`1:$`2!(`+n$}if (res.typ`-n\"text\") {res.paper.canvas.`!l!.displ`$ !E`,w\"pan = ` D&span, m = 100, fontSize = a.font &&` ##.match(/\\d+(?:\\.\\d*)?(?=px)/);s =` x!`!2\";` S&(s` %\"` i$);a['font-family`'F$` 8!F` .!`*~\"` 7)` L&`)\"` I)W`*0$` 4,` L&`!Q!` H)S`$j#` 3+);`\"X'`-^$` ;%ize`)V\"` <%&&` #%[0`-r#0;` |#` `\"` \"%* m + \"px\";`$_!extpath.string`!V\"pan.innerHTML = Str`%+\"` ?*).replace(/</g, \"<\"` ,'&` 0#38` *)\\n` 3!<br>\")`0/\"brect`$W$getBoundingClientRect()`!l!W`$`!w = (` O!.r`#s!-` \\\".left) / m` H!H` H!`1(!` 9\"bottom` E%top` C&X` H!x` '!Y` '!y +`'!!H / 2;(\"x\" in`,O#`.4!y` &'`/`\"`'O\"th.v`4S!format(\"m{0},{1}l{2` #!\", `,e!(a.x * zoom)` )&y ` \"-` =% + 1`#-#dirtyattrs = [\"x\", \"y\",`)I#, \"font\",` \"\"`'?#` &%`&y\"` &%`&U!` $&ize\"];for (`!%! = 0, dd =`!+'.length; d < dd; d++) {if (` ;&[d]`\"x(`*!_.` ;! = 1;break;}}switch (a['text-anchor`/F!case \"start\":`&Y+yle['v-` M\"lign'] = \"left`'[\"bbx`+e#W`$a!`!*\"` m\"end` ID`&A!` f(-` c-default` JCcenter` f(0`\"d$` F7ker` Z\"true;}}, addGradientFill = function (o, g` 5#, fill) {o.`%j$` \"$|| {}`&,!` ++, pow = Math.pow, opacity, oindex, `/}\" \"linear\", fxfy = \".5 .5\";` c#.`!?$ =`!I%;` )'Str(` '$`*~&R._radial_`!{'`\"4%all, fx, fy) {`!A$` K\"\";if (fx`-U!y) {fx`-'fx);`!a!` (%y);pow(fx - 0.5, 2) + ` .!y` ('> 0.25`*C!` [!m`$<!qrt(` 3!-` L\"` Z') * ((fy` U!5) * 2 - 1) +` +!;`#'#fx + S + fy;}return E;})`\"w(` #$.split(/\\s*\\-\\s*/)`\"G!`4#%`$##) {`$m!ng`0|!` T&hift();` 1$-`0v&ngle` g\"isNaN` *#`)n!`!M!null;}}`*k!ots`,{!_parseDots`$V&` ^!!dot`*I\"` Q'o`&7!shape || o.node` J!dot`+G$`&!removeChild(`'4!;fill.on`'s$` *!method = \"none\"` /\"color =`!_![0]` *\"` 0'2` 4$`!)' - 1` B$var cl`..\"`-8'i`-=\"ii` X#`-4%i < ii; i`-8!` u!i].offset &&` g!.push`\"@!` 1'`%-\"` -$`!8!);}`!_&s =` W\"`!]#?` (\"join() : \"0% \" +`*4!`!u#`%=)`($#) {` =!`(:$`$@$Titl`#,$focus = \"100%` ((siz` P!0 0` +(posi`)A!=`*L!` 4\"`&+$0;} else`!!3` a#` F$(270 -`'#\") % 360;}o.append`%5(`(1$1;}, Elem`(2\"`*g&node, vml) {this[0`-d!his`&C! = `&J!node.raphael`&&$` @!id`'M\"oid++` :)` 5!` =#` F\"X`\"C!` &!Y`\"N!` &!`-x${}` *\"paper = vml` +\"matrix`!\"!` %\"()` 3\"_ = {transform:[], sx:1, sy:1, dx:0, dy:0, deg` \"!irt` 6\"irtyT:1};!vml.bottom`,?!` $'`!y\"`!&#prev`!P\".top;v` \"\"` J%top.next` L%` 9$` *\"` ^\"` :#`*2\"`(O!elproto`\"8!el;`$;#.` 0!`%=#` <#;` D#.construct`)l!` K#` 5%`\"f%`$y)tstr) {`'e!str =`!?\"`+a&`#J\"` T&;`,M!vbs`$\\$`$1!._viewBoxShift, vbt =` A!? \"s\" + [vbs.scale, ` \"%] + \"-1-1t` :%dx` :\"dy] : E, oldt`)E!vbs) {old`#F!`!h!`2E!`!~!`2=%/\\.{3}|\\u2026/g,`!p- || E);}R._extractT` 3$(this`!w\"+` }!)`$&!`&>%`&J'.clone(), skew` 4$skew, o`(<(, `0}!, isGrad = ~`!p!`'X%.`)K!.indexOf(\"-\"), isPatt = !` /:url(\");`!M#`\"?!late(1, 1`15$` e!||`!9$||`!W\"`,p%image\") {skew`(j&\"1 0 0 1\";` 3!`.?#`,U$`\"0!`4N\"rix`3?#`!*$`!#!&&`\"T\".noRota`&J!|| !` /\"isSimple`1Z!style.filt`*;!`\"&$oF` -!(`$ \"bb`#O$getBBox(), b`&C!` ))1), dx = bb.x - bbt.x, dy` -\"y` ,#y;o.coordorigin = dx * - zoom`0e$y` )%;setCoords`%^#1, `+E!, dy, 0)`.}%`!~-E` K-`\"]\"`'}!x`%Y#` (\"y` &$d` /%d` +%rotate);}` n8`$V)Str(` '\")`$V+`#\\#` *\"();}`(r!&& `&F\"`(C(=`)=!);`*e';}`+M%`!O\"`+F)deg, cx, cy`+R$his.removed`+L*;}if` M!`+h-;}` 1!`!!deg)`&<#separator`&F\"deg`4h$- 1) {c`)c!oFloat(deg[1]);cy` &+2])` x$` +(0` E#`!E\"`\"j!` k!cy`!(\"cx` 3%|| ` @&) {`&|\"o`*}%`&d&;` ^!bbox.x +` #\"width / 2`!U\"` /!y` 5$height` 9!}`$'#`1O\" = 1`0I\"`$5%`$>-.concat([[\"r\"`29!`$$$]])`$M4`+/%`$Z*`'W!`$@?`))!`$C!x`$/4x`$8*`)H!`#q%x`$@!` a\"` *'0]) || 0;` I!`)I!` *!`!F%_.bbox) {` #'.x += dx`#\"\"` -#y` /!y`#H#`\"xAt\"`*5$`\"}7`)o!`#')sx, sy`'TGs`#4$s`#$4s`#-+s`#0(s`#6\"`'i)sx`'[!`'h)sx[3]);isNaN(cx)`'R&`';!` 1$y` 2#y` 0%`![\"` \\'0]);s`(6*`!M!sx`'hp}` ^\"` R&?`(R4 : cx`\"O\"`!<'` H#`(i/ : cy`(CGs\", `$p*`%T!`)O.`%U2hid`%\\*) {!`%M(`.S&node`/S#display = \"none\"`&P5how` BXE` a4_`$%#` m,`'=6{};}` #$x:` ?!X +` G#bbx`)!) -`%%\"W / 2, y` C\"Y` /$H, `$t!` 1\"W, `$R\"` )\"H}`14(`!;!`!?< || `\"j\"`\"Z!parentNode`1$'` :!paper.__set__ &&`!I\"` )).exclude` |!);R.eve.unbind(\"raphael.*.*.\" +` Y\"id);R._tear` P!,` k'`%{#`!H+`!q#Child`$M&` E#shape`!S%` )!` >9` =!);for (var i i`%\"\"`-s#[i] = typeof` 3!` ,!= \"`#K$\" ? R._`#E#Factory(i) :`) !`#4#`#c$= true`$8'attr`$4)name, value`-??if` L\"`+\"+res = {}`\".&a`\"0$`!-!s` o(` ,` |!s[a`\"Q!` 4&a];}}res.gradient && res.fill`\"k!`)>!`(e!` -&` =!` J$`-y!delete` +);re`+['`!/$`+]'`)6$re`\"J#`\"x!`.!(R.is`#2#\"string\")`\";#`\"u$fillS` 6!`%T%`\"5!`!n/` 2'`!r&`#k(` .+;}var nam`#p!name`1[-, out`$#+i = 0, ii` N#s`2##; i < ii; i++) {`!|\"` =\"[i]`0K!` /!`$a,out[name`$L+` .!;} else if (`#)!`)p'customAttribute` K#,`'X')` j0` A8.def`!+$` M)R._availableA`!S(`-O$ii - 1 ?`#,!: ` T$s[0]]`%8\"`\"1& &&`(C\"`%44array`!v$`#t'`#k,`#c3`!5$[i]`#G)` z![i])`/D%ou`%?#params`$?!`!T\"!`)O%` 5\"`!@\"` &\"`\"m%` F!;}`!o9object\"`(a!(` c%nam`,R(key in`!?#) {eve`.M&attr`.S!key + \"`.X(`.P\",` S#[key])`#i\"` c%`! !` z#`%&7`+N(`%L3`+f!key`\"'!`!+#` ')`&a=key`&p-`#x#`&`;key].apply`1'#[].concat`\"C#`\"V\"`0g#`(\\\"key] =`\"p(`#h&sub`#k&`\"U#par`\"*\"` 7\")`%4%[` +\"` f#` &$;}}}`#`'.tex`.:!`!=!typ`%N!\"text\"`1N#` >!path.`-(\"`!T%` 4!;}setFillAndStrok`4(\"`$u$`',&`0]\"`1B%toFront`1A)) {!`1t)`!P$`4$,append`3~2`$&!` Q%`$3\"top !`$E\"`%,\"_tofront`!e#` A&)`/x$`!^-Back`!^,`2m@`!l1first`!{!`!P$`!}\"`#k#` ?,insertBefor`#Y\"` =!`!q#` b6);`\"E!back`\"6/`$\"3`!&\"After`\"B)elem`1W\"`\"2@` G#.constructor == R.s` ')) {` C# = ` ##[` T$`-b\" - 1`.f#` 1$`\"M!nextSibling` \\&`\"qE` R5`0`%` Z4`&E3}R._`!'\"after`#i#` ^#`%~@`!^(`\"w~`#d10];}`\"mX`&K!` C\"b` ?&`\"9Iblu`&I*size`.I#s`.F$`!W!runtimeStyle, f = s.filter;f = f.replace(blurregexp, E)`3)!+ size !== 0`),$`.Y!`!8$size;` h$ = f + S + ms`2'!Blur(pixelradius=\" +` m%|| 1.5) + \")\";s.margin = R.format(\"-{0}px 0 0 ` %\"\", round` U+`&d&`!@(` h(0;delete`\"s\"`!z&`*.,R._engine.path`#U)pathS`/U!, vml`#f#el = createNode(\"shape\");el.style.cssText = cssDot;el.coord`!}!= zoom`#0#zoom` 6%ori`!v\"vm` %);`3O! = new E`%m\"(el`!O\", attr = {fill:\"none\", s`1-!:\"#000\"};`\"!& && (attr`\"H$` 1&);p`2B# \"path\";p` =$[];p.P` &\"E;`2(-p`!@\");`!u!anvas`*b)el)`\" !skew`#.,kew\");skew.on = true;el` S)skew);p.` Y#skew;p.transform(E`(M%p`$f)rec`3;*vml, x, y, w, h, r`$o#`\"A#R._rectPath(` 9*, res`$5#path`%Y!), a = re`&;#;res.X = a.x = x` +!Y` +!y = y` +!W` +!wid`!-!w` /!H` /!height = h;a.r = r;a`$;(` F!`$:$rect\"`\"O$re`'>*ellips`-a*`\"Q'rx, ry`\"T#`\")+`!{5x - r`\")&y - r`\"(&rx * 2`\"$%ry` &%`!i$`!M#\"`%m.res, {cx:x, cy:`!\\!:`!^\":ry}`$t%`\"6,circl`\"+6`!lP`\"1*`\"4&`\"/$`\"%-`!>\"`!oB:r`!r6imag`!x/src`'%(`&j@`&t3`\"I!({`*q$`+#!}`\"],, node` +#`2\"\"fill =` 3!.get`+y#sByTagName(fill`+:#[0];a.src = src`'Ch`'o4`#3!\";fill`4+' =`!l\" &&`!t\"remove`+H\"fill)` L\"rotate`+n$` .!`!t&` *!`! $tile\"`!5!_.fillpos = [x, y]` ,'`/\\#[w, h];`!6!`,](`!5\"setC`0+!`%_\"1, 1, 0, 0, 0`%H5t`0m\"`'V1text`1@;,`%m$` 0(`/a!), o` )+text` 6\";`$T! || 0;`$O!` %\"`!F#` \"!|| \"\"`0}!.v`4`)m{0},{1}l{2` #!`4c%x *`2U!)` )$y ` \"+` 9% + 1)` w\"`!M$ok`$H$o.s`2.\"= Str(`\"a!;o`0Y*`3Lc\"0 0\"`3\\I`3u!`3&`41#font:R._availableAttrs.font`$a\":text};p.`$S! = el`3}&`'y!p`\"a% = o`4I'text\";p`*$\"`%h$`\"o&` 1$`)E\"` &$`)C\"` &$w = 1` %%h` )!`,i-p`\"E\")`46,o)` \",`+t!;vml.canvas` 0)el)`#L!skew`'$,kew\");skew`$`*` T(skew);p.` Y#skew;p.transform(E`(b%p`(\\)setS`%0\"`(b&`+z!, `+l\"`(c#cs = this`!u$`&&!;` -!`,F%idth` -\"`,D&` $!;` <#= +` @\" &&`!!# += \"px\");` L$= +` P#` A!` $#` >%c`!!,c` }.cs.clip = \"rect(0 \"`!1%+ \"` )!` p$ \" 0)\";if (`!v!_viewBox) {`\"z)V` 1\".apply` F!,`\"k\"` H%;}`#\\#thi`,A*` U&`#\\)`1]&, fit`!-!eve(\"raphael` M'\"`!'\"`!$+,`.N\"` Y']`&!\"`\"z$`$6&`$h$` -$` (\", `*M#1 / mmax(w /` X\", h /`%=$, H, W`# !`!c\"H`#d% / h;W`$&$ / w` B!w * H <` 0\") {x -=`%+$- ` 9!) / 2 / H;}if (h * W <`&N&y` N!` #- ` ;!` L$W;}}`\"^)`18$`\"d$!!fit]`&h\"` <$Shift = {dx:- x, dy:- y, scale:size}` L\"forEach(`$B&el) {el`(h'\"...\");}`(q%`%0#`(J!`)w%`%;'initW`-|!`) (n`({#doc`#@!n.document;doc.` d\"StyleSheet().addRule(\".rvml\", \"behavior:url(#default#VML)\");try {!doc.namespaces` U! && ` (+add(\"` n$urn:schemas-microsoft-com:vml\");`\";&`\"&)tagName) {`\"q#`!}&`0?$\"<rvml:\" + ` G#`)C!class=\\`!<!\\\">\");};} catch (e) {` VX` },xmlns=\\`\"02.`\"?#\\`!>3`*1(`$p#(R._g.win)` 1'`!?\"`!`)`.)$`/F!R._getContainer`+V#0, arg`%?!s), c` 7$ = con.` '%`*)'con`*)&,`*W%con`*W$x` (#x, y` $#y`)e!!` g%) {throw new Error(\"VML`!6'not found`'u!var res =` L!R._Paper, c = re`0C$`\"@#.`$\"/div\"),`0w\"c`0l#`4-! || 0;`4*!` %\"`/f) || 512`0I%`\"_$|| 342;re`03,re`0Vy`\"G!oord`.&#zoom * 1000 + S +` &(` D&orig`*j!\"0 0\"` 3!spa`%O$`\"|0span`!)#span`#,\".cssText = \"position:absolute;left:-9999em;top` #%padding:0;margin:0;line-`\"7\":1;\";c.appendChild(`!.$`3~!`!*&R.format(\"top:0`!+\"`$J#:{0}`#>#:{1};display:in`!&!block;`!k%relative;clip:`4R#{0} {1} 0);overflow:hidden\"`'`#`'~$)`'I!`(B'= 1`4_\"`#F\"body`\"$)c`\"%!le`0/!x +`$i!;cs.top`&U!` (&`!\\$ = \"`#S$\";} else {`!+).first` }!) {` -&insertBefore(c`*+'` E(` j%` 4&`!c+}}res.renderfix`+K,}`1E$res;};R.prototype.clear` @,R.eve(\"raphael` >\"\",`2&!)`2e\"`)\".innerHTML = E` 4\"`&gB` B%`&0z`&-*;\"`!p)`#8(`!G%`!T#bottom =`\"O!`%4#null`#/+remov`/9-`#0+` ?\"`#+1parentNod` c$`!C'` =\");for (var i in` ^\" {this[i] = typeof` 3!` ,!= \"`!E$\" ? R._` t\"dFactory(i) :`\"%#`%O#true;};var set`\"9!`$]!st`!3&method in el` =!)`'\\\"` '#[has](` ?\") && !` b$` -)) {` /%` -\"] = (`#4&` /\"n`4K)`2u-arg =`2c&`'U$`#1!forEach` h'el) {el`!)#name]`3K#el`3N!);}`4Z!)`!^$;}}})();oldR`$]#was ? (`4f!.` .# = R) : (window` *)`!L$R;});"));
/* Map path and default settings - you can edit this */
var simplemaps_countrymap_mapinfo={ map_name: "country", state_bbox_array:{CRI1334:{y:1,x:258,x2:517,y2:332},CRI1333:{y:32,x:368,x2:650,y2:310},CRI1330:{y:197,x:1,x2:965,y2:1263},CRI1331:{y:226,x:555,x2:809,y2:478},CRI1329:{y:64,x:697,x2:999,y2:477},CRI1328:{y:95,x:640,x2:749,y2:283},CRI1327:{y:241,x:667,x2:833,y2:389}},paths: { CRI1334: "M413.2 36l-0.5 0.5-1.7 0.4-1.3 0.4-1.4 0.3-0.9 0.6-10.4 11.9-17.2 11.8-0.5 0.9-0.6 1.1-2 0.8-7.5 0.6-0.8 1 0 1.1 0.7 1.3 10 11.6 2.5 1.9 5.3 3.1 1.3 0.5 5 0.6 1.1 0.4 1.4 1.1 2 2.9 5.4 10.7 6.5 0.3 5.7-0.6 4.8-1.2 2.7-0.3 1.5 0 1.4 0.1 1.2 0.5 1.7 0.9 6.5 4.4 1.7 1.6 1.3 1 3.4 1.1 11.7 2.8 2.4 0.7 3 1.3 1.4 0.9 1.3 1.5 3.1 4.9 2.5 4.5 1 6 0.7 1.6 1.2 1.9 0.7 0.8 5.9 5.3 2.3 2.6 3.1 1.2 12 3.2 4 2 12.5 9.7 1.6 2.5 4.8 9.6-3.4 12.3 0.9 4.1 0.6 1.5 0.8 1.4-0.3 2.3-3.6 6.7-3.4-2.8-0.9-0.5-1.3-0.4-1.1 0-1.6 0-1.7 0.5-1.3 0.9-1.9 2-0.8 0.7-2 1-1.3 0.9-1 1-1 1.7-0.1 0.6 0.1 1.3 0.6 0.9 1.6 1.5 0.3 0.4 0.2 1.2-0.1 0.6-1 2.9-0.5 4.3-0.2 0.7-1.3 2.8-0.3 1.4 0.4 1 1 1.3 0.3 0.6 0.2 0.8-0.1 1.7-0.9 1.3-4.2 1.8-0.9 0.7-4 3.5-1 1.2-0.6 1-0.2 2.1 0.2 1.2 0.9 2.4 0.1 0.9-0.4 0.3-0.5 0.1-1.1-0.4-2.1-1-1.7-1.4-0.8-0.8-2.7-3.4-2-1.7-2.1-1.1-1-0.4-1.4-0.2-0.9 0.1-1.1 0.4-0.9 0.1-1.1-0.4-1.3-1-1-0.4-3.2 0.4-1.4-0.1-1.8 0-4.4 1.3-1-0.7-0.8-0.4-2.9-2.6-3.9 1.3-14.9 0.2-3.9-1-3.5-2.5-5.5-5.7 0-1.4 1.3-4.1-3.9-4.7-9.4-6.6 1.4 4.5 6.3 4.7 1.5 5.4 0.5 10.4 1.4 6 2.5 4.1-2.8 1.9 0.4 3.1 2.6 2.9 6.7 2.3 2.4 2.6 2.8 5.6 1.4 0 1.8-0.7 0.7 0.6 0.4 1.5-1.9 0.1-2-0.2-1.9-0.6-1.6-0.7 0 1.4 4.1 3.7-2.2 7.2-1.3 1.8-4.8 1.1-1.1 0.5-5.6 3.3-1.1 0.3-0.4-0.2-1.2-1.1-1.4 0.1-2.3 0.7-5.4 2.6-2 1.9-1 1.7 0.4 1.3 0.8 1 0.8 0.8 0.9 0.4 0.9 0.2 2.1-0.3 1.4 0 1.9 0.4 1.5 0.8 1.2 0.3 2 0 1.3 0.3 1.4 0.8 1.7 0.6 1 0.6 0.9 1.3 1.2 1.1 1.1 2 0.5 1 0.2 1.3 0.3 1.3 0.3 0.4 1 0.6 3.2 0.7 0.4 0.4 0.1 0.6-0.6 1.4-0.9 2.2-2.2 8.6-0.1 1.3 0.3 1 0.6 0.7-0.1 0.9-1.2 1-0.9 1.6-0.7 2-0.4 0.9-0.6 0.6-1.2 0.9-1.4 2.9-2.3 1.1-0.5 0.6-1.2-2.8-0.9-1-2-1.3-5.5-2.3-0.5-1.8 0.1-2-0.2-1.5-5.2-5.8-7.2-4.1-23.6-8.5-2.1 0.5-3.1 2.2-1.5 0.5-2.1-0.5-2.9-2.2-2.5-0.5-1.4-0.1-0.5-0.4-0.2-0.6-0.8-1-1.6-0.7-1.2 0.3-0.9 0.7-0.1 0.4-12.4-4-6-0.9-1.4-0.9-1.1-1-1.7-0.9-2.5 0.1-1.6 1-1.4 0.1-2-2.6 1.6-4.1-2.3-5.6-22.5-27.7-1.3-2.5-1.8-5.9-2.7-4.2-8.5-21.1-0.8-6.3-0.9-3.8-1.3-2.8 3-3 1.2-2.1-0.4-1.8-4.7-6-2.9-1.8 1.6-2.2 3.8-3 2.6-3.8 1.8-3.7 3.7 1.5 2-2.3 1.6-3.5 4.7-3.5-1.8-4-3.3-4.2-2.3-2.4 1.9-1.2 1.1-0.3 0-1.5-3 0 0-1.5 2.5-0.5 1.6-1.6 1.9-4.2 1.5 0 3 2.5 4.3-1.8 4.4-2.4 3.3 0.4 1.4 0-0.3-3 0.8-1.4 1.2-0.7 1.2-1 2-3.5 0.8 0.2 2.7 0.2 6.6-6.9-0.5-1.8-1.2-1.5-2.8-1.9-9 9.1-0.2-0.8 0-0.6-0.2-0.4-1.1 0.1 0-1.4 2.5-2.7 1.6-1.2 1.9-0.6-1.5-1.5-0.9 1.1-0.7 0.4 0.5-1.9 0.1-0.6 2.5-0.7 0-1.4-1.5 0 0-1.7 3.7-2.9 0.7-7.6-1.3-14.7-3.3-3.9-7.2-3.2-7.3-1.2-3.3 2.3-1.3 0-6-5.1-1.8-1.9 1.1 0.4 1.3-0.6 0.5-1.3-1.2-1.5-1.6-0.4-4.3 0.4-1.7 0-6.5-2.5-5.1-2.9-5.6-2.6-8.3-1 0-1.7 5-1.2 9.3-4.3 5.2-0.6-0.9-1.4-0.6-0.8-1-0.5-2-0.3 0-1.5 10.8-0.7 2.8 0.7 1.1 1.7-0.3 2-0.5 1.6 0.4 0.7 0.9 0.5 2.9 2.6 1.3 0 1.7-1.7 0-1.4-2.5-2.4 2.4-1.6 4.6-0.7 4.4 0.2 1.5 0.7 2 1.9 1.8 0.4 1.4-0.5 0.6-1.3-0.2-1.5-1.1-1.2 0-1.7 3.3-1.2 0.9-2.5-0.8-2.9-1.8-2.6-1.5-1.1-3.7-1.6-1.6-1.1-1.9-1.9 0-0.6 1.1-0.2 1.5-1.1 3.4-3.1 1.9 1.1 2.3 2.1 4.4-0.1 2.6-2.4-0.5-3.3-2.4-3.1-2.7-2-1.9-0.8 5.3-8.6 4-8.8 6.2-8.3 7.3-3.1 6.3 3.3 6.2 5.5 7.1 4 22.1 8.3 37.5 13.9z", CRI1333: "M649.5 95.1l0 0.9-0.6 47.6-0.4 35.9-0.4 25.4-0.3 30.6-2.6 33.8 0 0.5-4 4.3-1.1 1.8-0.2 1.2 0 1.2 0.4 2-3.2 3.5-6.1 2-14.7 4.1-3.9 0.6-1.1-0.4-2.6-0.3-1.9-0.5-4.4-0.8-4.2-1.2-5.4 1.1-9.7 0.8-6.8 3-1.7 1.1-0.5 0.8-2.6 2.5-3.7 2-1.5 1.1-0.6 0.8-0.1 1.3-4 5-0.4 0.9-0.3 1.7-0.3 0.4-1.6 0-4.8-6.4-1.9-1.5-2.7-0.5-2.8-0.2-3.6-1-4.6-1.8-1.5-1.1-0.8-0.8 0.4-1.2-0.1-1.3 0.1-0.6 0.8-0.8 1.5-0.7 4.1-6.4 1.7-1.7 2.4-0.7 10.8-7.1 3.4-1.3 1.1-0.6 0.7-0.7 0.2-0.5 0.2-1.6-2.8-4.6-1.6-0.8-0.5 0.3-1.8 1.3-1.6 0.5-1.2-0.2-0.7-1.5-1.3-2.2-3.6-4.3-1.8-2.9-3.6-4.4-1.3-2-2.4-5.1-1-3.5 0.8-5.6-0.3-2.1-1.2-2.2-0.2-1.8 1.3-4.9 0.7-1.7 2.3-4.2 0.2-1.2-0.1-0.8-1.6-1.4-0.9-1.3-1.2-3.4-3.9-2.6-1.7-0.2-1.1 0.4-1.4 0.9-3 0.8-4.2 0.8-1.8 0.1-1.2-0.1-1.8-1.3-1.4-1.7-5-7.8 3.6-6.7 0.3-2.3-0.8-1.4-0.6-1.5-0.9-4.1 3.4-12.3-4.8-9.6-1.6-2.5-12.5-9.7-4-2-12-3.2-3.1-1.2-2.3-2.6-5.9-5.3-0.7-0.8-1.2-1.9-0.7-1.6-1-6-2.5-4.5-3.1-4.9-1.3-1.5-1.4-0.9-3-1.3-2.4-0.7-11.7-2.8-3.4-1.1-1.3-1-1.7-1.6-6.5-4.4-1.7-0.9-1.2-0.5-1.4-0.1-1.5 0-2.7 0.3-4.8 1.2-5.7 0.6-6.5-0.3-5.4-10.7-2-2.9-1.4-1.1-1.1-0.4-5-0.6-1.3-0.5-5.3-3.1-2.5-1.9-10-11.6-0.7-1.3 0-1.1 0.8-1 7.5-0.6 2-0.8 0.6-1.1 0.5-0.9 17.2-11.8 10.4-11.9 0.9-0.6 1.4-0.3 1.3-0.4 1.7-0.4 0.5-0.5 31.5 11.7 35.3 13.2 5.1 0.5 5.1-1.8 38.8-25.8 6.9-1.6 3.9 1.7 8.3 6 3.8 0.6 4.8-0.3 5 1.6 10.9 4.9 1.2 0.3 1.2 0.4 1 0.6 0.9 0.7 5 6.2 1.9 1.6 2 1.1 2.3 1 2.4 0.2 2.1-0.9 11.8-7.7 1.8-1.1 2.1 1 0.5 1.7 0 2.3 0.4 2.7 1 1.7 2.9 3.6 0.6 1.6 2.3 2.2 10.2 3.9 2.3 1.6 2 2.2 4.2 2.1 3.8 3.2 0.8 5.4-3.1 1.6-0.9 0.6-1 1.7 0.5 1.3 0.8 0.9 0.5 0.8 4.9 3.9 1.1 1.5 2.5-1.8 3.4 0.1 1.5 0.2z", CRI1330: "M5.1 1262.8l-4.1 0.2 2.9-4.9 2.6-2.1 3.1-1.8 3-0.6 0 2.2-0.2 2.9-2.8 3.1-4.5 1z m707.4-703.7l-1.7 0.7-2.7-0.5-1.3-1.2 2.8-1.5 3.2-0.1-0.3 2.6z m-297.7-227.1l0.5-0.6 2.3-1.1 1.4-2.9 1.2-0.9 0.6-0.6 0.4-0.9 0.7-2 0.9-1.6 1.2-1 0.1-0.9-0.6-0.7-0.3-1 0.1-1.3 2.2-8.6 0.9-2.2 0.6-1.4-0.1-0.6-0.4-0.4-3.2-0.7-1-0.6-0.3-0.4-0.3-1.3-0.2-1.3-0.5-1-1.1-2-1.2-1.1-0.9-1.3-1-0.6-1.7-0.6-1.4-0.8-1.3-0.3-2 0-1.2-0.3-1.5-0.8-1.9-0.4-1.4 0-2.1 0.3-0.9-0.2-0.9-0.4-0.8-0.8-0.8-1-0.4-1.3 1-1.7 2-1.9 5.4-2.6 2.3-0.7 1.4-0.1 1.2 1.1 0.4 0.2 1.1-0.3 5.6-3.3 1.1-0.5 4.8-1.1 1.3-1.8 2.2-7.2 5 4.4 13.3 5.5 1.7 0.9 1.6-0.6 3.5 1.4 8.4 4.9 3.9 1.3 4.2 0.1 4-1.7 2.5 2.1 5.6 3.5 2.5 2.1 0 1.4-4.4 1.1 0.2 3.2 2.6 3.7 2.9 2.8-1.8 0.6-1.6 1.2-2.7 2.7 3.2 1.5 3.9 0.4 7.9-0.2 0 1.4-3.1 2.1-3.9 1.6-3.4 2.3-1.5 3.9-0.8 0.9-5.2 3-0.9 1.6-1.1 4.1-0.9 1.7-6.9-3.4-3.7-0.3-1.5 3 0.9 1.8 3.4 4.3-0.5 0.8-7.1 3.5-1.2 0.3-0.8 1.2-5.2 2.6-1.1 1.8-4.8 15.3-2 3.9-2.6 3.4-1.6 0-6.1-12.7-18.3-24.8 0-0.1z m18.4-84.3l2.1 1.2 0.9-0.1 2.2 0.5 1.2 1.1 1.8 0.4 2.3 0 0 1.4-2.7 0.9-3.4 0.8-3.7 0.4-3.7-0.5-3.8-1.6-2-2-3-5.6 4.1-1.4 1.8-0.2 7 1.2 6.5 2 0 1.5-7.6 0z m125.8 62.1l-2 1.6 2.1 1 1.6 0.8 0.9 0.7 1.2 1.2 1.2 1.8 1.1 2 0.3 2.1-0.3 1.8-0.4 0.9-0.4 0.6-1 0.5-1.3 0.3-4.2-0.3-1.9 0.4-0.9 0.6-0.5 1 0 1.2 1.7 5.6 0.6 2.7-0.2 4.3 0.1 0.6 0.5 1.4 4.9 8.5 0.1 0.5 1.5 7.4 0.6 1.7 0.9 2.1 1.4 1.8 1.5 1.5 0.7 0.5 2.3 0.2 6.8-1.1 1.5 0.7 1.4 0 3.4-0.9 1.4 0.1 1 0.5 1.4 1.6 1.1 0.5 1.2-0.1 0.7-0.3 0.6-0.5 1.3-2.7 0.9-1 2.5-2 0.8-0.8 0.6-1.2 0.2-1.4-0.8-4.4 0-0.5 0.6-0.4 1.2-0.2 2.6 0 5.7-1.1 9.4-0.5 3.2 0.3 1.2 1.1 0.8 0.6 1.5 1.8 0.4 0.4 2.3 0.4 7.8-0.2 2.9 1.2 3.2 0.3 9.8-0.9 2 0.2 0.5 0.2 0.8 0.6 0.6 1 0.4 1.8 0 1.9-0.4 1.8-0.1 1.5 0 0.6 0.4 0.8 0.8 1 1.6 1.5 1.7 0.6 1 0.2 2-0.3 2.9-0.1 2 0.3 1.6 0.7 0.5 0.8 0.5 1.3 0.4 2.7 0 1.4-0.2 0.9-0.5 1-0.5 1.1 0.8 1.4 4.8 2.2 3.6 6.9 5 4.9 14.3 9.6 3.4 1.1 0.3-0.5 0.7-0.8 1-0.5 1.2-0.3 1.3 0.1 0.7 0.5 0.7 0.8 1.6 2.8 0.3 0.9 0.9 4.3 0.2 0.6 7.1 7.2 1.5 1.9 0.8 1.4-0.3 2.2 0 1.3 0.4 2.5 1.4 4.5 1 2.1 0.6 0.9 0.8 0.9 1.5 1.4 10.9 4.9 1.7 0.5 1.1-0.3 0.8-0.7 1.9-2.7 0.4-0.3 1.1-0.5 1.4-0.3 0.5 0 1.3 0.3 2.1 1 3 2.9 5 6.2 0.8 1.3 0.2 1.2 1.6 5.7 0.8 1.3 1.5 1.8 19.9 12.9 0.5 0.3 2.4-0.2 1.9-0.3 1.3 0.1 0.6 0.2 0.9 0.7 1.3 1.5 1 0.6 1.2 0.3 1.1-0.2 0.8-0.7 2.4-3.3 0.8-0.7 1.6-1 0.4-0.4 0.3-0.8 0.2-1.2-0.6-5.1 0.1-0.9 0.3-1.2 1.7-3.1 0.4-1.3-0.1-2.7-0.2-1.2-1.1-2.4-0.4-0.3-1.7 0.1-0.5-0.2-1.2-1.1-0.4-0.2-2-0.4-0.7-0.7-0.1-0.6 2.2-11.2 0.2-0.6 0.7-1.1 6-6.7 1-2.2 1.5-5.4 0.7-1.2 0.5-0.8 4.8-5 5.8 1.6 1.5 1.2 0.3 1.3 0.5 1.7 1 0.2 0.9-0.7 0.8-0.8 0.8-0.4 1.2-0.2 4.1-0.4 1-0.3 0.3-0.4 2.6-3.6 0.5-0.6 0.8-0.5 1.7-0.9 0.9-0.1 0.7 0 1.1 0.5 0.9 0.7 4.1 3.5 2.1 1.1 4.1 1.3 1 0.6 2.1 1.4 3.4 1.7 1.6 0.5 1.1 0.2 0.8 0 3-0.5 4.7-0.4 1.5 0.2 0.9 0.2 8.6 11.2 1.6 1.5 0.8 0.6 7.9 4.5 0.8 0.7 0.8 1.4 0.8 2.2 2.4 11.9 0.3 0.8 0.7 1.2 1.2 0.9 7.6 2.1 1.4 0.7 0.9 0.5 1.1 1.9 1.4 3.8 1.1 1.7 3.7 3.7 3.6 1.1 0.7 0.5 2.2 1.8 0 2.5 6.6-2.8 2 0 1.5 1.1 0.8 1.7 0.6 1.8 1 1.3 1.3 0.8 4.9 2.2 10 7.4 10 3.5 3 1.9 5.6 9.6 0.9 2.1-3.2 5.2-6.5 4-22.6 9.3-2.6 1.8-2.1 2.9 1 1 1.8 1.1-0.1 3-2 2.4-6.5 4.1-1.8 1.9-0.3 3.3 1.1 3.1 2 2.9 6.8 7.8 3.7 5.1 2.7 5.8 1.8 6.7 1.3 15.4-0.7 7.8-2 6.6-4.9 6-5.7 2.8-6.2 1.9-6.3 3.2-9.7 9.3-10 5.7-1.9 1.5-0.3 2.8 2.1 2.2 6.1 3.6 1.2 1.2 2.1 3.2 1.2 0.9 1.4 0.1 2.6-1 2 0.2 3.9 2.1 1.5 2.2 1 7.1 11.5 25.3-1.1 9.9-1.4 5.1-2.9-2.4 0.3-3.3 1.7-3.8 0.9-3.4-0.6-2.7-14.9-25.7-5.3-5.6-27.2-19.8-7.4-7.4 6.4-7.9 1.2-0.6 1.2-2.3 2.4-2.9 1.5-3.4-1.4-3.6-7.1-9-1.2-2.5-0.2-3.3 1.6-1.1 2.7-0.8 3.5-2.2-2.6-0.8-6.4 0.3-3.1-1.2-1.7-1.8-4.3-8.6 0.7-1.2 0.8-2 1.5 0 2.1 3.6 0.6 1.8 0.3 2.9 0.9 0.5 6.5-2.6 0-1.6-3-1.3-3.1-2.4-2.7-2.8-1.6-2.6-1.5 0-1.7 2.7-4 0.2-4.5-0.6-3.4 0.7-1.6-3-2.6-3.1-3-1.6-3.2 1.7-6.9-4.1-2-3.4 1.3-4.7-1.5-0.1-1.5 0.1 0.9-3.6-3.1-1.7-4.6-1-3.6-1.2-1.3 2.6-1.2-0.2-1.4-1.1-2.3 0.1-1 1.1-0.3 1.6-0.9 1.4-2.9 0.5-7.3-1.1-2.9 1.1-1.1 4.4 1.6-1.2 1.4-0.1 7.7 11.6 1 3.5 4.5 7.1 1.7 2.1 2.9 1.5 8.2 2.5 3.3 0.4 3 1.8 2.9 3.6 2.7 2.3 2.7-1.6 0.2 5.4-0.5 2.3-1.3 1.5 0 1.5 3.3 4.5 1.3 7.8-0.5 8.1-2.5 5.5-4.9 0.1-8-2.6-7.5-3.6-3.6-3 1.3 0 1 0.8 0.8 0.3 3 0.4-4.2-1.9-1.8-1.1-1.8-1.7 0 3.2-12.6-5.6-4.5-0.6-13.4 1.6-3.7 0-3.2-1.5-2.9-3-5.4-6.9-19-17.8-1.2-2.1-1-0.2-4.5-1.8-1.3-0.9-0.7-6.9 6.7-10.3 1.5-1.8 3.5-2.1 2.3-0.9 1.1 0.7 0.7 1.3 1.5-1.5 5.3-8.2 1.5-1.5-2.8-3.6 3.3-3.9 6-3.3 5.4-1.4 0-1.3-4.7-0.6-2.4 0.2-1.6 1.3-2.6 2.8-2.5 1.2-0.9-2.1 1.1-3.8 3-3.7 5.5-2.7 2.5-1.7 1-2.5-1.4-2.2-2.8-1.6-2.6-2.1-0.5-3.9 4.2 2.2 2 0.6 2.7 0.1-1.3-1.6-1.6-1.2-3.2-1.7-1.3-1.1-0.8-1.1-1.2-0.7-2.5-0.1 2.6-1.7-0.3-1.1-1.6-0.9-0.7-0.8 1-2.4 1.1-1.8 1.5-1.6 2.2-1.9-5.8-15.3-1.1-1.9-3.6-4-1.5 1.5-4.9-6.4-4.5-7.5-5.7-5.8-8.8-1.6 0.5-5.7-4.8-4.9-6.6-3.4-4.9-1.3-17.2-16.5-16.9-7.9-2.7-2.1-21.1-8.4-1.4 0-1.4 1.1-1.2 0-1-1-0.9-1.7-3 1.3-1.8-1.5-2-2.1-3.7-0.6 2.3-4.1-3.1-5.8-5.7-5.1-5.5-1.8 0 1.5 1.9 0.3 1.3 0.6 2.9 2.1-5.7-1-9-5.4-5.8-1.2-5.5-0.4-29.3-8.2-5.6-0.5-2.7 0.5-2.8 0.9-2.9 0.6-2.9-0.5-2.6-2.1-0.9-2.7-1-2.1-3-0.7 0.9 1.6 0.5 1.6-3.7-2.9-8.1-5.3-1.6-3.3-0.7-3.1-2-1.4-2.4-1-2.4-1.5-0.7-2.2 0.3-2.4-0.6-1.5-3.4 0.2 0.8-2.5-0.2-2.5-0.6-2.2 0-2 1.3-2.5 3.7-3.8 1.5-3.8 1.6-1.9 1.5-2.4 0.7-3.2-0.7-2.6-1.7-2.3-3.5-3.5-8.8-13.2-2.5-2-3.6-1.5 0.5-3.4 3.1-5.1-5.4-4.4-1-2.2 1.2-3.3-6.3-1.9-19.4 1.9 0-1.6 2.7-1.1 3.4-0.4 7.6 0.1 0-1.5-7-0.4-6.2-1.1-5.7-1.9-5.2-2.8-6.6-5.6-1-1.1-1.4-0.4-2.8-1.9-1.9-2.1 1-1-3.7-1.9-8.9-8.4-4.8-2.4-2.3-2.1-1.4-0.5-1.1 0.5-0.9 0.8-1.3 0.2-1.9-1.5 1.3-2.4 0.4-1.5 4.4-1.3 1.8 0 1.4 0.1 3.2-0.4 1 0.4 1.3 1 1.1 0.4 0.9-0.1 1.1-0.4 0.9-0.1 1.4 0.2 1 0.4 2.1 1.1 2 1.7 2.7 3.4 0.8 0.8 1.7 1.4 2.1 1 1.1 0.4 0.5-0.1 0.4-0.3-0.1-0.9-0.9-2.4-0.2-1.2 0.2-2.1 0.6-1 1-1.2 4-3.5 0.9-0.7 4.2-1.8 0.9-1.3 0.1-1.7-0.2-0.8-0.3-0.6-1-1.3-0.4-1 0.3-1.4 1.3-2.8 0.2-0.7 0.5-4.3 1-2.9 0.1-0.6-0.2-1.2-0.3-0.4-1.6-1.5-0.6-0.9-0.1-1.3 0.1-0.6 1-1.7 1-1 1.3-0.9 2-1 0.8-0.7 1.9-2 1.3-0.9 1.7-0.5 1.6 0 1.1 0 1.3 0.4 0.9 0.5 3.4 2.8 5 7.8 1.4 1.7 1.8 1.3 1.2 0.1 1.8-0.1 4.2-0.8 3-0.8 1.4-0.9 1.1-0.4 1.7 0.2 3.9 2.6 1.2 3.4 0.9 1.3 1.6 1.4 0.1 0.8-0.2 1.2-2.3 4.2-0.7 1.7-1.3 4.9 0.2 1.8 1.2 2.2 0.3 2.1-0.8 5.6 1 3.5 2.4 5.1 1.3 2 3.6 4.4 1.8 2.9 3.6 4.3 1.3 2.2 0.7 1.5 1.2 0.2 1.6-0.5 1.8-1.3 0.5-0.3 1.6 0.8 2.8 4.6-0.2 1.6-0.2 0.5-0.7 0.7-1.1 0.6-3.4 1.3-10.8 7.1-2.4 0.7-1.7 1.7-4.1 6.4-1.5 0.7-0.8 0.8-0.1 0.6 0.1 1.3-0.4 1.2 0.8 0.8 1.5 1.1 4.6 1.8 3.6 1 2.8 0.2 2.7 0.5 1.9 1.5 4.8 6.4z", CRI1331: "M696.7 240.5l3 10.5 0.5 0.9 0.9 1 1.9 1.7 1.8 1.3 1.5 0.9 4.4 5 0.8 1.2 0.6 2 0.4 5.8 1 4.9-0.5 1.8-0.7 0.9-0.8 0.7-1.2 0.4-2.7 0.3-2.7 3.1-1.6 0.4-1.1-0.5-2-0.3-5.8 0.1-0.2 0.1-10.1 3.6-5.8 9.6-0.3 1.8 1.2 0.8 4.3 1.9-6.3 10.3-1.6 1.7-2.7 1.9-3.9 3.5-1.4 2.4-0.7 1.4-0.2 1 0.2 1.3 0.5 1 0.5 0.2 1.3 0 2.6-1 1.8-0.5 0.6-0.1 1.3 0.2 1.3 0.3 8.1-1.8 1.8 0.3 0.5 2.1 0.8 2.2 1.5 2.7 4.2 1.4 1.2 1 0.2 1 2 3.3 4.8 6.3 1.2 1.1 0.6 0.1 2.7 1 4.5 2.2 1.1 0.3 1.6-0.8 0.9-0.2 1.8 0.2 0.9 0.4 1 0.8 1.6 2.8 1.5 3.1 0.6 1.6 0.9 1.8 1.1 1.7 0.8 0.9 0.6 0.5 0.6 0.2 4.8 1 1.1 0 4.2-0.5 2.4 3.4 1.7 1.2 3.3 1.1 1 0.6 0.6 0.6 0.2 0.5 0.7 2.4 0.5 2.9 0.8 0.4 3-1.5 1.8-0.5 2.5 0.2 1.4-0.1 1.7-0.6 1.1-1.1 1.1-2 0.9-1 2.6-0.8 5.6 5.9 1.9 1.6 2.1 1 0.6 0.2 23 14.1 7.3 20 1.9 2.6 0.7 0.7 2.7 2-4.8 5-0.5 0.8-0.7 1.2-1.5 5.4-1 2.2-6 6.7-0.7 1.1-0.2 0.6-2.2 11.2 0.1 0.6 0.7 0.7 2 0.4 0.4 0.2 1.2 1.1 0.5 0.2 1.7-0.1 0.4 0.3 1.1 2.4 0.2 1.2 0.1 2.7-0.4 1.3-1.7 3.1-0.3 1.2-0.1 0.9 0.6 5.1-0.2 1.2-0.3 0.8-0.4 0.4-1.6 1-0.8 0.7-2.4 3.3-0.8 0.7-1.1 0.2-1.2-0.3-1-0.6-1.3-1.5-0.9-0.7-0.6-0.2-1.3-0.1-1.9 0.3-2.4 0.2-0.5-0.3-19.9-12.9-1.5-1.8-0.8-1.3-1.6-5.7-0.2-1.2-0.8-1.3-5-6.2-3-2.9-2.1-1-1.3-0.3-0.5 0-1.4 0.3-1.1 0.5-0.4 0.3-1.9 2.7-0.8 0.7-1.1 0.3-1.7-0.5-10.9-4.9-1.5-1.4-0.8-0.9-0.6-0.9-1-2.1-1.4-4.5-0.4-2.5 0-1.3 0.3-2.2-0.8-1.4-1.5-1.9-7.1-7.2-0.2-0.6-0.9-4.3-0.3-0.9-1.6-2.8-0.7-0.8-0.7-0.5-1.3-0.1-1.2 0.3-1 0.5-0.7 0.8-0.3 0.5-3.4-1.1-14.3-9.6-5-4.9-3.6-6.9-4.8-2.2-0.8-1.4 0.5-1.1 0.5-1 0.2-0.9 0-1.4-0.4-2.7-0.5-1.3-0.5-0.8-1.6-0.7-2-0.3-2.9 0.1-2 0.3-1-0.2-1.7-0.6-1.6-1.5-0.8-1-0.4-0.8 0-0.6 0.1-1.5 0.4-1.8 0-1.9-0.4-1.8-0.6-1-0.8-0.6-0.5-0.2-2-0.2-9.8 0.9-3.2-0.3-2.9-1.2-7.8 0.2-2.3-0.4-0.4-0.4-1.5-1.8-0.8-0.6-1.2-1.1-3.2-0.3-9.4 0.5-5.7 1.1-2.6 0-1.2 0.2-0.6 0.4 0 0.5 0.8 4.4-0.2 1.4-0.6 1.2-0.8 0.8-2.5 2-0.9 1-1.3 2.7-0.6 0.5-0.7 0.3-1.2 0.1-1.1-0.5-1.4-1.6-1-0.5-1.4-0.1-3.4 0.9-1.4 0-1.5-0.7-6.8 1.1-2.3-0.2-0.7-0.5-1.5-1.5-1.4-1.8-0.9-2.1-0.6-1.7-1.5-7.4-0.1-0.5-4.9-8.5-0.5-1.4-0.1-0.6 0.2-4.3-0.6-2.7-1.7-5.6 0-1.2 0.5-1 0.9-0.6 1.9-0.4 4.2 0.3 1.3-0.3 1-0.5 0.4-0.6 0.4-0.9 0.3-1.8-0.3-2.1-1.1-2-1.2-1.8-1.2-1.2-0.9-0.7-1.6-0.8-2.1-1 2-1.6 1.6 0 0.3-0.4 0.3-1.7 0.4-0.9 4-5 0.1-1.3 0.6-0.8 1.5-1.1 3.7-2 2.6-2.5 0.5-0.8 1.7-1.1 6.8-3 9.7-0.8 5.4-1.1 4.2 1.2 4.4 0.8 1.9 0.5 2.6 0.3 1.1 0.4 3.9-0.6 14.7-4.1 6.1-2 3.2-3.5 3.8-0.7 4.3 2.2 2.6 1.1 8-3.7 1 0 5.7 0.4 2.2-0.4 5.8-1.9 4.3-2.5 2.7-7.4 1.3-4.4-0.2-1.6-0.7-0.8-1-1-1.8-1.9-0.4-5.4-0.6-1.7-2.9-3.2-5-7.5-0.8-1.7-0.1-1.2 1.1-0.4 9.6-0.7 4.3-0.9 4.8-0.4 1.1-0.4 1.3-1.4 4.2-5.5 8.1-0.8-1.9 2-1.5 1.9-2.9 10.1z", CRI1329: "M916.5 477.3l-2.2-1.8-0.7-0.5-3.6-1.1-3.7-3.7-1.1-1.7-1.4-3.8-1.1-1.9-0.9-0.5-1.4-0.7-7.6-2.1-1.2-0.9-0.7-1.2-0.3-0.8-2.4-11.9-0.8-2.2-0.8-1.4-0.8-0.7-7.9-4.5-0.8-0.6-1.6-1.5-8.6-11.2-0.9-0.2-1.5-0.2-4.7 0.4-3 0.5-0.8 0-1.1-0.2-1.6-0.5-3.4-1.7-2.1-1.4-1-0.6-4.1-1.3-2.1-1.1-4.1-3.5-0.9-0.7-1.1-0.5-0.7 0-0.9 0.1-1.7 0.9-0.8 0.5-0.5 0.6-2.6 3.6-0.3 0.4-1 0.3-4.1 0.4-1.2 0.2-0.8 0.4-0.8 0.8-0.9 0.7-1-0.2-0.5-1.7-0.3-1.3-1.5-1.2-5.8-1.6-2.7-2-0.7-0.7-1.9-2.6-7.3-20-0.7-2.4-1.4-2.9-1.6-2.1-1.3-3-0.5-2.7-0.5-2.1 0.8-6.8 3-6.3 12.7-15.2 4.9-12.6 1.8-2.7 6.6-8.1 9.3-11.7 1.5-3.8-0.6-4.1-2.5-7.9-0.3-4.9 0.7-3.9 1.7-3.6 2.7-4 0.5-0.9-4.4-0.9-23.2-0.5-31.6-0.2-5.7-2.1-21.5-10.1-13.2-6.3-9.6-4.5-27.4-12.4 2.9-10.1 1.5-1.9 1.9-2 10.4-11.1 0.6-1.1 2.7-5.7 0.6-1.6 0.3-1.2-0.1-0.7 0.2-2.7 0.7-3.1 0.2-1.6-0.1-1.1-1.5-2.3-0.4-1.1-0.7-2.4-2.9-5.5-0.3-0.8-0.5-3.3 0.3-2.2 0.8-1.6 0.6-1 1.8-3.4 0.4-0.5 0.5-0.2 1.2-0.2 0.9-0.7 0.9-0.9 2-3 1.2-4.7-0.1-1.7-0.9-2.2-0.2-1.4 0.3-1.8-0.1-1.4-0.6-1-1-1.3-0.2-0.5 0-1.3 1.2-9.6-0.1-2.1 0.3-6.8 0.2-2 0.4-1.3 1.2-1.1 1.9-1.3 2.1-1.1 0.8-0.6 2.2-2.4 3.7-2.4 2.3-0.8 1.3-0.2 6.4-0.6 2.3-0.6 1.6 0.1 1 0.3 0.2-0.6-1-1.3-0.8-0.7-1.9-1.2-0.8-0.7-1.5-1.6-0.2-1.9 0.6-4.5-0.1-1.5-0.6-1.1-0.9-1-1.1-1-1-0.7-0.7-0.3-2.5-0.7-0.6-0.5 14.3-3.5 7.7-3.9 0.7-6.1-2-7.9-0.2-9.6 0.1-1.1-0.3-1.1 1.6-1.2 1.3 0.3 1.4 0 1.5 0.1 4.4 5.2 5.6 10.3 4 11-0.5 7-3.2-4-5.8-14.2 3.7 17.8-0.3 7.2-6.4 5.4 3.4-0.6 2.2-1.6 2.2-1.9 2.8-1.8-1 1.1-0.2 1.4 0.4 1.6 0.8 1.8 0.9-2.6 0.9-5.1 1.2-2.8 10.7 29.5 13.3 31.5 15.7 26.4 41.8 55 3.3 2.6 14 17.1 8.6 8.6 5.2-2.9 2 1.2 5.8 1.1 1.2 1.7 0.2 4.1 0.7 3.5 1.6 3.1 2.8 2.9 10.2 15.2 3.3 2.4 12.6 17.1 9.5 9 5.6-1.7 1.3 3.5 1.2 9 2 4.1 3.4 2.6 14.7 5.1 5.2 0.5 5.2-0.1 4.8 0.4 4.3 2.2 5.4 8.3 3.9 2.4 2.4 8.4-1.7 0.1-3.3-1.8-3.4-0.6-1.5 2.4-1 8.6-1.4 2.8-2.9 0.5-4.1-0.7-3.8-1.2-2.1-1-2.4-2.6-2.8-5.4-2.2-2.5-1.8 0.8-2.1-0.8-9.1-7.8-12.7-5.1-4.1 0.5-4 3.5-2.5 3.5-0.4 2 2.6 4.8 1.5 6.1 1 1.2 1.4 0.5 1 0.6-0.3 1.8-3.3 1.9-11.7 1.6-4.1 1.5-1.8 3.1-0.6 4.2 1.1 81.4z", CRI1328: "M735.9 98.4l0.6 0.5 2.5 0.7 0.7 0.3 1 0.7 1.1 1 0.9 1 0.6 1.1 0.1 1.5-0.6 4.5 0.2 1.9 1.5 1.6 0.8 0.7 1.9 1.2 0.8 0.7 1 1.3-0.2 0.6-1-0.3-1.6-0.1-2.3 0.6-6.4 0.6-1.3 0.2-2.3 0.8-3.7 2.4-2.2 2.4-0.8 0.6-2.1 1.1-1.9 1.3-1.2 1.1-0.4 1.3-0.2 2-0.3 6.8 0.1 2.1-1.2 9.6 0 1.3 0.2 0.5 1 1.3 0.6 1 0.1 1.4-0.3 1.8 0.2 1.4 0.9 2.2 0.1 1.7-1.2 4.7-2 3-0.9 0.9-0.9 0.7-1.2 0.2-0.5 0.2-0.4 0.5-1.8 3.4-0.6 1-0.8 1.6-0.3 2.2 0.5 3.3 0.3 0.8 2.9 5.5 0.7 2.4 0.4 1.1 1.5 2.3 0.1 1.1-0.2 1.6-0.7 3.1-0.2 2.7 0.1 0.7-0.3 1.2-0.6 1.6-2.7 5.7-0.6 1.1-10.4 11.1-8.1 0.8-4.2 5.5-1.3 1.4-1.1 0.4-4.8 0.4-4.3 0.9-9.6 0.7-1.1 0.4 0.1 1.2 0.8 1.7 5 7.5 2.9 3.2 0.6 1.7 0.4 5.4 1.8 1.9 1 1 0.7 0.8 0.2 1.6-1.3 4.4-2.7 7.4-4.3 2.5-5.8 1.9-2.2 0.4-5.7-0.4-1 0-8 3.7-2.6-1.1-4.3-2.2-3.8 0.7-0.4-2 0-1.2 0.2-1.2 1.1-1.8 4-4.3 0-0.5 2.6-33.8 0.3-30.6 0.4-25.4 0.4-35.9 0.6-47.6 0-0.9 2 0.3 2.6-0.5 4.1 4 2.5 1 2.5-1.9 1.5 0 2.7 2.6 5.4-3.5 3.7 0.9 2.6-2.6 3-0.5 2.4 1.6 1 3.8 13.2 10.5 1.5 0.7 2 0.3 2.2-0.4 3-2.1 1.5-0.5 6 1.2 0.8-0.5 4.5-5.3 14.5-5.5 1.2-0.3z", CRI1327: "M796.5 389.2l-23-14.1-0.6-0.2-2.1-1-1.9-1.6-5.6-5.9-2.6 0.8-0.9 1-1.1 2-1.1 1.1-1.7 0.6-1.4 0.1-2.5-0.2-1.8 0.5-3 1.5-0.8-0.4-0.5-2.9-0.7-2.4-0.2-0.5-0.6-0.6-1-0.6-3.3-1.1-1.7-1.2-2.4-3.4-4.2 0.5-1.1 0-4.8-1-0.6-0.2-0.6-0.5-0.8-0.9-1.1-1.7-0.9-1.8-0.6-1.6-1.5-3.1-1.6-2.8-1-0.8-0.9-0.4-1.8-0.2-0.9 0.2-1.6 0.8-1.1-0.3-4.5-2.2-2.7-1-0.6-0.1-1.2-1.1-4.8-6.3-2-3.3-0.2-1-1.2-1-4.2-1.4-1.5-2.7-0.8-2.2-0.5-2.1-1.8-0.3-8.1 1.8-1.3-0.3-1.3-0.2-0.6 0.1-1.8 0.5-2.6 1-1.3 0-0.5-0.2-0.5-1-0.2-1.3 0.2-1 0.7-1.4 1.4-2.4 3.9-3.5 2.7-1.9 1.6-1.7 6.3-10.3-4.3-1.9-1.2-0.8 0.3-1.8 5.8-9.6 10.1-3.6 0.2-0.1 5.8-0.1 2 0.3 1.1 0.5 1.6-0.4 2.7-3.1 2.7-0.3 1.2-0.4 0.8-0.7 0.7-0.9 0.5-1.8-1-4.9-0.4-5.8-0.6-2-0.8-1.2-4.4-5-1.5-0.9-1.8-1.3-1.9-1.7-0.9-1-0.5-0.9-3-10.5 27.4 12.4 9.6 4.5 13.2 6.3 21.5 10.1 5.7 2.1 31.6 0.2 23.2 0.5 4.4 0.9-0.5 0.9-2.7 4-1.7 3.6-0.7 3.9 0.3 4.9 2.5 7.9 0.6 4.1-1.5 3.8-9.3 11.7-6.6 8.1-1.8 2.7-4.9 12.6-12.7 15.2-3 6.3-0.8 6.8 0.5 2.1 0.5 2.7 1.3 3 1.6 2.1 1.4 2.9 0.7 2.4z" }, names: { CRI1334: "Guanacaste", CRI1333: "Alajuela", CRI1330: "Puntarenas", CRI1331: "San José", CRI1329: "Limón", CRI1328: "Heredia", CRI1327: "Cartago" }, default_regions: {}, proj: "mercator", default_labels: {}, proj_coordinates: [ { lat: 9.562529, x: 636.3, lng: -84.218004, y: 368.1 }, { lat: 9.40798, x: 747.5, lng: -83.710787, y: 402.4 }, { lat: 8.85, x: 921.5, lng: -82.916667, y: 526.3 } ], initial_view: { x2: 1078.578, x: -68.59800000000008, y2: 1275.63, y: 0.99 }}
/* Map logic - do not edit */
eval((function(x){var d="";var p=0;while(p<x.length){if(x.charAt(p)!="`")d+=x.charAt(p++);else{var l=x.charCodeAt(p+3)-28;if(l>4)d+=d.substr(d.length-x.charCodeAt(p+1)*96-x.charCodeAt(p+2)+3104-l,l);else d+="`";p+=4}}return d})("(function (plugin_name) {var dependencies = {};` D'` =#root =` >);var Tweenable = ` D.formula` E!DEFAULT_SCHEDULE_FUNCTION` 1)EASING = \"linear\"` 1)DURATION = 500` 6!UPDATE_TIME = 16.66666666` \"\"8` @!_now = Date.now ? ` \"%: `!i)return + new` @!;}` ]!` [\"typeof SHIFTY_DEBUG_NOW !== \"undefined\" ?` 1.:`!@!;if (` _#window` L,) {`\"q5 =` N#.requestAnimationFrame ||` 8$webkitR` ';oR` \";ms` C<mozCancel` 32&&` >'` S5setTimeout;} else`\"F:` C(`$T%noop() {` (&each(obj, fn`&i#key;for (key in obj) {if (Object.hasOwnProperty.call` ]\"key)) {fn(key);}}` ~&shallowCopy(targetObj, srcO` z!`!C!` (\",`&B'prop) {` I%[prop] =` R#` )\";});`&l#` @%`\"J'defaults`!1#`!0!`!''` |/`&U'` N\"`!/$`&U-` 1* src`!K$})`!8'twee`#,!s(forPosition, currentState, original` (#` v\"` &#dur`%J!, timestamp, easing`$P#normalized` x$ = `!#' <` Q& ? 0 : `!A( -` 5&) /`!(%`*4!prop` $!`!,\"`%B\"P` '*Fn`%p\"prop in`\"/)`#M#` '(`%w+`#u\"`$2!` t* =` y#`#R#`!%$`+_&` @.== \"`#t$\" ?` 0.:`.M$[` +,];`!Y(`$p%`$X%(`$8)` :\"`$>)` +$`!`$,`$&/);}}`'*#`!\"(`%]0(start, end` k%unc, p` d$`.f%` E! + (end -` )\") *` K'(` L%`! 'applyFilter(`!2!able, f` -!N`2W&` +\"s =`2%&.prototype.` 8\"`%J!args`#+$` A!_` 7\"Args;`)1!` d#`).(`3c#`)/'` >#[name][`!E&]`/z/` 35.`\"9!`\",(args)`)Y\"var`'o!outHandler_endTime`\"#!` ,+`$C#` '4isEnded` '0offset;`$s&` 2)`!Q(`*1'delay`*L(`*bF`%+\", step, schedule, opt`!z(Override) {`\"P2 =`+''+`!L\" +`*p&`\"g6 = Math.min(` 3 || now()`\"P\"`!,.)` p,`#[#`!O#`!\"3>` --`$k$`$ 1 =`\"&% - (`\"Q3`-U\"` |2);`'/!`'d%isPlaying()`'H$`!r1) {step`1N#`$_$`(J&attachment`\"p-`!u\");` D&stop(true);} else {` `'`%:$Id =`%F%`!h'_` r*, UPDATE_TIME);`*i3\"before`*g!\"`\"^#`#}6`10(`&##)`!]#`2q\"1`'5H1, 1`2U%`\"D*` h\"`!06`35[`!u$`!3'`\"h4after`\"w$`%&!`!,*`$^J}}`/(&composeE`1p'(from`!(!Params`!W%`/6\"` K#d` M\" = {}`,C\"`.F!` -%`3D)`$m\"` 4)== \"string\" ||` O+`3h)`4d!ch`!E.`/h&prop) {`!M*`3h%`!=#}`$u&` ICif (!` a0` l<` (#|| DEFAULT_EASING`0F\"`4G$` U)`3;'`2k%`-+!initi`&,%`-=!onfig) {this.`&j$` <! =` =!` H( || {};` E#` V!ur`-6!false` 2#`*#$F`!=$=`!r%SCHEDULE_FUNCTION`$c'`!E'`38/` v!setC` <!`/8\"`!v\";}}`\"=%.prototype.`'C! =`#'`\"C)`!3!`!j!is` Z!`&p\"`#I#this;}if` I(`!P!`!K% || !`\"Y,`!I;` I\"`)k&=`1$\"`#/$tart`!N\"get`1<!` 3!`)<&);`!T'.resume();};`\"L0`!;%`\"W)`\"W%`\"-#= ` \"#`$a5tru`$q$`!@&` O%.` *&` >#pausedA`3h$null`%I+`/k!` -'`4[\"` i%` )\"|| 0`\"m(` 6&` )\"`4B!op` :%ep` 6(ep` 2+finish` 9&` )#` 7*`3j%`!B&` *$`)4'DURA`'6!`(>1shallowCopy({},`!'%rom`,7!`$v%`%/$`/]) =` 7'` :#`/q'` f6to` n,var self` l#` e$`/:)`%N)) {` 0*(self,` `!`'+'` )$`1)#` &#`1J%` *\"`0e*` .\"`2$+` p#`2-(` -\"`-1\"` &$ste`!*%`+I,);`0I\"`#t+`$&.`0o\"`#;)`#K-;defaults(`!G)` [(`$*$`!\\\"`%a!`2@.`\"M*`$8#` K#`/4-` j$f`4C!Args = [`4\"+`%U.,`\"!(` :$` ~\"];applyF` l!`+I!, \"`-G!Created\"`+9)`+&3get`%L,` N#`&P,`#[.`+v7` g)s` H!`1#3` 8!` R3`+]!`'*-`+h1`.4'isP` 8!`,k$`\"C>`.;\"` y,`0M(` l\"`!5%`/P&+`!5# -`\"z#`!M(`0!$`!G'`33(`1F&`.P*`)N+`$C@seek`!s)millisecond) {` #' = Math.max` 9(, 0`+D\"`$8#`#K)`\"`&`\"N' ` h)== 0`3F,`2T.` q(-` U(` ~!`3`\"isPlaying()`#g%`\"r4`#G.`#-*`(0\"`!9+` )$`,q#`0$*`'T0`)B4`+I,`)R*` &$`,r\"`2k*`,p$`+m%Tim`+m$`%|!();}`$s?top`%))gotoE`%-!`#%/`&M*`&]1`0D-`3/!(window.cancelAnim`#&!Frame || ` 8#webkitC` ':oC` \":ms` B;moz` <\"Request` 05clearT`\"+\")`'8#`#x$Id`'O\"`#&&`-y/before`#<!\");`.5!Props(1`%'Z1, 0`%]*)`/70after`!6$` #9End\"`0v&nish.call`'q)`!W0attachment`&)A`)P%`0:3`&B-&& `*-\"`&F%`076S`(++`0S*` .+`'W%` ), = ` #,` |3dispo`0k.var prop;for (prop i`\"4\"`0%(hasOw`%H!erty` B!)) {delete` I![prop];}}`!(2f`$e! = {` )3ormula = {linear:`!\\&pos`#j&pos;}};` F&` S7;shallowCopy(` ?%, {now:now, each:each, `'e&:`'p&` ,'` ,&, `&r':`&~', `!&':`!2', defaults:d` \"#, composeE`(,!Object:c` \".}`1G#ypeof SHIFTY_DEBUG_NOW`1C!\"`#$$\") {root.`,f-` #*;}` A!`\"j%`#;(`3t$` '&})();(`%i)`#k&`#N1`#y., {easeInQuad`$d4`4B!pow(pos, 2);}, easeOut` ;8- (` N( - 1, 2) - 1` Z%In` M4if (` R!/= 0.5) < 1` r&0.5 *`!F/`!3$` :\"` [\"-= 2) * `!>\"`!u&InCubic`\"0B3`\"J(` /E`\"N\"3) + 1`\"F)` L2`\"\"N3`\"J&`\"L#`!0+2`!8#`\"K(Quart`\"1B4`$~+` >6`$y14`$x2` S/`\")N4`$p;`\"y,`%-+Quin`\">C5`\"W*` 1C`\"\\\"5`%*.` L2`\"/N5`$y?`!:!`\"K(Sine`$I6` \\!cos` \\!` i$PI / 2)`!|)Out` N8` S!sin` S1`\"`)`!39`\"+(cos` ^%`*'!`&+,Expo`1C7`.m!0 ? 0 :`#?&2, 10 *` J!` k!`$(` N@1 ? 1 :`#4$` m#-` p!` L!`%.,` `1if`!<\"`!_!`%+';}` .(`%E'1` 4\"`%HE`\"40`%n*`!m0--`!|#`-h)ir`-#5`*]$sqrt(1 -`#\"!`$;/Out` K8` V*`0Q0`%w*` W1`\"b:`&/)`!U6`(m/` D%`0m,`%'!`\"7(Bounc`'L.`$k$< 0.3636363636` \"\"5`!X&7.5625`1q#` |!;} else ` U(727272727` \"\"3` M/`!`$0.5454545454` \"\"`2n$+ 0.75` k0909090909` \"\"`#6'` l/818181818` \"\"`3l%+ 0.93` w&` H79`!S*6` V)84` `!`%1%Back`#M-var s = 1.70158;`)e'`#C$((s`$F!` *#- s`$I)` KG`)U\"` _#` h%` q-+ `*V/` cA`*!@`.>#`!2$(s *= 1.52`16\"`\";(`'A-`'4,` E9`\" #`*f#lasti`*P61`+s(4, -8`(>$` 1#sin`!9\"* 6`#6$(2` 6$PI)`0I!`#/$swingFromT`-l.`$!8`#-' ?`\"^O :`\"I^`!s%`&Bg` o!`\"=K-`0^!`&a?b`+W~`+W~`+W~`,&O`#T\"Past`\"\\~`#H22 - (`#2M)`#6J` m4`#I<` ~%` I<`#M>)`0@%`*3`-w@`,X%pos, 4`-u&-`*a0` @*3) -`-d$`!?#`-U4` u.` N\"`!c/` =10.2`\"K!);})();(` K&) {` $%cubicBezierAtTime(t, p1x, p1y, p2x, p2y, duration`+H#ax = 0, bx` \"\"c` )#ay` 1#y` 1#` #!;`!'%sampleCurveX(t`!r&((ax * t + bx)` ##c` $\";}` K0Y` P+y` W$y` V%` $\"` I2Derivati`!8,3 * `!B%2 *`!B)` _(olveEpsilon(`\"r'` a#1 / (200 *`#0&` N,(x, e` \\\"` O&`\"5)` B!`#&#` B'` ^(fabs(n`'4#n >= 0` c&n`(K,0 - n;}`!:+` p.`$\"t0, t1, t2, x2, d2, i;for (t2 = x, i`$z! i < 8; i++) {x2 =`$z+2) - x;if (`!l!x2) <`\"K.t2;}d` O+`$<)2)` Z&d` _!0.000001) {break;}`!V!t2 - x2 / d2;}t0`!b!t1 = 1;`!v\"` d!t2 < t`#''t0;}` 2#> t`*Q't1;}while (t0 <` 6\"`\"51`\":( - x`\"15if (x > x2) {`!^!t2`$H%`!g!t2`\"(#(t1 -`!d!*`,!!+`!d!` a'`);!3 * p1x;`)P!3`-W!2x - p1x) - cx;`)r!1` '! - bx;`)[!` R\"y;`)p!` Q#y` S!y` S!y;`*2!` S!y - by;`'&$`'C!t,`'x3`&}(getC`+c&Transition(x1, y1`&<\"y2`\"y&`,o3`,@.`-*!` X*, 1);};}Tweenable.set` O\"F` o$=` w'name` T,`'~#`!%'`!k& =`!gE;` L1.displayName = name` 23x1 = x1` '3y1 = y` &4`&{!x2` D42 = y2`$d$`#\"&prototype.formula[name] =`\"W2;};` R&un`#H>) {delete` r>;}`1b9getInterpolatedValues(from, current, targetState, po`!o\"`3H!ing, delay`&6&`!I&tweenProps(` L&` m%` \"` o)1` f#` t$);}var mock` m% = new` |&;` 1)._filterArgs = []`#O'i`\"?&`#E)`!6/`\"3.opt_`\"A$`'P\"`\"\"! =`\"E'shallowCopy({}`\"<\");var`\"0\" =` \\& || 0` 6!` {\"Objec` `*composeE` 5'`!d#` M\" || \"linear\")`\"W+set({}`!6\"`\"d)`\"t5;` =&.length`/m!` ,&[0`':\"`\"R!` ,(1] =`\"F!` )(2] =`#G(` 0(3] =`\"J)`$9'applyF` G!(`!_), \"`&*!Created\")` .Cbefore` -!\"`\"j\"`%<'`'i#`,'\"`'I[`\"%\"`(&$`!7Cafter`!U$`(Y#`!N.`)q/` \\%`&h#formatManifest`\"C!R_NUMBER_COMPONENT = /(\\d|\\-|\\.)/` ?#FORMAT_CHUNKS` >![^\\-0-9\\.]+)/g` @#UN` C\"TED_VALUE` G![0-9.\\-]+` ?%RGB`)\\#RegExp(\"rgb\\\\(\" +` Q1.source + /,\\s*/` &&`! 0.source + /,` \"H\"\\\\)\", \"g`%>#`!c!_PREFIX = /^.*\\(`\"j$HE` /!#([0-9]|[a-f]){3,6}/gi` ?!` z!_PLACEHOLDER = \"VAL\";`..(F`$0!ChunksFrom(raw`$l\", prefix`$W#accumulator`,O\"var ` D%L`)G$` )%`)[#`'I\";for (i`)j! i <` I,; i++) {` z'.push(\"_\" +`!B# + ` )\"i);}`&b#` F';}`\"&.String`\"3!`&X\"ted` .\"`-[$`\"T! =`&v#` 6%.match(`&K+);if (!` O\") {` U%[\"\", \"\"];} else if (` 7\"`,@%== 1 ||` x-charAt(0)`!*%`(#,)`!!%.unshift(\"\"`\"Y&` 4#join(`%#-)`\"k'sanitize`*`\"ForHex`2T\"stat` 0#) {`*m&each` 1(,`1G'prop`0z*Prop = ` E'[prop]`#0!typeof` =*== \"s`\"a!\" &&` 0(`\"c%HEX)) {` c- =`\"&%Hex`'9\"ToRGB(` [');}}`\"M0` C+str) {`#G#`/~\"`$6\"` ?\"`!@\", str, convertHex` W!` r(` ,+(hex`&>)rgbArr = h` ;#Array` <'`.5$\"rgb`,&!` L\"[0] + \",` ''1]` \",2` -!)\";}var` t*_` q\"` '!`)t\"`!j%`!9-) {hex`!^\".replace(/#/, \"\"`'w\"hex`'G(3` E)spli`&w\"` +%`!x\"hex`\"!\"hex`!x\"hex`\"!\"hex`!x\"` #\";}`!d5[0]`#6$Dec`!E!substr(0, 2)`!0!` C31` B42` :<2` B44` T\"`$M#` H5`%V'` Z(`&G&parseInt(hex, 16`&'(`&Z/pattern, un` 8\"`+A$,` G#`&G#` C!nMatches =` >-`({#` h#`1+\"` 4*` A0`%K$`!=%`+^/if ` :\"`!6$`!>0`0G%` ))`0H(`*!#`\"R!`0Y\"`0e!`0Y&` ]/`0_$` P(` s-`-|\");`\"=-`\"53`\"2-`#b$`+c$`!\"!));}`.j$` [*`+n/RGB`$h#`1D.`+l8RGB,`0Q,,` e-`,0` 4$(rgb` ?\"`$/\"numbers = ` 1$`.R%UN`2V\"TED_`\"_!S`%`\"` L#`$Y%` )#`$P(`!.$`#R&` m-RGB_PREFIX)[0]`$l1` |)`$s$` k,+=`(X&` J#[i], 10)`-^\";}`!<.` #+.slice(0, -1` Q!)\"`*0$` ;+`#O'getF`$%!Manifest`37,var m` 5#Accumulator = {};`2b~`3R.`1@$awValu`*q!get` &\"From`3-*`!h/`3r%{`&^\"`\"n\":`\"a%` *\"` Z-, chunkNames` C&`'O\"` H!`!I%, `\"M!}`4S!`#{#`!5/`#{'expand` l\"tedPropertie`$ )`(L$`$A%) {`#r+` 2+`#NS`#4G` >)`(c%` )%`(f$`($0` H+`(1%`!D'`\" +`!Y\".`#}&[i]] = +` b&[i];}delete`\"&/}`+H(collapse`\"t~`#LF` d\"`&.\" = extrac` N!erty`-z#`!A8`\"r-`$=\"v`#c\"ist`$c(List`!v#` u\"` K@`!y*`'%ted` o\"`\"^,` \\#`((,`!E');`\"Y-`,o'`0x&`&I)`$[)`\"b?`!u'`$&\"` M#`!l$`,g\"`4?,Name` P(`'V%` )&`'D8` I,`'Y$` s,` d)[i];`!N+[` A,`\"|!`#*'` /-;`'n/` 3.}`,3#`! +;}var`%V*_a`/k)[];`0S(`&!'`#[6` W5`#;#`#2!`#|!`\"l`! 6pus`1f)[`+K*)`\"y%` J5`340`'y,`'k$`,:%`&\\#` 8\"` F$` @\" =` 0#`4@#`-Ln` y9` )*.replace(VALUE_PLACEHOLDER,`.C+.toFixed(4)`#+&` _0`#\"*`0i'` D%` B\") {` V,`!M#match(R_UNFORMATTED_`![!S`*e*pandEasing`$v\"(e` \"', tokenData`/;.` 2%`/\"A` E%`/:'`%}& =` C(`-|'` >&`'K7`,D!`!r! =` \"#`0@-i;if (typeof` D%== \"s`#+!\"`-($` 5!`0n&` *!.split(\" \"`0?\"last`#.\"` D!` ?%` Q\"[` X(`)n$- 1]`&Y\"`):,`&I*`!q)`4O-` z)i] ||`!<,;}} else`'<!` I`;}}`-^#`#F/`0r)collapse`%,~`%,~fir`#O$`&#,`\"}'0]`!4\"`&0\"` I\"s =` )#` Y(`&R'` >%`&K.compose`)I#`+k%\"\"`/.6`3#+` M0+= \" \" +`!n5i]`2`%` '8}`%/. =`!_1.substr(1);`&f$` G1`\"u(}});}`%J&prototype.filter.`%-! = {tweenCreated:`%a&`%*#State, from` $#to` \"#`!7() {sanitiz`2,#ForHexProps` ^));` .6` |%` )8`!8#);this._`'0% =`2`&Manifest`!+,}, before`\"s!`!qX`/F>`!P*);` L\"`4A%Propertie`!V*` ,I`!\\(` ,F`\"*%` C-}, after`\"=]`,R$`!{O` ?8`\"48` <8`\"86`-@`\"u-};})(`(q%);}).call(null);(`#.&) {` #'funcName, baseObj) {` ,$ =`/ !` &!|| \"docReady\";` E# =` N$ || window`-f!readyList = [`-x\"` .!Fired = false` -&EventHandlersInstall` ='`!e%` H!() {if (!` h&) {` r)true`-x1`!O%`/~$`.+#` /%[i].fn`#4\"`\"*\",` K&[i].ctx);}`\"1+}`2u&` 5!`$t!Change`!f$document.` 7&`06\"complete\"`!?$();}}`#P#[`#x$`.#!`'q&allback, context` ~#`\"e)setTimeout`%/*` U$(` T$;}, 1);return`/B%`#!&push({fn:`!,'tx:` X#});}`!{B || !` >%attach`%5! && ` F5interactiv`\"~!`\"+'` E!`!v!`!m#`%L&`%{2`#{,add` D!Listener) {` #5(\"DOMContentLoaded\"`%S#,`' \");`%j\"` G/loa` <.`#`$`\"]0(\"on` I!statec`&$!` Y$`&1'`!)&` M*`!$(`'%$`(j5`(G!`+8\"`*7&, dependencies`+2)console, `,#$Array`#T#typeof ` =#`$[\"undefined`%<!` 4*.log` 6,`/%!` Y# {};` >)`'z') {}`&U\"` m#`!K\".create !== \"` F$\") {` 1*` ^(o`--#` )!F` t!F.prototype = o`(6# new F;`!0#!`\"U!` ?&.forEach) {` #3`!))fn, scope) {`,>*, len =`/_\"`,@% < len; ++i) {`,=$` ]!`0*\"[i], i` &\"`0+\"})`,^#.`$M%` )#`$U$` (#`$^\";})()`.q!helper =`0:\"`#g%` $%is_meta_viewport() {var metas =`*$&getElementsByTagName(\"meta\")`.m1` ]!`.o+if (` 3![i].getAttribute(\"name\")`%}\"`!E$`.$\"`$K!`'V#` '#`0h\"`/\"&delete_e`![\"(e) {e.parentNode.removeChild(e)` N'clear_sets(arr`$O-`\"$\"arr`!y+var set = arr[i];set`%S$`#^'`!B\"`!7\"();})` C!splice(0, se`1w$)`1,*placeAll(str, find,` .$`\"i&str.` .#(new RegExp(` H\"\"g\")` J&`\"G'to_float(str`\"##num = parseF` 2%;if (isNaN(num)`!-&`#u#`0t%`(i\"um`!v(`-r$(obj,`+%!, fn`%:#obj`,|() {obj[\"e\" +` F! + fn`3\"!n;obj[` &*`':(` D0`(@$e` w!;};`! +(\"on` J$, ` r*`/B&` P!`/o,`\" $`/p&`\"H&linePath(startX, ` #!Y, endX, endY`%p$tart = {x:` D$y` $\"Y}`)n!end` 9\"` U\"y:endY}`,Q$\"M\" +` _\".x + \" ` &&y` +!L\" + end` 4'end.y`'j)one(src`0[!n`&1!`.U'` .' != \"o`+_!`/q!` /(=== null`&h'` 4&;}`&6!ew` E&` 3(`,c!tructor(`+4)i` Z)) {` Y'[i] =`!l.[i]`2y!`/R$`!6*isMobi`1?\"Android:`%z)` Q$avigator.userAgent.match(/` P#/i);}, BlackBerry` 8L` P&` d#iOS` 4LiPhone|iPad|iPo`!M$Opera` <L` P!\\sMini` `#W`(Y!s` 9LIE`#^\"` _#an`\"e2`$#$.`#J#() ||` ,&`\"u&` *+iOS` #+`!u!` %+`!u#(`3.!`27'F` $#`.q%ToCheck`)J#getTyp`%Z!`(}%` ;+ &&` ?$.toString`4P\"` b-`1|![`(L\" `!2$]\"`)2'findPos(obj`3~(getStyle`-n\"styleProp`-j'curren` @\"`!u#y = ` +,[` S%]`,h$if `-P$getComputed` Y,` +3`!K\"`*D!` n)`#$#`+L(scrollDist(` q#html = document.getE`4@\"sByTagName(\"html\")[0]`11!html.` e\"Top &&` U&` `$` ]#` <&`&:&[` T'Left,`!?!` @&`\"h)` |+||` NY +` ?<`!=0` 4>`!f,` F%body`!D1` .0`!6\"` E3`$f&[0, 0]`-u\"body_posi`$y!=`&z&` Y), \"` <$\")`$]!` I+= \"relative\") {`!4+tyle.` z'\"static\"`!=\"`'S#` vC` K#top` #$left =` .# = 0, scr`(Q\", fixed = false;while ((` ;\"scr.parentNode) &&` U!!`'C'body) {` $-` O\"`%F'|| 0;`!5#` 1)`&G#0`#*!`\"1%scr`\"#)`#6!`!_!\") {`!e$true;}}if (` -\"&& !`)v#opera`)5#scrDist`\"%\"`)O%;`!f$+` 3!Dist[0]`!]$` *'1];}do`\"4&+`+e\"offsetLeft` I'` /&Top;} `#C#obj`,:#` 7\"P`#J!);`%#;`%r)`.k$[`!A#,`$e#]`+m'distance(xy0, xy1`\"[#x0 = xy0.x`%J!y` '$y` *!x1` *!1` 6$` '$` 8\"dx = x1 - x0` +\"y = y1 - y0`!M$Math.sqrt(dy * dy + dx * dx)`!U'rotate(point, transform`!^$ = ` 6![0]`!D\"` (%1` +\"str = Raphael.` W%Path(\"M\" + x + \",\" + y` u(`1e%(`(6\"re = /M(-?\\d+.?\\d*),(` \"'/` A!m = re.exec(str)`#z%m[1], m[2]`#r(bbox_union(arr`\"-$a = [`!y\"x2` \"'y2` /'y` %#for (var i = 0; i < arr.length; i++` q#bb = arr[i];xa.push(bb.x);x2` $'2);y` %&y);y` 3'y2)`+W\"x = helper.min(xa`# \"x2` -'ax(x2` 2#y` B*y` /$` A+y2a`#+%{x:x, x2:x2, y:y, y2:y2, width:x2 - x, height:y2 - y}`#R'mi`#Q!ay`/T&`&P!min.apply(Math, ` >\"` M(ax` C2ax` ;:`''\"_bbox(bbox`&.`$P!bbox.x,`%9!.y`$i\"b` /&2` ,*c` A.2` 4\"d` A/` 4#a2 =`(T$a`!;(`!'\"` 3'b` --c` 3'c` --d` 3'd` --x_`\"p! = [a2[0], b2` \"!c` (\"d2[0]`':#` >)1` E\"1` E\"1` E\"1` D#x_min =`$m!` {#`!'$max =`$M!` ,)y` G'`!\"#` 0%` I%` 0%`&F'_min`&I!` #\"x2:` !`&V\"` $\"`&X#` d!-`!V\"`&\\&` /#` Z!`&a(x_in`!)\"(x, `1 $i = a`)c$`/s#i--) {if (a[i] === x`&_&`1{#` '#`3w\"` &${min:`!I!max:`!g!addEvent:a` \"#, isMobile:i` \"#, linePath:l` \"#, clone:clone, isF`\"!#:i` \"%, findPos:f` \"\", replaceAll:r` \"%,`(+(:`(8'` 1$` -#`'<\"`-H\":`-O&,`1Z%:`1d$,`#C':`#O&, clear_sets:c` \"%, delete_element:d` \"), to_float:t` \"#, is_meta_viewport:i` \"+};})`02#mapdata = window[plugin_name + \"_` :#\"] ? ` \"=:`$m#` s#info` ]9info` [;` <#` k+` =!= ` E'.subs`2M\"0,` ,)`&{\" - 3).`$r#(\"simplemaps_\", \"\"`*x#emo =`'!\"`+f!randed =`!3'autoload`*W&`4E#hared_paths = {rounded_box:\"m2.158.263h5.684c1.05 0 1.895.845` $\"` *\"v` =\"0 1.05-` 4&-` 9'h-` ?\"-` c\"` 5\"` G!` $#` d\"` ?#0` B!` 4&` d(z\"`#*!s:\"m4.8 1.5c-.111 0-.2.089-.2.2v3h-2.9` /(134-.2.3 0 .166.089.3.2.3h2.9v3c0 .111` 2!2.2.2h.2c` X\" .2-` 2\"-.2v-3h3.1` /(134.2-.3 0-.166` G!-.3-` 0!h-3.1v-3c0`!G!` 6#2` 8!2z\", min`\")!1.8 4.7h6.6` s&` v\"`!l%`!A\"3`\"#!h-6.6`\"6'`!C!`!.\"`!B#`!A#` .!\"`3=!ow:\"m7.07 8.721c2.874-1.335 2.01-5.762-2.35-5.661v-1.778l-3.445 2.694 ` $$843v-1.818c3.638-.076 3.472 2.802 2.35 3.721z\"}`&R!hooks_object = {over_s`,5!`'/!, ` -!region` &)loca`-Q!` -$ut` J+ut` H,ut` F-click` K*` -\"` M*` .\"` K.ose_popup` +$zoomable_` f/` -+` s+omple` C&refresh_` (,zooming` '-back` R&ady`!m*x` )#`#q\"`+Z#`#y!`#h+[]`#f*` '%`\"T%` -!`#e%` &$` C(`#\\([]`#W*` &&` G'`#P+[], pre` G,` *%` O'` +%`!\"+`$/&[]`#3` &/`!G(`#X$[]`#z/` T$`#})[]`$ #` M\"ady`\"2'xy:[]`#x\"api`'h'`19#:`1A#,`13$:`0X#, load:load,`(J\":helper.clone(`(W()`0S%` 6/` .(), copy:function () {var new_` C\"`!P(` [)this.` 3#)`!e&` /1info)`!b1` =!`!D$`![6` B!`!f0` 4!copy`\"u'};`21*.push(`\")&);return`\";';}, cre`)a!`\"FBwindow[`49' + \"_` 8#\"] ? `!u)` 0<) :`4:\"`#A&` 96info` WH` J\"` x'`#(~`#NXmobile_device`!7$isM` 2!.any() ? true`\"(&loaded`,v$`$\\%trigger`!f!(name, args`$t#`1)+`)H&`\"c\"`)b!fn =` <)[name];if (fn) {fn.apply(null` x#;}`.-/` t'` .(`._(`#!! =` M)`!)#for (var i = 0; i <` I).length; i++`\"8#`!v!` 8([i`!W=}}`#3%load`'}$`,@)thi`!p\"`'7#`\".*` .#` 9$info` 0-info`!E!!` [$|| !`+\"$ {console.log(\"The`!!%o` j&`!H#is missing or corrupted.\"`&5$`$&\"`$g@`$)C`%vC`$w~`$w~`%LIvar div =`$F$.main_settings.` 7!== undefined ? \"map\" :` 86`%`\"document.getElementById(div)`%_,Can't find target f`%p\" #\" +`!]!+ \". Check`! 6`%x%`+]\"`$4\"back_image_url, ` &!s_directory, di` \"%state_specific, ` v), normalizing_factor`&1&pre`)7$` X*`#S'` +*;` q)`#m4`%o!scripts = `#E/sByTagName(\"` C\"\")`*&\"ysrc =` V$[` _#`%x# - 1].src` G!`\"}&`!D!`#N(` 0'!= \"no\" ?` )6`/Y#;`#j*` Z7` :!` W>` B!` u$`$U,` n-` 0-!= \"default` t.` =-`! $` u(` 4-?`%{- :`#n\".substring(0,` ,#lastIndexOf(\"/countrymap.js\") + 1) +`(x!`\"I\"s/\"`(c\"`\"S+&&`$@') {`#V-`!C&+` ?';`*G\"ignore_pos, fly_in, rotate, manual_zoom, responsive, div, initi` 6%` \"(_solo, tooltip_` a\", last_clicked` 4&up, region`.k'get_`\"T!nfo() {`,+$`+aF`+r-`!U'`%J.` 0)` e+-1` `-` D(` m)`\"U!` b9` ;#= \"yes\" &&`#-) != -1 ? tru`(O&`$2\"` f-` 1\"_fr`!d-||` .9`(q$` y!`\",-` A';`%+&`!--width` h!` ;&\"`!j,`&$\"` K-` 0#`)%,` 0#`**%f (` Y$= \"0\") {` h%`/I#zooming_o`\"m.`$f#`\"=,true;`'O'` G-` /)`$@$`\"(,`'+\"`.|\"info.`+C#_` 2$&& `!Q'?` /5`\"A(`/f$` 5#) {` {)` 0(;}` E(labels) {` #\"` D'` +\";}`)>*`#7%`)G(` '*over` )%`)b&` *%`+.&`$#&`0N$ground`3W(` %-bbox,`\"}!_time` $#mobil` %$incr`2)!, custom_shapes, popup_centered` ($orientation, order_number` i#percentage`,D&back, link_text` D\"`$N\", fade`!W#hide_eastern_`#N\", `#V\",`-{$`$r$`#l#var adjacent_opacity` 0!op` \"&`\";%al` +!` W!_size` $'color` %'` U(new_tab` '!`!8%oc`\"a!` <)hook`!O\"b`\"v\"` |%`#G#` |%` *\"max`*=!` ('` c(` ,\"shadow` Y)rner`!\"\"` ,\"nocs` $(font`/Z*refreshable`/g%`%r0`)X-` 01&&` \"@!`*n%` *?`)[$`'01`!4>` A!` h=` A!`!\"$`#c#` `8transparent`,:(0 : 1;`%}&` R-` 0'`!D,` 0': 22` _#`%T!` P3` 6\"` R2` 6\": \"#ffffff\";`'%#` [-url_` 3%`.:3`'D4`!G.` 1,`!M-` 1,: 1;`(9!` [-js_` 2#`!?3`(`'`$:.` 1'`%--` 1': 1.5;`):'` Y-` 0(` Z,` 0(`#`(`-B-` _3` 6(` f2` 6(: \"auto` w$`.Z$`!Z4` 7$`!^3` 7$` g+`$b4` 0*`!V3`$k%0.9` i#`,?\"` X3` 6#> -1` \\3` ;#: 1`$<%`,!`$.5` 8\"`$14` 8\": `%+$`-[!` U3` 5#`&F3`.z*` L3` 6%`!:2` 6%` g*font` Z3` 6!` W2` 6!: \"12px/1.5 Verdana, Arial, Helvetica, sans-serif\";`2Z'`!$-`4U!out_` :'ly`\"o!`/:\"`!r! :`\"v!;`3`,` ^-` 0-`!z,` 0-: 0.3;`!B!tim`*5.` 0&` [,` 0&: 0.5` ^\"`!~%` S2` 5&` Y1` 5&: 2` k\"mobil`!@3` 4$`\"w2fade`!~2` 0&`!6,` 0&* 1000 : 200`0D\"`'@\"pdata`/}\"s;custom_shape`'S.` 0*` {,` 0*: {};initial_back` ]-` 0)&&` \"8!`\"h%` *7`(*$hide_eastern_`\">'` M(` /1`)`3link_tex`%0.` 0&`1c-` 1%: \"View Website\";`0d\"numbe`0H.` 0)` e,` 0)`!V$`%s!percentag`&!3` 5'`&r1` 5'`.d!9;}func`0^!is_onclick(`+1!s) {if ` &#`#1!on_` <!\") {return`'+\"} else ` ?+detect\" && touch` ?2` ,$`\"@\"}`!B*ff`!26ff`!03` b,var vml;var tough` %!ie` ,!ios` #!`\"3$` (!`1l#ff =` _#var reload` &)`\"3!` I&` e\"viewport;`\"\"%get_client_info() {vml = Raphael.typ`*h\"VML`&g-ie = document.all` 0-os = helper.isM`+X!.iOS()` ;,`!T$` D(_meta_` 2$();`\"1!` _/any` `.`$+$`1'._up`3Y1` 3!:`1U0s;`#$`#]%`#(`%D*;`$t!map_outer`#v!map_inn` $&div` 0%hold` ='zoom`$9&create_dom_structure() {` ^\"`#u(getEl`/g!ById(div);` u&` ,: + \"` B#\") ?` Y8` =*`%\"%f (`!#&`!W%.removeChild` 4(`&\"t_to_del`!A7\"tt_sm_\" + `\",!if (` O%) {` #%.parentNode`!()` C&;}}`\"Y2`#]\"`!/#(\"div\"`#4\"`$[!` %Azoom` $A`%@!` sF.id = `#n$` .!\"`!(%` /*zoom` 6\"` !` /*` .!` 8\"`\"Z\"` 1*`$h#` 4(style.posi`&b!= \"relative` y(` &<`!\"` 4.absolut` ?#`\"(!` Y.` ,5zIndex = \"1` u.` -,div.append`&T.`\"E'` 3,zoom` $9`!/!` %9`\"~!`*h#transform_rotat`/ \"widt`/ \"height` &!scal` 9\"original_` >&` *%` F'initial`-d!` ,!normalizing_facto`+V\"ratio`!.&_to` ^$`+\\-imensions(res` d!`*(&`#`\"` ^! = \"`%b/` 1'if (responsive) {` 4$` f#offsetW`\";!if (` 9\"< 1` 9.`*5'` J(`*)'`!0+` \"\"+ \"px\"`3z%` k&`/Y(` /#== undefined ? 800`/~-`$%\"`\"V1`!\"*` (** 1`-[$info.calibrate) {`$T( = {};` &(.x = -1 * ` K-.x_adjust` C*y` 76y` <1x2 =`%y).x +` K/`\"V\"` ~*2 = (` ^,-` _+) /` \\/`&j\"`$1$`\"W+` G$`'P)}`($*`!e-`!(.;`(B+` C,y` B-y;`(/+ =`):+ /`)6-` A%` 9$`(r,`)A.` c01000`%b!!`),'`*k!` p'`*g+`#A! =`&9#`+W\") {var bbox_array = [];for (`+-! in`#Y%state_` B&` T%`#{'` 4,[i];` $&.push(bb`-$#path` G! = helper.` G!union(` ~'`,'!center_x = 0.5 * (` W%.x2 +` e&.x) *`-T'` S#y` F0y` L*y` P&`.Y,`1o!\" + ` (#+ \",\" +`!N&` \"+y`.&\"iv`\"4&` T\"`!%!`'~),`/e-)`&f&`':$riv`(r#`&y.riv.`%z#}` a&`%I$\"s\" +`\"0\"`!\\%` $&0,0\"`\"C& =`\"8$?`!J'` F$`\"c-:` 5,;}`$t#pe`0g\"everything` *!all_lines` %%visible_`%v!` 1\"location_label` A&externa` J4` C'`!M%` @!`!T,`'2!ackground` >!` %&_col`2b#` *'imag` S\"all_pil`!L'`!o'all_region` &&`\"&$`!S#op` #+bottom` &+` T!`\"*\"`3e,canvas() {`#a! = Raphael(map_inner,`*_\", `%O\");`\" & =`$7\".set(` -(`\"R\"` 6%rect`/!+ -`+z,* 2,`-G+` 9(`&y#` A!` I-5` )'` @%5)`,9!`#i,_url`+h#` *\"`+/#` 7-` 3!?`$H-` 2\":`!^)`\"O(` @!`\"R%` )!`!/1,`!4'.x,` \"(y` .*`0J!` 35` /+y`#|(`-^#`!/+);}` (7`$V!` X)`'j%(`'n+` 9)hide();`';&`%O+`)N.` ./`'i#` '/`'J%` -+`'w)`&a,`'+` c0`(3!` *+`+%+`!n7` (5`+Q*` ./`*R!`!=0` =/`-.&` B+` /&`$a\"`#s&,`+!*,`'<'` 4#`!u!` &\"`!_*`3K#trial_`.S&map_` /! = false`+<-` L\"text() {if (!demo) {return;}if (`!L$.hostname.match(\"simplemaps.com\")) {demo`!&%` Y(`!D%`*##parent =`!\\&.` -\"Node;` %\".removeChild` V';`\"'.}` '(document.`\"@\"Element(\"div\"` R'.style.cssText = \"display:inline !important\"` E-posi`#E!= \"absolute\"`,X\"randed`\"@#h = 20`$*!w = 140;} else` 5&3` 5&200`\" '`!$#left =`/N\" - w + \"px`!A.top =`/m# - h` 04zIndex = \"1` 7\"`0P!.append`#[-`&*'`0}+` 5!, w, h`/1#`\"M)t`#O\"` U'.`&D!w - 5, h * 0.5, \"S`%w+;text.attr({'text-anchor':\"end\", 'font-size':14` ($w`\"T!':\"bold\", cursor:\"pointer` O%family':\"a`!{!sans-serif\", title:\"Built with `!W\"Maps\"})`$N)`!iS Trial`!vL8`!\\f});}`!7!node.setAttribute(\"href\", \"http://`*0,`!n\"click(`+B%() {window.`*&ref =` P4;}`,J#`#1!_back`'}!back_arrow` *!zoom_in` \"&out` #&` M%` )!ab` 0)in_`!a!` O)` ,#`-4,nav_buttons(`'4#navig`0j\"`3W!`,A!in_settings.` 0-? ` \";: \"#f7f7f7\"`!P!` 6'border` h>` ;)` v7` ;): \"#636363`!'-opacity` w8` ;$` s7` ;$: 0.8` ~!`$]!`!x3` 0(` e,` 0(:`#s-` v!legac`!`.` O'`\"W#` a8` ;$` w)`#)(`!{'`#9` 0/`!!2`$#+`\" \"`$'$w_norm`1t!`#L5size === undefined ? 40 :` 5:` y&mobile` c<` >%` {+viewport`!-$8` y=` c#`!8% = touch ?`!C)`#~!`\"Y$`#e.`&j4` =$x == \"yes\" ? 1 : 0;`!&#` \"!* 1`+N&`2q#` 5\"` 2!m` >&0.` D\"s` +$/ 1`40\"image_w,` \"#h;`+/#`!>!()`+=-` 1# {`,c& =`-#\".set()` q!`![$` (!h` %$`3?!ack_`!&\"url`,)#img = new Image;img.onload = `.\\)`!h# = img.width;`!s#` -#`\"b\";mak`!{&}` m!src =`#'\"`!8%`2I%` B*`!+%` +( {`!l1`/[& = Raphael(map_outer`#Q$`#X&`\"|\"`#5&`#7*` d!.` F!` |+, 0, 0` \\0`%2*`$a$` r,`4%#`3A,}` Y#` >\"push`!2\"` O'` 5)`2x\"` ,!` &!_handler)`#B%`\"Q<w, `\"^#fill`'z'`&~\"`'r'`\"g(path(shared_paths.rounded_box)`\"6#fill:`-@', 'stroke-`%f!':1, ` +\"` ?#`,N(` C&`!L#'` 7*` /#, 'fill` ;&0, `#B/`\"!&attrs = {` w?`!_$.5`!;/1,`#-!`\"2+`!?*`#G(`!E/`!L'vect`/p!`#H9`%;\"`#Y\"`\"$'`%G(`*Q+`%~,`$g%,`!,)`\"|\"t = \"S\" + s + \",\" ` \"$0,0 T0,0\"` e(transform(t);}if (!initial`!{!`,*).hide();}`&R%.style.left = m + \"px\";` 0,top` 3(if (manual_zoom) {`-D#zoom_buttons();}}`+-&` -1`-&\"`-E2` D\"`(A.zoom,` >!,`/D$2 + m`#8\"` Q!in`$F! = \"m 64,13.787 0,100.426 m -50.213,` \"\"2001 ` 6#,0\"` e!plus` _$`%3)plus`0h\"in` ,3` 5!`,o\"ox` -1`)_'`!k)`*?\"`\"S%`&Y\"` ]$`*')`3t'`)y<` @'`);1`(M-` Q'`(J6`#n*`(^%`!x+`#I%`\" $`!b+0`!>/0`*:#`!i6`!a*1, ` %#:1`!T1`!^#`)S+` /#`)Y\"`$!',`\"&+`)9F` j$`)S)`\"}%out`$)~`$+|out`$s5`(2&`$+~`$n;out`$z0out`%$'`$*#`%)#`\"0&`$jC\" + (`,)!`,%!` x%`%1)`,V$`.()`.y!height + m`,g#`.]%` E'`.u,`!Y``.v%mov`.w\"ing_dimensions(dire` =!`/!'last_destin`$@!.sm.` I..w / ` V%`/S%` 6Ch` L-x` 3Fx + (`!=E- w) / 2`!!!y` \\Fy` [Gh - h` |&r = w / (original_`(1! * scale);return {x:x, y:y, w:w, h:h, r:r};`3O&`!&$allowed`#dj` =$`&A\"` 3% < 1 ? true : false;if (initial`&$! != -1 &&`\"o2type == \"manual\" || ` S(_solo)`!}#` 1$`# \"= region_array[` J(]`\"\"4`\")!outside_` K#`$ !>` n+- 1`\"&!`\"N(&&` K,`!O%` a+is_` .\"`\"C-,`!Z7)`#6#` `)`\"[1 {` '!to(` R8`%w#`$2\"}}}`!}/w >`!C*-1`##5 - 1) {if (!`!*E-1]);}`!<*` '#true`'2+_about`'/)if`%r#clicked &&`'B\"` )#`%|%!= \"`!5\"\") {out.call` O),`!/!, `!+%() {` p)=`!]#`!81;});} else`\"_#`(z6) {`\"@\";}var `%6' = {sm:{type:`'n$, zp:1}}`&J%_tween`!V$` 6E`){B = current_viewbox` D1bbox = {x:` ?+.x /`,<\", y` ,-y` 3&`(f!` 0-w` 7&`2K\"` 1-h` :$}`#9\"new`!q*`1E>`#E!!` K*`$*'`\"`@` O*`%M\"to(` P');}}` 2!in`%|\" =`&.*`%|'` A#crement);}`49%` :=1 /`(8\"` R)api_object`!z!_in =` ?$` m\"` 2-`/9\"`!**`!A\"in.` )!`!_$` 6\")`![%` 2(` R%` 8#in.touchend` F5` 3*` W'}`$|!cattr, la` \"!r` (\"`+A#map, label_attributes, loc`#!s, set_state` %\"` G!, ela;`#I%set` S'`*R!` X$ = mapdata.` +%;`!L! = [];`!P!` %\"`!H&` 3$`!H*` ?#` G&ela` #\"var`!?!`-T$` G(`%*)`+(\"faul` E$ = {};` &*.color`,E%` .+hover_` &9opacity`\"W!in_settings.`!Y#` 7$? ` \"9: 1`!&2` `;` 7*` n3` 7*: 0.6` },url`\")4descrip`-l#` #<_mobile` 24inactiv` '5zoomab` [!`20!` 0+popup`\"T4` 8!s`\"M4` 7#: ` #\"`%6-ascade` d4` 8#_all == \"yes\" ?`!_! :`!q6_percentage`+'$` (&` A,x`\"]4y`\"v4x2` :5` 0&if (` 0\"s) {for (var`*m# in` ##` 0)i = 0; i <` 6$[` \"\"].`*z!s.length; i++`)%#` 4! =` :3[i`*I([` 0!]` E%;}}}`!3&d`!H*`*a![id] = O`.^\"create(`\"G*`1d\"`!7$id].url` T(`&2(`\"v\"`!+&prop`!,'[id]) {` b+[prop] != \"`!4#\"` t(` 8#`\"Y&` +%;}` T2`&#$` Q1`'|!` >7no` B2`\"4#}}}`-d%`#j!`-Q7` ;%` ,)id`-x+` ;$`-{'` .!`-|%`(N*`!0\"` 7!` A+image_`+o\"` @0` 6&`)~,` 0,`)-,` t(siz`).` U(` <!` f8` <!: \"auto\"` o1posi`-T#` M6` <%` p8` <%: \"center` |2x` n9x` g9x : \"0` b2`0r.` N(`0k.` 0*` ^6`%@8` 6(` d8` <\"`$p8`2>\"`%r<` <&` r8` <&` p>`&#=` <'` r>`&.>` B\"`&1A` <+` |>`&:D` H\"`&J:` <$` t>`&X8` <\"`&\\:` <$` h>`&j8` <\"`&j>` <(` p>`&|8` p>` 7'`,j2ourc`2#&` 5*descrip`%K7` 7'` M+`(M6url`!;,nactiv`'s.all` =\"s_` :&`2I# ?`29!`\"b4id` R9hidden` BG_label`\"r3bord`#p5` 0)`% ,` 0): \"#ffffff`&1,` @#`$t8` 0/` v3`%v>` <)`,*1` 0.` p9`,.#` x0empha` }#`$'!` 1+zoom_percentage = ` #+` =/abl`%!9` :&`${Apopup`'73` 7!s`)q3` 6#: ` #\"` h+opacit`,\"4` 6$` d2` 6$: 1`*_1` ^:` 6*` l2` 6*` v.`*P'_mobi`#_/`*s-` A$? ` \"5`#z$var region_id =` $$map[id] ?` 5$` )$` P$if (` N&&& rattr[` *%].cascade) {` G!` .-olor) {`\"@*`),$` 92;}` V1`(~'` `-`)}*` ?8` f3`#1'` l-`/+*` ?8` f3url` d-`/L\"` 70` N3`/+$` Y-`/e'` <5`#;4i`$U!`/X1` 81;}}c` 3!id] = Object.create(` Z))`%w!mapnam`*t\"us\" && (id` *!GU\" || ` '#PR` \"(VI` \"(MP` \"(AS\")) {`!>%`!h$`-(\"`\"C!`!#0`11!eastern`18\"s)`!C(VT` y(NJ` \"(DE` 0(DC` =)H`!^)A` \"(C` g)R`\"'*D`!t/`2n%`\"&#for (var prop in`*B#specific[id]`)2#` '.[prop] != \"`$2#\"`!$(` 8#=` `/` 5\"`#E\"` _5`/d$` _1tru`&L#` C9no` I2`+v\"}` \\!`-s6`*G#= \"off` \\)`*`+` .&`*[#};`#P%id in mapinfo.paths) {se`'?#(id);}}`-{!set`$:\"_attributes = func`*v!() {var `'$`$d${}`/c%` .!.font_famil`0`.` {\"font`0X-` 0': \"arial,sans-serif\"` v+`\"U$` P0` 6\"` j2` 6\": \"white` f,`#K*` L0` 6(` l2` 6(:`# *`$:#` &*`3e4` h\"` 6$||` \"9== \"0\"`!;3`4#0`\"D(`!$:` 6*`\"88` ~&`\"-1`!-+size = ` [\"size`!L,`-2\"`!!*`+<&s`)Z% ?`)L! :`(r#` Y*line`)+%`!3+cal` q.`!J#` 7!`\"82` 6\"` y2` 7!_limit` i-` 0(` j,` 0(: 0.125` k+rotat`!W4` 6#`!Z2` 6#: 0`\"i/`'Q9` 6'` e2` 6': \"#000000`(f,` @!`%(#` L5` ;!` j7` ;!: \"1` i1x`$l3` 8!y` &3parent_typ`3\\!`-M!` n,` =#id` M3anch`#&5` 6#`\" 2` 6#: \"middl`!(.ill` ~3width`!#-pill_` 5\"`!\",` 0'`'!2`#(4`##4nam`#/!Not Named`!n,displa` G4` 7#_id`0~!` //`#f'`1$-s`\"J-impor` 4&`3v\" ? {} :`2U%` V*` r!apply_`2\",`2I&id) {`2e,[id] = Object.create(` W))`3w&prop in`!r+[id]) {if ` K*` 4![prop] != \"` 6#\"`!/3` C#=` k/` 5\";}` f9`-z$` _<true` H?no` I=`$l\"}}}`#t'mapdata`#g4if (!` a0`#dS}`$+-`$#-`#OY`#n2`#9_`#2^`\"Q%id`&b.) {`'|/(id`#'(` S\"` B+`$T)` K\"se`(V5` m4` S5;`%g\"` n!ocation`\"@'` t)) {`+!)` H# = {` ^#`3]&`!;$ = touc`-c.` @(mobil`1N.` 0/: 0.4`4^!06`4X(`!D#` G(`,V-` 0(` p7 :`!t0` y.`42\"`1J-`#<$` 9\"`1L-` 1*: \"#FF0067`/W'` y$hover` B#` n5` 9(` t5` 9(`1Q-`!'$borde` o7` 9#` l5` 9#: 1.`$&/` 8\"`!n<` 9)` k;`#6)FFFF`#*5`!z<` 9)`#&;`\"=%2`&J/ize` l6siz`#c/descrip`(a#` D3` :'` E9`(>$` E@`)+&` \"8`%U5url` m6url` @.inactiv`!L.all` =%s_` =&`/<# ?`/!!`!16typ`\"87typ` A/posi`#m#\"top`%h/puls` \\7` 8#`!<D` J!`%>!` T;` >\"`&L5` 9': 4` o5peed` h=` @!` j<` @!: 0.5`/]!` 0\"`)g;` :'`!J4` Z$` \"(&&` \")!= \"auto\" ?` +)`#K5image_sourc`#K7` 9)`\"E5` 9): \"`+H0id`',<` >!` t,` 0/: \"no\",`3I-.opacity =` *-_` 4#`2L3 =`&l!`-:4` n&`,p9` ?$`-5;` ?$`#8~`#tB` =\"`,%9` 9&` j;url`!x<`+A'` N9` ?%` t;` ?%: \"center`\"+5`#z\"`#3B` ?)`!$;` ?)`#I8` C\"`#H?` ?&` vA`#T?` C\"`#UD` ?+`! A`#dApopup`-17opups`.,7` :\": ` #\"` n.x =`\"P4y ` \"5displa`*&7` 9$`!@5` 9$: \"all`\"F/` :#_ids`!.6`-?Bden`325if (` f-typ`3x!undefined) {` .3 \"square\";}for (var id in `!:%) {lattr[id] = Object.create`!+-);` ^%prop` \\)[id]) {if (` 7!== \"overwrite`&4#` E$\"`!*(`,F)` b)[prop];continue;}` p)reg` Z-`%1&` 7$` O\"` d/`3_!`\":#` X)` 8#`!62` U5`$[$` U1`1J!` >9no` D2`%B\"}` W!!`\">&`1/)`\"U)`24,` 0&`3-$` V2color` W/` 3!` [)` -!;}}};var set_line_attribute`(-!unc`+9!() {var`4Y&ine = {}`(E&ine` n\"`)_.ine`!:#`)Z-` 1&: \"#cecece`)^'ine.siz`0&/ine_` 5!` ^1` 5!: 1` \\*dash` T2` 5!` U1` 5!`0Z!var lin`\"t!mapdata` >!`-T\"` $(:` '%borders`)&&`)p#ines) {ela`)S:ine`)Y0ine`)](` '%`'}2` #`('&` A*`'K#` U+`'~'` P,`'|'` B/`'}\"` D,`'y$}};set_`*0\"`&B'()` 3!stat`&X(` 0#label` $/`/a$` (.`'=*();}var currently_zooming`!Q%var max_width` )!` B&pann` <,` 3'inch` 3(`(L%`$g\"_tooltip`([$find_pos = helper.findPos(map_inner)` ~!x0_page =` J%[0]` 5!y` (.1` 4\"x0 = 0` >#` \"%h` ,%w` +%u`'J\"` P\"_mid` O\"_` \"$left = 5` (!tt, h;return {`\"2\":`*p)tt = documen`'?$Element(\"div\");tt.setA`$-$(\"id\", \"tt_sm_\" + div` @\"tyle.posi` z!= \"absolute\"` 5&`08'none\";`#5%.appendChild(tt)` /'onmousemove = this.pos;tt` \"4}, show`\"A'e`\"/\"`2{$opup_off) {`\"y\";}ignore`$|#`%M\"if (tt == null) {`%M#`*H$);}`\"%0block`\"I'zIndex = 2` *&maxWidt`,r\"`'9# + \"px` T!`\"S!HTML = `!t#.sm.content;`!@$updat`!o!`\"8%;}, reset_pos`\"V'x, y,` d$`\"`#`\"6\"undefined`\"+2` +#` k#(y0 + y, x0 + x` h&;}, `!E&`#e1` [,u, l` S*` K+, manual`!h#` $%u`#1!nual.u;l` #&l;} else` <\"ie ? ev`'T!lientY +`'b&`'m$`'g#.scrollTop : e.pageY` v!` U-X` D>Left` ^%X;}u = u -`*Y$` s!l -`+#$`&C!`&j% || `###_`\"2\" || `&s'` 5'up && on_click`'B'`#W0`#]!`%G.`#x*`#d\"!tt || !u || !l` n'`+o! =`%9\"0.5 * `.V\"`+~! = `%[!` 3\"height`\"9!l >`,I\" && u >`,L\") {quad = 4`$R$` G\"<` 093` ?*` m)<` =,2`%K%var ` .#1`0q#entered`({& &&`)$(`#R$ &&`$:$` J&`3c# || ` (/auto\" &&`\"y\" < 401) ?`4!! :`+V'` N$`.i!`*w#top = \"-100`*j#` 2\"`/W#` '.bottom`.O!uto` .'righ` N!` 2\"h = parseInt(tt.offsetH`$D!, 10);w` -1`,G!` ;\"var side =`\"4#- w > 0 ?`%0#(` .%) :`1p#bar`34!`!I!- h` C*` .&` L\"`\"Y+bar`-P'`\"])`!D!` ,,`\"E+`\"l5`%Q$`)4'rienta`1z\"= \"below\"`(.#`%v\"= 3`&3&1;}` .(4`&J)`&z'` h2above` n,1`'[)` .(2`(B)` .)1`%q(`%35`#H\"u + 5`#84l + ` &!` 00`#I+`\"5'`!W(` jZ` |$`%|$l`!R8`!/63`!41`&?%`!&2`)/#`!_+`\"h.3`\"SC` Zd`\"?Q}}, hide`/_'`&C#tt != undefin`+j*display = \"none\";}find`11!= helper.findPos(map_inner)`,b!` A$) {`20# = ` -$[0];`2V#` *(1];}}};}`!Z%getxy(lat, lng`!i#mapinfo.proj`(S!lambert\")`/N\"` 2\" ` /#`%B(` I-xy` F+xy` 39robinson_pacific` O+` /,` O9mercator` U+` /$`1Z)` q+`1h\"initial = {lat:`\"~$:lng};`#:%interse` (!(x0, y0, r0, x1, y1, r1`!:#a, dx, dy, d, h, rx, ry`/+!x2, y2` &!dx = x1 - x`/F\"dy = y1 - y` *# = Math.sqrt(dy * dy + dx * dx`0M\"a = (r0 * r0 - r1 * r1 + d * d) / (2` %!`!9# = x0` ]$a / d` 4!y2 = y` 4!y` ,)h`!8)` &a * a` o\"rx = -` S\"(h /`!%$ry =`!\"\"` *(xi = x2 + rx` *#_prime` 1\"-` /$yi = y` C!`#6\"y` >&y` C!y;return {opt1:{x:xi, y:yi}, opt2` -\"` P\"` 3\"` &\"`(/)`(3\"`(1\"` h$x:` -\".lng, y` %%at` N(`(3#` U&`\"P!adian = 0.017453293`!z!pi`#B$PI` +\"hi`(z!` s$ *` V#` 9!lam` 3'ng` 0*phi0 = 45` D-0 = 9`$A!` A)1 = 33` &-2` R/n`!`$log(` $!cos(phi1) * (1 /` 9\"` /#2)))` +$` I%tan(0.25 * pi + 0.` &!hi2` V*` /51))`%i\"F`!F$`!9(` ,!pow` n;1), n) / `\"3\"rho = F` T(`!'>` ^!` W$0` .N0` [\"`&0&rho` Z$sin(n * (lam -`$Y!)), y:`!&!-`!l!` D#cos` 9.`&a(`,l$`&`*earthRadius = 1`\"\"\"`&j4roundToNearest = `29&` 4#, value`(@&`!W!floor(` 5! /` ^$) *` #$;}` z!getSign` k)` `+` ^\"< 0 ? -1 : 1` U#lng` U#` _#`\"@#.lng`$8\"la` v$` 2,at` ;#ng`&$$abs` M0` +0` U%ow`0U!`\"w((5,` R!- 1e-10);` ?\"` e!=`\" !0 : low`.$\"igh =` d!+ 5` m$Index` 0#/` 0#high` 0$` Q!` 1$ratio = (`!0\"low)` 3%AA = [0.8487, 0.84751182` &\"479598` &\"0213` %!3359314` '!257851` &!1475` Q\"0006949, 0.7821619` 3!7606049` T!7365867` l!7086645, 0.67777`!7#6447573` b!609875` 2\"5713448` b!5272973`!<!485626`!R\"45167814]`\"?!BB`\"?!, 0.0838426, 0.16768`!l\"251527`\"C!335370` _\"19`\"L#503055` Q!58689`!Z#718226`\"*\"533663`\"z#51804` j!915371`#U\"99339958, 1.06872269, 1.14066505, 1.2084152` ?!27035062, 1.31998003` '!523`\"3\"adj`$[!(AA[`%5%] - AA[`%]$]`(n!`%=!+` +)` Z$`\"y!(BB` T*BB` L2` ,(`,4'`!D\"*`(I!`0/$` )\"`(z!*`+G(, y:`!2\"*`)7%` 4)`,-0_pacific`,;*`)W\"`2D'- 150;if (lng < -180) {` A#ng + 360;}`!s#`-6%{lat`4E', lng:lng})`!A'mercator`!6*y`2H-tan(`*_' / 90 + `2c\"`4e# / 4))`21\"80`0($PI`/h(`\".&, y:y};}var calibrate = mapinfo.proj_coordinates;`!k%find_point(initial, pt1, pt2, pt3`!#` ]!` ;# =` *!` I$`,d\"pt1_proj` 5$pt1` 1$2` *+2` 1$3` *+3` 2#roj_r_pt1 = helper.distance(`!=(`!f!` _!` J+2` 6?`!P\"` S\"dist`!D$` G-` |#` ?1act` =2` I!` C\"scale =` z'/` T%`.Z\"`\"D#`\"M'/` P\"` 6%2` 3(2` 2)opts = interse`$q!(pt1.x`\"y!.y,` z\"`!L!` /\"2` -$`!Z#`!H!third`\"t?`$N\")`!T*emnan`!!`2A%` X,opts.o`!B#3) -`!,'`!A\"` _#2` B@`&t$` X*if (`!C%<` h%) {`(K&`!?%.x, y` $'y};} else` :0`#5!` D&2` I!`)*!rules`({,` 0!`!I\"ules) {for (var i in` O\"`(s#ru`%Y!` .![i`.Q\"condition_stri`,8!rule.` /%;try` Y\"` *% = eval`!-!` ?&);} catch (e) {console`,'!\"The` T'\" +`!&.+ \" is not valid JavaScript\");}if (`!!&`+##oin`&m!`!D!` (\"`,M$`+Z0`,G%[` F\"[0]]` #/1]` \"02]]);}}`/($` b:0` U)1` c)2])`-y\"tt_css_set = false`-c&set_` :\"() {if (` D&`&<%`0&'newStyle(str`\"v$a = document.getElementsByTagName(\"head\")[0`%F\"el` F(create` N#(\"style\");el.type = \"text/css\";el.media = \"screen\"`&o!el.` S!She`!s!` #).cssText = str`(*%el.appendChild(`!A+TextNod`\"C\");}pa` A)el`1n%el`\"u'getsupportedprop(proparray`(4$oot`\"R(`!/$`\"Y#;`(k'= 0; i < ` [%.length; i++`$H#` 3%[i]`)C!oot`\"V\"`!*#answer`.G\"` A%;` -%` #\".replace(\"borderRadius\", ` )#-r` +\")` ?6MozB` M+-moz-` 8EWebkit` S-w` 2!` =FboxShadow`!x\"x-s` (\"`![<` K'`!q#` 7@`!m$` R(`!i%` V'`%e#` Y\";}`.B#ound`\"3\"prop =`%m.[`$ -`#U/`#'/]`1;\"popup_corners_adj = touch ?` .* * 2 :` &*`1}\"cs`-5!`!\\+?`!l-+ \":`.M!`!\".+ \"px;\" : \"\"` p!min = width / 2 > 250 ?` '': 250;max_` .\"=` p#max` +\"`!x$` (%: min` y!`#o\"`#68`$C'`%,,`$a,`#B#s`\"a\"` p'?` |(`\"T%3 *`!R#` 8\"`\"V\"`\"s!3 ` \"54` %2rgba(0,0,0,.5)`#9$`*Q!` A(< 0.01) {`!^#\"\"`2!\"`%$!`+o$e = /(\\d+)(px|em)(.*)/g`$)\"atche`%\"!e.exec(\"12px/1.5 Verdana, Ar`17!Helvetica, sans-serif\"`\"}$ale_up = viewport ? 1 : 2;`!l\"font = parseFloat(`!5#[1]) *` X&+`!M$[2]` \"'3]`2-\"m`\"C#.tt_mobile_sm{margin-top: .4em;} .tt_sm{\" +`'D\"+`$d\"+ \"z-index: 1000000; backg`'R!-color`'A*lor + \"; padding: .6em; opacity:` B&` +#` H\"font` ](`\"]!` 5!` }#black`!c#nam`\"$!float: left` \\\"-weight: bold` F\"custom_sm{overflow: hidden;}\";`\"|!+= \".btn_simplemaps{`!))text-decoration: none;`\"^&: #ffffff;display: inline-block;`\"a&5em .5em;`#~\": 0;`*(\"`#[!%; `-I)iz` Q!`/M#box; `.J&` */` =4`!F!h`\"t#1.43`\",\"align: center;white-space: nowrap;vertical` C$middle;-ms-`(Q!-a`4j!: manipul`\"z!;`(l!` %2cursor: poi`!0!`\"G$user-select`#W#`\"D!` #0s` #/` 6.`\"Y\": 1px solid` +#`2s#: .3`'t! `%,+:hover{ `%%-underline;}`.z\"xml_`&_! = vml ? \"left`+|!right`&5(xmark`'+'\" +` V'`'f!`)R#left`%f\"; `#!,`$^*0px`%v&`\",\"\";newStyle(mcss);tt_css_set = true;}fun`$8! get_zooming_dimensions(element) {if ` &$.sm.` :.) {`4M#` *9`,)\"bbox = helper.rotate_bbox` x(bbox, transform`-m\"gotoX =` ]!.x` *%Y` +$y` *%W` +$`\"r!` .%H` /$`#5\"`4N\"atio` %!zp =`!t)p` 2!paperW`3R#original`3c#`.^#` >&H` t!` =(`!%\"` A%`!|$` \"\"- (`!i\"/ zp -`!v\") * 0.5` F!Y` D#Y` C$H` ?(H` ?(W` D#` g\"` .!H` ,#` O\"`2h!` :$` 1\">`%r\"_to`!a#) {`\"l!` a'`\"V&`!K#-= (`\"A(*`#>\"`!J&/ 2`!2)W /` x,;} else`! *H`!&$` s\"`#%#`!&%`#~\"`! *W`!$&`\"X$H *` |.`&x#{x:` p!, y` $!Y, w` $!W, h` $!H, r:` }!}`(8'reset_s`'&!attributes(region`(;#!` %%`!'\";}all` N\"s.stop();for (var i = 0; i < ` Q\".sm.` E#length; ++i) {var ` 4! =` \"\"_array[` G,[i]];` &!.attr(` %\"sm` )!`!j\");highlight_labels` @\", \"`\"<!\", false, \"` 3!\");}`\"T,las`\"b#(`\"Q#` -!destin`-^! && ` $,.sm.type ==` t$` /4`!d'`#Q#` 20ignore_`/!!) {` 2-`\"^!` `;;}`\"^-` B,, \"out`\"T0`#y\"`%\"G`$H$`%C\"` '#`!b!`$`&`!Q(`$k|`%\"E` X\"`\"T,`\"Y!or`(-#by_`(O!() {all`\"w#s.forEach(` P%`\"x*`!O&id == -1`#&'` 3*`0\\..r >`*e#&&`\"p'zoomable` f!`)[8`+z&`$T:;}})`*[-`\"<&` F(`\"$W!`\"V%`!!Hshow_point(l, `'/'`%H#display = l.sm.` (#`1k!`)J\"` H(`)^$`0D!` Q%= \"all\"`$1% true`#4$` :,out`*5!`*D%`(Z!` 6A`&A#` Q)`&T$` X%in`\"t#`\"?,` ^4`+c&`+q+` g)`,k\"` \\3`#D!threshold = helper.to_float`!($)`#3!` ?&&&`&x#<` T&`\"[,`1Q$`)(!;`$n%`\":)`%k%var pt`$d$`%1!0`!/!`$p(_ids`*d$how_manuall`%3,_ids.indexOf`&\\)) > -1 ?`!\\! :`!S#`!`#` e)`)]\"Raphael.isPointInsideBBox` k'bbox, pt.x, pt.y)`\"W,`\"Y)`'T&`$.(` $!`!ix`3(%`\"6J`.~!`!a#_bbox = `\"Z6` |%`\"b-`!!` \\)`\"E$ath = mapinfo.paths[`!b']` U!` ~1Path(path`#`9`#o+`#u&animate_transform(e, t, `1$$a = {` 4%:t}`!E!!vml && !touch` %!i) {e.` h#(a, zoom_time * 1000`)\"&e`2n\"a`1\")`1]!_corre` ,!(`46)initial`.U#`2(\".hide(`39)i` `$`2p!`!|#lbl =` ,([i`#J\"lb`%d!hide) {continue`'m\"`.I(b`+&+` n&_se`'\"!` w!`0N!` {!` r#id];` >#.show()` v\"` 8#lin`'e$line_`%>#get_` '%(lbl);` F'`#5\"{path:` =%, `$7'` \"$}`! *sca`3+!var factor =`,U#> ` 8(_limit ?` 6#:` */`0v\" = ` .\"`\"|#` o#*` 0\");`&).` B!t`$d&`#z(pill`(&$ill =` \"!`#?.` d.pil` h+}}`&-(oc`$R!`%tD` H#`&6%` '*forEach(` v%(lct) {`\"%!ct`&%'`),\"`%|.ct`%}-` T!`%U(` c\"`$5:` 9'`$A.` ,-`$A.ct`$.Act`#L,)`/3'hide_and_`\"=!before`#F4`!=!`4<!`\"T(.sm.type;back_arrow`#r$`$1E;`*wB;`$L&update`3z#s(`$Z#helper.x_in`&S\"(type, [\"`.g!\", \"` L\"\", \"out\"]`.C\"`*U!ll` h#_attributes`$i$`\"Q\"=` V%` M%`0$\"` F'`%N(`-i$` U)`!D\"` G6`!<$`(S!`#Y+` 6\"]` c2`2I\"` t\"` ^!or`1a$y_`&4!(`%9!(`#5/opacity`#@$` o!!=`\"~\" &&`%1\"!` x)all` y\"s.stop`)\"#pill` $)` <#`-0\"'fill-`!&#':adjacent`!7$}` X(` *D`\"v)`!2\"` '(` R11` H,m.`1L#`*l/abel`*y$abel.sm &&`0N\"`-.'` #)`!B$` '*`!35}`!A+`3~${'stroke-width':`!e+border_hover_size * (` F! / original_` ,!) * normalizing_`+0%1.25}, zoom_time * 1000`&:%`$|(`!g5`$7;`\"<#`%C+`\"-3`\".#`!>m`,|3after`)i)`%%\"`+m#_` e!solo &&`,!$` 0!`(*!-1`(:!`-</`*+` g(back) {`-e'`0T$`#l#`12$`*;'` j4`+H\" ||`!$< ||`!v%`!!<if (`*C\"`\"D\"`\"+3`*y$` U2`#g&zd_to_tween(bb`3Q% {x:bb.x, y:bb.y, w:bb.w, h:bb.h}`$I'check_for_up_popup`/k%last_clicked`)T#tooltip_up) {` &#`1L$` 2& = false;` S/) {out.call` .));}on` '\"` V%}}var end_`\"z'`4J!`&`\"wee` )\"current_viewbox;`\"w&` C!o`2@1, call`$K#if (` _#ly`$7!ing`#H%;}`\"r1`\"6&`),#d`,I!` %'`,D&` *'`\"6&`!(*over && !`!c( ==`\"7$` <#)`#7(` ,+;}`#H(`! %`#4+ =`&J(`$Q$`$M7`\"i- = true`/[,` 7#_dimensions = get` O$` .'`4a*var to =`'E)` \\=` R\"from` K+`\"`!` <?`4W!`\"`*` 52.r;`,o*before`)`&U&updateZoom`$A$`.~\") {`'$+ `$}%` <\";paper.setViewBox` S*.x,` B*.y,` \"+w` 2,h,`$h\"`/&(whenDone() {`.;`\"5'`#O,`&!+`%Z0`&\"\"`*1-`\"{\"`0%\"level();trigg`3x!ok(\"`$$$complete\", []`)4\"helper.isF`\"(#(`*(%) {` $$`-m!if (!vml && (!touch ||`*y\"mobile)`)5!`\";$ {`&$!able`\"8!pendencies.T` 0%? new` %4:` 8!` '%;`,H& = ` t%.`'*\"{from:from, to:to, du`&x!n:`3a,, easing:\"easeOutQuad\", step:`$p%`&?-`&R5;}, finish` S') {`%R%to);}}`3:&`'(.to`&}.to.x, to.y, to.w` '!`&Y&`&O&`2$(create_bbox`!X\"(auto) {var pri`!p!r`&,\"\"\"`*Y!` B!` L\"array = {};for (` 6% in mapinfo.paths` j$ath_to_add =` 4*[` T!];` 5*Raphael._pathToAbsolute(` ;'`,.\"bt` C'pathBBox` 5.w = bt.x2 -` #!` 0!r`'X!w < 10) {r = 10`#u%` *!;`2t!x = Math.round(bt.x * r) / r` e!y` 0-y` 2+2` 0.2` 5*x` 1.x` 8'`$()+= \"'\" +`#o#+` '#\":{x: \" + x + \",y:\" + y` '!x2` (!x2` 4\"` (\"y` )!},\";`$n,`$0#`#2!;}`%C+` #(.sub` $\"(0,` ,*length - 1)`!m.}\"`#y!!`&Q#console.log(\"The`*0!`&B-is: \\n\\n{\" +` ));}return` C-`.Y'`'n#content(element`&|#` /# = ` 1#.sm.descrip`.H!var embedded_im`(5!data:image/svg+xml,%3Csvg%20`+r\"-backg`$m!%3D%22new%200%200%20256%20256%22%20height` C\"256px` 1\"i` U#Layer_1` /\"version` 4\"1.` .$`*p\"` 0\"` o3width` t-xml%3Aspace` 6\"preserve` 6%ns` 3\"http%3A%2F%2Fwww.w3.org%2F2000%2F`\"\\!` J'Axlink` =<1999%2F` F\"22%3E%3Cpath%20`\"Z#M137.051%2C128l75.475-7` \"!c2.5-2.5%2C2.5-6.5` C!0-9.051s` +\"-2.5` +\"%2C0L128%2C118.949L52.525%2C43.475%`#;!c` N!` i%` S*s`!*#`!$%%2C` 8!L` m#`!b#`!\\#%2C`!e#`!^'` K3`!7#1.`!M!1.` \"!2.88`!m!.8` i!4`!j#` +!s3.275-0.6`!\".525-` 5!`\"@$`#7\"`#0#`!C&` YG`!P\"` p6`#g:L`$R)z`%_!F`%\"\"`%o#3E`1'\"xmark_modern = \"<img id=\\\"xpic_sm`-*!_\" + div + \"\\\"src=\\\"\" +`)Y*` 7! style=\\\"`'w!: 100%\\\" alt=\\\"Close\\\" border=\\\"0\\\" />`!>(vml`!B!a` `%line-`)j\": 1.5\\\"`!@<>X</a` j( = vml ?` y':`\"M);` ?$\"<div class=\\\"` =\"sm\\\">`/N!` @!+ \"</div` z#url`,]*url ?`,p(url : \"` F%_sub = url` -!js_` ^\"` 4#`/Z*11) == \"java`-]\":\" ? true : false` a!tab_clic`\" !(`.b$(){window.open(`$O\"url`#\"\",\\\"_blank\\\")})()`!\\\"reg` a%`!U#?` ^1location.href`%J#` s%` k! :` D1top` :?`\"r'_clean = helper.replaceAll(`#.#, \"'\", \"\\\"\")` Q$`\"Z1\" +` g*+ `!$'upon` O%new_tab ?`#R':`\"u&`3Q!` e\") {` M)`!5$;}var mobile_par`2;6_` ?\"`%k*` -/:`&s+tt` 3#`' \"<a` 1%btn_simplemaps\\\" onClick='`#f!`!e&+ \"'`'Z!link_text`']\"a>`'_$if (!`!M'` S$) {`(O%\";`\"9*\"\";}if (`'y+== \"\" && ` d(`\"6.) {` ].var content` /$` (#` p#? (` 1+\"\")`\"0custom`#.!; /`\"X!` b$`*3'return` L.`#d\"div>` *,nam`$\"#`-X!`\"8&name` p'`+?)div`-#%clear: both;\\\"`#z#` K&`\"1)+`&,)` t%`!v$}`'m$ is_forgery() {if (map`!M!!= \"continent\") {`\"L#`+Q\"`#l!i = 0;for (` *!d in mapinfo.paths) {i++`%(\"i > 8` ^&true;} else` l,`!R)inside(small_`#0#, big` %$) {var ` <! =` \"\"` 4$.sm.zooming_dimensions`'0!` C!.w >` `(` :2.w`\"J1bb =` M,bbox`+)!big = {x:bb.x * scale, y:bb.y` &&x2` <!2` 7'` -!y` )%};`\",\"xbar`\"7$.x +` ##w / 2` <#y` 7(y` :%h` >!`\"K%` d\"`\"R!.x &&`#+#` X!` 0\"y`%D#` D'<` I\"2` A+` 1\"y2`$g,}`# *`$g%create_pattern(e, par`$Z#hovering = par.` *! ? \"_` %!`0K!`.c\"` W#_id = div + \"` k$_`(x!.sm.id +` k%` S!exist` {\"docu`$N!getE`$X\"ById(` q&)`#,!` K$) {`0x#delete`%+$` 7&`%M\"svg = map_inner.firstChild`!=!SVG_NS = svg`*S!spaceURI` 9!defs` 5#querySelector(\"defs`1u#`![#`!x(`#O\"`\" #NS(`! \", \"` E#` S#`#*!`\"t#;` 4#.` 0!`\"L&` /%setAttribute(` a$Units\", \"objectBoundingBox` {$mage`!6A` E!` O#rect` 0Arect` M#bg_color`%f#` j!` +#?`%z!` &(:` -!` '!;rect`\"/+fill\", \"#ffffff\")` 10opacity\", \"0\");` z!` 6)NS(\"http://www.w3.org/1999/xlink\", \"` $!:href\"`'u!`!_#url)`#q%append`%o!(rect` $2` T!);defs` +)` E#);svg` ,)defs`$:'_posi`)N!`#5(` -$` C!auto` 1)size`3I!auto\" ?`*G! :`*>#`$d\"peat =` s-= \"` 6\"` B1manual` A2` 6\"` B1center` A2` 6\"` B1fi`0C!`!e#||`!7$||` j$?` H\" :`,h\"`/f\"ox = Raphael`28!BBox(`2A)[id]`&x#box_width =` (!.x2 -` ##` 8&height` ;$y` :%y` Z'2` [$` i#/` O(;`!I$_preload(`&)), `.Q%(`.?#` 6\"`!S$this.offsetWidth`%V'`!S%` 9'H`!/\"var `!R\"` b(/` L);`!1%get_per`!9$p`$N!`&(*`.G!auto`12#`$,,` 0#w2h > 1` '#`!0(>`\"w') {` ~\"1;} else` ($`!_*` G&;}` @$` m&`\"W#` q#` (\"` o&` V%2h` o1` W#`$>)` G)`!*$if (`&O\"` t%w2`!T&2h`\"u!`\"R\"` +$` A%per`!/+1 /` 0\"`\"%)per`#0#`#h0 * normalizing_factor`\"p,`4h#` w!`$[&`$q%`%M!new_`&0*`'+'*` W!` 9*`&9%` J,/ w2`&e\"`1R$x = 0` %)y ` \",` W!,` &%`&`#`'G&` Z&` *\"` \\\"`&E&) {` ^)`#[#` b*` /\" *`)S&`!g\"`$e'`'*%` ^,1` Z.1`0c\"`!W!`$-&x` w%`#z!`!e&` 9&y` ;$`\"@#`%{1` rJ0.5 * (`$J'-`$*,`2Q#`#5\"` D'` i#` D(`(L#;}`39/x\", 0`3Q1y\"` \"4`!;!\",`*<(` 30`!1\"` @$`!=$` 6/fill\", bg_color`3\\&`!?.`&J%` -4x` :'x` -Y`\">$`$N)` 54`\"C%`$i*`$>#`!Q/`%%#` +2y` 8%y` +2`!T$`%B.f (rotate`/\\#cx`-A%x +`*.-* 0.5`4\\\"y` @%y` <)`&*#` D\"`!90transform\", \"`!7\"(-\" + ` &\" + \",\" + cx ` \"%y + \")\");}` ^0`#E%`'1/);`-:#\"url(\\\"#\" +`#n$.id + \"\\\")\"`-V\"state_`&[!array = false`\"M!make_` =!`&|#storage,` P#` M!`32&creat` J#s(refresh`2Y#!` %&` ^( = {};` c'` +\"}`!D/mapinfo.` +,`!e!scaled_border`0D\"= ` \"(*` =\"`0J2* 1.25;`\"E& = `\"-%(id`%c#brand_new =`\"U([id] ?`#1\" : tru`#8\"` b$` M&? paper.path(`\"($paths[id]) :` g,` c!attrs = cattr` 1!if (` m%) {` Q!.sm = {id:id};}`#p!vml` 6%nod`%v,class\", \"sm`\"R\"_\" + id)`%V\"a` B$s = {fill:`!G!.`, !, opacity` .#` '#, stroke` /#`#}#` K#cursor:\"pointer\", '` H\"-` W#':1` *&`)<!':`$j.` 9&linejoin':\"round\"}`#.!` E#hov`!4$ =`#B\"`!I$` /(?`#]\"` '0: main_setting`\"!*` x.`&Q#` [/` 5!` s1` 5!:`' (`'>/` r)` \".`'9@var ` M!`$h*`$V*` n\"`$a%`%('`\"j'`$y%`\"~.`$=;`!i&`*M#.sm.`,Y!`+n%if (`!,\"`,p\"url && `'C#var`.[#paramete`(5!{` t!:` ]!`00$ur`!s$` '%` 3$siz`&w$` '&` 5$position` 4)` -$`1M%` 1)x`1C%` *)y` /$`\"v!` .)` -!`'%\"`2g$url =`-{$` .#(`.U#`\"C,)`#,.`+q!`$q&.fill =` r(`#J-`$(\"ur`#7>tru`#?5` ]%`#E5`%,&`#G9` A\"`#L:` >\"`#Y3` 7\"`#[7`&~'`#@X`(W+`#W0} else {` '@`/%!`!`#nactive) {` J'`-o\" = \"default\"`/X\"`'5)ource`0 '.ignor`\"M#`%F6\"url(\" + directory +`,?#` m( + \")`!0#`!1#`-Z/||`,i4) &&` 5#empha` .\"`!c&` -$abl`'D%`#<$` -4`+*\"}` 6%`-FA`(R#attr`\"#!`\"h\"`(h$transform(t` \"$`) '`-l)` #&` 7&`.-.` #+` A&description`0H%` )'`!*'djacent`/(+'fill`3+&` =%` +#`.4'hid`1J&hid`\"[$` 4#_label` 4)` -\"`+*!brand_new`$A(reg`!q\"`#r,nam`!!&` (!`2J$` (!: mapinfo` *!s[id]`! !!` T)` ~(` j#id` z'`)f\"` q\"url`-?'`(V#` 5%` )$`$6'n_click = is_on` (!`'I#popup`%#'` +!_off` F#ff` 23`#)!s = []` +&zp`!>%zoom_percentag`!C'zoom`'E#` @&abl` 8'`%H'_mobi` B'` ).` M&type = \"` ,!\"`$}0`';$`%%)` ?%content`-J&` *#`-N\")`-w!sba = ` ,!_bbox_array`$j'ba) {` @\"Raphael.pathBBox(`%A$path`%D!);}var bbox = {x:sba.x, x2` $\"2, y` %!y, y` .\"y2`'['` R#bbox` '*.width` 4#.x2 -` ##` 8+height` @$y` ?%y`\")!`#5)`&y%hide()`,@%`(A,all_visible_` L!s.push`#=$`/s\"`(q-`#>&`#W$;all` K2;for (`4W!d in`(w%`#R!) {mak`!4#(id);}` &&[-1]` l(`\"#$func`,0!style_background() {` $&`/k\"`.!\"{fill:main_settings.` :,, `,B+` \"#, stroke:\"none\"}`%@#`+\\\"`\"d\", last_destination, ` \"'`&g!initial_`)&!`\"-!`,5%` .-manual;`\"@%`'[#`!-\"s(refresh)`$i\"!` %&`!H( = {}`2h\"` Q#) {`#}+` /&var`)&\" = rattr`(@!`\"='object =` L$` 1+` 4!`!B! ?`\"n)`%`!: paper.set()`)5\"`!e,.sm`!l\"` &%.`%1\"`,O\"`!}&` m&) {console.log(\"Duplicate R`!^\"\");continue`$N\"all_bb` l\"`\"a& = 0; i <`\">*`!9#.length; i++`#\"#`'~\"id`\"e%` D*[i`\"t\"`$}$`(G(` S$`0j(`!y+` u%+ \" does not exist`\"$)`*G)`!B\"` V0`1[%+ \" already assigned to a`!~#` p)`37.id`$*-`*?'_id`$r#(vml &&`\"P\"`2O!gnore_hover && `1\\#`)/! ||`/[$over`)C\"))`%L&`+?)`$Y\"` )'`-R$)`\"h\"` d\"x &&` n#y ` \"%x2` ,'2`-3#`%F\"{x:` =#, y` $#y`/R!` S$`/K!` T$}];}`\"`&`/N#helper` )!_union(` z\"`+&#attribu`'I\"{`+Y+` s\"`+e%cursor:\"pointer\"}`&(!`\"z!` D?`#B\"` .#}`$.!`#e') {` Z&.fill`3[%` ;!`#<(`$&( {`!1+` N*` @'` V(inactive`!(*`\":\" = \"default\"`#D(`\"6)` #&`&Q'`'H!`)*,name` 9'descrip`-x!`!]$` )'` 42_mobile` =0` 4#` M'ur`\"U&url` /'labels =`-')` 5&on_click = is_on` (!`#*#popup` A(content =`/{$` *#`-E#` k)`%P-` #+` A'adjacent`%r;` >$`&%%` X&zoomab`#\"'` )$` 9'`\")!_off`\"D#ff`\"/4zp` [)_percentag` c(`&&$` B%` )$` 9'type = \"`,k#` R(d`,^\"`1.+all`3O$`+R\"`#K*`1y'`&J$`'!(zooming_dimensions = get`4a!` +*` p%}`(<!`4>3[-1]`2a\"`*O!u`3g&` 6&;out`3%%` &\"`\"O%out\"` ,$`#P!1` d!`,7*clone(initial_view);bbox.width =` J!.x2 -` ##` 8\"height` 7$y` 6%y`!)$` #bbox`!;%`\"VGout);last_destina`)w#out`$Q!typeof `!p$zoom === \"`*]\"\") {` 0(_manual`#!\"` &/`#<#type:\"` -\"\", zp:1,`!~!:` H(` J4`!tI` P/)` k) = -1` |*solo = false;} else if ` _) != -1 && !` **in`%p))) {` K-in`4D\"` <#`#5+` 6! =` 7([` 5(]`!L>{console.log(\"The`$T*is not the id of a`!m# or`!1\"\");}`\"t.`(a!fly_in`(S-2`(Y'`%~*` 8,;` 4'`%76` d\"ivd`)~<`\"n0)` X!w = ivd.w` )!h` '#h` )!xinc` 7$ *`\".$ - 1) * 0.5` A!y` <&h` 02`!~*`&e2{x:ivd.x -`!2!, y` +!y -` |!, w:w * ` w\", h:h` #'r:` $\"};}}}func`#Q!`1S#lines() {var ` (! = mapdata.` *\"? ` \"*:` '%borders`.x\"` 8!`$p!turn;}for (i in` q\"` x' =` -\"[i]`\"!`03! = ela` +$stroke_siz`0O&` (!* (`-*\"/ original_` ,!) * normalizing_factor * 1.2`$%\"b = paper.path(line` %!);b.transform(t` \"$);b.attr({`!G\":`!@\"color, fill:\"none\", cursor:\"pointer\", '` N\"-dash`&9!':[` Z\"dash]` 7&`!w!':`\"E'` 2&linejoin':\"round` m'miterlimit':4});b`0r%b.sm`#%\"`#,(` 1\"`/c$.getBBox(true);all_external`%K\"`3O\"b);}` )/hide();`&!&get_label_bbox(e`%$#bb = e` }+if (vml` :%2` ?!_` 7*bb`1k(2` &#;}`)2!a = 0.5 * bb`2V\"`)#\"` +)` K#var pt` ~!sm.`$:!0` 0!new_`![!{x:pt`(s\"a, y:pt`(p\"a, x2` 5\"+` 5\"` )!y +` 7!`!3!:`!9$, `!*\":`!1%};`(!\"`!\"#`!u\"`\"~\"`%J!`!@!` *\"set` )'make`#G\"`!w\"il` J$`)i-abel`)v!helper.clear_sets([all` :#, ` '!ine` $#pills]);`!C'`%t\"`!\"&` *\"`!P+` )(attribut`+)!` #,.reverse();`\"$& = `!x%(id`%9#`*R$` S,[id`*b\"force_scale`1Y%` T!lready_rotated` 3%`,$\"`!A,hasOwnProperty(id)`,='`&c!rand_new`!B&`0-\"d] ?` u\" : tru`!8\"`\"q%`+I%set(`0M\"`&?\"`&4\"`):\"x * 1, y` (#y * `1U#` G!`2K&pare` +!`\">&resize_` ++if (` g\"` 3\"_type == \"`3t# {` I%` -!`\"(#` G)id];} else ` V6`2{\"` d)`3')` @Nloc`2G!` g)` -$` ]5`$s!`#G$&& ` %#y &&`#0#) {if (` '\".sm.` }1`%f.`$p!`$$!.x`$j!` X$x` /#y` ))y` 0\"0` ()`+R#`&*` t!`!E*auto`/_!`&Z!`$l*` J!}}`\"E!`#$2`1(!) {`\"g\"`\"M%console.log(\"The following object does not exist: \" + id)`,<#`#W\"`!-\"nam`!&\"Not Named\"`#U)` :(`\"U'id` _\"`(^%`$&#!`#`+`*O#`#s&`,S#` +\"(`%1#x,`1r#y], `4$'`(E%x:` [#[0], y` %%1]}`.>'`)S%text(`${#,`).\".y` |$name`-?)`*O!`*_#`'F$`!q!` m$` =+;}` ,!`3w%` &$`3\"!`3{%hid`%A( &&`%L(hid`-_$||`#M'hide)) {` d,`%f\"` -%`%{%` #\";` W&`/}\"`4h\"` '!`3{\"` 7&`*'\"`&j!`*+'` 0,]` U3`#h!`/){'stroke-`2s!':0, fill`-4#color, 'font-size'` 2#size` 0$w`3<!':\"bold\", cursor:\"`$T!er\"` @$family` Z$font_` -\", 'text-anchor` 9$` (\", opacit`.e$` '#`.Z\"over`2-*{`!r'h` :!`!|#` X*` 5\"` ^*ut` Q6` P1` V%`$4*inactive`)7#`2+#`\"o\" = \"default\"`%H$attr`*)!` D\"`'U#`+y!`!C(` #&` 7&`\"N.` #+` @'`\"/,` #*` ?&`,X\" \"` ,!\"` .&id = id` '&`-o$`-y(? ` \"(:`(e#` )!` J+_limit`)&%` )'` ?&`/Z!`*a\"` +&`/Y!`*m\"` +&`/Y&`/S\"` 0%line_x` ~%` )\"` 0+y` 1*` l'lin`\"=!`4_!` -%`,X\"` L%` )\"` 8#`-5%(`\",\"t`)4\", ` *!)`*(\"`2e#display`.T#`4O<`!6%` P# = \"out\"`43J` S/`'0&` -#`-|%` :/main_settings`+[#_` 7$? ` \"9: \"all\";}` e7`\"m)`-g'` +#_id`($$` =%` /!?` L*` /!:`$R#`\"p&`$k!||` E#pil`/:!resize_`3+%`!,%bbox = get`/f\"_bbox`.\"%` i*`3##`%}!path` P$` ($` O$` =$`2D%` 7\"` ?$` 7&_siz`&;&` (&* normalizing_factor *`&:\" * 1.25` Z&` X! = {`/_\"`,R#` 6!`,l#`.z/`0#*`!1%};line`,I\"` s&)` 0\"`3D%` '\"`+-5`#o!`(i%` F#`\"42` 6%`+i-`#9#line;all`#`!`2@$ine`-{#_set` )(`$L!`'c&`(6%state\" &&`%L'`$f$`%-% =` '\"`%O$`#^!p = 0.1`#j\"calculated_`#5!` J$` Z!.` -\"* (1 + p * 3`%$\"pill` G%`!:\"` (\"`'I$` (\":` n-` T&h`3z!`!!*` -#`!($`!&\"`!x)x - 0.5 *`!8'` A!y` :(y` 8*` q\"` B!r =`!2)/ 5`2b\"ill_array[id]`#A#`%/#` .*`+^%` 6(`(.!rect(x, y,`!R'` %#`!)\", r);` a*` y#;}pil`.E?` A!`'.$` &#`-s#`-K%` /%`3,)helper.clone`&%'`4V(`&<*image) {` \\..f`\"Q\"cattr[` G'd].`)[!`\"'#sm.over`4S*`!13` :+`!-<` @+`!68h` G!`!I+adjacent`!7A` :/`$##`+Q!`\"o.`!x\"` g#x_in`%*\"`$g\"`0-', [`*!#,`0\"])) {`!/&`)|#` b#bbox_union(`\"8'bbox,`*8*]`+/#` {B`4E#`!9% &&`3R'` 8\"`(*#` '\" =` \"#`'?#` =,];` \"\"`!d:` 6*`!p.` 6&zooming_dimensions`.b%` &;get_` '.(`\"-#`4='`*?'`.v!pill`.t#`.3!`.k,`.H!`.-`3[#`*y#` '3if `#v- != \"out`/J!` (1all\" ||` 3&hide)` y(hide(`!4&all_visible_` @!`1\"$` I$`!;,`0p/location`!R!!`1{)) {` 6$` f5`2?!` &2` \"%`-<)` -%`(Z!!vml`\":$.node.setA`(|$(\"class\", \"sm`!!\"_\" + id`\"2#resize_`\"1\"`/I$adding = main_settings.`\"\"%auto_` >$? 1 +` %A* 2 : 1.3`0!size`.h!` 5$`'N)`2t#/ normalizing_factor` Y!lc`2l%`$-&` 5!old`#I# = lc`$G!` *\"`!1\"hape` 0&` *!_type`#I!` 7#= \"triangle\") {`!d#` \"!*`!|!`%y#` E*star` =.2;}`!j#_id`!/&id;l`.b!` 3\"].` K';make_`#=$(` <\")`\"L(`#W%`%S!` \\#`%j\"`2>)lct;`\"W) =`\"v'` -*`)4)` 3#`$[!`!S#true;}};for (var id in`&h#`/K' {`!y\"abel(`&D!`'X'`)8$function`+x!line_pat`!6$`&a\"bb`$v(bbox`\"]!w = bb.x2 -` #!` 0!h` /\"y` .#y` 0!r` T(scale ? ratio : 1` >!x_adj = 0.5 * (1 - r) * w` 9!y` '3h` V\"` s(`!~!`!F\"y` '-`!I\"miss`(q\"!x || !` 1\"`$F\"`&^!`'@.`+a$`&x!` =)`+i,` w#) {`!K)` ]&point0.x;`!S)` /-y`'P(`!\",`4 \"`!!*`!!`$>*`3i*;x`#9&p`$T\"+ ` $!)`!G!` 0'y` 3$y)`(P\"cur`!=!`\"C$ = {x:x, y:y}`#9\"ts = [];pt`';#{x:`%X$`$z!, y:` }#bb.y +`%d\")})` C- +` &I` 9&x` =\"x2), y:` M#`%z!` (G2 -` K%`'e!inner = {`)*'k in pts`#s#`\"x%abe`47!ts[k]` Z!distance_between = helper.` 2$(` Q),`#]-)`&R!k == 0 ||` `.<`!]#` i%) {` +#`!I$` v);` 5$`$e&`!$,` ;$` j$ =`!&-;}}return`\"($linePath(`!0(.x,`!V$` *\"y` &&`!%#` 7(` +$y`,1(`+0!_t(e, s, t, x, y, r`#u$x = x === undefined ? e.sm.x : `*j\"cy = y` 02y : y`#a!t` 3*) {t = \"0,0\"`4C#` 0-r =` `\"rotate;`\"n$\"t \" + t + \" s\" + s + \",\" + s ` \"$cx` ,%cy + \"r\" + r`1g#`0t)`,Y\"`1H(;`\"z%creat` /&s(refresh`\"|#`3Z\"paths = {`3N$:\"M -0.57735,.3333 .5` \"'0,-.6666 Z\", diamond:\"M 0,-0.5 -0.4,0 0,0.5 ` &\"Z\", marker:\"m-.015-.997c-.067 0-.13.033-.18.076-.061.054-.099.136-.092.219-.0001.073.034.139.068.201.058.104.122.206.158.32.02` 5\"039.117` A\"75.006.009.011-.004.` \"#9.037-.125.079-.249.144-.362.043-.08.095-.157.124-.244.022-.075.016-.161-.026-.229-.048-.08-.134-`\"*\"227-.146-.013`\"0\"-.027` \"%4` $\"z\", heart`#5!275-.5c-.137.003-.257.089-.3.235-`\"u!379.348.539.58.765.202-.262.596-.33.576-.718-.017-.08`#q!`\"0\"-.13-.206-.087-.066-.20`!!9-.3`#$!5-.055.02-.106.053-.143.098` c#081-.169-.127-.272`#R!\", star:\"m0-.549c-.044.12`!*!4.25` B\".379-.135`\"k#271` ##405.002.108.078.216.155.323.23`#I!2.0`#t!16.057-.023.085-.032.099`\"0!.1` $!97.298.049-.031`$w\"068.143-.101.062`!]$4`\"`!.185-.133.109.077`!=#8.326`!=#4`\"Q#082-.2`\"z!23-`$8!109-.079`'L\"156.3`\"}!36`\"L!`%<$`%H\"2`\"L!-`%)\"04`\"x!`#&!1-`##%-.377\"`1?'id in custom_`*C!s) {`*F'[id]`/]!` 7'[id]`+]\"supported` 3#`4`\"` o+` c') {` C,`3P\"id);}`0##clear_sets([all`,-&]);`,f*`3Q\"`,h) = `,n%(id`,[#posi` 7#\"center\"`-K!attrs = lattr`\"2!if (` 1!.type != \"image\"` c#attribut`\"G!{'stroke-width':` S\"border *`14\" * normalizing_factor, ` S\"` E)_color, fill` 2#` +#opacity` .#` '#, cursor:\"poi`\".!}`\"/!over_`!D?h` D!`!\"g` k\"`!^1` 5\"`!^7} else {`$>'` T\"`#x!_` /$`$L%`\"2&`\"<E`!\"/`%#&inactive) {` L&.` M\" = \"default\"`'p#`'M!`%\\!`%q'`%m!`!9!size`!y%` (!`#D0`&A'x &&` H#y`'*%int0`'\\\"` &\".x` k%x,` 9#.y` +%y`#<%` R)getxy`! #lat,` G#lng)`\"'\"rotated = `)9#` +\"([`!.$`!\"&], transform)`\"E!` 5! = {x:` a#[0], y` %%1]}`\"='`\"s\"= \"auto`(k$l = {sm:{}};l.sm.displ`*9!` P\"` )#` 7\"auto_`#Z#true` 0\"`$%#\"`*_$\"` 1\"hide_label = fals` H#` .!`,G#` ,!`#&%` #\"` /\"x` ($.x` +\"y` (%`!F#`%<)` #&` 7\"id = id`,E+`.*#l;return`&_\"` \\(= \"circl`+j%`,p'pa`-\\!` :!(`!T#`$8#.y,`&R\"* 0.5`$8\"bbox`$7\"` E# -` 9' * ratio, y` 9#y` )3x2` X%+` K2` 9$y` ,1`*7%if (`&?#x_i`\"k#`\"S',`0a-)`\"^#cs =` u!`\"4!`&]%`\"q$\"S\" + cs + \",\" ` \"%0,0 T\" +`$`$` 7%`$_$`'@!ath = Raphael.` t%Path`!V#`2f\"`!_&`'~(`!?!).toString() + \"Z\"`'r!`$j+marker\")`,|)\"bottom-`1Q$`)Q!`$T#`!L$pathBBox(path`$w\"`%F-path` 9#`#d'`!3+`2 )`.7\"` ^'`.H(url ?`.Y)url : directory +` 1)sourc`$9\"`!J-` =!(`!!*, 0, 0);`.E'src =`!G+`(V%.sm`-H\"`\"t'`*-\"`\"}$_preload` x-func`!K!(`\"Q$wh = this.`2o! /` '\"height` }!new_` )\"`&M(new_` L\"=` 6(* iwh` 8%`+-' -` H'/ 2` ;%`+E\"`%<$`%4- ?`&z$` [#`!\"#:`'1$` )*/ 2`\"~&attr({` 4\":` ;&, `!A!` -!` %!, x` (!x, y` $!y})`#b(.`+5&` 9*`*l!`\"C\"+`\"5&`*a!`\"5\"` 0\"`!1\"};})`/w'`$5\"h`4;!url ||`%x)` 3\"`&%\"`&x)` 3\"`&t3` e&`'#*` .&`&}6`!&(;` '!`&Z3`!4*;}`3b(`%AH`%4O`${3`(v1rect(`$I#`$G#`$8'` X&`02,`$RM`$v%`)P-`%x(`#7!`2p)`+|' ?`4^! :`44$` N'`#|&`%&#` '\"`'X+` /&`'-*original_`.}% =`/(&` =*`%&* = ` #+`\"\"*d = id` ')name`&i%nam`!{*scal` 5&` )!` .._limit` 8*` .\"` ?)`0K'` #$` 3)url` [%url` /)`#v\" \"` ,$\"`!8*`$5'`$B'` 7)descrip`)4)` )'` 44_mobi`\"X'` ).`#T*nactiv` F&` )$`$H*n_click = is_on` (!`+]#popup`%B*` .!_off` I#ff` 17uls`!4&` )!`(G!underlay` 1&`/..`'69` V'` #$`!'._speed`!1*` .\"` 80iz`![+` .!` 7/color` <+` .\"`-k$` ((:` -#` )!` a)`,J'` +)`,>'`#j+int0` 5$0`0l0bbo` ^*labels = []`&v*`\"H\"`\"1-hid`\"\\&hid`''+isp`$J(` )#` 00_id`+f$` ?%` /!`\"|$` ((`$q-`+V%(`)y\"t(` 3$, ratio * ` 5!)`2k\"`!P1= \"region\" ||`/U%` 3,state` =!`\"K&) {` F%hide()`.n).content = create_` *#`!?%`!P\"`&r$) {`'M\"`2J%s.push` D'`2Z$top` *7all` $6` \"$_array[id] =`\"M%`!K!!vml`\"/(node.setA`.x$(\"class\", \"s`!c&_\" + id);}};for (var id in` v%s) {make` K%(` J\"func`*2!`#a!_or_`$,\"(` +!) {`3s!eve`.G!pi_object.zoom_` 3!`44\"evel_`0K!` 01_id` C!` w\" =`!)\".sm.` +#?` 4#`\"u#` 0+]`&X%if (` .\") {`&4!`!V\"= \"out\") {return` h#`$O$` <*`&N#` V(`!w!=` O#`2V\"` b&`!I!`%9%` r+` m1`'.\"`#8#current_` 0!`\"T$`\"B#`!5$]`\"5!` =)`\"s'=` pgmanual`\"U$`)f\">` s'zooming_dimens`'C!r || !` 5*able`#V4`!N+`!@$` ',`&S%is_adjacent(element`%mi`$%3`%0)!= `!4#`#S,tru`#Q-`&g\"`#K2`&4&`'e)` s'`'^2` 0-`'V<`&w9`!T*`!~*`!v3var upd`&x!ttr = `$9%(e, pos, anim,`.c\"`!D#anim == undefined) {` .\"` q$` A!ttrs` 6-` /\"` <(!` o(po` N!\"over\"` E'`(6!over`!c!`-T!s`*>(` P$`&-$` K-` 1$` M/` :+` 5'`!Y#nim ||` 9\"image) {e` D!`\"?\"`0A&e.animate` 3\", fade_time`/%!`#d'pill`#b.pill`#p#overr`2R\"if (` '$`#A,` .&`#H(` B(`,,*par`3 \"pill.sm.` +\"`#@(` P)`'M*` U%`':)` ]*`'C'`\"o%` O)`1(,` Q*);`&q!`#;!`(!!`%;4helper.clone(`!1&`%V+`$3%`%F<` X3`%e/`%%&` <<` G(`!;!` 2%`&\"! &&`\"o#.sm.typ`$=/`0S#`!\"#cattr[` \\'`0_#`\"o1.fill`13&` .!h`\"z!color`!x*` 90` @#}`*w'`&v(`&K!`*r$;};`'>%highlight_labels`/Z$, type, `#L$`'T-!`-F'` U\"`,u%`%~)` 6\"`.4*` .\";}` \"\".forEach(`(r&` 4!`!!$` (!.sm` u'`&!`\"_\"` 6$.pill`#\\!`$4%`#Z$` <#top();`\"u(` 4!,` A$`$8\"ill) {`*J,`#E#` B$`0o(`!&%reset\" ||`#6!`!<\"u`'3!` 1ut` lCut\"`#s'` N!`$.$` <7`(O%` P(}}}});}`#`%`#{\"_inactive`%5$`$!~`$u*` M'`!C$`$N%`\"/!{cursor:\"default\"}`*/&` 30pointer` B!}`,?#inserting`.V%`!D%emphasiz`\"Q,`!M'`$n!!`*F(`\"a$`\"z,` e$able` ;(`!4'true;` K$` 3\"Before(all_visible_`!%!s);setTimeout`#4') {`!.}, 1`\"G#currently_ove`1t!` =!`(T!u` \"$last_`2_#d` 7)`0M#click` D#bel` %'` 0&over` #\"ut` @'` .%` (#` 6#back` \\'` %&_handler`$,&create_event` 6$s(`%Q$`\"/%`\"f)f (this`1X'`3q\".call` +,;}};`!U%` EBut` K;`\"'!` _)`-i$` \\-` F!` [0, `)f!;`$D!` ^*, manua`-S%e` Q!` C!&& !` 4%`-](`,(\" ` F!shape_type`+C!` /!`'R%location`,V*`2Z!` .!ratio < 0.05`.],`!d#e`3R#);top_` i$s.toFront();` ,$`1)#` /'var mag = 1 *`!i\"` r!_siz`&p\"stroke_width`!(!`2+!['` 2\"-` 3!']` F!anim_to = {` 1*:` X)* 4, ` 9$opacity':0`#u#`+O#'fill` 3',`!B#:`!Y'`3{!}`!\"callba`%8+) {` n\"remove();}`)$\"`$2%cale ?`#_#: 1` :!ty = (mag - 1) * 0.5`\"v$size * r * ` X!`*4&_t` n$posi`!<!== \"bottom-ce`-X! ?` Q\"_t(e,` \\& * mag, \"0,\" + ty) :` .7);`#d#.transform =`!>$`#?$`+]\"(` C#,`$p)peed * 1000, \"ease-`2M\"`#?$);};`*90xy_hook_check(`2s\"!`(e!id`()!` '!`'?%se`4'!`/+(`-x&|| no_tooltip`2;(var`2/$ = `.n!_or_`-Z\"`)s!`!3\"`/v'`-p$)`2x\"` 3#_` /$`/x$}popup_off`3,*` .%` s!`/>&pann`!d#` *'inch` %-zoom` .#`\",#_up && `!P'`\"\\(`0>+`#7!` Q#`+C+`1!$`0n-this`#|\"`39&` {$`*D\"_inactiv`3[&`#),` 9$` P'`4(.`%F!`%4!` Z*`!0$`#_%) {`!~#.show` D&`!)%top`%p#vml &&`#z(`%n%`-K&` 3*`. &`-['`#I+`!L$`\"8!gnore_hover) {update_`+\\!` ?#, \"over\");highlight`-^#` 0.`(W!`\")&}} else`0.#`%*&) {`!L~`!n\\`!|,`\"<>}}`-u#eset_appearanc`2}+` N$`+?%`%G&hide`\"f#is_adjacent`!;%`3U%`!x5` 2$`,r$` ?'attributes, fade_time, whenDone);}` A8`!D#`#&!` I9`\"j8`-z!true);`%M(`$9{ || `#('`%4F`*W,mage`#X(`%k'`#S*);`\"h$(`\"@&`#^Y`&@9ut\");}`&9%`!2&`!}\"helper.isF` ;#(`&Q%) {` $$(`'9\"out`'!)force`&)`#0!` ($`/F!ypeof` :% != \"` Y$\"` w' =`.~$`/N*`0+'`262`/D-` a\"`3*J`2iD`%j(`/f:out`/\\0`/U/`)qB`\"a-`2--`,8R`)*(` -2`!J$` ?%`)#~`.Cv`!T(`(4>`#t!`'S&`(!)`1f2 || `(1! ===`!#\" {`/b,`/S/;last_`*W#d =`\"b$`)2!`)(%`&s\"in`&q$` +!, ` (\"`%b#` /!`#U)` -!`#Z!` C\"` 0)` -\"\"` V#` 7&id =`(##.sm.` z%`&M#true;}}`&T*var `$ #doubles`)F%`'p!`2<*`'A4 || ` +&pann` #.inch`'x(`$E\"touch) {`!3-`!i!setTimeout(`!<&` :0`\"'#, 500`%>#!` 7*) {check_for_up_popups()`*F`*:pre`#,!`+5), e` V\"api_object`'m$` H!`-I(`+_$`%&.sm.` .$`!<\"`#y#`'1'&& e`%P&`#I!end`)$-` 4:star`./)` P!`-%/`)[#po`#4!`#>!_off`!e*` .%`#&,zoomable &&` +)`'I, || `(w!destin`+f! !` {%`/:+` U%`*\\!) {` $`!x\"`#~.`/6+`\"p'`1=(`!<!` ]!ed) {out.call` +)`,1\",`(7'`!8#_to`0[&}`..&` *.` c(`+7(` K\"`10,`!{3var lin`%l+url`\"$\"in`4^\"`+K!!no_urls) {var js_url =` [!.substring(0, 10)`#S!javascript\" ?`\"M! :`4F(new_tab ||` g#`&#` $%window.`0N$.href`!+#`\"q%` =#top` 13`&s$` B*open`\"<!, \"_blank\"`$p-`'L%`/t(`#k)`&1'&&`&U\"` 3$&& !`/3,`#r%`%V*&& !`22)`'G-&& `*^'`%H!level`/I)`1)0` |);}`+N7e`$q#coords = get_` (!inates(`'v'pos(e, {l:` H\".x, u` $$y});}` B$show`'+&`(E)`/#!`3{8ver\");puls`3<%`!e\"vml`,(!`\"~/`%;$`#.!` 6'shape_` >%image\") {`$n(`#v(`.E#hover) {` 2$attr`+u(over_attributes);}`)@4`#V!lose_`!7! = docu` c!getE` @\"ById(\"xpic_sm\" + \"_\" + div`\"S\"` V'`*/!` %%.on`3c.`.T'`,(F.sm`,=4)`0~)` Y\"trigger`&-\"\"`!L\"`/B!\", []);};}}};back` O&`!X%callba`,;!`1X!ypeof ` .$ === \"undefine`1U!` 1&`4P$`!2*back`!2#if (`!x\"`0!'`/e-`0=0`))4initial_`)9!solo`)t!` .$`\"!#`,;3`-@':\" +` I)`/'(incr`%E!a`']!`!>9`+X!`!U!` 30`!s\"`#S#`0r]` h\"_array[` u6]`1_1` 5D,`$o\",`%9%);`.Q%var inside = is_` &\"`$p-, `! )`$G(]`2H\"` :\" =`#>:manual`%0#`!1!?` _7 :` /*-1]`(g-`00,`!&%!`/7'`#aV`#^7`#B1`)H(_handler`+-,` 8&(`*$!` 4%`0(.`&A\"e.touches`0d#` )!_obj = e.changedT` =\" ?` \"-[0] : ` \\%[0]`3{# {x:` c%.clientX, y` $-Y}`\"[%var y = ie`!$\"` :\" +`.M&`.X$`.U#.scrollTop`!@!pageY`%m!x` V,X` D>Left` ^%X`!|'x, y:y};}}var background`-K/) {check_for_up`.1\"s`$&!` <%setup_panning() {`$7)new_viewbox`$?!`1?!`4@! =`$R/`\"I!newX =` @#.x` ,$Y` *&y;dX = (startX -` N!) * ` ,!.r;dY` 6%Y` 9\"Y` 3(var pan_threshold = 5` 5'if (Math.abs(dX) >` @+|| ` 6&Y` /-) {currently`\"s$ =`(^!;}`$ &`!)\"x + d`&'!` *\"y + dY, w` )#w, h` $#h, r` $#r};`$[!mousedown`1H%var`\"#\"`\"B!`\"}\"` +&Y`$O'tart_pan`(U%`43&) {`!a#`2?#e.preventDefault`&h!` %*() : (e.` S\"Value`!M$);`!(! = {x:`\"t#`%P$.`&l!` %,y, w` $-`\"f!` %,`\"p!` 9- / original_width / scale};`#'(`$.!`&U<`&@#`&h'`&3#`&f'`#4#.hide()` &%pos(e, {l`$Q\"X, u` $\"Y})`,d'during`#)!`!^%`$#%;}`,v) &&`,A&.length > 1` E'var v`\".#`)=*;paper.setViewBox(v.x, v.y, v.w, v.h`!V(finish`!K3 || !`'a-`'o3`&+\"`'&.`!,d`%<+ = v;`3Z, = {sm:{}}` *-.sm.zooming_dimensions = ` i+` D1`4X\"`4T%`\"3/setTimeout(`.:*`\"q5}, 1)`3&\"arrow.show();}helper.addEvent(mapdiv, \"`!-%\",`*;&);` 2:move\",`&_'` 1<up\",`%L'` /<lea` |!` -A`'P!`!v!`!\\C` L!`!WH`(Q\"nd`!C+`'g&`21#inch`22#var `%/\"istanc`,u%`.)&get` M\"` ;%`2M%xy0`-9\"`)j%[0]`47\", y` $.Y}`,3!xy1` G,1` B1` /#Y}`(b# `\"T#`!@%xy0, xy1`\"9(move`!k\"`*-%`&_&`'#`+LO`'B'`#9#`.?(`#4'`\"{1`3z!`#\\)`#<#diff =` V&-`$!*` x!magnitude =`48'iff` q\"` 5&> 10`\"L#` s!> 0) {zoom_in_click();} else` 1#out` /&`%:,`!=%}` L$` '7`.&.`#{%`&,2`*t?`#`&`+.&00`*l8`(y)`%A&`(`C` 'F`(y*` L\"`\"X&order() {all_states.toBa`#b!bottom_loc`.?!` .(ackground` *&if (all_external_lines` t#` '*.toFront();}all_label` *(top`!*)` 0$` ,$` @.`+/)_events(refresh`3+$re` \")io`!V$`\"R#hover(over, out);` 1'`&U\"`&\\!`\"R)` 2\"` '&`&~\"`0F)` 9&` 7\"_handler` [)`!6\"reset_tooltip, ` \")`(&&`!L'`0&#`!F/` 2$`!>9` 9(`!B7` ?$`!@,if (responsive) {set_` '&` d$(` D#`43\"`,v!`&B,`($$`\"!$` -,end`\"8(`!x#` 2%`!v&);`0U#`4c\"(` '%`0c%;}`&N\"`&6%`%\"1` 5&`%-)`'#'` Q\"` (!_` W\"` %#` Z%` B\"` Z\"` 6\"` _#`\"W2`'e(`\"E*` +/`\"}-`()%` T#`!$)}}`/>!etec`$<!iz`3-'`$=4 {` :%` M\"(`1I!size_pap`$r\"var` 7#Timer;` w) = `-c*lear`.#$` K');` \"' = `.F'` 3\", 3`.)!`#5!window`-'%Listener) {` #3(\"` `\"\",`\"U*,`/'\");` ?5orient`#s!chang` I6`)T$` c$ttach`.j\"` vD` G(` nGif (vml) {document.body.on`#o2`$d$;};`2`'`$j*`-\\\"`0c\".offsetWidth < 1` ^!turn;}create_dimensions(true);` a!.setSize(width, height);var scaled_b`1:!_`!_#` \"(* ` Q\" / original_` ,!) * normalizing_factor * 1.25`1;%`+5\" && `(N)`+h*forEach(`\"t&` 4!) {` #!.attr({'stroke-`!9!':`!h.});` J\"sm` N!ibutes[` J*] =`\"B/` O&over_` @:` C$` Y#`+z!`\"PY}`+I,`\"_.` 4$`%J#lattr[` -$.sm.id].type != \"image\") {` 6(`!x9` [2`\"<\"`!_T` b(`#5>`!,2`#W\"` ac`%s1`\"]B});}`$?$in`&1line) {var adj` B!`(i$lin`%m!`%)X` _!`!m1`!!)})`&'$externa` o~`!-``,Z$trial_text(`,;\"min = `!8$2 > 250 ?` '': 250;max`!O\" = popup_max` +\"? ` \"+: min;`.G(veal_map(refresh`\"p#region_out = fly_in ?` .$array[-2] :` %*initial_zoom]`\" !` 9\" =` ,8if (!` +$back) {back_arrow.hid`0F!` B!`!\\&if (` \\(`.-\"`!x#destin`'Y! = ` 5.`3$$` T-manual` D>` B\"`3j%` <.`#7&;}var `!6\"lowly =`!f0 ||` o0) &&`#w&`3l! : true;` A!to(`!.',` |(`#-#` }*olo &&` }) != -1`#n#ground.show()`#sDfor (var i = 0; i <`\"Z#`(f!`2F\"length; i++`#Y#id`# %` >&[i`%t\"`\"o\"`1.#`%p$d`%g#`1A%hid`3$&`!n#}`!D(in label` \\\"`!2#` -!`.U!` 1%`!/$` -\"set` 6%set` 9&`1=\"bel.sm.parent`1P%` )).sm`1P\"== \"`!Z!\"` /6`(?#!`\"b(id || !` 55) {` 3%hide =`%P\"`!l%`$5%}}}`-1A`1&\"`!_#Raphael.isPointInsideBBox(`!Y&bbox, ` Q\"` ($.x,` \",y)) {` ,$`$;$`&5#`*)#`'[&) {`'P$`*y6);}return;}`'\".all_visible`(t\"s` &0`#\"!` -)`\"q+`'v(`!U- && !`)ZG`!nD`.n(`!.!`.v!call`)6#get_` 4#able_info();`&!`4Z%();`0n#`\"Z\"(true` +%`!;\"` &+loc`+<!` ',`#!!();style`*]!`#g\"();hide_and_show_before(last_`,$)` j\"`%9!`!b#event`!!$resize_pap` ;!`1F'` :\"` x*after` t-);upd`+!!pi();trigger_hook(\"`#A$complete\", []`$r\"helper.isF`#o#`#`&) {` $$`'*!var tooltip;`$;%load`$1,mapdata = api_object.` .#;mapinfo` ,-info`!M!map_inn`)A!delete window.`\"|!;}expand`\"B#preload();get_client`%J$get_` h\"` *!`0$!s_forgery()) {alert(\"The continent map can't be used with other data.\");`)4$`&V3`%u#d`(0!ructure` ,'imens`&F!` +%canva` %'trial_text`):$popup_nocss) {set_tt_css();}`$1# = ` W$` +\"` f&nav_butt`!/\"`(<-`'J/`(R*`(K-`(7&in` ]\"etTimeout`.&') {`(n-`(i.re`!L!ll` w#`!N*`(Q$` O#`(W!_handler`\"%$`(j#`(Q));`\"_#.` T\"(`((9`'`Yxy` a!_che` +\", 1);`(N!getting_xy = false`3`!get_xy_fr`-]!p = `#+&log`1<#!` S'|| ` 3\"` e)`2L!} else {`&n$everything.mousedown`$*'e, a, b) {var l = ie ? `#?!.`(^\"X + document.d` \"#Ele` +!scrollLeft : e.pageX`\"0!u` W0Y` I>Top` a%Y` e!find_pos = `##findPos`*u'` D!x0 =` E%[0]` 0!y` ()1` /\"go = `-h,.sm.zooming`)L'` K!this_width = go.r * ` )\"/ scal`$b\"` A!height` =&` )#` <(x` 8\"x` -$ +` u(* (l - x0) /` \"`\"\"\"` O\"y` E,` y#* (u - y` Q!` .\";x = Math.`*!\"x * 10000` ?!` $\";y` 6*y` 00var print_string = \"You clicked on\\nx: \" + x + \",\" + \"\\ny` .\"y` .\"`(b!`'0\"console.log(` m();}`):+lick_xy\", [{x:x, y:y}]);});}`!S!lo`(g$`+\\(`(c+`36#` L\"`)S)` I,`*F!ooks`1G$`!:$ || plugin` Y!s` 0%.length > 0`!&/`*@!);}`!5\"ov`\"3#`!*)e`'z\"`)<#type = ` .#.sm.type`#8!` 5\"= \"`.c!\") {`# *` z!` 6\", [` W'id]);}` V)`.[$` O3` 6%` H=`/ \"` P3` 6#` Q0`\"k#ut`!uxut`\"-_ut`\"+`ut`\"L>`&.\"`\"X4, e`\"1^` }\"`\"_2, e`!gE` b\"`!{3` U0`#G6` e\"`#J5` f#`\"|\"pre`\"#~\"` }%`\"F^` b%`\"Fa` e%`\"hBzoomable_`\"2~\"` }+`\"X^` b+`#\":};`\"-%` C\"_zoom(id, callback`\"<#` 9\" =` @$array[id];zoom_to(` 3\", `/7!` U';}` {%`\"9!` j5` 9! =` ?#` o.` 3!` c9`$w$` y&zp` z)if (!manual` ?!`3F+\"L` Z#`%>! only works when the map is in ` \\' mode.\");return`$@&of zp === \"undefined\") {zp = 4` ;)`!^$` ;/` 1&`\"W\";}var destin`!i\"= {sm:{type:\"`!S\"\", zp:zp`'M#`\"s$ =`\"|&`#Y&var w` 0'.sm.size * scale * zp` A!h = w * original_height /` (&width` H!x` d+x -` X!0.5` ;!y` 1+y - h` 5'r`!(!/ (` n*`!N$);`\"Y'.sm.zooming_dimensions = {x:x, y:y, w:w, h:h, r:r}`&0%` ['`&\"9reset_tooltip(`&(#currently_over) {out.call` *,`%(\"!` X#_`$@\") {`%l$ else {` 2*`%)&if (on`*0\"` K'` H#.hide();setTimeout(`,F&) {}, 100`\"!(popup`&X!, id`\"&#`,<.var`,p$`)H/`!n#`,\"3` N*`+(-`\"J$` 9*`&k/`#3\"` <#`)d+`!2!+ \" \" + id` &!does not exist`)N%`(Q(`#B$`/(*` .$`&X!bo`':!ast_`&&=`/a&!`1:+` e!b` y*bbox`(7%(bb.x + bb.x2)`(.+(bb.y` 7\"y` 4%x = x`'|$;y = y` %%`#H(x`!(*`!-\"y` '*y`\"i\"`'$#_`!L!x - box.x) / ratio` U!` <$`!S!y` =#y` :&`(\"'_x > `)c$1.1 ||` T'> `+-#` 7!`.S,Not in this`%l#`$P-`(2-tru`3h\"`(6'` #!`)C\"`%r$`\"u%over` +,`(a$`*?\"pos`\"#&,`!s&,`#5$);ignore_pos`!:$`)d3`!v#` >!`)6&`0X#pulse(`)<!`(\"\"`'m2`'{#`*N'` S\"el,` t!`*)-_`*k\"`+G%`*y$`!\\$up`!W%`#*+`,W%`'v!` 1!ed`#2&`,eK}`-s(fresh_`+@!`49!`4/'set` 0%)`&K!` )!`+a/`2)!abels` 5$.sm.` ,\";make` ]'for (var i = 0; i <` U#.length; i++`#u#` 4!_id`*Q!bels[i].sm.id;set_` /!(` =$)`!%\"` %,`,F!helper.isF`\"T#(`\"@%`4c'();}`)8!no`0l$s`$+%`#,%disable_`$p!s() {` A*`&M(`$|$` T>en` X9`-^'no_ur`#f!`!B3url` Z$` B#`'c\"` @9`!9#` J.`!3#` @%go_`#'!`%_'back`&q\"` ,&` G'expand_api() {api_objec`&{!ibr`&.\"create_bbox`%h\";` >'get_xy`)C!g_xy` /(proj = get` **loa`%r!oad_map` /(`2P#zoom`2[&zoom` 9(`'^\"` =#` #&` 7(zoom_in`\"{%` +,out` (0`+C%` v#` #)` =(ba`2i!`#j#`\"H)op`+)!` #!` ,)ulse =`,^)` H-`,$!` V$` (!`!j-lev`-3!\"out\"` 2(`.<#`%(!`%T&` J1`)r\"` 0-`&z( =`'()` ;(`&e' =`&r(` X0`(P\"` c'` +\"` ]/` A%` #)`%P*`-O!`%U!`-X\"`%n-`-j'` <'`'%-loaded`)7$` .'tri`1H!demo`(='upd`&?$`#<\"`(@+`$-)`0&!destin`%y!.sm.typ`#o9` @0id ?` X1id :`*L-`!\\#`)y.`\"X!`/v%`06\"`)\".s`)&&` 1-`'$s`3^-` 9)`0$`/[\"` /-`-l# = ` ##;}`+s(;`*h$();}window[plugin_name] = (`\"D%() {return ` x&;})();dependencies.docReady` L*trigger_hook(\"ready\");if (`!%/`%e#`!(%;}`2t0auto`!|!`\"R!`2}/` m\" =` ;+[i`4>\"`!@!_to_`-V#` H#&&` ##.mapdata &` \",.main_settings.au` ]$!= \"no\" ?`'`!`%i%if (`!!)) {`\"t'` w\") {setTimeout`#/*`!7#load();}, 1);})` P$;}}});`\"_+push(`$>&` K!\"simplemaps_countrymap\");")) |
// Gatsby
import { graphql, useStaticQuery } from "gatsby"
const useHome = () => {
const reqGql = useStaticQuery(graphql`
query {
allStrapiPages(filter: { name: { eq: "home" } }) {
edges {
node {
id
name
content
image {
sharp: childImageSharp {
fluid(maxWidth: 1200) {
...GatsbyImageSharpFluid_withWebp
}
}
}
}
}
}
}
`)
return reqGql.allStrapiPages.edges[0].node
}
export default useHome
|
const express = require("express");
const cors = require("cors");
const { uuid } = require("uuidv4");
const app = express();
app.use(express.json());
app.use(cors());
const repositories = [];
app.get("/repositories", (request, response) => {
return response.json(repositories)
});
app.post("/repositories", (request, response) => {
const {title, url, techs} = request.body;
const project = {
id: uuid(),
title,
url,
techs,
likes: 0
}
repositories.push(project)
return response.json(project)
});
app.put("/repositories/:id", (request, response) => {
const {id} = request.params;
const {title, techs, url} = request.body;
try {
const repositorieIndex = repositories.findIndex(e => e.id === id)
repositorieIndex === -1 ? (function(){throw "error"}()) : null
const repositorie = {
id,
title,
url,
techs,
likes: repositories[repositorieIndex].likes
}
repositories[repositorieIndex] = repositorie
return response.json(repositories[repositorieIndex])
} catch (error) {
return response.status(400).json({error: "Repositorie not found", msg: error})
}
});
app.delete("/repositories/:id", (req, res) => {
const {id} = req.params;
try {
const repositorieIndex = repositories.findIndex(e => e.id === id)
repositorieIndex === -1 ? (function(){throw "error"}()) : null
repositories.splice(repositorieIndex, 1)
return res.status(204).send()
} catch (error) {
return res.status(400).json({error: "Repositorie not found", msg: error})
}
});
app.post("/repositories/:id/like", (request, response) => {
const {id} = request.params;
try {
const repositorieIndex = repositories.findIndex(e => e.id === id)
repositorieIndex === -1 ? (function(){throw "error"}()) : null
repositories[repositorieIndex].likes += 1
return response.json(repositories[repositorieIndex])
} catch (error) {
return response.status(400).json({error: "Repositorie not found", msg: error})
}
});
module.exports = app;
|
from pybuilder.core import Author, use_plugin, init
use_plugin("python.core")
use_plugin("python.install_dependencies")
use_plugin("pypi:pybuilder_nose")
# use_plugin("python.unittest")
# use_plugin("python.integrationtest")
use_plugin("python.frosted")
use_plugin("python.flake8")
use_plugin("python.pychecker")
use_plugin("python.pytddmon")
use_plugin("python.distutils")
use_plugin("python.sphinx")
name = 'The Reliability ToolKit (RTK)'
version = '2016.1'
authors = [Author('Andrew "weibullguy" Rowland',
'[email protected]')]
url = 'http://www.reliaqual.com/rtk'
description = 'RTK is a suite of tools for performing and documenting RAMS \
analyses.'
license = 'Proprietary'
summary = 'RAMS analysis tool'
default_task = ['clean', 'analyze', 'sphinx_generate_documentation', 'publish']
@init
def set_properties(project):
project.set_property("dir_source_main_python", "rtk")
project.set_property("dir_source_main_scripts", "scripts")
project.set_property("flake8_max_line_length", 80)
project.set_property("flake8_verbose_output", True)
project.set_property("flake8_ignore", "E126, E127")
project.set_property("dir_source_unittest_python", "tests/unit")
project.set_property("unittest_module_glob", "Test*.py")
project.set_property("dir_source_integrationtest_python",
"tests/integration")
project.set_property("integrationtest_file_glob", "Test*.py")
# project.set_property("coverage_threshold_warn", 95)
# project.set_property("coverage_branch_threshold_warn", 85)
# project.set_property("coverage_branch_partial_threshold_warn", 90)
project.set_property("nose_cover-branches", True)
project.set_property("nose_cover-xml", False)
project.set_property("nose_cover-min-percentage", 45)
project.set_property("nose_attr", "unit=True")
project.set_property("nose_with-html", True)
project.set_property("nose_html-file", "tests/_test_results/nosetests.html")
project.set_property("sphinx_config_path", "docs/")
project.set_property("sphinx_source_dir", "docs/source/")
project.set_property("sphinx_output_dir", "docs/build/")
|
#!/usr/bin/env python
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from cairis.core.ARM import ARMException
from sqlalchemy.exc import SQLAlchemyError
import os
import sys
import MySQLdb
import _mysql_exceptions
from cairis.core.MySQLDatabaseProxy import createDatabaseAccount, createDatabaseAndPrivileges, createDatabaseSchema
__author__ = 'Shamal Faily'
def quick_setup(dbHost,dbPort,dbRootPassword,tmpDir,rootDir,imageDir,configFile,webPort,logLevel,staticDir,uploadDir,userName,passWd):
if (len(userName) > 255):
raise ARMException("Username cannot be longer than 255 characters")
if (userName == "root"):
raise ARMException("Username cannot be root")
createUserDatabase(dbHost,dbPort,dbRootPassword,rootDir)
os.environ["CAIRIS_CFG"] = configFile
pathName = os.path.split(os.path.split(os.path.realpath(os.path.dirname(__file__)))[0])[0]
sys.path.insert(0, pathName)
fileName = os.environ.get("HOME") + "/.bashrc"
f = open(fileName,'a')
f.write("export CAIRIS_CFG="+ configFile +"\n")
f.write("export PYTHONPATH=${PYTHONPATH}:" + pathName +"\n")
f.close()
createCairisCnf(configFile,dbRootPassword,dbHost,dbPort,tmpDir,rootDir,imageDir,webPort,logLevel,staticDir,uploadDir)
from cairis.bin.add_cairis_user import user_datastore, db
db.create_all()
user_datastore.create_user(email=userName, password=passWd)
db.session.commit()
createDatabaseAccount(dbRootPassword,dbHost,dbPort,userName,'')
createDatabaseAndPrivileges(dbRootPassword,dbHost,dbPort,userName,'',userName + '_default')
createDatabaseSchema(rootDir,dbHost,dbPort,userName,'',userName + '_default')
def createUserDatabase(dbHost,dbPort,dbRootPassword,rootDir):
try:
rootConn = MySQLdb.connect(host=dbHost,port=int(dbPort),user='root',passwd=dbRootPassword)
rootCursor = rootConn.cursor()
except _mysql_exceptions.DatabaseError as e:
id,msg = e
exceptionText = 'Error connecting to MySQL (id:' + str(id) + ',message:' + msg + ')'
raise ARMException(exceptionText)
try:
dropUserDbSql = "drop database if exists cairis_user"
rootCursor.execute(dropUserDbSql)
except _mysql_exceptions.DatabaseError, e:
id,msg = e
exceptionText = 'MySQL error removing existing cairis_user database (id: ' + str(id) + ', message: ' + msg
raise ARMException(exceptionText)
createDatabaseAccount(dbRootPassword,dbHost,dbPort,'cairis_test','cairis_test')
createDatabaseAndPrivileges(dbRootPassword,dbHost,dbPort,'cairis_test','cairis_test','cairis_test_default')
createDatabaseSchema(rootDir,dbHost,dbPort,'cairis_test','cairis_test','cairis_test_default')
try:
createUserDbSql = "create database if not exists cairis_user"
rootCursor.execute(createUserDbSql)
except _mysql_exceptions.DatabaseError, e:
id,msg = e
exceptionText = 'MySQL error creating cairis_user database (id: ' + str(id) + ', message: ' + msg
raise ARMException(exceptionText)
try:
recursionDepthSql = "set global max_sp_recursion_depth = 255"
rootCursor.execute(recursionDepthSql)
except _mysql_exceptions.DatabaseError, e:
id,msg = e
exceptionText = 'MySQL error setting recursion depth (id: ' + str(id) + ', message: ' + msg
raise ARMException(exceptionText)
try:
flushPrivilegesSql = "flush privileges"
rootCursor.execute(flushPrivilegesSql)
except _mysql_exceptions.DatabaseError, e:
id,msg = e
exceptionText = 'MySQL error flushing privileges (id: ' + str(id) + ', message: ' + msg
raise ARMException(exceptionText)
rootCursor.close()
rootConn.close()
def createCairisCnf(configFile,dbRootPassword,dbHost,dbPort,tmpDir,rootDir,imageDir,webPort,logLevel,staticDir,uploadDir):
f = open(configFile,'w')
f.write("rpasswd = " + dbRootPassword + "\n")
f.write("dbhost = " + dbHost + "\n")
f.write("dbport = " + str(dbPort) + "\n")
f.write("tmp_dir = " + tmpDir + "\n")
f.write("root = " + rootDir + "\n")
f.write("default_image_dir = " + imageDir + "\n")
f.write("web_port = " + str(webPort) + "\n")
f.write("log_level = " + logLevel + "\n")
f.write("web_static_dir = " + staticDir + "\n")
f.write("upload_dir = " + uploadDir + "\n")
f.write("\n")
f.write("secret_key = " + os.urandom(16).encode('hex') + "\n")
f.write("password_hash = sha512_crypt\n")
f.write("password_salt = " + os.urandom(16).encode('hex') + "\n")
f.close()
|
var searchData=
[
['completed',['COMPLETED',['../classMaison.html#af939aa6abb28e19cace161a1398e4995a3f282b1367f5511485585865d1adaa21',1,'Maison']]]
];
|
from lxml import objectify
from kloppy.domain import (
Period,
PitchDimensions,
Dimension,
Team,
Score,
Ground,
DatasetFlag,
AttackingDirection,
Orientation,
Position,
Point,
Provider,
)
from kloppy.infra.utils import Readable
from .models import *
def noop(x):
return x
def _load_provider_parameters(parent_elm, value_mapper=None) -> Dict:
if parent_elm is None:
return {}
if not value_mapper:
value_mapper = noop
return {
str(param.find("Name")): value_mapper(param.find("Value"))
for param in parent_elm.iterchildren(tag="ProviderParameter")
if param.find("Value") != ""
}
def _load_periods(global_config_elm, frame_rate: int) -> List[Period]:
provider_params = _load_provider_parameters(
global_config_elm.find("ProviderGlobalParameters"), value_mapper=int
)
period_names = [
"first_half",
"second_half",
"first_extra_half",
"second_extra_half",
]
periods = []
for idx, period_name in enumerate(period_names):
start_key = f"{period_name}_start"
end_key = f"{period_name}_end"
if start_key in provider_params:
periods.append(
Period(
id=idx + 1,
start_timestamp=float(provider_params[start_key])
/ frame_rate,
end_timestamp=float(provider_params[end_key]) / frame_rate,
)
)
else:
# done
break
return periods
def _load_players(players_elm, team: Team) -> List[Player]:
return [
Player(
team=team,
jersey_no=int(player_elm.find("ShirtNumber")),
player_id=player_elm.attrib["id"],
name=str(player_elm.find("Name")),
position=_load_position_data(
player_elm.find("ProviderPlayerParameters")
),
attributes=_load_provider_parameters(
player_elm.find("ProviderPlayerParameters")
),
)
for player_elm in players_elm.iterchildren(tag="Player")
if player_elm.attrib["teamId"] == team.team_id
]
def _load_position_data(parent_elm) -> Position:
# TODO: _load_provider_parameters is called twice to set position data
# and then again to set the attributes. Also, data in position should not
# be duplicated in attributes either.
player_provider_parameters = _load_provider_parameters(parent_elm)
if "position_index" not in player_provider_parameters:
return None
return Position(
position_id=player_provider_parameters["position_index"],
name=player_provider_parameters["position_type"],
coordinates=Point(
player_provider_parameters["position_x"],
player_provider_parameters["position_y"],
),
)
def _load_data_format_specifications(
data_format_specifications_elm,
) -> List[DataFormatSpecification]:
return [
DataFormatSpecification.from_xml_element(data_format_specification_elm)
for data_format_specification_elm in data_format_specifications_elm.iterchildren(
tag="DataFormatSpecification"
)
]
def _load_sensors(sensors_elm) -> List[Sensor]:
return [
Sensor.from_xml_element(sensor_elm)
for sensor_elm in sensors_elm.iterchildren(tag="Sensor")
]
def _load_pitch_dimensions(
metadata_elm, sensors: List[Sensor]
) -> Union[None, PitchDimensions]:
normalized = False
for sensor in sensors:
if sensor.sensor_id == "position":
if sensor.channels[0].unit == "normalized":
normalized = True
break
field_size_path = objectify.ObjectPath("Metadata.Sessions.Session[0]")
field_size_elm = field_size_path.find(metadata_elm).find("FieldSize")
if field_size_elm is not None and normalized:
return PitchDimensions(
x_dim=Dimension(0, 1),
y_dim=Dimension(0, 1),
x_per_meter=1 / int(field_size_elm.find("Width")),
y_per_meter=1 / int(field_size_elm.find("Height")),
)
else:
return None
def load_metadata(
metadata_file: Readable, provider: Provider = None
) -> EPTSMetadata:
root = objectify.fromstring(metadata_file.read())
metadata = root.find("Metadata")
score_path = objectify.ObjectPath(
"Metadata.Sessions.Session[0].MatchParameters.Score"
)
score_elm = score_path.find(metadata)
score = Score(
home=score_elm.LocalTeamScore, away=score_elm.VisitingTeamScore
)
_team_map = {
Ground.HOME: score_elm.attrib["idLocalTeam"],
Ground.AWAY: score_elm.attrib["idVisitingTeam"],
}
_team_name_map = {
team_elm.attrib["id"]: str(team_elm.find("Name"))
for team_elm in metadata.find("Teams").iterchildren(tag="Team")
}
teams_metadata = {}
for ground, team_id in _team_map.items():
team = Team(
team_id=team_id, name=_team_name_map[team_id], ground=ground
)
team.players = _load_players(metadata.find("Players"), team)
teams_metadata.update({ground: team})
data_format_specifications = _load_data_format_specifications(
root.find("DataFormatSpecifications")
)
device_path = objectify.ObjectPath("Metadata.Devices.Device[0].Sensors")
sensors = _load_sensors(device_path.find(metadata))
_channel_map = {
channel.channel_id: channel
for sensor in sensors
for channel in sensor.channels
}
_all_players = [
player
for key, value in teams_metadata.items()
for player in value.players
]
_player_map = {player.player_id: player for player in _all_players}
player_channels = [
PlayerChannel(
player_channel_id=player_channel_elm.attrib["id"],
player=_player_map[player_channel_elm.attrib["playerId"]],
channel=_channel_map[player_channel_elm.attrib["channelId"]],
)
for player_channel_elm in metadata.find("PlayerChannels").iterchildren(
tag="PlayerChannel"
)
]
frame_rate = int(metadata.find("GlobalConfig").find("FrameRate"))
pitch_dimensions = _load_pitch_dimensions(metadata, sensors)
periods = _load_periods(metadata.find("GlobalConfig"), frame_rate)
if periods:
start_attacking_direction = periods[0].attacking_direction
else:
start_attacking_direction = None
orientation = (
(
Orientation.FIXED_HOME_AWAY
if start_attacking_direction == AttackingDirection.HOME_AWAY
else Orientation.FIXED_AWAY_HOME
)
if start_attacking_direction != AttackingDirection.NOT_SET
else None
)
metadata.orientation = orientation
return EPTSMetadata(
teams=list(teams_metadata.values()),
periods=periods,
pitch_dimensions=pitch_dimensions,
data_format_specifications=data_format_specifications,
player_channels=player_channels,
frame_rate=frame_rate,
sensors=sensors,
score=score,
orientation=None,
provider=provider,
flags=~(DatasetFlag.BALL_STATE | DatasetFlag.BALL_OWNING_TEAM),
)
|
var toggleNav = false;
window.onresize = () => {
if (toggleNav !== false) {
if (window.innerWidth <= 370) {
sideNav.style.width = '100%';
} else {
sideNav.style.width = '370px';
}
}
}
function toggleNavbar() {
let sideNav = document.getElementById('sideNav');
let darkOverlay = document.getElementById('darkOverlay');
if (toggleNav === false) {
sideNav.style.visibility = 'visible';
if (window.innerWidth <= 370) {
sideNav.style.width = '100%';
} else {
sideNav.style.width = '370px';
}
darkOverlay.style.visibility = 'visible';
darkOverlay.style.opacity = 1;
document.body.style.overflow = 'hidden';
toggleNav = !toggleNav;
} else {
sideNav.style.visibility = 'hidden';
sideNav.style.width = '0';
darkOverlay.style.visibility = 'hidden';
darkOverlay.style.opacity = 0;
document.body.style.overflow = 'auto';
toggleNav = !toggleNav;
}
}
function toggleCategory(e) {
if (!e) e = window.event;
let sender = e.target;
let open = document.getElementById(sender.getAttribute('data-target'));
if (open.style.height === '78px') {
open.style.height = '0';
sender.classList.remove('side-nav-btn-selected');
} else {
let buttons = document.getElementsByClassName('side-nav-btn');
let closed = document.getElementsByClassName('category-news-container');
for (let i = 0; i < closed.length; i++) {
closed.item(i).style.height = '0';
}
for (let i = 0; i < buttons.length; i++) {
buttons.item(i).classList.remove('side-nav-btn-selected');
}
sender.classList.add('side-nav-btn-selected');
open.style.height = '78px';
}
}
|
/*
Evolutility UI model for Collection
https://github.com/evoluteur/evolutility-ui-react
*/
module.exports = {
"id": "collection",
"title": "Collection",
"world": "designer",
"name": "collection",
"namePlural": "collections",
"icon": "/designer/collection.png",
"position": 40,
"defaultViewMany": "list",
"defaultViewOne": "browse",
"titleField": "label",
"fields": [
{
"id": "label",
"type": "text",
"label": "Label",
"maxLength": 200,
"inMany": true,
"width": 62
},
{
"id": "cid",
"type": "text",
"label": "Collection Id",
"required": true,
"maxLength": 50,
"inMany": true,
"width": 20
},
{
"id": "position",
"type": "integer",
"label": "Position",
"inMany": true,
"width": 18
},
{
"id": "table",
"type": "text",
"label": "DB Table name",
"required": true,
"maxLength": 63,
"inMany": true,
"width": 32
},
{
"id": "column",
"type": "text",
"label": "DB Column",
"required": true,
"maxLength": 63,
"inMany": true,
"width": 30,
"help": "Column to filter by."
},
{
"id": "object",
"type": "lov",
"label": "Object",
"object": "object",
"required": true,
"noCharts": true,
"inMany": true,
"width": 38
},
{
"id": "fields",
"type": "json",
"label": "Fields",
"required": true,
"width": 100,
"height": 4
},
{
"id": "description",
"type": "textmultiline",
"label": "Description",
"maxLength": 250,
"width": 100,
"height": 3
}
],
"collections": []
} |
import Vue from 'vue'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/en' // lang i18n
import moment from 'vue-moment'
import '@/styles/index.scss' // global css
import App from './App'
import store from './store'
import router from './router'
import '@/icons' // icon
import '@/permission' // permission control
/**
* If you don't want to use mock-server
* you want to use MockJs for mock api
* you can execute: mockXHR()
*
* Currently MockJs will be used in the production environment,
* please remove it before going online ! ! !
*/
if (process.env.NODE_ENV === 'production') {
const { mockXHR } = require('../mock')
mockXHR()
}
// set ElementUI lang to EN
Vue.use(ElementUI, { locale })
// 如果想要中文版 element-ui,按如下方式声明
// Vue.use(ElementUI)
Vue.use(moment)
Vue.config.productionTip = false
new Vue({
el: '#app',
router,
store,
render: h => h(App)
})
|
# encoding: utf-8
from ckan.common import config
import ckan.lib.base as base
import ckan.lib.helpers as h
import ckan.lib.app_globals as app_globals
import ckan.lib.navl.dictization_functions as dict_fns
import ckan.model as model
import ckan.logic as logic
import ckan.plugins as plugins
from home import CACHE_PARAMETERS
c = base.c
request = base.request
_ = base._
def get_sysadmins():
q = model.Session.query(model.User).filter(model.User.sysadmin == True,
model.User.state == 'active')
return q.all()
class AdminController(base.BaseController):
def __before__(self, action, **params):
super(AdminController, self).__before__(action, **params)
context = {'model': model,
'user': c.user, 'auth_user_obj': c.userobj}
try:
logic.check_access('sysadmin', context, {})
except logic.NotAuthorized:
base.abort(403, _('Need to be system administrator to administer'))
c.revision_change_state_allowed = True
def _get_config_form_items(self):
# Styles for use in the form.select() macro.
styles = [{'text': 'Default', 'value': '/base/css/main.css'},
{'text': 'Red', 'value': '/base/css/red.css'},
{'text': 'Green', 'value': '/base/css/green.css'},
{'text': 'Maroon', 'value': '/base/css/maroon.css'},
{'text': 'Fuchsia', 'value': '/base/css/fuchsia.css'}]
homepages = [{'value': '1', 'text': 'Introductory area, search, featured group and featured organization'},
{'value': '2', 'text': 'Search, stats, introductory area, featured organization and featured group'},
{'value': '3', 'text': 'Search, introductory area and stats'}]
items = [
{'name': 'ckan.site_title', 'control': 'input', 'label': _('Site Title'), 'placeholder': ''},
{'name': 'ckan.main_css', 'control': 'select', 'options': styles, 'label': _('Style'), 'placeholder': ''},
{'name': 'ckan.site_description', 'control': 'input', 'label': _('Site Tag Line'), 'placeholder': ''},
{'name': 'ckan.site_logo', 'control': 'image_upload', 'label': _('Site Tag Logo'), 'placeholder': '', 'upload_enabled':h.uploads_enabled(),
'field_url': 'ckan.site_logo', 'field_upload': 'logo_upload', 'field_clear': 'clear_logo_upload'},
{'name': 'ckan.site_about', 'control': 'markdown', 'label': _('About'), 'placeholder': _('About page text')},
{'name': 'ckan.site_intro_text', 'control': 'markdown', 'label': _('Intro Text'), 'placeholder': _('Text on home page')},
{'name': 'ckan.site_custom_css', 'control': 'textarea', 'label': _('Custom CSS'), 'placeholder': _('Customisable css inserted into the page header')},
{'name': 'ckan.homepage_style', 'control': 'select', 'options': homepages, 'label': _('Homepage'), 'placeholder': ''},
]
return items
def reset_config(self):
'''FIXME: This method is probably not doing what people would expect.
It will reset the configuration to values cached when CKAN started.
If these were coming from the database during startup, that's the
ones that will get applied on reset, not the ones in the ini file.
Only after restarting the server and having CKAN reset the values
from the ini file (as the db ones are not there anymore) will these
be used.
'''
if 'cancel' in request.params:
h.redirect_to(controller='admin', action='config')
if request.method == 'POST':
# remove sys info items
for item in self._get_config_form_items():
name = item['name']
model.delete_system_info(name)
# reset to values in config
app_globals.reset()
h.redirect_to(controller='admin', action='config')
return base.render('admin/confirm_reset.html')
def config(self):
items = self._get_config_form_items()
data = request.POST
if 'save' in data:
try:
# really?
data_dict = logic.clean_dict(
dict_fns.unflatten(
logic.tuplize_dict(
logic.parse_params(
request.POST, ignore_keys=CACHE_PARAMETERS))))
del data_dict['save']
data = logic.get_action('config_option_update')(
{'user': c.user}, data_dict)
except logic.ValidationError, e:
errors = e.error_dict
error_summary = e.error_summary
vars = {'data': data, 'errors': errors,
'error_summary': error_summary, 'form_items': items}
return base.render('admin/config.html', extra_vars=vars)
h.redirect_to(controller='admin', action='config')
schema = logic.schema.update_configuration_schema()
data = {}
for key in schema:
data[key] = config.get(key)
vars = {'data': data, 'errors': {}, 'form_items': items}
return base.render('admin/config.html',
extra_vars=vars)
def index(self):
#now pass the list of sysadmins
c.sysadmins = [a.name for a in get_sysadmins()]
return base.render('admin/index.html')
def trash(self):
c.deleted_revisions = model.Session.query(
model.Revision).filter_by(state=model.State.DELETED)
c.deleted_packages = model.Session.query(
model.Package).filter_by(state=model.State.DELETED)
if not request.params or (len(request.params) == 1 and '__no_cache__'
in request.params):
return base.render('admin/trash.html')
else:
# NB: we repeat retrieval of of revisions
# this is obviously inefficient (but probably not *that* bad)
# but has to be done to avoid (odd) sqlalchemy errors (when doing
# purge packages) of form: "this object already exists in the
# session"
msgs = []
if ('purge-packages' in request.params) or ('purge-revisions' in
request.params):
if 'purge-packages' in request.params:
revs_to_purge = []
for pkg in c.deleted_packages:
revisions = [x[0] for x in pkg.all_related_revisions]
# ensure no accidental purging of other(non-deleted)
# packages initially just avoided purging revisions
# where non-deleted packages were affected
# however this lead to confusing outcomes e.g.
# we succesfully deleted revision in which package
# was deleted (so package now active again) but no
# other revisions
problem = False
for r in revisions:
affected_pkgs = set(r.packages).\
difference(set(c.deleted_packages))
if affected_pkgs:
msg = _('Cannot purge package %s as '
'associated revision %s includes '
'non-deleted packages %s')
msg = msg % (pkg.id, r.id, [pkg.id for r
in affected_pkgs])
msgs.append(msg)
problem = True
break
if not problem:
revs_to_purge += [r.id for r in revisions]
model.Session.remove()
else:
revs_to_purge = [rev.id for rev in c.deleted_revisions]
revs_to_purge = list(set(revs_to_purge))
for id in revs_to_purge:
revision = model.Session.query(model.Revision).get(id)
try:
# TODO deleting the head revision corrupts the edit
# page Ensure that whatever 'head' pointer is used
# gets moved down to the next revision
model.repo.purge_revision(revision, leave_record=False)
except Exception, inst:
msg = _('Problem purging revision %s: %s') % (id, inst)
msgs.append(msg)
h.flash_success(_('Purge complete'))
else:
msgs.append(_('Action not implemented.'))
for msg in msgs:
h.flash_error(msg)
h.redirect_to(controller='admin', action='trash')
|
/* eslint linebreak-style: ["error", "unix"] */
import React, { Component, Fragment } from 'react';
import { Route, Link, Switch } from 'react-router-dom';
import Menu from './Menu';
import Map from './Map/index';
import Footer from './Footer';
import About from './About';
// import Home from './Home';
class App extends Component {
constructor(props) {
super(props);
// this.state = {
// response: ''
// };
}
componentDidMount() {
}
render() {
return (
<Fragment>
<Menu />
<Switch>
<Route exact path="/" component={Map} />
<Route exact path="/about" component={About} />
</Switch>
<Footer />
</Fragment>
);
}
}
export default App;
|
from libft.optimizers.optimizer import Optimizer
from libft.optimizers.rmsprop import RMSprop
from libft.optimizers.sgd import SGD
OPTIMIZERS = {
'rmsprop': RMSprop,
'sgd': SGD,
}
def get(identifier, **kwargs):
"""Optimizer instance getter.
Arguments:
identifier: string or Optimizer
An Optimizer instance or it's name.
kwargs: dict
Keywords arguments for instance initialisation.
Raises:
ValueError:
If identifier does not match with an existing Optimizer instance.
Returns:
An Optimizer instance.
"""
if identifier is None:
return None
if isinstance(identifier, Optimizer):
return identifier
identifier = identifier.lower()
if identifier not in OPTIMIZERS:
raise ValueError(f"Could not interpret Optimizer instance "
f"identifier: {identifier}")
optimizer = OPTIMIZERS[identifier](**kwargs)
return optimizer
__all__ = [
'get',
'RMSprop',
'SGD',
]
|
import * as api from '@/api/api'
import { isURL } from '@/utils/validate'
import onlineCommons from '@jeecg/antd-online-mini'
export function timeFix() {
const time = new Date()
const hour = time.getHours()
return hour < 9 ? '早上好' : (hour <= 11 ? '上午好' : (hour <= 13 ? '中午好' : (hour < 20 ? '下午好' : '晚上好')))
}
export function welcome() {
const arr = ['休息一会儿吧', '准备吃什么呢?', '要不要打一把 DOTA', '我猜你可能累了']
let index = Math.floor((Math.random()*arr.length))
return arr[index]
}
/**
* 触发 window.resize
*/
export function triggerWindowResizeEvent() {
let event = document.createEvent('HTMLEvents')
event.initEvent('resize', true, true)
event.eventType = 'message'
window.dispatchEvent(event)
}
/**
* 过滤对象中为空的属性
* @param obj
* @returns {*}
*/
export function filterObj(obj) {
if (!(typeof obj == 'object')) {
return;
}
for ( let key in obj) {
if (obj.hasOwnProperty(key)
&& (obj[key] == null || obj[key] == undefined || obj[key] === '')) {
delete obj[key];
}
}
return obj;
}
/**
* 时间格式化
* @param value
* @param fmt
* @returns {*}
*/
export function formatDate(value, fmt) {
let regPos = /^\d+(\.\d+)?$/;
if(regPos.test(value)){
//如果是数字
let getDate = new Date(value);
let o = {
'M+': getDate.getMonth() + 1,
'd+': getDate.getDate(),
'h+': getDate.getHours(),
'm+': getDate.getMinutes(),
's+': getDate.getSeconds(),
'q+': Math.floor((getDate.getMonth() + 3) / 3),
'S': getDate.getMilliseconds()
};
if (/(y+)/.test(fmt)) {
fmt = fmt.replace(RegExp.$1, (getDate.getFullYear() + '').substr(4 - RegExp.$1.length))
}
for (let k in o) {
if (new RegExp('(' + k + ')').test(fmt)) {
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
}
}
return fmt;
}else{
//TODO
value = value.trim();
return value.substr(0,fmt.length);
}
}
/**
* 根据传入的菜单生成首页路由
* @param data
* @returns {[{redirect: string, path: string, component: function(*=): any, children, meta: {title: string}, name: string}, {redirect: string, path: string, hidden: boolean}]}
*/
export function generateIndexRouter(data) {
let indexRouter = [{
path: '/',
name: 'dashboard',
//component: () => import('@/components/layouts/BasicLayout'),
component: resolve => require(['@/components/layouts/TabLayout'], resolve),
meta: { title: '首页' },
redirect: '/index',
children: [
...generateChildRouters(data)
]
},{
"path": "*", "redirect": "/404", "hidden": true
}]
return indexRouter;
}
/**
* 根据传入的菜单数据生成路由
* @param data
* @returns {[]}
*/
function generateChildRouters (data) {
const routers = [];
for (let item of data) {
let component = "";
//判断是路由到组件还是路由到视图
if(item.component.indexOf("layouts")>=0){
//如果组件带有layouts,则路由到组件
component = "components/"+item.component;
}else{
//如果不带layouts,则路由到视图
component = "views/"+item.component;
}
// eslint-disable-next-line
let URL = (item.meta.url|| '').replace(/{{([^}}]+)?}}/g, (s1, s2) => eval(s2)) // URL支持{{ window.xxx }}占位符变量
if (isURL(URL)) {
item.meta.url = URL;
}
//拼接组件路径
let componentPath
if(item.component=="modules/online/cgform/OnlCgformHeadList"){
componentPath = onlineCommons.OnlCgformHeadList
}else if(item.component=="modules/online/cgform/OnlCgformCopyList"){
componentPath = onlineCommons.OnlCgformCopyList
}else if(item.component=="modules/online/cgform/auto/OnlCgformAutoList"){
componentPath = onlineCommons.OnlCgformAutoList
}else if(item.component=="modules/online/cgform/auto/OnlCgformTreeList"){
componentPath = onlineCommons.OnlCgformTreeList
}else if(item.component=="modules/online/cgform/auto/erp/OnlCgformErpList"){
componentPath = onlineCommons.OnlCgformErpList
}else if(item.component=="modules/online/cgform/auto/tab/OnlCgformTabList"){
componentPath = onlineCommons.OnlCgformTabList
}else if(item.component=="modules/online/cgform/auto/innerTable/OnlCgformInnerTableList"){
componentPath = onlineCommons.OnlCgformInnerTableList
}else if(item.component=="modules/online/cgreport/OnlCgreportHeadList"){
componentPath = onlineCommons.OnlCgreportHeadList
}else if(item.component=="modules/online/cgreport/auto/OnlCgreportAutoList"){
componentPath = onlineCommons.OnlCgreportAutoList
}else{
componentPath = resolve => require(['@/' + component+'.vue'], resolve)
}
let menu = {
path: item.path,
name: item.name,
redirect:item.redirect,
component: componentPath,
//component: resolve => require(['@/' + component+'.vue'], resolve),
hidden:item.hidden,
meta: {
title:item.meta.title ,
icon: item.meta.icon,
url:item.meta.url ,
permissionList:item.meta.permissionList,
keepAlive:item.meta.keepAlive,
/*update_begin author:wuxianquan date:20190908 for:赋值 */
internalOrExternal:item.meta.internalOrExternal,
/*update_end author:wuxianquan date:20190908 for:赋值 */
componentName:item.meta.componentName
}
}
if(item.alwaysShow){
menu.alwaysShow = true;
menu.redirect = menu.path;
}
//如果存在子节点,则递归生成子节点
if (item.children && item.children.length > 0) {
menu.children = [...generateChildRouters( item.children)];
}
//--update-begin----author:scott---date:20190320------for:根据后台菜单配置,判断是否路由菜单字段,动态选择是否生成路由(为了支持参数URL菜单)------
//判断是否生成路由
if(item.route && item.route === '0'){
}else{
//生成路由
routers.push(menu);
}
}
return routers
}
/**
* 深度克隆对象、数组
* @param obj 被克隆的对象
* @return 克隆后的对象
*/
export function cloneObject(obj) {
return JSON.parse(JSON.stringify(obj))
}
/**
* 随机生成数字
*
* 示例:生成长度为 12 的随机数:randomNumber(12)
* 示例:生成 3~23 之间的随机数:randomNumber(3, 23)
*
* @param1 最小值 | 长度
* @param2 最大值
* @return int 生成后的数字
*/
export function randomNumber() {
// 生成 最小值 到 最大值 区间的随机数
const random = (min, max) => {
return Math.floor(Math.random() * (max - min + 1) + min)
}
if (arguments.length === 1) {
let [length] = arguments
// 生成指定长度的随机数字,首位一定不是 0
let nums = [...Array(length).keys()].map((i) => (i > 0 ? random(0, 9) : random(1, 9)))
return parseInt(nums.join(''))
} else if (arguments.length >= 2) {
let [min, max] = arguments
return random(min, max)
} else {
return Number.NaN
}
}
/**
* 随机生成字符串
* @param length 字符串的长度
* @param chats 可选字符串区间(只会生成传入的字符串中的字符)
* @return string 生成的字符串
*/
export function randomString(length, chats) {
if (!length) length = 1
if (!chats) chats = '0123456789qwertyuioplkjhgfdsazxcvbnm'
let str = ''
for (let i = 0; i < length; i++) {
let num = randomNumber(0, chats.length - 1)
str += chats[num]
}
return str
}
/**
* 随机生成uuid
* @return string 生成的uuid
*/
export function randomUUID() {
let chats = '0123456789abcdef'
return randomString(32, chats)
}
/**
* 下划线转驼峰
* @param string
* @returns {*}
*/
export function underLine2CamelCase(string){
return string.replace( /_([a-z])/g, function( all, letter ) {
return letter.toUpperCase();
});
}
/**
* 判断是否显示办理按钮
* @param bpmStatus
* @returns {*}
*/
export function showDealBtn(bpmStatus){
if(bpmStatus!="1"&&bpmStatus!="3"&&bpmStatus!="4"){
return true;
}
return false;
}
/**
* 增强CSS,可以在页面上输出全局css
* @param css 要增强的css
* @param id style标签的id,可以用来清除旧样式
*/
export function cssExpand(css, id) {
let style = document.createElement('style')
style.type = "text/css"
style.innerHTML = `@charset "UTF-8"; ${css}`
// 清除旧样式
if (id) {
let $style = document.getElementById(id)
if ($style != null) $style.outerHTML = ''
style.id = id
}
// 应用新样式
document.head.appendChild(style)
}
/** 用于js增强事件,运行JS代码,可以传参 */
// options 所需参数:
// 参数名 类型 说明
// vm VueComponent vue实例
// event Object event对象
// jsCode String 待执行的js代码
// errorMessage String 执行出错后的提示(控制台)
export function jsExpand(options = {}) {
// 绑定到window上的keyName
let windowKeyName = 'J_CLICK_EVENT_OPTIONS'
if (typeof window[windowKeyName] != 'object') {
window[windowKeyName] = {}
}
// 随机生成JS增强的执行id,防止冲突
let id = randomString(16, 'qwertyuioplkjhgfdsazxcvbnm'.toUpperCase())
// 封装按钮点击事件
let code = `
(function (o_${id}) {
try {
(function (globalEvent, vm) {
${options.jsCode}
})(o_${id}.event, o_${id}.vm)
} catch (e) {
o_${id}.error(e)
}
o_${id}.done()
})(window['${windowKeyName}']['EVENT_${id}'])
`
// 创建script标签
const script = document.createElement('script')
// 将需要传递的参数挂载到window对象上
window[windowKeyName]['EVENT_' + id] = {
vm: options.vm,
event: options.event,
// 当执行完成时,无论如何都会调用的回调事件
done() {
// 执行完后删除新增的 script 标签不会撤销执行结果(已产生的结果不会被撤销)
script.outerHTML = ''
delete window[windowKeyName]['EVENT_' + id]
},
// 当js运行出错的时候调用的事件
error(e) {
console.group(`${options.errorMessage || '用户自定义JS增强代码运行出错'}(${new Date()})`)
console.error(e)
console.groupEnd()
}
}
// 将事件挂载到document中
script.innerHTML = code
document.body.appendChild(script)
}
/**
* 重复值验证工具方法
*
* 使用示例:
* { validator: (rule, value, callback) => validateDuplicateValue('sys_fill_rule', 'rule_code', value, this.model.id, callback) }
*
* @param tableName 被验证的表名
* @param fieldName 被验证的字段名
* @param fieldVal 被验证的值
* @param dataId 数据ID,可空
* @param callback
*/
export function validateDuplicateValue(tableName, fieldName, fieldVal, dataId, callback) {
if (fieldVal) {
let params = { tableName, fieldName, fieldVal, dataId }
api.duplicateCheck(params).then(res => {
res['success'] ? callback() : callback(res['message'])
}).catch(err => {
callback(err.message || err)
})
} else {
callback()
}
}
/**
* 根据编码校验规则code,校验传入的值是否合法
*
* 使用示例:
* { validator: (rule, value, callback) => validateCheckRule('common', value, callback) }
*
* @param ruleCode 编码校验规则 code
* @param value 被验证的值
* @param callback
*/
export function validateCheckRule(ruleCode, value, callback) {
if (ruleCode && value) {
value = encodeURIComponent(value)
api.checkRuleByCode({ ruleCode, value }).then(res => {
res['success'] ? callback() : callback(res['message'])
}).catch(err => {
callback(err.message || err)
})
} else {
callback()
}
}
/**
* 如果值不存在就 push 进数组,反之不处理
* @param array 要操作的数据
* @param value 要添加的值
* @param key 可空,如果比较的是对象,可能存在地址不一样但值实际上是一样的情况,可以传此字段判断对象中唯一的字段,例如 id。不传则直接比较实际值
* @returns {boolean} 成功 push 返回 true,不处理返回 false
*/
export function pushIfNotExist(array, value, key) {
for (let item of array) {
if (key && (item[key] === value[key])) {
return false
} else if (item === value) {
return false
}
}
array.push(value)
return true
}
/**
* 可用于判断是否成功
* @type {symbol}
*/
export const succeedSymbol = Symbol()
/**
* 可用于判断是否失败
* @type {symbol}
*/
export const failedSymbol = Symbol()
/**
* 使 promise 无论如何都会 resolve,除非传入的参数不是一个Promise对象或返回Promise对象的方法
* 一般用在 Promise.all 中
*
* @param promise 可传Promise对象或返回Promise对象的方法
* @returns {Promise<any>}
*/
export function alwaysResolve(promise) {
return new Promise((resolve, reject) => {
let p = promise
if (typeof promise === 'function') {
p = promise()
}
if (p instanceof Promise) {
p.then(data => {
resolve({ type: succeedSymbol, data })
}).catch(error => {
resolve({ type: failedSymbol, error })
})
} else {
reject('alwaysResolve: 传入的参数不是一个Promise对象或返回Promise对象的方法')
}
})
}
/**
* 简单实现防抖方法
*
* 防抖(debounce)函数在第一次触发给定的函数时,不立即执行函数,而是给出一个期限值(delay),比如100ms。
* 如果100ms内再次执行函数,就重新开始计时,直到计时结束后再真正执行函数。
* 这样做的好处是如果短时间内大量触发同一事件,只会执行一次函数。
*
* @param fn 要防抖的函数
* @param delay 防抖的毫秒数
* @returns {Function}
*/
export function simpleDebounce(fn, delay = 100) {
let timer = null
return function () {
let args = arguments
if (timer) {
clearTimeout(timer)
}
timer = setTimeout(() => {
fn.apply(this, args)
}, delay)
}
}
/**
* 不用正则的方式替换所有值
* @param text 被替换的字符串
* @param checker 替换前的内容
* @param replacer 替换后的内容
* @returns {String} 替换后的字符串
*/
export function replaceAll(text, checker, replacer) {
let lastText = text
text = text.replace(checker, replacer)
if (lastText !== text) {
return replaceAll(text, checker, replacer)
}
return text
}
/**
* 获取事件冒泡路径,兼容 IE11,Edge,Chrome,Firefox,Safari
* 目前使用的地方:JEditableTable Span模式
*/
export function getEventPath(event) {
let target = event.target
let path = (event.composedPath && event.composedPath()) || event.path
if (path != null) {
return (path.indexOf(window) < 0) ? path.concat(window) : path
}
if (target === window) {
return [window]
}
let getParents = (node, memo) => {
memo = memo || []
const parentNode = node.parentNode
if (!parentNode) {
return memo
} else {
return getParents(parentNode, memo.concat(parentNode))
}
}
return [target].concat(getParents(target), window)
}
/**
* 根据组件名获取父级
* @param vm
* @param name
* @returns {Vue | null|null|Vue}
*/
export function getVmParentByName(vm, name) {
let parent = vm.$parent
if (parent && parent.$options) {
if (parent.$options.name === name) {
return parent
} else {
let res = getVmParentByName(parent, name)
if (res) {
return res
}
}
}
return null
}
/**
* 使一个值永远不会为(null | undefined)
*
* @param value 要处理的值
* @param def 默认值,如果value为(null | undefined)则返回的默认值,可不传,默认为''
*/
export function neverNull(value, def) {
return value == null ? (neverNull(def, '')) : value
}
|
$(document).ready(function() {
// Get login user profile data
$("#update_notice_form").hide();
// Get login user profile data
var token = localStorage.getItem('u_token');
var url = $(location).attr('href').split( '/' );
notice_id = url[ url.length - 2 ]; // projects
project_id = url[ url.length - 4 ]; // projects
console.log(notice_id);
// Check Permission
var check_user_access = JSON.parse(localStorage.getItem("access_permission"));
var check_permission = jQuery.inArray("notice_proceed_update", check_user_access );
console.log(check_permission);
if(check_permission < 1){
window.location.href = baseUrl + "403";
}
else {
console.log('Yes Permission');
$('.body-content .wrapper').show();
}
jQuery.ajax({
url: baseUrl + "notice-proceed/"+notice_id,
type: "GET",
headers: {
"Content-Type": "application/json",
"x-access-token": token
},
contentType: "application/json",
cache: false
})
.done(function(data, textStatus, jqXHR) {
console.log(data);
var doc_path = data.data.notice_proceed_path;
var doc_path_value;
if(doc_path == null){
doc_path_value = ' - ';
}
else {
doc_path_value = '<a href="'+baseUrl+doc_path+'" target="_blank"><img src="'+baseUrl+'resources/assets/img/pdf_icon.png" width="40"/></a>';
}
$('#doc_file_path').html(doc_path_value);
var doc_path = data.data.owner_sign_doc_path;
var doc_path_value;
if(doc_path == null){
doc_path_value = ' - ';
$(".before_review_owner").show();
}
else {
$(".after_review_owner").show();
doc_path_value = '<a href="'+baseUrl+doc_path+'" target="_blank"><img src="'+baseUrl+'resources/assets/img/pdf_icon.png" width="40"/></a>';
}
$('#document_owner').html(doc_path_value);
$('#review_owner_detail').text(data.data.pnp_notice_review_owner);
$('#notice_date').val(data.data.pnp_date);
$('#notice_start_date').val(data.data.pnp_start_date);
$('#liquidated_amount').val(data.data.pnp_liquidated_amount);
$('#duration_days').val(data.data.pnp_duration);
if(data.data.pnp_cal_day=="calendar_day")
{
$('#days_calendar').attr('checked', true);
}else{
$('#days_working').attr('checked', true);
}
var doc_path = data.data.contractor_sign_doc_path;
var doc_path_value;
if(doc_path == null){
doc_path_value = ' - ';
$(".before_review_contractor").show();
}
else {
$(".after_review_contractor").show();
doc_path_value = '<a href="'+baseUrl+doc_path+'" target="_blank"><img src="'+baseUrl+'resources/assets/img/pdf_icon.png" width="40"/></a>';
}
$('#document_contractor').html(doc_path_value);
$('#review_contractor_detail').text(data.data.pnp_notice_review_contractor);
var status = data.data.pnp_status;
if(status == "active"){
status = 'active';
}
else {
status = "deactive";
}
$('#status').val(status);
$("#update_notice_form").show();
$(".loading_data").hide();
})
.fail(function(jqXHR, textStatus, errorThrown) {
console.log("HTTP Request Failed");
var response = jqXHR.responseJSON.code;
if(response == 403){
window.location.href = baseUrl + "403";
// console.log("403");
}
else if(response == 404){
console.log("404");
// window.location.href = baseUrl + "404";
}
else {
// console.log("500");
window.location.href = baseUrl + "500";
}
})
jQuery.ajax({
url: baseUrl + "projects/"+project_id,
type: "GET",
headers: {
"Content-Type": "application/json",
"x-access-token": token
},
contentType: "application/json",
cache: false
})
.done(function(data, textStatus, jqXHR) {
var project_name = data.data.p_name;
$('#project_name_title').text("Project: " + project_name);
})
.fail(function(jqXHR, textStatus, errorThrown) {
console.log("HTTP Request Failed");
var response = jqXHR.responseJSON.code;
if(response == 403){
// window.location.href = baseUrl + "403";
console.log("403");
}
else if(response == 404){
console.log("404");
// window.location.href = baseUrl + "404";
}
else {
// console.log("500");
window.location.href = baseUrl + "500";
}
})
});
$('#update_notice_form').submit(function(e) {
e.preventDefault();
$('.loading-submit').show();
var notice_sign_owner = $('#upload_doc_id_2').val();
var notice_review_owner = $('#review_owner').val();
var notice_sign_contractor = $('#upload_doc_id_3').val();
var notice_review_contractor = $('#review_contractor').val();
var status = $('#status').val();
var project_id = $('#upload_project_id').val();
var token = localStorage.getItem('u_token');
var date = $("#notice_date").val();
var start_date = $("#notice_start_date").val();
var liquidated_amount = $("#liquidated_amount").val();
var cal_day = $("input[name='days_working']:checked").val();
var duration = $("#duration_days").val();
var token = localStorage.getItem('u_token');
jQuery.ajax({
url: baseUrl + "notice-proceed/"+notice_id+"/update",
type: "POST",
data: {
"notice_sign_owner" : notice_sign_owner,
"notice_review_owner" : notice_review_owner,
"notice_sign_contractor" : notice_sign_contractor,
"notice_review_contractor" : notice_review_contractor,
"status" : status,
"project_id" : project_id,
"date" : date,
"start_date" : start_date,
"duration" : duration,
"cal_day" : cal_day,
"liquidated_amount" : liquidated_amount,
},
headers: {
"x-access-token": token
},
contentType: "application/x-www-form-urlencoded",
cache: false
})
.done(function(data, textStatus, jqXHR) {
$('.loading-submit').hide();
console.log(data);
$('html, body').animate({
scrollTop: $(".page-head").offset().top
}, 'fast')
$("#alert_message").show();
$('.loading-submit').hide();
html = '<div id="toast-container" class="toast-top-right" aria-live="polite" role="alert" style="margin-top:50px;"><div class="toast toast-success">Notice proceed updated successfully!</div></div>';
$("#alert_message").html(html);
setTimeout(function(){
$("#alert_message").hide();
},5000)
//window.location.reload();
})
.fail(function(jqXHR, textStatus, errorThrown) {
$('.loading-submit').hide();
console.log("HTTP Request Failed");
var responseText, html;
responseText = JSON.parse(jqXHR.responseText);
// console.log(responseText.data.currency_name);
html = '<div class="alert alert-block alert-danger fade in"><ul>';
if(responseText.data.project_id != null){
html += '<li>The project id field is required.</li>';
}
html += '</ul></div>';
$("#alert_message").html(html);
})
});
|
import React, { Component } from 'react'
import Helmet from 'react-helmet'
import Layout from '../layout'
import Contact from '../components/Contact'
import config from '../../data/SiteConfig'
class NewsletterPage extends Component {
render() {
return (
<Layout>
<Helmet title={`Newsletter – ${config.siteTitle}`} />
<div className="container">
<Contact />
</div>
</Layout>
)
}
}
export default NewsletterPage
|
/*global location */
sap.ui.define([
"./BaseController",
"sap/ui/model/json/JSONModel",
"../model/formatter",
"sap/m/library",
"sap/ui/Device",
"sap/m/MessageToast"
], function (BaseController, JSONModel, formatter, mobileLibrary, Device, MessageToast) {
"use strict";
// shortcut for sap.m.URLHelper
var URLHelper = mobileLibrary.URLHelper;
return BaseController.extend("opensap.orders.controller.Detail", {
formatter: formatter,
/* =========================================================== */
/* lifecycle methods */
/* =========================================================== */
onInit : function () {
// Model used to manipulate control states. The chosen values make sure,
// detail page is busy indication immediately so there is no break in
// between the busy indication for loading the view's meta data
var oViewModel = new JSONModel({
busy : false,
delay : 0,
lineItemListTitle : this.getResourceBundle().getText("detailLineItemTableHeading")
});
this.getRouter().getRoute("object").attachPatternMatched(this._onObjectMatched, this);
this.getRouter().getRoute("Info").attachPatternMatched(this._onObjectMatched, this);
this.setModel(oViewModel, "detailView");
this.getOwnerComponent().getModel().metadataLoaded().then(this._onMetadataLoaded.bind(this));
},
/* =========================================================== */
/* event handlers */
/* =========================================================== */
/**
* Event handler when the share by E-Mail button has been clicked
* @public
*/
onSendEmailPress : function () {
var oViewModel = this.getModel("detailView");
URLHelper.triggerEmail(
null,
oViewModel.getProperty("/shareSendEmailSubject"),
oViewModel.getProperty("/shareSendEmailMessage")
);
},
/**
* Updates the item count within the line item table's header
* @param {object} oEvent an event containing the total number of items in the list
* @private
*/
onListUpdateFinished : function (oEvent) {
var sTitle,
iTotalItems = oEvent.getParameter("total"),
oViewModel = this.getModel("detailView");
// only update the counter if the length is final
if (this.byId("lineItemsList").getBinding("items").isLengthFinal()) {
if (iTotalItems) {
sTitle = this.getResourceBundle().getText("detailLineItemTableHeadingCount", [iTotalItems]);
} else {
//Display 'Line Items' instead of 'Line items (0)'
sTitle = this.getResourceBundle().getText("detailLineItemTableHeading");
}
oViewModel.setProperty("/lineItemListTitle", sTitle);
}
},
/* =========================================================== */
/* begin: internal methods */
/* =========================================================== */
/**
* Binds the view to the object path and expands the aggregated line items.
* @function
* @param {sap.ui.base.Event} oEvent pattern match event in route 'object'
* @private
*/
_onObjectMatched : function (oEvent) {
var sObjectId = oEvent.getParameter("arguments").objectId;
if (!sObjectId) {
return;
}
if (oEvent.getParameter("name") === "object") {
this.getModel("appView").setProperty("/layout", "TwoColumnsMidExpanded");
}
this.getModel().metadataLoaded().then( function() {
var sObjectPath = this.getModel().createKey("SalesOrderSet", {
SalesOrderID : sObjectId
});
this._bindView("/" + sObjectPath);
}.bind(this));
},
/**
* Binds the view to the object path. Makes sure that detail view displays
* a busy indicator while data for the corresponding element binding is loaded.
* @function
* @param {string} sObjectPath path to the object to be bound to the view.
* @private
*/
_bindView : function (sObjectPath) {
// Set busy indicator during view binding
var oViewModel = this.getModel("detailView");
// If the view was not bound yet its not busy, only if the binding requests data it is set to busy again
oViewModel.setProperty("/busy", false);
this.getView().bindElement({
path : sObjectPath,
events: {
change : this._onBindingChange.bind(this),
dataRequested : function () {
oViewModel.setProperty("/busy", true);
},
dataReceived: function () {
oViewModel.setProperty("/busy", false);
}
}
});
this.byId("orderPreparations").reset();
},
_onBindingChange : function () {
var oView = this.getView(),
oElementBinding = oView.getElementBinding();
// No data for the binding
if (!oElementBinding.getBoundContext()) {
this.getRouter().getTargets().display("detailObjectNotFound");
// if object could not be found, the selection in the master list
// does not make sense anymore.
this.getOwnerComponent().oListSelector.clearMasterListSelection();
return;
}
var sPath = oElementBinding.getPath(),
oResourceBundle = this.getResourceBundle(),
oObject = oView.getModel().getObject(sPath),
sObjectId = oObject.SalesOrderID,
sObjectName = oObject.CustomerName,
oViewModel = this.getModel("detailView");
this.getOwnerComponent().oListSelector.selectAListItem(sPath);
oViewModel.setProperty("/shareSendEmailSubject",
oResourceBundle.getText("shareSendEmailObjectSubject", [sObjectId]));
oViewModel.setProperty("/shareSendEmailMessage",
oResourceBundle.getText("shareSendEmailObjectMessage", [sObjectName, sObjectId, location.href]));
},
_onMetadataLoaded : function () {
// Store original busy indicator delay for the detail view
var iOriginalViewBusyDelay = this.getView().getBusyIndicatorDelay(),
oViewModel = this.getModel("detailView"),
oLineItemTable = this.byId("lineItemsList"),
iOriginalLineItemTableBusyDelay = oLineItemTable.getBusyIndicatorDelay();
// Make sure busy indicator is displayed immediately when
// detail view is displayed for the first time
oViewModel.setProperty("/delay", 0);
oViewModel.setProperty("/lineItemTableDelay", 0);
oLineItemTable.attachEventOnce("updateFinished", function() {
// Restore original busy indicator delay for line item table
oViewModel.setProperty("/lineItemTableDelay", iOriginalLineItemTableBusyDelay);
});
// Binding the view will set it to not busy - so the view is always busy if it is not bound
oViewModel.setProperty("/busy", true);
// Restore original busy indicator delay for the detail view
oViewModel.setProperty("/delay", iOriginalViewBusyDelay);
},
/**
* Set the full screen mode to false and navigate to master page
*/
onCloseDetailPress: function () {
this.getModel("appView").setProperty("/actionButtonsInfo/midColumn/fullScreen", false);
this.byId("lineItemsList").removeSelections(true);
// No item should be selected on master after detail page is closed
this.getOwnerComponent().oListSelector.clearMasterListSelection();
this.getRouter().navTo("master");
},
/**
* Toggle between full and non full screen mode.
*/
toggleFullScreen: function () {
var bFullScreen = this.getModel("appView").getProperty("/actionButtonsInfo/midColumn/fullScreen");
this.getModel("appView").setProperty("/actionButtonsInfo/midColumn/fullScreen", !bFullScreen);
if (!bFullScreen) {
// store current layout and go full screen
this.getModel("appView").setProperty("/previousLayout", this.getModel("appView").getProperty("/layout"));
this.getModel("appView").setProperty("/layout", "MidColumnFullScreen");
} else {
// reset to previous layout
this.getModel("appView").setProperty("/layout", this.getModel("appView").getProperty("/previousLayout"));
}
},
/**
* @param {sap.ui.base.Event} oEvent pattern match event in route 'object'
*/
action: function (oEvent) {
var bReplace = !Device.system.phone;
this.getRouter().navTo("Info", {
objectId : (oEvent.getParameter("listItem") || oEvent.getSource()).getBindingContext().getProperty("SalesOrderID"),
itemPosition : (oEvent.getParameter("listItem") || oEvent.getSource()).getBindingContext().getProperty("ItemPosition")
}, bReplace);
},
onConfirm: function (oEvent) {
var oBinding = oEvent.getSource().getBindingContext().getObject();
var oMessage = this.getResourceBundle().getText("OrderPreparationMessage", [oBinding.CustomerID, oBinding.CustomerName]);
MessageToast.show(oMessage);
}
});
}); |
//api routes tests
const request = require('supertest');
const app = require('../app');
const { users, userObjectWithToken } = require("./seed/seed");
const SearchHistory = require("../models/search-history");
const { ObjectID } = require("mongodb");
const user = users[0];
const search_history = [
{
_id: new ObjectID(),
query: "paris, france",
user: user._id
},
{
_id: new ObjectID(),
query: "london, england",
user: user._id
}
];
describe("Saved search history end points", () => {
let user_no_history = userObjectWithToken({
name: "john",
email: "[email protected]",
password: "password1234"
});
let docs;
beforeEach(() => {
SearchHistory.remove({})
.then(() => {
SearchHistory.insertMany(search_history, (err, _docs) => docs = _docs)
});
});
describe("GET /search/history", done => {
it("should return search history of valid user id", done => {
request(app)
.get("/search/history")
.set('x-access-token', user.tokens[0].token)
.expect(200)
.end((err, res) => {
const { searchHistory } = res.body;
if (err) return done(err);
for(record of searchHistory) {
const expected_id = user._id.toHexString();
expect(record.user).to.equal(expected_id);
}
done();
});
});
it("should respond with empty array when user does not have search history", done => {
request(app)
.get("/search/history")
.set('x-access-token', user_no_history.tokens[0].token)
.expect(200)
.expect(res => {
const { searchHistory } = res.body;
expect(searchHistory).to.be.an('array').that.is.empty;
})
.end(done);
});
it("should respond with 401 when no token is provided", done => {
request(app)
.get("/search/history")
.expect(401)
.end((err, res) => {
if (err) return done(err);
const { message } = res.body;
expect(message).to.equal("No token provided.")
done();
});
});
it("should respond with a 403 error for invalid token", done => {
request(app)
.get("/search/history")
.set('x-access-token', "invalid_token")
.expect(403)
.end((err, res) => {
if (err) return done(err);
const { message } = res.body;
expect(message).to.equal("Failed to authenticate token.");
done();
});
});
});
describe("GET /search/history/recent/:num", () => {
it("should return a 404 when no parameter is given", done =>{
request(app)
.get("/search/history/recent/")
.set('x-access-token', user.tokens[0].token)
.expect(404)
.end(done);
});
it("should return first entry for a parameter of 1", done => {
request(app)
.get(`/search/history/recent/1`)
.set('x-access-token', user.tokens[0].token)
.expect(200)
.expect(res => {
const { searchHistory } = res.body;
expect(searchHistory).to.be.an('array').that.has.lengthOf(1);
expect(searchHistory[0].user).to.equal(search_history[0].user.toHexString());
}).end(done);
});
it("should respond with 401 when no token is provided", done => {
request(app)
.get("/search/history/recent/1")
.expect(401)
.end((err, res) => {
if (err) return done(err);
const { message } = res.body;
expect(message).to.equal("No token provided.")
done();
});
});
it("should respond with a 403 error for invalid token", done => {
request(app)
.get("/search/history/recent/1")
.set('x-access-token', "invalid_token")
.expect(403)
.end((err, res) => {
if (err) return done(err);
const { message } = res.body;
expect(message).to.equal("Failed to authenticate token.");
done();
});
});
});
describe("POST /search/history/:query", () => {
it("it should update query if it is already in DB", done => {
let date_before_update = new Date(docs[0].save_date).getTime() / 1000;
request(app)
.post("/search/history/paris, france")
.set('x-access-token', user.tokens[0].token)
.expect(200)
.expect(res => {
let { save_date } = res.body.searchHistory;
save_date = new Date(save_date).getTime() / 1000;
expect(date_before_update).to.be.below(save_date);
})
.end(done);
});
it("should create a new entry if query is not found", done => {
request(app)
.post("/search/history/some new query")
.set('x-access-token', user.tokens[0].token)
.expect(200)
.expect(res => {
const { searchHistory: { id: id } } = res.body;
for (let doc of docs) {
expect(doc._id).to.not.equal(id);
}
})
.end(done);
});
it("should respond with 401 when no token is provided", done => {
request(app)
.post("/search/history/query here")
.expect(401)
.end((err, res) => {
if (err) return done(err);
const { message } = res.body;
expect(message).to.equal("No token provided.")
done();
});
});
it("should respond with a 403 error for invalid token", done => {
request(app)
.post("/search/history/query here")
.set('x-access-token', "invalid_token")
.expect(403)
.end((err, res) => {
if (err) return done(err);
const { message } = res.body;
expect(message).to.equal("Failed to authenticate token.");
done();
});
});
});
describe("DELETE /search/history", () => {
it("should clear history of user present in jwt token", done => {
request(app)
.delete("/search/history")
.set('x-access-token', user.tokens[0].token)
.expect(200)
.expect(res => {
const { success } = res.body;
expect(success).to.equal(true);
})
.end((err, res) => {
if (err) return done(err);
SearchHistory.find({user: user._id})
.then(records => {
expect(records).to.be.an("array").that.has.lengthOf(0);
done();
})
.catch(done);
});
});
it("should respond with 401 when no token is provided", done => {
request(app)
.delete("/search/history")
.expect(401)
.end((err, res) => {
if (err) return done(err);
const { message } = res.body;
expect(message).to.equal("No token provided.")
done();
});
});
it("should respond with a 403 error for invalid token", done => {
request(app)
.delete("/search/history")
.set('x-access-token', "invalid_token")
.expect(403)
.end((err, res) => {
if (err) return done(err);
const { message } = res.body;
expect(message).to.equal("Failed to authenticate token.");
done();
});
});
});
}); |
import React from 'react'
import {connect} from 'react-redux'
import PhotoForm from '../photo-form'
import * as util from '../../lib/util.js'
import * as photoActions from '../../action/photo-actions.js'
export class PhotoItem extends React.Component {
constructor(props){
super(props)
this.state = {
editing: false
}
this.handleDelete = this.handleDelete.bind(this)
this.handleUpdate = this.handleUpdate.bind(this)
}
handleDelete(){
return this.props.deletePhoto(this.props.photo)
.then(console.log)
.catch(console.error)
}
handleUpdate(photo){
return this.props.updatePhoto(photo)
.then(() => {
this.setState({editing: false})
})
.catch(console.error)
}
render(){
let {photo} = this.props
return (
<div>
{util.renderIf(!this.state.editing,
<div>
<img src={photo.url} />
<p> {photo.description} </p>
<i onClick={this.handleDelete} className='fa fa-trash-o fa-3x' />
<i onClick={() => this.setState({editing: true})} className='fa fa-pencil fa-3x' />
</div>
)}
{util.renderIf(this.state.editing,
<div>
<PhotoForm
photo={this.props.photo}
buttonText='update photo'
onComplete={this.handleUpdate}
/>
</div>
)}
</div>
)
}
}
let mapStateToProps = () => ({})
let mapDispatchToProps = (dispatch) => ({
deletePhoto: (photo) => dispatch(photoActions.userPhotoDeleteRequest(photo)),
updatePhoto: (photo) => dispatch(photoActions.userPhotoUpdateRequest(photo)),
})
export default connect(
mapStateToProps,
mapDispatchToProps,
)(PhotoItem)
|
module.exports = {
presets: [
"@babel/preset-react",
"@babel/preset-typescript",
[
"@babel/preset-env",
{
targets: {
node: "current",
},
},
],
],
};
|
import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8ConcurrentGeneratorFilter",
pythiaPylistVerbosity = cms.untracked.int32(0),
filterEfficiency = cms.untracked.double(1.0),
pythiaHepMCVerbosity = cms.untracked.bool(False),
comEnergy = cms.double(13000.0),
maxEventsToPrint = cms.untracked.int32(0),
PythiaParameters = cms.PSet(
pythia8CommonSettingsBlock,
pythia8CUEP8M1SettingsBlock,
processParameters = cms.vstring(
'HardQCD:all = on',
'PhaseSpace:pTHatMin = 120.',
'PhaseSpace:pTHatMax = 170.'
),
parameterSets = cms.vstring('pythia8CommonSettings',
'pythia8CUEP8M1Settings',
'processParameters',
)
)
)
|
export { default } from "./GalleryDisplay"; |
import React, {Component} from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import Link from "next/link";
class GPGalleryThreeSection extends Component {
render() {
return (
<div className="gallery-area pt-120 pb-110">
<div className="container">
<div className="row">
<div className="col-xl-12">
<div className="gallery-wrapper mb-60">
<div className="gallery-img">
<a href="#">
<img src={require('../../../public/assets/img/gallery/gallery3/1.jpg')}
alt="image"/>
</a>
<div className="gallery-content text-center">
<div className="gallery2-icon">
<a className="popup-image"
href={require('../../../public/assets/img/gallery/gallery3/1.jpg')}>
<i className="ti-plus"></i>
</a>
</div>
<h1><Link href="/gallery-details-3" as="/gallery-details-3" ><a >Organic Fruits</a></Link></h1>
<span>Fresh Food</span>
</div>
</div>
</div>
<div className="gallery-wrapper mb-60">
<div className="gallery-img">
<a href="#">
<img src={require('../../../public/assets/img/gallery/gallery3/2.jpg')}
alt="image"/>
</a>
<div className="gallery-content text-center">
<div className="gallery2-icon">
<a className="popup-image"
href={require('../../../public/assets/img/gallery/gallery3/2.jpg')}>
<i className="ti-plus"></i>
</a>
</div>
<h1><Link href="/gallery-details-3" as="/gallery-details-3" ><a >Organic Fruits</a></Link></h1>
<span>Fresh Food</span>
</div>
</div>
</div>
<div className="gallery-wrapper mb-60">
<div className="gallery-img">
<a href="#">
<img src={require('../../../public/assets/img/gallery/gallery3/3.jpg')}
alt="image"/>
</a>
<div className="gallery-content text-center">
<div className="gallery2-icon">
<a className="popup-image"
href={require('../../../public/assets/img/gallery/gallery3/3.jpg')}>
<i className="ti-plus"></i>
</a>
</div>
<h1><Link href="/gallery-details-3" as="/gallery-details-3" ><a >Organic Fruits</a></Link></h1>
<span>Fresh Food</span>
</div>
</div>
</div>
<div className="gallery-wrapper mb-60">
<div className="gallery-img">
<a href="#">
<img src={require('../../../public/assets/img/gallery/gallery3/4.jpg')}
alt="image"/>
</a>
<div className="gallery-content text-center">
<div className="gallery2-icon">
<a className="popup-image"
href={require('../../../public/assets/img/gallery/gallery3/4.jpg')}>
<i className="ti-plus"></i>
</a>
</div>
<h1><Link href="/gallery-details-3" as="/gallery-details-3" ><a >Organic Fruits</a></Link></h1>
<span>Fresh Food</span>
</div>
</div>
</div>
<div className="gallery-wrapper mb-60">
<div className="gallery-img">
<a href="#">
<img src={require('../../../public/assets/img/gallery/gallery3/5.jpg')}
alt="image"/>
</a>
<div className="gallery-content text-center">
<div className="gallery2-icon">
<a className="popup-image"
href={require('../../../public/assets/img/gallery/gallery3/5.jpg')}>
<i className="ti-plus"></i>
</a>
</div>
<h1><Link href="/gallery-details-3" as="/gallery-details-3" ><a >Organic Fruits</a></Link></h1>
<span>Fresh Food</span>
</div>
</div>
</div>
<div className="row">
<div className="col-xl-12">
<div className="paginations text-center">
<ul>
<li><a href="#"><FontAwesomeIcon icon={['fas', 'angle-left']}/></a></li>
<li className="active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#"><FontAwesomeIcon icon={['fas', 'angle-right']}/></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
);
}
}
export default GPGalleryThreeSection; |
import React, { Component } from 'react';
import * as PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { createFragmentContainer } from 'react-relay';
import graphql from 'babel-plugin-relay/macro';
import { withStyles } from '@material-ui/core/styles';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import ListItemText from '@material-ui/core/ListItemText';
import { KeyboardArrowRightOutlined, HelpOutlined } from '@material-ui/icons';
import { compose, pathOr, take } from 'ramda';
import inject18n from '../../../../components/i18n';
import ItemMarking from '../../../../components/ItemMarking';
import StixCoreObjectLabels from '../stix_core_objects/StixCoreObjectLabels';
import ItemIcon from '../../../../components/ItemIcon';
import { resolveLink } from '../../../../utils/Entity';
const styles = (theme) => ({
item: {
paddingLeft: 10,
height: 50,
},
itemIcon: {
color: theme.palette.primary.main,
},
bodyItem: {
height: 20,
fontSize: 13,
float: 'left',
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
},
goIcon: {
position: 'absolute',
right: -10,
},
itemIconDisabled: {
color: theme.palette.grey[700],
},
placeholder: {
display: 'inline-block',
height: '1em',
backgroundColor: theme.palette.grey[700],
},
});
class StixCoreObjectOrStixCoreRelationshipContainerLineComponent extends Component {
render() {
const {
fd, classes, node, dataColumns, onLabelClick,
} = this.props;
return (
<ListItem
classes={{ root: classes.item }}
divider={true}
button={true}
component={Link}
to={`${resolveLink(node.entity_type)}/${node.id}`}
>
<ListItemIcon classes={{ root: classes.itemIcon }}>
<ItemIcon type={node.entity_type} />
</ListItemIcon>
<ListItemText
primary={
<div>
<div
className={classes.bodyItem}
style={{ width: dataColumns.name.width }}
>
{node.name || node.attribute_abstract || node.opinion}
</div>
<div
className={classes.bodyItem}
style={{ width: dataColumns.createdBy.width }}
>
{pathOr('', ['createdBy', 'name'], node)}
</div>
<div
className={classes.bodyItem}
style={{ width: dataColumns.objectLabel.width }}
>
<StixCoreObjectLabels
variant="inList"
labels={node.objectLabel}
onClick={onLabelClick.bind(this)}
/>
</div>
<div
className={classes.bodyItem}
style={{ width: dataColumns.created.width }}
>
{fd(node.first_observed || node.published || node.created)}
</div>
<div
className={classes.bodyItem}
style={{ width: dataColumns.objectMarking.width }}
>
{take(1, pathOr([], ['objectMarking', 'edges'], node)).map(
(markingDefinition) => (
<ItemMarking
key={markingDefinition.node.id}
variant="inList"
label={markingDefinition.node.definition}
color={markingDefinition.node.x_opencti_color}
/>
),
)}
</div>
</div>
}
/>
<ListItemIcon classes={{ root: classes.goIcon }}>
<KeyboardArrowRightOutlined />
</ListItemIcon>
</ListItem>
);
}
}
StixCoreObjectOrStixCoreRelationshipContainerLineComponent.propTypes = {
dataColumns: PropTypes.object,
node: PropTypes.object,
classes: PropTypes.object,
fd: PropTypes.func,
t: PropTypes.func,
onLabelClick: PropTypes.func,
};
const StixCoreObjectOrStixCoreRelationshipContainerLineFragment = createFragmentContainer(
StixCoreObjectOrStixCoreRelationshipContainerLineComponent,
{
node: graphql`
fragment StixCoreObjectOrStixCoreRelationshipContainerLine_node on Container {
id
entity_type
... on Note {
attribute_abstract
created
}
... on Opinion {
opinion
created
}
... on ObservedData {
first_observed
last_observed
}
... on Report {
name
published
x_opencti_report_status
}
createdBy {
... on Identity {
id
name
entity_type
}
}
objectMarking {
edges {
node {
id
definition
x_opencti_color
}
}
}
objectLabel {
edges {
node {
id
value
color
}
}
}
}
`,
},
);
export const StixCoreObjectOrStixCoreRelationshipContainerLine = compose(
inject18n,
withStyles(styles),
)(StixCoreObjectOrStixCoreRelationshipContainerLineFragment);
class StixCoreObjectOrStixCoreRelationshipContainerLineDummyComponent extends Component {
render() {
const { classes, dataColumns } = this.props;
return (
<ListItem classes={{ root: classes.item }} divider={true}>
<ListItemIcon classes={{ root: classes.itemIconDisabled }}>
<HelpOutlined />
</ListItemIcon>
<ListItemText
primary={
<div>
<div
className={classes.bodyItem}
style={{ width: dataColumns.name.width }}
>
<div className="fakeItem" style={{ width: '80%' }} />
</div>
<div
className={classes.bodyItem}
style={{ width: dataColumns.createdBy.width }}
>
<div className="fakeItem" style={{ width: '70%' }} />
</div>
<div
className={classes.bodyItem}
style={{ width: dataColumns.objectLabel.width }}
>
<div className="fakeItem" style={{ width: '80%' }} />
</div>
<div
className={classes.bodyItem}
style={{ width: dataColumns.created.width }}
>
<div className="fakeItem" style={{ width: '80%' }} />
</div>
<div
className={classes.bodyItem}
style={{ width: dataColumns.objectMarking.width }}
>
<div className="fakeItem" style={{ width: 100 }} />
</div>
</div>
}
/>
<ListItemIcon classes={{ root: classes.goIcon }}>
<KeyboardArrowRightOutlined />
</ListItemIcon>
</ListItem>
);
}
}
StixCoreObjectOrStixCoreRelationshipContainerLineDummyComponent.propTypes = {
classes: PropTypes.object,
dataColumns: PropTypes.object,
};
export const StixCoreObjectOrStixCoreRelationshipContainerLineDummy = compose(
inject18n,
withStyles(styles),
)(StixCoreObjectOrStixCoreRelationshipContainerLineDummyComponent);
|
#!/usr/bin/node
require('./index.js')().run(process.env.MARKVIEW_PORT);
|
import Util from '../../../libs/util.js'
export default {
methods:{
//查询以及获取商品列表
getProduct(params){
return Util.get("fresh_show/pr/selectList_back",params)
.then(res => {
if(res.data.code==100000){
return res.data;
}
})
},
// 删除商品
removeProduct(params){
return Util.get('/fresh_show/pr/delPro_back',params)
.then( res => {
return res.data
})
},
// 添加商品
addProduct(params){
return Util.post('fresh_show/pr/addPro_back',params)
.then(res => {
return res.data
})
},
// 修改商品
updateProduct(params){
return Util.get('fresh_show/pr/updatePro_back',params)
.then(res => {
return res.data
})
},
// 查询商品详情
selectProduct(params){
return Util.get('fresh_show/pro/selectProDetaiById',params)
.then(res => {
return res.data
})
},
// 保存轮播图
saveProImg(params){
return Util.get("fresh_show/img/saveProImg",params)
.then(res => {
return res.data
})
},
// 删除轮播图
deteleProImg(params){
return Util.get("fresh_show/img/deteleProImg",params)
.then(res => {
return res.data
})
},
// 修改轮播图
updateProImg(params){
return Util.get("fresh_show/img/updateProImg",params)
.then(res => {
return res.data
})
},
// 查询商品评价
selectevaluationlist(params){
return Util.get("fresh_show/evaluation/selectevaluationlist",params)
.then(res => {
return res.data
})
},
// 删除商品评价
deleteEvaluation(params){
return Util.get("fresh_show/evaluation/deleteEvaluation",params)
.then(res => {
return res.data
})
}
}
} |
import React from "react";
import { connect } from "react-redux";
import classnames from "classnames";
import { getWeatherByCoords } from "./../../actions/weatherActions";
import { addError } from "./../../actions/errorActions";
import LoadingSpinner from "./LoadingSpinner";
function MyLocationButton({ isLoading, errors, getWeatherByCoords, addError }) {
const getLocation = position => {
const lat = position.coords.latitude;
const long = position.coords.longitude;
getWeatherByCoords(lat, long);
// get location
// get name of location
// get weather info
// save location to favorites - localStorage and redux
};
const handleLocationError = () => {
addError({
mylocation: "Could not retrieve location information from the browser."
});
};
const useMyLocation = () => {
navigator.geolocation.getCurrentPosition(getLocation, handleLocationError);
};
return (
<button
className={classnames("myLocationButton", { loading: isLoading })}
onClick={useMyLocation}
>
{isLoading && <LoadingSpinner />}
<div className="textContainer">
<i className="fas fa-map-marker-alt" />
<span>Use device location</span>
</div>
</button>
);
}
const mapStateToProps = state => ({
isLoading: state.layout.isLoading
});
export default connect(
mapStateToProps,
{ getWeatherByCoords, addError }
)(MyLocationButton);
|
from pikabot import CMD_LIST
from SysRuntime import *
from pikabot.main_plugs.plug import *
import sys
from telethon import events, functions, __version__
@ItzSjDude(outgoing=True, pattern=r"help ?(.*)")
async def cmd_list(event):
if not event.text[0].isalpha() and event.text[0] not in ("/", "#", "@", "!"):
tgbotusername = Var.TG_BOT_USER_NAME_BF_HER
input_str = event.pattern_match.group(1)
if tgbotusername is None or input_str == "text":
string = ""
for i in CMD_LIST:
string += "\n" + i + "\n"
for iter_list in CMD_LIST[i]:
string += " `" + str(iter_list) + "`"
string += "\n"
string += "\n"
if len(string) > 4095:
with io.BytesIO(str.encode(string)) as out_file:
out_file.name = "cmd.txt"
await event.client.send_file(
event.chat_id,
out_file,
force_document=True,
allow_cache=False,
caption="**COMMANDS**",
reply_to=reply_to_id
)
await event.delete()
else:
await event.edit(string)
elif input_str:
if input_str in CMD_LIST:
string = "Commands found in {}:".format(input_str)
for i in CMD_LIST[input_str]:
string += " " + i
string += "\n"
await event.edit(string)
else:
await event.edit(input_str + " is not a valid plugin!")
else:
help_string = f"""Pïkå¢hµ Úsêrßð† {helpstr}"""
results = await event.client.inline_query( # pylint:disable=E0602
tgbotusername,
help_string
)
await results[0].click(
event.chat_id,
reply_to=event.reply_to_msg_id,
hide_via=True
)
await event.delete()
@ItzSjDude(outgoing=True, pattern="syntax (.*)")
async def _(event):
if event.fwd_from:
return
plugin_name = event.pattern_match.group(1)
if plugin_name in CMD_LIST:
help_string = CMD_LIST[plugin_name]
unload_string = f"Use `.unload {plugin_name}` to remove this plugin.\n © Pikabot"
if help_string:
plugin_syntax = f"Syntax for plugin **{plugin_name}**:\n\n{help_string}\n{unload_string}"
else:
plugin_syntax = f"No DOCSTRING has been setup for {plugin_name} plugin."
else:
plugin_syntax = "Enter valid **Plugin** name.\nDo `.plugins` or `.help` to get list of valid plugin names."
await event.edit(plugin_syntax)
|
import unittest
from .. import TEST_DTYPES, TEST_DEVICE
import torch
from pytorch_metric_learning.losses import (
MultipleLosses,
ContrastiveLoss,
TripletMarginLoss,
)
from pytorch_metric_learning.miners import MultiSimilarityMiner
from pytorch_metric_learning.utils import common_functions as c_f
class TestMultipleLosses(unittest.TestCase):
def test_multiple_losses(self):
lossA = ContrastiveLoss()
lossB = TripletMarginLoss(0.1)
minerB = MultiSimilarityMiner()
loss_func1 = MultipleLosses(
losses={"lossA": lossA, "lossB": lossB},
weights={"lossA": 1, "lossB": 0.23},
miners={"lossB": minerB},
)
loss_func2 = MultipleLosses(
losses=[lossA, lossB], weights=[1, 0.23], miners=[None, minerB]
)
for loss_func in [loss_func1, loss_func2]:
for dtype in TEST_DTYPES:
embedding_angles = torch.arange(0, 180)
embeddings = torch.tensor(
[c_f.angle_to_coord(a) for a in embedding_angles],
requires_grad=True,
dtype=dtype,
).to(
TEST_DEVICE
) # 2D embeddings
labels = torch.randint(low=0, high=10, size=(180,))
loss = loss_func(embeddings, labels)
loss.backward()
indices_tupleB = minerB(embeddings, labels)
correct_loss = (
lossA(embeddings, labels)
+ lossB(embeddings, labels, indices_tupleB) * 0.23
)
self.assertTrue(torch.isclose(loss, correct_loss))
self.assertRaises(
AssertionError,
lambda: loss_func(embeddings, labels, indices_tupleB),
)
def test_input_indices_tuple(self):
lossA = ContrastiveLoss()
lossB = TripletMarginLoss(0.1)
miner = MultiSimilarityMiner()
loss_func1 = MultipleLosses(
losses={"lossA": lossA, "lossB": lossB}, weights={"lossA": 1, "lossB": 0.23}
)
loss_func2 = MultipleLosses(losses=[lossA, lossB], weights=[1, 0.23])
for loss_func in [loss_func1, loss_func2]:
for dtype in TEST_DTYPES:
embedding_angles = torch.arange(0, 180)
embeddings = torch.tensor(
[c_f.angle_to_coord(a) for a in embedding_angles],
requires_grad=True,
dtype=dtype,
).to(
TEST_DEVICE
) # 2D embeddings
labels = torch.randint(low=0, high=10, size=(180,))
indices_tuple = miner(embeddings, labels)
loss = loss_func(embeddings, labels, indices_tuple)
loss.backward()
correct_loss = (
lossA(embeddings, labels, indices_tuple)
+ lossB(embeddings, labels, indices_tuple) * 0.23
)
self.assertTrue(torch.isclose(loss, correct_loss))
def test_key_mismatch(self):
lossA = ContrastiveLoss()
lossB = TripletMarginLoss(0.1)
self.assertRaises(
AssertionError,
lambda: MultipleLosses(
losses={"lossA": lossA, "lossB": lossB},
weights={"blah": 1, "lossB": 0.23},
),
)
minerA = MultiSimilarityMiner()
self.assertRaises(
AssertionError,
lambda: MultipleLosses(
losses={"lossA": lossA, "lossB": lossB},
weights={"lossA": 1, "lossB": 0.23},
miners={"blah": minerA},
),
)
def test_length_mistmatch(self):
lossA = ContrastiveLoss()
lossB = TripletMarginLoss(0.1)
self.assertRaises(
AssertionError, lambda: MultipleLosses(losses=[lossA, lossB], weights=[1])
)
minerA = MultiSimilarityMiner()
self.assertRaises(
AssertionError,
lambda: MultipleLosses(
losses=[lossA, lossB],
weights=[1, 0.2],
miners=[minerA],
),
)
|
from ..classes import Check
from ..exceptions import CheckError
def is_latitude(check_obj):
check_obj.is_real()
try:
check_obj.is_between(-90.0, 90.0)
return check_obj
except AssertionError:
raise CheckError('{} is not a valid latitude'.format(check_obj.value))
def is_longitude(check_obj):
check_obj.is_real()
try:
check_obj.is_between(-180.0, 180.0)
return check_obj
except AssertionError:
raise CheckError('{} is not a valid longitude'.format(check_obj.value))
def is_azimuth(check_obj):
try:
check_obj.is_number().is_positive()
return check_obj
except:
raise CheckError('{} is not a valid azimuth'.format(check_obj.value))
def is_geopoint(check_obj):
check_obj.is_couple()
try:
first, second = (Check(geo_coord) for geo_coord in check_obj.value)
first.is_longitude()
second.is_latitude()
return check_obj
except AssertionError:
raise CheckError('{} is not a valid geographic point'.format(check_obj.value))
|
/* eslint-disable quotes */
/* globals svgEditor */
svgEditor.readLang({
lang: "nl",
dir: "ltr",
common: {
"ok": "Ok",
"cancel": "Annuleren",
"key_backspace": "backspace",
"key_del": "delete",
"key_down": "omlaag",
"key_up": "omhoog",
"more_opts": "More Options",
"url": "URL",
"width": "Width",
"height": "Height"
},
misc: {
"powered_by": "Mogelijk gemaakt door"
},
ui: {
"toggle_stroke_tools": "Toon/verberg meer lijn gereedschap",
"palette_info": "Klik om de vul kleur te veranderen, shift-klik om de lijn kleur te veranderen",
"zoom_level": "In-/uitzoomen",
"panel_drag": "Drag left/right to resize side panel"
},
properties: {
"id": "Identificeer het element",
"fill_color": "Verander vul kleur",
"stroke_color": "Verander lijn kleur",
"stroke_style": "Verander lijn stijl",
"stroke_width": "Verander lijn breedte",
"pos_x": "Verander X coordinaat",
"pos_y": "Verander Y coordinaat",
"linecap_butt": "Lijneinde: Geen",
"linecap_round": "Lijneinde: Rond",
"linecap_square": "Lijneinde: Vierkant",
"linejoin_bevel": "Lijnverbinding: Afgestompt",
"linejoin_miter": "Lijnverbinding: Hoek",
"linejoin_round": "Lijnverbinding: Rond",
"angle": "Draai",
"blur": "Verander Gaussische vervaging waarde",
"opacity": "Verander opaciteit geselecteerde item",
"circle_cx": "Verander het X coordinaat van het cirkel middelpunt",
"circle_cy": "Verander het Y coordinaat van het cirkel middelpunt",
"circle_r": "Verander de cirkel radius",
"ellipse_cx": "Verander het X coordinaat van het ellips middelpunt",
"ellipse_cy": "Verander het Y coordinaat van het ellips middelpunt",
"ellipse_rx": "Verander ellips X radius",
"ellipse_ry": "Verander ellips Y radius",
"line_x1": "Verander start X coordinaat van de lijn",
"line_x2": "Verander eind X coordinaat van de lijn",
"line_y1": "Verander start Y coordinaat van de lijn",
"line_y2": "Verander eind Y coordinaat van de lijn",
"rect_height": "Verander hoogte rechthoek",
"rect_width": "Verander breedte rechthoek",
"corner_radius": "Verander hoekradius rechthoek",
"image_width": "Verander breedte afbeelding",
"image_height": "Verander hoogte afbeelding",
"image_url": "Verander URL",
"node_x": "Verander X coordinaat knooppunt",
"node_y": "Verander Y coordinaat knooppunt",
"seg_type": "Verander segment type",
"straight_segments": "Recht",
"curve_segments": "Gebogen",
"text_contents": "Wijzig tekst",
"font_family": "Verander lettertype",
"font_size": "Verander lettertype grootte",
"bold": "Vet",
"italic": "Cursief"
},
tools: {
"main_menu": "Hoofdmenu",
"bkgnd_color_opac": "Verander achtergrond kleur/doorzichtigheid",
"connector_no_arrow": "Geen pijl",
"fitToContent": "Pas om inhoud",
"fit_to_all": "Pas om alle inhoud",
"fit_to_canvas": "Pas om canvas",
"fit_to_layer_content": "Pas om laag inhoud",
"fit_to_sel": "Pas om selectie",
"align_relative_to": "Uitlijnen relatief ten opzichte van ...",
"relativeTo": "Relatief ten opzichte van:",
"page": "Pagina",
"largest_object": "Grootste object",
"selected_objects": "Geselecteerde objecten",
"smallest_object": "Kleinste object",
"new_doc": "Nieuwe afbeelding",
"open_doc": "Open afbeelding",
"export_img": "Export",
"save_doc": "Afbeelding opslaan",
"import_doc": "Importeer SVG",
"align_to_page": "Lijn element uit relatief ten opzichte van de pagina",
"align_bottom": "Onder uitlijnen",
"align_center": "Centreren",
"align_left": "Links uitlijnen",
"align_middle": "Midden uitlijnen",
"align_right": "Rechts uitlijnen",
"align_top": "Boven uitlijnen",
"mode_select": "Selecteer",
"mode_fhpath": "Potlood",
"mode_line": "Lijn",
"mode_connect": "Verbind twee objecten",
"mode_rect": "Rectangle Tool",
"mode_square": "Square Tool",
"mode_fhrect": "Vrije stijl rechthoek",
"mode_ellipse": "Ellips",
"mode_circle": "Cirkel",
"mode_fhellipse": "Vrije stijl ellips",
"mode_path": "Pad",
"mode_shapelib": "Shape library",
"mode_text": "Tekst",
"mode_image": "Afbeelding",
"mode_zoom": "Zoom",
"mode_eyedropper": "Kleuren kopieer gereedschap",
"no_embed": "Let op: Dit plaatje kan niet worden geintegreerd (embeded). Het hangt af van dit pad om te worden afgebeeld.",
"undo": "Ongedaan maken",
"redo": "Opnieuw doen",
"tool_source": "Bewerk bron",
"wireframe_mode": "Draadmodel",
"toggle_grid": "Show/Hide Grid",
"clone": "Clone Element(s)",
"del": "Delete Element(s)",
"group_elements": "Groepeer elementen",
"make_link": "Make (hyper)link",
"set_link_url": "Set link URL (leave empty to remove)",
"to_path": "Zet om naar pad",
"reorient_path": "Herorienteer pad",
"ungroup": "Groepering opheffen",
"docprops": "Documenteigenschappen",
"imagelib": "Image Library",
"move_bottom": "Naar achtergrond",
"move_top": "Naar voorgrond",
"node_clone": "Kloon knooppunt",
"node_delete": "Delete knooppunt",
"node_link": "Koppel controle punten",
"add_subpath": "Subpad toevoegen",
"openclose_path": "Open/sluit subpad",
"source_save": "Veranderingen toepassen",
"cut": "Cut",
"copy": "Copy",
"paste": "Paste",
"paste_in_place": "Paste in Place",
"delete": "Delete",
"group": "Group",
"move_front": "Bring to Front",
"move_up": "Bring Forward",
"move_down": "Send Backward",
"move_back": "Send to Back"
},
layers: {
"layer": "Laag",
"layers": "Layers",
"del": "Delete laag",
"move_down": "Beweeg laag omlaag",
"new": "Nieuwe laag",
"rename": "Hernoem laag",
"move_up": "Beweeg laag omhoog",
"dupe": "Duplicate Layer",
"merge_down": "Merge Down",
"merge_all": "Merge All",
"move_elems_to": "Verplaats elementen naar:",
"move_selected": "Verplaats geselecteerde elementen naar andere laag"
},
config: {
"image_props": "Afbeeldingeigenschappen",
"doc_title": "Titel",
"doc_dims": "Canvas afmetingen",
"included_images": "Ingesloten afbeeldingen",
"image_opt_embed": "Toevoegen data (lokale bestanden)",
"image_opt_ref": "Gebruik bestand referentie",
"editor_prefs": "Editor eigenschappen",
"icon_size": "Icoon grootte",
"language": "Taal",
"background": "Editor achtergrond",
"editor_img_url": "Image URL",
"editor_bg_note": "Let op: De achtergrond wordt niet opgeslagen met de afbeelding.",
"icon_large": "Groot",
"icon_medium": "Gemiddeld",
"icon_small": "Klein",
"icon_xlarge": "Extra groot",
"select_predefined": "Kies voorgedefinieerd:",
"units_and_rulers": "Units & Rulers",
"show_rulers": "Show rulers",
"base_unit": "Base Unit:",
"grid": "Grid",
"snapping_onoff": "Snapping on/off",
"snapping_stepsize": "Snapping Step-Size:",
"grid_color": "Grid color"
},
shape_cats: {
"basic": "Basic",
"object": "Objects",
"symbol": "Symbols",
"arrow": "Arrows",
"flowchart": "Flowchart",
"animal": "Animals",
"game": "Cards & Chess",
"dialog_balloon": "Dialog balloons",
"electronics": "Electronics",
"math": "Mathematical",
"music": "Music",
"misc": "Miscellaneous",
"raphael_1": "raphaeljs.com set 1",
"raphael_2": "raphaeljs.com set 2"
},
imagelib: {
"select_lib": "Select an image library",
"show_list": "Show library list",
"import_single": "Import single",
"import_multi": "Import multiple",
"open": "Open as new document"
},
notification: {
"invalidAttrValGiven": "Verkeerde waarde gegeven",
"noContentToFitTo": "Geen inhoud om omheen te passen",
"dupeLayerName": "Er is al een laag met die naam!",
"enterUniqueLayerName": "Geef een unieke laag naam",
"enterNewLayerName": "Geef een nieuwe laag naam",
"layerHasThatName": "Laag heeft al die naam",
"QmoveElemsToLayer": "Verplaats geselecteerde elementen naar laag '%s'?",
"QwantToClear": "Wil je de afbeelding leeg maken?\nDit zal ook de ongedaan maak geschiedenis wissen!",
"QwantToOpen": "Do you want to open a new file?\nThis will also erase your undo history!",
"QerrorsRevertToSource": "Er waren analyse fouten in je SVG bron.\nTeruggaan naar de originele SVG bron?",
"QignoreSourceChanges": "Veranderingen in de SVG bron negeren?",
"featNotSupported": "Functie wordt niet ondersteund",
"enterNewImgURL": "Geef de nieuwe afbeelding URL",
"defsFailOnSave": "Let op: Vanwege een fout in je browser, kan dit plaatje verkeerd verschijnen (missende hoeken en/of elementen). Het zal goed verschijnen zodra het plaatje echt wordt opgeslagen.",
"loadingImage": "Laden van het plaatje, even geduld aub...",
"saveFromBrowser": "Kies \"Save As...\" in je browser om dit plaatje op te slaan als een %s bestand.",
"noteTheseIssues": "Let op de volgende problemen: ",
"unsavedChanges": "There are unsaved changes.",
"enterNewLinkURL": "Enter the new hyperlink URL",
"errorLoadingSVG": "Error: Unable to load SVG data",
"URLloadFail": "Unable to load from URL",
"retrieving": "Retrieving \"%s\"..."
},
confirmSetStorage: {
message: "By default and where supported, SVG-Edit can store your editor " +
"preferences and SVG content locally on your machine so you do not " +
"need to add these back each time you load SVG-Edit. If, for privacy " +
"reasons, you do not wish to store this information on your machine, " +
"you can change away from the default option below.",
storagePrefsAndContent: "Store preferences and SVG content locally",
storagePrefsOnly: "Only store preferences locally",
storagePrefs: "Store preferences locally",
storageNoPrefsOrContent: "Do not store my preferences or SVG content locally",
storageNoPrefs: "Do not store my preferences locally",
rememberLabel: "Remember this choice?",
rememberTooltip: "If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."
}
});
|
/* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2018 the ZAP development team
*
* 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.
*/
'use strict';
/**
* This file was automatically generated.
*/
function ForcedUser(clientApi) {
this.api = clientApi;
}
/**
* Returns 'true' if 'forced user' mode is enabled, 'false' otherwise
**/
ForcedUser.prototype.isForcedUserModeEnabled = function (callback) {
if (typeof callback === 'function') {
this.api.request('/forcedUser/view/isForcedUserModeEnabled/', callback);
return;
}
return this.api.requestPromise('/forcedUser/view/isForcedUserModeEnabled/');
};
/**
* Gets the user (ID) set as 'forced user' for the given context (ID)
**/
ForcedUser.prototype.getForcedUser = function (contextid, callback) {
if (typeof callback === 'function') {
this.api.request('/forcedUser/view/getForcedUser/', {'contextId' : contextid}, callback);
return;
}
return this.api.requestPromise('/forcedUser/view/getForcedUser/', {'contextId' : contextid});
};
/**
* Sets the user (ID) that should be used in 'forced user' mode for the given context (ID)
**/
ForcedUser.prototype.setForcedUser = function (contextid, userid, callback) {
if (typeof callback === 'function') {
this.api.request('/forcedUser/action/setForcedUser/', {'contextId' : contextid, 'userId' : userid}, callback);
return;
}
return this.api.requestPromise('/forcedUser/action/setForcedUser/', {'contextId' : contextid, 'userId' : userid});
};
/**
* Sets if 'forced user' mode should be enabled or not
**/
ForcedUser.prototype.setForcedUserModeEnabled = function (bool, callback) {
if (typeof callback === 'function') {
this.api.request('/forcedUser/action/setForcedUserModeEnabled/', {'boolean' : bool}, callback);
return;
}
return this.api.requestPromise('/forcedUser/action/setForcedUserModeEnabled/', {'boolean' : bool});
};
module.exports = ForcedUser;
|
const formatData = (data) => {
const temp = data
if (
Object.prototype.toString.call(temp) === '[object Array]'
|| Object.prototype.toString.call(temp) === '[object Object]'
) {
for (const key in temp) {
if (temp[key] === null || temp[key] === undefined) {
temp[key] = ''
} else {
temp[key] = formatData(temp[key])
}
}
}
return temp
}
module.exports = formatData
|
import { withRouter } from 'next/router';
import { ClientRouter as AppBridgeClientRouter } from '@shopify/app-bridge-react';
function ClientRouter(props) {
const { router } = props;
return <AppBridgeClientRouter history = { router }
/>;
};
export default withRouter(ClientRouter); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.