From 9f5a2828de9f49ceb07b9e803424da9b27802700 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 2 Mar 2016 17:11:08 +0300 Subject: [PATCH 01/30] updated PHP7 implementation --- config.m4 | 4 +- src/php_tarantool.h | 25 +-- src/tarantool.c | 479 ++++++++++++++++++++-------------------- src/tarantool_msgpack.c | 196 ++++++++-------- src/tarantool_msgpack.h | 23 +- src/tarantool_network.c | 9 +- 6 files changed, 354 insertions(+), 382 deletions(-) diff --git a/config.m4 b/config.m4 index 6a1f705..3cfe14e 100644 --- a/config.m4 +++ b/config.m4 @@ -1,6 +1,6 @@ dnl config.m4 for extension tarantool -PHP_ARG_WITH(tarantool, for tarantool support, -[ --with-tarantool Enable tarantool support]) +PHP_ARG_ENABLE(tarantool, for tarantool support, +[ --enable-tarantool Enable tarantool support]) if test "$PHP_TARANTOOL" != "no"; then PHP_NEW_EXTENSION(tarantool, \ diff --git a/src/php_tarantool.h b/src/php_tarantool.h index 54d585c..09c0dab 100644 --- a/src/php_tarantool.h +++ b/src/php_tarantool.h @@ -9,7 +9,6 @@ #include #include - #if PHP_VERSION_ID >= 70000 # include #else @@ -82,19 +81,19 @@ ZEND_END_MODULE_GLOBALS(tarantool) ZEND_EXTERN_MODULE_GLOBALS(tarantool); typedef struct tarantool_object { - zend_object zo; - char *host; - int port; - char *login; - char *passwd; - php_stream *stream; - char *persistent_id; - smart_string *value; - struct tp *tps; - char auth; - char *greeting; - char *salt; + char *host; + int port; + char *login; + char *passwd; + php_stream *stream; + char *persistent_id; + smart_string *value; + struct tp *tps; + char auth; + char *greeting; + char *salt; struct tarantool_schema *schema; + zend_object zo; } tarantool_object; #ifdef ZTS diff --git a/src/tarantool.c b/src/tarantool.c index 9331883..b5bb1cc 100644 --- a/src/tarantool.c +++ b/src/tarantool.c @@ -30,43 +30,49 @@ ZEND_DECLARE_MODULE_GLOBALS(tarantool) #endif #define TARANTOOL_PARSE_PARAMS(ID, FORMAT, ...) zval *ID; \ - if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \ + if (zend_parse_method_parameters(ZEND_NUM_ARGS(), \ getThis(), "O" FORMAT, \ &ID, tarantool_class_ptr, \ __VA_ARGS__) == FAILURE) \ RETURN_FALSE; -#define TARANTOOL_FETCH_OBJECT(NAME, ID) \ - tarantool_object *NAME = (tarantool_object *) \ - zend_object_store_get_object(ID TSRMLS_CC) +static inline tarantool_object *php_tarantool_object(zend_object *obj) { + return (tarantool_object *)((char*)(obj) - XtOffsetOf(tarantool_object, zo)); +} + +#define TARANTOOL_FETCH_OBJECT(NAME) \ + tarantool_object *NAME = php_tarantool_object(Z_OBJ_P(getThis())) + #define TARANTOOL_CONNECT_ON_DEMAND(CON, ID) \ if (!CON->stream) \ - if (__tarantool_connect(CON, ID TSRMLS_CC) == FAILURE) \ + if (__tarantool_connect(CON, ID) == FAILURE) \ RETURN_FALSE; \ if (CON->stream && php_stream_eof(CON->stream) != 0) \ - if (__tarantool_reconnect(CON, ID TSRMLS_CC) == FAILURE)\ + if (__tarantool_reconnect(CON, ID) == FAILURE)\ RETURN_FALSE; #define TARANTOOL_RETURN_DATA(HT, HEAD, BODY) \ - HashTable *ht_ ## HT = HASH_OF(HT); \ - zval **answer = NULL; \ - if (zend_hash_index_find(ht_ ## HT, TNT_DATA, \ - (void **)&answer) == FAILURE || !answer) { \ + HashTable *ht = HASH_OF(HT); \ + zval *answer; \ + answer = zend_hash_index_find(ht, TNT_DATA); \ + if (!answer) { \ THROW_EXC("No field DATA in body"); \ - zval_ptr_dtor(&HEAD); \ - zval_ptr_dtor(&BODY); \ + zval_ptr_dtor(HEAD); \ + zval_ptr_dtor(BODY); \ RETURN_FALSE; \ } \ - RETVAL_ZVAL(*answer, 1, 0); \ - zval_ptr_dtor(&HEAD); \ - zval_ptr_dtor(&BODY); \ + RETVAL_ZVAL(answer, 1, 0); \ + zval_ptr_dtor(HEAD); \ + zval_ptr_dtor(BODY); \ return; #define RLCI(NAME) \ REGISTER_LONG_CONSTANT("TARANTOOL_ITER_" # NAME, \ ITERATOR_ ## NAME, CONST_CS | CONST_PERSISTENT) +zend_object_handlers tarantool_obj_handlers; + zend_function_entry tarantool_module_functions[] = { {NULL, NULL, NULL} }; @@ -106,7 +112,7 @@ ZEND_GET_MODULE(tarantool) #endif static int -tarantool_stream_send(tarantool_object *obj TSRMLS_DC) { +tarantool_stream_send(tarantool_object *obj) { int rv = tntll_stream_send(obj->stream, SSTR_BEG(obj->value), SSTR_LEN(obj->value)); if (rv) return FAILURE; @@ -126,13 +132,15 @@ tarantool_stream_read(tarantool_object *obj, char *buf, size_t size) { static void tarantool_stream_close(tarantool_object *obj) { - if (obj->stream || obj->persistent_id) + if (obj->stream || obj->persistent_id) { tntll_stream_close(obj->stream, obj->persistent_id); + pefree(obj->persistent_id, 1); + } obj->stream = NULL; obj->persistent_id = NULL; } -int __tarantool_connect(tarantool_object *obj, zval *id TSRMLS_DC) { +int __tarantool_connect(tarantool_object *obj, zval *id) { bool persistent = (TARANTOOL_G(manager) != NULL); struct pool_manager *mng = TARANTOOL_G(manager); int status = SUCCESS; @@ -189,12 +197,13 @@ int __tarantool_connect(tarantool_object *obj, zval *id TSRMLS_DC) { return status; } -int __tarantool_reconnect(tarantool_object *obj, zval *id TSRMLS_DC) { +int __tarantool_reconnect(tarantool_object *obj, zval *id) { tarantool_stream_close(obj); - return __tarantool_connect(obj, id TSRMLS_CC); + return __tarantool_connect(obj, id); } -static void tarantool_free(tarantool_object *obj TSRMLS_DC) { +static void tarantool_free(zend_object *zobj) { + tarantool_object *obj = php_tarantool_object(zobj); int store = TARANTOOL_G(manager) && !obj->stream; if (!obj) return; if (store) { @@ -206,7 +215,10 @@ static void tarantool_free(tarantool_object *obj TSRMLS_DC) { pefree(obj->persistent_id, 1); obj->persistent_id = NULL; } - if (obj->schema) tarantool_schema_delete(obj->schema); + if (obj->schema) { + tarantool_schema_delete(obj->schema); + pefree(obj->schema, 1); + } } if (obj->host) pefree(obj->host, 1); if (obj->login) pefree(obj->login, 1); @@ -214,43 +226,25 @@ static void tarantool_free(tarantool_object *obj TSRMLS_DC) { if (obj->value) smart_string_free_ex(obj->value, 1); if (obj->tps) tarantool_tp_free(obj->tps); if (obj->value) pefree(obj->value, 1); - pefree(obj, 1); + zend_object_std_dtor(&obj->zo); } -static zend_object_value tarantool_create(zend_class_entry *entry TSRMLS_DC) { - zend_object_value retval; +static zend_object *tarantool_create(zend_class_entry *entry) { tarantool_object *obj = NULL; - obj = (tarantool_object *)pecalloc(sizeof(tarantool_object), 1, 1); - zend_object_std_init(&obj->zo, entry TSRMLS_CC); -#if PHP_VERSION_ID >= 50400 - object_properties_init((zend_object *)obj, entry); -#else - { - zval *tmp; - zend_hash_copy(obj->zo.properties, - &entry->default_properties, - (copy_ctor_func_t) zval_add_ref, - (void *)&tmp, - sizeof(zval *)); - } -#endif - retval.handle = zend_objects_store_put(obj, - (zend_objects_store_dtor_t )zend_objects_destroy_object, - (zend_objects_free_object_storage_t )tarantool_free, - NULL TSRMLS_CC); - retval.handlers = zend_get_std_object_handlers(); - return retval; + obj = (tarantool_object *)pecalloc(sizeof(tarantool_object), 1, 0); + zend_object_std_init(&obj->zo, entry); + obj->zo.handlers = &tarantool_obj_handlers; + + return &obj->zo; } static int64_t tarantool_step_recv( tarantool_object *obj, unsigned long sync, - zval **header, - zval **body TSRMLS_DC) { + zval *header, + zval *body) { char pack_len[5] = {0, 0, 0, 0, 0}; - *header = NULL; - *body = NULL; if (tarantool_stream_read(obj, pack_len, 5) != 5) { THROW_EXC("Can't read query from server"); goto error; @@ -274,8 +268,7 @@ static int64_t tarantool_step_recv( goto error; } if (php_mp_unpack(header, &pos) == FAILURE || - Z_TYPE_PP(header) != IS_ARRAY) { - *header = NULL; + Z_TYPE_P(header) != IS_ARRAY) { goto error; } if (php_mp_check(pos, body_size)) { @@ -283,44 +276,45 @@ static int64_t tarantool_step_recv( goto error; } if (php_mp_unpack(body, &pos) == FAILURE) { - *body = NULL; goto error; } - HashTable *hash = HASH_OF(*header); - zval **val = NULL; + HashTable *hash = HASH_OF(header); + zval *val; - if (zend_hash_index_find(hash, TNT_SYNC, (void **)&val) == SUCCESS) { - if (Z_LVAL_PP(val) != sync) { + val = zend_hash_index_find(hash, TNT_SYNC); + if (val) { + if (Z_LVAL_P(val) != sync) { THROW_EXC("request sync is not equal response sync. " "closing connection"); tarantool_stream_close(obj); goto error; } } - val = NULL; - if (zend_hash_index_find(hash, TNT_CODE, (void **)&val) == SUCCESS) { - if (Z_LVAL_PP(val) == TNT_OK) { + val = zend_hash_index_find(hash, TNT_CODE); + if (val) { + if (Z_LVAL_P(val) == TNT_OK) { SSTR_LEN(obj->value) = 0; smart_string_nullify(obj->value); return SUCCESS; } - HashTable *hash = HASH_OF(*body); - zval **errstr = NULL; - long errcode = Z_LVAL_PP(val) & ((1 << 15) - 1 ); - if (zend_hash_index_find(hash, TNT_ERROR, (void **)&errstr) == FAILURE) { - ALLOC_INIT_ZVAL(*errstr); - ZVAL_STRING(*errstr, "empty", 1); + HashTable *hash = HASH_OF(body); + zval *errstr; + long errcode = Z_LVAL_P(val) & ((1 << 15) - 1 ); + + errstr = zend_hash_index_find(hash, TNT_ERROR); + if (!errstr) { + ZVAL_STRING(errstr, "empty"); } - THROW_EXC("Query error %d: %s", errcode, Z_STRVAL_PP(errstr), - Z_STRLEN_PP(errstr)); + THROW_EXC("Query error %d: %s", errcode, Z_STRVAL_P(errstr), + Z_STRLEN_P(errstr)); goto error; } THROW_EXC("Failed to retrieve answer code"); error: obj->stream = NULL; - if (*header) zval_ptr_dtor(header); - if (*body) zval_ptr_dtor(body); + if (header) zval_ptr_dtor(header); + if (body) zval_ptr_dtor(body); SSTR_LEN(obj->value) = 0; smart_string_nullify(obj->value); return FAILURE; @@ -350,77 +344,76 @@ const zend_function_entry tarantool_class_methods[] = { /* ####################### HELPERS ####################### */ -zval *pack_key(zval *args, char select) { +void pack_key(zval *args, char select, zval *arr) { if (args && Z_TYPE_P(args) == IS_ARRAY) - return args; - zval *arr = NULL; - ALLOC_INIT_ZVAL(arr); + ZVAL_DUP(arr, args); + return; if (select && (!args || Z_TYPE_P(args) == IS_NULL)) { - array_init_size(arr, 0); - return arr; + array_init(arr); + return; } - array_init_size(arr, 1); + array_init(arr); Z_ADDREF_P(args); add_next_index_zval(arr, args); - return arr; } -zval *tarantool_update_verify_op(zval *op, long position TSRMLS_DC) { +int tarantool_update_verify_op(zval *op, long position, zval *arr) { if (Z_TYPE_P(op) != IS_ARRAY || !php_mp_is_hash(op)) { THROW_EXC("Op must be MAP at pos %d", position); - return NULL; + return 0; } HashTable *ht = HASH_OF(op); size_t n = zend_hash_num_elements(ht); - zval *arr; ALLOC_INIT_ZVAL(arr); array_init_size(arr, n); - zval **opstr, **oppos; - if (zend_hash_find(ht, "op", 3, (void **)&opstr) == FAILURE || - !opstr || Z_TYPE_PP(opstr) != IS_STRING || - Z_STRLEN_PP(opstr) != 1) { + zval *opstr, *oppos; + + array_init(arr); + + opstr = zend_hash_str_find(ht, "op", strlen("op")); + if (!opstr || Z_TYPE_P(opstr) != IS_STRING || + Z_STRLEN_P(opstr) != 1) { THROW_EXC("Field OP must be provided and must be STRING with " "length=1 at position %d", position); - return NULL; + return 0; } - if (zend_hash_find(ht, "field", 6, (void **)&oppos) == FAILURE || - !oppos || Z_TYPE_PP(oppos) != IS_LONG) { + oppos = zend_hash_str_find(ht, "field", strlen("field")); + if (!oppos || Z_TYPE_P(oppos) != IS_LONG) { THROW_EXC("Field FIELD must be provided and must be LONG at " "position %d", position); - return NULL; + return 0; } - zval **oparg, **splice_len, **splice_val; - switch(Z_STRVAL_PP(opstr)[0]) { + zval *oparg, *splice_len, *splice_val; + switch(Z_STRVAL_P(opstr)[0]) { case ':': if (n != 5) { THROW_EXC("Five fields must be provided for splice" " at position %d", position); - return NULL; + return 0; } - if (zend_hash_find(ht, "offset", 7, - (void **)&oparg) == FAILURE || - !oparg || Z_TYPE_PP(oparg) != IS_LONG) { + oparg = zend_hash_str_find(ht, "offset", strlen("offset")); + if (!oparg || Z_TYPE_P(oparg) != IS_LONG) { THROW_EXC("Field OFFSET must be provided and must be LONG for " "splice at position %d", position); - return NULL; + return 0; } - if (zend_hash_find(ht, "length", 7, (void **)&splice_len) == FAILURE || - !oparg || Z_TYPE_PP(splice_len) != IS_LONG) { + splice_len = zend_hash_str_find(ht, "length", strlen("length")); + if (!oparg || Z_TYPE_P(splice_len) != IS_LONG) { THROW_EXC("Field LENGTH must be provided and must be LONG for " "splice at position %d", position); - return NULL; + return 0; } - if (zend_hash_find(ht, "list", 5, (void **)&splice_val) == FAILURE || - !oparg || Z_TYPE_PP(splice_val) != IS_STRING) { + splice_val = zend_hash_str_find(ht, "list", strlen("list")); + if (!oparg || Z_TYPE_P(splice_val) != IS_STRING) { THROW_EXC("Field LIST must be provided and must be STRING for " "splice at position %d", position); - return NULL; + return 0; } - add_next_index_stringl(arr, Z_STRVAL_PP(opstr), 1, 1); - add_next_index_long(arr, Z_LVAL_PP(oppos)); - add_next_index_long(arr, Z_LVAL_PP(oparg)); - add_next_index_long(arr, Z_LVAL_PP(splice_len)); - add_next_index_stringl(arr, Z_STRVAL_PP(splice_val), - Z_STRLEN_PP(splice_val), 1); + add_next_index_stringl(arr, Z_STRVAL_P(opstr), 1); + add_next_index_long(arr, Z_LVAL_P(oppos)); + add_next_index_long(arr, Z_LVAL_P(oparg)); + add_next_index_long(arr, Z_LVAL_P(splice_len)); + add_next_index_stringl(arr, Z_STRVAL_P(splice_val), + Z_STRLEN_P(splice_val)); break; case '+': case '-': @@ -430,79 +423,78 @@ zval *tarantool_update_verify_op(zval *op, long position TSRMLS_DC) { case '#': if (n != 3) { THROW_EXC("Three fields must be provided for '%s' at " - "position %d", Z_STRVAL_PP(opstr), position); - return NULL; + "position %d", Z_STRVAL_P(opstr), position); + return 0; } - if (zend_hash_find(ht, "arg", 4, (void **)&oparg) == FAILURE || - !oparg || Z_TYPE_PP(oparg) != IS_LONG) { + oparg = zend_hash_str_find(ht, "arg", strlen("arg")); + if (!oparg || Z_TYPE_P(oparg) != IS_LONG) { THROW_EXC("Field ARG must be provided and must be LONG for " - "'%s' at position %d", Z_STRVAL_PP(opstr), position); - return NULL; + "'%s' at position %d", Z_STRVAL_P(opstr), position); + return 0; } - add_next_index_stringl(arr, Z_STRVAL_PP(opstr), 1, 1); - add_next_index_long(arr, Z_LVAL_PP(oppos)); - add_next_index_long(arr, Z_LVAL_PP(oparg)); + add_next_index_stringl(arr, Z_STRVAL_P(opstr), 1); + add_next_index_long(arr, Z_LVAL_P(oppos)); + add_next_index_long(arr, Z_LVAL_P(oparg)); break; case '=': case '!': if (n != 3) { THROW_EXC("Three fields must be provided for '%s' at " - "position %d", Z_STRVAL_PP(opstr), position); - return NULL; + "position %d", Z_STRVAL_P(opstr), position); + return 0; } - if (zend_hash_find(ht, "arg", 4, (void **)&oparg) == FAILURE || - !oparg || !PHP_MP_SERIALIZABLE_PP(oparg)) { + oparg = zend_hash_str_find(ht, "arg", strlen("arg")); + if (!oparg || !PHP_MP_SERIALIZABLE_P(oparg)) { THROW_EXC("Field ARG must be provided and must be SERIALIZABLE for " - "'%s' at position %d", Z_STRVAL_PP(opstr), position); - return NULL; + "'%s' at position %d", Z_STRVAL_P(opstr), position); + return 0; } - add_next_index_stringl(arr, Z_STRVAL_PP(opstr), 1, 1); - add_next_index_long(arr, Z_LVAL_PP(oppos)); - SEPARATE_ZVAL_TO_MAKE_IS_REF(oparg); - add_next_index_zval(arr, *oparg); + add_next_index_stringl(arr, Z_STRVAL_P(opstr), 1); + add_next_index_long(arr, Z_LVAL_P(oppos)); + //SEPARATE_ZVAL_TO_MAKE_IS_REF(oparg); + Z_ADDREF_P(oparg); + add_next_index_zval(arr, oparg); break; default: THROW_EXC("Unknown operation '%s' at position %d", - Z_STRVAL_PP(opstr), position); - return NULL; + Z_STRVAL_P(opstr), position); + return 0; } - return arr; + return 1; } -zval *tarantool_update_verify_args(zval *args TSRMLS_DC) { +int tarantool_update_verify_args(zval *args, zval *arr) { if (Z_TYPE_P(args) != IS_ARRAY || php_mp_is_hash(args)) { THROW_EXC("Provided value for update OPS must be Array"); - return NULL; + return 0; } HashTable *ht = HASH_OF(args); size_t n = zend_hash_num_elements(ht); - zval **op, *arr; - ALLOC_INIT_ZVAL(arr); array_init_size(arr, n); + array_init(arr); size_t key_index = 0; for(; key_index < n; ++key_index) { - int status = zend_hash_index_find(ht, key_index, - (void **)&op); - if (status != SUCCESS || !op) { + zval *op = zend_hash_index_find(ht, key_index); + if (!op) { THROW_EXC("Internal Array Error"); goto cleanup; } - zval *op_arr = tarantool_update_verify_op(*op, key_index - TSRMLS_CC); - if (!op_arr) + zval op_arr; + if (!tarantool_update_verify_op(op, key_index, &op_arr)) goto cleanup; - if (add_next_index_zval(arr, op_arr) == FAILURE) { + if (add_next_index_zval(arr, &op_arr) == FAILURE) { THROW_EXC("Internal Array Error"); goto cleanup; } } - return arr; + return 1; cleanup: - return NULL; + zval_ptr_dtor(arr); + return 0; } -int get_spaceno_by_name(tarantool_object *obj, zval *id, zval *name TSRMLS_DC) { +int get_spaceno_by_name(tarantool_object *obj, zval *id, zval *name) { if (Z_TYPE_P(name) == IS_LONG) return Z_LVAL_P(name); if (Z_TYPE_P(name) != IS_STRING) { THROW_EXC("Space ID must be String or Long"); @@ -521,7 +513,7 @@ int get_spaceno_by_name(tarantool_object *obj, zval *id, zval *name TSRMLS_DC) { obj->value->len = tp_used(obj->tps); tarantool_tp_flush(obj->tps); - if (tarantool_stream_send(obj TSRMLS_CC) == FAILURE) + if (tarantool_stream_send(obj) == FAILURE) return FAILURE; char pack_len[5] = {0, 0, 0, 0, 0}; @@ -560,7 +552,7 @@ int get_spaceno_by_name(tarantool_object *obj, zval *id, zval *name TSRMLS_DC) { } int get_indexno_by_name(tarantool_object *obj, zval *id, - int space_no, zval *name TSRMLS_DC) { + int space_no, zval *name) { if (Z_TYPE_P(name) == IS_LONG) return Z_LVAL_P(name); if (Z_TYPE_P(name) != IS_STRING) { @@ -581,7 +573,7 @@ int get_indexno_by_name(tarantool_object *obj, zval *id, obj->value->len = tp_used(obj->tps); tarantool_tp_flush(obj->tps); - if (tarantool_stream_send(obj TSRMLS_CC) == FAILURE) + if (tarantool_stream_send(obj) == FAILURE) return FAILURE; char pack_len[5] = {0, 0, 0, 0, 0}; @@ -627,8 +619,7 @@ PHP_RINIT_FUNCTION(tarantool) { return SUCCESS; } -static void -php_tarantool_init_globals(zend_tarantool_globals *tarantool_globals) { +static void php_tarantool_init_globals(zend_tarantool_globals *tarantool_globals) { tarantool_globals->sync_counter = 0; tarantool_globals->retry_count = 1; tarantool_globals->retry_sleep = 0.1; @@ -665,7 +656,10 @@ PHP_MINIT_FUNCTION(tarantool) { zend_class_entry tarantool_class; INIT_CLASS_ENTRY(tarantool_class, "Tarantool", tarantool_class_methods); tarantool_class.create_object = tarantool_create; - tarantool_class_ptr = zend_register_internal_class(&tarantool_class TSRMLS_CC); + tarantool_class_ptr = zend_register_internal_class(&tarantool_class); + memcpy(&tarantool_obj_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); + tarantool_obj_handlers.offset = XtOffsetOf(tarantool_object, zo); + tarantool_obj_handlers.free_obj = tarantool_free; return SUCCESS; } @@ -684,11 +678,11 @@ PHP_MINFO_FUNCTION(tarantool) { } PHP_METHOD(tarantool_class, __construct) { - char *host = NULL; int host_len = 0; + char *host = NULL; size_t host_len = 0; long port = 0; TARANTOOL_PARSE_PARAMS(id, "|sl", &host, &host_len, &port); - TARANTOOL_FETCH_OBJECT(obj, id); + TARANTOOL_FETCH_OBJECT(obj); /* * validate parameters @@ -722,9 +716,9 @@ PHP_METHOD(tarantool_class, __construct) { PHP_METHOD(tarantool_class, connect) { TARANTOOL_PARSE_PARAMS(id, "", id); - TARANTOOL_FETCH_OBJECT(obj, id); + TARANTOOL_FETCH_OBJECT(obj); if (obj->stream && obj->stream->mode) RETURN_TRUE; - if (__tarantool_connect(obj, id TSRMLS_CC) == FAILURE) + if (__tarantool_connect(obj, id) == FAILURE) RETURN_FALSE; RETURN_TRUE; } @@ -751,7 +745,7 @@ int __tarantool_authenticate(tarantool_object *obj) { obj->value->len = tp_used(obj->tps); tarantool_tp_flush(obj->tps); - if (tarantool_stream_send(obj TSRMLS_CC) == FAILURE) + if (tarantool_stream_send(obj) == FAILURE) return FAILURE; int status = SUCCESS; @@ -814,7 +808,7 @@ PHP_METHOD(tarantool_class, authenticate) { TARANTOOL_PARSE_PARAMS(id, "s|s", &login, &login_len, &passwd, &passwd_len); - TARANTOOL_FETCH_OBJECT(obj, id); + TARANTOOL_FETCH_OBJECT(obj); obj->login = pestrdup(login, 1); obj->passwd = NULL; if (passwd != NULL) @@ -827,7 +821,7 @@ PHP_METHOD(tarantool_class, authenticate) { PHP_METHOD(tarantool_class, flush_schema) { TARANTOOL_PARSE_PARAMS(id, "", id); - TARANTOOL_FETCH_OBJECT(obj, id); + TARANTOOL_FETCH_OBJECT(obj); tarantool_schema_flush(obj->schema); RETURN_TRUE; @@ -835,7 +829,7 @@ PHP_METHOD(tarantool_class, flush_schema) { PHP_METHOD(tarantool_class, close) { TARANTOOL_PARSE_PARAMS(id, "", id); - TARANTOOL_FETCH_OBJECT(obj, id); + TARANTOOL_FETCH_OBJECT(obj); if (TARANTOOL_G(manager) == NULL) { tarantool_stream_close(obj); @@ -848,16 +842,16 @@ PHP_METHOD(tarantool_class, close) { PHP_METHOD(tarantool_class, ping) { TARANTOOL_PARSE_PARAMS(id, "", id); - TARANTOOL_FETCH_OBJECT(obj, id); + TARANTOOL_FETCH_OBJECT(obj); TARANTOOL_CONNECT_ON_DEMAND(obj, id); long sync = TARANTOOL_G(sync_counter)++; php_tp_encode_ping(obj->value, sync); - if (tarantool_stream_send(obj TSRMLS_CC) == FAILURE) + if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; - zval *header, *body; - if (tarantool_step_recv(obj, sync, &header, &body TSRMLS_CC) == FAILURE) + zval header, body; + if (tarantool_step_recv(obj, sync, &header, &body) == FAILURE) RETURN_FALSE; zval_ptr_dtor(&header); @@ -867,13 +861,13 @@ PHP_METHOD(tarantool_class, ping) { PHP_METHOD(tarantool_class, select) { zval *space = NULL, *index = NULL; - zval *key = NULL, *key_new = NULL; + zval *key = NULL, key_new; zval *zlimit = NULL; long limit = LONG_MAX-1, offset = 0, iterator = 0; TARANTOOL_PARSE_PARAMS(id, "z|zzzll", &space, &key, &index, &zlimit, &offset, &iterator); - TARANTOOL_FETCH_OBJECT(obj, id); + TARANTOOL_FETCH_OBJECT(obj); TARANTOOL_CONNECT_ON_DEMAND(obj, id); if (zlimit != NULL && Z_TYPE_P(zlimit) != IS_NULL && Z_TYPE_P(zlimit) != IS_LONG) { @@ -884,216 +878,211 @@ PHP_METHOD(tarantool_class, select) { limit = Z_LVAL_P(zlimit); } - long space_no = get_spaceno_by_name(obj, id, space TSRMLS_CC); + long space_no = get_spaceno_by_name(obj, id, space); if (space_no == FAILURE) RETURN_FALSE; int32_t index_no = 0; if (index) { - index_no = get_indexno_by_name(obj, id, space_no, index TSRMLS_CC); + index_no = get_indexno_by_name(obj, id, space_no, index); if (index_no == FAILURE) RETURN_FALSE; } - key_new = pack_key(key, 1); + pack_key(key, 1, &key_new); long sync = TARANTOOL_G(sync_counter)++; php_tp_encode_select(obj->value, sync, space_no, index_no, - limit, offset, iterator, key_new); - if (key != key_new) { - zval_ptr_dtor(&key_new); - } - if (tarantool_stream_send(obj TSRMLS_CC) == FAILURE) + limit, offset, iterator, &key_new); + zval_ptr_dtor(&key_new); + if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; - zval *header = NULL, *body = NULL; - if (tarantool_step_recv(obj, sync, &header, &body TSRMLS_CC) == FAILURE) + zval header, body; + if (tarantool_step_recv(obj, sync, &header, &body) == FAILURE) RETURN_FALSE; - TARANTOOL_RETURN_DATA(body, header, body); + TARANTOOL_RETURN_DATA(&body, &header, &body); } PHP_METHOD(tarantool_class, insert) { zval *space, *tuple; TARANTOOL_PARSE_PARAMS(id, "za", &space, &tuple); - TARANTOOL_FETCH_OBJECT(obj, id); + TARANTOOL_FETCH_OBJECT(obj); TARANTOOL_CONNECT_ON_DEMAND(obj, id); - long space_no = get_spaceno_by_name(obj, id, space TSRMLS_CC); + long space_no = get_spaceno_by_name(obj, id, space); if (space_no == FAILURE) RETURN_FALSE; long sync = TARANTOOL_G(sync_counter)++; php_tp_encode_insert_or_replace(obj->value, sync, space_no, tuple, TNT_INSERT); - if (tarantool_stream_send(obj TSRMLS_CC) == FAILURE) + if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; - zval *header, *body; - if (tarantool_step_recv(obj, sync, &header, &body TSRMLS_CC) == FAILURE) + zval header, body; + if (tarantool_step_recv(obj, sync, &header, &body) == FAILURE) RETURN_FALSE; - TARANTOOL_RETURN_DATA(body, header, body); + TARANTOOL_RETURN_DATA(&body, &header, &body); } PHP_METHOD(tarantool_class, replace) { zval *space, *tuple; TARANTOOL_PARSE_PARAMS(id, "za", &space, &tuple); - TARANTOOL_FETCH_OBJECT(obj, id); + TARANTOOL_FETCH_OBJECT(obj); TARANTOOL_CONNECT_ON_DEMAND(obj, id); - long space_no = get_spaceno_by_name(obj, id, space TSRMLS_CC); + long space_no = get_spaceno_by_name(obj, id, space); if (space_no == FAILURE) RETURN_FALSE; long sync = TARANTOOL_G(sync_counter)++; php_tp_encode_insert_or_replace(obj->value, sync, space_no, tuple, TNT_REPLACE); - if (tarantool_stream_send(obj TSRMLS_CC) == FAILURE) + if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; - zval *header, *body; - if (tarantool_step_recv(obj, sync, &header, &body TSRMLS_CC) == FAILURE) + zval header, body; + if (tarantool_step_recv(obj, sync, &header, &body) == FAILURE) RETURN_FALSE; - TARANTOOL_RETURN_DATA(body, header, body); + TARANTOOL_RETURN_DATA(&body, &header, &body); } PHP_METHOD(tarantool_class, delete) { zval *space = NULL, *key = NULL, *index = NULL; - zval *key_new = NULL; + zval key_new; TARANTOOL_PARSE_PARAMS(id, "zz|z", &space, &key, &index); - TARANTOOL_FETCH_OBJECT(obj, id); + TARANTOOL_FETCH_OBJECT(obj); TARANTOOL_CONNECT_ON_DEMAND(obj, id); - long space_no = get_spaceno_by_name(obj, id, space TSRMLS_CC); + long space_no = get_spaceno_by_name(obj, id, space); if (space_no == FAILURE) RETURN_FALSE; int32_t index_no = 0; if (index) { - index_no = get_indexno_by_name(obj, id, space_no, index TSRMLS_CC); + index_no = get_indexno_by_name(obj, id, space_no, index); if (index_no == FAILURE) RETURN_FALSE; } - key_new = pack_key(key, 0); + pack_key(key, 0, &key_new); long sync = TARANTOOL_G(sync_counter)++; - php_tp_encode_delete(obj->value, sync, space_no, index_no, key_new); - if (key != key_new) { - zval_ptr_dtor(&key_new); - } - if (tarantool_stream_send(obj TSRMLS_CC) == FAILURE) + php_tp_encode_delete(obj->value, sync, space_no, index_no, &key_new); + zval_ptr_dtor(&key_new); + if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; - zval *header, *body; - if (tarantool_step_recv(obj, sync, &header, &body TSRMLS_CC) == FAILURE) + zval header, body; + if (tarantool_step_recv(obj, sync, &header, &body) == FAILURE) RETURN_FALSE; - TARANTOOL_RETURN_DATA(body, header, body); + TARANTOOL_RETURN_DATA(&body, &header, &body); } PHP_METHOD(tarantool_class, call) { char *proc; size_t proc_len; - zval *tuple = NULL; + zval *tuple = NULL, tuple_new; TARANTOOL_PARSE_PARAMS(id, "s|z", &proc, &proc_len, &tuple); - TARANTOOL_FETCH_OBJECT(obj, id); + TARANTOOL_FETCH_OBJECT(obj); TARANTOOL_CONNECT_ON_DEMAND(obj, id); - zval *tuple_new = pack_key(tuple, 1); + pack_key(tuple, 1, &tuple_new); long sync = TARANTOOL_G(sync_counter)++; - php_tp_encode_call(obj->value, sync, proc, proc_len, tuple_new); - if (tuple_new != tuple) { - zval_ptr_dtor(&tuple_new); - } - if (tarantool_stream_send(obj TSRMLS_CC) == FAILURE) + php_tp_encode_call(obj->value, sync, proc, proc_len, &tuple_new); + zval_ptr_dtor(&tuple_new); + if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; - zval *header, *body; - if (tarantool_step_recv(obj, sync, &header, &body TSRMLS_CC) == FAILURE) + zval header, body; + if (tarantool_step_recv(obj, sync, &header, &body) == FAILURE) RETURN_FALSE; - TARANTOOL_RETURN_DATA(body, header, body); + TARANTOOL_RETURN_DATA(&body, &header, &body); } PHP_METHOD(tarantool_class, eval) { char *proc; size_t proc_len; - zval *tuple = NULL; + zval *tuple = NULL, tuple_new; TARANTOOL_PARSE_PARAMS(id, "s|z", &proc, &proc_len, &tuple); - TARANTOOL_FETCH_OBJECT(obj, id); + TARANTOOL_FETCH_OBJECT(obj); TARANTOOL_CONNECT_ON_DEMAND(obj, id); - zval *tuple_new = pack_key(tuple, 1); + pack_key(tuple, 1, &tuple_new); long sync = TARANTOOL_G(sync_counter)++; - php_tp_encode_eval(obj->value, sync, proc, proc_len, tuple_new); - if (tuple_new != tuple) { - zval_ptr_dtor(&tuple_new); - } - if (tarantool_stream_send(obj TSRMLS_CC) == FAILURE) + php_tp_encode_eval(obj->value, sync, proc, proc_len, &tuple_new); + zval_ptr_dtor(&tuple_new); + if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; - zval *header, *body; - if (tarantool_step_recv(obj, sync, &header, &body TSRMLS_CC) == FAILURE) + zval header, body; + if (tarantool_step_recv(obj, sync, &header, &body) == FAILURE) RETURN_FALSE; - TARANTOOL_RETURN_DATA(body, header, body); + TARANTOOL_RETURN_DATA(&body, &header, &body); } PHP_METHOD(tarantool_class, update) { zval *space = NULL, *key = NULL, *index = NULL, *args = NULL; - zval *key_new = NULL; + zval key_new, v_args; TARANTOOL_PARSE_PARAMS(id, "zza|z", &space, &key, &args, &index); - TARANTOOL_FETCH_OBJECT(obj, id); + TARANTOOL_FETCH_OBJECT(obj); TARANTOOL_CONNECT_ON_DEMAND(obj, id); - long space_no = get_spaceno_by_name(obj, id, space TSRMLS_CC); + long space_no = get_spaceno_by_name(obj, id, space); if (space_no == FAILURE) RETURN_FALSE; int32_t index_no = 0; if (index) { - index_no = get_indexno_by_name(obj, id, space_no, index TSRMLS_CC); + index_no = get_indexno_by_name(obj, id, space_no, index); if (index_no == FAILURE) RETURN_FALSE; } - args = tarantool_update_verify_args(args TSRMLS_CC); - if (!args) RETURN_FALSE; - key_new = pack_key(key, 0); - long sync = TARANTOOL_G(sync_counter)++; - php_tp_encode_update(obj->value, sync, space_no, index_no, key_new, args); - if (key != key_new) { - zval_ptr_dtor(&key_new); + if (!tarantool_update_verify_args(args, &v_args)) { + RETURN_FALSE; } - if (tarantool_stream_send(obj TSRMLS_CC) == FAILURE) + pack_key(key, 0, &key_new); + long sync = TARANTOOL_G(sync_counter)++; + php_tp_encode_update(obj->value, sync, space_no, index_no, &key_new, &v_args); + zval_ptr_dtor(&key_new); + zval_ptr_dtor(&v_args); + if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; - zval *header, *body; - if (tarantool_step_recv(obj, sync, &header, &body TSRMLS_CC) == FAILURE) + zval header, body; + if (tarantool_step_recv(obj, sync, &header, &body) == FAILURE) RETURN_FALSE; - TARANTOOL_RETURN_DATA(body, header, body); + TARANTOOL_RETURN_DATA(&body, &header, &body); } PHP_METHOD(tarantool_class, upsert) { zval *space = NULL, *tuple = NULL, *args = NULL; + zval v_args; TARANTOOL_PARSE_PARAMS(id, "zaa", &space, &tuple, &args); - TARANTOOL_FETCH_OBJECT(obj, id); + TARANTOOL_FETCH_OBJECT(obj); TARANTOOL_CONNECT_ON_DEMAND(obj, id); - long space_no = get_spaceno_by_name(obj, id, space TSRMLS_CC); + long space_no = get_spaceno_by_name(obj, id, space); if (space_no == FAILURE) RETURN_FALSE; - args = tarantool_update_verify_args(args TSRMLS_CC); - if (!args) RETURN_FALSE; + if (!tarantool_update_verify_args(args, &v_args)) { + RETURN_FALSE; + } long sync = TARANTOOL_G(sync_counter)++; - php_tp_encode_upsert(obj->value, sync, space_no, tuple, args); - if (tarantool_stream_send(obj TSRMLS_CC) == FAILURE) + php_tp_encode_upsert(obj->value, sync, space_no, tuple, &v_args); + zval_ptr_dtor(&v_args); + if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; - zval *header, *body; - if (tarantool_step_recv(obj, sync, &header, &body TSRMLS_CC) == FAILURE) + zval header, body; + if (tarantool_step_recv(obj, sync, &header, &body) == FAILURE) RETURN_FALSE; - TARANTOOL_RETURN_DATA(body, header, body); + TARANTOOL_RETURN_DATA(&body, &header, &body); } diff --git a/src/tarantool_msgpack.c b/src/tarantool_msgpack.c index 6581570..6f36170 100644 --- a/src/tarantool_msgpack.c +++ b/src/tarantool_msgpack.c @@ -115,23 +115,21 @@ void php_mp_pack_array_recursively(smart_string *str, zval *val) { HashTable *ht = Z_ARRVAL_P(val); size_t n = zend_hash_num_elements(ht); - zval **data; + zval *data; php_mp_pack_array(str, n); size_t key_index = 0; for (; key_index < n; ++key_index) { - int status = zend_hash_index_find(ht, key_index, - (void **)&data); - if (status != SUCCESS || !data || data == &val || - (Z_TYPE_PP(data) == IS_ARRAY && \ - Z_ARRVAL_PP(data)->nApplyCount > 1)) { + data = zend_hash_index_find(ht, key_index); + if (!data || data == val || + (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data)) && Z_ARRVAL_P(data)->u.v.nApplyCount > 1)) { php_mp_pack_nil(str); } else { - if (Z_TYPE_PP(data) == IS_ARRAY) - Z_ARRVAL_PP(data)->nApplyCount++; - php_mp_pack(str, *data); - if (Z_TYPE_PP(data) == IS_ARRAY) - Z_ARRVAL_PP(data)->nApplyCount--; + if (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data))) + Z_ARRVAL_P(data)->u.v.nApplyCount++; + php_mp_pack(str, data); + if (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data))) + Z_ARRVAL_P(data)->u.v.nApplyCount--; } } } @@ -140,18 +138,16 @@ void php_mp_pack_hash_recursively(smart_string *str, zval *val) { HashTable *ht = Z_ARRVAL_P(val); size_t n = zend_hash_num_elements(ht); - char *key; - uint key_len; + zend_string *key; int key_type; ulong key_index; - zval **data; + zval *data; HashPosition pos; php_mp_pack_hash(str, n); zend_hash_internal_pointer_reset_ex(ht, &pos); for (;; zend_hash_move_forward_ex(ht, &pos)) { - key_type = zend_hash_get_current_key_ex( - ht, &key, &key_len, &key_index, 0, &pos); + key_type = zend_hash_get_current_key_ex(ht, &key, &key_index, &pos); if (key_type == HASH_KEY_NON_EXISTENT) break; switch (key_type) { @@ -159,25 +155,23 @@ void php_mp_pack_hash_recursively(smart_string *str, zval *val) { php_mp_pack_long(str, key_index); break; case HASH_KEY_IS_STRING: - php_mp_pack_string(str, key, key_len -1); + php_mp_pack_string(str, ZSTR_VAL(key), ZSTR_LEN(key)); break; default: /* TODO: THROW EXCEPTION */ php_mp_pack_string(str, "", strlen("")); break; } - int status = zend_hash_get_current_data_ex(ht, - (void *)&data, &pos); - if (status != SUCCESS || !data || data == &val || - (Z_TYPE_PP(data) == IS_ARRAY && - Z_ARRVAL_PP(data)->nApplyCount > 1)) { + data = zend_hash_get_current_data_ex(ht, &pos); + if (!data || data == val || + (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data)) && Z_ARRVAL_P(data)->u.v.nApplyCount > 1)) { php_mp_pack_nil(str); } else { - if (Z_TYPE_PP(data) == IS_ARRAY) - Z_ARRVAL_PP(data)->nApplyCount++; - php_mp_pack(str, *data); - if (Z_TYPE_PP(data) == IS_ARRAY) - Z_ARRVAL_PP(data)->nApplyCount--; + if (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data))) + Z_ARRVAL_P(data)->u.v.nApplyCount++; + php_mp_pack(str, data); + if (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data))) + Z_ARRVAL_P(data)->u.v.nApplyCount--; } } } @@ -193,8 +187,10 @@ void php_mp_pack(smart_string *str, zval *val) { case IS_DOUBLE: php_mp_pack_double(str, (double )Z_DVAL_P(val)); break; - case IS_BOOL: - php_mp_pack_bool(str, Z_BVAL_P(val)); + case IS_TRUE: + php_mp_pack_bool(str, 1); + case IS_FALSE: + php_mp_pack_bool(str, 0); break; case IS_ARRAY: if (php_mp_is_hash(val)) @@ -214,68 +210,61 @@ void php_mp_pack(smart_string *str, zval *val) { /* UNPACKING ROUTINES */ -ptrdiff_t php_mp_unpack_nil(zval **oval, char **str) { - ALLOC_INIT_ZVAL(*oval); +ptrdiff_t php_mp_unpack_nil(zval *oval, char **str) { size_t needed = mp_sizeof_nil(); mp_decode_nil((const char **)str); - ZVAL_NULL(*oval); + ZVAL_NULL(oval); str += 1; return needed; } -ptrdiff_t php_mp_unpack_uint(zval **oval, char **str) { - ALLOC_INIT_ZVAL(*oval); +ptrdiff_t php_mp_unpack_uint(zval *oval, char **str) { unsigned long val = mp_decode_uint((const char **)str); - ZVAL_LONG(*oval, val); + ZVAL_LONG(oval, val); return mp_sizeof_uint(val); } -ptrdiff_t php_mp_unpack_int(zval **oval, char **str) { - ALLOC_INIT_ZVAL(*oval); +ptrdiff_t php_mp_unpack_int(zval *oval, char **str) { long val = mp_decode_int((const char **)str); - ZVAL_LONG(*oval, val); + ZVAL_LONG(oval, val); return mp_sizeof_int(val); } -ptrdiff_t php_mp_unpack_str(zval **oval, char **str) { - ALLOC_INIT_ZVAL(*oval); +ptrdiff_t php_mp_unpack_str(zval *oval, char **str) { uint32_t len = 0; const char *out = mp_decode_str((const char **)str, &len); - ZVAL_STRINGL(*oval, out, len, 1); + ZVAL_STRINGL(oval, out, len); return mp_sizeof_str(len); } -ptrdiff_t php_mp_unpack_bin(zval **oval, char **str) { - ALLOC_INIT_ZVAL(*oval); +ptrdiff_t php_mp_unpack_bin(zval *oval, char **str) { uint32_t len = 0; const char *out = mp_decode_bin((const char **)str, &len); char *out_alloc = emalloc(len * sizeof(char)); memcpy(out_alloc, out, len); - ZVAL_STRINGL(*oval, out_alloc, len, 0); + ZVAL_STRINGL(oval, out_alloc, len); + efree(out_alloc); return mp_sizeof_bin(len); } -ptrdiff_t php_mp_unpack_bool(zval **oval, char **str) { - ALLOC_INIT_ZVAL(*oval); +ptrdiff_t php_mp_unpack_bool(zval *oval, char **str) { if (mp_decode_bool((const char **)str)) { - ZVAL_TRUE(*oval); + ZVAL_TRUE(oval); } else { - ZVAL_FALSE(*oval); + ZVAL_FALSE(oval); } return mp_sizeof_bool(str); } -ptrdiff_t php_mp_unpack_float(zval **oval, char **str) { - ALLOC_INIT_ZVAL(*oval); +ptrdiff_t php_mp_unpack_float(zval *oval, char **str) { float val = mp_decode_float((const char **)str); - ZVAL_DOUBLE(*oval, (double )val); + ZVAL_DOUBLE(oval, (double )val); return mp_sizeof_float(val); } -ptrdiff_t php_mp_unpack_double(zval **oval, char **str) { - ALLOC_INIT_ZVAL(*oval); +ptrdiff_t php_mp_unpack_double(zval *oval, char **str) { double val = mp_decode_double((const char **)str); - ZVAL_DOUBLE(*oval, (double )val); + ZVAL_DOUBLE(oval, (double )val); return mp_sizeof_double(val); } @@ -287,8 +276,10 @@ static const char *op_to_string(zend_uchar type) { return "LONG"; case(IS_DOUBLE): return "DOUBLE"; - case(IS_BOOL): - return "BOOL"; + case(IS_TRUE): + return "TRUE"; + case(IS_FALSE): + return "FALSE"; case(IS_ARRAY): return "ARRAY"; case(IS_OBJECT): @@ -312,29 +303,26 @@ static const char *op_to_string(zend_uchar type) { } } -ptrdiff_t php_mp_unpack_map(zval **oval, char **str) { +ptrdiff_t php_mp_unpack_map(zval *oval, char **str) { TSRMLS_FETCH(); - ALLOC_INIT_ZVAL(*oval); size_t len = mp_decode_map((const char **)str); - array_init_size(*oval, len); + array_init_size(oval, len); while (len-- > 0) { - zval *key = NULL; - zval *value = NULL; + zval key, value; + ZVAL_UNDEF(&key); + ZVAL_UNDEF(&value); if (php_mp_unpack(&key, str) == FAILURE) { - key = NULL; goto error; } if (php_mp_unpack(&value, str) == FAILURE) { - value = NULL; goto error; } - switch (Z_TYPE_P(key)) { + switch (Z_TYPE(key)) { case IS_LONG: - add_index_zval(*oval, Z_LVAL_P(key), value); + add_index_zval(oval, Z_LVAL(key), &value); break; case IS_STRING: - add_assoc_zval_ex(*oval, Z_STRVAL_P(key), - Z_STRLEN_P(key) + 1, value); + add_assoc_zval(oval, Z_STRVAL(key), &value); break; case IS_DOUBLE: /* convert to INT/STRING for future uses */ @@ -355,30 +343,29 @@ ptrdiff_t php_mp_unpack_map(zval **oval, char **str) { zval_ptr_dtor(&key); continue; error: - if (key) zval_ptr_dtor(&key); - if (value) zval_ptr_dtor(&value); - if (*oval) zval_ptr_dtor(oval); + zval_ptr_dtor(&key); + zval_ptr_dtor(&value); + zval_ptr_dtor(oval); return FAILURE; } return SUCCESS; } -ptrdiff_t php_mp_unpack_array(zval **oval, char **str) { - ALLOC_INIT_ZVAL(*oval); +ptrdiff_t php_mp_unpack_array(zval *oval, char **str) { size_t len = mp_decode_array((const char **)str); - array_init_size(*oval, len); + array_init_size(oval, len); while (len-- > 0) { - zval *value = {0}; + zval value; if (php_mp_unpack(&value, str) == FAILURE) { zval_ptr_dtor(oval); return FAILURE; } - add_next_index_zval(*oval, value); + add_next_index_zval(oval, &value); } return SUCCESS; } -ssize_t php_mp_unpack(zval **oval, char **str) { +ssize_t php_mp_unpack(zval *oval, char **str) { size_t needed = 0; switch (mp_typeof(**str)) { case MP_NIL: @@ -452,22 +439,19 @@ size_t php_mp_sizeof_array_recursively(zval *val) { size_t n = zend_hash_num_elements(ht); size_t needed = php_mp_sizeof_array(n); size_t key_index = 0; - int status = 0; - zval **data; + zval *data; for (; key_index < n; ++key_index) { - status = zend_hash_index_find(ht, key_index, - (void **)&data); - if (status != SUCCESS || !data || data == &val || - (Z_TYPE_PP(data) == IS_ARRAY && \ - Z_ARRVAL_PP(data)->nApplyCount > 1)) { + data = zend_hash_index_find(ht, key_index); + if (!data || data == val || + (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data)) && Z_ARRVAL_P(data)->u.v.nApplyCount > 1)) { needed += php_mp_sizeof_nil(); } else { - if (Z_TYPE_PP(data) == IS_ARRAY) - Z_ARRVAL_PP(data)->nApplyCount++; - needed += php_mp_sizeof(*data); - if (Z_TYPE_PP(data) == IS_ARRAY) - Z_ARRVAL_PP(data)->nApplyCount--; + if (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data))) + Z_ARRVAL_P(data)->u.v.nApplyCount++; + needed += php_mp_sizeof(data); + if (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data))) + Z_ARRVAL_P(data)->u.v.nApplyCount--; } } return needed; @@ -479,17 +463,15 @@ size_t php_mp_sizeof_hash_recursively(zval *val) { size_t n = zend_hash_num_elements(ht); size_t needed = php_mp_sizeof_hash(n); - char *key; - uint key_len; + zend_string *key; int key_type; ulong key_index; - zval **data; + zval *data; HashPosition pos; zend_hash_internal_pointer_reset_ex(ht, &pos); for (;; zend_hash_move_forward_ex(ht, &pos)) { - key_type = zend_hash_get_current_key_ex( - ht, &key, &key_len, &key_index, 0, &pos); + key_type = zend_hash_get_current_key_ex(ht, &key, &key_index, &pos); if (key_type == HASH_KEY_NON_EXISTENT) break; switch (key_type) { @@ -497,26 +479,23 @@ size_t php_mp_sizeof_hash_recursively(zval *val) { needed += php_mp_sizeof_long(key_index); break; case HASH_KEY_IS_STRING: - needed += php_mp_sizeof_string(key_len - 1); + needed += php_mp_sizeof_string(ZSTR_LEN(key)); break; default: /* TODO: THROW EXCEPTION */ needed += php_mp_sizeof_string(strlen("")); break; } - int status = zend_hash_get_current_data_ex(ht, - (void *)&data, &pos); - if (status != SUCCESS || !data || data == &val || - (Z_TYPE_PP(data) == IS_ARRAY && - Z_ARRVAL_PP(data)->nApplyCount > 1)) { - /* TODO: THROW EXCEPTION */ + data = zend_hash_get_current_data_ex(ht, &pos); + if (!data || data == val || + (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data)) && Z_ARRVAL_P(data)->u.v.nApplyCount > 1)) { needed += php_mp_sizeof_nil(); } else { - if (Z_TYPE_PP(data) == IS_ARRAY) - Z_ARRVAL_PP(data)->nApplyCount++; - needed += php_mp_sizeof(*data); - if (Z_TYPE_PP(data) == IS_ARRAY) - Z_ARRVAL_PP(data)->nApplyCount--; + if (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data))) + Z_ARRVAL_P(data)->u.v.nApplyCount++; + needed += php_mp_sizeof(data); + if (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data))) + Z_ARRVAL_P(data)->u.v.nApplyCount--; } } return needed; @@ -534,8 +513,11 @@ size_t php_mp_sizeof(zval *val) { case IS_DOUBLE: return php_mp_sizeof_double((double )Z_DVAL_P(val)); break; - case IS_BOOL: - return php_mp_sizeof_bool(Z_BVAL_P(val)); + case IS_FALSE: + return php_mp_sizeof_bool(0); + break; + case IS_TRUE: + return php_mp_sizeof_bool(1); break; case IS_ARRAY: if (php_mp_is_hash(val)) diff --git a/src/tarantool_msgpack.h b/src/tarantool_msgpack.h index b509f08..a7135cb 100644 --- a/src/tarantool_msgpack.h +++ b/src/tarantool_msgpack.h @@ -5,17 +5,18 @@ #include -#define PHP_MP_SERIALIZABLE_PP(v) (Z_TYPE_PP(v) == IS_NULL || \ - Z_TYPE_PP(v) == IS_LONG || \ - Z_TYPE_PP(v) == IS_DOUBLE || \ - Z_TYPE_PP(v) == IS_BOOL || \ - Z_TYPE_PP(v) == IS_ARRAY || \ - Z_TYPE_PP(v) == IS_STRING) - -size_t php_mp_check (const char *str, size_t str_size); -void php_mp_pack (smart_string *buf, zval *val ); -ssize_t php_mp_unpack (zval **oval, char **str ); -size_t php_mp_sizeof (zval *val); +#define PHP_MP_SERIALIZABLE_P(v) (Z_TYPE_P(v) == IS_NULL || \ + Z_TYPE_P(v) == IS_LONG || \ + Z_TYPE_P(v) == IS_DOUBLE || \ + Z_TYPE_P(v) == IS_FALSE || \ + Z_TYPE_P(v) == IS_TRUE || \ + Z_TYPE_P(v) == IS_ARRAY || \ + Z_TYPE_P(v) == IS_STRING) + +size_t php_mp_check (const char *str, size_t str_size); +void php_mp_pack (smart_string *buf, zval *val ); +ssize_t php_mp_unpack (zval *oval, char **str ); +size_t php_mp_sizeof (zval *val); void php_mp_pack_package_size (smart_string *str, size_t val); size_t php_mp_unpack_package_size (char *buf); diff --git a/src/tarantool_network.c b/src/tarantool_network.c index 52a7d9f..e494cbe 100644 --- a/src/tarantool_network.c +++ b/src/tarantool_network.c @@ -62,11 +62,12 @@ int tntll_stream_open(const char *host, int port, const char *pid, php_stream *stream = NULL; struct timeval tv = {0}; int errcode = 0, options = 0, flags = 0; - char *addr = NULL, *errstr = NULL; + char *addr = NULL; + zend_string *errstr = NULL; size_t addr_len = 0; addr_len = spprintf(&addr, 0, "tcp://%s:%d", host, port); - options = ENFORCE_SAFE_MODE | REPORT_ERRORS; + options = REPORT_ERRORS; if (pid) options |= STREAM_OPEN_PERSISTENT; flags = STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT; double_to_tv(TARANTOOL_G(timeout), &tv); @@ -76,7 +77,7 @@ int tntll_stream_open(const char *host, int port, const char *pid, if (errcode || !stream) { spprintf(err, 0, "Failed to connect [%d]: %s", errcode, - errstr); + ZSTR_VAL(errstr)); goto error; } @@ -100,7 +101,7 @@ int tntll_stream_open(const char *host, int port, const char *pid, *ostream = stream; return 0; error: - if (errstr) efree(errstr); + if (errstr) zend_string_release(errstr); if (stream) tntll_stream_close(stream, pid); return -1; } From dcee45bf777fdd60d6d83cee6868e6259f67b647 Mon Sep 17 00:00:00 2001 From: bigbes Date: Fri, 11 Mar 2016 11:52:52 +0000 Subject: [PATCH 02/30] php7-v1 --- src/tarantool.c | 83 +++++++++++++++++++++++++++---------------------- test-run.py | 2 +- 2 files changed, 46 insertions(+), 39 deletions(-) diff --git a/src/tarantool.c b/src/tarantool.c index b5bb1cc..fb0a4b2 100644 --- a/src/tarantool.c +++ b/src/tarantool.c @@ -29,34 +29,30 @@ ZEND_DECLARE_MODULE_GLOBALS(tarantool) #include "config.h" #endif -#define TARANTOOL_PARSE_PARAMS(ID, FORMAT, ...) zval *ID; \ - if (zend_parse_method_parameters(ZEND_NUM_ARGS(), \ - getThis(), "O" FORMAT, \ - &ID, tarantool_class_ptr, \ - __VA_ARGS__) == FAILURE) \ - RETURN_FALSE; +#define TARANTOOL_PARSE_PARAMS(ID, FORMAT, ...) \ + if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), \ + "O" FORMAT, &ID, tarantool_class_ptr, \ + ##__VA_ARGS__) == FAILURE) { \ + RETURN_FALSE; \ + } \ static inline tarantool_object *php_tarantool_object(zend_object *obj) { return (tarantool_object *)((char*)(obj) - XtOffsetOf(tarantool_object, zo)); } -#define TARANTOOL_FETCH_OBJECT(NAME) \ - tarantool_object *NAME = php_tarantool_object(Z_OBJ_P(getThis())) - - #define TARANTOOL_CONNECT_ON_DEMAND(CON, ID) \ if (!CON->stream) \ - if (__tarantool_connect(CON, ID) == FAILURE) \ + if (__tarantool_connect(CON, ID) == FAILURE) \ RETURN_FALSE; \ if (CON->stream && php_stream_eof(CON->stream) != 0) \ - if (__tarantool_reconnect(CON, ID) == FAILURE)\ + if (__tarantool_reconnect(CON, ID) == FAILURE) \ RETURN_FALSE; #define TARANTOOL_RETURN_DATA(HT, HEAD, BODY) \ - HashTable *ht = HASH_OF(HT); \ - zval *answer; \ + HashTable *ht = HASH_OF(HT); \ + zval *answer; \ answer = zend_hash_index_find(ht, TNT_DATA); \ - if (!answer) { \ + if (!answer) { \ THROW_EXC("No field DATA in body"); \ zval_ptr_dtor(HEAD); \ zval_ptr_dtor(BODY); \ @@ -681,8 +677,9 @@ PHP_METHOD(tarantool_class, __construct) { char *host = NULL; size_t host_len = 0; long port = 0; + zval *id; TARANTOOL_PARSE_PARAMS(id, "|sl", &host, &host_len, &port); - TARANTOOL_FETCH_OBJECT(obj); + tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); /* * validate parameters @@ -715,8 +712,9 @@ PHP_METHOD(tarantool_class, __construct) { } PHP_METHOD(tarantool_class, connect) { - TARANTOOL_PARSE_PARAMS(id, "", id); - TARANTOOL_FETCH_OBJECT(obj); + zval *id; + TARANTOOL_PARSE_PARAMS(id, ""); + tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); if (obj->stream && obj->stream->mode) RETURN_TRUE; if (__tarantool_connect(obj, id) == FAILURE) RETURN_FALSE; @@ -724,8 +722,6 @@ PHP_METHOD(tarantool_class, connect) { } int __tarantool_authenticate(tarantool_object *obj) { - TSRMLS_FETCH(); - tarantool_schema_flush(obj->schema); tarantool_tp_update(obj->tps); int batch_count = 3; @@ -803,12 +799,12 @@ int __tarantool_authenticate(tarantool_object *obj) { } PHP_METHOD(tarantool_class, authenticate) { - char *login; int login_len; + char *login = NULL; int login_len = 0; char *passwd = NULL; int passwd_len = 0; - TARANTOOL_PARSE_PARAMS(id, "s|s", &login, &login_len, - &passwd, &passwd_len); - TARANTOOL_FETCH_OBJECT(obj); + zval *id; + TARANTOOL_PARSE_PARAMS(id, "ss", &login, &login_len, &passwd, &passwd_len); + tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); obj->login = pestrdup(login, 1); obj->passwd = NULL; if (passwd != NULL) @@ -820,16 +816,18 @@ PHP_METHOD(tarantool_class, authenticate) { } PHP_METHOD(tarantool_class, flush_schema) { - TARANTOOL_PARSE_PARAMS(id, "", id); - TARANTOOL_FETCH_OBJECT(obj); + zval *id; + TARANTOOL_PARSE_PARAMS(id, ""); + tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); tarantool_schema_flush(obj->schema); RETURN_TRUE; } PHP_METHOD(tarantool_class, close) { - TARANTOOL_PARSE_PARAMS(id, "", id); - TARANTOOL_FETCH_OBJECT(obj); + zval *id; + TARANTOOL_PARSE_PARAMS(id, ""); + tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); if (TARANTOOL_G(manager) == NULL) { tarantool_stream_close(obj); @@ -841,8 +839,9 @@ PHP_METHOD(tarantool_class, close) { } PHP_METHOD(tarantool_class, ping) { - TARANTOOL_PARSE_PARAMS(id, "", id); - TARANTOOL_FETCH_OBJECT(obj); + zval *id; + TARANTOOL_PARSE_PARAMS(id, ""); + tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); TARANTOOL_CONNECT_ON_DEMAND(obj, id); long sync = TARANTOOL_G(sync_counter)++; @@ -865,9 +864,10 @@ PHP_METHOD(tarantool_class, select) { zval *zlimit = NULL; long limit = LONG_MAX-1, offset = 0, iterator = 0; + zval *id; TARANTOOL_PARSE_PARAMS(id, "z|zzzll", &space, &key, &index, &zlimit, &offset, &iterator); - TARANTOOL_FETCH_OBJECT(obj); + tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); TARANTOOL_CONNECT_ON_DEMAND(obj, id); if (zlimit != NULL && Z_TYPE_P(zlimit) != IS_NULL && Z_TYPE_P(zlimit) != IS_LONG) { @@ -904,8 +904,9 @@ PHP_METHOD(tarantool_class, select) { PHP_METHOD(tarantool_class, insert) { zval *space, *tuple; + zval *id; TARANTOOL_PARSE_PARAMS(id, "za", &space, &tuple); - TARANTOOL_FETCH_OBJECT(obj); + tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); TARANTOOL_CONNECT_ON_DEMAND(obj, id); long space_no = get_spaceno_by_name(obj, id, space); @@ -928,8 +929,9 @@ PHP_METHOD(tarantool_class, insert) { PHP_METHOD(tarantool_class, replace) { zval *space, *tuple; + zval *id; TARANTOOL_PARSE_PARAMS(id, "za", &space, &tuple); - TARANTOOL_FETCH_OBJECT(obj); + tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); TARANTOOL_CONNECT_ON_DEMAND(obj, id); long space_no = get_spaceno_by_name(obj, id, space); @@ -953,8 +955,9 @@ PHP_METHOD(tarantool_class, delete) { zval *space = NULL, *key = NULL, *index = NULL; zval key_new; + zval *id; TARANTOOL_PARSE_PARAMS(id, "zz|z", &space, &key, &index); - TARANTOOL_FETCH_OBJECT(obj); + tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); TARANTOOL_CONNECT_ON_DEMAND(obj, id); long space_no = get_spaceno_by_name(obj, id, space); @@ -984,8 +987,9 @@ PHP_METHOD(tarantool_class, call) { char *proc; size_t proc_len; zval *tuple = NULL, tuple_new; + zval *id; TARANTOOL_PARSE_PARAMS(id, "s|z", &proc, &proc_len, &tuple); - TARANTOOL_FETCH_OBJECT(obj); + tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); TARANTOOL_CONNECT_ON_DEMAND(obj, id); pack_key(tuple, 1, &tuple_new); @@ -1007,8 +1011,9 @@ PHP_METHOD(tarantool_class, eval) { char *proc; size_t proc_len; zval *tuple = NULL, tuple_new; + zval *id; TARANTOOL_PARSE_PARAMS(id, "s|z", &proc, &proc_len, &tuple); - TARANTOOL_FETCH_OBJECT(obj); + tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); TARANTOOL_CONNECT_ON_DEMAND(obj, id); pack_key(tuple, 1, &tuple_new); @@ -1030,8 +1035,9 @@ PHP_METHOD(tarantool_class, update) { zval *space = NULL, *key = NULL, *index = NULL, *args = NULL; zval key_new, v_args; + zval *id; TARANTOOL_PARSE_PARAMS(id, "zza|z", &space, &key, &args, &index); - TARANTOOL_FETCH_OBJECT(obj); + tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); TARANTOOL_CONNECT_ON_DEMAND(obj, id); long space_no = get_spaceno_by_name(obj, id, space); @@ -1064,8 +1070,9 @@ PHP_METHOD(tarantool_class, upsert) { zval *space = NULL, *tuple = NULL, *args = NULL; zval v_args; + zval *id; TARANTOOL_PARSE_PARAMS(id, "zaa", &space, &tuple, &args); - TARANTOOL_FETCH_OBJECT(obj); + tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); TARANTOOL_CONNECT_ON_DEMAND(obj, id); long space_no = get_spaceno_by_name(obj, id, space); diff --git a/test-run.py b/test-run.py index fb38f93..c6192d7 100755 --- a/test-run.py +++ b/test-run.py @@ -102,7 +102,7 @@ def main(): print('Running "%s" with "%s"' % (cmd, php_ini)) proc = subprocess.Popen(cmd, shell=True, cwd=test_cwd) rv = proc.wait() - if rv != 0: + if rv != 0 or '--gdb' in sys.argv: return -1 finally: From 8ce245968927bf53224ff767f2a9c5492ba7addd Mon Sep 17 00:00:00 2001 From: bigbes Date: Fri, 11 Mar 2016 14:40:57 +0000 Subject: [PATCH 03/30] Fix every test --- src/tarantool.c | 43 ++++++++++++++++++++++++------------- src/tarantool_msgpack.c | 18 ++++++---------- test-run.py | 4 +++- test/MsgPackTest.php | 8 +++---- test/shared/phpunit_bas.xml | 4 ++-- test/shared/phpunit_tap.xml | 4 ++-- 6 files changed, 45 insertions(+), 36 deletions(-) diff --git a/src/tarantool.c b/src/tarantool.c index fb0a4b2..8deaafd 100644 --- a/src/tarantool.c +++ b/src/tarantool.c @@ -242,10 +242,14 @@ static int64_t tarantool_step_recv( zval *body) { char pack_len[5] = {0, 0, 0, 0, 0}; if (tarantool_stream_read(obj, pack_len, 5) != 5) { + header = NULL; + body = NULL; THROW_EXC("Can't read query from server"); goto error; } if (php_mp_check(pack_len, 5)) { + header = NULL; + body = NULL; THROW_EXC("Failed verifying msgpack"); goto error; } @@ -253,6 +257,8 @@ static int64_t tarantool_step_recv( smart_string_ensure(obj->value, body_size); if (tarantool_stream_read(obj, SSTR_POS(obj->value), body_size) != body_size) { + header = NULL; + body = NULL; THROW_EXC("Can't read query from server"); goto error; } @@ -260,18 +266,24 @@ static int64_t tarantool_step_recv( char *pos = SSTR_BEG(obj->value); if (php_mp_check(pos, body_size)) { + header = NULL; + body = NULL; THROW_EXC("Failed verifying msgpack"); goto error; } if (php_mp_unpack(header, &pos) == FAILURE || Z_TYPE_P(header) != IS_ARRAY) { + header = NULL; + body = NULL; goto error; } if (php_mp_check(pos, body_size)) { + body = NULL; THROW_EXC("Failed verifying msgpack"); goto error; } if (php_mp_unpack(body, &pos) == FAILURE) { + body = NULL; goto error; } @@ -341,15 +353,15 @@ const zend_function_entry tarantool_class_methods[] = { /* ####################### HELPERS ####################### */ void pack_key(zval *args, char select, zval *arr) { - if (args && Z_TYPE_P(args) == IS_ARRAY) + if (args && Z_TYPE_P(args) == IS_ARRAY) { ZVAL_DUP(arr, args); return; + } if (select && (!args || Z_TYPE_P(args) == IS_NULL)) { array_init(arr); return; } array_init(arr); - Z_ADDREF_P(args); add_next_index_zval(arr, args); } @@ -447,8 +459,8 @@ int tarantool_update_verify_op(zval *op, long position, zval *arr) { } add_next_index_stringl(arr, Z_STRVAL_P(opstr), 1); add_next_index_long(arr, Z_LVAL_P(oppos)); - //SEPARATE_ZVAL_TO_MAKE_IS_REF(oparg); - Z_ADDREF_P(oparg); + // SEPARATE_ZVAL_TO_MAKE_IS_REF(oparg); + // Z_ADDREF_P(oparg); add_next_index_zval(arr, oparg); break; default: @@ -799,13 +811,14 @@ int __tarantool_authenticate(tarantool_object *obj) { } PHP_METHOD(tarantool_class, authenticate) { - char *login = NULL; int login_len = 0; - char *passwd = NULL; int passwd_len = 0; + const char *login = NULL; size_t login_len = 0; + const char *passwd = NULL; size_t passwd_len = 0; zval *id; - TARANTOOL_PARSE_PARAMS(id, "ss", &login, &login_len, &passwd, &passwd_len); + TARANTOOL_PARSE_PARAMS(id, "s|s", &login, &login_len, &passwd, &passwd_len); + tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); - obj->login = pestrdup(login, 1); + obj->login = pestrndup(login, login_len, 1); obj->passwd = NULL; if (passwd != NULL) obj->passwd = estrdup(passwd); @@ -888,8 +901,8 @@ PHP_METHOD(tarantool_class, select) { pack_key(key, 1, &key_new); long sync = TARANTOOL_G(sync_counter)++; - php_tp_encode_select(obj->value, sync, space_no, index_no, - limit, offset, iterator, &key_new); + php_tp_encode_select(obj->value, sync, space_no, index_no, limit, + offset, iterator, &key_new); zval_ptr_dtor(&key_new); if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; @@ -953,7 +966,7 @@ PHP_METHOD(tarantool_class, replace) { PHP_METHOD(tarantool_class, delete) { zval *space = NULL, *key = NULL, *index = NULL; - zval key_new; + zval key_new = {0}; zval *id; TARANTOOL_PARSE_PARAMS(id, "zz|z", &space, &key, &index); @@ -1008,18 +1021,18 @@ PHP_METHOD(tarantool_class, call) { } PHP_METHOD(tarantool_class, eval) { - char *proc; size_t proc_len; + char *code; size_t code_len; zval *tuple = NULL, tuple_new; zval *id; - TARANTOOL_PARSE_PARAMS(id, "s|z", &proc, &proc_len, &tuple); + TARANTOOL_PARSE_PARAMS(id, "s|z", &code, &code_len, &tuple); tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); TARANTOOL_CONNECT_ON_DEMAND(obj, id); pack_key(tuple, 1, &tuple_new); long sync = TARANTOOL_G(sync_counter)++; - php_tp_encode_eval(obj->value, sync, proc, proc_len, &tuple_new); + php_tp_encode_eval(obj->value, sync, code, code_len, &tuple_new); zval_ptr_dtor(&tuple_new); if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; @@ -1071,8 +1084,8 @@ PHP_METHOD(tarantool_class, upsert) { zval v_args; zval *id; - TARANTOOL_PARSE_PARAMS(id, "zaa", &space, &tuple, &args); tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); + TARANTOOL_PARSE_PARAMS(id, "zaa", &space, &tuple, &args); TARANTOOL_CONNECT_ON_DEMAND(obj, id); long space_no = get_spaceno_by_name(obj, id, space); diff --git a/src/tarantool_msgpack.c b/src/tarantool_msgpack.c index 6f36170..38db7cb 100644 --- a/src/tarantool_msgpack.c +++ b/src/tarantool_msgpack.c @@ -308,14 +308,14 @@ ptrdiff_t php_mp_unpack_map(zval *oval, char **str) { size_t len = mp_decode_map((const char **)str); array_init_size(oval, len); while (len-- > 0) { - zval key, value; + zval key = {0}, value = {0}; ZVAL_UNDEF(&key); ZVAL_UNDEF(&value); if (php_mp_unpack(&key, str) == FAILURE) { - goto error; + goto error_key; } if (php_mp_unpack(&value, str) == FAILURE) { - goto error; + goto error_value; } switch (Z_TYPE(key)) { case IS_LONG: @@ -328,23 +328,17 @@ ptrdiff_t php_mp_unpack_map(zval *oval, char **str) { /* convert to INT/STRING for future uses */ /* FALLTHROUGH */ default: { -// char k[256]; -// char *op = op_to_string(Z_TYPE_P(key)); -// printf("oplen: %d\n", strlen(op)); -// printf("op: %s\n", op); -// size_t len = sprintf(k, 256, "Bad key type for PHP " -// "Array: '%s'", op); -// THROW_EXC(k); THROW_EXC("Bad key type for PHP Array"); goto error; - break; } } zval_ptr_dtor(&key); continue; error: - zval_ptr_dtor(&key); zval_ptr_dtor(&value); +error_value: + zval_ptr_dtor(&key); +error_key: zval_ptr_dtor(oval); return FAILURE; } diff --git a/test-run.py b/test-run.py index c6192d7..54b613c 100755 --- a/test-run.py +++ b/test-run.py @@ -91,6 +91,8 @@ def main(): elif '--gdb' in sys.argv: cmd = cmd + 'gdb {0} --ex '.format(find_php_bin()) cmd = cmd + '"set args -c tarantool.ini {0}"'.format(test_lib_path) + elif '--lldb' in sys.argv: + cmd = cmd + 'lldb -- {0} -c tarantool.ini {1}'.format(find_php_bin(), test_lib_path) elif '--strace' in sys.argv: cmd = cmd + 'strace ' + find_php_bin() cmd = cmd + ' -c tarantool.ini {0}'.format(test_lib_path) @@ -102,7 +104,7 @@ def main(): print('Running "%s" with "%s"' % (cmd, php_ini)) proc = subprocess.Popen(cmd, shell=True, cwd=test_cwd) rv = proc.wait() - if rv != 0 or '--gdb' in sys.argv: + if rv != 0 or '--gdb' in sys.argv or '--lldb' in sys.argv: return -1 finally: diff --git a/test/MsgPackTest.php b/test/MsgPackTest.php index e6e17f4..fbd6475 100644 --- a/test/MsgPackTest.php +++ b/test/MsgPackTest.php @@ -28,16 +28,16 @@ public function test_00_msgpack_call() { * @expectedException Exception * @expectedExceptionMessage Bad key type for PHP Array **/ - public function test_02_msgpack_float_key() { - self::$tarantool->select("msgpack", array(1)); + public function test_01_msgpack_array_key() { + self::$tarantool->select("msgpack", array(2)); } /** * @expectedException Exception * @expectedExceptionMessage Bad key type for PHP Array **/ - public function test_01_msgpack_array_key() { - self::$tarantool->select("msgpack", array(2)); + public function test_02_msgpack_float_key() { + self::$tarantool->select("msgpack", array(1)); } /** diff --git a/test/shared/phpunit_bas.xml b/test/shared/phpunit_bas.xml index 3414d79..b03d98c 100644 --- a/test/shared/phpunit_bas.xml +++ b/test/shared/phpunit_bas.xml @@ -4,11 +4,11 @@ > + test/AssertTest.php + test/CreateTest.php test/DMLTest.php test/MockTest.php - test/CreateTest.php test/MsgPackTest.php - test/AssertTest.php diff --git a/test/shared/phpunit_tap.xml b/test/shared/phpunit_tap.xml index 55560fb..b002ba7 100644 --- a/test/shared/phpunit_tap.xml +++ b/test/shared/phpunit_tap.xml @@ -5,11 +5,11 @@ > + test/AssertTest.php + test/CreateTest.php test/DMLTest.php test/MockTest.php - test/CreateTest.php test/MsgPackTest.php - test/AssertTest.php From 68a36e31606629ae51966f27f75d327a4e212620 Mon Sep 17 00:00:00 2001 From: bigbes Date: Mon, 11 Apr 2016 22:33:28 +0300 Subject: [PATCH 04/30] Modify travis.yml --- .travis.yml | 58 +---------------------------------------------------- 1 file changed, 1 insertion(+), 57 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9b4acbc..d0b7e9d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,9 +5,7 @@ services: language: php php: - - 5.4 - - 5.5 - - 5.6 + - 7.0 python: - 2.7 @@ -46,64 +44,10 @@ matrix: - env: OS=ubuntu DIST=precise PACK=deb - env: OS=ubuntu DIST=trusty PACK=deb - env: OS=ubuntu DIST=wily PACK=deb -# - env: OS=ubuntu DIST=xenial PACK=deb - env: OS=debian DIST=jessie PACK=deb - env: OS=debian DIST=wheezy PACK=deb - env: OS=debian DIST=stretch PACK=deb - env: OS=debian DIST=sid PACK=deb - exclude: - - env: OS=el DIST=6 PACK=rpm - php: 5.4 - - env: OS=el DIST=7 PACK=rpm - php: 5.4 - - env: OS=fedora DIST=22 PACK=rpm - php: 5.4 - - env: OS=fedora DIST=23 PACK=rpm - php: 5.4 - - env: OS=fedora DIST=rawhide PACK=rpm - php: 5.4 - - env: OS=ubuntu DIST=precise PACK=deb - php: 5.4 - - env: OS=ubuntu DIST=trusty PACK=deb - php: 5.4 - - env: OS=ubuntu DIST=wily PACK=deb - php: 5.4 -# - env: OS=ubuntu DIST=xenial PACK=deb - php: 5.4 - - env: OS=debian DIST=jessie PACK=deb - php: 5.4 - - env: OS=debian DIST=wheezy PACK=deb - php: 5.4 - - env: OS=debian DIST=stretch PACK=deb - php: 5.4 - - env: OS=debian DIST=sid PACK=deb - php: 5.4 - - env: OS=el DIST=6 PACK=rpm - php: 5.5 - - env: OS=el DIST=7 PACK=rpm - php: 5.5 - - env: OS=fedora DIST=22 PACK=rpm - php: 5.5 - - env: OS=fedora DIST=23 PACK=rpm - php: 5.5 - - env: OS=fedora DIST=rawhide PACK=rpm - php: 5.5 - - env: OS=ubuntu DIST=precise PACK=deb - php: 5.5 - - env: OS=ubuntu DIST=trusty PACK=deb - php: 5.5 - - env: OS=ubuntu DIST=wily PACK=deb - php: 5.5 -# - env: OS=ubuntu DIST=xenial PACK=deb - php: 5.5 - - env: OS=debian DIST=jessie PACK=deb - php: 5.5 - - env: OS=debian DIST=wheezy PACK=deb - php: 5.5 - - env: OS=debian DIST=stretch PACK=deb - php: 5.5 - - env: OS=debian DIST=sid PACK=deb - php: 5.5 script: - git clone https://github.com/tarantool/build.git From 4b9d89728b208919e83329e00ad1d4258f1895fc Mon Sep 17 00:00:00 2001 From: bigbes Date: Tue, 10 May 2016 09:34:17 +0300 Subject: [PATCH 05/30] Temporary fix for big queries --- src/tarantool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tarantool.c b/src/tarantool.c index 8deaafd..dffdad3 100644 --- a/src/tarantool.c +++ b/src/tarantool.c @@ -123,7 +123,7 @@ tarantool_stream_send(tarantool_object *obj) { */ static size_t tarantool_stream_read(tarantool_object *obj, char *buf, size_t size) { - return tntll_stream_read(obj->stream, buf, size); + return tntll_stream_read2(obj->stream, buf, size); } static void @@ -173,8 +173,8 @@ int __tarantool_connect(tarantool_object *obj, zval *id) { &obj->stream, &err) == -1) { continue; } - if (tntll_stream_read(obj->stream, obj->greeting, - GREETING_SIZE) == -1) { + if (tntll_stream_read2(obj->stream, obj->greeting, + GREETING_SIZE) == -1) { continue; } obj->salt = obj->greeting + SALT_PREFIX_SIZE; From b15550076d570925efe5118e13d8fe7f4d1874a1 Mon Sep 17 00:00:00 2001 From: bigbes Date: Wed, 22 Jun 2016 14:04:56 +0300 Subject: [PATCH 06/30] Add random/boolean tests closes gh-87, closes gh-90 --- src/tarantool_msgpack.c | 1 + test/DMLTest.php | 6 +- test/RandomTest.php | 43 ++++++++++++++ test/shared/box.lua | 108 +++++++++++++++++++++++------------- test/shared/phpunit_bas.xml | 1 + test/shared/phpunit_tap.xml | 1 + 6 files changed, 118 insertions(+), 42 deletions(-) create mode 100644 test/RandomTest.php diff --git a/src/tarantool_msgpack.c b/src/tarantool_msgpack.c index 38db7cb..b449691 100644 --- a/src/tarantool_msgpack.c +++ b/src/tarantool_msgpack.c @@ -189,6 +189,7 @@ void php_mp_pack(smart_string *str, zval *val) { break; case IS_TRUE: php_mp_pack_bool(str, 1); + break; case IS_FALSE: php_mp_pack_bool(str, 0); break; diff --git a/test/DMLTest.php b/test/DMLTest.php index 2dd8106..bcdcfb2 100644 --- a/test/DMLTest.php +++ b/test/DMLTest.php @@ -223,13 +223,15 @@ public function test_11_update_error() { } public function test_12_call() { + $result = self::$tarantool->call("test_6", array(true, false, false)); + $this->assertEquals(array(array(true), array(false), array(false)), $result); $this->assertEquals( - self::$tarantool->call("test_2"), array( '0' => array( '0' => array('k1' => 'v2', 'k2' => 'v') ) - ) + ), + self::$tarantool->call("test_2") ); $this->assertEquals( self::$tarantool->call("test_3", array(3, 4)), array('0' => array('0' => 7))); diff --git a/test/RandomTest.php b/test/RandomTest.php new file mode 100644 index 0000000..3828011 --- /dev/null +++ b/test/RandomTest.php @@ -0,0 +1,43 @@ +authenticate('test', 'test'); + self::$tarantool->ping(); + } + + public function test_01_random_big_response() { + for ($i = 5000; $i < 100000; $i += 1000) { + $request = "do return '" . generateRandomString($i) . "' end"; + self::$tarantool->evaluate($request); + } + $this->assertTrue(True); + } + + public function test_02_very_big_response() { + $request = "do return '" . str_repeat('x', 1024 * 1024 * 10) . "' end"; + self::$tarantool->evaluate($request); + $this->assertTrue(True); + } + + public function test_03_another_big_response() { + for ($i = 100; $i <= 5200; $i += 100) { + $result = self::$tarantool->call('test_5', array($i)); + $this->assertEquals($i, count($result)); + } + } +} diff --git a/test/shared/box.lua b/test/shared/box.lua index 6c6cb9e..8f924aa 100755 --- a/test/shared/box.lua +++ b/test/shared/box.lua @@ -1,6 +1,10 @@ #!/usr/bin/env tarantool -os = require('os') +local os = require('os') +local fun = require('fun') +local log = require('log') +local json = require('json') + require('console').listen(os.getenv('ADMIN_PORT')) box.cfg{ listen = os.getenv('PRIMARY_PORT'), @@ -9,54 +13,67 @@ box.cfg{ slab_alloc_arena = 0.2 } -lp = { - test = 'test', - test_empty = '', - test_big = '123456789012345678901234567890123456789012345678901234567890' -- '1234567890' * 6 -} - -for k, v in pairs(lp) do - if #box.space._user.index.name:select{k} == 0 then - box.schema.user.create(k, { password = v }) - end -end - -box.schema.user.grant('test', 'read,write,execute', 'universe', nil, {if_not_exists=true}) - -if not box.space.test then - local test = box.schema.space.create('test') - test:create_index('primary', {type = 'TREE', unique = true, parts = {1, 'NUM'}}) - test:create_index('secondary', {type = 'TREE', unique = false, parts = {2, 'NUM', 3, 'STR'}}) -end +box.once('init', function() + box.schema.user.create('test', { password = 'test' }) + box.schema.user.create('test_empty', { password = '' }) + box.schema.user.create('test_big', { + password = '123456789012345678901234567890123456789012345678901234567890' + }) + box.schema.user.grant('test', 'read,write,execute', 'universe') -if not box.space.msgpack then - local msgpack = box.schema.space.create('msgpack') - msgpack:create_index('primary', {parts = {1, 'NUM'}}) - box.schema.user.grant('test', 'read,write', 'space', 'msgpack') - msgpack:insert{1, 'float as key', {[2.7] = {1, 2, 3}}} - msgpack:insert{2, 'array as key', {[{2, 7}] = {1, 2, 3}}} - msgpack:insert{3, 'array with float key as key', {[{[2.7] = 3, [7] = 7}] = {1, 2, 3}}} - msgpack:insert{6, 'array with string key as key', {['megusta'] = {1, 2, 3}}} -end + local space = box.schema.space.create('test') + space:create_index('primary', { + type = 'TREE', + unique = true, + parts = {1, 'NUM'} + }) + space:create_index('secondary', { + type = 'TREE', + unique = false, + parts = {2, 'NUM', 3, 'STR'} + }) + local space = box.schema.space.create('msgpack') + space:create_index('primary', { + parts = {1, 'NUM'} + }) + space:insert{1, 'float as key', { + [2.7] = {1, 2, 3} + }} + space:insert{2, 'array as key', { + [{2, 7}] = {1, 2, 3} + }} + space:insert{3, 'array with float key as key', { + [{ + [2.7] = 3, + [7] = 7 + }] = {1, 2, 3} + }} + space:insert{6, 'array with string key as key', { + ['megusta'] = {1, 2, 3} + }} +end) function test_1() return true, { - c= { - ['106']= {1, 1428578535}, - ['2']= {1, 1428578535} + c = { + ['106'] = {1, 1428578535}, + ['2'] = {1, 1428578535} }, - pc= { - ['106']= {1, 1428578535, 9243}, - ['2']= {1, 1428578535, 9243} + pc = { + ['106'] = {1, 1428578535, 9243}, + ['2'] = {1, 1428578535, 9243} }, - s= {1, 1428578535}, - u= 1428578535, - v= {} + s = {1, 1428578535}, + u = 1428578535, + v = {} }, true end function test_2() - return { k2= 'v', k1= 'v2'} + return { + k2 = 'v', + k1 = 'v2' + } end function test_3(x, y) @@ -65,6 +82,17 @@ end function test_4(...) local args = {...} - require('log').info('%s', require('yaml').encode(args)) + log.info('%s', json.encode(args)) return 2 end + +function test_5(count) + log.info('duplicating %d arrays', count) + local rv = fun.duplicate{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}:take(count):totable() + log.info('%s', json.encode(rv)) + return rv +end + +function test_6(...) + return ... +end diff --git a/test/shared/phpunit_bas.xml b/test/shared/phpunit_bas.xml index b03d98c..65115f4 100644 --- a/test/shared/phpunit_bas.xml +++ b/test/shared/phpunit_bas.xml @@ -9,6 +9,7 @@ test/DMLTest.php test/MockTest.php test/MsgPackTest.php + test/RandomTest.php diff --git a/test/shared/phpunit_tap.xml b/test/shared/phpunit_tap.xml index b002ba7..f305f4f 100644 --- a/test/shared/phpunit_tap.xml +++ b/test/shared/phpunit_tap.xml @@ -10,6 +10,7 @@ test/DMLTest.php test/MockTest.php test/MsgPackTest.php + test/RandomTest.php From 1917ae612532763e64ffd0c57b5682884e9157e8 Mon Sep 17 00:00:00 2001 From: bigbes Date: Wed, 22 Jun 2016 16:15:45 +0300 Subject: [PATCH 07/30] Fix for closing connection if Tarantool throws an error closes gh-88 --- src/tarantool.c | 3 +- test/AssertTest.php | 72 ++++++++++++++++++++++++--------------------- 2 files changed, 41 insertions(+), 34 deletions(-) diff --git a/src/tarantool.c b/src/tarantool.c index dffdad3..78d6937 100644 --- a/src/tarantool.c +++ b/src/tarantool.c @@ -316,11 +316,12 @@ static int64_t tarantool_step_recv( } THROW_EXC("Query error %d: %s", errcode, Z_STRVAL_P(errstr), Z_STRLEN_P(errstr)); - goto error; + goto error_noclose; } THROW_EXC("Failed to retrieve answer code"); error: obj->stream = NULL; +error_noclose: if (header) zval_ptr_dtor(header); if (body) zval_ptr_dtor(body); SSTR_LEN(obj->value) = 0; diff --git a/test/AssertTest.php b/test/AssertTest.php index da52dab..367e2d7 100644 --- a/test/AssertTest.php +++ b/test/AssertTest.php @@ -1,43 +1,49 @@ authenticate('test', 'test'); - } + public static function setUpBeforeClass() { + self::$tm = ini_get("tarantool.request_timeout"); + ini_set("tarantool.request_timeout", "0.1"); + self::$tarantool = new Tarantool('localhost', getenv('PRIMARY_PORT')); + self::$tarantool->authenticate('test', 'test'); + } - public static function tearDownAfterClass() { - ini_set("tarantool.request_timeout", self::$tm); - } + public static function tearDownAfterClass() { + ini_set("tarantool.request_timeout", self::$tm); + } - protected function tearDown() - { - $tuples = self::$tarantool->select("test"); - foreach($tuples as $value) - self::$tarantool->delete("test", Array($value[0])); - } + protected function tearDown() { + $tuples = self::$tarantool->select("test"); + foreach($tuples as $value) + self::$tarantool->delete("test", Array($value[0])); + } - public function test_00_timedout() { + public function test_00_timedout() { + self::$tarantool->eval(" + function assertf() + require('fiber').sleep(1) + return 0 + end"); + try { + self::$tarantool->call("assertf"); + $this->assertFalse(True); + } catch (Exception $e) { + $this->assertTrue(strpos($e->getMessage(), "Can't read query") !== False); + } - self::$tarantool->eval(" - function assertf() - require('fiber').sleep(1) - return 0 - end"); - try { - self::$tarantool->call("assertf"); - $this->assertFalse(True); - } catch (Exception $e) { - $this->assertTrue(strpos($e->getMessage(), - "Can't read query") !== False); - } + /* We can reconnect and everything will be ok */ + self::$tarantool->select("test"); + } - /* We can reconnect and everything will be ok */ - self::$tarantool->select("test"); - } + public function test_01_closed_connection() { + for ($i = 0; $i < 20000; $i++) { + try { + self::$tarantool->call("nonexistentfunction"); + } catch (Exception $e) { + $this->assertTrue(strpos($e->getMessage(), "is not defined") !== False); + } + } + } } From 932fd68cb1bc1e04d6d81ca465c3d18f0a3b4a24 Mon Sep 17 00:00:00 2001 From: yolkov Date: Fri, 1 Jul 2016 16:29:34 +0300 Subject: [PATCH 08/30] fix debian rules,control for php7.0 (#91) --- debian/control | 4 ++-- debian/rules | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/debian/control b/debian/control index 2a94dd7..25512a5 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: php-tarantool Priority: optional Maintainer: Dmitry E. Oboukhov Build-Depends: debhelper (>= 8), - php5-dev | php-all-dev, + php7.0-dev | php-all-dev, pkg-config Section: php Standards-Version: 3.9.4 @@ -10,7 +10,7 @@ Homepage: https://github.com/tarantool/tarantool-php VCS-Browser: https://github.com/tarantool/tarantool-php VCS-Git: git://github.com/tarantool/tarantool-php.git -Package: php5-tarantool +Package: php7.0-tarantool Architecture: any Priority: optional Conflicts: libtarantool-php diff --git a/debian/rules b/debian/rules index 8b8028d..41cc2b9 100755 --- a/debian/rules +++ b/debian/rules @@ -2,23 +2,23 @@ include /usr/share/cdbs/1/rules/debhelper.mk -phpapi = $(shell php-config5 --phpapi) +phpapi = $(shell php-config7.0 --phpapi) version = $(shell dpkg-parsechangelog \ |grep ^Version|awk '{print $$2}'|sed 's/-.*//') -makebuilddir/php5-tarantool:: +makebuilddir/php7.0-tarantool:: phpize ./configure make - echo "php:Depends=phpapi-$(phpapi)" > debian/php5-tarantool.substvars + echo "php:Depends=phpapi-$(phpapi)" > debian/php7.0-tarantool.substvars -install/php5-tarantool:: - install -m 0755 -d debian/php5-tarantool/usr/lib/php5/$(phpapi)/ - install -m 0755 -d debian/php5-tarantool/etc/php5/mods-available/ +install/php7.0-tarantool:: + install -m 0755 -d debian/php7.0-tarantool/usr/lib/php/$(phpapi)/ + install -m 0755 -d debian/php7.0-tarantool/etc/php/7.0/mods-available/ install -m 0755 modules/tarantool.so \ - debian/php5-tarantool/usr/lib/php5/$(phpapi)/ + debian/php7.0-tarantool/usr/lib/php/$(phpapi)/ echo extension=tarantool.so \ - > debian/php5-tarantool/etc/php5/mods-available/tarantool.ini + > debian/php7.0-tarantool/etc/php/7.0/mods-available/tarantool.ini clean:: phpize --clean From 31cf8a8b4c8cec99fd6e03a80b2df42d9b3cb27d Mon Sep 17 00:00:00 2001 From: bigbes Date: Wed, 20 Jul 2016 13:51:33 +0300 Subject: [PATCH 09/30] Next version of tarantool-php for php7 Features: * Rewritten update/upsert, so no more big memory overhead * Now have Exception Tree: TarantoolException -> TarantoolIOException,TarantoolParsingException,TarantoolClientError - TarantoolIOExceptions for send/recv/connect problems - TarantoolParsingException for parsing length/header/body problems - TarantoolClientError for errors happened in Tarantool * Refactoring for SchemaParsing for Update/Upsert field no.extraction (you can now use field name, instead of field number in update/upsert) --- .gitignore | 1 + README.md | 152 +- config.m4 | 2 +- package.xml | 2 +- rpm/php-tarantool.spec | 2 +- src/php_tarantool.h | 87 +- src/tarantool.c | 1299 +- src/tarantool_exception.c | 137 + src/tarantool_exception.h | 25 + src/tarantool_manager.c | 216 - src/tarantool_manager.h | 46 - src/tarantool_msgpack.c | 28 +- src/tarantool_msgpack.h | 22 +- src/tarantool_network.c | 28 +- src/tarantool_network.h | 14 +- src/tarantool_proto.c | 227 +- src/tarantool_proto.h | 61 +- src/tarantool_schema.c | 554 +- src/tarantool_schema.h | 64 +- src/tarantool_tp.c | 29 +- src/tarantool_tp.h | 11 +- test-run.py | 11 +- test.sh | 17 +- test/AssertTest.php | 8 +- test/CreateTest.php | 270 +- test/DMLTest.php | 142 +- test/MockTest.php | 2 +- test/MsgPackTest.php | 10 +- test/RandomTest.php | 3 +- test/phpunit.phar | 45386 ++++++++++++++++------------------ test/shared/box.lua | 20 +- test/shared/phpunit.xml | 2 +- test/shared/phpunit_bas.xml | 1 + test/shared/phpunit_tap.xml | 1 + test/shared/tarantool-1.ini | 10 +- test/shared/tarantool-2.ini | 10 +- test/shared/tarantool-3.ini | 10 +- 37 files changed, 23118 insertions(+), 25792 deletions(-) create mode 100644 src/tarantool_exception.c create mode 100644 src/tarantool_exception.h delete mode 100644 src/tarantool_manager.c delete mode 100644 src/tarantool_manager.h diff --git a/.gitignore b/.gitignore index bc924b5..c93d2e2 100644 --- a/.gitignore +++ b/.gitignore @@ -34,6 +34,7 @@ Makefile.in *.libs *.pyc *.out +*.dSYM var* config.guess.cdbs-orig config.sub.cdbs-orig diff --git a/README.md b/README.md index 273bab3..2c12a88 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ $ make install ## Test -To run tests Taranool server and PHP/PECL package are requred. +To run tests Tarantool server and PHP/PECL package are requred. ```sh $ ./test-run.py @@ -42,7 +42,7 @@ $ TARANTOOL_BOX_PATH=/path/to/tarantool/bin/tarantool ./test-run.py ## Installing from PEAR -Tarantool-PHP Have it's own [PEAR repository](https://tarantool.github.io/tarantool-php). +Tarantool-PHP has its own [PEAR repository](https://tarantool.github.io/tarantool-php). You may install it from PEAR with just a few commands: ``` @@ -66,7 +66,6 @@ Place it into project library path in your IDE. ## Configuration file * `tarantool.persistent` - Enable persistent connections (don't close connections between sessions) (defaults: True, **can't be changed in runtime**) -* `tarantool.con_per_host` - Count of open connections to every Tarantool server to store (defaults: 5, **can't be changed in runtime**) * `tarantool.timeout` - Connection timeout (defaults: 10 seconds, can be changed in runtime) * `tarantool.retry_count` - Count of retries for connecting (defaults: 1, can be changed in runtime) * `tarantool.retry_sleep` - Sleep between connecting retries (defaults: 0.1 second, can be changed in runtime) @@ -78,11 +77,10 @@ Place it into project library path in your IDE. 1. [Predefined Constants](#predefined-constants) 2. [Class Tarantool](#class-tarantool) - * [Tarantool::_construct](#tarantool__construct) + * [Tarantool::__construct](#tarantool__construct) 3. [Manipulation connection](#manipulation-connection) * [Tarantool::connect](#tarantoolconnect) * [Tarantool::disconnect](#tarantooldisconnect) - * [Tarantool::authenticate](#tarantoolauthenticate) * [Tarantool::flushSchema](#tarantoolflushschema) * [Tarantool::ping](#tarantoolping) 4. [Database queries](#database-queries) @@ -98,45 +96,44 @@ Place it into project library path in your IDE. _**Description**_: Available Tarantool Constants -* `TARANTOOL_ITER_EQ` - Equality iterator (ALL) -* `TARANTOOL_ITER_REQ` - Reverse equality iterator -* `TARANTOOL_ITER_ALL` - Get all rows -* `TARANTOOL_ITER_LT` - Less then iterator -* `TARANTOOL_ITER_LE` - Less and equal iterator -* `TARANTOOL_ITER_GE` - Greater and equal iterator -* `TARANTOOL_ITER_GT` - Gtreater then iterator -* `TARANTOOL_ITER_BITSET_ALL_SET` - check if all given bits are set (BITSET only) -* `TARANTOOL_ITER_BITSET_ANY_SET` - check if any given bits are set (BITSET only) -* `TARANTOOL_ITER_BITSET_ALL_NOT_SET` - check if all given bits are not set +* `Tarantool::ITERATOR_EQ` - Equality iterator (ALL) +* `Tarantool::ITERATOR_REQ` - Reverse equality iterator +* `Tarantool::ITERATOR_ALL` - Get all rows +* `Tarantool::ITERATOR_LT` - Less then iterator +* `Tarantool::ITERATOR_LE` - Less and equal iterator +* `Tarantool::ITERATOR_GE` - Greater and equal iterator +* `Tarantool::ITERATOR_GT` - Gtreater then iterator +* `Tarantool::ITERATOR_BITS_ALL_SET` - check if all given bits are set (BITSET only) +* `Tarantool::ITERATOR_BITS_ANY_SET` - check if any given bits are set (BITSET only) +* `Tarantool::ITERATOR_BITS_ALL_NOT_SET` - check if all given bits are not set (BITSET only) -* `TARANTOOL_ITER_OVERLAPS` - find dots in the n-dimension cube (RTREE only) -* `TARANTOOL_ITER_NEIGHBOR` - find nearest dots (RTREE only) +* `Tarantool::ITERATOR_OVERLAPS` - find dots in the n-dimension cube (RTREE only) +* `Tarantool::ITERATOR_NEIGHBOR` - find nearest dots (RTREE only) ### Class Tarantool ``` php Tarantool { - public Tarantool::__construct ( [ string $host = 'localhost' [, int $port = 3301 ] ] ) - public bool Tarantool::connect ( void ) - public bool Tarantool::disconnect ( void ) - public Tarantool::authenticate(string $login [, string $password = NULL ] ) - public bool Tarantool::flushSchema ( void ) - public bool Tarantool::ping ( void ) - public array Tarantool::select(mixed $space [, mixed $key = array() [, mixed $index = 0 [, int $limit = PHP_INT_MAX [, int offset = 0 [, iterator = TARANTOOL_ITER_EQ ] ] ] ] ] ) - public array Tarantool::insert(mixed $space, array $tuple) - public array Tarantool::replace(mixed $space, array $tuple) - public array Tarantool::call(string $procedure [, mixed args]) - public array Tarantool::evaluate(string $expression [, mixed args]) - public array Tarantool::delete(mixed $space, mixed $key [, mixed $index]) - public array Tarantool::update(mixed $space, mixed $key, array $ops [, number $index] ) - public array Tarantool::upsert(mixed $space, mixed $key, array $ops [, number $index] ) + public Tarantool::__construct ( [ string $host = 'localhost' [, int $port = 3301 [, string $user = "guest" [, string $password = NULL [, string $persistent_id = NULL ] ] ] ] ] ) + public bool Tarantool::connect ( void ) + public bool Tarantool::disconnect ( void ) + public bool Tarantool::flushSchema ( void ) + public bool Tarantool::ping ( void ) + public array Tarantool::select (mixed $space [, mixed $key = array() [, mixed $index = 0 [, int $limit = PHP_INT_MAX [, int $offset = 0 [, $iterator = Tarantool::ITERATOR_EQ ] ] ] ] ] ) + public array Tarantool::insert (mixed $space, array $tuple) + public array Tarantool::replace (mixed $space, array $tuple) + public array Tarantool::call (string $procedure [, mixed args] ) + public array Tarantool::evaluate (string $expression [, mixed args] ) + public array Tarantool::delete (mixed $space, mixed $key [, mixed $index] ) + public array Tarantool::update (mixed $space, mixed $key, array $ops [, number $index] ) + public array Tarantool::upsert (mixed $space, mixed $key, array $ops [, number $index] ) } ``` -#### Taratnool::__construct +#### Tarantool::__construct ``` -public Tarantool::__construct ( [ string $host = 'localhost' [, int $port = 3301 ] ] ) +public Tarantool::__construct ( [ string $host = 'localhost' [, int $port = 3301 [, string $user = "guest" [, string $password = NULL [, string $persistent_id = NULL ] ] ] ] ] ) ``` _**Description**_: Creates a Tarantool client @@ -145,6 +142,10 @@ _**Parameters**_ * `host`: string, default is `'localhost'` * `port`: number, default is `3301` +* `user`: string, default is `'guest'` +* `password`: string +* `persistent_id`: string (set it, and connection will be persistent, if + `persistent` in config isn't set) _**Return Value**_ @@ -187,36 +188,6 @@ _**Return Value**_ **BOOL**: True -### Tarantool::authenticate - -``` php -public Tarantool::authenticate(string $login [, string $password = NULL ] ) -``` - -_**Description**_: Authenticate to Tarantool using given login/password - -_**Parameters**_ - -* `login`: string - user login (mandatory) -* `password`: string - user password (mandatory, but ignored, if user is guest) - -_**Return Value**_ NULL - -#### *Example* - -``` php -/** - * - user is 'valdis' - * - password is 'pelsh' - */ -$tnt->connect('valdis', 'pelsh') -/** - * - user is 'guest' - * - password is empty and ignored, anyway - */ -$tnt->connect('guest') -``` - ### Tarantool::flushSchema ``` php @@ -248,7 +219,7 @@ Throws `Exception` on error. ### Tarantool::select ``` php -public array Tarantool::select(mixed $space [, mixed $key = array() [, mixed $index = 0 [, int $limit = PHP_INT_MAX [, int offset = 0 [, iterator = TARANTOOL_ITER_EQ ] ] ] ] ] ) +public array Tarantool::select(mixed $space [, mixed $key = array() [, mixed $index = 0 [, int $limit = PHP_INT_MAX [, int $offset = 0 [, $iterator = Tarantool::ITERATOR_EQ ] ] ] ] ] ) ``` _**Description**_: Execute select query from Tarantool server. @@ -262,7 +233,11 @@ _**Parameters**_ * `limit`: Number, limit number of rows to return from select (INT_MAX by default) * `offset`: Number, offset to select from (0 by default) * `iterator`: Constant, iterator type. See [Predefined Constants](#predefined-constants) - for more information (`TARANTOOL_ITER_EQ` by default) + for more information (`Tarantool::ITERATOR_EQ` by default). You can also use + strings `'eq'`, `'req'`, `'all'`, `'lt'`, `'le'`, `'ge'`, `'gt'`, + `'bits_all_set'`, `'bits_any_set'`, `'bits_all_not_set'`, `'overlaps'`, + `'neighbor'`, `'bits_all_set'`, `'bits_any_set'`, `'bits_all_not_set'` (in + both lowercase/uppercase) instead of constants _**Return Value**_ @@ -274,19 +249,19 @@ request, or empty array, if nothing was found. #### Example ``` php -/* Select everything from space 'test' */ +// Select everything from space 'test' $tnt->select("test"); -/* Selects from space 'test' by PK with id == 1*/ +// Selects from space 'test' by PK with id == 1 $tnt->select("test", 1); -/* The same as previous */ +// The same as previous $tnt->select("test", array(1)); -/* Selects from space 'test' by secondary key from index 'isec' and == {1, 'hello'} */ +// Selects from space 'test' by secondary key from index 'isec' and == {1, 'hello'} $tnt->select("test", array(1, "hello"), "isec"); -/* Selects second hundred of rows from space test */ +// Selects second hundred of rows from space test $tnt->select("test", null, null, 100, 100); -/* Selects second hundred of rows from space test in reverse equality order */ -/* It meanse: select penultimate hundred */ -$tnt->select("test", null, null, 100, 100, TARANTOOL_ITER_REQ); +// Selects second hundred of rows from space test in reverse equality order +// It meanse: select penultimate hundred +$tnt->select("test", null, null, 100, 100, Tarantool::ITERATOR_REQ); ``` ### Tarantool::insert, Tarantool::replace @@ -312,12 +287,12 @@ _**Return Value**_ #### Example ``` php -/* It'll be processed OK, since no tuples with PK == 1 are in space 'test' */ +// It'll be processed OK, since no tuples with PK == 1 are in space 'test' $tnt->insert("test", array(1, 2, "smth")); -/* We've just inserted tuple with PK == 1, so it'll fail */ -/* error will be ER_TUPLE_FOUND */ +// We've just inserted tuple with PK == 1, so it'll fail +// error will be ER_TUPLE_FOUND $tnt->insert("test", array(1, 3, "smth completely different")); -/* But it won't be a problem for replace */ +// But it won't be a problem for replace $tnt->replace("test", array(1, 3, "smth completely different")); ``` @@ -396,11 +371,11 @@ _**Return Value**_ #### Example ``` php -/* Following code will delete all tuples from space `test` */ +// Following code will delete all tuples from space `test` $tuples = $tnt->select("test"); foreach($tuples as $value) { - $tnt->delete("test", Array($value[0])); - } + $tnt->delete("test", array($value[0])); +} ``` ### Tarantool::update @@ -516,7 +491,7 @@ $tnt->update("test", 1, array( array( "field" => 4, "op" => "=", - "arg" => intval(0x11111) + "arg" => 0x11111, ), )); $tnt->update("test", 1, array( @@ -528,21 +503,21 @@ $tnt->update("test", 1, array( array( "field" => 4, "op" => "&", - "arg" => intval(0x10101) + "arg" => 0x10101, ) )); $tnt->update("test", 1, array( array( "field" => 4, "op" => "^", - "arg" => intval(0x11100) + "arg" => 0x11100, ) )); $tnt->update("test", 1, array( array( "field" => 4, "op" => "|", - "arg" => intval(0x00010) + "arg" => 0x00010, ) )); $tnt->update("test", 1, array( @@ -559,7 +534,7 @@ $tnt->update("test", 1, array( ### Tarantool::upsert ``` php -public array Tarantool::upsert(mixed $space, mixed $key, array $ops [, number $index] ) +public array Tarantool::upsert(mixed $space, array $tuple, array $ops [, number $index] ) ``` _**Description**_: Update or Insert command (If tuple with PK == PK('tuple') exists, @@ -590,3 +565,10 @@ $tnt->upsert("test", array(124, 10, "new tuple"), array( ) )); ``` + + +## Deprecated + +* Global constants, e.g. `TARANTOOL_ITER_` +* `Tarantool::authenticate` method +* configuration parameter: `tarantool.con_per_host` diff --git a/config.m4 b/config.m4 index 3cfe14e..15f557d 100644 --- a/config.m4 +++ b/config.m4 @@ -7,10 +7,10 @@ if test "$PHP_TARANTOOL" != "no"; then src/tarantool.c \ src/tarantool_network.c \ src/tarantool_msgpack.c \ - src/tarantool_manager.c \ src/tarantool_schema.c \ src/tarantool_proto.c \ src/tarantool_tp.c \ + src/tarantool_exception.c \ src/third_party/msgpuck.c \ src/third_party/sha1.c \ src/third_party/base64_tp.c \ diff --git a/package.xml b/package.xml index b4d3f67..b72a358 100644 --- a/package.xml +++ b/package.xml @@ -26,7 +26,7 @@ http://pear.php.net/dtd/package-2.0.xsd"> beta beta - MIT + BSD 2-Clause - diff --git a/rpm/php-tarantool.spec b/rpm/php-tarantool.spec index fcae59f..8d4669f 100644 --- a/rpm/php-tarantool.spec +++ b/rpm/php-tarantool.spec @@ -7,7 +7,7 @@ Version: 0.1.0.0 Release: 1%{?dist} Summary: PECL PHP driver for Tarantool/Box Group: Development/Languages -License: MIT +License: BSD 2-Clause URL: https://github.com/tarantool/tarantool-php/ Source0: tarantool-php-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) diff --git a/src/php_tarantool.h b/src/php_tarantool.h index 09c0dab..8c9cb4d 100644 --- a/src/php_tarantool.h +++ b/src/php_tarantool.h @@ -1,14 +1,22 @@ #ifndef PHP_TARANTOOL_H #define PHP_TARANTOOL_H -#include -#include +#include #include -#include #include #include +#include +#include +#include + #include +#include + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #if PHP_VERSION_ID >= 70000 # include #else @@ -39,7 +47,6 @@ extern zend_module_entry tarantool_module_entry; #include "TSRM.h" #endif -struct pool_manager; struct tarantool_schema; #define SSTR_BEG(str) (str->c) @@ -54,55 +61,65 @@ PHP_RINIT_FUNCTION(tarantool); PHP_MSHUTDOWN_FUNCTION(tarantool); PHP_MINFO_FUNCTION(tarantool); -PHP_METHOD(tarantool_class, __construct); -PHP_METHOD(tarantool_class, connect); -PHP_METHOD(tarantool_class, close); -PHP_METHOD(tarantool_class, authenticate); -PHP_METHOD(tarantool_class, ping); -PHP_METHOD(tarantool_class, select); -PHP_METHOD(tarantool_class, insert); -PHP_METHOD(tarantool_class, replace); -PHP_METHOD(tarantool_class, call); -PHP_METHOD(tarantool_class, eval); -PHP_METHOD(tarantool_class, delete); -PHP_METHOD(tarantool_class, update); -PHP_METHOD(tarantool_class, upsert); -PHP_METHOD(tarantool_class, flush_schema); +PHP_METHOD(Tarantool, __construct); +PHP_METHOD(Tarantool, connect); +PHP_METHOD(Tarantool, reconnect); +PHP_METHOD(Tarantool, close); +PHP_METHOD(Tarantool, authenticate); +PHP_METHOD(Tarantool, ping); +PHP_METHOD(Tarantool, select); +PHP_METHOD(Tarantool, insert); +PHP_METHOD(Tarantool, replace); +PHP_METHOD(Tarantool, call); +PHP_METHOD(Tarantool, eval); +PHP_METHOD(Tarantool, delete); +PHP_METHOD(Tarantool, update); +PHP_METHOD(Tarantool, upsert); +PHP_METHOD(Tarantool, flush_schema); ZEND_BEGIN_MODULE_GLOBALS(tarantool) + zend_bool persistent; long sync_counter; long retry_count; double retry_sleep; double timeout; double request_timeout; - struct pool_manager *manager; ZEND_END_MODULE_GLOBALS(tarantool) ZEND_EXTERN_MODULE_GLOBALS(tarantool); typedef struct tarantool_object { - char *host; - int port; - char *login; - char *passwd; - php_stream *stream; - char *persistent_id; - smart_string *value; - struct tp *tps; - char auth; - char *greeting; - char *salt; - struct tarantool_schema *schema; - zend_object zo; + struct tarantool_connection { + char *host; + int port; + char *login; + char *passwd; + php_stream *stream; + struct tarantool_schema *schema; + smart_string *value; + struct tp *tps; + char *greeting; + char *salt; + /* Only for persistent connections */ + char *orig_login; + char *suffix; + int suffix_len; + zend_string *persistent_id; + } *obj; + + zend_bool is_persistent; + + zend_object zo; } tarantool_object; +typedef struct tarantool_connection tarantool_connection; + +PHP_TARANTOOL_API zend_class_entry *php_tarantool_get_ce(void); + #ifdef ZTS # define TARANTOOL_G(v) TSRMG(tarantool_globals_id, zend_tarantool_globals *, v) #else # define TARANTOOL_G(v) (tarantool_globals.v) #endif -#define THROW_EXC(...) zend_throw_exception_ex( \ - zend_exception_get_default(TSRMLS_C), 0 TSRMLS_CC, __VA_ARGS__) - #endif /* PHP_TARANTOOL_H */ diff --git a/src/tarantool.c b/src/tarantool.c index 78d6937..4351d61 100644 --- a/src/tarantool.c +++ b/src/tarantool.c @@ -4,14 +4,14 @@ #include "php_tarantool.h" -#include "tarantool_network.h" -#include "tarantool_msgpack.h" +#include "tarantool_tp.h" #include "tarantool_proto.h" -#include "tarantool_manager.h" #include "tarantool_schema.h" -#include "tarantool_tp.h" +#include "tarantool_msgpack.h" +#include "tarantool_network.h" +#include "tarantool_exception.h" -int __tarantool_authenticate(tarantool_object *obj); +int __tarantool_authenticate(tarantool_connection *obj); double now_gettimeofday(void) @@ -21,31 +21,46 @@ now_gettimeofday(void) return t.tv_sec * 1e9 + t.tv_usec * 1e3; } -void smart_string_nullify(smart_string *str); - ZEND_DECLARE_MODULE_GLOBALS(tarantool) -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +static zend_class_entry *Tarantool_ptr; + +PHP_TARANTOOL_API +zend_class_entry *php_tarantool_get_ce(void) +{ + return Tarantool_ptr; +} + +static int le_tarantool = 0; #define TARANTOOL_PARSE_PARAMS(ID, FORMAT, ...) \ if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), \ - "O" FORMAT, &ID, tarantool_class_ptr, \ + "O" FORMAT, &ID, Tarantool_ptr, \ ##__VA_ARGS__) == FAILURE) { \ RETURN_FALSE; \ - } \ + } static inline tarantool_object *php_tarantool_object(zend_object *obj) { - return (tarantool_object *)((char*)(obj) - XtOffsetOf(tarantool_object, zo)); + return (tarantool_object *)( + (char *)(obj) - XtOffsetOf(tarantool_object, zo) + ); } -#define TARANTOOL_CONNECT_ON_DEMAND(CON, ID) \ +#define TARANTOOL_FETCH_OBJECT(NAME) \ + tarantool_object *t_##NAME = php_tarantool_object(Z_OBJ_P(getThis())); \ + tarantool_connection *obj = t_##NAME->obj; + +#define TARANTOOL_FUNCTION_BEGIN(NAME, ID, FORMAT, ...) \ + zval *ID; \ + TARANTOOL_PARSE_PARAMS(ID, FORMAT, ##__VA_ARGS__); \ + TARANTOOL_FETCH_OBJECT(NAME); + +#define TARANTOOL_CONNECT_ON_DEMAND(CON) \ if (!CON->stream) \ - if (__tarantool_connect(CON, ID) == FAILURE) \ + if (__tarantool_connect(t_##CON) == FAILURE) \ RETURN_FALSE; \ if (CON->stream && php_stream_eof(CON->stream) != 0) \ - if (__tarantool_reconnect(CON, ID) == FAILURE) \ + if (__tarantool_reconnect(t_##CON) == FAILURE) \ RETURN_FALSE; #define TARANTOOL_RETURN_DATA(HT, HEAD, BODY) \ @@ -63,10 +78,6 @@ static inline tarantool_object *php_tarantool_object(zend_object *obj) { zval_ptr_dtor(BODY); \ return; -#define RLCI(NAME) \ - REGISTER_LONG_CONSTANT("TARANTOOL_ITER_" # NAME, \ - ITERATOR_ ## NAME, CONST_CS | CONST_PERSISTENT) - zend_object_handlers tarantool_obj_handlers; zend_function_entry tarantool_module_functions[] = { @@ -75,20 +86,21 @@ zend_function_entry tarantool_module_functions[] = { zend_module_entry tarantool_module_entry = { STANDARD_MODULE_HEADER, - "tarantool", + PHP_TARANTOOL_EXTNAME, tarantool_module_functions, PHP_MINIT(tarantool), PHP_MSHUTDOWN(tarantool), PHP_RINIT(tarantool), NULL, PHP_MINFO(tarantool), - "1.0", + PHP_TARANTOOL_VERSION, STANDARD_MODULE_PROPERTIES }; PHP_INI_BEGIN() - PHP_INI_ENTRY("tarantool.persistent" , "0", PHP_INI_SYSTEM, NULL) - PHP_INI_ENTRY("tarantool.con_per_host", "5", PHP_INI_SYSTEM, NULL) + STD_PHP_INI_ENTRY("tarantool.persistent", "0", PHP_INI_ALL, + OnUpdateBool, persistent, zend_tarantool_globals, + tarantool_globals) STD_PHP_INI_ENTRY("tarantool.timeout", "10.0", PHP_INI_ALL, OnUpdateReal, timeout, zend_tarantool_globals, tarantool_globals) @@ -108,52 +120,137 @@ ZEND_GET_MODULE(tarantool) #endif static int -tarantool_stream_send(tarantool_object *obj) { +tarantool_stream_send(tarantool_connection *obj TSRMLS_DC) { int rv = tntll_stream_send(obj->stream, SSTR_BEG(obj->value), SSTR_LEN(obj->value)); - if (rv) return FAILURE; + if (rv < 0) { + tarantool_throw_ioexception("Failed to send message"); + return FAILURE; + } SSTR_LEN(obj->value) = 0; smart_string_nullify(obj->value); return SUCCESS; } +/* + * Generate persistent_id for connection. + * Must be freed by efree()/pefree(ptr, 0) + */ +static char *pid_gen(const char *host, int port, const char *login, + const char *prefix, size_t *olen, + const char *suffix, size_t suffix_len) { + char *plist_id = NULL, *tmp = NULL; + /* if login is not defined, then login is 'guest' */ + login = (login ? login : "guest"); + int len = 0; + len = spprintf(&plist_id, 0, "tarantool-%s:id=%s:%d-%s", prefix, host, + port, login) + 1; + if (suffix) { + len = spprintf(&tmp,0,"%s[%.*s]",plist_id,suffix_len,suffix); + efree(plist_id); + plist_id = tmp; + } + if (olen) *olen = len; + return plist_id; +} + +/* + * Generate persistent string with persistent_id for connection. + * Must be freed by pefree(ptr, 1) + */ +static char *pid_pgen(const char *host, int port, const char *login, + const char *prefix, size_t *olen, + const char *suffix, size_t suffix_len) { + char *plist_id = NULL, *tmp = NULL; + size_t len = 0; + plist_id = pid_gen(host, port, login, prefix, &len, suffix, suffix_len); + tmp = pestrdup(plist_id, 1); + efree(plist_id); + if (olen) *olen = len; + return tmp; +} + +/* + * Generate zend_string with persistent_id for connection. + * Must be freed using zend_string_release(); + */ +static zend_string *pid_zsgen(const char *host, int port, const char *login, + const char *prefix, const char *suffix, + size_t suffix_len) { + size_t len = 0; + const char *plist_id = NULL; + plist_id = pid_gen(host, port, login, prefix, &len, suffix, suffix_len); + if (plist_id == NULL || len == 0) + return NULL; + zend_string *out = zend_string_init(plist_id, len - 1, 0); + efree((void *)plist_id); + return out; +} + +/* + * Generate persistent zend_string with persistent_id for connection. + * Must be freed using zend_string_release(); + */ +static zend_string *pid_pzsgen(const char *host, int port, const char *login, + const char *prefix, const char *suffix, + size_t suffix_len) { + size_t len = 0; + const char *plist_id = NULL; + plist_id = pid_gen(host, port, login, prefix, &len, suffix, suffix_len); + if (plist_id == NULL || len == 0) + return NULL; + zend_string *out = zend_string_init(plist_id, len - 1, 1); + efree((void *)plist_id); + return out; + +} + /* * Legacy rtsisyk code, php_stream_read made right * See https://bugs.launchpad.net/tarantool/+bug/1182474 */ static size_t -tarantool_stream_read(tarantool_object *obj, char *buf, size_t size) { - return tntll_stream_read2(obj->stream, buf, size); +tarantool_stream_read(tarantool_connection *obj, char *buf, size_t size) { + size_t got = tntll_stream_read2(obj->stream, buf, size); + if (got != size) { + tarantool_throw_ioexception("Failed to read %ld bytes", size); + return FAILURE; + } + return SUCCESS; } static void -tarantool_stream_close(tarantool_object *obj) { +tarantool_stream_close(tarantool_connection *obj) { if (obj->stream || obj->persistent_id) { tntll_stream_close(obj->stream, obj->persistent_id); - pefree(obj->persistent_id, 1); } obj->stream = NULL; - obj->persistent_id = NULL; + if (obj->persistent_id != NULL) { + zend_string_release(obj->persistent_id); + obj->persistent_id = NULL; + } } -int __tarantool_connect(tarantool_object *obj, zval *id) { - bool persistent = (TARANTOOL_G(manager) != NULL); - struct pool_manager *mng = TARANTOOL_G(manager); +int __tarantool_connect(tarantool_object *t_obj) { + TSRMLS_FETCH(); + tarantool_connection *obj = t_obj->obj; int status = SUCCESS; long count = TARANTOOL_G(retry_count); struct timespec sleep_time = {0}; double_to_ts(INI_FLT("retry_sleep"), &sleep_time); char *err = NULL; - if (persistent && pool_manager_find_apply(mng, obj) == 0) { - int rv = tntll_stream_fpid(obj->host, obj->port, - obj->persistent_id, &obj->stream, - &err); - if (obj->stream == NULL) + if (t_obj->is_persistent) { + if (!obj->persistent_id) + obj->persistent_id = pid_pzsgen(obj->host, obj->port, + obj->orig_login, + "stream", obj->suffix, + obj->suffix_len); + int rv = tntll_stream_fpid2(obj->persistent_id, &obj->stream); + if (obj->stream == NULL || rv != PHP_STREAM_PERSISTENT_SUCCESS) goto retry; return status; } - obj->schema = tarantool_schema_new(); retry: while (count > 0) { --count; @@ -163,10 +260,14 @@ int __tarantool_connect(tarantool_object *obj, zval *id) { efree(err); err = NULL; } - if (persistent) { + if (t_obj->is_persistent) { if (obj->persistent_id) - pefree(obj->persistent_id, 1); - obj->persistent_id = tarantool_stream_pid(obj); + zend_string_release(obj->persistent_id); + obj->persistent_id = pid_pzsgen(obj->host, obj->port, + obj->orig_login, + "stream", obj->suffix, + obj->suffix_len); + } if (tntll_stream_open(obj->host, obj->port, obj->persistent_id, @@ -177,14 +278,12 @@ int __tarantool_connect(tarantool_object *obj, zval *id) { GREETING_SIZE) == -1) { continue; } - obj->salt = obj->greeting + SALT_PREFIX_SIZE; ++count; break; } if (count == 0) { - char errstr[256]; - snprintf(errstr, 256, "%s", err); - THROW_EXC(errstr); + tarantool_throw_ioexception("%s", err); + efree(err); return FAILURE; } if (obj->login != NULL && obj->passwd != NULL) { @@ -193,42 +292,85 @@ int __tarantool_connect(tarantool_object *obj, zval *id) { return status; } -int __tarantool_reconnect(tarantool_object *obj, zval *id) { +int __tarantool_reconnect(tarantool_object *t_obj) { + tarantool_stream_close(t_obj->obj); + return __tarantool_connect(t_obj); +} + +static void +tarantool_connection_free(tarantool_connection *obj, int is_persistent + TSRMLS_DC) { + if (obj == NULL) + return; + if (obj->greeting) { + pefree(obj->greeting, is_persistent); + obj->greeting = NULL; + } tarantool_stream_close(obj); - return __tarantool_connect(obj, id); + if (obj->persistent_id) { + zend_string_release(obj->persistent_id); + obj->persistent_id = NULL; + } + if (obj->schema) { + tarantool_schema_delete(obj->schema, is_persistent); + obj->schema = NULL; + } + if (obj->host) { + pefree(obj->host, is_persistent); + obj->host = NULL; + } + if (obj->login) { + pefree(obj->login, is_persistent); + obj->login = NULL; + } + if (obj->orig_login) { + pefree(obj->orig_login, is_persistent); + obj->orig_login = NULL; + } + if (obj->suffix) { + pefree(obj->suffix, is_persistent); + obj->suffix = NULL; + } + if (obj->passwd) { + pefree(obj->passwd, is_persistent); + obj->passwd = NULL; + } + if (obj->value) { + smart_string_free_ex(obj->value, 1); + pefree(obj->value, 1); + obj->value = NULL; + } + if (obj->tps) { + tarantool_tp_free(obj->tps, is_persistent); + obj->tps = NULL; + } + pefree(obj, is_persistent); } -static void tarantool_free(zend_object *zobj) { - tarantool_object *obj = php_tarantool_object(zobj); - int store = TARANTOOL_G(manager) && !obj->stream; - if (!obj) return; - if (store) { - pool_manager_push_assure(TARANTOOL_G(manager), obj); - } else { - if (obj->greeting) pefree(obj->greeting, 1); - tarantool_stream_close(obj); - if (obj->persistent_id) { - pefree(obj->persistent_id, 1); - obj->persistent_id = NULL; - } - if (obj->schema) { - tarantool_schema_delete(obj->schema); - pefree(obj->schema, 1); - } +static void +tarantool_object_free(tarantool_object *obj TSRMLS_DC) { + if (obj == NULL) + return; + if (!obj->is_persistent && obj->obj != NULL) { + tarantool_connection_free(obj->obj, + obj->is_persistent + TSRMLS_CC); + obj->obj = NULL; } - if (obj->host) pefree(obj->host, 1); - if (obj->login) pefree(obj->login, 1); - if (obj->passwd) efree(obj->passwd); - if (obj->value) smart_string_free_ex(obj->value, 1); - if (obj->tps) tarantool_tp_free(obj->tps); - if (obj->value) pefree(obj->value, 1); zend_object_std_dtor(&obj->zo); } +static void +tarantool_free(zend_object *zo) { + tarantool_object *t_obj = php_tarantool_object(zo); + tarantool_object_free(t_obj); +} + static zend_object *tarantool_create(zend_class_entry *entry) { tarantool_object *obj = NULL; - obj = (tarantool_object *)pecalloc(sizeof(tarantool_object), 1, 0); + obj = (tarantool_object *)pecalloc(1, sizeof(tarantool_object) + + sizeof(zval) * (entry->default_properties_count - 1), 0); zend_object_std_init(&obj->zo, entry); obj->zo.handlers = &tarantool_obj_handlers; @@ -236,30 +378,28 @@ static zend_object *tarantool_create(zend_class_entry *entry) { } static int64_t tarantool_step_recv( - tarantool_object *obj, + tarantool_connection *obj, unsigned long sync, zval *header, zval *body) { char pack_len[5] = {0, 0, 0, 0, 0}; - if (tarantool_stream_read(obj, pack_len, 5) != 5) { + if (tarantool_stream_read(obj, pack_len, 5) == FAILURE) { header = NULL; body = NULL; - THROW_EXC("Can't read query from server"); - goto error; + goto error_con; } if (php_mp_check(pack_len, 5)) { header = NULL; body = NULL; - THROW_EXC("Failed verifying msgpack"); - goto error; + tarantool_throw_parsingexception("package length"); + goto error_con; } size_t body_size = php_mp_unpack_package_size(pack_len); smart_string_ensure(obj->value, body_size); if (tarantool_stream_read(obj, SSTR_POS(obj->value), - body_size) != body_size) { + body_size) == FAILURE) { header = NULL; body = NULL; - THROW_EXC("Can't read query from server"); goto error; } SSTR_LEN(obj->value) += body_size; @@ -268,7 +408,7 @@ static int64_t tarantool_step_recv( if (php_mp_check(pos, body_size)) { header = NULL; body = NULL; - THROW_EXC("Failed verifying msgpack"); + tarantool_throw_parsingexception("package header"); goto error; } if (php_mp_unpack(header, &pos) == FAILURE || @@ -279,8 +419,8 @@ static int64_t tarantool_step_recv( } if (php_mp_check(pos, body_size)) { body = NULL; - THROW_EXC("Failed verifying msgpack"); - goto error; + tarantool_throw_parsingexception("package body"); + goto error_con; } if (php_mp_unpack(body, &pos) == FAILURE) { body = NULL; @@ -295,8 +435,7 @@ static int64_t tarantool_step_recv( if (Z_LVAL_P(val) != sync) { THROW_EXC("request sync is not equal response sync. " "closing connection"); - tarantool_stream_close(obj); - goto error; + goto error_con; } } val = zend_hash_index_find(hash, TNT_CODE); @@ -307,21 +446,36 @@ static int64_t tarantool_step_recv( return SUCCESS; } HashTable *hash = HASH_OF(body); - zval *errstr; + zval *z_error_str; long errcode = Z_LVAL_P(val) & ((1 << 15) - 1 ); - errstr = zend_hash_index_find(hash, TNT_ERROR); - if (!errstr) { - ZVAL_STRING(errstr, "empty"); + const char *error_str = NULL; + size_t error_str_len = 0; + z_error_str = zend_hash_index_find(hash, TNT_ERROR); + if (z_error_str) { + if (Z_TYPE_P(z_error_str) == IS_STRING) { + error_str = Z_STRVAL_P(z_error_str); + error_str_len = Z_STRLEN_P(z_error_str); + } else { + tarantool_throw_exception( + "Bad error field type. Expected" + " STRING, got %s", op_to_string( + z_error_str)); + goto error; + } + } else { + error_str = "empty"; + error_str_len = sizeof(error_str); } - THROW_EXC("Query error %d: %s", errcode, Z_STRVAL_P(errstr), - Z_STRLEN_P(errstr)); - goto error_noclose; + tarantool_throw_clienterror(errcode, error_str, + error_str_len); + goto error; } - THROW_EXC("Failed to retrieve answer code"); -error: + tarantool_throw_exception("Failed to retrieve answer code"); +error_con: + tarantool_stream_close(obj); obj->stream = NULL; -error_noclose: +error: if (header) zval_ptr_dtor(header); if (body) zval_ptr_dtor(body); SSTR_LEN(obj->value) = 0; @@ -329,27 +483,88 @@ static int64_t tarantool_step_recv( return FAILURE; } - -const zend_function_entry tarantool_class_methods[] = { - PHP_ME(tarantool_class, __construct, NULL, ZEND_ACC_PUBLIC) - PHP_ME(tarantool_class, connect, NULL, ZEND_ACC_PUBLIC) - PHP_ME(tarantool_class, close, NULL, ZEND_ACC_PUBLIC) - PHP_ME(tarantool_class, flush_schema, NULL, ZEND_ACC_PUBLIC) - PHP_ME(tarantool_class, authenticate, NULL, ZEND_ACC_PUBLIC) - PHP_ME(tarantool_class, ping, NULL, ZEND_ACC_PUBLIC) - PHP_ME(tarantool_class, select, NULL, ZEND_ACC_PUBLIC) - PHP_ME(tarantool_class, insert, NULL, ZEND_ACC_PUBLIC) - PHP_ME(tarantool_class, replace, NULL, ZEND_ACC_PUBLIC) - PHP_ME(tarantool_class, call, NULL, ZEND_ACC_PUBLIC) - PHP_ME(tarantool_class, eval, NULL, ZEND_ACC_PUBLIC) - PHP_ME(tarantool_class, delete, NULL, ZEND_ACC_PUBLIC) - PHP_ME(tarantool_class, update, NULL, ZEND_ACC_PUBLIC) - PHP_ME(tarantool_class, upsert, NULL, ZEND_ACC_PUBLIC) - PHP_MALIAS(tarantool_class, evaluate, eval, NULL, ZEND_ACC_PUBLIC) - PHP_MALIAS(tarantool_class, flushSchema, flush_schema, NULL, ZEND_ACC_PUBLIC) - PHP_MALIAS(tarantool_class, disconnect, close, NULL, ZEND_ACC_PUBLIC) +/* connect, reconnect, flush_schema, close, ping */ +ZEND_BEGIN_ARG_INFO_EX(arginfo_tarantool_void, 0, 0, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_tarantool_construct, 0, 0, 0) + ZEND_ARG_INFO(0, host) + ZEND_ARG_INFO(0, port) + ZEND_ARG_INFO(0, login) + ZEND_ARG_INFO(0, password) + ZEND_ARG_INFO(0, persistent_id) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_tarantool_authenticate, 0, 0, 1) + ZEND_ARG_INFO(0, login) + ZEND_ARG_INFO(0, password) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_tarantool_select, 0, 0, 1) + ZEND_ARG_INFO(0, space) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, index) + ZEND_ARG_INFO(0, limit) + ZEND_ARG_INFO(0, offset) + ZEND_ARG_INFO(0, iterator) +ZEND_END_ARG_INFO() + +/* insert, replace */ +ZEND_BEGIN_ARG_INFO_EX(arginfo_tarantool_space_tuple, 0, 0, 2) + ZEND_ARG_INFO(0, space) + ZEND_ARG_ARRAY_INFO(0, tuple, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_tarantool_delete, 0, 0, 2) + ZEND_ARG_INFO(0, space) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +/* call, eval */ +ZEND_BEGIN_ARG_INFO_EX(arginfo_tarantool_proc_tuple, 0, 0, 1) + ZEND_ARG_INFO(0, proc) + ZEND_ARG_INFO(0, tuple) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_tarantool_update, 0, 0, 3) + ZEND_ARG_INFO(0, space) + ZEND_ARG_INFO(0, key) + ZEND_ARG_ARRAY_INFO(0, args, 0) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_tarantool_upsert, 0, 0, 3) + ZEND_ARG_INFO(0, space) + ZEND_ARG_ARRAY_INFO(0, tuple, 0) + ZEND_ARG_ARRAY_INFO(0, args, 0) +ZEND_END_ARG_INFO() + +#define TNT_MEP(name, args) PHP_ME (Tarantool, name, args, ZEND_ACC_PUBLIC) +#define TNT_MAP(alias, name, args) PHP_MALIAS(Tarantool, alias, name, args, ZEND_ACC_PUBLIC) +const zend_function_entry Tarantool_methods[] = { + TNT_MEP(__construct, arginfo_tarantool_construct ) + TNT_MEP(connect, arginfo_tarantool_void ) + TNT_MEP(reconnect, arginfo_tarantool_void ) + TNT_MEP(close, arginfo_tarantool_void ) + TNT_MEP(flush_schema, arginfo_tarantool_void ) + TNT_MEP(authenticate, arginfo_tarantool_authenticate ) + TNT_MEP(ping, arginfo_tarantool_void ) + TNT_MEP(select, arginfo_tarantool_select ) + TNT_MEP(insert, arginfo_tarantool_space_tuple ) + TNT_MEP(replace, arginfo_tarantool_space_tuple ) + TNT_MEP(call, arginfo_tarantool_proc_tuple ) + TNT_MEP(eval, arginfo_tarantool_proc_tuple ) + TNT_MEP(delete, arginfo_tarantool_delete ) + TNT_MEP(update, arginfo_tarantool_update ) + TNT_MEP(upsert, arginfo_tarantool_upsert ) + TNT_MAP(evaluate, eval, arginfo_tarantool_proc_tuple ) + TNT_MAP(flushSchema, flush_schema, arginfo_tarantool_void ) + TNT_MAP(disconnect, close, arginfo_tarantool_void ) {NULL, NULL, NULL} }; +#undef TNT_MEP +#undef TNT_MAP /* ####################### HELPERS ####################### */ @@ -366,152 +581,42 @@ void pack_key(zval *args, char select, zval *arr) { add_next_index_zval(arr, args); } -int tarantool_update_verify_op(zval *op, long position, zval *arr) { - if (Z_TYPE_P(op) != IS_ARRAY || !php_mp_is_hash(op)) { - THROW_EXC("Op must be MAP at pos %d", position); - return 0; - } - HashTable *ht = HASH_OF(op); - size_t n = zend_hash_num_elements(ht); - zval *opstr, *oppos; - - array_init(arr); - - opstr = zend_hash_str_find(ht, "op", strlen("op")); - if (!opstr || Z_TYPE_P(opstr) != IS_STRING || - Z_STRLEN_P(opstr) != 1) { - THROW_EXC("Field OP must be provided and must be STRING with " - "length=1 at position %d", position); - return 0; - } - oppos = zend_hash_str_find(ht, "field", strlen("field")); - if (!oppos || Z_TYPE_P(oppos) != IS_LONG) { - THROW_EXC("Field FIELD must be provided and must be LONG at " - "position %d", position); - return 0; - - } - zval *oparg, *splice_len, *splice_val; - switch(Z_STRVAL_P(opstr)[0]) { - case ':': - if (n != 5) { - THROW_EXC("Five fields must be provided for splice" - " at position %d", position); - return 0; - } - oparg = zend_hash_str_find(ht, "offset", strlen("offset")); - if (!oparg || Z_TYPE_P(oparg) != IS_LONG) { - THROW_EXC("Field OFFSET must be provided and must be LONG for " - "splice at position %d", position); - return 0; - } - splice_len = zend_hash_str_find(ht, "length", strlen("length")); - if (!oparg || Z_TYPE_P(splice_len) != IS_LONG) { - THROW_EXC("Field LENGTH must be provided and must be LONG for " - "splice at position %d", position); - return 0; - } - splice_val = zend_hash_str_find(ht, "list", strlen("list")); - if (!oparg || Z_TYPE_P(splice_val) != IS_STRING) { - THROW_EXC("Field LIST must be provided and must be STRING for " - "splice at position %d", position); - return 0; - } - add_next_index_stringl(arr, Z_STRVAL_P(opstr), 1); - add_next_index_long(arr, Z_LVAL_P(oppos)); - add_next_index_long(arr, Z_LVAL_P(oparg)); - add_next_index_long(arr, Z_LVAL_P(splice_len)); - add_next_index_stringl(arr, Z_STRVAL_P(splice_val), - Z_STRLEN_P(splice_val)); - break; - case '+': - case '-': - case '&': - case '|': - case '^': - case '#': - if (n != 3) { - THROW_EXC("Three fields must be provided for '%s' at " - "position %d", Z_STRVAL_P(opstr), position); - return 0; - } - oparg = zend_hash_str_find(ht, "arg", strlen("arg")); - if (!oparg || Z_TYPE_P(oparg) != IS_LONG) { - THROW_EXC("Field ARG must be provided and must be LONG for " - "'%s' at position %d", Z_STRVAL_P(opstr), position); - return 0; - } - add_next_index_stringl(arr, Z_STRVAL_P(opstr), 1); - add_next_index_long(arr, Z_LVAL_P(oppos)); - add_next_index_long(arr, Z_LVAL_P(oparg)); - break; - case '=': - case '!': - if (n != 3) { - THROW_EXC("Three fields must be provided for '%s' at " - "position %d", Z_STRVAL_P(opstr), position); - return 0; - } - oparg = zend_hash_str_find(ht, "arg", strlen("arg")); - if (!oparg || !PHP_MP_SERIALIZABLE_P(oparg)) { - THROW_EXC("Field ARG must be provided and must be SERIALIZABLE for " - "'%s' at position %d", Z_STRVAL_P(opstr), position); - return 0; - } - add_next_index_stringl(arr, Z_STRVAL_P(opstr), 1); - add_next_index_long(arr, Z_LVAL_P(oppos)); - // SEPARATE_ZVAL_TO_MAKE_IS_REF(oparg); - // Z_ADDREF_P(oparg); - add_next_index_zval(arr, oparg); - break; - default: - THROW_EXC("Unknown operation '%s' at position %d", - Z_STRVAL_P(opstr), position); - return 0; - - } - return 1; -} - -int tarantool_update_verify_args(zval *args, zval *arr) { - if (Z_TYPE_P(args) != IS_ARRAY || php_mp_is_hash(args)) { - THROW_EXC("Provided value for update OPS must be Array"); - return 0; - } - HashTable *ht = HASH_OF(args); - size_t n = zend_hash_num_elements(ht); - - array_init(arr); - size_t key_index = 0; - for(; key_index < n; ++key_index) { - zval *op = zend_hash_index_find(ht, key_index); - if (!op) { - THROW_EXC("Internal Array Error"); - goto cleanup; - } - zval op_arr; - if (!tarantool_update_verify_op(op, key_index, &op_arr)) - goto cleanup; - if (add_next_index_zval(arr, &op_arr) == FAILURE) { - THROW_EXC("Internal Array Error"); - goto cleanup; +int convert_iterator(zval *iter, int all) { + TSRMLS_FETCH(); + if (iter == NULL || Z_TYPE_P(iter) == IS_NULL) { + if (all) { + return ITERATOR_ALL; + } else { + return ITERATOR_EQ; } + } else if (Z_TYPE_P(iter) == IS_LONG) { + return Z_LVAL_P(iter); + } else if (Z_TYPE_P(iter) != IS_STRING) { + tarantool_throw_exception("Bad iterator type, expected NULL/STR" + "ING/LONG, got %s", op_to_string(iter)); } - return 1; -cleanup: - zval_ptr_dtor(arr); - return 0; + const char *iter_str = Z_STRVAL_P(iter); + size_t iter_str_len = Z_STRLEN_P(iter); + int iter_type = convert_iter_str(iter_str, iter_str_len); + if (iter_type >= 0) + return iter_type; +error: + tarantool_throw_exception("Bad iterator name '%.*s'", iter_str_len, + iter_str); + return -1; } -int get_spaceno_by_name(tarantool_object *obj, zval *id, zval *name) { - if (Z_TYPE_P(name) == IS_LONG) return Z_LVAL_P(name); +int get_spaceno_by_name(tarantool_connection *obj, zval *name) { + if (Z_TYPE_P(name) == IS_LONG) + return Z_LVAL_P(name); if (Z_TYPE_P(name) != IS_STRING) { - THROW_EXC("Space ID must be String or Long"); + tarantool_throw_exception("Space ID must be String or Long"); return FAILURE; } int32_t space_no = tarantool_schema_get_sid_by_string(obj->schema, Z_STRVAL_P(name), Z_STRLEN_P(name)); - if (space_no != FAILURE) return space_no; + if (space_no != FAILURE) + return space_no; tarantool_tp_update(obj->tps); tp_select(obj->tps, SPACE_SPACE, INDEX_SPACE_NAME, 0, 4096); @@ -526,31 +631,29 @@ int get_spaceno_by_name(tarantool_object *obj, zval *id, zval *name) { return FAILURE; char pack_len[5] = {0, 0, 0, 0, 0}; - if (tarantool_stream_read(obj, pack_len, 5) != 5) { - THROW_EXC("Can't read query from server"); + if (tarantool_stream_read(obj, pack_len, 5) == FAILURE) return FAILURE; - } size_t body_size = php_mp_unpack_package_size(pack_len); smart_string_ensure(obj->value, body_size); if (tarantool_stream_read(obj, obj->value->c, - body_size) != body_size) { - THROW_EXC("Can't read query from server"); + body_size) == FAILURE) return FAILURE; - } struct tnt_response resp; memset(&resp, 0, sizeof(struct tnt_response)); if (php_tp_response(&resp, obj->value->c, body_size) == -1) { - THROW_EXC("Failed to parse query"); + tarantool_throw_parsingexception("query"); return FAILURE; } if (resp.error) { - THROW_EXC("Query error %d: %.*s", resp.code, resp.error_len, resp.error); + tarantool_throw_clienterror(resp.code, resp.error, + resp.error_len); return FAILURE; } if (tarantool_schema_add_spaces(obj->schema, resp.data, resp.data_len)) { - THROW_EXC("Failed parsing schema (space) or memory issues"); + fprintf(stderr, "%s", php_base64_encode(resp.data, resp.data_len)->val); + tarantool_throw_parsingexception("schema (space)"); return FAILURE; } space_no = tarantool_schema_get_sid_by_string(obj->schema, @@ -560,17 +663,20 @@ int get_spaceno_by_name(tarantool_object *obj, zval *id, zval *name) { return space_no; } -int get_indexno_by_name(tarantool_object *obj, zval *id, - int space_no, zval *name) { - if (Z_TYPE_P(name) == IS_LONG) +int get_indexno_by_name(tarantool_connection *obj, int space_no, + zval *name TSRMLS_DC) { + if (Z_TYPE_P(name) == IS_NULL) { + return 0; + } else if (Z_TYPE_P(name) == IS_LONG) { return Z_LVAL_P(name); - if (Z_TYPE_P(name) != IS_STRING) { + } else if (Z_TYPE_P(name) != IS_STRING) { THROW_EXC("Index ID must be String or Long"); return FAILURE; } int32_t index_no = tarantool_schema_get_iid_by_string(obj->schema, space_no, Z_STRVAL_P(name), Z_STRLEN_P(name)); - if (index_no != FAILURE) return index_no; + if (index_no != FAILURE) + return index_no; tarantool_tp_update(obj->tps); tp_select(obj->tps, SPACE_INDEX, INDEX_INDEX_NAME, 0, 4096); @@ -586,31 +692,28 @@ int get_indexno_by_name(tarantool_object *obj, zval *id, return FAILURE; char pack_len[5] = {0, 0, 0, 0, 0}; - if (tarantool_stream_read(obj, pack_len, 5) != 5) { - THROW_EXC("Can't read query from server"); + if (tarantool_stream_read(obj, pack_len, 5) == FAILURE) return FAILURE; - } size_t body_size = php_mp_unpack_package_size(pack_len); smart_string_ensure(obj->value, body_size); - if (tarantool_stream_read(obj, obj->value->c, - body_size) != body_size) { - THROW_EXC("Can't read query from server"); + if (tarantool_stream_read(obj, obj->value->c, body_size) == FAILURE) return FAILURE; - } struct tnt_response resp; memset(&resp, 0, sizeof(struct tnt_response)); if (php_tp_response(&resp, obj->value->c, body_size) == -1) { - THROW_EXC("Failed to parse query"); + tarantool_throw_parsingexception("query"); return FAILURE; } if (resp.error) { - THROW_EXC("Query error %d: %.*s", resp.code, resp.error_len, resp.error); + tarantool_throw_clienterror(resp.code, resp.error, + resp.error_len); return FAILURE; } if (tarantool_schema_add_indexes(obj->schema, resp.data, resp.data_len)) { - THROW_EXC("Failed parsing schema (index) or memory issues"); + fprintf(stderr, "%s", php_base64_encode(resp.data, resp.data_len)->val); + tarantool_throw_parsingexception("schema (index)"); return FAILURE; } index_no = tarantool_schema_get_iid_by_string(obj->schema, @@ -620,9 +723,212 @@ int get_indexno_by_name(tarantool_object *obj, zval *id, return index_no; } -/* ####################### METHODS ####################### */ +int get_fieldno_by_name(tarantool_connection *obj, uint32_t space_no, + zval *name) { + if (Z_TYPE_P(name) == IS_LONG) { + return Z_LVAL_P(name); + } + + int fid = tarantool_schema_get_fid_by_string(obj->schema, space_no, + Z_STRVAL_P(name), + Z_STRLEN_P(name)); + if (fid != FAILURE) + return fid + 1; + tarantool_tp_update(obj->tps); + tp_select(obj->tps, SPACE_SPACE, INDEX_SPACE_NAME, 0, 4096); + tp_key(obj->tps, 1); + tp_encode_str(obj->tps, Z_STRVAL_P(name), Z_STRLEN_P(name)); + tp_reqid(obj->tps, TARANTOOL_G(sync_counter)++); + + obj->value->len = tp_used(obj->tps); + tarantool_tp_flush(obj->tps); + + if (tarantool_stream_send(obj) == FAILURE) + return FAILURE; + + char pack_len[5] = {0, 0, 0, 0, 0}; + if (tarantool_stream_read(obj, pack_len, 5) == FAILURE) + return FAILURE; + size_t body_size = php_mp_unpack_package_size(pack_len); + smart_string_ensure(obj->value, body_size); + if (tarantool_stream_read(obj, obj->value->c, body_size) == FAILURE) + return FAILURE; -zend_class_entry *tarantool_class_ptr; + struct tnt_response resp; memset(&resp, 0, sizeof(struct tnt_response)); + if (php_tp_response(&resp, obj->value->c, body_size) == -1) { + tarantool_throw_parsingexception("query"); + return FAILURE; + } + + if (resp.error) { + tarantool_throw_clienterror(resp.code, resp.error, + resp.error_len); + return FAILURE; + } + + if (tarantool_schema_add_spaces(obj->schema, resp.data, resp.data_len)) { + fprintf(stderr, "%s", php_base64_encode(resp.data, resp.data_len)->val); + tarantool_throw_parsingexception("schema (space)"); + return FAILURE; + } + fid = tarantool_schema_get_fid_by_string(obj->schema, space_no, + Z_STRVAL_P(name), + Z_STRLEN_P(name)); + if (fid == FAILURE) + THROW_EXC("No field '%s' defined", Z_STRVAL_P(name)); + return fid + 1; +} + +int tarantool_uwrite_op(tarantool_connection *obj, zval *op, uint32_t pos, + uint32_t space_id) { + if (Z_TYPE_P(op) != IS_ARRAY || !php_mp_is_hash(op)) { + THROW_EXC("Op must be MAP at pos %d", pos); + return 0; + } + HashTable *ht = HASH_OF(op); + size_t n = zend_hash_num_elements(ht); + zval *opstr, *z_op_pos; + int op_pos = 0; + + opstr = zend_hash_str_find(ht, "op", strlen("op")); + z_op_pos = zend_hash_str_find(ht, "field", strlen("field")); + if (!opstr || Z_TYPE_P(opstr) != IS_STRING || Z_STRLEN_P(opstr) != 1) { + THROW_EXC("Field OP must be provided and must be STRING with " + "length=1 at position %d", pos); + goto cleanup; + } + if (!z_op_pos || (Z_TYPE_P(z_op_pos) != IS_LONG && + Z_TYPE_P(z_op_pos) != IS_STRING)) { + THROW_EXC("Field FIELD must be provided and must be LONG or " + "STRING at position %d", pos); + goto cleanup; + } + op_pos = get_fieldno_by_name(obj, space_id, z_op_pos); + zval *oparg, *splice_len, *splice_val; + switch(Z_STRVAL_P(opstr)[0]) { + case ':': + oparg = zend_hash_str_find(ht, "offset", strlen("offset")); + splice_len = zend_hash_str_find(ht, "length", strlen("length")); + splice_val = zend_hash_str_find(ht, "list", strlen("list")); + if (n != 5) { + THROW_EXC("Five fields must be provided for splice" + " at position %d", pos); + goto cleanup; + } + if (!oparg || Z_TYPE_P(oparg) != IS_LONG) { + THROW_EXC("Field OFFSET must be provided and must be " + "LONG for splice at position %d", pos); + goto cleanup; + } + if (!oparg || Z_TYPE_P(splice_len) != IS_LONG) { + THROW_EXC("Field LENGTH must be provided and must be " + "LONG for splice at position %d", pos); + goto cleanup; + } + if (!oparg || Z_TYPE_P(splice_val) != IS_STRING) { + THROW_EXC("Field LIST must be provided and must be " + "STRING for splice at position %d", pos); + goto cleanup; + } + php_tp_encode_usplice(obj->value, op_pos, + Z_LVAL_P(oparg), Z_LVAL_P(splice_len), + Z_STRVAL_P(splice_val), + Z_STRLEN_P(splice_val)); + break; + case '+': + case '-': + case '&': + case '|': + case '^': + oparg = zend_hash_str_find(ht, "arg", strlen("arg")); + if (n != 3) { + THROW_EXC("Three fields must be provided for '%s' at " + "position %d", Z_STRVAL_P(opstr), pos); + goto cleanup; + } + if (!oparg || (Z_TYPE_P(oparg) != IS_LONG && + Z_TYPE_P(oparg) != IS_DOUBLE)) { + THROW_EXC("Field ARG must be provided and must be LONG " + "or DOUBLE for '%s' at position %d (got '%s')", + Z_STRVAL_P(opstr), pos, + op_to_string(oparg)); + goto cleanup; + } + php_tp_encode_uother(obj->value, Z_STRVAL_P(opstr)[0], + op_pos, oparg); + break; + case '#': + oparg = zend_hash_str_find(ht, "arg", strlen("arg")); + if (n != 3) { + THROW_EXC("Three fields must be provided for '%s' at " + "position %d", Z_STRVAL_P(opstr), pos); + goto cleanup; + } + if (!oparg || (Z_TYPE_P(oparg) != IS_LONG)) { + THROW_EXC("Field ARG must be provided and must be LONG " + "for '%s' at position %d (got '%s')", + Z_STRVAL_P(opstr), pos, + op_to_string(oparg)); + goto cleanup; + } + php_tp_encode_uother(obj->value, Z_STRVAL_P(opstr)[0], + op_pos, oparg); + break; + case '=': + case '!': + oparg = zend_hash_str_find(ht, "arg", strlen("arg")); + if (n != 3) { + THROW_EXC("Three fields must be provided for '%s' at " + "position %d", Z_STRVAL_P(opstr), pos); + goto cleanup; + } + if (!oparg || !PHP_MP_SERIALIZABLE_P(oparg)) { + THROW_EXC("Field ARG must be provided and must be " + "SERIALIZABLE for '%s' at position %d", + Z_STRVAL_P(opstr), pos); + goto cleanup; + } + php_tp_encode_uother(obj->value, Z_STRVAL_P(opstr)[0], + op_pos, oparg); + break; + default: + THROW_EXC("Unknown operation '%s' at position %d", + Z_STRVAL_P(opstr), pos); + goto cleanup; + + } + return 0; +cleanup: + return -1; +} + +int tarantool_uwrite_ops(tarantool_connection *obj, zval *ops, + uint32_t space_id) { + if (Z_TYPE_P(ops) != IS_ARRAY || php_mp_is_hash(ops)) { + THROW_EXC("Provided value for update OPS must be Array"); + return 0; + } + HashTable *ht = HASH_OF(ops); + size_t n = zend_hash_num_elements(ht); + + php_tp_encode_uheader(obj->value, n); + + size_t key_index = 0; + for(; key_index < n; ++key_index) { + zval *op = zend_hash_index_find(ht, key_index); + if (!op) { + THROW_EXC("Internal Array Error"); + goto cleanup; + } + if (tarantool_uwrite_op(obj, op, key_index, space_id) == -1) { + goto cleanup; + } + } + return 0; +cleanup: + return -1; +} +/* ####################### METHODS ####################### */ PHP_RINIT_FUNCTION(tarantool) { return SUCCESS; @@ -634,14 +940,24 @@ static void php_tarantool_init_globals(zend_tarantool_globals *tarantool_globals tarantool_globals->retry_sleep = 0.1; tarantool_globals->timeout = 10.0; tarantool_globals->request_timeout = 10.0; - tarantool_globals->manager = NULL; +} + +static void tarantool_destructor_connection(zend_resource *rsrc TSRMLS_DC) { + tarantool_connection *obj = (tarantool_connection *)rsrc->ptr; + if (obj == NULL) + return; + tarantool_connection_free(obj, 1 TSRMLS_CC); } PHP_MINIT_FUNCTION(tarantool) { + /* Init global variables */ ZEND_INIT_MODULE_GLOBALS(tarantool, php_tarantool_init_globals, NULL); REGISTER_INI_ENTRIES(); - /* Register constants */ + #define RLCI(NAME) REGISTER_LONG_CONSTANT("TARANTOOL_ITER_" # NAME, \ + ITERATOR_ ## NAME, \ + CONST_CS | CONST_PERSISTENT) + /* Register constants: DEPRECATED */ RLCI(EQ); RLCI(REQ); RLCI(ALL); @@ -654,22 +970,53 @@ PHP_MINIT_FUNCTION(tarantool) { RLCI(BITSET_ALL_NOT_SET); RLCI(OVERLAPS); RLCI(NEIGHBOR); + #undef RLCI - /* Init global variables */ - TARANTOOL_G(manager) = pool_manager_create( - INI_BOOL("tarantool.persistent"), - INI_INT("tarantool.con_per_host") + le_tarantool = zend_register_list_destructors_ex( + tarantool_destructor_connection, + NULL, "Tarantool persistent connection", + module_number ); /* Init class entries */ zend_class_entry tarantool_class; - INIT_CLASS_ENTRY(tarantool_class, "Tarantool", tarantool_class_methods); + + /* Initialize class entry */ + INIT_CLASS_ENTRY(tarantool_class, "Tarantool", Tarantool_methods); tarantool_class.create_object = tarantool_create; - tarantool_class_ptr = zend_register_internal_class(&tarantool_class); - memcpy(&tarantool_obj_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); + Tarantool_ptr = zend_register_internal_class(&tarantool_class); + /* Initialize object handlers */ + memcpy(&tarantool_obj_handlers, + zend_get_std_object_handlers(), + sizeof(zend_object_handlers)); tarantool_obj_handlers.offset = XtOffsetOf(tarantool_object, zo); tarantool_obj_handlers.free_obj = tarantool_free; + /* Register class constants */ + #define REGISTER_TNT_CLASS_CONST_LONG(NAME) \ + zend_declare_class_constant_long(php_tarantool_get_ce(), \ + ZEND_STRS( #NAME ) - 1, NAME TSRMLS_CC) + + REGISTER_TNT_CLASS_CONST_LONG(ITERATOR_EQ); + REGISTER_TNT_CLASS_CONST_LONG(ITERATOR_REQ); + REGISTER_TNT_CLASS_CONST_LONG(ITERATOR_ALL); + REGISTER_TNT_CLASS_CONST_LONG(ITERATOR_LT); + REGISTER_TNT_CLASS_CONST_LONG(ITERATOR_LE); + REGISTER_TNT_CLASS_CONST_LONG(ITERATOR_GE); + REGISTER_TNT_CLASS_CONST_LONG(ITERATOR_GT); + REGISTER_TNT_CLASS_CONST_LONG(ITERATOR_BITS_ALL_SET); + REGISTER_TNT_CLASS_CONST_LONG(ITERATOR_BITSET_ALL_SET); + REGISTER_TNT_CLASS_CONST_LONG(ITERATOR_BITS_ANY_SET); + REGISTER_TNT_CLASS_CONST_LONG(ITERATOR_BITSET_ANY_SET); + REGISTER_TNT_CLASS_CONST_LONG(ITERATOR_BITS_ALL_NOT_SET); + REGISTER_TNT_CLASS_CONST_LONG(ITERATOR_BITSET_ALL_NOT_SET); + REGISTER_TNT_CLASS_CONST_LONG(ITERATOR_OVERLAPS); + REGISTER_TNT_CLASS_CONST_LONG(ITERATOR_NEIGHBOR); + + #undef REGISTER_TNT_CLASS_CONST_LONG + + ZEND_MODULE_STARTUP_N(tarantool_exception)(INIT_FUNC_ARGS_PASSTHRU); + return SUCCESS; } @@ -679,62 +1026,135 @@ PHP_MSHUTDOWN_FUNCTION(tarantool) { } PHP_MINFO_FUNCTION(tarantool) { - php_info_print_table_start(); - php_info_print_table_header(2, "Tarantool support", "enabled"); - php_info_print_table_row(2, "Extension version", PHP_TARANTOOL_VERSION); - php_info_print_table_end(); + php_info_print_table_start (); + php_info_print_table_header (2, "Tarantool support", "enabled"); + php_info_print_table_row (2, "Extension version", PHP_TARANTOOL_VERSION); + php_info_print_table_end (); DISPLAY_INI_ENTRIES(); } -PHP_METHOD(tarantool_class, __construct) { - char *host = NULL; size_t host_len = 0; - long port = 0; +static int php_tarantool_list_entry() { + return le_tarantool; +} + +PHP_METHOD(Tarantool, __construct) { + /* Input arguments */ + char *host = NULL, *login = NULL, *passwd = NULL; + size_t host_len = 0, login_len = 0, passwd_len = 0; + long port = 0; - zval *id; - TARANTOOL_PARSE_PARAMS(id, "|sl", &host, &host_len, &port); - tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); + zend_bool is_persistent = false, plist_new_entry = true; + const char *suffix = NULL; + size_t suffix_len = 0; + zend_string *plist_id = NULL; - /* - * validate parameters - */ + TARANTOOL_FUNCTION_BEGIN(obj, id, "|slss!s", &host, &host_len, &port, + &login, &login_len, &passwd, &passwd_len, + &suffix, &suffix_len) + + if (host == NULL) host = "localhost"; + if (port == 0) port = 3301; + if (login == NULL) login = "guest"; + if (passwd != NULL && passwd_len == 0) passwd = NULL; - if (host == NULL) host = "localhost"; if (port < 0 || port >= 65536) { THROW_EXC("Invalid primary port value: %li", port); RETURN_FALSE; } - if (port == 0) port = 3301; - - /* initialzie object structure */ - obj->host = pestrdup(host, 1); - obj->port = port; - obj->value = (smart_string *)pemalloc(sizeof(smart_string), 1); - obj->auth = 0; - obj->greeting = (char *)pecalloc(sizeof(char), GREETING_SIZE, 1); - obj->salt = NULL; - obj->login = NULL; - obj->passwd = NULL; - obj->persistent_id = NULL; - obj->schema = tarantool_schema_new(); - obj->value->len = 0; - obj->value->a = 0; - obj->value->c = NULL; - smart_string_ensure(obj->value, GREETING_SIZE); - obj->tps = tarantool_tp_new(obj->value); + + is_persistent = (TARANTOOL_G(persistent) || suffix ? true : false); + + if (is_persistent) { + zend_resource *le = NULL; + + plist_id = pid_pzsgen(host, port, login, "plist", + suffix, suffix_len); + + le = zend_hash_find_ptr(&EG(persistent_list), plist_id); + if (le != NULL) { + /* It's likely */ + if (le->type == php_tarantool_list_entry()) { + obj = (tarantool_connection *) le->ptr; + plist_new_entry = false; + zend_string_release(plist_id); + } + } + t_obj->obj = obj; + } + + if (obj == NULL) { + obj = pecalloc(1, sizeof(tarantool_connection), is_persistent); + if (obj == NULL) { + if (plist_id) zend_string_release(plist_id); + php_error_docref(NULL TSRMLS_CC, E_ERROR, "out of " + "memory: cannot allocate handle"); + } + + /* initialzie object structure */ + obj->host = pestrdup(host, is_persistent); + obj->port = port; + obj->value = (smart_string *)pecalloc(1, sizeof(smart_string), 1); + /* CHECK obj->value */ + memset(obj->value, 0, sizeof(smart_string)); + smart_string_ensure(obj->value, GREETING_SIZE); + obj->greeting = (char *)pecalloc(GREETING_SIZE, sizeof(char), + is_persistent); + /* CHECK obj->greeting */ + obj->salt = obj->greeting + SALT_PREFIX_SIZE; + obj->login = pestrdup(login, is_persistent); + obj->orig_login = pestrdup(login, is_persistent); + /* If passwd == NULL, then authenticate without password */ + if (passwd != NULL) { + obj->passwd = pestrdup(passwd, is_persistent); + } + if (is_persistent) { + obj->persistent_id = pid_pzsgen(host, port, login, + "stream", suffix, suffix_len); + } + obj->schema = tarantool_schema_new(is_persistent); + /* CHECK obj->schema */ + obj->tps = tarantool_tp_new(obj->value, is_persistent); + /* CHECK obj->tps */ + } + + if (is_persistent && plist_new_entry) { + zend_resource le; + memset(&le, 0, sizeof(zend_resource)); + le.type = php_tarantool_list_entry(); + le.ptr = obj; + GC_REFCOUNT(&le) = 1; + + assert(plist_id != NULL); + if (zend_hash_update_mem(&EG(persistent_list), plist_id, + (void *)&le, sizeof(zend_resource)) == NULL) { + php_error_docref(NULL TSRMLS_CC, E_ERROR, "could not " + "register persistent entry"); + } + zend_string_release(plist_id); + } + t_obj->obj = obj; + t_obj->is_persistent = is_persistent; return; } -PHP_METHOD(tarantool_class, connect) { - zval *id; - TARANTOOL_PARSE_PARAMS(id, ""); - tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); - if (obj->stream && obj->stream->mode) RETURN_TRUE; - if (__tarantool_connect(obj, id) == FAILURE) +PHP_METHOD(Tarantool, connect) { + TARANTOOL_FUNCTION_BEGIN(obj, id, ""); + if (obj->stream) RETURN_TRUE; + if (__tarantool_connect(t_obj) == FAILURE) + RETURN_FALSE; + RETURN_TRUE; +} + +PHP_METHOD(Tarantool, reconnect) { + TARANTOOL_FUNCTION_BEGIN(obj, id, ""); + if (__tarantool_reconnect(t_obj) == FAILURE) RETURN_FALSE; RETURN_TRUE; } -int __tarantool_authenticate(tarantool_object *obj) { +int __tarantool_authenticate(tarantool_connection *obj) { + TSRMLS_FETCH(); + tarantool_schema_flush(obj->schema); tarantool_tp_update(obj->tps); int batch_count = 3; @@ -761,49 +1181,45 @@ int __tarantool_authenticate(tarantool_object *obj) { while (batch_count-- > 0) { char pack_len[5] = {0, 0, 0, 0, 0}; - if (tarantool_stream_read(obj, pack_len, 5) != 5) { - THROW_EXC("Can't read query from server"); + if (tarantool_stream_read(obj, pack_len, 5) == FAILURE) return FAILURE; - } size_t body_size = php_mp_unpack_package_size(pack_len); smart_string_ensure(obj->value, body_size); if (tarantool_stream_read(obj, obj->value->c, - body_size) != body_size) { - THROW_EXC("Can't read query from server"); + body_size) == FAILURE) return FAILURE; - } if (status == FAILURE) continue; struct tnt_response resp; memset(&resp, 0, sizeof(struct tnt_response)); if (php_tp_response(&resp, obj->value->c, body_size) == -1) { - THROW_EXC("Failed to parse query"); + tarantool_throw_parsingexception("query"); status = FAILURE; } if (resp.error) { - THROW_EXC("Query error %d: %.*s", resp.code, - resp.error_len, resp.error); + tarantool_throw_clienterror(resp.code, resp.error, + resp.error_len); status = FAILURE; } if (resp.sync == space_sync) { if (tarantool_schema_add_spaces(obj->schema, resp.data, resp.data_len) && status != FAILURE) { - THROW_EXC("Failed parsing schema (space) or " - "memory issues"); + fprintf(stderr, "%s", php_base64_encode(resp.data, resp.data_len)->val); + tarantool_throw_parsingexception("schema (space)"); status = FAILURE; } } else if (resp.sync == index_sync) { if (tarantool_schema_add_indexes(obj->schema, resp.data, resp.data_len) && status != FAILURE) { - THROW_EXC("Failed parsing schema (index) or " - "memory issues"); + fprintf(stderr, "%s", php_base64_encode(resp.data, resp.data_len)->val); + tarantool_throw_parsingexception("schema (index)"); status = FAILURE; } } else if (resp.sync == auth_sync && resp.error) { - THROW_EXC("Query error %d: %.*s", resp.code, - resp.error_len, resp.error); + tarantool_throw_clienterror(resp.code, resp.error, + resp.error_len); status = FAILURE; } } @@ -811,52 +1227,42 @@ int __tarantool_authenticate(tarantool_object *obj) { return status; } -PHP_METHOD(tarantool_class, authenticate) { +PHP_METHOD(Tarantool, authenticate) { const char *login = NULL; size_t login_len = 0; const char *passwd = NULL; size_t passwd_len = 0; - zval *id; - TARANTOOL_PARSE_PARAMS(id, "s|s", &login, &login_len, &passwd, &passwd_len); - - tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); - obj->login = pestrndup(login, login_len, 1); - obj->passwd = NULL; - if (passwd != NULL) - obj->passwd = estrdup(passwd); - TARANTOOL_CONNECT_ON_DEMAND(obj, id); + TARANTOOL_FUNCTION_BEGIN(obj, id, "s|s", &login, &login_len, + &passwd, &passwd_len); + if (obj->login != NULL) pefree(obj->login, t_obj->is_persistent); + if (obj->passwd != NULL) pefree(obj->passwd, t_obj->is_persistent); + obj->login = pestrdup(login, t_obj->is_persistent); + if (passwd != NULL) { + obj->passwd = pestrdup(passwd, t_obj->is_persistent); + } + TARANTOOL_CONNECT_ON_DEMAND(obj); __tarantool_authenticate(obj); + RETURN_NULL(); } -PHP_METHOD(tarantool_class, flush_schema) { - zval *id; - TARANTOOL_PARSE_PARAMS(id, ""); - tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); +PHP_METHOD(Tarantool, flush_schema) { + TARANTOOL_FUNCTION_BEGIN(obj, id, ""); tarantool_schema_flush(obj->schema); + RETURN_TRUE; } -PHP_METHOD(tarantool_class, close) { - zval *id; - TARANTOOL_PARSE_PARAMS(id, ""); - tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); - - if (TARANTOOL_G(manager) == NULL) { - tarantool_stream_close(obj); - tarantool_schema_delete(obj->schema); - obj->schema = NULL; - } +PHP_METHOD(Tarantool, close) { + TARANTOOL_FUNCTION_BEGIN(obj, id, ""); RETURN_TRUE; } -PHP_METHOD(tarantool_class, ping) { - zval *id; - TARANTOOL_PARSE_PARAMS(id, ""); - tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); - TARANTOOL_CONNECT_ON_DEMAND(obj, id); +PHP_METHOD(Tarantool, ping) { + TARANTOOL_FUNCTION_BEGIN(obj, id, ""); + TARANTOOL_CONNECT_ON_DEMAND(obj); long sync = TARANTOOL_G(sync_counter)++; php_tp_encode_ping(obj->value, sync); @@ -872,19 +1278,19 @@ PHP_METHOD(tarantool_class, ping) { RETURN_TRUE; } -PHP_METHOD(tarantool_class, select) { - zval *space = NULL, *index = NULL; - zval *key = NULL, key_new; - zval *zlimit = NULL; - long limit = LONG_MAX-1, offset = 0, iterator = 0; +PHP_METHOD(Tarantool, select) { + zval *space = NULL, *index = NULL, *key = NULL; + zval *zlimit = NULL, *ziterator = NULL; + long limit = LONG_MAX - 1, offset = 0, iterator = 0; + zval key_new = {0}; - zval *id; - TARANTOOL_PARSE_PARAMS(id, "z|zzzll", &space, &key, - &index, &zlimit, &offset, &iterator); - tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); - TARANTOOL_CONNECT_ON_DEMAND(obj, id); + TARANTOOL_FUNCTION_BEGIN(obj, id, "z|zzzlz", &space, &key, &index, + &zlimit, &offset, &ziterator); + TARANTOOL_CONNECT_ON_DEMAND(obj); - if (zlimit != NULL && Z_TYPE_P(zlimit) != IS_NULL && Z_TYPE_P(zlimit) != IS_LONG) { + if (zlimit != NULL && + Z_TYPE_P(zlimit) != IS_NULL && + Z_TYPE_P(zlimit) != IS_LONG) { THROW_EXC("wrong type of 'limit' - expected long/null, got '%s'", zend_zval_type_name(zlimit)); RETURN_FALSE; @@ -892,18 +1298,40 @@ PHP_METHOD(tarantool_class, select) { limit = Z_LVAL_P(zlimit); } - long space_no = get_spaceno_by_name(obj, id, space); + /* Obtain space number */ + long space_no = get_spaceno_by_name(obj, space); if (space_no == FAILURE) RETURN_FALSE; + + /* Obtain index number */ int32_t index_no = 0; if (index) { - index_no = get_indexno_by_name(obj, id, space_no, index); + index_no = get_indexno_by_name(obj, space_no, index); if (index_no == FAILURE) RETURN_FALSE; } + + /* Obtain iterator type */ + /* If + * - key == NULL + * - type(key) == NULL + * - type(key) == ARRAY and count(key) == 0 + * and type of iterator is not set, then we need to obtain all + * tuple from Tarantool's space. + */ + int is_iterator_all = (!key || + Z_TYPE_P(key) == IS_NULL || ( + Z_TYPE_P(key) == IS_ARRAY && + zend_hash_num_elements(Z_ARRVAL_P(key)) == 0 + ) + ); + iterator = convert_iterator(ziterator, is_iterator_all); + if (iterator == -1) + RETURN_FALSE; + pack_key(key, 1, &key_new); long sync = TARANTOOL_G(sync_counter)++; - php_tp_encode_select(obj->value, sync, space_no, index_no, limit, - offset, iterator, &key_new); + php_tp_encode_select(obj->value, sync, space_no, index_no, + limit, offset, iterator, &key_new); zval_ptr_dtor(&key_new); if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; @@ -915,15 +1343,13 @@ PHP_METHOD(tarantool_class, select) { TARANTOOL_RETURN_DATA(&body, &header, &body); } -PHP_METHOD(tarantool_class, insert) { +PHP_METHOD(Tarantool, insert) { zval *space, *tuple; - zval *id; - TARANTOOL_PARSE_PARAMS(id, "za", &space, &tuple); - tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); - TARANTOOL_CONNECT_ON_DEMAND(obj, id); + TARANTOOL_FUNCTION_BEGIN(obj, id, "za", &space, &tuple); + TARANTOOL_CONNECT_ON_DEMAND(obj); - long space_no = get_spaceno_by_name(obj, id, space); + long space_no = get_spaceno_by_name(obj, space); if (space_no == FAILURE) RETURN_FALSE; @@ -940,15 +1366,13 @@ PHP_METHOD(tarantool_class, insert) { TARANTOOL_RETURN_DATA(&body, &header, &body); } -PHP_METHOD(tarantool_class, replace) { +PHP_METHOD(Tarantool, replace) { zval *space, *tuple; - zval *id; - TARANTOOL_PARSE_PARAMS(id, "za", &space, &tuple); - tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); - TARANTOOL_CONNECT_ON_DEMAND(obj, id); + TARANTOOL_FUNCTION_BEGIN(obj, id, "za", &space, &tuple); + TARANTOOL_CONNECT_ON_DEMAND(obj); - long space_no = get_spaceno_by_name(obj, id, space); + long space_no = get_spaceno_by_name(obj, space); if (space_no == FAILURE) RETURN_FALSE; @@ -965,20 +1389,18 @@ PHP_METHOD(tarantool_class, replace) { TARANTOOL_RETURN_DATA(&body, &header, &body); } -PHP_METHOD(tarantool_class, delete) { +PHP_METHOD(Tarantool, delete) { zval *space = NULL, *key = NULL, *index = NULL; zval key_new = {0}; - zval *id; - TARANTOOL_PARSE_PARAMS(id, "zz|z", &space, &key, &index); - tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); - TARANTOOL_CONNECT_ON_DEMAND(obj, id); + TARANTOOL_FUNCTION_BEGIN(obj, id, "zz|z", &space, &key, &index); + TARANTOOL_CONNECT_ON_DEMAND(obj); - long space_no = get_spaceno_by_name(obj, id, space); + long space_no = get_spaceno_by_name(obj, space); if (space_no == FAILURE) RETURN_FALSE; int32_t index_no = 0; if (index) { - index_no = get_indexno_by_name(obj, id, space_no, index); + index_no = get_indexno_by_name(obj, space_no, index); if (index_no == FAILURE) RETURN_FALSE; } @@ -997,14 +1419,12 @@ PHP_METHOD(tarantool_class, delete) { TARANTOOL_RETURN_DATA(&body, &header, &body); } -PHP_METHOD(tarantool_class, call) { +PHP_METHOD(Tarantool, call) { char *proc; size_t proc_len; zval *tuple = NULL, tuple_new; - zval *id; - TARANTOOL_PARSE_PARAMS(id, "s|z", &proc, &proc_len, &tuple); - tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); - TARANTOOL_CONNECT_ON_DEMAND(obj, id); + TARANTOOL_FUNCTION_BEGIN(obj, id, "s|z", &proc, &proc_len, &tuple); + TARANTOOL_CONNECT_ON_DEMAND(obj); pack_key(tuple, 1, &tuple_new); @@ -1021,14 +1441,12 @@ PHP_METHOD(tarantool_class, call) { TARANTOOL_RETURN_DATA(&body, &header, &body); } -PHP_METHOD(tarantool_class, eval) { +PHP_METHOD(Tarantool, eval) { char *code; size_t code_len; zval *tuple = NULL, tuple_new; - zval *id; - TARANTOOL_PARSE_PARAMS(id, "s|z", &code, &code_len, &tuple); - tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); - TARANTOOL_CONNECT_ON_DEMAND(obj, id); + TARANTOOL_FUNCTION_BEGIN(obj, id, "s|z", &code, &code_len, &tuple); + TARANTOOL_CONNECT_ON_DEMAND(obj); pack_key(tuple, 1, &tuple_new); @@ -1045,31 +1463,34 @@ PHP_METHOD(tarantool_class, eval) { TARANTOOL_RETURN_DATA(&body, &header, &body); } -PHP_METHOD(tarantool_class, update) { +PHP_METHOD(Tarantool, update) { zval *space = NULL, *key = NULL, *index = NULL, *args = NULL; - zval key_new, v_args; + zval key_new; - zval *id; - TARANTOOL_PARSE_PARAMS(id, "zza|z", &space, &key, &args, &index); - tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); - TARANTOOL_CONNECT_ON_DEMAND(obj, id); + TARANTOOL_FUNCTION_BEGIN(obj, id, "zza|z", &space, &key, &args, &index); + TARANTOOL_CONNECT_ON_DEMAND(obj); - long space_no = get_spaceno_by_name(obj, id, space); + long space_no = get_spaceno_by_name(obj, space); if (space_no == FAILURE) RETURN_FALSE; int32_t index_no = 0; if (index) { - index_no = get_indexno_by_name(obj, id, space_no, index); + index_no = get_indexno_by_name(obj, space_no, index); if (index_no == FAILURE) RETURN_FALSE; } - if (!tarantool_update_verify_args(args, &v_args)) { - RETURN_FALSE; - } pack_key(key, 0, &key_new); long sync = TARANTOOL_G(sync_counter)++; - php_tp_encode_update(obj->value, sync, space_no, index_no, &key_new, &v_args); + /* Remember where we've stopped */ + size_t before_len = SSTR_LEN(obj->value); + char *sz = php_tp_encode_update(obj->value, sync, space_no, + index_no, &key_new); + if (tarantool_uwrite_ops(obj, args, space_no) == -1) { + /* rollback all written changes */ + SSTR_LEN(obj->value) = before_len; + RETURN_FALSE; + } + php_tp_reencode_length(obj->value, sz); zval_ptr_dtor(&key_new); - zval_ptr_dtor(&v_args); if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; @@ -1080,24 +1501,26 @@ PHP_METHOD(tarantool_class, update) { TARANTOOL_RETURN_DATA(&body, &header, &body); } -PHP_METHOD(tarantool_class, upsert) { +PHP_METHOD(Tarantool, upsert) { zval *space = NULL, *tuple = NULL, *args = NULL; - zval v_args; - zval *id; - tarantool_object *obj = php_tarantool_object(Z_OBJ_P(getThis())); - TARANTOOL_PARSE_PARAMS(id, "zaa", &space, &tuple, &args); - TARANTOOL_CONNECT_ON_DEMAND(obj, id); + TARANTOOL_FUNCTION_BEGIN(obj, id, "zaa", &space, &tuple, &args); + TARANTOOL_CONNECT_ON_DEMAND(obj); - long space_no = get_spaceno_by_name(obj, id, space); + long space_no = get_spaceno_by_name(obj, space); if (space_no == FAILURE) RETURN_FALSE; - if (!tarantool_update_verify_args(args, &v_args)) { + long sync = TARANTOOL_G(sync_counter)++; + /* Remember where we've stopped */ + size_t before_len = SSTR_LEN(obj->value); + char *sz = php_tp_encode_upsert(obj->value, sync, + space_no, tuple); + if (tarantool_uwrite_ops(obj, args, space_no) == -1) { + /* rollback all written changes */ + SSTR_LEN(obj->value) = before_len; RETURN_FALSE; } - long sync = TARANTOOL_G(sync_counter)++; - php_tp_encode_upsert(obj->value, sync, space_no, tuple, &v_args); - zval_ptr_dtor(&v_args); + php_tp_reencode_length(obj->value, sz); if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; diff --git a/src/tarantool_exception.c b/src/tarantool_exception.c new file mode 100644 index 0000000..517682c --- /dev/null +++ b/src/tarantool_exception.c @@ -0,0 +1,137 @@ +#include "php_tarantool.h" + +zend_class_entry *TarantoolException_ptr; +zend_class_entry *TarantoolIOException_ptr; +zend_class_entry *TarantoolClientError_ptr; +zend_class_entry *TarantoolParsingException_ptr; + +#if HAVE_SPL +/* Pointer to SPL Runtime Exception */ +static zend_class_entry *SPLRE_ptr = NULL; +static const char SPLRE_name[] = "runtimeexception"; +static size_t SPLRE_name_len = sizeof(SPLRE_name); +#endif + +PHP_TARANTOOL_API +zend_class_entry *php_tarantool_get_exception(void) +{ + return TarantoolException_ptr; +} + +PHP_TARANTOOL_API +zend_class_entry *php_tarantool_get_ioexception(void) +{ + return TarantoolIOException_ptr; +} + +PHP_TARANTOOL_API +zend_class_entry *php_tarantool_get_clienterror(void) +{ + return TarantoolClientError_ptr; +} + +PHP_TARANTOOL_API +zend_class_entry *php_tarantool_get_parsingexception(void) +{ + return TarantoolParsingException_ptr; +} + +PHP_TARANTOOL_API +zend_class_entry *php_tarantool_get_exception_base(int root) { + TSRMLS_FETCH(); +#if HAVE_SPL + if (!root) { + if (SPLRE_ptr == NULL) { + zval *pce_z = NULL; + zend_string *key = zend_string_init(SPLRE_name, + SPLRE_name_len, 0); + if ((pce_z = zend_hash_find(CG(class_table), + key)) != NULL) + SPLRE_ptr = Z_CE_P(pce_z); + zend_string_release(key); + } + if (SPLRE_ptr != NULL) + return SPLRE_ptr; + } +#endif + return zend_ce_exception; +} + +zend_object *tarantool_throw_exception_vbase(zend_class_entry *ce, + uint32_t code, const char *fmt, + va_list arg) { + char *message; + zend_object *obj; + + vspprintf(&message, 0, fmt, arg); + va_end(arg); + obj = zend_throw_exception(ce, (const char *)message, code TSRMLS_DC); + efree(message); + return obj; +} + +zend_object *tarantool_throw_exception_base(zend_class_entry *ce, uint32_t code, + const char *fmt, ...) { + va_list arg; + va_start(arg, fmt); + + return tarantool_throw_exception_vbase(ce, code, fmt, arg); +} + +zend_object *tarantool_throw_exception(const char *fmt, ...) { + va_list arg; + va_start(arg, fmt); + + return tarantool_throw_exception_vbase(TarantoolException_ptr, 0, fmt, + arg); +} + +zend_object *tarantool_throw_ioexception(const char *fmt, ...) { + va_list arg; + va_start(arg, fmt); + + return tarantool_throw_exception_vbase(TarantoolIOException_ptr, 0, fmt, + arg); +} + +zend_object *tarantool_throw_clienterror(uint32_t code, const char *err, + size_t errlen) { + return tarantool_throw_exception_base(TarantoolClientError_ptr, code, + "%.*s", errlen, err); +} + +zend_object *tarantool_throw_parsingexception(const char *component) { + return tarantool_throw_exception_base(TarantoolParsingException_ptr, 0, + "Failed to parse %s", component); +} + +ZEND_MINIT_FUNCTION(tarantool_exception) { + /* Init class entries */ + zend_class_entry tarantool_xc_class; + zend_class_entry tarantool_io_xc_class; + zend_class_entry tarantool_client_er_class; + zend_class_entry tarantool_parsing_xc_class; + + INIT_CLASS_ENTRY(tarantool_xc_class, "TarantoolException", NULL); + TarantoolException_ptr = zend_register_internal_class_ex( + &tarantool_xc_class, + php_tarantool_get_exception_base(0) + ); + INIT_CLASS_ENTRY(tarantool_io_xc_class, "TarantoolIOException", NULL); + TarantoolIOException_ptr = zend_register_internal_class_ex( + &tarantool_io_xc_class, + TarantoolException_ptr + ); + INIT_CLASS_ENTRY(tarantool_client_er_class, "TarantoolClientError", NULL); + TarantoolClientError_ptr = zend_register_internal_class_ex( + &tarantool_client_er_class, + TarantoolException_ptr + ); + INIT_CLASS_ENTRY(tarantool_parsing_xc_class, "TarantoolParsingException", NULL); + TarantoolParsingException_ptr = zend_register_internal_class_ex( + &tarantool_parsing_xc_class, + TarantoolException_ptr + ); + + return SUCCESS; +} diff --git a/src/tarantool_exception.h b/src/tarantool_exception.h new file mode 100644 index 0000000..f910e17 --- /dev/null +++ b/src/tarantool_exception.h @@ -0,0 +1,25 @@ +#ifndef PHP_TNT_EXCEPTION_H +#define PHP_TNT_EXCEPTION_H + +extern zend_class_entry *TarantoolException_ptr; +extern zend_class_entry *TarantoolIOException_ptr; +extern zend_class_entry *TarantoolClientError_ptr; +extern zend_class_entry *TarantoolParsingException_ptr; + +PHP_TARANTOOL_API zend_class_entry *php_tarantool_get_exception(void); +PHP_TARANTOOL_API zend_class_entry *php_tarantool_get_ioexception(void); +PHP_TARANTOOL_API zend_class_entry *php_tarantool_get_clienterror(void); +PHP_TARANTOOL_API zend_class_entry *php_tarantool_get_parsingexception(void); +PHP_TARANTOOL_API zend_class_entry *php_tarantool_get_exception_base(int root TSRMLS_DC); + +zend_object *tarantool_throw_exception(const char *fmt, ...); +zend_object *tarantool_throw_ioexception(const char *fmt, ...); +zend_object *tarantool_throw_clienterror(uint32_t code, const char *err, + size_t errlen); +zend_object *tarantool_throw_parsingexception(const char *component); + +ZEND_MINIT_FUNCTION(tarantool_exception); + +#define THROW_EXC(...) tarantool_throw_exception(__VA_ARGS__) + +#endif /* PHP_TNT_EXCEPTION_H */ diff --git a/src/tarantool_manager.c b/src/tarantool_manager.c deleted file mode 100644 index 619cee6..0000000 --- a/src/tarantool_manager.c +++ /dev/null @@ -1,216 +0,0 @@ -#include -#include -#include -#include -#include - -#include "php_tarantool.h" -#include "tarantool_proto.h" -#include "tarantool_manager.h" -#include "tarantool_network.h" - -#include - -#define mh_arg_t void * - -#define mh_eq(a, b, arg) (strcmp((*a)->prep_line, (*b)->prep_line) == 0) -#define mh_eq_key(a, b, arg) (strcmp(a, (*b)->prep_line) == 0) -#define mh_hash(x, arg) PMurHash32(MUR_SEED, (*x)->prep_line, strlen((*x)->prep_line)) -#define mh_hash_key(x, arg) PMurHash32(MUR_SEED, x, strlen(x)); - - -typedef struct manager_entry *mh_node_t; -typedef const char *mh_key_t; - -#define MH_CALLOC(x, y) pecalloc(x, y, 1) -#define MH_FREE(x) pefree(x, 1) - -#define mh_name _manager -#define MH_SOURCE 1 -#define MH_INCREMENTAL_RESIZE 1 -#include "third_party/mhash.h" - -int manager_entry_dequeue_delete (struct manager_entry *entry); - -char *tarantool_tostr ( - struct tarantool_object *obj, - struct pool_manager *pool -) { - char *login = obj->login ? obj->login : ""; - char *retval = pecalloc(256, sizeof(char), 1); - snprintf(retval, 256, "%s:%d:%s", obj->host, obj->port, login); - return retval; -} - -char *tarantool_stream_pid(struct tarantool_object *obj) { - TSRMLS_FETCH(); - char *pid = pecalloc(256, sizeof(char), 1); - snprintf(pid, 256, "tarantool:%s:%d:%d", obj->host, obj->port, - php_rand(TSRMLS_C)); - return pid; -} - -struct pool_manager *pool_manager_create ( - zend_bool persistent, - int max_per_host -) { - struct pool_manager *manager = pemalloc(sizeof(struct pool_manager), 1); - manager->max_per_host = max_per_host; - manager->persistent = persistent; - manager->pool = mh_manager_new(); -#ifdef ZTS - manager->mutex = tsrm_mutex_alloc(); -#endif /* ZTS */ - return manager; -} - -int pool_manager_free (struct pool_manager *manager) { - if (manager == NULL) - return 0; - int pos = 0; - mh_foreach(manager->pool, pos) { - struct manager_entry *pos_val_p = *mh_manager_node( - manager->pool, pos); - pefree(pos_val_p->prep_line, 1); - while (pos_val_p->value.end != NULL) - manager_entry_dequeue_delete(pos_val_p); - pefree(pos_val_p, 1); - } - mh_manager_delete(manager->pool); -#ifdef ZTS - tsrm_mutex_free(manager->mutex); -#endif /* ZTS */ - return 0; -} - -struct manager_entry *manager_entry_create ( - struct pool_manager *pool, - struct tarantool_object *obj -) { - struct manager_entry *entry = pemalloc(sizeof(struct manager_entry), 1); - entry->prep_line = tarantool_tostr(obj, pool); - entry->size = 0; - entry->value.begin = entry->value.end = 0; - return entry; -} - -int manager_entry_dequeue_delete (struct manager_entry *entry) { - struct pool_value *pval = entry->value.begin; - assert (pval != NULL); - TSRMLS_FETCH(); - - if (pval->greeting) pefree(pval->greeting, 1); - if (pval->persistent_id) { - tntll_stream_close(NULL, pval->persistent_id); - pefree(pval->persistent_id, 1); - } - if (pval->schema) { - tarantool_schema_delete(pval->schema); - pval->schema = NULL; - } - if (entry->value.begin == entry->value.end) - entry->value.begin = entry->value.end = NULL; - else - entry->value.begin = entry->value.begin->next; - pval->next = NULL; - entry->size--; - pefree(pval, 1); - return 0; -} - -int manager_entry_pop_apply ( - struct pool_manager *pool, - struct manager_entry *entry, - struct tarantool_object *obj -) { - if (entry->value.end == NULL) - return 1; - struct pool_value *pval = entry->value.end; - if (entry->value.begin == entry->value.end) - entry->value.begin = entry->value.end = NULL; - else - entry->value.begin = entry->value.begin->next; - if (obj->persistent_id) pefree(obj->persistent_id, 1); - if (obj->greeting) pefree(obj->greeting, 1); - obj->persistent_id = pval->persistent_id; - obj->greeting = pval->greeting; - obj->salt = pval->greeting + SALT_PREFIX_SIZE; - obj->schema = pval->schema; - --entry->size; - return 0; -} - -int manager_entry_enqueue_assure ( - struct pool_manager *pool, - struct manager_entry *entry, - struct tarantool_object *obj -) { - if (entry->size == pool->max_per_host) { - manager_entry_dequeue_delete(entry); - obj->stream = NULL; - } - struct pool_value *temp_con = pemalloc(sizeof(struct pool_value), 1); - temp_con->persistent_id = obj->persistent_id; - temp_con->greeting = obj->greeting; - temp_con->schema = obj->schema; - temp_con->next = NULL; - obj->persistent_id = NULL; - obj->greeting = NULL; - obj->schema = NULL; - entry->size++; - if (entry->value.begin == NULL) - entry->value.begin = entry->value.end = temp_con; - else - entry->value.end = entry->value.end->next = temp_con; - - return 0; -} - -int pool_manager_find_apply ( - struct pool_manager *pool, - struct tarantool_object *obj -) { - if (!pool->persistent) - return 1; -#ifdef ZTS - tsrm_mutex_lock(pool->mutex); -#endif /* ZTS */ - char *key = tarantool_tostr(obj, pool); - mh_int_t pos = mh_manager_find(pool->pool, key, NULL); - pefree(key, 1); - int rv = 1; - if (pos != mh_end(pool->pool)) { - struct manager_entry *t = *mh_manager_node(pool->pool, pos); - rv = manager_entry_pop_apply(pool, t, obj); - } -#ifdef ZTS - tsrm_mutex_unlock(pool->mutex); -#endif /* ZTS */ - return rv; -} - -int pool_manager_push_assure ( - struct pool_manager *pool, - struct tarantool_object *obj -) { - if (!pool->persistent) - return 1; -#ifdef ZTS - tsrm_mutex_lock(pool->mutex); -#endif /* ZTS */ - char *key = tarantool_tostr(obj, pool); - mh_int_t pos = mh_manager_find(pool->pool, key, NULL); - pefree(key, 1); - struct manager_entry *t = NULL; - if (pos == mh_end(pool->pool)) { - t = manager_entry_create(pool, obj); - mh_manager_put(pool->pool, &t, NULL, NULL); - } else { - t = *mh_manager_node(pool->pool, pos); - } - int rv = manager_entry_enqueue_assure(pool, t, obj); -#ifdef ZTS - tsrm_mutex_unlock(pool->mutex); -#endif /* ZTS */ - return rv; -} diff --git a/src/tarantool_manager.h b/src/tarantool_manager.h deleted file mode 100644 index ba87d0d..0000000 --- a/src/tarantool_manager.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef PHP_MANAGER_H -#define PHP_MANAGER_H - -#include - -#include "third_party/PMurHash.h" -#define MUR_SEED 13 - -struct pool_value { - char *persistent_id; - char *greeting; - struct tarantool_schema *schema; - struct pool_value *next; -}; - -struct manager_entry { - char *prep_line; - uint16_t size; - struct { - struct pool_value *begin; - struct pool_value *end; - } value; -}; - -struct mh_manager_t; - -struct pool_manager { - zend_bool persistent; - int max_per_host; - struct mh_manager_t *pool; -#ifdef ZTS - MUTEX_T mutex; -#endif /* ZTS */ -}; - -struct tarantool_object; - -char *tarantool_stream_pid(struct tarantool_object *); - -struct pool_manager *pool_manager_create (zend_bool, int); -int pool_manager_free (struct pool_manager *); - -int pool_manager_find_apply (struct pool_manager *, struct tarantool_object *); -int pool_manager_push_assure (struct pool_manager *, struct tarantool_object *); - -#endif /* PHP_MANAGER_H */ diff --git a/src/tarantool_msgpack.c b/src/tarantool_msgpack.c index b449691..01d3162 100644 --- a/src/tarantool_msgpack.c +++ b/src/tarantool_msgpack.c @@ -1,9 +1,8 @@ -#include -#include -#include - #include "php_tarantool.h" + #include "tarantool_msgpack.h" +#include "tarantool_exception.h" + #include "third_party/msgpuck.h" #ifndef HASH_KEY_NON_EXISTENT @@ -15,11 +14,13 @@ int smart_string_ensure(smart_string *str, size_t len) { if (SSTR_AWA(str) > SSTR_LEN(str) + len) return 0; - size_t needed = str->a * 2; + size_t needed = SSTR_AWA(str) * 2; if (SSTR_LEN(str) + len > needed) needed = SSTR_LEN(str) + len; register size_t __n1; smart_string_alloc4(str, needed, 1, __n1); + if (SSTR_BEG(str) == NULL) + return -1; return 0; } @@ -71,7 +72,7 @@ void php_mp_pack_bool(smart_string *str, unsigned char val) { SSTR_LEN(str) += needed; } -void php_mp_pack_string(smart_string *str, char *c, size_t len) { +void php_mp_pack_string(smart_string *str, const char *c, size_t len) { size_t needed = mp_sizeof_str(len); smart_string_ensure(str, needed); mp_encode_str(SSTR_POS(str), c, len); @@ -140,7 +141,7 @@ void php_mp_pack_hash_recursively(smart_string *str, zval *val) { zend_string *key; int key_type; - ulong key_index; + zend_ulong key_index; zval *data; HashPosition pos; @@ -269,7 +270,8 @@ ptrdiff_t php_mp_unpack_double(zval *oval, char **str) { return mp_sizeof_double(val); } -static const char *op_to_string(zend_uchar type) { +const char *op_to_string(zval *obj) { + zend_uchar type = Z_TYPE_P(obj); switch(type) { case(IS_NULL): return "NULL"; @@ -460,7 +462,7 @@ size_t php_mp_sizeof_hash_recursively(zval *val) { zend_string *key; int key_type; - ulong key_index; + zend_ulong key_index; zval *data; HashPosition pos; @@ -535,11 +537,15 @@ size_t php_mp_check(const char *str, size_t str_size) { return mp_check(&str, str + str_size); } +void php_mp_pack_package_size_basic(char *pos, size_t val) { + *pos = 0xce; + *(uint32_t *)(pos + 1) = mp_bswap_u32(val); +} + void php_mp_pack_package_size(smart_string *str, size_t val) { size_t needed = 5; smart_string_ensure(str, needed); - *(SSTR_POS(str)) = 0xce; - *(uint32_t *)(SSTR_POS(str) + 1) = mp_bswap_u32(val); + php_mp_pack_package_size_basic(SSTR_POS(str), val); SSTR_LEN(str) += needed; } diff --git a/src/tarantool_msgpack.h b/src/tarantool_msgpack.h index a7135cb..98126c5 100644 --- a/src/tarantool_msgpack.h +++ b/src/tarantool_msgpack.h @@ -1,9 +1,7 @@ -#ifndef PHP_MSGPACK_H -#define PHP_MSGPACK_H +#ifndef PHP_TNT_MSGPACK_H +#define PHP_TNT_MSGPACK_H -#define PHP_TARANTOOL_DEBUG - -#include +#include "php_tarantool.h" #define PHP_MP_SERIALIZABLE_P(v) (Z_TYPE_P(v) == IS_NULL || \ Z_TYPE_P(v) == IS_LONG || \ @@ -18,10 +16,12 @@ void php_mp_pack (smart_string *buf, zval *val ); ssize_t php_mp_unpack (zval *oval, char **str ); size_t php_mp_sizeof (zval *val); -void php_mp_pack_package_size (smart_string *str, size_t val); -size_t php_mp_unpack_package_size (char *buf); +void php_mp_pack_package_size (smart_string *str, size_t val); +void php_mp_pack_package_size_basic (char *pos, size_t val); +size_t php_mp_unpack_package_size (char *buf); int php_mp_is_hash(zval *val); +const char *op_to_string(zval *obj); void php_mp_pack_nil(smart_string *str); void php_mp_pack_long_pos(smart_string *str, long val); @@ -29,7 +29,7 @@ void php_mp_pack_long_neg(smart_string *str, long val); void php_mp_pack_long(smart_string *str, long val); void php_mp_pack_double(smart_string *str, double val); void php_mp_pack_bool(smart_string *str, unsigned char val); -void php_mp_pack_string(smart_string *str, char *c, size_t len); +void php_mp_pack_string(smart_string *str, const char *c, size_t len); void php_mp_pack_hash(smart_string *str, size_t len); void php_mp_pack_array(smart_string *str, size_t len); void php_mp_pack_array_recursively(smart_string *str, zval *val); @@ -47,6 +47,6 @@ size_t php_mp_sizeof_array(size_t len); size_t php_mp_sizeof_array_recursively(zval *val); size_t php_mp_sizeof_hash_recursively(zval *val); -int smart_string_ensure(smart_string *str, size_t len); - -#endif /* PHP_MSGPACK_H */ +int smart_string_ensure(smart_string *str, size_t len); +void smart_string_nullify(smart_string *str); +#endif /* PHP_TNT_MSGPACK_H */ diff --git a/src/tarantool_network.c b/src/tarantool_network.c index e494cbe..545d4ab 100644 --- a/src/tarantool_network.c +++ b/src/tarantool_network.c @@ -21,30 +21,32 @@ void double_to_ts(double tm, struct timespec *ts) { } /* `pid` means persistent_id */ -void tntll_stream_close(php_stream *stream, const char *pid) { +// void tntll_stream_close(php_stream *stream, const char *pid) { +void tntll_stream_close(php_stream *stream, zend_string *pid) { TSRMLS_FETCH(); int rv = PHP_STREAM_PERSISTENT_SUCCESS; if (stream == NULL) - php_stream_from_persistent_id(pid, &stream TSRMLS_CC); + rv = tntll_stream_fpid2(pid, &stream); int flags = PHP_STREAM_FREE_CLOSE; if (pid) flags = PHP_STREAM_FREE_CLOSE_PERSISTENT; - if (rv == PHP_STREAM_PERSISTENT_SUCCESS && stream) + if (rv == PHP_STREAM_PERSISTENT_SUCCESS && stream) { php_stream_free(stream, flags); + } } -int tntll_stream_fpid2(const char *pid, php_stream **ostream) { +int tntll_stream_fpid2(zend_string *pid, php_stream **ostream) { TSRMLS_FETCH(); - return php_stream_from_persistent_id(pid, ostream TSRMLS_CC); + return php_stream_from_persistent_id(pid->val, ostream TSRMLS_CC); } -int tntll_stream_fpid(const char *host, int port, const char *pid, +int tntll_stream_fpid(const char *host, int port, zend_string *pid, php_stream **ostream, char **err) { TSRMLS_FETCH(); *ostream = NULL; int rv = 0; if (pid) { - rv = php_stream_from_persistent_id(pid, ostream TSRMLS_CC); + rv = php_stream_from_persistent_id(pid->val, ostream TSRMLS_CC); if (rv == PHP_STREAM_PERSISTENT_FAILURE) { spprintf(err, 0, "Failed to load persistent stream."); return -1; @@ -56,7 +58,7 @@ int tntll_stream_fpid(const char *host, int port, const char *pid, return 0; } -int tntll_stream_open(const char *host, int port, const char *pid, +int tntll_stream_open(const char *host, int port, zend_string *pid, php_stream **ostream, char **err) { TSRMLS_FETCH(); php_stream *stream = NULL; @@ -71,8 +73,11 @@ int tntll_stream_open(const char *host, int port, const char *pid, if (pid) options |= STREAM_OPEN_PERSISTENT; flags = STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT; double_to_tv(TARANTOOL_G(timeout), &tv); - stream = php_stream_xport_create(addr, addr_len, options, flags, pid, - &tv, NULL, &errstr, &errcode); + + const char *pid_str = pid == NULL ? NULL : pid->val; + stream = php_stream_xport_create(addr, addr_len, options, flags, + pid_str, &tv, NULL, &errstr, + &errcode); efree(addr); if (errcode || !stream) { @@ -97,7 +102,6 @@ int tntll_stream_open(const char *host, int port, const char *pid, strerror(errno)); goto error; } - *ostream = stream; return 0; error: @@ -120,7 +124,7 @@ int tntll_stream_read2(php_stream *stream, char *buf, size_t size) { size - total_size); assert(read_size + total_size <= size); if (read_size <= 0) - break; + break; total_size += read_size; } return total_size; diff --git a/src/tarantool_network.h b/src/tarantool_network.h index 47d8abe..20aeeb1 100644 --- a/src/tarantool_network.h +++ b/src/tarantool_network.h @@ -1,5 +1,5 @@ -#ifndef PHP_NETWORK_H -#define PHP_NETWORK_H +#ifndef PHP_TNT_NETWORK_H +#define PHP_TNT_NETWORK_H struct timeval; struct timespec; @@ -7,18 +7,18 @@ struct timespec; void double_to_tv(double tm, struct timeval *tv); void double_to_ts(double tm, struct timespec *ts); -void tntll_stream_close(php_stream *stream, const char *pid); +void tntll_stream_close(php_stream *stream, zend_string *pid); /* * Simple php_stream_from_persistent_id */ -int tntll_stream_fpid2(const char *pid, php_stream **ostream); +int tntll_stream_fpid2(zend_string *pid, php_stream **ostream); /* * php_stream_from_persistent_id if persistent. * If exists or if not persistent, then open new connection. */ -int tntll_stream_fpid (const char *host, int port, const char *pid, +int tntll_stream_fpid (const char *host, int port, zend_string *pid, php_stream **ostream, char **err); -int tntll_stream_open (const char *host, int port, const char *pid, +int tntll_stream_open (const char *host, int port, zend_string *pid, php_stream **ostream, char **err); /* * Read size bytes once @@ -30,4 +30,4 @@ int tntll_stream_read (php_stream *stream, char *buf, size_t size); int tntll_stream_read2(php_stream *stream, char *buf, size_t size); int tntll_stream_send (php_stream *stream, char *buf, size_t size); -#endif /* PHP_NETWORK_H */ +#endif /* PHP_TNT_NETWORK_H */ diff --git a/src/tarantool_proto.c b/src/tarantool_proto.c index 64eaf0f..4b440fb 100644 --- a/src/tarantool_proto.c +++ b/src/tarantool_proto.c @@ -1,3 +1,6 @@ +#include "php_tarantool.h" + +#include "tarantool_tp.h" #include "tarantool_proto.h" #include "tarantool_msgpack.h" @@ -11,14 +14,16 @@ static size_t php_tp_sizeof_header(uint32_t request, uint32_t sync) { php_mp_sizeof_long(sync) ; } -static void php_tp_pack_header(smart_string *str, size_t size, - uint32_t request, uint32_t sync) { +static char *php_tp_pack_header(smart_string *str, size_t size, + uint32_t request, uint32_t sync) { + char *sz = SSTR_POS(str); php_mp_pack_package_size(str, size); php_mp_pack_hash(str, 2); php_mp_pack_long(str, TNT_CODE); php_mp_pack_long(str, request); php_mp_pack_long(str, TNT_SYNC); php_mp_pack_long(str, sync); + return sz; } size_t php_tp_sizeof_auth(uint32_t sync, size_t ulen, zend_bool nopass) { @@ -30,7 +35,7 @@ size_t php_tp_sizeof_auth(uint32_t sync, size_t ulen, zend_bool nopass) { php_mp_sizeof_array((nopass ? 0 : 2)); if (!nopass) { val += php_mp_sizeof_string(9) + - php_mp_sizeof_string(PHP_SCRAMBLE_SIZE) ; + php_mp_sizeof_string(SCRAMBLE_SIZE) ; } return val; } @@ -53,7 +58,7 @@ void php_tp_encode_auth( php_mp_pack_array(str, (nopass ? 0 : 2)); if (!nopass) { php_mp_pack_string(str, "chap-sha1", 9); - php_mp_pack_string(str, scramble, PHP_SCRAMBLE_SIZE); + php_mp_pack_string(str, scramble, SCRAMBLE_SIZE); } } @@ -204,72 +209,69 @@ void php_tp_encode_eval(smart_string *str, uint32_t sync, char *proc, uint32_t proc_len, zval *tuple) { size_t packet_size = php_tp_sizeof_eval(sync, proc_len, tuple); - smart_string_ensure(str, packet_size + 5); - php_tp_pack_header(str, packet_size, TNT_EVAL, sync); - php_mp_pack_hash(str, 2); - php_mp_pack_long(str, TNT_EXPRESSION); - php_mp_pack_string(str, proc, proc_len); - php_mp_pack_long(str, TNT_TUPLE); - php_mp_pack(str, tuple); + smart_string_ensure (str, packet_size + 5); + php_tp_pack_header (str, packet_size, TNT_EVAL, sync); + php_mp_pack_hash (str, 2); + php_mp_pack_long (str, TNT_EXPRESSION); + php_mp_pack_string (str, proc, proc_len); + php_mp_pack_long (str, TNT_TUPLE); + php_mp_pack (str, tuple); } -size_t php_tp_sizeof_update(uint32_t sync, - uint32_t space_no, uint32_t index_no, - zval *key, zval *args) { - return php_tp_sizeof_header(TNT_UPDATE, sync) + - php_mp_sizeof_hash(4) + - php_mp_sizeof_long(TNT_SPACE) + - php_mp_sizeof_long(space_no) + - php_mp_sizeof_long(TNT_INDEX) + - php_mp_sizeof_long(index_no) + - php_mp_sizeof_long(TNT_KEY) + - php_mp_sizeof(key) + - php_mp_sizeof_long(TNT_TUPLE) + - php_mp_sizeof(args); +char *php_tp_encode_update(smart_string *str, uint32_t sync, + uint32_t space_no, uint32_t index_no, + zval *key) { + char *sz = php_tp_pack_header(str, 0, TNT_UPDATE, sync); + php_mp_pack_hash (str, 4); + php_mp_pack_long (str, TNT_SPACE); + php_mp_pack_long (str, space_no); + php_mp_pack_long (str, TNT_INDEX); + php_mp_pack_long (str, index_no); + php_mp_pack_long (str, TNT_KEY); + php_mp_pack (str, key); + php_mp_pack_long (str, TNT_TUPLE); + return sz; } -void php_tp_encode_update(smart_string *str, uint32_t sync, - uint32_t space_no, uint32_t index_no, - zval *key, zval *args) { - size_t packet_size = php_tp_sizeof_update(sync, - space_no, index_no, key, args); - smart_string_ensure(str, packet_size + 5); - php_tp_pack_header(str, packet_size, TNT_UPDATE, sync); - php_mp_pack_hash(str, 4); - php_mp_pack_long(str, TNT_SPACE); - php_mp_pack_long(str, space_no); - php_mp_pack_long(str, TNT_INDEX); - php_mp_pack_long(str, index_no); - php_mp_pack_long(str, TNT_KEY); - php_mp_pack(str, key); - php_mp_pack_long(str, TNT_TUPLE); - php_mp_pack(str, args); +char *php_tp_encode_upsert(smart_string *str, uint32_t sync, + uint32_t space_no, zval *tuple) { + char *sz = php_tp_pack_header(str, 0, TNT_UPSERT, sync); + php_mp_pack_hash (str, 3); + php_mp_pack_long (str, TNT_SPACE); + php_mp_pack_long (str, space_no); + php_mp_pack_long (str, TNT_TUPLE); + php_mp_pack (str, tuple); + php_mp_pack_long (str, TNT_OPS); + return sz; } -size_t php_tp_sizeof_upsert(uint32_t sync, uint32_t space_no, zval *tuple, - zval *args) { - return php_tp_sizeof_header(TNT_UPSERT, sync) + - php_mp_sizeof_hash(3) + - php_mp_sizeof_long(TNT_SPACE) + - php_mp_sizeof_long(space_no) + - php_mp_sizeof_long(TNT_TUPLE) + - php_mp_sizeof(tuple) + - php_mp_sizeof_long(TNT_OPS) + - php_mp_sizeof(args); +void php_tp_encode_uheader(smart_string *str, size_t op_count) { + php_mp_pack_array(str, op_count); } -void php_tp_encode_upsert(smart_string *str, uint32_t sync, uint32_t space_no, - zval *tuple, zval *args) { - size_t packet_size = php_tp_sizeof_upsert(sync, space_no, tuple, args); - smart_string_ensure(str, packet_size + 5); - php_tp_pack_header(str, packet_size, TNT_UPSERT, sync); - php_mp_pack_hash(str, 3); - php_mp_pack_long(str, TNT_SPACE); - php_mp_pack_long(str, space_no); - php_mp_pack_long(str, TNT_TUPLE); - php_mp_pack(str, tuple); - php_mp_pack_long(str, TNT_OPS); - php_mp_pack(str, args); +void php_tp_encode_uother(smart_string *str, char type, uint32_t fieldno, + zval *value) { + php_mp_pack_array(str, 3); + php_mp_pack_string(str, (const char *)&type, 1); + php_mp_pack_long(str, fieldno); + php_mp_pack(str, value); +} + +void php_tp_encode_usplice(smart_string *str, uint32_t fieldno, + uint32_t position, uint32_t offset, + const char *buffer, size_t buffer_len) { + php_mp_pack_array(str, 5); + php_mp_pack_string(str, ":", 1); + php_mp_pack_long(str, fieldno); + php_mp_pack_long(str, position); + php_mp_pack_long(str, offset); + php_mp_pack_string(str, buffer, buffer_len); +} + +void php_tp_reencode_length(smart_string *str, char *sz) { + ssize_t package_size = (SSTR_POS(str) - sz) - 5; + assert(package_size > 0); + php_mp_pack_package_size_basic(sz, package_size); } int64_t php_tp_response(struct tnt_response *r, char *buf, size_t size) @@ -330,3 +332,104 @@ int64_t php_tp_response(struct tnt_response *r, char *buf, size_t size) return p - buf; } +int convert_iter_str(const char *i, size_t i_len) { + int first = toupper(i[0]); + switch (first) { + case 'A': + if (i_len == 3 && toupper(i[1]) == 'L' && toupper(i[2]) == 'L') + return ITERATOR_ALL; + break; + case 'B': + if (i_len > 7 && toupper(i[1]) == 'I' && + toupper(i[2]) == 'T' && toupper(i[3]) == 'S' && + toupper(i[4]) == 'E' && toupper(i[5]) == 'T' && + toupper(i[6]) == '_') { + if (i_len == 18 && toupper(i[7]) == 'A' && + toupper(i[8]) == 'L' && toupper(i[9]) == 'L' && + toupper(i[10]) == '_' && toupper(i[11]) == 'N' && + toupper(i[12]) == 'O' && toupper(i[13]) == 'T' && + toupper(i[14]) == '_' && toupper(i[15]) == 'S' && + toupper(i[16]) == 'E' && toupper(i[17]) == 'T') + return ITERATOR_BITSET_ALL_NOT_SET; + else if (i_len == 14 && toupper(i[7]) == 'A' && + toupper(i[8]) == 'L' && toupper(i[9]) == 'L' && + toupper(i[10]) == '_' && toupper(i[11]) == 'S' && + toupper(i[12]) == 'E' && toupper(i[13]) == 'T') + return ITERATOR_BITSET_ALL_SET; + else if (i_len == 14 && toupper(i[7]) == 'A' && + toupper(i[8]) == 'N' && toupper(i[9]) == 'Y' && + toupper(i[10]) == '_' && toupper(i[11]) == 'S' && + toupper(i[12]) == 'E' && toupper(i[13]) == 'T') + return ITERATOR_BITSET_ANY_SET; + } + if (i_len > 4 && toupper(i[1]) == 'I' && + toupper(i[2]) == 'T' && toupper(i[3]) == 'S' && + toupper(i[4]) == '_') { + if (i_len == 16 && toupper(i[5]) == 'A' && + toupper(i[6]) == 'L' && toupper(i[7]) == 'L' && + toupper(i[8]) == '_' && toupper(i[9]) == 'N' && + toupper(i[10]) == 'O' && toupper(i[11]) == 'T' && + toupper(i[12]) == '_' && toupper(i[13]) == 'S' && + toupper(i[14]) == 'E' && toupper(i[15]) == 'T') + return ITERATOR_BITSET_ALL_NOT_SET; + else if (i_len == 12 && toupper(i[5]) == 'A' && + toupper(i[6]) == 'L' && toupper(i[7]) == 'L' && + toupper(i[8]) == '_' && toupper(i[9]) == 'S' && + toupper(i[10]) == 'E' && toupper(i[11]) == 'T') + return ITERATOR_BITSET_ALL_SET; + else if (i_len == 12 && toupper(i[5]) == 'A' && + toupper(i[6]) == 'N' && toupper(i[7]) == 'Y' && + toupper(i[8]) == '_' && toupper(i[9]) == 'S' && + toupper(i[10]) == 'E' && toupper(i[11]) == 'T') + return ITERATOR_BITSET_ANY_SET; + } + break; + case 'E': + if (i_len == 2 && toupper(i[1]) == 'Q') + return ITERATOR_EQ; + break; + case 'G': + if (i_len == 2) { + int second = toupper(i[1]); + switch (second) { + case 'E': + return ITERATOR_GE; + case 'T': + return ITERATOR_GT; + } + } + break; + case 'L': + if (i_len == 2) { + int second = toupper(i[1]); + switch (second) { + case 'T': + return ITERATOR_LT; + case 'E': + return ITERATOR_LE; + } + } + break; + case 'N': + if (i_len == 8 && toupper(i[1]) == 'E' && + toupper(i[2]) == 'I' && toupper(i[3]) == 'G' && + toupper(i[4]) == 'H' && toupper(i[5]) == 'B' && + toupper(i[6]) == 'O' && toupper(i[7]) == 'R') + return ITERATOR_NEIGHBOR; + break; + case 'O': + if (i_len == 8 && toupper(i[1]) == 'V' && + toupper(i[2]) == 'E' && toupper(i[3]) == 'R' && + toupper(i[4]) == 'L' && toupper(i[5]) == 'A' && + toupper(i[6]) == 'P' && toupper(i[7]) == 'S') + return ITERATOR_OVERLAPS; + break; + case 'R': + if (i_len == 3 && toupper(i[1]) == 'E' && toupper(i[2]) == 'Q') + return ITERATOR_REQ; + break; + default: + break; + }; + return -1; +} diff --git a/src/tarantool_proto.h b/src/tarantool_proto.h index 237e74a..e55b6c3 100644 --- a/src/tarantool_proto.h +++ b/src/tarantool_proto.h @@ -1,11 +1,11 @@ -#ifndef PHP_TP_H -#define PHP_TP_H +#ifndef PHP_TNT_PROTO_H +#define PHP_TNT_PROTO_H -#define SALT64_SIZE 44 -#define SALT_SIZE 64 -#define PHP_SCRAMBLE_SIZE 20 -#define GREETING_SIZE 128 -#define SALT_PREFIX_SIZE 64 +#define SALT64_SIZE 44 +#define SALT_SIZE 64 +// #define SCRAMBLE_SIZE 20 +#define GREETING_SIZE 128 +#define SALT_PREFIX_SIZE 64 #define SPACE_SPACE 281 #define SPACE_INDEX 289 @@ -61,18 +61,21 @@ enum tnt_request_type { }; enum tnt_iterator_type { - ITERATOR_EQ = 0, - ITERATOR_REQ = 1, - ITERATOR_ALL = 2, - ITERATOR_LT = 3, - ITERATOR_LE = 4, - ITERATOR_GE = 5, - ITERATOR_GT = 6, - ITERATOR_BITSET_ALL_SET = 7, - ITERATOR_BITSET_ANY_SET = 8, + ITERATOR_EQ = 0, + ITERATOR_REQ = 1, + ITERATOR_ALL = 2, + ITERATOR_LT = 3, + ITERATOR_LE = 4, + ITERATOR_GE = 5, + ITERATOR_GT = 6, + ITERATOR_BITS_ALL_SET = 7, + ITERATOR_BITSET_ALL_SET = 7, + ITERATOR_BITS_ANY_SET = 8, + ITERATOR_BITSET_ANY_SET = 8, + ITERATOR_BITS_ALL_NOT_SET = 9, ITERATOR_BITSET_ALL_NOT_SET = 9, - ITERATOR_OVERLAPS = 10, - ITERATOR_NEIGHBOR = 11, + ITERATOR_OVERLAPS = 10, + ITERATOR_NEIGHBOR = 11, }; struct tnt_response { @@ -103,8 +106,20 @@ void php_tp_encode_call(smart_string *str, uint32_t sync, char *proc, uint32_t proc_len, zval *tuple); void php_tp_encode_eval(smart_string *str, uint32_t sync, char *proc, uint32_t proc_len, zval *tuple); -void php_tp_encode_update(smart_string *str, uint32_t sync, uint32_t space_no, - uint32_t index_no, zval *key, zval *args); -void php_tp_encode_upsert(smart_string *str, uint32_t sync, uint32_t space_no, - zval *tuple, zval *args); -#endif /* PHP_TP_H */ + +char *php_tp_encode_update(smart_string *str, uint32_t sync, + uint32_t space_no, uint32_t index_no, + zval *key); +char *php_tp_encode_upsert(smart_string *str, uint32_t sync, + uint32_t space_no, zval *tuple); +void php_tp_encode_uheader(smart_string *str, size_t op_count); +void php_tp_encode_uother(smart_string *str, char type, uint32_t fieldno, + zval *value); +void php_tp_encode_usplice(smart_string *str, uint32_t fieldno, + uint32_t position, uint32_t offset, + const char *buffer, size_t buffer_len); +void php_tp_reencode_length(smart_string *str, char *sz); + +int convert_iter_str(const char *i, size_t i_len); + +#endif /* PHP_TNT_PROTO_H */ diff --git a/src/tarantool_schema.c b/src/tarantool_schema.c index ca0bfbf..335023d 100644 --- a/src/tarantool_schema.c +++ b/src/tarantool_schema.c @@ -13,40 +13,37 @@ #define MUR_SEED 13 #include "third_party/msgpuck.h" -/*static inline void -schema_field_value_free(struct schema_field_value *val) { - free(val->field_name); -}*/ - -int -mh_indexcmp_eq( +int mh_indexcmp_eq( const struct schema_index_value **lval, const struct schema_index_value **rval, - void *arg) { + void *arg +) { (void )arg; - if ((*lval)->key.id_len != (*rval)->key.id_len) return 0; + if ((*lval)->key.id_len != (*rval)->key.id_len) + return 0; return !memcmp((*lval)->key.id, (*rval)->key.id, (*rval)->key.id_len); } -int -mh_indexcmp_key_eq( +int mh_indexcmp_key_eq( const struct schema_key *key, const struct schema_index_value **val, - void *arg) { + void *arg +) { (void )arg; - if (key->id_len != (*val)->key.id_len) return 0; + if (key->id_len != (*val)->key.id_len) + return 0; return !memcmp(key->id, (*val)->key.id, key->id_len); } #define mh_arg_t void * -#define mh_eq(a, b, arg) mh_indexcmp_eq(a, b, arg) -#define mh_eq_key(a, b, arg) mh_indexcmp_key_eq(a, b, arg) -#define mh_hash(x, arg) PMurHash32(MUR_SEED, (*x)->key.id, (*x)->key.id_len) -#define mh_hash_key(x, arg) PMurHash32(MUR_SEED, (x)->id, (x)->id_len); +#define mh_eq(a, b, arg) mh_indexcmp_eq(a, b, arg) +#define mh_eq_key(a, b, arg) mh_indexcmp_key_eq(a, b, arg) +#define mh_hash(x, arg) PMurHash32(MUR_SEED, (*x)->key.id, (*x)->key.id_len) +#define mh_hash_key(x, arg) PMurHash32(MUR_SEED, (x)->id, (x)->id_len); -#define mh_node_t const struct schema_index_value * -#define mh_key_t const struct schema_key * +#define mh_node_t struct schema_index_value * +#define mh_key_t struct schema_key * #define MH_CALLOC(x, y) pecalloc((x), (y), 1) #define MH_FREE(x) pefree((x), 1) @@ -55,16 +52,19 @@ mh_indexcmp_key_eq( #define MH_SOURCE 1 #include "third_party/mhash.h" +static inline void +schema_field_value_free(struct schema_field_value *val) { + free(val->field_name); +} + static inline void schema_index_value_free(const struct schema_index_value *val) { if (val) { pefree(val->index_name, 1); - /* int i = 0; for (i = val->index_parts_len; i > 0; --i) schema_field_value_free(&(val->index_parts[i - 1])); pefree(val->index_parts, 1); - */ } } @@ -73,19 +73,27 @@ schema_index_free(struct mh_schema_index_t *schema) { int pos = 0; mh_int_t index_slot = 0; mh_foreach(schema, pos) { - const struct schema_index_value *ivalue = *mh_schema_index_node(schema, pos); - const struct schema_index_value *iv1 = NULL, *iv2 = NULL; + const struct schema_index_value *ivalue, *iv1 = NULL, *iv2 = NULL; + ivalue = *mh_schema_index_node(schema, pos); do { - struct schema_key key_number = {(void *)&(ivalue->index_number), sizeof(uint32_t)}; - index_slot = mh_schema_index_find(schema, &key_number, NULL); + struct schema_key key_number = { + (void *)&(ivalue->index_number), + sizeof(uint32_t) + }; + index_slot = mh_schema_index_find(schema, &key_number, + NULL); if (index_slot == mh_end(schema)) break; iv1 = *mh_schema_index_node(schema, index_slot); mh_schema_index_del(schema, index_slot, NULL); } while (0); do { - struct schema_key key_string = {ivalue->index_name, ivalue->index_name_len}; - index_slot = mh_schema_index_find(schema, &key_string, NULL); + struct schema_key key_string = { + ivalue->index_name, + ivalue->index_name_len + }; + index_slot = mh_schema_index_find(schema, &key_string, + NULL); if (index_slot == mh_end(schema)) break; iv2 = *mh_schema_index_node(schema, index_slot); @@ -97,14 +105,14 @@ schema_index_free(struct mh_schema_index_t *schema) { } } - int mh_spacecmp_eq( const struct schema_space_value **lval, const struct schema_space_value **rval, void *arg) { (void )arg; - if ((*lval)->key.id_len != (*rval)->key.id_len) return 0; + if ((*lval)->key.id_len != (*rval)->key.id_len) + return 0; return !memcmp((*lval)->key.id, (*rval)->key.id, (*rval)->key.id_len); } @@ -114,7 +122,8 @@ mh_spacecmp_key_eq( const struct schema_space_value **val, void *arg) { (void )arg; - if (key->id_len != (*val)->key.id_len) return 0; + if (key->id_len != (*val)->key.id_len) + return 0; return !memcmp(key->id, (*val)->key.id, key->id_len); } @@ -125,8 +134,8 @@ mh_spacecmp_key_eq( #define mh_hash(x, arg) PMurHash32(MUR_SEED, (*x)->key.id, (*x)->key.id_len) #define mh_hash_key(x, arg) PMurHash32(MUR_SEED, x->id, x->id_len); -#define mh_node_t const struct schema_space_value * -#define mh_key_t const struct schema_key * +#define mh_node_t struct schema_space_value * +#define mh_key_t struct schema_key * #define MH_CALLOC(x, y) pecalloc((x), (y), 1) #define MH_FREE(x) pefree((x), 1) @@ -140,12 +149,10 @@ static inline void schema_space_value_free(const struct schema_space_value *val) { if (val) { pefree(val->space_name, 1); - /* int i = 0; for (i = val->schema_list_len; i > 0; --i) schema_field_value_free(&(val->schema_list[i - 1])); pefree(val->schema_list, 1); - */ if (val->index_hash) { schema_index_free(val->index_hash); mh_schema_index_delete(val->index_hash); @@ -158,19 +165,27 @@ schema_space_free(struct mh_schema_space_t *schema) { int pos = 0; mh_int_t space_slot = 0; mh_foreach(schema, pos) { - const struct schema_space_value *svalue = *mh_schema_space_node(schema, pos); - const struct schema_space_value *sv1 = NULL, *sv2 = NULL; + const struct schema_space_value *svalue, *sv1 = NULL, *sv2 = NULL; + svalue = *mh_schema_space_node(schema, pos); do { - struct schema_key key_number = {(void *)&(svalue->space_number), sizeof(uint32_t)}; - space_slot = mh_schema_space_find(schema, &key_number, NULL); + struct schema_key key_number = { + (void *)&(svalue->space_number), + sizeof(uint32_t) + }; + space_slot = mh_schema_space_find(schema, &key_number, + NULL); if (space_slot == mh_end(schema)) break; sv1 = *mh_schema_space_node(schema, space_slot); mh_schema_space_del(schema, space_slot, NULL); } while (0); do { - struct schema_key key_string = {svalue->space_name, svalue->space_name_len}; - space_slot = mh_schema_space_find(schema, &key_string, NULL); + struct schema_key key_string = { + svalue->space_name, + svalue->space_name_len + }; + space_slot = mh_schema_space_find(schema, &key_string, + NULL); if (space_slot == mh_end(schema)) break; sv2 = *mh_schema_space_node(schema, space_slot); @@ -182,79 +197,187 @@ schema_space_free(struct mh_schema_space_t *schema) { } } +int parse_field_type(const char *sfield, size_t sfield_len) { + if (sfield_len == 3) { + if (tolower(sfield[0]) == 's' && + tolower(sfield[1]) == 't' && + tolower(sfield[2]) == 'r') + return FT_STR; + if (tolower(sfield[0]) == 'n' && + tolower(sfield[1]) == 'u' && + tolower(sfield[2]) == 'm') + return FT_NUM; + } + return FT_OTHER; +} + +static inline int +parse_schema_space_value_value(struct schema_field_value *fld, + const char **tuple) { + uint32_t sfield_len = 0; + if (mp_typeof(**tuple) != MP_STR) + goto error; + const char *sfield = mp_decode_str(tuple, &sfield_len); + if (memcmp(sfield, "name", sfield_len) == 0) { + if (mp_typeof(**tuple) != MP_STR) + goto error; + sfield = mp_decode_str(tuple, &fld->field_name_len); + fld->field_name = pemalloc(fld->field_name_len, 1); + if (!fld->field_name) + goto error; + memcpy(fld->field_name, sfield, fld->field_name_len); + } else if (memcmp(sfield, "type", sfield_len) == 0) { + if (mp_typeof(**tuple) != MP_STR) + goto error; + sfield = mp_decode_str(tuple, &sfield_len); + fld->field_type = parse_field_type(sfield, sfield_len); + } + return 0; +error: + return -1; +} + +static inline int +parse_schema_space_value(struct schema_space_value *space_string, + const char **tuple) { + uint32_t fmp_tmp_len = 0; + if (mp_typeof(**tuple) != MP_ARRAY) + goto error; + uint32_t fmt_len = mp_decode_array(tuple); + space_string->schema_list_len = fmt_len; + space_string->schema_list = pecalloc(fmt_len, + sizeof(struct schema_field_value), 1); + if (space_string->schema_list == NULL) + goto error; + int i = 0; + for (i = 0; i < fmt_len; ++i) { + struct schema_field_value *val = &(space_string->schema_list[i]); + if (mp_typeof(**tuple) != MP_MAP) + goto error; + uint32_t arrsz = mp_decode_map(tuple); + while (arrsz-- > 0) { + if (parse_schema_space_value_value(val, tuple) < 0) + goto error; + } + val->field_number = i; + } + return 0; +error: + return -1; +} + +static inline int +parse_schema_index_value(struct schema_index_value *index_string, + const char **tuple) { + if (mp_typeof(**tuple) != MP_ARRAY) + goto error; + uint32_t part_count = mp_decode_array(tuple); + index_string->index_parts_len = part_count; + index_string->index_parts = pecalloc(part_count, + sizeof(struct schema_field_value), + 1); + if (!index_string->index_parts) + goto error; + memset(index_string->index_parts, 0, part_count * + sizeof(struct schema_field_value)); + int i = 0; + for (i = 0; i < part_count; ++i) { + if (mp_typeof(**tuple) != MP_ARRAY) + goto error; + if (mp_decode_array(tuple) != 2) + goto error; + struct schema_field_value *val = &(index_string->index_parts[i]); + if (mp_typeof(**tuple) != MP_UINT) + goto error; + val->field_number = mp_decode_uint(tuple); + uint32_t sfield_len = 0; + if (mp_typeof(**tuple) != MP_STR) + goto error; + const char *sfield = mp_decode_str(tuple, &sfield_len); + val->field_type = parse_field_type(sfield, sfield_len); + } + return 0; +error: + return -1; +} + static inline int schema_add_space( struct mh_schema_space_t *schema, - const char **data) { + const char **data +) { const char *tuple = *data; - if (mp_typeof(*tuple) != MP_ARRAY) goto error; + if (mp_typeof(*tuple) != MP_ARRAY) + goto error; uint32_t tuple_len = mp_decode_array(&tuple); - if (tuple_len < 6) goto error; - struct schema_space_value *space_string = pemalloc(sizeof(struct schema_space_value), 1); - if (!space_string) goto error; + if (tuple_len < 6) + goto error; + struct schema_space_value *space_number = NULL, *space_string = NULL; + space_string = pemalloc(sizeof(struct schema_space_value), 1); + if (space_string == NULL) + goto error; memset(space_string, 0, sizeof(struct schema_space_value)); - if (mp_typeof(*tuple) != MP_UINT) goto error; - space_string->space_number = mp_decode_uint(&tuple); - /* skip owner id */ - mp_next(&tuple); - if (mp_typeof(*tuple) != MP_STR) goto error; - const char *space_name_tmp = mp_decode_str(&tuple, &space_string->space_name_len); - space_string->space_name = pemalloc(space_string->space_name_len, 1); - if (!space_string->space_name) goto error; - memcpy(space_string->space_name, space_name_tmp, space_string->space_name_len); - /* skip engine name */ - mp_next(&tuple); - /* skip field count */ - mp_next(&tuple); - /* skip format */ - mp_next(&tuple); - /* parse format */ - mp_next(&tuple); - /* skip_format - uint32_t fmp_tmp_len = 0; - if (mp_typeof(*tuple) != MP_ARRAY) goto error; - uint32_t fmt_len = mp_decode_array(&tuple); - space_string->schema_list_len = fmt_len; - space_string->schema_list = pecalloc(fmt_len, sizeof(struct schema_field_value), 1); - if (!space_string->schema_list) goto error; - while (fmt_len-- > 0) { - struct schema_field_value *val = &(space_string->schema_list[ - (space_string->schema_list_len - fmt_len - 1)]); - if (mp_typeof(*tuple) != MP_MAP) goto error; - uint32_t arrsz = mp_decode_map(&tuple); - while (arrsz-- > 0) { - uint32_t sfield_len = 0; - if (mp_typeof(*tuple) != MP_STR) goto error; - const char *sfield = mp_decode_str(&tuple, &sfield_len); - if (memcmp(sfield, "name", sfield_len) == 0) { - if (mp_typeof(*tuple) != MP_STR) goto error; - sfield = mp_decode_str(&tuple, &val->field_name_len); - val->field_name = pemalloc(val->field_name_len, 1); - if (!val->field_name) goto error; - memcpy(val->field_name, sfield, val->field_name_len); - } else if (memcmp(sfield, "type", sfield_len) == 0) { - if (mp_typeof(*tuple) != MP_STR) goto error; - sfield = mp_decode_str(&tuple, &sfield_len); - switch(*sfield) { - case ('s'): - case ('S'): - val->field_type = FT_STR; - break; - case ('n'): - case ('N'): - val->field_type = FT_NUM; - break; - default: - val->field_type = FT_OTHER; - } - } + int pos = 0; + for (pos = 0; pos < tuple_len; ++pos) { + int error = 0; + switch (pos) { + /* space ID (uint) */ + case 0: + if (mp_typeof(*tuple) != MP_UINT) + goto error; + space_string->space_number = mp_decode_uint(&tuple); + break; + /* owner ID (uint) */ + case 1: + mp_next(&tuple); + break; + /* space name (str)*/ + case 2: + if (mp_typeof(*tuple) != MP_STR) + goto error; + const char *space_name_tmp = mp_decode_str(&tuple, + &space_string->space_name_len); + space_string->space_name = pemalloc( + space_string->space_name_len, 1); + if (space_string->space_name == NULL) + goto error; + memcpy(space_string->space_name, space_name_tmp, + space_string->space_name_len); + break; + /* space engine (str) */ + case 3: + mp_next(&tuple); + break; + /* field count (uint) */ + case 4: + mp_next(&tuple); + break; + /* space flags (skipped, for now) */ + case 5: + mp_next(&tuple); + break; + /* + * space format (array of maps) + * map's format is: { + * 'name' = , + * 'type' = + * } + */ + case 6: + if (parse_schema_space_value(space_string, &tuple) < 0) + goto error; + break; + default: + /* unreacheable */ + assert(false); } } - */ space_string->index_hash = mh_schema_index_new(); - if (!space_string->index_hash) goto error; - struct schema_space_value *space_number = pemalloc(sizeof(struct schema_space_value), 1); - if (!space_number) goto error; + if (!space_string->index_hash) + goto error; + space_number = pemalloc(sizeof(struct schema_space_value), 1); + if (!space_number) + goto error; memcpy(space_number, space_string, sizeof(struct schema_space_value)); space_string->key.id = space_string->space_name; space_string->key.id_len = space_string->space_name_len; @@ -273,10 +396,12 @@ schema_add_space( return -1; } -int tarantool_schema_add_spaces( +int +tarantool_schema_add_spaces( struct tarantool_schema *schema_obj, const char *data, - uint32_t size) { + uint32_t size +) { struct mh_schema_space_t *schema = schema_obj->space_hash; const char *tuple = data; if (mp_check(&tuple, tuple + size)) @@ -292,79 +417,95 @@ int tarantool_schema_add_spaces( return 0; } -static inline int -schema_add_index( - struct mh_schema_space_t *schema, - const char **data) { +static inline int schema_add_index( + struct mh_schema_space_t *schema, + const char **data +) { + uint32_t space_number = 0; + struct schema_key space_key; + const struct schema_space_value *space; + struct schema_index_value *index_string, *index_number; + const char *tuple = *data; - if (mp_typeof(*tuple) != MP_ARRAY) goto error; + /* parse index tuple header */ + if (mp_typeof(*tuple) != MP_ARRAY) + goto error; int64_t tuple_len = mp_decode_array(&tuple); - if (tuple_len < 6) goto error; - uint32_t space_number = mp_decode_uint(&tuple); - if (mp_typeof(*tuple) != MP_UINT) goto error; - struct schema_key space_key = {(void *)&(space_number), sizeof(uint32_t)}; - mh_int_t space_slot = mh_schema_space_find(schema, &space_key, NULL); - if (space_slot == mh_end(schema)) - return -1; - const struct schema_space_value *space = *mh_schema_space_node(schema, space_slot); - struct schema_index_value *index_string = pemalloc(sizeof(struct schema_index_value), 1); - if (!index_string) goto error; + if (tuple_len < 6) + goto error; + + index_string = pemalloc(sizeof(struct schema_index_value), 1); + if (!index_string) + goto error; memset(index_string, 0, sizeof(struct schema_index_value)); - if (mp_typeof(*tuple) != MP_UINT) goto error; - index_string->index_number = mp_decode_uint(&tuple); - if (mp_typeof(*tuple) != MP_STR) goto error; - const char *index_name_tmp = mp_decode_str(&tuple, &index_string->index_name_len); - index_string->index_name = pemalloc(index_string->index_name_len, 1); - if (!index_string->index_name) goto error; - memcpy(index_string->index_name, index_name_tmp, index_string->index_name_len); - /* skip index type */ - mp_next(&tuple); - /* skip unique flag */ - mp_next(&tuple); - mp_next(&tuple); - /* skip fields - uint32_t part_count = mp_decode_uint(&tuple); - if (mp_typeof(*tuple) != MP_UINT) goto error; - uint32_t rpart_count = part_count; - index_string->index_parts = pecalloc(part_count, sizeof(struct schema_field_value), 1); - if (!index_string->index_parts) goto error; - memset(index_string->index_parts, 0, part_count * sizeof(struct schema_field_value)); - if (tuple_len - part_count * 2 != 6) goto error; - while (part_count--) { - struct schema_field_value *val = &(index_string->index_parts[rpart_count - part_count - 1]); - if (mp_typeof(*tuple) != MP_UINT) goto error; - val->field_number = mp_decode_uint(&tuple); - uint32_t sfield_len = 0; - if (mp_typeof(*tuple) != MP_STR) goto error; - const char *sfield = mp_decode_str(&tuple, &sfield_len); - switch(*sfield) { - case ('s'): - case ('S'): - val->field_type = FT_STR; - break; - case ('n'): - case ('N'): - val->field_type = FT_NUM; - break; - default: - val->field_type = FT_OTHER; + index_number = pemalloc(sizeof(struct schema_index_value), 1); + if (!index_number) + goto error; + memset(index_number, 0, sizeof(struct schema_index_value)); + int pos = 0; + for (pos = 0; pos < tuple_len; ++pos) { + int error = 0; + switch (pos) { + /* space ID */ + case 0: + if (mp_typeof(*tuple) != MP_UINT) + goto error; + uint32_t space_number = mp_decode_uint(&tuple); + space_key.id = (void *)&(space_number); + space_key.id_len = sizeof(uint32_t); + break; + /* index ID */ + case 1: + if (mp_typeof(*tuple) != MP_UINT) + goto error; + index_string->index_number = mp_decode_uint(&tuple); + break; + /* index name */ + case 2: + if (mp_typeof(*tuple) != MP_STR) + goto error; + const char *index_name_tmp = mp_decode_str(&tuple, + &index_string->index_name_len); + index_string->index_name = pemalloc( + index_string->index_name_len, 1); + if (!index_string->index_name) + goto error; + memcpy(index_string->index_name, index_name_tmp, + index_string->index_name_len); + break; + /* index type */ + case 3: + mp_next(&tuple); + break; + /* index opts */ + case 4: + mp_next(&tuple); + break; + /* index parts */ + case 5: + if (parse_schema_index_value(index_string, &tuple) < 0) + goto error; + break; + default: + /* unreacheable */ + assert(false); } - index_string->index_parts_len++; } - */ - struct schema_index_value *index_number = pemalloc(sizeof(struct schema_index_value), 1); - if (!index_number) goto error; + mh_int_t space_slot = mh_schema_space_find(schema, &space_key, NULL); + if (space_slot == mh_end(schema)) + goto error; + space = *mh_schema_space_node(schema, space_slot); memcpy(index_number, index_string, sizeof(struct schema_index_value)); index_string->key.id = index_string->index_name; index_string->key.id_len = index_string->index_name_len; index_number->key.id = (void *)&(index_number->index_number); index_number->key.id_len = sizeof(uint32_t); mh_schema_index_put(space->index_hash, - (const struct schema_index_value **)&index_string, - NULL, NULL); + (const struct schema_index_value **)&index_string, + NULL, NULL); mh_schema_index_put(space->index_hash, - (const struct schema_index_value **)&index_number, - NULL, NULL); + (const struct schema_index_value **)&index_number, + NULL, NULL); *data = tuple; return 0; error: @@ -372,10 +513,12 @@ schema_add_index( return -1; } -int tarantool_schema_add_indexes( +int +tarantool_schema_add_indexes( struct tarantool_schema *schema_obj, const char *data, - uint32_t size) { + uint32_t size +) { struct mh_schema_space_t *schema = schema_obj->space_hash; const char *tuple = data; if (mp_check(&tuple, tuple + size)) @@ -391,36 +534,77 @@ int tarantool_schema_add_indexes( return 0; } -int32_t tarantool_schema_get_sid_by_string( - struct tarantool_schema *schema_obj, - const char *space_name, uint32_t space_name_len) { +int32_t +tarantool_schema_get_sid_by_string( + struct tarantool_schema *schema_obj, const char *space_name, + uint32_t space_name_len +) { struct mh_schema_space_t *schema = schema_obj->space_hash; - struct schema_key space_key = {space_name, space_name_len}; + struct schema_key space_key = { + space_name, + space_name_len + }; mh_int_t space_slot = mh_schema_space_find(schema, &space_key, NULL); if (space_slot == mh_end(schema)) return -1; - const struct schema_space_value *space = *mh_schema_space_node(schema, space_slot); + const struct schema_space_value *space = *mh_schema_space_node(schema, + space_slot); return space->space_number; } -int32_t tarantool_schema_get_iid_by_string( +int32_t +tarantool_schema_get_iid_by_string( struct tarantool_schema *schema_obj, uint32_t sid, - const char *index_name, uint32_t index_name_len) { + const char *index_name, uint32_t index_name_len +) { struct mh_schema_space_t *schema = schema_obj->space_hash; - struct schema_key space_key = {(void *)&sid, sizeof(uint32_t)}; + struct schema_key space_key = { + (void *)&sid, + sizeof(uint32_t) + }; mh_int_t space_slot = mh_schema_space_find(schema, &space_key, NULL); if (space_slot == mh_end(schema)) return -1; - const struct schema_space_value *space = *mh_schema_space_node(schema, space_slot); - struct schema_key index_key = {index_name, index_name_len}; - mh_int_t index_slot = mh_schema_index_find(space->index_hash, &index_key, NULL); + const struct schema_space_value *space = *mh_schema_space_node(schema, + space_slot); + struct schema_key index_key = { + index_name, + index_name_len + }; + mh_int_t index_slot = mh_schema_index_find(space->index_hash, + &index_key, NULL); if (index_slot == mh_end(space->index_hash)) return -1; - const struct schema_index_value *index = *mh_schema_index_node(space->index_hash, index_slot); + const struct schema_index_value *index = *mh_schema_index_node( + space->index_hash, index_slot); return index->index_number; } -struct tarantool_schema *tarantool_schema_new() { +int32_t +tarantool_schema_get_fid_by_string( + struct tarantool_schema *schema_obj, uint32_t sid, + const char *field_name, uint32_t field_name_len +) { + struct mh_schema_space_t *schema = schema_obj->space_hash; + struct schema_key space_key = { + (void *)&sid, + sizeof(uint32_t) + }; + mh_int_t space_slot = mh_schema_space_find(schema, &space_key, NULL); + if (space_slot == mh_end(schema)) + return -1; + const struct schema_space_value *space = *mh_schema_space_node(schema, + space_slot); + int i = 0; + for (i = 0; i < space->schema_list_len; ++i) { + struct schema_field_value *val = &space->schema_list[i]; + if (strncmp(val->field_name, field_name, field_name_len) == 0) + return val->field_number; + } + return -1; +} + +struct tarantool_schema *tarantool_schema_new(int is_persistent) { struct tarantool_schema *obj = pemalloc(sizeof(struct tarantool_schema *), 1); obj->space_hash = mh_schema_space_new(); return obj; @@ -430,8 +614,10 @@ void tarantool_schema_flush(struct tarantool_schema *obj) { schema_space_free(obj->space_hash); } -void tarantool_schema_delete(struct tarantool_schema *obj) { - if (obj == NULL) return; +void tarantool_schema_delete(struct tarantool_schema *obj, int is_persistent) { + if (obj == NULL) + return; schema_space_free(obj->space_hash); mh_schema_space_delete(obj->space_hash); + pefree(obj, 1); } diff --git a/src/tarantool_schema.h b/src/tarantool_schema.h index 991b7aa..f4ec68b 100644 --- a/src/tarantool_schema.h +++ b/src/tarantool_schema.h @@ -1,12 +1,15 @@ +#ifndef PHP_TNT_SCHEMA_H +#define PHP_TNT_SCHEMA_H + struct schema_key { const char *id; uint32_t id_len; }; -/* + enum field_type { - FT_STR = 0, - FT_NUM, - FT_OTHER + FT_STR = 0, + FT_NUM = 1, + FT_OTHER = 2 }; struct schema_field_value { @@ -15,27 +18,26 @@ struct schema_field_value { uint32_t field_name_len; enum field_type field_type; }; -*/ struct schema_index_value { - struct schema_key key; - char *index_name; - uint32_t index_name_len; - uint32_t index_number; -// struct schema_field_value *index_parts; -// uint32_t index_parts_len; + struct schema_key key; + char *index_name; + uint32_t index_name_len; + uint32_t index_number; + struct schema_field_value *index_parts; + uint32_t index_parts_len; }; struct mh_schema_index_t; struct schema_space_value { - struct schema_key key; - char *space_name; - uint32_t space_name_len; - uint32_t space_number; + struct schema_key key; + char *space_name; + uint32_t space_name_len; + uint32_t space_number; struct mh_schema_index_t *index_hash; -// struct schema_field_value *schema_list; -// uint32_t schema_list_len; + struct schema_field_value *schema_list; + uint32_t schema_list_len; }; struct mh_schema_space_t; @@ -44,12 +46,26 @@ struct tarantool_schema { struct mh_schema_space_t *space_hash; }; -int tarantool_schema_add_spaces(struct tarantool_schema *, const char *, uint32_t); -int tarantool_schema_add_indexes(struct tarantool_schema *, const char *, uint32_t); +int +tarantool_schema_add_spaces(struct tarantool_schema *, const char *, uint32_t); +int +tarantool_schema_add_indexes(struct tarantool_schema *, const char *, uint32_t); + +int32_t +tarantool_schema_get_sid_by_string(struct tarantool_schema *, const char *, + uint32_t); +int32_t +tarantool_schema_get_iid_by_string(struct tarantool_schema *, uint32_t, + const char *, uint32_t); +int32_t +tarantool_schema_get_fid_by_string(struct tarantool_schema *, uint32_t, + const char *, uint32_t); -int32_t tarantool_schema_get_sid_by_string(struct tarantool_schema *, const char *, uint32_t); -int32_t tarantool_schema_get_iid_by_string(struct tarantool_schema *, uint32_t, const char *, uint32_t); +struct tarantool_schema * +tarantool_schema_new(int is_persistent); +void +tarantool_schema_flush(struct tarantool_schema *); +void +tarantool_schema_delete(struct tarantool_schema *, int is_persistent); -struct tarantool_schema *tarantool_schema_new(void); -void tarantool_schema_flush (struct tarantool_schema *); -void tarantool_schema_delete(struct tarantool_schema *); +#endif /* PHP_TNT_SCHEMA_H */ diff --git a/src/tarantool_tp.c b/src/tarantool_tp.c index 304d26e..b5ce630 100644 --- a/src/tarantool_tp.c +++ b/src/tarantool_tp.c @@ -4,26 +4,37 @@ #include "tarantool_tp.h" +struct tp_wrapper { + smart_string *str; + int is_persistent; +}; + char *tarantool_tp_reserve(struct tp *p, size_t req, size_t *size) { - smart_string *str = (smart_string *)p->obj; + struct tp_wrapper *wrap = (struct tp_wrapper *)p->obj; + smart_string *str = wrap->str; if (str->a > str->len + req) return str->c; size_t needed = str->a * 2; if (str->len + req > needed) needed = str->len + req; register size_t __n1; - smart_string_alloc4(str, needed, 1, __n1); + smart_string_alloc4(str, needed, wrap->is_persistent, __n1); return str->c; } -struct tp *tarantool_tp_new(smart_string *s) { - struct tp *tps = pemalloc(sizeof(struct tp), 1); - tp_init(tps, s->c, s->a, tarantool_tp_reserve, s); +struct tp *tarantool_tp_new(smart_string *s, int is_persistent) { + struct tp *tps = pecalloc(1, sizeof(struct tp), is_persistent); + struct tp_wrapper *wrap = pecalloc(1, sizeof(struct tp_wrapper), + is_persistent); + wrap->str = s; + wrap->is_persistent = is_persistent; + tp_init(tps, s->c, s->a, tarantool_tp_reserve, wrap); return tps; } -void tarantool_tp_free(struct tp* tps) { - pefree(tps, 1); +void tarantool_tp_free(struct tp* tps, int is_persistent) { + pefree(tps->obj, is_persistent); + pefree(tps, is_persistent); } void tarantool_tp_flush(struct tp* tps) { @@ -33,7 +44,7 @@ void tarantool_tp_flush(struct tp* tps) { } void tarantool_tp_update(struct tp* tps) { - tps->s = ((smart_string *)(tps->obj))->c; + tps->s = ((struct tp_wrapper *)(tps->obj))->str->c; tps->p = tps->s; - tps->e = tps->s + ((smart_string *)(tps->obj))->a; + tps->e = tps->s + ((struct tp_wrapper *)(tps->obj))->str->a; } diff --git a/src/tarantool_tp.h b/src/tarantool_tp.h index 800de3b..1500d8b 100644 --- a/src/tarantool_tp.h +++ b/src/tarantool_tp.h @@ -1,6 +1,13 @@ +#ifndef PHP_TNT_TP_H +#define PHP_TNT_TP_H + #include "src/third_party/tp.h" -struct tp *tarantool_tp_new(smart_string *s); -void tarantool_tp_free(struct tp* tps); +struct tp * +tarantool_tp_new(smart_string *s, int is_persistent); + +void tarantool_tp_free(struct tp* tps, int is_persistent); void tarantool_tp_flush(struct tp* tps); void tarantool_tp_update(struct tp* tps); + +#endif /* PHP_TNT_TP_H */ diff --git a/test-run.py b/test-run.py index 54b613c..82e7242 100755 --- a/test-run.py +++ b/test-run.py @@ -48,7 +48,7 @@ def main(): path = '.' os.chdir(path) if '--prepare' in sys.argv: - prepare_env('test/shared/tarantool.ini') + prepare_env('test/shared/tarantool-1.ini') exit(0) srv = None srv = TarantoolServer() @@ -78,9 +78,9 @@ def main(): if '--flags' in sys.argv: os.environ['ZEND_DONT_UNLOAD_MODULES'] = '1' os.environ['USE_ZEND_ALLOC'] = '0' - os.environ['MALLOC_CHECK_'] = '1' + os.environ['MALLOC_CHECK_'] = '3' if '--valgrind' in sys.argv: - cmd = cmd + 'valgrind --leak-check=full --log-file=' + cmd = cmd + 'valgrind --leak-check=full --show-leak-kinds=all --log-file=' cmd = cmd + os.path.basename(php_ini).split('.')[0] + '.out ' cmd = cmd + '--suppressions=test/shared/valgrind.sup ' cmd = cmd + '--keep-stacktraces=alloc-and-free' @@ -104,7 +104,10 @@ def main(): print('Running "%s" with "%s"' % (cmd, php_ini)) proc = subprocess.Popen(cmd, shell=True, cwd=test_cwd) rv = proc.wait() - if rv != 0 or '--gdb' in sys.argv or '--lldb' in sys.argv: + if rv != 0: + print('Error') + return -1 + if '--gdb' in sys.argv or '--lldb' in sys.argv: return -1 finally: diff --git a/test.sh b/test.sh index 64b94c8..7bdd725 100644 --- a/test.sh +++ b/test.sh @@ -1,10 +1,19 @@ -curl http://tarantool.org/dist/public.key | sudo apt-key add - -echo "deb http://tarantool.org/dist/master/ubuntu/ `lsb_release -c -s` main" | sudo tee -a /etc/apt/sources.list.d/tarantool.list +curl http://download.tarantool.org/tarantool/1.6/gpgkey | sudo apt-key add - +release=`lsb_release -c -s` + +# append two lines to a list of source repositories +sudo rm -f /etc/apt/sources.list.d/*tarantool*.list +sudo tee /etc/apt/sources.list.d/tarantool_1_6.list <<- EOF +deb http://download.tarantool.org/tarantool/1.6/ubuntu/ $release main +EOF + +# install sudo apt-get update > /dev/null -sudo apt-get -q -y install tarantool tarantool-dev +sudo apt-get -qy install tarantool tarantool-dev +tarantool --version phpize && ./configure make make install sudo pip install PyYAML -/usr/bin/python test-run.py --flags +/usr/bin/python test-run.py diff --git a/test/AssertTest.php b/test/AssertTest.php index 367e2d7..f70d123 100644 --- a/test/AssertTest.php +++ b/test/AssertTest.php @@ -29,8 +29,8 @@ function assertf() try { self::$tarantool->call("assertf"); $this->assertFalse(True); - } catch (Exception $e) { - $this->assertTrue(strpos($e->getMessage(), "Can't read query") !== False); + } catch (TarantoolException $e) { + $this->assertContains("Failed to read", $e->getMessage()); } /* We can reconnect and everything will be ok */ @@ -41,8 +41,8 @@ public function test_01_closed_connection() { for ($i = 0; $i < 20000; $i++) { try { self::$tarantool->call("nonexistentfunction"); - } catch (Exception $e) { - $this->assertTrue(strpos($e->getMessage(), "is not defined") !== False); + } catch (TarantoolClientError $e) { + continue; } } } diff --git a/test/CreateTest.php b/test/CreateTest.php index a506ec6..c2c1ceb 100644 --- a/test/CreateTest.php +++ b/test/CreateTest.php @@ -1,132 +1,146 @@ connect(); - $this->assertTrue($c->ping()); - $c->close(); - } - - public function test_01_create_test_ping_and_close() - { - $c = new Tarantool('localhost', self::$port); - $c->connect(); - $c->connect(); - $this->assertTrue($c->ping()); - $c->close(); - $this->assertTrue($c->ping()); - $c->close(); - $c->close(); - } - - public function test_01_01_double_disconnect() - { - $a = new Tarantool('localhost', self::$port); - $a->disconnect(); - $a->disconnect(); - } - - /** - * @expectedException Exception - * @expectedExceptionMessageRegExp /Name or service not known|nodename nor servname provided/ - */ - public function test_02_create_error_host() { - (new Tarantool('very_bad_host'))->connect(); - } - - /** - * @expectedException Exception - * @expectedExceptionMessageRegExp /Connection refused|Network is unreachable/ - */ - public function test_03_00_create_error_port() { - (new Tarantool('localhost', 65500))->connect(); - } - - /** - * @expectedException Exception - * @expectedExceptionMessage Invalid primary port value - */ - public function test_03_01_create_error_port() { - new Tarantool('localhost', 123456); - } - - public function test_04_create_many_conns() - { - $a = 1; - while ($a < 10) { - $this->assertTrue((new Tarantool('127.0.0.1', self::$port))->ping()); - $a++; - } - } - - public function test_05_flush() - { - $c = new Tarantool('localhost', self::$port); - $c->connect(); - $this->assertTrue($c->ping()); - $c->authenticate('test', 'test'); - $c->select("test"); - $c->flushSchema(); - $c->select("test"); - $c->flush_schema(); - } - - /** - * @expectedException Exception - * @expectedExceptionMessage Query error - */ - public function test_06_bad_cridentials() - { - $c = new Tarantool('localhost', self::$port); - $c->connect(); - $this->assertTrue($c->ping()); - $c->authenticate('test', 'bad_password'); - } - - /** - * @expectedException Exception - * @expectedExceptionMessage Query error - */ - public function test_07_bad_guest_cridentials() - { - $c = new Tarantool('localhost', self::$port); - $c->connect(); - $this->assertTrue($c->ping()); - $c->authenticate('guest', 'guest'); - } - - /** - * @expectedException Exception - * @expectedExceptionMessage Query error - */ - public function test_07_01_bad_guest_cridentials() - { - $c = new Tarantool('localhost', self::$port); - $c->connect(); - $this->assertTrue($c->ping()); - $c->authenticate('guest', ''); - } - - public function test_08_good_cridentials() - { - $c = new Tarantool('localhost', self::$port); - $c->connect(); - $this->assertTrue($c->ping()); - $c->authenticate('guest'); - $this->assertTrue($c->ping()); - } + protected static $port, $tm; + + public static function setUpBeforeClass() { + self::$port = getenv('PRIMARY_PORT'); + self::$tm = ini_get("tarantool.timeout"); + ini_set("tarantool.timeout", "0.1"); + } + + public static function tearDownAfterClass() { + ini_set("tarantool.timeout", self::$tm); + } + + public function test_00_create_basic() { + $c = new Tarantool('localhost', self::$port); + $c->connect(); + $this->assertTrue($c->ping()); + $c->close(); + } + + public function test_01_create_test_ping_and_close() { + $c = new Tarantool('localhost', self::$port); + $c->connect(); + $c->connect(); + $this->assertTrue($c->ping()); + $c->close(); + $this->assertTrue($c->ping()); + $c->close(); + $c->close(); + } + + public function test_01_01_double_disconnect() { + $a = new Tarantool('localhost', self::$port); + $a->disconnect(); + $a->disconnect(); + } + + /** + * @expectedException TarantoolException + * @expectedExceptionMessageRegExp /Name or service not known|nodename nor servname provided/ + */ + public function test_02_create_error_host() { + (new Tarantool('very_bad_host'))->connect(); + } + + /** + * @expectedException TarantoolException + * @expectedExceptionMessageRegExp /Connection refused|Network is unreachable/ + */ + public function test_03_00_create_error_port() { + (new Tarantool('localhost', 65500))->connect(); + } + + /** + * @expectedException TarantoolException + * @expectedExceptionMessage Invalid primary port value + */ + public function test_03_01_create_error_port() { + new Tarantool('localhost', 123456); + } + + public function test_04_create_many_conns() { + $a = 1; + while ($a < 10) { + $this->assertTrue((new Tarantool('127.0.0.1', self::$port))->ping()); + $a++; + } + } + + public function test_05_flush_authenticate() { + $c = new Tarantool('localhost', self::$port); + $c->connect(); + $this->assertTrue($c->ping()); + $c->authenticate('test', 'test'); + $c->select("test"); + $c->flushSchema(); + $c->select("test"); + $c->flush_schema(); + } + + public function test_05_flush_construct() { + $c = new Tarantool('localhost', self::$port, 'test', 'test'); + $this->assertTrue($c->ping()); + $c->select("test"); + $c->flushSchema(); + $c->select("test"); + $c->flush_schema(); + } + + /** + * @expectedException TarantoolClientError + * @expectedExceptionMessage Incorrect password supplied for user + */ + public function test_06_bad_credentials() { + $c = new Tarantool('localhost', self::$port); + $c->connect(); + $this->assertTrue($c->ping()); + $c->authenticate('test', 'bad_password'); + } + + /** + * @expectedException TarantoolClientError + * @expectedExceptionMessage Incorrect password supplied for user + */ + public function test_07_bad_guest_credentials() { + $c = new Tarantool('localhost', self::$port); + $c->connect(); + $this->assertTrue($c->ping()); + $c->authenticate('guest', 'guest'); + } + + /** + * @expectedException TarantoolClientError + * @expectedExceptionMessage Incorrect password supplied for user + */ + public function test_07_01_bad_guest_credentials() { + $c = new Tarantool('localhost', self::$port); + $c->connect(); + $this->assertTrue($c->ping()); + $c->authenticate('guest', ''); + } + + /** + * @dataProvider provideGoodCredentials + */ + public function test_08_good_credentials_construct($username, $password = null) { + if (func_num_args() === 1) { + $c = new Tarantool('localhost', self::$port, $username); + } else { + $c = new Tarantool('localhost', self::$port, $username, $password); + } + $this->assertTrue($c->ping()); + } + + public static function provideGoodCredentials() + { + return [ + ['guest'], + ['guest', null], + ]; + } } + diff --git a/test/DMLTest.php b/test/DMLTest.php index bcdcfb2..28365b5 100644 --- a/test/DMLTest.php +++ b/test/DMLTest.php @@ -5,8 +5,7 @@ class DMLTest extends PHPUnit_Framework_TestCase public static function setUpBeforeClass() { - self::$tarantool = new Tarantool('localhost', getenv('PRIMARY_PORT')); - self::$tarantool->authenticate('test', 'test'); + self::$tarantool = new Tarantool('localhost', getenv('PRIMARY_PORT'), 'test', 'test'); } protected function tearDown() @@ -75,8 +74,8 @@ public function test_02_select_diff() { } /** - * @expectedException Exception - * @expectedExceptionMessage Query error 3 + * @expectedException TarantoolClientError + * @expectedExceptionMessage Duplicate key exists **/ public function test_03_insert_error() { self::$tarantool->insert("test", array(1, 2, "smth")); @@ -123,7 +122,7 @@ public function test_06_update() { )); self::$tarantool->update("test", 1, array( array( - "field" => 3, + "field" => "s2", "op" => "-", "arg" => 10 ), @@ -149,7 +148,7 @@ public function test_06_update() { )); $tuple = self::$tarantool->update("test", 1, array( array( - "field" => 2, + "field" => "s1", "op" => ":", "offset" => 2, "length" => 2, @@ -164,7 +163,20 @@ public function test_07_update_no_error() { } /** - * @expectedException Exception + * @expectedException TarantoolException + * @ExpectedExceptionMessage No field 'nosuchfield' defined + */ + public function test_08_update_error_nosuchfield() { + self::$tarantool->update("test", 0, array( + array( + "field" => "nosuchfield", + "op" => ":" + ) + )); + } + + /** + * @expectedException TarantoolException * @ExpectedExceptionMessage Five fields */ public function test_08_update_error() { @@ -179,7 +191,7 @@ public function test_08_update_error() { } /** - * @expectedException Exception + * @expectedException TarantoolException * @ExpectedExceptionMessage Field OP must be provided */ public function test_09_update_error() { @@ -193,7 +205,7 @@ public function test_09_update_error() { } /** - * @expectedException Exception + * @expectedException TarantoolException * @ExpectedExceptionMessage Field OP must be provided */ public function test_10_update_error() { @@ -206,7 +218,7 @@ public function test_10_update_error() { } /** - * @expectedException Exception + * @expectedException TarantoolException * @ExpectedExceptionMessage Three fields must be provided */ public function test_11_update_error() { @@ -277,9 +289,9 @@ public function test_14_select_limit_defaults() { self::$tarantool->insert("test", array(2, 3, "hello")); self::$tarantool->insert("test", array(3, 4, "hello")); self::$tarantool->insert("test", array(4, 2, "hello")); - $this->assertEquals(count(self::$tarantool->select("test", 3, "secondary", null, null, TARANTOOL_ITER_GT)), 1); - $this->assertEquals(count(self::$tarantool->select("test", 3, "secondary", 0, null, TARANTOOL_ITER_GT)), 0); - $this->assertEquals(count(self::$tarantool->select("test", 3, "secondary", 100, null, TARANTOOL_ITER_GT)), 1); + $this->assertEquals(count(self::$tarantool->select("test", 3, "secondary", null, null, Tarantool::ITERATOR_GT)), 1); + $this->assertEquals(count(self::$tarantool->select("test", 3, "secondary", 0, null, Tarantool::ITERATOR_GT)), 0); + $this->assertEquals(count(self::$tarantool->select("test", 3, "secondary", 100, null, Tarantool::ITERATOR_GT)), 1); } public function test_15_upsert() { @@ -322,4 +334,108 @@ public function test_15_upsert() { $result_tuple = self::$tarantool->select("test", 123); $this->assertEquals(array(123, 2, "he---, world"), $result_tuple[0]); } + + public function test_16_hash_select() { + self::$tarantool->select("test_hash"); + self::$tarantool->select("test_hash", []); + try { + self::$tarantool->select("test_hash", null, null, null, null, TARANTOOL::ITERATOR_EQ); + $this->assertFalse(True); + } catch (TarantoolClientError $e) { + $this->assertContains('Invalid key part', $e->getMessage()); + } + } + + /** + * @dataProvider provideIteratorClientError + */ + public function test_17_01_it_clienterror($spc, $itype, $xcmsg) { + try { + self::$tarantool->select($spc, null, null, null, null, $itype); + $this->assertFalse(True); + } catch (TarantoolClientError $e) { + $this->assertContains($xcmsg, $e->getMessage()); + } + } + + /** + * @dataProvider provideIteratorException + */ + public function test_17_02_it_exception($spc, $itype, $xcmsg) { + try { + self::$tarantool->select($spc, null, null, null, null, $itype); + $this->assertFalse(True); + } catch (TarantoolException $e) { + $this->assertContains($xcmsg, $e->getMessage()); + } + } + + /** + * @dataProvider provideIteratorGood + */ + public function test_17_03_it_good($spc, $itype) { + try { + self::$tarantool->select($spc, null, null, null, null, $itype); + $this->assertTrue(True); + } catch (Exception $e) { + $this->assertContains($xcmsg, $e->getMessage()); + } + } + + public static function provideIteratorClientError() { + return [ + ['test_hash', 'EQ' ,'Invalid key part'], + ['test_hash', 'REQ' ,'Invalid key part'], + ['test_hash', 'LT' ,'Invalid key part'], + ['test_hash', 'LE' ,'Invalid key part'], + ['test_hash', 'GE' ,'Invalid key part'], + ['test_hash', 'BITSET_ALL_SET' ,'Invalid key part'], + ['test_hash', 'BITSET_ANY_SET' ,'Invalid key part'], + ['test_hash', 'BITSET_ALL_NOT_SET','Invalid key part'], + ['test_hash', 'BITS_ALL_SET' ,'Invalid key part'], + ['test_hash', 'BITS_ANY_SET' ,'Invalid key part'], + ['test_hash', 'BITS_ALL_NOT_SET' ,'Invalid key part'], + ['test_hash', 'OVERLAPS' ,'Invalid key part'], + ['test_hash', 'NEIGHBOR' ,'Invalid key part'], + ['test_hash', 'eq' ,'Invalid key part'], + ['test_hash', 'req' ,'Invalid key part'], + ['test_hash', 'lt' ,'Invalid key part'], + ['test_hash', 'le' ,'Invalid key part'], + ['test_hash', 'ge' ,'Invalid key part'], + ['test_hash', 'bitset_all_set' ,'Invalid key part'], + ['test_hash', 'bitset_any_set' ,'Invalid key part'], + ['test_hash', 'bitset_all_not_set','Invalid key part'], + ['test_hash', 'bits_all_set' ,'Invalid key part'], + ['test_hash', 'bits_any_set' ,'Invalid key part'], + ['test_hash', 'bits_all_not_set' ,'Invalid key part'], + ['test_hash', 'overlaps' ,'Invalid key part'], + ['test_hash', 'neighbor' ,'Invalid key part'], + ['test' , 'bitset_all_set' ,'does not support requested iterator type'], + ['test' , 'bitset_any_set' ,'does not support requested iterator type'], + ['test' , 'bitset_all_not_set','does not support requested iterator type'], + ['test' , 'bits_all_set' ,'does not support requested iterator type'], + ['test' , 'bits_any_set' ,'does not support requested iterator type'], + ['test' , 'bits_all_not_set' ,'does not support requested iterator type'], + ['test' , 'overlaps' ,'does not support requested iterator type'], + ['test' , 'neighbor' ,'does not support requested iterator type'], + ]; + } + + public static function provideIteratorException() { + return [ + ['test', 'oevrlps','Bad iterator name'], + ['test', 'e' ,'Bad iterator name'], + ['test', 'nghb' ,'Bad iterator name'], + ['test', 'ltt' ,'Bad iterator name'], + ]; + } + + public static function provideIteratorGood() { + return [ + ['test_hash', 'ALL'], + ['test_hash', 'GT' ], + ['test_hash', 'all'], + ['test_hash', 'gt' ], + ]; + } } diff --git a/test/MockTest.php b/test/MockTest.php index b5f8269..5850291 100644 --- a/test/MockTest.php +++ b/test/MockTest.php @@ -14,7 +14,7 @@ public function testDoo() (new Tarantool('localhost', getenv('PRIMARY_PORT')))->select('_vindex', [], 'name'); $this->assertFalse(True); } catch (Exception $e) { - $this->assertTrue(True); + $this->assertTrue(True); } } } diff --git a/test/MsgPackTest.php b/test/MsgPackTest.php index fbd6475..be64a6e 100644 --- a/test/MsgPackTest.php +++ b/test/MsgPackTest.php @@ -5,8 +5,8 @@ class MsgPackTest extends PHPUnit_Framework_TestCase public static function setUpBeforeClass() { - self::$tarantool = new Tarantool('localhost', getenv('PRIMARY_PORT')); - self::$tarantool->authenticate('test', 'test'); + self::$tarantool = new Tarantool('localhost', getenv('PRIMARY_PORT'), 'test', 'test'); + self::$tarantool->ping(); } public function test_00_msgpack_call() { @@ -25,7 +25,7 @@ public function test_00_msgpack_call() { } /** - * @expectedException Exception + * @expectedException TarantoolException * @expectedExceptionMessage Bad key type for PHP Array **/ public function test_01_msgpack_array_key() { @@ -33,7 +33,7 @@ public function test_01_msgpack_array_key() { } /** - * @expectedException Exception + * @expectedException TarantoolException * @expectedExceptionMessage Bad key type for PHP Array **/ public function test_02_msgpack_float_key() { @@ -41,7 +41,7 @@ public function test_02_msgpack_float_key() { } /** - * @expectedException Exception + * @expectedException TarantoolException * @expectedExceptionMessage Bad key type for PHP Array **/ public function test_03_msgpack_array_of_float_as_key() { diff --git a/test/RandomTest.php b/test/RandomTest.php index 3828011..a83d2e1 100644 --- a/test/RandomTest.php +++ b/test/RandomTest.php @@ -15,8 +15,7 @@ class RandomTest extends PHPUnit_Framework_TestCase protected static $tarantool; public static function setUpBeforeClass() { - self::$tarantool = new Tarantool('localhost', getenv('PRIMARY_PORT')); - self::$tarantool->authenticate('test', 'test'); + self::$tarantool = new Tarantool('localhost', getenv('PRIMARY_PORT'), 'test', 'test'); self::$tarantool->ping(); } diff --git a/test/phpunit.phar b/test/phpunit.phar index b315a3b..5419677 100644 --- a/test/phpunit.phar +++ b/test/phpunit.phar @@ -1,609 +1,545 @@ #!/usr/bin/env php '/doctrine-instantiator/Doctrine/Instantiator/Exception/ExceptionInterface.php', - 'doctrine\\instantiator\\exception\\invalidargumentexception' => '/doctrine-instantiator/Doctrine/Instantiator/Exception/InvalidArgumentException.php', - 'doctrine\\instantiator\\exception\\unexpectedvalueexception' => '/doctrine-instantiator/Doctrine/Instantiator/Exception/UnexpectedValueException.php', - 'doctrine\\instantiator\\instantiator' => '/doctrine-instantiator/Doctrine/Instantiator/Instantiator.php', - 'doctrine\\instantiator\\instantiatorinterface' => '/doctrine-instantiator/Doctrine/Instantiator/InstantiatorInterface.php', - 'file_iterator' => '/php-file-iterator/Iterator.php', - 'file_iterator_facade' => '/php-file-iterator/Iterator/Facade.php', - 'file_iterator_factory' => '/php-file-iterator/Iterator/Factory.php', - 'php_codecoverage' => '/php-code-coverage/CodeCoverage.php', - 'php_codecoverage_driver' => '/php-code-coverage/CodeCoverage/Driver.php', - 'php_codecoverage_driver_hhvm' => '/php-code-coverage/CodeCoverage/Driver/HHVM.php', - 'php_codecoverage_driver_xdebug' => '/php-code-coverage/CodeCoverage/Driver/Xdebug.php', - 'php_codecoverage_exception' => '/php-code-coverage/CodeCoverage/Exception.php', - 'php_codecoverage_exception_unintentionallycoveredcode' => '/php-code-coverage/CodeCoverage/Exception/UnintentionallyCoveredCode.php', - 'php_codecoverage_filter' => '/php-code-coverage/CodeCoverage/Filter.php', - 'php_codecoverage_report_clover' => '/php-code-coverage/CodeCoverage/Report/Clover.php', - 'php_codecoverage_report_crap4j' => '/php-code-coverage/CodeCoverage/Report/Crap4j.php', - 'php_codecoverage_report_factory' => '/php-code-coverage/CodeCoverage/Report/Factory.php', - 'php_codecoverage_report_html' => '/php-code-coverage/CodeCoverage/Report/HTML.php', - 'php_codecoverage_report_html_renderer' => '/php-code-coverage/CodeCoverage/Report/HTML/Renderer.php', - 'php_codecoverage_report_html_renderer_dashboard' => '/php-code-coverage/CodeCoverage/Report/HTML/Renderer/Dashboard.php', - 'php_codecoverage_report_html_renderer_directory' => '/php-code-coverage/CodeCoverage/Report/HTML/Renderer/Directory.php', - 'php_codecoverage_report_html_renderer_file' => '/php-code-coverage/CodeCoverage/Report/HTML/Renderer/File.php', - 'php_codecoverage_report_node' => '/php-code-coverage/CodeCoverage/Report/Node.php', - 'php_codecoverage_report_node_directory' => '/php-code-coverage/CodeCoverage/Report/Node/Directory.php', - 'php_codecoverage_report_node_file' => '/php-code-coverage/CodeCoverage/Report/Node/File.php', - 'php_codecoverage_report_node_iterator' => '/php-code-coverage/CodeCoverage/Report/Node/Iterator.php', - 'php_codecoverage_report_php' => '/php-code-coverage/CodeCoverage/Report/PHP.php', - 'php_codecoverage_report_text' => '/php-code-coverage/CodeCoverage/Report/Text.php', - 'php_codecoverage_report_xml' => '/php-code-coverage/CodeCoverage/Report/XML.php', - 'php_codecoverage_report_xml_directory' => '/php-code-coverage/CodeCoverage/Report/XML/Directory.php', - 'php_codecoverage_report_xml_file' => '/php-code-coverage/CodeCoverage/Report/XML/File.php', - 'php_codecoverage_report_xml_file_coverage' => '/php-code-coverage/CodeCoverage/Report/XML/File/Coverage.php', - 'php_codecoverage_report_xml_file_method' => '/php-code-coverage/CodeCoverage/Report/XML/File/Method.php', - 'php_codecoverage_report_xml_file_report' => '/php-code-coverage/CodeCoverage/Report/XML/File/Report.php', - 'php_codecoverage_report_xml_file_unit' => '/php-code-coverage/CodeCoverage/Report/XML/File/Unit.php', - 'php_codecoverage_report_xml_node' => '/php-code-coverage/CodeCoverage/Report/XML/Node.php', - 'php_codecoverage_report_xml_project' => '/php-code-coverage/CodeCoverage/Report/XML/Project.php', - 'php_codecoverage_report_xml_tests' => '/php-code-coverage/CodeCoverage/Report/XML/Tests.php', - 'php_codecoverage_report_xml_totals' => '/php-code-coverage/CodeCoverage/Report/XML/Totals.php', - 'php_codecoverage_util' => '/php-code-coverage/CodeCoverage/Util.php', - 'php_codecoverage_util_invalidargumenthelper' => '/php-code-coverage/CodeCoverage/Util/InvalidArgumentHelper.php', - 'php_invoker' => '/php-invoker/Invoker.php', - 'php_invoker_timeoutexception' => '/php-invoker/Invoker/TimeoutException.php', - 'php_timer' => '/php-timer/Timer.php', - 'php_token' => '/php-token-stream/Token.php', - 'php_token_abstract' => '/php-token-stream/Token.php', - 'php_token_ampersand' => '/php-token-stream/Token.php', - 'php_token_and_equal' => '/php-token-stream/Token.php', - 'php_token_array' => '/php-token-stream/Token.php', - 'php_token_array_cast' => '/php-token-stream/Token.php', - 'php_token_as' => '/php-token-stream/Token.php', - 'php_token_at' => '/php-token-stream/Token.php', - 'php_token_backtick' => '/php-token-stream/Token.php', - 'php_token_bad_character' => '/php-token-stream/Token.php', - 'php_token_bool_cast' => '/php-token-stream/Token.php', - 'php_token_boolean_and' => '/php-token-stream/Token.php', - 'php_token_boolean_or' => '/php-token-stream/Token.php', - 'php_token_break' => '/php-token-stream/Token.php', - 'php_token_callable' => '/php-token-stream/Token.php', - 'php_token_caret' => '/php-token-stream/Token.php', - 'php_token_case' => '/php-token-stream/Token.php', - 'php_token_catch' => '/php-token-stream/Token.php', - 'php_token_character' => '/php-token-stream/Token.php', - 'php_token_class' => '/php-token-stream/Token.php', - 'php_token_class_c' => '/php-token-stream/Token.php', - 'php_token_class_name_constant' => '/php-token-stream/Token.php', - 'php_token_clone' => '/php-token-stream/Token.php', - 'php_token_close_bracket' => '/php-token-stream/Token.php', - 'php_token_close_curly' => '/php-token-stream/Token.php', - 'php_token_close_square' => '/php-token-stream/Token.php', - 'php_token_close_tag' => '/php-token-stream/Token.php', - 'php_token_colon' => '/php-token-stream/Token.php', - 'php_token_comma' => '/php-token-stream/Token.php', - 'php_token_comment' => '/php-token-stream/Token.php', - 'php_token_concat_equal' => '/php-token-stream/Token.php', - 'php_token_const' => '/php-token-stream/Token.php', - 'php_token_constant_encapsed_string' => '/php-token-stream/Token.php', - 'php_token_continue' => '/php-token-stream/Token.php', - 'php_token_curly_open' => '/php-token-stream/Token.php', - 'php_token_dec' => '/php-token-stream/Token.php', - 'php_token_declare' => '/php-token-stream/Token.php', - 'php_token_default' => '/php-token-stream/Token.php', - 'php_token_dir' => '/php-token-stream/Token.php', - 'php_token_div' => '/php-token-stream/Token.php', - 'php_token_div_equal' => '/php-token-stream/Token.php', - 'php_token_dnumber' => '/php-token-stream/Token.php', - 'php_token_do' => '/php-token-stream/Token.php', - 'php_token_doc_comment' => '/php-token-stream/Token.php', - 'php_token_dollar' => '/php-token-stream/Token.php', - 'php_token_dollar_open_curly_braces' => '/php-token-stream/Token.php', - 'php_token_dot' => '/php-token-stream/Token.php', - 'php_token_double_arrow' => '/php-token-stream/Token.php', - 'php_token_double_cast' => '/php-token-stream/Token.php', - 'php_token_double_colon' => '/php-token-stream/Token.php', - 'php_token_double_quotes' => '/php-token-stream/Token.php', - 'php_token_echo' => '/php-token-stream/Token.php', - 'php_token_ellipsis' => '/php-token-stream/Token.php', - 'php_token_else' => '/php-token-stream/Token.php', - 'php_token_elseif' => '/php-token-stream/Token.php', - 'php_token_empty' => '/php-token-stream/Token.php', - 'php_token_encapsed_and_whitespace' => '/php-token-stream/Token.php', - 'php_token_end_heredoc' => '/php-token-stream/Token.php', - 'php_token_enddeclare' => '/php-token-stream/Token.php', - 'php_token_endfor' => '/php-token-stream/Token.php', - 'php_token_endforeach' => '/php-token-stream/Token.php', - 'php_token_endif' => '/php-token-stream/Token.php', - 'php_token_endswitch' => '/php-token-stream/Token.php', - 'php_token_endwhile' => '/php-token-stream/Token.php', - 'php_token_equal' => '/php-token-stream/Token.php', - 'php_token_eval' => '/php-token-stream/Token.php', - 'php_token_exclamation_mark' => '/php-token-stream/Token.php', - 'php_token_exit' => '/php-token-stream/Token.php', - 'php_token_extends' => '/php-token-stream/Token.php', - 'php_token_file' => '/php-token-stream/Token.php', - 'php_token_final' => '/php-token-stream/Token.php', - 'php_token_finally' => '/php-token-stream/Token.php', - 'php_token_for' => '/php-token-stream/Token.php', - 'php_token_foreach' => '/php-token-stream/Token.php', - 'php_token_func_c' => '/php-token-stream/Token.php', - 'php_token_function' => '/php-token-stream/Token.php', - 'php_token_global' => '/php-token-stream/Token.php', - 'php_token_goto' => '/php-token-stream/Token.php', - 'php_token_gt' => '/php-token-stream/Token.php', - 'php_token_halt_compiler' => '/php-token-stream/Token.php', - 'php_token_if' => '/php-token-stream/Token.php', - 'php_token_implements' => '/php-token-stream/Token.php', - 'php_token_inc' => '/php-token-stream/Token.php', - 'php_token_include' => '/php-token-stream/Token.php', - 'php_token_include_once' => '/php-token-stream/Token.php', - 'php_token_includes' => '/php-token-stream/Token.php', - 'php_token_inline_html' => '/php-token-stream/Token.php', - 'php_token_instanceof' => '/php-token-stream/Token.php', - 'php_token_insteadof' => '/php-token-stream/Token.php', - 'php_token_int_cast' => '/php-token-stream/Token.php', - 'php_token_interface' => '/php-token-stream/Token.php', - 'php_token_is_equal' => '/php-token-stream/Token.php', - 'php_token_is_greater_or_equal' => '/php-token-stream/Token.php', - 'php_token_is_identical' => '/php-token-stream/Token.php', - 'php_token_is_not_equal' => '/php-token-stream/Token.php', - 'php_token_is_not_identical' => '/php-token-stream/Token.php', - 'php_token_is_smaller_or_equal' => '/php-token-stream/Token.php', - 'php_token_isset' => '/php-token-stream/Token.php', - 'php_token_line' => '/php-token-stream/Token.php', - 'php_token_list' => '/php-token-stream/Token.php', - 'php_token_lnumber' => '/php-token-stream/Token.php', - 'php_token_logical_and' => '/php-token-stream/Token.php', - 'php_token_logical_or' => '/php-token-stream/Token.php', - 'php_token_logical_xor' => '/php-token-stream/Token.php', - 'php_token_lt' => '/php-token-stream/Token.php', - 'php_token_method_c' => '/php-token-stream/Token.php', - 'php_token_minus' => '/php-token-stream/Token.php', - 'php_token_minus_equal' => '/php-token-stream/Token.php', - 'php_token_mod_equal' => '/php-token-stream/Token.php', - 'php_token_mul_equal' => '/php-token-stream/Token.php', - 'php_token_mult' => '/php-token-stream/Token.php', - 'php_token_namespace' => '/php-token-stream/Token.php', - 'php_token_new' => '/php-token-stream/Token.php', - 'php_token_ns_c' => '/php-token-stream/Token.php', - 'php_token_ns_separator' => '/php-token-stream/Token.php', - 'php_token_num_string' => '/php-token-stream/Token.php', - 'php_token_object_cast' => '/php-token-stream/Token.php', - 'php_token_object_operator' => '/php-token-stream/Token.php', - 'php_token_open_bracket' => '/php-token-stream/Token.php', - 'php_token_open_curly' => '/php-token-stream/Token.php', - 'php_token_open_square' => '/php-token-stream/Token.php', - 'php_token_open_tag' => '/php-token-stream/Token.php', - 'php_token_open_tag_with_echo' => '/php-token-stream/Token.php', - 'php_token_or_equal' => '/php-token-stream/Token.php', - 'php_token_paamayim_nekudotayim' => '/php-token-stream/Token.php', - 'php_token_percent' => '/php-token-stream/Token.php', - 'php_token_pipe' => '/php-token-stream/Token.php', - 'php_token_plus' => '/php-token-stream/Token.php', - 'php_token_plus_equal' => '/php-token-stream/Token.php', - 'php_token_pow' => '/php-token-stream/Token.php', - 'php_token_pow_equal' => '/php-token-stream/Token.php', - 'php_token_print' => '/php-token-stream/Token.php', - 'php_token_private' => '/php-token-stream/Token.php', - 'php_token_protected' => '/php-token-stream/Token.php', - 'php_token_public' => '/php-token-stream/Token.php', - 'php_token_question_mark' => '/php-token-stream/Token.php', - 'php_token_require' => '/php-token-stream/Token.php', - 'php_token_require_once' => '/php-token-stream/Token.php', - 'php_token_return' => '/php-token-stream/Token.php', - 'php_token_semicolon' => '/php-token-stream/Token.php', - 'php_token_sl' => '/php-token-stream/Token.php', - 'php_token_sl_equal' => '/php-token-stream/Token.php', - 'php_token_sr' => '/php-token-stream/Token.php', - 'php_token_sr_equal' => '/php-token-stream/Token.php', - 'php_token_start_heredoc' => '/php-token-stream/Token.php', - 'php_token_static' => '/php-token-stream/Token.php', - 'php_token_stream' => '/php-token-stream/Token/Stream.php', - 'php_token_stream_cachingfactory' => '/php-token-stream/Token/Stream/CachingFactory.php', - 'php_token_string' => '/php-token-stream/Token.php', - 'php_token_string_cast' => '/php-token-stream/Token.php', - 'php_token_string_varname' => '/php-token-stream/Token.php', - 'php_token_switch' => '/php-token-stream/Token.php', - 'php_token_throw' => '/php-token-stream/Token.php', - 'php_token_tilde' => '/php-token-stream/Token.php', - 'php_token_trait' => '/php-token-stream/Token.php', - 'php_token_trait_c' => '/php-token-stream/Token.php', - 'php_token_try' => '/php-token-stream/Token.php', - 'php_token_unset' => '/php-token-stream/Token.php', - 'php_token_unset_cast' => '/php-token-stream/Token.php', - 'php_token_use' => '/php-token-stream/Token.php', - 'php_token_var' => '/php-token-stream/Token.php', - 'php_token_variable' => '/php-token-stream/Token.php', - 'php_token_while' => '/php-token-stream/Token.php', - 'php_token_whitespace' => '/php-token-stream/Token.php', - 'php_token_xor_equal' => '/php-token-stream/Token.php', - 'php_token_yield' => '/php-token-stream/Token.php', - 'php_tokenwithscope' => '/php-token-stream/Token.php', - 'php_tokenwithscopeandvisibility' => '/php-token-stream/Token.php', - 'phpunit_exception' => '/phpunit/Exception.php', - 'phpunit_extensions_database_abstracttester' => '/dbunit/Extensions/Database/AbstractTester.php', - 'phpunit_extensions_database_constraint_datasetisequal' => '/dbunit/Extensions/Database/Constraint/DataSetIsEqual.php', - 'phpunit_extensions_database_constraint_tableisequal' => '/dbunit/Extensions/Database/Constraint/TableIsEqual.php', - 'phpunit_extensions_database_constraint_tablerowcount' => '/dbunit/Extensions/Database/Constraint/TableRowCount.php', - 'phpunit_extensions_database_dataset_abstractdataset' => '/dbunit/Extensions/Database/DataSet/AbstractDataSet.php', - 'phpunit_extensions_database_dataset_abstracttable' => '/dbunit/Extensions/Database/DataSet/AbstractTable.php', - 'phpunit_extensions_database_dataset_abstracttablemetadata' => '/dbunit/Extensions/Database/DataSet/AbstractTableMetaData.php', - 'phpunit_extensions_database_dataset_abstractxmldataset' => '/dbunit/Extensions/Database/DataSet/AbstractXmlDataSet.php', - 'phpunit_extensions_database_dataset_compositedataset' => '/dbunit/Extensions/Database/DataSet/CompositeDataSet.php', - 'phpunit_extensions_database_dataset_csvdataset' => '/dbunit/Extensions/Database/DataSet/CsvDataSet.php', - 'phpunit_extensions_database_dataset_datasetfilter' => '/dbunit/Extensions/Database/DataSet/DataSetFilter.php', - 'phpunit_extensions_database_dataset_defaultdataset' => '/dbunit/Extensions/Database/DataSet/DefaultDataSet.php', - 'phpunit_extensions_database_dataset_defaulttable' => '/dbunit/Extensions/Database/DataSet/DefaultTable.php', - 'phpunit_extensions_database_dataset_defaulttableiterator' => '/dbunit/Extensions/Database/DataSet/DefaultTableIterator.php', - 'phpunit_extensions_database_dataset_defaulttablemetadata' => '/dbunit/Extensions/Database/DataSet/DefaultTableMetaData.php', - 'phpunit_extensions_database_dataset_flatxmldataset' => '/dbunit/Extensions/Database/DataSet/FlatXmlDataSet.php', - 'phpunit_extensions_database_dataset_idataset' => '/dbunit/Extensions/Database/DataSet/IDataSet.php', - 'phpunit_extensions_database_dataset_ipersistable' => '/dbunit/Extensions/Database/DataSet/IPersistable.php', - 'phpunit_extensions_database_dataset_ispec' => '/dbunit/Extensions/Database/DataSet/ISpec.php', - 'phpunit_extensions_database_dataset_itable' => '/dbunit/Extensions/Database/DataSet/ITable.php', - 'phpunit_extensions_database_dataset_itableiterator' => '/dbunit/Extensions/Database/DataSet/ITableIterator.php', - 'phpunit_extensions_database_dataset_itablemetadata' => '/dbunit/Extensions/Database/DataSet/ITableMetaData.php', - 'phpunit_extensions_database_dataset_iyamlparser' => '/dbunit/Extensions/Database/DataSet/IYamlParser.php', - 'phpunit_extensions_database_dataset_mysqlxmldataset' => '/dbunit/Extensions/Database/DataSet/MysqlXmlDataSet.php', - 'phpunit_extensions_database_dataset_persistors_abstract' => '/dbunit/Extensions/Database/DataSet/Persistors/Abstract.php', - 'phpunit_extensions_database_dataset_persistors_factory' => '/dbunit/Extensions/Database/DataSet/Persistors/Factory.php', - 'phpunit_extensions_database_dataset_persistors_flatxml' => '/dbunit/Extensions/Database/DataSet/Persistors/FlatXml.php', - 'phpunit_extensions_database_dataset_persistors_mysqlxml' => '/dbunit/Extensions/Database/DataSet/Persistors/MysqlXml.php', - 'phpunit_extensions_database_dataset_persistors_xml' => '/dbunit/Extensions/Database/DataSet/Persistors/Xml.php', - 'phpunit_extensions_database_dataset_persistors_yaml' => '/dbunit/Extensions/Database/DataSet/Persistors/Yaml.php', - 'phpunit_extensions_database_dataset_querydataset' => '/dbunit/Extensions/Database/DataSet/QueryDataSet.php', - 'phpunit_extensions_database_dataset_querytable' => '/dbunit/Extensions/Database/DataSet/QueryTable.php', - 'phpunit_extensions_database_dataset_replacementdataset' => '/dbunit/Extensions/Database/DataSet/ReplacementDataSet.php', - 'phpunit_extensions_database_dataset_replacementtable' => '/dbunit/Extensions/Database/DataSet/ReplacementTable.php', - 'phpunit_extensions_database_dataset_replacementtableiterator' => '/dbunit/Extensions/Database/DataSet/ReplacementTableIterator.php', - 'phpunit_extensions_database_dataset_specs_csv' => '/dbunit/Extensions/Database/DataSet/Specs/Csv.php', - 'phpunit_extensions_database_dataset_specs_dbquery' => '/dbunit/Extensions/Database/DataSet/Specs/DbQuery.php', - 'phpunit_extensions_database_dataset_specs_dbtable' => '/dbunit/Extensions/Database/DataSet/Specs/DbTable.php', - 'phpunit_extensions_database_dataset_specs_factory' => '/dbunit/Extensions/Database/DataSet/Specs/Factory.php', - 'phpunit_extensions_database_dataset_specs_flatxml' => '/dbunit/Extensions/Database/DataSet/Specs/FlatXml.php', - 'phpunit_extensions_database_dataset_specs_ifactory' => '/dbunit/Extensions/Database/DataSet/Specs/IFactory.php', - 'phpunit_extensions_database_dataset_specs_xml' => '/dbunit/Extensions/Database/DataSet/Specs/Xml.php', - 'phpunit_extensions_database_dataset_specs_yaml' => '/dbunit/Extensions/Database/DataSet/Specs/Yaml.php', - 'phpunit_extensions_database_dataset_symfonyyamlparser' => '/dbunit/Extensions/Database/DataSet/SymfonyYamlParser.php', - 'phpunit_extensions_database_dataset_tablefilter' => '/dbunit/Extensions/Database/DataSet/TableFilter.php', - 'phpunit_extensions_database_dataset_tablemetadatafilter' => '/dbunit/Extensions/Database/DataSet/TableMetaDataFilter.php', - 'phpunit_extensions_database_dataset_xmldataset' => '/dbunit/Extensions/Database/DataSet/XmlDataSet.php', - 'phpunit_extensions_database_dataset_yamldataset' => '/dbunit/Extensions/Database/DataSet/YamlDataSet.php', - 'phpunit_extensions_database_db_dataset' => '/dbunit/Extensions/Database/DB/DataSet.php', - 'phpunit_extensions_database_db_defaultdatabaseconnection' => '/dbunit/Extensions/Database/DB/DefaultDatabaseConnection.php', - 'phpunit_extensions_database_db_filtereddataset' => '/dbunit/Extensions/Database/DB/FilteredDataSet.php', - 'phpunit_extensions_database_db_idatabaseconnection' => '/dbunit/Extensions/Database/DB/IDatabaseConnection.php', - 'phpunit_extensions_database_db_imetadata' => '/dbunit/Extensions/Database/DB/IMetaData.php', - 'phpunit_extensions_database_db_metadata' => '/dbunit/Extensions/Database/DB/MetaData.php', - 'phpunit_extensions_database_db_metadata_dblib' => '/dbunit/Extensions/Database/DB/MetaData/Dblib.php', - 'phpunit_extensions_database_db_metadata_firebird' => '/dbunit/Extensions/Database/DB/MetaData/Firebird.php', - 'phpunit_extensions_database_db_metadata_informationschema' => '/dbunit/Extensions/Database/DB/MetaData/InformationSchema.php', - 'phpunit_extensions_database_db_metadata_mysql' => '/dbunit/Extensions/Database/DB/MetaData/MySQL.php', - 'phpunit_extensions_database_db_metadata_oci' => '/dbunit/Extensions/Database/DB/MetaData/Oci.php', - 'phpunit_extensions_database_db_metadata_pgsql' => '/dbunit/Extensions/Database/DB/MetaData/PgSQL.php', - 'phpunit_extensions_database_db_metadata_sqlite' => '/dbunit/Extensions/Database/DB/MetaData/Sqlite.php', - 'phpunit_extensions_database_db_metadata_sqlsrv' => '/dbunit/Extensions/Database/DB/MetaData/SqlSrv.php', - 'phpunit_extensions_database_db_resultsettable' => '/dbunit/Extensions/Database/DB/ResultSetTable.php', - 'phpunit_extensions_database_db_table' => '/dbunit/Extensions/Database/DB/Table.php', - 'phpunit_extensions_database_db_tableiterator' => '/dbunit/Extensions/Database/DB/TableIterator.php', - 'phpunit_extensions_database_db_tablemetadata' => '/dbunit/Extensions/Database/DB/TableMetaData.php', - 'phpunit_extensions_database_defaulttester' => '/dbunit/Extensions/Database/DefaultTester.php', - 'phpunit_extensions_database_exception' => '/dbunit/Extensions/Database/Exception.php', - 'phpunit_extensions_database_idatabaselistconsumer' => '/dbunit/Extensions/Database/IDatabaseListConsumer.php', - 'phpunit_extensions_database_itester' => '/dbunit/Extensions/Database/ITester.php', - 'phpunit_extensions_database_operation_composite' => '/dbunit/Extensions/Database/Operation/Composite.php', - 'phpunit_extensions_database_operation_delete' => '/dbunit/Extensions/Database/Operation/Delete.php', - 'phpunit_extensions_database_operation_deleteall' => '/dbunit/Extensions/Database/Operation/DeleteAll.php', - 'phpunit_extensions_database_operation_exception' => '/dbunit/Extensions/Database/Operation/Exception.php', - 'phpunit_extensions_database_operation_factory' => '/dbunit/Extensions/Database/Operation/Factory.php', - 'phpunit_extensions_database_operation_idatabaseoperation' => '/dbunit/Extensions/Database/Operation/IDatabaseOperation.php', - 'phpunit_extensions_database_operation_insert' => '/dbunit/Extensions/Database/Operation/Insert.php', - 'phpunit_extensions_database_operation_null' => '/dbunit/Extensions/Database/Operation/Null.php', - 'phpunit_extensions_database_operation_replace' => '/dbunit/Extensions/Database/Operation/Replace.php', - 'phpunit_extensions_database_operation_rowbased' => '/dbunit/Extensions/Database/Operation/RowBased.php', - 'phpunit_extensions_database_operation_truncate' => '/dbunit/Extensions/Database/Operation/Truncate.php', - 'phpunit_extensions_database_operation_update' => '/dbunit/Extensions/Database/Operation/Update.php', - 'phpunit_extensions_database_testcase' => '/dbunit/Extensions/Database/TestCase.php', - 'phpunit_extensions_database_ui_command' => '/dbunit/Extensions/Database/UI/Command.php', - 'phpunit_extensions_database_ui_context' => '/dbunit/Extensions/Database/UI/Context.php', - 'phpunit_extensions_database_ui_imedium' => '/dbunit/Extensions/Database/UI/IMedium.php', - 'phpunit_extensions_database_ui_imediumprinter' => '/dbunit/Extensions/Database/UI/IMediumPrinter.php', - 'phpunit_extensions_database_ui_imode' => '/dbunit/Extensions/Database/UI/IMode.php', - 'phpunit_extensions_database_ui_imodefactory' => '/dbunit/Extensions/Database/UI/IModeFactory.php', - 'phpunit_extensions_database_ui_invalidmodeexception' => '/dbunit/Extensions/Database/UI/InvalidModeException.php', - 'phpunit_extensions_database_ui_mediums_text' => '/dbunit/Extensions/Database/UI/Mediums/Text.php', - 'phpunit_extensions_database_ui_modefactory' => '/dbunit/Extensions/Database/UI/ModeFactory.php', - 'phpunit_extensions_database_ui_modes_exportdataset' => '/dbunit/Extensions/Database/UI/Modes/ExportDataSet.php', - 'phpunit_extensions_database_ui_modes_exportdataset_arguments' => '/dbunit/Extensions/Database/UI/Modes/ExportDataSet/Arguments.php', - 'phpunit_extensions_grouptestsuite' => '/phpunit/Extensions/GroupTestSuite.php', - 'phpunit_extensions_phpttestcase' => '/phpunit/Extensions/PhptTestCase.php', - 'phpunit_extensions_phpttestsuite' => '/phpunit/Extensions/PhptTestSuite.php', - 'phpunit_extensions_repeatedtest' => '/phpunit/Extensions/RepeatedTest.php', - 'phpunit_extensions_selenium2testcase' => '/phpunit-selenium/Extensions/Selenium2TestCase.php', - 'phpunit_extensions_selenium2testcase_command' => '/phpunit-selenium/Extensions/Selenium2TestCase/Command.php', - 'phpunit_extensions_selenium2testcase_commandsholder' => '/phpunit-selenium/Extensions/Selenium2TestCase/CommandsHolder.php', - 'phpunit_extensions_selenium2testcase_driver' => '/phpunit-selenium/Extensions/Selenium2TestCase/Driver.php', - 'phpunit_extensions_selenium2testcase_element' => '/phpunit-selenium/Extensions/Selenium2TestCase/Element.php', - 'phpunit_extensions_selenium2testcase_element_accessor' => '/phpunit-selenium/Extensions/Selenium2TestCase/Element/Accessor.php', - 'phpunit_extensions_selenium2testcase_element_select' => '/phpunit-selenium/Extensions/Selenium2TestCase/Element/Select.php', - 'phpunit_extensions_selenium2testcase_elementcommand_attribute' => '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Attribute.php', - 'phpunit_extensions_selenium2testcase_elementcommand_click' => '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Click.php', - 'phpunit_extensions_selenium2testcase_elementcommand_css' => '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Css.php', - 'phpunit_extensions_selenium2testcase_elementcommand_equals' => '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Equals.php', - 'phpunit_extensions_selenium2testcase_elementcommand_genericaccessor' => '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/GenericAccessor.php', - 'phpunit_extensions_selenium2testcase_elementcommand_genericpost' => '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/GenericPost.php', - 'phpunit_extensions_selenium2testcase_elementcommand_value' => '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Value.php', - 'phpunit_extensions_selenium2testcase_elementcriteria' => '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCriteria.php', - 'phpunit_extensions_selenium2testcase_exception' => '/phpunit-selenium/Extensions/Selenium2TestCase/Exception.php', - 'phpunit_extensions_selenium2testcase_keys' => '/phpunit-selenium/Extensions/Selenium2TestCase/Keys.php', - 'phpunit_extensions_selenium2testcase_keysholder' => '/phpunit-selenium/Extensions/Selenium2TestCase/KeysHolder.php', - 'phpunit_extensions_selenium2testcase_noseleniumexception' => '/phpunit-selenium/Extensions/Selenium2TestCase/NoSeleniumException.php', - 'phpunit_extensions_selenium2testcase_response' => '/phpunit-selenium/Extensions/Selenium2TestCase/Response.php', - 'phpunit_extensions_selenium2testcase_screenshotlistener' => '/phpunit-selenium/Extensions/Selenium2TestCase/ScreenshotListener.php', - 'phpunit_extensions_selenium2testcase_session' => '/phpunit-selenium/Extensions/Selenium2TestCase/Session.php', - 'phpunit_extensions_selenium2testcase_session_cookie' => '/phpunit-selenium/Extensions/Selenium2TestCase/Session/Cookie.php', - 'phpunit_extensions_selenium2testcase_session_cookie_builder' => '/phpunit-selenium/Extensions/Selenium2TestCase/Session/Cookie/Builder.php', - 'phpunit_extensions_selenium2testcase_session_storage' => '/phpunit-selenium/Extensions/Selenium2TestCase/Session/Storage.php', - 'phpunit_extensions_selenium2testcase_session_timeouts' => '/phpunit-selenium/Extensions/Selenium2TestCase/Session/Timeouts.php', - 'phpunit_extensions_selenium2testcase_sessioncommand_acceptalert' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/AcceptAlert.php', - 'phpunit_extensions_selenium2testcase_sessioncommand_alerttext' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/AlertText.php', - 'phpunit_extensions_selenium2testcase_sessioncommand_click' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Click.php', - 'phpunit_extensions_selenium2testcase_sessioncommand_dismissalert' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/DismissAlert.php', - 'phpunit_extensions_selenium2testcase_sessioncommand_file' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/File.php', - 'phpunit_extensions_selenium2testcase_sessioncommand_frame' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Frame.php', - 'phpunit_extensions_selenium2testcase_sessioncommand_genericaccessor' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/GenericAccessor.php', - 'phpunit_extensions_selenium2testcase_sessioncommand_genericattribute' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/GenericAttribute.php', - 'phpunit_extensions_selenium2testcase_sessioncommand_keys' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Keys.php', - 'phpunit_extensions_selenium2testcase_sessioncommand_location' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Location.php', - 'phpunit_extensions_selenium2testcase_sessioncommand_log' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Log.php', - 'phpunit_extensions_selenium2testcase_sessioncommand_moveto' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/MoveTo.php', - 'phpunit_extensions_selenium2testcase_sessioncommand_orientation' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Orientation.php', - 'phpunit_extensions_selenium2testcase_sessioncommand_url' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Url.php', - 'phpunit_extensions_selenium2testcase_sessioncommand_window' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Window.php', - 'phpunit_extensions_selenium2testcase_sessionstrategy' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy.php', - 'phpunit_extensions_selenium2testcase_sessionstrategy_isolated' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy/Isolated.php', - 'phpunit_extensions_selenium2testcase_sessionstrategy_shared' => '/phpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy/Shared.php', - 'phpunit_extensions_selenium2testcase_statecommand' => '/phpunit-selenium/Extensions/Selenium2TestCase/StateCommand.php', - 'phpunit_extensions_selenium2testcase_url' => '/phpunit-selenium/Extensions/Selenium2TestCase/URL.php', - 'phpunit_extensions_selenium2testcase_waituntil' => '/phpunit-selenium/Extensions/Selenium2TestCase/WaitUntil.php', - 'phpunit_extensions_selenium2testcase_webdriverexception' => '/phpunit-selenium/Extensions/Selenium2TestCase/WebDriverException.php', - 'phpunit_extensions_selenium2testcase_window' => '/phpunit-selenium/Extensions/Selenium2TestCase/Window.php', - 'phpunit_extensions_seleniumbrowsersuite' => '/phpunit-selenium/Extensions/SeleniumBrowserSuite.php', - 'phpunit_extensions_seleniumcommon_exithandler' => '/phpunit-selenium/Extensions/SeleniumCommon/ExitHandler.php', - 'phpunit_extensions_seleniumcommon_remotecoverage' => '/phpunit-selenium/Extensions/SeleniumCommon/RemoteCoverage.php', - 'phpunit_extensions_seleniumtestcase' => '/phpunit-selenium/Extensions/SeleniumTestCase.php', - 'phpunit_extensions_seleniumtestcase_driver' => '/phpunit-selenium/Extensions/SeleniumTestCase/Driver.php', - 'phpunit_extensions_seleniumtestsuite' => '/phpunit-selenium/Extensions/SeleniumTestSuite.php', - 'phpunit_extensions_testdecorator' => '/phpunit/Extensions/TestDecorator.php', - 'phpunit_extensions_ticketlistener' => '/phpunit/Extensions/TicketListener.php', - 'phpunit_framework_assert' => '/phpunit/Framework/Assert.php', - 'phpunit_framework_assertionfailederror' => '/phpunit/Framework/AssertionFailedError.php', - 'phpunit_framework_basetestlistener' => '/phpunit/Framework/BaseTestListener.php', - 'phpunit_framework_codecoverageexception' => '/phpunit/Framework/CodeCoverageException.php', - 'phpunit_framework_constraint' => '/phpunit/Framework/Constraint.php', - 'phpunit_framework_constraint_and' => '/phpunit/Framework/Constraint/And.php', - 'phpunit_framework_constraint_arrayhaskey' => '/phpunit/Framework/Constraint/ArrayHasKey.php', - 'phpunit_framework_constraint_arraysubset' => '/phpunit/Framework/Constraint/ArraySubset.php', - 'phpunit_framework_constraint_attribute' => '/phpunit/Framework/Constraint/Attribute.php', - 'phpunit_framework_constraint_callback' => '/phpunit/Framework/Constraint/Callback.php', - 'phpunit_framework_constraint_classhasattribute' => '/phpunit/Framework/Constraint/ClassHasAttribute.php', - 'phpunit_framework_constraint_classhasstaticattribute' => '/phpunit/Framework/Constraint/ClassHasStaticAttribute.php', - 'phpunit_framework_constraint_composite' => '/phpunit/Framework/Constraint/Composite.php', - 'phpunit_framework_constraint_count' => '/phpunit/Framework/Constraint/Count.php', - 'phpunit_framework_constraint_exception' => '/phpunit/Framework/Constraint/Exception.php', - 'phpunit_framework_constraint_exceptioncode' => '/phpunit/Framework/Constraint/ExceptionCode.php', - 'phpunit_framework_constraint_exceptionmessage' => '/phpunit/Framework/Constraint/ExceptionMessage.php', - 'phpunit_framework_constraint_exceptionmessageregexp' => '/phpunit/Framework/Constraint/ExceptionMessageRegExp.php', - 'phpunit_framework_constraint_fileexists' => '/phpunit/Framework/Constraint/FileExists.php', - 'phpunit_framework_constraint_greaterthan' => '/phpunit/Framework/Constraint/GreaterThan.php', - 'phpunit_framework_constraint_isanything' => '/phpunit/Framework/Constraint/IsAnything.php', - 'phpunit_framework_constraint_isempty' => '/phpunit/Framework/Constraint/IsEmpty.php', - 'phpunit_framework_constraint_isequal' => '/phpunit/Framework/Constraint/IsEqual.php', - 'phpunit_framework_constraint_isfalse' => '/phpunit/Framework/Constraint/IsFalse.php', - 'phpunit_framework_constraint_isidentical' => '/phpunit/Framework/Constraint/IsIdentical.php', - 'phpunit_framework_constraint_isinstanceof' => '/phpunit/Framework/Constraint/IsInstanceOf.php', - 'phpunit_framework_constraint_isjson' => '/phpunit/Framework/Constraint/IsJson.php', - 'phpunit_framework_constraint_isnull' => '/phpunit/Framework/Constraint/IsNull.php', - 'phpunit_framework_constraint_istrue' => '/phpunit/Framework/Constraint/IsTrue.php', - 'phpunit_framework_constraint_istype' => '/phpunit/Framework/Constraint/IsType.php', - 'phpunit_framework_constraint_jsonmatches' => '/phpunit/Framework/Constraint/JsonMatches.php', - 'phpunit_framework_constraint_jsonmatches_errormessageprovider' => '/phpunit/Framework/Constraint/JsonMatches/ErrorMessageProvider.php', - 'phpunit_framework_constraint_lessthan' => '/phpunit/Framework/Constraint/LessThan.php', - 'phpunit_framework_constraint_not' => '/phpunit/Framework/Constraint/Not.php', - 'phpunit_framework_constraint_objecthasattribute' => '/phpunit/Framework/Constraint/ObjectHasAttribute.php', - 'phpunit_framework_constraint_or' => '/phpunit/Framework/Constraint/Or.php', - 'phpunit_framework_constraint_pcrematch' => '/phpunit/Framework/Constraint/PCREMatch.php', - 'phpunit_framework_constraint_samesize' => '/phpunit/Framework/Constraint/SameSize.php', - 'phpunit_framework_constraint_stringcontains' => '/phpunit/Framework/Constraint/StringContains.php', - 'phpunit_framework_constraint_stringendswith' => '/phpunit/Framework/Constraint/StringEndsWith.php', - 'phpunit_framework_constraint_stringmatches' => '/phpunit/Framework/Constraint/StringMatches.php', - 'phpunit_framework_constraint_stringstartswith' => '/phpunit/Framework/Constraint/StringStartsWith.php', - 'phpunit_framework_constraint_traversablecontains' => '/phpunit/Framework/Constraint/TraversableContains.php', - 'phpunit_framework_constraint_traversablecontainsonly' => '/phpunit/Framework/Constraint/TraversableContainsOnly.php', - 'phpunit_framework_constraint_xor' => '/phpunit/Framework/Constraint/Xor.php', - 'phpunit_framework_error' => '/phpunit/Framework/Error.php', - 'phpunit_framework_error_deprecated' => '/phpunit/Framework/Error/Deprecated.php', - 'phpunit_framework_error_notice' => '/phpunit/Framework/Error/Notice.php', - 'phpunit_framework_error_warning' => '/phpunit/Framework/Error/Warning.php', - 'phpunit_framework_exception' => '/phpunit/Framework/Exception.php', - 'phpunit_framework_exceptionwrapper' => '/phpunit/Framework/ExceptionWrapper.php', - 'phpunit_framework_expectationfailedexception' => '/phpunit/Framework/ExpectationFailedException.php', - 'phpunit_framework_incompletetest' => '/phpunit/Framework/IncompleteTest.php', - 'phpunit_framework_incompletetestcase' => '/phpunit/Framework/IncompleteTestCase.php', - 'phpunit_framework_incompletetesterror' => '/phpunit/Framework/IncompleteTestError.php', - 'phpunit_framework_invalidcoverstargeterror' => '/phpunit/Framework/InvalidCoversTargetError.php', - 'phpunit_framework_invalidcoverstargetexception' => '/phpunit/Framework/InvalidCoversTargetException.php', - 'phpunit_framework_mockobject_badmethodcallexception' => '/phpunit-mock-objects/Framework/MockObject/Exception/BadMethodCallException.php', - 'phpunit_framework_mockobject_builder_identity' => '/phpunit-mock-objects/Framework/MockObject/Builder/Identity.php', - 'phpunit_framework_mockobject_builder_invocationmocker' => '/phpunit-mock-objects/Framework/MockObject/Builder/InvocationMocker.php', - 'phpunit_framework_mockobject_builder_match' => '/phpunit-mock-objects/Framework/MockObject/Builder/Match.php', - 'phpunit_framework_mockobject_builder_methodnamematch' => '/phpunit-mock-objects/Framework/MockObject/Builder/MethodNameMatch.php', - 'phpunit_framework_mockobject_builder_namespace' => '/phpunit-mock-objects/Framework/MockObject/Builder/Namespace.php', - 'phpunit_framework_mockobject_builder_parametersmatch' => '/phpunit-mock-objects/Framework/MockObject/Builder/ParametersMatch.php', - 'phpunit_framework_mockobject_builder_stub' => '/phpunit-mock-objects/Framework/MockObject/Builder/Stub.php', - 'phpunit_framework_mockobject_exception' => '/phpunit-mock-objects/Framework/MockObject/Exception/Exception.php', - 'phpunit_framework_mockobject_generator' => '/phpunit-mock-objects/Framework/MockObject/Generator.php', - 'phpunit_framework_mockobject_invocation' => '/phpunit-mock-objects/Framework/MockObject/Invocation.php', - 'phpunit_framework_mockobject_invocation_object' => '/phpunit-mock-objects/Framework/MockObject/Invocation/Object.php', - 'phpunit_framework_mockobject_invocation_static' => '/phpunit-mock-objects/Framework/MockObject/Invocation/Static.php', - 'phpunit_framework_mockobject_invocationmocker' => '/phpunit-mock-objects/Framework/MockObject/InvocationMocker.php', - 'phpunit_framework_mockobject_invokable' => '/phpunit-mock-objects/Framework/MockObject/Invokable.php', - 'phpunit_framework_mockobject_matcher' => '/phpunit-mock-objects/Framework/MockObject/Matcher.php', - 'phpunit_framework_mockobject_matcher_anyinvokedcount' => '/phpunit-mock-objects/Framework/MockObject/Matcher/AnyInvokedCount.php', - 'phpunit_framework_mockobject_matcher_anyparameters' => '/phpunit-mock-objects/Framework/MockObject/Matcher/AnyParameters.php', - 'phpunit_framework_mockobject_matcher_consecutiveparameters' => '/phpunit-mock-objects/Framework/MockObject/Matcher/ConsecutiveParameters.php', - 'phpunit_framework_mockobject_matcher_invocation' => '/phpunit-mock-objects/Framework/MockObject/Matcher/Invocation.php', - 'phpunit_framework_mockobject_matcher_invokedatindex' => '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtIndex.php', - 'phpunit_framework_mockobject_matcher_invokedatleastcount' => '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtLeastCount.php', - 'phpunit_framework_mockobject_matcher_invokedatleastonce' => '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtLeastOnce.php', - 'phpunit_framework_mockobject_matcher_invokedatmostcount' => '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtMostCount.php', - 'phpunit_framework_mockobject_matcher_invokedcount' => '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedCount.php', - 'phpunit_framework_mockobject_matcher_invokedrecorder' => '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedRecorder.php', - 'phpunit_framework_mockobject_matcher_methodname' => '/phpunit-mock-objects/Framework/MockObject/Matcher/MethodName.php', - 'phpunit_framework_mockobject_matcher_parameters' => '/phpunit-mock-objects/Framework/MockObject/Matcher/Parameters.php', - 'phpunit_framework_mockobject_matcher_statelessinvocation' => '/phpunit-mock-objects/Framework/MockObject/Matcher/StatelessInvocation.php', - 'phpunit_framework_mockobject_mockbuilder' => '/phpunit-mock-objects/Framework/MockObject/MockBuilder.php', - 'phpunit_framework_mockobject_mockobject' => '/phpunit-mock-objects/Framework/MockObject/MockObject.php', - 'phpunit_framework_mockobject_runtimeexception' => '/phpunit-mock-objects/Framework/MockObject/Exception/RuntimeException.php', - 'phpunit_framework_mockobject_stub' => '/phpunit-mock-objects/Framework/MockObject/Stub.php', - 'phpunit_framework_mockobject_stub_consecutivecalls' => '/phpunit-mock-objects/Framework/MockObject/Stub/ConsecutiveCalls.php', - 'phpunit_framework_mockobject_stub_exception' => '/phpunit-mock-objects/Framework/MockObject/Stub/Exception.php', - 'phpunit_framework_mockobject_stub_matchercollection' => '/phpunit-mock-objects/Framework/MockObject/Stub/MatcherCollection.php', - 'phpunit_framework_mockobject_stub_return' => '/phpunit-mock-objects/Framework/MockObject/Stub/Return.php', - 'phpunit_framework_mockobject_stub_returnargument' => '/phpunit-mock-objects/Framework/MockObject/Stub/ReturnArgument.php', - 'phpunit_framework_mockobject_stub_returncallback' => '/phpunit-mock-objects/Framework/MockObject/Stub/ReturnCallback.php', - 'phpunit_framework_mockobject_stub_returnself' => '/phpunit-mock-objects/Framework/MockObject/Stub/ReturnSelf.php', - 'phpunit_framework_mockobject_stub_returnvaluemap' => '/phpunit-mock-objects/Framework/MockObject/Stub/ReturnValueMap.php', - 'phpunit_framework_mockobject_verifiable' => '/phpunit-mock-objects/Framework/MockObject/Verifiable.php', - 'phpunit_framework_outputerror' => '/phpunit/Framework/OutputError.php', - 'phpunit_framework_riskytest' => '/phpunit/Framework/RiskyTest.php', - 'phpunit_framework_riskytesterror' => '/phpunit/Framework/RiskyTestError.php', - 'phpunit_framework_selfdescribing' => '/phpunit/Framework/SelfDescribing.php', - 'phpunit_framework_skippedtest' => '/phpunit/Framework/SkippedTest.php', - 'phpunit_framework_skippedtestcase' => '/phpunit/Framework/SkippedTestCase.php', - 'phpunit_framework_skippedtesterror' => '/phpunit/Framework/SkippedTestError.php', - 'phpunit_framework_skippedtestsuiteerror' => '/phpunit/Framework/SkippedTestSuiteError.php', - 'phpunit_framework_syntheticerror' => '/phpunit/Framework/SyntheticError.php', - 'phpunit_framework_test' => '/phpunit/Framework/Test.php', - 'phpunit_framework_testcase' => '/phpunit/Framework/TestCase.php', - 'phpunit_framework_testfailure' => '/phpunit/Framework/TestFailure.php', - 'phpunit_framework_testlistener' => '/phpunit/Framework/TestListener.php', - 'phpunit_framework_testresult' => '/phpunit/Framework/TestResult.php', - 'phpunit_framework_testsuite' => '/phpunit/Framework/TestSuite.php', - 'phpunit_framework_testsuite_dataprovider' => '/phpunit/Framework/TestSuite/DataProvider.php', - 'phpunit_framework_unintentionallycoveredcodeerror' => '/phpunit/Framework/UnintentionallyCoveredCodeError.php', - 'phpunit_framework_warning' => '/phpunit/Framework/Warning.php', - 'phpunit_runner_basetestrunner' => '/phpunit/Runner/BaseTestRunner.php', - 'phpunit_runner_exception' => '/phpunit/Runner/Exception.php', - 'phpunit_runner_filter_factory' => '/phpunit/Runner/Filter/Factory.php', - 'phpunit_runner_filter_group_exclude' => '/phpunit/Runner/Filter/Group/Exclude.php', - 'phpunit_runner_filter_group_include' => '/phpunit/Runner/Filter/Group/Include.php', - 'phpunit_runner_filter_groupfilteriterator' => '/phpunit/Runner/Filter/Group.php', - 'phpunit_runner_filter_test' => '/phpunit/Runner/Filter/Test.php', - 'phpunit_runner_standardtestsuiteloader' => '/phpunit/Runner/StandardTestSuiteLoader.php', - 'phpunit_runner_testsuiteloader' => '/phpunit/Runner/TestSuiteLoader.php', - 'phpunit_runner_version' => '/phpunit/Runner/Version.php', - 'phpunit_textui_command' => '/phpunit/TextUI/Command.php', - 'phpunit_textui_resultprinter' => '/phpunit/TextUI/ResultPrinter.php', - 'phpunit_textui_testrunner' => '/phpunit/TextUI/TestRunner.php', - 'phpunit_util_blacklist' => '/phpunit/Util/Blacklist.php', - 'phpunit_util_configuration' => '/phpunit/Util/Configuration.php', - 'phpunit_util_errorhandler' => '/phpunit/Util/ErrorHandler.php', - 'phpunit_util_fileloader' => '/phpunit/Util/Fileloader.php', - 'phpunit_util_filesystem' => '/phpunit/Util/Filesystem.php', - 'phpunit_util_filter' => '/phpunit/Util/Filter.php', - 'phpunit_util_getopt' => '/phpunit/Util/Getopt.php', - 'phpunit_util_globalstate' => '/phpunit/Util/GlobalState.php', - 'phpunit_util_invalidargumenthelper' => '/phpunit/Util/InvalidArgumentHelper.php', - 'phpunit_util_log_json' => '/phpunit/Util/Log/JSON.php', - 'phpunit_util_log_junit' => '/phpunit/Util/Log/JUnit.php', - 'phpunit_util_log_tap' => '/phpunit/Util/Log/TAP.php', - 'phpunit_util_php' => '/phpunit/Util/PHP.php', - 'phpunit_util_php_default' => '/phpunit/Util/PHP/Default.php', - 'phpunit_util_php_windows' => '/phpunit/Util/PHP/Windows.php', - 'phpunit_util_printer' => '/phpunit/Util/Printer.php', - 'phpunit_util_regex' => '/phpunit/Util/Regex.php', - 'phpunit_util_string' => '/phpunit/Util/String.php', - 'phpunit_util_test' => '/phpunit/Util/Test.php', - 'phpunit_util_testdox_nameprettifier' => '/phpunit/Util/TestDox/NamePrettifier.php', - 'phpunit_util_testdox_resultprinter' => '/phpunit/Util/TestDox/ResultPrinter.php', - 'phpunit_util_testdox_resultprinter_html' => '/phpunit/Util/TestDox/ResultPrinter/HTML.php', - 'phpunit_util_testdox_resultprinter_text' => '/phpunit/Util/TestDox/ResultPrinter/Text.php', - 'phpunit_util_testsuiteiterator' => '/phpunit/Util/TestSuiteIterator.php', - 'phpunit_util_type' => '/phpunit/Util/Type.php', - 'phpunit_util_xml' => '/phpunit/Util/XML.php', - 'sebastianbergmann\\comparator\\arraycomparator' => '/sebastian-comparator/ArrayComparator.php', - 'sebastianbergmann\\comparator\\comparator' => '/sebastian-comparator/Comparator.php', - 'sebastianbergmann\\comparator\\comparisonfailure' => '/sebastian-comparator/ComparisonFailure.php', - 'sebastianbergmann\\comparator\\datetimecomparator' => '/sebastian-comparator/DateTimeComparator.php', - 'sebastianbergmann\\comparator\\domnodecomparator' => '/sebastian-comparator/DOMNodeComparator.php', - 'sebastianbergmann\\comparator\\doublecomparator' => '/sebastian-comparator/DoubleComparator.php', - 'sebastianbergmann\\comparator\\exceptioncomparator' => '/sebastian-comparator/ExceptionComparator.php', - 'sebastianbergmann\\comparator\\factory' => '/sebastian-comparator/Factory.php', - 'sebastianbergmann\\comparator\\mockobjectcomparator' => '/sebastian-comparator/MockObjectComparator.php', - 'sebastianbergmann\\comparator\\numericcomparator' => '/sebastian-comparator/NumericComparator.php', - 'sebastianbergmann\\comparator\\objectcomparator' => '/sebastian-comparator/ObjectComparator.php', - 'sebastianbergmann\\comparator\\resourcecomparator' => '/sebastian-comparator/ResourceComparator.php', - 'sebastianbergmann\\comparator\\scalarcomparator' => '/sebastian-comparator/ScalarComparator.php', - 'sebastianbergmann\\comparator\\splobjectstoragecomparator' => '/sebastian-comparator/SplObjectStorageComparator.php', - 'sebastianbergmann\\comparator\\typecomparator' => '/sebastian-comparator/TypeComparator.php', - 'sebastianbergmann\\diff\\chunk' => '/sebastian-diff/Chunk.php', - 'sebastianbergmann\\diff\\diff' => '/sebastian-diff/Diff.php', - 'sebastianbergmann\\diff\\differ' => '/sebastian-diff/Differ.php', - 'sebastianbergmann\\diff\\lcs\\longestcommonsubsequence' => '/sebastian-diff/LCS/LongestCommonSubsequence.php', - 'sebastianbergmann\\diff\\lcs\\memoryefficientimplementation' => '/sebastian-diff/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.php', - 'sebastianbergmann\\diff\\lcs\\timeefficientimplementation' => '/sebastian-diff/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php', - 'sebastianbergmann\\diff\\line' => '/sebastian-diff/Line.php', - 'sebastianbergmann\\diff\\parser' => '/sebastian-diff/Parser.php', - 'sebastianbergmann\\environment\\console' => '/sebastian-environment/Console.php', - 'sebastianbergmann\\environment\\runtime' => '/sebastian-environment/Runtime.php', - 'sebastianbergmann\\exporter\\context' => '/sebastian-exporter/Context.php', - 'sebastianbergmann\\exporter\\exception' => '/sebastian-exporter/Exception.php', - 'sebastianbergmann\\exporter\\exporter' => '/sebastian-exporter/Exporter.php', - 'sebastianbergmann\\globalstate\\blacklist' => '/sebastian-global-state/Blacklist.php', - 'sebastianbergmann\\globalstate\\codeexporter' => '/sebastian-global-state/CodeExporter.php', - 'sebastianbergmann\\globalstate\\exception' => '/sebastian-global-state/Exception.php', - 'sebastianbergmann\\globalstate\\restorer' => '/sebastian-global-state/Restorer.php', - 'sebastianbergmann\\globalstate\\runtimeexception' => '/sebastian-global-state/RuntimeException.php', - 'sebastianbergmann\\globalstate\\snapshot' => '/sebastian-global-state/Snapshot.php', - 'sebastianbergmann\\version' => '/sebastian-version/Version.php', - 'symfony\\component\\yaml\\dumper' => '/symfony/yaml/Symfony/Component/Yaml/Dumper.php', - 'symfony\\component\\yaml\\escaper' => '/symfony/yaml/Symfony/Component/Yaml/Escaper.php', - 'symfony\\component\\yaml\\exception\\dumpexception' => '/symfony/yaml/Symfony/Component/Yaml/Exception/DumpException.php', - 'symfony\\component\\yaml\\exception\\exceptioninterface' => '/symfony/yaml/Symfony/Component/Yaml/Exception/ExceptionInterface.php', - 'symfony\\component\\yaml\\exception\\parseexception' => '/symfony/yaml/Symfony/Component/Yaml/Exception/ParseException.php', - 'symfony\\component\\yaml\\exception\\runtimeexception' => '/symfony/yaml/Symfony/Component/Yaml/Exception/RuntimeException.php', - 'symfony\\component\\yaml\\inline' => '/symfony/yaml/Symfony/Component/Yaml/Inline.php', - 'symfony\\component\\yaml\\parser' => '/symfony/yaml/Symfony/Component/Yaml/Parser.php', - 'symfony\\component\\yaml\\unescaper' => '/symfony/yaml/Symfony/Component/Yaml/Unescaper.php', - 'symfony\\component\\yaml\\yaml' => '/symfony/yaml/Symfony/Component/Yaml/Yaml.php', - 'text_template' => '/php-text-template/Template.php' - ); - } - - $class = strtolower($class); +define('__PHPUNIT_PHAR__', str_replace(DIRECTORY_SEPARATOR, '/', __FILE__)); +define('__PHPUNIT_PHAR_ROOT__', 'phar://phpunit-4.8.24.phar'); + +Phar::mapPhar('phpunit-4.8.24.phar'); + +require 'phar://phpunit-4.8.24.phar' . '/doctrine-instantiator/Doctrine/Instantiator/Exception/ExceptionInterface.php'; +require 'phar://phpunit-4.8.24.phar' . '/doctrine-instantiator/Doctrine/Instantiator/Exception/InvalidArgumentException.php'; +require 'phar://phpunit-4.8.24.phar' . '/doctrine-instantiator/Doctrine/Instantiator/Exception/UnexpectedValueException.php'; +require 'phar://phpunit-4.8.24.phar' . '/doctrine-instantiator/Doctrine/Instantiator/InstantiatorInterface.php'; +require 'phar://phpunit-4.8.24.phar' . '/doctrine-instantiator/Doctrine/Instantiator/Instantiator.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-file-iterator/Iterator.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-file-iterator/Facade.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-file-iterator/Factory.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Driver.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Driver/Xdebug.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Driver/HHVM.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Driver/PHPDBG.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Exception.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Exception/UnintentionallyCoveredCode.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Filter.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Clover.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Crap4j.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Factory.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/HTML.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/HTML/Renderer.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/HTML/Renderer/Dashboard.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/HTML/Renderer/Directory.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/HTML/Renderer/File.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Node.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Node/Directory.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Node/File.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Node/Iterator.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/PHP.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Text.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/Node.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/Directory.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/File.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/File/Coverage.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/File/Method.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/File/Report.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/File/Unit.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/Project.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/Tests.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/Totals.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Util.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Util/InvalidArgumentHelper.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-invoker/Invoker.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-invoker/TimeoutException.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-timer/Timer.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-token-stream/Token.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-token-stream/Token/Stream.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-token-stream/Token/Stream/CachingFactory.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Context.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Description.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Location.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Serializer.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/AuthorTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/SeeTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/CoversTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/VersionTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/DeprecatedTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/SourceTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ExampleTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/LinkTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/MethodTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ParamTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/PropertyTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/PropertyReadTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/PropertyWriteTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/SinceTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ThrowsTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/UsesTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/VarTag.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Type/Collection.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Exception.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/ITester.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/AbstractTester.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/SelfDescribing.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Constraint/DataSetIsEqual.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Constraint/TableIsEqual.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Constraint/TableRowCount.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/IDataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/AbstractDataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ITable.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/AbstractTable.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ITableMetaData.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/AbstractTableMetaData.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/AbstractXmlDataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ArrayDataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/CompositeDataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/CsvDataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/DataSetFilter.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/DefaultDataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/DefaultTable.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ITableIterator.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/DefaultTableIterator.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/DefaultTableMetaData.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/FlatXmlDataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/IPersistable.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ISpec.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/IYamlParser.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/MysqlXmlDataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Persistors/Abstract.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Persistors/Factory.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Persistors/FlatXml.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Persistors/MysqlXml.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Persistors/Xml.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Persistors/Yaml.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/QueryDataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/QueryTable.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ReplacementDataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ReplacementTable.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ReplacementTableIterator.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/Csv.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/IDatabaseListConsumer.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/DbQuery.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/DbTable.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/IFactory.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/Factory.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/FlatXml.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/Xml.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/Yaml.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/SymfonyYamlParser.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/TableFilter.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/TableMetaDataFilter.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/XmlDataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/YamlDataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/DataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/IDatabaseConnection.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/DefaultDatabaseConnection.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/FilteredDataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/IMetaData.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/Dblib.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/Firebird.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/InformationSchema.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/MySQL.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/Oci.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/PgSQL.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/Sqlite.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/SqlSrv.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/ResultSetTable.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/Table.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/TableIterator.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/TableMetaData.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DefaultTester.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Exception.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/IDatabaseOperation.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Composite.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/RowBased.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Delete.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/DeleteAll.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Exception.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Factory.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Insert.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Null.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Replace.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Truncate.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Update.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Test.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Assert.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/TestCase.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/TestCase.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/Command.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/Context.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/IMediumPrinter.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/IMedium.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/IMode.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/IModeFactory.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/InvalidModeException.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/Mediums/Text.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/ModeFactory.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/Modes/ExportDataSet.php'; +require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/Modes/ExportDataSet/Arguments.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/TestSuite.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Extensions/GroupTestSuite.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Extensions/PhptTestCase.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Extensions/PhptTestSuite.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Extensions/TestDecorator.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Extensions/RepeatedTest.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Command.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/CommandsHolder.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Driver.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Element/Accessor.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Element.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Element/Select.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Attribute.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Click.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Css.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Equals.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/GenericAccessor.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/GenericPost.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Keys.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Value.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCriteria.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Exception.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Keys.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/KeysHolder.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/NoSeleniumException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Response.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/TestListener.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ScreenshotListener.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Session.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Session/Cookie.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Session/Cookie/Builder.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Session/Storage.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Session/Timeouts.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/AcceptAlert.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Active.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/AlertText.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Click.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/DismissAlert.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/File.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Frame.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/GenericAccessor.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/GenericAttribute.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Location.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Log.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/MoveTo.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Orientation.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Url.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Window.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy/Isolated.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy/Shared.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/StateCommand.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/URL.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/WaitUntil.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/WebDriverException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Window.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/SeleniumBrowserSuite.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/SeleniumCommon/ExitHandler.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/SeleniumCommon/RemoteCoverage.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/SeleniumTestCase.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/SeleniumTestCase/Driver.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/SeleniumTestSuite.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Extensions/TicketListener.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Exception.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/AssertionFailedError.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/BaseTestListener.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/CodeCoverageException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/And.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ArrayHasKey.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ArraySubset.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Composite.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Attribute.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Callback.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ClassHasAttribute.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ClassHasStaticAttribute.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Count.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Exception.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ExceptionCode.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ExceptionMessage.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ExceptionMessageRegExp.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/FileExists.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/GreaterThan.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsAnything.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsEmpty.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsEqual.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsFalse.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsIdentical.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsInstanceOf.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsJson.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsNull.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsTrue.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsType.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/JsonMatches.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/JsonMatches/ErrorMessageProvider.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/LessThan.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Not.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ObjectHasAttribute.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Or.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/PCREMatch.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/SameSize.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/StringContains.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/StringEndsWith.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/StringMatches.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/StringStartsWith.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/TraversableContains.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/TraversableContainsOnly.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Xor.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Error.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Error/Deprecated.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Error/Notice.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Error/Warning.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/ExceptionWrapper.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/ExpectationFailedException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/IncompleteTest.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/IncompleteTestCase.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/IncompleteTestError.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/SkippedTest.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/InvalidCoversTargetError.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/InvalidCoversTargetException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Exception/Exception.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Exception/BadMethodCallException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Builder/Identity.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Builder/Stub.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Builder/Match.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Builder/ParametersMatch.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Builder/MethodNameMatch.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Builder/InvocationMocker.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Builder/Namespace.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Generator.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Invocation.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Invocation/Static.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Invocation/Object.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/MatcherCollection.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Verifiable.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Invokable.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/InvocationMocker.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/Invocation.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedRecorder.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/AnyInvokedCount.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/StatelessInvocation.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/AnyParameters.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/ConsecutiveParameters.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtIndex.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtLeastCount.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtLeastOnce.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtMostCount.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedCount.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/MethodName.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/Parameters.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/MockBuilder.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/MockObject.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Exception/RuntimeException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/ConsecutiveCalls.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/Exception.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/Return.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/ReturnArgument.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/ReturnCallback.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/ReturnSelf.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/ReturnValueMap.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/OutputError.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/RiskyTest.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/RiskyTestError.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/SkippedTestCase.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/SkippedTestError.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/SkippedTestSuiteError.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/SyntheticError.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/TestFailure.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/TestResult.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/TestSuite/DataProvider.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/UnintentionallyCoveredCodeError.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Warning.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/BaseTestRunner.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/Exception.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/Filter/Factory.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/Filter/Group.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/Filter/Group/Exclude.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/Filter/Group/Include.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/Filter/Test.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/TestSuiteLoader.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/StandardTestSuiteLoader.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/Version.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/TextUI/Command.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Printer.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/TextUI/ResultPrinter.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/TextUI/TestRunner.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Blacklist.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Configuration.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/ErrorHandler.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Fileloader.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Filesystem.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Filter.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Getopt.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/GlobalState.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/InvalidArgumentHelper.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Log/JSON.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Log/JUnit.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Log/TAP.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/PHP.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/PHP/Default.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/PHP/Windows.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Regex.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/String.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Test.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/TestDox/NamePrettifier.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/TestDox/ResultPrinter.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/TestDox/ResultPrinter/HTML.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/TestDox/ResultPrinter/Text.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/TestSuiteIterator.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Type.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/XML.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/ArgumentsWildcard.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/TokenInterface.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/AnyValuesToken.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/AnyValueToken.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ApproximateValueToken.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ArrayCountToken.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ArrayEntryToken.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ArrayEveryEntryToken.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/CallbackToken.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ExactValueToken.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/IdenticalValueToken.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/LogicalAndToken.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/LogicalNotToken.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ObjectStateToken.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/StringContainsToken.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/TypeToken.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Call/Call.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Call/CallCenter.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/Comparator.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Comparator/ClosureComparator.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/Factory.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Comparator/Factory.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/ArrayComparator.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/ObjectComparator.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Comparator/ProphecyComparator.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Doubler.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/CachedDoubler.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/ClassPatchInterface.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/HhvmExceptionPatch.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/KeywordPatch.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/MagicCallPatch.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/ReflectionClassNewInstancePatch.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/TraversablePatch.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/DoubleInterface.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/ClassCodeGenerator.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/ClassCreator.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/ClassMirror.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/Node/ArgumentNode.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/Node/ClassNode.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/Node/MethodNode.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/ReflectionInterface.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/LazyDouble.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/NameGenerator.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Exception.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prophecy/ProphecyException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prophecy/ObjectProphecyException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Call/UnexpectedCallException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/DoublerException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/ClassCreatorException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/ClassMirrorException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/DoubleException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/ClassNotFoundException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/InterfaceNotFoundException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/MethodNotExtendableException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/MethodNotFoundException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/ReturnByReferenceException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/InvalidArgumentException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/PredictionException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/AggregateException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/FailedPredictionException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prophecy/MethodProphecyException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/NoCallsException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/UnexpectedCallsException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/UnexpectedCallsCountException.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prediction/PredictionInterface.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prediction/CallbackPrediction.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prediction/CallPrediction.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prediction/CallTimesPrediction.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prediction/NoCallsPrediction.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Promise/PromiseInterface.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Promise/CallbackPromise.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Promise/ReturnArgumentPromise.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Promise/ReturnPromise.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Promise/ThrowPromise.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prophecy/MethodProphecy.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prophecy/ProphecyInterface.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prophecy/ObjectProphecy.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prophecy/ProphecySubjectInterface.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prophecy/RevealerInterface.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prophecy/Revealer.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prophet.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Util/ExportUtil.php'; +require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Util/StringUtil.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/ComparisonFailure.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/DateTimeComparator.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/DOMNodeComparator.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/ScalarComparator.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/NumericComparator.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/DoubleComparator.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/ExceptionComparator.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/MockObjectComparator.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/ResourceComparator.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/SplObjectStorageComparator.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/TypeComparator.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/Chunk.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/Diff.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/Differ.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/LCS/LongestCommonSubsequence.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/Line.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/Parser.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-environment/Console.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-environment/Runtime.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-exporter/Exporter.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-global-state/Blacklist.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-global-state/CodeExporter.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-global-state/Exception.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-global-state/Restorer.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-global-state/RuntimeException.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-global-state/Snapshot.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-recursion-context/Context.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-recursion-context/Exception.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-recursion-context/InvalidArgumentException.php'; +require 'phar://phpunit-4.8.24.phar' . '/sebastian-version/Version.php'; +require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Dumper.php'; +require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Escaper.php'; +require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Exception/ExceptionInterface.php'; +require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Exception/RuntimeException.php'; +require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Exception/DumpException.php'; +require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Exception/ParseException.php'; +require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Inline.php'; +require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Parser.php'; +require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Unescaper.php'; +require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Yaml.php'; +require 'phar://phpunit-4.8.24.phar' . '/php-text-template/Template.php'; - if (isset($classes[$class])) { - require __PHPUNIT_PHAR_ROOT__ . $classes[$class]; - } - } -); +if ($execute) { + if (version_compare('5.3.3', PHP_VERSION, '>')) { + fwrite( + STDERR, + 'This version of PHPUnit requires PHP 5.3.3; using the latest version of PHP is highly recommended.' . PHP_EOL + ); -Phar::mapPhar('phpunit-beta-2014-11-20.phar'); + die(1); + } -if ($execute) { if (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == '--manifest') { print file_get_contents(__PHPUNIT_PHAR_ROOT__ . '/manifest.txt'); exit; @@ -613,173 +549,126 @@ if ($execute) { } __HALT_COMPILER(); ?> -phpunit-beta-2014-11-20.phar manifest.txtmTzca.pem -mT -sphp-code-coverage/LICENSEmT1N"php-code-coverage/CodeCoverage.phpkmTk@)php-code-coverage/CodeCoverage/Driver.php -mT -!MfT.php-code-coverage/CodeCoverage/Driver/HHVM.php mT Qli0php-code-coverage/CodeCoverage/Driver/Xdebug.phpmTaR,php-code-coverage/CodeCoverage/Exception.php mT x'Gphp-code-coverage/CodeCoverage/Exception/UnintentionallyCoveredCode.php. -mT. -se~T)php-code-coverage/CodeCoverage/Filter.php-mT-0뻶0php-code-coverage/CodeCoverage/Report/Clover.php0mT0sԶ0php-code-coverage/CodeCoverage/Report/Crap4j.phpmTRk1php-code-coverage/CodeCoverage/Report/Factory.phpemTe.php-code-coverage/CodeCoverage/Report/HTML.phpmTa@a7php-code-coverage/CodeCoverage/Report/HTML/Renderer.php&mT&ʲ؅Aphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Dashboard.php[0mT[0wATAphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Directory.phpmTS<php-code-coverage/CodeCoverage/Report/HTML/Renderer/File.phpnPmTnPKSphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/coverage_bar.html.dist1mT1itLRphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/css/bootstrap.min.css[mT[s84Jphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/css/nv.d3.css#2mT#2 bJphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/css/style.css mT MR#Pphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/dashboard.html.distcmTcܶPphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/directory.html.distamTazdEUphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/directory_item.html.dist5mT5Z]Kphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/file.html.dist -mT -OPphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/file_item.html.distgmTgV Pcphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.eotoOmToOqcphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.svgmT\8cphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.ttf@mT@dphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.woff[mT[\ζPphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/bootstrap.min.js]mT]2Iphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/d3.min.js`<mT`<uIphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/holder.jsmTY{0Pphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/html5shiv.min.jsL -mTL -FMphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/jquery.min.js)vmT)v?%Lphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/nv.d3.min.jsmTK&Nphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/respond.min.jsmT{Rphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/method_item.html.distxmTx*.php-code-coverage/CodeCoverage/Report/Node.phpm%mTm%!z28php-code-coverage/CodeCoverage/Report/Node/Directory.php0mT0N3php-code-coverage/CodeCoverage/Report/Node/File.phpVPmTVPL7php-code-coverage/CodeCoverage/Report/Node/Iterator.phpmT-x-php-code-coverage/CodeCoverage/Report/PHP.php mT m7ض.php-code-coverage/CodeCoverage/Report/Text.php)mT)9-php-code-coverage/CodeCoverage/Report/XML.php#mT#7php-code-coverage/CodeCoverage/Report/XML/Directory.php mT Mٶ02php-code-coverage/CodeCoverage/Report/XML/File.php4mT4*G;php-code-coverage/CodeCoverage/Report/XML/File/Coverage.php}mT}$9php-code-coverage/CodeCoverage/Report/XML/File/Method.php mT ֶ9php-code-coverage/CodeCoverage/Report/XML/File/Report.php_mT_Ͷ7php-code-coverage/CodeCoverage/Report/XML/File/Unit.php:mT:,Kö2php-code-coverage/CodeCoverage/Report/XML/Node.phpzmTz5php-code-coverage/CodeCoverage/Report/XML/Project.phpumTu#Ǯ3php-code-coverage/CodeCoverage/Report/XML/Tests.php mT 4php-code-coverage/CodeCoverage/Report/XML/Totals.phpmTg'php-code-coverage/CodeCoverage/Util.php# mT# $ݶ=php-code-coverage/CodeCoverage/Util/InvalidArgumentHelper.php mT Hpphp-file-iterator/LICENSE mT |php-file-iterator/Iterator.phpcmTc~ԃ%php-file-iterator/Iterator/Facade.phpmTl&php-file-iterator/Iterator/Factory.phphmThڶphp-text-template/LICENSE mT dphp-text-template/Template.phpmT;$php-timer/LICENSEmTN>php-timer/Timer.php6mT6#X6php-token-stream/LICENSEmTb4php-token-stream/Token.php?]mT?]y9!php-token-stream/Token/Stream.phpuDmTuD>0php-token-stream/Token/Stream/CachingFactory.php mT rjphpunit-mock-objects/LICENSEmT>phpunit-mock-objects/Framework/MockObject/Builder/Identity.php mT NtsFphpunit-mock-objects/Framework/MockObject/Builder/InvocationMocker.php$mT$p -O;phpunit-mock-objects/Framework/MockObject/Builder/Match.php mT ڂEphpunit-mock-objects/Framework/MockObject/Builder/MethodNameMatch.php mT ?phpunit-mock-objects/Framework/MockObject/Builder/Namespace.phpmTcaEphpunit-mock-objects/Framework/MockObject/Builder/ParametersMatch.phpamTa#$ :phpunit-mock-objects/Framework/MockObject/Builder/Stub.php mT t Nphpunit-mock-objects/Framework/MockObject/Exception/BadMethodCallException.php mT vAphpunit-mock-objects/Framework/MockObject/Exception/Exception.php mT 1IHphpunit-mock-objects/Framework/MockObject/Exception/RuntimeException.php mT a7phpunit-mock-objects/Framework/MockObject/Generator.phpmT~`Iphpunit-mock-objects/Framework/MockObject/Generator/mocked_class.tpl.dist mT FZPphpunit-mock-objects/Framework/MockObject/Generator/mocked_class_method.tpl.distmT4޶Iphpunit-mock-objects/Framework/MockObject/Generator/mocked_clone.tpl.distmTaTJphpunit-mock-objects/Framework/MockObject/Generator/mocked_method.tpl.distmTbVQphpunit-mock-objects/Framework/MockObject/Generator/mocked_static_method.tpl.distmT+FKphpunit-mock-objects/Framework/MockObject/Generator/proxied_method.tpl.distmT?aHphpunit-mock-objects/Framework/MockObject/Generator/trait_class.tpl.dist7mT7[$~Kphpunit-mock-objects/Framework/MockObject/Generator/unmocked_clone.tpl.distmT8W}ضGphpunit-mock-objects/Framework/MockObject/Generator/wsdl_class.tpl.distmTw&SHphpunit-mock-objects/Framework/MockObject/Generator/wsdl_method.tpl.dist<mT<i8phpunit-mock-objects/Framework/MockObject/Invocation.php mT a??phpunit-mock-objects/Framework/MockObject/Invocation/Object.php mT a|¶?phpunit-mock-objects/Framework/MockObject/Invocation/Static.phptmTt>g>phpunit-mock-objects/Framework/MockObject/InvocationMocker.php{mT{h7phpunit-mock-objects/Framework/MockObject/Invokable.php mT ]5phpunit-mock-objects/Framework/MockObject/Matcher.php(mT(LEphpunit-mock-objects/Framework/MockObject/Matcher/AnyInvokedCount.phpA mTA tM8Cphpunit-mock-objects/Framework/MockObject/Matcher/AnyParameters.php mT ahKphpunit-mock-objects/Framework/MockObject/Matcher/ConsecutiveParameters.phpmTN[ն@phpunit-mock-objects/Framework/MockObject/Matcher/Invocation.phpemTe̸Dphpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtIndex.phpumTua Iphpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtLeastCount.phpemTeFkrHphpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtLeastOnce.php/ mT/ mrَHphpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtMostCount.phpZmTZ]ǶBphpunit-mock-objects/Framework/MockObject/Matcher/InvokedCount.phpmT92Ephpunit-mock-objects/Framework/MockObject/Matcher/InvokedRecorder.phpmT; =P@phpunit-mock-objects/Framework/MockObject/Matcher/MethodName.phpBmTB`5h@phpunit-mock-objects/Framework/MockObject/Matcher/Parameters.phpmT1˶Iphpunit-mock-objects/Framework/MockObject/Matcher/StatelessInvocation.phpmT7g9phpunit-mock-objects/Framework/MockObject/MockBuilder.php%mT% -d8phpunit-mock-objects/Framework/MockObject/MockObject.phpEmTEjQq2phpunit-mock-objects/Framework/MockObject/Stub.php mT YCphpunit-mock-objects/Framework/MockObject/Stub/ConsecutiveCalls.php mT #|<phpunit-mock-objects/Framework/MockObject/Stub/Exception.phpX mTX ȝ>nDphpunit-mock-objects/Framework/MockObject/Stub/MatcherCollection.php mT  9phpunit-mock-objects/Framework/MockObject/Stub/Return.php mT Aphpunit-mock-objects/Framework/MockObject/Stub/ReturnArgument.phpe mTe M#Aphpunit-mock-objects/Framework/MockObject/Stub/ReturnCallback.php mT '޶=phpunit-mock-objects/Framework/MockObject/Stub/ReturnSelf.php mT ÁAphpunit-mock-objects/Framework/MockObject/Stub/ReturnValueMap.php mT #j{58phpunit-mock-objects/Framework/MockObject/Verifiable.php mT &nsebastian-comparator/LICENSE mT u(sebastian-comparator/ArrayComparator.phpBmTBj#sebastian-comparator/Comparator.phpmT6*sebastian-comparator/ComparisonFailure.phpmT "Ҷ*sebastian-comparator/DOMNodeComparator.phpmT*+sebastian-comparator/DateTimeComparator.phpZmTZ@Cp)sebastian-comparator/DoubleComparator.phpmTO,sebastian-comparator/ExceptionComparator.php mT  sebastian-comparator/Factory.phpUmTU6Gȶ-sebastian-comparator/MockObjectComparator.php mT *)+*sebastian-comparator/NumericComparator.phpAmTA۶)sebastian-comparator/ObjectComparator.phpmTt+sebastian-comparator/ResourceComparator.phpVmTV )sebastian-comparator/ScalarComparator.phpmT_붶3sebastian-comparator/SplObjectStorageComparator.phpmT϶'sebastian-comparator/TypeComparator.php mT sebastian-diff/LICENSEmT׶sebastian-diff/Chunk.phpmTL%sebastian-diff/Diff.php mT Usebastian-diff/Differ.phpF"mTF"%V/sebastian-diff/LCS/LongestCommonSubsequence.php -mT -PzLsebastian-diff/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.phpmTJsebastian-diff/LCS/TimeEfficientLongestCommonSubsequenceImplementation.phpmTPv+sebastian-diff/Line.php mT nsebastian-diff/Parser.phpdmTd.sebastian-environment/LICENSEmTiV!sebastian-environment/Console.phpmTX!sebastian-environment/Runtime.phpmTjsebastian-exporter/LICENSEmT?=sebastian-exporter/Context.php mT   sebastian-exporter/Exception.php] mT] #1sebastian-exporter/Exporter.php&mT&sebastian-global-state/LICENSE -mT -$sebastian-global-state/Blacklist.php#mT#f1'sebastian-global-state/CodeExporter.php_mT_ 5$sebastian-global-state/Exception.phpmT #sebastian-global-state/Restorer.phpmT}FԶ+sebastian-global-state/RuntimeException.php0 mT0 yv#sebastian-global-state/Snapshot.php',mT',5+ sebastian-version/LICENSEmT sebastian-version/Version.php mT Y doctrine-instantiator/LICENSE$mT$ -͂Ldoctrine-instantiator/Doctrine/Instantiator/Exception/ExceptionInterface.phpmT.öRdoctrine-instantiator/Doctrine/Instantiator/Exception/InvalidArgumentException.phpmTh7IRdoctrine-instantiator/Doctrine/Instantiator/Exception/UnexpectedValueException.php -mT -" <doctrine-instantiator/Doctrine/Instantiator/Instantiator.phpmTXEdoctrine-instantiator/Doctrine/Instantiator/InstantiatorInterface.php~mT~:symfony/LICENSE)mT)E.symfony/yaml/Symfony/Component/Yaml/Dumper.php mT H/symfony/yaml/Symfony/Component/Yaml/Escaper.php| mT| b ?symfony/yaml/Symfony/Component/Yaml/Exception/DumpException.phpmTؙ՚Dsymfony/yaml/Symfony/Component/Yaml/Exception/ExceptionInterface.phpmT+l@symfony/yaml/Symfony/Component/Yaml/Exception/ParseException.php mT Bsymfony/yaml/Symfony/Component/Yaml/Exception/RuntimeException.phpmT|-.symfony/yaml/Symfony/Component/Yaml/Inline.phpLmTLɭ$.symfony/yaml/Symfony/Component/Yaml/Parser.php+hmT+ht -"1symfony/yaml/Symfony/Component/Yaml/Unescaper.phpmTbI!,symfony/yaml/Symfony/Component/Yaml/Yaml.php mT ~-dbunit/Extensions/Database/AbstractTester.php$mT$Q8dbunit/Extensions/Database/Constraint/DataSetIsEqual.phpmTG`6dbunit/Extensions/Database/Constraint/TableIsEqual.phpmT%7dbunit/Extensions/Database/Constraint/TableRowCount.php mT |)dbunit/Extensions/Database/DB/DataSet.phpmT`Wk;dbunit/Extensions/Database/DB/DefaultDatabaseConnection.php mT ʉ11dbunit/Extensions/Database/DB/FilteredDataSet.phpM mTM 5dbunit/Extensions/Database/DB/IDatabaseConnection.phpmTD+dbunit/Extensions/Database/DB/IMetaData.php6mT6vi*dbunit/Extensions/Database/DB/MetaData.phpL mTL !!0dbunit/Extensions/Database/DB/MetaData/Dblib.php mT {ڧ3dbunit/Extensions/Database/DB/MetaData/Firebird.phpmTBp<dbunit/Extensions/Database/DB/MetaData/InformationSchema.phptmTtö0dbunit/Extensions/Database/DB/MetaData/MySQL.phpmT0.dbunit/Extensions/Database/DB/MetaData/Oci.phpVmTV+ E0dbunit/Extensions/Database/DB/MetaData/PgSQL.phpmTgĶ1dbunit/Extensions/Database/DB/MetaData/SqlSrv.phpmT0 1dbunit/Extensions/Database/DB/MetaData/Sqlite.php>mT>=^ف0dbunit/Extensions/Database/DB/ResultSetTable.php mT ['dbunit/Extensions/Database/DB/Table.php mT s5/dbunit/Extensions/Database/DB/TableIterator.phpmTl/dbunit/Extensions/Database/DB/TableMetaData.php mT K6dbunit/Extensions/Database/DataSet/AbstractDataSet.phpmT[94dbunit/Extensions/Database/DataSet/AbstractTable.phpW!mTW!|<dbunit/Extensions/Database/DataSet/AbstractTableMetaData.phpmT9dbunit/Extensions/Database/DataSet/AbstractXmlDataSet.phptmTt3!7dbunit/Extensions/Database/DataSet/CompositeDataSet.phpmT(1dbunit/Extensions/Database/DataSet/CsvDataSet.phpmT/0(4dbunit/Extensions/Database/DataSet/DataSetFilter.phpmT_ƴ5dbunit/Extensions/Database/DataSet/DefaultDataSet.php mT kr3dbunit/Extensions/Database/DataSet/DefaultTable.phpmTNN(;dbunit/Extensions/Database/DataSet/DefaultTableIterator.phpmTr;dbunit/Extensions/Database/DataSet/DefaultTableMetaData.php mT 5dbunit/Extensions/Database/DataSet/FlatXmlDataSet.phpVmTVN@Զ/dbunit/Extensions/Database/DataSet/IDataSet.php mT -oB3dbunit/Extensions/Database/DataSet/IPersistable.php -mT -,dbunit/Extensions/Database/DataSet/ISpec.php -mT -fC-dbunit/Extensions/Database/DataSet/ITable.php mT 95dbunit/Extensions/Database/DataSet/ITableIterator.php - mT - "h5dbunit/Extensions/Database/DataSet/ITableMetaData.php8 mT8 qjY2dbunit/Extensions/Database/DataSet/IYamlParser.php mT Cp6dbunit/Extensions/Database/DataSet/MysqlXmlDataSet.php/mT/8o:dbunit/Extensions/Database/DataSet/Persistors/Abstract.phpmT79dbunit/Extensions/Database/DataSet/Persistors/Factory.phpmT[̶9dbunit/Extensions/Database/DataSet/Persistors/FlatXml.phpjmTj_:dbunit/Extensions/Database/DataSet/Persistors/MysqlXml.phpmTf]-5dbunit/Extensions/Database/DataSet/Persistors/Xml.phpmTw:6dbunit/Extensions/Database/DataSet/Persistors/Yaml.phpmTn3dbunit/Extensions/Database/DataSet/QueryDataSet.phpomTo1Г1dbunit/Extensions/Database/DataSet/QueryTable.phpmT!9dbunit/Extensions/Database/DataSet/ReplacementDataSet.php`mT`ք7dbunit/Extensions/Database/DataSet/ReplacementTable.php3mT3`藶?dbunit/Extensions/Database/DataSet/ReplacementTableIterator.phpmTB! 0dbunit/Extensions/Database/DataSet/Specs/Csv.phpamTa=Kj4dbunit/Extensions/Database/DataSet/Specs/DbQuery.phpmT5v4dbunit/Extensions/Database/DataSet/Specs/DbTable.phpmTJ4dbunit/Extensions/Database/DataSet/Specs/Factory.php mT >34dbunit/Extensions/Database/DataSet/Specs/FlatXml.php mT .5dbunit/Extensions/Database/DataSet/Specs/IFactory.phpQ -mTQ -f0dbunit/Extensions/Database/DataSet/Specs/Xml.php mT )5T1dbunit/Extensions/Database/DataSet/Specs/Yaml.php mT SD\8dbunit/Extensions/Database/DataSet/SymfonyYamlParser.php -mT -n| 2dbunit/Extensions/Database/DataSet/TableFilter.phpmT*E:dbunit/Extensions/Database/DataSet/TableMetaDataFilter.php*mT* -۶1dbunit/Extensions/Database/DataSet/XmlDataSet.phpmTA2dbunit/Extensions/Database/DataSet/YamlDataSet.phpmTL,dbunit/Extensions/Database/DefaultTester.php mT :(dbunit/Extensions/Database/Exception.php -mT -x -!4dbunit/Extensions/Database/IDatabaseListConsumer.phpA -mTA -SӶ&dbunit/Extensions/Database/ITester.phpmTo2dbunit/Extensions/Database/Operation/Composite.phpmT9$ /dbunit/Extensions/Database/Operation/Delete.phpmT2_Ͷ2dbunit/Extensions/Database/Operation/DeleteAll.php mT l+2dbunit/Extensions/Database/Operation/Exception.phpmT0dbunit/Extensions/Database/Operation/Factory.phpmTt¶;dbunit/Extensions/Database/Operation/IDatabaseOperation.php mT f/dbunit/Extensions/Database/Operation/Insert.phpmT-dbunit/Extensions/Database/Operation/Null.php -mT -I90dbunit/Extensions/Database/Operation/Replace.phpfmTf8w@1dbunit/Extensions/Database/Operation/RowBased.php*mT*+*Ҷ1dbunit/Extensions/Database/Operation/Truncate.phpmTfQ'/dbunit/Extensions/Database/Operation/Update.phpmT'dbunit/Extensions/Database/TestCase.php(%mT(%s)dbunit/Extensions/Database/UI/Command.phpR mTR !B?dbunit/Extensions/Database/UI/Modes/ExportDataSet/Arguments.phpmT'WҶphp-invoker/Invoker.php&mT&-顶(php-invoker/Invoker/TimeoutException.php mT n1phpunit-selenium/Extensions/Selenium2TestCase.phpkCmTkCmf9phpunit-selenium/Extensions/Selenium2TestCase/Command.phpL mTL cyƶ@phpunit-selenium/Extensions/Selenium2TestCase/CommandsHolder.phpmTZew8phpunit-selenium/Extensions/Selenium2TestCase/Driver.php/mT/z}9phpunit-selenium/Extensions/Selenium2TestCase/Element.phpmTBphpunit-selenium/Extensions/Selenium2TestCase/Element/Accessor.phpmT\w@phpunit-selenium/Extensions/Selenium2TestCase/Element/Select.phpmTL@"Jphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Attribute.phpt mTt  ˈFphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Click.php+ -mT+ -ĻDphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Css.phpi mTi Gphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Equals.php` mT` nնPphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/GenericAccessor.phpi -mTi + ?phpunit-4.8.24.phar manifest.txtaXVaMBca.pemXVbyphp-code-coverage/LICENSEXVЉxZ"php-code-coverage/CodeCoverage.phpsiXVsi])php-code-coverage/CodeCoverage/Driver.phpXV0.php-code-coverage/CodeCoverage/Driver/HHVM.php^XV^7b0php-code-coverage/CodeCoverage/Driver/PHPDBG.php XV 90php-code-coverage/CodeCoverage/Driver/Xdebug.phpx XVx ,php-code-coverage/CodeCoverage/Exception.phpXVK)Gphp-code-coverage/CodeCoverage/Exception/UnintentionallyCoveredCode.phpXV})php-code-coverage/CodeCoverage/Filter.php-XV-+Xն0php-code-coverage/CodeCoverage/Report/Clover.php'XV'dV0php-code-coverage/CodeCoverage/Report/Crap4j.php,XV,G8E1php-code-coverage/CodeCoverage/Report/Factory.phpkXVkrp2.php-code-coverage/CodeCoverage/Report/HTML.php=XV=07php-code-coverage/CodeCoverage/Report/HTML/Renderer.php!XV!ԫuAphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Dashboard.php&XV&CʶAphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Directory.php| XV| <php-code-coverage/CodeCoverage/Report/HTML/Renderer/File.php,LXV,L=>Sphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/coverage_bar.html.dist1XV1itLRphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/css/bootstrap.min.css9XV9ܛ2Nphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/css/nv.d3.min.cssX%XVX%0,Jphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/css/style.css+XV+Y`gPphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/dashboard.html.distXV{Pphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/directory.html.disteXVeǐUphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/directory_item.html.dist5XV5Z]Kphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/file.html.dist +XV +DPphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/file_item.html.distgXVgV Pcphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.eotNXVNXDZcphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.svg¨XV¨|ɶcphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.ttf\XV\<dphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.woff[XV[{ephp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.woff2lFXVlFvaPphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/bootstrap.min.jsoXVo;Iphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/d3.min.jsUNXVUN;1Mphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/holder.min.jsmXVmJsѶPphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/html5shiv.min.jsL +XVL +FMphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/jquery.min.jsvXVveLphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/nv.d3.min.js]XV]']4Nphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/respond.min.jsXV{Rphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/method_item.html.distxXVx*.php-code-coverage/CodeCoverage/Report/Node.phpXV2޶8php-code-coverage/CodeCoverage/Report/Node/Directory.phpS(XVS(3php-code-coverage/CodeCoverage/Report/Node/File.phpJXVJQc7php-code-coverage/CodeCoverage/Report/Node/Iterator.phpXVMq-php-code-coverage/CodeCoverage/Report/PHP.phpXV4R}.php-code-coverage/CodeCoverage/Report/Text.phpx!XVx!`k-php-code-coverage/CodeCoverage/Report/XML.phplXVls7php-code-coverage/CodeCoverage/Report/XML/Directory.phpXVZ2php-code-coverage/CodeCoverage/Report/XML/File.php0XV0ڶ;php-code-coverage/CodeCoverage/Report/XML/File/Coverage.php5XV5(+R9php-code-coverage/CodeCoverage/Report/XML/File/Method.phpuXVuʶ9php-code-coverage/CodeCoverage/Report/XML/File/Report.phpCXVCY{ȶ7php-code-coverage/CodeCoverage/Report/XML/File/Unit.phpB +XVB + kr2php-code-coverage/CodeCoverage/Report/XML/Node.php^XV^N5php-code-coverage/CodeCoverage/Report/XML/Project.php]XV]h>3php-code-coverage/CodeCoverage/Report/XML/Tests.phpXV2t4php-code-coverage/CodeCoverage/Report/XML/Totals.phpXVoF'php-code-coverage/CodeCoverage/Util.phpXVK϶=php-code-coverage/CodeCoverage/Util/InvalidArgumentHelper.php=XV=php-file-iterator/LICENSE XV sphp-file-iterator/Facade.php XV 0php-file-iterator/Factory.php XV yphp-file-iterator/Iterator.phpaXVaphp-text-template/LICENSE XV S:php-text-template/Template.php XV w4php-timer/LICENSEXVǨAEphp-timer/Timer.phpE XVE *Ephp-token-stream/LICENSEXV-& php-token-stream/Token.php:bXV:b#0!!php-token-stream/Token/Stream.php@XV@ܜ0php-token-stream/Token/Stream/CachingFactory.phpXV_phpunit-mock-objects/LICENSEXVC>>phpunit-mock-objects/Framework/MockObject/Builder/Identity.phpXV(4Fphpunit-mock-objects/Framework/MockObject/Builder/InvocationMocker.phpvXVv;phpunit-mock-objects/Framework/MockObject/Builder/Match.phpWXVWEAEphpunit-mock-objects/Framework/MockObject/Builder/MethodNameMatch.php)XV)s?phpunit-mock-objects/Framework/MockObject/Builder/Namespace.phpXVM쉔Ephpunit-mock-objects/Framework/MockObject/Builder/ParametersMatch.phpXVsґζ:phpunit-mock-objects/Framework/MockObject/Builder/Stub.phpoXVohrNphpunit-mock-objects/Framework/MockObject/Exception/BadMethodCallException.phpXV).Aphpunit-mock-objects/Framework/MockObject/Exception/Exception.phpXV]THphpunit-mock-objects/Framework/MockObject/Exception/RuntimeException.phpXVYn47phpunit-mock-objects/Framework/MockObject/Generator.phpXV Iphpunit-mock-objects/Framework/MockObject/Generator/mocked_class.tpl.dist XV FZPphpunit-mock-objects/Framework/MockObject/Generator/mocked_class_method.tpl.distXV4޶Iphpunit-mock-objects/Framework/MockObject/Generator/mocked_clone.tpl.distXVaTJphpunit-mock-objects/Framework/MockObject/Generator/mocked_method.tpl.distXVbVQphpunit-mock-objects/Framework/MockObject/Generator/mocked_static_method.tpl.distXV+FKphpunit-mock-objects/Framework/MockObject/Generator/proxied_method.tpl.distXV?aHphpunit-mock-objects/Framework/MockObject/Generator/trait_class.tpl.dist7XV7[$~Kphpunit-mock-objects/Framework/MockObject/Generator/unmocked_clone.tpl.distXV8W}ضGphpunit-mock-objects/Framework/MockObject/Generator/wsdl_class.tpl.distXVw&SHphpunit-mock-objects/Framework/MockObject/Generator/wsdl_method.tpl.dist<XV<i8phpunit-mock-objects/Framework/MockObject/Invocation.phpXVs?phpunit-mock-objects/Framework/MockObject/Invocation/Object.phpXV9?phpunit-mock-objects/Framework/MockObject/Invocation/Static.phpFXVFKp>phpunit-mock-objects/Framework/MockObject/InvocationMocker.phpXV2׶7phpunit-mock-objects/Framework/MockObject/Invokable.php9XV9~5phpunit-mock-objects/Framework/MockObject/Matcher.php XV 7/Ephpunit-mock-objects/Framework/MockObject/Matcher/AnyInvokedCount.phpXVDs$Cphpunit-mock-objects/Framework/MockObject/Matcher/AnyParameters.phpCXVCKphpunit-mock-objects/Framework/MockObject/Matcher/ConsecutiveParameters.phpXViOm@phpunit-mock-objects/Framework/MockObject/Matcher/Invocation.phpXVKbDphpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtIndex.php XV YIphpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtLeastCount.phpXV RHphpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtLeastOnce.phpXVcIHphpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtMostCount.phpXVBphpunit-mock-objects/Framework/MockObject/Matcher/InvokedCount.php XV SGEphpunit-mock-objects/Framework/MockObject/Matcher/InvokedRecorder.php`XV`!@phpunit-mock-objects/Framework/MockObject/Matcher/MethodName.php XV v@phpunit-mock-objects/Framework/MockObject/Matcher/Parameters.phpXVPjIphpunit-mock-objects/Framework/MockObject/Matcher/StatelessInvocation.phpkXVk϶9phpunit-mock-objects/Framework/MockObject/MockBuilder.phpXV\_8phpunit-mock-objects/Framework/MockObject/MockObject.php9XV9C2phpunit-mock-objects/Framework/MockObject/Stub.php\XV\f+FжCphpunit-mock-objects/Framework/MockObject/Stub/ConsecutiveCalls.phpXV2 <phpunit-mock-objects/Framework/MockObject/Stub/Exception.phpXV<Dphpunit-mock-objects/Framework/MockObject/Stub/MatcherCollection.php:XV:Y9phpunit-mock-objects/Framework/MockObject/Stub/Return.phpXVLf+Aphpunit-mock-objects/Framework/MockObject/Stub/ReturnArgument.phpXV9)`Aphpunit-mock-objects/Framework/MockObject/Stub/ReturnCallback.phpXVg`=phpunit-mock-objects/Framework/MockObject/Stub/ReturnSelf.phpXVIAphpunit-mock-objects/Framework/MockObject/Stub/ReturnValueMap.php|XV|uB 8phpunit-mock-objects/Framework/MockObject/Verifiable.phpXV'Lsebastian-comparator/LICENSE XV :(sebastian-comparator/ArrayComparator.phpXVvx#sebastian-comparator/Comparator.phpPXVP!P=*sebastian-comparator/ComparisonFailure.php XV V*sebastian-comparator/DOMNodeComparator.php XV >%+sebastian-comparator/DateTimeComparator.php XV )sebastian-comparator/DoubleComparator.php7XV7Stٶ,sebastian-comparator/ExceptionComparator.phpXVkf sebastian-comparator/Factory.phpd XVd ه1-sebastian-comparator/MockObjectComparator.phpXVO*sebastian-comparator/NumericComparator.php~ +XV~ +7)sebastian-comparator/ObjectComparator.phpXVw+sebastian-comparator/ResourceComparator.phpXV&w)sebastian-comparator/ScalarComparator.php>XV>B(3sebastian-comparator/SplObjectStorageComparator.php +XV +MQ'sebastian-comparator/TypeComparator.phpXVQsebastian-diff/LICENSEXVvEvösebastian-diff/Chunk.phpXV-*sebastian-diff/Diff.phpXV˾sebastian-diff/Differ.phpXV`/sebastian-diff/LCS/LongestCommonSubsequence.phplXVll1Lsebastian-diff/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.php XV _Jsebastian-diff/LCS/TimeEfficientLongestCommonSubsequenceImplementation.phpXVf#5/sebastian-diff/Line.phpXV:;sebastian-diff/Parser.php' XV' ZKsebastian-environment/LICENSE +XV +߶!sebastian-environment/Console.php XV Oh5!sebastian-environment/Runtime.php@XV@Ҏ!˶sebastian-exporter/LICENSEXVAe)sebastian-exporter/Exporter.php["XV["T#sebastian-recursion-context/LICENSEXV'sebastian-recursion-context/Context.phpXVqP)sebastian-recursion-context/Exception.phpJXVJ8sebastian-recursion-context/InvalidArgumentException.phpXVmHsebastian-global-state/LICENSE +XV + `$sebastian-global-state/Blacklist.php[ XV[ :'sebastian-global-state/CodeExporter.phpXV`(C$sebastian-global-state/Exception.php?XV?#sebastian-global-state/Restorer.phpXVӓ;\+sebastian-global-state/RuntimeException.phpqXVq~]!#sebastian-global-state/Snapshot.php%XV%ÖSݶsebastian-version/LICENSEXVnsebastian-version/Version.php2XV2BZdoctrine-instantiator/LICENSE$XV$ +͂Ldoctrine-instantiator/Doctrine/Instantiator/Exception/ExceptionInterface.phpXV.öRdoctrine-instantiator/Doctrine/Instantiator/Exception/InvalidArgumentException.phpXVh7IRdoctrine-instantiator/Doctrine/Instantiator/Exception/UnexpectedValueException.php +XV +" <doctrine-instantiator/Doctrine/Instantiator/Instantiator.php XV &Edoctrine-instantiator/Doctrine/Instantiator/InstantiatorInterface.php~XV~:symfony/LICENSE)XV)&.symfony/yaml/Symfony/Component/Yaml/Dumper.php XV lD/symfony/yaml/Symfony/Component/Yaml/Escaper.phpXVK?symfony/yaml/Symfony/Component/Yaml/Exception/DumpException.phpXVؙ՚Dsymfony/yaml/Symfony/Component/Yaml/Exception/ExceptionInterface.phpXV+l@symfony/yaml/Symfony/Component/Yaml/Exception/ParseException.phpXV79Bsymfony/yaml/Symfony/Component/Yaml/Exception/RuntimeException.phpXV|-.symfony/yaml/Symfony/Component/Yaml/Inline.phpbMXVbMoܗ.symfony/yaml/Symfony/Component/Yaml/Parser.phphXVh.1symfony/yaml/Symfony/Component/Yaml/Unescaper.phpXV 6,symfony/yaml/Symfony/Component/Yaml/Yaml.php XV G-dbunit/Extensions/Database/AbstractTester.phpXVCY8dbunit/Extensions/Database/Constraint/DataSetIsEqual.phpXVM6dbunit/Extensions/Database/Constraint/TableIsEqual.phpXV7 +7dbunit/Extensions/Database/Constraint/TableRowCount.phpXVIXӶ)dbunit/Extensions/Database/DB/DataSet.phpRXVRx¶;dbunit/Extensions/Database/DB/DefaultDatabaseConnection.php}XV}1dbunit/Extensions/Database/DB/FilteredDataSet.phpFXVF (e5dbunit/Extensions/Database/DB/IDatabaseConnection.php XV dʶ+dbunit/Extensions/Database/DB/IMetaData.php3XV3@G*dbunit/Extensions/Database/DB/MetaData.phpXVET0dbunit/Extensions/Database/DB/MetaData/Dblib.php XV Q3dbunit/Extensions/Database/DB/MetaData/Firebird.phpXV`<dbunit/Extensions/Database/DB/MetaData/InformationSchema.phpiXViTϙ0dbunit/Extensions/Database/DB/MetaData/MySQL.phpXV7-5.dbunit/Extensions/Database/DB/MetaData/Oci.phpbXVb_0dbunit/Extensions/Database/DB/MetaData/PgSQL.phpXVӶ1dbunit/Extensions/Database/DB/MetaData/SqlSrv.php XV 1dbunit/Extensions/Database/DB/MetaData/Sqlite.php3 +XV3 +-Բ0dbunit/Extensions/Database/DB/ResultSetTable.phpXV͛'dbunit/Extensions/Database/DB/Table.phpXV8k8o/dbunit/Extensions/Database/DB/TableIterator.php} +XV} +0W6/dbunit/Extensions/Database/DB/TableMetaData.phpXV;Е6dbunit/Extensions/Database/DataSet/AbstractDataSet.php#XV#[Gζ4dbunit/Extensions/Database/DataSet/AbstractTable.phpXXVX<dbunit/Extensions/Database/DataSet/AbstractTableMetaData.phpXV;c9dbunit/Extensions/Database/DataSet/AbstractXmlDataSet.php XV Q63dbunit/Extensions/Database/DataSet/ArrayDataSet.phpyXVy[7dbunit/Extensions/Database/DataSet/CompositeDataSet.php: +XV: +! 1dbunit/Extensions/Database/DataSet/CsvDataSet.php XV 4dbunit/Extensions/Database/DataSet/DataSetFilter.phpjXVj)5dbunit/Extensions/Database/DataSet/DefaultDataSet.phpXVWJ3dbunit/Extensions/Database/DataSet/DefaultTable.phpXV!t;dbunit/Extensions/Database/DataSet/DefaultTableIterator.php XV 4;dbunit/Extensions/Database/DataSet/DefaultTableMetaData.phpXVض5dbunit/Extensions/Database/DataSet/FlatXmlDataSet.phpOXVO36K/dbunit/Extensions/Database/DataSet/IDataSet.phpXVZ߶3dbunit/Extensions/Database/DataSet/IPersistable.phpXV,dbunit/Extensions/Database/DataSet/ISpec.phpXV݂-dbunit/Extensions/Database/DataSet/ITable.phpXVȃN5dbunit/Extensions/Database/DataSet/ITableIterator.phpXV !-5dbunit/Extensions/Database/DataSet/ITableMetaData.php1XV1,+;2dbunit/Extensions/Database/DataSet/IYamlParser.phpXV@ۈ[6dbunit/Extensions/Database/DataSet/MysqlXmlDataSet.php'XV'J!:dbunit/Extensions/Database/DataSet/Persistors/Abstract.php +XV +D:9dbunit/Extensions/Database/DataSet/Persistors/Factory.phpXV(9dbunit/Extensions/Database/DataSet/Persistors/FlatXml.php XV TZ,:dbunit/Extensions/Database/DataSet/Persistors/MysqlXml.php XV OӶ5dbunit/Extensions/Database/DataSet/Persistors/Xml.php5 XV5 .6dbunit/Extensions/Database/DataSet/Persistors/Yaml.phpXV3dbunit/Extensions/Database/DataSet/QueryDataSet.php XV Vö1dbunit/Extensions/Database/DataSet/QueryTable.php`XV` 9dbunit/Extensions/Database/DataSet/ReplacementDataSet.php +XV + 7dbunit/Extensions/Database/DataSet/ReplacementTable.php|XV|hRd?dbunit/Extensions/Database/DataSet/ReplacementTableIterator.php XV ڋ0dbunit/Extensions/Database/DataSet/Specs/Csv.php +XV +4dbunit/Extensions/Database/DataSet/Specs/DbQuery.php XV w4dbunit/Extensions/Database/DataSet/Specs/DbTable.phpXVJ4dbunit/Extensions/Database/DataSet/Specs/Factory.phpXVA̶4dbunit/Extensions/Database/DataSet/Specs/FlatXml.phpXV߆5dbunit/Extensions/Database/DataSet/Specs/IFactory.phplXVl՗+0dbunit/Extensions/Database/DataSet/Specs/Xml.phpXVTZ1dbunit/Extensions/Database/DataSet/Specs/Yaml.phpXV{;>8dbunit/Extensions/Database/DataSet/SymfonyYamlParser.phpOXVOPW2dbunit/Extensions/Database/DataSet/TableFilter.php XV װh:dbunit/Extensions/Database/DataSet/TableMetaDataFilter.phpR XVR @1dbunit/Extensions/Database/DataSet/XmlDataSet.phpXVJz2dbunit/Extensions/Database/DataSet/YamlDataSet.phpXV_,dbunit/Extensions/Database/DefaultTester.phpXVX`(dbunit/Extensions/Database/Exception.phpXVm-`4dbunit/Extensions/Database/IDatabaseListConsumer.php;XV;4o&dbunit/Extensions/Database/ITester.phpXV#2dbunit/Extensions/Database/Operation/Composite.phpXV)ʶ/dbunit/Extensions/Database/Operation/Delete.phpXVn2dbunit/Extensions/Database/Operation/DeleteAll.phpXVCi2dbunit/Extensions/Database/Operation/Exception.php/XV/J0dbunit/Extensions/Database/Operation/Factory.php XV ̶;dbunit/Extensions/Database/Operation/IDatabaseOperation.phpXV"/dbunit/Extensions/Database/Operation/Insert.phpXVEP-dbunit/Extensions/Database/Operation/Null.phpXV0Ӷ0dbunit/Extensions/Database/Operation/Replace.phpeXVeOئ1dbunit/Extensions/Database/Operation/RowBased.php5XV5ih1dbunit/Extensions/Database/Operation/Truncate.php XV rC/dbunit/Extensions/Database/Operation/Update.phpXV>%'dbunit/Extensions/Database/TestCase.php"XV"oj)dbunit/Extensions/Database/UI/Command.phpIXVIT)dbunit/Extensions/Database/UI/Context.phpXVG)dbunit/Extensions/Database/UI/IMedium.phpPXVPԚ0dbunit/Extensions/Database/UI/IMediumPrinter.phpXV}0'dbunit/Extensions/Database/UI/IMode.phpXVd.dbunit/Extensions/Database/UI/IModeFactory.php +XV +6dbunit/Extensions/Database/UI/InvalidModeException.phpXV*,.dbunit/Extensions/Database/UI/Mediums/Text.php XV o4a-dbunit/Extensions/Database/UI/ModeFactory.phpB +XVB +ң5dbunit/Extensions/Database/UI/Modes/ExportDataSet.php XV {?dbunit/Extensions/Database/UI/Modes/ExportDataSet/Arguments.php +XV +(ΰphp-invoker/Invoker.phpXV w php-invoker/TimeoutException.phppXVp~1phpunit-selenium/Extensions/Selenium2TestCase.php!EXV!E[9phpunit-selenium/Extensions/Selenium2TestCase/Command.phpL XVL cyƶ@phpunit-selenium/Extensions/Selenium2TestCase/CommandsHolder.phpXVZew8phpunit-selenium/Extensions/Selenium2TestCase/Driver.phpXVe5v9phpunit-selenium/Extensions/Selenium2TestCase/Element.php XV &Bphpunit-selenium/Extensions/Selenium2TestCase/Element/Accessor.phpXV\w@phpunit-selenium/Extensions/Selenium2TestCase/Element/Select.phpXVL@"Jphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Attribute.phpt XVt  ˈFphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Click.php+ +XV+ +ĻDphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Css.phpi XVi Gphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Equals.php` XV` nնPphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/GenericAccessor.phpi +XVi PeLphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/GenericPost.phpW -mTW -LqFphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Value.php -mT -.$Aphpunit-selenium/Extensions/Selenium2TestCase/ElementCriteria.phpN mTN ¶;phpunit-selenium/Extensions/Selenium2TestCase/Exception.php mT H"[6phpunit-selenium/Extensions/Selenium2TestCase/Keys.phpImTIͶ<phpunit-selenium/Extensions/Selenium2TestCase/KeysHolder.phpmT|HEphpunit-selenium/Extensions/Selenium2TestCase/NoSeleniumException.php mT k:phpunit-selenium/Extensions/Selenium2TestCase/Response.phpmTTZDphpunit-selenium/Extensions/Selenium2TestCase/ScreenshotListener.phpmT|a9phpunit-selenium/Extensions/Selenium2TestCase/Session.php/mT/Ķ@phpunit-selenium/Extensions/Selenium2TestCase/Session/Cookie.phpmT$!Hphpunit-selenium/Extensions/Selenium2TestCase/Session/Cookie/Builder.phpmTӸqAphpunit-selenium/Extensions/Selenium2TestCase/Session/Storage.php8 mT8 Bphpunit-selenium/Extensions/Selenium2TestCase/Session/Timeouts.php]mT]/XLphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/AcceptAlert.php1 -mT1 -BHJphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/AlertText.phpC mTC lXimFphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Click.php mT ^aMphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/DismissAlert.php6 -mT6 -vlEphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/File.phpmT0ߗFphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Frame.php mT z"Pphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/GenericAccessor.phpT -mTT +XVW +LqFphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Value.phpG XVG +UAphpunit-selenium/Extensions/Selenium2TestCase/ElementCriteria.phpN XVN ¶;phpunit-selenium/Extensions/Selenium2TestCase/Exception.php XV H"[6phpunit-selenium/Extensions/Selenium2TestCase/Keys.phpIXVIͶ<phpunit-selenium/Extensions/Selenium2TestCase/KeysHolder.phpXV|HEphpunit-selenium/Extensions/Selenium2TestCase/NoSeleniumException.php XV k:phpunit-selenium/Extensions/Selenium2TestCase/Response.phpXVTZDphpunit-selenium/Extensions/Selenium2TestCase/ScreenshotListener.phpXVh7Ƕ9phpunit-selenium/Extensions/Selenium2TestCase/Session.php!1XV!1 @phpunit-selenium/Extensions/Selenium2TestCase/Session/Cookie.phpXV$!Hphpunit-selenium/Extensions/Selenium2TestCase/Session/Cookie/Builder.phpXVӸqAphpunit-selenium/Extensions/Selenium2TestCase/Session/Storage.php8 XV8 Bphpunit-selenium/Extensions/Selenium2TestCase/Session/Timeouts.php]XV]/XLphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/AcceptAlert.php1 +XV1 +BHGphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Active.php + XV + 6Jphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/AlertText.phpC XVC lXimFphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Click.php XV ^aMphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/DismissAlert.php6 +XV6 +vlEphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/File.phpXV0ߗFphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Frame.php XV z"Pphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/GenericAccessor.phpT +XVT XQphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/GenericAttribute.php -mT -BEphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Keys.php$mT$wͶIphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Location.php mT Dphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Log.php mT "=Gphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/MoveTo.phpmT- -Lphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Orientation.php mT @\WIDphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Url.php mT KGphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Window.php -mT -Aphpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy.php mT ̳rJphpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy/Isolated.php mT ͶHphpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy/Shared.phpHmTHVm>phpunit-selenium/Extensions/Selenium2TestCase/StateCommand.phpw -mTw -e3Z5phpunit-selenium/Extensions/Selenium2TestCase/URL.phpmTHF;phpunit-selenium/Extensions/Selenium2TestCase/WaitUntil.phpmTsXDphpunit-selenium/Extensions/Selenium2TestCase/WebDriverException.phpf mTf K18phpunit-selenium/Extensions/Selenium2TestCase/Window.phpO mTO S4phpunit-selenium/Extensions/SeleniumBrowserSuite.phpmTD:phpunit-selenium/Extensions/SeleniumCommon/ExitHandler.php*mT*϶=phpunit-selenium/Extensions/SeleniumCommon/RemoteCoverage.php>mT>*dBʶ5phpunit-selenium/Extensions/SeleniumCommon/append.php mT ?phpunit-selenium/Extensions/SeleniumCommon/phpunit_coverage.php mT ow6phpunit-selenium/Extensions/SeleniumCommon/prepend.php? mT? 0phpunit-selenium/Extensions/SeleniumTestCase.phpЖmTЖ`ec7phpunit-selenium/Extensions/SeleniumTestCase/Driver.php^mT^7'q߶1phpunit-selenium/Extensions/SeleniumTestSuite.phpmTphpunit/Exception.php mT 4phpunit/Framework/Constraint/TraversableContains.phpmTV88phpunit/Framework/Constraint/TraversableContainsOnly.phpmT-V$phpunit/Framework/Constraint/Xor.phpmT7K4phpunit/Framework/Error.phpJ mTJ [&phpunit/Framework/Error/Deprecated.phpx -mTx -9*"phpunit/Framework/Error/Notice.phpb -mTb -ֶ#phpunit/Framework/Error/Warning.phpe -mTe -0flphpunit/Framework/Exception.phpFmTF9{&phpunit/Framework/ExceptionWrapper.phpmT0Ҷ0phpunit/Framework/ExpectationFailedException.php mT -$phpunit/Framework/IncompleteTest.php -mT -8(phpunit/Framework/IncompleteTestCase.php!mT!k+)phpunit/Framework/IncompleteTestError.php9 -mT9 -#Y.phpunit/Framework/InvalidCoversTargetError.phph -mTh -޶2phpunit/Framework/InvalidCoversTargetException.php mT ں!phpunit/Framework/OutputError.php -mT -MԺphpunit/Framework/RiskyTest.php mT 7$phpunit/Framework/RiskyTestError.php) -mT) -y$phpunit/Framework/SelfDescribing.php< -mT< -l!phpunit/Framework/SkippedTest.php mT K9%phpunit/Framework/SkippedTestCase.phpmT_&phpunit/Framework/SkippedTestError.php/ -mT/ -&ֳ+phpunit/Framework/SkippedTestSuiteError.php: -mT: - $phpunit/Framework/SyntheticError.phpAmTA/3phpunit/Framework/Test.php -mT -Sphpunit/Framework/TestCase.php}mT}ƶ!phpunit/Framework/TestFailure.php,mT,?K"phpunit/Framework/TestListener.phpsmTsB phpunit/Framework/TestResult.phpumTu3phpunit/Framework/TestSuite.phpymTy,phpunit/Framework/TestSuite/DataProvider.php -mT -T`5phpunit/Framework/UnintentionallyCoveredCodeError.php- -mT- -q⮶phpunit/Framework/Warning.php mT l!phpunit/Runner/BaseTestRunner.phpmTVyphpunit/Runner/Exception.php mT 3 !phpunit/Runner/Filter/Factory.php mT wS phpunit/Runner/Filter/Group.php mT 8M'phpunit/Runner/Filter/Group/Exclude.php -mT -հ'phpunit/Runner/Filter/Group/Include.php -mT -/phpunit/Runner/Filter/Test.php mT wKiX*phpunit/Runner/StandardTestSuiteLoader.phpmT #"phpunit/Runner/TestSuiteLoader.php mT @phpunit/Runner/Version.php mT wyphpunit/TextUI/Command.phpmT)\ phpunit/TextUI/ResultPrinter.phpGmTGphpunit/TextUI/TestRunner.phpXmTXbphpunit/Util/Blacklist.phpmTs(phpunit/Util/Configuration.phpHmTH*϶phpunit/Util/ErrorHandler.phpmT^phpunit/Util/Fileloader.phpmT!phpunit/Util/Filesystem.php mT phpunit/Util/Filter.phpmTDk/phpunit/Util/Getopt.phpmTphpunit/Util/GlobalState.php@mT@rd&phpunit/Util/InvalidArgumentHelper.php mT -phpunit/Util/Log/JSON.php mT Hw%phpunit/Util/Log/JUnit.phpc<mTc<I_phpunit/Util/Log/TAP.phpmT&phpunit/Util/PHP.php!mT!OB phpunit/Util/PHP/Default.phpmTx1phpunit/Util/PHP/Template/TestCaseMethod.tpl.distmTx hphpunit/Util/PHP/Windows.phpmT*phpunit/Util/Printer.phpgmTgkC7Jphpunit/Util/Regex.php -mT -Pֶphpunit/Util/String.phpmT@Rphpunit/Util/Test.phpnmTn'phpunit/Util/TestDox/NamePrettifier.phpzmTzuZE&phpunit/Util/TestDox/ResultPrinter.php(mT(Yö+phpunit/Util/TestDox/ResultPrinter/HTML.phpmTg+phpunit/Util/TestDox/ResultPrinter/Text.php mT c""phpunit/Util/TestSuiteIterator.phpSmTS}DWphpunit/Util/Type.php$ mT$ osCphpunit/Util/XML.php~mT~Ephpunit/phpunit: 4.4@fc27e30aa4c02a6877e343afb2c1eaf9fab0ddf3 -doctrine/instantiator: dev-master@f976e5de371104877ebc89bd8fecb0019ed9c119 -phpunit/dbunit: dev-master@2fa1387413cf646ffb9fde2715c75cc22b544fb4 -phpunit/php-code-coverage: 2.0.x-dev@991c4203ef3bdf8a1d197f2fe877028dc78dfda7 -phpunit/php-file-iterator: 1.3.4 -phpunit/php-invoker: 1.1.3 -phpunit/php-text-template: 1.2.0 -phpunit/php-timer: 1.0.5 -phpunit/php-token-stream: dev-master@f8d5d08c56de5cfd592b3340424a81733259a876 -phpunit/phpunit-mock-objects: dev-master@96c5b81f9842f38fe6c73ad0020306cc4862a9e3 -phpunit/phpunit-selenium: 1.3.3 -sebastian/comparator: dev-master@c484a80f97573ab934e37826dba0135a3301b26a -sebastian/diff: dev-master@3e22c89be2e1cddf7db89699cb23a9159df12e0c -sebastian/environment: dev-master@6e6c71d918088c251b181ba8b3088af4ac336dd7 -sebastian/exporter: dev-master@c7d59948d6e82818e1bdff7cadb6c34710eb7dc0 -sebastian/global-state: dev-master@231d48620efde984fd077ee92916099a3ece9a59 -sebastian/version: 1.0.3 -symfony/yaml: 2.7.x-dev@6165f4b5224c22de2873deb6a3a4e622044f0705 +XV +BEphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Keys.php$XV$wͶIphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Location.php XV Dphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Log.php XV "=Gphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/MoveTo.phpXV- +Lphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Orientation.php XV @\WIDphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Url.php XV KGphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Window.php +XV +Aphpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy.php XV ̳rJphpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy/Isolated.php XV ͶHphpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy/Shared.phpHXVHVm>phpunit-selenium/Extensions/Selenium2TestCase/StateCommand.phpw +XVw +e3Z5phpunit-selenium/Extensions/Selenium2TestCase/URL.phpXVHF;phpunit-selenium/Extensions/Selenium2TestCase/WaitUntil.phpXVzDphpunit-selenium/Extensions/Selenium2TestCase/WebDriverException.phpf XVf K18phpunit-selenium/Extensions/Selenium2TestCase/Window.phpO XVO S4phpunit-selenium/Extensions/SeleniumBrowserSuite.phpXVD:phpunit-selenium/Extensions/SeleniumCommon/ExitHandler.php*XV*϶=phpunit-selenium/Extensions/SeleniumCommon/RemoteCoverage.phpIXVI\.5phpunit-selenium/Extensions/SeleniumCommon/append.php XV ?phpunit-selenium/Extensions/SeleniumCommon/phpunit_coverage.php`XV`Om6phpunit-selenium/Extensions/SeleniumCommon/prepend.php? XV? 0phpunit-selenium/Extensions/SeleniumTestCase.phpXVvK7phpunit-selenium/Extensions/SeleniumTestCase/Driver.phpMXVM0R1phpunit-selenium/Extensions/SeleniumTestSuite.phpXV)phpdocumentor-reflection-docblock/LICENSE8XV8ʶGphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock.phpc6XVc6qOphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Context.php5XV5l.%Sphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Description.phpXVԲضPphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Location.phpqXVqu/Rphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Serializer.phpXVrжKphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag.php(XV(E6 Uphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/AuthorTag.phpM XVM 1Uphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/CoversTag.phpIXVI9{Yphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/DeprecatedTag.phpXVK Vphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ExampleTag.phpXV +Sphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/LinkTag.phpLXVLFUphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/MethodTag.php~XV~!kͶTphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ParamTag.phpH XVH  [phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/PropertyReadTag.php[XV[< =Wphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/PropertyTag.phpOXVO#m\phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/PropertyWriteTag.php]XV]RpUphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.phpXVpSRphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/SeeTag.phpXVi?$Tphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/SinceTag.php|XV|tRUphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/SourceTag.php XV n*Uphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ThrowsTag.phpLXVL"Sphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/UsesTag.phpEXVE.˶Rphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/VarTag.phpEXVEͶVphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/VersionTag.phpx +XVx +EƶWphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Type/Collection.phpXV+=4phpspec-prophecy/LICENSE}XV}6&phpspec-prophecy/Prophecy/Argument.phpXVAT8phpspec-prophecy/Prophecy/Argument/ArgumentsWildcard.php4 XV4 A;K2:phpspec-prophecy/Prophecy/Argument/Token/AnyValueToken.phpXVFh;phpspec-prophecy/Prophecy/Argument/Token/AnyValuesToken.phpXVbN/Bphpspec-prophecy/Prophecy/Argument/Token/ApproximateValueToken.phpXV#I<phpspec-prophecy/Prophecy/Argument/Token/ArrayCountToken.phpXV4̶<phpspec-prophecy/Prophecy/Argument/Token/ArrayEntryToken.phpXVJ:Aphpspec-prophecy/Prophecy/Argument/Token/ArrayEveryEntryToken.phpXVpb:phpspec-prophecy/Prophecy/Argument/Token/CallbackToken.php,XV,cR̶<phpspec-prophecy/Prophecy/Argument/Token/ExactValueToken.php XV 3@phpspec-prophecy/Prophecy/Argument/Token/IdenticalValueToken.phpXV<phpspec-prophecy/Prophecy/Argument/Token/LogicalAndToken.phpXV Nv<phpspec-prophecy/Prophecy/Argument/Token/LogicalNotToken.phpXVr=phpspec-prophecy/Prophecy/Argument/Token/ObjectStateToken.php9 +XV9 +_Jg@phpspec-prophecy/Prophecy/Argument/Token/StringContainsToken.phpXV>;phpspec-prophecy/Prophecy/Argument/Token/TokenInterface.phpXVٰ6phpspec-prophecy/Prophecy/Argument/Token/TypeToken.phpXVn\'phpspec-prophecy/Prophecy/Call/Call.php XV {:%-phpspec-prophecy/Prophecy/Call/CallCenter.phpXV|:phpspec-prophecy/Prophecy/Comparator/ClosureComparator.phpKXVK)RQ0phpspec-prophecy/Prophecy/Comparator/Factory.phpXVֈi;phpspec-prophecy/Prophecy/Comparator/ProphecyComparator.phpsXVshǶ3phpspec-prophecy/Prophecy/Doubler/CachedDoubler.phpXV̇gDphpspec-prophecy/Prophecy/Doubler/ClassPatch/ClassPatchInterface.phplXVl)5:Hphpspec-prophecy/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.phpXV:0`Cphpspec-prophecy/Prophecy/Doubler/ClassPatch/HhvmExceptionPatch.phpXVx^=phpspec-prophecy/Prophecy/Doubler/ClassPatch/KeywordPatch.php XV /@ȶ?phpspec-prophecy/Prophecy/Doubler/ClassPatch/MagicCallPatch.phpXV!KMEphpspec-prophecy/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php +XV +niPphpspec-prophecy/Prophecy/Doubler/ClassPatch/ReflectionClassNewInstancePatch.phppXVpxAphpspec-prophecy/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.phpXV!h^Aphpspec-prophecy/Prophecy/Doubler/ClassPatch/TraversablePatch.php XV jN5phpspec-prophecy/Prophecy/Doubler/DoubleInterface.phpXV8dj-phpspec-prophecy/Prophecy/Doubler/Doubler.phpXV8]^Bphpspec-prophecy/Prophecy/Doubler/Generator/ClassCodeGenerator.php7 XV7 О<phpspec-prophecy/Prophecy/Doubler/Generator/ClassCreator.phpXV?Br;phpspec-prophecy/Prophecy/Doubler/Generator/ClassMirror.phpXVՕcAphpspec-prophecy/Prophecy/Doubler/Generator/Node/ArgumentNode.phpXV>X>phpspec-prophecy/Prophecy/Doubler/Generator/Node/ClassNode.phpIXVI)Uݶ?phpspec-prophecy/Prophecy/Doubler/Generator/Node/MethodNode.phpXV'׶Cphpspec-prophecy/Prophecy/Doubler/Generator/ReflectionInterface.phpXV0phpspec-prophecy/Prophecy/Doubler/LazyDouble.phpF XVF l3phpspec-prophecy/Prophecy/Doubler/NameGenerator.phpXV7Dphpspec-prophecy/Prophecy/Exception/Call/UnexpectedCallException.phpXVEphpspec-prophecy/Prophecy/Exception/Doubler/ClassCreatorException.phpXV77/%Dphpspec-prophecy/Prophecy/Exception/Doubler/ClassMirrorException.phpXVۉ?Fphpspec-prophecy/Prophecy/Exception/Doubler/ClassNotFoundException.phpXVh+?phpspec-prophecy/Prophecy/Exception/Doubler/DoubleException.phpXVzF@phpspec-prophecy/Prophecy/Exception/Doubler/DoublerException.phpXVZ^Jphpspec-prophecy/Prophecy/Exception/Doubler/InterfaceNotFoundException.phpXVLphpspec-prophecy/Prophecy/Exception/Doubler/MethodNotExtendableException.phpXV +Gphpspec-prophecy/Prophecy/Exception/Doubler/MethodNotFoundException.phpXVihJphpspec-prophecy/Prophecy/Exception/Doubler/ReturnByReferenceException.phpXV1phpspec-prophecy/Prophecy/Exception/Exception.php+XV+@phpspec-prophecy/Prophecy/Exception/InvalidArgumentException.phpXVgEphpspec-prophecy/Prophecy/Exception/Prediction/AggregateException.phpXV?D<ζLphpspec-prophecy/Prophecy/Exception/Prediction/FailedPredictionException.phpJXVJ~DCphpspec-prophecy/Prophecy/Exception/Prediction/NoCallsException.phpXVl<Fphpspec-prophecy/Prophecy/Exception/Prediction/PredictionException.phpXV2TѶPphpspec-prophecy/Prophecy/Exception/Prediction/UnexpectedCallsCountException.phpXV ƶKphpspec-prophecy/Prophecy/Exception/Prediction/UnexpectedCallsException.php,XV,aHphpspec-prophecy/Prophecy/Exception/Prophecy/MethodProphecyException.php)XV)F4Hphpspec-prophecy/Prophecy/Exception/Prophecy/ObjectProphecyException.phpXV:FBphpspec-prophecy/Prophecy/Exception/Prophecy/ProphecyException.phpXV$϶7phpspec-prophecy/Prophecy/Prediction/CallPrediction.phpQ XVQ I<phpspec-prophecy/Prophecy/Prediction/CallTimesPrediction.php XV X;phpspec-prophecy/Prophecy/Prediction/CallbackPrediction.phpXVVb{ζ:phpspec-prophecy/Prophecy/Prediction/NoCallsPrediction.phpXVL9%<phpspec-prophecy/Prophecy/Prediction/PredictionInterface.phpXV`IE5phpspec-prophecy/Prophecy/Promise/CallbackPromise.phpXV[6phpspec-prophecy/Prophecy/Promise/PromiseInterface.phpKXVK;phpspec-prophecy/Prophecy/Promise/ReturnArgumentPromise.php'XV'(3phpspec-prophecy/Prophecy/Promise/ReturnPromise.phpXV؏2phpspec-prophecy/Prophecy/Promise/ThrowPromise.php` +XV` ++,5phpspec-prophecy/Prophecy/Prophecy/MethodProphecy.php_,XV_,K5phpspec-prophecy/Prophecy/Prophecy/ObjectProphecy.phpXV5D8phpspec-prophecy/Prophecy/Prophecy/ProphecyInterface.php,XV,W?phpspec-prophecy/Prophecy/Prophecy/ProphecySubjectInterface.phpXVi/phpspec-prophecy/Prophecy/Prophecy/Revealer.phpXVjɸ8phpspec-prophecy/Prophecy/Prophecy/RevealerInterface.phpHXVHgZ%phpspec-prophecy/Prophecy/Prophet.phpXVvq-phpspec-prophecy/Prophecy/Util/ExportUtil.php2XV2W-phpspec-prophecy/Prophecy/Util/StringUtil.php XV %phpunit/Exception.phpsXVsy:۶%phpunit/Extensions/GroupTestSuite.phpXVo`˶#phpunit/Extensions/PhptTestCase.php3XV3>$phpunit/Extensions/PhptTestSuite.phpXV ܶ#phpunit/Extensions/RepeatedTest.phpXV$phpunit/Extensions/TestDecorator.php@ XV@ 9%phpunit/Extensions/TicketListener.php%XV%"Xphpunit/Framework/Assert.php}XV},F&phpunit/Framework/Assert/Functions.phpXVg=G/*phpunit/Framework/AssertionFailedError.php{XV{+&phpunit/Framework/BaseTestListener.phppXVpK8X4+phpunit/Framework/CodeCoverageException.phpqXVqE phpunit/Framework/Constraint.php:XV:5L$phpunit/Framework/Constraint/And.php6 XV6 Ŷ,phpunit/Framework/Constraint/ArrayHasKey.phpXVV,phpunit/Framework/Constraint/ArraySubset.phpIXVIc*phpunit/Framework/Constraint/Attribute.php XV l)phpunit/Framework/Constraint/Callback.php3XV32phpunit/Framework/Constraint/ClassHasAttribute.phpXVb8phpunit/Framework/Constraint/ClassHasStaticAttribute.phpXV *phpunit/Framework/Constraint/Composite.phpXV4~)&phpunit/Framework/Constraint/Count.php XV u*phpunit/Framework/Constraint/Exception.phpcXVc*/.phpunit/Framework/Constraint/ExceptionCode.php[XV[ 1phpunit/Framework/Constraint/ExceptionMessage.phpCXVC7phpunit/Framework/Constraint/ExceptionMessageRegExp.php`XV`0}+phpunit/Framework/Constraint/FileExists.phpXV+2,phpunit/Framework/Constraint/GreaterThan.phpXVOR+phpunit/Framework/Constraint/IsAnything.phppXVpV(phpunit/Framework/Constraint/IsEmpty.php&XV&v(phpunit/Framework/Constraint/IsEqual.php!XV! (Q(phpunit/Framework/Constraint/IsFalse.phpuXVuֻ ,phpunit/Framework/Constraint/IsIdentical.phpXVFy;-phpunit/Framework/Constraint/IsInstanceOf.phpXV`Ѷ'phpunit/Framework/Constraint/IsJson.phpXVz#l:'phpunit/Framework/Constraint/IsNull.phpqXVq^`'phpunit/Framework/Constraint/IsTrue.phpqXVq*%'phpunit/Framework/Constraint/IsType.phpt XVt KP,phpunit/Framework/Constraint/JsonMatches.php XV ҶAphpunit/Framework/Constraint/JsonMatches/ErrorMessageProvider.phpXVd˜)phpunit/Framework/Constraint/LessThan.phpXV4w϶$phpunit/Framework/Constraint/Not.phpXVRk3phpunit/Framework/Constraint/ObjectHasAttribute.phpXV/#phpunit/Framework/Constraint/Or.phpf XVf &*phpunit/Framework/Constraint/PCREMatch.phpXV)phpunit/Framework/Constraint/SameSize.phpSXVS/#S/phpunit/Framework/Constraint/StringContains.php2XV2]./phpunit/Framework/Constraint/StringEndsWith.phpXVv>g.phpunit/Framework/Constraint/StringMatches.php XV %c1phpunit/Framework/Constraint/StringStartsWith.phpXV[4phpunit/Framework/Constraint/TraversableContains.php XV ns8phpunit/Framework/Constraint/TraversableContainsOnly.php XV g|s$phpunit/Framework/Constraint/Xor.php XV G:phpunit/Framework/Error.php$XV$X%yW&phpunit/Framework/Error/Deprecated.phpFXVFV"phpunit/Framework/Error/Notice.php0XV0I#phpunit/Framework/Error/Warning.php3XV3mOphpunit/Framework/Exception.php XV ~b&phpunit/Framework/ExceptionWrapper.phpXV0phpunit/Framework/ExpectationFailedException.phpXV_S;$phpunit/Framework/IncompleteTest.phpXVJ(phpunit/Framework/IncompleteTestCase.php5XV5.S)phpunit/Framework/IncompleteTestError.phpXVHt .phpunit/Framework/InvalidCoversTargetError.phpBXVB |2phpunit/Framework/InvalidCoversTargetException.phpXV%M!phpunit/Framework/OutputError.phpXVj̶phpunit/Framework/RiskyTest.phpXV\$phpunit/Framework/RiskyTestError.phpXV?v$phpunit/Framework/SelfDescribing.phpXV:|!phpunit/Framework/SkippedTest.phpXV_ $%phpunit/Framework/SkippedTestCase.phpXV`u&phpunit/Framework/SkippedTestError.php XV T+phpunit/Framework/SkippedTestSuiteError.phpXV7<$phpunit/Framework/SyntheticError.phpXVƷphpunit/Framework/Test.phpXV%phpunit/Framework/TestCase.phpXVJl!phpunit/Framework/TestFailure.phpXV"phpunit/Framework/TestListener.phpn +XVn +{_V phpunit/Framework/TestResult.phpmXVmjsphpunit/Framework/TestSuite.php%sXV%s C,phpunit/Framework/TestSuite/DataProvider.phpXV. +Copyright (c) 2009-2015, Sebastian Bergmann . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -811,48 +700,13 @@ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. +/* + * This file is part of the PHP_CodeCoverage package. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. + * (c) Sebastian Bergmann * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ use SebastianBergmann\Environment\Runtime; @@ -860,13 +714,7 @@ use SebastianBergmann\Environment\Runtime; /** * Provides collection functionality for PHP code coverage information. * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 + * @since Class available since Release 1.0.0 */ class PHP_CodeCoverage { @@ -881,32 +729,32 @@ class PHP_CodeCoverage private $filter; /** - * @var boolean + * @var bool */ private $cacheTokens = false; /** - * @var boolean + * @var bool */ private $checkForUnintentionallyCoveredCode = false; /** - * @var boolean + * @var bool */ private $forceCoversAnnotation = false; /** - * @var boolean + * @var bool */ private $mapTestClassNameToCoveredClassName = false; /** - * @var boolean + * @var bool */ private $addUncoveredFilesFromWhitelist = true; /** - * @var boolean + * @var bool */ private $processUncoveredFilesFromWhitelist = false; @@ -927,6 +775,11 @@ class PHP_CodeCoverage */ private $ignoredLines = array(); + /** + * @var bool + */ + private $disableIgnoredLines = false; + /** * Test data. * @@ -937,22 +790,14 @@ class PHP_CodeCoverage /** * Constructor. * - * @param PHP_CodeCoverage_Driver $driver - * @param PHP_CodeCoverage_Filter $filter + * @param PHP_CodeCoverage_Driver $driver + * @param PHP_CodeCoverage_Filter $filter * @throws PHP_CodeCoverage_Exception */ public function __construct(PHP_CodeCoverage_Driver $driver = null, PHP_CodeCoverage_Filter $filter = null) { if ($driver === null) { - $runtime = new Runtime; - - if ($runtime->isHHVM()) { - $driver = new PHP_CodeCoverage_Driver_HHVM; - } elseif ($runtime->hasXdebug()) { - $driver = new PHP_CodeCoverage_Driver_Xdebug; - } else { - throw new PHP_CodeCoverage_Exception('No code coverage driver available'); - } + $driver = $this->selectDriver(); } if ($filter === null) { @@ -1001,7 +846,7 @@ class PHP_CodeCoverage * Returns the collected code coverage data. * Set $raw = true to bypass all filters. * - * @param bool $raw + * @param bool $raw * @return array * @since Method available since Release 1.1.0 */ @@ -1057,7 +902,7 @@ class PHP_CodeCoverage * Start collection of code coverage information. * * @param mixed $id - * @param boolean $clear + * @param bool $clear * @throws PHP_CodeCoverage_Exception */ public function start($id, $clear = false) @@ -1081,7 +926,7 @@ class PHP_CodeCoverage /** * Stop collection of code coverage information. * - * @param boolean $append + * @param bool $append * @param mixed $linesToBeCovered * @param array $linesToBeUsed * @return array @@ -1116,7 +961,7 @@ class PHP_CodeCoverage * * @param array $data * @param mixed $id - * @param boolean $append + * @param bool $append * @param mixed $linesToBeCovered * @param array $linesToBeUsed * @throws PHP_CodeCoverage_Exception @@ -1151,16 +996,28 @@ class PHP_CodeCoverage return; } + $size = 'unknown'; $status = null; if ($id instanceof PHPUnit_Framework_TestCase) { + $_size = $id->getSize(); + + if ($_size == PHPUnit_Util_Test::SMALL) { + $size = 'small'; + } elseif ($_size == PHPUnit_Util_Test::MEDIUM) { + $size = 'medium'; + } elseif ($_size == PHPUnit_Util_Test::LARGE) { + $size = 'large'; + } + $status = $id->getStatus(); $id = get_class($id) . '::' . $id->getName(); } elseif ($id instanceof PHPUnit_Extensions_PhptTestCase) { - $id = $id->getName(); + $size = 'large'; + $id = $id->getName(); } - $this->tests[$id] = $status; + $this->tests[$id] = array('size' => $size, 'status' => $status); foreach ($data as $file => $lines) { if (!$this->filter->isFile($file)) { @@ -1168,8 +1025,10 @@ class PHP_CodeCoverage } foreach ($lines as $k => $v) { - if ($v == 1) { - $this->data[$file][$k][] = $id; + if ($v == PHP_CodeCoverage_Driver::LINE_EXECUTED) { + if (empty($this->data[$file][$k]) || !in_array($id, $this->data[$file][$k])) { + $this->data[$file][$k][] = $id; + } } } } @@ -1182,6 +1041,14 @@ class PHP_CodeCoverage */ public function merge(PHP_CodeCoverage $that) { + $this->filter->setBlacklistedFiles( + array_merge($this->filter->getBlacklistedFiles(), $that->filter()->getBlacklistedFiles()) + ); + + $this->filter->setWhitelistedFiles( + array_merge($this->filter->getWhitelistedFiles(), $that->filter()->getWhitelistedFiles()) + ); + foreach ($that->data as $file => $lines) { if (!isset($this->data[$file])) { if (!$this->filter->isFiltered($file)) { @@ -1205,10 +1072,11 @@ class PHP_CodeCoverage } $this->tests = array_merge($this->tests, $that->getTests()); + } /** - * @param boolean $flag + * @param bool $flag * @throws PHP_CodeCoverage_Exception * @since Method available since Release 1.1.0 */ @@ -1233,7 +1101,7 @@ class PHP_CodeCoverage } /** - * @param boolean $flag + * @param bool $flag * @throws PHP_CodeCoverage_Exception * @since Method available since Release 2.0.0 */ @@ -1250,7 +1118,7 @@ class PHP_CodeCoverage } /** - * @param boolean $flag + * @param bool $flag * @throws PHP_CodeCoverage_Exception */ public function setForceCoversAnnotation($flag) @@ -1266,7 +1134,7 @@ class PHP_CodeCoverage } /** - * @param boolean $flag + * @param bool $flag * @throws PHP_CodeCoverage_Exception */ public function setMapTestClassNameToCoveredClassName($flag) @@ -1282,7 +1150,7 @@ class PHP_CodeCoverage } /** - * @param boolean $flag + * @param bool $flag * @throws PHP_CodeCoverage_Exception */ public function setAddUncoveredFilesFromWhitelist($flag) @@ -1298,7 +1166,7 @@ class PHP_CodeCoverage } /** - * @param boolean $flag + * @param bool $flag * @throws PHP_CodeCoverage_Exception */ public function setProcessUncoveredFilesFromWhitelist($flag) @@ -1313,6 +1181,22 @@ class PHP_CodeCoverage $this->processUncoveredFilesFromWhitelist = $flag; } + /** + * @param bool $flag + * @throws PHP_CodeCoverage_Exception + */ + public function setDisableIgnoredLines($flag) + { + if (!is_bool($flag)) { + throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( + 1, + 'boolean' + ); + } + + $this->disableIgnoredLines = $flag; + } + /** * Applies the @covers annotation filtering. * @@ -1383,10 +1267,6 @@ class PHP_CodeCoverage foreach ($this->getLinesToBeIgnored($filename) as $line) { unset($data[$filename][$line]); } - - if (empty($data[$filename])) { - unset($data[$filename]); - } } } @@ -1435,7 +1315,7 @@ class PHP_CodeCoverage $lines = count(file($uncoveredFile)); for ($i = 1; $i <= $lines; $i++) { - $data[$uncoveredFile][$i] = -1; + $data[$uncoveredFile][$i] = PHP_CodeCoverage_Driver::LINE_NOT_EXECUTED; } } } @@ -1458,8 +1338,8 @@ class PHP_CodeCoverage if (!isset($data[$file]) && in_array($file, $uncoveredFiles)) { foreach (array_keys($fileCoverage) as $key) { - if ($fileCoverage[$key] == 1) { - $fileCoverage[$key] = -1; + if ($fileCoverage[$key] == PHP_CodeCoverage_Driver::LINE_EXECUTED) { + $fileCoverage[$key] = PHP_CodeCoverage_Driver::LINE_NOT_EXECUTED; } } @@ -1487,10 +1367,15 @@ class PHP_CodeCoverage if (!isset($this->ignoredLines[$filename])) { $this->ignoredLines[$filename] = array(); - $ignore = false; - $stop = false; - $lines = file($filename); - $numLines = count($lines); + + if ($this->disableIgnoredLines) { + return $this->ignoredLines[$filename]; + } + + $ignore = false; + $stop = false; + $lines = file($filename); + $numLines = count($lines); foreach ($lines as $index => $line) { if (!trim($line)) { @@ -1528,7 +1413,7 @@ class PHP_CodeCoverage if (!$ignore) { $start = $token->getLine(); - $end = $start + substr_count($token, "\n"); + $end = $start + substr_count($token, "\n"); // Do not ignore the first line when there is a token // before the comment @@ -1542,7 +1427,7 @@ class PHP_CodeCoverage // A DOC_COMMENT token or a COMMENT token starting with "/*" // does not contain the final \n character in its text - if (0 === strpos($_token, '/*') && '*/' === substr(trim($lines[$i-1]), -2)) { + if (isset($lines[$i-1]) && 0 === strpos($_token, '/*') && '*/' === substr(trim($lines[$i-1]), -2)) { $this->ignoredLines[$filename][] = $i; } } @@ -1556,7 +1441,7 @@ class PHP_CodeCoverage $this->ignoredLines[$filename][] = $token->getLine(); - if (strpos($docblock, '@codeCoverageIgnore')) { + if (strpos($docblock, '@codeCoverageIgnore') || strpos($docblock, '@deprecated')) { $endLine = $token->getEndLine(); for ($i = $token->getLine(); $i <= $endLine; $i++) { @@ -1712,65 +1597,63 @@ class PHP_CodeCoverage return $allowedLines; } + + /** + * @return PHP_CodeCoverage_Driver + * @throws PHP_CodeCoverage_Exception + */ + private function selectDriver() + { + $runtime = new Runtime; + + if (!$runtime->canCollectCodeCoverage()) { + throw new PHP_CodeCoverage_Exception('No code coverage driver available'); + } + + if ($runtime->isHHVM()) { + return new PHP_CodeCoverage_Driver_HHVM; + } elseif ($runtime->isPHPDBG()) { + return new PHP_CodeCoverage_Driver_PHPDBG; + } else { + return new PHP_CodeCoverage_Driver_Xdebug; + } + } } . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. +/* + * This file is part of the PHP_CodeCoverage package. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. + * (c) Sebastian Bergmann * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ /** * Interface for code coverage drivers. * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 + * @since Class available since Release 1.0.0 */ interface PHP_CodeCoverage_Driver { + /** + * @var int + * @see http://xdebug.org/docs/code_coverage + */ + const LINE_EXECUTED = 1; + + /** + * @var int + * @see http://xdebug.org/docs/code_coverage + */ + const LINE_NOT_EXECUTED = -1; + + /** + * @var int + * @see http://xdebug.org/docs/code_coverage + */ + const LINE_NOT_EXECUTABLE = -2; + /** * Start collection of code coverage information. */ @@ -1784,71 +1667,64 @@ interface PHP_CodeCoverage_Driver public function stop(); } . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: +/* + * This file is part of the PHP_CodeCoverage package. * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. + * (c) Sebastian Bergmann * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Driver for HHVM's code coverage functionality. * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. + * @since Class available since Release 2.2.2 + * @codeCoverageIgnore + */ +class PHP_CodeCoverage_Driver_HHVM extends PHP_CodeCoverage_Driver_Xdebug +{ + /** + * Start collection of code coverage information. + */ + public function start() + { + xdebug_start_code_coverage(); + } +} + * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.3.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ /** - * Driver for HHVM's code coverage functionality. + * Driver for PHPDBG's code coverage functionality. * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.3.0 + * @since Class available since Release 2.2.0 * @codeCoverageIgnore */ -class PHP_CodeCoverage_Driver_HHVM implements PHP_CodeCoverage_Driver +class PHP_CodeCoverage_Driver_PHPDBG implements PHP_CodeCoverage_Driver { /** * Constructor. */ public function __construct() { - if (!defined('HHVM_VERSION')) { - throw new PHP_CodeCoverage_Exception('This driver requires HHVM'); + if (PHP_SAPI !== 'phpdbg') { + throw new PHP_CodeCoverage_Exception( + 'This driver requires the PHPDBG SAPI' + ); + } + + if (!function_exists('phpdbg_start_oplog')) { + throw new PHP_CodeCoverage_Exception( + 'This build of PHPDBG does not support code coverage' + ); } } @@ -1857,7 +1733,7 @@ class PHP_CodeCoverage_Driver_HHVM implements PHP_CodeCoverage_Driver */ public function start() { - fb_enable_code_coverage(); + phpdbg_start_oplog(); } /** @@ -1867,68 +1743,74 @@ class PHP_CodeCoverage_Driver_HHVM implements PHP_CodeCoverage_Driver */ public function stop() { - $codeCoverage = fb_get_code_coverage(true); + static $fetchedLines = array(); + + $dbgData = phpdbg_end_oplog(); + + if ($fetchedLines == array()) { + $sourceLines = phpdbg_get_executable(); + } else { + $newFiles = array_diff( + get_included_files(), + array_keys($fetchedLines) + ); + + if ($newFiles) { + $sourceLines = phpdbg_get_executable( + array('files' => $newFiles) + ); + } else { + $sourceLines = array(); + } + } + + foreach ($sourceLines as $file => $lines) { + foreach ($lines as $lineNo => $numExecuted) { + $sourceLines[$file][$lineNo] = self::LINE_NOT_EXECUTED; + } + } + + $fetchedLines = array_merge($fetchedLines, $sourceLines); + + return $this->detectExecutedLines($fetchedLines, $dbgData); + } - fb_disable_code_coverage(); + /** + * Convert phpdbg based data into the format CodeCoverage expects + * + * @param array $sourceLines + * @param array $dbgData + * @return array + */ + private function detectExecutedLines(array $sourceLines, array $dbgData) + { + foreach ($dbgData as $file => $coveredLines) { + foreach ($coveredLines as $lineNo => $numExecuted) { + // phpdbg also reports $lineNo=0 when e.g. exceptions get thrown. + // make sure we only mark lines executed which are actually executable. + if (isset($sourceLines[$file][$lineNo])) { + $sourceLines[$file][$lineNo] = self::LINE_EXECUTED; + } + } + } - return $codeCoverage; + return $sourceLines; } } . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. +/* + * This file is part of the PHP_CodeCoverage package. * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. + * (c) Sebastian Bergmann * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ /** * Driver for Xdebug's code coverage functionality. * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 + * @since Class available since Release 1.0.0 * @codeCoverageIgnore */ class PHP_CodeCoverage_Driver_Xdebug implements PHP_CodeCoverage_Driver @@ -1979,11 +1861,9 @@ class PHP_CodeCoverage_Driver_Xdebug implements PHP_CodeCoverage_Driver private function cleanup(array $data) { foreach (array_keys($data) as $file) { - if (isset($data[$file][0])) { - unset($data[$file][0]); - } + unset($data[$file][0]); - if (file_exists($file)) { + if ($file != 'xdebug://debug-eval' && file_exists($file)) { $numLines = $this->getNumberOfLinesInFile($file); foreach (array_keys($data[$file]) as $line) { @@ -1999,7 +1879,7 @@ class PHP_CodeCoverage_Driver_Xdebug implements PHP_CodeCoverage_Driver /** * @param string $file - * @return integer + * @return int * @since Method available since Release 2.0.0 */ private function getNumberOfLinesInFile($file) @@ -2015,178 +1895,55 @@ class PHP_CodeCoverage_Driver_Xdebug implements PHP_CodeCoverage_Driver } } . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. +/* + * This file is part of the PHP_CodeCoverage package. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. + * (c) Sebastian Bergmann * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ /** * Exception class for PHP_CodeCoverage component. * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 + * @since Class available since Release 1.1.0 */ class PHP_CodeCoverage_Exception extends RuntimeException { } . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. +/* + * This file is part of the PHP_CodeCoverage package. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. + * (c) Sebastian Bergmann * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 2.0.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ /** * Exception that is raised when code is unintentionally covered. * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 2.0.0 + * @since Class available since Release 2.0.0 */ class PHP_CodeCoverage_Exception_UnintentionallyCoveredCode extends PHP_CodeCoverage_Exception { } . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. +/* + * This file is part of the PHP_CodeCoverage package. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. + * (c) Sebastian Bergmann * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ /** * Filter for blacklisting and whitelisting of code coverage information. * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 + * @since Class available since Release 1.0.0 */ class PHP_CodeCoverage_Filter { @@ -2204,39 +1961,6 @@ class PHP_CodeCoverage_Filter */ private $whitelistedFiles = array(); - /** - * @var boolean - */ - private $blacklistPrefilled = false; - - /** - * A list of classes which are always blacklisted - * - * @var array - */ - public static $blacklistClassNames = array( - 'File_Iterator' => 1, - 'PHP_CodeCoverage' => 1, - 'PHP_Invoker' => 1, - 'PHP_Timer' => 1, - 'PHP_Token' => 1, - 'PHPUnit_Framework_TestCase' => 2, - 'PHPUnit_Extensions_Database_TestCase' => 2, - 'PHPUnit_Framework_MockObject_Generator' => 2, - 'PHPUnit_Extensions_SeleniumTestCase' => 2, - 'PHPUnit_Extensions_Story_TestCase' => 2, - 'Text_Template' => 1, - 'Symfony\Component\Yaml\Yaml' => 1, - 'SebastianBergmann\Diff\Diff' => 1, - 'SebastianBergmann\Comparator\Comparator' => 1, - 'SebastianBergmann\Environment\Runtime' => 1, - 'SebastianBergmann\Exporter\Exporter' => 1, - 'SebastianBergmann\Version' => 1, - 'Composer\Autoload\ClassLoader' => 1, - 'Instantiator\Instantiator' => 1, - 'LazyMap\AbstractLazyMap' => 1 - ); - /** * Adds a directory to the blacklist (recursively). * @@ -2380,7 +2104,8 @@ class PHP_CodeCoverage_Filter /** * Checks whether a filename is a real filename. * - * @param string $filename + * @param string $filename + * @return bool */ public function isFile($filename) { @@ -2405,8 +2130,7 @@ class PHP_CodeCoverage_Filter * When the whitelist is not empty, whitelisting is used. * * @param string $filename - * @param boolean $ignoreWhitelist - * @return boolean + * @return bool * @throws PHP_CodeCoverage_Exception */ public function isFiltered($filename) @@ -2421,10 +2145,6 @@ class PHP_CodeCoverage_Filter return !isset($this->whitelistedFiles[$filename]); } - if (!$this->blacklistPrefilled) { - $this->prefillBlacklist(); - } - return isset($this->blacklistedFiles[$filename]); } @@ -2451,7 +2171,7 @@ class PHP_CodeCoverage_Filter /** * Returns whether this filter has a whitelist. * - * @return boolean + * @return bool * @since Method available since Release 1.1.0 */ public function hasWhitelist() @@ -2459,43 +2179,6 @@ class PHP_CodeCoverage_Filter return !empty($this->whitelistedFiles); } - /** - * @since Method available since Release 1.2.3 - */ - private function prefillBlacklist() - { - if (defined('__PHPUNIT_PHAR__')) { - $this->addFileToBlacklist(__PHPUNIT_PHAR__); - } - - foreach (self::$blacklistClassNames as $className => $parent) { - $this->addDirectoryContainingClassToBlacklist($className, $parent); - } - - $this->blacklistPrefilled = true; - } - - /** - * @param string $className - * @param integer $parent - * @since Method available since Release 1.2.3 - */ - private function addDirectoryContainingClassToBlacklist($className, $parent = 1) - { - if (!class_exists($className)) { - return; - } - - $reflector = new ReflectionClass($className); - $directory = $reflector->getFileName(); - - for ($i = 0; $i < $parent; $i++) { - $directory = dirname($directory); - } - - $this->addDirectoryToBlacklist($directory); - } - /** * Returns the blacklisted files. * @@ -2541,60 +2224,19 @@ class PHP_CodeCoverage_Filter } } . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. +/* + * This file is part of the PHP_CodeCoverage package. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. + * (c) Sebastian Bergmann * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ /** * Generates a Clover XML logfile from an PHP_CodeCoverage object. * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 + * @since Class available since Release 1.0.0 */ class PHP_CodeCoverage_Report_Clover { @@ -2606,7 +2248,7 @@ class PHP_CodeCoverage_Report_Clover */ public function process(PHP_CodeCoverage $coverage, $target = null, $name = null) { - $xmlDocument = new DOMDocument('1.0', 'UTF-8'); + $xmlDocument = new DOMDocument('1.0', 'UTF-8'); $xmlDocument->formatOutput = true; $xmlCoverage = $xmlDocument->createElement('coverage'); @@ -2866,62 +2508,39 @@ class PHP_CodeCoverage_Report_Clover } } . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. +/* + * This file is part of the PHP_CodeCoverage package. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. + * (c) Sebastian Bergmann * - * @category PHP - * @package CodeCoverage - * @author Zsolt Takács - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 2.0.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ /** - * @category PHP - * @package CodeCoverage - * @author Zsolt Takács - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 2.0.0 + * @since Class available since Release 2.0.0 */ class PHP_CodeCoverage_Report_Crap4j { - private $threshold = 30; + /** + * @var int + */ + private $threshold; + + /** + * @param int $threshold + */ + public function __construct($threshold = 30) + { + if (!is_int($threshold)) { + throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( + 1, + 'integer' + ); + } + + $this->threshold = $threshold; + } /** * @param PHP_CodeCoverage $coverage @@ -2931,7 +2550,7 @@ class PHP_CodeCoverage_Report_Crap4j */ public function process(PHP_CodeCoverage $coverage, $target = null, $name = null) { - $document = new DOMDocument('1.0', 'UTF-8'); + $document = new DOMDocument('1.0', 'UTF-8'); $document->formatOutput = true; $root = $document->createElement('crap_result'); @@ -2941,18 +2560,20 @@ class PHP_CodeCoverage_Report_Crap4j $root->appendChild($project); $root->appendChild($document->createElement('timestamp', date('Y-m-d H:i:s', (int) $_SERVER['REQUEST_TIME']))); - $stats = $document->createElement('stats'); + $stats = $document->createElement('stats'); $methodsNode = $document->createElement('methods'); - $report = $coverage->getReport(); + $report = $coverage->getReport(); unset($coverage); - $fullMethodCount = 0; + $fullMethodCount = 0; $fullCrapMethodCount = 0; - $fullCrapLoad = 0; - $fullCrap = 0; + $fullCrapLoad = 0; + $fullCrap = 0; foreach ($report as $item) { + $namespace = 'global'; + if (!$item instanceof PHP_CodeCoverage_Report_Node_File) { continue; } @@ -2966,7 +2587,7 @@ class PHP_CodeCoverage_Report_Crap4j foreach ($class['methods'] as $methodName => $method) { $crapLoad = $this->getCrapLoad($method['crap'], $method['ccn'], $method['coverage']); - $fullCrap += $method['crap']; + $fullCrap += $method['crap']; $fullCrapLoad += $crapLoad; $fullMethodCount++; @@ -2976,7 +2597,11 @@ class PHP_CodeCoverage_Report_Crap4j $methodNode = $document->createElement('method'); - $methodNode->appendChild($document->createElement('package', '')); + if (!empty($class['package']['namespace'])) { + $namespace = $class['package']['namespace']; + } + + $methodNode->appendChild($document->createElement('package', $namespace)); $methodNode->appendChild($document->createElement('className', $className)); $methodNode->appendChild($document->createElement('methodName', $methodName)); $methodNode->appendChild($document->createElement('methodSignature', htmlspecialchars($method['signature']))); @@ -2996,7 +2621,14 @@ class PHP_CodeCoverage_Report_Crap4j $stats->appendChild($document->createElement('crapMethodCount', $fullCrapMethodCount)); $stats->appendChild($document->createElement('crapLoad', round($fullCrapLoad))); $stats->appendChild($document->createElement('totalCrap', $fullCrap)); - $stats->appendChild($document->createElement('crapMethodPercent', $this->roundValue(100 * $fullCrapMethodCount / $fullMethodCount))); + + if ($fullMethodCount > 0) { + $crapMethodPercent = $this->roundValue((100 * $fullCrapMethodCount) / $fullMethodCount); + } else { + $crapMethodPercent = 0; + } + + $stats->appendChild($document->createElement('crapMethodPercent', $crapMethodPercent)); $root->appendChild($stats); $root->appendChild($methodsNode); @@ -3012,10 +2644,17 @@ class PHP_CodeCoverage_Report_Crap4j } } + /** + * @param float $crapValue + * @param int $cyclomaticComplexity + * @param float $coveragePercent + * @return float + */ private function getCrapLoad($crapValue, $cyclomaticComplexity, $coveragePercent) { $crapLoad = 0; - if ($crapValue > $this->threshold) { + + if ($crapValue >= $this->threshold) { $crapLoad += $cyclomaticComplexity * (1.0 - $coveragePercent / 100); $crapLoad += $cyclomaticComplexity / $this->threshold; } @@ -3023,78 +2662,43 @@ class PHP_CodeCoverage_Report_Crap4j return $crapLoad; } + /** + * @param float $value + * @return float + */ private function roundValue($value) { return round($value, 2); } } . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. +/* + * This file is part of the PHP_CodeCoverage package. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. + * (c) Sebastian Bergmann * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ /** * Factory for PHP_CodeCoverage_Report_Node_* object graphs. * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 + * @since Class available since Release 1.1.0 */ class PHP_CodeCoverage_Report_Factory { /** - * @param PHP_CodeCoverage $coverage + * @param PHP_CodeCoverage $coverage + * @return PHP_CodeCoverage_Report_Node_Directory */ public function create(PHP_CodeCoverage $coverage) { $files = $coverage->getData(); $commonPath = $this->reducePaths($files); $root = new PHP_CodeCoverage_Report_Node_Directory( - $commonPath, null + $commonPath, + null ); $this->addItems( @@ -3111,7 +2715,7 @@ class PHP_CodeCoverage_Report_Factory * @param PHP_CodeCoverage_Report_Node_Directory $root * @param array $items * @param array $tests - * @param boolean $cacheTokens + * @param bool $cacheTokens */ private function addItems(PHP_CodeCoverage_Report_Node_Directory $root, array $items, array $tests, $cacheTokens) { @@ -3300,7 +2904,7 @@ class PHP_CodeCoverage_Report_Factory $max = count($original); for ($i = 0; $i < $max; $i++) { - $files[join('/', $paths[$i])] = $files[$original[$i]]; + $files[implode('/', $paths[$i])] = $files[$original[$i]]; unset($files[$original[$i]]); } @@ -3310,60 +2914,19 @@ class PHP_CodeCoverage_Report_Factory } } . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. +/* + * This file is part of the PHP_CodeCoverage package. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. + * (c) Sebastian Bergmann * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ /** * Generates an HTML report from an PHP_CodeCoverage object. * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 + * @since Class available since Release 1.0.0 */ class PHP_CodeCoverage_Report_HTML { @@ -3378,21 +2941,21 @@ class PHP_CodeCoverage_Report_HTML private $generator; /** - * @var integer + * @var int */ private $lowUpperBound; /** - * @var integer + * @var int */ private $highLowerBound; /** * Constructor. * - * @param integer $lowUpperBound - * @param integer $highLowerBound - * @param string $generator + * @param int $lowUpperBound + * @param int $highLowerBound + * @param string $generator */ public function __construct($lowUpperBound = 50, $highLowerBound = 90, $generator = '') { @@ -3402,7 +2965,6 @@ class PHP_CodeCoverage_Report_HTML $this->templatePath = sprintf( '%s%sHTML%sRenderer%sTemplate%s', - dirname(__FILE__), DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR, @@ -3485,7 +3047,7 @@ class PHP_CodeCoverage_Report_HTML { $dir = $this->getDirectory($target . 'css'); copy($this->templatePath . 'css/bootstrap.min.css', $dir . 'bootstrap.min.css'); - copy($this->templatePath . 'css/nv.d3.css', $dir . 'nv.d3.css'); + copy($this->templatePath . 'css/nv.d3.min.css', $dir . 'nv.d3.min.css'); copy($this->templatePath . 'css/style.css', $dir . 'style.css'); $dir = $this->getDirectory($target . 'fonts'); @@ -3493,11 +3055,12 @@ class PHP_CodeCoverage_Report_HTML copy($this->templatePath . 'fonts/glyphicons-halflings-regular.svg', $dir . 'glyphicons-halflings-regular.svg'); copy($this->templatePath . 'fonts/glyphicons-halflings-regular.ttf', $dir . 'glyphicons-halflings-regular.ttf'); copy($this->templatePath . 'fonts/glyphicons-halflings-regular.woff', $dir . 'glyphicons-halflings-regular.woff'); + copy($this->templatePath . 'fonts/glyphicons-halflings-regular.woff2', $dir . 'glyphicons-halflings-regular.woff2'); $dir = $this->getDirectory($target . 'js'); copy($this->templatePath . 'js/bootstrap.min.js', $dir . 'bootstrap.min.js'); copy($this->templatePath . 'js/d3.min.js', $dir . 'd3.min.js'); - copy($this->templatePath . 'js/holder.js', $dir . 'holder.js'); + copy($this->templatePath . 'js/holder.min.js', $dir . 'holder.min.js'); copy($this->templatePath . 'js/html5shiv.min.js', $dir . 'html5shiv.min.js'); copy($this->templatePath . 'js/jquery.min.js', $dir . 'jquery.min.js'); copy($this->templatePath . 'js/nv.d3.min.js', $dir . 'nv.d3.min.js'); @@ -3533,48 +3096,13 @@ class PHP_CodeCoverage_Report_HTML } } . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: +/* + * This file is part of the PHP_CodeCoverage package. * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. + * (c) Sebastian Bergmann * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ use SebastianBergmann\Environment\Runtime; @@ -3582,13 +3110,7 @@ use SebastianBergmann\Environment\Runtime; /** * Base class for PHP_CodeCoverage_Report_Node renderers. * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 + * @since Class available since Release 1.1.0 */ abstract class PHP_CodeCoverage_Report_HTML_Renderer { @@ -3608,12 +3130,12 @@ abstract class PHP_CodeCoverage_Report_HTML_Renderer protected $date; /** - * @var integer + * @var int */ protected $lowUpperBound; /** - * @var integer + * @var int */ protected $highLowerBound; @@ -3625,15 +3147,15 @@ abstract class PHP_CodeCoverage_Report_HTML_Renderer /** * Constructor. * - * @param string $templatePath - * @param string $generator - * @param string $date - * @param integer $lowUpperBound - * @param integer $highLowerBound + * @param string $templatePath + * @param string $generator + * @param string $date + * @param int $lowUpperBound + * @param int $highLowerBound */ public function __construct($templatePath, $generator, $date, $lowUpperBound, $highLowerBound) { - $version = new SebastianBergmann\Version('2.0.11', dirname(dirname(dirname(dirname(__DIR__))))); + $version = new SebastianBergmann\Version('2.2.4', dirname(dirname(dirname(dirname(__DIR__))))); $this->templatePath = $templatePath; $this->generator = $generator; @@ -3650,69 +3172,72 @@ abstract class PHP_CodeCoverage_Report_HTML_Renderer */ protected function renderItemTemplate(Text_Template $template, array $data) { - $numSeperator = ' / '; - $classesBar = ' '; - $classesLevel = 'None'; - $classesNumber = ' '; + $numSeparator = ' / '; if (isset($data['numClasses']) && $data['numClasses'] > 0) { $classesLevel = $this->getColorLevel($data['testedClassesPercent']); - $classesNumber = $data['numTestedClasses'] . $numSeperator . + $classesNumber = $data['numTestedClasses'] . $numSeparator . $data['numClasses']; $classesBar = $this->getCoverageBar( $data['testedClassesPercent'] ); + } else { + $classesLevel = 'success'; + $classesNumber = '0' . $numSeparator . '0'; + $classesBar = $this->getCoverageBar(100); } - $methodsBar = ' '; - $methodsLevel = 'None'; - $methodsNumber = ' '; - if ($data['numMethods'] > 0) { $methodsLevel = $this->getColorLevel($data['testedMethodsPercent']); - $methodsNumber = $data['numTestedMethods'] . $numSeperator . + $methodsNumber = $data['numTestedMethods'] . $numSeparator . $data['numMethods']; $methodsBar = $this->getCoverageBar( $data['testedMethodsPercent'] ); + } else { + $methodsLevel = 'success'; + $methodsNumber = '0' . $numSeparator . '0'; + $methodsBar = $this->getCoverageBar(100); + $data['testedMethodsPercentAsString'] = '100.00%'; } - $linesBar = ' '; - $linesLevel = 'None'; - $linesNumber = ' '; - if ($data['numExecutableLines'] > 0) { $linesLevel = $this->getColorLevel($data['linesExecutedPercent']); - $linesNumber = $data['numExecutedLines'] . $numSeperator . + $linesNumber = $data['numExecutedLines'] . $numSeparator . $data['numExecutableLines']; $linesBar = $this->getCoverageBar( $data['linesExecutedPercent'] ); + } else { + $linesLevel = 'success'; + $linesNumber = '0' . $numSeparator . '0'; + $linesBar = $this->getCoverageBar(100); + $data['linesExecutedPercentAsString'] = '100.00%'; } $template->setVar( array( - 'icon' => isset($data['icon']) ? $data['icon'] : '', - 'crap' => isset($data['crap']) ? $data['crap'] : '', - 'name' => $data['name'], - 'lines_bar' => $linesBar, + 'icon' => isset($data['icon']) ? $data['icon'] : '', + 'crap' => isset($data['crap']) ? $data['crap'] : '', + 'name' => $data['name'], + 'lines_bar' => $linesBar, 'lines_executed_percent' => $data['linesExecutedPercentAsString'], - 'lines_level' => $linesLevel, - 'lines_number' => $linesNumber, - 'methods_bar' => $methodsBar, + 'lines_level' => $linesLevel, + 'lines_number' => $linesNumber, + 'methods_bar' => $methodsBar, 'methods_tested_percent' => $data['testedMethodsPercentAsString'], - 'methods_level' => $methodsLevel, - 'methods_number' => $methodsNumber, - 'classes_bar' => $classesBar, + 'methods_level' => $methodsLevel, + 'methods_number' => $methodsNumber, + 'classes_bar' => $classesBar, 'classes_tested_percent' => isset($data['testedClassesPercentAsString']) ? $data['testedClassesPercentAsString'] : '', - 'classes_level' => $classesLevel, - 'classes_number' => $classesNumber + 'classes_level' => $classesLevel, + 'classes_number' => $classesNumber ) ); @@ -3763,7 +3288,8 @@ abstract class PHP_CodeCoverage_Report_HTML_Renderer foreach ($path as $step) { if ($step !== $node) { $breadcrumbs .= $this->getInactiveBreadcrumb( - $step, array_pop($pathToRoot) + $step, + array_pop($pathToRoot) ); } else { $breadcrumbs .= $this->getActiveBreadcrumb($step); @@ -3814,23 +3340,25 @@ abstract class PHP_CodeCoverage_Report_HTML_Renderer $level = $this->getColorLevel($percent); $template = new Text_Template( - $this->templatePath . 'coverage_bar.html', '{{', '}}' + $this->templatePath . 'coverage_bar.html', + '{{', + '}}' ); - $template->setVar(array('level' => $level, 'percent' => sprintf("%.2F", $percent))); + $template->setVar(array('level' => $level, 'percent' => sprintf('%.2F', $percent))); return $template->render(); } /** - * @param integer $percent + * @param int $percent * @return string */ protected function getColorLevel($percent) { - if ($percent < $this->lowUpperBound) { + if ($percent <= $this->lowUpperBound) { return 'danger'; - } elseif ($percent >= $this->lowUpperBound && + } elseif ($percent > $this->lowUpperBound && $percent < $this->highLowerBound) { return 'warning'; } else { @@ -3839,60 +3367,19 @@ abstract class PHP_CodeCoverage_Report_HTML_Renderer } } . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. +/* + * This file is part of the PHP_CodeCoverage package. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. + * (c) Sebastian Bergmann * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ /** * Renders the dashboard for a PHP_CodeCoverage_Report_Node_Directory node. * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 + * @since Class available since Release 1.1.0 */ class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_Report_HTML_Renderer { @@ -3902,19 +3389,20 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_R */ public function render(PHP_CodeCoverage_Report_Node_Directory $node, $file) { - $classes = $node->getClassesAndTraits(); - $isRoot = $node->getParent() === null; - + $classes = $node->getClassesAndTraits(); $template = new Text_Template( - $this->templatePath . 'dashboard.html', '{{', '}}' + $this->templatePath . 'dashboard.html', + '{{', + '}}' ); $this->setCommonTemplateVariables($template, $node); - $complexity = $this->complexity($classes, $isRoot); - $coverageDistribution = $this->coverageDistribution($classes, $isRoot); - $insufficientCoverage = $this->insufficientCoverage($classes, $isRoot); - $projectRisks = $this->projectRisks($classes, $isRoot); + $baseLink = $node->getId() . '/'; + $complexity = $this->complexity($classes, $baseLink); + $coverageDistribution = $this->coverageDistribution($classes); + $insufficientCoverage = $this->insufficientCoverage($classes, $baseLink); + $projectRisks = $this->projectRisks($classes, $baseLink); $template->setVar( array( @@ -3935,11 +3423,11 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_R /** * Returns the data for the Class/Method Complexity charts. * - * @param array $classes - * @param boolean $isRoot + * @param array $classes + * @param string $baseLink * @return array */ - protected function complexity(array $classes, $isRoot) + protected function complexity(array $classes, $baseLink) { $result = array('class' => array(), 'method' => array()); @@ -3954,7 +3442,7 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_R $method['ccn'], sprintf( '%s', - $this->rebaseLink($method['link'], $isRoot), + str_replace($baseLink, '', $method['link']), $methodName ) ); @@ -3965,14 +3453,14 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_R $class['ccn'], sprintf( '%s', - $this->rebaseLink($class['link'], $isRoot), + str_replace($baseLink, '', $class['link']), $className ) ); } return array( - 'class' => json_encode($result['class']), + 'class' => json_encode($result['class']), 'method' => json_encode($result['method']) ); } @@ -3980,11 +3468,10 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_R /** * Returns the data for the Class / Method Coverage Distribution chart. * - * @param array $classes - * @param boolean $isRoot + * @param array $classes * @return array */ - protected function coverageDistribution(array $classes, $isRoot) + protected function coverageDistribution(array $classes) { $result = array( 'class' => array( @@ -4042,7 +3529,7 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_R } return array( - 'class' => json_encode(array_values($result['class'])), + 'class' => json_encode(array_values($result['class'])), 'method' => json_encode(array_values($result['method'])) ); } @@ -4050,11 +3537,11 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_R /** * Returns the classes / methods with insufficient coverage. * - * @param array $classes - * @param boolean $isRoot + * @param array $classes + * @param string $baseLink * @return array */ - protected function insufficientCoverage(array $classes, $isRoot) + protected function insufficientCoverage(array $classes, $baseLink) { $leastTestedClasses = array(); $leastTestedMethods = array(); @@ -4084,7 +3571,7 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_R foreach ($leastTestedClasses as $className => $coverage) { $result['class'] .= sprintf( ' %s%d%%' . "\n", - $this->rebaseLink($classes[$className]['link'], $isRoot), + str_replace($baseLink, '', $classes[$className]['link']), $className, $coverage ); @@ -4094,8 +3581,8 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_R list($class, $method) = explode('::', $methodName); $result['method'] .= sprintf( - ' %s%d%%' . "\n", - $this->rebaseLink($classes[$class]['methods'][$method]['link'], $isRoot), + ' %s%d%%' . "\n", + str_replace($baseLink, '', $classes[$class]['methods'][$method]['link']), $methodName, $method, $coverage @@ -4108,11 +3595,11 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_R /** * Returns the project risks according to the CRAP index. * - * @param array $classes - * @param boolean $isRoot + * @param array $classes + * @param string $baseLink * @return array */ - protected function projectRisks(array $classes, $isRoot) + protected function projectRisks(array $classes, $baseLink) { $classRisks = array(); $methodRisks = array(); @@ -4144,7 +3631,7 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_R foreach ($classRisks as $className => $crap) { $result['class'] .= sprintf( ' %s%d' . "\n", - $this->rebaseLink($classes[$className]['link'], $isRoot), + str_replace($baseLink, '', $classes[$className]['link']), $className, $crap ); @@ -4155,7 +3642,7 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_R $result['method'] .= sprintf( ' %s%d' . "\n", - $this->rebaseLink($classes[$class]['methods'][$method]['link'], $isRoot), + str_replace($baseLink, '', $classes[$class]['methods'][$method]['link']), $methodName, $method, $crap @@ -4173,73 +3660,21 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_R $node->getName() ); } - - /** - * @param string $link - * @param boolean $isRoot - * @return string - * @since Method available since Release 2.0.12 - */ - private function rebaseLink($link, $isRoot) - { - return $isRoot ? $link : substr($link, strpos($link, '/') + 1); - } } . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. +/* + * This file is part of the PHP_CodeCoverage package. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. + * (c) Sebastian Bergmann * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ /** * Renders a PHP_CodeCoverage_Report_Node_Directory node. * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 + * @since Class available since Release 1.1.0 */ class PHP_CodeCoverage_Report_HTML_Renderer_Directory extends PHP_CodeCoverage_Report_HTML_Renderer { @@ -4275,7 +3710,7 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Directory extends PHP_CodeCoverage_R /** * @param PHP_CodeCoverage_Report_Node $item - * @param boolean $total + * @param bool $total * @return string */ protected function renderItem(PHP_CodeCoverage_Report_Node $item, $total = false) @@ -4324,48 +3759,13 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Directory extends PHP_CodeCoverage_R } } . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. +/* + * This file is part of the PHP_CodeCoverage package. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. + * (c) Sebastian Bergmann * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ // @codeCoverageIgnoreStart @@ -4393,24 +3793,23 @@ if (!defined('T_YIELD')) { /** * Renders a PHP_CodeCoverage_Report_Node_File node. * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2014 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 + * @since Class available since Release 1.1.0 */ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report_HTML_Renderer { + /** + * @var int + */ + private $htmlspecialcharsFlags; + /** * Constructor. * - * @param string $templatePath - * @param string $generator - * @param string $date - * @param integer $lowUpperBound - * @param integer $highLowerBound + * @param string $templatePath + * @param string $generator + * @param string $date + * @param int $lowUpperBound + * @param int $highLowerBound */ public function __construct($templatePath, $generator, $date, $lowUpperBound, $highLowerBound) { @@ -4421,6 +3820,12 @@ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report $lowUpperBound, $highLowerBound ); + + $this->htmlspecialcharsFlags = ENT_COMPAT; + + if (PHP_VERSION_ID >= 50400 && defined('ENT_SUBSTITUTE')) { + $this->htmlspecialcharsFlags = $this->htmlspecialcharsFlags | ENT_HTML401 | ENT_SUBSTITUTE; + } } /** @@ -4452,7 +3857,9 @@ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report $template = new Text_Template($this->templatePath . 'file_item.html', '{{', '}}'); $methodItemTemplate = new Text_Template( - $this->templatePath . 'method_item.html', '{{', '}}' + $this->templatePath . 'method_item.html', + '{{', + '}}' ); $items = $this->renderItemTemplate( @@ -4528,44 +3935,46 @@ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report 'numMethods' => $numMethods, 'numTestedMethods' => $numTestedMethods, 'linesExecutedPercent' => PHP_CodeCoverage_Util::percent( - $item['executedLines'], - $item['executableLines'], - false - ), + $item['executedLines'], + $item['executableLines'], + false + ), 'linesExecutedPercentAsString' => PHP_CodeCoverage_Util::percent( - $item['executedLines'], - $item['executableLines'], - true - ), + $item['executedLines'], + $item['executableLines'], + true + ), 'numExecutedLines' => $item['executedLines'], 'numExecutableLines' => $item['executableLines'], 'testedMethodsPercent' => PHP_CodeCoverage_Util::percent( - $numTestedMethods, - $numMethods, - false - ), + $numTestedMethods, + $numMethods, + false + ), 'testedMethodsPercentAsString' => PHP_CodeCoverage_Util::percent( - $numTestedMethods, - $numMethods, - true - ), + $numTestedMethods, + $numMethods, + true + ), 'testedClassesPercent' => PHP_CodeCoverage_Util::percent( - $numTestedMethods == $numMethods ? 1 : 0, - 1, - false - ), + $numTestedMethods == $numMethods ? 1 : 0, + 1, + false + ), 'testedClassesPercentAsString' => PHP_CodeCoverage_Util::percent( - $numTestedMethods == $numMethods ? 1 : 0, - 1, - true - ), + $numTestedMethods == $numMethods ? 1 : 0, + 1, + true + ), 'crap' => $item['crap'] ) ); foreach ($item['methods'] as $method) { $buffer .= $this->renderFunctionOrMethodItem( - $methodItemTemplate, $method, ' ' + $methodItemTemplate, + $method, + ' ' ); } } @@ -4588,7 +3997,8 @@ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report foreach ($functions as $function) { $buffer .= $this->renderFunctionOrMethodItem( - $template, $function + $template, + $function ); } @@ -4607,35 +4017,36 @@ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report $template, array( 'name' => sprintf( - '%s%s', + '%s%s', $indent, $item['startLine'], - htmlspecialchars($item['signature']) + htmlspecialchars($item['signature']), + isset($item['functionName']) ? $item['functionName'] : $item['methodName'] ), 'numMethods' => 1, 'numTestedMethods' => $numTestedItems, 'linesExecutedPercent' => PHP_CodeCoverage_Util::percent( - $item['executedLines'], - $item['executableLines'], - false - ), + $item['executedLines'], + $item['executableLines'], + false + ), 'linesExecutedPercentAsString' => PHP_CodeCoverage_Util::percent( - $item['executedLines'], - $item['executableLines'], - true - ), + $item['executedLines'], + $item['executableLines'], + true + ), 'numExecutedLines' => $item['executedLines'], 'numExecutableLines' => $item['executableLines'], 'testedMethodsPercent' => PHP_CodeCoverage_Util::percent( - $numTestedItems, - 1, - false - ), + $numTestedItems, + 1, + false + ), 'testedMethodsPercentAsString' => PHP_CodeCoverage_Util::percent( - $numTestedItems, - 1, - true - ), + $numTestedItems, + 1, + true + ), 'crap' => $item['crap'] ) ); @@ -4654,7 +4065,6 @@ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report $i = 1; foreach ($codeLines as $line) { - $numTests = ''; $trClass = ''; $popoverContent = ''; $popoverTitle = ''; @@ -4667,7 +4077,7 @@ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report } elseif ($numTests == 0) { $trClass = ' class="danger"'; } else { - $trClass = ' class="success popin"'; + $lineCss = 'covered-by-large-tests'; $popoverContent = '
    '; if ($numTests > 1) { @@ -4677,42 +4087,55 @@ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report } foreach ($coverageData[$i] as $test) { - switch ($testData[$test]) { - case 0: { - $testCSS = ' class="success"'; - } + if ($lineCss == 'covered-by-large-tests' && $testData[$test]['size'] == 'medium') { + $lineCss = 'covered-by-medium-tests'; + } elseif ($testData[$test]['size'] == 'small') { + $lineCss = 'covered-by-small-tests'; + } + + switch ($testData[$test]['status']) { + case 0: + switch ($testData[$test]['size']) { + case 'small': + $testCSS = ' class="covered-by-small-tests"'; + break; + + case 'medium': + $testCSS = ' class="covered-by-medium-tests"'; + break; + + default: + $testCSS = ' class="covered-by-large-tests"'; + break; + } break; case 1: - case 2: { + case 2: $testCSS = ' class="warning"'; - } break; - case 3: { + case 3: $testCSS = ' class="danger"'; - } break; - case 4: { + case 4: $testCSS = ' class="danger"'; - } break; - default: { - $testCSS = ''; - } + default: + $testCSS = ''; } $popoverContent .= sprintf( '%s', - $testCSS, htmlspecialchars($test) ); } $popoverContent .= '
'; + $trClass = ' class="' . $lineCss . ' popin"'; } } @@ -4762,7 +4185,6 @@ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report if ($token === '"' && $tokens[$j - 1] !== '\\') { $result[$i] .= sprintf( '%s', - htmlspecialchars($token) ); @@ -4770,7 +4192,6 @@ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report } else { $result[$i] .= sprintf( '%s', - htmlspecialchars($token) ); } @@ -4778,12 +4199,12 @@ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report continue; } - list ($token, $value) = $token; + list($token, $value) = $token; $value = str_replace( array("\t", ' '), array('    ', ' '), - htmlspecialchars($value) + htmlspecialchars($value, $this->htmlspecialcharsFlags) ); if ($value === "\n") { @@ -4799,15 +4220,13 @@ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report $colour = 'string'; } else { switch ($token) { - case T_INLINE_HTML: { + case T_INLINE_HTML: $colour = 'html'; - } break; case T_COMMENT: - case T_DOC_COMMENT: { + case T_DOC_COMMENT: $colour = 'comment'; - } break; case T_ABSTRACT: @@ -4865,20 +4284,17 @@ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report case T_USE: case T_VAR: case T_WHILE: - case T_YIELD: { + case T_YIELD: $colour = 'keyword'; - } break; - default: { - $colour = 'default'; - } + default: + $colour = 'default'; } } $result[$i] .= sprintf( '%s', - $colour, $line ); @@ -4904,778 +4320,10 @@ class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report /*! - * Bootstrap v3.3.0 (http://getbootstrap.com) - * Copyright 2011-2014 Twitter, Inc. + * Bootstrap v3.3.4 (http://getbootstrap.com) + * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - *//*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:before,:after{color:#000!important;text-shadow:none!important;background:transparent!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered th,.table-bordered td{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before,.glyphicon-eur:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:before,:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#428bca;text-decoration:none}a:hover,a:focus{color:#2a6496;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.img-responsive,.thumbnail>img,.thumbnail a>img,.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 .small,h2 .small,h3 .small,h4 .small,h5 .small,h6 .small,.h1 .small,.h2 .small,.h3 .small,.h4 .small,.h5 .small,.h6 .small{font-weight:400;line-height:1;color:#777}h1,.h1,h2,.h2,h3,.h3{margin-top:20px;margin-bottom:10px}h1 small,.h1 small,h2 small,.h2 small,h3 small,.h3 small,h1 .small,.h1 .small,h2 .small,.h2 .small,h3 .small,.h3 .small{font-size:65%}h4,.h4,h5,.h5,h6,.h6{margin-top:10px;margin-bottom:10px}h4 small,.h4 small,h5 small,.h5 small,h6 small,.h6 small,h4 .small,.h4 .small,h5 .small,.h5 .small,h6 .small,.h6 .small{font-size:75%}h1,.h1{font-size:36px}h2,.h2{font-size:30px}h3,.h3{font-size:24px}h4,.h4{font-size:18px}h5,.h5{font-size:14px}h6,.h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}small,.small{font-size:85%}mark,.mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#428bca}a.text-primary:hover{color:#3071a9}.text-success{color:#3c763d}a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#428bca}a.bg-primary:hover{background-color:#3071a9}.bg-success{background-color:#dff0d8}a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ul,ol{margin-top:0;margin-bottom:10px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dt,dd{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote p:last-child,blockquote ul:last-child,blockquote ol:last-child{margin-bottom:0}blockquote footer,blockquote small,blockquote .small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote footer:before,blockquote small:before,blockquote .small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse footer:before,blockquote.pull-right footer:before,.blockquote-reverse small:before,blockquote.pull-right small:before,.blockquote-reverse .small:before,blockquote.pull-right .small:before{content:''}.blockquote-reverse footer:after,blockquote.pull-right footer:after,.blockquote-reverse small:after,blockquote.pull-right small:after,.blockquote-reverse .small:after,blockquote.pull-right .small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>th,.table>caption+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>td,.table>thead:first-child>tr:first-child>td{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>thead>tr>th,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>thead>tr>td.active,.table>tbody>tr>td.active,.table>tfoot>tr>td.active,.table>thead>tr>th.active,.table>tbody>tr>th.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>tbody>tr.active>td,.table>tfoot>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr.active>th,.table>tfoot>tr.active>th{background-color:#f5f5f5}.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover,.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr.active:hover>th{background-color:#e8e8e8}.table>thead>tr>td.success,.table>tbody>tr>td.success,.table>tfoot>tr>td.success,.table>thead>tr>th.success,.table>tbody>tr>th.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>tbody>tr.success>td,.table>tfoot>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr.success>th,.table>tfoot>tr.success>th{background-color:#dff0d8}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr.success:hover>th{background-color:#d0e9c6}.table>thead>tr>td.info,.table>tbody>tr>td.info,.table>tfoot>tr>td.info,.table>thead>tr>th.info,.table>tbody>tr>th.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>tbody>tr.info>td,.table>tfoot>tr.info>td,.table>thead>tr.info>th,.table>tbody>tr.info>th,.table>tfoot>tr.info>th{background-color:#d9edf7}.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover,.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr.info:hover>th{background-color:#c4e3f3}.table>thead>tr>td.warning,.table>tbody>tr>td.warning,.table>tfoot>tr>td.warning,.table>thead>tr>th.warning,.table>tbody>tr>th.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>tbody>tr.warning>td,.table>tfoot>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr.warning>th,.table>tfoot>tr.warning>th{background-color:#fcf8e3}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr.warning:hover>th{background-color:#faf2cc}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background-color:#f2dede}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr.danger:hover>th{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>thead>tr>th,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tfoot>tr>td{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>thead>tr>th:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.table-responsive>.table-bordered>thead>tr>th:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>th,.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=radio],input[type=checkbox]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=radio]:focus,input[type=checkbox]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee;opacity:1}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{line-height:34px;line-height:1.42857143 \0}input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px;line-height:1.5 \0}input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px;line-height:1.33 \0}_:-ms-fullscreen,:root input[type=date],_:-ms-fullscreen,:root input[type=time],_:-ms-fullscreen,:root input[type=datetime-local],_:-ms-fullscreen,:root input[type=month]{line-height:1.42857143}_:-ms-fullscreen.input-sm,:root input[type=date].input-sm,_:-ms-fullscreen.input-sm,:root input[type=time].input-sm,_:-ms-fullscreen.input-sm,:root input[type=datetime-local].input-sm,_:-ms-fullscreen.input-sm,:root input[type=month].input-sm{line-height:1.5}_:-ms-fullscreen.input-lg,:root input[type=date].input-lg,_:-ms-fullscreen.input-lg,:root input[type=time].input-lg,_:-ms-fullscreen.input-lg,:root input[type=datetime-local].input-lg,_:-ms-fullscreen.input-lg,:root input[type=month].input-lg{line-height:1.33}.form-group{margin-bottom:15px}.radio,.checkbox{position:relative;display:block;margin-top:10px;margin-bottom:10px}.radio label,.checkbox label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.radio input[type=radio],.radio-inline input[type=radio],.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox]{position:absolute;margin-top:4px \9;margin-left:-20px}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}input[type=radio][disabled],input[type=checkbox][disabled],input[type=radio].disabled,input[type=checkbox].disabled,fieldset[disabled] input[type=radio],fieldset[disabled] input[type=checkbox]{cursor:not-allowed}.radio-inline.disabled,.checkbox-inline.disabled,fieldset[disabled] .radio-inline,fieldset[disabled] .checkbox-inline{cursor:not-allowed}.radio.disabled label,.checkbox.disabled label,fieldset[disabled] .radio label,fieldset[disabled] .checkbox label{cursor:not-allowed}.form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm,.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm,select.form-group-sm .form-control{height:30px;line-height:30px}textarea.input-sm,textarea.form-group-sm .form-control,select[multiple].input-sm,select[multiple].form-group-sm .form-control{height:auto}.input-lg,.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-lg,select.form-group-lg .form-control{height:46px;line-height:46px}textarea.input-lg,textarea.form-group-lg .form-control,select[multiple].input-lg,select[multiple].form-group-lg .form-control{height:auto}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .help-block,.has-success .control-label,.has-success .radio,.has-success .checkbox,.has-success .radio-inline,.has-success .checkbox-inline,.has-success.radio label,.has-success.checkbox label,.has-success.radio-inline label,.has-success.checkbox-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .help-block,.has-warning .control-label,.has-warning .radio,.has-warning .checkbox,.has-warning .radio-inline,.has-warning .checkbox-inline,.has-warning.radio label,.has-warning.checkbox label,.has-warning.radio-inline label,.has-warning.checkbox-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .help-block,.has-error .control-label,.has-error .radio,.has-error .checkbox,.has-error .radio-inline,.has-error .checkbox-inline,.has-error.radio label,.has-error.checkbox label,.has-error.radio-inline label,.has-error.checkbox-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn,.form-inline .input-group .form-control{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .radio,.form-inline .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .radio label,.form-inline .checkbox label{padding-left:0}.form-inline .radio input[type=radio],.form-inline .checkbox input[type=checkbox]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .radio,.form-horizontal .checkbox{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:14.3px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn:focus,.btn:active:focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn.active.focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus,.btn.focus{color:#333;text-decoration:none}.btn:active,.btn.active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default:hover,.btn-default:focus,.btn-default.focus,.btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default[disabled],fieldset[disabled] .btn-default,.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled.focus,.btn-default[disabled].focus,fieldset[disabled] .btn-default.focus,.btn-default.disabled:active,.btn-default[disabled]:active,fieldset[disabled] .btn-default:active,.btn-default.disabled.active,.btn-default[disabled].active,fieldset[disabled] .btn-default.active{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.btn-primary:hover,.btn-primary:focus,.btn-primary.focus,.btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#3071a9;border-color:#285e8e}.btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary[disabled],fieldset[disabled] .btn-primary,.btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled.focus,.btn-primary[disabled].focus,fieldset[disabled] .btn-primary.focus,.btn-primary.disabled:active,.btn-primary[disabled]:active,fieldset[disabled] .btn-primary:active,.btn-primary.disabled.active,.btn-primary[disabled].active,fieldset[disabled] .btn-primary.active{background-color:#428bca;border-color:#357ebd}.btn-primary .badge{color:#428bca;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success:hover,.btn-success:focus,.btn-success.focus,.btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success[disabled],fieldset[disabled] .btn-success,.btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled.focus,.btn-success[disabled].focus,fieldset[disabled] .btn-success.focus,.btn-success.disabled:active,.btn-success[disabled]:active,fieldset[disabled] .btn-success:active,.btn-success.disabled.active,.btn-success[disabled].active,fieldset[disabled] .btn-success.active{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info:hover,.btn-info:focus,.btn-info.focus,.btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info[disabled],fieldset[disabled] .btn-info,.btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled.focus,.btn-info[disabled].focus,fieldset[disabled] .btn-info.focus,.btn-info.disabled:active,.btn-info[disabled]:active,fieldset[disabled] .btn-info:active,.btn-info.disabled.active,.btn-info[disabled].active,fieldset[disabled] .btn-info.active{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning:hover,.btn-warning:focus,.btn-warning.focus,.btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-warning,.btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled.focus,.btn-warning[disabled].focus,fieldset[disabled] .btn-warning.focus,.btn-warning.disabled:active,.btn-warning[disabled]:active,fieldset[disabled] .btn-warning:active,.btn-warning.disabled.active,.btn-warning[disabled].active,fieldset[disabled] .btn-warning.active{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger:hover,.btn-danger:focus,.btn-danger.focus,.btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger[disabled],fieldset[disabled] .btn-danger,.btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled.focus,.btn-danger[disabled].focus,fieldset[disabled] .btn-danger.focus,.btn-danger.disabled:active,.btn-danger[disabled]:active,fieldset[disabled] .btn-danger:active,.btn-danger.disabled.active,.btn-danger[disabled].active,fieldset[disabled] .btn-danger.active{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#428bca;border-radius:0}.btn-link,.btn-link:active,.btn-link.active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#2a6496;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#777;text-decoration:none}.btn-lg,.btn-group-lg>.btn{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-sm,.btn-group-sm>.btn{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-xs,.btn-group-xs>.btn{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=submit].btn-block,input[type=reset].btn-block,input[type=button].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none;visibility:hidden}.collapse.in{display:block;visibility:visible}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;background-color:#428bca;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#777}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px solid}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;float:left}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn:focus,.btn-group>.btn:active,.btn-group-vertical>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn.active{z-index:2}.btn-group>.btn:focus,.btn-group-vertical>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=radio],[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn,select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn,select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=radio],.input-group-addon input[type=checkbox]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group-btn:last-child>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:first-child>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:hover,.input-group-btn>.btn:focus,.input-group-btn>.btn:active{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{background-color:#eee;border-color:#428bca}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#fff;background-color:#428bca}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none;visibility:hidden}.tab-content>.active{display:block;visibility:visible}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important;visibility:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:200px}}.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu>li>a,.navbar-nav .open .dropdown-menu .dropdown-header{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:hover,.navbar-nav .open .dropdown-menu>li>a:focus{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn,.navbar-form .input-group .form-control{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .radio,.navbar-form .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .radio label,.navbar-form .checkbox label{padding-left:0}.navbar-form .radio input[type=radio],.navbar-form .checkbox input[type=checkbox]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:hover,.navbar-default .navbar-brand:focus{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:hover,.navbar-default .navbar-nav>.disabled>a:focus{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:hover,.navbar-default .navbar-toggle:focus{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:hover,.navbar-default .navbar-nav>.open>a:focus{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:hover,.navbar-default .btn-link:focus{color:#333}.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:hover,.navbar-default .btn-link[disabled]:focus,fieldset[disabled] .navbar-default .btn-link:focus{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:hover,.navbar-inverse .btn-link:focus{color:#fff}.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:hover,.navbar-inverse .btn-link[disabled]:focus,fieldset[disabled] .navbar-inverse .btn-link:focus{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#428bca;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:hover,.pagination>li>span:hover,.pagination>li>a:focus,.pagination>li>span:focus{color:#2a6496;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>span,.pagination>.active>a:hover,.pagination>.active>span:hover,.pagination>.active>a:focus,.pagination>.active>span:focus{z-index:2;color:#fff;cursor:default;background-color:#428bca;border-color:#428bca}.pagination>.disabled>span,.pagination>.disabled>span:hover,.pagination>.disabled>span:focus,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:hover,a.label:focus{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:hover,.label-default[href]:focus{background-color:#5e5e5e}.label-primary{background-color:#428bca}.label-primary[href]:hover,.label-primary[href]:focus{background-color:#3071a9}.label-success{background-color:#5cb85c}.label-success[href]:hover,.label-success[href]:focus{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:hover,.label-info[href]:focus{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:hover,.label-warning[href]:focus{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:hover,.label-danger[href]:focus{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-xs .badge{top:0;padding:1px 5px}a.badge:hover,a.badge:focus{color:#fff;text-decoration:none;cursor:pointer}a.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#428bca;background-color:#fff}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px 15px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron h1,.jumbotron .h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding:48px 0}.container .jumbotron{padding-right:60px;padding-left:60px}.jumbotron h1,.jumbotron .h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail>img,.thumbnail a>img{margin-right:auto;margin-left:auto}a.thumbnail:hover,a.thumbnail:focus,a.thumbnail.active{border-color:#428bca}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#428bca;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-striped .progress-bar,.progress-bar-striped{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress.active .progress-bar,.progress-bar.active{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-left,.media-right,.media-body{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:hover,a.list-group-item:focus{color:#555;text-decoration:none;background-color:#f5f5f5}.list-group-item.disabled,.list-group-item.disabled:hover,.list-group-item.disabled:focus{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:hover,.list-group-item.active:focus{z-index:2;color:#fff;background-color:#428bca;border-color:#428bca}.list-group-item.active .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>.small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:hover .list-group-item-text,.list-group-item.active:focus .list-group-item-text{color:#e1edf7}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:hover,a.list-group-item-success:focus{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:hover,a.list-group-item-success.active:focus{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:hover,a.list-group-item-info:focus{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:hover,a.list-group-item-info.active:focus{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:hover,a.list-group-item-warning:focus{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:hover,a.list-group-item-warning.active:focus{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:hover,a.list-group-item-danger:focus{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:hover,a.list-group-item-danger.active:focus{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.table,.panel>.table-responsive>.table,.panel>.panel-collapse>.table{margin-bottom:0}.panel>.table caption,.panel>.table-responsive>.table caption,.panel>.panel-collapse>.table caption{padding-right:15px;padding-left:15px}.panel>.table:first-child,.panel>.table-responsive:first-child>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table:last-child,.panel>.table-responsive:last-child>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child th,.panel>.table>tbody:first-child>tr:first-child td{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.panel-body,.panel-group .panel-heading+.panel-collapse>.list-group{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#428bca}.panel-primary>.panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#428bca}.panel-primary>.panel-heading .badge{color:#428bca;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#428bca}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive iframe,.embed-responsive embed,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{min-height:16.43px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-size:12px;line-height:1.4;visibility:visible;filter:alpha(opacity=0);opacity:0}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{right:5px;bottom:0;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-size:14px;font-weight:400;line-height:1.42857143;text-align:left;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000;perspective:1000}.carousel-inner>.item.next,.carousel-inner>.item.active.right{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.prev,.carousel-inner>.item.active.left{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right,.carousel-inner>.item.active{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:hover,.carousel-control:focus{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .icon-prev,.carousel-control .icon-next,.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .icon-prev,.carousel-control .glyphicon-chevron-left{left:50%;margin-left:-10px}.carousel-control .icon-next,.carousel-control .glyphicon-chevron-right{right:50%;margin-right:-10px}.carousel-control .icon-prev,.carousel-control .icon-next{width:20px;height:20px;margin-top:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000 \9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-prev,.carousel-control .icon-next{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.clearfix:before,.clearfix:after,.dl-horizontal dd:before,.dl-horizontal dd:after,.container:before,.container:after,.container-fluid:before,.container-fluid:after,.row:before,.row:after,.form-horizontal .form-group:before,.form-horizontal .form-group:after,.btn-toolbar:before,.btn-toolbar:after,.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after,.nav:before,.nav:after,.navbar:before,.navbar:after,.navbar-header:before,.navbar-header:after,.navbar-collapse:before,.navbar-collapse:after,.pager:before,.pager:after,.panel-body:before,.panel-body:after,.modal-footer:before,.modal-footer:after{display:table;content:" "}.clearfix:after,.dl-horizontal dd:after,.container:after,.container-fluid:after,.row:after,.form-horizontal .form-group:after,.btn-toolbar:after,.btn-group-vertical>.btn-group:after,.nav:after,.navbar:after,.navbar-header:after,.navbar-collapse:after,.pager:after,.panel-body:after,.modal-footer:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important;visibility:hidden!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-xs,.visible-sm,.visible-md,.visible-lg{display:none!important}.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}th.visible-xs,td.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}th.visible-sm,td.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}th.visible-md,td.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}th.visible-lg,td.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}th.visible-print,td.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}} -/******************** - * HTML CSS - */ - - -.chartWrap { - margin: 0; - padding: 0; - overflow: hidden; -} - -/******************** - Box shadow and border radius styling -*/ -.nvtooltip.with-3d-shadow, .with-3d-shadow .nvtooltip { - -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2); - -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2); - box-shadow: 0 5px 10px rgba(0,0,0,.2); - - -webkit-border-radius: 6px; - -moz-border-radius: 6px; - border-radius: 6px; -} - -/******************** - * TOOLTIP CSS - */ - -.nvtooltip { - position: absolute; - background-color: rgba(255,255,255,1.0); - padding: 1px; - border: 1px solid rgba(0,0,0,.2); - z-index: 10000; - - font-family: Arial; - font-size: 13px; - text-align: left; - pointer-events: none; - - white-space: nowrap; - - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -/*Give tooltips that old fade in transition by - putting a "with-transitions" class on the container div. -*/ -.nvtooltip.with-transitions, .with-transitions .nvtooltip { - transition: opacity 250ms linear; - -moz-transition: opacity 250ms linear; - -webkit-transition: opacity 250ms linear; - - transition-delay: 250ms; - -moz-transition-delay: 250ms; - -webkit-transition-delay: 250ms; -} - -.nvtooltip.x-nvtooltip, -.nvtooltip.y-nvtooltip { - padding: 8px; -} - -.nvtooltip h3 { - margin: 0; - padding: 4px 14px; - line-height: 18px; - font-weight: normal; - background-color: rgba(247,247,247,0.75); - text-align: center; - - border-bottom: 1px solid #ebebeb; - - -webkit-border-radius: 5px 5px 0 0; - -moz-border-radius: 5px 5px 0 0; - border-radius: 5px 5px 0 0; -} - -.nvtooltip p { - margin: 0; - padding: 5px 14px; - text-align: center; -} - -.nvtooltip span { - display: inline-block; - margin: 2px 0; -} - -.nvtooltip table { - margin: 6px; - border-spacing:0; -} - - -.nvtooltip table td { - padding: 2px 9px 2px 0; - vertical-align: middle; -} - -.nvtooltip table td.key { - font-weight:normal; -} -.nvtooltip table td.value { - text-align: right; - font-weight: bold; -} - -.nvtooltip table tr.highlight td { - padding: 1px 9px 1px 0; - border-bottom-style: solid; - border-bottom-width: 1px; - border-top-style: solid; - border-top-width: 1px; -} - -.nvtooltip table td.legend-color-guide div { - width: 8px; - height: 8px; - vertical-align: middle; -} - -.nvtooltip .footer { - padding: 3px; - text-align: center; -} - - -.nvtooltip-pending-removal { - position: absolute; - pointer-events: none; -} - - -/******************** - * SVG CSS - */ - - -svg { - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - /* Trying to get SVG to act like a greedy block in all browsers */ - display: block; - width:100%; - height:100%; -} - - -svg text { - font: normal 12px Arial; -} - -svg .title { - font: bold 14px Arial; -} - -.nvd3 .nv-background { - fill: white; - fill-opacity: 0; - /* - pointer-events: none; - */ -} - -.nvd3.nv-noData { - font-size: 18px; - font-weight: bold; -} - - -/********** -* Brush -*/ - -.nv-brush .extent { - fill-opacity: .125; - shape-rendering: crispEdges; -} - - - -/********** -* Legend -*/ - -.nvd3 .nv-legend .nv-series { - cursor: pointer; -} - -.nvd3 .nv-legend .disabled circle { - fill-opacity: 0; -} - - - -/********** -* Axes -*/ -.nvd3 .nv-axis { - pointer-events:none; -} - -.nvd3 .nv-axis path { - fill: none; - stroke: #000; - stroke-opacity: .75; - shape-rendering: crispEdges; -} - -.nvd3 .nv-axis path.domain { - stroke-opacity: .75; -} - -.nvd3 .nv-axis.nv-x path.domain { - stroke-opacity: 0; -} - -.nvd3 .nv-axis line { - fill: none; - stroke: #e5e5e5; - shape-rendering: crispEdges; -} - -.nvd3 .nv-axis .zero line, -/*this selector may not be necessary*/ .nvd3 .nv-axis line.zero { - stroke-opacity: .75; -} - -.nvd3 .nv-axis .nv-axisMaxMin text { - font-weight: bold; -} - -.nvd3 .x .nv-axis .nv-axisMaxMin text, -.nvd3 .x2 .nv-axis .nv-axisMaxMin text, -.nvd3 .x3 .nv-axis .nv-axisMaxMin text { - text-anchor: middle -} - - - -/********** -* Brush -*/ - -.nv-brush .resize path { - fill: #eee; - stroke: #666; -} - - - -/********** -* Bars -*/ - -.nvd3 .nv-bars .negative rect { - zfill: brown; -} - -.nvd3 .nv-bars rect { - zfill: steelblue; - fill-opacity: .75; - - transition: fill-opacity 250ms linear; - -moz-transition: fill-opacity 250ms linear; - -webkit-transition: fill-opacity 250ms linear; -} - -.nvd3 .nv-bars rect.hover { - fill-opacity: 1; -} - -.nvd3 .nv-bars .hover rect { - fill: lightblue; -} - -.nvd3 .nv-bars text { - fill: rgba(0,0,0,0); -} - -.nvd3 .nv-bars .hover text { - fill: rgba(0,0,0,1); -} - - -/********** -* Bars -*/ - -.nvd3 .nv-multibar .nv-groups rect, -.nvd3 .nv-multibarHorizontal .nv-groups rect, -.nvd3 .nv-discretebar .nv-groups rect { - stroke-opacity: 0; - - transition: fill-opacity 250ms linear; - -moz-transition: fill-opacity 250ms linear; - -webkit-transition: fill-opacity 250ms linear; -} - -.nvd3 .nv-multibar .nv-groups rect:hover, -.nvd3 .nv-multibarHorizontal .nv-groups rect:hover, -.nvd3 .nv-discretebar .nv-groups rect:hover { - fill-opacity: 1; -} - -.nvd3 .nv-discretebar .nv-groups text, -.nvd3 .nv-multibarHorizontal .nv-groups text { - font-weight: bold; - fill: rgba(0,0,0,1); - stroke: rgba(0,0,0,0); -} - -/*********** -* Pie Chart -*/ - -.nvd3.nv-pie path { - stroke-opacity: 0; - transition: fill-opacity 250ms linear, stroke-width 250ms linear, stroke-opacity 250ms linear; - -moz-transition: fill-opacity 250ms linear, stroke-width 250ms linear, stroke-opacity 250ms linear; - -webkit-transition: fill-opacity 250ms linear, stroke-width 250ms linear, stroke-opacity 250ms linear; - -} - -.nvd3.nv-pie .nv-slice text { - stroke: #000; - stroke-width: 0; -} - -.nvd3.nv-pie path { - stroke: #fff; - stroke-width: 1px; - stroke-opacity: 1; -} - -.nvd3.nv-pie .hover path { - fill-opacity: .7; -} -.nvd3.nv-pie .nv-label { - pointer-events: none; -} -.nvd3.nv-pie .nv-label rect { - fill-opacity: 0; - stroke-opacity: 0; -} - -/********** -* Lines -*/ - -.nvd3 .nv-groups path.nv-line { - fill: none; - stroke-width: 1.5px; - /* - stroke-linecap: round; - shape-rendering: geometricPrecision; - - transition: stroke-width 250ms linear; - -moz-transition: stroke-width 250ms linear; - -webkit-transition: stroke-width 250ms linear; - - transition-delay: 250ms - -moz-transition-delay: 250ms; - -webkit-transition-delay: 250ms; - */ -} - -.nvd3 .nv-groups path.nv-line.nv-thin-line { - stroke-width: 1px; -} - - -.nvd3 .nv-groups path.nv-area { - stroke: none; - /* - stroke-linecap: round; - shape-rendering: geometricPrecision; - - stroke-width: 2.5px; - transition: stroke-width 250ms linear; - -moz-transition: stroke-width 250ms linear; - -webkit-transition: stroke-width 250ms linear; - - transition-delay: 250ms - -moz-transition-delay: 250ms; - -webkit-transition-delay: 250ms; - */ -} - -.nvd3 .nv-line.hover path { - stroke-width: 6px; -} - -/* -.nvd3.scatter .groups .point { - fill-opacity: 0.1; - stroke-opacity: 0.1; -} - */ - -.nvd3.nv-line .nvd3.nv-scatter .nv-groups .nv-point { - fill-opacity: 0; - stroke-opacity: 0; -} - -.nvd3.nv-scatter.nv-single-point .nv-groups .nv-point { - fill-opacity: .5 !important; - stroke-opacity: .5 !important; -} - - -.with-transitions .nvd3 .nv-groups .nv-point { - transition: stroke-width 250ms linear, stroke-opacity 250ms linear; - -moz-transition: stroke-width 250ms linear, stroke-opacity 250ms linear; - -webkit-transition: stroke-width 250ms linear, stroke-opacity 250ms linear; - -} - -.nvd3.nv-scatter .nv-groups .nv-point.hover, -.nvd3 .nv-groups .nv-point.hover { - stroke-width: 7px; - fill-opacity: .95 !important; - stroke-opacity: .95 !important; -} - - -.nvd3 .nv-point-paths path { - stroke: #aaa; - stroke-opacity: 0; - fill: #eee; - fill-opacity: 0; -} - - - -.nvd3 .nv-indexLine { - cursor: ew-resize; -} - - -/********** -* Distribution -*/ - -.nvd3 .nv-distribution { - pointer-events: none; -} - - - -/********** -* Scatter -*/ - -/* **Attempting to remove this for useVoronoi(false), need to see if it's required anywhere -.nvd3 .nv-groups .nv-point { - pointer-events: none; -} -*/ - -.nvd3 .nv-groups .nv-point.hover { - stroke-width: 20px; - stroke-opacity: .5; -} - -.nvd3 .nv-scatter .nv-point.hover { - fill-opacity: 1; -} - -/* -.nv-group.hover .nv-point { - fill-opacity: 1; -} -*/ - - -/********** -* Stacked Area -*/ - -.nvd3.nv-stackedarea path.nv-area { - fill-opacity: .7; - /* - stroke-opacity: .65; - fill-opacity: 1; - */ - stroke-opacity: 0; - - transition: fill-opacity 250ms linear, stroke-opacity 250ms linear; - -moz-transition: fill-opacity 250ms linear, stroke-opacity 250ms linear; - -webkit-transition: fill-opacity 250ms linear, stroke-opacity 250ms linear; - - /* - transition-delay: 500ms; - -moz-transition-delay: 500ms; - -webkit-transition-delay: 500ms; - */ - -} - -.nvd3.nv-stackedarea path.nv-area.hover { - fill-opacity: .9; - /* - stroke-opacity: .85; - */ -} -/* -.d3stackedarea .groups path { - stroke-opacity: 0; -} - */ - - - -.nvd3.nv-stackedarea .nv-groups .nv-point { - stroke-opacity: 0; - fill-opacity: 0; -} - -/* -.nvd3.nv-stackedarea .nv-groups .nv-point.hover { - stroke-width: 20px; - stroke-opacity: .75; - fill-opacity: 1; -}*/ - - - -/********** -* Line Plus Bar -*/ - -.nvd3.nv-linePlusBar .nv-bar rect { - fill-opacity: .75; -} - -.nvd3.nv-linePlusBar .nv-bar rect:hover { - fill-opacity: 1; -} - - -/********** -* Bullet -*/ - -.nvd3.nv-bullet { font: 10px sans-serif; } -.nvd3.nv-bullet .nv-measure { fill-opacity: .8; } -.nvd3.nv-bullet .nv-measure:hover { fill-opacity: 1; } -.nvd3.nv-bullet .nv-marker { stroke: #000; stroke-width: 2px; } -.nvd3.nv-bullet .nv-markerTriangle { stroke: #000; fill: #fff; stroke-width: 1.5px; } -.nvd3.nv-bullet .nv-tick line { stroke: #666; stroke-width: .5px; } -.nvd3.nv-bullet .nv-range.nv-s0 { fill: #eee; } -.nvd3.nv-bullet .nv-range.nv-s1 { fill: #ddd; } -.nvd3.nv-bullet .nv-range.nv-s2 { fill: #ccc; } -.nvd3.nv-bullet .nv-title { font-size: 14px; font-weight: bold; } -.nvd3.nv-bullet .nv-subtitle { fill: #999; } - - -.nvd3.nv-bullet .nv-range { - fill: #bababa; - fill-opacity: .4; -} -.nvd3.nv-bullet .nv-range:hover { - fill-opacity: .7; -} - - - -/********** -* Sparkline -*/ - -.nvd3.nv-sparkline path { - fill: none; -} - -.nvd3.nv-sparklineplus g.nv-hoverValue { - pointer-events: none; -} - -.nvd3.nv-sparklineplus .nv-hoverValue line { - stroke: #333; - stroke-width: 1.5px; - } - -.nvd3.nv-sparklineplus, -.nvd3.nv-sparklineplus g { - pointer-events: all; -} - -.nvd3 .nv-hoverArea { - fill-opacity: 0; - stroke-opacity: 0; -} - -.nvd3.nv-sparklineplus .nv-xValue, -.nvd3.nv-sparklineplus .nv-yValue { - /* - stroke: #666; - */ - stroke-width: 0; - font-size: .9em; - font-weight: normal; -} - -.nvd3.nv-sparklineplus .nv-yValue { - stroke: #f66; -} - -.nvd3.nv-sparklineplus .nv-maxValue { - stroke: #2ca02c; - fill: #2ca02c; -} - -.nvd3.nv-sparklineplus .nv-minValue { - stroke: #d62728; - fill: #d62728; -} - -.nvd3.nv-sparklineplus .nv-currentValue { - /* - stroke: #444; - fill: #000; - */ - font-weight: bold; - font-size: 1.1em; -} - -/********** -* historical stock -*/ - -.nvd3.nv-ohlcBar .nv-ticks .nv-tick { - stroke-width: 2px; -} - -.nvd3.nv-ohlcBar .nv-ticks .nv-tick.hover { - stroke-width: 4px; -} - -.nvd3.nv-ohlcBar .nv-ticks .nv-tick.positive { - stroke: #2ca02c; -} - -.nvd3.nv-ohlcBar .nv-ticks .nv-tick.negative { - stroke: #d62728; -} - -.nvd3.nv-historicalStockChart .nv-axis .nv-axislabel { - font-weight: bold; -} - -.nvd3.nv-historicalStockChart .nv-dragTarget { - fill-opacity: 0; - stroke: none; - cursor: move; -} - -.nvd3 .nv-brush .extent { - /* - cursor: ew-resize !important; - */ - fill-opacity: 0 !important; -} - -.nvd3 .nv-brushBackground rect { - stroke: #000; - stroke-width: .4; - fill: #fff; - fill-opacity: .7; -} - - - -/********** -* Indented Tree -*/ - - -/** - * TODO: the following 3 selectors are based on classes used in the example. I should either make them standard and leave them here, or move to a CSS file not included in the library - */ -.nvd3.nv-indentedtree .name { - margin-left: 5px; -} - -.nvd3.nv-indentedtree .clickable { - color: #08C; - cursor: pointer; -} - -.nvd3.nv-indentedtree span.clickable:hover { - color: #005580; - text-decoration: underline; -} - - -.nvd3.nv-indentedtree .nv-childrenCount { - display: inline-block; - margin-left: 5px; -} - -.nvd3.nv-indentedtree .nv-treeicon { - cursor: pointer; - /* - cursor: n-resize; - */ -} - -.nvd3.nv-indentedtree .nv-treeicon.nv-folded { - cursor: pointer; - /* - cursor: s-resize; - */ -} - -/********** -* Parallel Coordinates -*/ - -.nvd3 .background path { - fill: none; - stroke: #ccc; - stroke-opacity: .4; - shape-rendering: crispEdges; -} - -.nvd3 .foreground path { - fill: none; - stroke: steelblue; - stroke-opacity: .7; -} - -.nvd3 .brush .extent { - fill-opacity: .3; - stroke: #fff; - shape-rendering: crispEdges; -} - -.nvd3 .axis line, .axis path { - fill: none; - stroke: #000; - shape-rendering: crispEdges; -} - -.nvd3 .axis text { - text-shadow: 0 1px 0 #fff; -} - -/**** -Interactive Layer -*/ -.nvd3 .nv-interactiveGuideLine { - pointer-events:none; -} -.nvd3 line.nv-guideline { - stroke: #ccc; -}body { + *//*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date],input[type=time],input[type=datetime-local],input[type=month]{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px \9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.form-group-sm .form-control{height:30px;line-height:30px}select[multiple].form-group-sm .form-control,textarea.form-group-sm .form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:5px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.form-group-lg .form-control{height:46px;line-height:46px}select[multiple].form-group-lg .form-control,textarea.form-group-lg .form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:10px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:14.33px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.active,.btn-default.focus,.btn-default:active,.btn-default:focus,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.active,.btn-primary.focus,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.active,.btn-success.focus,.btn-success:active,.btn-success:focus,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.active,.btn-info.focus,.btn-info:active,.btn-info:focus,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.active,.btn-warning.focus,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.active,.btn-danger.focus,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px solid}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px)and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:2;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px 15px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding:48px 0}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{min-height:16.43px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-weight:400;line-height:1.4;filter:alpha(opacity=0);opacity:0}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-weight:400;line-height:1.42857143;text-align:left;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000;perspective:1000}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;margin-top:-10px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000 \9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px)and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px)and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px)and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px)and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px)and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px)and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px)and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px)and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px)and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px)and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}.nvd3 .nv-axis{pointer-events:none;opacity:1}.nvd3 .nv-axis path{fill:none;stroke:#000;stroke-opacity:.75;shape-rendering:crispEdges}.nvd3 .nv-axis path.domain{stroke-opacity:.75}.nvd3 .nv-axis.nv-x path.domain{stroke-opacity:0}.nvd3 .nv-axis line{fill:none;stroke:#e5e5e5;shape-rendering:crispEdges}.nvd3 .nv-axis .zero line,.nvd3 .nv-axis line.zero{stroke-opacity:.75}.nvd3 .nv-axis .nv-axisMaxMin text{font-weight:700}.nvd3 .x .nv-axis .nv-axisMaxMin text,.nvd3 .x2 .nv-axis .nv-axisMaxMin text,.nvd3 .x3 .nv-axis .nv-axisMaxMin text{text-anchor:middle}.nvd3 .nv-axis.nv-disabled{opacity:0}.nvd3 .nv-bars rect{fill-opacity:.75;transition:fill-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear}.nvd3 .nv-bars rect.hover{fill-opacity:1}.nvd3 .nv-bars .hover rect{fill:#add8e6}.nvd3 .nv-bars text{fill:rgba(0,0,0,0)}.nvd3 .nv-bars .hover text{fill:rgba(0,0,0,1)}.nvd3 .nv-multibar .nv-groups rect,.nvd3 .nv-multibarHorizontal .nv-groups rect,.nvd3 .nv-discretebar .nv-groups rect{stroke-opacity:0;transition:fill-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear}.nvd3 .nv-multibar .nv-groups rect:hover,.nvd3 .nv-multibarHorizontal .nv-groups rect:hover,.nvd3 .nv-candlestickBar .nv-ticks rect:hover,.nvd3 .nv-discretebar .nv-groups rect:hover{fill-opacity:1}.nvd3 .nv-discretebar .nv-groups text,.nvd3 .nv-multibarHorizontal .nv-groups text{font-weight:700;fill:rgba(0,0,0,1);stroke:rgba(0,0,0,0)}.nvd3 .nv-boxplot circle{fill-opacity:.5}.nvd3 .nv-boxplot circle:hover{fill-opacity:1}.nvd3 .nv-boxplot rect:hover{fill-opacity:1}.nvd3 line.nv-boxplot-median{stroke:#000}.nv-boxplot-tick:hover{stroke-width:2.5px}.nvd3.nv-bullet{font:10px sans-serif}.nvd3.nv-bullet .nv-measure{fill-opacity:.8}.nvd3.nv-bullet .nv-measure:hover{fill-opacity:1}.nvd3.nv-bullet .nv-marker{stroke:#000;stroke-width:2px}.nvd3.nv-bullet .nv-markerTriangle{stroke:#000;fill:#fff;stroke-width:1.5px}.nvd3.nv-bullet .nv-tick line{stroke:#666;stroke-width:.5px}.nvd3.nv-bullet .nv-range.nv-s0{fill:#eee}.nvd3.nv-bullet .nv-range.nv-s1{fill:#ddd}.nvd3.nv-bullet .nv-range.nv-s2{fill:#ccc}.nvd3.nv-bullet .nv-title{font-size:14px;font-weight:700}.nvd3.nv-bullet .nv-subtitle{fill:#999}.nvd3.nv-bullet .nv-range{fill:#bababa;fill-opacity:.4}.nvd3.nv-bullet .nv-range:hover{fill-opacity:.7}.nvd3.nv-candlestickBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.positive rect{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.negative rect{stroke:#d62728;fill:#d62728}.with-transitions .nv-candlestickBar .nv-ticks .nv-tick{transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-moz-transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-webkit-transition:stroke-width 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-candlestickBar .nv-ticks line{stroke:#333}.nvd3 .nv-legend .nv-disabled rect{}.nvd3 .nv-check-box .nv-box{fill-opacity:0;stroke-width:2}.nvd3 .nv-check-box .nv-check{fill-opacity:0;stroke-width:4}.nvd3 .nv-series.nv-disabled .nv-check-box .nv-check{fill-opacity:0;stroke-opacity:0}.nvd3 .nv-controlsWrap .nv-legend .nv-check-box .nv-check{opacity:0}.nvd3.nv-linePlusBar .nv-bar rect{fill-opacity:.75}.nvd3.nv-linePlusBar .nv-bar rect:hover{fill-opacity:1}.nvd3 .nv-groups path.nv-line{fill:none}.nvd3 .nv-groups path.nv-area{stroke:none}.nvd3.nv-line .nvd3.nv-scatter .nv-groups .nv-point{fill-opacity:0;stroke-opacity:0}.nvd3.nv-scatter.nv-single-point .nv-groups .nv-point{fill-opacity:.5!important;stroke-opacity:.5!important}.with-transitions .nvd3 .nv-groups .nv-point{transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-moz-transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-webkit-transition:stroke-width 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-scatter .nv-groups .nv-point.hover,.nvd3 .nv-groups .nv-point.hover{stroke-width:7px;fill-opacity:.95!important;stroke-opacity:.95!important}.nvd3 .nv-point-paths path{stroke:#aaa;stroke-opacity:0;fill:#eee;fill-opacity:0}.nvd3 .nv-indexLine{cursor:ew-resize}svg.nvd3-svg{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none;display:block;width:100%;height:100%}.nvtooltip.with-3d-shadow,.with-3d-shadow .nvtooltip{-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.nvd3 text{font:400 12px Arial}.nvd3 .title{font:700 14px Arial}.nvd3 .nv-background{fill:#fff;fill-opacity:0}.nvd3.nv-noData{font-size:18px;font-weight:700}.nv-brush .extent{fill-opacity:.125;shape-rendering:crispEdges}.nv-brush .resize path{fill:#eee;stroke:#666}.nvd3 .nv-legend .nv-series{cursor:pointer}.nvd3 .nv-legend .nv-disabled circle{fill-opacity:0}.nvd3 .nv-brush .extent{fill-opacity:0!important}.nvd3 .nv-brushBackground rect{stroke:#000;stroke-width:.4;fill:#fff;fill-opacity:.7}.nvd3.nv-ohlcBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.positive{stroke:#2ca02c}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.negative{stroke:#d62728}.nvd3 .background path{fill:none;stroke:#EEE;stroke-opacity:.4;shape-rendering:crispEdges}.nvd3 .foreground path{fill:none;stroke-opacity:.7}.nvd3 .nv-parallelCoordinates-brush .extent{fill:#fff;fill-opacity:.6;stroke:gray;shape-rendering:crispEdges}.nvd3 .nv-parallelCoordinates .hover{fill-opacity:1;stroke-width:3px}.nvd3 .missingValuesline line{fill:none;stroke:#000;stroke-width:1;stroke-opacity:1;stroke-dasharray:5,5}.nvd3.nv-pie path{stroke-opacity:0;transition:fill-opacity 250ms linear,stroke-width 250ms linear,stroke-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear,stroke-width 250ms linear,stroke-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear,stroke-width 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-pie .nv-pie-title{font-size:24px;fill:rgba(19,196,249,.59)}.nvd3.nv-pie .nv-slice text{stroke:#000;stroke-width:0}.nvd3.nv-pie path{stroke:#fff;stroke-width:1px;stroke-opacity:1}.nvd3.nv-pie .hover path{fill-opacity:.7}.nvd3.nv-pie .nv-label{pointer-events:none}.nvd3.nv-pie .nv-label rect{fill-opacity:0;stroke-opacity:0}.nvd3 .nv-groups .nv-point.hover{stroke-width:20px;stroke-opacity:.5}.nvd3 .nv-scatter .nv-point.hover{fill-opacity:1}.nv-noninteractive{pointer-events:none}.nv-distx,.nv-disty{pointer-events:none}.nvd3.nv-sparkline path{fill:none}.nvd3.nv-sparklineplus g.nv-hoverValue{pointer-events:none}.nvd3.nv-sparklineplus .nv-hoverValue line{stroke:#333;stroke-width:1.5px}.nvd3.nv-sparklineplus,.nvd3.nv-sparklineplus g{pointer-events:all}.nvd3 .nv-hoverArea{fill-opacity:0;stroke-opacity:0}.nvd3.nv-sparklineplus .nv-xValue,.nvd3.nv-sparklineplus .nv-yValue{stroke-width:0;font-size:.9em;font-weight:400}.nvd3.nv-sparklineplus .nv-yValue{stroke:#f66}.nvd3.nv-sparklineplus .nv-maxValue{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-sparklineplus .nv-minValue{stroke:#d62728;fill:#d62728}.nvd3.nv-sparklineplus .nv-currentValue{font-weight:700;font-size:1.1em}.nvd3.nv-stackedarea path.nv-area{fill-opacity:.7;stroke-opacity:0;transition:fill-opacity 250ms linear,stroke-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear,stroke-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-stackedarea path.nv-area.hover{fill-opacity:.9}.nvd3.nv-stackedarea .nv-groups .nv-point{stroke-opacity:0;fill-opacity:0}.nvtooltip{position:absolute;background-color:rgba(255,255,255,1);color:rgba(0,0,0,1);padding:1px;border:1px solid rgba(0,0,0,.2);z-index:10000;display:block;font-family:Arial;font-size:13px;text-align:left;pointer-events:none;white-space:nowrap;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.nvtooltip{background:rgba(255,255,255,.8);border:1px solid rgba(0,0,0,.5);border-radius:4px}.nvtooltip.with-transitions,.with-transitions .nvtooltip{transition:opacity 50ms linear;-moz-transition:opacity 50ms linear;-webkit-transition:opacity 50ms linear;transition-delay:200ms;-moz-transition-delay:200ms;-webkit-transition-delay:200ms}.nvtooltip.x-nvtooltip,.nvtooltip.y-nvtooltip{padding:8px}.nvtooltip h3{margin:0;padding:4px 14px;line-height:18px;font-weight:400;background-color:rgba(247,247,247,.75);color:rgba(0,0,0,1);text-align:center;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.nvtooltip p{margin:0;padding:5px 14px;text-align:center}.nvtooltip span{display:inline-block;margin:2px 0}.nvtooltip table{margin:6px;border-spacing:0}.nvtooltip table td{padding:2px 9px 2px 0;vertical-align:middle}.nvtooltip table td.key{font-weight:400}.nvtooltip table td.value{text-align:right;font-weight:700}.nvtooltip table tr.highlight td{padding:1px 9px 1px 0;border-bottom-style:solid;border-bottom-width:1px;border-top-style:solid;border-top-width:1px}.nvtooltip table td.legend-color-guide div{width:8px;height:8px;vertical-align:middle}.nvtooltip table td.legend-color-guide div{width:12px;height:12px;border:1px solid #999}.nvtooltip .footer{padding:3px;text-align:center}.nvtooltip-pending-removal{pointer-events:none;display:none}.nvd3 .nv-interactiveGuideLine{pointer-events:none}.nvd3 line.nv-guideline{stroke:#ccc}body { padding-top: 10px; } @@ -5709,10 +4357,18 @@ Interactive Layer border: 0 !important; } -.table tbody td.success, li.success, span.success { +.table tbody tr.covered-by-large-tests, li.covered-by-large-tests, tr.success, td.success, li.success, span.success { background-color: #dff0d8; } +.table tbody tr.covered-by-medium-tests, li.covered-by-medium-tests { + background-color: #c3e3b5; +} + +.table tbody tr.covered-by-small-tests, li.covered-by-small-tests { + background-color: #99cb84; +} + .table tbody tr.danger, .table tbody td.danger, li.danger, span.danger { background-color: #f2dede; } @@ -5788,14 +4444,15 @@ svg text { height:245px; overflow-x:hidden; overflow-y:scroll; -} +} + Dashboard for {{full_path}} - + test/DMLTest.php - test/MockTest.php + From cef8afe955b2dbadf720cc999789a28ece510bc4 Mon Sep 17 00:00:00 2001 From: bigbes Date: Tue, 6 Sep 2016 17:50:25 +0000 Subject: [PATCH 12/30] Move tools to utils.{c,h} + fix bug with reference encoding closes gh-93 --- config.m4 | 1 + src/tarantool.c | 23 +++++++----- src/tarantool_msgpack.c | 62 ++++++++---------------------- src/tarantool_msgpack.h | 6 +-- src/utils.c | 83 +++++++++++++++++++++++++++++++++++++++++ src/utils.h | 10 +++++ test/MsgPackTest.php | 8 ++++ 7 files changed, 133 insertions(+), 60 deletions(-) create mode 100644 src/utils.c create mode 100644 src/utils.h diff --git a/config.m4 b/config.m4 index 15f557d..79b864c 100644 --- a/config.m4 +++ b/config.m4 @@ -11,6 +11,7 @@ if test "$PHP_TARANTOOL" != "no"; then src/tarantool_proto.c \ src/tarantool_tp.c \ src/tarantool_exception.c \ + src/utils.c \ src/third_party/msgpuck.c \ src/third_party/sha1.c \ src/third_party/base64_tp.c \ diff --git a/src/tarantool.c b/src/tarantool.c index f7e2e6e..3ead74f 100644 --- a/src/tarantool.c +++ b/src/tarantool.c @@ -12,6 +12,8 @@ #include "tarantool_network.h" #include "tarantool_exception.h" +#include "utils.h" + int __tarantool_authenticate(tarantool_connection *obj); double @@ -466,8 +468,8 @@ static int64_t tarantool_step_recv( } else { tarantool_throw_exception( "Bad error field type. Expected" - " STRING, got %s", op_to_string( - z_error_str)); + " STRING, got %s", + tutils_op_to_string(z_error_str)); goto error; } } else { @@ -601,7 +603,8 @@ int convert_iterator(zval *iter, int all) { return Z_LVAL_P(iter); } else if (Z_TYPE_P(iter) != IS_STRING) { tarantool_throw_exception("Bad iterator type, expected NULL/STR" - "ING/LONG, got %s", op_to_string(iter)); + "ING/LONG, got %s", + tutils_op_to_string(iter)); } const char *iter_str = Z_STRVAL_P(iter); size_t iter_str_len = Z_STRLEN_P(iter); @@ -660,7 +663,7 @@ int get_spaceno_by_name(tarantool_connection *obj, zval *name) { } if (tarantool_schema_add_spaces(obj->schema, resp.data, resp.data_len)) { - // fprintf(stderr, "%s", php_base64_encode(resp.data, resp.data_len)->val); + tutils_hexdump_base(stderr, "\n", resp.data, resp.data_len); tarantool_throw_parsingexception("schema (space)"); return FAILURE; } @@ -720,7 +723,7 @@ int get_indexno_by_name(tarantool_connection *obj, int space_no, } if (tarantool_schema_add_indexes(obj->schema, resp.data, resp.data_len)) { - // fprintf(stderr, "%s", php_base64_encode(resp.data, resp.data_len)->val); + tutils_hexdump_base(stderr, "\n", resp.data, resp.data_len); tarantool_throw_parsingexception("schema (index)"); return FAILURE; } @@ -775,7 +778,7 @@ int get_fieldno_by_name(tarantool_connection *obj, uint32_t space_no, } if (tarantool_schema_add_spaces(obj->schema, resp.data, resp.data_len)) { - // fprintf(stderr, "%s", php_base64_encode(resp.data, resp.data_len)->val); + tutils_hexdump_base(stderr, "\n", resp.data, resp.data_len); tarantool_throw_parsingexception("schema (space)"); return FAILURE; } @@ -859,7 +862,7 @@ int tarantool_uwrite_op(tarantool_connection *obj, zval *op, uint32_t pos, THROW_EXC("Field ARG must be provided and must be LONG " "or DOUBLE for '%s' at position %d (got '%s')", Z_STRVAL_P(opstr), pos, - op_to_string(oparg)); + tutils_op_to_string(oparg)); goto cleanup; } php_tp_encode_uother(obj->value, Z_STRVAL_P(opstr)[0], @@ -876,7 +879,7 @@ int tarantool_uwrite_op(tarantool_connection *obj, zval *op, uint32_t pos, THROW_EXC("Field ARG must be provided and must be LONG " "for '%s' at position %d (got '%s')", Z_STRVAL_P(opstr), pos, - op_to_string(oparg)); + tutils_op_to_string(oparg)); goto cleanup; } php_tp_encode_uother(obj->value, Z_STRVAL_P(opstr)[0], @@ -1221,7 +1224,7 @@ int __tarantool_authenticate(tarantool_connection *obj) { if (tarantool_schema_add_spaces(obj->schema, resp.data, resp.data_len) && status != FAILURE) { - // fprintf(stderr, "%s", php_base64_encode(resp.data, resp.data_len)->val); + tutils_hexdump_base(stderr, "\n", resp.data, resp.data_len); tarantool_throw_parsingexception("schema (space)"); status = FAILURE; } @@ -1229,7 +1232,7 @@ int __tarantool_authenticate(tarantool_connection *obj) { if (tarantool_schema_add_indexes(obj->schema, resp.data, resp.data_len) && status != FAILURE) { - // fprintf(stderr, "%s", php_base64_encode(resp.data, resp.data_len)->val); + tutils_hexdump_base(stderr, "\n", resp.data, resp.data_len); tarantool_throw_parsingexception("schema (index)"); status = FAILURE; } diff --git a/src/tarantool_msgpack.c b/src/tarantool_msgpack.c index 01d3162..817e4c5 100644 --- a/src/tarantool_msgpack.c +++ b/src/tarantool_msgpack.c @@ -122,8 +122,9 @@ void php_mp_pack_array_recursively(smart_string *str, zval *val) { size_t key_index = 0; for (; key_index < n; ++key_index) { data = zend_hash_index_find(ht, key_index); - if (!data || data == val || - (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data)) && Z_ARRVAL_P(data)->u.v.nApplyCount > 1)) { + if (!data || data == val || (Z_TYPE_P(data) == IS_ARRAY && + ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data)) && + Z_ARRVAL_P(data)->u.v.nApplyCount > 1)) { php_mp_pack_nil(str); } else { if (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data))) @@ -164,8 +165,9 @@ void php_mp_pack_hash_recursively(smart_string *str, zval *val) { break; } data = zend_hash_get_current_data_ex(ht, &pos); - if (!data || data == val || - (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data)) && Z_ARRVAL_P(data)->u.v.nApplyCount > 1)) { + if (!data || data == val || (Z_TYPE_P(data) == IS_ARRAY && + ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data)) && + Z_ARRVAL_P(data)->u.v.nApplyCount > 1)) { php_mp_pack_nil(str); } else { if (Z_TYPE_P(data) == IS_ARRAY && ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(data))) @@ -178,6 +180,9 @@ void php_mp_pack_hash_recursively(smart_string *str, zval *val) { } void php_mp_pack(smart_string *str, zval *val) { + if (Z_TYPE_P(val) == IS_REFERENCE) + val = Z_REFVAL_P(val); + switch(Z_TYPE_P(val)) { case IS_NULL: php_mp_pack_nil(str); @@ -189,10 +194,8 @@ void php_mp_pack(smart_string *str, zval *val) { php_mp_pack_double(str, (double )Z_DVAL_P(val)); break; case IS_TRUE: - php_mp_pack_bool(str, 1); - break; case IS_FALSE: - php_mp_pack_bool(str, 0); + php_mp_pack_bool(str, Z_TYPE_P(val) == IS_TRUE ? 1 : 0); break; case IS_ARRAY: if (php_mp_is_hash(val)) @@ -270,42 +273,6 @@ ptrdiff_t php_mp_unpack_double(zval *oval, char **str) { return mp_sizeof_double(val); } -const char *op_to_string(zval *obj) { - zend_uchar type = Z_TYPE_P(obj); - switch(type) { - case(IS_NULL): - return "NULL"; - case(IS_LONG): - return "LONG"; - case(IS_DOUBLE): - return "DOUBLE"; - case(IS_TRUE): - return "TRUE"; - case(IS_FALSE): - return "FALSE"; - case(IS_ARRAY): - return "ARRAY"; - case(IS_OBJECT): - return "OBJECT"; - case(IS_STRING): - return "STRING"; - case(IS_RESOURCE): - return "RESOURCE"; - case(IS_CONSTANT): - return "CONSTANT"; -#ifdef IS_CONSTANT_ARRAY - case(IS_CONSTANT_ARRAY): - return "CONSTANT_ARRAY"; -#endif -#ifdef IS_CALLABLE - case(IS_CALLABLE): - return "CALLABLE"; -#endif - default: - return "UNKNOWN"; - } -} - ptrdiff_t php_mp_unpack_map(zval *oval, char **str) { TSRMLS_FETCH(); size_t len = mp_decode_map((const char **)str); @@ -500,6 +467,9 @@ size_t php_mp_sizeof_hash_recursively(zval *val) { size_t php_mp_sizeof(zval *val) { + if (Z_TYPE_P(val) == IS_REFERENCE) + val = Z_REFVAL_P(val); + switch(Z_TYPE_P(val)) { case IS_NULL: return php_mp_sizeof_nil(); @@ -510,11 +480,9 @@ size_t php_mp_sizeof(zval *val) { case IS_DOUBLE: return php_mp_sizeof_double((double )Z_DVAL_P(val)); break; - case IS_FALSE: - return php_mp_sizeof_bool(0); - break; case IS_TRUE: - return php_mp_sizeof_bool(1); + case IS_FALSE: + return php_mp_sizeof_bool(Z_TYPE_P(val) == IS_TRUE ? 1 : 0); break; case IS_ARRAY: if (php_mp_is_hash(val)) diff --git a/src/tarantool_msgpack.h b/src/tarantool_msgpack.h index 98126c5..c79c8c2 100644 --- a/src/tarantool_msgpack.h +++ b/src/tarantool_msgpack.h @@ -3,13 +3,14 @@ #include "php_tarantool.h" -#define PHP_MP_SERIALIZABLE_P(v) (Z_TYPE_P(v) == IS_NULL || \ +#define PHP_MP_SERIALIZABLE_P(v) (Z_TYPE_P(v) == IS_NULL || \ Z_TYPE_P(v) == IS_LONG || \ Z_TYPE_P(v) == IS_DOUBLE || \ Z_TYPE_P(v) == IS_FALSE || \ Z_TYPE_P(v) == IS_TRUE || \ Z_TYPE_P(v) == IS_ARRAY || \ - Z_TYPE_P(v) == IS_STRING) + Z_TYPE_P(v) == IS_STRING || \ + Z_TYPE_P(v) == IS_REFERENCE) size_t php_mp_check (const char *str, size_t str_size); void php_mp_pack (smart_string *buf, zval *val ); @@ -21,7 +22,6 @@ void php_mp_pack_package_size_basic (char *pos, size_t val); size_t php_mp_unpack_package_size (char *buf); int php_mp_is_hash(zval *val); -const char *op_to_string(zval *obj); void php_mp_pack_nil(smart_string *str); void php_mp_pack_long_pos(smart_string *str, long val); diff --git a/src/utils.c b/src/utils.c new file mode 100644 index 0000000..5a141c2 --- /dev/null +++ b/src/utils.c @@ -0,0 +1,83 @@ +#include "php_tarantool.h" + +#include "utils.h" + +#include + +const char *tutils_op_to_string(zval *obj) { + zend_uchar type = Z_TYPE_P(obj); + switch(type) { + case(IS_UNDEF): + return "UNDEF"; + case(IS_NULL): + return "NULL"; + case(IS_FALSE): + return "FALSE"; + case(IS_TRUE): + return "TRUE"; + case(IS_LONG): + return "LONG"; + case(IS_DOUBLE): + return "DOUBLE"; + case(IS_STRING): + return "STRING"; + case(IS_ARRAY): + return "ARRAY"; + case(IS_OBJECT): + return "OBJECT"; + case(IS_RESOURCE): + return "RESOURCE"; + case(IS_REFERENCE): + return "REFERENCE"; + case(IS_CONSTANT): + return "CONSTANT"; + case(IS_CONSTANT_AST): + return "CONSTANT_AST"; + case(IS_CALLABLE): + return "CALLABLE"; + default: + return "UNKNOWN"; + } +} + +void tutils_hexdump_base (FILE *ostream, char *desc, const char *addr, size_t len) { + size_t i; + unsigned char buff[17]; + const unsigned char *pc = addr; + + if (desc != NULL) { + fprintf(ostream, "%s:\n", desc); + } + + for (i = 0; i < len; i++) { + if (i % 16 == 0) { + if (i != 0) fprintf(ostream, " %s\n", buff); + fprintf(ostream, " %04x ", i); + } + + fprintf(ostream, " %02x", *pc); + + if ((*pc < 0x20) || (*pc > 0x7e)) + buff[i % 16] = '.'; + else + buff[i % 16] = *pc; + buff[(i % 16) + 1] = '\0'; + ++pc; + } + + while (i++ % 16 != 0) fprintf(ostream, " "); + + fprintf(ostream, " %s\n\n", buff); +} + +void tutils_hexdump (char *desc, const char *addr, size_t len) { + return tutils_hexdump_base(stdout, desc, addr, len); +} + +void tutils_hexdump_zs (char *desc, zend_string *val) { + return tutils_hexdump(desc, ZSTR_VAL(val), ZSTR_LEN(val)); +} + +void tutils_hexdump_ss (char *desc, smart_string *val) { + return tutils_hexdump(desc, val->c, val->len); +} diff --git a/src/utils.h b/src/utils.h new file mode 100644 index 0000000..3fcc0dd --- /dev/null +++ b/src/utils.h @@ -0,0 +1,10 @@ +#ifndef PHP_TNT_UTILS_H +#define PHP_TNT_UITLS_H + +const char *tutils_op_to_string(zval *obj); +void tutils_hexdump_base (FILE *ostream, char *desc, const char *addr, size_t len); +void tutils_hexdump (char *desc, const char *addr, size_t len); +void tutils_hexdump_zs (char *desc, zend_string *val); +void tutils_hexdump_ss (char *desc, smart_string *val); + +#endif /* PHP_TNT_UTILS_H */ diff --git a/test/MsgPackTest.php b/test/MsgPackTest.php index be64a6e..0b66e67 100644 --- a/test/MsgPackTest.php +++ b/test/MsgPackTest.php @@ -69,4 +69,12 @@ public function test_05_msgpack_string_keys() { $this->assertEquals($resp[0][2]['megusta'], array(1, 2, 3)); $this->assertTrue(True); } + + public function test_06_msgpack_array_reference() { + $data = [ + 'key1' => 'value1', + ]; + $link = &$data['key1']; + self::$tarantool->call('test_4', [$data]); + } } From 27697cf6c1bf0d87a46ac6412767d46aa04ce5f3 Mon Sep 17 00:00:00 2001 From: bigbes Date: Tue, 6 Sep 2016 18:10:03 +0000 Subject: [PATCH 13/30] Fix allocation of hash key --- src/tarantool.c | 34 +++++++++++++--------------------- src/tarantool_schema.c | 36 ++++++++++++++++++++---------------- src/tarantool_schema.h | 1 + 3 files changed, 34 insertions(+), 37 deletions(-) diff --git a/src/tarantool.c b/src/tarantool.c index 3ead74f..2dfb407 100644 --- a/src/tarantool.c +++ b/src/tarantool.c @@ -663,7 +663,6 @@ int get_spaceno_by_name(tarantool_connection *obj, zval *name) { } if (tarantool_schema_add_spaces(obj->schema, resp.data, resp.data_len)) { - tutils_hexdump_base(stderr, "\n", resp.data, resp.data_len); tarantool_throw_parsingexception("schema (space)"); return FAILURE; } @@ -722,8 +721,8 @@ int get_indexno_by_name(tarantool_connection *obj, int space_no, return FAILURE; } - if (tarantool_schema_add_indexes(obj->schema, resp.data, resp.data_len)) { - tutils_hexdump_base(stderr, "\n", resp.data, resp.data_len); + if (tarantool_schema_add_indexes(obj->schema, resp.data, + resp.data_len) == -1) { tarantool_throw_parsingexception("schema (index)"); return FAILURE; } @@ -778,7 +777,6 @@ int get_fieldno_by_name(tarantool_connection *obj, uint32_t space_no, } if (tarantool_schema_add_spaces(obj->schema, resp.data, resp.data_len)) { - tutils_hexdump_base(stderr, "\n", resp.data, resp.data_len); tarantool_throw_parsingexception("schema (space)"); return FAILURE; } @@ -1207,7 +1205,8 @@ int __tarantool_authenticate(tarantool_connection *obj) { if (tarantool_stream_read(obj, obj->value->c, body_size) == FAILURE) return FAILURE; - if (status == FAILURE) continue; + if (status == FAILURE) + continue; struct tnt_response resp; memset(&resp, 0, sizeof(struct tnt_response)); if (php_tp_response(&resp, obj->value->c, body_size) == -1) { @@ -1220,29 +1219,22 @@ int __tarantool_authenticate(tarantool_connection *obj) { resp.error_len); status = FAILURE; } - if (resp.sync == space_sync) { - if (tarantool_schema_add_spaces(obj->schema, resp.data, - resp.data_len) && - status != FAILURE) { - tutils_hexdump_base(stderr, "\n", resp.data, resp.data_len); + if (status != FAILURE) { + if (resp.sync == space_sync && tarantool_schema_add_spaces( + obj->schema, + resp.data, + resp.data_len) == -1) { tarantool_throw_parsingexception("schema (space)"); status = FAILURE; - } - } else if (resp.sync == index_sync) { - if (tarantool_schema_add_indexes(obj->schema, resp.data, - resp.data_len) && - status != FAILURE) { - tutils_hexdump_base(stderr, "\n", resp.data, resp.data_len); + } else if (resp.sync == index_sync && tarantool_schema_add_indexes( + obj->schema, + resp.data, + resp.data_len) == -1) { tarantool_throw_parsingexception("schema (index)"); status = FAILURE; } - } else if (resp.sync == auth_sync && resp.error) { - tarantool_throw_clienterror(resp.code, resp.error, - resp.error_len); - status = FAILURE; } } - return status; } diff --git a/src/tarantool_schema.c b/src/tarantool_schema.c index 6920578..54965db 100644 --- a/src/tarantool_schema.c +++ b/src/tarantool_schema.c @@ -78,7 +78,7 @@ schema_index_free(struct mh_schema_index_t *schema) { do { struct schema_key key_number = { (void *)&(ivalue->index_number), - sizeof(uint32_t) + sizeof(uint32_t), 0 }; index_slot = mh_schema_index_find(schema, &key_number, NULL); @@ -90,7 +90,7 @@ schema_index_free(struct mh_schema_index_t *schema) { do { struct schema_key key_string = { ivalue->index_name, - ivalue->index_name_len + ivalue->index_name_len, 0 }; index_slot = mh_schema_index_find(schema, &key_string, NULL); @@ -170,7 +170,7 @@ schema_space_free(struct mh_schema_space_t *schema) { do { struct schema_key key_number = { (void *)&(svalue->space_number), - sizeof(uint32_t) + sizeof(uint32_t), 0 }; space_slot = mh_schema_space_find(schema, &key_number, NULL); @@ -182,7 +182,7 @@ schema_space_free(struct mh_schema_space_t *schema) { do { struct schema_key key_string = { svalue->space_name, - svalue->space_name_len + svalue->space_name_len, 0 }; space_slot = mh_schema_space_find(schema, &key_string, NULL); @@ -404,16 +404,18 @@ tarantool_schema_add_spaces( struct mh_schema_space_t *schema = schema_obj->space_hash; const char *tuple = data; if (mp_check(&tuple, tuple + size)) - return -1; + goto error; tuple = data; if (mp_typeof(*tuple) != MP_ARRAY) - return -1; + goto error; uint32_t space_count = mp_decode_array(&tuple); while (space_count-- > 0) { if (schema_add_space(schema, &tuple)) - return -1; + goto error; } return 0; +error: + return -1; } static inline int schema_add_index( @@ -449,8 +451,8 @@ static inline int schema_add_index( case 0: if (mp_typeof(*tuple) != MP_UINT) goto error; - uint32_t space_number = mp_decode_uint(&tuple); - space_key.id = (void *)&(space_number); + space_key.number = mp_decode_uint(&tuple); + space_key.id = (void *)&(space_key.number); space_key.id_len = sizeof(uint32_t); break; /* index ID */ @@ -520,16 +522,18 @@ tarantool_schema_add_indexes( struct mh_schema_space_t *schema = schema_obj->space_hash; const char *tuple = data; if (mp_check(&tuple, tuple + size)) - return -1; + goto error; tuple = data; if (mp_typeof(*tuple) != MP_ARRAY) - return -1; + goto error; uint32_t space_count = mp_decode_array(&tuple); while (space_count-- > 0) { if (schema_add_index(schema, &tuple)) - return -1; + goto error; } return 0; +error: + return -1; } int32_t @@ -540,7 +544,7 @@ tarantool_schema_get_sid_by_string( struct mh_schema_space_t *schema = schema_obj->space_hash; struct schema_key space_key = { space_name, - space_name_len + space_name_len, 0 }; mh_int_t space_slot = mh_schema_space_find(schema, &space_key, NULL); if (space_slot == mh_end(schema)) @@ -558,7 +562,7 @@ tarantool_schema_get_iid_by_string( struct mh_schema_space_t *schema = schema_obj->space_hash; struct schema_key space_key = { (void *)&sid, - sizeof(uint32_t) + sizeof(uint32_t), 0 }; mh_int_t space_slot = mh_schema_space_find(schema, &space_key, NULL); if (space_slot == mh_end(schema)) @@ -567,7 +571,7 @@ tarantool_schema_get_iid_by_string( space_slot); struct schema_key index_key = { index_name, - index_name_len + index_name_len, 0 }; mh_int_t index_slot = mh_schema_index_find(space->index_hash, &index_key, NULL); @@ -586,7 +590,7 @@ tarantool_schema_get_fid_by_string( struct mh_schema_space_t *schema = schema_obj->space_hash; struct schema_key space_key = { (void *)&sid, - sizeof(uint32_t) + sizeof(uint32_t), 0 }; mh_int_t space_slot = mh_schema_space_find(schema, &space_key, NULL); if (space_slot == mh_end(schema)) diff --git a/src/tarantool_schema.h b/src/tarantool_schema.h index f4ec68b..537738e 100644 --- a/src/tarantool_schema.h +++ b/src/tarantool_schema.h @@ -4,6 +4,7 @@ struct schema_key { const char *id; uint32_t id_len; + uint32_t number; }; enum field_type { From e77eee72c228af841e9f91e3a9ae607caa368dc2 Mon Sep 17 00:00:00 2001 From: bigbes Date: Tue, 22 Nov 2016 20:12:27 +0300 Subject: [PATCH 14/30] Fix compilation warnings and Replace base64 --- config.m4 | 1 - src/third_party/base64_tp.c | 300 ------------------------------------ src/third_party/base64_tp.h | 91 ----------- src/third_party/tp.h | 14 +- src/utils.c | 4 +- src/utils.h | 2 +- tarantool.ini | 8 - test-run.py | 3 + test/shared/phpunit.xml | 2 +- 9 files changed, 16 insertions(+), 409 deletions(-) delete mode 100644 src/third_party/base64_tp.c delete mode 100644 src/third_party/base64_tp.h delete mode 100644 tarantool.ini diff --git a/config.m4 b/config.m4 index 79b864c..c8b5097 100644 --- a/config.m4 +++ b/config.m4 @@ -14,7 +14,6 @@ if test "$PHP_TARANTOOL" != "no"; then src/utils.c \ src/third_party/msgpuck.c \ src/third_party/sha1.c \ - src/third_party/base64_tp.c \ src/third_party/PMurHash.c \ , $ext_shared) PHP_ADD_BUILD_DIR([$ext_builddir/src/]) diff --git a/src/third_party/base64_tp.c b/src/third_party/base64_tp.c deleted file mode 100644 index 0c8dc16..0000000 --- a/src/third_party/base64_tp.c +++ /dev/null @@ -1,300 +0,0 @@ -/* - * Redistribution and use in source and binary forms, with or - * without modification, are permitted provided that the following - * conditions are met: - * - * 1. Redistributions of source code must retain the above - * copyright notice, this list of conditions and the - * following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL - * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF - * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ -#include "base64_tp.h" -/* - * This is part of the libb64 project, and has been placed in the - * public domain. For details, see - * http://sourceforge.net/projects/libb64 - */ - -/* {{{ encode */ - -enum base64_tp_encodestep { step_A, step_B, step_C }; - -struct base64_tp_encodestate { - enum base64_tp_encodestep step; - char result; - int stepcount; -}; - -static inline void -base64_tp_encodestate_init(struct base64_tp_encodestate *state) -{ - state->step = step_A; - state->result = 0; - state->stepcount = 0; -} - -static inline char -base64_tp_encode_value(char value) -{ - static const char encoding[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; - unsigned codepos = (unsigned) value; - if (codepos > sizeof(encoding) - 1) - return '='; - return encoding[codepos]; -} - -static int -base64_tp_encode_block(const char *in_bin, int in_len, - char *out_base64_tp, int out_len, - struct base64_tp_encodestate *state) -{ - const char *const in_end = in_bin + in_len; - const char *in_pos = in_bin; - char *out_pos = out_base64_tp; - char *out_end = out_base64_tp + out_len; - char result; - char fragment; - - result = state->result; - - switch (state->step) - { - while (1) - { - case step_A: - if (in_pos == in_end || out_pos >= out_end) { - state->result = result; - state->step = step_A; - return out_pos - out_base64_tp; - } - fragment = *in_pos++; - result = (fragment & 0x0fc) >> 2; - *out_pos++ = base64_tp_encode_value(result); - result = (fragment & 0x003) << 4; - case step_B: - if (in_pos == in_end || out_pos >= out_end) { - state->result = result; - state->step = step_B; - return out_pos - out_base64_tp; - } - fragment = *in_pos++; - result |= (fragment & 0x0f0) >> 4; - *out_pos++ = base64_tp_encode_value(result); - result = (fragment & 0x00f) << 2; - case step_C: - if (in_pos == in_end || out_pos + 2 >= out_end) { - state->result = result; - state->step = step_C; - return out_pos - out_base64_tp; - } - fragment = *in_pos++; - result |= (fragment & 0x0c0) >> 6; - *out_pos++ = base64_tp_encode_value(result); - result = (fragment & 0x03f) >> 0; - *out_pos++ = base64_tp_encode_value(result); - - /* - * Each full step (A->B->C) yields - * 4 characters. - */ - if (++state->stepcount * 4 == BASE64_CHARS_PER_LINE) { - if (out_pos >= out_end) - return out_pos - out_base64_tp; - *out_pos++ = '\n'; - state->stepcount = 0; - } - } - } - /* control should not reach here */ - return out_pos - out_base64_tp; -} - -static int -base64_tp_encode_blockend(char *out_base64_tp, int out_len, - struct base64_tp_encodestate *state) -{ - char *out_pos = out_base64_tp; - char *out_end = out_base64_tp + out_len; - - switch (state->step) { - case step_B: - if (out_pos + 2 >= out_end) - return out_pos - out_base64_tp; - *out_pos++ = base64_tp_encode_value(state->result); - *out_pos++ = '='; - *out_pos++ = '='; - break; - case step_C: - if (out_pos + 1 >= out_end) - return out_pos - out_base64_tp; - *out_pos++ = base64_tp_encode_value(state->result); - *out_pos++ = '='; - break; - case step_A: - break; - } - if (out_pos >= out_end) - return out_pos - out_base64_tp; -#if 0 - /* Sometimes the output is useful without a newline. */ - *out_pos++ = '\n'; - if (out_pos >= out_end) - return out_pos - out_base64_tp; -#endif - *out_pos = '\0'; - return out_pos - out_base64_tp; -} - -int -base64_tp_encode(const char *in_bin, int in_len, - char *out_base64_tp, int out_len) -{ - struct base64_tp_encodestate state; - base64_tp_encodestate_init(&state); - int res = base64_tp_encode_block(in_bin, in_len, out_base64_tp, - out_len, &state); - return res + base64_tp_encode_blockend(out_base64_tp + res, out_len - res, - &state); -} - -/* }}} */ - -/* {{{ decode */ - -enum base64_tp_decodestep { step_a, step_b, step_c, step_d }; - -struct base64_tp_decodestate -{ - enum base64_tp_decodestep step; - char result; -}; - -static char -base64_tp_decode_value(char value) -{ - static const char decoding[] = { - 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, - 59, 60, 61, -1, -1, -1, -2, -1, -1, -1, 0, 1, - 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, - 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 46, 47, 48, 49, 50, 51 - }; - static const char decoding_size = sizeof(decoding); - int codepos = (signed char) value; - codepos -= 43; - if (codepos < 0 || codepos > decoding_size) - return -1; - return decoding[codepos]; -} - -static inline void -base64_tp_decodestate_init(struct base64_tp_decodestate *state) -{ - state->step = step_a; - state->result = 0; -} - -static int -base64_tp_decode_block(const char *in_base64_tp, int in_len, - char *out_bin, int out_len, - struct base64_tp_decodestate *state) -{ - const char *in_pos = in_base64_tp; - const char *in_end = in_base64_tp + in_len; - char *out_pos = out_bin; - char *out_end = out_bin + out_len; - char fragment; - - *out_pos = state->result; - - switch (state->step) - { - while (1) - { - case step_a: - do { - if (in_pos == in_end || out_pos >= out_end) - { - state->step = step_a; - state->result = *out_pos; - return out_pos - out_bin; - } - fragment = base64_tp_decode_value(*in_pos++); - } while (fragment < 0); - *out_pos = (fragment & 0x03f) << 2; - case step_b: - do { - if (in_pos == in_end || out_pos >= out_end) - { - state->step = step_b; - state->result = *out_pos; - return out_pos - out_bin; - } - fragment = base64_tp_decode_value(*in_pos++); - } while (fragment < 0); - *out_pos++ |= (fragment & 0x030) >> 4; - if (out_pos < out_end) - *out_pos = (fragment & 0x00f) << 4; - case step_c: - do { - if (in_pos == in_end || out_pos >= out_end) - { - state->step = step_c; - state->result = *out_pos; - return out_pos - out_bin; - } - fragment = base64_tp_decode_value(*in_pos++); - } while (fragment < 0); - *out_pos++ |= (fragment & 0x03c) >> 2; - if (out_pos < out_end) - *out_pos = (fragment & 0x003) << 6; - case step_d: - do { - if (in_pos == in_end || out_pos >= out_end) - { - state->step = step_d; - state->result = *out_pos; - return out_pos - out_bin; - } - fragment = base64_tp_decode_value(*in_pos++); - } while (fragment < 0); - *out_pos++ |= (fragment & 0x03f); - } - } - /* control should not reach here */ - return out_pos - out_bin; -} - - - -int -base64_tp_decode(const char *in_base64_tp, int in_len, - char *out_bin, int out_len) -{ - struct base64_tp_decodestate state; - base64_tp_decodestate_init(&state); - return base64_tp_decode_block(in_base64_tp, in_len, - out_bin, out_len, &state); -} - -/* }}} */ diff --git a/src/third_party/base64_tp.h b/src/third_party/base64_tp.h deleted file mode 100644 index fcf3c83..0000000 --- a/src/third_party/base64_tp.h +++ /dev/null @@ -1,91 +0,0 @@ -#ifndef BASE64_H -#define BASE64_H -/* - * Redistribution and use in source and binary forms, with or - * without modification, are permitted provided that the following - * conditions are met: - * - * 1. Redistributions of source code must retain the above - * copyright notice, this list of conditions and the - * following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL - * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF - * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ -/* - * This is part of the libb64 project, and has been placed in the - * public domain. For details, see - * http://sourceforge.net/projects/libb64 - */ -#ifdef __cplusplus -extern "C" { -#endif - -#define BASE64_CHARS_PER_LINE 72 - -static inline int -base64_tp_bufsize(int binsize) -{ - int datasize = binsize * 4/3 + 4; - int newlines = ((datasize + BASE64_CHARS_PER_LINE - 1)/ - BASE64_CHARS_PER_LINE); - return datasize + newlines; -} - -/** - * Encode a binary stream into BASE64 text. - * - * @pre the buffer size is at least 4/3 of the stream - * size + stream_size/72 (newlines) + 4 - * - * @param[in] in_bin the binary input stream to decode - * @param[in] in_len size of the input - * @param[out] out_base64_tp output buffer for the encoded data - * @param[in] out_len buffer size, must be at least - * 4/3 of the input size - * - * @return the size of encoded output - */ - -int -base64_tp_encode(const char *in_bin, int in_len, - char *out_base64_tp, int out_len); - -/** - * Decode a BASE64 text into a binary - * - * @param[in] in_base64_tp the BASE64 stream to decode - * @param[in] in_len size of the input - * @param[out] out_bin output buffer size - * @param[in] out_len buffer size - * - * @pre the output buffer size must be at least - * 3/4 + 1 of the size of the input - * - * @return the size of decoded output - */ - -int base64_tp_decode(const char *in_base64_tp, int in_len, - char *out_bin, int out_len); - -#ifdef __cplusplus -} /* extern "C" */ -#endif -#endif /* BASE64_H */ - diff --git a/src/third_party/tp.h b/src/third_party/tp.h index 9027087..2f6a76f 100644 --- a/src/third_party/tp.h +++ b/src/third_party/tp.h @@ -4,10 +4,12 @@ #include #include #include +#include + #include "msgpuck.h" #include "sha1.h" -#include "base64_tp.h" -#include + +#include #ifdef __cplusplus extern "C" { @@ -1310,11 +1312,13 @@ tp_auth(struct tp *p, const char *salt_base64, const char *user, int ulen, const h = mp_encode_array(h, 2); h = mp_encode_str(h, 0, 0); - char salt[64]; - base64_tp_decode(salt_base64, 44, salt, 64); + // char salt[64]; + zend_string *salt = NULL; + salt = php_base64_decode((unsigned char *)salt_base64, 44); char scramble[SCRAMBLE_SIZE]; - tp_scramble_prepare(scramble, salt, pass, plen); + tp_scramble_prepare(scramble, salt->val, pass, plen); h = mp_encode_str(h, scramble, SCRAMBLE_SIZE); + zend_string_release(salt); } else { h = mp_encode_array(h, 0); } diff --git a/src/utils.c b/src/utils.c index 5a141c2..45467af 100644 --- a/src/utils.c +++ b/src/utils.c @@ -43,7 +43,7 @@ const char *tutils_op_to_string(zval *obj) { void tutils_hexdump_base (FILE *ostream, char *desc, const char *addr, size_t len) { size_t i; unsigned char buff[17]; - const unsigned char *pc = addr; + const unsigned char *pc = (const unsigned char *)addr; if (desc != NULL) { fprintf(ostream, "%s:\n", desc); @@ -52,7 +52,7 @@ void tutils_hexdump_base (FILE *ostream, char *desc, const char *addr, size_t le for (i = 0; i < len; i++) { if (i % 16 == 0) { if (i != 0) fprintf(ostream, " %s\n", buff); - fprintf(ostream, " %04x ", i); + fprintf(ostream, " %04zx ", i); } fprintf(ostream, " %02x", *pc); diff --git a/src/utils.h b/src/utils.h index 3fcc0dd..ed074f3 100644 --- a/src/utils.h +++ b/src/utils.h @@ -1,5 +1,5 @@ #ifndef PHP_TNT_UTILS_H -#define PHP_TNT_UITLS_H +#define PHP_TNT_UTILS_H const char *tutils_op_to_string(zval *obj); void tutils_hexdump_base (FILE *ostream, char *desc, const char *addr, size_t len); diff --git a/tarantool.ini b/tarantool.ini deleted file mode 100644 index 7166cba..0000000 --- a/tarantool.ini +++ /dev/null @@ -1,8 +0,0 @@ -extension = ./tarantool.so - -[tarantool] -timeout = 10 -request_timeout = 10 -con_per_host = 5 -persistent = 1 -retry_count = 10 diff --git a/test-run.py b/test-run.py index 82e7242..3179e9f 100755 --- a/test-run.py +++ b/test-run.py @@ -96,6 +96,9 @@ def main(): elif '--strace' in sys.argv: cmd = cmd + 'strace ' + find_php_bin() cmd = cmd + ' -c tarantool.ini {0}'.format(test_lib_path) + elif '--dtruss' in sys.argv: + cmd = cmd + 'sudo dtruss ' + find_php_bin() + cmd = cmd + ' -c tarantool.ini {0}'.format(test_lib_path) else: print find_php_bin() cmd = '{0} -c tarantool.ini {1}'.format(find_php_bin(), test_lib_path) diff --git a/test/shared/phpunit.xml b/test/shared/phpunit.xml index c1deabc..a4fbf47 120000 --- a/test/shared/phpunit.xml +++ b/test/shared/phpunit.xml @@ -1 +1 @@ -phpunit_bas.xml \ No newline at end of file +phpunit_tap.xml \ No newline at end of file From a49b200a93036c85a08c020b57171bfd4d6c9fa3 Mon Sep 17 00:00:00 2001 From: Eugine Blikh Date: Tue, 22 Nov 2016 19:34:40 +0000 Subject: [PATCH 15/30] Test for another old bug --- test-run.py | 2 +- test/CreateTest.php | 3 + test/RandomTest.php | 3 + test/shared/box.lua | 8 + test/shared/queue.yml | 1053 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 1068 insertions(+), 1 deletion(-) create mode 100644 test/shared/queue.yml diff --git a/test-run.py b/test-run.py index 3179e9f..a8381dd 100755 --- a/test-run.py +++ b/test-run.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2.7 import os import sys diff --git a/test/CreateTest.php b/test/CreateTest.php index c2c1ceb..05efae0 100644 --- a/test/CreateTest.php +++ b/test/CreateTest.php @@ -116,12 +116,15 @@ public function test_07_bad_guest_credentials() { * @expectedException TarantoolClientError * @expectedExceptionMessage Incorrect password supplied for user */ + /** + * Comment this, since behaviour of authentication with 'empty password' has changed public function test_07_01_bad_guest_credentials() { $c = new Tarantool('localhost', self::$port); $c->connect(); $this->assertTrue($c->ping()); $c->authenticate('guest', ''); } + */ /** * @dataProvider provideGoodCredentials diff --git a/test/RandomTest.php b/test/RandomTest.php index a83d2e1..b687352 100644 --- a/test/RandomTest.php +++ b/test/RandomTest.php @@ -39,4 +39,7 @@ public function test_03_another_big_response() { $this->assertEquals($i, count($result)); } } + public function test_04_get_strange_response() { + print_r(self::$tarantool->select("_schema", "12345")); + } } diff --git a/test/shared/box.lua b/test/shared/box.lua index b674df6..9612baf 100755 --- a/test/shared/box.lua +++ b/test/shared/box.lua @@ -1,9 +1,13 @@ #!/usr/bin/env tarantool local os = require('os') +local fio = require('fio') local fun = require('fun') local log = require('log') local json = require('json') +local yaml = require('yaml') + +log.info(fio.cwd()) require('console').listen(os.getenv('ADMIN_PORT')) box.cfg{ @@ -72,6 +76,10 @@ box.once('initialization', function() space:create_index('primary', { parts = {1, 'STR'} }) + local yml = io.open(fio.pathjoin(fio.cwd(), "../test/shared/queue.yml")):read("*a") + local tuple = yaml.decode(yml)[1] + tuple[1] = "12345" + box.space._schema:insert(tuple) end) function test_1() diff --git a/test/shared/queue.yml b/test/shared/queue.yml new file mode 100644 index 0000000..3ac3790 --- /dev/null +++ b/test/shared/queue.yml @@ -0,0 +1,1053 @@ +--- +- [0, 't', 17246528841530358, 15768000000000000, 15768000000000000, 0, 1478528841530358, + {'data': {'clientId': '581d679d14d2f5129674d2f0', 'badge': 0, 'uid': null, 'id': '58208f49c97904ea482d2da3', + 'type': 1, 'body': 'Андрей К.: Операционная система: Windows XP ProfessionalПроцессор: + Двухъядерный T2300E (1,66)графика: Intel Graphics Media Accelerator 950Экран: + 14,1-дюймовый WXGA (разрешение 1280 х 800)Жесткий диск: 80 Гб (5400 оборотов + в минуту)Оперативная память: 1GB 533MHz DDR2 SDRAM (2 модуля DIMM)Оптический + привод: DVD +/- RW DL (Matsuhita) + + + Ноутбук имеет 3 USB-порта, интегрированный считыватель смарт-карт, SD слот + для карты памяти, интегрированный Bluetooth, встроенный микрофон, кнопка презентации, + датчик внешнего освещения, беспроводные выключения / на кнопку, и датчик отпечатков + пальцев. + + + Причины для покупки: + + + В то время как я становлюсь все более мобильным, мой старый Dell Inspiron + 1100 стал слишком тяжелым, чтобы носить с собой. Мне нужен был компьютер, + который будет хорошо работать в многозадачном режиме, имеют приличное хранение, + возможность резервного копирования DVD. После некоторых утомительных исследований, + я купил ThinkPad Z60t, незадолго до Z61t с двухъядерным процессором вышел. Одной + из особенностей, которые я нашел полезным на ThinkPad по сравнению с HP, была + его довольно безболезненный System Migration Assistant: на HP, я в конечном + итоге делает все вручную. Я возвратил ThinkPad, потому что беспроводной не + работает должным образом, и я решил, что я не мог смириться с громкостью его + клавиатуры. Тогда я купил Dell E1405, только чтобы вернуть его на следующий + день. После обработки с ThinkPad, я был очень разочарован низким качеством + нового дизайна Dell: ее хрупкие пластиковые было признаком регресса от старых + моделей. Кроме того, оказалось, что звуковая карта установлена ​​на Dell не + позволяет для записи через Stereo Mix, но только через микрофон, то есть со + всеми шумами типизации, говорят, и т.д. И, как я уже говорил об этом к обслуживанию + клиентов , это также оказалось, что $ 200 инвестировала в гарантию 4 года + не покупал мне любую техническую поддержку: мне пришлось бы заплатить дополнительные + $ 200, чтобы добавить, что на! Все HP бизнес-модели, с другой стороны, приходят + с международной поддержкой 3-х лет. + + + Наконец, что поколебать мое решение в пользу nc6400 были следующими особенностями: + + + Качество компонентов:матовый экран (кажется ярче, чем ThinkPad, безусловно, + ярче, чем Inspiron 1100)твердый, но тихо клавиатурысдвоенные указывающие устройства + (сенсорная панель иджойстику) + + + представление:двухъядерный процессорэстетика:легкий вес (4,6 фунта, так же, + как Z60t, по сравнению с 5,3 фунта для E1405 или от Toshiba Tecra A6)твердый + встроенный, корпус из магниевого сплава (не алюминий, как и Tecra A6 или дешевый + пластик, как Dell)некрасивая, без мигающих кнопок (как модели HP, господствующих) + + + Где и как приобрели : + + + Я купил его непосредственно от HP по телефону. Я сделал это главным образом + для удобства возможного возвращения. Я заплатил $ 1399 + $ 45 налог. Он был + отправлен из Индианы, и прибыл на следующий день с $ 16 доставка. + + + Создание и дизайн + + +  + + Вид nc6400 HP с закрытой крышкой (просмотреть большое изображение ) + + + HP nc6400 имеет крепкий ощущение в ThinkPad. Там не прогибается на клавиатуре; петли + на крышке сильны.Я не носил его вокруг много, но, и я не уверен, если он будет + легко поцарапать, но это не дает это впечатление. Порты удобно расположены, + и расположение наушников и микрофона отмечена на вершине с небольшими беловатого + значками. Я предполагаю, что из-за размера ноутбука, не было места для указания + расположения портов USB и т.д. Вся поверхность компьютера кажется обрамленное + внутри тонкой отделкой, которая защищает порты, оптический привод, и громкоговорители + от прямого воздействия , если один случайно наткнуться на что-то при перемещении + ноутбука вокруг. Экран удерживается от задевая клавиатуры маленькими резиновыми + амортизаторами, расположенных вокруг экрана и два в нижней части клавиатуры. + + + экран + + + 14.1 "широкоформатный, благодаря своему аспекту, кажется, дает больше рабочего + пространства, чем 15" диагональю дисплея. Экран очень четкий и яркий. В отличие + от большинства ориентированных на потребителя ноутбуки в эти дни, HP предлагает + хороший матовый экран.Кажется, ярче, чем ThinkPad Z60t я и ярче и четче, чем + мой старый Inspiron 1100. И то, что я теперь пришли к пониманию, так как это + не глянцевый и отражающий вы не должны видеть ваше наперекосяк после того, + как прическу вы были писать бумагу в течение четырнадцати часов подряд! + + + Я думаю, что резолюция WGA + сделал бы вещи слишком мал, чтобы читать, так + что я решил для регулярного 1280 × 800 дисплей. + + + Там нет мертвых пикселей, нет утечки света. Как вариант, вы можете добавить + съемный фильтр конфиденциальности предотвращения ваш сосед в самолете из заглядывая + в вашей работе. + + + Динамики + + +  + + + Динамики расположены на передней панели компьютера, но и на правой стороне, + которая, несмотря на их качество, создает небольшую асимметрию в звуке. Сначала + я подумал, что это моно динамик (как на Dell D620, например). Это, вероятно, + может служить в качестве общего предупреждения: динамики, как правило, гораздо + меньше, чем они выглядят (см ThinkPad, в котором спикер занимает треть спикера + сетки распространяющейся по обе стороны от клавиатуры). + + + С другой стороны, по сравнению с ThinkPad, где только водитель переустановку + заверил меня, что динамики на самом деле существуют, но, в большинстве случаев, + бесполезно, вы можете установить громкость на HP nc6400, где это слишком громко! И + ни в каком смысле сделал я получаю напряженными визг, как я на Dell, который + не терпит высоких тонов. + + + Процессор и производительность: + + + Я оценивать работу главным образом на основе многозадачности, так как я не + использовать компьютер, чтобы играть в игры. У меня нет утилиты программного + обеспечения для запуска тестов по производительности, но вот что я бегу одновременно + и машина даже не заикаться: + + + загружая содержимое моего старого HD через FTPзагрузки более тысячи писем + с серверанесколько окон Firefox открылзагружать содержимое айподепередачи + некоторых других файлов с помощью USB-устройства хранения съемныхслушать музыкунаписание + двух файлов MS Wordработает словарь + + + Тепло и шум + + + Перегрев компьютер может быть причиной неисправности многих компонентов. С + моим Dell, например, охлаждающие вентиляторы изобретательно размещены на дне.Вентиляционные + отверстия на HP nc6400 находятся на левой стороне. Вы можете почувствовать + поток теплого воздуха выходит, и это хороший знак: остальное компьютер остается + прохладным. Нет дискомфорт, вызванный пылающий клавиатуре или поджаренными + пластика под запястья.Единственный раз, когда я на самом деле нашли машину, + а теплый, был день он прибыл, после того, как обрабатываются ИБП в более чем + сто градусов тепла. + + + Что касается шума, вы слышите лишь незначительное шепот болельщиков. В то + время как Dell вздымалась как астматический кита, то nc6400 тихо, как соня. + + + Клавиатура и тачпад + + +  + + ( Просмотреть большое изображение ) + + + Для того, чтобы кто - то типа большую часть дня, хорошая клавиатура является + обязательным. И я очень доволен этим. HP nc6400 имеет полноразмерную клавиатуру + и хороший макет, с дома, пг вверх, пг дп, конечные ключи смещение влево на + узкую делитель, а также клавиши со стрелками , немного ниже , чем другие клавиши. Fn ключ + в полный размер, хотя и не очень широко , как это на Inspiron 1100. С другой + стороны,Windows , ключ удобно расположен рядом с левой Ctrl и Fn . Те , кто + привык к сочетания клавиш одной рукой подостоинству оценят это. В отличие + от Toshiba, HP не сдавался второй Ctrl на правой руке. Я рад видеть , что вставкикнопки + перенесены в правом верхнем углу, а я путать с Delete и Ctrl на Dell.Тем не менее, + я не хватать , что удалитьключ на дне: вместо этого, все это путь в углу с вставкой . Клавиши + имеют устойчивый к царапинам, и четко обозначены, с основными именами ,написанными + маленькими буквами. + + +  + + ( Просмотреть большое изображение ) + + + Тачпад достаточно большой, с хорошим полосу прокрутки справа. Из-за джойстику, + существует два набора сенсорных кнопок, и достаточно малы.Я скучаю по тем + негабаритных кнопок на старых Dell, а также дополнительное пространство для + запястья. Край компьютера прессов немного в мои запястья; и если я поставил + поддержку запястья в передней части ноутбука, он будет охватывать динамиков. + + + На яркой стороне, мне нравится возможность переключения между тачпадом и джойстику, + в зависимости от того, где мои руки, как я типа или просматривать сеть. + + + Входные и выходные порты + + + Порты не превышают ожидания своих, и FireWire отсутствует: + + +  + + ( Просмотреть большое изображение ) + + + Вид спереди HP nc6400 + + + инфракрасныйСлот для SD-карт памяти + + +  + + ( Просмотреть большое изображение ) + + + Вид слева от HP nc6400 + + + 2 порта USBслот PC картаПорт для наушниковгнездо для микрофона + + +  + + ( Просмотреть большое изображение ) + + + Правый боковой вид HP nc6400 + + + 1 USBгнездо для сетевогогнездо для модема + + +  + + ( Просмотреть большое изображение ) + + + Оборотная сторона зрения HP nc6400 + + + S-Video гнездо выходаПорт внешнего монитораразъем питанияГнездо защитного + + + Я хотел было больше портов USB, так как на Asus (5) или даже ThinkPad (4): + Я определенно использовать их все (USB-активные колонки, принтер, + карта + памяти Memory Stick, IPod, цифровой фотоаппарат). + + + беспроводной + + + Intel Pro 802.11a / B / G с двойной антенной работает очень хорошо. Я разделяю + большой дом этим летом, и нет никаких проблем, подбирая сигнал от нашего маршрутизатора + даже в подвале. + + + У меня нет каких-либо устройств Bluetooth, чтобы проверить его работу. + + + аккумулятор + + + 6-элементная батарея дает 2HRS 45 минут исполнения, без ущерба для яркости + экрана или количество задач.Это никогда не бывает удобно для меня запустить + компьютер с тусклым экраном, но я полагаю, что если ваша жизнь должна висеть + на том, что батареи, вы можете сжать 4 часа из этих клеток. + + +  + + HP nc6400 вид снизу ( просмотреть увеличенное изображение ) + + + Операционная система и программное обеспечение + + + HP nc6400 поставляется с Windows XP Pro предустановленным. Там нет дисков. В + отличие от большинства ноутбуков , которые поступают с большим количеством + ознакомительные версии программного обеспечения, этот ноутбук был на самом + деле под настроены. Даже программное обеспечение компании должны быть распакованы + при помощи менеджера программного обеспечения , который устанавливает все, + включая InterVideo Win DVD, Соник DVD Maker, и даже датчик отпечатков пальцев. (Если + вы используете Nero, убедитесь , чтобы установить , прежде чем устанавливать + программное обеспечение любого производителя, в противном случае InCD не будет + установлен. К счастью, я узнал , что мой урок на другом компьютере). + + + Имея повод взглянуть на различных ноутбуках в настоящее время на рынке, я + заметил, что-то я не ожидал: не все версии Windows XP Pro равны.Они, кажется: + список Pro с WinXP SP1 все производители, и после того, как вы получаете их, + есть 36 обновлений, но некоторые функции работают лучше или хуже, чем на некоторых + на других.Например, на E1405 Dell, после настройки клавиатуры для других языков, + в региональных настройках, я не смог получить значок индикатор языка рядом + с системном трее.(Обслуживание клиентов Dell сказал бы мне, что это не является + стандартной функцией). В журнале-на экраны выглядели настолько различны, что + можно даже сомневаться, что это XP, а не Home издание на Dell. + + + Я был рад заметить, что у меня не было таких проблем с версией, установленной + на HP nc6400. + + + Я не так много использовали несколько программного обеспечения безопасности, + но я уже могу сказать, что это не так, удобной для пользователей ThinkPad + х. Благодаря выбору логины (отпечатки пальцев, жетоны, пароли), это программное + обеспечение предназначено в основном для корпоративных клиентов многопользовательского. + + + Служба поддержки + + + Как правило, я подхожу поддержки клиентов со скептицизмом. В то время как + продавцы вежливые и достаточно осведомленный (особенно в бизнес-подразделения), + техническая поддержка обычно оказывается довольно неумелой. Мой единственный + опыт с поддержкой HP до сих пор была предпродажная: Я попросил технического + представителя, чтобы сказать мне, что объем контроля он видел в настройках + объем для записи. Это заняло два повтора и полчаса. Другой опыт касался в + скидку $ 100, который должен был прийти с моделью. Веб-сайт, который, до того + дня, прежде чем я получил свой компьютер, показал информацию для устаревших + скидок, не был обновлен, и никаких следов скидки! Я получить его в конце концов + решил, но дело в том: вы должны быть на пальцах. + + + С другой стороны, я надеюсь, что у меня не будет использовать свою техническую + поддержку, в то время как 3-летняя гарантия должна охватывать частей и обслуживания. + + + Чехол + + + HP не продает хорошие облегающие рукава, и это не так легко найти широкоформатный + рукава на рынке. Я купил шахту от Sony Vaio: его $ 24 неопрена рукава сделаны + право размера, как Sony FJ & модели BX540 имеют точно такие же размеры. Рукав + пришел с хорошей сумке для кабеля питания. + + + Вывод + + + HP nc6400 является большим, но простой ноутбук, предлагая высокую производительность. Это, + безусловно, инструмент, а не игрушка. Если вы ищете для игрового ноутбука, + я рекомендовал бы более высокий графический интерфейс, возможно, процессор + AMD. Но если ваша главная потребность многозадачности и иногда средства массовой + информации, это один из лучших ноутбуков на рынке. В качестве последнего замечания, + хотя HP, кажется, не предлагать настраиваемые модели, некоторые функции могут + быть изменены (больший жесткий диск и т.д.), если вы можете позволить себе + ждать 4-5 недель. + + + + Профи + + + качество сборкиценаХорошая производительностьСтандартная гарантия 3 годаэкран + MattТвердая тихая клавиатура с удобной планировкойХорошо звучащие колонкиВидатьНет + нежелательной программного обеспеченияОблегченный + + + Минусы + + + Асимметричный размещение динамиковНет настройки по выборуМаленькие кнопки + тачпадаОграниченная область запястья + + + + Магазин сопутствующих товаров + + +  + + + HP 6005 Pro Desktop PC - AMD Athlon X ... + + + $ 149,00$ 399,00 + + +  (68) + + +  + + + 2016 Новые Lenovo ThinkPad Edge E5 ... + + + $ 567,99 + + +  (10) + + +  + + + Dell 15,6-дюймовый игровой ноутбук (6-Gen Intel Q ... + + + $ 769,99 + + +  (1119) + + +  + + + Dell Inspiron i7559-2512BLK 15,6-дюймовый F ... + + + $ 822,75 + + +  (436) + + +  + + + 32GB KIT (2 х 16 Гб) для HP-Compaq ProLiant серии SL390s G7 (626446-B21) SL390s + G7 (626447-B21) SL390s G7 (626448-B21) SL390s G7 (626449-B21). DIMM DDR3 ECC + Registered PC3-12800 1600MHz Dual Rank Память RAM.Подлинная A-Tech Марка. + + + $ 355,51$ 683,98 + + +  + + + 2016 New Edition Dell Inspiron 15,6 "дисплей HD Премиум Высокая производительность + портативных ПК, Intel Core i3-5015U 2,1 ГГц процессор, 4 Гб оперативной памяти, + 1 Тб HDD, HDMI, Bluetooth, Wi-Fi, веб-камера, MaxxAudio, Windows 10, черный + + + $ 312,40 + + +  (7) + + +  + + + Lenovo Thinkpad T420 - Intel Core i5 2520M 8GB 320GB Win 7 Pro (Сертифицированный + капремонта) + + + $ 329.99 + + +  (170) + + +  + + + Lenovo 2-го поколения ThinkPad X1 Carbon 14 "WQHD сенсорный портативный компьютер, + Intel Dual Core i5-4300U CPU до 2.9GHz, 8 Гб оперативной памяти, 256 Гб SSD, + 802.11ac, Bluetooth, Windows 10 Pro (Сертифицированный капремонта) + + + $ 649.00 + + +  (6) + + +  + + + Lenovo ThinkPad T450 14 "LED бизнеса Ultrabook: Intel Core i5-4300U | 8GB + | 500GB 7200rpm | 14" (1366x768) | Windows 7 Professional Обновляемая для + Win 8 Pro | Bluetooth |Считыватель отпечатков пальцев. + + + $ 640.00 + + +  (36) + + +  + + + 2016 Lenovo IBM ThinkPad X220T Convertible бизнес-ноутбук, 12.5 "HD сенсорный + экран, процессор Intel Core i5 до 3,2 ГГц, 4 Гб DDR3, 160GB SSD, RJ45, Windows + 7 Professional (Сертифицированный капремонта) + + + $ 319.00 + + +  (9) + + +  + + + Kingston 8 GB DDR2 SDRAM Модуль памяти 8 ГБ (2 х 4 ГБ) 667MHz ECC Chipkill + DDR2 SDRAM 240pin KTM2759K2 / 8G + + + $ 32.50$ 299.99 + + +  (4) + + +  + + + Dell Certified Память 2 ГБ DDR2 SDRAM Модуль памяти 2 GB 800MHz DDR2800 / + PC26400 DDR2 SDRAM DIMM 240pin (SNPYG410C / 2G) + + + $ 13,98$ 74,05 + + +  (166) + + +  + + + Модуль памяти HP 8GB DDR2 SDRAM - 2K23830 + + + $ 18.00$ 77.86 + + +  (11) + + +  + + + HP 6005 Pro Desktop PC - AMD Athlon X2 3.0GHz 4gb 160gb DVD Windows 7 Pro + (Сертифицированный капремонта) + + + $ 399.00 + + +  (41) + + +  + + + HP Compaq dc7900 USFF Настольный ПК - Intel Core 2 Duo 3.0GHz 4GB 160GB DVD + Windows 7 Pro (Сертифицированный капремонта) + + + $ 259.99 + + +  (16) + + +  + + + Lenovo IBM Thinkpad T410 Ноутбук 14.1 "Windows 7 Professional, процессор Intel + Core i5 (2,40 ГГц), 128 Гб SDD, 4 Гб памяти (Сертифицированный капремонта) + + + $ 999.00 + + +  (16) + + +  + + + AmazonBasics 14-дюймовый ноутбук и планшетный сумка + + + $ 13,99 + + +  (9607) + + + + Операционная система: Windows XP ProfessionalПроцессор: Двухъядерный T2300E + (1,66)графика: Intel Graphics Media Accelerator 950Экран: 14,1-дюймовый WXGA + (разрешение 1280 х 800)Жесткий диск: 80 Гб (5400 оборотов в минуту)Оперативная + память: 1GB 533MHz DDR2 SDRAM (2 модуля DIMM)Оптический привод: DVD +/- RW + DL (Matsuhita) + + + Ноутбук имеет 3 USB-порта, интегрированный считыватель смарт-карт, SD слот + для карты памяти, интегрированный Bluetooth, встроенный микрофон, кнопка презентации, + датчик внешнего освещения, беспроводные выключения / на кнопку, и датчик отпечатков + пальцев. + + + Причины для покупки: + + + В то время как я становлюсь все более мобильным, мой старый Dell Inspiron + 1100 стал слишком тяжелым, чтобы носить с собой. Мне нужен был компьютер, + который будет хорошо работать в многозадачном режиме, имеют приличное хранение, + возможность резервного копирования DVD. После некоторых утомительных исследований, + я купил ThinkPad Z60t, незадолго до Z61t с двухъядерным процессором вышел. Одной + из особенностей, которые я нашел полезным на ThinkPad по сравнению с HP, была + его довольно безболезненный System Migration Assistant: на HP, я в конечном + итоге делает все вручную. Я возвратил ThinkPad, потому что беспроводной не + работает должным образом, и я решил, что я не мог смириться с громкостью его + клавиатуры. Тогда я купил Dell E1405, только чтобы вернуть его на следующий + день. После обработки с ThinkPad, я был очень разочарован низким качеством + нового дизайна Dell: ее хрупкие пластиковые было признаком регресса от старых + моделей. Кроме того, оказалось, что звуковая карта установлена ​​на Dell не + позволяет для записи через Stereo Mix, но только через микрофон, то есть со + всеми шумами типизации, говорят, и т.д. И, как я уже говорил об этом к обслуживанию + клиентов , это также оказалось, что $ 200 инвестировала в гарантию 4 года + не покупал мне любую техническую поддержку: мне пришлось бы заплатить дополнительные + $ 200, чтобы добавить, что на! Все HP бизнес-модели, с другой стороны, приходят + с международной поддержкой 3-х лет. + + + Наконец, что поколебать мое решение в пользу nc6400 были следующими особенностями: + + + Качество компонентов:матовый экран (кажется ярче, чем ThinkPad, безусловно, + ярче, чем Inspiron 1100)твердый, но тихо клавиатурысдвоенные указывающие устройства + (сенсорная панель иджойстику) + + + представление:двухъядерный процессорэстетика:легкий вес (4,6 фунта, так же, + как Z60t, по сравнению с 5,3 фунта для E1405 или от Toshiba Tecra A6)твердый + встроенный, корпус из магниевого сплава (не алюминий, как и Tecra A6 или дешевый + пластик, как Dell)некрасивая, без мигающих кнопок (как модели HP, господствующих) + + + Где и как приобрели : + + + Я купил его непосредственно от HP по телефону. Я сделал это главным образом + для удобства возможного возвращения. Я заплатил $ 1399 + $ 45 налог. Он был + отправлен из Индианы, и прибыл на следующий день с $ 16 доставка. + + + Создание и дизайн + + +  + + Вид nc6400 HP с закрытой крышкой (просмотреть большое изображение ) + + + HP nc6400 имеет крепкий ощущение в ThinkPad. Там не прогибается на клавиатуре; петли + на крышке сильны.Я не носил его вокруг много, но, и я не уверен, если он будет + легко поцарапать, но это не дает это впечатление. Порты удобно расположены, + и расположение наушников и микрофона отмечена на вершине с небольшими беловатого + значками. Я предполагаю, что из-за размера ноутбука, не было места для указания + расположения портов USB и т.д. Вся поверхность компьютера кажется обрамленное + внутри тонкой отделкой, которая защищает порты, оптический привод, и громкоговорители + от прямого воздействия , если один случайно наткнуться на что-то при перемещении + ноутбука вокруг. Экран удерживается от задевая клавиатуры маленькими резиновыми + амортизаторами, расположенных вокруг экрана и два в нижней части клавиатуры. + + + экран + + + 14.1 "широкоформатный, благодаря своему аспекту, кажется, дает больше рабочего + пространства, чем 15" диагональю дисплея. Экран очень четкий и яркий. В отличие + от большинства ориентированных на потребителя ноутбуки в эти дни, HP предлагает + хороший матовый экран.Кажется, ярче, чем ThinkPad Z60t я и ярче и четче, чем + мой старый Inspiron 1100. И то, что я теперь пришли к пониманию, так как это + не глянцевый и отражающий вы не должны видеть ваше наперекосяк после того, + как прическу вы были писать бумагу в течение четырнадцати часов подряд! + + + Я думаю, что резолюция WGA + сделал бы вещи слишком мал, чтобы читать, так + что я решил для регулярного 1280 × 800 дисплей. + + + Там нет мертвых пикселей, нет утечки света. Как вариант, вы можете добавить + съемный фильтр конфиденциальности предотвращения ваш сосед в самолете из заглядывая + в вашей работе. + + + Динамики + + +  + + + Динамики расположены на передней панели компьютера, но и на правой стороне, + которая, несмотря на их качество, создает небольшую асимметрию в звуке. Сначала + я подумал, что это моно динамик (как на Dell D620, например). Это, вероятно, + может служить в качестве общего предупреждения: динамики, как правило, гораздо + меньше, чем они выглядят (см ThinkPad, в котором спикер занимает треть спикера + сетки распространяющейся по обе стороны от клавиатуры). + + + С другой стороны, по сравнению с ThinkPad, где только водитель переустановку + заверил меня, что динамики на самом деле существуют, но, в большинстве случаев, + бесполезно, вы можете установить громкость на HP nc6400, где это слишком громко! И + ни в каком смысле сделал я получаю напряженными визг, как я на Dell, который + не терпит высоких тонов. + + + Процессор и производительность: + + + Я оценивать работу главным образом на основе многозадачности, так как я не + использовать компьютер, чтобы играть в игры. У меня нет утилиты программного + обеспечения для запуска тестов по производительности, но вот что я бегу одновременно + и машина даже не заикаться: + + + загружая содержимое моего старого HD через FTPзагрузки более тысячи писем + с серверанесколько окон Firefox открылзагружать содержимое айподепередачи + некоторых других файлов с помощью USB-устройства хранения съемныхслушать музыкунаписание + двух файлов MS Wordработает словарь + + + Тепло и шум + + + Перегрев компьютер может быть причиной неисправности многих компонентов. С + моим Dell, например, охлаждающие вентиляторы изобретательно размещены на дне.Вентиляционные + отверстия на HP nc6400 находятся на левой стороне. Вы можете почувствовать + поток теплого воздуха выходит, и это хороший знак: остальное компьютер остается + прохладным. Нет дискомфорт, вызванный пылающий клавиатуре или поджаренными + пластика под запястья.Единственный раз, когда я на самом деле нашли машину, + а теплый, был день он прибыл, после того, как обрабатываются ИБП в более чем + сто градусов тепла. + + + Что касается шума, вы слышите лишь незначительное шепот болельщиков. В то + время как Dell вздымалась как астматический кита, то nc6400 тихо, как соня. + + + Клавиатура и тачпад + + +  + + ( Просмотреть большое изображение ) + + + Для того, чтобы кто - то типа большую часть дня, хорошая клавиатура является + обязательным. И я очень доволен этим. HP nc6400 имеет полноразмерную клавиатуру + и хороший макет, с дома, пг вверх, пг дп, конечные ключи смещение влево на + узкую делитель, а также клавиши со стрелками , немного ниже , чем другие клавиши. Fn ключ + в полный размер, хотя и не очень широко , как это на Inspiron 1100. С другой + стороны,Windows , ключ удобно расположен рядом с левой Ctrl и Fn . Те , кто + привык к сочетания клавиш одной рукой подостоинству оценят это. В отличие + от Toshiba, HP не сдавался второй Ctrl на правой руке. Я рад видеть , что вставкикнопки + перенесены в правом верхнем углу, а я путать с Delete и Ctrl на Dell.Тем не менее, + я не хватать , что удалитьключ на дне: вместо этого, все это путь в углу с вставкой . Клавиши + имеют устойчивый к царапинам, и четко обозначены, с основными именами ,написанными + маленькими буквами. + + +  + + ( Просмотреть большое изображение ) + + + Тачпад достаточно большой, с хорошим полосу прокрутки справа. Из-за джойстику, + существует два набора сенсорных кнопок, и достаточно малы.Я скучаю по тем + негабаритных кнопок на старых Dell, а также дополнительное пространство для + запястья. Край компьютера прессов немного в мои запястья; и если я поставил + поддержку запястья в передней части ноутбука, он будет охватывать динамиков. + + + На яркой стороне, мне нравится возможность переключения между тачпадом и джойстику, + в зависимости от того, где мои руки, как я типа или просматривать сеть. + + + Входные и выходные порты + + + Порты не превышают ожидания своих, и FireWire отсутствует: + + +  + + ( Просмотреть большое изображение ) + + + Вид спереди HP nc6400 + + + инфракрасныйСлот для SD-карт памяти + + +  + + ( Просмотреть большое изображение ) + + + Вид слева от HP nc6400 + + + 2 порта USBслот PC картаПорт для наушниковгнездо для микрофона + + +  + + ( Просмотреть большое изображение ) + + + Правый боковой вид HP nc6400 + + + 1 USBгнездо для сетевогогнездо для модема + + +  + + ( Просмотреть большое изображение ) + + + Оборотная сторона зрения HP nc6400 + + + S-Video гнездо выходаПорт внешнего монитораразъем питанияГнездо защитного + + + Я хотел было больше портов USB, так как на Asus (5) или даже ThinkPad (4): + Я определенно использовать их все (USB-активные колонки, принтер, + карта + памяти Memory Stick, IPod, цифровой фотоаппарат). + + + беспроводной + + + Intel Pro 802.11a / B / G с двойной антенной работает очень хорошо. Я разделяю + большой дом этим летом, и нет никаких проблем, подбирая сигнал от нашего маршрутизатора + даже в подвале. + + + У меня нет каких-либо устройств Bluetooth, чтобы проверить его работу. + + + аккумулятор + + + 6-элементная батарея дает 2HRS 45 минут исполнения, без ущерба для яркости + экрана или количество задач.Это никогда не бывает удобно для меня запустить + компьютер с тусклым экраном, но я полагаю, что если ваша жизнь должна висеть + на том, что батареи, вы можете сжать 4 часа из этих клеток. + + +  + + HP nc6400 вид снизу ( просмотреть увеличенное изображение ) + + + Операционная система и программное обеспечение + + + HP nc6400 поставляется с Windows XP Pro предустановленным. Там нет дисков. В + отличие от большинства ноутбуков , которые поступают с большим количеством + ознакомительные версии программного обеспечения, этот ноутбук был на самом + деле под настроены. Даже программное обеспечение компании должны быть распакованы + при помощи менеджера программного обеспечения , который устанавливает все, + включая InterVideo Win DVD, Соник DVD Maker, и даже датчик отпечатков пальцев. (Если + вы используете Nero, убедитесь , чтобы установить , прежде чем устанавливать + программное обеспечение любого производителя, в противном случае InCD не будет + установлен. К счастью, я узнал , что мой урок на другом компьютере). + + + Имея повод взглянуть на различных ноутбуках в настоящее время на рынке, я + заметил, что-то я не ожидал: не все версии Windows XP Pro равны.Они, кажется: + список Pro с WinXP SP1 все производители, и после того, как вы получаете их, + есть 36 обновлений, но некоторые функции работают лучше или хуже, чем на некоторых + на других.Например, на E1405 Dell, после настройки клавиатуры для других языков, + в региональных настройках, я не смог получить значок индикатор языка рядом + с системном трее.(Обслуживание клиентов Dell сказал бы мне, что это не является + стандартной функцией). В журнале-на экраны выглядели настолько различны, что + можно даже сомневаться, что это XP, а не Home издание на Dell. + + + Я был рад заметить, что у меня не было таких проблем с версией, установленной + на HP nc6400. + + + Я не так много использовали несколько программного обеспечения безопасности, + но я уже могу сказать, что это не так, удобной для пользователей ThinkPad + х. Благодаря выбору логины (отпечатки пальцев, жетоны, пароли), это программное + обеспечение предназначено в основном для корпоративных клиентов многопользовательского. + + + Служба поддержки + + + Как правило, я подхожу поддержки клиентов со скептицизмом. В то время как + продавцы вежливые и достаточно осведомленный (особенно в бизнес-подразделения), + техническая поддержка обычно оказывается довольно неумелой. Мой единственный + опыт с поддержкой HP до сих пор была предпродажная: Я попросил технического + представителя, чтобы сказать мне, что объем контроля он видел в настройках + объем для записи. Это заняло два повтора и полчаса. Другой опыт касался в + скидку $ 100, который должен был прийти с моделью. Веб-сайт, который, до того + дня, прежде чем я получил свой компьютер, показал информацию для устаревших + скидок, не был обновлен, и никаких следов скидки! Я получить его в конце концов + решил, но дело в том: вы должны быть на пальцах. + + + С другой стороны, я надеюсь, что у меня не будет использовать свою техническую + поддержку, в то время как 3-летняя гарантия должна охватывать частей и обслуживания. + + + Чехол + + + HP не продает хорошие облегающие рукава, и это не так легко найти широкоформатный + рукава на рынке. Я купил шахту от Sony Vaio: его $ 24 неопрена рукава сделаны + право размера, как Sony FJ & модели BX540 имеют точно такие же размеры. Рукав + пришел с хорошей сумке для кабеля питания. + + + Вывод + + + HP nc6400 является большим, но простой ноутбук, предлагая высокую производительность. Это, + безусловно, инструмент, а не игрушка. Если вы ищете для игрового ноутбука, + я рекомендовал бы более высокий графический интерфейс, возможно, процессор + AMD. Но если ваша главная потребность многозадачности и иногда средства массовой + информации, это один из лучших ноутбуков на рынке. В качестве последнего замечания, + хотя HP, кажется, не предлагать настраиваемые модели, некоторые функции могут + быть изменены (больший жесткий диск и т.д.), если вы можете позволить себе + ждать 4-5 недель. + + + + Профи + + + качество сборкиценаХорошая производительностьСтандартная гарантия 3 годаэкран + MattТвердая тихая клавиатура с удобной планировкойХорошо звучащие колонкиВидатьНет + нежелательной программного обеспеченияОблегченный + + + Минусы + + + Асимметричный размещение динамиковНет настройки по выборуМаленькие кнопки + тачпадаОграниченная область запястья + + + + Магазин сопутствующих товаров + + +  + + + HP 6005 Pro Desktop PC - AMD Athlon X ... + + + $ 149,00$ 399,00 + + +  (68) + + +  + + + 2016 Новые Lenovo ThinkPad Edge E5 ... + + + $ 567,99 + + +  (10) + + +  + + + Dell 15,6-дюймовый игровой ноутбук (6-Gen Intel Q ... + + + $ 769,99 + + +  (1119) + + +  + + + Dell Inspiron i7559-2512BLK 15,6-дюймовый F ... + + + $ 822,75 + + +  (436) + + +  + + + 32GB KIT (2 х 16 Гб) для HP-Compaq ProLiant серии SL390s G7 (626446-B21) SL390s + G7 (626447-B21) SL390s G7 (626448-B21) SL390s G7 (626449-B21). DIMM DDR3 ECC + Registered PC3-12800 1600MHz Dual Rank Память RAM.Подлинная A-Tech Марка. + + + $ 355,51$ 683,98 + + +  + + + 2016 New Edition Dell Inspiron 15,6 "дисплей HD Премиум Высокая производительность + портативных ПК, Intel Core i3-5015U 2,1 ГГц процессор, 4 Гб оперативной памяти, + 1 Тб HDD, HDMI, Bluetooth, Wi-Fi, веб-камера, MaxxAudio, Windows 10, черный + + + $ 312,40 + + +  (7) + + +  + + + Lenovo Thinkpad T420 - Intel Core i5 2520M 8GB 320GB Win 7 Pro (Сертифицированный + капремонта) + + + $ 329.99 + + +  (170) + + +  + + + Lenovo 2-го поколения ThinkPad X1 Carbon 14 "WQHD сенсорный портативный компьютер, + Intel Dual Core i5-4300U CPU до 2.9GHz, 8 Гб оперативной памяти, 256 Гб  (9607) + + + +', 'customData': {'chat_id': '58208bbb1c40318a6addc3ac', 'type': 1, 'sender_id': '57e04fd64b5593719ac2d45e', + 'product_id': '581fed344b55931b41ba2e07', 'message_id': '58208f49c97904ea482d2da3'}, + 'token': null}, 'headers': []}] +... From 3bf856687bc2e72a093f4c01c1f80d2bc39de928 Mon Sep 17 00:00:00 2001 From: Eugine Blikh Date: Tue, 22 Nov 2016 19:40:05 +0000 Subject: [PATCH 16/30] Update tag for version 0.2.0 --- package.xml | 20 +++++++++++++++----- rpm/php-tarantool.spec | 2 +- src/php_tarantool.h | 2 +- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/package.xml b/package.xml index b72a358..c0d1f91 100644 --- a/package.xml +++ b/package.xml @@ -17,10 +17,10 @@ http://pear.php.net/dtd/package-2.0.xsd"> bigbes@gmail.com yes - 2015-02-26 + 2015-11-22 - 0.1.0 - 0.1.0 + 0.2.0 + 0.2.0 beta @@ -81,8 +81,8 @@ http://pear.php.net/dtd/package-2.0.xsd"> - 5.4.0 - 6.0.0 + 7.0.0 + 8.0.0 6.0.0 @@ -93,6 +93,16 @@ http://pear.php.net/dtd/package-2.0.xsd"> tarantool + + betabeta + 0.2.00.2.0 + 2016-11-22 + + tarantool-php 0.2.0 + + PHP 7 version + + betabeta 0.1.00.1.0 diff --git a/rpm/php-tarantool.spec b/rpm/php-tarantool.spec index 8d4669f..16b6f4c 100644 --- a/rpm/php-tarantool.spec +++ b/rpm/php-tarantool.spec @@ -3,7 +3,7 @@ %global php_version %(php-config --version 2>/dev/null || echo 0) Name: php-tarantool -Version: 0.1.0.0 +Version: 0.2.0.0 Release: 1%{?dist} Summary: PECL PHP driver for Tarantool/Box Group: Development/Languages diff --git a/src/php_tarantool.h b/src/php_tarantool.h index e8de07f..1679eb7 100644 --- a/src/php_tarantool.h +++ b/src/php_tarantool.h @@ -29,7 +29,7 @@ extern zend_module_entry tarantool_module_entry; #define phpext_tarantool_ptr &tarantool_module_entry -#define PHP_TARANTOOL_VERSION "0.1.0" +#define PHP_TARANTOOL_VERSION "0.2.0" #define PHP_TARANTOOL_EXTNAME "tarantool" #ifdef PHP_WIN32 From 86611b597805282230261c1b2d826b875593af56 Mon Sep 17 00:00:00 2001 From: bigbes Date: Tue, 24 Jan 2017 23:34:37 +0300 Subject: [PATCH 17/30] Add check for greetings. Closes gh-85 --- src/tarantool.c | 5 +++++ src/tarantool_network.c | 8 +++++--- src/tarantool_proto.c | 30 +++++++++++++++++++++++++++++- src/tarantool_proto.h | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 73 insertions(+), 4 deletions(-) diff --git a/src/tarantool.c b/src/tarantool.c index 2dfb407..780eba1 100644 --- a/src/tarantool.c +++ b/src/tarantool.c @@ -287,10 +287,15 @@ int __tarantool_connect(tarantool_object *t_obj) { GREETING_SIZE) == -1) { continue; } + if (php_tp_verify_greetings(obj->greeting) == 0) { + spprintf(&err, 0, "Bad greetings"); + goto ioexception; + } ++count; break; } if (count == 0) { +ioexception: tarantool_throw_ioexception("%s", err); efree(err); return FAILURE; diff --git a/src/tarantool_network.c b/src/tarantool_network.c index 87b25ef..7ded03b 100644 --- a/src/tarantool_network.c +++ b/src/tarantool_network.c @@ -73,7 +73,8 @@ int tntll_stream_open(const char *host, int port, zend_string *pid, if (pid) options |= STREAM_OPEN_PERSISTENT; flags = STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT; double_to_tv(TARANTOOL_G(timeout), &tv); - // printf("'tm - %lu, %lu' ", tv.tv_sec, tv.tv_usec); + // printf("timeout: 'sec(%d), usec(%d)'\n", + // (int )tv.tv_sec, (int )tv.tv_usec); const char *pid_str = pid == NULL ? NULL : pid->val; stream = php_stream_xport_create(addr, addr_len, options, flags, @@ -89,9 +90,10 @@ int tntll_stream_open(const char *host, int port, zend_string *pid, /* Set READ_TIMEOUT */ double_to_tv(TARANTOOL_G(request_timeout), &tv); - // printf("'rtv - %lu, %lu' ", tv.tv_sec, tv.tv_usec); + // printf("request_timeout: 'sec(%d), usec(%d)'\n", + // (int )tv.tv_sec, (int )tv.tv_usec); - if (tv.tv_sec != 0 || tv.tv_usec != 0) { + if (tv.tv_sec != 0 && tv.tv_usec != 0) { php_stream_set_option(stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &tv); } diff --git a/src/tarantool_proto.c b/src/tarantool_proto.c index 4b440fb..b39e6cb 100644 --- a/src/tarantool_proto.c +++ b/src/tarantool_proto.c @@ -15,7 +15,7 @@ static size_t php_tp_sizeof_header(uint32_t request, uint32_t sync) { } static char *php_tp_pack_header(smart_string *str, size_t size, - uint32_t request, uint32_t sync) { + uint32_t request, uint32_t sync) { char *sz = SSTR_POS(str); php_mp_pack_package_size(str, size); php_mp_pack_hash(str, 2); @@ -433,3 +433,31 @@ int convert_iter_str(const char *i, size_t i_len) { }; return -1; } + +uint32_t php_tp_verify_greetings(char *greetingbuf) { + /* Check basic structure - magic string and \n delimiters */ + if (memcmp(greetingbuf, "Tarantool ", strlen("Tarantool ")) != 0 || + greetingbuf[GREETING_SIZE / 2 - 1] != '\n' || + greetingbuf[GREETING_SIZE - 1] != '\n') + return 0; + + int h = GREETING_SIZE / 2; + const char *pos = greetingbuf + strlen("Tarantool "); + const char *end = greetingbuf + h; + + /* Extract a version string - a string until ' ' */ + char version[20]; + const char *vend = (const char *) memchr(pos, ' ', end - pos); + if (vend == NULL || (size_t)(vend - pos) >= sizeof(version)) + return 0; + memcpy(version, pos, vend - pos); + version[vend - pos] = '\0'; + pos = vend + 1; + for (; pos < end && *pos == ' '; ++pos); /* skip spaces */ + + /* Parse a version string - 1.6.6-83-gc6b2129 or 1.6.7 */ + unsigned major, minor, patch; + if (sscanf(version, "%u.%u.%u", &major, &minor, &patch) != 3) + return 0; + return version_id(major, minor, patch); +} diff --git a/src/tarantool_proto.h b/src/tarantool_proto.h index e55b6c3..8470923 100644 --- a/src/tarantool_proto.h +++ b/src/tarantool_proto.h @@ -7,6 +7,8 @@ #define GREETING_SIZE 128 #define SALT_PREFIX_SIZE 64 +#define GREETING_PROTOCOL_LEN_MAX 32 + #define SPACE_SPACE 281 #define SPACE_INDEX 289 @@ -17,6 +19,36 @@ #include +/** + * Pack version into uint32_t. + * The highest byte or result means major version, next - minor, + * middle - patch, last - revision. + */ +static inline uint32_t +version_id(unsigned major, unsigned minor, unsigned patch) +{ + return (((major << 8) | minor) << 8) | patch; +} + +static inline unsigned +version_id_major(uint32_t version_id) +{ + return (version_id >> 16) & 0xff; +} + +static inline unsigned +version_id_minor(uint32_t version_id) +{ + return (version_id >> 8) & 0xff; +} + +static inline unsigned +version_id_patch(uint32_t version_id) +{ + return version_id & 0xff; +} + + /* header */ enum tnt_header_key_t { TNT_CODE = 0x00, @@ -122,4 +154,6 @@ void php_tp_reencode_length(smart_string *str, char *sz); int convert_iter_str(const char *i, size_t i_len); +uint32_t php_tp_verify_greetings(char *greetingbuf); + #endif /* PHP_TNT_PROTO_H */ From a5b6a36a53e84e5da6066824d1d97122ce70bbd4 Mon Sep 17 00:00:00 2001 From: none Date: Fri, 3 Feb 2017 11:34:08 +0300 Subject: [PATCH 18/30] sockets handling corrections --- src/tarantool.c | 40 +++++++++++++++------------------------- src/tarantool_network.c | 2 +- src/tarantool_network.h | 2 +- 3 files changed, 17 insertions(+), 27 deletions(-) diff --git a/src/tarantool.c b/src/tarantool.c index 780eba1..c4e57da 100644 --- a/src/tarantool.c +++ b/src/tarantool.c @@ -14,7 +14,8 @@ #include "utils.h" -int __tarantool_authenticate(tarantool_connection *obj); +static int __tarantool_authenticate(tarantool_connection *obj); +static void tarantool_stream_close(tarantool_connection *obj); double now_gettimeofday(void) @@ -128,11 +129,12 @@ PHP_INI_END() ZEND_GET_MODULE(tarantool) #endif -static int +inline static int tarantool_stream_send(tarantool_connection *obj TSRMLS_DC) { int rv = tntll_stream_send(obj->stream, SSTR_BEG(obj->value), SSTR_LEN(obj->value)); if (rv < 0) { + tarantool_stream_close(obj); tarantool_throw_ioexception("Failed to send message"); return FAILURE; } @@ -218,10 +220,11 @@ static zend_string *pid_pzsgen(const char *host, int port, const char *login, * Legacy rtsisyk code, php_stream_read made right * See https://bugs.launchpad.net/tarantool/+bug/1182474 */ -static size_t +inline static int tarantool_stream_read(tarantool_connection *obj, char *buf, size_t size) { size_t got = tntll_stream_read2(obj->stream, buf, size); if (got != size) { + tarantool_stream_close(obj); tarantool_throw_ioexception("Failed to read %ld bytes", size); return FAILURE; } @@ -240,7 +243,7 @@ tarantool_stream_close(tarantool_connection *obj) { } } -int __tarantool_connect(tarantool_object *t_obj) { +static int __tarantool_connect(tarantool_object *t_obj) { TSRMLS_FETCH(); tarantool_connection *obj = t_obj->obj; int status = SUCCESS; @@ -284,7 +287,7 @@ int __tarantool_connect(tarantool_object *t_obj) { continue; } if (tntll_stream_read2(obj->stream, obj->greeting, - GREETING_SIZE) == -1) { + GREETING_SIZE) != GREETING_SIZE) { continue; } if (php_tp_verify_greetings(obj->greeting) == 0) { @@ -306,7 +309,7 @@ int __tarantool_connect(tarantool_object *t_obj) { return status; } -int __tarantool_reconnect(tarantool_object *t_obj) { +inline static int __tarantool_reconnect(tarantool_object *t_obj) { tarantool_stream_close(t_obj->obj); return __tarantool_connect(t_obj); } @@ -391,20 +394,16 @@ static zend_object *tarantool_create(zend_class_entry *entry) { return &obj->zo; } -static int64_t tarantool_step_recv( +static int tarantool_step_recv( tarantool_connection *obj, unsigned long sync, zval *header, zval *body) { char pack_len[5] = {0, 0, 0, 0, 0}; if (tarantool_stream_read(obj, pack_len, 5) == FAILURE) { - header = NULL; - body = NULL; - goto error_con; + goto error; } if (php_mp_check(pack_len, 5)) { - header = NULL; - body = NULL; tarantool_throw_parsingexception("package length"); goto error_con; } @@ -412,33 +411,25 @@ static int64_t tarantool_step_recv( smart_string_ensure(obj->value, body_size); if (tarantool_stream_read(obj, SSTR_POS(obj->value), body_size) == FAILURE) { - header = NULL; - body = NULL; goto error; } SSTR_LEN(obj->value) += body_size; char *pos = SSTR_BEG(obj->value); if (php_mp_check(pos, body_size)) { - header = NULL; - body = NULL; tarantool_throw_parsingexception("package header"); - goto error; + goto error_con; } if (php_mp_unpack(header, &pos) == FAILURE || Z_TYPE_P(header) != IS_ARRAY) { - header = NULL; - body = NULL; - goto error; + goto error_con; } if (php_mp_check(pos, body_size)) { - body = NULL; tarantool_throw_parsingexception("package body"); goto error_con; } if (php_mp_unpack(body, &pos) == FAILURE) { - body = NULL; - goto error; + goto error_con; } HashTable *hash = HASH_OF(header); @@ -488,7 +479,6 @@ static int64_t tarantool_step_recv( tarantool_throw_exception("Failed to retrieve answer code"); error_con: tarantool_stream_close(obj); - obj->stream = NULL; error: if (header) zval_ptr_dtor(header); if (body) zval_ptr_dtor(body); @@ -1174,7 +1164,7 @@ PHP_METHOD(Tarantool, reconnect) { RETURN_TRUE; } -int __tarantool_authenticate(tarantool_connection *obj) { +static int __tarantool_authenticate(tarantool_connection *obj) { TSRMLS_FETCH(); tarantool_schema_flush(obj->schema); diff --git a/src/tarantool_network.c b/src/tarantool_network.c index 7ded03b..9ad0460 100644 --- a/src/tarantool_network.c +++ b/src/tarantool_network.c @@ -119,7 +119,7 @@ int tntll_stream_open(const char *host, int port, zend_string *pid, * Legacy rtsisyk code, php_stream_read made right * See https://bugs.launchpad.net/tarantool/+bug/1182474 */ -int tntll_stream_read2(php_stream *stream, char *buf, size_t size) { +size_t tntll_stream_read2(php_stream *stream, char *buf, size_t size) { TSRMLS_FETCH(); size_t total_size = 0; size_t read_size = 0; diff --git a/src/tarantool_network.h b/src/tarantool_network.h index 20aeeb1..ba5a20a 100644 --- a/src/tarantool_network.h +++ b/src/tarantool_network.h @@ -27,7 +27,7 @@ int tntll_stream_read (php_stream *stream, char *buf, size_t size); /* * Read size bytes exactly (if not error) */ -int tntll_stream_read2(php_stream *stream, char *buf, size_t size); +size_t tntll_stream_read2(php_stream *stream, char *buf, size_t size); int tntll_stream_send (php_stream *stream, char *buf, size_t size); #endif /* PHP_TNT_NETWORK_H */ From fbfb006d6b8f25c3b9b8e88f277e2b2323a7e1ba Mon Sep 17 00:00:00 2001 From: bigbes Date: Mon, 6 Feb 2017 18:40:02 +0300 Subject: [PATCH 19/30] Distinguish timeout from errors. Honor request timeout. Still wasn't beign able to fix gh-113 Closes gh-110 --- src/tarantool.c | 49 +++++++++++++++++++++++++------------ src/tarantool_network.c | 33 +++++++++++++++++-------- src/tarantool_network.h | 2 ++ src/tarantool_schema.c | 1 + test/AssertTest.php | 8 +++--- test/CreateTest.php | 2 ++ test/RandomTest.php | 4 +-- test/shared/phpunit.xml | 2 +- test/shared/tarantool-3.ini | 4 +-- 9 files changed, 71 insertions(+), 34 deletions(-) diff --git a/src/tarantool.c b/src/tarantool.c index c4e57da..4121018 100644 --- a/src/tarantool.c +++ b/src/tarantool.c @@ -111,16 +111,16 @@ PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN("tarantool.connection_alias", "0", PHP_INI_SYSTEM, OnUpdateBool, connection_alias, zend_tarantool_globals, tarantool_globals) - STD_PHP_INI_ENTRY("tarantool.timeout", "10.0", PHP_INI_ALL, + STD_PHP_INI_ENTRY("tarantool.timeout", "3600.0", PHP_INI_ALL, OnUpdateReal, timeout, zend_tarantool_globals, tarantool_globals) - STD_PHP_INI_ENTRY("tarantool.request_timeout", "10.0", PHP_INI_ALL, + STD_PHP_INI_ENTRY("tarantool.request_timeout", "3600.0", PHP_INI_ALL, OnUpdateReal, request_timeout, zend_tarantool_globals, tarantool_globals) STD_PHP_INI_ENTRY("tarantool.retry_count", "1", PHP_INI_ALL, OnUpdateLong, retry_count, zend_tarantool_globals, tarantool_globals) - STD_PHP_INI_ENTRY("tarantool.retry_sleep", "0.1", PHP_INI_ALL, + STD_PHP_INI_ENTRY("tarantool.retry_sleep", "10", PHP_INI_ALL, OnUpdateReal, retry_sleep, zend_tarantool_globals, tarantool_globals) PHP_INI_END() @@ -223,9 +223,14 @@ static zend_string *pid_pzsgen(const char *host, int port, const char *login, inline static int tarantool_stream_read(tarantool_connection *obj, char *buf, size_t size) { size_t got = tntll_stream_read2(obj->stream, buf, size); + const char *suffix = ""; + if (got == 0 && tntll_stream_is_timedout()) + suffix = " (request timeout reached)"; + char errno_suffix[256] = {0}; if (got != size) { + tarantool_throw_ioexception("Failed to read %ld bytes %s", + size, suffix); tarantool_stream_close(obj); - tarantool_throw_ioexception("Failed to read %ld bytes", size); return FAILURE; } return SUCCESS; @@ -233,9 +238,8 @@ tarantool_stream_read(tarantool_connection *obj, char *buf, size_t size) { static void tarantool_stream_close(tarantool_connection *obj) { - if (obj->stream || obj->persistent_id) { + if (obj->stream || obj->persistent_id) tntll_stream_close(obj->stream, obj->persistent_id); - } obj->stream = NULL; if (obj->persistent_id != NULL) { zend_string_release(obj->persistent_id); @@ -281,11 +285,9 @@ static int __tarantool_connect(tarantool_object *t_obj) { obj->suffix_len); } - if (tntll_stream_open(obj->host, obj->port, - obj->persistent_id, - &obj->stream, &err) == -1) { + if (tntll_stream_open(obj->host, obj->port, obj->persistent_id, + &obj->stream, &err) == -1) continue; - } if (tntll_stream_read2(obj->stream, obj->greeting, GREETING_SIZE) != GREETING_SIZE) { continue; @@ -299,6 +301,7 @@ static int __tarantool_connect(tarantool_object *t_obj) { } if (count == 0) { ioexception: + // raise (SIGABRT); tarantool_throw_ioexception("%s", err); efree(err); return FAILURE; @@ -401,9 +404,13 @@ static int tarantool_step_recv( zval *body) { char pack_len[5] = {0, 0, 0, 0, 0}; if (tarantool_stream_read(obj, pack_len, 5) == FAILURE) { - goto error; + header = NULL; + body = NULL; + goto error_con; } if (php_mp_check(pack_len, 5)) { + header = NULL; + body = NULL; tarantool_throw_parsingexception("package length"); goto error_con; } @@ -411,24 +418,34 @@ static int tarantool_step_recv( smart_string_ensure(obj->value, body_size); if (tarantool_stream_read(obj, SSTR_POS(obj->value), body_size) == FAILURE) { - goto error; + header = NULL; + body = NULL; + goto error_con; } SSTR_LEN(obj->value) += body_size; char *pos = SSTR_BEG(obj->value); if (php_mp_check(pos, body_size)) { + header = NULL; + body = NULL; tarantool_throw_parsingexception("package header"); goto error_con; } if (php_mp_unpack(header, &pos) == FAILURE || Z_TYPE_P(header) != IS_ARRAY) { + header = NULL; + body = NULL; goto error_con; } if (php_mp_check(pos, body_size)) { + header = NULL; + body = NULL; tarantool_throw_parsingexception("package body"); goto error_con; } if (php_mp_unpack(body, &pos) == FAILURE) { + header = NULL; + body = NULL; goto error_con; } @@ -466,7 +483,7 @@ static int tarantool_step_recv( "Bad error field type. Expected" " STRING, got %s", tutils_op_to_string(z_error_str)); - goto error; + goto error_con; } } else { error_str = "empty"; @@ -941,9 +958,9 @@ PHP_RINIT_FUNCTION(tarantool) { static void php_tarantool_init_globals(zend_tarantool_globals *tarantool_globals) { tarantool_globals->sync_counter = 0; tarantool_globals->retry_count = 1; - tarantool_globals->retry_sleep = 0.1; - tarantool_globals->timeout = 1.0; - tarantool_globals->request_timeout = 10.0; + tarantool_globals->retry_sleep = 10; + tarantool_globals->timeout = 3600.0; + tarantool_globals->request_timeout = 3600.0; } static void tarantool_destructor_connection(zend_resource *rsrc TSRMLS_DC) { diff --git a/src/tarantool_network.c b/src/tarantool_network.c index 9ad0460..077c3c5 100644 --- a/src/tarantool_network.c +++ b/src/tarantool_network.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include @@ -23,21 +24,23 @@ void double_to_ts(double tm, struct timespec *ts) { /* `pid` means persistent_id */ // void tntll_stream_close(php_stream *stream, const char *pid) { void tntll_stream_close(php_stream *stream, zend_string *pid) { - TSRMLS_FETCH(); int rv = PHP_STREAM_PERSISTENT_SUCCESS; - if (stream == NULL) + if (stream == NULL) { rv = tntll_stream_fpid2(pid, &stream); - int flags = PHP_STREAM_FREE_CLOSE; - if (pid) - flags = PHP_STREAM_FREE_CLOSE_PERSISTENT; - if (rv == PHP_STREAM_PERSISTENT_SUCCESS && stream) { - php_stream_free(stream, flags); + } + if (rv == PHP_STREAM_PERSISTENT_SUCCESS && stream != NULL) { + if (pid) { + php_stream_free(stream, PHP_STREAM_FREE_CLOSE_PERSISTENT); + } else { + php_stream_close(stream); + } } } int tntll_stream_fpid2(zend_string *pid, php_stream **ostream) { TSRMLS_FETCH(); return php_stream_from_persistent_id(pid->val, ostream TSRMLS_CC); + return rv; } int tntll_stream_fpid(const char *host, int port, zend_string *pid, @@ -93,7 +96,7 @@ int tntll_stream_open(const char *host, int port, zend_string *pid, // printf("request_timeout: 'sec(%d), usec(%d)'\n", // (int )tv.tv_sec, (int )tv.tv_usec); - if (tv.tv_sec != 0 && tv.tv_usec != 0) { + if (tv.tv_sec != 0 || tv.tv_usec != 0) { php_stream_set_option(stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &tv); } @@ -111,10 +114,12 @@ int tntll_stream_open(const char *host, int port, zend_string *pid, return 0; error: if (errstr) zend_string_release(errstr); - if (stream) tntll_stream_close(stream, pid); + if (stream) tntll_stream_close(NULL, pid); return -1; } +#include + /* * Legacy rtsisyk code, php_stream_read made right * See https://bugs.launchpad.net/tarantool/+bug/1182474 @@ -122,7 +127,7 @@ int tntll_stream_open(const char *host, int port, zend_string *pid, size_t tntll_stream_read2(php_stream *stream, char *buf, size_t size) { TSRMLS_FETCH(); size_t total_size = 0; - size_t read_size = 0; + ssize_t read_size = 0; while (total_size < size) { read_size = php_stream_read(stream, buf + total_size, @@ -132,9 +137,17 @@ size_t tntll_stream_read2(php_stream *stream, char *buf, size_t size) { break; total_size += read_size; } + return total_size; } +bool tntll_stream_is_timedout() { + int err = php_socket_errno(); + if (err == EAGAIN || err == EWOULDBLOCK || err == EINPROGRESS) + return 1; + return 0; +} + int tntll_stream_read(php_stream *stream, char *buf, size_t size) { TSRMLS_FETCH(); return php_stream_read(stream, buf, size); diff --git a/src/tarantool_network.h b/src/tarantool_network.h index ba5a20a..8858424 100644 --- a/src/tarantool_network.h +++ b/src/tarantool_network.h @@ -30,4 +30,6 @@ int tntll_stream_read (php_stream *stream, char *buf, size_t size); size_t tntll_stream_read2(php_stream *stream, char *buf, size_t size); int tntll_stream_send (php_stream *stream, char *buf, size_t size); +bool tntll_stream_is_timedout(); + #endif /* PHP_TNT_NETWORK_H */ diff --git a/src/tarantool_schema.c b/src/tarantool_schema.c index 54965db..842a4d5 100644 --- a/src/tarantool_schema.c +++ b/src/tarantool_schema.c @@ -4,6 +4,7 @@ #include #include #include +#include #include "php_tarantool.h" #include "tarantool_schema.h" diff --git a/test/AssertTest.php b/test/AssertTest.php index f70d123..6063866 100644 --- a/test/AssertTest.php +++ b/test/AssertTest.php @@ -22,18 +22,20 @@ protected function tearDown() { public function test_00_timedout() { self::$tarantool->eval(" - function assertf() - require('fiber').sleep(1) + function assert_f() + os.execute('sleep 1') return 0 end"); try { - self::$tarantool->call("assertf"); + $result = self::$tarantool->call("assert_f"); $this->assertFalse(True); } catch (TarantoolException $e) { + // print($e->getMessage()); $this->assertContains("Failed to read", $e->getMessage()); } /* We can reconnect and everything will be ok */ + self::$tarantool->close(); self::$tarantool->select("test"); } diff --git a/test/CreateTest.php b/test/CreateTest.php index 05efae0..2dff2f5 100644 --- a/test/CreateTest.php +++ b/test/CreateTest.php @@ -7,7 +7,9 @@ class CreateTest extends PHPUnit_Framework_TestCase public static function setUpBeforeClass() { self::$port = getenv('PRIMARY_PORT'); self::$tm = ini_get("tarantool.timeout"); + // error_log("before setting tarantool timeout"); ini_set("tarantool.timeout", "0.1"); + // error_log("after setting tarantool timeout"); } public static function tearDownAfterClass() { diff --git a/test/RandomTest.php b/test/RandomTest.php index b687352..34d942a 100644 --- a/test/RandomTest.php +++ b/test/RandomTest.php @@ -28,7 +28,7 @@ public function test_01_random_big_response() { } public function test_02_very_big_response() { - $request = "do return '" . str_repeat('x', 1024 * 1024 * 10) . "' end"; + $request = "do return '" . str_repeat('x', 1024 * 1024 * 1) . "' end"; self::$tarantool->evaluate($request); $this->assertTrue(True); } @@ -40,6 +40,6 @@ public function test_03_another_big_response() { } } public function test_04_get_strange_response() { - print_r(self::$tarantool->select("_schema", "12345")); + self::$tarantool->select("_schema", "12345"); } } diff --git a/test/shared/phpunit.xml b/test/shared/phpunit.xml index a4fbf47..c1deabc 120000 --- a/test/shared/phpunit.xml +++ b/test/shared/phpunit.xml @@ -1 +1 @@ -phpunit_tap.xml \ No newline at end of file +phpunit_bas.xml \ No newline at end of file diff --git a/test/shared/tarantool-3.ini b/test/shared/tarantool-3.ini index 8fcbb53..e42de1a 100644 --- a/test/shared/tarantool-3.ini +++ b/test/shared/tarantool-3.ini @@ -3,10 +3,10 @@ extension = ./tarantool.so [tarantool] tarantool.timeout = 10 -tarantool.request_timeout = 0.1 +tarantool.request_timeout = 10 tarantool.con_per_host = 1 tarantool.persistent = 1 -tarantool.retry_count = 1 +tarantool.retry_count = 2 [xdebug] remote_autostart = 0 From de17ac9a1002e54b622cdcebe4a7504499a7a381 Mon Sep 17 00:00:00 2001 From: Alex Masterov Date: Thu, 9 Feb 2017 11:29:19 +0300 Subject: [PATCH 20/30] Remove unnecessary return (#114) 'rv' variable is undeclared and second 'return' is not needed here. --- src/tarantool_network.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tarantool_network.c b/src/tarantool_network.c index 077c3c5..bbc0f26 100644 --- a/src/tarantool_network.c +++ b/src/tarantool_network.c @@ -40,7 +40,6 @@ void tntll_stream_close(php_stream *stream, zend_string *pid) { int tntll_stream_fpid2(zend_string *pid, php_stream **ostream) { TSRMLS_FETCH(); return php_stream_from_persistent_id(pid->val, ostream TSRMLS_CC); - return rv; } int tntll_stream_fpid(const char *host, int port, zend_string *pid, From 96906b30b29222eadb6796b79d889c982abb630a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 11 Aug 2017 15:07:26 +0200 Subject: [PATCH 21/30] Fix for PHP version 7.2 (#121) --- .travis.yml | 2 ++ src/php_tarantool.h | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d0b7e9d..e3ea022 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,8 @@ language: php php: - 7.0 + - 7.1 + - nightly python: - 2.7 diff --git a/src/php_tarantool.h b/src/php_tarantool.h index 1679eb7..bab2a49 100644 --- a/src/php_tarantool.h +++ b/src/php_tarantool.h @@ -17,7 +17,10 @@ # include "config.h" #endif -#if PHP_VERSION_ID >= 70000 +#if PHP_VERSION_ID >= 70200 +# include +# define smart_string_alloc4(d, n, what, newlen) newlen = smart_string_alloc(d, n, what) +#elif PHP_VERSION_ID >= 70000 # include #else # include From 2c8ed542ee3bcd17775dc44039a9d4dcb15f049f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 7 Sep 2017 10:56:15 +0200 Subject: [PATCH 22/30] Fix version Missing in 0.3.0 tag --- src/php_tarantool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/php_tarantool.h b/src/php_tarantool.h index bab2a49..5591120 100644 --- a/src/php_tarantool.h +++ b/src/php_tarantool.h @@ -32,7 +32,7 @@ extern zend_module_entry tarantool_module_entry; #define phpext_tarantool_ptr &tarantool_module_entry -#define PHP_TARANTOOL_VERSION "0.2.0" +#define PHP_TARANTOOL_VERSION "0.3.0" #define PHP_TARANTOOL_EXTNAME "tarantool" #ifdef PHP_WIN32 From 7b7e01fb26eeac715d257ae9a65ad1bad1118d71 Mon Sep 17 00:00:00 2001 From: Alexey Gadzhiev Date: Wed, 18 Apr 2018 05:51:14 -0400 Subject: [PATCH 23/30] Fix for broken upsert/update --- src/tarantool.c | 4 ++-- src/tarantool_proto.c | 5 +++-- src/tarantool_proto.h | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/tarantool.c b/src/tarantool.c index 4121018..ba46c65 100644 --- a/src/tarantool.c +++ b/src/tarantool.c @@ -1513,7 +1513,7 @@ PHP_METHOD(Tarantool, update) { SSTR_LEN(obj->value) = before_len; RETURN_FALSE; } - php_tp_reencode_length(obj->value, sz); + php_tp_reencode_length(obj->value, before_len); if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; @@ -1543,7 +1543,7 @@ PHP_METHOD(Tarantool, upsert) { SSTR_LEN(obj->value) = before_len; RETURN_FALSE; } - php_tp_reencode_length(obj->value, sz); + php_tp_reencode_length(obj->value, before_len); if (tarantool_stream_send(obj) == FAILURE) RETURN_FALSE; diff --git a/src/tarantool_proto.c b/src/tarantool_proto.c index b39e6cb..f8c69e5 100644 --- a/src/tarantool_proto.c +++ b/src/tarantool_proto.c @@ -268,9 +268,10 @@ void php_tp_encode_usplice(smart_string *str, uint32_t fieldno, php_mp_pack_string(str, buffer, buffer_len); } -void php_tp_reencode_length(smart_string *str, char *sz) { - ssize_t package_size = (SSTR_POS(str) - sz) - 5; +void php_tp_reencode_length(smart_string *str, size_t orig_len) { + ssize_t package_size = (SSTR_LEN(str) - orig_len) - 5; assert(package_size > 0); + char *sz = SSTR_BEG(str) + orig_len; php_mp_pack_package_size_basic(sz, package_size); } diff --git a/src/tarantool_proto.h b/src/tarantool_proto.h index 8470923..658d0fb 100644 --- a/src/tarantool_proto.h +++ b/src/tarantool_proto.h @@ -150,7 +150,7 @@ void php_tp_encode_uother(smart_string *str, char type, uint32_t fieldno, void php_tp_encode_usplice(smart_string *str, uint32_t fieldno, uint32_t position, uint32_t offset, const char *buffer, size_t buffer_len); -void php_tp_reencode_length(smart_string *str, char *sz); +void php_tp_reencode_length(smart_string *str, size_t orig_len); int convert_iter_str(const char *i, size_t i_len); From 209d646b15f629e884e7674ea5a5995b3be76f29 Mon Sep 17 00:00:00 2001 From: Alexey Gadzhiev Date: Wed, 18 Apr 2018 09:25:55 -0400 Subject: [PATCH 24/30] Bump version --- package.xml | 24 ++++++++++++++++-------- src/php_tarantool.h | 2 +- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/package.xml b/package.xml index c0d1f91..7176e51 100644 --- a/package.xml +++ b/package.xml @@ -17,10 +17,10 @@ http://pear.php.net/dtd/package-2.0.xsd"> bigbes@gmail.com yes - 2015-11-22 + 2018-04-18 - 0.2.0 - 0.2.0 + 0.3.1 + 0.3.1 beta @@ -34,8 +34,6 @@ http://pear.php.net/dtd/package-2.0.xsd"> - - @@ -45,8 +43,6 @@ http://pear.php.net/dtd/package-2.0.xsd"> - - @@ -72,7 +68,9 @@ http://pear.php.net/dtd/package-2.0.xsd"> - + + + @@ -93,6 +91,16 @@ http://pear.php.net/dtd/package-2.0.xsd"> tarantool + + betabeta + 0.3.10.3.1 + 2018-04-18 + + tarantool-php 0.3.1 + + Upsert bug fixed + + betabeta 0.2.00.2.0 diff --git a/src/php_tarantool.h b/src/php_tarantool.h index 5591120..02221bc 100644 --- a/src/php_tarantool.h +++ b/src/php_tarantool.h @@ -32,7 +32,7 @@ extern zend_module_entry tarantool_module_entry; #define phpext_tarantool_ptr &tarantool_module_entry -#define PHP_TARANTOOL_VERSION "0.3.0" +#define PHP_TARANTOOL_VERSION "0.3.1" #define PHP_TARANTOOL_EXTNAME "tarantool" #ifdef PHP_WIN32 From 99ffbd0cac0d888d622a84f236c564d649011ca0 Mon Sep 17 00:00:00 2001 From: Alexey Gadzhiev Date: Wed, 18 Apr 2018 09:33:56 -0400 Subject: [PATCH 25/30] Bump new version --- package.xml | 8 ++++---- src/php_tarantool.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.xml b/package.xml index 7176e51..3214ad5 100644 --- a/package.xml +++ b/package.xml @@ -19,8 +19,8 @@ http://pear.php.net/dtd/package-2.0.xsd"> 2018-04-18 - 0.3.1 - 0.3.1 + 0.3.2 + 0.3.2 beta @@ -93,10 +93,10 @@ http://pear.php.net/dtd/package-2.0.xsd"> betabeta - 0.3.10.3.1 + 0.3.20.3.2 2018-04-18 - tarantool-php 0.3.1 + tarantool-php 0.3.2 Upsert bug fixed diff --git a/src/php_tarantool.h b/src/php_tarantool.h index 02221bc..c225b85 100644 --- a/src/php_tarantool.h +++ b/src/php_tarantool.h @@ -32,7 +32,7 @@ extern zend_module_entry tarantool_module_entry; #define phpext_tarantool_ptr &tarantool_module_entry -#define PHP_TARANTOOL_VERSION "0.3.1" +#define PHP_TARANTOOL_VERSION "0.3.2" #define PHP_TARANTOOL_EXTNAME "tarantool" #ifdef PHP_WIN32 From d0f1a59c18d4da77900f1e86daab505d249e5e34 Mon Sep 17 00:00:00 2001 From: Eugine Blikh Date: Fri, 11 May 2018 17:28:18 +0300 Subject: [PATCH 26/30] Fixing problem caused by non-server definitions in space `:format()` For example: ``` local space = box.schema.space.create('test', { format = { { type = compat.unsigned, name = 'field1', add_field = 1 }, { type = compat.unsigned, name = 's1' }, { type = compat.string, name = 's2' }, } }) ``` field `add_field` causes schema parsing to fail with error `Failed to parse schema (space)'` Also added support for Tarantool 1.9+ tests --- src/tarantool.c | 3 +- src/tarantool_schema.c | 2 ++ test/DMLTest.php | 72 +++++++++++++++++++++--------------------- test/shared/box.lua | 41 +++++++++++++++++------- 4 files changed, 68 insertions(+), 50 deletions(-) diff --git a/src/tarantool.c b/src/tarantool.c index ba46c65..30cccd9 100644 --- a/src/tarantool.c +++ b/src/tarantool.c @@ -271,7 +271,7 @@ static int __tarantool_connect(tarantool_object *t_obj) { while (count > 0) { --count; if (err) { - /* If we're here, then there war error */ + /* If we're here, then there was error */ nanosleep(&sleep_time, NULL); efree(err); err = NULL; @@ -301,7 +301,6 @@ static int __tarantool_connect(tarantool_object *t_obj) { } if (count == 0) { ioexception: - // raise (SIGABRT); tarantool_throw_ioexception("%s", err); efree(err); return FAILURE; diff --git a/src/tarantool_schema.c b/src/tarantool_schema.c index 842a4d5..01d7e6f 100644 --- a/src/tarantool_schema.c +++ b/src/tarantool_schema.c @@ -232,6 +232,8 @@ parse_schema_space_value_value(struct schema_field_value *fld, goto error; sfield = mp_decode_str(tuple, &sfield_len); fld->field_type = parse_field_type(sfield, sfield_len); + } else { + mp_next(tuple); } return 0; error: diff --git a/test/DMLTest.php b/test/DMLTest.php index 356c64f..e18809e 100644 --- a/test/DMLTest.php +++ b/test/DMLTest.php @@ -342,7 +342,7 @@ public function test_16_hash_select() { self::$tarantool->select("test_hash", null, null, null, null, TARANTOOL::ITERATOR_EQ); $this->assertFalse(True); } catch (TarantoolClientError $e) { - $this->assertContains('Invalid key part', $e->getMessage()); + $this->assertRegExp('(Invalid key part|via a partial key)', $e->getMessage()); } } @@ -354,7 +354,7 @@ public function test_17_01_it_clienterror($spc, $itype, $xcmsg) { self::$tarantool->select($spc, null, null, null, null, $itype); $this->assertFalse(True); } catch (TarantoolClientError $e) { - $this->assertContains($xcmsg, $e->getMessage()); + $this->assertRegExp($xcmsg, $e->getMessage()); } } @@ -384,40 +384,40 @@ public function test_17_03_it_good($spc, $itype) { public static function provideIteratorClientError() { return [ - ['test_hash', 'EQ' ,'Invalid key part'], - ['test_hash', 'REQ' ,'Invalid key part'], - ['test_hash', 'LT' ,'Invalid key part'], - ['test_hash', 'LE' ,'Invalid key part'], - ['test_hash', 'GE' ,'Invalid key part'], - ['test_hash', 'BITSET_ALL_SET' ,'Invalid key part'], - ['test_hash', 'BITSET_ANY_SET' ,'Invalid key part'], - ['test_hash', 'BITSET_ALL_NOT_SET','Invalid key part'], - ['test_hash', 'BITS_ALL_SET' ,'Invalid key part'], - ['test_hash', 'BITS_ANY_SET' ,'Invalid key part'], - ['test_hash', 'BITS_ALL_NOT_SET' ,'Invalid key part'], - ['test_hash', 'OVERLAPS' ,'Invalid key part'], - ['test_hash', 'NEIGHBOR' ,'Invalid key part'], - ['test_hash', 'eq' ,'Invalid key part'], - ['test_hash', 'req' ,'Invalid key part'], - ['test_hash', 'lt' ,'Invalid key part'], - ['test_hash', 'le' ,'Invalid key part'], - ['test_hash', 'ge' ,'Invalid key part'], - ['test_hash', 'bitset_all_set' ,'Invalid key part'], - ['test_hash', 'bitset_any_set' ,'Invalid key part'], - ['test_hash', 'bitset_all_not_set','Invalid key part'], - ['test_hash', 'bits_all_set' ,'Invalid key part'], - ['test_hash', 'bits_any_set' ,'Invalid key part'], - ['test_hash', 'bits_all_not_set' ,'Invalid key part'], - ['test_hash', 'overlaps' ,'Invalid key part'], - ['test_hash', 'neighbor' ,'Invalid key part'], - ['test' , 'bitset_all_set' ,'does not support requested iterator type'], - ['test' , 'bitset_any_set' ,'does not support requested iterator type'], - ['test' , 'bitset_all_not_set','does not support requested iterator type'], - ['test' , 'bits_all_set' ,'does not support requested iterator type'], - ['test' , 'bits_any_set' ,'does not support requested iterator type'], - ['test' , 'bits_all_not_set' ,'does not support requested iterator type'], - ['test' , 'overlaps' ,'does not support requested iterator type'], - ['test' , 'neighbor' ,'does not support requested iterator type'], + ['test_hash', 'EQ' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'REQ' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'LT' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'LE' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'GE' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'BITSET_ALL_SET' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'BITSET_ANY_SET' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'BITSET_ALL_NOT_SET','(Invalid key part|via a partial key)'], + ['test_hash', 'BITS_ALL_SET' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'BITS_ANY_SET' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'BITS_ALL_NOT_SET' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'OVERLAPS' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'NEIGHBOR' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'eq' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'req' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'lt' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'le' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'ge' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'bitset_all_set' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'bitset_any_set' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'bitset_all_not_set','(Invalid key part|via a partial key)'], + ['test_hash', 'bits_all_set' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'bits_any_set' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'bits_all_not_set' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'overlaps' ,'(Invalid key part|via a partial key)'], + ['test_hash', 'neighbor' ,'(Invalid key part|via a partial key)'], + ['test' , 'bitset_all_set' ,'(does not support requested iterator type)'], + ['test' , 'bitset_any_set' ,'(does not support requested iterator type)'], + ['test' , 'bitset_all_not_set','(does not support requested iterator type)'], + ['test' , 'bits_all_set' ,'(does not support requested iterator type)'], + ['test' , 'bits_any_set' ,'(does not support requested iterator type)'], + ['test' , 'bits_all_not_set' ,'(does not support requested iterator type)'], + ['test' , 'overlaps' ,'(does not support requested iterator type)'], + ['test' , 'neighbor' ,'(does not support requested iterator type)'], ]; } diff --git a/test/shared/box.lua b/test/shared/box.lua index 9612baf..3a64868 100755 --- a/test/shared/box.lua +++ b/test/shared/box.lua @@ -8,13 +8,27 @@ local json = require('json') local yaml = require('yaml') log.info(fio.cwd()) +log.info("admin: %s, primary: %s", os.getenv('ADMIN_PORT'), os.getenv('PRIMARY_PORT')) + +local compat = { + log = 'log', + memtx_memory = 'memtx_memory', + unsigned = 'unsigned', + string = 'string', +} + +if (tonumber(_TARANTOOL:split('-')[1]:split('.')[2]) < 7) then + compat.log = 'logger' + compat.memtx_memory = 'slab_alloc_arena' + compat.unsigned = 'NUM' + compat.string = 'STR' +end -require('console').listen(os.getenv('ADMIN_PORT')) box.cfg{ - listen = os.getenv('PRIMARY_PORT'), - log_level = 5, - logger = 'tarantool.log', - slab_alloc_arena = 0.2 + listen = os.getenv('PRIMARY_PORT'), + log_level = 5, + [compat.log] = 'tarantool.log', + [compat.memtx_memory] = 400 * 1024 * 1024 } box.once('initialization', function() @@ -27,25 +41,25 @@ box.once('initialization', function() local space = box.schema.space.create('test', { format = { - {type = 'STR', name = 'name'}, - {type = 'NUM', name = 's1'}, - {type = 'STR', name = 's2'}, + { type = compat.unsigned, name = 'field1', add_field = 1 }, + { type = compat.unsigned, name = 's1' }, + { type = compat.string, name = 's2' }, } }) space:create_index('primary', { type = 'TREE', unique = true, - parts = {1, 'NUM'} + parts = {1, compat.unsigned} }) space:create_index('secondary', { type = 'TREE', unique = false, - parts = {2, 'NUM', 3, 'STR'} + parts = {2, compat.unsigned, 3, compat.string} }) local space = box.schema.space.create('msgpack') space:create_index('primary', { - parts = {1, 'NUM'} + parts = {1, compat.unsigned} }) space:insert{1, 'float as key', { [2.7] = {1, 2, 3} @@ -74,7 +88,7 @@ box.once('initialization', function() local space = box.schema.space.create('pstring') space:create_index('primary', { - parts = {1, 'STR'} + parts = {1, compat.string} }) local yml = io.open(fio.pathjoin(fio.cwd(), "../test/shared/queue.yml")):read("*a") local tuple = yaml.decode(yml)[1] @@ -125,3 +139,6 @@ end function test_6(...) return ... end + +require('console').listen(os.getenv('ADMIN_PORT')) + From de0ced90a30bfeaddf25606c2cca5bb93897b633 Mon Sep 17 00:00:00 2001 From: Eugine Blikh Date: Sun, 1 Jul 2018 14:17:23 +0000 Subject: [PATCH 27/30] Update PHPUnit to version 7 (old version 4.9 wasnt supported by PHP 7.1+) * Update test-run.py and lib/tarantool_server.py to support python 3 * Update tests accordingly to new version of PHPUnit * Added initialization of standart class properties to 'Tarantool' --- .gitignore | 1 + lib/tarantool_server.py | 8 +- src/tarantool.c | 1 + test-run.py | 18 +- test/AssertTest.php | 8 +- test/CreateTest.php | 9 +- test/DMLTest.php | 14 +- test/MockTest.php | 8 +- test/MsgPackTest.php | 23 +- test/RandomTest.php | 8 +- test/phpunit | 1 - test/phpunit.phar | 107117 +++++++++++++++++-------------------- 12 files changed, 50056 insertions(+), 57160 deletions(-) delete mode 120000 test/phpunit diff --git a/.gitignore b/.gitignore index c93d2e2..a8a541d 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ Makefile.in /config.nice /config.status /config.sub +/configure.ac /configure.in /libtool /ltmain.sh diff --git a/lib/tarantool_server.py b/lib/tarantool_server.py index aab9e77..dbe1481 100644 --- a/lib/tarantool_server.py +++ b/lib/tarantool_server.py @@ -95,17 +95,17 @@ def execute_no_reconnect(self, command): if not command: return cmd = command.replace('\n', ' ') + '\n' - self.socket.sendall(cmd) + self.socket.sendall(cmd.encode()) bufsiz = 4096 - res = "" + res = b'' while True: buf = self.socket.recv(bufsiz) if not buf: break res = res + buf - if (res.rfind("\n...\n") >= 0 or res.rfind("\r\n...\r\n") >= 0): + if (res.rfind(b'\n...\n') >= 0 or res.rfind(b'\r\n...\r\n') >= 0): break return yaml.load(res) @@ -245,7 +245,7 @@ def start(self): self.generate_configuration() if self.script: shutil.copy(self.script, self.script_dst) - os.chmod(self.script_dst, 0777) + os.chmod(self.script_dst, 511) args = self.prepare_args() self.process = subprocess.Popen(args, cwd = self.vardir, diff --git a/src/tarantool.c b/src/tarantool.c index 30cccd9..4352f2d 100644 --- a/src/tarantool.c +++ b/src/tarantool.c @@ -391,6 +391,7 @@ static zend_object *tarantool_create(zend_class_entry *entry) { obj = (tarantool_object *)pecalloc(1, sizeof(tarantool_object) + sizeof(zval) * (entry->default_properties_count - 1), 0); zend_object_std_init(&obj->zo, entry); + object_properties_init(&obj->zo, entry); obj->zo.handlers = &tarantool_obj_handlers; return &obj->zo; diff --git a/test-run.py b/test-run.py index a8381dd..22b5b0f 100755 --- a/test-run.py +++ b/test-run.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python import os import sys @@ -12,6 +12,8 @@ from pprint import pprint +PHPUNIT_PHAR = 'phpunit.phar' + def read_popen(cmd): path = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) path.wait() @@ -22,7 +24,7 @@ def read_popen_config(cmd): return read_popen(cmd) def find_php_bin(): - path = read_popen('which php').strip() + path = read_popen('which php').strip().decode() if (path.find('phpenv') != -1): version = read_popen('phpenv global') if (version.find('system') != -1): @@ -37,7 +39,7 @@ def prepare_env(php_ini): os.mkdir('var') shutil.copy('test/shared/phpunit.xml', 'var') test_dir_path = os.path.abspath(os.path.join(os.getcwd(), 'test')) - test_lib_path = os.path.join(test_dir_path, 'phpunit.phar') + test_lib_path = os.path.join(test_dir_path, PHPUNIT_PHAR) # shutil.copy('test/shared/tarantool.ini', 'var') shutil.copy(php_ini, 'var') shutil.copy('modules/tarantool.so', 'var') @@ -60,10 +62,10 @@ def main(): try: shutil.copy('test/shared/phpunit.xml', os.path.join(test_cwd, 'phpunit.xml')) shutil.copy('modules/tarantool.so', test_cwd) - test_lib_path = os.path.join(test_dir_path, 'phpunit.phar') + test_lib_path = os.path.join(test_dir_path, PHPUNIT_PHAR) - version = read_popen_config('--version').strip(' \n\t') + '.' - version1 = read_popen_config('--extension-dir').strip(' \n\t') + version = read_popen_config('--version').decode().strip(' \n\t') + '.' + version1 = read_popen_config('--extension-dir').decode().strip(' \n\t') version += '\n' + ('With' if version1.find('non-zts') == -1 else 'Without') + ' ZTS' version += '\n' + ('With' if version1.find('no-debug') == -1 else 'Without') + ' Debug' print('Running against ' + version) @@ -100,9 +102,9 @@ def main(): cmd = cmd + 'sudo dtruss ' + find_php_bin() cmd = cmd + ' -c tarantool.ini {0}'.format(test_lib_path) else: - print find_php_bin() + print(find_php_bin()) cmd = '{0} -c tarantool.ini {1}'.format(find_php_bin(), test_lib_path) - print cmd + print(cmd) print('Running "%s" with "%s"' % (cmd, php_ini)) proc = subprocess.Popen(cmd, shell=True, cwd=test_cwd) diff --git a/test/AssertTest.php b/test/AssertTest.php index 6063866..901f51b 100644 --- a/test/AssertTest.php +++ b/test/AssertTest.php @@ -1,5 +1,8 @@ select("test"); } + /** + * @doesNotPerformAssertions + */ public function test_01_closed_connection() { for ($i = 0; $i < 20000; $i++) { try { diff --git a/test/CreateTest.php b/test/CreateTest.php index 2dff2f5..c6c6c56 100644 --- a/test/CreateTest.php +++ b/test/CreateTest.php @@ -1,6 +1,8 @@ close(); } + /** + * @doesNotPerformAssertions + */ public function test_01_01_double_disconnect() { $a = new Tarantool('localhost', self::$port); $a->disconnect(); @@ -42,7 +47,7 @@ public function test_01_01_double_disconnect() { /** * @expectedException TarantoolException - * @expectedExceptionMessageRegExp /Name or service not known|nodename nor servname provided/ + * @expectedExceptionMessageRegExp /Name or service not known|nodename nor servname provided|getaddrinfo/ */ public function test_02_create_error_host() { (new Tarantool('very_bad_host'))->connect(); diff --git a/test/DMLTest.php b/test/DMLTest.php index e18809e..47e9342 100644 --- a/test/DMLTest.php +++ b/test/DMLTest.php @@ -1,5 +1,8 @@ assertEquals($result_tuple, $tuple[0]); } + /** + * @doesNotPerformAssertions + */ public function test_07_update_no_error() { self::$tarantool->update("test", 0, array()); } @@ -439,6 +445,9 @@ public static function provideIteratorGood() { ]; } + /** + * @doesNotPerformAssertions + */ public function test_18_01_delete_loop() { for ($i = 0; $i <= 1000; $i++) { self::$tarantool->replace("pstring", array("test2" . $i, $i)); @@ -451,6 +460,9 @@ public function test_18_01_delete_loop() { gc_collect_cycles(); } + /** + * @doesNotPerformAssertions + */ public function test_18_02_delete_loop() { for ($i = 0; $i <= 1000; $i++) { self::$tarantool->replace("pstring", array("test2" . $i, $i)); diff --git a/test/MockTest.php b/test/MockTest.php index 5850291..4589828 100644 --- a/test/MockTest.php +++ b/test/MockTest.php @@ -1,9 +1,13 @@ getMock('Tarantool'); + // $tnt = $this->createMock(['Tarantool']); + $tnt = $this->createMock(\Tarantool::class); $tnt->expects($this->once())->method('ping'); $tnt->ping(); } diff --git a/test/MsgPackTest.php b/test/MsgPackTest.php index 0b66e67..bceff7a 100644 --- a/test/MsgPackTest.php +++ b/test/MsgPackTest.php @@ -1,5 +1,8 @@ select("msgpack", array(3)); } + /** + * @doesNotPerformAssertions + */ public function test_04_msgpack_integer_keys_arrays() { self::$tarantool->replace("msgpack", array(4, "Integer keys causing server to error", @@ -70,11 +76,12 @@ public function test_05_msgpack_string_keys() { $this->assertTrue(True); } - public function test_06_msgpack_array_reference() { - $data = [ - 'key1' => 'value1', - ]; - $link = &$data['key1']; - self::$tarantool->call('test_4', [$data]); - } + /** + * @doesNotPerformAssertions + */ + public function test_06_msgpack_array_reference() { + $data = [ 'key1' => 'value1', ]; + $link = &$data['key1']; + self::$tarantool->call('test_4', [$data]); + } } diff --git a/test/RandomTest.php b/test/RandomTest.php index 34d942a..3779dcf 100644 --- a/test/RandomTest.php +++ b/test/RandomTest.php @@ -10,7 +10,9 @@ function generateRandomString($length = 10) { return $randomString; } -class RandomTest extends PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +final class RandomTest extends TestCase { protected static $tarantool; @@ -39,6 +41,10 @@ public function test_03_another_big_response() { $this->assertEquals($i, count($result)); } } + + /** + * @doesNotPerformAssertions + */ public function test_04_get_strange_response() { self::$tarantool->select("_schema", "12345"); } diff --git a/test/phpunit b/test/phpunit deleted file mode 120000 index 51e17ab..0000000 --- a/test/phpunit +++ /dev/null @@ -1 +0,0 @@ -phpunit.phar \ No newline at end of file diff --git a/test/phpunit.phar b/test/phpunit.phar index 5419677..c8b6c6b 100644 --- a/test/phpunit.phar +++ b/test/phpunit.phar @@ -1,5 +1,20 @@ #!/usr/bin/env php ')) { + fwrite( + STDERR, + sprintf( + 'PHPUnit 7.2.6 by Sebastian Bergmann and contributors.' . PHP_EOL . PHP_EOL . + 'This version of PHPUnit is supported on PHP 7.1 and PHP 7.2.' . PHP_EOL . + 'You are using PHP %s (%s).' . PHP_EOL, + PHP_VERSION, + PHP_BINARY + ) + ); + + die(1); +} + if (__FILE__ == realpath($GLOBALS['_SERVER']['SCRIPT_NAME'])) { $execute = true; } else { @@ -7,701 +22,610 @@ if (__FILE__ == realpath($GLOBALS['_SERVER']['SCRIPT_NAME'])) { } define('__PHPUNIT_PHAR__', str_replace(DIRECTORY_SEPARATOR, '/', __FILE__)); -define('__PHPUNIT_PHAR_ROOT__', 'phar://phpunit-4.8.24.phar'); - -Phar::mapPhar('phpunit-4.8.24.phar'); - -require 'phar://phpunit-4.8.24.phar' . '/doctrine-instantiator/Doctrine/Instantiator/Exception/ExceptionInterface.php'; -require 'phar://phpunit-4.8.24.phar' . '/doctrine-instantiator/Doctrine/Instantiator/Exception/InvalidArgumentException.php'; -require 'phar://phpunit-4.8.24.phar' . '/doctrine-instantiator/Doctrine/Instantiator/Exception/UnexpectedValueException.php'; -require 'phar://phpunit-4.8.24.phar' . '/doctrine-instantiator/Doctrine/Instantiator/InstantiatorInterface.php'; -require 'phar://phpunit-4.8.24.phar' . '/doctrine-instantiator/Doctrine/Instantiator/Instantiator.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-file-iterator/Iterator.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-file-iterator/Facade.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-file-iterator/Factory.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Driver.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Driver/Xdebug.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Driver/HHVM.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Driver/PHPDBG.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Exception.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Exception/UnintentionallyCoveredCode.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Filter.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Clover.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Crap4j.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Factory.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/HTML.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/HTML/Renderer.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/HTML/Renderer/Dashboard.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/HTML/Renderer/Directory.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/HTML/Renderer/File.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Node.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Node/Directory.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Node/File.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Node/Iterator.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/PHP.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/Text.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/Node.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/Directory.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/File.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/File/Coverage.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/File/Method.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/File/Report.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/File/Unit.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/Project.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/Tests.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Report/XML/Totals.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Util.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-code-coverage/CodeCoverage/Util/InvalidArgumentHelper.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-invoker/Invoker.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-invoker/TimeoutException.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-timer/Timer.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-token-stream/Token.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-token-stream/Token/Stream.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-token-stream/Token/Stream/CachingFactory.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Context.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Description.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Location.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Serializer.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/AuthorTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/SeeTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/CoversTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/VersionTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/DeprecatedTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/SourceTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ExampleTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/LinkTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/MethodTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ParamTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/PropertyTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/PropertyReadTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/PropertyWriteTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/SinceTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ThrowsTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/UsesTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/VarTag.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Type/Collection.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Exception.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/ITester.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/AbstractTester.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/SelfDescribing.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Constraint/DataSetIsEqual.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Constraint/TableIsEqual.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Constraint/TableRowCount.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/IDataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/AbstractDataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ITable.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/AbstractTable.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ITableMetaData.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/AbstractTableMetaData.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/AbstractXmlDataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ArrayDataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/CompositeDataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/CsvDataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/DataSetFilter.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/DefaultDataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/DefaultTable.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ITableIterator.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/DefaultTableIterator.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/DefaultTableMetaData.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/FlatXmlDataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/IPersistable.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ISpec.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/IYamlParser.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/MysqlXmlDataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Persistors/Abstract.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Persistors/Factory.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Persistors/FlatXml.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Persistors/MysqlXml.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Persistors/Xml.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Persistors/Yaml.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/QueryDataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/QueryTable.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ReplacementDataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ReplacementTable.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/ReplacementTableIterator.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/Csv.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/IDatabaseListConsumer.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/DbQuery.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/DbTable.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/IFactory.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/Factory.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/FlatXml.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/Xml.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/Specs/Yaml.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/SymfonyYamlParser.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/TableFilter.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/TableMetaDataFilter.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/XmlDataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DataSet/YamlDataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/DataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/IDatabaseConnection.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/DefaultDatabaseConnection.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/FilteredDataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/IMetaData.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/Dblib.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/Firebird.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/InformationSchema.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/MySQL.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/Oci.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/PgSQL.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/Sqlite.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/MetaData/SqlSrv.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/ResultSetTable.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/Table.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/TableIterator.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DB/TableMetaData.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/DefaultTester.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Exception.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/IDatabaseOperation.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Composite.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/RowBased.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Delete.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/DeleteAll.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Exception.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Factory.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Insert.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Null.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Replace.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Truncate.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/Operation/Update.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Test.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Assert.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/TestCase.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/TestCase.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/Command.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/Context.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/IMediumPrinter.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/IMedium.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/IMode.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/IModeFactory.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/InvalidModeException.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/Mediums/Text.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/ModeFactory.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/Modes/ExportDataSet.php'; -require 'phar://phpunit-4.8.24.phar' . '/dbunit/Extensions/Database/UI/Modes/ExportDataSet/Arguments.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/TestSuite.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Extensions/GroupTestSuite.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Extensions/PhptTestCase.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Extensions/PhptTestSuite.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Extensions/TestDecorator.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Extensions/RepeatedTest.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Command.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/CommandsHolder.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Driver.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Element/Accessor.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Element.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Element/Select.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Attribute.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Click.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Css.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Equals.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/GenericAccessor.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/GenericPost.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Keys.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Value.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ElementCriteria.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Exception.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Keys.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/KeysHolder.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/NoSeleniumException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Response.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/TestListener.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/ScreenshotListener.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Session.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Session/Cookie.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Session/Cookie/Builder.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Session/Storage.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Session/Timeouts.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/AcceptAlert.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Active.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/AlertText.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Click.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/DismissAlert.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/File.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Frame.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/GenericAccessor.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/GenericAttribute.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Location.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Log.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/MoveTo.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Orientation.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Url.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Window.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy/Isolated.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy/Shared.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/StateCommand.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/URL.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/WaitUntil.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/WebDriverException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/Selenium2TestCase/Window.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/SeleniumBrowserSuite.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/SeleniumCommon/ExitHandler.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/SeleniumCommon/RemoteCoverage.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/SeleniumTestCase.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/SeleniumTestCase/Driver.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-selenium/Extensions/SeleniumTestSuite.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Extensions/TicketListener.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Exception.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/AssertionFailedError.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/BaseTestListener.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/CodeCoverageException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/And.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ArrayHasKey.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ArraySubset.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Composite.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Attribute.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Callback.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ClassHasAttribute.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ClassHasStaticAttribute.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Count.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Exception.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ExceptionCode.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ExceptionMessage.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ExceptionMessageRegExp.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/FileExists.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/GreaterThan.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsAnything.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsEmpty.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsEqual.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsFalse.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsIdentical.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsInstanceOf.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsJson.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsNull.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsTrue.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/IsType.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/JsonMatches.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/JsonMatches/ErrorMessageProvider.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/LessThan.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Not.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/ObjectHasAttribute.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Or.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/PCREMatch.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/SameSize.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/StringContains.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/StringEndsWith.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/StringMatches.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/StringStartsWith.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/TraversableContains.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/TraversableContainsOnly.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Constraint/Xor.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Error.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Error/Deprecated.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Error/Notice.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Error/Warning.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/ExceptionWrapper.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/ExpectationFailedException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/IncompleteTest.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/IncompleteTestCase.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/IncompleteTestError.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/SkippedTest.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/InvalidCoversTargetError.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/InvalidCoversTargetException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Exception/Exception.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Exception/BadMethodCallException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Builder/Identity.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Builder/Stub.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Builder/Match.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Builder/ParametersMatch.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Builder/MethodNameMatch.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Builder/InvocationMocker.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Builder/Namespace.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Generator.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Invocation.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Invocation/Static.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Invocation/Object.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/MatcherCollection.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Verifiable.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Invokable.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/InvocationMocker.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/Invocation.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedRecorder.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/AnyInvokedCount.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/StatelessInvocation.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/AnyParameters.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/ConsecutiveParameters.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtIndex.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtLeastCount.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtLeastOnce.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtMostCount.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/InvokedCount.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/MethodName.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Matcher/Parameters.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/MockBuilder.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/MockObject.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Exception/RuntimeException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/ConsecutiveCalls.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/Exception.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/Return.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/ReturnArgument.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/ReturnCallback.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/ReturnSelf.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit-mock-objects/Framework/MockObject/Stub/ReturnValueMap.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/OutputError.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/RiskyTest.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/RiskyTestError.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/SkippedTestCase.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/SkippedTestError.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/SkippedTestSuiteError.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/SyntheticError.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/TestFailure.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/TestResult.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/TestSuite/DataProvider.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/UnintentionallyCoveredCodeError.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Framework/Warning.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/BaseTestRunner.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/Exception.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/Filter/Factory.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/Filter/Group.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/Filter/Group/Exclude.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/Filter/Group/Include.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/Filter/Test.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/TestSuiteLoader.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/StandardTestSuiteLoader.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Runner/Version.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/TextUI/Command.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Printer.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/TextUI/ResultPrinter.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/TextUI/TestRunner.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Blacklist.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Configuration.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/ErrorHandler.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Fileloader.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Filesystem.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Filter.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Getopt.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/GlobalState.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/InvalidArgumentHelper.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Log/JSON.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Log/JUnit.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Log/TAP.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/PHP.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/PHP/Default.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/PHP/Windows.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Regex.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/String.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Test.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/TestDox/NamePrettifier.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/TestDox/ResultPrinter.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/TestDox/ResultPrinter/HTML.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/TestDox/ResultPrinter/Text.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/TestSuiteIterator.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/Type.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpunit/Util/XML.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/ArgumentsWildcard.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/TokenInterface.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/AnyValuesToken.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/AnyValueToken.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ApproximateValueToken.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ArrayCountToken.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ArrayEntryToken.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ArrayEveryEntryToken.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/CallbackToken.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ExactValueToken.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/IdenticalValueToken.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/LogicalAndToken.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/LogicalNotToken.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ObjectStateToken.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/StringContainsToken.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/TypeToken.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Call/Call.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Call/CallCenter.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/Comparator.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Comparator/ClosureComparator.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/Factory.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Comparator/Factory.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/ArrayComparator.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/ObjectComparator.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Comparator/ProphecyComparator.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Doubler.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/CachedDoubler.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/ClassPatchInterface.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/HhvmExceptionPatch.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/KeywordPatch.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/MagicCallPatch.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/ReflectionClassNewInstancePatch.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/TraversablePatch.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/DoubleInterface.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/ClassCodeGenerator.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/ClassCreator.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/ClassMirror.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/Node/ArgumentNode.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/Node/ClassNode.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/Node/MethodNode.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/ReflectionInterface.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/LazyDouble.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Doubler/NameGenerator.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Exception.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prophecy/ProphecyException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prophecy/ObjectProphecyException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Call/UnexpectedCallException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/DoublerException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/ClassCreatorException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/ClassMirrorException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/DoubleException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/ClassNotFoundException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/InterfaceNotFoundException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/MethodNotExtendableException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/MethodNotFoundException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/ReturnByReferenceException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/InvalidArgumentException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/PredictionException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/AggregateException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/FailedPredictionException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prophecy/MethodProphecyException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/NoCallsException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/UnexpectedCallsException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/UnexpectedCallsCountException.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prediction/PredictionInterface.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prediction/CallbackPrediction.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prediction/CallPrediction.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prediction/CallTimesPrediction.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prediction/NoCallsPrediction.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Promise/PromiseInterface.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Promise/CallbackPromise.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Promise/ReturnArgumentPromise.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Promise/ReturnPromise.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Promise/ThrowPromise.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prophecy/MethodProphecy.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prophecy/ProphecyInterface.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prophecy/ObjectProphecy.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prophecy/ProphecySubjectInterface.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prophecy/RevealerInterface.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prophecy/Revealer.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Prophet.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Util/ExportUtil.php'; -require 'phar://phpunit-4.8.24.phar' . '/phpspec-prophecy/Prophecy/Util/StringUtil.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/ComparisonFailure.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/DateTimeComparator.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/DOMNodeComparator.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/ScalarComparator.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/NumericComparator.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/DoubleComparator.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/ExceptionComparator.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/MockObjectComparator.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/ResourceComparator.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/SplObjectStorageComparator.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-comparator/TypeComparator.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/Chunk.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/Diff.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/Differ.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/LCS/LongestCommonSubsequence.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/Line.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-diff/Parser.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-environment/Console.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-environment/Runtime.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-exporter/Exporter.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-global-state/Blacklist.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-global-state/CodeExporter.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-global-state/Exception.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-global-state/Restorer.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-global-state/RuntimeException.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-global-state/Snapshot.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-recursion-context/Context.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-recursion-context/Exception.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-recursion-context/InvalidArgumentException.php'; -require 'phar://phpunit-4.8.24.phar' . '/sebastian-version/Version.php'; -require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Dumper.php'; -require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Escaper.php'; -require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Exception/ExceptionInterface.php'; -require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Exception/RuntimeException.php'; -require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Exception/DumpException.php'; -require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Exception/ParseException.php'; -require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Inline.php'; -require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Parser.php'; -require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Unescaper.php'; -require 'phar://phpunit-4.8.24.phar' . '/symfony/yaml/Symfony/Component/Yaml/Yaml.php'; -require 'phar://phpunit-4.8.24.phar' . '/php-text-template/Template.php'; +define('__PHPUNIT_PHAR_ROOT__', 'phar://phpunit-7.2.6.phar'); + +Phar::mapPhar('phpunit-7.2.6.phar'); + +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/DeepCopy.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/Exception/CloneException.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/Exception/PropertyException.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/Filter/Filter.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/Filter/Doctrine/DoctrineCollectionFilter.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/Filter/Doctrine/DoctrineEmptyCollectionFilter.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/Filter/Doctrine/DoctrineProxyFilter.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/Filter/KeepFilter.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/Filter/ReplaceFilter.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/Filter/SetNullFilter.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/Matcher/Matcher.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/Matcher/Doctrine/DoctrineProxyMatcher.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/Matcher/PropertyMatcher.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/Matcher/PropertyNameMatcher.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/Matcher/PropertyTypeMatcher.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/Reflection/ReflectionHelper.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/TypeFilter/TypeFilter.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/TypeFilter/Date/DateIntervalFilter.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/TypeFilter/ReplaceFilter.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/TypeFilter/ShallowCopyFilter.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/TypeFilter/Spl/SplDoublyLinkedListFilter.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/TypeFilter/Spl/SplDoublyLinkedList.php'; +require 'phar://phpunit-7.2.6.phar' . '/myclabs-deep-copy/DeepCopy/TypeMatcher/TypeMatcher.php'; +require 'phar://phpunit-7.2.6.phar' . '/doctrine-instantiator/Doctrine/Instantiator/Exception/ExceptionInterface.php'; +require 'phar://phpunit-7.2.6.phar' . '/doctrine-instantiator/Doctrine/Instantiator/Exception/InvalidArgumentException.php'; +require 'phar://phpunit-7.2.6.phar' . '/doctrine-instantiator/Doctrine/Instantiator/Exception/UnexpectedValueException.php'; +require 'phar://phpunit-7.2.6.phar' . '/doctrine-instantiator/Doctrine/Instantiator/InstantiatorInterface.php'; +require 'phar://phpunit-7.2.6.phar' . '/doctrine-instantiator/Doctrine/Instantiator/Instantiator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Assert.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/SelfDescribing.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/AssertionFailedError.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/CodeCoverageException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/Constraint.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/ArrayHasKey.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/ArraySubset.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/Composite.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/Attribute.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/Callback.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/ClassHasAttribute.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/ClassHasStaticAttribute.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/Count.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/DirectoryExists.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/ExceptionCode.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/ExceptionMessage.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/ExceptionMessageRegularExpression.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/FileExists.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/GreaterThan.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/IsAnything.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/IsEmpty.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/IsEqual.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/IsFalse.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/IsFinite.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/IsIdentical.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/IsInfinite.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/IsInstanceOf.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/IsJson.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/IsNan.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/IsNull.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/IsReadable.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/IsTrue.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/IsType.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/IsWritable.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/JsonMatches.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/JsonMatchesErrorMessageProvider.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/LessThan.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/LogicalAnd.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/LogicalNot.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/LogicalOr.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/LogicalXor.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/ObjectHasAttribute.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/RegularExpression.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/SameSize.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/StringContains.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/StringEndsWith.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/StringMatchesFormatDescription.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/StringStartsWith.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/TraversableContains.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Constraint/TraversableContainsOnly.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/RiskyTest.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/RiskyTestError.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/CoveredCodeNotExecutedException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Test.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/TestSuite.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/DataProviderTestSuite.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Error/Error.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Error/Deprecated.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Error/Notice.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Error/Warning.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/ExceptionWrapper.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/ExpectationFailedException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/IncompleteTest.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/TestCase.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/IncompleteTestCase.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/IncompleteTestError.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/InvalidCoversTargetException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MissingCoversAnnotationException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Exception/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Exception/BadMethodCallException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Builder/Identity.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Builder/Stub.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Builder/Match.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Builder/ParametersMatch.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Builder/MethodNameMatch.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Builder/InvocationMocker.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Builder/NamespaceMatch.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Generator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Invocation/Invocation.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Stub/MatcherCollection.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Verifiable.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Invokable.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/InvocationMocker.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Invocation/StaticInvocation.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Invocation/ObjectInvocation.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Matcher/Invocation.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Matcher.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Matcher/InvokedRecorder.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Matcher/AnyInvokedCount.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Matcher/StatelessInvocation.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Matcher/AnyParameters.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Matcher/ConsecutiveParameters.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Matcher/DeferredError.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Matcher/InvokedAtIndex.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Matcher/InvokedAtLeastCount.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Matcher/InvokedAtLeastOnce.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Matcher/InvokedAtMostCount.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Matcher/InvokedCount.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Matcher/MethodName.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Matcher/Parameters.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/MockBuilder.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/MockObject.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/ForwardCompatibility/MockObject.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Exception/RuntimeException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Stub.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Stub/ConsecutiveCalls.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Stub/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Stub/ReturnArgument.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Stub/ReturnCallback.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Stub/ReturnReference.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Stub/ReturnSelf.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Stub/ReturnStub.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/MockObject/Stub/ReturnValueMap.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/OutputError.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/SkippedTest.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/SkippedTestCase.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/SkippedTestError.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/SkippedTestSuiteError.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/SyntheticError.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/TestFailure.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/TestListener.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/TestListenerDefaultImplementation.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/TestResult.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/TestSuiteIterator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/UnintentionallyCoveredCodeError.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/Warning.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Framework/WarningTestCase.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Hook/Hook.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Hook/TestHook.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Hook/AfterIncompleteTestHook.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Hook/AfterLastTestHook.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Hook/AfterRiskyTestHook.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Hook/AfterSkippedTestHook.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Hook/AfterSuccessfulTestHook.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Hook/AfterTestErrorHook.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Hook/AfterTestFailureHook.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Hook/AfterTestWarningHook.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/BaseTestRunner.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Hook/BeforeFirstTestHook.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Hook/BeforeTestHook.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Filter/GroupFilterIterator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Filter/ExcludeGroupFilterIterator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Filter/Factory.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Filter/IncludeGroupFilterIterator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Filter/NameFilterIterator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/PhptTestCase.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/TestSuiteLoader.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/StandardTestSuiteLoader.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Hook/TestListenerAdapter.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/TestSuiteSorter.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Runner/Version.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/TextUI/Command.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/Printer.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/TextUI/ResultPrinter.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/TextUI/TestRunner.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/Blacklist.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/Configuration.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/ConfigurationGenerator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/ErrorHandler.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/FileLoader.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/Filesystem.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/Filter.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/Getopt.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/GlobalState.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/InvalidArgumentHelper.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/Json.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/Log/JUnit.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/Log/TeamCity.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/PHP/AbstractPhpProcess.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/PHP/DefaultPhpProcess.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/PHP/WindowsPhpProcess.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/RegularExpression.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/Test.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/TestDox/CliTestDoxPrinter.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/TestDox/ResultPrinter.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/TestDox/HtmlResultPrinter.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/TestDox/NamePrettifier.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/TestDox/TestResult.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/TestDox/TextResultPrinter.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/TestDox/XmlResultPrinter.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/TextTestListRenderer.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/Type.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/Xml.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpunit/Util/XmlTestListRenderer.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-token-stream/Token.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-token-stream/Token/Stream.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-token-stream/Token/Stream/CachingFactory.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/Type.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/Application.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/ApplicationName.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/Author.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/AuthorCollection.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/AuthorCollectionIterator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/ManifestElement.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/AuthorElement.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/ElementCollection.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/AuthorElementCollection.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/BundledComponent.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/BundledComponentCollection.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/BundledComponentCollectionIterator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/BundlesElement.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/ComponentElement.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/ComponentElementCollection.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/ContainsElement.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/CopyrightElement.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/CopyrightInformation.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/Email.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/exceptions/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/ExtElement.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/ExtElementCollection.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/Extension.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/ExtensionElement.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/exceptions/InvalidApplicationNameException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/exceptions/InvalidEmailException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/exceptions/InvalidUrlException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/Library.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/License.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/LicenseElement.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/Manifest.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/ManifestDocument.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/exceptions/ManifestDocumentException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/ManifestDocumentLoadingException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/ManifestDocumentMapper.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/exceptions/ManifestDocumentMapperException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/exceptions/ManifestElementException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/ManifestLoader.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/exceptions/ManifestLoaderException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/ManifestSerializer.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/PhpElement.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/Requirement.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/PhpExtensionRequirement.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/PhpVersionRequirement.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/RequirementCollection.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/RequirementCollectionIterator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/xml/RequiresElement.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-manifest/values/Url.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/VersionConstraint.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/AbstractVersionConstraint.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/AndVersionConstraintGroup.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/AnyVersionConstraint.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/ExactVersionConstraint.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/GreaterThanOrEqualToVersionConstraint.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/InvalidVersionException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/OrVersionConstraintGroup.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/PreReleaseSuffix.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/SpecificMajorAndMinorVersionConstraint.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/SpecificMajorVersionConstraint.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/UnsupportedVersionConstraintException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/Version.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/VersionConstraintParser.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/VersionConstraintValue.php'; +require 'phar://phpunit-7.2.6.phar' . '/phar-io-version/VersionNumber.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/ArgumentsWildcard.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/TokenInterface.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/AnyValueToken.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/AnyValuesToken.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ApproximateValueToken.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ArrayCountToken.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ArrayEntryToken.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ArrayEveryEntryToken.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/CallbackToken.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ExactValueToken.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/IdenticalValueToken.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/LogicalAndToken.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/LogicalNotToken.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/ObjectStateToken.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/StringContainsToken.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Argument/Token/TypeToken.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Call/Call.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Call/CallCenter.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-comparator/Comparator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Comparator/ClosureComparator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-comparator/Factory.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Comparator/Factory.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-comparator/ArrayComparator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-comparator/ObjectComparator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Comparator/ProphecyComparator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/Doubler.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/CachedDoubler.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/ClassPatchInterface.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/HhvmExceptionPatch.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/KeywordPatch.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/MagicCallPatch.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/ReflectionClassNewInstancePatch.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/ClassPatch/TraversablePatch.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/DoubleInterface.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/ClassCodeGenerator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/ClassCreator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/ClassMirror.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/Node/ArgumentNode.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/Node/ClassNode.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/Node/MethodNode.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/ReflectionInterface.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/Generator/TypeHintReference.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/LazyDouble.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Doubler/NameGenerator.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Prophecy/ProphecyException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Prophecy/ObjectProphecyException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Call/UnexpectedCallException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/DoublerException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/ClassCreatorException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/ClassMirrorException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/DoubleException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/ClassNotFoundException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/InterfaceNotFoundException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/MethodNotExtendableException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/MethodNotFoundException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Doubler/ReturnByReferenceException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/InvalidArgumentException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/PredictionException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/AggregateException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/FailedPredictionException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Prophecy/MethodProphecyException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/NoCallsException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/UnexpectedCallsException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Exception/Prediction/UnexpectedCallsCountException.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/PhpDocumentor/MethodTagRetrieverInterface.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/PhpDocumentor/ClassAndInterfaceTagRetriever.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/PhpDocumentor/ClassTagRetriever.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/PhpDocumentor/LegacyClassTagRetriever.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Prediction/PredictionInterface.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Prediction/CallPrediction.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Prediction/CallTimesPrediction.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Prediction/CallbackPrediction.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Prediction/NoCallsPrediction.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Promise/PromiseInterface.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Promise/CallbackPromise.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Promise/ReturnArgumentPromise.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Promise/ReturnPromise.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Promise/ThrowPromise.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Prophecy/MethodProphecy.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Prophecy/ProphecyInterface.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Prophecy/ObjectProphecy.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Prophecy/ProphecySubjectInterface.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Prophecy/RevealerInterface.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Prophecy/Revealer.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Prophet.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Util/ExportUtil.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpspec-prophecy/Prophecy/Util/StringUtil.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/CodeCoverage.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Exception/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Exception/RuntimeException.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Exception/CoveredCodeNotExecutedException.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Driver/Driver.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Driver/PHPDBG.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Driver/Xdebug.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Filter.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Exception/InvalidArgumentException.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Exception/MissingCoversAnnotationException.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Node/AbstractNode.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Node/Builder.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Node/Directory.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Node/File.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Node/Iterator.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Clover.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Crap4j.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Html/Renderer.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Html/Renderer/Dashboard.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Html/Renderer/Directory.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Html/Facade.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Html/Renderer/File.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/PHP.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Text.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Xml/BuildInformation.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Xml/Coverage.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Xml/Node.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Xml/Directory.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Xml/Facade.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Xml/File.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Xml/Method.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Xml/Project.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Xml/Report.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Xml/Source.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Xml/Tests.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Xml/Totals.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Report/Xml/Unit.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Exception/UnintentionallyCoveredCodeException.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Util.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-code-coverage/Version.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-code-unit-reverse-lookup/Wizard.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-comparator/ComparisonFailure.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-comparator/DOMNodeComparator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-comparator/DateTimeComparator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-comparator/ScalarComparator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-comparator/NumericComparator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-comparator/DoubleComparator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-comparator/ExceptionComparator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-comparator/MockObjectComparator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-comparator/ResourceComparator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-comparator/SplObjectStorageComparator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-comparator/TypeComparator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/Chunk.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/Exception/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/Exception/InvalidArgumentException.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/Exception/ConfigurationException.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/Diff.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/Differ.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/Line.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/LongestCommonSubsequenceCalculator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/MemoryEfficientLongestCommonSubsequenceCalculator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/Output/DiffOutputBuilderInterface.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/Output/AbstractChunkOutputBuilder.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/Output/DiffOnlyOutputBuilder.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/Output/StrictUnifiedDiffOutputBuilder.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/Output/UnifiedDiffOutputBuilder.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/Parser.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-diff/TimeEfficientLongestCommonSubsequenceCalculator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-environment/Console.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-environment/OperatingSystem.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-environment/Runtime.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-exporter/Exporter.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-file-iterator/Facade.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-file-iterator/Factory.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-file-iterator/Iterator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-global-state/Blacklist.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-global-state/CodeExporter.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-global-state/exceptions/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-global-state/Restorer.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-global-state/exceptions/RuntimeException.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-global-state/Snapshot.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-invoker/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-invoker/Invoker.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-invoker/TimeoutException.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-object-enumerator/Enumerator.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-object-enumerator/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-object-enumerator/InvalidArgumentException.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-object-reflector/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-object-reflector/InvalidArgumentException.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-object-reflector/ObjectReflector.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-recursion-context/Context.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-recursion-context/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-recursion-context/InvalidArgumentException.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-resource-operations/ResourceOperations.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-timer/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-timer/RuntimeException.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-timer/Timer.php'; +require 'phar://phpunit-7.2.6.phar' . '/sebastian-version/Version.php'; +require 'phar://phpunit-7.2.6.phar' . '/php-text-template/Template.php'; +require 'phar://phpunit-7.2.6.phar' . '/theseer-tokenizer/Exception.php'; +require 'phar://phpunit-7.2.6.phar' . '/theseer-tokenizer/NamespaceUri.php'; +require 'phar://phpunit-7.2.6.phar' . '/theseer-tokenizer/NamespaceUriException.php'; +require 'phar://phpunit-7.2.6.phar' . '/theseer-tokenizer/Token.php'; +require 'phar://phpunit-7.2.6.phar' . '/theseer-tokenizer/TokenCollection.php'; +require 'phar://phpunit-7.2.6.phar' . '/theseer-tokenizer/TokenCollectionException.php'; +require 'phar://phpunit-7.2.6.phar' . '/theseer-tokenizer/Tokenizer.php'; +require 'phar://phpunit-7.2.6.phar' . '/theseer-tokenizer/XMLSerializer.php'; +require 'phar://phpunit-7.2.6.phar' . '/webmozart-assert/Assert.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlockFactoryInterface.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlockFactory.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Description.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/DescriptionFactory.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/ExampleFinder.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Serializer.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/TagFactory.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/StandardTagFactory.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tag.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Factory/StaticMethod.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/BaseTag.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Author.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Covers.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Deprecated.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Example.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Factory/Strategy.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Formatter.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Formatter/AlignFormatter.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Formatter/PassthroughFormatter.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Generic.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Link.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Method.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Param.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Property.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/PropertyRead.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/PropertyWrite.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Reference/Reference.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Reference/Fqsen.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Reference/Url.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Return_.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/See.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Since.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Source.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Throws.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Uses.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Var_.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-docblock/DocBlock/Tags/Version.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-common/Element.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-common/File.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-common/Fqsen.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/FqsenResolver.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-common/Location.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-common/Project.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-reflection-common/ProjectFactory.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Type.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/TypeResolver.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Array_.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Boolean.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Callable_.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Compound.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Context.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/ContextFactory.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Float_.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Integer.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Iterable_.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Mixed_.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Null_.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Nullable.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Object_.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Parent_.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Resource_.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Scalar.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Self_.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Static_.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/String_.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/This.php'; +require 'phar://phpunit-7.2.6.phar' . '/phpdocumentor-type-resolver/Types/Void_.php'; if ($execute) { - if (version_compare('5.3.3', PHP_VERSION, '>')) { - fwrite( - STDERR, - 'This version of PHPUnit requires PHP 5.3.3; using the latest version of PHP is highly recommended.' . PHP_EOL - ); - - die(1); - } - if (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == '--manifest') { print file_get_contents(__PHPUNIT_PHAR_ROOT__ . '/manifest.txt'); exit; } - PHPUnit_TextUI_Command::main(); + PHPUnit\TextUI\Command::main(); } __HALT_COMPILER(); ?> - ?phpunit-4.8.24.phar manifest.txtaXVaMBca.pemXVbyphp-code-coverage/LICENSEXVЉxZ"php-code-coverage/CodeCoverage.phpsiXVsi])php-code-coverage/CodeCoverage/Driver.phpXV0.php-code-coverage/CodeCoverage/Driver/HHVM.php^XV^7b0php-code-coverage/CodeCoverage/Driver/PHPDBG.php XV 90php-code-coverage/CodeCoverage/Driver/Xdebug.phpx XVx ,php-code-coverage/CodeCoverage/Exception.phpXVK)Gphp-code-coverage/CodeCoverage/Exception/UnintentionallyCoveredCode.phpXV})php-code-coverage/CodeCoverage/Filter.php-XV-+Xն0php-code-coverage/CodeCoverage/Report/Clover.php'XV'dV0php-code-coverage/CodeCoverage/Report/Crap4j.php,XV,G8E1php-code-coverage/CodeCoverage/Report/Factory.phpkXVkrp2.php-code-coverage/CodeCoverage/Report/HTML.php=XV=07php-code-coverage/CodeCoverage/Report/HTML/Renderer.php!XV!ԫuAphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Dashboard.php&XV&CʶAphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Directory.php| XV| <php-code-coverage/CodeCoverage/Report/HTML/Renderer/File.php,LXV,L=>Sphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/coverage_bar.html.dist1XV1itLRphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/css/bootstrap.min.css9XV9ܛ2Nphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/css/nv.d3.min.cssX%XVX%0,Jphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/css/style.css+XV+Y`gPphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/dashboard.html.distXV{Pphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/directory.html.disteXVeǐUphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/directory_item.html.dist5XV5Z]Kphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/file.html.dist -XV -DPphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/file_item.html.distgXVgV Pcphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.eotNXVNXDZcphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.svg¨XV¨|ɶcphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.ttf\XV\<dphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.woff[XV[{ephp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.woff2lFXVlFvaPphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/bootstrap.min.jsoXVo;Iphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/d3.min.jsUNXVUN;1Mphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/holder.min.jsmXVmJsѶPphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/html5shiv.min.jsL -XVL -FMphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/jquery.min.jsvXVveLphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/nv.d3.min.js]XV]']4Nphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/js/respond.min.jsXV{Rphp-code-coverage/CodeCoverage/Report/HTML/Renderer/Template/method_item.html.distxXVx*.php-code-coverage/CodeCoverage/Report/Node.phpXV2޶8php-code-coverage/CodeCoverage/Report/Node/Directory.phpS(XVS(3php-code-coverage/CodeCoverage/Report/Node/File.phpJXVJQc7php-code-coverage/CodeCoverage/Report/Node/Iterator.phpXVMq-php-code-coverage/CodeCoverage/Report/PHP.phpXV4R}.php-code-coverage/CodeCoverage/Report/Text.phpx!XVx!`k-php-code-coverage/CodeCoverage/Report/XML.phplXVls7php-code-coverage/CodeCoverage/Report/XML/Directory.phpXVZ2php-code-coverage/CodeCoverage/Report/XML/File.php0XV0ڶ;php-code-coverage/CodeCoverage/Report/XML/File/Coverage.php5XV5(+R9php-code-coverage/CodeCoverage/Report/XML/File/Method.phpuXVuʶ9php-code-coverage/CodeCoverage/Report/XML/File/Report.phpCXVCY{ȶ7php-code-coverage/CodeCoverage/Report/XML/File/Unit.phpB -XVB - kr2php-code-coverage/CodeCoverage/Report/XML/Node.php^XV^N5php-code-coverage/CodeCoverage/Report/XML/Project.php]XV]h>3php-code-coverage/CodeCoverage/Report/XML/Tests.phpXV2t4php-code-coverage/CodeCoverage/Report/XML/Totals.phpXVoF'php-code-coverage/CodeCoverage/Util.phpXVK϶=php-code-coverage/CodeCoverage/Util/InvalidArgumentHelper.php=XV=php-file-iterator/LICENSE XV sphp-file-iterator/Facade.php XV 0php-file-iterator/Factory.php XV yphp-file-iterator/Iterator.phpaXVaphp-text-template/LICENSE XV S:php-text-template/Template.php XV w4php-timer/LICENSEXVǨAEphp-timer/Timer.phpE XVE *Ephp-token-stream/LICENSEXV-& php-token-stream/Token.php:bXV:b#0!!php-token-stream/Token/Stream.php@XV@ܜ0php-token-stream/Token/Stream/CachingFactory.phpXV_phpunit-mock-objects/LICENSEXVC>>phpunit-mock-objects/Framework/MockObject/Builder/Identity.phpXV(4Fphpunit-mock-objects/Framework/MockObject/Builder/InvocationMocker.phpvXVv;phpunit-mock-objects/Framework/MockObject/Builder/Match.phpWXVWEAEphpunit-mock-objects/Framework/MockObject/Builder/MethodNameMatch.php)XV)s?phpunit-mock-objects/Framework/MockObject/Builder/Namespace.phpXVM쉔Ephpunit-mock-objects/Framework/MockObject/Builder/ParametersMatch.phpXVsґζ:phpunit-mock-objects/Framework/MockObject/Builder/Stub.phpoXVohrNphpunit-mock-objects/Framework/MockObject/Exception/BadMethodCallException.phpXV).Aphpunit-mock-objects/Framework/MockObject/Exception/Exception.phpXV]THphpunit-mock-objects/Framework/MockObject/Exception/RuntimeException.phpXVYn47phpunit-mock-objects/Framework/MockObject/Generator.phpXV Iphpunit-mock-objects/Framework/MockObject/Generator/mocked_class.tpl.dist XV FZPphpunit-mock-objects/Framework/MockObject/Generator/mocked_class_method.tpl.distXV4޶Iphpunit-mock-objects/Framework/MockObject/Generator/mocked_clone.tpl.distXVaTJphpunit-mock-objects/Framework/MockObject/Generator/mocked_method.tpl.distXVbVQphpunit-mock-objects/Framework/MockObject/Generator/mocked_static_method.tpl.distXV+FKphpunit-mock-objects/Framework/MockObject/Generator/proxied_method.tpl.distXV?aHphpunit-mock-objects/Framework/MockObject/Generator/trait_class.tpl.dist7XV7[$~Kphpunit-mock-objects/Framework/MockObject/Generator/unmocked_clone.tpl.distXV8W}ضGphpunit-mock-objects/Framework/MockObject/Generator/wsdl_class.tpl.distXVw&SHphpunit-mock-objects/Framework/MockObject/Generator/wsdl_method.tpl.dist<XV<i8phpunit-mock-objects/Framework/MockObject/Invocation.phpXVs?phpunit-mock-objects/Framework/MockObject/Invocation/Object.phpXV9?phpunit-mock-objects/Framework/MockObject/Invocation/Static.phpFXVFKp>phpunit-mock-objects/Framework/MockObject/InvocationMocker.phpXV2׶7phpunit-mock-objects/Framework/MockObject/Invokable.php9XV9~5phpunit-mock-objects/Framework/MockObject/Matcher.php XV 7/Ephpunit-mock-objects/Framework/MockObject/Matcher/AnyInvokedCount.phpXVDs$Cphpunit-mock-objects/Framework/MockObject/Matcher/AnyParameters.phpCXVCKphpunit-mock-objects/Framework/MockObject/Matcher/ConsecutiveParameters.phpXViOm@phpunit-mock-objects/Framework/MockObject/Matcher/Invocation.phpXVKbDphpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtIndex.php XV YIphpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtLeastCount.phpXV RHphpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtLeastOnce.phpXVcIHphpunit-mock-objects/Framework/MockObject/Matcher/InvokedAtMostCount.phpXVBphpunit-mock-objects/Framework/MockObject/Matcher/InvokedCount.php XV SGEphpunit-mock-objects/Framework/MockObject/Matcher/InvokedRecorder.php`XV`!@phpunit-mock-objects/Framework/MockObject/Matcher/MethodName.php XV v@phpunit-mock-objects/Framework/MockObject/Matcher/Parameters.phpXVPjIphpunit-mock-objects/Framework/MockObject/Matcher/StatelessInvocation.phpkXVk϶9phpunit-mock-objects/Framework/MockObject/MockBuilder.phpXV\_8phpunit-mock-objects/Framework/MockObject/MockObject.php9XV9C2phpunit-mock-objects/Framework/MockObject/Stub.php\XV\f+FжCphpunit-mock-objects/Framework/MockObject/Stub/ConsecutiveCalls.phpXV2 <phpunit-mock-objects/Framework/MockObject/Stub/Exception.phpXV<Dphpunit-mock-objects/Framework/MockObject/Stub/MatcherCollection.php:XV:Y9phpunit-mock-objects/Framework/MockObject/Stub/Return.phpXVLf+Aphpunit-mock-objects/Framework/MockObject/Stub/ReturnArgument.phpXV9)`Aphpunit-mock-objects/Framework/MockObject/Stub/ReturnCallback.phpXVg`=phpunit-mock-objects/Framework/MockObject/Stub/ReturnSelf.phpXVIAphpunit-mock-objects/Framework/MockObject/Stub/ReturnValueMap.php|XV|uB 8phpunit-mock-objects/Framework/MockObject/Verifiable.phpXV'Lsebastian-comparator/LICENSE XV :(sebastian-comparator/ArrayComparator.phpXVvx#sebastian-comparator/Comparator.phpPXVP!P=*sebastian-comparator/ComparisonFailure.php XV V*sebastian-comparator/DOMNodeComparator.php XV >%+sebastian-comparator/DateTimeComparator.php XV )sebastian-comparator/DoubleComparator.php7XV7Stٶ,sebastian-comparator/ExceptionComparator.phpXVkf sebastian-comparator/Factory.phpd XVd ه1-sebastian-comparator/MockObjectComparator.phpXVO*sebastian-comparator/NumericComparator.php~ -XV~ -7)sebastian-comparator/ObjectComparator.phpXVw+sebastian-comparator/ResourceComparator.phpXV&w)sebastian-comparator/ScalarComparator.php>XV>B(3sebastian-comparator/SplObjectStorageComparator.php -XV -MQ'sebastian-comparator/TypeComparator.phpXVQsebastian-diff/LICENSEXVvEvösebastian-diff/Chunk.phpXV-*sebastian-diff/Diff.phpXV˾sebastian-diff/Differ.phpXV`/sebastian-diff/LCS/LongestCommonSubsequence.phplXVll1Lsebastian-diff/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.php XV _Jsebastian-diff/LCS/TimeEfficientLongestCommonSubsequenceImplementation.phpXVf#5/sebastian-diff/Line.phpXV:;sebastian-diff/Parser.php' XV' ZKsebastian-environment/LICENSE -XV -߶!sebastian-environment/Console.php XV Oh5!sebastian-environment/Runtime.php@XV@Ҏ!˶sebastian-exporter/LICENSEXVAe)sebastian-exporter/Exporter.php["XV["T#sebastian-recursion-context/LICENSEXV'sebastian-recursion-context/Context.phpXVqP)sebastian-recursion-context/Exception.phpJXVJ8sebastian-recursion-context/InvalidArgumentException.phpXVmHsebastian-global-state/LICENSE -XV - `$sebastian-global-state/Blacklist.php[ XV[ :'sebastian-global-state/CodeExporter.phpXV`(C$sebastian-global-state/Exception.php?XV?#sebastian-global-state/Restorer.phpXVӓ;\+sebastian-global-state/RuntimeException.phpqXVq~]!#sebastian-global-state/Snapshot.php%XV%ÖSݶsebastian-version/LICENSEXVnsebastian-version/Version.php2XV2BZdoctrine-instantiator/LICENSE$XV$ -͂Ldoctrine-instantiator/Doctrine/Instantiator/Exception/ExceptionInterface.phpXV.öRdoctrine-instantiator/Doctrine/Instantiator/Exception/InvalidArgumentException.phpXVh7IRdoctrine-instantiator/Doctrine/Instantiator/Exception/UnexpectedValueException.php -XV -" <doctrine-instantiator/Doctrine/Instantiator/Instantiator.php XV &Edoctrine-instantiator/Doctrine/Instantiator/InstantiatorInterface.php~XV~:symfony/LICENSE)XV)&.symfony/yaml/Symfony/Component/Yaml/Dumper.php XV lD/symfony/yaml/Symfony/Component/Yaml/Escaper.phpXVK?symfony/yaml/Symfony/Component/Yaml/Exception/DumpException.phpXVؙ՚Dsymfony/yaml/Symfony/Component/Yaml/Exception/ExceptionInterface.phpXV+l@symfony/yaml/Symfony/Component/Yaml/Exception/ParseException.phpXV79Bsymfony/yaml/Symfony/Component/Yaml/Exception/RuntimeException.phpXV|-.symfony/yaml/Symfony/Component/Yaml/Inline.phpbMXVbMoܗ.symfony/yaml/Symfony/Component/Yaml/Parser.phphXVh.1symfony/yaml/Symfony/Component/Yaml/Unescaper.phpXV 6,symfony/yaml/Symfony/Component/Yaml/Yaml.php XV G-dbunit/Extensions/Database/AbstractTester.phpXVCY8dbunit/Extensions/Database/Constraint/DataSetIsEqual.phpXVM6dbunit/Extensions/Database/Constraint/TableIsEqual.phpXV7 -7dbunit/Extensions/Database/Constraint/TableRowCount.phpXVIXӶ)dbunit/Extensions/Database/DB/DataSet.phpRXVRx¶;dbunit/Extensions/Database/DB/DefaultDatabaseConnection.php}XV}1dbunit/Extensions/Database/DB/FilteredDataSet.phpFXVF (e5dbunit/Extensions/Database/DB/IDatabaseConnection.php XV dʶ+dbunit/Extensions/Database/DB/IMetaData.php3XV3@G*dbunit/Extensions/Database/DB/MetaData.phpXVET0dbunit/Extensions/Database/DB/MetaData/Dblib.php XV Q3dbunit/Extensions/Database/DB/MetaData/Firebird.phpXV`<dbunit/Extensions/Database/DB/MetaData/InformationSchema.phpiXViTϙ0dbunit/Extensions/Database/DB/MetaData/MySQL.phpXV7-5.dbunit/Extensions/Database/DB/MetaData/Oci.phpbXVb_0dbunit/Extensions/Database/DB/MetaData/PgSQL.phpXVӶ1dbunit/Extensions/Database/DB/MetaData/SqlSrv.php XV 1dbunit/Extensions/Database/DB/MetaData/Sqlite.php3 -XV3 --Բ0dbunit/Extensions/Database/DB/ResultSetTable.phpXV͛'dbunit/Extensions/Database/DB/Table.phpXV8k8o/dbunit/Extensions/Database/DB/TableIterator.php} -XV} -0W6/dbunit/Extensions/Database/DB/TableMetaData.phpXV;Е6dbunit/Extensions/Database/DataSet/AbstractDataSet.php#XV#[Gζ4dbunit/Extensions/Database/DataSet/AbstractTable.phpXXVX<dbunit/Extensions/Database/DataSet/AbstractTableMetaData.phpXV;c9dbunit/Extensions/Database/DataSet/AbstractXmlDataSet.php XV Q63dbunit/Extensions/Database/DataSet/ArrayDataSet.phpyXVy[7dbunit/Extensions/Database/DataSet/CompositeDataSet.php: -XV: -! 1dbunit/Extensions/Database/DataSet/CsvDataSet.php XV 4dbunit/Extensions/Database/DataSet/DataSetFilter.phpjXVj)5dbunit/Extensions/Database/DataSet/DefaultDataSet.phpXVWJ3dbunit/Extensions/Database/DataSet/DefaultTable.phpXV!t;dbunit/Extensions/Database/DataSet/DefaultTableIterator.php XV 4;dbunit/Extensions/Database/DataSet/DefaultTableMetaData.phpXVض5dbunit/Extensions/Database/DataSet/FlatXmlDataSet.phpOXVO36K/dbunit/Extensions/Database/DataSet/IDataSet.phpXVZ߶3dbunit/Extensions/Database/DataSet/IPersistable.phpXV,dbunit/Extensions/Database/DataSet/ISpec.phpXV݂-dbunit/Extensions/Database/DataSet/ITable.phpXVȃN5dbunit/Extensions/Database/DataSet/ITableIterator.phpXV !-5dbunit/Extensions/Database/DataSet/ITableMetaData.php1XV1,+;2dbunit/Extensions/Database/DataSet/IYamlParser.phpXV@ۈ[6dbunit/Extensions/Database/DataSet/MysqlXmlDataSet.php'XV'J!:dbunit/Extensions/Database/DataSet/Persistors/Abstract.php -XV -D:9dbunit/Extensions/Database/DataSet/Persistors/Factory.phpXV(9dbunit/Extensions/Database/DataSet/Persistors/FlatXml.php XV TZ,:dbunit/Extensions/Database/DataSet/Persistors/MysqlXml.php XV OӶ5dbunit/Extensions/Database/DataSet/Persistors/Xml.php5 XV5 .6dbunit/Extensions/Database/DataSet/Persistors/Yaml.phpXV3dbunit/Extensions/Database/DataSet/QueryDataSet.php XV Vö1dbunit/Extensions/Database/DataSet/QueryTable.php`XV` 9dbunit/Extensions/Database/DataSet/ReplacementDataSet.php -XV - 7dbunit/Extensions/Database/DataSet/ReplacementTable.php|XV|hRd?dbunit/Extensions/Database/DataSet/ReplacementTableIterator.php XV ڋ0dbunit/Extensions/Database/DataSet/Specs/Csv.php -XV -4dbunit/Extensions/Database/DataSet/Specs/DbQuery.php XV w4dbunit/Extensions/Database/DataSet/Specs/DbTable.phpXVJ4dbunit/Extensions/Database/DataSet/Specs/Factory.phpXVA̶4dbunit/Extensions/Database/DataSet/Specs/FlatXml.phpXV߆5dbunit/Extensions/Database/DataSet/Specs/IFactory.phplXVl՗+0dbunit/Extensions/Database/DataSet/Specs/Xml.phpXVTZ1dbunit/Extensions/Database/DataSet/Specs/Yaml.phpXV{;>8dbunit/Extensions/Database/DataSet/SymfonyYamlParser.phpOXVOPW2dbunit/Extensions/Database/DataSet/TableFilter.php XV װh:dbunit/Extensions/Database/DataSet/TableMetaDataFilter.phpR XVR @1dbunit/Extensions/Database/DataSet/XmlDataSet.phpXVJz2dbunit/Extensions/Database/DataSet/YamlDataSet.phpXV_,dbunit/Extensions/Database/DefaultTester.phpXVX`(dbunit/Extensions/Database/Exception.phpXVm-`4dbunit/Extensions/Database/IDatabaseListConsumer.php;XV;4o&dbunit/Extensions/Database/ITester.phpXV#2dbunit/Extensions/Database/Operation/Composite.phpXV)ʶ/dbunit/Extensions/Database/Operation/Delete.phpXVn2dbunit/Extensions/Database/Operation/DeleteAll.phpXVCi2dbunit/Extensions/Database/Operation/Exception.php/XV/J0dbunit/Extensions/Database/Operation/Factory.php XV ̶;dbunit/Extensions/Database/Operation/IDatabaseOperation.phpXV"/dbunit/Extensions/Database/Operation/Insert.phpXVEP-dbunit/Extensions/Database/Operation/Null.phpXV0Ӷ0dbunit/Extensions/Database/Operation/Replace.phpeXVeOئ1dbunit/Extensions/Database/Operation/RowBased.php5XV5ih1dbunit/Extensions/Database/Operation/Truncate.php XV rC/dbunit/Extensions/Database/Operation/Update.phpXV>%'dbunit/Extensions/Database/TestCase.php"XV"oj)dbunit/Extensions/Database/UI/Command.phpIXVIT)dbunit/Extensions/Database/UI/Context.phpXVG)dbunit/Extensions/Database/UI/IMedium.phpPXVPԚ0dbunit/Extensions/Database/UI/IMediumPrinter.phpXV}0'dbunit/Extensions/Database/UI/IMode.phpXVd.dbunit/Extensions/Database/UI/IModeFactory.php -XV -6dbunit/Extensions/Database/UI/InvalidModeException.phpXV*,.dbunit/Extensions/Database/UI/Mediums/Text.php XV o4a-dbunit/Extensions/Database/UI/ModeFactory.phpB -XVB -ң5dbunit/Extensions/Database/UI/Modes/ExportDataSet.php XV {?dbunit/Extensions/Database/UI/Modes/ExportDataSet/Arguments.php -XV -(ΰphp-invoker/Invoker.phpXV w php-invoker/TimeoutException.phppXVp~1phpunit-selenium/Extensions/Selenium2TestCase.php!EXV!E[9phpunit-selenium/Extensions/Selenium2TestCase/Command.phpL XVL cyƶ@phpunit-selenium/Extensions/Selenium2TestCase/CommandsHolder.phpXVZew8phpunit-selenium/Extensions/Selenium2TestCase/Driver.phpXVe5v9phpunit-selenium/Extensions/Selenium2TestCase/Element.php XV &Bphpunit-selenium/Extensions/Selenium2TestCase/Element/Accessor.phpXV\w@phpunit-selenium/Extensions/Selenium2TestCase/Element/Select.phpXVL@"Jphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Attribute.phpt XVt  ˈFphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Click.php+ -XV+ -ĻDphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Css.phpi XVi Gphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Equals.php` XV` nնPphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/GenericAccessor.phpi -XVi -PeLphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/GenericPost.phpW -XVW -LqFphpunit-selenium/Extensions/Selenium2TestCase/ElementCommand/Value.phpG XVG +UAphpunit-selenium/Extensions/Selenium2TestCase/ElementCriteria.phpN XVN ¶;phpunit-selenium/Extensions/Selenium2TestCase/Exception.php XV H"[6phpunit-selenium/Extensions/Selenium2TestCase/Keys.phpIXVIͶ<phpunit-selenium/Extensions/Selenium2TestCase/KeysHolder.phpXV|HEphpunit-selenium/Extensions/Selenium2TestCase/NoSeleniumException.php XV k:phpunit-selenium/Extensions/Selenium2TestCase/Response.phpXVTZDphpunit-selenium/Extensions/Selenium2TestCase/ScreenshotListener.phpXVh7Ƕ9phpunit-selenium/Extensions/Selenium2TestCase/Session.php!1XV!1 @phpunit-selenium/Extensions/Selenium2TestCase/Session/Cookie.phpXV$!Hphpunit-selenium/Extensions/Selenium2TestCase/Session/Cookie/Builder.phpXVӸqAphpunit-selenium/Extensions/Selenium2TestCase/Session/Storage.php8 XV8 Bphpunit-selenium/Extensions/Selenium2TestCase/Session/Timeouts.php]XV]/XLphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/AcceptAlert.php1 -XV1 -BHGphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Active.php - XV - 6Jphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/AlertText.phpC XVC lXimFphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Click.php XV ^aMphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/DismissAlert.php6 -XV6 -vlEphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/File.phpXV0ߗFphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Frame.php XV z"Pphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/GenericAccessor.phpT -XVT -XQphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/GenericAttribute.php -XV -BEphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Keys.php$XV$wͶIphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Location.php XV Dphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Log.php XV "=Gphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/MoveTo.phpXV- -Lphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Orientation.php XV @\WIDphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Url.php XV KGphpunit-selenium/Extensions/Selenium2TestCase/SessionCommand/Window.php -XV -Aphpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy.php XV ̳rJphpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy/Isolated.php XV ͶHphpunit-selenium/Extensions/Selenium2TestCase/SessionStrategy/Shared.phpHXVHVm>phpunit-selenium/Extensions/Selenium2TestCase/StateCommand.phpw -XVw -e3Z5phpunit-selenium/Extensions/Selenium2TestCase/URL.phpXVHF;phpunit-selenium/Extensions/Selenium2TestCase/WaitUntil.phpXVzDphpunit-selenium/Extensions/Selenium2TestCase/WebDriverException.phpf XVf K18phpunit-selenium/Extensions/Selenium2TestCase/Window.phpO XVO S4phpunit-selenium/Extensions/SeleniumBrowserSuite.phpXVD:phpunit-selenium/Extensions/SeleniumCommon/ExitHandler.php*XV*϶=phpunit-selenium/Extensions/SeleniumCommon/RemoteCoverage.phpIXVI\.5phpunit-selenium/Extensions/SeleniumCommon/append.php XV ?phpunit-selenium/Extensions/SeleniumCommon/phpunit_coverage.php`XV`Om6phpunit-selenium/Extensions/SeleniumCommon/prepend.php? XV? 0phpunit-selenium/Extensions/SeleniumTestCase.phpXVvK7phpunit-selenium/Extensions/SeleniumTestCase/Driver.phpMXVM0R1phpunit-selenium/Extensions/SeleniumTestSuite.phpXV)phpdocumentor-reflection-docblock/LICENSE8XV8ʶGphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock.phpc6XVc6qOphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Context.php5XV5l.%Sphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Description.phpXVԲضPphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Location.phpqXVqu/Rphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Serializer.phpXVrжKphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag.php(XV(E6 Uphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/AuthorTag.phpM XVM 1Uphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/CoversTag.phpIXVI9{Yphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/DeprecatedTag.phpXVK Vphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ExampleTag.phpXV -Sphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/LinkTag.phpLXVLFUphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/MethodTag.php~XV~!kͶTphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ParamTag.phpH XVH  [phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/PropertyReadTag.php[XV[< =Wphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/PropertyTag.phpOXVO#m\phpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/PropertyWriteTag.php]XV]RpUphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.phpXVpSRphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/SeeTag.phpXVi?$Tphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/SinceTag.php|XV|tRUphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/SourceTag.php XV n*Uphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/ThrowsTag.phpLXVL"Sphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/UsesTag.phpEXVE.˶Rphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/VarTag.phpEXVEͶVphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Tag/VersionTag.phpx -XVx -EƶWphpdocumentor-reflection-docblock/phpDocumentor/Reflection/DocBlock/Type/Collection.phpXV+=4phpspec-prophecy/LICENSE}XV}6&phpspec-prophecy/Prophecy/Argument.phpXVAT8phpspec-prophecy/Prophecy/Argument/ArgumentsWildcard.php4 XV4 A;K2:phpspec-prophecy/Prophecy/Argument/Token/AnyValueToken.phpXVFh;phpspec-prophecy/Prophecy/Argument/Token/AnyValuesToken.phpXVbN/Bphpspec-prophecy/Prophecy/Argument/Token/ApproximateValueToken.phpXV#I<phpspec-prophecy/Prophecy/Argument/Token/ArrayCountToken.phpXV4̶<phpspec-prophecy/Prophecy/Argument/Token/ArrayEntryToken.phpXVJ:Aphpspec-prophecy/Prophecy/Argument/Token/ArrayEveryEntryToken.phpXVpb:phpspec-prophecy/Prophecy/Argument/Token/CallbackToken.php,XV,cR̶<phpspec-prophecy/Prophecy/Argument/Token/ExactValueToken.php XV 3@phpspec-prophecy/Prophecy/Argument/Token/IdenticalValueToken.phpXV<phpspec-prophecy/Prophecy/Argument/Token/LogicalAndToken.phpXV Nv<phpspec-prophecy/Prophecy/Argument/Token/LogicalNotToken.phpXVr=phpspec-prophecy/Prophecy/Argument/Token/ObjectStateToken.php9 -XV9 -_Jg@phpspec-prophecy/Prophecy/Argument/Token/StringContainsToken.phpXV>;phpspec-prophecy/Prophecy/Argument/Token/TokenInterface.phpXVٰ6phpspec-prophecy/Prophecy/Argument/Token/TypeToken.phpXVn\'phpspec-prophecy/Prophecy/Call/Call.php XV {:%-phpspec-prophecy/Prophecy/Call/CallCenter.phpXV|:phpspec-prophecy/Prophecy/Comparator/ClosureComparator.phpKXVK)RQ0phpspec-prophecy/Prophecy/Comparator/Factory.phpXVֈi;phpspec-prophecy/Prophecy/Comparator/ProphecyComparator.phpsXVshǶ3phpspec-prophecy/Prophecy/Doubler/CachedDoubler.phpXV̇gDphpspec-prophecy/Prophecy/Doubler/ClassPatch/ClassPatchInterface.phplXVl)5:Hphpspec-prophecy/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.phpXV:0`Cphpspec-prophecy/Prophecy/Doubler/ClassPatch/HhvmExceptionPatch.phpXVx^=phpspec-prophecy/Prophecy/Doubler/ClassPatch/KeywordPatch.php XV /@ȶ?phpspec-prophecy/Prophecy/Doubler/ClassPatch/MagicCallPatch.phpXV!KMEphpspec-prophecy/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php -XV -niPphpspec-prophecy/Prophecy/Doubler/ClassPatch/ReflectionClassNewInstancePatch.phppXVpxAphpspec-prophecy/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.phpXV!h^Aphpspec-prophecy/Prophecy/Doubler/ClassPatch/TraversablePatch.php XV jN5phpspec-prophecy/Prophecy/Doubler/DoubleInterface.phpXV8dj-phpspec-prophecy/Prophecy/Doubler/Doubler.phpXV8]^Bphpspec-prophecy/Prophecy/Doubler/Generator/ClassCodeGenerator.php7 XV7 О<phpspec-prophecy/Prophecy/Doubler/Generator/ClassCreator.phpXV?Br;phpspec-prophecy/Prophecy/Doubler/Generator/ClassMirror.phpXVՕcAphpspec-prophecy/Prophecy/Doubler/Generator/Node/ArgumentNode.phpXV>X>phpspec-prophecy/Prophecy/Doubler/Generator/Node/ClassNode.phpIXVI)Uݶ?phpspec-prophecy/Prophecy/Doubler/Generator/Node/MethodNode.phpXV'׶Cphpspec-prophecy/Prophecy/Doubler/Generator/ReflectionInterface.phpXV0phpspec-prophecy/Prophecy/Doubler/LazyDouble.phpF XVF l3phpspec-prophecy/Prophecy/Doubler/NameGenerator.phpXV7Dphpspec-prophecy/Prophecy/Exception/Call/UnexpectedCallException.phpXVEphpspec-prophecy/Prophecy/Exception/Doubler/ClassCreatorException.phpXV77/%Dphpspec-prophecy/Prophecy/Exception/Doubler/ClassMirrorException.phpXVۉ?Fphpspec-prophecy/Prophecy/Exception/Doubler/ClassNotFoundException.phpXVh+?phpspec-prophecy/Prophecy/Exception/Doubler/DoubleException.phpXVzF@phpspec-prophecy/Prophecy/Exception/Doubler/DoublerException.phpXVZ^Jphpspec-prophecy/Prophecy/Exception/Doubler/InterfaceNotFoundException.phpXVLphpspec-prophecy/Prophecy/Exception/Doubler/MethodNotExtendableException.phpXV -Gphpspec-prophecy/Prophecy/Exception/Doubler/MethodNotFoundException.phpXVihJphpspec-prophecy/Prophecy/Exception/Doubler/ReturnByReferenceException.phpXV1phpspec-prophecy/Prophecy/Exception/Exception.php+XV+@phpspec-prophecy/Prophecy/Exception/InvalidArgumentException.phpXVgEphpspec-prophecy/Prophecy/Exception/Prediction/AggregateException.phpXV?D<ζLphpspec-prophecy/Prophecy/Exception/Prediction/FailedPredictionException.phpJXVJ~DCphpspec-prophecy/Prophecy/Exception/Prediction/NoCallsException.phpXVl<Fphpspec-prophecy/Prophecy/Exception/Prediction/PredictionException.phpXV2TѶPphpspec-prophecy/Prophecy/Exception/Prediction/UnexpectedCallsCountException.phpXV ƶKphpspec-prophecy/Prophecy/Exception/Prediction/UnexpectedCallsException.php,XV,aHphpspec-prophecy/Prophecy/Exception/Prophecy/MethodProphecyException.php)XV)F4Hphpspec-prophecy/Prophecy/Exception/Prophecy/ObjectProphecyException.phpXV:FBphpspec-prophecy/Prophecy/Exception/Prophecy/ProphecyException.phpXV$϶7phpspec-prophecy/Prophecy/Prediction/CallPrediction.phpQ XVQ I<phpspec-prophecy/Prophecy/Prediction/CallTimesPrediction.php XV X;phpspec-prophecy/Prophecy/Prediction/CallbackPrediction.phpXVVb{ζ:phpspec-prophecy/Prophecy/Prediction/NoCallsPrediction.phpXVL9%<phpspec-prophecy/Prophecy/Prediction/PredictionInterface.phpXV`IE5phpspec-prophecy/Prophecy/Promise/CallbackPromise.phpXV[6phpspec-prophecy/Prophecy/Promise/PromiseInterface.phpKXVK;phpspec-prophecy/Prophecy/Promise/ReturnArgumentPromise.php'XV'(3phpspec-prophecy/Prophecy/Promise/ReturnPromise.phpXV؏2phpspec-prophecy/Prophecy/Promise/ThrowPromise.php` -XV` -+,5phpspec-prophecy/Prophecy/Prophecy/MethodProphecy.php_,XV_,K5phpspec-prophecy/Prophecy/Prophecy/ObjectProphecy.phpXV5D8phpspec-prophecy/Prophecy/Prophecy/ProphecyInterface.php,XV,W?phpspec-prophecy/Prophecy/Prophecy/ProphecySubjectInterface.phpXVi/phpspec-prophecy/Prophecy/Prophecy/Revealer.phpXVjɸ8phpspec-prophecy/Prophecy/Prophecy/RevealerInterface.phpHXVHgZ%phpspec-prophecy/Prophecy/Prophet.phpXVvq-phpspec-prophecy/Prophecy/Util/ExportUtil.php2XV2W-phpspec-prophecy/Prophecy/Util/StringUtil.php XV %phpunit/Exception.phpsXVsy:۶%phpunit/Extensions/GroupTestSuite.phpXVo`˶#phpunit/Extensions/PhptTestCase.php3XV3>$phpunit/Extensions/PhptTestSuite.phpXV ܶ#phpunit/Extensions/RepeatedTest.phpXV$phpunit/Extensions/TestDecorator.php@ XV@ 9%phpunit/Extensions/TicketListener.php%XV%"Xphpunit/Framework/Assert.php}XV},F&phpunit/Framework/Assert/Functions.phpXVg=G/*phpunit/Framework/AssertionFailedError.php{XV{+&phpunit/Framework/BaseTestListener.phppXVpK8X4+phpunit/Framework/CodeCoverageException.phpqXVqE phpunit/Framework/Constraint.php:XV:5L$phpunit/Framework/Constraint/And.php6 XV6 Ŷ,phpunit/Framework/Constraint/ArrayHasKey.phpXVV,phpunit/Framework/Constraint/ArraySubset.phpIXVIc*phpunit/Framework/Constraint/Attribute.php XV l)phpunit/Framework/Constraint/Callback.php3XV32phpunit/Framework/Constraint/ClassHasAttribute.phpXVb8phpunit/Framework/Constraint/ClassHasStaticAttribute.phpXV *phpunit/Framework/Constraint/Composite.phpXV4~)&phpunit/Framework/Constraint/Count.php XV u*phpunit/Framework/Constraint/Exception.phpcXVc*/.phpunit/Framework/Constraint/ExceptionCode.php[XV[ 1phpunit/Framework/Constraint/ExceptionMessage.phpCXVC7phpunit/Framework/Constraint/ExceptionMessageRegExp.php`XV`0}+phpunit/Framework/Constraint/FileExists.phpXV+2,phpunit/Framework/Constraint/GreaterThan.phpXVOR+phpunit/Framework/Constraint/IsAnything.phppXVpV(phpunit/Framework/Constraint/IsEmpty.php&XV&v(phpunit/Framework/Constraint/IsEqual.php!XV! (Q(phpunit/Framework/Constraint/IsFalse.phpuXVuֻ ,phpunit/Framework/Constraint/IsIdentical.phpXVFy;-phpunit/Framework/Constraint/IsInstanceOf.phpXV`Ѷ'phpunit/Framework/Constraint/IsJson.phpXVz#l:'phpunit/Framework/Constraint/IsNull.phpqXVq^`'phpunit/Framework/Constraint/IsTrue.phpqXVq*%'phpunit/Framework/Constraint/IsType.phpt XVt KP,phpunit/Framework/Constraint/JsonMatches.php XV ҶAphpunit/Framework/Constraint/JsonMatches/ErrorMessageProvider.phpXVd˜)phpunit/Framework/Constraint/LessThan.phpXV4w϶$phpunit/Framework/Constraint/Not.phpXVRk3phpunit/Framework/Constraint/ObjectHasAttribute.phpXV/#phpunit/Framework/Constraint/Or.phpf XVf &*phpunit/Framework/Constraint/PCREMatch.phpXV)phpunit/Framework/Constraint/SameSize.phpSXVS/#S/phpunit/Framework/Constraint/StringContains.php2XV2]./phpunit/Framework/Constraint/StringEndsWith.phpXVv>g.phpunit/Framework/Constraint/StringMatches.php XV %c1phpunit/Framework/Constraint/StringStartsWith.phpXV[4phpunit/Framework/Constraint/TraversableContains.php XV ns8phpunit/Framework/Constraint/TraversableContainsOnly.php XV g|s$phpunit/Framework/Constraint/Xor.php XV G:phpunit/Framework/Error.php$XV$X%yW&phpunit/Framework/Error/Deprecated.phpFXVFV"phpunit/Framework/Error/Notice.php0XV0I#phpunit/Framework/Error/Warning.php3XV3mOphpunit/Framework/Exception.php XV ~b&phpunit/Framework/ExceptionWrapper.phpXV0phpunit/Framework/ExpectationFailedException.phpXV_S;$phpunit/Framework/IncompleteTest.phpXVJ(phpunit/Framework/IncompleteTestCase.php5XV5.S)phpunit/Framework/IncompleteTestError.phpXVHt .phpunit/Framework/InvalidCoversTargetError.phpBXVB |2phpunit/Framework/InvalidCoversTargetException.phpXV%M!phpunit/Framework/OutputError.phpXVj̶phpunit/Framework/RiskyTest.phpXV\$phpunit/Framework/RiskyTestError.phpXV?v$phpunit/Framework/SelfDescribing.phpXV:|!phpunit/Framework/SkippedTest.phpXV_ $%phpunit/Framework/SkippedTestCase.phpXV`u&phpunit/Framework/SkippedTestError.php XV T+phpunit/Framework/SkippedTestSuiteError.phpXV7<$phpunit/Framework/SyntheticError.phpXVƷphpunit/Framework/Test.phpXV%phpunit/Framework/TestCase.phpXVJl!phpunit/Framework/TestFailure.phpXV"phpunit/Framework/TestListener.phpn -XVn -{_V phpunit/Framework/TestResult.phpmXVmjsphpunit/Framework/TestSuite.php%sXV%s C,phpunit/Framework/TestSuite/DataProvider.phpXV. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - * Neither the name of Sebastian Bergmann nor the names of his - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. -Qphp-token-stream/LICENSE+[A# !php-token-stream/Token/Stream.php>+[>0php-token-stream/Token/Stream/CachingFactory.php+[ \hsebastian-exporter/LICENSE+[`sebastian-exporter/Exporter.php#+[#!Y5sebastian-diff/LongestCommonSubsequenceCalculator.php<+[<Dsebastian-diff/MemoryEfficientLongestCommonSubsequenceCalculator.phpV+[Vfն5sebastian-diff/Exception/InvalidArgumentException.php+[g&sebastian-diff/Exception/Exception.php@+[@gն3sebastian-diff/Exception/ConfigurationException.phpC+[C< 14sebastian-diff/Output/AbstractChunkOutputBuilder.phpO+[OEl/sebastian-diff/Output/DiffOnlyOutputBuilder.php+[28>2sebastian-diff/Output/UnifiedDiffOutputBuilder.php* +[* 4sebastian-diff/Output/DiffOutputBuilderInterface.php ++[ +zk8sebastian-diff/Output/StrictUnifiedDiffOutputBuilder.php(+[(Nsebastian-diff/Parser.php +[ G2sebastian-diff/Differ.php9%+[9%Dsebastian-diff/Line.phpO+[O' sebastian-diff/LICENSE +[ 7sebastian-diff/Diff.php+[3߬sebastian-diff/Chunk.php+[|ABsebastian-diff/TimeEfficientLongestCommonSubsequenceCalculator.php +[ v< manifest.txtF+[FY$object-reflector/LICENSE ++[ +F5phpdocumentor-reflection-docblock/DocBlockFactory.php$+[$Ń>phpdocumentor-reflection-docblock/DocBlockFactoryInterface.php!+[!})phpdocumentor-reflection-docblock/LICENSE8+[8ʶ9phpdocumentor-reflection-docblock/DocBlock/TagFactory.php+[P;Ͷ<phpdocumentor-reflection-docblock/DocBlock/ExampleFinder.php+[x9phpdocumentor-reflection-docblock/DocBlock/Serializer.php+["~.0:phpdocumentor-reflection-docblock/DocBlock/Description.php/+[/> Aphpdocumentor-reflection-docblock/DocBlock/DescriptionFactory.phpp+[p3{Hphpdocumentor-reflection-docblock/DocBlock/Tags/Factory/StaticMethod.php+[2iDphpdocumentor-reflection-docblock/DocBlock/Tags/Factory/Strategy.php+[RAphpdocumentor-reflection-docblock/DocBlock/Tags/PropertyWrite.php +[ sȶ:phpdocumentor-reflection-docblock/DocBlock/Tags/Covers.phpF+[F.h)>phpdocumentor-reflection-docblock/DocBlock/Tags/Deprecated.php ++[ +=phpdocumentor-reflection-docblock/DocBlock/Tags/Formatter.php+[Dy7<phpdocumentor-reflection-docblock/DocBlock/Tags/Property.php +[ ]]H:phpdocumentor-reflection-docblock/DocBlock/Tags/Throws.php+[Ȉض;phpdocumentor-reflection-docblock/DocBlock/Tags/Return_.php+[@:phpdocumentor-reflection-docblock/DocBlock/Tags/Source.phpn +[n СRphpdocumentor-reflection-docblock/DocBlock/Tags/Formatter/PassthroughFormatter.php++[+ܶLphpdocumentor-reflection-docblock/DocBlock/Tags/Formatter/AlignFormatter.php+[7phpdocumentor-reflection-docblock/DocBlock/Tags/See.php +[ y%9phpdocumentor-reflection-docblock/DocBlock/Tags/Since.php +[ yaö;phpdocumentor-reflection-docblock/DocBlock/Tags/Generic.phpX ++[X +D 9phpdocumentor-reflection-docblock/DocBlock/Tags/Param.php|+[|8phpdocumentor-reflection-docblock/DocBlock/Tags/Uses.phpP+[PT,8phpdocumentor-reflection-docblock/DocBlock/Tags/Var_.php +[ ϶:phpdocumentor-reflection-docblock/DocBlock/Tags/Author.php +[ ;phpdocumentor-reflection-docblock/DocBlock/Tags/Example.phpp+[pH;phpdocumentor-reflection-docblock/DocBlock/Tags/Version.php +[ \Cphpdocumentor-reflection-docblock/DocBlock/Tags/Reference/Fqsen.php+[cGphpdocumentor-reflection-docblock/DocBlock/Tags/Reference/Reference.php,+[,8(Aphpdocumentor-reflection-docblock/DocBlock/Tags/Reference/Url.phpM+[M|8phpdocumentor-reflection-docblock/DocBlock/Tags/Link.phpN+[NV;phpdocumentor-reflection-docblock/DocBlock/Tags/BaseTag.php+[X +c:phpdocumentor-reflection-docblock/DocBlock/Tags/Method.php+[~|@phpdocumentor-reflection-docblock/DocBlock/Tags/PropertyRead.php +[ 22phpdocumentor-reflection-docblock/DocBlock/Tag.phpu+[u⹰Aphpdocumentor-reflection-docblock/DocBlock/StandardTagFactory.phpR.+[R.Ø.phpdocumentor-reflection-docblock/DocBlock.php+[ZLdoctrine-instantiator/Doctrine/Instantiator/Exception/ExceptionInterface.php+[.öRdoctrine-instantiator/Doctrine/Instantiator/Exception/InvalidArgumentException.phpd+[d-Rdoctrine-instantiator/Doctrine/Instantiator/Exception/UnexpectedValueException.phpm +[m <doctrine-instantiator/Doctrine/Instantiator/Instantiator.php+[϶Edoctrine-instantiator/Doctrine/Instantiator/InstantiatorInterface.php~+[~:doctrine-instantiator/LICENSE$+[$ +͂php-text-template/Template.php +[ w4php-text-template/LICENSE +[ S:*phpdocumentor-type-resolver/Types/This.php+[h²,phpdocumentor-type-resolver/Types/Array_.php-+[-_-phpdocumentor-type-resolver/Types/Static_.phpU+[Uޟ ,phpdocumentor-type-resolver/Types/Float_.php+[w,-phpdocumentor-type-resolver/Types/Object_.php+[Q+phpdocumentor-type-resolver/Types/Self_.php+[9'/phpdocumentor-type-resolver/Types/Iterable_.php+[OӶ.phpdocumentor-type-resolver/Types/Compound.php +[ |-phpdocumentor-type-resolver/Types/String_.php+[+phpdocumentor-type-resolver/Types/Void_.phpW+[Wֶ,phpdocumentor-type-resolver/Types/Scalar.php+[U-phpdocumentor-type-resolver/Types/Integer.php+["s.phpdocumentor-type-resolver/Types/Nullable.php+[Ab,phpdocumentor-type-resolver/Types/Mixed_.php+[ϯʶ-phpdocumentor-type-resolver/Types/Context.phpV +[V {-phpdocumentor-type-resolver/Types/Parent_.php4+[4j/phpdocumentor-type-resolver/Types/Resource_.php+[Nf -phpdocumentor-type-resolver/Types/Boolean.php+[f+phpdocumentor-type-resolver/Types/Null_.php+[@%/phpdocumentor-type-resolver/Types/Callable_.php+[4ɿ4phpdocumentor-type-resolver/Types/ContextFactory.php+[E3-phpdocumentor-type-resolver/FqsenResolver.php +[ Rٶ#phpdocumentor-type-resolver/LICENSE8+[8ʶ$phpdocumentor-type-resolver/Type.php+[[L,phpdocumentor-type-resolver/TypeResolver.phpw$+[w$Uysebastian-version/LICENSE+[nsebastian-version/Version.php+[N\Ƕ:myclabs-deep-copy/DeepCopy/Reflection/ReflectionHelper.php~+[~:̶4myclabs-deep-copy/DeepCopy/TypeFilter/TypeFilter.php+[-h;myclabs-deep-copy/DeepCopy/TypeFilter/ShallowCopyFilter.php+[ZٶAmyclabs-deep-copy/DeepCopy/TypeFilter/Date/DateIntervalFilter.php+[GFж7myclabs-deep-copy/DeepCopy/TypeFilter/ReplaceFilter.php +[ 7Amyclabs-deep-copy/DeepCopy/TypeFilter/Spl/SplDoublyLinkedList.php+[̶Gmyclabs-deep-copy/DeepCopy/TypeFilter/Spl/SplDoublyLinkedListFilter.php+[J霶:myclabs-deep-copy/DeepCopy/Exception/PropertyException.phpx+[x47myclabs-deep-copy/DeepCopy/Exception/CloneException.php+[Lt(myclabs-deep-copy/DeepCopy/deep_copy.php+["e6myclabs-deep-copy/DeepCopy/Matcher/PropertyMatcher.php+[?Sb:myclabs-deep-copy/DeepCopy/Matcher/PropertyTypeMatcher.php&+[&.myclabs-deep-copy/DeepCopy/Matcher/Matcher.php+[qeDmyclabs-deep-copy/DeepCopy/Matcher/Doctrine/DoctrineProxyMatcher.phpo+[o?3:myclabs-deep-copy/DeepCopy/Matcher/PropertyNameMatcher.php+[Yx6myclabs-deep-copy/DeepCopy/TypeMatcher/TypeMatcher.php+[swֶBmyclabs-deep-copy/DeepCopy/Filter/Doctrine/DoctrineProxyFilter.php+[Lmyclabs-deep-copy/DeepCopy/Filter/Doctrine/DoctrineEmptyCollectionFilter.php+[7߶Gmyclabs-deep-copy/DeepCopy/Filter/Doctrine/DoctrineCollectionFilter.php+[:D,myclabs-deep-copy/DeepCopy/Filter/Filter.php\+[\6S0myclabs-deep-copy/DeepCopy/Filter/KeepFilter.php+[3myclabs-deep-copy/DeepCopy/Filter/ReplaceFilter.php+[a˲3myclabs-deep-copy/DeepCopy/Filter/SetNullFilter.php+[]]'myclabs-deep-copy/DeepCopy/DeepCopy.php+[amyclabs-deep-copy/LICENSE5+[5ʭ˄ phpunit.xsdO8+[O8`yV*sebastian-object-enumerator/Enumerator.phpr+[rz\8sebastian-object-enumerator/InvalidArgumentException.phpx+[x')sebastian-object-enumerator/Exception.php6+[6n$*a%sebastian-resource-operations/LICENSE +[ I4sebastian-resource-operations/ResourceOperations.phpU+[Uhն5phpunit/Framework/UnintentionallyCoveredCodeError.php+[|phpunit/Framework/Assert.php&/+[&/A%phpunit/Framework/SkippedTestCase.php+[JH+phpunit/Framework/SkippedTestSuiteError.phpV+[VoϺ"phpunit/Framework/TestListener.php+[J +phpunit/Framework/DataProviderTestSuite.phpV+[VI:&phpunit/Framework/Error/Deprecated.phpN+[N,`,"phpunit/Framework/Error/Notice.phpJ+[J[b#phpunit/Framework/Error/Warning.phpK+[K]W!phpunit/Framework/Error/Error.phpa+[aVԶ$phpunit/Framework/SyntheticError.php+[ p)phpunit/Framework/Constraint/LessThan.php+[&4/+phpunit/Framework/Constraint/LogicalNot.php+[;!'phpunit/Framework/Constraint/IsNull.php+[n,phpunit/Framework/Constraint/ArrayHasKey.php+[F4phpunit/Framework/Constraint/TraversableContains.php_ +[_ :ж'phpunit/Framework/Constraint/IsTrue.php+[D,phpunit/Framework/Constraint/JsonMatches.phpm +[m BIw+phpunit/Framework/Constraint/IsInfinite.php+[,+phpunit/Framework/Constraint/IsReadable.phpE+[EXT@phpunit/Framework/Constraint/JsonMatchesErrorMessageProvider.php!+[!X۶)phpunit/Framework/Constraint/IsFinite.php+[M_m(phpunit/Framework/Constraint/IsFalse.php+[MBphpunit/Framework/Constraint/ExceptionMessageRegularExpression.php^+[^b2phpunit/Framework/Constraint/RegularExpression.php<+[<62phpunit/Framework/Constraint/ClassHasAttribute.php+[.Tpo,phpunit/Framework/Constraint/IsIdentical.phpT+[Tk1phpunit/Framework/Constraint/ExceptionMessage.php.+[.vH/phpunit/Framework/Constraint/StringContains.php+[I3phpunit/Framework/Constraint/ObjectHasAttribute.php]+[]OH,phpunit/Framework/Constraint/GreaterThan.php+[?2*phpunit/Framework/Constraint/Attribute.php +[ E+phpunit/Framework/Constraint/Constraint.php8+[8r8*phpunit/Framework/Constraint/Exception.php+[ܶ?phpunit/Framework/Constraint/StringMatchesFormatDescription.php +[ ^50phpunit/Framework/Constraint/DirectoryExists.phpK+[KqSA(phpunit/Framework/Constraint/IsEqual.php+[s-'phpunit/Framework/Constraint/IsType.php +[ 1.phpunit/Framework/Constraint/ExceptionCode.php8+[8^*R-phpunit/Framework/Constraint/IsInstanceOf.php+[+phpunit/Framework/Constraint/IsAnything.php+[hu~*phpunit/Framework/Constraint/LogicalOr.php +[ t8phpunit/Framework/Constraint/ClassHasStaticAttribute.php+[vj(phpunit/Framework/Constraint/IsEmpty.php+[%n&phpunit/Framework/Constraint/IsNan.php +[ s+phpunit/Framework/Constraint/IsWritable.phpE+[E?}ζ)phpunit/Framework/Constraint/Callback.php+[ 'phpunit/Framework/Constraint/IsJson.php+[h/+phpunit/Framework/Constraint/FileExists.php<+[<i &phpunit/Framework/Constraint/Count.php +[ *,phpunit/Framework/Constraint/ArraySubset.php+[W̶/phpunit/Framework/Constraint/StringEndsWith.phpO+[OO*phpunit/Framework/Constraint/Composite.php+[>++phpunit/Framework/Constraint/LogicalXor.php +[ 0)phpunit/Framework/Constraint/SameSize.php+[D+phpunit/Framework/Constraint/LogicalAnd.php +[ <1phpunit/Framework/Constraint/StringStartsWith.php=+[=;18phpunit/Framework/Constraint/TraversableContainsOnly.php[ +[[ &x*phpunit/Framework/AssertionFailedError.php+[9A6phpunit/Framework/MissingCoversAnnotationException.phpD+[D2l+!phpunit/Framework/SkippedTest.php+[py5phpunit/Framework/CoveredCodeNotExecutedException.phpC+[CIo&phpunit/Framework/Assert/Functions.php +[ d}Uphpunit/Framework/Test.php+[δP')phpunit/Framework/IncompleteTestError.phpW+[WzY}+0phpunit/Framework/ExpectationFailedException.php*+[*aphpunit/Framework/Warning.php+[.;$phpunit/Framework/IncompleteTest.php+[%t&phpunit/Framework/SkippedTestError.phpQ+[QE$phpunit/Framework/RiskyTestError.phpM+[Miephpunit/Framework/Exception.php +[ K!phpunit/Framework/TestFailure.php +[ hۼö0phpunit/Framework/MockObject/Stub/ReturnStub.php+[4phpunit/Framework/MockObject/Stub/ReturnValueMap.php+[Z64phpunit/Framework/MockObject/Stub/ReturnCallback.phpf+[fӶ0phpunit/Framework/MockObject/Stub/ReturnSelf.php+[r@/phpunit/Framework/MockObject/Stub/Exception.php+[ϙĶ5phpunit/Framework/MockObject/Stub/ReturnReference.php+[gM4phpunit/Framework/MockObject/Stub/ReturnArgument.php+[WS7phpunit/Framework/MockObject/Stub/MatcherCollection.php+[岛6phpunit/Framework/MockObject/Stub/ConsecutiveCalls.php+[a+phpunit/Framework/MockObject/MockObject.php+[1EͶ1phpunit/Framework/MockObject/Builder/Identity.phpZ+[Z8z98phpunit/Framework/MockObject/Builder/ParametersMatch.php+[Ķ9phpunit/Framework/MockObject/Builder/InvocationMocker.phpF+[F $8phpunit/Framework/MockObject/Builder/MethodNameMatch.php+[xf7phpunit/Framework/MockObject/Builder/NamespaceMatch.php +[ Nq;.phpunit/Framework/MockObject/Builder/Match.php+[ɶ-phpunit/Framework/MockObject/Builder/Stub.php+[),phpunit/Framework/MockObject/MockBuilder.php+[lAphpunit/Framework/MockObject/Exception/BadMethodCallException.phpc+[cu;phpunit/Framework/MockObject/Exception/RuntimeException.phpW+[W[4phpunit/Framework/MockObject/Exception/Exception.phpe+[e]Q⺶(phpunit/Framework/MockObject/Matcher.php3"+[3"*ɠCphpunit/Framework/MockObject/Generator/proxied_method_void.tpl.dist+[ 5_<phpunit/Framework/MockObject/Generator/mocked_clone.tpl.dist+[aT=phpunit/Framework/MockObject/Generator/mocked_method.tpl.dist]+[]~ӭ^Bphpunit/Framework/MockObject/Generator/mocked_method_void.tpl.dist&+[&<phpunit/Framework/MockObject/Generator/mocked_class.tpl.dist+[&;phpunit/Framework/MockObject/Generator/wsdl_method.tpl.dist<+[<i>phpunit/Framework/MockObject/Generator/unmocked_clone.tpl.dist+[8W}ض;phpunit/Framework/MockObject/Generator/trait_class.tpl.dist7+[7[$~>phpunit/Framework/MockObject/Generator/proxied_method.tpl.dist+[~DDphpunit/Framework/MockObject/Generator/mocked_static_method.tpl.dist+[wQCphpunit/Framework/MockObject/Generator/mocked_class_method.tpl.dist+[d:phpunit/Framework/MockObject/Generator/wsdl_class.tpl.dist+[w&S;phpunit/Framework/MockObject/Generator/deprecation.tpl.dist;+[;O5s1phpunit/Framework/MockObject/InvocationMocker.php+[36phpunit/Framework/MockObject/Matcher/DeferredError.php*+[*=F;phpunit/Framework/MockObject/Matcher/InvokedAtLeastOnce.phpf+[fh(l<phpunit/Framework/MockObject/Matcher/InvokedAtLeastCount.php+[J>phpunit/Framework/MockObject/Matcher/ConsecutiveParameters.php+[փ8phpunit/Framework/MockObject/Matcher/InvokedRecorder.php:+[:I.W7phpunit/Framework/MockObject/Matcher/InvokedAtIndex.php +[ `/n3phpunit/Framework/MockObject/Matcher/Parameters.php+[ڋ޴6phpunit/Framework/MockObject/Matcher/AnyParameters.php+[:I|<phpunit/Framework/MockObject/Matcher/StatelessInvocation.phpU+[U@3phpunit/Framework/MockObject/Matcher/MethodName.php+[>Ȯ8phpunit/Framework/MockObject/Matcher/AnyInvokedCount.phpV+[V7;phpunit/Framework/MockObject/Matcher/InvokedAtMostCount.php+[ 3phpunit/Framework/MockObject/Matcher/Invocation.php+[w>5phpunit/Framework/MockObject/Matcher/InvokedCount.php ++[ +a<phpunit/Framework/MockObject/Invocation/StaticInvocation.phpE+[E5n<phpunit/Framework/MockObject/Invocation/ObjectInvocation.php+[ ϿS6phpunit/Framework/MockObject/Invocation/Invocation.php+[ȼ*phpunit/Framework/MockObject/Generator.php+[n+phpunit/Framework/MockObject/Verifiable.php+[eA*phpunit/Framework/MockObject/Invokable.php+[- +@phpunit/Framework/MockObject/ForwardCompatibility/MockObject.php+[pd%phpunit/Framework/MockObject/Stub.phpY+[YPTЃ7phpunit/Framework/TestListenerDefaultImplementation.phpn+[n" %phpunit/Framework/WarningTestCase.php+[l(phpunit/Framework/IncompleteTestCase.php+[,4$phpunit/Framework/SelfDescribing.php+[S&phpunit/Framework/ExceptionWrapper.php. +[. !phpunit/Framework/OutputError.php5+[5Dphpunit/Framework/TestCase.php8+[82phpunit/Framework/InvalidCoversTargetException.phpG+[GiZ phpunit/Framework/TestResult.phpl+[l>Y'phpunit/Framework/TestSuiteIterator.php+[u ophpunit/Framework/TestSuite.phpj+[jphpunit/Framework/RiskyTest.php+[8c}+phpunit/Framework/CodeCoverageException.php4+[4ψͶ!phpunit/Runner/BaseTestRunner.phpc+[c&phpunit/Runner/PhptTestCase.php;+[;I"phpunit/Runner/TestSuiteLoader.php+[XVE)phpunit/Runner/Hook/AfterLastTestHook.phpw+[w~F,phpunit/Runner/Hook/AfterTestFailureHook.php+[zcphpunit/Runner/Hook/Hook.php++[+kXM,phpunit/Runner/Hook/AfterTestWarningHook.php+[ֆ&phpunit/Runner/Hook/BeforeTestHook.php+[zݶ/phpunit/Runner/Hook/AfterSuccessfulTestHook.php+[j3 phpunit/Runner/Hook/TestHook.php<+[<xᤸ,phpunit/Runner/Hook/AfterSkippedTestHook.php+[J +phpunit/Runner/Hook/TestListenerAdapter.php+[rv)*phpunit/Runner/Hook/AfterTestErrorHook.php+[LXǶ+phpunit/Runner/Hook/BeforeFirstTestHook.php{+[{./phpunit/Runner/Hook/AfterIncompleteTestHook.php+[*K*phpunit/Runner/Hook/AfterRiskyTestHook.php+[jYM*phpunit/Runner/StandardTestSuiteLoader.php +[ \phpunit/Runner/Exception.phpK+[K@5v,phpunit/Runner/Filter/NameFilterIterator.php +[ e}!phpunit/Runner/Filter/Factory.php+[I-phpunit/Runner/Filter/GroupFilterIterator.php+[W4phpunit/Runner/Filter/ExcludeGroupFilterIterator.php+[,84phpunit/Runner/Filter/IncludeGroupFilterIterator.php+[dL phpunit/Runner/Version.php+[' C"phpunit/Runner/TestSuiteSorter.php+[&phpunit/TextUI/Command.phpy+[y R#phpunit/TextUI/TestRunner.php2+[2m(? phpunit/TextUI/ResultPrinter.phpE=+[E= +phpunit/Exception.phpD+[D.`phpunit/Util/Getopt.php+[}ֶphpunit/Util/Json.php +[ %{$phpunit/Util/XmlTestListRenderer.php +[ rŶphpunit/Util/Log/TeamCity.php'+['=s}phpunit/Util/Log/JUnit.phpY,+[Y,MX=phpunit/Util/Xml.php+[*eZphpunit/Util/Printer.phpq +[q phpunit/Util/Blacklist.php+[W޶phpunit/Util/ErrorHandler.phpO +[O ;m'phpunit/Util/TestDox/NamePrettifier.php) ++[) +s1*phpunit/Util/TestDox/CliTestDoxPrinter.phpd+[d'*phpunit/Util/TestDox/TextResultPrinter.php4+[4E&phpunit/Util/TestDox/ResultPrinter.php+[*phpunit/Util/TestDox/HtmlResultPrinter.phpz ++[z +8 )phpunit/Util/TestDox/XmlResultPrinter.php+[$w#phpunit/Util/TestDox/TestResult.php+[\3phpunit/Util/FileLoader.phpK+[KAΑphpunit/Util/Test.php+[*"phpunit/Util/RegularExpression.php+[qċphpunit/Util/GlobalState.php+[Ftphpunit/Util/Filter.php6 +[6 5B%phpunit/Util/TextTestListRenderer.php+[(4phpunit/Util/Configuration.phpn+[np\phpunit/Util/Type.php%+[%: &phpunit/Util/InvalidArgumentHelper.php+['phpunit/Util/ConfigurationGenerator.php+[<0phpunit/Util/PHP/Template/TestCaseClass.tpl.dist +[ 81phpunit/Util/PHP/Template/TestCaseMethod.tpl.dist< +[< "F/phpunit/Util/PHP/Template/PhptTestCase.tpl.distF+[F'&phpunit/Util/PHP/DefaultPhpProcess.php+[!R&phpunit/Util/PHP/WindowsPhpProcess.phpX+[X@phpunit/Util/PHP/eval-stdin.php+[^߶'phpunit/Util/PHP/AbstractPhpProcess.phpV&+[V&S|phpunit/Util/Filesystem.php+[k object-enumerator/LICENSE+[fζphp-timer/RuntimeException.php|+[|tSphp-timer/LICENSE+[php-timer/Exception.phpD+[Dɶphp-timer/Timer.php+[ܲ7sebastian-object-reflector/InvalidArgumentException.php+[YJ(sebastian-object-reflector/Exception.phpN+[N ^.sebastian-object-reflector/ObjectReflector.php+[ "2phar-io-version/SpecificMajorVersionConstraint.phpx+[x6+phar-io-version/InvalidVersionException.phpz+[zϡ>C,phar-io-version/OrVersionConstraintGroup.php5+[5ɑ*phar-io-version/ExactVersionConstraint.phpZ+[Z *phar-io-version/VersionConstraintValue.php ++[ +-t+phar-io-version/VersionConstraintParser.phpY +[Y +l:phar-io-version/SpecificMajorAndMinorVersionConstraint.phpa+[a9phar-io-version/UnsupportedVersionConstraintException.php+[`r9phar-io-version/GreaterThanOrEqualToVersionConstraint.php +[ Rfphar-io-version/LICENSE1+[1>:phar-io-version/Exception.phpl+[l؈-phar-io-version/AndVersionConstraintGroup.php7+[7p-phar-io-version/AbstractVersionConstraint.php+[Whgphar-io-version/Version.php+[%phar-io-version/VersionConstraint.php6+[6wU!phar-io-version/VersionNumber.php"+["v޶(phar-io-version/AnyVersionConstraint.php+[$phar-io-version/PreReleaseSuffix.php^+[^!2/phpspec-prophecy/Prophecy/Prophecy/Revealer.php+[jɸ5phpspec-prophecy/Prophecy/Prophecy/MethodProphecy.phpd/+[d/QjK8phpspec-prophecy/Prophecy/Prophecy/ProphecyInterface.php,+[,W8phpspec-prophecy/Prophecy/Prophecy/RevealerInterface.phpH+[HgZ?phpspec-prophecy/Prophecy/Prophecy/ProphecySubjectInterface.php+[i5phpspec-prophecy/Prophecy/Prophecy/ObjectProphecy.php+[5DHphpspec-prophecy/Prophecy/Exception/Prophecy/ObjectProphecyException.php+[:FHphpspec-prophecy/Prophecy/Exception/Prophecy/MethodProphecyException.php)+[)F4Bphpspec-prophecy/Prophecy/Exception/Prophecy/ProphecyException.php+[$϶@phpspec-prophecy/Prophecy/Exception/InvalidArgumentException.php+[gCphpspec-prophecy/Prophecy/Exception/Prediction/NoCallsException.php+[l<Pphpspec-prophecy/Prophecy/Exception/Prediction/UnexpectedCallsCountException.php+[ ƶLphpspec-prophecy/Prophecy/Exception/Prediction/FailedPredictionException.phpJ+[J~DFphpspec-prophecy/Prophecy/Exception/Prediction/PredictionException.php+[2TѶEphpspec-prophecy/Prophecy/Exception/Prediction/AggregateException.php+[?D<ζKphpspec-prophecy/Prophecy/Exception/Prediction/UnexpectedCallsException.php,+[,a1phpspec-prophecy/Prophecy/Exception/Exception.php++[+Lphpspec-prophecy/Prophecy/Exception/Doubler/MethodNotExtendableException.phpD+[Dp?phpspec-prophecy/Prophecy/Exception/Doubler/DoubleException.php+[zF@phpspec-prophecy/Prophecy/Exception/Doubler/DoublerException.php+[Z^Dphpspec-prophecy/Prophecy/Exception/Doubler/ClassMirrorException.php+[ۉ?Gphpspec-prophecy/Prophecy/Exception/Doubler/MethodNotFoundException.php+[XEphpspec-prophecy/Prophecy/Exception/Doubler/ClassCreatorException.php+[77/%Jphpspec-prophecy/Prophecy/Exception/Doubler/InterfaceNotFoundException.php+[Jphpspec-prophecy/Prophecy/Exception/Doubler/ReturnByReferenceException.php+[Fphpspec-prophecy/Prophecy/Exception/Doubler/ClassNotFoundException.php+[h+Dphpspec-prophecy/Prophecy/Exception/Call/UnexpectedCallException.php+[6phpspec-prophecy/Prophecy/Promise/PromiseInterface.phpK+[K3phpspec-prophecy/Prophecy/Promise/ReturnPromise.php+[؏2phpspec-prophecy/Prophecy/Promise/ThrowPromise.php] +[] ~5phpspec-prophecy/Prophecy/Promise/CallbackPromise.php+[[;phpspec-prophecy/Prophecy/Promise/ReturnArgumentPromise.php'+['(;phpspec-prophecy/Prophecy/Comparator/ProphecyComparator.phps+[shǶ0phpspec-prophecy/Prophecy/Comparator/Factory.php+[ֈi:phpspec-prophecy/Prophecy/Comparator/ClosureComparator.phpK+[K)RQ%phpspec-prophecy/Prophecy/Prophet.php+[vqGphpspec-prophecy/Prophecy/PhpDocumentor/MethodTagRetrieverInterface.php+[ ;=phpspec-prophecy/Prophecy/PhpDocumentor/ClassTagRetriever.phpD+[Dd9϶Cphpspec-prophecy/Prophecy/PhpDocumentor/LegacyClassTagRetriever.phpo+[ou9Iphpspec-prophecy/Prophecy/PhpDocumentor/ClassAndInterfaceTagRetriever.phpx+[xrЬ8phpspec-prophecy/Prophecy/Argument/ArgumentsWildcard.php4 +[4 A;K2Bphpspec-prophecy/Prophecy/Argument/Token/ApproximateValueToken.php+[#I:phpspec-prophecy/Prophecy/Argument/Token/CallbackToken.php,+[,cR̶:phpspec-prophecy/Prophecy/Argument/Token/AnyValueToken.php+[Fh<phpspec-prophecy/Prophecy/Argument/Token/LogicalNotToken.php+[r@phpspec-prophecy/Prophecy/Argument/Token/StringContainsToken.php+[>@phpspec-prophecy/Prophecy/Argument/Token/IdenticalValueToken.php+[Aphpspec-prophecy/Prophecy/Argument/Token/ArrayEveryEntryToken.php+[pb<phpspec-prophecy/Prophecy/Argument/Token/LogicalAndToken.php+[ Nv<phpspec-prophecy/Prophecy/Argument/Token/ArrayCountToken.php+[4̶<phpspec-prophecy/Prophecy/Argument/Token/ExactValueToken.php +[ 3;phpspec-prophecy/Prophecy/Argument/Token/AnyValuesToken.php+[bN/6phpspec-prophecy/Prophecy/Argument/Token/TypeToken.php+[n\=phpspec-prophecy/Prophecy/Argument/Token/ObjectStateToken.php9 ++[9 +E.<phpspec-prophecy/Prophecy/Argument/Token/ArrayEntryToken.php+[J:;phpspec-prophecy/Prophecy/Argument/Token/TokenInterface.php+[ٰ<phpspec-prophecy/Prophecy/Prediction/CallTimesPrediction.php +[ X7phpspec-prophecy/Prophecy/Prediction/CallPrediction.phpQ +[Q I<phpspec-prophecy/Prophecy/Prediction/PredictionInterface.php+[`IE:phpspec-prophecy/Prophecy/Prediction/NoCallsPrediction.php+[L9%;phpspec-prophecy/Prophecy/Prediction/CallbackPrediction.php+[Vb{ζ&phpspec-prophecy/Prophecy/Argument.php+[AT3phpspec-prophecy/Prophecy/Doubler/NameGenerator.php+[7>phpspec-prophecy/Prophecy/Doubler/Generator/Node/ClassNode.phpI+[I)Uݶ?phpspec-prophecy/Prophecy/Doubler/Generator/Node/MethodNode.php+[5HAphpspec-prophecy/Prophecy/Doubler/Generator/Node/ArgumentNode.php+[|<phpspec-prophecy/Prophecy/Doubler/Generator/ClassCreator.php+[?BrBphpspec-prophecy/Prophecy/Doubler/Generator/ClassCodeGenerator.php+[THCphpspec-prophecy/Prophecy/Doubler/Generator/ReflectionInterface.php+[;phpspec-prophecy/Prophecy/Doubler/Generator/ClassMirror.php(+[( )Aphpspec-prophecy/Prophecy/Doubler/Generator/TypeHintReference.php+[t>˶=phpspec-prophecy/Prophecy/Doubler/ClassPatch/KeywordPatch.php$ +[$ AA?phpspec-prophecy/Prophecy/Doubler/ClassPatch/MagicCallPatch.phpm +[m 3.ŶEphpspec-prophecy/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php +[ k2HAphpspec-prophecy/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.php~ +[~ THphpspec-prophecy/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php+[:0`Cphpspec-prophecy/Prophecy/Doubler/ClassPatch/HhvmExceptionPatch.php+[x^Dphpspec-prophecy/Prophecy/Doubler/ClassPatch/ClassPatchInterface.phpl+[l)5:Pphpspec-prophecy/Prophecy/Doubler/ClassPatch/ReflectionClassNewInstancePatch.phpp+[pxAphpspec-prophecy/Prophecy/Doubler/ClassPatch/TraversablePatch.php +[ jN3phpspec-prophecy/Prophecy/Doubler/CachedDoubler.php+[̇g0phpspec-prophecy/Prophecy/Doubler/LazyDouble.phpF +[F l5phpspec-prophecy/Prophecy/Doubler/DoubleInterface.php+[8dj-phpspec-prophecy/Prophecy/Doubler/Doubler.php+[8]^-phpspec-prophecy/Prophecy/Call/CallCenter.php +[ nJhJ'phpspec-prophecy/Prophecy/Call/Call.php +[ {:%-phpspec-prophecy/Prophecy/Util/ExportUtil.phpP+[P2qƶ-phpspec-prophecy/Prophecy/Util/StringUtil.php +[ %phpspec-prophecy/LICENSE}+[}6+phpdocumentor-reflection-common/Project.php+[/H ,phpdocumentor-reflection-common/Location.phpH+[H?-)phpdocumentor-reflection-common/Fqsen.php +[ Ӝ2phpdocumentor-reflection-common/ProjectFactory.php+[Q"ܶ'phpdocumentor-reflection-common/LICENSE9+[9*2Ȑ(phpdocumentor-reflection-common/File.php7+[73"+phpdocumentor-reflection-common/Element.php1+[1iUҶ#sebastian-global-state/Snapshot.php!+[!Ò$sebastian-global-state/Blacklist.php ++[ +ܫ9sebastian-global-state/LICENSE+[q~Pd6sebastian-global-state/exceptions/RuntimeException.php+[ y˶/sebastian-global-state/exceptions/Exception.phpP+[PWZ'sebastian-global-state/CodeExporter.phpf +[f |!#sebastian-global-state/Restorer.php"+["M$php-code-coverage/Node/Directory.phpY$+[Y$E"php-code-coverage/Node/Builder.php<+[<ͻ +php-code-coverage/Node/File.php,?+[,?)sI#php-code-coverage/Node/Iterator.php=+[='php-code-coverage/Node/AbstractNode.php+[/V@php-code-coverage/Util.phpN+[NԔtv@php-code-coverage/Exception/MissingCoversAnnotationException.php+[G?php-code-coverage/Exception/CoveredCodeNotExecutedException.php+[w0php-code-coverage/Exception/RuntimeException.phpp+[pwC8php-code-coverage/Exception/InvalidArgumentException.php+[WCphp-code-coverage/Exception/UnintentionallyCoveredCodeException.php+[J+%)php-code-coverage/Exception/Exception.php~+[~uphp-code-coverage/Filter.php+[("php-code-coverage/CodeCoverage.phpq+[qI php-code-coverage/LICENSE+[}s#php-code-coverage/Driver/Xdebug.php +[ , #php-code-coverage/Driver/PHPDBG.phpu ++[u +ۅcO#php-code-coverage/Driver/Driver.php+[!#php-code-coverage/Report/Crap4j.phpK+[Kӗ(php-code-coverage/Report/Xml/Project.php% +[% .'php-code-coverage/Report/Xml/Facade.phpc +[c {y%php-code-coverage/Report/Xml/Unit.php~ ++[~ + *php-code-coverage/Report/Xml/Directory.phpX+[XR'php-code-coverage/Report/Xml/Source.php+[ſ'php-code-coverage/Report/Xml/Report.php +[ ͘~%php-code-coverage/Report/Xml/File.php+[w?)php-code-coverage/Report/Xml/Coverage.php+[v[|'php-code-coverage/Report/Xml/Totals.php+[*%php-code-coverage/Report/Xml/Node.phpN+[N4E&php-code-coverage/Report/Xml/Tests.phpl+[lݴV1php-code-coverage/Report/Xml/BuildInformation.php+[hس'php-code-coverage/Report/Xml/Method.php+[28(php-code-coverage/Report/Html/Facade.php+[w*php-code-coverage/Report/Html/Renderer.phpm +[m Aq>php-code-coverage/Report/Html/Renderer/Template/file.html.distl +[l #:Ephp-code-coverage/Report/Html/Renderer/Template/method_item.html.distx+[x*Cphp-code-coverage/Report/Html/Renderer/Template/directory.html.dist+[#Fphp-code-coverage/Report/Html/Renderer/Template/coverage_bar.html.dist1+[1itLCphp-code-coverage/Report/Html/Renderer/Template/js/bootstrap.min.js+[/jCphp-code-coverage/Report/Html/Renderer/Template/js/html5shiv.min.js[(+[[( ü,@php-code-coverage/Report/Html/Renderer/Template/js/jquery.min.jsR+[R~?php-code-coverage/Report/Html/Renderer/Template/js/nv.d3.min.jsR+[Rphp-code-coverage/Report/Html/Renderer/Template/css/custom.css+[Aphp-code-coverage/Report/Html/Renderer/Template/css/nv.d3.min.cssX%+[X%0,Wphp-code-coverage/Report/Html/Renderer/Template/fonts/glyphicons-halflings-regular.woff[+[[{Vphp-code-coverage/Report/Html/Renderer/Template/fonts/glyphicons-halflings-regular.ttf\+[\<Vphp-code-coverage/Report/Html/Renderer/Template/fonts/glyphicons-halflings-regular.eotN+[NXDZVphp-code-coverage/Report/Html/Renderer/Template/fonts/glyphicons-halflings-regular.svg¨+[¨|ɶXphp-code-coverage/Report/Html/Renderer/Template/fonts/glyphicons-halflings-regular.woff2lF+[lFvaCphp-code-coverage/Report/Html/Renderer/Template/file_item.html.distg+[gV PHphp-code-coverage/Report/Html/Renderer/Template/directory_item.html.dist5+[5Z]4php-code-coverage/Report/Html/Renderer/Directory.php +[ S^./php-code-coverage/Report/Html/Renderer/File.php~H+[~Hش4php-code-coverage/Report/Html/Renderer/Dashboard.php %+[ %޶!php-code-coverage/Report/Text.php\"+[\"6X۶#php-code-coverage/Report/Clover.php(+[(6 php-code-coverage/Report/PHP.phpO+[Ovwphp-code-coverage/Version.php+[php-file-iterator/Facade.php +[ k*̶php-file-iterator/Factory.php+[ 9php-file-iterator/LICENSE+[JU(php-file-iterator/Iterator.php +[ %޶ php-invoker/TimeoutException.phpx+[xI-php-invoker/Exception.php@+[@'php-invoker/Invoker.php+[ ̶*phar-io-manifest/xml/ElementCollection.php+['*(phar-io-manifest/xml/ManifestElement.php +[ :6X)phar-io-manifest/xml/ManifestDocument.php +[ 13phar-io-manifest/xml/ComponentElementCollection.php+[#Iζ)phar-io-manifest/xml/CopyrightElement.php+[)phar-io-manifest/xml/ComponentElement.php>+[> +ȶ'phar-io-manifest/xml/LicenseElement.php4+[4 &phar-io-manifest/xml/AuthorElement.php7+[79phar-io-manifest/xml/ManifestDocumentLoadingException.php+[>(phar-io-manifest/xml/ContainsElement.php'+['Z0phar-io-manifest/xml/AuthorElementCollection.php +[ Byζ-phar-io-manifest/xml/ExtElementCollection.php+['phar-io-manifest/xml/BundlesElement.php&+[&Oϯ#phar-io-manifest/xml/PhpElement.php+[p{:)phar-io-manifest/xml/ExtensionElement.phpB+[B#phar-io-manifest/xml/ExtElement.php+[h/j3(phar-io-manifest/xml/RequiresElement.php+[(ͷ,phar-io-manifest/values/AuthorCollection.php+[Gr6phar-io-manifest/values/BundledComponentCollection.php(+[( +ڶ%phar-io-manifest/values/Extension.php+[03phar-io-manifest/values/PhpExtensionRequirement.php+[<Ͷ$phar-io-manifest/values/Manifest.php +[ Dphar-io-manifest/values/Url.php+[f]#phar-io-manifest/values/Library.php+[Fz+phar-io-manifest/values/ApplicationName.phpc+[c1phar-io-manifest/values/RequirementCollection.php+[)!phar-io-manifest/values/Email.php+[cM phar-io-manifest/values/Type.php+[pn1phar-io-manifest/values/PhpVersionRequirement.php+[,4phar-io-manifest/values/AuthorCollectionIterator.phpa+[a'phar-io-manifest/values/Application.php+[7$~׶9phar-io-manifest/values/RequirementCollectionIterator.php+[n"phar-io-manifest/values/Author.php%+[%W8>phar-io-manifest/values/BundledComponentCollectionIterator.php+[},phar-io-manifest/values/BundledComponent.php+[-Ŷ'phar-io-manifest/values/Requirement.phpp+[p6VA#phar-io-manifest/values/License.php+[*׶0phar-io-manifest/values/CopyrightInformation.phpx+[xtb'phar-io-manifest/ManifestSerializer.php+[t)sebastian-recursion-context/Exception.phpJ+[J'sebastian-recursion-context/Context.php{+[{!sebastian-environment/Console.phpP+[PŰpsebastian-environment/LICENSE+[r=)sebastian-environment/OperatingSystem.php+[<!sebastian-environment/Runtime.php+[UJwebmozart-assert/Assert.php;+[;ѼVwebmozart-assert/LICENSE<+[<t} * @@ -709,2213 +633,1383 @@ POSSIBILITY OF SUCH DAMAGE. * file that was distributed with this source code. */ -use SebastianBergmann\Environment\Runtime; - /** - * Provides collection functionality for PHP code coverage information. - * - * @since Class available since Release 1.0.0 + * A PHP token. */ -class PHP_CodeCoverage +abstract class PHP_Token { /** - * @var PHP_CodeCoverage_Driver + * @var string */ - private $driver; + protected $text; /** - * @var PHP_CodeCoverage_Filter + * @var int */ - private $filter; + protected $line; /** - * @var bool + * @var PHP_Token_Stream */ - private $cacheTokens = false; + protected $tokenStream; /** - * @var bool + * @var int */ - private $checkForUnintentionallyCoveredCode = false; + protected $id; /** - * @var bool + * @param string $text + * @param int $line + * @param PHP_Token_Stream $tokenStream + * @param int $id */ - private $forceCoversAnnotation = false; + public function __construct($text, $line, PHP_Token_Stream $tokenStream, $id) + { + $this->text = $text; + $this->line = $line; + $this->tokenStream = $tokenStream; + $this->id = $id; + } /** - * @var bool + * @return string */ - private $mapTestClassNameToCoveredClassName = false; + public function __toString() + { + return $this->text; + } /** - * @var bool + * @return int */ - private $addUncoveredFilesFromWhitelist = true; + public function getLine() + { + return $this->line; + } /** - * @var bool + * @return int */ - private $processUncoveredFilesFromWhitelist = false; + public function getId() + { + return $this->id; + } +} +abstract class PHP_TokenWithScope extends PHP_Token +{ /** - * @var mixed + * @var int */ - private $currentId; + protected $endTokenId; /** - * Code coverage data. + * Get the docblock for this token * - * @var array + * This method will fetch the docblock belonging to the current token. The + * docblock must be placed on the line directly above the token to be + * recognized. + * + * @return string|null Returns the docblock as a string if found */ - private $data = array(); + public function getDocblock() + { + $tokens = $this->tokenStream->tokens(); + $currentLineNumber = $tokens[$this->id]->getLine(); + $prevLineNumber = $currentLineNumber - 1; - /** - * @var array - */ - private $ignoredLines = array(); + for ($i = $this->id - 1; $i; $i--) { + if (!isset($tokens[$i])) { + return; + } - /** - * @var bool - */ - private $disableIgnoredLines = false; + if ($tokens[$i] instanceof PHP_Token_FUNCTION || + $tokens[$i] instanceof PHP_Token_CLASS || + $tokens[$i] instanceof PHP_Token_TRAIT) { + // Some other trait, class or function, no docblock can be + // used for the current token + break; + } - /** - * Test data. - * - * @var array - */ - private $tests = array(); + $line = $tokens[$i]->getLine(); - /** - * Constructor. - * - * @param PHP_CodeCoverage_Driver $driver - * @param PHP_CodeCoverage_Filter $filter - * @throws PHP_CodeCoverage_Exception - */ - public function __construct(PHP_CodeCoverage_Driver $driver = null, PHP_CodeCoverage_Filter $filter = null) - { - if ($driver === null) { - $driver = $this->selectDriver(); - } + if ($line == $currentLineNumber || + ($line == $prevLineNumber && + $tokens[$i] instanceof PHP_Token_WHITESPACE)) { + continue; + } - if ($filter === null) { - $filter = new PHP_CodeCoverage_Filter; - } + if ($line < $currentLineNumber && + !$tokens[$i] instanceof PHP_Token_DOC_COMMENT) { + break; + } - $this->driver = $driver; - $this->filter = $filter; + return (string) $tokens[$i]; + } } /** - * Returns the PHP_CodeCoverage_Report_Node_* object graph - * for this PHP_CodeCoverage object. - * - * @return PHP_CodeCoverage_Report_Node_Directory - * @since Method available since Release 1.1.0 + * @return int */ - public function getReport() + public function getEndTokenId() { - $factory = new PHP_CodeCoverage_Report_Factory; + $block = 0; + $i = $this->id; + $tokens = $this->tokenStream->tokens(); + + while ($this->endTokenId === null && isset($tokens[$i])) { + if ($tokens[$i] instanceof PHP_Token_OPEN_CURLY || + $tokens[$i] instanceof PHP_Token_CURLY_OPEN) { + $block++; + } elseif ($tokens[$i] instanceof PHP_Token_CLOSE_CURLY) { + $block--; + + if ($block === 0) { + $this->endTokenId = $i; + } + } elseif (($this instanceof PHP_Token_FUNCTION || + $this instanceof PHP_Token_NAMESPACE) && + $tokens[$i] instanceof PHP_Token_SEMICOLON) { + if ($block === 0) { + $this->endTokenId = $i; + } + } + + $i++; + } + + if ($this->endTokenId === null) { + $this->endTokenId = $this->id; + } - return $factory->create($this); + return $this->endTokenId; } /** - * Clears collected code coverage data. + * @return int */ - public function clear() + public function getEndLine() { - $this->currentId = null; - $this->data = array(); - $this->tests = array(); + return $this->tokenStream[$this->getEndTokenId()]->getLine(); } +} +abstract class PHP_TokenWithScopeAndVisibility extends PHP_TokenWithScope +{ /** - * Returns the PHP_CodeCoverage_Filter used. - * - * @return PHP_CodeCoverage_Filter + * @return string */ - public function filter() + public function getVisibility() { - return $this->filter; + $tokens = $this->tokenStream->tokens(); + + for ($i = $this->id - 2; $i > $this->id - 7; $i -= 2) { + if (isset($tokens[$i]) && + ($tokens[$i] instanceof PHP_Token_PRIVATE || + $tokens[$i] instanceof PHP_Token_PROTECTED || + $tokens[$i] instanceof PHP_Token_PUBLIC)) { + return strtolower( + str_replace('PHP_Token_', '', get_class($tokens[$i])) + ); + } + if (isset($tokens[$i]) && + !($tokens[$i] instanceof PHP_Token_STATIC || + $tokens[$i] instanceof PHP_Token_FINAL || + $tokens[$i] instanceof PHP_Token_ABSTRACT)) { + // no keywords; stop visibility search + break; + } + } } /** - * Returns the collected code coverage data. - * Set $raw = true to bypass all filters. - * - * @param bool $raw - * @return array - * @since Method available since Release 1.1.0 + * @return string */ - public function getData($raw = false) + public function getKeywords() { - if (!$raw && $this->addUncoveredFilesFromWhitelist) { - $this->addUncoveredFilesFromWhitelist(); - } + $keywords = []; + $tokens = $this->tokenStream->tokens(); + + for ($i = $this->id - 2; $i > $this->id - 7; $i -= 2) { + if (isset($tokens[$i]) && + ($tokens[$i] instanceof PHP_Token_PRIVATE || + $tokens[$i] instanceof PHP_Token_PROTECTED || + $tokens[$i] instanceof PHP_Token_PUBLIC)) { + continue; + } - // We need to apply the blacklist filter a second time - // when no whitelist is used. - if (!$raw && !$this->filter->hasWhitelist()) { - $this->applyListsFilter($this->data); + if (isset($tokens[$i]) && + ($tokens[$i] instanceof PHP_Token_STATIC || + $tokens[$i] instanceof PHP_Token_FINAL || + $tokens[$i] instanceof PHP_Token_ABSTRACT)) { + $keywords[] = strtolower( + str_replace('PHP_Token_', '', get_class($tokens[$i])) + ); + } } - return $this->data; + return implode(',', $keywords); } +} +abstract class PHP_Token_Includes extends PHP_Token +{ /** - * Sets the coverage data. - * - * @param array $data - * @since Method available since Release 2.0.0 + * @var string */ - public function setData(array $data) - { - $this->data = $data; - } + protected $name; /** - * Returns the test data. - * - * @return array - * @since Method available since Release 1.1.0 + * @var string */ - public function getTests() - { - return $this->tests; - } + protected $type; /** - * Sets the test data. - * - * @param array $tests - * @since Method available since Release 2.0.0 + * @return string */ - public function setTests(array $tests) + public function getName() { - $this->tests = $tests; + if ($this->name === null) { + $this->process(); + } + + return $this->name; } /** - * Start collection of code coverage information. - * - * @param mixed $id - * @param bool $clear - * @throws PHP_CodeCoverage_Exception + * @return string */ - public function start($id, $clear = false) + public function getType() { - if (!is_bool($clear)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, - 'boolean' - ); + if ($this->type === null) { + $this->process(); } - if ($clear) { - $this->clear(); - } + return $this->type; + } - $this->currentId = $id; + private function process() + { + $tokens = $this->tokenStream->tokens(); - $this->driver->start(); + if ($tokens[$this->id + 2] instanceof PHP_Token_CONSTANT_ENCAPSED_STRING) { + $this->name = trim($tokens[$this->id + 2], "'\""); + $this->type = strtolower( + str_replace('PHP_Token_', '', get_class($tokens[$this->id])) + ); + } } +} + +class PHP_Token_FUNCTION extends PHP_TokenWithScopeAndVisibility +{ + /** + * @var array + */ + protected $arguments; + + /** + * @var int + */ + protected $ccn; + + /** + * @var string + */ + protected $name; + + /** + * @var string + */ + protected $signature; + + /** + * @var bool + */ + private $anonymous = false; /** - * Stop collection of code coverage information. - * - * @param bool $append - * @param mixed $linesToBeCovered - * @param array $linesToBeUsed * @return array - * @throws PHP_CodeCoverage_Exception */ - public function stop($append = true, $linesToBeCovered = array(), array $linesToBeUsed = array()) + public function getArguments() { - if (!is_bool($append)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, - 'boolean' - ); + if ($this->arguments !== null) { + return $this->arguments; } - if (!is_array($linesToBeCovered) && $linesToBeCovered !== false) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 2, - 'array or false' - ); + $this->arguments = []; + $tokens = $this->tokenStream->tokens(); + $typeDeclaration = null; + + // Search for first token inside brackets + $i = $this->id + 2; + + while (!$tokens[$i - 1] instanceof PHP_Token_OPEN_BRACKET) { + $i++; } - $data = $this->driver->stop(); - $this->append($data, null, $append, $linesToBeCovered, $linesToBeUsed); + while (!$tokens[$i] instanceof PHP_Token_CLOSE_BRACKET) { + if ($tokens[$i] instanceof PHP_Token_STRING) { + $typeDeclaration = (string) $tokens[$i]; + } elseif ($tokens[$i] instanceof PHP_Token_VARIABLE) { + $this->arguments[(string) $tokens[$i]] = $typeDeclaration; + $typeDeclaration = null; + } - $this->currentId = null; + $i++; + } - return $data; + return $this->arguments; } /** - * Appends code coverage data. - * - * @param array $data - * @param mixed $id - * @param bool $append - * @param mixed $linesToBeCovered - * @param array $linesToBeUsed - * @throws PHP_CodeCoverage_Exception + * @return string */ - public function append(array $data, $id = null, $append = true, $linesToBeCovered = array(), array $linesToBeUsed = array()) + public function getName() { - if ($id === null) { - $id = $this->currentId; - } - - if ($id === null) { - throw new PHP_CodeCoverage_Exception; + if ($this->name !== null) { + return $this->name; } - $this->applyListsFilter($data); - $this->applyIgnoredLinesFilter($data); - $this->initializeFilesThatAreSeenTheFirstTime($data); + $tokens = $this->tokenStream->tokens(); - if (!$append) { - return; - } + $i = $this->id + 1; - if ($id != 'UNCOVERED_FILES_FROM_WHITELIST') { - $this->applyCoversAnnotationFilter( - $data, - $linesToBeCovered, - $linesToBeUsed - ); + if ($tokens[$i] instanceof PHP_Token_WHITESPACE) { + $i++; } - if (empty($data)) { - return; + if ($tokens[$i] instanceof PHP_Token_AMPERSAND) { + $i++; } - $size = 'unknown'; - $status = null; - - if ($id instanceof PHPUnit_Framework_TestCase) { - $_size = $id->getSize(); - - if ($_size == PHPUnit_Util_Test::SMALL) { - $size = 'small'; - } elseif ($_size == PHPUnit_Util_Test::MEDIUM) { - $size = 'medium'; - } elseif ($_size == PHPUnit_Util_Test::LARGE) { - $size = 'large'; - } + if ($tokens[$i + 1] instanceof PHP_Token_OPEN_BRACKET) { + $this->name = (string) $tokens[$i]; + } elseif ($tokens[$i + 1] instanceof PHP_Token_WHITESPACE && $tokens[$i + 2] instanceof PHP_Token_OPEN_BRACKET) { + $this->name = (string) $tokens[$i]; + } else { + $this->anonymous = true; - $status = $id->getStatus(); - $id = get_class($id) . '::' . $id->getName(); - } elseif ($id instanceof PHPUnit_Extensions_PhptTestCase) { - $size = 'large'; - $id = $id->getName(); + $this->name = sprintf( + 'anonymousFunction:%s#%s', + $this->getLine(), + $this->getId() + ); } - $this->tests[$id] = array('size' => $size, 'status' => $status); + if (!$this->isAnonymous()) { + for ($i = $this->id; $i; --$i) { + if ($tokens[$i] instanceof PHP_Token_NAMESPACE) { + $this->name = $tokens[$i]->getName() . '\\' . $this->name; - foreach ($data as $file => $lines) { - if (!$this->filter->isFile($file)) { - continue; - } + break; + } - foreach ($lines as $k => $v) { - if ($v == PHP_CodeCoverage_Driver::LINE_EXECUTED) { - if (empty($this->data[$file][$k]) || !in_array($id, $this->data[$file][$k])) { - $this->data[$file][$k][] = $id; - } + if ($tokens[$i] instanceof PHP_Token_INTERFACE) { + break; } } } + + return $this->name; } /** - * Merges the data from another instance of PHP_CodeCoverage. - * - * @param PHP_CodeCoverage $that + * @return int */ - public function merge(PHP_CodeCoverage $that) + public function getCCN() { - $this->filter->setBlacklistedFiles( - array_merge($this->filter->getBlacklistedFiles(), $that->filter()->getBlacklistedFiles()) - ); - - $this->filter->setWhitelistedFiles( - array_merge($this->filter->getWhitelistedFiles(), $that->filter()->getWhitelistedFiles()) - ); - - foreach ($that->data as $file => $lines) { - if (!isset($this->data[$file])) { - if (!$this->filter->isFiltered($file)) { - $this->data[$file] = $lines; - } + if ($this->ccn !== null) { + return $this->ccn; + } - continue; - } + $this->ccn = 1; + $end = $this->getEndTokenId(); + $tokens = $this->tokenStream->tokens(); - foreach ($lines as $line => $data) { - if ($data !== null) { - if (!isset($this->data[$file][$line])) { - $this->data[$file][$line] = $data; - } else { - $this->data[$file][$line] = array_unique( - array_merge($this->data[$file][$line], $data) - ); - } - } + for ($i = $this->id; $i <= $end; $i++) { + switch (get_class($tokens[$i])) { + case 'PHP_Token_IF': + case 'PHP_Token_ELSEIF': + case 'PHP_Token_FOR': + case 'PHP_Token_FOREACH': + case 'PHP_Token_WHILE': + case 'PHP_Token_CASE': + case 'PHP_Token_CATCH': + case 'PHP_Token_BOOLEAN_AND': + case 'PHP_Token_LOGICAL_AND': + case 'PHP_Token_BOOLEAN_OR': + case 'PHP_Token_LOGICAL_OR': + case 'PHP_Token_QUESTION_MARK': + $this->ccn++; + break; } } - $this->tests = array_merge($this->tests, $that->getTests()); - + return $this->ccn; } /** - * @param bool $flag - * @throws PHP_CodeCoverage_Exception - * @since Method available since Release 1.1.0 + * @return string */ - public function setCacheTokens($flag) + public function getSignature() { - if (!is_bool($flag)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, - 'boolean' - ); + if ($this->signature !== null) { + return $this->signature; } - $this->cacheTokens = $flag; + if ($this->isAnonymous()) { + $this->signature = 'anonymousFunction'; + $i = $this->id + 1; + } else { + $this->signature = ''; + $i = $this->id + 2; + } + + $tokens = $this->tokenStream->tokens(); + + while (isset($tokens[$i]) && + !$tokens[$i] instanceof PHP_Token_OPEN_CURLY && + !$tokens[$i] instanceof PHP_Token_SEMICOLON) { + $this->signature .= $tokens[$i++]; + } + + $this->signature = trim($this->signature); + + return $this->signature; } /** - * @since Method available since Release 1.1.0 + * @return bool */ - public function getCacheTokens() + public function isAnonymous() { - return $this->cacheTokens; + return $this->anonymous; } +} +class PHP_Token_INTERFACE extends PHP_TokenWithScopeAndVisibility +{ /** - * @param bool $flag - * @throws PHP_CodeCoverage_Exception - * @since Method available since Release 2.0.0 + * @var array */ - public function setCheckForUnintentionallyCoveredCode($flag) - { - if (!is_bool($flag)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, - 'boolean' - ); - } - - $this->checkForUnintentionallyCoveredCode = $flag; - } + protected $interfaces; /** - * @param bool $flag - * @throws PHP_CodeCoverage_Exception + * @return string */ - public function setForceCoversAnnotation($flag) + public function getName() { - if (!is_bool($flag)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, - 'boolean' - ); - } - - $this->forceCoversAnnotation = $flag; + return (string) $this->tokenStream[$this->id + 2]; } /** - * @param bool $flag - * @throws PHP_CodeCoverage_Exception + * @return bool */ - public function setMapTestClassNameToCoveredClassName($flag) + public function hasParent() { - if (!is_bool($flag)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, - 'boolean' - ); - } - - $this->mapTestClassNameToCoveredClassName = $flag; + return $this->tokenStream[$this->id + 4] instanceof PHP_Token_EXTENDS; } /** - * @param bool $flag - * @throws PHP_CodeCoverage_Exception + * @return array */ - public function setAddUncoveredFilesFromWhitelist($flag) + public function getPackage() { - if (!is_bool($flag)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, - 'boolean' - ); - } + $className = $this->getName(); + $docComment = $this->getDocblock(); - $this->addUncoveredFilesFromWhitelist = $flag; - } + $result = [ + 'namespace' => '', + 'fullPackage' => '', + 'category' => '', + 'package' => '', + 'subpackage' => '' + ]; - /** - * @param bool $flag - * @throws PHP_CodeCoverage_Exception - */ - public function setProcessUncoveredFilesFromWhitelist($flag) - { - if (!is_bool($flag)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, - 'boolean' - ); + for ($i = $this->id; $i; --$i) { + if ($this->tokenStream[$i] instanceof PHP_Token_NAMESPACE) { + $result['namespace'] = $this->tokenStream[$i]->getName(); + break; + } } - $this->processUncoveredFilesFromWhitelist = $flag; - } - - /** - * @param bool $flag - * @throws PHP_CodeCoverage_Exception - */ - public function setDisableIgnoredLines($flag) - { - if (!is_bool($flag)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, - 'boolean' - ); + if (preg_match('/@category[\s]+([\.\w]+)/', $docComment, $matches)) { + $result['category'] = $matches[1]; } - $this->disableIgnoredLines = $flag; - } - - /** - * Applies the @covers annotation filtering. - * - * @param array $data - * @param mixed $linesToBeCovered - * @param array $linesToBeUsed - * @throws PHP_CodeCoverage_Exception_UnintentionallyCoveredCode - */ - private function applyCoversAnnotationFilter(array &$data, $linesToBeCovered, array $linesToBeUsed) - { - if ($linesToBeCovered === false || - ($this->forceCoversAnnotation && empty($linesToBeCovered))) { - $data = array(); - - return; + if (preg_match('/@package[\s]+([\.\w]+)/', $docComment, $matches)) { + $result['package'] = $matches[1]; + $result['fullPackage'] = $matches[1]; } - if (empty($linesToBeCovered)) { - return; + if (preg_match('/@subpackage[\s]+([\.\w]+)/', $docComment, $matches)) { + $result['subpackage'] = $matches[1]; + $result['fullPackage'] .= '.' . $matches[1]; } - if ($this->checkForUnintentionallyCoveredCode) { - $this->performUnintentionallyCoveredCodeCheck( - $data, - $linesToBeCovered, - $linesToBeUsed + if (empty($result['fullPackage'])) { + $result['fullPackage'] = $this->arrayToName( + explode('_', str_replace('\\', '_', $className)), + '.' ); } - $data = array_intersect_key($data, $linesToBeCovered); - - foreach (array_keys($data) as $filename) { - $_linesToBeCovered = array_flip($linesToBeCovered[$filename]); - - $data[$filename] = array_intersect_key( - $data[$filename], - $_linesToBeCovered - ); - } + return $result; } /** - * Applies the blacklist/whitelist filtering. + * @param array $parts + * @param string $join * - * @param array $data + * @return string */ - private function applyListsFilter(array &$data) + protected function arrayToName(array $parts, $join = '\\') { - foreach (array_keys($data) as $filename) { - if ($this->filter->isFiltered($filename)) { - unset($data[$filename]); - } - } - } + $result = ''; - /** - * Applies the "ignored lines" filtering. - * - * @param array $data - */ - private function applyIgnoredLinesFilter(array &$data) - { - foreach (array_keys($data) as $filename) { - if (!$this->filter->isFile($filename)) { - continue; - } + if (count($parts) > 1) { + array_pop($parts); - foreach ($this->getLinesToBeIgnored($filename) as $line) { - unset($data[$filename][$line]); - } + $result = implode($join, $parts); } - } - /** - * @param array $data - * @since Method available since Release 1.1.0 - */ - private function initializeFilesThatAreSeenTheFirstTime(array $data) - { - foreach ($data as $file => $lines) { - if ($this->filter->isFile($file) && !isset($this->data[$file])) { - $this->data[$file] = array(); - - foreach ($lines as $k => $v) { - $this->data[$file][$k] = $v == -2 ? null : array(); - } - } - } + return $result; } /** - * Processes whitelisted files that are not covered. + * @return bool|string */ - private function addUncoveredFilesFromWhitelist() + public function getParent() { - $data = array(); - $uncoveredFiles = array_diff( - $this->filter->getWhitelist(), - array_keys($this->data) - ); - - foreach ($uncoveredFiles as $uncoveredFile) { - if (!file_exists($uncoveredFile)) { - continue; - } - - if ($this->processUncoveredFilesFromWhitelist) { - $this->processUncoveredFileFromWhitelist( - $uncoveredFile, - $data, - $uncoveredFiles - ); - } else { - $data[$uncoveredFile] = array(); + if (!$this->hasParent()) { + return false; + } - $lines = count(file($uncoveredFile)); + $i = $this->id + 6; + $tokens = $this->tokenStream->tokens(); + $className = (string) $tokens[$i]; - for ($i = 1; $i <= $lines; $i++) { - $data[$uncoveredFile][$i] = PHP_CodeCoverage_Driver::LINE_NOT_EXECUTED; - } - } + while (isset($tokens[$i + 1]) && + !$tokens[$i + 1] instanceof PHP_Token_WHITESPACE) { + $className .= (string) $tokens[++$i]; } - $this->append($data, 'UNCOVERED_FILES_FROM_WHITELIST'); + return $className; } /** - * @param string $uncoveredFile - * @param array $data - * @param array $uncoveredFiles + * @return bool */ - private function processUncoveredFileFromWhitelist($uncoveredFile, array &$data, array $uncoveredFiles) + public function hasInterfaces() { - $this->driver->start(); - include_once $uncoveredFile; - $coverage = $this->driver->stop(); - - foreach ($coverage as $file => $fileCoverage) { - if (!isset($data[$file]) && - in_array($file, $uncoveredFiles)) { - foreach (array_keys($fileCoverage) as $key) { - if ($fileCoverage[$key] == PHP_CodeCoverage_Driver::LINE_EXECUTED) { - $fileCoverage[$key] = PHP_CodeCoverage_Driver::LINE_NOT_EXECUTED; - } - } - - $data[$file] = $fileCoverage; - } - } + return (isset($this->tokenStream[$this->id + 4]) && + $this->tokenStream[$this->id + 4] instanceof PHP_Token_IMPLEMENTS) || + (isset($this->tokenStream[$this->id + 8]) && + $this->tokenStream[$this->id + 8] instanceof PHP_Token_IMPLEMENTS); } /** - * Returns the lines of a source file that should be ignored. - * - * @param string $filename - * @return array - * @throws PHP_CodeCoverage_Exception - * @since Method available since Release 2.0.0 + * @return array|bool */ - private function getLinesToBeIgnored($filename) + public function getInterfaces() { - if (!is_string($filename)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, - 'string' - ); + if ($this->interfaces !== null) { + return $this->interfaces; } - if (!isset($this->ignoredLines[$filename])) { - $this->ignoredLines[$filename] = array(); + if (!$this->hasInterfaces()) { + return ($this->interfaces = false); + } - if ($this->disableIgnoredLines) { - return $this->ignoredLines[$filename]; - } + if ($this->tokenStream[$this->id + 4] instanceof PHP_Token_IMPLEMENTS) { + $i = $this->id + 3; + } else { + $i = $this->id + 7; + } - $ignore = false; - $stop = false; - $lines = file($filename); - $numLines = count($lines); + $tokens = $this->tokenStream->tokens(); - foreach ($lines as $index => $line) { - if (!trim($line)) { - $this->ignoredLines[$filename][] = $index + 1; - } - } + while (!$tokens[$i + 1] instanceof PHP_Token_OPEN_CURLY) { + $i++; - if ($this->cacheTokens) { - $tokens = PHP_Token_Stream_CachingFactory::get($filename); - } else { - $tokens = new PHP_Token_Stream($filename); + if ($tokens[$i] instanceof PHP_Token_STRING) { + $this->interfaces[] = (string) $tokens[$i]; } + } - $classes = array_merge($tokens->getClasses(), $tokens->getTraits()); - $tokens = $tokens->tokens(); - - foreach ($tokens as $token) { - switch (get_class($token)) { - case 'PHP_Token_COMMENT': - case 'PHP_Token_DOC_COMMENT': - $_token = trim($token); - $_line = trim($lines[$token->getLine() - 1]); - - if ($_token == '// @codeCoverageIgnore' || - $_token == '//@codeCoverageIgnore') { - $ignore = true; - $stop = true; - } elseif ($_token == '// @codeCoverageIgnoreStart' || - $_token == '//@codeCoverageIgnoreStart') { - $ignore = true; - } elseif ($_token == '// @codeCoverageIgnoreEnd' || - $_token == '//@codeCoverageIgnoreEnd') { - $stop = true; - } - - if (!$ignore) { - $start = $token->getLine(); - $end = $start + substr_count($token, "\n"); - - // Do not ignore the first line when there is a token - // before the comment - if (0 !== strpos($_token, $_line)) { - $start++; - } - - for ($i = $start; $i < $end; $i++) { - $this->ignoredLines[$filename][] = $i; - } + return $this->interfaces; + } +} - // A DOC_COMMENT token or a COMMENT token starting with "/*" - // does not contain the final \n character in its text - if (isset($lines[$i-1]) && 0 === strpos($_token, '/*') && '*/' === substr(trim($lines[$i-1]), -2)) { - $this->ignoredLines[$filename][] = $i; - } - } - break; +class PHP_Token_ABSTRACT extends PHP_Token +{ +} - case 'PHP_Token_INTERFACE': - case 'PHP_Token_TRAIT': - case 'PHP_Token_CLASS': - case 'PHP_Token_FUNCTION': - $docblock = $token->getDocblock(); +class PHP_Token_AMPERSAND extends PHP_Token +{ +} - $this->ignoredLines[$filename][] = $token->getLine(); +class PHP_Token_AND_EQUAL extends PHP_Token +{ +} - if (strpos($docblock, '@codeCoverageIgnore') || strpos($docblock, '@deprecated')) { - $endLine = $token->getEndLine(); +class PHP_Token_ARRAY extends PHP_Token +{ +} - for ($i = $token->getLine(); $i <= $endLine; $i++) { - $this->ignoredLines[$filename][] = $i; - } - } elseif ($token instanceof PHP_Token_INTERFACE || - $token instanceof PHP_Token_TRAIT || - $token instanceof PHP_Token_CLASS) { - if (empty($classes[$token->getName()]['methods'])) { - for ($i = $token->getLine(); - $i <= $token->getEndLine(); - $i++) { - $this->ignoredLines[$filename][] = $i; - } - } else { - $firstMethod = array_shift( - $classes[$token->getName()]['methods'] - ); +class PHP_Token_ARRAY_CAST extends PHP_Token +{ +} - do { - $lastMethod = array_pop( - $classes[$token->getName()]['methods'] - ); - } while ($lastMethod !== null && - substr($lastMethod['signature'], 0, 18) == 'anonymous function'); +class PHP_Token_AS extends PHP_Token +{ +} - if ($lastMethod === null) { - $lastMethod = $firstMethod; - } +class PHP_Token_AT extends PHP_Token +{ +} - for ($i = $token->getLine(); - $i < $firstMethod['startLine']; - $i++) { - $this->ignoredLines[$filename][] = $i; - } +class PHP_Token_BACKTICK extends PHP_Token +{ +} - for ($i = $token->getEndLine(); - $i > $lastMethod['endLine']; - $i--) { - $this->ignoredLines[$filename][] = $i; - } - } - } - break; +class PHP_Token_BAD_CHARACTER extends PHP_Token +{ +} - case 'PHP_Token_NAMESPACE': - $this->ignoredLines[$filename][] = $token->getEndLine(); +class PHP_Token_BOOLEAN_AND extends PHP_Token +{ +} - // Intentional fallthrough - case 'PHP_Token_OPEN_TAG': - case 'PHP_Token_CLOSE_TAG': - case 'PHP_Token_USE': - $this->ignoredLines[$filename][] = $token->getLine(); - break; - } +class PHP_Token_BOOLEAN_OR extends PHP_Token +{ +} - if ($ignore) { - $this->ignoredLines[$filename][] = $token->getLine(); +class PHP_Token_BOOL_CAST extends PHP_Token +{ +} - if ($stop) { - $ignore = false; - $stop = false; - } - } - } +class PHP_Token_BREAK extends PHP_Token +{ +} - $this->ignoredLines[$filename][] = $numLines + 1; +class PHP_Token_CARET extends PHP_Token +{ +} - $this->ignoredLines[$filename] = array_unique( - $this->ignoredLines[$filename] - ); +class PHP_Token_CASE extends PHP_Token +{ +} - sort($this->ignoredLines[$filename]); - } +class PHP_Token_CATCH extends PHP_Token +{ +} - return $this->ignoredLines[$filename]; - } +class PHP_Token_CHARACTER extends PHP_Token +{ +} +class PHP_Token_CLASS extends PHP_Token_INTERFACE +{ /** - * @param array $data - * @param array $linesToBeCovered - * @param array $linesToBeUsed - * @throws PHP_CodeCoverage_Exception_UnintentionallyCoveredCode - * @since Method available since Release 2.0.0 + * @var bool */ - private function performUnintentionallyCoveredCodeCheck(array &$data, array $linesToBeCovered, array $linesToBeUsed) - { - $allowedLines = $this->getAllowedLines( - $linesToBeCovered, - $linesToBeUsed - ); - - $message = ''; + private $anonymous = false; - foreach ($data as $file => $_data) { - foreach ($_data as $line => $flag) { - if ($flag == 1 && - (!isset($allowedLines[$file]) || - !isset($allowedLines[$file][$line]))) { - $message .= sprintf( - '- %s:%d' . PHP_EOL, - $file, - $line - ); - } - } - } - - if (!empty($message)) { - throw new PHP_CodeCoverage_Exception_UnintentionallyCoveredCode( - $message - ); - } - } + /** + * @var string + */ + private $name; /** - * @param array $linesToBeCovered - * @param array $linesToBeUsed - * @return array - * @since Method available since Release 2.0.0 + * @return string */ - private function getAllowedLines(array $linesToBeCovered, array $linesToBeUsed) + public function getName() { - $allowedLines = array(); + if ($this->name !== null) { + return $this->name; + } - foreach (array_keys($linesToBeCovered) as $file) { - if (!isset($allowedLines[$file])) { - $allowedLines[$file] = array(); - } + $next = $this->tokenStream[$this->id + 1]; - $allowedLines[$file] = array_merge( - $allowedLines[$file], - $linesToBeCovered[$file] - ); + if ($next instanceof PHP_Token_WHITESPACE) { + $next = $this->tokenStream[$this->id + 2]; } - foreach (array_keys($linesToBeUsed) as $file) { - if (!isset($allowedLines[$file])) { - $allowedLines[$file] = array(); - } + if ($next instanceof PHP_Token_STRING) { + $this->name =(string) $next; - $allowedLines[$file] = array_merge( - $allowedLines[$file], - $linesToBeUsed[$file] - ); + return $this->name; } - foreach (array_keys($allowedLines) as $file) { - $allowedLines[$file] = array_flip( - array_unique($allowedLines[$file]) + if ($next instanceof PHP_Token_OPEN_CURLY || + $next instanceof PHP_Token_EXTENDS || + $next instanceof PHP_Token_IMPLEMENTS) { + + $this->name = sprintf( + 'AnonymousClass:%s#%s', + $this->getLine(), + $this->getId() ); - } - return $allowedLines; + $this->anonymous = true; + + return $this->name; + } } - /** - * @return PHP_CodeCoverage_Driver - * @throws PHP_CodeCoverage_Exception - */ - private function selectDriver() + public function isAnonymous() { - $runtime = new Runtime; + return $this->anonymous; + } +} - if (!$runtime->canCollectCodeCoverage()) { - throw new PHP_CodeCoverage_Exception('No code coverage driver available'); - } +class PHP_Token_CLASS_C extends PHP_Token +{ +} - if ($runtime->isHHVM()) { - return new PHP_CodeCoverage_Driver_HHVM; - } elseif ($runtime->isPHPDBG()) { - return new PHP_CodeCoverage_Driver_PHPDBG; - } else { - return new PHP_CodeCoverage_Driver_Xdebug; - } - } +class PHP_Token_CLASS_NAME_CONSTANT extends PHP_Token +{ } - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -/** - * Interface for code coverage drivers. - * - * @since Class available since Release 1.0.0 - */ -interface PHP_CodeCoverage_Driver +class PHP_Token_CLONE extends PHP_Token { - /** - * @var int - * @see http://xdebug.org/docs/code_coverage - */ - const LINE_EXECUTED = 1; +} - /** - * @var int - * @see http://xdebug.org/docs/code_coverage - */ - const LINE_NOT_EXECUTED = -1; +class PHP_Token_CLOSE_BRACKET extends PHP_Token +{ +} - /** - * @var int - * @see http://xdebug.org/docs/code_coverage - */ - const LINE_NOT_EXECUTABLE = -2; +class PHP_Token_CLOSE_CURLY extends PHP_Token +{ +} - /** - * Start collection of code coverage information. - */ - public function start(); +class PHP_Token_CLOSE_SQUARE extends PHP_Token +{ +} - /** - * Stop collection of code coverage information. - * - * @return array - */ - public function stop(); +class PHP_Token_CLOSE_TAG extends PHP_Token +{ } - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -/** - * Driver for HHVM's code coverage functionality. - * - * @since Class available since Release 2.2.2 - * @codeCoverageIgnore - */ -class PHP_CodeCoverage_Driver_HHVM extends PHP_CodeCoverage_Driver_Xdebug +class PHP_Token_COLON extends PHP_Token { - /** - * Start collection of code coverage information. - */ - public function start() - { - xdebug_start_code_coverage(); - } } - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -/** - * Driver for PHPDBG's code coverage functionality. - * - * @since Class available since Release 2.2.0 - * @codeCoverageIgnore - */ -class PHP_CodeCoverage_Driver_PHPDBG implements PHP_CodeCoverage_Driver +class PHP_Token_COMMA extends PHP_Token { - /** - * Constructor. - */ - public function __construct() - { - if (PHP_SAPI !== 'phpdbg') { - throw new PHP_CodeCoverage_Exception( - 'This driver requires the PHPDBG SAPI' - ); - } +} - if (!function_exists('phpdbg_start_oplog')) { - throw new PHP_CodeCoverage_Exception( - 'This build of PHPDBG does not support code coverage' - ); - } - } +class PHP_Token_COMMENT extends PHP_Token +{ +} - /** - * Start collection of code coverage information. - */ - public function start() - { - phpdbg_start_oplog(); - } +class PHP_Token_CONCAT_EQUAL extends PHP_Token +{ +} - /** - * Stop collection of code coverage information. - * - * @return array - */ - public function stop() - { - static $fetchedLines = array(); +class PHP_Token_CONST extends PHP_Token +{ +} - $dbgData = phpdbg_end_oplog(); +class PHP_Token_CONSTANT_ENCAPSED_STRING extends PHP_Token +{ +} - if ($fetchedLines == array()) { - $sourceLines = phpdbg_get_executable(); - } else { - $newFiles = array_diff( - get_included_files(), - array_keys($fetchedLines) - ); +class PHP_Token_CONTINUE extends PHP_Token +{ +} - if ($newFiles) { - $sourceLines = phpdbg_get_executable( - array('files' => $newFiles) - ); - } else { - $sourceLines = array(); - } - } +class PHP_Token_CURLY_OPEN extends PHP_Token +{ +} - foreach ($sourceLines as $file => $lines) { - foreach ($lines as $lineNo => $numExecuted) { - $sourceLines[$file][$lineNo] = self::LINE_NOT_EXECUTED; - } - } +class PHP_Token_DEC extends PHP_Token +{ +} - $fetchedLines = array_merge($fetchedLines, $sourceLines); +class PHP_Token_DECLARE extends PHP_Token +{ +} - return $this->detectExecutedLines($fetchedLines, $dbgData); - } +class PHP_Token_DEFAULT extends PHP_Token +{ +} - /** - * Convert phpdbg based data into the format CodeCoverage expects - * - * @param array $sourceLines - * @param array $dbgData - * @return array - */ - private function detectExecutedLines(array $sourceLines, array $dbgData) - { - foreach ($dbgData as $file => $coveredLines) { - foreach ($coveredLines as $lineNo => $numExecuted) { - // phpdbg also reports $lineNo=0 when e.g. exceptions get thrown. - // make sure we only mark lines executed which are actually executable. - if (isset($sourceLines[$file][$lineNo])) { - $sourceLines[$file][$lineNo] = self::LINE_EXECUTED; - } - } - } +class PHP_Token_DIV extends PHP_Token +{ +} - return $sourceLines; - } +class PHP_Token_DIV_EQUAL extends PHP_Token +{ } - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -/** - * Driver for Xdebug's code coverage functionality. - * - * @since Class available since Release 1.0.0 - * @codeCoverageIgnore - */ -class PHP_CodeCoverage_Driver_Xdebug implements PHP_CodeCoverage_Driver +class PHP_Token_DNUMBER extends PHP_Token { - /** - * Constructor. - */ - public function __construct() - { - if (!extension_loaded('xdebug')) { - throw new PHP_CodeCoverage_Exception('This driver requires Xdebug'); - } +} - if (version_compare(phpversion('xdebug'), '2.2.0-dev', '>=') && - !ini_get('xdebug.coverage_enable')) { - throw new PHP_CodeCoverage_Exception( - 'xdebug.coverage_enable=On has to be set in php.ini' - ); - } - } +class PHP_Token_DO extends PHP_Token +{ +} - /** - * Start collection of code coverage information. - */ - public function start() - { - xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE); - } +class PHP_Token_DOC_COMMENT extends PHP_Token +{ +} - /** - * Stop collection of code coverage information. - * - * @return array - */ - public function stop() - { - $data = xdebug_get_code_coverage(); - xdebug_stop_code_coverage(); +class PHP_Token_DOLLAR extends PHP_Token +{ +} - return $this->cleanup($data); - } +class PHP_Token_DOLLAR_OPEN_CURLY_BRACES extends PHP_Token +{ +} - /** - * @param array $data - * @return array - * @since Method available since Release 2.0.0 - */ - private function cleanup(array $data) - { - foreach (array_keys($data) as $file) { - unset($data[$file][0]); +class PHP_Token_DOT extends PHP_Token +{ +} - if ($file != 'xdebug://debug-eval' && file_exists($file)) { - $numLines = $this->getNumberOfLinesInFile($file); +class PHP_Token_DOUBLE_ARROW extends PHP_Token +{ +} - foreach (array_keys($data[$file]) as $line) { - if (isset($data[$file][$line]) && $line > $numLines) { - unset($data[$file][$line]); - } - } - } - } +class PHP_Token_DOUBLE_CAST extends PHP_Token +{ +} - return $data; - } +class PHP_Token_DOUBLE_COLON extends PHP_Token +{ +} - /** - * @param string $file - * @return int - * @since Method available since Release 2.0.0 - */ - private function getNumberOfLinesInFile($file) - { - $buffer = file_get_contents($file); - $lines = substr_count($buffer, "\n"); +class PHP_Token_DOUBLE_QUOTES extends PHP_Token +{ +} - if (substr($buffer, -1) !== "\n") { - $lines++; - } +class PHP_Token_ECHO extends PHP_Token +{ +} - return $lines; - } +class PHP_Token_ELSE extends PHP_Token +{ } - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -/** - * Exception class for PHP_CodeCoverage component. - * - * @since Class available since Release 1.1.0 - */ -class PHP_CodeCoverage_Exception extends RuntimeException +class PHP_Token_ELSEIF extends PHP_Token { } - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -/** - * Exception that is raised when code is unintentionally covered. - * - * @since Class available since Release 2.0.0 - */ -class PHP_CodeCoverage_Exception_UnintentionallyCoveredCode extends PHP_CodeCoverage_Exception +class PHP_Token_EMPTY extends PHP_Token { } - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -/** - * Filter for blacklisting and whitelisting of code coverage information. - * - * @since Class available since Release 1.0.0 - */ -class PHP_CodeCoverage_Filter +class PHP_Token_ENCAPSED_AND_WHITESPACE extends PHP_Token { - /** - * Source files that are blacklisted. - * - * @var array - */ - private $blacklistedFiles = array(); +} - /** - * Source files that are whitelisted. - * - * @var array - */ - private $whitelistedFiles = array(); +class PHP_Token_ENDDECLARE extends PHP_Token +{ +} - /** - * Adds a directory to the blacklist (recursively). - * - * @param string $directory - * @param string $suffix - * @param string $prefix - */ - public function addDirectoryToBlacklist($directory, $suffix = '.php', $prefix = '') - { - $facade = new File_Iterator_Facade; - $files = $facade->getFilesAsArray($directory, $suffix, $prefix); +class PHP_Token_ENDFOR extends PHP_Token +{ +} - foreach ($files as $file) { - $this->addFileToBlacklist($file); - } - } +class PHP_Token_ENDFOREACH extends PHP_Token +{ +} - /** - * Adds a file to the blacklist. - * - * @param string $filename - */ - public function addFileToBlacklist($filename) - { - $this->blacklistedFiles[realpath($filename)] = true; - } +class PHP_Token_ENDIF extends PHP_Token +{ +} - /** - * Adds files to the blacklist. - * - * @param array $files - */ - public function addFilesToBlacklist(array $files) - { - foreach ($files as $file) { - $this->addFileToBlacklist($file); - } - } +class PHP_Token_ENDSWITCH extends PHP_Token +{ +} - /** - * Removes a directory from the blacklist (recursively). - * - * @param string $directory - * @param string $suffix - * @param string $prefix - */ - public function removeDirectoryFromBlacklist($directory, $suffix = '.php', $prefix = '') - { - $facade = new File_Iterator_Facade; - $files = $facade->getFilesAsArray($directory, $suffix, $prefix); +class PHP_Token_ENDWHILE extends PHP_Token +{ +} - foreach ($files as $file) { - $this->removeFileFromBlacklist($file); - } - } +class PHP_Token_END_HEREDOC extends PHP_Token +{ +} - /** - * Removes a file from the blacklist. - * - * @param string $filename - */ - public function removeFileFromBlacklist($filename) - { - $filename = realpath($filename); +class PHP_Token_EQUAL extends PHP_Token +{ +} - if (isset($this->blacklistedFiles[$filename])) { - unset($this->blacklistedFiles[$filename]); - } - } +class PHP_Token_EVAL extends PHP_Token +{ +} - /** - * Adds a directory to the whitelist (recursively). - * - * @param string $directory - * @param string $suffix - * @param string $prefix - */ - public function addDirectoryToWhitelist($directory, $suffix = '.php', $prefix = '') - { - $facade = new File_Iterator_Facade; - $files = $facade->getFilesAsArray($directory, $suffix, $prefix); +class PHP_Token_EXCLAMATION_MARK extends PHP_Token +{ +} - foreach ($files as $file) { - $this->addFileToWhitelist($file); - } - } +class PHP_Token_EXIT extends PHP_Token +{ +} - /** - * Adds a file to the whitelist. - * - * @param string $filename - */ - public function addFileToWhitelist($filename) - { - $this->whitelistedFiles[realpath($filename)] = true; - } +class PHP_Token_EXTENDS extends PHP_Token +{ +} - /** - * Adds files to the whitelist. - * - * @param array $files - */ - public function addFilesToWhitelist(array $files) - { - foreach ($files as $file) { - $this->addFileToWhitelist($file); - } - } +class PHP_Token_FILE extends PHP_Token +{ +} - /** - * Removes a directory from the whitelist (recursively). - * - * @param string $directory - * @param string $suffix - * @param string $prefix - */ - public function removeDirectoryFromWhitelist($directory, $suffix = '.php', $prefix = '') - { - $facade = new File_Iterator_Facade; - $files = $facade->getFilesAsArray($directory, $suffix, $prefix); +class PHP_Token_FINAL extends PHP_Token +{ +} - foreach ($files as $file) { - $this->removeFileFromWhitelist($file); - } - } +class PHP_Token_FOR extends PHP_Token +{ +} - /** - * Removes a file from the whitelist. - * - * @param string $filename - */ - public function removeFileFromWhitelist($filename) - { - $filename = realpath($filename); +class PHP_Token_FOREACH extends PHP_Token +{ +} - if (isset($this->whitelistedFiles[$filename])) { - unset($this->whitelistedFiles[$filename]); - } - } +class PHP_Token_FUNC_C extends PHP_Token +{ +} - /** - * Checks whether a filename is a real filename. - * - * @param string $filename - * @return bool - */ - public function isFile($filename) - { - if ($filename == '-' || - strpos($filename, 'vfs://') === 0 || - strpos($filename, 'xdebug://debug-eval') !== false || - strpos($filename, 'eval()\'d code') !== false || - strpos($filename, 'runtime-created function') !== false || - strpos($filename, 'runkit created function') !== false || - strpos($filename, 'assert code') !== false || - strpos($filename, 'regexp code') !== false) { - return false; - } +class PHP_Token_GLOBAL extends PHP_Token +{ +} - return file_exists($filename); - } +class PHP_Token_GT extends PHP_Token +{ +} - /** - * Checks whether or not a file is filtered. - * - * When the whitelist is empty (default), blacklisting is used. - * When the whitelist is not empty, whitelisting is used. - * - * @param string $filename - * @return bool - * @throws PHP_CodeCoverage_Exception - */ - public function isFiltered($filename) - { - if (!$this->isFile($filename)) { - return true; - } +class PHP_Token_IF extends PHP_Token +{ +} - $filename = realpath($filename); +class PHP_Token_IMPLEMENTS extends PHP_Token +{ +} - if (!empty($this->whitelistedFiles)) { - return !isset($this->whitelistedFiles[$filename]); - } +class PHP_Token_INC extends PHP_Token +{ +} - return isset($this->blacklistedFiles[$filename]); - } +class PHP_Token_INCLUDE extends PHP_Token_Includes +{ +} - /** - * Returns the list of blacklisted files. - * - * @return array - */ - public function getBlacklist() - { - return array_keys($this->blacklistedFiles); - } +class PHP_Token_INCLUDE_ONCE extends PHP_Token_Includes +{ +} - /** - * Returns the list of whitelisted files. - * - * @return array - */ - public function getWhitelist() - { - return array_keys($this->whitelistedFiles); - } +class PHP_Token_INLINE_HTML extends PHP_Token +{ +} - /** - * Returns whether this filter has a whitelist. - * - * @return bool - * @since Method available since Release 1.1.0 - */ - public function hasWhitelist() - { - return !empty($this->whitelistedFiles); - } +class PHP_Token_INSTANCEOF extends PHP_Token +{ +} - /** - * Returns the blacklisted files. - * - * @return array - * @since Method available since Release 2.0.0 - */ - public function getBlacklistedFiles() - { - return $this->blacklistedFiles; - } +class PHP_Token_INT_CAST extends PHP_Token +{ +} - /** - * Sets the blacklisted files. - * - * @param array $blacklistedFiles - * @since Method available since Release 2.0.0 - */ - public function setBlacklistedFiles($blacklistedFiles) - { - $this->blacklistedFiles = $blacklistedFiles; - } +class PHP_Token_ISSET extends PHP_Token +{ +} - /** - * Returns the whitelisted files. - * - * @return array - * @since Method available since Release 2.0.0 - */ - public function getWhitelistedFiles() - { - return $this->whitelistedFiles; - } +class PHP_Token_IS_EQUAL extends PHP_Token +{ +} - /** - * Sets the whitelisted files. - * - * @param array $whitelistedFiles - * @since Method available since Release 2.0.0 - */ - public function setWhitelistedFiles($whitelistedFiles) - { - $this->whitelistedFiles = $whitelistedFiles; - } +class PHP_Token_IS_GREATER_OR_EQUAL extends PHP_Token +{ } - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -/** - * Generates a Clover XML logfile from an PHP_CodeCoverage object. - * - * @since Class available since Release 1.0.0 - */ -class PHP_CodeCoverage_Report_Clover +class PHP_Token_IS_IDENTICAL extends PHP_Token { - /** - * @param PHP_CodeCoverage $coverage - * @param string $target - * @param string $name - * @return string - */ - public function process(PHP_CodeCoverage $coverage, $target = null, $name = null) - { - $xmlDocument = new DOMDocument('1.0', 'UTF-8'); - $xmlDocument->formatOutput = true; +} - $xmlCoverage = $xmlDocument->createElement('coverage'); - $xmlCoverage->setAttribute('generated', (int) $_SERVER['REQUEST_TIME']); - $xmlDocument->appendChild($xmlCoverage); +class PHP_Token_IS_NOT_EQUAL extends PHP_Token +{ +} - $xmlProject = $xmlDocument->createElement('project'); - $xmlProject->setAttribute('timestamp', (int) $_SERVER['REQUEST_TIME']); +class PHP_Token_IS_NOT_IDENTICAL extends PHP_Token +{ +} - if (is_string($name)) { - $xmlProject->setAttribute('name', $name); - } +class PHP_Token_IS_SMALLER_OR_EQUAL extends PHP_Token +{ +} - $xmlCoverage->appendChild($xmlProject); +class PHP_Token_LINE extends PHP_Token +{ +} - $packages = array(); - $report = $coverage->getReport(); - unset($coverage); +class PHP_Token_LIST extends PHP_Token +{ +} - foreach ($report as $item) { - $namespace = 'global'; +class PHP_Token_LNUMBER extends PHP_Token +{ +} - if (!$item instanceof PHP_CodeCoverage_Report_Node_File) { - continue; - } +class PHP_Token_LOGICAL_AND extends PHP_Token +{ +} - $xmlFile = $xmlDocument->createElement('file'); - $xmlFile->setAttribute('name', $item->getPath()); +class PHP_Token_LOGICAL_OR extends PHP_Token +{ +} - $classes = $item->getClassesAndTraits(); - $coverage = $item->getCoverageData(); - $lines = array(); +class PHP_Token_LOGICAL_XOR extends PHP_Token +{ +} - foreach ($classes as $className => $class) { - $classStatements = 0; - $coveredClassStatements = 0; - $coveredMethods = 0; - $classMethods = 0; +class PHP_Token_LT extends PHP_Token +{ +} - foreach ($class['methods'] as $methodName => $method) { - if ($method['executableLines'] == 0) { - continue; - } +class PHP_Token_METHOD_C extends PHP_Token +{ +} - $classMethods++; - $classStatements += $method['executableLines']; - $coveredClassStatements += $method['executedLines']; - if ($method['coverage'] == 100) { - $coveredMethods++; - } +class PHP_Token_MINUS extends PHP_Token +{ +} - $methodCount = 0; - for ($i = $method['startLine']; - $i <= $method['endLine']; - $i++) { - if (isset($coverage[$i]) && ($coverage[$i] !== null)) { - $methodCount = max($methodCount, count($coverage[$i])); - } - } +class PHP_Token_MINUS_EQUAL extends PHP_Token +{ +} - $lines[$method['startLine']] = array( - 'count' => $methodCount, - 'crap' => $method['crap'], - 'type' => 'method', - 'name' => $methodName - ); - } +class PHP_Token_MOD_EQUAL extends PHP_Token +{ +} - if (!empty($class['package']['namespace'])) { - $namespace = $class['package']['namespace']; - } +class PHP_Token_MULT extends PHP_Token +{ +} - $xmlClass = $xmlDocument->createElement('class'); - $xmlClass->setAttribute('name', $className); - $xmlClass->setAttribute('namespace', $namespace); +class PHP_Token_MUL_EQUAL extends PHP_Token +{ +} - if (!empty($class['package']['fullPackage'])) { - $xmlClass->setAttribute( - 'fullPackage', - $class['package']['fullPackage'] - ); - } +class PHP_Token_NEW extends PHP_Token +{ +} - if (!empty($class['package']['category'])) { - $xmlClass->setAttribute( - 'category', - $class['package']['category'] - ); - } +class PHP_Token_NUM_STRING extends PHP_Token +{ +} - if (!empty($class['package']['package'])) { - $xmlClass->setAttribute( - 'package', - $class['package']['package'] - ); - } +class PHP_Token_OBJECT_CAST extends PHP_Token +{ +} - if (!empty($class['package']['subpackage'])) { - $xmlClass->setAttribute( - 'subpackage', - $class['package']['subpackage'] - ); - } +class PHP_Token_OBJECT_OPERATOR extends PHP_Token +{ +} - $xmlFile->appendChild($xmlClass); +class PHP_Token_OPEN_BRACKET extends PHP_Token +{ +} - $xmlMetrics = $xmlDocument->createElement('metrics'); - $xmlMetrics->setAttribute('methods', $classMethods); - $xmlMetrics->setAttribute('coveredmethods', $coveredMethods); - $xmlMetrics->setAttribute('conditionals', 0); - $xmlMetrics->setAttribute('coveredconditionals', 0); - $xmlMetrics->setAttribute('statements', $classStatements); - $xmlMetrics->setAttribute( - 'coveredstatements', - $coveredClassStatements - ); - $xmlMetrics->setAttribute( - 'elements', - $classMethods + - $classStatements - /* + conditionals */ - ); - $xmlMetrics->setAttribute( - 'coveredelements', - $coveredMethods + - $coveredClassStatements - /* + coveredconditionals */ - ); - $xmlClass->appendChild($xmlMetrics); - } +class PHP_Token_OPEN_CURLY extends PHP_Token +{ +} - foreach ($coverage as $line => $data) { - if ($data === null || isset($lines[$line])) { - continue; - } +class PHP_Token_OPEN_SQUARE extends PHP_Token +{ +} - $lines[$line] = array( - 'count' => count($data), 'type' => 'stmt' - ); - } +class PHP_Token_OPEN_TAG extends PHP_Token +{ +} - ksort($lines); +class PHP_Token_OPEN_TAG_WITH_ECHO extends PHP_Token +{ +} - foreach ($lines as $line => $data) { - $xmlLine = $xmlDocument->createElement('line'); - $xmlLine->setAttribute('num', $line); - $xmlLine->setAttribute('type', $data['type']); +class PHP_Token_OR_EQUAL extends PHP_Token +{ +} - if (isset($data['name'])) { - $xmlLine->setAttribute('name', $data['name']); - } +class PHP_Token_PAAMAYIM_NEKUDOTAYIM extends PHP_Token +{ +} - if (isset($data['crap'])) { - $xmlLine->setAttribute('crap', $data['crap']); - } +class PHP_Token_PERCENT extends PHP_Token +{ +} - $xmlLine->setAttribute('count', $data['count']); - $xmlFile->appendChild($xmlLine); - } +class PHP_Token_PIPE extends PHP_Token +{ +} - $linesOfCode = $item->getLinesOfCode(); +class PHP_Token_PLUS extends PHP_Token +{ +} - $xmlMetrics = $xmlDocument->createElement('metrics'); - $xmlMetrics->setAttribute('loc', $linesOfCode['loc']); - $xmlMetrics->setAttribute('ncloc', $linesOfCode['ncloc']); - $xmlMetrics->setAttribute('classes', $item->getNumClassesAndTraits()); - $xmlMetrics->setAttribute('methods', $item->getNumMethods()); - $xmlMetrics->setAttribute( - 'coveredmethods', - $item->getNumTestedMethods() - ); - $xmlMetrics->setAttribute('conditionals', 0); - $xmlMetrics->setAttribute('coveredconditionals', 0); - $xmlMetrics->setAttribute( - 'statements', - $item->getNumExecutableLines() - ); - $xmlMetrics->setAttribute( - 'coveredstatements', - $item->getNumExecutedLines() - ); - $xmlMetrics->setAttribute( - 'elements', - $item->getNumMethods() + $item->getNumExecutableLines() - /* + conditionals */ - ); - $xmlMetrics->setAttribute( - 'coveredelements', - $item->getNumTestedMethods() + $item->getNumExecutedLines() - /* + coveredconditionals */ - ); - $xmlFile->appendChild($xmlMetrics); +class PHP_Token_PLUS_EQUAL extends PHP_Token +{ +} - if ($namespace == 'global') { - $xmlProject->appendChild($xmlFile); - } else { - if (!isset($packages[$namespace])) { - $packages[$namespace] = $xmlDocument->createElement( - 'package' - ); +class PHP_Token_PRINT extends PHP_Token +{ +} - $packages[$namespace]->setAttribute('name', $namespace); - $xmlProject->appendChild($packages[$namespace]); - } +class PHP_Token_PRIVATE extends PHP_Token +{ +} - $packages[$namespace]->appendChild($xmlFile); - } - } +class PHP_Token_PROTECTED extends PHP_Token +{ +} - $linesOfCode = $report->getLinesOfCode(); +class PHP_Token_PUBLIC extends PHP_Token +{ +} - $xmlMetrics = $xmlDocument->createElement('metrics'); - $xmlMetrics->setAttribute('files', count($report)); - $xmlMetrics->setAttribute('loc', $linesOfCode['loc']); - $xmlMetrics->setAttribute('ncloc', $linesOfCode['ncloc']); - $xmlMetrics->setAttribute( - 'classes', - $report->getNumClassesAndTraits() - ); - $xmlMetrics->setAttribute('methods', $report->getNumMethods()); - $xmlMetrics->setAttribute( - 'coveredmethods', - $report->getNumTestedMethods() - ); - $xmlMetrics->setAttribute('conditionals', 0); - $xmlMetrics->setAttribute('coveredconditionals', 0); - $xmlMetrics->setAttribute( - 'statements', - $report->getNumExecutableLines() - ); - $xmlMetrics->setAttribute( - 'coveredstatements', - $report->getNumExecutedLines() - ); - $xmlMetrics->setAttribute( - 'elements', - $report->getNumMethods() + $report->getNumExecutableLines() - /* + conditionals */ - ); - $xmlMetrics->setAttribute( - 'coveredelements', - $report->getNumTestedMethods() + $report->getNumExecutedLines() - /* + coveredconditionals */ - ); +class PHP_Token_QUESTION_MARK extends PHP_Token +{ +} - $xmlProject->appendChild($xmlMetrics); +class PHP_Token_REQUIRE extends PHP_Token_Includes +{ +} - if ($target !== null) { - if (!is_dir(dirname($target))) { - mkdir(dirname($target), 0777, true); - } +class PHP_Token_REQUIRE_ONCE extends PHP_Token_Includes +{ +} - return $xmlDocument->save($target); - } else { - return $xmlDocument->saveXML(); - } - } +class PHP_Token_RETURN extends PHP_Token +{ } - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -/** - * @since Class available since Release 2.0.0 - */ -class PHP_CodeCoverage_Report_Crap4j +class PHP_Token_SEMICOLON extends PHP_Token { - /** - * @var int - */ - private $threshold; +} - /** - * @param int $threshold - */ - public function __construct($threshold = 30) - { - if (!is_int($threshold)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, - 'integer' - ); - } - - $this->threshold = $threshold; - } - - /** - * @param PHP_CodeCoverage $coverage - * @param string $target - * @param string $name - * @return string - */ - public function process(PHP_CodeCoverage $coverage, $target = null, $name = null) - { - $document = new DOMDocument('1.0', 'UTF-8'); - $document->formatOutput = true; - - $root = $document->createElement('crap_result'); - $document->appendChild($root); - - $project = $document->createElement('project', is_string($name) ? $name : ''); - $root->appendChild($project); - $root->appendChild($document->createElement('timestamp', date('Y-m-d H:i:s', (int) $_SERVER['REQUEST_TIME']))); - - $stats = $document->createElement('stats'); - $methodsNode = $document->createElement('methods'); - - $report = $coverage->getReport(); - unset($coverage); - - $fullMethodCount = 0; - $fullCrapMethodCount = 0; - $fullCrapLoad = 0; - $fullCrap = 0; +class PHP_Token_SL extends PHP_Token +{ +} - foreach ($report as $item) { - $namespace = 'global'; +class PHP_Token_SL_EQUAL extends PHP_Token +{ +} - if (!$item instanceof PHP_CodeCoverage_Report_Node_File) { - continue; - } +class PHP_Token_SR extends PHP_Token +{ +} - $file = $document->createElement('file'); - $file->setAttribute('name', $item->getPath()); +class PHP_Token_SR_EQUAL extends PHP_Token +{ +} - $classes = $item->getClassesAndTraits(); +class PHP_Token_START_HEREDOC extends PHP_Token +{ +} - foreach ($classes as $className => $class) { - foreach ($class['methods'] as $methodName => $method) { - $crapLoad = $this->getCrapLoad($method['crap'], $method['ccn'], $method['coverage']); +class PHP_Token_STATIC extends PHP_Token +{ +} - $fullCrap += $method['crap']; - $fullCrapLoad += $crapLoad; - $fullMethodCount++; +class PHP_Token_STRING extends PHP_Token +{ +} - if ($method['crap'] >= $this->threshold) { - $fullCrapMethodCount++; - } +class PHP_Token_STRING_CAST extends PHP_Token +{ +} - $methodNode = $document->createElement('method'); +class PHP_Token_STRING_VARNAME extends PHP_Token +{ +} - if (!empty($class['package']['namespace'])) { - $namespace = $class['package']['namespace']; - } +class PHP_Token_SWITCH extends PHP_Token +{ +} - $methodNode->appendChild($document->createElement('package', $namespace)); - $methodNode->appendChild($document->createElement('className', $className)); - $methodNode->appendChild($document->createElement('methodName', $methodName)); - $methodNode->appendChild($document->createElement('methodSignature', htmlspecialchars($method['signature']))); - $methodNode->appendChild($document->createElement('fullMethod', htmlspecialchars($method['signature']))); - $methodNode->appendChild($document->createElement('crap', $this->roundValue($method['crap']))); - $methodNode->appendChild($document->createElement('complexity', $method['ccn'])); - $methodNode->appendChild($document->createElement('coverage', $this->roundValue($method['coverage']))); - $methodNode->appendChild($document->createElement('crapLoad', round($crapLoad))); +class PHP_Token_THROW extends PHP_Token +{ +} - $methodsNode->appendChild($methodNode); - } - } - } +class PHP_Token_TILDE extends PHP_Token +{ +} - $stats->appendChild($document->createElement('name', 'Method Crap Stats')); - $stats->appendChild($document->createElement('methodCount', $fullMethodCount)); - $stats->appendChild($document->createElement('crapMethodCount', $fullCrapMethodCount)); - $stats->appendChild($document->createElement('crapLoad', round($fullCrapLoad))); - $stats->appendChild($document->createElement('totalCrap', $fullCrap)); +class PHP_Token_TRY extends PHP_Token +{ +} - if ($fullMethodCount > 0) { - $crapMethodPercent = $this->roundValue((100 * $fullCrapMethodCount) / $fullMethodCount); - } else { - $crapMethodPercent = 0; - } +class PHP_Token_UNSET extends PHP_Token +{ +} - $stats->appendChild($document->createElement('crapMethodPercent', $crapMethodPercent)); +class PHP_Token_UNSET_CAST extends PHP_Token +{ +} - $root->appendChild($stats); - $root->appendChild($methodsNode); +class PHP_Token_USE extends PHP_Token +{ +} - if ($target !== null) { - if (!is_dir(dirname($target))) { - mkdir(dirname($target), 0777, true); - } +class PHP_Token_USE_FUNCTION extends PHP_Token +{ +} - return $document->save($target); - } else { - return $document->saveXML(); - } - } +class PHP_Token_VAR extends PHP_Token +{ +} - /** - * @param float $crapValue - * @param int $cyclomaticComplexity - * @param float $coveragePercent - * @return float - */ - private function getCrapLoad($crapValue, $cyclomaticComplexity, $coveragePercent) - { - $crapLoad = 0; +class PHP_Token_VARIABLE extends PHP_Token +{ +} - if ($crapValue >= $this->threshold) { - $crapLoad += $cyclomaticComplexity * (1.0 - $coveragePercent / 100); - $crapLoad += $cyclomaticComplexity / $this->threshold; - } +class PHP_Token_WHILE extends PHP_Token +{ +} - return $crapLoad; - } +class PHP_Token_WHITESPACE extends PHP_Token +{ +} - /** - * @param float $value - * @return float - */ - private function roundValue($value) - { - return round($value, 2); - } +class PHP_Token_XOR_EQUAL extends PHP_Token +{ } - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -/** - * Factory for PHP_CodeCoverage_Report_Node_* object graphs. - * - * @since Class available since Release 1.1.0 - */ -class PHP_CodeCoverage_Report_Factory +// Tokens introduced in PHP 5.1 +class PHP_Token_HALT_COMPILER extends PHP_Token { - /** - * @param PHP_CodeCoverage $coverage - * @return PHP_CodeCoverage_Report_Node_Directory - */ - public function create(PHP_CodeCoverage $coverage) - { - $files = $coverage->getData(); - $commonPath = $this->reducePaths($files); - $root = new PHP_CodeCoverage_Report_Node_Directory( - $commonPath, - null - ); +} - $this->addItems( - $root, - $this->buildDirectoryStructure($files), - $coverage->getTests(), - $coverage->getCacheTokens() - ); +// Tokens introduced in PHP 5.3 +class PHP_Token_DIR extends PHP_Token +{ +} - return $root; - } +class PHP_Token_GOTO extends PHP_Token +{ +} +class PHP_Token_NAMESPACE extends PHP_TokenWithScope +{ /** - * @param PHP_CodeCoverage_Report_Node_Directory $root - * @param array $items - * @param array $tests - * @param bool $cacheTokens + * @return string */ - private function addItems(PHP_CodeCoverage_Report_Node_Directory $root, array $items, array $tests, $cacheTokens) + public function getName() { - foreach ($items as $key => $value) { - if (substr($key, -2) == '/f') { - $key = substr($key, 0, -2); + $tokens = $this->tokenStream->tokens(); + $namespace = (string) $tokens[$this->id + 2]; - if (file_exists($root->getPath() . DIRECTORY_SEPARATOR . $key)) { - $root->addFile($key, $value, $tests, $cacheTokens); - } + for ($i = $this->id + 3;; $i += 2) { + if (isset($tokens[$i]) && + $tokens[$i] instanceof PHP_Token_NS_SEPARATOR) { + $namespace .= '\\' . $tokens[$i + 1]; } else { - $child = $root->addDirectory($key); - $this->addItems($child, $value, $tests, $cacheTokens); + break; } } - } - - /** - * Builds an array representation of the directory structure. - * - * For instance, - * - * - * Array - * ( - * [Money.php] => Array - * ( - * ... - * ) - * - * [MoneyBag.php] => Array - * ( - * ... - * ) - * ) - * - * - * is transformed into - * - * - * Array - * ( - * [.] => Array - * ( - * [Money.php] => Array - * ( - * ... - * ) - * - * [MoneyBag.php] => Array - * ( - * ... - * ) - * ) - * ) - * - * - * @param array $files - * @return array - */ - private function buildDirectoryStructure($files) - { - $result = array(); - foreach ($files as $path => $file) { - $path = explode('/', $path); - $pointer = &$result; - $max = count($path); - - for ($i = 0; $i < $max; $i++) { - if ($i == ($max - 1)) { - $type = '/f'; - } else { - $type = ''; - } + return $namespace; + } +} - $pointer = &$pointer[$path[$i] . $type]; - } +class PHP_Token_NS_C extends PHP_Token +{ +} - $pointer = $file; - } +class PHP_Token_NS_SEPARATOR extends PHP_Token +{ +} - return $result; - } +// Tokens introduced in PHP 5.4 +class PHP_Token_CALLABLE extends PHP_Token +{ +} - /** - * Reduces the paths by cutting the longest common start path. - * - * For instance, - * - * - * Array - * ( - * [/home/sb/Money/Money.php] => Array - * ( - * ... - * ) - * - * [/home/sb/Money/MoneyBag.php] => Array - * ( - * ... - * ) - * ) - * - * - * is reduced to - * - * - * Array - * ( - * [Money.php] => Array - * ( - * ... - * ) - * - * [MoneyBag.php] => Array - * ( - * ... - * ) - * ) - * - * - * @param array $files - * @return string - */ - private function reducePaths(&$files) - { - if (empty($files)) { - return '.'; - } +class PHP_Token_INSTEADOF extends PHP_Token +{ +} - $commonPath = ''; - $paths = array_keys($files); +class PHP_Token_TRAIT extends PHP_Token_INTERFACE +{ +} - if (count($files) == 1) { - $commonPath = dirname($paths[0]) . '/'; - $files[basename($paths[0])] = $files[$paths[0]]; +class PHP_Token_TRAIT_C extends PHP_Token +{ +} - unset($files[$paths[0]]); +// Tokens introduced in PHP 5.5 +class PHP_Token_FINALLY extends PHP_Token +{ +} - return $commonPath; - } +class PHP_Token_YIELD extends PHP_Token +{ +} - $max = count($paths); +// Tokens introduced in PHP 5.6 +class PHP_Token_ELLIPSIS extends PHP_Token +{ +} - for ($i = 0; $i < $max; $i++) { - // strip phar:// prefixes - if (strpos($paths[$i], 'phar://') === 0) { - $paths[$i] = substr($paths[$i], 7); - $paths[$i] = strtr($paths[$i], '/', DIRECTORY_SEPARATOR); - } - $paths[$i] = explode(DIRECTORY_SEPARATOR, $paths[$i]); +class PHP_Token_POW extends PHP_Token +{ +} - if (empty($paths[$i][0])) { - $paths[$i][0] = DIRECTORY_SEPARATOR; - } - } +class PHP_Token_POW_EQUAL extends PHP_Token +{ +} - $done = false; - $max = count($paths); +// Tokens introduced in PHP 7.0 +class PHP_Token_COALESCE extends PHP_Token +{ +} - while (!$done) { - for ($i = 0; $i < $max - 1; $i++) { - if (!isset($paths[$i][0]) || - !isset($paths[$i+1][0]) || - $paths[$i][0] != $paths[$i+1][0]) { - $done = true; - break; - } - } +class PHP_Token_SPACESHIP extends PHP_Token +{ +} - if (!$done) { - $commonPath .= $paths[0][0]; +class PHP_Token_YIELD_FROM extends PHP_Token +{ +} +PHP_TokenStream - if ($paths[0][0] != DIRECTORY_SEPARATOR) { - $commonPath .= DIRECTORY_SEPARATOR; - } +Copyright (c) 2009-2017, Sebastian Bergmann . +All rights reserved. - for ($i = 0; $i < $max; $i++) { - array_shift($paths[$i]); - } - } - } +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: - $original = array_keys($files); - $max = count($original); + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. - for ($i = 0; $i < $max; $i++) { - $files[implode('/', $paths[$i])] = $files[$original[$i]]; - unset($files[$original[$i]]); - } + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. - ksort($files); + * Neither the name of Sebastian Bergmann nor the names of his + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. - return substr($commonPath, 0, -1); - } -} +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. * @@ -2924,451 +2018,605 @@ class PHP_CodeCoverage_Report_Factory */ /** - * Generates an HTML report from an PHP_CodeCoverage object. - * - * @since Class available since Release 1.0.0 + * A stream of PHP tokens. */ -class PHP_CodeCoverage_Report_HTML +class PHP_Token_Stream implements ArrayAccess, Countable, SeekableIterator { /** - * @var string + * @var array */ - private $templatePath; + protected static $customTokens = [ + '(' => 'PHP_Token_OPEN_BRACKET', + ')' => 'PHP_Token_CLOSE_BRACKET', + '[' => 'PHP_Token_OPEN_SQUARE', + ']' => 'PHP_Token_CLOSE_SQUARE', + '{' => 'PHP_Token_OPEN_CURLY', + '}' => 'PHP_Token_CLOSE_CURLY', + ';' => 'PHP_Token_SEMICOLON', + '.' => 'PHP_Token_DOT', + ',' => 'PHP_Token_COMMA', + '=' => 'PHP_Token_EQUAL', + '<' => 'PHP_Token_LT', + '>' => 'PHP_Token_GT', + '+' => 'PHP_Token_PLUS', + '-' => 'PHP_Token_MINUS', + '*' => 'PHP_Token_MULT', + '/' => 'PHP_Token_DIV', + '?' => 'PHP_Token_QUESTION_MARK', + '!' => 'PHP_Token_EXCLAMATION_MARK', + ':' => 'PHP_Token_COLON', + '"' => 'PHP_Token_DOUBLE_QUOTES', + '@' => 'PHP_Token_AT', + '&' => 'PHP_Token_AMPERSAND', + '%' => 'PHP_Token_PERCENT', + '|' => 'PHP_Token_PIPE', + '$' => 'PHP_Token_DOLLAR', + '^' => 'PHP_Token_CARET', + '~' => 'PHP_Token_TILDE', + '`' => 'PHP_Token_BACKTICK' + ]; /** * @var string */ - private $generator; + protected $filename; /** - * @var int + * @var array */ - private $lowUpperBound; + protected $tokens = []; /** * @var int */ - private $highLowerBound; + protected $position = 0; /** - * Constructor. - * - * @param int $lowUpperBound - * @param int $highLowerBound - * @param string $generator + * @var array */ - public function __construct($lowUpperBound = 50, $highLowerBound = 90, $generator = '') - { - $this->generator = $generator; - $this->highLowerBound = $highLowerBound; - $this->lowUpperBound = $lowUpperBound; - - $this->templatePath = sprintf( - '%s%sHTML%sRenderer%sTemplate%s', - dirname(__FILE__), - DIRECTORY_SEPARATOR, - DIRECTORY_SEPARATOR, - DIRECTORY_SEPARATOR, - DIRECTORY_SEPARATOR - ); - } + protected $linesOfCode = ['loc' => 0, 'cloc' => 0, 'ncloc' => 0]; /** - * @param PHP_CodeCoverage $coverage - * @param string $target + * @var array */ - public function process(PHP_CodeCoverage $coverage, $target) - { - $target = $this->getDirectory($target); - $report = $coverage->getReport(); - unset($coverage); - - if (!isset($_SERVER['REQUEST_TIME'])) { - $_SERVER['REQUEST_TIME'] = time(); - } - - $date = date('D M j G:i:s T Y', $_SERVER['REQUEST_TIME']); - - $dashboard = new PHP_CodeCoverage_Report_HTML_Renderer_Dashboard( - $this->templatePath, - $this->generator, - $date, - $this->lowUpperBound, - $this->highLowerBound - ); - - $directory = new PHP_CodeCoverage_Report_HTML_Renderer_Directory( - $this->templatePath, - $this->generator, - $date, - $this->lowUpperBound, - $this->highLowerBound - ); - - $file = new PHP_CodeCoverage_Report_HTML_Renderer_File( - $this->templatePath, - $this->generator, - $date, - $this->lowUpperBound, - $this->highLowerBound - ); + protected $classes; - $directory->render($report, $target . 'index.html'); - $dashboard->render($report, $target . 'dashboard.html'); + /** + * @var array + */ + protected $functions; - foreach ($report as $node) { - $id = $node->getId(); + /** + * @var array + */ + protected $includes; - if ($node instanceof PHP_CodeCoverage_Report_Node_Directory) { - if (!file_exists($target . $id)) { - mkdir($target . $id, 0777, true); - } + /** + * @var array + */ + protected $interfaces; - $directory->render($node, $target . $id . '/index.html'); - $dashboard->render($node, $target . $id . '/dashboard.html'); - } else { - $dir = dirname($target . $id); + /** + * @var array + */ + protected $traits; - if (!file_exists($dir)) { - mkdir($dir, 0777, true); - } + /** + * @var array + */ + protected $lineToFunctionMap = []; - $file->render($node, $target . $id . '.html'); - } + /** + * Constructor. + * + * @param string $sourceCode + */ + public function __construct($sourceCode) + { + if (is_file($sourceCode)) { + $this->filename = $sourceCode; + $sourceCode = file_get_contents($sourceCode); } - $this->copyFiles($target); + $this->scan($sourceCode); } /** - * @param string $target + * Destructor. */ - private function copyFiles($target) + public function __destruct() { - $dir = $this->getDirectory($target . 'css'); - copy($this->templatePath . 'css/bootstrap.min.css', $dir . 'bootstrap.min.css'); - copy($this->templatePath . 'css/nv.d3.min.css', $dir . 'nv.d3.min.css'); - copy($this->templatePath . 'css/style.css', $dir . 'style.css'); - - $dir = $this->getDirectory($target . 'fonts'); - copy($this->templatePath . 'fonts/glyphicons-halflings-regular.eot', $dir . 'glyphicons-halflings-regular.eot'); - copy($this->templatePath . 'fonts/glyphicons-halflings-regular.svg', $dir . 'glyphicons-halflings-regular.svg'); - copy($this->templatePath . 'fonts/glyphicons-halflings-regular.ttf', $dir . 'glyphicons-halflings-regular.ttf'); - copy($this->templatePath . 'fonts/glyphicons-halflings-regular.woff', $dir . 'glyphicons-halflings-regular.woff'); - copy($this->templatePath . 'fonts/glyphicons-halflings-regular.woff2', $dir . 'glyphicons-halflings-regular.woff2'); - - $dir = $this->getDirectory($target . 'js'); - copy($this->templatePath . 'js/bootstrap.min.js', $dir . 'bootstrap.min.js'); - copy($this->templatePath . 'js/d3.min.js', $dir . 'd3.min.js'); - copy($this->templatePath . 'js/holder.min.js', $dir . 'holder.min.js'); - copy($this->templatePath . 'js/html5shiv.min.js', $dir . 'html5shiv.min.js'); - copy($this->templatePath . 'js/jquery.min.js', $dir . 'jquery.min.js'); - copy($this->templatePath . 'js/nv.d3.min.js', $dir . 'nv.d3.min.js'); - copy($this->templatePath . 'js/respond.min.js', $dir . 'respond.min.js'); + $this->tokens = []; } /** - * @param string $directory * @return string - * @throws PHP_CodeCoverage_Exception - * @since Method available since Release 1.2.0 */ - private function getDirectory($directory) + public function __toString() { - if (substr($directory, -1, 1) != DIRECTORY_SEPARATOR) { - $directory .= DIRECTORY_SEPARATOR; - } - - if (is_dir($directory)) { - return $directory; - } + $buffer = ''; - if (@mkdir($directory, 0777, true)) { - return $directory; + foreach ($this as $token) { + $buffer .= $token; } - throw new PHP_CodeCoverage_Exception( - sprintf( - 'Directory "%s" does not exist.', - $directory - ) - ); + return $buffer; } -} - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -use SebastianBergmann\Environment\Runtime; -/** - * Base class for PHP_CodeCoverage_Report_Node renderers. - * - * @since Class available since Release 1.1.0 - */ -abstract class PHP_CodeCoverage_Report_HTML_Renderer -{ /** - * @var string + * @return string */ - protected $templatePath; + public function getFilename() + { + return $this->filename; + } /** - * @var string + * Scans the source for sequences of characters and converts them into a + * stream of tokens. + * + * @param string $sourceCode */ - protected $generator; + protected function scan($sourceCode) + { + $id = 0; + $line = 1; + $tokens = token_get_all($sourceCode); + $numTokens = count($tokens); - /** - * @var string - */ - protected $date; + $lastNonWhitespaceTokenWasDoubleColon = false; - /** - * @var int - */ - protected $lowUpperBound; + for ($i = 0; $i < $numTokens; ++$i) { + $token = $tokens[$i]; + $skip = 0; + + if (is_array($token)) { + $name = substr(token_name($token[0]), 2); + $text = $token[1]; + + if ($lastNonWhitespaceTokenWasDoubleColon && $name == 'CLASS') { + $name = 'CLASS_NAME_CONSTANT'; + } elseif ($name == 'USE' && isset($tokens[$i + 2][0]) && $tokens[$i + 2][0] == T_FUNCTION) { + $name = 'USE_FUNCTION'; + $text .= $tokens[$i + 1][1] . $tokens[$i + 2][1]; + $skip = 2; + } + + $tokenClass = 'PHP_Token_' . $name; + } else { + $text = $token; + $tokenClass = self::$customTokens[$token]; + } + + $this->tokens[] = new $tokenClass($text, $line, $this, $id++); + $lines = substr_count($text, "\n"); + $line += $lines; + + if ($tokenClass == 'PHP_Token_HALT_COMPILER') { + break; + } elseif ($tokenClass == 'PHP_Token_COMMENT' || + $tokenClass == 'PHP_Token_DOC_COMMENT') { + $this->linesOfCode['cloc'] += $lines + 1; + } + + if ($name == 'DOUBLE_COLON') { + $lastNonWhitespaceTokenWasDoubleColon = true; + } elseif ($name != 'WHITESPACE') { + $lastNonWhitespaceTokenWasDoubleColon = false; + } + + $i += $skip; + } + + $this->linesOfCode['loc'] = substr_count($sourceCode, "\n"); + $this->linesOfCode['ncloc'] = $this->linesOfCode['loc'] - + $this->linesOfCode['cloc']; + } /** - * @var int + * @return int */ - protected $highLowerBound; + public function count() + { + return count($this->tokens); + } /** - * @var string + * @return PHP_Token[] */ - protected $version; + public function tokens() + { + return $this->tokens; + } /** - * Constructor. - * - * @param string $templatePath - * @param string $generator - * @param string $date - * @param int $lowUpperBound - * @param int $highLowerBound + * @return array */ - public function __construct($templatePath, $generator, $date, $lowUpperBound, $highLowerBound) + public function getClasses() { - $version = new SebastianBergmann\Version('2.2.4', dirname(dirname(dirname(dirname(__DIR__))))); + if ($this->classes !== null) { + return $this->classes; + } - $this->templatePath = $templatePath; - $this->generator = $generator; - $this->date = $date; - $this->lowUpperBound = $lowUpperBound; - $this->highLowerBound = $highLowerBound; - $this->version = $version->getVersion(); + $this->parse(); + + return $this->classes; } /** - * @param Text_Template $template - * @param array $data - * @return string + * @return array */ - protected function renderItemTemplate(Text_Template $template, array $data) + public function getFunctions() { - $numSeparator = ' / '; + if ($this->functions !== null) { + return $this->functions; + } - if (isset($data['numClasses']) && $data['numClasses'] > 0) { - $classesLevel = $this->getColorLevel($data['testedClassesPercent']); + $this->parse(); - $classesNumber = $data['numTestedClasses'] . $numSeparator . - $data['numClasses']; + return $this->functions; + } - $classesBar = $this->getCoverageBar( - $data['testedClassesPercent'] - ); - } else { - $classesLevel = 'success'; - $classesNumber = '0' . $numSeparator . '0'; - $classesBar = $this->getCoverageBar(100); + /** + * @return array + */ + public function getInterfaces() + { + if ($this->interfaces !== null) { + return $this->interfaces; } - if ($data['numMethods'] > 0) { - $methodsLevel = $this->getColorLevel($data['testedMethodsPercent']); + $this->parse(); - $methodsNumber = $data['numTestedMethods'] . $numSeparator . - $data['numMethods']; + return $this->interfaces; + } - $methodsBar = $this->getCoverageBar( - $data['testedMethodsPercent'] - ); - } else { - $methodsLevel = 'success'; - $methodsNumber = '0' . $numSeparator . '0'; - $methodsBar = $this->getCoverageBar(100); - $data['testedMethodsPercentAsString'] = '100.00%'; + /** + * @return array + */ + public function getTraits() + { + if ($this->traits !== null) { + return $this->traits; } - if ($data['numExecutableLines'] > 0) { - $linesLevel = $this->getColorLevel($data['linesExecutedPercent']); + $this->parse(); - $linesNumber = $data['numExecutedLines'] . $numSeparator . - $data['numExecutableLines']; + return $this->traits; + } - $linesBar = $this->getCoverageBar( - $data['linesExecutedPercent'] + /** + * Gets the names of all files that have been included + * using include(), include_once(), require() or require_once(). + * + * Parameter $categorize set to TRUE causing this function to return a + * multi-dimensional array with categories in the keys of the first dimension + * and constants and their values in the second dimension. + * + * Parameter $category allow to filter following specific inclusion type + * + * @param bool $categorize OPTIONAL + * @param string $category OPTIONAL Either 'require_once', 'require', + * 'include_once', 'include'. + * + * @return array + */ + public function getIncludes($categorize = false, $category = null) + { + if ($this->includes === null) { + $this->includes = [ + 'require_once' => [], + 'require' => [], + 'include_once' => [], + 'include' => [] + ]; + + foreach ($this->tokens as $token) { + switch (get_class($token)) { + case 'PHP_Token_REQUIRE_ONCE': + case 'PHP_Token_REQUIRE': + case 'PHP_Token_INCLUDE_ONCE': + case 'PHP_Token_INCLUDE': + $this->includes[$token->getType()][] = $token->getName(); + break; + } + } + } + + if (isset($this->includes[$category])) { + $includes = $this->includes[$category]; + } elseif ($categorize === false) { + $includes = array_merge( + $this->includes['require_once'], + $this->includes['require'], + $this->includes['include_once'], + $this->includes['include'] ); } else { - $linesLevel = 'success'; - $linesNumber = '0' . $numSeparator . '0'; - $linesBar = $this->getCoverageBar(100); - $data['linesExecutedPercentAsString'] = '100.00%'; + $includes = $this->includes; } - $template->setVar( - array( - 'icon' => isset($data['icon']) ? $data['icon'] : '', - 'crap' => isset($data['crap']) ? $data['crap'] : '', - 'name' => $data['name'], - 'lines_bar' => $linesBar, - 'lines_executed_percent' => $data['linesExecutedPercentAsString'], - 'lines_level' => $linesLevel, - 'lines_number' => $linesNumber, - 'methods_bar' => $methodsBar, - 'methods_tested_percent' => $data['testedMethodsPercentAsString'], - 'methods_level' => $methodsLevel, - 'methods_number' => $methodsNumber, - 'classes_bar' => $classesBar, - 'classes_tested_percent' => isset($data['testedClassesPercentAsString']) ? $data['testedClassesPercentAsString'] : '', - 'classes_level' => $classesLevel, - 'classes_number' => $classesNumber - ) - ); - - return $template->render(); + return $includes; } /** - * @param Text_Template $template - * @param PHP_CodeCoverage_Report_Node $node + * Returns the name of the function or method a line belongs to. + * + * @return string or null if the line is not in a function or method */ - protected function setCommonTemplateVariables(Text_Template $template, PHP_CodeCoverage_Report_Node $node) + public function getFunctionForLine($line) { - $runtime = new Runtime; + $this->parse(); - $template->setVar( - array( - 'id' => $node->getId(), - 'full_path' => $node->getPath(), - 'path_to_root' => $this->getPathToRoot($node), - 'breadcrumbs' => $this->getBreadcrumbs($node), - 'date' => $this->date, - 'version' => $this->version, - 'runtime_name' => $runtime->getName(), - 'runtime_version' => $runtime->getVersion(), - 'runtime_link' => $runtime->getVendorUrl(), - 'generator' => $this->generator, - 'low_upper_bound' => $this->lowUpperBound, - 'high_lower_bound' => $this->highLowerBound - ) - ); + if (isset($this->lineToFunctionMap[$line])) { + return $this->lineToFunctionMap[$line]; + } } - protected function getBreadcrumbs(PHP_CodeCoverage_Report_Node $node) + protected function parse() { - $breadcrumbs = ''; - $path = $node->getPathAsArray(); - $pathToRoot = array(); - $max = count($path); + $this->interfaces = []; + $this->classes = []; + $this->traits = []; + $this->functions = []; + $class = []; + $classEndLine = []; + $trait = false; + $traitEndLine = false; + $interface = false; + $interfaceEndLine = false; - if ($node instanceof PHP_CodeCoverage_Report_Node_File) { - $max--; - } + foreach ($this->tokens as $token) { + switch (get_class($token)) { + case 'PHP_Token_HALT_COMPILER': + return; - for ($i = 0; $i < $max; $i++) { - $pathToRoot[] = str_repeat('../', $i); - } + case 'PHP_Token_INTERFACE': + $interface = $token->getName(); + $interfaceEndLine = $token->getEndLine(); - foreach ($path as $step) { - if ($step !== $node) { - $breadcrumbs .= $this->getInactiveBreadcrumb( - $step, - array_pop($pathToRoot) - ); - } else { - $breadcrumbs .= $this->getActiveBreadcrumb($step); + $this->interfaces[$interface] = [ + 'methods' => [], + 'parent' => $token->getParent(), + 'keywords' => $token->getKeywords(), + 'docblock' => $token->getDocblock(), + 'startLine' => $token->getLine(), + 'endLine' => $interfaceEndLine, + 'package' => $token->getPackage(), + 'file' => $this->filename + ]; + break; + + case 'PHP_Token_CLASS': + case 'PHP_Token_TRAIT': + $tmp = [ + 'methods' => [], + 'parent' => $token->getParent(), + 'interfaces'=> $token->getInterfaces(), + 'keywords' => $token->getKeywords(), + 'docblock' => $token->getDocblock(), + 'startLine' => $token->getLine(), + 'endLine' => $token->getEndLine(), + 'package' => $token->getPackage(), + 'file' => $this->filename + ]; + + if ($token instanceof PHP_Token_CLASS) { + $class[] = $token->getName(); + $classEndLine[] = $token->getEndLine(); + + $this->classes[$class[count($class) - 1]] = $tmp; + } else { + $trait = $token->getName(); + $traitEndLine = $token->getEndLine(); + $this->traits[$trait] = $tmp; + } + break; + + case 'PHP_Token_FUNCTION': + $name = $token->getName(); + $tmp = [ + 'docblock' => $token->getDocblock(), + 'keywords' => $token->getKeywords(), + 'visibility'=> $token->getVisibility(), + 'signature' => $token->getSignature(), + 'startLine' => $token->getLine(), + 'endLine' => $token->getEndLine(), + 'ccn' => $token->getCCN(), + 'file' => $this->filename + ]; + + if (empty($class) && + $trait === false && + $interface === false) { + $this->functions[$name] = $tmp; + + $this->addFunctionToMap( + $name, + $tmp['startLine'], + $tmp['endLine'] + ); + } elseif (!empty($class)) { + $this->classes[$class[count($class) - 1]]['methods'][$name] = $tmp; + + $this->addFunctionToMap( + $class[count($class) - 1] . '::' . $name, + $tmp['startLine'], + $tmp['endLine'] + ); + } elseif ($trait !== false) { + $this->traits[$trait]['methods'][$name] = $tmp; + + $this->addFunctionToMap( + $trait . '::' . $name, + $tmp['startLine'], + $tmp['endLine'] + ); + } else { + $this->interfaces[$interface]['methods'][$name] = $tmp; + } + break; + + case 'PHP_Token_CLOSE_CURLY': + if (!empty($classEndLine) && + $classEndLine[count($classEndLine) - 1] == $token->getLine()) { + array_pop($classEndLine); + array_pop($class); + } elseif ($traitEndLine !== false && + $traitEndLine == $token->getLine()) { + $trait = false; + $traitEndLine = false; + } elseif ($interfaceEndLine !== false && + $interfaceEndLine == $token->getLine()) { + $interface = false; + $interfaceEndLine = false; + } + break; } } + } - return $breadcrumbs; + /** + * @return array + */ + public function getLinesOfCode() + { + return $this->linesOfCode; } - protected function getActiveBreadcrumb(PHP_CodeCoverage_Report_Node $node) + /** + */ + public function rewind() { - $buffer = sprintf( - '
  • %s
  • ' . "\n", - $node->getName() - ); + $this->position = 0; + } - if ($node instanceof PHP_CodeCoverage_Report_Node_Directory) { - $buffer .= '
  • (Dashboard)
  • ' . "\n"; - } + /** + * @return bool + */ + public function valid() + { + return isset($this->tokens[$this->position]); + } - return $buffer; + /** + * @return int + */ + public function key() + { + return $this->position; } - protected function getInactiveBreadcrumb(PHP_CodeCoverage_Report_Node $node, $pathToRoot) + /** + * @return PHP_Token + */ + public function current() { - return sprintf( - '
  • %s
  • ' . "\n", - $pathToRoot, - $node->getName() - ); + return $this->tokens[$this->position]; } - protected function getPathToRoot(PHP_CodeCoverage_Report_Node $node) + /** + */ + public function next() { - $id = $node->getId(); - $depth = substr_count($id, '/'); + $this->position++; + } - if ($id != 'index' && - $node instanceof PHP_CodeCoverage_Report_Node_Directory) { - $depth++; + /** + * @param int $offset + * + * @return bool + */ + public function offsetExists($offset) + { + return isset($this->tokens[$offset]); + } + + /** + * @param int $offset + * + * @return mixed + * + * @throws OutOfBoundsException + */ + public function offsetGet($offset) + { + if (!$this->offsetExists($offset)) { + throw new OutOfBoundsException( + sprintf( + 'No token at position "%s"', + $offset + ) + ); } - return str_repeat('../', $depth); + return $this->tokens[$offset]; } - protected function getCoverageBar($percent) + /** + * @param int $offset + * @param mixed $value + */ + public function offsetSet($offset, $value) { - $level = $this->getColorLevel($percent); + $this->tokens[$offset] = $value; + } - $template = new Text_Template( - $this->templatePath . 'coverage_bar.html', - '{{', - '}}' - ); + /** + * @param int $offset + * + * @throws OutOfBoundsException + */ + public function offsetUnset($offset) + { + if (!$this->offsetExists($offset)) { + throw new OutOfBoundsException( + sprintf( + 'No token at position "%s"', + $offset + ) + ); + } - $template->setVar(array('level' => $level, 'percent' => sprintf('%.2F', $percent))); + unset($this->tokens[$offset]); + } - return $template->render(); + /** + * Seek to an absolute position. + * + * @param int $position + * + * @throws OutOfBoundsException + */ + public function seek($position) + { + $this->position = $position; + + if (!$this->valid()) { + throw new OutOfBoundsException( + sprintf( + 'No token at position "%s"', + $this->position + ) + ); + } } /** - * @param int $percent - * @return string + * @param string $name + * @param int $startLine + * @param int $endLine */ - protected function getColorLevel($percent) + private function addFunctionToMap($name, $startLine, $endLine) { - if ($percent <= $this->lowUpperBound) { - return 'danger'; - } elseif ($percent > $this->lowUpperBound && - $percent < $this->highLowerBound) { - return 'warning'; - } else { - return 'success'; + for ($line = $startLine; $line <= $endLine; $line++) { + $this->lineToFunctionMap[$line] = $name; } } } * @@ -3377,293 +2625,389 @@ abstract class PHP_CodeCoverage_Report_HTML_Renderer */ /** - * Renders the dashboard for a PHP_CodeCoverage_Report_Node_Directory node. - * - * @since Class available since Release 1.1.0 + * A caching factory for token stream objects. */ -class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_Report_HTML_Renderer +class PHP_Token_Stream_CachingFactory { /** - * @param PHP_CodeCoverage_Report_Node_Directory $node - * @param string $file + * @var array */ - public function render(PHP_CodeCoverage_Report_Node_Directory $node, $file) - { - $classes = $node->getClassesAndTraits(); - $template = new Text_Template( - $this->templatePath . 'dashboard.html', - '{{', - '}}' - ); + protected static $cache = []; - $this->setCommonTemplateVariables($template, $node); + /** + * @param string $filename + * + * @return PHP_Token_Stream + */ + public static function get($filename) + { + if (!isset(self::$cache[$filename])) { + self::$cache[$filename] = new PHP_Token_Stream($filename); + } - $baseLink = $node->getId() . '/'; - $complexity = $this->complexity($classes, $baseLink); - $coverageDistribution = $this->coverageDistribution($classes); - $insufficientCoverage = $this->insufficientCoverage($classes, $baseLink); - $projectRisks = $this->projectRisks($classes, $baseLink); - - $template->setVar( - array( - 'insufficient_coverage_classes' => $insufficientCoverage['class'], - 'insufficient_coverage_methods' => $insufficientCoverage['method'], - 'project_risks_classes' => $projectRisks['class'], - 'project_risks_methods' => $projectRisks['method'], - 'complexity_class' => $complexity['class'], - 'complexity_method' => $complexity['method'], - 'class_coverage_distribution' => $coverageDistribution['class'], - 'method_coverage_distribution' => $coverageDistribution['method'] - ) - ); - - $template->renderTo($file); + return self::$cache[$filename]; } /** - * Returns the data for the Class/Method Complexity charts. - * - * @param array $classes - * @param string $baseLink - * @return array + * @param string $filename */ - protected function complexity(array $classes, $baseLink) + public static function clear($filename = null) { - $result = array('class' => array(), 'method' => array()); + if (is_string($filename)) { + unset(self::$cache[$filename]); + } else { + self::$cache = []; + } + } +} +Exporter - foreach ($classes as $className => $class) { - foreach ($class['methods'] as $methodName => $method) { - if ($className != '*') { - $methodName = $className . '::' . $methodName; - } +Copyright (c) 2002-2017, Sebastian Bergmann . +All rights reserved. - $result['method'][] = array( - $method['coverage'], - $method['ccn'], - sprintf( - '%s', - str_replace($baseLink, '', $method['link']), - $methodName - ) - ); - } +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: - $result['class'][] = array( - $class['coverage'], - $class['ccn'], - sprintf( - '%s', - str_replace($baseLink, '', $class['link']), - $className - ) - ); - } + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. - return array( - 'class' => json_encode($result['class']), - 'method' => json_encode($result['method']) - ); + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + * Neither the name of Sebastian Bergmann nor the names of his + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace SebastianBergmann\Exporter; + +use SebastianBergmann\RecursionContext\Context; + +/** + * A nifty utility for visualizing PHP variables. + * + * + * export(new Exception); + * + */ +class Exporter +{ + /** + * Exports a value as a string + * + * The output of this method is similar to the output of print_r(), but + * improved in various aspects: + * + * - NULL is rendered as "null" (instead of "") + * - TRUE is rendered as "true" (instead of "1") + * - FALSE is rendered as "false" (instead of "") + * - Strings are always quoted with single quotes + * - Carriage returns and newlines are normalized to \n + * - Recursion and repeated rendering is treated properly + * + * @param mixed $value + * @param int $indentation The indentation level of the 2nd+ line + * + * @return string + */ + public function export($value, $indentation = 0) + { + return $this->recursiveExport($value, $indentation); } /** - * Returns the data for the Class / Method Coverage Distribution chart. + * @param mixed $data + * @param Context $context * - * @param array $classes - * @return array + * @return string */ - protected function coverageDistribution(array $classes) + public function shortenedRecursiveExport(&$data, Context $context = null) { - $result = array( - 'class' => array( - '0%' => 0, - '0-10%' => 0, - '10-20%' => 0, - '20-30%' => 0, - '30-40%' => 0, - '40-50%' => 0, - '50-60%' => 0, - '60-70%' => 0, - '70-80%' => 0, - '80-90%' => 0, - '90-100%' => 0, - '100%' => 0 - ), - 'method' => array( - '0%' => 0, - '0-10%' => 0, - '10-20%' => 0, - '20-30%' => 0, - '30-40%' => 0, - '40-50%' => 0, - '50-60%' => 0, - '60-70%' => 0, - '70-80%' => 0, - '80-90%' => 0, - '90-100%' => 0, - '100%' => 0 - ) - ); + $result = []; + $exporter = new self(); - foreach ($classes as $class) { - foreach ($class['methods'] as $methodName => $method) { - if ($method['coverage'] == 0) { - $result['method']['0%']++; - } elseif ($method['coverage'] == 100) { - $result['method']['100%']++; + if (!$context) { + $context = new Context; + } + + $array = $data; + $context->add($data); + + foreach ($array as $key => $value) { + if (is_array($value)) { + if ($context->contains($data[$key]) !== false) { + $result[] = '*RECURSION*'; } else { - $key = floor($method['coverage'] / 10) * 10; - $key = $key . '-' . ($key + 10) . '%'; - $result['method'][$key]++; + $result[] = sprintf( + 'array(%s)', + $this->shortenedRecursiveExport($data[$key], $context) + ); } - } - - if ($class['coverage'] == 0) { - $result['class']['0%']++; - } elseif ($class['coverage'] == 100) { - $result['class']['100%']++; } else { - $key = floor($class['coverage'] / 10) * 10; - $key = $key . '-' . ($key + 10) . '%'; - $result['class'][$key]++; + $result[] = $exporter->shortenedExport($value); } } - return array( - 'class' => json_encode(array_values($result['class'])), - 'method' => json_encode(array_values($result['method'])) - ); + return implode(', ', $result); } /** - * Returns the classes / methods with insufficient coverage. + * Exports a value into a single-line string * - * @param array $classes - * @param string $baseLink - * @return array + * The output of this method is similar to the output of + * SebastianBergmann\Exporter\Exporter::export(). + * + * Newlines are replaced by the visible string '\n'. + * Contents of arrays and objects (if any) are replaced by '...'. + * + * @param mixed $value + * + * @return string + * + * @see SebastianBergmann\Exporter\Exporter::export */ - protected function insufficientCoverage(array $classes, $baseLink) + public function shortenedExport($value) { - $leastTestedClasses = array(); - $leastTestedMethods = array(); - $result = array('class' => '', 'method' => ''); - - foreach ($classes as $className => $class) { - foreach ($class['methods'] as $methodName => $method) { - if ($method['coverage'] < $this->highLowerBound) { - if ($className != '*') { - $key = $className . '::' . $methodName; - } else { - $key = $methodName; - } + if (is_string($value)) { + $string = str_replace("\n", '', $this->export($value)); - $leastTestedMethods[$key] = $method['coverage']; + if (function_exists('mb_strlen')) { + if (mb_strlen($string) > 40) { + $string = mb_substr($string, 0, 30) . '...' . mb_substr($string, -7); + } + } else { + if (strlen($string) > 40) { + $string = substr($string, 0, 30) . '...' . substr($string, -7); } } - if ($class['coverage'] < $this->highLowerBound) { - $leastTestedClasses[$className] = $class['coverage']; - } + return $string; } - asort($leastTestedClasses); - asort($leastTestedMethods); - - foreach ($leastTestedClasses as $className => $coverage) { - $result['class'] .= sprintf( - ' %s%d%%' . "\n", - str_replace($baseLink, '', $classes[$className]['link']), - $className, - $coverage + if (is_object($value)) { + return sprintf( + '%s Object (%s)', + get_class($value), + count($this->toArray($value)) > 0 ? '...' : '' ); } - foreach ($leastTestedMethods as $methodName => $coverage) { - list($class, $method) = explode('::', $methodName); - - $result['method'] .= sprintf( - ' %s%d%%' . "\n", - str_replace($baseLink, '', $classes[$class]['methods'][$method]['link']), - $methodName, - $method, - $coverage + if (is_array($value)) { + return sprintf( + 'Array (%s)', + count($value) > 0 ? '...' : '' ); } - return $result; + return $this->export($value); } /** - * Returns the project risks according to the CRAP index. + * Converts an object to an array containing all of its private, protected + * and public properties. + * + * @param mixed $value * - * @param array $classes - * @param string $baseLink * @return array */ - protected function projectRisks(array $classes, $baseLink) + public function toArray($value) { - $classRisks = array(); - $methodRisks = array(); - $result = array('class' => '', 'method' => ''); + if (!is_object($value)) { + return (array) $value; + } - foreach ($classes as $className => $class) { - foreach ($class['methods'] as $methodName => $method) { - if ($method['coverage'] < $this->highLowerBound && - $method['ccn'] > 1) { - if ($className != '*') { - $key = $className . '::' . $methodName; - } else { - $key = $methodName; - } + $array = []; - $methodRisks[$key] = $method['crap']; - } + foreach ((array) $value as $key => $val) { + // properties are transformed to keys in the following way: + // private $property => "\0Classname\0property" + // protected $property => "\0*\0property" + // public $property => "property" + if (preg_match('/^\0.+\0(.+)$/', $key, $matches)) { + $key = $matches[1]; } - if ($class['coverage'] < $this->highLowerBound && - $class['ccn'] > count($class['methods'])) { - $classRisks[$className] = $class['crap']; + // See https://github.com/php/php-src/commit/5721132 + if ($key === "\0gcdata") { + continue; } + + $array[$key] = $val; } - arsort($classRisks); - arsort($methodRisks); + // Some internal classes like SplObjectStorage don't work with the + // above (fast) mechanism nor with reflection in Zend. + // Format the output similarly to print_r() in this case + if ($value instanceof \SplObjectStorage) { + // However, the fast method does work in HHVM, and exposes the + // internal implementation. Hide it again. + if (property_exists('\SplObjectStorage', '__storage')) { + unset($array['__storage']); + } elseif (property_exists('\SplObjectStorage', 'storage')) { + unset($array['storage']); + } + + if (property_exists('\SplObjectStorage', '__key')) { + unset($array['__key']); + } - foreach ($classRisks as $className => $crap) { - $result['class'] .= sprintf( - ' %s%d' . "\n", - str_replace($baseLink, '', $classes[$className]['link']), - $className, - $crap - ); + foreach ($value as $key => $val) { + $array[spl_object_hash($val)] = [ + 'obj' => $val, + 'inf' => $value->getInfo(), + ]; + } } - foreach ($methodRisks as $methodName => $crap) { - list($class, $method) = explode('::', $methodName); + return $array; + } - $result['method'] .= sprintf( - ' %s%d' . "\n", - str_replace($baseLink, '', $classes[$class]['methods'][$method]['link']), - $methodName, - $method, - $crap + /** + * Recursive implementation of export + * + * @param mixed $value The value to export + * @param int $indentation The indentation level of the 2nd+ line + * @param \SebastianBergmann\RecursionContext\Context $processed Previously processed objects + * + * @return string + * + * @see SebastianBergmann\Exporter\Exporter::export + */ + protected function recursiveExport(&$value, $indentation, $processed = null) + { + if ($value === null) { + return 'null'; + } + + if ($value === true) { + return 'true'; + } + + if ($value === false) { + return 'false'; + } + + if (is_float($value) && floatval(intval($value)) === $value) { + return "$value.0"; + } + + if (is_resource($value)) { + return sprintf( + 'resource(%d) of type (%s)', + $value, + get_resource_type($value) ); } - return $result; - } + if (is_string($value)) { + // Match for most non printable chars somewhat taking multibyte chars into account + if (preg_match('/[^\x09-\x0d\x1b\x20-\xff]/', $value)) { + return 'Binary String: 0x' . bin2hex($value); + } - protected function getActiveBreadcrumb(PHP_CodeCoverage_Report_Node $node) - { - return sprintf( - '
  • %s
  • ' . "\n" . - '
  • (Dashboard)
  • ' . "\n", - $node->getName() - ); + return "'" . + str_replace('', "\n", + str_replace( + ["\r\n", "\n\r", "\r", "\n"], + ['\r\n', '\n\r', '\r', '\n'], + $value + ) + ) . + "'"; + } + + $whitespace = str_repeat(' ', 4 * $indentation); + + if (!$processed) { + $processed = new Context; + } + + if (is_array($value)) { + if (($key = $processed->contains($value)) !== false) { + return 'Array &' . $key; + } + + $array = $value; + $key = $processed->add($value); + $values = ''; + + if (count($array) > 0) { + foreach ($array as $k => $v) { + $values .= sprintf( + '%s %s => %s' . "\n", + $whitespace, + $this->recursiveExport($k, $indentation), + $this->recursiveExport($value[$k], $indentation + 1, $processed) + ); + } + + $values = "\n" . $values . $whitespace; + } + + return sprintf('Array &%s (%s)', $key, $values); + } + + if (is_object($value)) { + $class = get_class($value); + + if ($hash = $processed->contains($value)) { + return sprintf('%s Object &%s', $class, $hash); + } + + $hash = $processed->add($value); + $values = ''; + $array = $this->toArray($value); + + if (count($array) > 0) { + foreach ($array as $k => $v) { + $values .= sprintf( + '%s %s => %s' . "\n", + $whitespace, + $this->recursiveExport($k, $indentation), + $this->recursiveExport($v, $indentation + 1, $processed) + ); + } + + $values = "\n" . $values . $whitespace; + } + + return sprintf('%s Object &%s (%s)', $class, $hash, $values); + } + + return var_export($value, true); } } - * @@ -3671,96 +3015,104 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_R * file that was distributed with this source code. */ -/** - * Renders a PHP_CodeCoverage_Report_Node_Directory node. +namespace SebastianBergmann\Diff; + +interface LongestCommonSubsequenceCalculator +{ + /** + * Calculates the longest common subsequence of two arrays. + * + * @param array $from + * @param array $to + * + * @return array + */ + public function calculate(array $from, array $to): array; +} + * - * @since Class available since Release 1.1.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ -class PHP_CodeCoverage_Report_HTML_Renderer_Directory extends PHP_CodeCoverage_Report_HTML_Renderer + +namespace SebastianBergmann\Diff; + +final class MemoryEfficientLongestCommonSubsequenceCalculator implements LongestCommonSubsequenceCalculator { /** - * @param PHP_CodeCoverage_Report_Node_Directory $node - * @param string $file + * {@inheritdoc} */ - public function render(PHP_CodeCoverage_Report_Node_Directory $node, $file) + public function calculate(array $from, array $to): array { - $template = new Text_Template($this->templatePath . 'directory.html', '{{', '}}'); + $cFrom = \count($from); + $cTo = \count($to); - $this->setCommonTemplateVariables($template, $node); + if ($cFrom === 0) { + return []; + } - $items = $this->renderItem($node, true); + if ($cFrom === 1) { + if (\in_array($from[0], $to, true)) { + return [$from[0]]; + } - foreach ($node->getDirectories() as $item) { - $items .= $this->renderItem($item); + return []; } - foreach ($node->getFiles() as $item) { - $items .= $this->renderItem($item); - } + $i = (int) ($cFrom / 2); + $fromStart = \array_slice($from, 0, $i); + $fromEnd = \array_slice($from, $i); + $llB = $this->length($fromStart, $to); + $llE = $this->length(\array_reverse($fromEnd), \array_reverse($to)); + $jMax = 0; + $max = 0; - $template->setVar( - array( - 'id' => $node->getId(), - 'items' => $items - ) - ); + for ($j = 0; $j <= $cTo; $j++) { + $m = $llB[$j] + $llE[$cTo - $j]; - $template->renderTo($file); - } + if ($m >= $max) { + $max = $m; + $jMax = $j; + } + } - /** - * @param PHP_CodeCoverage_Report_Node $item - * @param bool $total - * @return string - */ - protected function renderItem(PHP_CodeCoverage_Report_Node $item, $total = false) - { - $data = array( - 'numClasses' => $item->getNumClassesAndTraits(), - 'numTestedClasses' => $item->getNumTestedClassesAndTraits(), - 'numMethods' => $item->getNumMethods(), - 'numTestedMethods' => $item->getNumTestedMethods(), - 'linesExecutedPercent' => $item->getLineExecutedPercent(false), - 'linesExecutedPercentAsString' => $item->getLineExecutedPercent(), - 'numExecutedLines' => $item->getNumExecutedLines(), - 'numExecutableLines' => $item->getNumExecutableLines(), - 'testedMethodsPercent' => $item->getTestedMethodsPercent(false), - 'testedMethodsPercentAsString' => $item->getTestedMethodsPercent(), - 'testedClassesPercent' => $item->getTestedClassesAndTraitsPercent(false), - 'testedClassesPercentAsString' => $item->getTestedClassesAndTraitsPercent() + $toStart = \array_slice($to, 0, $jMax); + $toEnd = \array_slice($to, $jMax); + + return \array_merge( + $this->calculate($fromStart, $toStart), + $this->calculate($fromEnd, $toEnd) ); + } - if ($total) { - $data['name'] = 'Total'; - } else { - if ($item instanceof PHP_CodeCoverage_Report_Node_Directory) { - $data['name'] = sprintf( - '%s', - $item->getName(), - $item->getName() - ); + private function length(array $from, array $to): array + { + $current = \array_fill(0, \count($to) + 1, 0); + $cFrom = \count($from); + $cTo = \count($to); - $data['icon'] = ' '; - } else { - $data['name'] = sprintf( - '%s', - $item->getName(), - $item->getName() - ); + for ($i = 0; $i < $cFrom; $i++) { + $prev = $current; - $data['icon'] = ' '; + for ($j = 0; $j < $cTo; $j++) { + if ($from[$i] === $to[$j]) { + $current[$j + 1] = $prev[$j] + 1; + } else { + $current[$j + 1] = \max($current[$j], $prev[$j + 1]); + } } } - return $this->renderItemTemplate( - new Text_Template($this->templatePath . 'directory_item.html', '{{', '}}'), - $data - ); + return $current; } } - * @@ -3768,2528 +3120,901 @@ class PHP_CodeCoverage_Report_HTML_Renderer_Directory extends PHP_CodeCoverage_R * file that was distributed with this source code. */ -// @codeCoverageIgnoreStart -if (!defined('T_TRAIT')) { - define('T_TRAIT', 1001); -} - -if (!defined('T_INSTEADOF')) { - define('T_INSTEADOF', 1002); -} +namespace SebastianBergmann\Diff; -if (!defined('T_CALLABLE')) { - define('T_CALLABLE', 1003); +class InvalidArgumentException extends \InvalidArgumentException implements Exception +{ } + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ -if (!defined('T_FINALLY')) { - define('T_FINALLY', 1004); -} +namespace SebastianBergmann\Diff; -if (!defined('T_YIELD')) { - define('T_YIELD', 1005); +interface Exception +{ } -// @codeCoverageIgnoreEnd - -/** - * Renders a PHP_CodeCoverage_Report_Node_File node. + * - * @since Class available since Release 1.1.0 + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ -class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report_HTML_Renderer -{ - /** - * @var int - */ - private $htmlspecialcharsFlags; +namespace SebastianBergmann\Diff; + +final class ConfigurationException extends InvalidArgumentException +{ /** - * Constructor. - * - * @param string $templatePath - * @param string $generator - * @param string $date - * @param int $lowUpperBound - * @param int $highLowerBound + * @param string $option + * @param string $expected + * @param mixed $value + * @param int $code + * @param null|\Exception $previous */ - public function __construct($templatePath, $generator, $date, $lowUpperBound, $highLowerBound) - { + public function __construct( + string $option, + string $expected, + $value, + int $code = 0, + \Exception $previous = null + ) { parent::__construct( - $templatePath, - $generator, - $date, - $lowUpperBound, - $highLowerBound + \sprintf( + 'Option "%s" must be %s, got "%s".', + $option, + $expected, + \is_object($value) ? \get_class($value) : (null === $value ? '' : \gettype($value) . '#' . $value) + ), + $code, + $previous ); - - $this->htmlspecialcharsFlags = ENT_COMPAT; - - if (PHP_VERSION_ID >= 50400 && defined('ENT_SUBSTITUTE')) { - $this->htmlspecialcharsFlags = $this->htmlspecialcharsFlags | ENT_HTML401 | ENT_SUBSTITUTE; - } } +} + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ - /** - * @param PHP_CodeCoverage_Report_Node_File $node - * @param string $file - */ - public function render(PHP_CodeCoverage_Report_Node_File $node, $file) - { - $template = new Text_Template($this->templatePath . 'file.html', '{{', '}}'); - - $template->setVar( - array( - 'items' => $this->renderItems($node), - 'lines' => $this->renderSource($node) - ) - ); - - $this->setCommonTemplateVariables($template, $node); - - $template->renderTo($file); - } +namespace SebastianBergmann\Diff\Output; +abstract class AbstractChunkOutputBuilder implements DiffOutputBuilderInterface +{ /** - * @param PHP_CodeCoverage_Report_Node_File $node - * @return string + * Takes input of the diff array and returns the common parts. + * Iterates through diff line by line. + * + * @param array $diff + * @param int $lineThreshold + * + * @return array */ - protected function renderItems(PHP_CodeCoverage_Report_Node_File $node) + protected function getCommonChunks(array $diff, int $lineThreshold = 5): array { - $template = new Text_Template($this->templatePath . 'file_item.html', '{{', '}}'); + $diffSize = \count($diff); + $capturing = false; + $chunkStart = 0; + $chunkSize = 0; + $commonChunks = []; - $methodItemTemplate = new Text_Template( - $this->templatePath . 'method_item.html', - '{{', - '}}' - ); + for ($i = 0; $i < $diffSize; ++$i) { + if ($diff[$i][1] === 0 /* OLD */) { + if ($capturing === false) { + $capturing = true; + $chunkStart = $i; + $chunkSize = 0; + } else { + ++$chunkSize; + } + } elseif ($capturing !== false) { + if ($chunkSize >= $lineThreshold) { + $commonChunks[$chunkStart] = $chunkStart + $chunkSize; + } - $items = $this->renderItemTemplate( - $template, - array( - 'name' => 'Total', - 'numClasses' => $node->getNumClassesAndTraits(), - 'numTestedClasses' => $node->getNumTestedClassesAndTraits(), - 'numMethods' => $node->getNumMethods(), - 'numTestedMethods' => $node->getNumTestedMethods(), - 'linesExecutedPercent' => $node->getLineExecutedPercent(false), - 'linesExecutedPercentAsString' => $node->getLineExecutedPercent(), - 'numExecutedLines' => $node->getNumExecutedLines(), - 'numExecutableLines' => $node->getNumExecutableLines(), - 'testedMethodsPercent' => $node->getTestedMethodsPercent(false), - 'testedMethodsPercentAsString' => $node->getTestedMethodsPercent(), - 'testedClassesPercent' => $node->getTestedClassesAndTraitsPercent(false), - 'testedClassesPercentAsString' => $node->getTestedClassesAndTraitsPercent(), - 'crap' => 'CRAP' - ) - ); + $capturing = false; + } + } - $items .= $this->renderFunctionItems( - $node->getFunctions(), - $methodItemTemplate - ); + if ($capturing !== false && $chunkSize >= $lineThreshold) { + $commonChunks[$chunkStart] = $chunkStart + $chunkSize; + } - $items .= $this->renderTraitOrClassItems( - $node->getTraits(), - $template, - $methodItemTemplate - ); + return $commonChunks; + } +} + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ - $items .= $this->renderTraitOrClassItems( - $node->getClasses(), - $template, - $methodItemTemplate - ); +namespace SebastianBergmann\Diff\Output; - return $items; - } +use SebastianBergmann\Diff\Differ; +/** + * Builds a diff string representation in a loose unified diff format + * listing only changes lines. Does not include line numbers. + */ +final class DiffOnlyOutputBuilder implements DiffOutputBuilderInterface +{ /** - * @param array $items - * @param Text_Template $template - * @param Text_Template $methodItemTemplate - * @return string + * @var string */ - protected function renderTraitOrClassItems(array $items, Text_Template $template, Text_Template $methodItemTemplate) + private $header; + + public function __construct(string $header = "--- Original\n+++ New\n") { - if (empty($items)) { - return ''; - } + $this->header = $header; + } - $buffer = ''; + public function getDiff(array $diff): string + { + $buffer = \fopen('php://memory', 'r+b'); - foreach ($items as $name => $item) { - $numMethods = count($item['methods']); - $numTestedMethods = 0; + if ('' !== $this->header) { + \fwrite($buffer, $this->header); - foreach ($item['methods'] as $method) { - if ($method['executedLines'] == $method['executableLines']) { - $numTestedMethods++; - } + if ("\n" !== \substr($this->header, -1, 1)) { + \fwrite($buffer, "\n"); } + } - $buffer .= $this->renderItemTemplate( - $template, - array( - 'name' => $name, - 'numClasses' => 1, - 'numTestedClasses' => $numTestedMethods == $numMethods ? 1 : 0, - 'numMethods' => $numMethods, - 'numTestedMethods' => $numTestedMethods, - 'linesExecutedPercent' => PHP_CodeCoverage_Util::percent( - $item['executedLines'], - $item['executableLines'], - false - ), - 'linesExecutedPercentAsString' => PHP_CodeCoverage_Util::percent( - $item['executedLines'], - $item['executableLines'], - true - ), - 'numExecutedLines' => $item['executedLines'], - 'numExecutableLines' => $item['executableLines'], - 'testedMethodsPercent' => PHP_CodeCoverage_Util::percent( - $numTestedMethods, - $numMethods, - false - ), - 'testedMethodsPercentAsString' => PHP_CodeCoverage_Util::percent( - $numTestedMethods, - $numMethods, - true - ), - 'testedClassesPercent' => PHP_CodeCoverage_Util::percent( - $numTestedMethods == $numMethods ? 1 : 0, - 1, - false - ), - 'testedClassesPercentAsString' => PHP_CodeCoverage_Util::percent( - $numTestedMethods == $numMethods ? 1 : 0, - 1, - true - ), - 'crap' => $item['crap'] - ) - ); + foreach ($diff as $diffEntry) { + if ($diffEntry[1] === Differ::ADDED) { + \fwrite($buffer, '+' . $diffEntry[0]); + } elseif ($diffEntry[1] === Differ::REMOVED) { + \fwrite($buffer, '-' . $diffEntry[0]); + } elseif ($diffEntry[1] === Differ::DIFF_LINE_END_WARNING) { + \fwrite($buffer, ' ' . $diffEntry[0]); - foreach ($item['methods'] as $method) { - $buffer .= $this->renderFunctionOrMethodItem( - $methodItemTemplate, - $method, - ' ' - ); + continue; // Warnings should not be tested for line break, it will always be there + } else { /* Not changed (old) 0 */ + continue; // we didn't write the non changs line, so do not add a line break either + } + + $lc = \substr($diffEntry[0], -1); + + if ($lc !== "\n" && $lc !== "\r") { + \fwrite($buffer, "\n"); // \No newline at end of file } } - return $buffer; + $diff = \stream_get_contents($buffer, -1, 0); + \fclose($buffer); + + return $diff; } +} + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace SebastianBergmann\Diff\Output; + +use SebastianBergmann\Diff\Differ; +/** + * Builds a diff string representation in unified diff format in chunks. + */ +final class UnifiedDiffOutputBuilder extends AbstractChunkOutputBuilder +{ /** - * @param array $functions - * @param Text_Template $template - * @return string + * @var bool */ - protected function renderFunctionItems(array $functions, Text_Template $template) - { - if (empty($functions)) { - return ''; - } + private $collapseRanges = true; - $buffer = ''; + /** + * @var int >= 0 + */ + private $commonLineThreshold = 6; - foreach ($functions as $function) { - $buffer .= $this->renderFunctionOrMethodItem( - $template, - $function - ); - } + /** + * @var int >= 0 + */ + private $contextLines = 3; - return $buffer; - } + /** + * @var string + */ + private $header; /** - * @param Text_Template $template - * @return string + * @var bool */ - protected function renderFunctionOrMethodItem(Text_Template $template, array $item, $indent = '') - { - $numTestedItems = $item['executedLines'] == $item['executableLines'] ? 1 : 0; + private $addLineNumbers; - return $this->renderItemTemplate( - $template, - array( - 'name' => sprintf( - '%s%s', - $indent, - $item['startLine'], - htmlspecialchars($item['signature']), - isset($item['functionName']) ? $item['functionName'] : $item['methodName'] - ), - 'numMethods' => 1, - 'numTestedMethods' => $numTestedItems, - 'linesExecutedPercent' => PHP_CodeCoverage_Util::percent( - $item['executedLines'], - $item['executableLines'], - false - ), - 'linesExecutedPercentAsString' => PHP_CodeCoverage_Util::percent( - $item['executedLines'], - $item['executableLines'], - true - ), - 'numExecutedLines' => $item['executedLines'], - 'numExecutableLines' => $item['executableLines'], - 'testedMethodsPercent' => PHP_CodeCoverage_Util::percent( - $numTestedItems, - 1, - false - ), - 'testedMethodsPercentAsString' => PHP_CodeCoverage_Util::percent( - $numTestedItems, - 1, - true - ), - 'crap' => $item['crap'] - ) - ); + public function __construct(string $header = "--- Original\n+++ New\n", bool $addLineNumbers = false) + { + $this->header = $header; + $this->addLineNumbers = $addLineNumbers; } - /** - * @param PHP_CodeCoverage_Report_Node_File $node - * @return string - */ - protected function renderSource(PHP_CodeCoverage_Report_Node_File $node) + public function getDiff(array $diff): string { - $coverageData = $node->getCoverageData(); - $testData = $node->getTestData(); - $codeLines = $this->loadFile($node->getPath()); - $lines = ''; - $i = 1; + $buffer = \fopen('php://memory', 'r+b'); - foreach ($codeLines as $line) { - $trClass = ''; - $popoverContent = ''; - $popoverTitle = ''; + if ('' !== $this->header) { + \fwrite($buffer, $this->header); - if (array_key_exists($i, $coverageData)) { - $numTests = count($coverageData[$i]); + if ("\n" !== \substr($this->header, -1, 1)) { + \fwrite($buffer, "\n"); + } + } - if ($coverageData[$i] === null) { - $trClass = ' class="warning"'; - } elseif ($numTests == 0) { - $trClass = ' class="danger"'; - } else { - $lineCss = 'covered-by-large-tests'; - $popoverContent = '
      '; + if (0 !== \count($diff)) { + $this->writeDiffHunks($buffer, $diff); + } - if ($numTests > 1) { - $popoverTitle = $numTests . ' tests cover line ' . $i; - } else { - $popoverTitle = '1 test covers line ' . $i; - } + $diff = \stream_get_contents($buffer, -1, 0); - foreach ($coverageData[$i] as $test) { - if ($lineCss == 'covered-by-large-tests' && $testData[$test]['size'] == 'medium') { - $lineCss = 'covered-by-medium-tests'; - } elseif ($testData[$test]['size'] == 'small') { - $lineCss = 'covered-by-small-tests'; - } + \fclose($buffer); - switch ($testData[$test]['status']) { - case 0: - switch ($testData[$test]['size']) { - case 'small': - $testCSS = ' class="covered-by-small-tests"'; - break; + // If the last char is not a linebreak: add it. + // This might happen when both the `from` and `to` do not have a trailing linebreak + $last = \substr($diff, -1); - case 'medium': - $testCSS = ' class="covered-by-medium-tests"'; - break; + return "\n" !== $last && "\r" !== $last + ? $diff . "\n" + : $diff + ; + } - default: - $testCSS = ' class="covered-by-large-tests"'; - break; - } - break; + private function writeDiffHunks($output, array $diff): void + { + // detect "No newline at end of file" and insert into `$diff` if needed - case 1: - case 2: - $testCSS = ' class="warning"'; - break; + $upperLimit = \count($diff); - case 3: - $testCSS = ' class="danger"'; - break; + if (0 === $diff[$upperLimit - 1][1]) { + $lc = \substr($diff[$upperLimit - 1][0], -1); - case 4: - $testCSS = ' class="danger"'; - break; + if ("\n" !== $lc) { + \array_splice($diff, $upperLimit, 0, [["\n\\ No newline at end of file\n", Differ::NO_LINE_END_EOF_WARNING]]); + } + } else { + // search back for the last `+` and `-` line, + // check if has trailing linebreak, else add under it warning under it + $toFind = [1 => true, 2 => true]; - default: - $testCSS = ''; - } + for ($i = $upperLimit - 1; $i >= 0; --$i) { + if (isset($toFind[$diff[$i][1]])) { + unset($toFind[$diff[$i][1]]); + $lc = \substr($diff[$i][0], -1); - $popoverContent .= sprintf( - '%s', - $testCSS, - htmlspecialchars($test) - ); + if ("\n" !== $lc) { + \array_splice($diff, $i + 1, 0, [["\n\\ No newline at end of file\n", Differ::NO_LINE_END_EOF_WARNING]]); } - $popoverContent .= '
    '; - $trClass = ' class="' . $lineCss . ' popin"'; + if (!\count($toFind)) { + break; + } } } - - if (!empty($popoverTitle)) { - $popover = sprintf( - ' data-title="%s" data-content="%s" data-placement="bottom" data-html="true"', - $popoverTitle, - htmlspecialchars($popoverContent) - ); - } else { - $popover = ''; - } - - $lines .= sprintf( - ' %s' . "\n", - $trClass, - $popover, - $i, - $i, - $i, - $line - ); - - $i++; } - return $lines; - } + // write hunks to output buffer - /** - * @param string $file - * @return array - */ - protected function loadFile($file) - { - $buffer = file_get_contents($file); - $tokens = token_get_all($buffer); - $result = array(''); - $i = 0; - $stringFlag = false; - $fileEndsWithNewLine = substr($buffer, -1) == "\n"; + $cutOff = \max($this->commonLineThreshold, $this->contextLines); + $hunkCapture = false; + $sameCount = $toRange = $fromRange = 0; + $toStart = $fromStart = 1; - unset($buffer); + foreach ($diff as $i => $entry) { + if (0 === $entry[1]) { // same + if (false === $hunkCapture) { + ++$fromStart; + ++$toStart; - foreach ($tokens as $j => $token) { - if (is_string($token)) { - if ($token === '"' && $tokens[$j - 1] !== '\\') { - $result[$i] .= sprintf( - '%s', - htmlspecialchars($token) - ); + continue; + } - $stringFlag = !$stringFlag; - } else { - $result[$i] .= sprintf( - '%s', - htmlspecialchars($token) + ++$sameCount; + ++$toRange; + ++$fromRange; + + if ($sameCount === $cutOff) { + $contextStartOffset = ($hunkCapture - $this->contextLines) < 0 + ? $hunkCapture + : $this->contextLines + ; + + // note: $contextEndOffset = $this->contextLines; + // + // because we never go beyond the end of the diff. + // with the cutoff/contextlines here the follow is never true; + // + // if ($i - $cutOff + $this->contextLines + 1 > \count($diff)) { + // $contextEndOffset = count($diff) - 1; + // } + // + // ; that would be true for a trailing incomplete hunk case which is dealt with after this loop + + $this->writeHunk( + $diff, + $hunkCapture - $contextStartOffset, + $i - $cutOff + $this->contextLines + 1, + $fromStart - $contextStartOffset, + $fromRange - $cutOff + $contextStartOffset + $this->contextLines, + $toStart - $contextStartOffset, + $toRange - $cutOff + $contextStartOffset + $this->contextLines, + $output ); + + $fromStart += $fromRange; + $toStart += $toRange; + + $hunkCapture = false; + $sameCount = $toRange = $fromRange = 0; } continue; } - list($token, $value) = $token; + $sameCount = 0; - $value = str_replace( - array("\t", ' '), - array('    ', ' '), - htmlspecialchars($value, $this->htmlspecialcharsFlags) - ); + if ($entry[1] === Differ::NO_LINE_END_EOF_WARNING) { + continue; + } - if ($value === "\n") { - $result[++$i] = ''; - } else { - $lines = explode("\n", $value); + if (false === $hunkCapture) { + $hunkCapture = $i; + } - foreach ($lines as $jj => $line) { - $line = trim($line); + if (Differ::ADDED === $entry[1]) { + ++$toRange; + } - if ($line !== '') { - if ($stringFlag) { - $colour = 'string'; - } else { - switch ($token) { - case T_INLINE_HTML: - $colour = 'html'; - break; + if (Differ::REMOVED === $entry[1]) { + ++$fromRange; + } + } - case T_COMMENT: - case T_DOC_COMMENT: - $colour = 'comment'; - break; + if (false === $hunkCapture) { + return; + } - case T_ABSTRACT: - case T_ARRAY: - case T_AS: - case T_BREAK: - case T_CALLABLE: - case T_CASE: - case T_CATCH: - case T_CLASS: - case T_CLONE: - case T_CONTINUE: - case T_DEFAULT: - case T_ECHO: - case T_ELSE: - case T_ELSEIF: - case T_EMPTY: - case T_ENDDECLARE: - case T_ENDFOR: - case T_ENDFOREACH: - case T_ENDIF: - case T_ENDSWITCH: - case T_ENDWHILE: - case T_EXIT: - case T_EXTENDS: - case T_FINAL: - case T_FINALLY: - case T_FOREACH: - case T_FUNCTION: - case T_GLOBAL: - case T_IF: - case T_IMPLEMENTS: - case T_INCLUDE: - case T_INCLUDE_ONCE: - case T_INSTANCEOF: - case T_INSTEADOF: - case T_INTERFACE: - case T_ISSET: - case T_LOGICAL_AND: - case T_LOGICAL_OR: - case T_LOGICAL_XOR: - case T_NAMESPACE: - case T_NEW: - case T_PRIVATE: - case T_PROTECTED: - case T_PUBLIC: - case T_REQUIRE: - case T_REQUIRE_ONCE: - case T_RETURN: - case T_STATIC: - case T_THROW: - case T_TRAIT: - case T_TRY: - case T_UNSET: - case T_USE: - case T_VAR: - case T_WHILE: - case T_YIELD: - $colour = 'keyword'; - break; + // we end here when cutoff (commonLineThreshold) was not reached, but we where capturing a hunk, + // do not render hunk till end automatically because the number of context lines might be less than the commonLineThreshold - default: - $colour = 'default'; - } - } + $contextStartOffset = $hunkCapture - $this->contextLines < 0 + ? $hunkCapture + : $this->contextLines + ; - $result[$i] .= sprintf( - '%s', - $colour, - $line - ); - } + // prevent trying to write out more common lines than there are in the diff _and_ + // do not write more than configured through the context lines + $contextEndOffset = \min($sameCount, $this->contextLines); + + $fromRange -= $sameCount; + $toRange -= $sameCount; + + $this->writeHunk( + $diff, + $hunkCapture - $contextStartOffset, + $i - $sameCount + $contextEndOffset + 1, + $fromStart - $contextStartOffset, + $fromRange + $contextStartOffset + $contextEndOffset, + $toStart - $contextStartOffset, + $toRange + $contextStartOffset + $contextEndOffset, + $output + ); + } - if (isset($lines[$jj + 1])) { - $result[++$i] = ''; - } - } + private function writeHunk( + array $diff, + int $diffStartIndex, + int $diffEndIndex, + int $fromStart, + int $fromRange, + int $toStart, + int $toRange, + $output + ): void { + if ($this->addLineNumbers) { + \fwrite($output, '@@ -' . $fromStart); + + if (!$this->collapseRanges || 1 !== $fromRange) { + \fwrite($output, ',' . $fromRange); } - } - if ($fileEndsWithNewLine) { - unset($result[count($result)-1]); + \fwrite($output, ' +' . $toStart); + + if (!$this->collapseRanges || 1 !== $toRange) { + \fwrite($output, ',' . $toRange); + } + + \fwrite($output, " @@\n"); + } else { + \fwrite($output, "@@ @@\n"); } - return $result; + for ($i = $diffStartIndex; $i < $diffEndIndex; ++$i) { + if ($diff[$i][1] === Differ::ADDED) { + \fwrite($output, '+' . $diff[$i][0]); + } elseif ($diff[$i][1] === Differ::REMOVED) { + \fwrite($output, '-' . $diff[$i][0]); + } elseif ($diff[$i][1] === Differ::OLD) { + \fwrite($output, ' ' . $diff[$i][0]); + } elseif ($diff[$i][1] === Differ::NO_LINE_END_EOF_WARNING) { + \fwrite($output, "\n"); // $diff[$i][0] + } else { /* Not changed (old) Differ::OLD or Warning Differ::DIFF_LINE_END_WARNING */ + \fwrite($output, ' ' . $diff[$i][0]); + } + } } } -
    -
    - {{percent}}% covered ({{level}}) -
    -
    -/*! - * Bootstrap v3.3.4 (http://getbootstrap.com) - * Copyright 2011-2015 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - *//*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date],input[type=time],input[type=datetime-local],input[type=month]{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px \9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.form-group-sm .form-control{height:30px;line-height:30px}select[multiple].form-group-sm .form-control,textarea.form-group-sm .form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:5px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.form-group-lg .form-control{height:46px;line-height:46px}select[multiple].form-group-lg .form-control,textarea.form-group-lg .form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:10px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:14.33px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.active,.btn-default.focus,.btn-default:active,.btn-default:focus,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.active,.btn-primary.focus,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.active,.btn-success.focus,.btn-success:active,.btn-success:focus,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.active,.btn-info.focus,.btn-info:active,.btn-info:focus,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.active,.btn-warning.focus,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.active,.btn-danger.focus,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px solid}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px)and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:2;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px 15px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding:48px 0}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{min-height:16.43px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-weight:400;line-height:1.4;filter:alpha(opacity=0);opacity:0}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-weight:400;line-height:1.42857143;text-align:left;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000;perspective:1000}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;margin-top:-10px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000 \9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px)and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px)and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px)and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px)and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px)and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px)and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px)and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px)and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px)and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px)and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}.nvd3 .nv-axis{pointer-events:none;opacity:1}.nvd3 .nv-axis path{fill:none;stroke:#000;stroke-opacity:.75;shape-rendering:crispEdges}.nvd3 .nv-axis path.domain{stroke-opacity:.75}.nvd3 .nv-axis.nv-x path.domain{stroke-opacity:0}.nvd3 .nv-axis line{fill:none;stroke:#e5e5e5;shape-rendering:crispEdges}.nvd3 .nv-axis .zero line,.nvd3 .nv-axis line.zero{stroke-opacity:.75}.nvd3 .nv-axis .nv-axisMaxMin text{font-weight:700}.nvd3 .x .nv-axis .nv-axisMaxMin text,.nvd3 .x2 .nv-axis .nv-axisMaxMin text,.nvd3 .x3 .nv-axis .nv-axisMaxMin text{text-anchor:middle}.nvd3 .nv-axis.nv-disabled{opacity:0}.nvd3 .nv-bars rect{fill-opacity:.75;transition:fill-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear}.nvd3 .nv-bars rect.hover{fill-opacity:1}.nvd3 .nv-bars .hover rect{fill:#add8e6}.nvd3 .nv-bars text{fill:rgba(0,0,0,0)}.nvd3 .nv-bars .hover text{fill:rgba(0,0,0,1)}.nvd3 .nv-multibar .nv-groups rect,.nvd3 .nv-multibarHorizontal .nv-groups rect,.nvd3 .nv-discretebar .nv-groups rect{stroke-opacity:0;transition:fill-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear}.nvd3 .nv-multibar .nv-groups rect:hover,.nvd3 .nv-multibarHorizontal .nv-groups rect:hover,.nvd3 .nv-candlestickBar .nv-ticks rect:hover,.nvd3 .nv-discretebar .nv-groups rect:hover{fill-opacity:1}.nvd3 .nv-discretebar .nv-groups text,.nvd3 .nv-multibarHorizontal .nv-groups text{font-weight:700;fill:rgba(0,0,0,1);stroke:rgba(0,0,0,0)}.nvd3 .nv-boxplot circle{fill-opacity:.5}.nvd3 .nv-boxplot circle:hover{fill-opacity:1}.nvd3 .nv-boxplot rect:hover{fill-opacity:1}.nvd3 line.nv-boxplot-median{stroke:#000}.nv-boxplot-tick:hover{stroke-width:2.5px}.nvd3.nv-bullet{font:10px sans-serif}.nvd3.nv-bullet .nv-measure{fill-opacity:.8}.nvd3.nv-bullet .nv-measure:hover{fill-opacity:1}.nvd3.nv-bullet .nv-marker{stroke:#000;stroke-width:2px}.nvd3.nv-bullet .nv-markerTriangle{stroke:#000;fill:#fff;stroke-width:1.5px}.nvd3.nv-bullet .nv-tick line{stroke:#666;stroke-width:.5px}.nvd3.nv-bullet .nv-range.nv-s0{fill:#eee}.nvd3.nv-bullet .nv-range.nv-s1{fill:#ddd}.nvd3.nv-bullet .nv-range.nv-s2{fill:#ccc}.nvd3.nv-bullet .nv-title{font-size:14px;font-weight:700}.nvd3.nv-bullet .nv-subtitle{fill:#999}.nvd3.nv-bullet .nv-range{fill:#bababa;fill-opacity:.4}.nvd3.nv-bullet .nv-range:hover{fill-opacity:.7}.nvd3.nv-candlestickBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.positive rect{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.negative rect{stroke:#d62728;fill:#d62728}.with-transitions .nv-candlestickBar .nv-ticks .nv-tick{transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-moz-transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-webkit-transition:stroke-width 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-candlestickBar .nv-ticks line{stroke:#333}.nvd3 .nv-legend .nv-disabled rect{}.nvd3 .nv-check-box .nv-box{fill-opacity:0;stroke-width:2}.nvd3 .nv-check-box .nv-check{fill-opacity:0;stroke-width:4}.nvd3 .nv-series.nv-disabled .nv-check-box .nv-check{fill-opacity:0;stroke-opacity:0}.nvd3 .nv-controlsWrap .nv-legend .nv-check-box .nv-check{opacity:0}.nvd3.nv-linePlusBar .nv-bar rect{fill-opacity:.75}.nvd3.nv-linePlusBar .nv-bar rect:hover{fill-opacity:1}.nvd3 .nv-groups path.nv-line{fill:none}.nvd3 .nv-groups path.nv-area{stroke:none}.nvd3.nv-line .nvd3.nv-scatter .nv-groups .nv-point{fill-opacity:0;stroke-opacity:0}.nvd3.nv-scatter.nv-single-point .nv-groups .nv-point{fill-opacity:.5!important;stroke-opacity:.5!important}.with-transitions .nvd3 .nv-groups .nv-point{transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-moz-transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-webkit-transition:stroke-width 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-scatter .nv-groups .nv-point.hover,.nvd3 .nv-groups .nv-point.hover{stroke-width:7px;fill-opacity:.95!important;stroke-opacity:.95!important}.nvd3 .nv-point-paths path{stroke:#aaa;stroke-opacity:0;fill:#eee;fill-opacity:0}.nvd3 .nv-indexLine{cursor:ew-resize}svg.nvd3-svg{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none;display:block;width:100%;height:100%}.nvtooltip.with-3d-shadow,.with-3d-shadow .nvtooltip{-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.nvd3 text{font:400 12px Arial}.nvd3 .title{font:700 14px Arial}.nvd3 .nv-background{fill:#fff;fill-opacity:0}.nvd3.nv-noData{font-size:18px;font-weight:700}.nv-brush .extent{fill-opacity:.125;shape-rendering:crispEdges}.nv-brush .resize path{fill:#eee;stroke:#666}.nvd3 .nv-legend .nv-series{cursor:pointer}.nvd3 .nv-legend .nv-disabled circle{fill-opacity:0}.nvd3 .nv-brush .extent{fill-opacity:0!important}.nvd3 .nv-brushBackground rect{stroke:#000;stroke-width:.4;fill:#fff;fill-opacity:.7}.nvd3.nv-ohlcBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.positive{stroke:#2ca02c}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.negative{stroke:#d62728}.nvd3 .background path{fill:none;stroke:#EEE;stroke-opacity:.4;shape-rendering:crispEdges}.nvd3 .foreground path{fill:none;stroke-opacity:.7}.nvd3 .nv-parallelCoordinates-brush .extent{fill:#fff;fill-opacity:.6;stroke:gray;shape-rendering:crispEdges}.nvd3 .nv-parallelCoordinates .hover{fill-opacity:1;stroke-width:3px}.nvd3 .missingValuesline line{fill:none;stroke:#000;stroke-width:1;stroke-opacity:1;stroke-dasharray:5,5}.nvd3.nv-pie path{stroke-opacity:0;transition:fill-opacity 250ms linear,stroke-width 250ms linear,stroke-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear,stroke-width 250ms linear,stroke-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear,stroke-width 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-pie .nv-pie-title{font-size:24px;fill:rgba(19,196,249,.59)}.nvd3.nv-pie .nv-slice text{stroke:#000;stroke-width:0}.nvd3.nv-pie path{stroke:#fff;stroke-width:1px;stroke-opacity:1}.nvd3.nv-pie .hover path{fill-opacity:.7}.nvd3.nv-pie .nv-label{pointer-events:none}.nvd3.nv-pie .nv-label rect{fill-opacity:0;stroke-opacity:0}.nvd3 .nv-groups .nv-point.hover{stroke-width:20px;stroke-opacity:.5}.nvd3 .nv-scatter .nv-point.hover{fill-opacity:1}.nv-noninteractive{pointer-events:none}.nv-distx,.nv-disty{pointer-events:none}.nvd3.nv-sparkline path{fill:none}.nvd3.nv-sparklineplus g.nv-hoverValue{pointer-events:none}.nvd3.nv-sparklineplus .nv-hoverValue line{stroke:#333;stroke-width:1.5px}.nvd3.nv-sparklineplus,.nvd3.nv-sparklineplus g{pointer-events:all}.nvd3 .nv-hoverArea{fill-opacity:0;stroke-opacity:0}.nvd3.nv-sparklineplus .nv-xValue,.nvd3.nv-sparklineplus .nv-yValue{stroke-width:0;font-size:.9em;font-weight:400}.nvd3.nv-sparklineplus .nv-yValue{stroke:#f66}.nvd3.nv-sparklineplus .nv-maxValue{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-sparklineplus .nv-minValue{stroke:#d62728;fill:#d62728}.nvd3.nv-sparklineplus .nv-currentValue{font-weight:700;font-size:1.1em}.nvd3.nv-stackedarea path.nv-area{fill-opacity:.7;stroke-opacity:0;transition:fill-opacity 250ms linear,stroke-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear,stroke-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-stackedarea path.nv-area.hover{fill-opacity:.9}.nvd3.nv-stackedarea .nv-groups .nv-point{stroke-opacity:0;fill-opacity:0}.nvtooltip{position:absolute;background-color:rgba(255,255,255,1);color:rgba(0,0,0,1);padding:1px;border:1px solid rgba(0,0,0,.2);z-index:10000;display:block;font-family:Arial;font-size:13px;text-align:left;pointer-events:none;white-space:nowrap;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.nvtooltip{background:rgba(255,255,255,.8);border:1px solid rgba(0,0,0,.5);border-radius:4px}.nvtooltip.with-transitions,.with-transitions .nvtooltip{transition:opacity 50ms linear;-moz-transition:opacity 50ms linear;-webkit-transition:opacity 50ms linear;transition-delay:200ms;-moz-transition-delay:200ms;-webkit-transition-delay:200ms}.nvtooltip.x-nvtooltip,.nvtooltip.y-nvtooltip{padding:8px}.nvtooltip h3{margin:0;padding:4px 14px;line-height:18px;font-weight:400;background-color:rgba(247,247,247,.75);color:rgba(0,0,0,1);text-align:center;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.nvtooltip p{margin:0;padding:5px 14px;text-align:center}.nvtooltip span{display:inline-block;margin:2px 0}.nvtooltip table{margin:6px;border-spacing:0}.nvtooltip table td{padding:2px 9px 2px 0;vertical-align:middle}.nvtooltip table td.key{font-weight:400}.nvtooltip table td.value{text-align:right;font-weight:700}.nvtooltip table tr.highlight td{padding:1px 9px 1px 0;border-bottom-style:solid;border-bottom-width:1px;border-top-style:solid;border-top-width:1px}.nvtooltip table td.legend-color-guide div{width:8px;height:8px;vertical-align:middle}.nvtooltip table td.legend-color-guide div{width:12px;height:12px;border:1px solid #999}.nvtooltip .footer{padding:3px;text-align:center}.nvtooltip-pending-removal{pointer-events:none;display:none}.nvd3 .nv-interactiveGuideLine{pointer-events:none}.nvd3 line.nv-guideline{stroke:#ccc}body { - padding-top: 10px; -} + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ -.popover { - max-width: none; -} +namespace SebastianBergmann\Diff\Output; -.glyphicon { - margin-right:.25em; +/** + * Defines how an output builder should take a generated + * diff array and return a string representation of that diff. + */ +interface DiffOutputBuilderInterface +{ + public function getDiff(array $diff): string; } + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ -.table-bordered>thead>tr>td { - border-bottom-width: 1px; -} +namespace SebastianBergmann\Diff\Output; -.table tbody>tr>td, .table thead>tr>td { - padding-top: 3px; - padding-bottom: 3px; -} +use SebastianBergmann\Diff\ConfigurationException; +use SebastianBergmann\Diff\Differ; -.table-condensed tbody>tr>td { - padding-top: 0; - padding-bottom: 0; -} +/** + * Strict Unified diff output builder. + * + * Generates (strict) Unified diff's (unidiffs) with hunks. + */ +final class StrictUnifiedDiffOutputBuilder implements DiffOutputBuilderInterface +{ + private static $default = [ + 'collapseRanges' => true, // ranges of length one are rendered with the trailing `,1` + 'commonLineThreshold' => 6, // number of same lines before ending a new hunk and creating a new one (if needed) + 'contextLines' => 3, // like `diff: -u, -U NUM, --unified[=NUM]`, for patch/git apply compatibility best to keep at least @ 3 + 'fromFile' => null, + 'fromFileDate' => null, + 'toFile' => null, + 'toFileDate' => null, + ]; + /** + * @var bool + */ + private $changed; -.table .progress { - margin-bottom: inherit; -} + /** + * @var bool + */ + private $collapseRanges; -.table-borderless th, .table-borderless td { - border: 0 !important; -} + /** + * @var int >= 0 + */ + private $commonLineThreshold; -.table tbody tr.covered-by-large-tests, li.covered-by-large-tests, tr.success, td.success, li.success, span.success { - background-color: #dff0d8; -} + /** + * @var string + */ + private $header; -.table tbody tr.covered-by-medium-tests, li.covered-by-medium-tests { - background-color: #c3e3b5; -} + /** + * @var int >= 0 + */ + private $contextLines; -.table tbody tr.covered-by-small-tests, li.covered-by-small-tests { - background-color: #99cb84; -} + public function __construct(array $options = []) + { + $options = \array_merge(self::$default, $options); -.table tbody tr.danger, .table tbody td.danger, li.danger, span.danger { - background-color: #f2dede; -} + if (!\is_bool($options['collapseRanges'])) { + throw new ConfigurationException('collapseRanges', 'a bool', $options['collapseRanges']); + } -.table tbody td.warning, li.warning, span.warning { - background-color: #fcf8e3; -} + if (!\is_int($options['contextLines']) || $options['contextLines'] < 0) { + throw new ConfigurationException('contextLines', 'an int >= 0', $options['contextLines']); + } -.table tbody td.info { - background-color: #d9edf7; -} + if (!\is_int($options['commonLineThreshold']) || $options['commonLineThreshold'] <= 0) { + throw new ConfigurationException('commonLineThreshold', 'an int > 0', $options['commonLineThreshold']); + } -td.big { - width: 117px; -} + foreach (['fromFile', 'toFile'] as $option) { + if (!\is_string($options[$option])) { + throw new ConfigurationException($option, 'a string', $options[$option]); + } + } -td.small { -} + foreach (['fromFileDate', 'toFileDate'] as $option) { + if (null !== $options[$option] && !\is_string($options[$option])) { + throw new ConfigurationException($option, 'a string or ', $options[$option]); + } + } -td.codeLine { - font-family: monospace; - white-space: pre; -} + $this->header = \sprintf( + "--- %s%s\n+++ %s%s\n", + $options['fromFile'], + null === $options['fromFileDate'] ? '' : "\t" . $options['fromFileDate'], + $options['toFile'], + null === $options['toFileDate'] ? '' : "\t" . $options['toFileDate'] + ); -td span.comment { - color: #888a85; -} + $this->collapseRanges = $options['collapseRanges']; + $this->commonLineThreshold = $options['commonLineThreshold']; + $this->contextLines = $options['contextLines']; + } -td span.default { - color: #2e3436; -} + public function getDiff(array $diff): string + { + if (0 === \count($diff)) { + return ''; + } -td span.html { - color: #888a85; -} + $this->changed = false; -td span.keyword { - color: #2e3436; - font-weight: bold; -} + $buffer = \fopen('php://memory', 'r+b'); + \fwrite($buffer, $this->header); -pre span.string { - color: #2e3436; -} + $this->writeDiffHunks($buffer, $diff); -span.success, span.warning, span.danger { - margin-right: 2px; - padding-left: 10px; - padding-right: 10px; - text-align: center; -} + if (!$this->changed) { + \fclose($buffer); -#classCoverageDistribution, #classComplexity { - height: 200px; - width: 475px; -} + return ''; + } -#toplink { - position: fixed; - left: 5px; - bottom: 5px; - outline: 0; -} + $diff = \stream_get_contents($buffer, -1, 0); -svg text { - font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif; - font-size: 11px; - color: #666; - fill: #666; -} + \fclose($buffer); -.scrollbox { - height:245px; - overflow-x:hidden; - overflow-y:scroll; -} - - - - - Dashboard for {{full_path}} - - - - - - - -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -

    Classes

    -
    -
    -
    -
    -

    Coverage Distribution

    -
    - -
    -
    -
    -

    Complexity

    -
    - -
    -
    -
    -
    -
    -

    Insufficient Coverage

    -
    - - - - - - - - -{{insufficient_coverage_classes}} - -
    ClassCoverage
    -
    -
    -
    -

    Project Risks

    -
    - - - - - - - - -{{project_risks_classes}} - -
    ClassCRAP
    -
    -
    -
    -
    -
    -

    Methods

    -
    -
    -
    -
    -

    Coverage Distribution

    -
    - -
    -
    -
    -

    Complexity

    -
    - -
    -
    -
    -
    -
    -

    Insufficient Coverage

    -
    - - - - - - - - -{{insufficient_coverage_methods}} - -
    MethodCoverage
    -
    -
    -
    -

    Project Risks

    -
    - - - - - - - - -{{project_risks_methods}} - -
    MethodCRAP
    -
    -
    -
    - -
    - - - - - - - - - - - - - Code Coverage for {{full_path}} - - - - - - -
    -
    -
    -
    - -
    -
    -
    -
    -
    - - - - - - - - - - - - - - -{{items}} - -
     
    Code Coverage
     
    Lines
    Functions and Methods
    Classes and Traits
    - -
    - - - - - - - {{icon}}{{name}} - {{lines_bar}} -
    {{lines_executed_percent}}
    -
    {{lines_number}}
    - {{methods_bar}} -
    {{methods_tested_percent}}
    -
    {{methods_number}}
    - {{classes_bar}} -
    {{classes_tested_percent}}
    -
    {{classes_number}}
    - + if (false === $hunkCapture) { + $hunkCapture = $i; + } - - - - - Code Coverage for {{full_path}} - - - - - - -
    -
    -
    -
    - -
    -
    -
    -
    -
    - - - - - - - - - - - - - - -{{items}} - -
     
    Code Coverage
     
    Classes and Traits
    Functions and Methods
    Lines
    - - -{{lines}} - -
    - -
    - - - - - - - - {{name}} - {{classes_bar}} -
    {{classes_tested_percent}}
    -
    {{classes_number}}
    - {{methods_bar}} -
    {{methods_tested_percent}}
    -
    {{methods_number}}
    - {{crap}} - {{lines_bar}} -
    {{lines_executed_percent}}
    -
    {{lines_number}}
    - + private function writeHunk( + array $diff, + int $diffStartIndex, + int $diffEndIndex, + int $fromStart, + int $fromRange, + int $toStart, + int $toRange, + $output + ): void { + \fwrite($output, '@@ -' . $fromStart); -NAMLP',(GLYPHICONS HalflingsRegularxVersion 1.009;PS 001.009;hotconv 1.0.70;makeotf.lib2.5.583298GLYPHICONS Halflings RegularBSGPMMF٣(uʌ<0DB/X N CC^ rmR2skPJ"5+glW*iW/E4#ԣU~fUDĹJ1/!/s7k(hN8od$yq19@-HGS"Fjؠ6C3&W51BaQaRU/{*=@dh$1Tۗnc+cA Zɀ@Qcal2>Km' CHMĬfBX,Ype -U*Ҕz -miO1nE. hx!aC -XTV‹ R%|IHP5"bN=r/_R_ %҄uzҘ52ġP)F7SqF{nia@Ds;}9⬥?ź R{Tk;޵ǜU\NZQ-^s7f 0S3A _n`W7Ppi!g/_pZ-=ץ~WZ#/4 KF` z0| Dѵ&däIÏ;M{'omm I !wi9|H:ۧ{~qO, L]&J09/9&Y 蓰{;'3`e@vHyDZ$3Dx28 W Cx5xwB`$C$'ElyhԀ DJ -$(pQAA܉A@'$ hp0V0 `se$4$"t2=f4A{Tk0|rH`L&sh]A<`R'!1N;_t3# V *veF`E O${)W=p:F`22ړC^.ćG<.pNe2ִ+Ysl:˼ ܫu5tu^86ȄTmyQ%u~%~1rҘawߚ^_ZZa0!N`. uqYB\ᨀ[e:@J'Eہ,3ubj@pfeW9( ޅ=lG7gj SM609OˑlBa݁ <Bՙ(VRApf^+g9qMt]تpEr@]@VkV -ud^X R@?EY2]#Ǽ4JK'dPC|mmn#$+48u'e&[n[L%{BCDL:^!bƙ:&g3-3ub iLZڂWFSId6.k5Pl77UzT:NN.")['|U"AIvwptdk9嫫9nDmq7I|6Kbc]MBABȪ_JT q  6@Fhd`GT:M7'L,IhFP ~j $¡„ 3hA-S^چ-%qe~Qqln"i&Qe?FlK"As(3Y;"Let'RzM1 0{=) K%$C -9M4c EotjVGD)l8,\w !%$3t TBzҴ iUJ[xgdBr$!eq"J> )\~3(^ R€8#>bHG'7_ fӫcκtDoAA߃(qB<``VΫ֘*buP4v@+.Qԥ$V@C0 - RܐP[z:XH#e s>?EWO>@I$|si -ES)0A?9ab,@K̩o&Q% ϞLu+ -+H|Ɛ?NK4CnPt 'OT.j5Ĵ8vw֜I&+`yScaO[#gQd[KI矗`ČLP # )27aTi@c\ސ 0nCpߖ運4͵x*RzYbT[\kUvHʈqp঄IIŗ) bB XPNtz 2 I== ;}bqjiކa#" >11Ap1POOuxQ -Fϲ(h݄O'MDxLK$ȵh& 14SirHJPtDM;rM+ -*ؗ5u2$f3K -%ѳb (@,2f,~"7R;E;HX(42Z'Tۿ2J+^!#oY~4-׃GW*!A0&8f{`W=DP8'= R g}iP>#4EBRY^4eN8V,[BĨD#X],LBsNC> +o^x -jC.4Ya_{eA2=r+9POA!! -}YPJeGn%x1/}RgHa ^3- 5 -|qSaWK{ 1al`I1 Qf_yyCZ)L3X] W6@DMT<.uGK8DsбWr\7Z\V"ISd>CUjeD 3MtWcPӉ6#3QnቩJ\7#磱`؀K lV6 &T ~l. @61`! ` wYk/a0A¹ԁYhdxk:fEao̟^<IwYgq7s[ -y1ع5aMKאRBYFq}8*Nt'.YbZvK -(]&ɜ(ՙ2:0 oΏхPKiBH4UX,[$ -0mXش f50VR 8%ާDtUs`-BPzPsvI8z-t1DiB -"˶YTJ .?07jLN[2tĮ̎ #6?E׻:ɞY;A&qSIR)ss -9*x0Bj)mHAhyЏhMm&4Ŋ4 gV&tYOCS0Yd7MvNj)wA(o "͢[ -E`7ezď-Q]6+Bca@^I:һ=sSnc 6 OB4LGpBq/>O pwj A*@JC[h&3B Qbϩ8 :%f~v/lS00a"B8(f uGoǚgyt_y~͔ -%mL -!I$Xt0~ePz]Ug Н=_?.j#+`li BM5 őGp7a -֒%Y[UG9@\bDY{{ED0 -$Q+FvC`ݨ3Q E\uC9![$l 6DoDgG*+X!%#Cq ?8ZUB)U@opgީZq89|uccAќW;@">Ph_9}.6V/O:3}ZS {:~ykcO6;OB=bV. Rk -o ^GV= }oI"+ -]wFzϷ`<30h3]Rf859s`KM8 -XUq<\ZOssM&j&  .%PBL~^Gˈ3pD:Z<\ǠiW̆"(:zX~0PG]8RQMNTqfW~!0R%Ց0xvGFy/F-wu/*+ \8@6c<L;c[º nr QS'oQuT{qҐ_ͿSdA*ð:m8Yuz2PB Hh`lkpLLh -cEb6eۏҋ ?!>| *=VK@rx0G`%ryr[6Y37 f**n%9df11ޢځ^'] Rq.,^%l e#wWs56!=!q[ %Ԯ]5^:m5)?V b|u7fw,:Ye R% -[ o gFAzFPx{dxíw8ٔ{{L> d2CLL,L,(mS$=|%֝lu& ą83 -N Xx \VnJ[)Iw/鹻 |GźYDH*Sp60cJ2@W%Ѧc_^$#*:G6n>D;~`9hXB UJB_вˈ%w'$v|#T<68KMϑ-5U+'B -ĪNbJOv'|+*Mk(d }C˱@q&aR%} -!VЃs3w2a2awHz/Q0F ]~;ä NDP -mK3xke_ S!V&=v_PL9؃Yi -NU_)J69f*S  17F|BR$y,Ʊ.&=uqsODBR=ɳeؽɇBH -2lu'h7^#S)Xi2..Pe/@FK$](%|2Y1pC8tI11N//+\pjdWmI=߽YZxMЉP81/ JG^U ,Pd1O^ypql2h$jvI%]V -.'[+WU8[D,߻-=[ O + if (!$this->collapseRanges || 1 !== $fromRange) { + \fwrite($output, ',' . $fromRange); + } -wE)3J&dقݶR¡S\. 5J$I&oHȳ~ lz> -Ux/Hu;?Gt{?;TH L|F8}{p:2t͆aѧp65Y"LD.rVS_ k]n&Hz~9æ -p $4ق'{&M\ΰч!qi (.h' B T|{I6cL.빍iI꫿\!;g`1 j%C o3*60E؎]t.-%0 YK_nft] *VFCtJT+\WZ8gF^ -ޞf 5I=#6.@2z;W`B/ęQghjyJNAX3, K66ڲM0T@O{4kj|"ftџۄU<-a5b)^R8:ilKa6@!]buvΏ$ oUœ~:.Lte JξP -l$S[z~Rq39钺9Q/m"%ʤ7 5MKL鑧"IߏG XTގXLFݧV jp^/Mgۻ{w -*9Oʈ<"aAq.M2@mp^'wߕmkxO8 $[&|YZy`2_|%r/J?QṈl3ÞKE$wvCh a@U1M%0?1* $GZ{!|ʿ$ە-٪Ev;͓:`Bl˸쌧ɬoQ0&,F?^s,ch˕$Ecl0w`⏺ň@/r^l8cT3k@JݔuP&ʪNdJjTKi *uX{tj~ɡ}i\BKenȵ|N u#]@lCZ$iPa㸩t04y20 s֪,Au!QBϖ^@Vsɑ\Za7쾉ш6-TrU u~1HJ(<αbRԖqi J?eG *jVħ ":Y);-Fd!HG~ux cb6m)&;0dU?8X~12ۼtIx5{(z -'[ŃkZЅi,b1̇`(mHNeK/ -[(#QGduT^m%!(7KgP=hϕkɐU+.[eC"GDΨ<*Ř 9&܂?)\<&Ŏ5 LJu@Y,냲ھ_w0^17p޻*>D8_)$UźR!jOF>{ t,-bP,m`D"/zA ͔إQZG&U]xejxLwv~=)@B6?!;53/ps@tOZS7ؙnlxZ?Zj a{6L41 2Qi&֥l]o=7ļ ofЖr MEV@H/aD٦HlK5)ŒZ OE3IG'г;D'zl(E$.ٜ-W R'\w+)w3꺾 @%R).~9;].šg+)%ȝk҉^NW>b1z:soD -K2w[|>9vWMFu`axchիU`*ʆe]OV'6xd?H]_rA+zdFH ʋ<ǴkUsFzaH9-gvb=L/E).x9j%B)$AB t b.bAEZRbH(Jya9Wj0fF'Xz $DQ6q` o i={#4FYH@J3 3i~tYТhkHP17YD"pĦ;'16fpu>FoDQin̒- @P# hj ނŀfC 7°T5HVXpklĭ]yXr)?ͺBNJ B#9e&&_0=pZ6h) ̗a b=(p);.N,W^ *hԺCm}E7i6aIvͲxp*Ac#4N&`)ĉHWey7jloEh_n3 jp?4p2WE'kT_ &!ȖjVlHӻ_kɚʳaY s@[G"bYLܫXi Cq8&zVaY{#I@2m!d[1 AƢnKeם/>dmuX:xʷ\pNl+H+ctSǶC[~3e}6 \,Ʉ|Yݧv]'|&M2 ddsx-((76aXm=ӊQ<$Q†\ - qiH阇i'i$"{S*VwF/tfQCWUZ{S;Nx}H&* 9׸qU1 a`(M-aG}n̽0 pmcn ɘ_\l} 9FvHþkJZNO mZQҤ aSf -)QC+2 -d[ H"t* c*bڢq,#S#u'Ҭ:4asCDMF|ɸm_1L]Y\*X>tgDd@&[)8;<{8<+VG\H^aae-4sJA \ hM[\`#pD5Z97g;BWmqTXX%0v&]E 4]FIJ&S_4R0D+meY gO+M{03v'ͅft:;ر Nn\ǔ^,)1laBZZ[  ZSUYh߆wS\/*?zQЋ`X4gr[CWG.Y0Q|RԃE[wy),ш$NK@c/b --#ZI G$ƗtmH#)XwPZAD|S ofTH)>M1b 7ɆSuq -jK4[s xL Ǣ]5 !M!AdƧN><:ǻZ(8)e /W| bDDŃtT7rur0Ң`ܴh5 5S}4hrvalc!ZjB]xDbTxzYS6_)op>#@PS*bS\q ƋxYfQ><" Y6IEr_7Ұ VH!IrEL6!Nq"'daqMvA% v n.;A/2ʲa8D$GWv#̏ 9k'o؟o@ (]gk+}/ (nqK(f Ɵиp23YwpDdGq2$}KӯA"E&Ntg'Nes!Ю4qo}쿝S,ojr/s TMT&Qf\12h'&ctN'Tx7]2 ;G ʅ|T++:%/ 1T  ˀ<4͔˗ ,0~!WO' :suҦن(^ﮎ )7fmlҹ1ūtZh L0 6X"J҂ -49 ֩B}ԭ``Ӓ #Jn_F H|$OK=œi17o-Hqp[ɫ%%:Ɉi3۠G CLL4S:dBj|pYSDP>pv5KLe{t0yEND$*;z5NBIgn.N|׶nRaSZJcH mXek;_ 6,yb0#ZA e|wG U1lLD7ÄVqt[xuEQULPBlZSh.1Q0Uٱ8Rip;{H#GON!?t>Q |pkq!gT,j2sǍ4툊tjnƛ/IOE!ˋnF4M&1x$ew+vS - bm]e%8 P -!s_06)Q2JB [t9'Ԝ,[fÆג]BB@r&Bs|Q gOC1J D&LJiC`A^#X8tH?daĖTSTaH0@U)^e}Jb7%ܔ%:ƿ@M+ysqL Y00ÔGD >ĩAW 2I:F 32ʠq:6S]K"g[ ϑHB5VEqLJX{CB!PIq9Llxʪ7>֤]@!@9H!pə$ ?)܎l/"́+@`}}:\ 8zQgS+򒤿C}R:HUF\Xg/AZ%c1wlETwX ZNhyf2D ø&vLq47z\iJyJ-kN3 -sJ5)V0N0d\ӛd0d-E[mf\UmxCR<(`ѕp4^!hQ `!l ~ƙ:JɠlW9˸ZXB=l)`jeVJUG!s1?Ƽ3Ê.}bIa6ʕ t?SxZJ'p -i,.R2T`5-R -BxrWH JPe#Bb|-[PEh‹(5Sfr/]IƊ dE#OS39ӻ]eۮɹ.9_beM9b#e(- 0Ra9"U,%~X܀z۽{'6[@t[W%* .d'vR {h!AedCE}x=E[|B$7J* B- ,=k7[_-I J5e̶{ ( ;WMw`~pAz 8f))(@ Īم<.a%N n@bz>%T*?lgbd<ĵw9Na8;<^*%y:tDҕZ<@0q4l\ 1`/$IJ ғsN);:A;)$ו -Wwy%KrIv\bV\nd{6tv/~*O -7U>8rAC<jE-j牷xs)D1Ì/qp**̸$ّ,  Bȼpk MhpK7U]h&-$鎻Y;q6wzW˄֭AhD^R"s5fw +Q&/9ȂwNbz{Y> -]NEc,ߞ# BF:0/-EȾŒ׃F\I{tAZCORuk i)ytkdN&vA P{P'>xƆ`.%,;:Կ:aFoTQ}v#ףQk's~z5hMQʒY>CʍiUNF#J0uC8k! -fv {E/IKIE> pyde -ʾ=z:@7J|5g8x 3O -3H1؄F.yfzWIM j[.w%i?҆Uf|}@+[8k7CxSEOޯp$Q+:<]K3T-y[Nz;y-HZY^.M*'h8A.N2rLB 7:Or}CS˚S9Jq#WI}*8D!# g#Y>8` -В ?a2H,^'?^nhOƒi<Ya2+6aFaMG-Gkè1TbL -`*ـVX -*xe§֊Z*c`VSbJU*6TK@zqPhg*ߔU(QU49L -cM*TR!R,BȅE*C|TzpF@4*텰جXbL.T2y`Upb -T,%@` #?@tGLŞS)ÿztϲFy׎ 14Lhfe(.)pK@\ Xe@TbvhD&0-IbD d@ZD1@ DyѧCN| 94Ӛ#Nc l;, `cX@(2$0 "@- $B@<$А8p7C b(@ -PA@F 0tGORIJITySMW52\ToRKV0Ȏ( --$ !6wHGO r~e~/]V~/P~7SzKFv`;`9v# -JBN,ӭ'`'`\LTApBs)r! -( -i` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pFFTMm*GDEFD OS/2gk8`cmapڭrcvt ( gaspglyf}]oheadM/6hhea -D$hmtx `tlocao0maxpj name,post5 -webfTPT=vuvs Z 2UKWN@ { , -h, -h@( + - / _ "#%&&' ' )9IY`iy )9FIYiy !'9IY` * / _ "#%&&' ' 0@P`bp 0@HP`p !#0@P`fbߵiY!     - |vpjdc]WQKED 5 *+ - / / _ _  ""##%%&&&&' ' '' !& )009:@IDPYN``XbiYpyaku } )09@FHIPY`ipy !!#'09@IPY `` -((h ./<2<2/<2<23!%3#(@ (ddLL[27>32+&/#"&/.=/&6?#"&'&546?>;'.?654676X& -j - -j -)"& -j - -j -)L -j -)"& -j - -j -)"& -j -LL#32!2#!+"&5!"&=463!46^^L^^p@LE32!2+!2++"&=!"&?>;5!"&?>;&'&6;22?69 - -x -} -x -}  -x -} -x -v -L -  d    d  l -d;2#4.#"!!!!32>53#"'.'#7367#73>76p<#4@9+820{dd 09B49@4#bkv$B dpd>uhi-K0! .O2d22dJtB+"0J+ku0wd/5dW%{L>G!2+!2++"&=!"&?>;5!"&?>;4632654&#^CjB0  0BjC -x - - - -x -u -x -u@--@$?2O*$ $*P2@%d   -  d   -BVT@L!2#!"&=46 %A+32!546;5467.=#"&=!54&'.467>=2cQQc22cQQc2A7 7AA7 7Ad[##[[##[dd76!' -Pԇ - $ -op zy#%**%$ pdL #7!2"'&6&546 6'&4#!"&7622?62~ - + \fwrite($output, ' +' . $toStart); - + if (!$this->collapseRanges || 1 !== $toRange) { + \fwrite($output, ',' . $toRange); + } -\l - -lL -7 - -& - - - + \fwrite($output, " @@\n"); -l 2'7' & c_"fn &\`tfjpO32!546;! 22&&L%6.676.67646p'0SFO$WOHBXAO$WOHB"7Q)mr *`)nq&* )2"'#'".4>"2>4&ȶNN;)wdNNrVVVVNdy%:MNȶ[VVVdXD>.54>0{xuX6Cy>>xC8ZvxyDH-Sv@9yUUy9@vS-H^{62!2'%&7%&63 a o  ^{"62!2'%&7%&63#7'7#'JJN a o  d⋌&2##!"&=467%>="&=46X|>& f  - - f &>|.hK - -] - -] - -Kh.| L#'+/37GKOSW!2#!"&54635)"3!2654&33535!3535!35!"3!2654&35!3535!35~ - - -Ud - -& -sdd dd d - -& -d dd dL - - - -ddd - - -^ -ddddddddddd - - -^ -dddddddddLL/?!2#!"&546)2#!"&546!2#!"&546)2#!"&5462pmppmpLpppp LL/?O_o32+"&=46!32+"&=46!32+"&=4632+"&=46!32+"&=46!32+"&=4632+"&=46!32+"&=46!32+"&=462LppL/?O_32+"&=46)2#!"&=4632+"&=46)2#!"&=4632+"&=46)2#!"&=462DDDLpp&,  62"'&4?622;;nnBB# "' "/&47 &4?62 62    ;    %I2"'#".4>"2>4&3232++"&=#"&=46;546ijMN,mwbMMoXXXX -K - -K - -K - -KMbyl+MMijMXXX# -K - -K - -K - -K -%52"'#".4>"2>4&!2#!"&=46ijMN,mwbMMoXXXXX^ - - -Mbyl+MMijMXXX - - - --32+"&5465".5472>54&&dd[֛[ҧg|rr|p>ٸu֛[[u'>7xtrrtxd/?32+"&54632+"&54632+"&54632+"&=46 - - -ޖ - - -ޖ - - -ޖ - - - - - -~ -p - - - - -> - - - - - - -GO27'#"/&/&'7'&/&54?6?'6776?6"264X!)&1-=+PP08,2&+!)&1-<,P  P/:-1&+x~~~P09,1&+"(&1,=,QQ09-0&* !(&0-=,P~~~d!%)-1!2!2!5463!546!5#!"&53333333,); - -;),,;)D);dddddddd;)d -KK -d);ddd);;) dDDDD 62++"&5!+"&5#"&l` - - - - - -j` - - -w - -? -d3!#!"&5463#"&=X;),Rp);vLp02".4>"2>4&3232+"&546֛[[֛[[rrrr|2 - - - -[֛[[֛;rrr  - -2 - -^ - )#!3333))p,p,d/3232"'&6;4632#!"&546;2!546& & T2 - - - -2 ->p - - -^ - - -12".4>"2>4&3232"'&6;46֛[[֛[[rrrr| - - & -[֛[[֛;rrr  - -12".4>"2>4&%++"&5#"&762֛[[֛[[rrrr - - - - &[֛[[֛;rrr - -9!2#!"&'&547>!";2;26?>;26'. -   -W - -& - -& - - W -tW   - >  - - - -  '2".4>"2>4&&546֛[[֛[[rrrr[֛[[֛;rrr] $  (76#!"&?&#"2>53".4>32  - mtrrr[֛[[u$ - Lrrrtu֛[[֛[576#!"&?&#"#4>323#"'&5463!232>  ntr[u[u  h -ntr$  Krtu֛[u֛[v -h  Lr -d/?O_o!2#!"&546!"3!2654&32+"&=463!2#!"&=4632+"&=463!2#!"&=4632+"&=463!2#!"&=4632+"&=463!2#!"&=46} - - - - -R -2 - -2 - - -> -2 - -2 - - -> -2 - -2 - - -> -2 - -2 - - -> - - - -~ - - - -R -d -2 - -2 - -2 - -2 - -2 - -2 - -2 - -2 - -2 - -2 - -2 - -2 - -2 - -2 - -2 - -2 -L#54&#!"#"3!2654&#!546;2uSRvd);;));;) SuvR;));;)X);dLL 732#462#".'.#"#"'&5>763276}2 -d!C@1?*'),GUKx;(.9)-EgPL -3 -0[;P$ 97W W!1A2+"&54. +"&54>32+"&546!32+"&546ޣc -2 - -2 -c*  `  ct - -,rr - -,tޣ 4  4  G9%6'%&+"&546;2762"/"/&4?'&4?62A  - -Xx"xx"xx"ww". - - -^ -x"xx"ww"xx"r/%6'%&+"&546;2%3"/.7654'&6?6A  - - -`Z  HN. - - -^ -d  g~jb1K3#"/.7654&'&6?6%6'%&+"&546;2%3"/.7654'&6?6 D@ - *o;7 *  - - -`Z  HN iT "ZG ! - - -^ -d  g~j  !%-;?CGKO3#!#!#3!##5!!!!#53#533!3533##5#535#5!!#53#53#53!5!ddpddX,,ddddD dddd,D,ddddd dd,dddX d,,d,,ddd dddddd,dddddd  #7#3#3#3#3#3!5!#53#53#53ddddddd,,dddd,Pdd[[[[[ -  "'463&"260V -C;S;;S;V0 -;;T;; - ! "'463!"/ &"260V -08D;S;;S;V0 -V08;;T;;d&!2&54&#!"3!2#!"&54?6,9K@ - -D@ - - - -K|@ - -@ - -J - -L -!2 46 >>CEU!"3!26?6'.#"#!"&/.+";26=463!2;2654&!"3!26/.6D N9 - ->SV -N - -N - - - - - - - - -& -X - & -l l- -p  -v - - - - - - - - - - -dL!)13232#!"&546;>35"264$2"&48]4$);;));;) '3]dϾV<?!(% -_5,Ry:" *28 T2*BBW-ޑY". BB % Zd'2;#!5>54.'52%32654.+32654&+50;*7Xml0 ); !9uc>--Ni*S>vPR}^3:R.CuN7Y3(;  G)IsC3[:+ 1aJ);4ePZo!56764.'&'5mSB ,J   95(1(aaR@ 9%/#4.+!52>5#"#!#3'3#72 &2p"& 2KK}}KK} dd R ,১ !%/#4.+!52>5#"#!5!'7!5L2 &2p"& 2C১  vdd  ,}KK}}KKL/?!2#!"&=46!2#!"&=46!2#!"&=46!2#!"&=462X LLddddddddL/?!2#!"&=46!2#!"&=46!2#!"&=46!2#!"&=46DLDLLddddddddL/?5463!2#!"&5463!2#!"&5463!2#!"&5463!2#!"&Xp LddddddddL/?!2#!"&=46!2#!"&=46!2#!"&=46!2#!"&=462LLLLLddddddddL/?O_o32+"&=46)2#!"&=4632+"&=46)2#!"&=4632+"&=46)2#!"&=4632+"&=46)2#!"&=462ddA ddA ddA ddA LddddddddddddddddL#*:J!#;2+"&=46!2#!"&=465#535!2#!"&=46!2#!"&=46dddd ,XLdddd}KdKddddL#*:J32+"&=46#3!2#!"&=463#'7!2#!"&=46!2#!"&=462ddgdd /ȧ,XLddLdddK}}dddd!2#!"&546 K,,,,,,v,,,D,,L!2#!"&5467'2"&4,XJ*J%pNNpNL d>tNoOOo62.'&54>"264usFE66 !^Xm)!fhHuXyHÂ2".4>"֛[[֛[[Ktrr[֛[[֛oVrru5.54>6?6&'.'&76#&*IOWN>%3Vp}?T|J$?LWPI)(!1 )  HuwsuEG^F&:cYEvsxv!K:%A'# " -A)Y l */7>%!2!"3!26=7#!"&546 7l -l27);;));Ȼp87cs* -s ;) );;)2cL6!#"3!2657#!"&546&'5&>75>^i4);;));ȹpS 9dTX -.9I@F* L6;) );;)g  0!;bA4 -L5!2!"3!26=7#!"&546 62"/&4?622^^ - - -Ȫ - - - -ȯ - -ȭ - - - -ȭ -  - -L326'+"&546d0dLJJL#3266''+"&5462d00dLJJJJ3''&47660J*J36 &546.2   d32+"&546!32+"&546  dL#!"&5463!2L  346&5&5460d * ;O#72#"&5&5&5464646dd12N: 9  > =,L32+"&5&54646Rdd0L;;dH  #!"&762!2#!"&=46  *9HdduJ  u`((&;(J ' 7(a#aa32".4>#"#";;26=326=4&+54&֛[[֛[[}dd[֛[[֛dd2".4>!"3!26=4&֛[[֛[[E [֛[[֛~dd32".4>"'&"2?2?64/764/֛[[֛[[ xx  xx  xx  xx [֛[[֛ xx  xx  xx  xx  $2".4>'&"2764/&"֛[[֛[[Tw[֛[[֛1Uw;K2".4>";7>32";2>54.#";26=4&֛[[֛[[?2".4>#";26=4&#";#"3!26=4&+4&֛[[֛[[ - - - - - -KK - -^ - -K[֛[[֛V - - - - -2 - -2 - -2 - -/_3232++"&=.'#"&=46;>7546+"&=32+546;2>7#"&=46;. -g - -g - -g - -g - -Df - -fD - -Df - -f -g - -g - -g - -g -ͨ - -fD - -Df - -fD - -Df?2".4>"2>4&"/"/&4?'&4?62762֛[[֛[[rrrr@||@||@||@||[֛[[֛;rrrZ@||@||@||@||02".4>"2>4&"/&4?62762֛[[֛[[rrrrjjO[֛[[֛;rrr}jjO!2".4>"&32>54֛[[֛[[KtrAKihstr[֛[[֛;rtxiKA>rtsS6!2#!'&4' -&F - -  &S &5!"&=463!46 -&U & U -## -] #!+"&5!"&762 - -  && -]32!2"'&63!46&# - U & U -# -&] &5>746 -^$,[~UU & U -#$DuMiqF -+!2/"/&4?'&6!"&546762R,^j^!^j^^j^P,^j^IIgg+#!"&546762!2/"/&4?'&6j^^ ,^j^`j^,^^j^/2".4>#";2676&#";26=4&֛[[֛[[:#6#:1 - - -[֛[[֛.  - - - -IUaho276?67632;2+"!#!54&+"&=46;2654?67>;26/.'&;26!"&5)#!  &0  -= - -2 -pp -2 - -=   - + for ($i = $diffStartIndex; $i < $diffEndIndex; ++$i) { + if ($diff[$i][1] === Differ::ADDED) { + $this->changed = true; + \fwrite($output, '+' . $diff[$i][0]); + } elseif ($diff[$i][1] === Differ::REMOVED) { + $this->changed = true; + \fwrite($output, '-' . $diff[$i][0]); + } elseif ($diff[$i][1] === Differ::OLD) { + \fwrite($output, ' ' . $diff[$i][0]); + } elseif ($diff[$i][1] === Differ::NO_LINE_END_EOF_WARNING) { + $this->changed = true; + \fwrite($output, $diff[$i][0]); + } + //} elseif ($diff[$i][1] === Differ::DIFF_LINE_END_WARNING) { // custom comment inserted by PHPUnit/diff package + // skip + //} else { + // unknown/invalid + //} + } + } +} + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ -353 +namespace SebastianBergmann\Diff; -  -X - - v  v -!{,  -2 - -,ԯ - -2 -0y - - - - - -r -w - +I6.'&&&547>7>'.>7>&67>7>7>-BlabD8=3*U  :1'Ra\{%&=>8\tYR-!q[Fak[)ȕX1 "@&J<7_?3J5%#/D &/q!!6ROg58<'([@1%@_U2]rO.>7'&767>.'&'.'&>77>.'&>' -'8GB  - - `H  >JS>H7 '+" NA -5M[`/Pg!;('2"&"IbYCe\D9$ 886#1%)*J7gG:    8G\au9hoK$]54<&"&5476&2>76&'&6?6&'&'.{nO9:On{{nO:9On{FZ  2Z__Z2  Z# %8-#,- "F-I\b\I*I\b\I--I\b\I*I\b\I9>||;7Es1$F^D10E^E$1u$/D0 "%,I';L!#7.54>327377>76&'&%7.5476&6?'&'.P[vY,9On{R=A &/l'PjR.Mv&  6QFZ  *HLh5)k|# %8- ,- "xatzbI\b\I-yRU4Zrnc1?1FrEs11) ]@ @] )1ES>L'+/37;?CGKOSW[_c3232!546;546;2!546#!"&5353353353353353533533533533535335335335335Rd22ddddddddddd|ddddddddd|ddddddddd2222pddddddddddddddddddddddddddddddw%7&=#!"&=46;3546'#"&=463!&=#'73546oXz#z*dXzdM*zL!2#!#"&546d);;)d);;L;));,;)X);dL ?32!546!32!546".5!2>&54=(LffL(, '6B6'p)IjV\>((>\VjI), +'%! !%'*L 'L'a'M 7 Maa'aQd_)!232"/&6;!%+!!"&5#"&?62**p&032!2#!!2+"&=!"&=#"&/#"&468^&d,!02**6%%+*2222 -*L !53463!2!!P;),);DPdd);;)L 3463!2!!;),*:,P, pX);;)dDEk+32"/&6;#"&?62{**YDk&=!/&4?6!546X`)  )   !.#!"!"3!26=4&53353$`$-);;));;ddd-(d;)d);;)d);dddddL #12"&54%##"+"&'=454>;%".=4>7i**d]&/T7 " LRQ  )2( Jf,53232#"./.46;7>7'&6327"&)^Sz?vdjO9t\U>/ v?zS$2451 7F8%M)(  -()GM~ 1==7'''7'7'7'77 N괴N--N괴N-N--N괴N--N괴d!-=32!2+"&/#"&54?>335!7532+"&5462(<H(<,F=-7` 1dd>2vddQ,}Q,d-!2$'$(ddw} L 0<32#!+"&/&546;632+"&546!#35'!5X,<(<(21 `7-=|dd_dd22L!-d,Qv,Q($'$dd dԯ}wdO7G%6!2+#!"&5467!>;26&#!*.'&?'32+"&546dkn  T.TlnTj:d%8 -  VOddip &yLN(  % -H YS(22S dO6F#!"&'#"&463!'&6?6*#!32!7%32+"&546n jUmlT.U  nJ   -%&jPddO (SNLy& pd(Y aL7G2#!"&/&?>454&/!7%.!2#!"&=46ސNS( % - p &y22SY( nTjkn  T.T8 -  Vd% dd-I!26=4&#!""&5&/&7>3!2766=467%'^ NLy& p  (S22(SYLddjTnlT.T  nk V   -8%d%2".4>%&!"3!7%64֛[[֛[[ - -[֛[[֛9 - - - - &%2".4> 6=!26=4&#!54&֛[[֛[[% - -[֛[[֛ & - - - -%2".4>&";;265326֛[[֛[[K & - - - -[֛[[֛@ - -%2".4>#"#"276&+4&֛[[֛[[ - - & -[֛[[֛ - -2".4>%&277>7.'.'"'&65.'6.'&767>'&>7>7&72267.'4>&'?6.'.'>72>՛\\՛\\d+: -=?1 " "/ ?9 #hu!$ 0 E.(,3)  (     -*!A 7 ,8 !?* - -\՛\\՛  ' "r"v G - .&* - r$>   #1  -   %  * - '"  $  g2( % - 67'"/&47&6PM<;+oX"O\e~Y+" n+We`#'7;!2#!"&=46#3!2#!"&=46!!!2#!"&=46!!d);;));;);;));; );;));;,;)d);;)d);dd;)d);;)d);dd;)d);;)d);dddL !2#!"&46!|;**Dd%32!2!5#!463!54635#!"&=);,); ;),;);));;)d;)pdd);d);dddD);;)+AW!2"/&546)2/"/&4?'&6#!"&54676276#!"&?'&4?622,^j^5,^j^/j^^^^j^j^,^j^&j^,^^^j#;CK2".4>"2>4&$2"&4$2#"'"&546?&542"&4$2"&4ݟ__ݠ^^oooo-- - L- 73H3)z - - - - _ݠ^^ݟWooo -!!- -! -$33$ 1~ - - - -Z[%676&'&#"3276'.#"&477>32#"&'&6767632'."[v_"A0?! -  Y7J3$$ )G"#A.,= # (wnkV8@Fv"0DG([kPHNg8B*[eb2!5(7>B3$$' )M"#!7)/c# *xnfL@9NDH7!$W]B$&dXDD>.54>"".#"2>767>54&0{xuX6Cy>>xC8Zvxy#!?2-*!')-?"CoA23:+1! "3)@ +)?jDH-Sv@9yUUy9@vS-H-&65&&56&oM8J41<*.0(@  )*D*2Om9w.2&/7'/&477"/&4?BB8"._{iBBi - BBBBBB7._BB^*k"5._{jBBFi BBBBBB77/_2#!"&54>!"264d:;));XV==V=.2G);;)3-D=V==V "/''!'&462*$3, #**#4$*' 2@K#.'#5&'.'3'.54>75>4.&ER<, 3'@" MOW(kVMbO/9X6FpH*M6&+  4C4%dfJ2#4.#"3#>36327#".'>7>'#53&'.>761T^'<;%T)-6"b "S5268 jt&'V7  0 $ݦ --$aPN(?",9J0* d2>2 -""   -7Gd/9+DAL!X32"/&6;3+##"&?62*Ȗ*,|%#5##!32"/&6;3353!57#5!ddd,*dc,dd|ddd!%32"/&6;33!57#5!#5##!35*X,ddd,d,ddPdddL32"/&6;3##53#5#!35*Xdddd,d, dPddL32"/&6;3#5#!35##53*d,ddd, ddd32"/&6;3#53!5!!5!!5!*d,dpd , 32"/&6;3!5!!5!!5!#53* dpd,d, LL!2#!"&546!"3!2654&^pg );;));;Lp;) );;));LL+!2#!"&546!"3!2654&&546^pd );;));;oLp;) );;)); $  LL+!2#!"&546!"3!2654&!2"/&6^pg );;));; $ Lp;) );;));LL+!2#!"&546!"3!2654&#!"&?62^pg );;));; p $Lp;) );;));L5!2#!"&=463!2654&#!"&=46&=#"&=46;546&p);;)>DLpd;));d& - -#%2"+'&7>?!"'&766763 ,  P'' -K   - S#  nnV/L5!2#!"3!2#!"&546&=#"&=46;546^>);;)pDLd;) );d& - -1!2/"/&47'&6#"3!26=7#!"&5463!m)8m);;));Ȼp,pm)8m;) );;)֥#2".4>"2>4&2"&4ٝ]]ٝ]]qqqq{rrr]ٝ]]ٝGqqqsrrrL#3232"'&6;46!2!54635 -' gdV^|d22L# ++"&=#"&7>!2!54635Gz -" 'gdM !d22LK" 62"'&4?62!2!54635qgdq#d22L #'762'&476#"&?'7!2!54635*MMК=gdML*Л:d22L#'/'7'&6"/&4?!2!54635^WЛԛL*MgdКԚPM*MXd22% ! q3gqdL+!#"&546;!3#53LDdddp,E/'&"!#"&546;!3#53"/&4?6262L_  Ȗdddj\jO)_ p,j[jO) >'.!#"&546;!3#53"/"/&4?'&4?62762Lg%dddFF))FF))gp,F))FF))F/!"!#"&546;!3#533232"/&6;546L dddd*p,/'&"!#"&546;!3#53++"&=#"&?62L*ndddd*pp,L !2!546#!"&5!52LPdL&}-1;&=!5!546#"&=46;#5376!!/&4#5;2+p/22ddpddd33*ȖdȖ*yddQ%6+"&5.546%2+"&5.54>323<>3234>^%"% -" - d d 1t5gD >?1) A..@  ^  ^ dL3"!5265!3!52>54&/5!"!4"2pK Kp"2KKL8 -88 %v% 88 -x88 %v% 8LL  $(4!2#5'!7!!2#!"&546!55%!5#!!'!73wipdw%,);;));;),p,ddibbd;) );;));dfdd&767>".'.7.wfw3 .1LOefx;JwF2 1vev/ 5Cc;J|sU@L#A2/.=& &=>2#!"&=46754>ud?,  1;ftpR&mm&L!((" +/** + * Unified diff parser. + */ +final class Parser +{ + /** + * @param string $string + * + * @return Diff[] + */ + public function parse(string $string): array + { + $lines = \preg_split('(\r\n|\r|\n)', $string); -"""" '$+  + if (!empty($lines) && $lines[\count($lines) - 1] === '') { + \array_pop($lines); + } -222/2 ! '!'3353353!2+!7#"&46!2!546L J LP*dd*22dL #"!4&#"!4&!46;2d);,;gd);,;;)d);L;));;)D););;)L%)!2#!"&546!#3!535#!#33||D| ,dddL| |||Dddd,ddd,L%)!2#!"&546!#5##3353#33||D| dddddddddL| |||Dddd,L#!2#!"&546!#3!!#3!!||D| ,,L| |||DdddL!2#!"&546!- ||D| ,L| |||D ,L )!2#!"&546!!!#";32654&#||D|dDd&96) )69&L| |||DdVAAT,TAAVL%)!2#!"&546!#3!535#!##53#53||D| ,ddddL| |||Dddd, d dL#'!2#!"&546!3!3##5335#53||D|DdXddd,ddL| |||Dp ddL"&!2#!"&546!#575#5!##53#53||D| d,ddddL| |||Dp2Ȗd d d %2".4>"2>4&!!!'57!۞^^۞^^qqqql,dd,^۞^^۞Lqqqddd '+2".4>"2>4&#'##!35۞^^۞^^qqqql2dddd,^۞^^۞Lqqqd2d2dddddA 62632+54&#!"#"&5467&54>3232"/&6;46n,,.xxPpVAbz - - & -AwasOEkdb - -A32632&"#"&5467&54>++"&5#"&76762n,+.yxZ % OqVAb - - - - AwaxchsOEkdc - -dLm%5!33 33!#"!54&#Ԫ2dd,,Md22y7/2#"'2!54635#"&547.546324&546X^Y{;2 iJ7--7Ji/9iJqYZ=gJi22iJX5Jit'*BJb{"&'&7>2"3276767>/&'&"327>7>/&'&&"267"327>76&/&"327>76&/&oOOoSSoOOoS=y" $GF`   Pu "Q9   ccccVQ:   Pu "GF`   y" $ooSWWSo++oSWW"y  `FG # uP  :Q # cccc:Q # uP  $`FG # "y  d "!#5!!463!#53'353!"&5+, -?,dԢdu - -  -  - -d !! 463!#5##5#7!"&=)+5, -?,>dԪ -| - ^G -|d -77 -P#3!#732!!34>3!!ddԢ!,d!s, d,+$d$+ppLL293232#!"&=46;54652#!"'74633!265#535d22s);;);)X>,>XL2dd2;));FD);>XXԢddL6=3232#!"&=46;54652#3#!"&54633!265#535d22s);!);;)X>,>XL2dd2;) $+;) );>XXԢd  #!"&762#";2676&35} ,, }@D:#6#:&77&P'L. dd LL/?O_o32+"&=4632+"&=46!32+"&=4632+"&=46!32+"&=46!32+"&=4632+"&=46!32+"&=46!32+"&=46 - - - - - - - - - - - - - - - - - - - - - - - - - - - -L - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -)33#!2!&/&63!5#5353!2+!7#"&46!2!546dd^>1B)(()B1>^dd> J LPdO7S33S7Odd|*dd*22+52#4!!2!'&63!&54!2+!%5#"&46!2!5460P9<:H)"Z" -)HJLP;))%&!!&**22$.2"&432!65463!2+!7#"&46!2!546 jjj."+''+# J LPjjj9:LkkL:9r*dd*22,62"&5477'632!65463!2+!7#"&46!2!546X/[3oo"o"."+''+# J LPk6NooN>Qo -9:LkkL:9r*dd*22",!!.54>7!2+!7#"&46!2!546X,%??M<=BmJ J LP9fQ?HSTTvK~*dd*22)2!546754!2#3#3#3#!"&546/R;.6p6.d6\uSpSuu;)N\6226\N)G6.dddddSuuSSudLL/3!2#!"&546!2#!"/!"&4?!"&=46!'| - - % XW & -dDdL D -2 - % XX %  -2 -dddL#-7!2#4&+"#4&+"#546!2!46+"&=!+"&= Sud;));d;));du);P;ddLuS);;));;)Su ;),); 2222  !&4762 !2!546 'YV/ |UYY(n0U22!/.#!"3!26=326!546;546;33232!'p'q*}20/222,2 "!#!5463!#5!#!"&5463!#5, - -w,, -v - -w, -O,T - - - -dGFV32676'&7>++"&?+"'+"&?&/.=46;67'&6;6#";26=4&KjI C + $lineCount = \count($lines); + $diffs = []; + $diff = null; + $collected = []; - - )V=>8'"d 1*) "dT,| -otE - - -GAkI -! "% ,=?W7|&F@Je5&2WO_e_ -2 - -2 -~ $4<Rb%6%32!2&'&#!"&=46#";2654&'&"2647>?&/&6%?6'.'.. +jCHf7" *:>XXP* @--@- -?0 !3P/|)( )f!% =  &* x"62&CX>>X83 D-@--@ۂ -# =I+E( //}X&+ 5!H d9Q`o322#+"&=#+"&=#"&=46;#"&=46;546;23546!2>574.#!2>574.#q -Oh ..40:*"6-@# - -d - - - -KK - - - -d)  )k)  ) -m!mJ.M-(2N-;]<* K - -KK - -K - -X - -K - -KK - -"p -"),!2#!"&'.546"!7.# Vz$RR(z }VG+0 )IU!zV`3BBWwvXZ3Vz&--% ,(1#32#!"&546+"&=ۖgT)>)TH66g )TT)g6633#!"&546+"&=`T)>)TH66B)TT)g66 %'5754&>?' %5%Ndd/\^^<ǔȖ  -(Abd 2"&4$2"&4$2"&4|XX|X|XX|X|XX|X X|XX|XX|XX|XX|XX|L2"&42"&42"&4|XX|XX|XX|XX|XX|XLX|XX|X|XX|X|XX|ddLL/!2#!"&=46!2#!"&=46!2#!"&=46} - -J - - - -J - - - -J -L - - - -p - - - -p - - - -/3!2#!"&546!"3!2654&!2#!"&546!5^ );;)X);; G ;));;)X);d,dddL;!2+32+32+32#!"&46;5#"&46;5#"&46;5#"&46222222222222L********, *.62"&%#462"&%#46"&=32W??WW??||||||*(CBB||||԰||||ӐB76+2+"47&"+".543#"&'&676/!'.6E*  '?) -T 0I' *L -#3{,# -n  6F82 *5#"#!#4.+3#525#"#5!2 &2p"& 2D -d 2d - dd R , -W 22 -L 05"'./#!5"&?!##!"&=463!2E  1;E%= !'y,2 " - # 22+."A2VddGJ!2#!"&546#"3!26=4&#"'&?!#"3!26=4&'"'&'#&#2LFF &  7 + for ($i = 0; $i < $lineCount; ++$i) { + if (\preg_match('(^---\\s+(?P\\S+))', $lines[$i], $fromMatch) && + \preg_match('(^\\+\\+\\+\\s+(?P\\S+))', $lines[$i + 1], $toMatch)) { + if ($diff !== null) { + $this->parseFileDiff($diff, $collected); -? -9   9 gLR   2 2  2 2 $ #'!5!!2#!"&546)2#!"&546!PpmpG,Ld|pd,#'!2#!"&546!2#!"&546!!5!2pmpG,P| pd,dd'+!235463!23##!"&=##!"&546!2dddpdp,d ,'3#3!2#!"&546!!2#!"&546dddpG,|dpd, pdL'+32+!2#!"&5463!5#"&546;53!X|^d,Lpdpdd,'!#3!2#!"&546!!2#!"&546ddvpG,|dpd, p,0o #"&54632a5*A2~ 6'&4O**{))*2A~ !2"'&6d)***2,~o #!"&762{))*a**( -5-5!5!Lc d 1#3!35#5!34>;!5".5323!,P2 &d2"d& 2dd,dd  dd & ,L%1#4.+!52>5#"#!#3!35#5! 2 &d2p"d& 2 ,, dd & ,dd,ddfrJ32 +"'&476 - 0 - -) -J 00   >fJ32+"&7 &6S -) -  - 0 -J ))   fJr"'&=46 4 ))  w - -) -  - 0f>J ' &=4762j  00  ) -  - 0 - -=:#463267>"&#""'./.>'&6|Vd&O "(P3G*+*3M, :I G79_7&%*>7F1 ||5KmCKG\JBktl$#?hI7 !2+&5#"&546!5X,p dddL!2%!#4675'=DXDd dQ,[u}4]ddMo__<vsvsQQ(dpEHEd{ d&ndd ddddd5d!u -,d;I]ddQEJadd9'dddd dy'dddddddd,d,A22>ff****NNNNNNNNNNNNNN"~Fn2b\r bb 6 -( -L - - 0  X * ^ h(T*v -8|t*<6`R.j(h6h^2Dl.vb F !2!v!"@""##"#8#z##$$0$^$$%4%`%&&~&'P''(4(p())*&*J*+ -+z,,h,,---.(.f..//F/~//0>0011`112$2^223"3>3h344`445,556>6|677N7788B889 -9J99::l::;;<:>>?(?n??@H@@AA~BBBCCBCvCCDD`DDEZEFFtFFG6GvGGHH2HNHjHHII8I^IIJJ.JR@. j (|  L 8 x6 6   $ $4 $X | 0 www.glyphicons.comCopyright 2014 by Jan Kovarik. All rights reserved.GLYPHICONS HalflingsRegular1.009;UKWN;GLYPHICONSHalflings-RegularGLYPHICONS Halflings RegularVersion 1.009;PS 001.009;hotconv 1.0.70;makeotf.lib2.5.58329GLYPHICONSHalflings-RegularJan KovarikJan Kovarikwww.glyphicons.comwww.glyphicons.comwww.glyphicons.comWebfont 1.0Wed Oct 29 06:36:07 2014Font Squirrel2   -    !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~  -   glyph1glyph2uni00A0uni2000uni2001uni2002uni2003uni2004uni2005uni2006uni2007uni2008uni2009uni200Auni202Funi205FEurouni20BDuni231Buni25FCuni2601uni26FAuni2709uni270FuniE001uniE002uniE003uniE005uniE006uniE007uniE008uniE009uniE010uniE011uniE012uniE013uniE014uniE015uniE016uniE017uniE018uniE019uniE020uniE021uniE022uniE023uniE024uniE025uniE026uniE027uniE028uniE029uniE030uniE031uniE032uniE033uniE034uniE035uniE036uniE037uniE038uniE039uniE040uniE041uniE042uniE043uniE044uniE045uniE046uniE047uniE048uniE049uniE050uniE051uniE052uniE053uniE054uniE055uniE056uniE057uniE058uniE059uniE060uniE062uniE063uniE064uniE065uniE066uniE067uniE068uniE069uniE070uniE071uniE072uniE073uniE074uniE075uniE076uniE077uniE078uniE079uniE080uniE081uniE082uniE083uniE084uniE085uniE086uniE087uniE088uniE089uniE090uniE091uniE092uniE093uniE094uniE095uniE096uniE097uniE101uniE102uniE103uniE104uniE105uniE106uniE107uniE108uniE109uniE110uniE111uniE112uniE113uniE114uniE115uniE116uniE117uniE118uniE119uniE120uniE121uniE122uniE123uniE124uniE125uniE126uniE127uniE128uniE129uniE130uniE131uniE132uniE133uniE134uniE135uniE136uniE137uniE138uniE139uniE140uniE141uniE142uniE143uniE144uniE145uniE146uniE148uniE149uniE150uniE151uniE152uniE153uniE154uniE155uniE156uniE157uniE158uniE159uniE160uniE161uniE162uniE163uniE164uniE165uniE166uniE167uniE168uniE169uniE170uniE171uniE172uniE173uniE174uniE175uniE176uniE177uniE178uniE179uniE180uniE181uniE182uniE183uniE184uniE185uniE186uniE187uniE188uniE189uniE190uniE191uniE192uniE193uniE194uniE195uniE197uniE198uniE199uniE200uniE201uniE202uniE203uniE204uniE205uniE206uniE209uniE210uniE211uniE212uniE213uniE214uniE215uniE216uniE218uniE219uniE221uniE223uniE224uniE225uniE226uniE227uniE230uniE231uniE232uniE233uniE234uniE235uniE236uniE237uniE238uniE239uniE240uniE241uniE242uniE243uniE244uniE245uniE246uniE247uniE248uniE249uniE250uniE251uniE252uniE253uniE254uniE255uniE256uniE257uniE258uniE259uniE260uniF8FFu1F511u1F6AATPwOFF[\FFTMXm*GDEFt DOS/2E`gkcmaprڭcvt (gaspglyfM}]oheadQ46M/hheaQ$ -DhmtxROt `locaS`'0omaxpU jnameU,postWH- -Ѻ5webf[xTP=vuvsxc`d``b `b`d`d,`HJxc`fft! -B3.a0b ?@u" @aF$% - 1 x?hSAiSm߽44,qPK q XE](2 .ԩ] "ED -i]DԡZJ\8wwV"FpUԯ.Χ(gK4O n;NR{g`'!PMUHEՠJʫ*Yq9c<U9!QIYׅ-KC+ դU)Q94JYp]Nq9.qyVV -n)9[{vVכ־FWb++{>׍a|*gQ,K<'W@Ex̢D&Ud# & x Mx2c 5*.lN/h]GtT(xŽ |յ0>wm#Ye[%Y-YR'rYjD% ,@BKZjHڤ@b-R+nhK~룼$;h^fܹsn{ι ˴0 kb8Fd:%Lה"1AՔ AY>,ؔ#pZ4؟5made ?Ȝy=I:C D(nIxL .1!P'JDtHj@L4Ph' )b)vHX,f1c\'cGu>1 ~t?!xT_q?qBF#L%Dћ"?Yǯj??8>NSkemAYDb4 J);@jP$ -'qh8`;aX6CF*dYc"'?hLV㗌,>ce3eVh =C~xC\((qb@ 4xK&hׁ 4\2DZ6N1|-;j Yu@jѫxi䊧mK ٍDEwq3̷.cAw@4t.gkgr{~Wl~{lW2} 276a2\6oz@$HSH gbtX70Ktc1,7B oLƏ66[,%iZ ,l>TpKSGg\> #A#3Eyk6v;u3!ZI8Mk?8CWq{`C*h>H1_skh)ojOO' -!~dXgB(0< kOYxeƧĭ5k =d ϧ> +tC-o -Ǫ/_koܶs+fOztpu7-}d9 se \9.H4!0S\ ʱk2"?ip7\2zlްt=W\!KyOXimUnov 6: 2 LZkAA^qCޔ &PaFI0>&Q #FQl> A·q*OȦ_@27l,sf 6p7ܩ?M1vA2]$j";vlk~va0gjzRD:gc6yw%g(þ#'uB#=_@?>FVb0a!aL4tXv:Fh9j^xތz}Wn}7}jΚiHitKSaXEEbbBQ1ftxFȮ -"dqA\~F`6i䁕+ Ԣ^Ȳ}ש׆k&Ĺ<- \;g1>w00v^x 7l#Ot^5+xe.^]׼G8^ m(t1 sbfJ %<4H@e8C,5<(kc5YIA]|ךl6+=HVcbKՋB6i4 #_|&>NvQk#pW=u7HɰR$ [5싙 g %19}&@$&l=1RI}9#ςz??1z&ı_ac|PI[:u;l->k4GYm|Zw }HnR=-B ~m.ِ .Mz^,0%8EG**|sg|ozO֬0sz.WN^ yHk<v3t{8-|' -ea~H94xA-@y bT4@0b#]DDljDSio:AgSP z:;-|yH"r {B{\5RLi6AAtM]taRKC!1CgC샂 +1EG!Xzٛnzv@x-#i^x*$)W=O\f[WX~V? `Lei::v4$?=Ra#c]8YFJb&'{%LCE Cf]^$/fߪM;À; 6CXV#X~ F< :vCcyBpLv1Fv#9 -/8VF01_K?x>}#G7т\Wp!.@bwɡ+{o#ԍPQҮnī66 -cZD(. u;nM}?vtxF{+` -="rPπlDV̶?Z@H䰅][35%O )\^ Z;>Ftf-IzӮ yu1uo<:oa:uqwykk ⋜}0?jvX+}VG$s -?26YI5c$Cfb!X*|F^$p7p55߶6[mjgl>* KO& - 8ܝ:ǰokKm~oS-*4E}P/% k:e"1AJCAX8= LŢ>ܱav{|K.3 :\Bxwbeb>1ۿvH?f58 %6$ɲ'pL^HXbpIVqnA8Kg'i!UzSEI5N=hpV?(E Vr?޴7Vڋɿ.O;p 4NRZm.O> MuL'j5`;MtAQܶMyV<` $m)yڳXDa:݁q1JFq15-l\3~X-2pFDe/f!2i:=h{%{t^ *PBͽ]YD3jd *w|GLϽ}ˑk7Ç=06oz*zo1~Jw00SePw%#@BJB %+ ';%!& )Hq 7fqH.!Eǎf,9՚$9 H{~i Z)O|!"D.KQ a2 -%2Wɂ\{*B{7,9.'ew U^W&$r9rcGBwll<ʷSQゅh! iѨvJ :Y?#_m4q[ },EA{VПP|Dg?9MId?{)/ /\[ Jҏ[f4G>QK^ m O -7w]„<U3jƏ,:Yq~0/mŵ@CCFq{,Θ쬷ΘQSo lsɿh?A2q`5Z&*X1L5:6ς+O]uej%?ۼ&aW?{2[}W?JbΙk-\b7sIkf&Λfx~nO-9V ~cW"ȗy)b\)2MrWf;MU7'[-c/.ؾuMl&.9) G!!W* 60Cф#qrqOKZOWq,8́/XpTȑg<>¤)[J8o` -;S\S%h~p|J˾F~K=E0NQX*8;D7Q1QC% *Eyy} UG?>I`>'6<+3IVgϮyOQ$WBvH v[Ϗ 2+ 'ø6N߆<ɕ 2S娚9X1\┣df>B~-t>W]pPrZ['+ƌl9]8qC!' @AAOuШ -!?M\JMͭfǞ)ߕ=w?AN>¼}jQ<ǏpǠ^(}1+2q F4RiHďITr8^!gm>'ڸhE`s̊ol!(9~ o%#)~ƃj$@ՔLpGOa{߿fé)zؔY<~^cs潺ݴNRURTY%8Ks3qd]^QTb' zx)HFҩPmUZjQ&XƁo<0jYGz]$8c&hyݼwΞ{9^sf߹m[vӣ!(ZAsۧyB8RiԣBg6{UmtyW!bpǮd n/ŷʼ@v/%cxEn:4Y²,yZ-krcH&^ȩC'Ȯ'^T5r)((IJU&#݌! +YM.JEX^|Lw@ھZsgY洺\xԟxyLCyo?eV"_[Q/5Y|qI/\9diEBh$v wOL fpa ,?HgHf2RbL -v >USo^1/,ēvcYGmŨ~Amz ?/40yj̸pk2H -eERb/"M 75ul[drC&Y͐&I -`!>p;J-b--.VM4>Fj/5σt5}>C*<'d?,cdGf2ҁ0w6Lh"fKζp;ǿ϶Pdc1EOi%Ř(DCWV2I)TiMFTz0U S7V mBW6;nYZUzSTg>(hF"޽T뽷R]L۶|Lx[s,'NU|E<4)Rp*vU#g*gjə*=~܃ASēA JHw3@NurbwȀʌx}[`7ZtPlh L.)NU}kq'vFQr׷{ˤS]ZL(@*Sf^+uPe_k#.8ɂ%ՠ,@TKх -t`ߑXAD;b|pA7}q2 -@Y`~iԬK0jY( R~^ҧ8>=F"˜A[DqvQCX|ZsO \/f.F;kPbdz7ԐeͶ-6bybaWjnh7YLF!4wssFCnh_0> MZ nC *#5/OUN\(3o@[7`Mg8xge;f\y|f֤ޑ]i5q5q&>'353kYꭑ=W7+΋yxIeOYǏs(p6[B/t爁*̠-n: <Ц) +ް~q_}oxt>LV FG@d9[2?2ȳ8笞={fgcsCmre#E>45qo:JX^ioP,xf:/yn9VѥS7=u-\%KϦUv,ⳀZ=vkN*+_.ڊ֞iڃ=w @lmr>Oo,VԲɝz &:'45!9pI 0@I[PU""sInvR>A9t$3/|k8yiE c8E!Q\ۂ} %Af4s*A8A΀>D=5uwjnG z?2Q/I=fH4n]澀YmG"2PEHfvZn<šPiA_q/PDտ $$~%NyhrOdM\-m(@\#ƼNJO>a+ uJ*(%¢FPJW,$))} -B\_wV] 0TOCÊQ}5{Ho*;;葞rǨMc54S -: M7(kY:z`gp Jstˉv'eG^~iD16dA @'N ֭N.?f…1bzJD V -o@7R@6<%IF0mj= [}Nۊ57pyv4@<mЭ9Tp?R70қQG[jzib~/)wC? רa-/Cn.ĕH j63pKrhXIƎj -o19 -f\~:-ѓK47BY̆y%DC~em@]%rs4T G-Ug>HOpVB]{9&^6|m _PLLI7ǒi "'T }? 4|[Fǭtu/_y;Z?HK0Wzc#)~.rĥ+B&JG0[.ΡrOk;VCoX K۝S߳rt:zX\xmJhxNh5 K`;ydp.Ec4XD<-llip.^p: u/.Y[rl_4kz$~Dq]7/T_<菵4K$Ɩ &w S7|K^7MsMGhw㢴0]?fja5aiЦ6C2no• f=)d^v qNcԎl=u]?;f-E~nv}5%Oջd덿=Z%v  nKu ̓*J#1hu1Hr o}SZu=w;nϗU `FȶEn?߫k&l9YdgA8NSGD09MAK{ހK3݊[_]%W4zۈu9\~n3~zir X3k`Psn=m]ԃJksT9deYN`}/]U#b;Rt,lh*#JB+ -(iGx\}~IֳFv@Tu֭J - -@-LwzYgw`wx-(d٢]F3_XcYmQԃWb-F K5d-0b球—֨T+_Zxcj*`}|x~LF*S*oMتAT1p71?R t>R'"Ey)oP7%$rv QeE+nzlVlFrkt''?R'ZCEIKy ga0^}pE;Kq{T/?i"%1ޒb-Ծqƛ˵+ 8]rIڣV{dȪ͜\AQvOS]0.NX9svb?OE~FPU}o[YKrA̓U%7Dw q b/h AhPbQؓJB8I ?I%=XtO;(PhLd S 'hݱ>|TV?,O"\`7.2>D fmg;-C'u, zA`-ټ$x vck2[xp\cbl΀ihsivaÛM,gĨlMz7JvˑVRWϋNo4(-XB^Cl&Vnnn D4[k6N&}f3YQw@$U$(Ǫo:-ZG#&/} ?N}ƥ7A!MhW>?iXprA١b?uϱι-h6;SB#/@ѿJ -!%Q)Dq:{JI^ޑˡPY7UG(h?HmъvREH=N`P)QG9FMSMG@2E$Q -$s~TkN"9Ն8cF^"?+G٠ -^*gUlFVxUpoC.XCƵ׵͉qK[k[K(l; ӡn%^Rj,$) 1n.G:Cf(,;ĴR—F_~^;իD;6|/jGGSSGGӎļDzbR/X?Up14u$`[ߜH477I~~Irߙs#6+heW6@wK̸h6, 1C"=meA =@z sls];kklr^"s青>&Մ-[{JiҴ9[ݵȩ-]dޢc An۹g}ꒇ6hTɖ?3s^kLcY 1Zn[bݴE߆դwk3f> fMDՠaD ~}&@5u gnOȢ<'` &bӬ-6;X"d*awYvtLXָkUߩa=HR_@+j2T*£%/͸oƤy 19/7 ~7_o+$DүsIH:r yiF:v(dO":omdM8 ;Z9uʩHCg\K/*ԙg*-I_ERqR'[f?GUAovb A$e]/Կo?|ԐQm4G7G833+ 74z*)$݋JpDNj5pqeDf/>%gW{U:g,nlU\t'%E}͝uCꘒܻߺp}U+^b'o(5gVBIOEm>5yzg}AP-P/ޫ6)x5/t;1p1L9Aܳ|)X]mkFEH/4}:,oLMo6]YM50u[yҫfVh?E-A_i﫝j . -6|5`#Z-svfqӟs͚>w7C{ A]Bz,iH'dv?`E -x,mz`F[2avhp%(̒ʂ5Ԧ;Gюh\y";|"ٝʖrxzsPHCTvP$ly}iyhvMCr)#x-.(t%fu€(ۅeUUo -pqeˡ啗syi Xk`>X@2P. 2͌>n|,/4} ?A&Jr+ɐCV]{Z0- A= -F$+%UZyޗٲR B)wT8(aRΣ*-sr5v !^tZ:/K,'F  9=G<Cu"$-FS2(F -0Q+Xw,]=bh[qBQI ;)"Ō926r?}lV =b[j4AzKkQ?T[%$KQ-l_@l/ &;차Dr?P_dE1~z^I~breufP/պ# E+S\G-R4 SSV俑; *`G*5'dL -~ 5Fhb` -ꁜ4[b$~GNAX$~ }[W}_z×6m&~O%j/r&|_Sy<-*Lϛ,JQzͤ𫷣|V|GVW~z  -HE YnH4r7P?99ߡ|O-5 %4 dzO/4L_PsT>LQD( J8F+)jCb -Mu2Xc8$t}&@Qr-֤U_o6q7P1ˤ+rc6I -\ (*v24Uc(A ̣93]z;0'=*,e56Va,qh*P@wȬG/Oj|FIm #Pz;Jwʎ}< z Tt~`ȱGP%;? 5((u# vՊI#9,?Gb4K]Qgԟ]E[ phʯG+`Ęp?@>!}" -ҽr=CD5 62ZY? iA -T(E UJu;"}պ#LcӗVWO&CIԙu8*烞QaQ^*z(L|Jӏ^fp104~CUx*rV*N9π׳Pūsp_L3Z"}&rO|l~kC/Wj><SxMbSg(]J(Z#x\$OC68-f:{Sҳ蚨o4:)Wb"uiuh~d%BAM -sWH.gv%4v+=¿ -SGϋjWHWu>[B{[uɶs;laziW߭\zC|\fte&ߕ+Bk/t - CM /@S>Tm -G`v`?G(,zb" eAAi7QR<"iX:I܋(aV;4R]}^1vԵ7=p|[Jοeµ{)e#ief0KJq"*F#(GjJFhX#шݍk5ERP΋ ^pCeoe:{6۬5͝sƙ8X K6V[=}V+hͧJlZZ5W;TeV-@HID<͙[)֐l^bXeNN"K]@b?.HH -gzXaْA}MOeXHNrڟW;htgttOyu3=*פؿCFGsh9JͽZ-k]L-~hii.49Qr5I,Vݓ^jf_},Q6?5NV -ޞˍYٜN%ezqƨ>Z Nt1 a %= yhޙ HJZ? hvrk@mY`^insF\*|Lz!/?)(0 -MS4(ȗh{-'ho7cCҞ?6'|ubգ@!bÙf{tz1UA?=@ t%䕉iu[ NiD GT@:p<(cXUm2ϱ7zOM^FϴYUfwGs#t:/~Os]Fݑ((^?L$Sʽ WzT>m'_d:5Lh;H7WgzgZZb3{2d5Jj9c+\vqzDbbƶg "l@צpQBbS Q>+d p%}L!cdwHopx(Tpxp#:dvQ qdAQFdLKmPR pU?l zg-jPbGaR&^q>u8p&Ӯф `MGSܵaoWܛZaâٟݰV5Rs2NX qGB OKg BW)Sg\ӡl]z<߲o-_- AKMqӭ!æSigy۰]K;ST'kPqee7cZT{~*7b\H?jٵl3P оwT2jY;)l DueytOTjöUHXgɬ,WϢ^u![]vF| -QGh`(# R'5XDQqM6gc'bu:'H( ?yյ6~.e[n *UyZst9R!GMM$xz$]{L<}4JZ~MVՕhy >@u +]2FqO8jѥWCQqrw.䄫ޥ\_y\On)IKGRHŁqI. -d+u@ϴ kŤ}9Tv6*xge7?ì}S-AU OMlJ pժݧYwhi6\fAZc,rjFTMj8kO51TqW_n`7%KWsd0:`OXs$4?:SI1W-Pr}² 9.&P^f -8(WI``@5a}ziV pPԽ+:d\j"=aj)W$q{͜p)V|7hj$L֡9\ځn[ k{lG.m m~TEbȭm` -wnyP&:PLJY_pNWzVS׃]7Ed%i癬| EWM7r HB6`UGZ 9N2l2ɅHY(ŗiwݓ[`cZR;Yz=TrvH9c. ֲG6*p΅'[:/ҪXCYхMt-']n,{@ cObIN.xN F9뛝NK[Xr=Wm ݏƦY+?sJgXuP%ȗV^[ W;W xvi/XS3ȼ2ԩZ f2/y?8M@Q*˄CXk?MzTy?ZYu׳)]͕1-a7j~ -.d - 'VztXK2k̹d?zzK.>,BZ`q'kHqy5j>a\C#H;#p7l4} IR7ފ0$=V#_.vs{g>h!Ab/p7=zmi%͟3)^Oj<_UNY63dsIr8EjU* 33|v ;OB@,,\cwd}6k.ukF9'26D]exGJK.׽}S$@ t";2ɩ*41_x7QbjX9Q;#{9eI --奐br B<9dpzIVQ:l+si #=T+R(MDC$ -a̱ ONgj19gqXk}FdcG,&..^ɷwwc>E_]3U|t{Jf窂u_.\*W=}lNo+^Ṿ vP>~sTjWz~_ogS}-DTd -TAaYf3,PATcm ռ4g}mE$BwŪ8>9JW⁩O/9PJCXA{,@c,tEJTj98Q& HPl~K%ƞ1ѻ -eD zxNXuz.9}Mc&:Z5ә8% յսmomCB:l8~ܦEjTYHYvnV^IN]]ŽCXkg#s cSB$Ý=$k}cG&/z}_v6<7IVGGg*l\RXST)šE%Yu~Q~>XЅ`9Wk*@_ՊpM]0*%a3X팁KM|{FԔ -췾d7[nlͬD@m8e cż#gHdd@~.jllɛeRcxE(( Km¼GXA7S@[l.%գnMDs]n_Q 5i?zGTG3T@e i,r -O2<l+/,%m ۚXn|E]lí[m<|#z+5 7&\5S-{AE^tK M^rq]FmC%2vJ)W-}OM"`9l+=%"T'8zH3QҐѩYP~VزNi 7ۛ ?w1xc`d```d?oAePBYt?;"@.Hc xc`d`` -&]aA_x}SJAS<` b)6 >@D"X\o!ι{,_oggg #JVYp>uC4&*<=$g9W@.0q- ;:pt"HUe5 Vg([Ax9!޴EMߗ4N&ӞwjtԞeσLp>w>Gpfz`|^aż>)o oMg+RmRq,RJ1XTN7t{IE\F8U mb:fN&j9Yxc``ЂM /^0Kؘژ0=avcca>bĒIJk ."/ -I888qqpnǥ5w)^-8 ||||[5? JPKLpPa) "Z"WDmDWc3K O~/cLuNN+9K8;99/p>"k676-nܷ0h8)iʋK+s9@.xڭNAwh - /"TD#J$rqr|!'O3XFާ0wY 1fg;73;3xE0C q=qX4GA$x ZB8ڃ Dw!IaSX w.0?oN؍gڍ@\A`sb -k`sݡ},0Ya DȵȵMyFMvYdS20~>/qJG -i<#c0C~G9ee Kvв[ڷ{&V(Ө1j1MZqr7,gKܥX0QY{ -MYжz=a:[jEݢ BZZ=ns`+ȍxmUSgFB]9I$uw-J;mPwwwwwwwwlޕ]<3)e׿7R^ VV_@$zГ^З~g`0m[czf`(3233 23s2s32  eD*954XXeXX14i++ -kk [[ ۲3Qfvd ;1qgg& nLdOboa_c@`PpHhXxNDNdNarsgrgsrsrs rsWrWs rs7r7s rswrwsrOO // -oo __ ?? f,˺eݳYϬW;MelP68s䘉GE{RαM 7nܺp;ڛZ[ݛƵ? ѵֵykx~yj?\3V+wE5=QMjzTӣ(vN؉k/셽d/Kd/Kdbbbbbbbbbbjjjjjjjjjj/r{^n/+v -;NaS)ԼffffffffnnnnnnnnnnaaaaaaaChQN-ܩ?C?C?C?C?݇C}>t݇C}C?C?C?C?vNjHMp[qn???????>>=<<<<<:::::::U>::::::::=;;;;;;;;;;;;}VhSoTPwOF2Fl\F M?FFTM `r -$e6$t 0 "Q?webfe5옏@? - t,3+2q FYO&>bm5ZH$Y{H jd Չ %٧y"+@]e{vNc)n?~?萤h_&iѝ?>^K v-cۍ12Ky,'n(3EwiB& Tlh0M҆dYrﲬnti]yurVXsjgMnәHW r2>iT`V7R(+o6'cB4ι㿚T ]a[Qd<3wq8,rTI80>E?*E痦#7'S ocʷ_7&#*+)+4aA6cy٣f(bF$;{ YA1vP-tG"Cf- WԙuKְK#*K< (Z`٫ [%YT{%Ɋ$s{oջvt"p4`ߩϤ}o `'ne> -G5sz_N -PKӦvmU ɾ{z"3`l W#Ԑ^@+,ckoAOpnuzzJ)Υ1}O=xR`J`qUs/+kv1xljlEl\nDƶVjg{Zdz7 5!xm5o[u&1ڂHBkAqrR (\gh7Ҋy=HZUPh$8RgzgͭN:1u$܅>R]"f7 K^'3+E/^YU5]NB.ʋ8+͏8,|{M|Aua|a˅՝% -lKGP,Nukc8mX@d̘?Y&{?P(G]Or-\LF9,&y8r3ܟ?p>~sDz1?\U5q=tzԒ&Znj%mM"}tkDwh-=mB76&:һqt" 1:Еu;"K_/Jdc0l0'^B8VCzg[ ;d -Ybȃuu;@*}y| .'C>\g=9VŐ[o|g^ >d -9 -*E|A*M[[*mOQz?Pn?R)YoT&[U*5S MB [ -oYDh{,}1f?NN ]O/^;\J BEsJrĚ'g/B%o Cn7:|yKt&$s|wP\i]$Z@+ Հ90x]r%+RUEm+ܰ;wu9/I77զQlu\yWN)8ܰvY*umm( fEG8 j#IRz #q߷ )Y$ Лc_%m-{!0-` ;公hyV]Hv! ta\K[1{"j 6@3T0%Θ"ԙZIGS.ΣpӬS1eٓ؛ Yv8d\BlSR)ӆ {Iӆ%>0Ўڦ\'cg2%4QD -0͒3B"MՎ&ۊhIڧRgME I(5UD] }b8$8>X h"l΀j.%ۀHH- Iݸ#1C4Y7YݖV o>P]6O47f ~AJdYF€.oy) 8l 22e1H[t@!ȅ 2\@5ٓ%Zkޒa@.`n3OFR(󅥶ZkLkF HWjY I5*6eSbk.5F,.N0ԙ|V||~N( 4],Jp|~xeA5/ڻSvy?'_v|rXHQēB@= XB94TBBcHP+_YH#$`FB;+BPR4̼ t:t"ZEJ^!XǓq4_dTW(5܀IUŇAz@U6n.WGXHRK&'swMjʎ<3)`#F@  F Ԣvob$x +u&}|X&[٪8F-E&/>/G.az^/})'x$O=<zoA9M؝&~3r3g'8ң\-MDzk5A -G9|1-! 87[,mRu|57 -=X,aJ^tN4\fЄ]AzH^7F&k"LU>}>rBX(ۂT% JdhKPKTFaA3HHC[r;ad54 lLkjG{8h~ fR@9wB0 zS'a7@@Nƹlbj3hNXF/es'DsQjw}Jz^:V.:ڋ{ͼ(ȲBɦx<Db#"S{PHuN/{r6;wUsPО -p8+6g_2lΡ6H džH: dBtGNmx@j |{s9=wR/oDJs5z>;'xEq^r^=G?9AA_K%Dɮ:uikjkIeG՝#*)jm|t}`JZ؈H=4{g߁)qXMA,H71V"o,Y#hݨS_;a_ԗZ^cn4HE?} -ȝ٤=}BWvުUehGF;@2S@f n2#fY:]JyH]-G׌wgv'|0e -_7Ґn+fٸY<( -?y%wm+j&&!c^u'b&hm6¤*2 ?AIƲ5FWؙ[ƜBUzIE!m:xheǮnz|]% mrUFگ1 };!n F&gP;&$$F).tBQ3(C=Xes;iي@~NΡE SRh\BeobTnΒju g@'qQ딎nx.u6bVU& ];!C_  5*zɺmRQuqPZ0}mn^nOrT:U'h0nZp^R|DF_b\@mDE8{oGM᠜q}Sd C,iܚE/Ë[d8],MCI_u,]Vc"pg@`"y),;B^el2'.(Ęy>-|hw;jՍiԽ_o|!@)ɢ=̌SPz*!z})|ƧT}jEtCZný*՞4ۆ׽[ 9Юݓz`Wmeo|j8j59@.EV/ZW@|f_\"${v/;a:Sei3TG*]ơ/h2C32$1}DNXt?Fϝ~n,Pj9.>ף{ -9EN-v|3hCиE XT;P$=J-gݕigz~q(A<:h193N̽Q}CLWߧ׎~ b"|4u}cy62[ \d,ҎճbkD%0Tx{=;Է(i LS13Nh/6?'E^~P{sZZKĞB{Dt&z)Uoa5Q3ȗr~ -F]$<tm(} MB@[GxFh8#},#u Laz(Qh4%xm`Uչ.Ev1a4_'/[d{FxI59 D<&8VEFg 芘#I䟍2S_]QqAn_Q>bޘ4g-0&E#ci8 vR/4rP7KsOWN3ՏvE\bqQ5ZڽVy5]h/ i)-/kNю#e)"P {KSQx>a&, _g-mc<n]Ч-52cz 7d PzVOPvfR Rఓ9Z -dC`,at=k?v4#P Bإ/[s.-bH)ɺz '}׶w!rXZ .:Vn;->: -6rUcs4kVW{#5ߑ0B`ܝ0u".QdB0Cr]#Q9lqN^ֳh~NU\ 16 -~SnTl\THҲڛ-~G~)$oQ7-C}q%/avO|[q4~Bc-$N76w{V餃.&(o*n -NeRi4!3R"4nbm-y[X."!QKE\N4gՠםaNp >k)90BZBs -yrer)vDtrv\v[>rJm -a̼~uՏ>rMZcB<`)\yt|ۍr'<>[Îh7Z8caI! p⢟̮,G k5@`iw nО8pv *'O - A[.rhT pR?+;\*HsLqUf:ql-ć *6!h+ˬ{h- jgkMMP#:}{/VŶC]옙&[W$ګ^#4fWa\ 5躺M[6)T3~ -:. Z`si(RQ|/` -il^L#f-;-C;_*{@EMCooÂ_7TrqzF%ׯ|UEƫUs^ݜv{fQ<ĐVPTfͦ?mpP*&QG{cJEPe2)xP0AMɪZHj"׻"AC+zqmVzᖞU%C:@1W [y)J@ob% jA>)Nǀi$At`>?f0gH36p6D|M 4N - 4JJڃ -jƇ\ p38Я6pV?:$sDNƹ2n,HO\[ոK-)W~im?T:޺UeY-#dJe)Z5?$\dW<,Ɇ;ط5SոTT̄f(PYv=Q ~DX*8辩s- ˨΀55 XRl QC l|5{ӦT\t꼕+en۸Psl3UO[ZS3*,:ÛZLS'̵**@ı~xgno2- - WV;pZ9?~$6҄xJ>\QA_Cihbl] 64*A˯ɰqX7YX.-ոaɇVhiKgqNRĆN(r']%٘@3̀jZJ.;nm,S0xͻOF33ҧ<$'GE+}'1f3y5/&Z\RB7dm]8\3߂Ȫ@oT3eu^W@e7l!B,s1$Z&?dC (YЦSm>J"&pt܈P㇄BF4G5 t^Ć$j-a㠍g^ʐCAsT=kTS,|r9IBϘЬ'vGA@thQNj&T=xt;2]P|T- LÞe1ݽWZŚ*MrH5?=o"9K5='k-*AE| qҔ_?\7%|M6f++S*}W_]3fmܮ˳m w!.R#鬪;qq71$•ݙկ_iK&JάMemV5P0> Q5WHIh&4ҍIlE7}sm[cȾ|d^ %Uv1D>.T7*=tZ_㟾1Х:=0pZ6ҋNt(uƝ; B]$kڌ.{F*/UZN砦|oqKG;^侞9NexK \wh~ZpHb䉸 [k8k.bX.QXpxYa^"#Bwnbum5F~>8bN:p4 [gv^ -BFUz)?60F8/2C8>N8G%l%5FH{46h4%# 7x oN t\'Ȩ E0#jNãVӹd?WlcW -žֵu-}22EN}#䵵2H^a3rqs-S3&f퇣fwl.=W8,cHjcTWנs90ZDMC2ZMdjt"8:g{.Ʊ1Fb618"yԦ> W9 V `jT򔔑r,ni d qN .g+ S Q KaB?_QE rjh>Eӛ;C׭7^q -`Ue#-;oJċԝ>) ;Jg׭9R;OgiI7}8Kہqjeؓ+ٗ'nϷk3eFρ0V#pMAzb^PVu~1uғwn ^.II_vdW[Q,+Lbćq 9V} ΏVw4qU3&jıHYb ttT7ρarBwP9?)uT/aA19kM -\Psq+=[5͔?9W+^o^E8s)f 2aQxi& NE>"^Naa;f9]NE& t^CLz'e8ZRs&67_ãcyJ1 @TZ?SD2 -|POӌ\dR7zH9iQ#zrc.4GR4qx<2~Xhnੳ2auBNC+kX0 aj5n>މe3vާ<>_ uH:XR%~9!4oѼ38? 1d#A&{A!i6 /Xa㇤=W;|) g~ ?*悽 }ڧKt>5|E.A Q6 (6 + $diff = new Diff($fromMatch['file'], $toMatch['file']); -6є7<9_C f1Ўi8, V4$uti,.`v6r P gFBɎ -t C3; ,oÂx| -/KMp1S_X.fV#U>Ȓ#B] AIVoІϵGTV1nr+OXS% ³fOZ[_9P߰ {Gln%#hdwH= ye/W>,IP,*MV~ºK&eċM콣=)qFS"GTF*LX,h[wweWQEx ?{^چExhiׂJH|^͓e*^Я.uxEb#;ԝ<]z]\wNhochqE=4Q17W̓lÕ6᧿HE_̣qy YR۫9~l4sVy`Uߛ,#_u+DeM~hq벇#Yz$; 5ͯ9$ z> -*jO$$O/xRtf-}*oɦ|3M;xިUl/.~XǎY4x3&x";$KI5dڭ ~w[M9O%4Q}S^t@w[Y;-s;bwH-* imI-1e/~TNN.p)H$W~ƦO -(9, ]gM6r+#%/swA$q4O> -d9}+$s?0a,>yڈs<=,c_*\D}2MT8/4g'ڦ8'}"C*\9#Y>z$7c[s|"$} ymzQx 5%o$jkp)x-:И|?ofgFr2SZq}q o,wyOgCF1l'L5T33yM92"s5uD6-JUbs -O)wR -2/5frϛf@=BFCB&'F}@&yubC?'S49+ÓCIî+f/RU C Fu:C*} T:}{ݽⲷue[!>? ڸ"M -8gz0\HkZ:h~@+#N fjyio!B R'5>`[!T`mC Iѝ}n ->W!M}Uav43)!kcȂm? dwv!ה;Xϡۨ}8vt"Ӽ# kvXJ[l[ZݙMÀXC3l[ TaVjʻѬ"œ t:(<cZveQTqHi{銀Q埓'ÖiP■mKAIBF -=Tᅽ(&TS?/؁A:ַОV(@wFa^]o]*99Ri_2vM`Pf{QYH#V7v7Ұq>@~uɘ׆Ax/xB3Ġtyb0nG` EDٍA: PwI7nW2ED}.(h"U]9Ih_V@GZ0C -pb :L 3tN*N 2!3 Cayn.ɋW`̳}QBCi 8*{57O#aTBUoi0 _^ -ChrU}~rL 1z>..=%GG o EuPPsؘ޸8Pu&;*|i&Pbțh;[|y*cVhҼ(~_AqU2GIQ3`^v=@K'ЇZ#4sJ=:sY sڥbyj S_E܃"@~>86#y[cSŬ#SJGZyvvSя扝pwaT/, -9'Jkv%%.~o[ 衧RBjSȀ*$'腁pçSu +9\_f+8u\,tpэkخJ0h(]NQvW7 86:ݣ WcY_i>"R(e]6RA%U6&F]7@̳k3X h?KQ2Bk[?..KKAb65ke+]FeWHU0Oק5 e3Hco>l]02cH9{Z {sO!A,7?ŷ3w俎A -Fj8B&8U$G$Y5FL5n1> q2.6e - +@/kb{(7i={l͍݂濦81g(%h/EfMҍt5̼vgo ~ਜ਼WKi父UأݖwRSEFT% `=|*=1*SX^w)lfQH(YSSˌK1W]f7ך^&p@T'.%3 5zaTf6A5LX̡|L-ηTg{A)F."hjA;.~o% G#}&]׾c`ChH9xnNY lc\+v\EƧ1D9KX)2b.NWQש$/|6tð32ԛ72иyu0e)Nuh'd~xY ># b"k3 :9v$ПC:)H> զz;ed\jmfOa%9cKxۥ!k%HDn{Y"{n_} -)9= _/Z(>lYVgQ#߭:Qbw$zwٮ#U?|Ghz{o$wϜ)|Vh? ZV7%Go/׆E"KӲlp76-z !l4n>$\zV?szqejQ]m^=^ !lHB4sL i9}2^K5OB)O v^~݀xrm\K&G^5CL}&FB]Kn3|sGjykObsܽaW?R6Jfh2 lBS\=jV*Y^˺^E)*\ -rr(a@6nԌ?}dLgIvqNcaƮkmLcA!hdVwc=憖s_:җsLg>1*4-%&0Ub)Eܬ*b51 ++;<`!qfM*,[/GK+{,>CLR%%c~'EGAG=h䟔8:IDN)W̻AF)ucw'qhXèL@a~6Pc2L"A2bU & 9A#QLO:E9kfKFb93tL$cˬpLz5dp۰>$`.~X=?NͰ/LPNo0p b8AR4r Jj} Ӳ04ˋquۏAFP 'HfXDIVTM7Lv\(N,/ʪnڮi^m?~ QU Ӳ04ˋquۏb$tV&gϖr>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.4",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){b&&3===b.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=c(d),f={relatedTarget:this};e.hasClass("open")&&(e.trigger(b=a.Event("hide.bs.dropdown",f)),b.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.4",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c&&c.$tip&&c.$tip.is(":visible")?void(c.hoverState="in"):(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.options.container?a(this.options.container):this.$element.parent(),p=this.getPosition(o);h="bottom"==h&&k.bottom+m>p.bottom?"top":"top"==h&&k.top-mp.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.width&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type)})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.4",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.4",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.4",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=a(document.body).height();"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);!function(){function n(n){return n&&(n.ownerDocument||n.document||n).documentElement}function t(n){return n&&(n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView)}function e(n,t){return t>n?-1:n>t?1:n>=t?0:0/0}function r(n){return null===n?0/0:+n}function u(n){return!isNaN(n)}function i(n){return{left:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n(t[i],e)<0?r=i+1:u=i}return r},right:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n(t[i],e)>0?u=i:r=i+1}return r}}}function o(n){return n.length}function a(n){for(var t=1;n*t%1;)t*=10;return t}function c(n,t){for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}function l(){this._=Object.create(null)}function s(n){return(n+="")===pa||n[0]===va?va+n:n}function f(n){return(n+="")[0]===va?n.slice(1):n}function h(n){return s(n)in this._}function g(n){return(n=s(n))in this._&&delete this._[n]}function p(){var n=[];for(var t in this._)n.push(f(t));return n}function v(){var n=0;for(var t in this._)++n;return n}function d(){for(var n in this._)return!1;return!0}function m(){this._=Object.create(null)}function y(n){return n}function M(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function x(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e=0,r=da.length;r>e;++e){var u=da[e]+t;if(u in n)return u}}function b(){}function _(){}function w(n){function t(){for(var t,r=e,u=-1,i=r.length;++ue;e++)for(var u,i=n[e],o=0,a=i.length;a>o;o++)(u=i[o])&&t(u,o,e);return n}function Z(n){return ya(n,Sa),n}function V(n){var t,e;return function(r,u,i){var o,a=n[i].update,c=a.length;for(i!=e&&(e=i,t=0),u>=t&&(t=u+1);!(o=a[t])&&++t0&&(n=n.slice(0,a));var l=ka.get(n);return l&&(n=l,c=B),a?t?u:r:t?b:i}function $(n,t){return function(e){var r=ta.event;ta.event=e,t[0]=this.__data__;try{n.apply(this,t)}finally{ta.event=r}}}function B(n,t){var e=$(n,t);return function(n){var t=this,r=n.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||e.call(t,n)}}function W(e){var r=".dragsuppress-"+ ++Aa,u="click"+r,i=ta.select(t(e)).on("touchmove"+r,S).on("dragstart"+r,S).on("selectstart"+r,S);if(null==Ea&&(Ea="onselectstart"in e?!1:x(e.style,"userSelect")),Ea){var o=n(e).style,a=o[Ea];o[Ea]="none"}return function(n){if(i.on(r,null),Ea&&(o[Ea]=a),n){var t=function(){i.on(u,null)};i.on(u,function(){S(),t()},!0),setTimeout(t,0)}}}function J(n,e){e.changedTouches&&(e=e.changedTouches[0]);var r=n.ownerSVGElement||n;if(r.createSVGPoint){var u=r.createSVGPoint();if(0>Na){var i=t(n);if(i.scrollX||i.scrollY){r=ta.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var o=r[0][0].getScreenCTM();Na=!(o.f||o.e),r.remove()}}return Na?(u.x=e.pageX,u.y=e.pageY):(u.x=e.clientX,u.y=e.clientY),u=u.matrixTransform(n.getScreenCTM().inverse()),[u.x,u.y]}var a=n.getBoundingClientRect();return[e.clientX-a.left-n.clientLeft,e.clientY-a.top-n.clientTop]}function G(){return ta.event.changedTouches[0].identifier}function K(n){return n>0?1:0>n?-1:0}function Q(n,t,e){return(t[0]-n[0])*(e[1]-n[1])-(t[1]-n[1])*(e[0]-n[0])}function nt(n){return n>1?0:-1>n?qa:Math.acos(n)}function tt(n){return n>1?Ra:-1>n?-Ra:Math.asin(n)}function et(n){return((n=Math.exp(n))-1/n)/2}function rt(n){return((n=Math.exp(n))+1/n)/2}function ut(n){return((n=Math.exp(2*n))-1)/(n+1)}function it(n){return(n=Math.sin(n/2))*n}function ot(){}function at(n,t,e){return this instanceof at?(this.h=+n,this.s=+t,void(this.l=+e)):arguments.length<2?n instanceof at?new at(n.h,n.s,n.l):bt(""+n,_t,at):new at(n,t,e)}function ct(n,t,e){function r(n){return n>360?n-=360:0>n&&(n+=360),60>n?i+(o-i)*n/60:180>n?o:240>n?i+(o-i)*(240-n)/60:i}function u(n){return Math.round(255*r(n))}var i,o;return n=isNaN(n)?0:(n%=360)<0?n+360:n,t=isNaN(t)?0:0>t?0:t>1?1:t,e=0>e?0:e>1?1:e,o=.5>=e?e*(1+t):e+t-e*t,i=2*e-o,new mt(u(n+120),u(n),u(n-120))}function lt(n,t,e){return this instanceof lt?(this.h=+n,this.c=+t,void(this.l=+e)):arguments.length<2?n instanceof lt?new lt(n.h,n.c,n.l):n instanceof ft?gt(n.l,n.a,n.b):gt((n=wt((n=ta.rgb(n)).r,n.g,n.b)).l,n.a,n.b):new lt(n,t,e)}function st(n,t,e){return isNaN(n)&&(n=0),isNaN(t)&&(t=0),new ft(e,Math.cos(n*=Da)*t,Math.sin(n)*t)}function ft(n,t,e){return this instanceof ft?(this.l=+n,this.a=+t,void(this.b=+e)):arguments.length<2?n instanceof ft?new ft(n.l,n.a,n.b):n instanceof lt?st(n.h,n.c,n.l):wt((n=mt(n)).r,n.g,n.b):new ft(n,t,e)}function ht(n,t,e){var r=(n+16)/116,u=r+t/500,i=r-e/200;return u=pt(u)*Xa,r=pt(r)*$a,i=pt(i)*Ba,new mt(dt(3.2404542*u-1.5371385*r-.4985314*i),dt(-.969266*u+1.8760108*r+.041556*i),dt(.0556434*u-.2040259*r+1.0572252*i))}function gt(n,t,e){return n>0?new lt(Math.atan2(e,t)*Pa,Math.sqrt(t*t+e*e),n):new lt(0/0,0/0,n)}function pt(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function vt(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function dt(n){return Math.round(255*(.00304>=n?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function mt(n,t,e){return this instanceof mt?(this.r=~~n,this.g=~~t,void(this.b=~~e)):arguments.length<2?n instanceof mt?new mt(n.r,n.g,n.b):bt(""+n,mt,ct):new mt(n,t,e)}function yt(n){return new mt(n>>16,n>>8&255,255&n)}function Mt(n){return yt(n)+""}function xt(n){return 16>n?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function bt(n,t,e){var r,u,i,o=0,a=0,c=0;if(r=/([a-z]+)\((.*)\)/i.exec(n))switch(u=r[2].split(","),r[1]){case"hsl":return e(parseFloat(u[0]),parseFloat(u[1])/100,parseFloat(u[2])/100);case"rgb":return t(kt(u[0]),kt(u[1]),kt(u[2]))}return(i=Ga.get(n.toLowerCase()))?t(i.r,i.g,i.b):(null==n||"#"!==n.charAt(0)||isNaN(i=parseInt(n.slice(1),16))||(4===n.length?(o=(3840&i)>>4,o=o>>4|o,a=240&i,a=a>>4|a,c=15&i,c=c<<4|c):7===n.length&&(o=(16711680&i)>>16,a=(65280&i)>>8,c=255&i)),t(o,a,c))}function _t(n,t,e){var r,u,i=Math.min(n/=255,t/=255,e/=255),o=Math.max(n,t,e),a=o-i,c=(o+i)/2;return a?(u=.5>c?a/(o+i):a/(2-o-i),r=n==o?(t-e)/a+(e>t?6:0):t==o?(e-n)/a+2:(n-t)/a+4,r*=60):(r=0/0,u=c>0&&1>c?0:r),new at(r,u,c)}function wt(n,t,e){n=St(n),t=St(t),e=St(e);var r=vt((.4124564*n+.3575761*t+.1804375*e)/Xa),u=vt((.2126729*n+.7151522*t+.072175*e)/$a),i=vt((.0193339*n+.119192*t+.9503041*e)/Ba);return ft(116*u-16,500*(r-u),200*(u-i))}function St(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function kt(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}function Et(n){return"function"==typeof n?n:function(){return n}}function At(n){return function(t,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),Nt(t,e,n,r)}}function Nt(n,t,e,r){function u(){var n,t=c.status;if(!t&&zt(c)||t>=200&&300>t||304===t){try{n=e.call(i,c)}catch(r){return void o.error.call(i,r)}o.load.call(i,n)}else o.error.call(i,c)}var i={},o=ta.dispatch("beforesend","progress","load","error"),a={},c=new XMLHttpRequest,l=null;return!this.XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(n)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=u:c.onreadystatechange=function(){c.readyState>3&&u()},c.onprogress=function(n){var t=ta.event;ta.event=n;try{o.progress.call(i,c)}finally{ta.event=t}},i.header=function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?a[n]:(null==t?delete a[n]:a[n]=t+"",i)},i.mimeType=function(n){return arguments.length?(t=null==n?null:n+"",i):t},i.responseType=function(n){return arguments.length?(l=n,i):l},i.response=function(n){return e=n,i},["get","post"].forEach(function(n){i[n]=function(){return i.send.apply(i,[n].concat(ra(arguments)))}}),i.send=function(e,r,u){if(2===arguments.length&&"function"==typeof r&&(u=r,r=null),c.open(e,n,!0),null==t||"accept"in a||(a.accept=t+",*/*"),c.setRequestHeader)for(var s in a)c.setRequestHeader(s,a[s]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=l&&(c.responseType=l),null!=u&&i.on("error",u).on("load",function(n){u(null,n)}),o.beforesend.call(i,c),c.send(null==r?null:r),i},i.abort=function(){return c.abort(),i},ta.rebind(i,o,"on"),null==r?i:i.get(Ct(r))}function Ct(n){return 1===n.length?function(t,e){n(null==t?e:null)}:n}function zt(n){var t=n.responseType;return t&&"text"!==t?n.response:n.responseText}function qt(){var n=Lt(),t=Tt()-n;t>24?(isFinite(t)&&(clearTimeout(tc),tc=setTimeout(qt,t)),nc=0):(nc=1,rc(qt))}function Lt(){var n=Date.now();for(ec=Ka;ec;)n>=ec.t&&(ec.f=ec.c(n-ec.t)),ec=ec.n;return n}function Tt(){for(var n,t=Ka,e=1/0;t;)t.f?t=n?n.n=t.n:Ka=t.n:(t.t8?function(n){return n/e}:function(n){return n*e},symbol:n}}function Pt(n){var t=n.decimal,e=n.thousands,r=n.grouping,u=n.currency,i=r&&e?function(n,t){for(var u=n.length,i=[],o=0,a=r[0],c=0;u>0&&a>0&&(c+a+1>t&&(a=Math.max(1,t-c)),i.push(n.substring(u-=a,u+a)),!((c+=a+1)>t));)a=r[o=(o+1)%r.length];return i.reverse().join(e)}:y;return function(n){var e=ic.exec(n),r=e[1]||" ",o=e[2]||">",a=e[3]||"-",c=e[4]||"",l=e[5],s=+e[6],f=e[7],h=e[8],g=e[9],p=1,v="",d="",m=!1,y=!0;switch(h&&(h=+h.substring(1)),(l||"0"===r&&"="===o)&&(l=r="0",o="="),g){case"n":f=!0,g="g";break;case"%":p=100,d="%",g="f";break;case"p":p=100,d="%",g="r";break;case"b":case"o":case"x":case"X":"#"===c&&(v="0"+g.toLowerCase());case"c":y=!1;case"d":m=!0,h=0;break;case"s":p=-1,g="r"}"$"===c&&(v=u[0],d=u[1]),"r"!=g||h||(g="g"),null!=h&&("g"==g?h=Math.max(1,Math.min(21,h)):("e"==g||"f"==g)&&(h=Math.max(0,Math.min(20,h)))),g=oc.get(g)||Ut;var M=l&&f;return function(n){var e=d;if(m&&n%1)return"";var u=0>n||0===n&&0>1/n?(n=-n,"-"):"-"===a?"":a;if(0>p){var c=ta.formatPrefix(n,h);n=c.scale(n),e=c.symbol+d}else n*=p;n=g(n,h);var x,b,_=n.lastIndexOf(".");if(0>_){var w=y?n.lastIndexOf("e"):-1;0>w?(x=n,b=""):(x=n.substring(0,w),b=n.substring(w))}else x=n.substring(0,_),b=t+n.substring(_+1);!l&&f&&(x=i(x,1/0));var S=v.length+x.length+b.length+(M?0:u.length),k=s>S?new Array(S=s-S+1).join(r):"";return M&&(x=i(k+x,k.length?s-b.length:1/0)),u+=v,n=x+b,("<"===o?u+n+k:">"===o?k+u+n:"^"===o?k.substring(0,S>>=1)+u+n+k.substring(S):u+(M?n:k+n))+e}}}function Ut(n){return n+""}function jt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Ft(n,t,e){function r(t){var e=n(t),r=i(e,1);return r-t>t-e?e:r}function u(e){return t(e=n(new cc(e-1)),1),e}function i(n,e){return t(n=new cc(+n),e),n}function o(n,r,i){var o=u(n),a=[];if(i>1)for(;r>o;)e(o)%i||a.push(new Date(+o)),t(o,1);else for(;r>o;)a.push(new Date(+o)),t(o,1);return a}function a(n,t,e){try{cc=jt;var r=new jt;return r._=n,o(r,t,e)}finally{cc=Date}}n.floor=n,n.round=r,n.ceil=u,n.offset=i,n.range=o;var c=n.utc=Ht(n);return c.floor=c,c.round=Ht(r),c.ceil=Ht(u),c.offset=Ht(i),c.range=a,n}function Ht(n){return function(t,e){try{cc=jt;var r=new jt;return r._=t,n(r,e)._}finally{cc=Date}}}function Ot(n){function t(n){function t(t){for(var e,u,i,o=[],a=-1,c=0;++aa;){if(r>=l)return-1;if(u=t.charCodeAt(a++),37===u){if(o=t.charAt(a++),i=C[o in sc?t.charAt(a++):o],!i||(r=i(n,e,r))<0)return-1}else if(u!=e.charCodeAt(r++))return-1}return r}function r(n,t,e){_.lastIndex=0;var r=_.exec(t.slice(e));return r?(n.w=w.get(r[0].toLowerCase()),e+r[0].length):-1}function u(n,t,e){x.lastIndex=0;var r=x.exec(t.slice(e));return r?(n.w=b.get(r[0].toLowerCase()),e+r[0].length):-1}function i(n,t,e){E.lastIndex=0;var r=E.exec(t.slice(e));return r?(n.m=A.get(r[0].toLowerCase()),e+r[0].length):-1}function o(n,t,e){S.lastIndex=0;var r=S.exec(t.slice(e));return r?(n.m=k.get(r[0].toLowerCase()),e+r[0].length):-1}function a(n,t,r){return e(n,N.c.toString(),t,r)}function c(n,t,r){return e(n,N.x.toString(),t,r)}function l(n,t,r){return e(n,N.X.toString(),t,r)}function s(n,t,e){var r=M.get(t.slice(e,e+=2).toLowerCase());return null==r?-1:(n.p=r,e)}var f=n.dateTime,h=n.date,g=n.time,p=n.periods,v=n.days,d=n.shortDays,m=n.months,y=n.shortMonths;t.utc=function(n){function e(n){try{cc=jt;var t=new cc;return t._=n,r(t)}finally{cc=Date}}var r=t(n);return e.parse=function(n){try{cc=jt;var t=r.parse(n);return t&&t._}finally{cc=Date}},e.toString=r.toString,e},t.multi=t.utc.multi=ae;var M=ta.map(),x=Yt(v),b=Zt(v),_=Yt(d),w=Zt(d),S=Yt(m),k=Zt(m),E=Yt(y),A=Zt(y);p.forEach(function(n,t){M.set(n.toLowerCase(),t)});var N={a:function(n){return d[n.getDay()]},A:function(n){return v[n.getDay()]},b:function(n){return y[n.getMonth()]},B:function(n){return m[n.getMonth()]},c:t(f),d:function(n,t){return It(n.getDate(),t,2)},e:function(n,t){return It(n.getDate(),t,2)},H:function(n,t){return It(n.getHours(),t,2)},I:function(n,t){return It(n.getHours()%12||12,t,2)},j:function(n,t){return It(1+ac.dayOfYear(n),t,3)},L:function(n,t){return It(n.getMilliseconds(),t,3)},m:function(n,t){return It(n.getMonth()+1,t,2)},M:function(n,t){return It(n.getMinutes(),t,2)},p:function(n){return p[+(n.getHours()>=12)]},S:function(n,t){return It(n.getSeconds(),t,2)},U:function(n,t){return It(ac.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return It(ac.mondayOfYear(n),t,2)},x:t(h),X:t(g),y:function(n,t){return It(n.getFullYear()%100,t,2)},Y:function(n,t){return It(n.getFullYear()%1e4,t,4)},Z:ie,"%":function(){return"%"}},C={a:r,A:u,b:i,B:o,c:a,d:Qt,e:Qt,H:te,I:te,j:ne,L:ue,m:Kt,M:ee,p:s,S:re,U:Xt,w:Vt,W:$t,x:c,X:l,y:Wt,Y:Bt,Z:Jt,"%":oe};return t}function It(n,t,e){var r=0>n?"-":"",u=(r?-n:n)+"",i=u.length;return r+(e>i?new Array(e-i+1).join(t)+u:u)}function Yt(n){return new RegExp("^(?:"+n.map(ta.requote).join("|")+")","i")}function Zt(n){for(var t=new l,e=-1,r=n.length;++e68?1900:2e3)}function Kt(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function Qt(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function ne(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+3));return r?(n.j=+r[0],e+r[0].length):-1}function te(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function ee(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function re(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function ue(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function ie(n){var t=n.getTimezoneOffset(),e=t>0?"-":"+",r=ga(t)/60|0,u=ga(t)%60;return e+It(r,"0",2)+It(u,"0",2)}function oe(n,t,e){hc.lastIndex=0;var r=hc.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function ae(n){for(var t=n.length,e=-1;++e=0?1:-1,a=o*e,c=Math.cos(t),l=Math.sin(t),s=i*l,f=u*c+s*Math.cos(a),h=s*o*Math.sin(a);yc.add(Math.atan2(h,f)),r=n,u=c,i=l}var t,e,r,u,i;Mc.point=function(o,a){Mc.point=n,r=(t=o)*Da,u=Math.cos(a=(e=a)*Da/2+qa/4),i=Math.sin(a)},Mc.lineEnd=function(){n(t,e)}}function pe(n){var t=n[0],e=n[1],r=Math.cos(e);return[r*Math.cos(t),r*Math.sin(t),Math.sin(e)]}function ve(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function de(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function me(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function ye(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function Me(n){var t=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function xe(n){return[Math.atan2(n[1],n[0]),tt(n[2])]}function be(n,t){return ga(n[0]-t[0])a;++a)u.point((e=n[a])[0],e[1]);return void u.lineEnd()}var c=new qe(e,n,null,!0),l=new qe(e,null,c,!1);c.o=l,i.push(c),o.push(l),c=new qe(r,n,null,!1),l=new qe(r,null,c,!0),c.o=l,i.push(c),o.push(l)}}),o.sort(t),ze(i),ze(o),i.length){for(var a=0,c=e,l=o.length;l>a;++a)o[a].e=c=!c;for(var s,f,h=i[0];;){for(var g=h,p=!0;g.v;)if((g=g.n)===h)return;s=g.z,u.lineStart();do{if(g.v=g.o.v=!0,g.e){if(p)for(var a=0,l=s.length;l>a;++a)u.point((f=s[a])[0],f[1]);else r(g.x,g.n.x,1,u);g=g.n}else{if(p){s=g.p.z;for(var a=s.length-1;a>=0;--a)u.point((f=s[a])[0],f[1])}else r(g.x,g.p.x,-1,u);g=g.p}g=g.o,s=g.z,p=!p}while(!g.v);u.lineEnd()}}}function ze(n){if(t=n.length){for(var t,e,r=0,u=n[0];++r0){for(b||(i.polygonStart(),b=!0),i.lineStart();++o1&&2&t&&e.push(e.pop().concat(e.shift())),g.push(e.filter(Te))}var g,p,v,d=t(i),m=u.invert(r[0],r[1]),y={point:o,lineStart:c,lineEnd:l,polygonStart:function(){y.point=s,y.lineStart=f,y.lineEnd=h,g=[],p=[]},polygonEnd:function(){y.point=o,y.lineStart=c,y.lineEnd=l,g=ta.merge(g);var n=Fe(m,p);g.length?(b||(i.polygonStart(),b=!0),Ce(g,De,n,e,i)):n&&(b||(i.polygonStart(),b=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),b&&(i.polygonEnd(),b=!1),g=p=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}},M=Re(),x=t(M),b=!1;return y}}function Te(n){return n.length>1}function Re(){var n,t=[];return{lineStart:function(){t.push(n=[])},point:function(t,e){n.push([t,e])},lineEnd:b,buffer:function(){var e=t;return t=[],n=null,e},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function De(n,t){return((n=n.x)[0]<0?n[1]-Ra-Ca:Ra-n[1])-((t=t.x)[0]<0?t[1]-Ra-Ca:Ra-t[1])}function Pe(n){var t,e=0/0,r=0/0,u=0/0;return{lineStart:function(){n.lineStart(),t=1},point:function(i,o){var a=i>0?qa:-qa,c=ga(i-e);ga(c-qa)0?Ra:-Ra),n.point(u,r),n.lineEnd(),n.lineStart(),n.point(a,r),n.point(i,r),t=0):u!==a&&c>=qa&&(ga(e-u)Ca?Math.atan((Math.sin(t)*(i=Math.cos(r))*Math.sin(e)-Math.sin(r)*(u=Math.cos(t))*Math.sin(n))/(u*i*o)):(t+r)/2}function je(n,t,e,r){var u;if(null==n)u=e*Ra,r.point(-qa,u),r.point(0,u),r.point(qa,u),r.point(qa,0),r.point(qa,-u),r.point(0,-u),r.point(-qa,-u),r.point(-qa,0),r.point(-qa,u);else if(ga(n[0]-t[0])>Ca){var i=n[0]a;++a){var l=t[a],s=l.length;if(s)for(var f=l[0],h=f[0],g=f[1]/2+qa/4,p=Math.sin(g),v=Math.cos(g),d=1;;){d===s&&(d=0),n=l[d];var m=n[0],y=n[1]/2+qa/4,M=Math.sin(y),x=Math.cos(y),b=m-h,_=b>=0?1:-1,w=_*b,S=w>qa,k=p*M;if(yc.add(Math.atan2(k*_*Math.sin(w),v*x+k*Math.cos(w))),i+=S?b+_*La:b,S^h>=e^m>=e){var E=de(pe(f),pe(n));Me(E);var A=de(u,E);Me(A);var N=(S^b>=0?-1:1)*tt(A[2]);(r>N||r===N&&(E[0]||E[1]))&&(o+=S^b>=0?1:-1)}if(!d++)break;h=m,p=M,v=x,f=n}}return(-Ca>i||Ca>i&&0>yc)^1&o}function He(n){function t(n,t){return Math.cos(n)*Math.cos(t)>i}function e(n){var e,i,c,l,s;return{lineStart:function(){l=c=!1,s=1},point:function(f,h){var g,p=[f,h],v=t(f,h),d=o?v?0:u(f,h):v?u(f+(0>f?qa:-qa),h):0;if(!e&&(l=c=v)&&n.lineStart(),v!==c&&(g=r(e,p),(be(e,g)||be(p,g))&&(p[0]+=Ca,p[1]+=Ca,v=t(p[0],p[1]))),v!==c)s=0,v?(n.lineStart(),g=r(p,e),n.point(g[0],g[1])):(g=r(e,p),n.point(g[0],g[1]),n.lineEnd()),e=g;else if(a&&e&&o^v){var m;d&i||!(m=r(p,e,!0))||(s=0,o?(n.lineStart(),n.point(m[0][0],m[0][1]),n.point(m[1][0],m[1][1]),n.lineEnd()):(n.point(m[1][0],m[1][1]),n.lineEnd(),n.lineStart(),n.point(m[0][0],m[0][1])))}!v||e&&be(e,p)||n.point(p[0],p[1]),e=p,c=v,i=d},lineEnd:function(){c&&n.lineEnd(),e=null},clean:function(){return s|(l&&c)<<1}}}function r(n,t,e){var r=pe(n),u=pe(t),o=[1,0,0],a=de(r,u),c=ve(a,a),l=a[0],s=c-l*l;if(!s)return!e&&n;var f=i*c/s,h=-i*l/s,g=de(o,a),p=ye(o,f),v=ye(a,h);me(p,v);var d=g,m=ve(p,d),y=ve(d,d),M=m*m-y*(ve(p,p)-1);if(!(0>M)){var x=Math.sqrt(M),b=ye(d,(-m-x)/y);if(me(b,p),b=xe(b),!e)return b;var _,w=n[0],S=t[0],k=n[1],E=t[1];w>S&&(_=w,w=S,S=_);var A=S-w,N=ga(A-qa)A;if(!N&&k>E&&(_=k,k=E,E=_),C?N?k+E>0^b[1]<(ga(b[0]-w)qa^(w<=b[0]&&b[0]<=S)){var z=ye(d,(-m+x)/y);return me(z,p),[b,xe(z)]}}}function u(t,e){var r=o?n:qa-n,u=0;return-r>t?u|=1:t>r&&(u|=2),-r>e?u|=4:e>r&&(u|=8),u}var i=Math.cos(n),o=i>0,a=ga(i)>Ca,c=gr(n,6*Da);return Le(t,e,c,o?[0,-n]:[-qa,n-qa])}function Oe(n,t,e,r){return function(u){var i,o=u.a,a=u.b,c=o.x,l=o.y,s=a.x,f=a.y,h=0,g=1,p=s-c,v=f-l;if(i=n-c,p||!(i>0)){if(i/=p,0>p){if(h>i)return;g>i&&(g=i)}else if(p>0){if(i>g)return;i>h&&(h=i)}if(i=e-c,p||!(0>i)){if(i/=p,0>p){if(i>g)return;i>h&&(h=i)}else if(p>0){if(h>i)return;g>i&&(g=i)}if(i=t-l,v||!(i>0)){if(i/=v,0>v){if(h>i)return;g>i&&(g=i)}else if(v>0){if(i>g)return;i>h&&(h=i)}if(i=r-l,v||!(0>i)){if(i/=v,0>v){if(i>g)return;i>h&&(h=i)}else if(v>0){if(h>i)return;g>i&&(g=i)}return h>0&&(u.a={x:c+h*p,y:l+h*v}),1>g&&(u.b={x:c+g*p,y:l+g*v}),u}}}}}}function Ie(n,t,e,r){function u(r,u){return ga(r[0]-n)0?0:3:ga(r[0]-e)0?2:1:ga(r[1]-t)0?1:0:u>0?3:2}function i(n,t){return o(n.x,t.x)}function o(n,t){var e=u(n,1),r=u(t,1);return e!==r?e-r:0===e?t[1]-n[1]:1===e?n[0]-t[0]:2===e?n[1]-t[1]:t[0]-n[0]}return function(a){function c(n){for(var t=0,e=d.length,r=n[1],u=0;e>u;++u)for(var i,o=1,a=d[u],c=a.length,l=a[0];c>o;++o)i=a[o],l[1]<=r?i[1]>r&&Q(l,i,n)>0&&++t:i[1]<=r&&Q(l,i,n)<0&&--t,l=i;return 0!==t}function l(i,a,c,l){var s=0,f=0;if(null==i||(s=u(i,c))!==(f=u(a,c))||o(i,a)<0^c>0){do l.point(0===s||3===s?n:e,s>1?r:t);while((s=(s+c+4)%4)!==f)}else l.point(a[0],a[1])}function s(u,i){return u>=n&&e>=u&&i>=t&&r>=i}function f(n,t){s(n,t)&&a.point(n,t)}function h(){C.point=p,d&&d.push(m=[]),S=!0,w=!1,b=_=0/0}function g(){v&&(p(y,M),x&&w&&A.rejoin(),v.push(A.buffer())),C.point=f,w&&a.lineEnd()}function p(n,t){n=Math.max(-Tc,Math.min(Tc,n)),t=Math.max(-Tc,Math.min(Tc,t));var e=s(n,t);if(d&&m.push([n,t]),S)y=n,M=t,x=e,S=!1,e&&(a.lineStart(),a.point(n,t));else if(e&&w)a.point(n,t);else{var r={a:{x:b,y:_},b:{x:n,y:t}};N(r)?(w||(a.lineStart(),a.point(r.a.x,r.a.y)),a.point(r.b.x,r.b.y),e||a.lineEnd(),k=!1):e&&(a.lineStart(),a.point(n,t),k=!1)}b=n,_=t,w=e}var v,d,m,y,M,x,b,_,w,S,k,E=a,A=Re(),N=Oe(n,t,e,r),C={point:f,lineStart:h,lineEnd:g,polygonStart:function(){a=A,v=[],d=[],k=!0},polygonEnd:function(){a=E,v=ta.merge(v);var t=c([n,r]),e=k&&t,u=v.length;(e||u)&&(a.polygonStart(),e&&(a.lineStart(),l(null,null,1,a),a.lineEnd()),u&&Ce(v,i,t,l,a),a.polygonEnd()),v=d=m=null}};return C}}function Ye(n){var t=0,e=qa/3,r=ir(n),u=r(t,e);return u.parallels=function(n){return arguments.length?r(t=n[0]*qa/180,e=n[1]*qa/180):[t/qa*180,e/qa*180]},u}function Ze(n,t){function e(n,t){var e=Math.sqrt(i-2*u*Math.sin(t))/u;return[e*Math.sin(n*=u),o-e*Math.cos(n)]}var r=Math.sin(n),u=(r+Math.sin(t))/2,i=1+r*(2*u-r),o=Math.sqrt(i)/u;return e.invert=function(n,t){var e=o-t;return[Math.atan2(n,e)/u,tt((i-(n*n+e*e)*u*u)/(2*u))]},e}function Ve(){function n(n,t){Dc+=u*n-r*t,r=n,u=t}var t,e,r,u;Hc.point=function(i,o){Hc.point=n,t=r=i,e=u=o},Hc.lineEnd=function(){n(t,e)}}function Xe(n,t){Pc>n&&(Pc=n),n>jc&&(jc=n),Uc>t&&(Uc=t),t>Fc&&(Fc=t)}function $e(){function n(n,t){o.push("M",n,",",t,i)}function t(n,t){o.push("M",n,",",t),a.point=e}function e(n,t){o.push("L",n,",",t)}function r(){a.point=n}function u(){o.push("Z")}var i=Be(4.5),o=[],a={point:n,lineStart:function(){a.point=t},lineEnd:r,polygonStart:function(){a.lineEnd=u},polygonEnd:function(){a.lineEnd=r,a.point=n},pointRadius:function(n){return i=Be(n),a},result:function(){if(o.length){var n=o.join("");return o=[],n}}};return a}function Be(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function We(n,t){_c+=n,wc+=t,++Sc}function Je(){function n(n,r){var u=n-t,i=r-e,o=Math.sqrt(u*u+i*i);kc+=o*(t+n)/2,Ec+=o*(e+r)/2,Ac+=o,We(t=n,e=r)}var t,e;Ic.point=function(r,u){Ic.point=n,We(t=r,e=u)}}function Ge(){Ic.point=We}function Ke(){function n(n,t){var e=n-r,i=t-u,o=Math.sqrt(e*e+i*i);kc+=o*(r+n)/2,Ec+=o*(u+t)/2,Ac+=o,o=u*n-r*t,Nc+=o*(r+n),Cc+=o*(u+t),zc+=3*o,We(r=n,u=t)}var t,e,r,u;Ic.point=function(i,o){Ic.point=n,We(t=r=i,e=u=o)},Ic.lineEnd=function(){n(t,e)}}function Qe(n){function t(t,e){n.moveTo(t+o,e),n.arc(t,e,o,0,La)}function e(t,e){n.moveTo(t,e),a.point=r}function r(t,e){n.lineTo(t,e)}function u(){a.point=t}function i(){n.closePath()}var o=4.5,a={point:t,lineStart:function(){a.point=e},lineEnd:u,polygonStart:function(){a.lineEnd=i},polygonEnd:function(){a.lineEnd=u,a.point=t},pointRadius:function(n){return o=n,a},result:b};return a}function nr(n){function t(n){return(a?r:e)(n)}function e(t){return rr(t,function(e,r){e=n(e,r),t.point(e[0],e[1])})}function r(t){function e(e,r){e=n(e,r),t.point(e[0],e[1])}function r(){M=0/0,S.point=i,t.lineStart()}function i(e,r){var i=pe([e,r]),o=n(e,r);u(M,x,y,b,_,w,M=o[0],x=o[1],y=e,b=i[0],_=i[1],w=i[2],a,t),t.point(M,x)}function o(){S.point=e,t.lineEnd()}function c(){r(),S.point=l,S.lineEnd=s}function l(n,t){i(f=n,h=t),g=M,p=x,v=b,d=_,m=w,S.point=i}function s(){u(M,x,y,b,_,w,g,p,f,v,d,m,a,t),S.lineEnd=o,o()}var f,h,g,p,v,d,m,y,M,x,b,_,w,S={point:e,lineStart:r,lineEnd:o,polygonStart:function(){t.polygonStart(),S.lineStart=c -},polygonEnd:function(){t.polygonEnd(),S.lineStart=r}};return S}function u(t,e,r,a,c,l,s,f,h,g,p,v,d,m){var y=s-t,M=f-e,x=y*y+M*M;if(x>4*i&&d--){var b=a+g,_=c+p,w=l+v,S=Math.sqrt(b*b+_*_+w*w),k=Math.asin(w/=S),E=ga(ga(w)-1)i||ga((y*z+M*q)/x-.5)>.3||o>a*g+c*p+l*v)&&(u(t,e,r,a,c,l,N,C,E,b/=S,_/=S,w,d,m),m.point(N,C),u(N,C,E,b,_,w,s,f,h,g,p,v,d,m))}}var i=.5,o=Math.cos(30*Da),a=16;return t.precision=function(n){return arguments.length?(a=(i=n*n)>0&&16,t):Math.sqrt(i)},t}function tr(n){var t=nr(function(t,e){return n([t*Pa,e*Pa])});return function(n){return or(t(n))}}function er(n){this.stream=n}function rr(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function ur(n){return ir(function(){return n})()}function ir(n){function t(n){return n=a(n[0]*Da,n[1]*Da),[n[0]*h+c,l-n[1]*h]}function e(n){return n=a.invert((n[0]-c)/h,(l-n[1])/h),n&&[n[0]*Pa,n[1]*Pa]}function r(){a=Ae(o=lr(m,M,x),i);var n=i(v,d);return c=g-n[0]*h,l=p+n[1]*h,u()}function u(){return s&&(s.valid=!1,s=null),t}var i,o,a,c,l,s,f=nr(function(n,t){return n=i(n,t),[n[0]*h+c,l-n[1]*h]}),h=150,g=480,p=250,v=0,d=0,m=0,M=0,x=0,b=Lc,_=y,w=null,S=null;return t.stream=function(n){return s&&(s.valid=!1),s=or(b(o,f(_(n)))),s.valid=!0,s},t.clipAngle=function(n){return arguments.length?(b=null==n?(w=n,Lc):He((w=+n)*Da),u()):w},t.clipExtent=function(n){return arguments.length?(S=n,_=n?Ie(n[0][0],n[0][1],n[1][0],n[1][1]):y,u()):S},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(g=+n[0],p=+n[1],r()):[g,p]},t.center=function(n){return arguments.length?(v=n[0]%360*Da,d=n[1]%360*Da,r()):[v*Pa,d*Pa]},t.rotate=function(n){return arguments.length?(m=n[0]%360*Da,M=n[1]%360*Da,x=n.length>2?n[2]%360*Da:0,r()):[m*Pa,M*Pa,x*Pa]},ta.rebind(t,f,"precision"),function(){return i=n.apply(this,arguments),t.invert=i.invert&&e,r()}}function or(n){return rr(n,function(t,e){n.point(t*Da,e*Da)})}function ar(n,t){return[n,t]}function cr(n,t){return[n>qa?n-La:-qa>n?n+La:n,t]}function lr(n,t,e){return n?t||e?Ae(fr(n),hr(t,e)):fr(n):t||e?hr(t,e):cr}function sr(n){return function(t,e){return t+=n,[t>qa?t-La:-qa>t?t+La:t,e]}}function fr(n){var t=sr(n);return t.invert=sr(-n),t}function hr(n,t){function e(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,l=Math.sin(t),s=l*r+a*u;return[Math.atan2(c*i-s*o,a*r-l*u),tt(s*i+c*o)]}var r=Math.cos(n),u=Math.sin(n),i=Math.cos(t),o=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,l=Math.sin(t),s=l*i-c*o;return[Math.atan2(c*i+l*o,a*r+s*u),tt(s*r-a*u)]},e}function gr(n,t){var e=Math.cos(n),r=Math.sin(n);return function(u,i,o,a){var c=o*t;null!=u?(u=pr(e,u),i=pr(e,i),(o>0?i>u:u>i)&&(u+=o*La)):(u=n+o*La,i=n-.5*c);for(var l,s=u;o>0?s>i:i>s;s-=c)a.point((l=xe([e,-r*Math.cos(s),-r*Math.sin(s)]))[0],l[1])}}function pr(n,t){var e=pe(t);e[0]-=n,Me(e);var r=nt(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Ca)%(2*Math.PI)}function vr(n,t,e){var r=ta.range(n,t-Ca,e).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function dr(n,t,e){var r=ta.range(n,t-Ca,e).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function mr(n){return n.source}function yr(n){return n.target}function Mr(n,t,e,r){var u=Math.cos(t),i=Math.sin(t),o=Math.cos(r),a=Math.sin(r),c=u*Math.cos(n),l=u*Math.sin(n),s=o*Math.cos(e),f=o*Math.sin(e),h=2*Math.asin(Math.sqrt(it(r-t)+u*o*it(e-n))),g=1/Math.sin(h),p=h?function(n){var t=Math.sin(n*=h)*g,e=Math.sin(h-n)*g,r=e*c+t*s,u=e*l+t*f,o=e*i+t*a;return[Math.atan2(u,r)*Pa,Math.atan2(o,Math.sqrt(r*r+u*u))*Pa]}:function(){return[n*Pa,t*Pa]};return p.distance=h,p}function xr(){function n(n,u){var i=Math.sin(u*=Da),o=Math.cos(u),a=ga((n*=Da)-t),c=Math.cos(a);Yc+=Math.atan2(Math.sqrt((a=o*Math.sin(a))*a+(a=r*i-e*o*c)*a),e*i+r*o*c),t=n,e=i,r=o}var t,e,r;Zc.point=function(u,i){t=u*Da,e=Math.sin(i*=Da),r=Math.cos(i),Zc.point=n},Zc.lineEnd=function(){Zc.point=Zc.lineEnd=b}}function br(n,t){function e(t,e){var r=Math.cos(t),u=Math.cos(e),i=n(r*u);return[i*u*Math.sin(t),i*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),u=t(r),i=Math.sin(u),o=Math.cos(u);return[Math.atan2(n*i,r*o),Math.asin(r&&e*i/r)]},e}function _r(n,t){function e(n,t){o>0?-Ra+Ca>t&&(t=-Ra+Ca):t>Ra-Ca&&(t=Ra-Ca);var e=o/Math.pow(u(t),i);return[e*Math.sin(i*n),o-e*Math.cos(i*n)]}var r=Math.cos(n),u=function(n){return Math.tan(qa/4+n/2)},i=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(u(t)/u(n)),o=r*Math.pow(u(n),i)/i;return i?(e.invert=function(n,t){var e=o-t,r=K(i)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/i,2*Math.atan(Math.pow(o/r,1/i))-Ra]},e):Sr}function wr(n,t){function e(n,t){var e=i-t;return[e*Math.sin(u*n),i-e*Math.cos(u*n)]}var r=Math.cos(n),u=n===t?Math.sin(n):(r-Math.cos(t))/(t-n),i=r/u+n;return ga(u)u;u++){for(;r>1&&Q(n[e[r-2]],n[e[r-1]],n[u])<=0;)--r;e[r++]=u}return e.slice(0,r)}function zr(n,t){return n[0]-t[0]||n[1]-t[1]}function qr(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function Lr(n,t,e,r){var u=n[0],i=e[0],o=t[0]-u,a=r[0]-i,c=n[1],l=e[1],s=t[1]-c,f=r[1]-l,h=(a*(c-l)-f*(u-i))/(f*o-a*s);return[u+h*o,c+h*s]}function Tr(n){var t=n[0],e=n[n.length-1];return!(t[0]-e[0]||t[1]-e[1])}function Rr(){tu(this),this.edge=this.site=this.circle=null}function Dr(n){var t=el.pop()||new Rr;return t.site=n,t}function Pr(n){Xr(n),Qc.remove(n),el.push(n),tu(n)}function Ur(n){var t=n.circle,e=t.x,r=t.cy,u={x:e,y:r},i=n.P,o=n.N,a=[n];Pr(n);for(var c=i;c.circle&&ga(e-c.circle.x)s;++s)l=a[s],c=a[s-1],Kr(l.edge,c.site,l.site,u);c=a[0],l=a[f-1],l.edge=Jr(c.site,l.site,null,u),Vr(c),Vr(l)}function jr(n){for(var t,e,r,u,i=n.x,o=n.y,a=Qc._;a;)if(r=Fr(a,o)-i,r>Ca)a=a.L;else{if(u=i-Hr(a,o),!(u>Ca)){r>-Ca?(t=a.P,e=a):u>-Ca?(t=a,e=a.N):t=e=a;break}if(!a.R){t=a;break}a=a.R}var c=Dr(n);if(Qc.insert(t,c),t||e){if(t===e)return Xr(t),e=Dr(t.site),Qc.insert(c,e),c.edge=e.edge=Jr(t.site,c.site),Vr(t),void Vr(e);if(!e)return void(c.edge=Jr(t.site,c.site));Xr(t),Xr(e);var l=t.site,s=l.x,f=l.y,h=n.x-s,g=n.y-f,p=e.site,v=p.x-s,d=p.y-f,m=2*(h*d-g*v),y=h*h+g*g,M=v*v+d*d,x={x:(d*y-g*M)/m+s,y:(h*M-v*y)/m+f};Kr(e.edge,l,p,x),c.edge=Jr(l,n,null,x),e.edge=Jr(n,p,null,x),Vr(t),Vr(e)}}function Fr(n,t){var e=n.site,r=e.x,u=e.y,i=u-t;if(!i)return r;var o=n.P;if(!o)return-1/0;e=o.site;var a=e.x,c=e.y,l=c-t;if(!l)return a;var s=a-r,f=1/i-1/l,h=s/l;return f?(-h+Math.sqrt(h*h-2*f*(s*s/(-2*l)-c+l/2+u-i/2)))/f+r:(r+a)/2}function Hr(n,t){var e=n.N;if(e)return Fr(e,t);var r=n.site;return r.y===t?r.x:1/0}function Or(n){this.site=n,this.edges=[]}function Ir(n){for(var t,e,r,u,i,o,a,c,l,s,f=n[0][0],h=n[1][0],g=n[0][1],p=n[1][1],v=Kc,d=v.length;d--;)if(i=v[d],i&&i.prepare())for(a=i.edges,c=a.length,o=0;c>o;)s=a[o].end(),r=s.x,u=s.y,l=a[++o%c].start(),t=l.x,e=l.y,(ga(r-t)>Ca||ga(u-e)>Ca)&&(a.splice(o,0,new Qr(Gr(i.site,s,ga(r-f)Ca?{x:f,y:ga(t-f)Ca?{x:ga(e-p)Ca?{x:h,y:ga(t-h)Ca?{x:ga(e-g)=-za)){var g=c*c+l*l,p=s*s+f*f,v=(f*g-l*p)/h,d=(c*p-s*g)/h,f=d+a,m=rl.pop()||new Zr;m.arc=n,m.site=u,m.x=v+o,m.y=f+Math.sqrt(v*v+d*d),m.cy=f,n.circle=m;for(var y=null,M=tl._;M;)if(m.yd||d>=a)return;if(h>p){if(i){if(i.y>=l)return}else i={x:d,y:c};e={x:d,y:l}}else{if(i){if(i.yr||r>1)if(h>p){if(i){if(i.y>=l)return}else i={x:(c-u)/r,y:c};e={x:(l-u)/r,y:l}}else{if(i){if(i.yg){if(i){if(i.x>=a)return}else i={x:o,y:r*o+u};e={x:a,y:r*a+u}}else{if(i){if(i.xi||f>o||r>h||u>g)){if(p=n.point){var p,v=t-n.x,d=e-n.y,m=v*v+d*d;if(c>m){var y=Math.sqrt(c=m);r=t-y,u=e-y,i=t+y,o=e+y,a=p}}for(var M=n.nodes,x=.5*(s+h),b=.5*(f+g),_=t>=x,w=e>=b,S=w<<1|_,k=S+4;k>S;++S)if(n=M[3&S])switch(3&S){case 0:l(n,s,f,x,b);break;case 1:l(n,x,f,h,b);break;case 2:l(n,s,b,x,g);break;case 3:l(n,x,b,h,g)}}}(n,r,u,i,o),a}function gu(n,t){n=ta.rgb(n),t=ta.rgb(t);var e=n.r,r=n.g,u=n.b,i=t.r-e,o=t.g-r,a=t.b-u;return function(n){return"#"+xt(Math.round(e+i*n))+xt(Math.round(r+o*n))+xt(Math.round(u+a*n))}}function pu(n,t){var e,r={},u={};for(e in n)e in t?r[e]=mu(n[e],t[e]):u[e]=n[e];for(e in t)e in n||(u[e]=t[e]);return function(n){for(e in r)u[e]=r[e](n);return u}}function vu(n,t){return n=+n,t=+t,function(e){return n*(1-e)+t*e}}function du(n,t){var e,r,u,i=il.lastIndex=ol.lastIndex=0,o=-1,a=[],c=[];for(n+="",t+="";(e=il.exec(n))&&(r=ol.exec(t));)(u=r.index)>i&&(u=t.slice(i,u),a[o]?a[o]+=u:a[++o]=u),(e=e[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,c.push({i:o,x:vu(e,r)})),i=ol.lastIndex;return ir;++r)a[(e=c[r]).i]=e.x(n);return a.join("")})}function mu(n,t){for(var e,r=ta.interpolators.length;--r>=0&&!(e=ta.interpolators[r](n,t)););return e}function yu(n,t){var e,r=[],u=[],i=n.length,o=t.length,a=Math.min(n.length,t.length);for(e=0;a>e;++e)r.push(mu(n[e],t[e]));for(;i>e;++e)u[e]=n[e];for(;o>e;++e)u[e]=t[e];return function(n){for(e=0;a>e;++e)u[e]=r[e](n);return u}}function Mu(n){return function(t){return 0>=t?0:t>=1?1:n(t)}}function xu(n){return function(t){return 1-n(1-t)}}function bu(n){return function(t){return.5*(.5>t?n(2*t):2-n(2-2*t))}}function _u(n){return n*n}function wu(n){return n*n*n}function Su(n){if(0>=n)return 0;if(n>=1)return 1;var t=n*n,e=t*n;return 4*(.5>n?e:3*(n-t)+e-.75)}function ku(n){return function(t){return Math.pow(t,n)}}function Eu(n){return 1-Math.cos(n*Ra)}function Au(n){return Math.pow(2,10*(n-1))}function Nu(n){return 1-Math.sqrt(1-n*n)}function Cu(n,t){var e;return arguments.length<2&&(t=.45),arguments.length?e=t/La*Math.asin(1/n):(n=1,e=t/4),function(r){return 1+n*Math.pow(2,-10*r)*Math.sin((r-e)*La/t)}}function zu(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function qu(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function Lu(n,t){n=ta.hcl(n),t=ta.hcl(t);var e=n.h,r=n.c,u=n.l,i=t.h-e,o=t.c-r,a=t.l-u;return isNaN(o)&&(o=0,r=isNaN(r)?t.c:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return st(e+i*n,r+o*n,u+a*n)+""}}function Tu(n,t){n=ta.hsl(n),t=ta.hsl(t);var e=n.h,r=n.s,u=n.l,i=t.h-e,o=t.s-r,a=t.l-u;return isNaN(o)&&(o=0,r=isNaN(r)?t.s:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return ct(e+i*n,r+o*n,u+a*n)+""}}function Ru(n,t){n=ta.lab(n),t=ta.lab(t);var e=n.l,r=n.a,u=n.b,i=t.l-e,o=t.a-r,a=t.b-u;return function(n){return ht(e+i*n,r+o*n,u+a*n)+""}}function Du(n,t){return t-=n,function(e){return Math.round(n+t*e)}}function Pu(n){var t=[n.a,n.b],e=[n.c,n.d],r=ju(t),u=Uu(t,e),i=ju(Fu(e,t,-u))||0;t[0]*e[1]180?s+=360:s-l>180&&(l+=360),u.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:vu(l,s)})):s&&r.push(r.pop()+"rotate("+s+")"),f!=h?u.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:vu(f,h)}):h&&r.push(r.pop()+"skewX("+h+")"),g[0]!=p[0]||g[1]!=p[1]?(e=r.push(r.pop()+"scale(",null,",",null,")"),u.push({i:e-4,x:vu(g[0],p[0])},{i:e-2,x:vu(g[1],p[1])})):(1!=p[0]||1!=p[1])&&r.push(r.pop()+"scale("+p+")"),e=u.length,function(n){for(var t,i=-1;++i=0;)e.push(u[r])}function Qu(n,t){for(var e=[n],r=[];null!=(n=e.pop());)if(r.push(n),(i=n.children)&&(u=i.length))for(var u,i,o=-1;++oe;++e)(t=n[e][1])>u&&(r=e,u=t);return r}function si(n){return n.reduce(fi,0)}function fi(n,t){return n+t[1]}function hi(n,t){return gi(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function gi(n,t){for(var e=-1,r=+n[0],u=(n[1]-r)/t,i=[];++e<=t;)i[e]=u*e+r;return i}function pi(n){return[ta.min(n),ta.max(n)]}function vi(n,t){return n.value-t.value}function di(n,t){var e=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=e,e._pack_prev=t}function mi(n,t){n._pack_next=t,t._pack_prev=n}function yi(n,t){var e=t.x-n.x,r=t.y-n.y,u=n.r+t.r;return.999*u*u>e*e+r*r}function Mi(n){function t(n){s=Math.min(n.x-n.r,s),f=Math.max(n.x+n.r,f),h=Math.min(n.y-n.r,h),g=Math.max(n.y+n.r,g)}if((e=n.children)&&(l=e.length)){var e,r,u,i,o,a,c,l,s=1/0,f=-1/0,h=1/0,g=-1/0;if(e.forEach(xi),r=e[0],r.x=-r.r,r.y=0,t(r),l>1&&(u=e[1],u.x=u.r,u.y=0,t(u),l>2))for(i=e[2],wi(r,u,i),t(i),di(r,i),r._pack_prev=i,di(i,u),u=r._pack_next,o=3;l>o;o++){wi(r,u,i=e[o]);var p=0,v=1,d=1;for(a=u._pack_next;a!==u;a=a._pack_next,v++)if(yi(a,i)){p=1;break}if(1==p)for(c=r._pack_prev;c!==a._pack_prev&&!yi(c,i);c=c._pack_prev,d++);p?(d>v||v==d&&u.ro;o++)i=e[o],i.x-=m,i.y-=y,M=Math.max(M,i.r+Math.sqrt(i.x*i.x+i.y*i.y));n.r=M,e.forEach(bi)}}function xi(n){n._pack_next=n._pack_prev=n}function bi(n){delete n._pack_next,delete n._pack_prev}function _i(n,t,e,r){var u=n.children;if(n.x=t+=r*n.x,n.y=e+=r*n.y,n.r*=r,u)for(var i=-1,o=u.length;++i=0;)t=u[i],t.z+=e,t.m+=e,e+=t.s+(r+=t.c)}function Ci(n,t,e){return n.a.parent===t.parent?n.a:e}function zi(n){return 1+ta.max(n,function(n){return n.y})}function qi(n){return n.reduce(function(n,t){return n+t.x},0)/n.length}function Li(n){var t=n.children;return t&&t.length?Li(t[0]):n}function Ti(n){var t,e=n.children;return e&&(t=e.length)?Ti(e[t-1]):n}function Ri(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function Di(n,t){var e=n.x+t[3],r=n.y+t[0],u=n.dx-t[1]-t[3],i=n.dy-t[0]-t[2];return 0>u&&(e+=u/2,u=0),0>i&&(r+=i/2,i=0),{x:e,y:r,dx:u,dy:i}}function Pi(n){var t=n[0],e=n[n.length-1];return e>t?[t,e]:[e,t]}function Ui(n){return n.rangeExtent?n.rangeExtent():Pi(n.range())}function ji(n,t,e,r){var u=e(n[0],n[1]),i=r(t[0],t[1]);return function(n){return i(u(n))}}function Fi(n,t){var e,r=0,u=n.length-1,i=n[r],o=n[u];return i>o&&(e=r,r=u,u=e,e=i,i=o,o=e),n[r]=t.floor(i),n[u]=t.ceil(o),n}function Hi(n){return n?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:ml}function Oi(n,t,e,r){var u=[],i=[],o=0,a=Math.min(n.length,t.length)-1;for(n[a]2?Oi:ji,c=r?Iu:Ou;return o=u(n,t,c,e),a=u(t,n,c,mu),i}function i(n){return o(n)}var o,a;return i.invert=function(n){return a(n)},i.domain=function(t){return arguments.length?(n=t.map(Number),u()):n},i.range=function(n){return arguments.length?(t=n,u()):t},i.rangeRound=function(n){return i.range(n).interpolate(Du)},i.clamp=function(n){return arguments.length?(r=n,u()):r},i.interpolate=function(n){return arguments.length?(e=n,u()):e},i.ticks=function(t){return Xi(n,t)},i.tickFormat=function(t,e){return $i(n,t,e)},i.nice=function(t){return Zi(n,t),u()},i.copy=function(){return Ii(n,t,e,r)},u()}function Yi(n,t){return ta.rebind(n,t,"range","rangeRound","interpolate","clamp")}function Zi(n,t){return Fi(n,Hi(Vi(n,t)[2]))}function Vi(n,t){null==t&&(t=10);var e=Pi(n),r=e[1]-e[0],u=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*u;return.15>=i?u*=10:.35>=i?u*=5:.75>=i&&(u*=2),e[0]=Math.ceil(e[0]/u)*u,e[1]=Math.floor(e[1]/u)*u+.5*u,e[2]=u,e}function Xi(n,t){return ta.range.apply(ta,Vi(n,t))}function $i(n,t,e){var r=Vi(n,t);if(e){var u=ic.exec(e);if(u.shift(),"s"===u[8]){var i=ta.formatPrefix(Math.max(ga(r[0]),ga(r[1])));return u[7]||(u[7]="."+Bi(i.scale(r[2]))),u[8]="f",e=ta.format(u.join("")),function(n){return e(i.scale(n))+i.symbol}}u[7]||(u[7]="."+Wi(u[8],r)),e=u.join("")}else e=",."+Bi(r[2])+"f";return ta.format(e)}function Bi(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}function Wi(n,t){var e=Bi(t[2]);return n in yl?Math.abs(e-Bi(Math.max(ga(t[0]),ga(t[1]))))+ +("e"!==n):e-2*("%"===n)}function Ji(n,t,e,r){function u(n){return(e?Math.log(0>n?0:n):-Math.log(n>0?0:-n))/Math.log(t)}function i(n){return e?Math.pow(t,n):-Math.pow(t,-n)}function o(t){return n(u(t))}return o.invert=function(t){return i(n.invert(t))},o.domain=function(t){return arguments.length?(e=t[0]>=0,n.domain((r=t.map(Number)).map(u)),o):r},o.base=function(e){return arguments.length?(t=+e,n.domain(r.map(u)),o):t},o.nice=function(){var t=Fi(r.map(u),e?Math:xl);return n.domain(t),r=t.map(i),o},o.ticks=function(){var n=Pi(r),o=[],a=n[0],c=n[1],l=Math.floor(u(a)),s=Math.ceil(u(c)),f=t%1?2:t;if(isFinite(s-l)){if(e){for(;s>l;l++)for(var h=1;f>h;h++)o.push(i(l)*h);o.push(i(l))}else for(o.push(i(l));l++0;h--)o.push(i(l)*h);for(l=0;o[l]c;s--);o=o.slice(l,s)}return o},o.tickFormat=function(n,t){if(!arguments.length)return Ml;arguments.length<2?t=Ml:"function"!=typeof t&&(t=ta.format(t));var r,a=Math.max(.1,n/o.ticks().length),c=e?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(n){return n/i(c(u(n)+r))<=a?t(n):""}},o.copy=function(){return Ji(n.copy(),t,e,r)},Yi(o,n)}function Gi(n,t,e){function r(t){return n(u(t))}var u=Ki(t),i=Ki(1/t);return r.invert=function(t){return i(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain((e=t.map(Number)).map(u)),r):e},r.ticks=function(n){return Xi(e,n)},r.tickFormat=function(n,t){return $i(e,n,t)},r.nice=function(n){return r.domain(Zi(e,n))},r.exponent=function(o){return arguments.length?(u=Ki(t=o),i=Ki(1/t),n.domain(e.map(u)),r):t},r.copy=function(){return Gi(n.copy(),t,e)},Yi(r,n)}function Ki(n){return function(t){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}}function Qi(n,t){function e(e){return i[((u.get(e)||("range"===t.t?u.set(e,n.push(e)):0/0))-1)%i.length]}function r(t,e){return ta.range(n.length).map(function(n){return t+e*n})}var u,i,o;return e.domain=function(r){if(!arguments.length)return n;n=[],u=new l;for(var i,o=-1,a=r.length;++oe?[0/0,0/0]:[e>0?a[e-1]:n[0],et?0/0:t/i+n,[t,t+1/i]},r.copy=function(){return to(n,t,e)},u()}function eo(n,t){function e(e){return e>=e?t[ta.bisect(n,e)]:void 0}return e.domain=function(t){return arguments.length?(n=t,e):n},e.range=function(n){return arguments.length?(t=n,e):t},e.invertExtent=function(e){return e=t.indexOf(e),[n[e-1],n[e]]},e.copy=function(){return eo(n,t)},e}function ro(n){function t(n){return+n}return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=e.map(t),t):n},t.ticks=function(t){return Xi(n,t)},t.tickFormat=function(t,e){return $i(n,t,e)},t.copy=function(){return ro(n)},t}function uo(){return 0}function io(n){return n.innerRadius}function oo(n){return n.outerRadius}function ao(n){return n.startAngle}function co(n){return n.endAngle}function lo(n){return n&&n.padAngle}function so(n,t,e,r){return(n-e)*t-(t-r)*n>0?0:1}function fo(n,t,e,r,u){var i=n[0]-t[0],o=n[1]-t[1],a=(u?r:-r)/Math.sqrt(i*i+o*o),c=a*o,l=-a*i,s=n[0]+c,f=n[1]+l,h=t[0]+c,g=t[1]+l,p=(s+h)/2,v=(f+g)/2,d=h-s,m=g-f,y=d*d+m*m,M=e-r,x=s*g-h*f,b=(0>m?-1:1)*Math.sqrt(M*M*y-x*x),_=(x*m-d*b)/y,w=(-x*d-m*b)/y,S=(x*m+d*b)/y,k=(-x*d+m*b)/y,E=_-p,A=w-v,N=S-p,C=k-v;return E*E+A*A>N*N+C*C&&(_=S,w=k),[[_-c,w-l],[_*e/M,w*e/M]]}function ho(n){function t(t){function o(){l.push("M",i(n(s),a))}for(var c,l=[],s=[],f=-1,h=t.length,g=Et(e),p=Et(r);++f1&&u.push("H",r[0]),u.join("")}function mo(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t1){a=t[1],i=n[c],c++,r+="C"+(u[0]+o[0])+","+(u[1]+o[1])+","+(i[0]-a[0])+","+(i[1]-a[1])+","+i[0]+","+i[1];for(var l=2;l9&&(u=3*t/Math.sqrt(u),o[a]=u*e,o[a+1]=u*r));for(a=-1;++a<=c;)u=(n[Math.min(c,a+1)][0]-n[Math.max(0,a-1)][0])/(6*(1+o[a]*o[a])),i.push([u||0,o[a]*u||0]);return i}function To(n){return n.length<3?go(n):n[0]+_o(n,Lo(n))}function Ro(n){for(var t,e,r,u=-1,i=n.length;++ur)return s();var u=i[i.active];u&&(--i.count,delete i[i.active],u.event&&u.event.interrupt.call(n,n.__data__,u.index)),i.active=r,o.event&&o.event.start.call(n,n.__data__,t),o.tween.forEach(function(e,r){(r=r.call(n,n.__data__,t))&&v.push(r)}),h=o.ease,f=o.duration,ta.timer(function(){return p.c=l(e||1)?Ne:l,1},0,a)}function l(e){if(i.active!==r)return 1;for(var u=e/f,a=h(u),c=v.length;c>0;)v[--c].call(n,a);return u>=1?(o.event&&o.event.end.call(n,n.__data__,t),s()):void 0}function s(){return--i.count?delete i[r]:delete n[e],1}var f,h,g=o.delay,p=ec,v=[];return p.t=g+a,u>=g?c(u-g):void(p.c=c)},0,a)}}function Bo(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate("+(isFinite(r)?r:e(n))+",0)"})}function Wo(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate(0,"+(isFinite(r)?r:e(n))+")"})}function Jo(n){return n.toISOString()}function Go(n,t,e){function r(t){return n(t)}function u(n,e){var r=n[1]-n[0],u=r/e,i=ta.bisect(Vl,u);return i==Vl.length?[t.year,Vi(n.map(function(n){return n/31536e6}),e)[2]]:i?t[u/Vl[i-1]1?{floor:function(t){for(;e(t=n.floor(t));)t=Ko(t-1);return t},ceil:function(t){for(;e(t=n.ceil(t));)t=Ko(+t+1);return t}}:n))},r.ticks=function(n,t){var e=Pi(r.domain()),i=null==n?u(e,10):"number"==typeof n?u(e,n):!n.range&&[{range:n},t];return i&&(n=i[0],t=i[1]),n.range(e[0],Ko(+e[1]+1),1>t?1:t)},r.tickFormat=function(){return e},r.copy=function(){return Go(n.copy(),t,e)},Yi(r,n)}function Ko(n){return new Date(n)}function Qo(n){return JSON.parse(n.responseText)}function na(n){var t=ua.createRange();return t.selectNode(ua.body),t.createContextualFragment(n.responseText)}var ta={version:"3.5.5"},ea=[].slice,ra=function(n){return ea.call(n)},ua=this.document;if(ua)try{ra(ua.documentElement.childNodes)[0].nodeType}catch(ia){ra=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}if(Date.now||(Date.now=function(){return+new Date}),ua)try{ua.createElement("DIV").style.setProperty("opacity",0,"")}catch(oa){var aa=this.Element.prototype,ca=aa.setAttribute,la=aa.setAttributeNS,sa=this.CSSStyleDeclaration.prototype,fa=sa.setProperty;aa.setAttribute=function(n,t){ca.call(this,n,t+"")},aa.setAttributeNS=function(n,t,e){la.call(this,n,t,e+"")},sa.setProperty=function(n,t,e){fa.call(this,n,t+"",e)}}ta.ascending=e,ta.descending=function(n,t){return n>t?-1:t>n?1:t>=n?0:0/0},ta.min=function(n,t){var e,r,u=-1,i=n.length;if(1===arguments.length){for(;++u=r){e=r;break}for(;++ur&&(e=r)}else{for(;++u=r){e=r;break}for(;++ur&&(e=r)}return e},ta.max=function(n,t){var e,r,u=-1,i=n.length;if(1===arguments.length){for(;++u=r){e=r;break}for(;++ue&&(e=r)}else{for(;++u=r){e=r;break}for(;++ue&&(e=r)}return e},ta.extent=function(n,t){var e,r,u,i=-1,o=n.length;if(1===arguments.length){for(;++i=r){e=u=r;break}for(;++ir&&(e=r),r>u&&(u=r))}else{for(;++i=r){e=u=r;break}for(;++ir&&(e=r),r>u&&(u=r))}return[e,u]},ta.sum=function(n,t){var e,r=0,i=n.length,o=-1;if(1===arguments.length)for(;++o1?c/(s-1):void 0},ta.deviation=function(){var n=ta.variance.apply(this,arguments);return n?Math.sqrt(n):n};var ha=i(e);ta.bisectLeft=ha.left,ta.bisect=ta.bisectRight=ha.right,ta.bisector=function(n){return i(1===n.length?function(t,r){return e(n(t),r)}:n)},ta.shuffle=function(n,t,e){(i=arguments.length)<3&&(e=n.length,2>i&&(t=0));for(var r,u,i=e-t;i;)u=Math.random()*i--|0,r=n[i+t],n[i+t]=n[u+t],n[u+t]=r;return n},ta.permute=function(n,t){for(var e=t.length,r=new Array(e);e--;)r[e]=n[t[e]];return r},ta.pairs=function(n){for(var t,e=0,r=n.length-1,u=n[0],i=new Array(0>r?0:r);r>e;)i[e]=[t=u,u=n[++e]];return i},ta.zip=function(){if(!(r=arguments.length))return[];for(var n=-1,t=ta.min(arguments,o),e=new Array(t);++n=0;)for(r=n[u],t=r.length;--t>=0;)e[--o]=r[t];return e};var ga=Math.abs;ta.range=function(n,t,e){if(arguments.length<3&&(e=1,arguments.length<2&&(t=n,n=0)),(t-n)/e===1/0)throw new Error("infinite range");var r,u=[],i=a(ga(e)),o=-1;if(n*=i,t*=i,e*=i,0>e)for(;(r=n+e*++o)>t;)u.push(r/i);else for(;(r=n+e*++o)=i.length)return r?r.call(u,o):e?o.sort(e):o;for(var c,s,f,h,g=-1,p=o.length,v=i[a++],d=new l;++g=i.length)return n;var r=[],u=o[e++];return n.forEach(function(n,u){r.push({key:n,values:t(u,e)})}),u?r.sort(function(n,t){return u(n.key,t.key)}):r}var e,r,u={},i=[],o=[];return u.map=function(t,e){return n(e,t,0)},u.entries=function(e){return t(n(ta.map,e,0),0)},u.key=function(n){return i.push(n),u},u.sortKeys=function(n){return o[i.length-1]=n,u},u.sortValues=function(n){return e=n,u},u.rollup=function(n){return r=n,u},u},ta.set=function(n){var t=new m;if(n)for(var e=0,r=n.length;r>e;++e)t.add(n[e]);return t},c(m,{has:h,add:function(n){return this._[s(n+="")]=!0,n},remove:g,values:p,size:v,empty:d,forEach:function(n){for(var t in this._)n.call(this,f(t))}}),ta.behavior={},ta.rebind=function(n,t){for(var e,r=1,u=arguments.length;++r=0&&(r=n.slice(e+1),n=n.slice(0,e)),n)return arguments.length<2?this[n].on(r):this[n].on(r,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(r,null);return this}},ta.event=null,ta.requote=function(n){return n.replace(ma,"\\$&")};var ma=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,ya={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)n[e]=t[e]},Ma=function(n,t){return t.querySelector(n)},xa=function(n,t){return t.querySelectorAll(n)},ba=function(n,t){var e=n.matches||n[x(n,"matchesSelector")];return(ba=function(n,t){return e.call(n,t)})(n,t)};"function"==typeof Sizzle&&(Ma=function(n,t){return Sizzle(n,t)[0]||null},xa=Sizzle,ba=Sizzle.matchesSelector),ta.selection=function(){return ta.select(ua.documentElement)};var _a=ta.selection.prototype=[];_a.select=function(n){var t,e,r,u,i=[];n=N(n);for(var o=-1,a=this.length;++o=0&&(e=n.slice(0,t),n=n.slice(t+1)),wa.hasOwnProperty(e)?{space:wa[e],local:n}:n}},_a.attr=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node();return n=ta.ns.qualify(n),n.local?e.getAttributeNS(n.space,n.local):e.getAttribute(n)}for(t in n)this.each(z(t,n[t]));return this}return this.each(z(n,t))},_a.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node(),r=(n=T(n)).length,u=-1;if(t=e.classList){for(;++uu){if("string"!=typeof n){2>u&&(e="");for(r in n)this.each(P(r,n[r],e));return this}if(2>u){var i=this.node();return t(i).getComputedStyle(i,null).getPropertyValue(n)}r=""}return this.each(P(n,e,r))},_a.property=function(n,t){if(arguments.length<2){if("string"==typeof n)return this.node()[n];for(t in n)this.each(U(t,n[t]));return this}return this.each(U(n,t))},_a.text=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}:null==n?function(){this.textContent=""}:function(){this.textContent=n}):this.node().textContent},_a.html=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}:null==n?function(){this.innerHTML=""}:function(){this.innerHTML=n}):this.node().innerHTML},_a.append=function(n){return n=j(n),this.select(function(){return this.appendChild(n.apply(this,arguments))})},_a.insert=function(n,t){return n=j(n),t=N(t),this.select(function(){return this.insertBefore(n.apply(this,arguments),t.apply(this,arguments)||null)})},_a.remove=function(){return this.each(F)},_a.data=function(n,t){function e(n,e){var r,u,i,o=n.length,f=e.length,h=Math.min(o,f),g=new Array(f),p=new Array(f),v=new Array(o);if(t){var d,m=new l,y=new Array(o);for(r=-1;++rr;++r)p[r]=H(e[r]);for(;o>r;++r)v[r]=n[r]}p.update=g,p.parentNode=g.parentNode=v.parentNode=n.parentNode,a.push(p),c.push(g),s.push(v)}var r,u,i=-1,o=this.length;if(!arguments.length){for(n=new Array(o=(r=this[0]).length);++ii;i++){u.push(t=[]),t.parentNode=(e=this[i]).parentNode;for(var a=0,c=e.length;c>a;a++)(r=e[a])&&n.call(r,r.__data__,a,i)&&t.push(r)}return A(u)},_a.order=function(){for(var n=-1,t=this.length;++n=0;)(e=r[u])&&(i&&i!==e.nextSibling&&i.parentNode.insertBefore(e,i),i=e);return this},_a.sort=function(n){n=I.apply(this,arguments);for(var t=-1,e=this.length;++tn;n++)for(var e=this[n],r=0,u=e.length;u>r;r++){var i=e[r];if(i)return i}return null},_a.size=function(){var n=0;return Y(this,function(){++n}),n};var Sa=[];ta.selection.enter=Z,ta.selection.enter.prototype=Sa,Sa.append=_a.append,Sa.empty=_a.empty,Sa.node=_a.node,Sa.call=_a.call,Sa.size=_a.size,Sa.select=function(n){for(var t,e,r,u,i,o=[],a=-1,c=this.length;++ar){if("string"!=typeof n){2>r&&(t=!1);for(e in n)this.each(X(e,n[e],t));return this}if(2>r)return(r=this.node()["__on"+n])&&r._;e=!1}return this.each(X(n,t,e))};var ka=ta.map({mouseenter:"mouseover",mouseleave:"mouseout"});ua&&ka.forEach(function(n){"on"+n in ua&&ka.remove(n)});var Ea,Aa=0;ta.mouse=function(n){return J(n,k())};var Na=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;ta.touch=function(n,t,e){if(arguments.length<3&&(e=t,t=k().changedTouches),t)for(var r,u=0,i=t.length;i>u;++u)if((r=t[u]).identifier===e)return J(n,r)},ta.behavior.drag=function(){function n(){this.on("mousedown.drag",i).on("touchstart.drag",o)}function e(n,t,e,i,o){return function(){function a(){var n,e,r=t(h,v);r&&(n=r[0]-M[0],e=r[1]-M[1],p|=n|e,M=r,g({type:"drag",x:r[0]+l[0],y:r[1]+l[1],dx:n,dy:e}))}function c(){t(h,v)&&(m.on(i+d,null).on(o+d,null),y(p&&ta.event.target===f),g({type:"dragend"}))}var l,s=this,f=ta.event.target,h=s.parentNode,g=r.of(s,arguments),p=0,v=n(),d=".drag"+(null==v?"":"-"+v),m=ta.select(e(f)).on(i+d,a).on(o+d,c),y=W(f),M=t(h,v);u?(l=u.apply(s,arguments),l=[l.x-M[0],l.y-M[1]]):l=[0,0],g({type:"dragstart"})}}var r=E(n,"drag","dragstart","dragend"),u=null,i=e(b,ta.mouse,t,"mousemove","mouseup"),o=e(G,ta.touch,y,"touchmove","touchend");return n.origin=function(t){return arguments.length?(u=t,n):u},ta.rebind(n,r,"on")},ta.touches=function(n,t){return arguments.length<2&&(t=k().touches),t?ra(t).map(function(t){var e=J(n,t);return e.identifier=t.identifier,e}):[]};var Ca=1e-6,za=Ca*Ca,qa=Math.PI,La=2*qa,Ta=La-Ca,Ra=qa/2,Da=qa/180,Pa=180/qa,Ua=Math.SQRT2,ja=2,Fa=4;ta.interpolateZoom=function(n,t){function e(n){var t=n*y;if(m){var e=rt(v),o=i/(ja*h)*(e*ut(Ua*t+v)-et(v));return[r+o*l,u+o*s,i*e/rt(Ua*t+v)]}return[r+n*l,u+n*s,i*Math.exp(Ua*t)]}var r=n[0],u=n[1],i=n[2],o=t[0],a=t[1],c=t[2],l=o-r,s=a-u,f=l*l+s*s,h=Math.sqrt(f),g=(c*c-i*i+Fa*f)/(2*i*ja*h),p=(c*c-i*i-Fa*f)/(2*c*ja*h),v=Math.log(Math.sqrt(g*g+1)-g),d=Math.log(Math.sqrt(p*p+1)-p),m=d-v,y=(m||Math.log(c/i))/Ua;return e.duration=1e3*y,e},ta.behavior.zoom=function(){function n(n){n.on(q,f).on(Oa+".zoom",g).on("dblclick.zoom",p).on(R,h)}function e(n){return[(n[0]-k.x)/k.k,(n[1]-k.y)/k.k]}function r(n){return[n[0]*k.k+k.x,n[1]*k.k+k.y]}function u(n){k.k=Math.max(N[0],Math.min(N[1],n))}function i(n,t){t=r(t),k.x+=n[0]-t[0],k.y+=n[1]-t[1]}function o(t,e,r,o){t.__chart__={x:k.x,y:k.y,k:k.k},u(Math.pow(2,o)),i(d=e,r),t=ta.select(t),C>0&&(t=t.transition().duration(C)),t.call(n.event)}function a(){b&&b.domain(x.range().map(function(n){return(n-k.x)/k.k}).map(x.invert)),w&&w.domain(_.range().map(function(n){return(n-k.y)/k.k}).map(_.invert))}function c(n){z++||n({type:"zoomstart"})}function l(n){a(),n({type:"zoom",scale:k.k,translate:[k.x,k.y]})}function s(n){--z||n({type:"zoomend"}),d=null}function f(){function n(){f=1,i(ta.mouse(u),g),l(a)}function r(){h.on(L,null).on(T,null),p(f&&ta.event.target===o),s(a)}var u=this,o=ta.event.target,a=D.of(u,arguments),f=0,h=ta.select(t(u)).on(L,n).on(T,r),g=e(ta.mouse(u)),p=W(u);Dl.call(u),c(a)}function h(){function n(){var n=ta.touches(p);return g=k.k,n.forEach(function(n){n.identifier in d&&(d[n.identifier]=e(n))}),n}function t(){var t=ta.event.target;ta.select(t).on(x,r).on(b,a),_.push(t);for(var e=ta.event.changedTouches,u=0,i=e.length;i>u;++u)d[e[u].identifier]=null;var c=n(),l=Date.now();if(1===c.length){if(500>l-M){var s=c[0];o(p,s,d[s.identifier],Math.floor(Math.log(k.k)/Math.LN2)+1),S()}M=l}else if(c.length>1){var s=c[0],f=c[1],h=s[0]-f[0],g=s[1]-f[1];m=h*h+g*g}}function r(){var n,t,e,r,o=ta.touches(p);Dl.call(p);for(var a=0,c=o.length;c>a;++a,r=null)if(e=o[a],r=d[e.identifier]){if(t)break;n=e,t=r}if(r){var s=(s=e[0]-n[0])*s+(s=e[1]-n[1])*s,f=m&&Math.sqrt(s/m);n=[(n[0]+e[0])/2,(n[1]+e[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],u(f*g)}M=null,i(n,t),l(v)}function a(){if(ta.event.touches.length){for(var t=ta.event.changedTouches,e=0,r=t.length;r>e;++e)delete d[t[e].identifier];for(var u in d)return void n()}ta.selectAll(_).on(y,null),w.on(q,f).on(R,h),E(),s(v)}var g,p=this,v=D.of(p,arguments),d={},m=0,y=".zoom-"+ta.event.changedTouches[0].identifier,x="touchmove"+y,b="touchend"+y,_=[],w=ta.select(p),E=W(p);t(),c(v),w.on(q,null).on(R,t)}function g(){var n=D.of(this,arguments);y?clearTimeout(y):(v=e(d=m||ta.mouse(this)),Dl.call(this),c(n)),y=setTimeout(function(){y=null,s(n)},50),S(),u(Math.pow(2,.002*Ha())*k.k),i(d,v),l(n)}function p(){var n=ta.mouse(this),t=Math.log(k.k)/Math.LN2;o(this,n,e(n),ta.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}var v,d,m,y,M,x,b,_,w,k={x:0,y:0,k:1},A=[960,500],N=Ia,C=250,z=0,q="mousedown.zoom",L="mousemove.zoom",T="mouseup.zoom",R="touchstart.zoom",D=E(n,"zoomstart","zoom","zoomend");return Oa||(Oa="onwheel"in ua?(Ha=function(){return-ta.event.deltaY*(ta.event.deltaMode?120:1)},"wheel"):"onmousewheel"in ua?(Ha=function(){return ta.event.wheelDelta},"mousewheel"):(Ha=function(){return-ta.event.detail},"MozMousePixelScroll")),n.event=function(n){n.each(function(){var n=D.of(this,arguments),t=k;Tl?ta.select(this).transition().each("start.zoom",function(){k=this.__chart__||{x:0,y:0,k:1},c(n)}).tween("zoom:zoom",function(){var e=A[0],r=A[1],u=d?d[0]:e/2,i=d?d[1]:r/2,o=ta.interpolateZoom([(u-k.x)/k.k,(i-k.y)/k.k,e/k.k],[(u-t.x)/t.k,(i-t.y)/t.k,e/t.k]);return function(t){var r=o(t),a=e/r[2];this.__chart__=k={x:u-r[0]*a,y:i-r[1]*a,k:a},l(n)}}).each("interrupt.zoom",function(){s(n)}).each("end.zoom",function(){s(n)}):(this.__chart__=k,c(n),l(n),s(n))})},n.translate=function(t){return arguments.length?(k={x:+t[0],y:+t[1],k:k.k},a(),n):[k.x,k.y]},n.scale=function(t){return arguments.length?(k={x:k.x,y:k.y,k:+t},a(),n):k.k},n.scaleExtent=function(t){return arguments.length?(N=null==t?Ia:[+t[0],+t[1]],n):N},n.center=function(t){return arguments.length?(m=t&&[+t[0],+t[1]],n):m},n.size=function(t){return arguments.length?(A=t&&[+t[0],+t[1]],n):A},n.duration=function(t){return arguments.length?(C=+t,n):C},n.x=function(t){return arguments.length?(b=t,x=t.copy(),k={x:0,y:0,k:1},n):b},n.y=function(t){return arguments.length?(w=t,_=t.copy(),k={x:0,y:0,k:1},n):w},ta.rebind(n,D,"on")};var Ha,Oa,Ia=[0,1/0];ta.color=ot,ot.prototype.toString=function(){return this.rgb()+""},ta.hsl=at;var Ya=at.prototype=new ot;Ya.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),new at(this.h,this.s,this.l/n)},Ya.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new at(this.h,this.s,n*this.l)},Ya.rgb=function(){return ct(this.h,this.s,this.l)},ta.hcl=lt;var Za=lt.prototype=new ot;Za.brighter=function(n){return new lt(this.h,this.c,Math.min(100,this.l+Va*(arguments.length?n:1)))},Za.darker=function(n){return new lt(this.h,this.c,Math.max(0,this.l-Va*(arguments.length?n:1)))},Za.rgb=function(){return st(this.h,this.c,this.l).rgb()},ta.lab=ft;var Va=18,Xa=.95047,$a=1,Ba=1.08883,Wa=ft.prototype=new ot;Wa.brighter=function(n){return new ft(Math.min(100,this.l+Va*(arguments.length?n:1)),this.a,this.b)},Wa.darker=function(n){return new ft(Math.max(0,this.l-Va*(arguments.length?n:1)),this.a,this.b)},Wa.rgb=function(){return ht(this.l,this.a,this.b)},ta.rgb=mt;var Ja=mt.prototype=new ot;Ja.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var t=this.r,e=this.g,r=this.b,u=30;return t||e||r?(t&&u>t&&(t=u),e&&u>e&&(e=u),r&&u>r&&(r=u),new mt(Math.min(255,t/n),Math.min(255,e/n),Math.min(255,r/n))):new mt(u,u,u)},Ja.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new mt(n*this.r,n*this.g,n*this.b)},Ja.hsl=function(){return _t(this.r,this.g,this.b)},Ja.toString=function(){return"#"+xt(this.r)+xt(this.g)+xt(this.b)};var Ga=ta.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Ga.forEach(function(n,t){Ga.set(n,yt(t))}),ta.functor=Et,ta.xhr=At(y),ta.dsv=function(n,t){function e(n,e,i){arguments.length<3&&(i=e,e=null);var o=Nt(n,t,null==e?r:u(e),i);return o.row=function(n){return arguments.length?o.response(null==(e=n)?r:u(n)):e},o}function r(n){return e.parse(n.responseText)}function u(n){return function(t){return e.parse(t.responseText,n)}}function i(t){return t.map(o).join(n)}function o(n){return a.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}var a=new RegExp('["'+n+"\n]"),c=n.charCodeAt(0);return e.parse=function(n,t){var r;return e.parseRows(n,function(n,e){if(r)return r(n,e-1);var u=new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}");r=t?function(n,e){return t(u(n),e)}:u})},e.parseRows=function(n,t){function e(){if(s>=l)return o;if(u)return u=!1,i;var t=s;if(34===n.charCodeAt(t)){for(var e=t;e++s;){var r=n.charCodeAt(s++),a=1;if(10===r)u=!0;else if(13===r)u=!0,10===n.charCodeAt(s)&&(++s,++a);else if(r!==c)continue;return n.slice(t,s-a)}return n.slice(t)}for(var r,u,i={},o={},a=[],l=n.length,s=0,f=0;(r=e())!==o;){for(var h=[];r!==i&&r!==o;)h.push(r),r=e();t&&null==(h=t(h,f++))||a.push(h)}return a},e.format=function(t){if(Array.isArray(t[0]))return e.formatRows(t);var r=new m,u=[];return t.forEach(function(n){for(var t in n)r.has(t)||u.push(r.add(t))}),[u.map(o).join(n)].concat(t.map(function(t){return u.map(function(n){return o(t[n])}).join(n)})).join("\n")},e.formatRows=function(n){return n.map(i).join("\n")},e},ta.csv=ta.dsv(",","text/csv"),ta.tsv=ta.dsv(" ","text/tab-separated-values");var Ka,Qa,nc,tc,ec,rc=this[x(this,"requestAnimationFrame")]||function(n){setTimeout(n,17)};ta.timer=function(n,t,e){var r=arguments.length;2>r&&(t=0),3>r&&(e=Date.now());var u=e+t,i={c:n,t:u,f:!1,n:null};Qa?Qa.n=i:Ka=i,Qa=i,nc||(tc=clearTimeout(tc),nc=1,rc(qt))},ta.timer.flush=function(){Lt(),Tt()},ta.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)};var uc=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"].map(Dt);ta.formatPrefix=function(n,t){var e=0;return n&&(0>n&&(n*=-1),t&&(n=ta.round(n,Rt(n,t))),e=1+Math.floor(1e-12+Math.log(n)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),uc[8+e/3]};var ic=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,oc=ta.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=ta.round(n,Rt(n,t))).toFixed(Math.max(0,Math.min(20,Rt(n*(1+1e-15),t))))}}),ac=ta.time={},cc=Date;jt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){lc.setUTCDate.apply(this._,arguments)},setDay:function(){lc.setUTCDay.apply(this._,arguments)},setFullYear:function(){lc.setUTCFullYear.apply(this._,arguments)},setHours:function(){lc.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){lc.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){lc.setUTCMinutes.apply(this._,arguments)},setMonth:function(){lc.setUTCMonth.apply(this._,arguments)},setSeconds:function(){lc.setUTCSeconds.apply(this._,arguments)},setTime:function(){lc.setTime.apply(this._,arguments)}};var lc=Date.prototype;ac.year=Ft(function(n){return n=ac.day(n),n.setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()}),ac.years=ac.year.range,ac.years.utc=ac.year.utc.range,ac.day=Ft(function(n){var t=new cc(2e3,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t},function(n,t){n.setDate(n.getDate()+t)},function(n){return n.getDate()-1}),ac.days=ac.day.range,ac.days.utc=ac.day.utc.range,ac.dayOfYear=function(n){var t=ac.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(n,t){t=7-t;var e=ac[n]=Ft(function(n){return(n=ac.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n},function(n,t){n.setDate(n.getDate()+7*Math.floor(t))},function(n){var e=ac.year(n).getDay();return Math.floor((ac.dayOfYear(n)+(e+t)%7)/7)-(e!==t)});ac[n+"s"]=e.range,ac[n+"s"].utc=e.utc.range,ac[n+"OfYear"]=function(n){var e=ac.year(n).getDay();return Math.floor((ac.dayOfYear(n)+(e+t)%7)/7)}}),ac.week=ac.sunday,ac.weeks=ac.sunday.range,ac.weeks.utc=ac.sunday.utc.range,ac.weekOfYear=ac.sundayOfYear;var sc={"-":"",_:" ",0:"0"},fc=/^\s*\d+/,hc=/^%/;ta.locale=function(n){return{numberFormat:Pt(n),timeFormat:Ot(n)}};var gc=ta.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});ta.format=gc.numberFormat,ta.geo={},ce.prototype={s:0,t:0,add:function(n){le(n,this.t,pc),le(pc.s,this.s,this),this.s?this.t+=pc.t:this.s=pc.t -},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var pc=new ce;ta.geo.stream=function(n,t){n&&vc.hasOwnProperty(n.type)?vc[n.type](n,t):se(n,t)};var vc={Feature:function(n,t){se(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,u=e.length;++rn?4*qa+n:n,Mc.lineStart=Mc.lineEnd=Mc.point=b}};ta.geo.bounds=function(){function n(n,t){M.push(x=[s=n,h=n]),f>t&&(f=t),t>g&&(g=t)}function t(t,e){var r=pe([t*Da,e*Da]);if(m){var u=de(m,r),i=[u[1],-u[0],0],o=de(i,u);Me(o),o=xe(o);var c=t-p,l=c>0?1:-1,v=o[0]*Pa*l,d=ga(c)>180;if(d^(v>l*p&&l*t>v)){var y=o[1]*Pa;y>g&&(g=y)}else if(v=(v+360)%360-180,d^(v>l*p&&l*t>v)){var y=-o[1]*Pa;f>y&&(f=y)}else f>e&&(f=e),e>g&&(g=e);d?p>t?a(s,t)>a(s,h)&&(h=t):a(t,h)>a(s,h)&&(s=t):h>=s?(s>t&&(s=t),t>h&&(h=t)):t>p?a(s,t)>a(s,h)&&(h=t):a(t,h)>a(s,h)&&(s=t)}else n(t,e);m=r,p=t}function e(){b.point=t}function r(){x[0]=s,x[1]=h,b.point=n,m=null}function u(n,e){if(m){var r=n-p;y+=ga(r)>180?r+(r>0?360:-360):r}else v=n,d=e;Mc.point(n,e),t(n,e)}function i(){Mc.lineStart()}function o(){u(v,d),Mc.lineEnd(),ga(y)>Ca&&(s=-(h=180)),x[0]=s,x[1]=h,m=null}function a(n,t){return(t-=n)<0?t+360:t}function c(n,t){return n[0]-t[0]}function l(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nyc?(s=-(h=180),f=-(g=90)):y>Ca?g=90:-Ca>y&&(f=-90),x[0]=s,x[1]=h}};return function(n){g=h=-(s=f=1/0),M=[],ta.geo.stream(n,b);var t=M.length;if(t){M.sort(c);for(var e,r=1,u=M[0],i=[u];t>r;++r)e=M[r],l(e[0],u)||l(e[1],u)?(a(u[0],e[1])>a(u[0],u[1])&&(u[1]=e[1]),a(e[0],u[1])>a(u[0],u[1])&&(u[0]=e[0])):i.push(u=e);for(var o,e,p=-1/0,t=i.length-1,r=0,u=i[t];t>=r;u=e,++r)e=i[r],(o=a(u[1],e[0]))>p&&(p=o,s=e[0],h=u[1])}return M=x=null,1/0===s||1/0===f?[[0/0,0/0],[0/0,0/0]]:[[s,f],[h,g]]}}(),ta.geo.centroid=function(n){xc=bc=_c=wc=Sc=kc=Ec=Ac=Nc=Cc=zc=0,ta.geo.stream(n,qc);var t=Nc,e=Cc,r=zc,u=t*t+e*e+r*r;return za>u&&(t=kc,e=Ec,r=Ac,Ca>bc&&(t=_c,e=wc,r=Sc),u=t*t+e*e+r*r,za>u)?[0/0,0/0]:[Math.atan2(e,t)*Pa,tt(r/Math.sqrt(u))*Pa]};var xc,bc,_c,wc,Sc,kc,Ec,Ac,Nc,Cc,zc,qc={sphere:b,point:_e,lineStart:Se,lineEnd:ke,polygonStart:function(){qc.lineStart=Ee},polygonEnd:function(){qc.lineStart=Se}},Lc=Le(Ne,Pe,je,[-qa,-qa/2]),Tc=1e9;ta.geo.clipExtent=function(){var n,t,e,r,u,i,o={stream:function(n){return u&&(u.valid=!1),u=i(n),u.valid=!0,u},extent:function(a){return arguments.length?(i=Ie(n=+a[0][0],t=+a[0][1],e=+a[1][0],r=+a[1][1]),u&&(u.valid=!1,u=null),o):[[n,t],[e,r]]}};return o.extent([[0,0],[960,500]])},(ta.geo.conicEqualArea=function(){return Ye(Ze)}).raw=Ze,ta.geo.albers=function(){return ta.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},ta.geo.albersUsa=function(){function n(n){var i=n[0],o=n[1];return t=null,e(i,o),t||(r(i,o),t)||u(i,o),t}var t,e,r,u,i=ta.geo.albers(),o=ta.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=ta.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(n,e){t=[n,e]}};return n.invert=function(n){var t=i.scale(),e=i.translate(),r=(n[0]-e[0])/t,u=(n[1]-e[1])/t;return(u>=.12&&.234>u&&r>=-.425&&-.214>r?o:u>=.166&&.234>u&&r>=-.214&&-.115>r?a:i).invert(n)},n.stream=function(n){var t=i.stream(n),e=o.stream(n),r=a.stream(n);return{point:function(n,u){t.point(n,u),e.point(n,u),r.point(n,u)},sphere:function(){t.sphere(),e.sphere(),r.sphere()},lineStart:function(){t.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},n.precision=function(t){return arguments.length?(i.precision(t),o.precision(t),a.precision(t),n):i.precision()},n.scale=function(t){return arguments.length?(i.scale(t),o.scale(.35*t),a.scale(t),n.translate(i.translate())):i.scale()},n.translate=function(t){if(!arguments.length)return i.translate();var l=i.scale(),s=+t[0],f=+t[1];return e=i.translate(t).clipExtent([[s-.455*l,f-.238*l],[s+.455*l,f+.238*l]]).stream(c).point,r=o.translate([s-.307*l,f+.201*l]).clipExtent([[s-.425*l+Ca,f+.12*l+Ca],[s-.214*l-Ca,f+.234*l-Ca]]).stream(c).point,u=a.translate([s-.205*l,f+.212*l]).clipExtent([[s-.214*l+Ca,f+.166*l+Ca],[s-.115*l-Ca,f+.234*l-Ca]]).stream(c).point,n},n.scale(1070)};var Rc,Dc,Pc,Uc,jc,Fc,Hc={point:b,lineStart:b,lineEnd:b,polygonStart:function(){Dc=0,Hc.lineStart=Ve},polygonEnd:function(){Hc.lineStart=Hc.lineEnd=Hc.point=b,Rc+=ga(Dc/2)}},Oc={point:Xe,lineStart:b,lineEnd:b,polygonStart:b,polygonEnd:b},Ic={point:We,lineStart:Je,lineEnd:Ge,polygonStart:function(){Ic.lineStart=Ke},polygonEnd:function(){Ic.point=We,Ic.lineStart=Je,Ic.lineEnd=Ge}};ta.geo.path=function(){function n(n){return n&&("function"==typeof a&&i.pointRadius(+a.apply(this,arguments)),o&&o.valid||(o=u(i)),ta.geo.stream(n,o)),i.result()}function t(){return o=null,n}var e,r,u,i,o,a=4.5;return n.area=function(n){return Rc=0,ta.geo.stream(n,u(Hc)),Rc},n.centroid=function(n){return _c=wc=Sc=kc=Ec=Ac=Nc=Cc=zc=0,ta.geo.stream(n,u(Ic)),zc?[Nc/zc,Cc/zc]:Ac?[kc/Ac,Ec/Ac]:Sc?[_c/Sc,wc/Sc]:[0/0,0/0]},n.bounds=function(n){return jc=Fc=-(Pc=Uc=1/0),ta.geo.stream(n,u(Oc)),[[Pc,Uc],[jc,Fc]]},n.projection=function(n){return arguments.length?(u=(e=n)?n.stream||tr(n):y,t()):e},n.context=function(n){return arguments.length?(i=null==(r=n)?new $e:new Qe(n),"function"!=typeof a&&i.pointRadius(a),t()):r},n.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(i.pointRadius(+t),+t),n):a},n.projection(ta.geo.albersUsa()).context(null)},ta.geo.transform=function(n){return{stream:function(t){var e=new er(t);for(var r in n)e[r]=n[r];return e}}},er.prototype={point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},ta.geo.projection=ur,ta.geo.projectionMutator=ir,(ta.geo.equirectangular=function(){return ur(ar)}).raw=ar.invert=ar,ta.geo.rotation=function(n){function t(t){return t=n(t[0]*Da,t[1]*Da),t[0]*=Pa,t[1]*=Pa,t}return n=lr(n[0]%360*Da,n[1]*Da,n.length>2?n[2]*Da:0),t.invert=function(t){return t=n.invert(t[0]*Da,t[1]*Da),t[0]*=Pa,t[1]*=Pa,t},t},cr.invert=ar,ta.geo.circle=function(){function n(){var n="function"==typeof r?r.apply(this,arguments):r,t=lr(-n[0]*Da,-n[1]*Da,0).invert,u=[];return e(null,null,1,{point:function(n,e){u.push(n=t(n,e)),n[0]*=Pa,n[1]*=Pa}}),{type:"Polygon",coordinates:[u]}}var t,e,r=[0,0],u=6;return n.origin=function(t){return arguments.length?(r=t,n):r},n.angle=function(r){return arguments.length?(e=gr((t=+r)*Da,u*Da),n):t},n.precision=function(r){return arguments.length?(e=gr(t*Da,(u=+r)*Da),n):u},n.angle(90)},ta.geo.distance=function(n,t){var e,r=(t[0]-n[0])*Da,u=n[1]*Da,i=t[1]*Da,o=Math.sin(r),a=Math.cos(r),c=Math.sin(u),l=Math.cos(u),s=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((e=f*o)*e+(e=l*s-c*f*a)*e),c*s+l*f*a)},ta.geo.graticule=function(){function n(){return{type:"MultiLineString",coordinates:t()}}function t(){return ta.range(Math.ceil(i/d)*d,u,d).map(h).concat(ta.range(Math.ceil(l/m)*m,c,m).map(g)).concat(ta.range(Math.ceil(r/p)*p,e,p).filter(function(n){return ga(n%d)>Ca}).map(s)).concat(ta.range(Math.ceil(a/v)*v,o,v).filter(function(n){return ga(n%m)>Ca}).map(f))}var e,r,u,i,o,a,c,l,s,f,h,g,p=10,v=p,d=90,m=360,y=2.5;return n.lines=function(){return t().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[h(i).concat(g(c).slice(1),h(u).reverse().slice(1),g(l).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.majorExtent(t).minorExtent(t):n.minorExtent()},n.majorExtent=function(t){return arguments.length?(i=+t[0][0],u=+t[1][0],l=+t[0][1],c=+t[1][1],i>u&&(t=i,i=u,u=t),l>c&&(t=l,l=c,c=t),n.precision(y)):[[i,l],[u,c]]},n.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],o=+t[1][1],r>e&&(t=r,r=e,e=t),a>o&&(t=a,a=o,o=t),n.precision(y)):[[r,a],[e,o]]},n.step=function(t){return arguments.length?n.majorStep(t).minorStep(t):n.minorStep()},n.majorStep=function(t){return arguments.length?(d=+t[0],m=+t[1],n):[d,m]},n.minorStep=function(t){return arguments.length?(p=+t[0],v=+t[1],n):[p,v]},n.precision=function(t){return arguments.length?(y=+t,s=vr(a,o,90),f=dr(r,e,y),h=vr(l,c,90),g=dr(i,u,y),n):y},n.majorExtent([[-180,-90+Ca],[180,90-Ca]]).minorExtent([[-180,-80-Ca],[180,80+Ca]])},ta.geo.greatArc=function(){function n(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),e||u.apply(this,arguments)]}}var t,e,r=mr,u=yr;return n.distance=function(){return ta.geo.distance(t||r.apply(this,arguments),e||u.apply(this,arguments))},n.source=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,n):r},n.target=function(t){return arguments.length?(u=t,e="function"==typeof t?null:t,n):u},n.precision=function(){return arguments.length?n:0},n},ta.geo.interpolate=function(n,t){return Mr(n[0]*Da,n[1]*Da,t[0]*Da,t[1]*Da)},ta.geo.length=function(n){return Yc=0,ta.geo.stream(n,Zc),Yc};var Yc,Zc={sphere:b,point:b,lineStart:xr,lineEnd:b,polygonStart:b,polygonEnd:b},Vc=br(function(n){return Math.sqrt(2/(1+n))},function(n){return 2*Math.asin(n/2)});(ta.geo.azimuthalEqualArea=function(){return ur(Vc)}).raw=Vc;var Xc=br(function(n){var t=Math.acos(n);return t&&t/Math.sin(t)},y);(ta.geo.azimuthalEquidistant=function(){return ur(Xc)}).raw=Xc,(ta.geo.conicConformal=function(){return Ye(_r)}).raw=_r,(ta.geo.conicEquidistant=function(){return Ye(wr)}).raw=wr;var $c=br(function(n){return 1/n},Math.atan);(ta.geo.gnomonic=function(){return ur($c)}).raw=$c,Sr.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-Ra]},(ta.geo.mercator=function(){return kr(Sr)}).raw=Sr;var Bc=br(function(){return 1},Math.asin);(ta.geo.orthographic=function(){return ur(Bc)}).raw=Bc;var Wc=br(function(n){return 1/(1+n)},function(n){return 2*Math.atan(n)});(ta.geo.stereographic=function(){return ur(Wc)}).raw=Wc,Er.invert=function(n,t){return[-t,2*Math.atan(Math.exp(n))-Ra]},(ta.geo.transverseMercator=function(){var n=kr(Er),t=n.center,e=n.rotate;return n.center=function(n){return n?t([-n[1],n[0]]):(n=t(),[n[1],-n[0]])},n.rotate=function(n){return n?e([n[0],n[1],n.length>2?n[2]+90:90]):(n=e(),[n[0],n[1],n[2]-90])},e([0,0,90])}).raw=Er,ta.geom={},ta.geom.hull=function(n){function t(n){if(n.length<3)return[];var t,u=Et(e),i=Et(r),o=n.length,a=[],c=[];for(t=0;o>t;t++)a.push([+u.call(this,n[t],t),+i.call(this,n[t],t),t]);for(a.sort(zr),t=0;o>t;t++)c.push([a[t][0],-a[t][1]]);var l=Cr(a),s=Cr(c),f=s[0]===l[0],h=s[s.length-1]===l[l.length-1],g=[];for(t=l.length-1;t>=0;--t)g.push(n[a[l[t]][2]]);for(t=+f;t=r&&l.x<=i&&l.y>=u&&l.y<=o?[[r,o],[i,o],[i,u],[r,u]]:[];s.point=n[a]}),t}function e(n){return n.map(function(n,t){return{x:Math.round(i(n,t)/Ca)*Ca,y:Math.round(o(n,t)/Ca)*Ca,i:t}})}var r=Ar,u=Nr,i=r,o=u,a=ul;return n?t(n):(t.links=function(n){return iu(e(n)).edges.filter(function(n){return n.l&&n.r}).map(function(t){return{source:n[t.l.i],target:n[t.r.i]}})},t.triangles=function(n){var t=[];return iu(e(n)).cells.forEach(function(e,r){for(var u,i,o=e.site,a=e.edges.sort(Yr),c=-1,l=a.length,s=a[l-1].edge,f=s.l===o?s.r:s.l;++c=l,h=r>=s,g=h<<1|f;n.leaf=!1,n=n.nodes[g]||(n.nodes[g]=su()),f?u=l:a=l,h?o=s:c=s,i(n,t,e,r,u,o,a,c)}var s,f,h,g,p,v,d,m,y,M=Et(a),x=Et(c);if(null!=t)v=t,d=e,m=r,y=u;else if(m=y=-(v=d=1/0),f=[],h=[],p=n.length,o)for(g=0;p>g;++g)s=n[g],s.xm&&(m=s.x),s.y>y&&(y=s.y),f.push(s.x),h.push(s.y);else for(g=0;p>g;++g){var b=+M(s=n[g],g),_=+x(s,g);v>b&&(v=b),d>_&&(d=_),b>m&&(m=b),_>y&&(y=_),f.push(b),h.push(_)}var w=m-v,S=y-d;w>S?y=d+w:m=v+S;var k=su();if(k.add=function(n){i(k,n,+M(n,++g),+x(n,g),v,d,m,y)},k.visit=function(n){fu(n,k,v,d,m,y)},k.find=function(n){return hu(k,n[0],n[1],v,d,m,y)},g=-1,null==t){for(;++g=0?n.slice(0,t):n,r=t>=0?n.slice(t+1):"in";return e=cl.get(e)||al,r=ll.get(r)||y,Mu(r(e.apply(null,ea.call(arguments,1))))},ta.interpolateHcl=Lu,ta.interpolateHsl=Tu,ta.interpolateLab=Ru,ta.interpolateRound=Du,ta.transform=function(n){var t=ua.createElementNS(ta.ns.prefix.svg,"g");return(ta.transform=function(n){if(null!=n){t.setAttribute("transform",n);var e=t.transform.baseVal.consolidate()}return new Pu(e?e.matrix:sl)})(n)},Pu.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var sl={a:1,b:0,c:0,d:1,e:0,f:0};ta.interpolateTransform=Hu,ta.layout={},ta.layout.bundle=function(){return function(n){for(var t=[],e=-1,r=n.length;++ea*a/d){if(p>c){var l=t.charge/c;n.px-=i*l,n.py-=o*l}return!0}if(t.point&&c&&p>c){var l=t.pointCharge/c;n.px-=i*l,n.py-=o*l}}return!t.charge}}function t(n){n.px=ta.event.x,n.py=ta.event.y,a.resume()}var e,r,u,i,o,a={},c=ta.dispatch("start","tick","end"),l=[1,1],s=.9,f=fl,h=hl,g=-30,p=gl,v=.1,d=.64,m=[],M=[];return a.tick=function(){if((r*=.99)<.005)return c.end({type:"end",alpha:r=0}),!0;var t,e,a,f,h,p,d,y,x,b=m.length,_=M.length;for(e=0;_>e;++e)a=M[e],f=a.source,h=a.target,y=h.x-f.x,x=h.y-f.y,(p=y*y+x*x)&&(p=r*i[e]*((p=Math.sqrt(p))-u[e])/p,y*=p,x*=p,h.x-=y*(d=f.weight/(h.weight+f.weight)),h.y-=x*d,f.x+=y*(d=1-d),f.y+=x*d);if((d=r*v)&&(y=l[0]/2,x=l[1]/2,e=-1,d))for(;++e0?n:0:n>0&&(c.start({type:"start",alpha:r=n}),ta.timer(a.tick)),a):r},a.start=function(){function n(n,r){if(!e){for(e=new Array(c),a=0;c>a;++a)e[a]=[];for(a=0;s>a;++a){var u=M[a];e[u.source.index].push(u.target),e[u.target.index].push(u.source)}}for(var i,o=e[t],a=-1,l=o.length;++at;++t)(r=m[t]).index=t,r.weight=0;for(t=0;s>t;++t)r=M[t],"number"==typeof r.source&&(r.source=m[r.source]),"number"==typeof r.target&&(r.target=m[r.target]),++r.source.weight,++r.target.weight;for(t=0;c>t;++t)r=m[t],isNaN(r.x)&&(r.x=n("x",p)),isNaN(r.y)&&(r.y=n("y",v)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(u=[],"function"==typeof f)for(t=0;s>t;++t)u[t]=+f.call(this,M[t],t);else for(t=0;s>t;++t)u[t]=f;if(i=[],"function"==typeof h)for(t=0;s>t;++t)i[t]=+h.call(this,M[t],t);else for(t=0;s>t;++t)i[t]=h;if(o=[],"function"==typeof g)for(t=0;c>t;++t)o[t]=+g.call(this,m[t],t);else for(t=0;c>t;++t)o[t]=g;return a.resume()},a.resume=function(){return a.alpha(.1)},a.stop=function(){return a.alpha(0)},a.drag=function(){return e||(e=ta.behavior.drag().origin(y).on("dragstart.force",Xu).on("drag.force",t).on("dragend.force",$u)),arguments.length?void this.on("mouseover.force",Bu).on("mouseout.force",Wu).call(e):e},ta.rebind(a,c,"on")};var fl=20,hl=1,gl=1/0;ta.layout.hierarchy=function(){function n(u){var i,o=[u],a=[];for(u.depth=0;null!=(i=o.pop());)if(a.push(i),(l=e.call(n,i,i.depth))&&(c=l.length)){for(var c,l,s;--c>=0;)o.push(s=l[c]),s.parent=i,s.depth=i.depth+1;r&&(i.value=0),i.children=l}else r&&(i.value=+r.call(n,i,i.depth)||0),delete i.children;return Qu(u,function(n){var e,u;t&&(e=n.children)&&e.sort(t),r&&(u=n.parent)&&(u.value+=n.value)}),a}var t=ei,e=ni,r=ti;return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(Ku(t,function(n){n.children&&(n.value=0)}),Qu(t,function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)})),t},n},ta.layout.partition=function(){function n(t,e,r,u){var i=t.children;if(t.x=e,t.y=t.depth*u,t.dx=r,t.dy=u,i&&(o=i.length)){var o,a,c,l=-1;for(r=t.value?r/t.value:0;++lf?-1:1),p=(f-c*g)/ta.sum(l),v=ta.range(c),d=[];return null!=e&&v.sort(e===pl?function(n,t){return l[t]-l[n]}:function(n,t){return e(o[n],o[t])}),v.forEach(function(n){d[n]={data:o[n],value:a=l[n],startAngle:s,endAngle:s+=a*p+g,padAngle:h}}),d}var t=Number,e=pl,r=0,u=La,i=0;return n.value=function(e){return arguments.length?(t=e,n):t},n.sort=function(t){return arguments.length?(e=t,n):e},n.startAngle=function(t){return arguments.length?(r=t,n):r},n.endAngle=function(t){return arguments.length?(u=t,n):u},n.padAngle=function(t){return arguments.length?(i=t,n):i},n};var pl={};ta.layout.stack=function(){function n(a,c){if(!(h=a.length))return a;var l=a.map(function(e,r){return t.call(n,e,r)}),s=l.map(function(t){return t.map(function(t,e){return[i.call(n,t,e),o.call(n,t,e)]})}),f=e.call(n,s,c);l=ta.permute(l,f),s=ta.permute(s,f);var h,g,p,v,d=r.call(n,s,c),m=l[0].length;for(p=0;m>p;++p)for(u.call(n,l[0][p],v=d[p],s[0][p][1]),g=1;h>g;++g)u.call(n,l[g][p],v+=s[g-1][p][1],s[g][p][1]);return a}var t=y,e=ai,r=ci,u=oi,i=ui,o=ii;return n.values=function(e){return arguments.length?(t=e,n):t},n.order=function(t){return arguments.length?(e="function"==typeof t?t:vl.get(t)||ai,n):e},n.offset=function(t){return arguments.length?(r="function"==typeof t?t:dl.get(t)||ci,n):r},n.x=function(t){return arguments.length?(i=t,n):i},n.y=function(t){return arguments.length?(o=t,n):o},n.out=function(t){return arguments.length?(u=t,n):u},n};var vl=ta.map({"inside-out":function(n){var t,e,r=n.length,u=n.map(li),i=n.map(si),o=ta.range(r).sort(function(n,t){return u[n]-u[t]}),a=0,c=0,l=[],s=[];for(t=0;r>t;++t)e=o[t],c>a?(a+=i[e],l.push(e)):(c+=i[e],s.push(e));return s.reverse().concat(l)},reverse:function(n){return ta.range(n.length).reverse()},"default":ai}),dl=ta.map({silhouette:function(n){var t,e,r,u=n.length,i=n[0].length,o=[],a=0,c=[];for(e=0;i>e;++e){for(t=0,r=0;u>t;t++)r+=n[t][e][1];r>a&&(a=r),o.push(r)}for(e=0;i>e;++e)c[e]=(a-o[e])/2;return c},wiggle:function(n){var t,e,r,u,i,o,a,c,l,s=n.length,f=n[0],h=f.length,g=[];for(g[0]=c=l=0,e=1;h>e;++e){for(t=0,u=0;s>t;++t)u+=n[t][e][1];for(t=0,i=0,a=f[e][0]-f[e-1][0];s>t;++t){for(r=0,o=(n[t][e][1]-n[t][e-1][1])/(2*a);t>r;++r)o+=(n[r][e][1]-n[r][e-1][1])/a;i+=o*n[t][e][1]}g[e]=c-=u?i/u*a:0,l>c&&(l=c)}for(e=0;h>e;++e)g[e]-=l;return g},expand:function(n){var t,e,r,u=n.length,i=n[0].length,o=1/u,a=[];for(e=0;i>e;++e){for(t=0,r=0;u>t;t++)r+=n[t][e][1];if(r)for(t=0;u>t;t++)n[t][e][1]/=r;else for(t=0;u>t;t++)n[t][e][1]=o}for(e=0;i>e;++e)a[e]=0;return a},zero:ci});ta.layout.histogram=function(){function n(n,i){for(var o,a,c=[],l=n.map(e,this),s=r.call(this,l,i),f=u.call(this,s,l,i),i=-1,h=l.length,g=f.length-1,p=t?1:1/h;++i0)for(i=-1;++i=s[0]&&a<=s[1]&&(o=c[ta.bisect(f,a,1,g)-1],o.y+=p,o.push(n[i]));return c}var t=!0,e=Number,r=pi,u=hi;return n.value=function(t){return arguments.length?(e=t,n):e},n.range=function(t){return arguments.length?(r=Et(t),n):r},n.bins=function(t){return arguments.length?(u="number"==typeof t?function(n){return gi(n,t)}:Et(t),n):u},n.frequency=function(e){return arguments.length?(t=!!e,n):t},n},ta.layout.pack=function(){function n(n,i){var o=e.call(this,n,i),a=o[0],c=u[0],l=u[1],s=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(a.x=a.y=0,Qu(a,function(n){n.r=+s(n.value)}),Qu(a,Mi),r){var f=r*(t?1:Math.max(2*a.r/c,2*a.r/l))/2;Qu(a,function(n){n.r+=f}),Qu(a,Mi),Qu(a,function(n){n.r-=f})}return _i(a,c/2,l/2,t?1:1/Math.max(2*a.r/c,2*a.r/l)),o}var t,e=ta.layout.hierarchy().sort(vi),r=0,u=[1,1];return n.size=function(t){return arguments.length?(u=t,n):u},n.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,n):t},n.padding=function(t){return arguments.length?(r=+t,n):r},Gu(n,e)},ta.layout.tree=function(){function n(n,u){var s=o.call(this,n,u),f=s[0],h=t(f);if(Qu(h,e),h.parent.m=-h.z,Ku(h,r),l)Ku(f,i);else{var g=f,p=f,v=f;Ku(f,function(n){n.xp.x&&(p=n),n.depth>v.depth&&(v=n)});var d=a(g,p)/2-g.x,m=c[0]/(p.x+a(p,g)/2+d),y=c[1]/(v.depth||1);Ku(f,function(n){n.x=(n.x+d)*m,n.y=n.depth*y})}return s}function t(n){for(var t,e={A:null,children:[n]},r=[e];null!=(t=r.pop());)for(var u,i=t.children,o=0,a=i.length;a>o;++o)r.push((i[o]=u={_:i[o],parent:t,children:(u=i[o].children)&&u.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=u);return e.children[0]}function e(n){var t=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(t.length){Ni(n);var i=(t[0].z+t[t.length-1].z)/2;r?(n.z=r.z+a(n._,r._),n.m=n.z-i):n.z=i}else r&&(n.z=r.z+a(n._,r._));n.parent.A=u(n,r,n.parent.A||e[0])}function r(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function u(n,t,e){if(t){for(var r,u=n,i=n,o=t,c=u.parent.children[0],l=u.m,s=i.m,f=o.m,h=c.m;o=Ei(o),u=ki(u),o&&u;)c=ki(c),i=Ei(i),i.a=n,r=o.z+f-u.z-l+a(o._,u._),r>0&&(Ai(Ci(o,n,e),n,r),l+=r,s+=r),f+=o.m,l+=u.m,h+=c.m,s+=i.m;o&&!Ei(i)&&(i.t=o,i.m+=f-s),u&&!ki(c)&&(c.t=u,c.m+=l-h,e=n)}return e}function i(n){n.x*=c[0],n.y=n.depth*c[1]}var o=ta.layout.hierarchy().sort(null).value(null),a=Si,c=[1,1],l=null;return n.separation=function(t){return arguments.length?(a=t,n):a},n.size=function(t){return arguments.length?(l=null==(c=t)?i:null,n):l?null:c},n.nodeSize=function(t){return arguments.length?(l=null==(c=t)?null:i,n):l?c:null},Gu(n,o)},ta.layout.cluster=function(){function n(n,i){var o,a=t.call(this,n,i),c=a[0],l=0;Qu(c,function(n){var t=n.children;t&&t.length?(n.x=qi(t),n.y=zi(t)):(n.x=o?l+=e(n,o):0,n.y=0,o=n)});var s=Li(c),f=Ti(c),h=s.x-e(s,f)/2,g=f.x+e(f,s)/2;return Qu(c,u?function(n){n.x=(n.x-c.x)*r[0],n.y=(c.y-n.y)*r[1]}:function(n){n.x=(n.x-h)/(g-h)*r[0],n.y=(1-(c.y?n.y/c.y:1))*r[1]}),a}var t=ta.layout.hierarchy().sort(null).value(null),e=Si,r=[1,1],u=!1;return n.separation=function(t){return arguments.length?(e=t,n):e},n.size=function(t){return arguments.length?(u=null==(r=t),n):u?null:r},n.nodeSize=function(t){return arguments.length?(u=null!=(r=t),n):u?r:null},Gu(n,t)},ta.layout.treemap=function(){function n(n,t){for(var e,r,u=-1,i=n.length;++ut?0:t),e.area=isNaN(r)||0>=r?0:r}function t(e){var i=e.children;if(i&&i.length){var o,a,c,l=f(e),s=[],h=i.slice(),p=1/0,v="slice"===g?l.dx:"dice"===g?l.dy:"slice-dice"===g?1&e.depth?l.dy:l.dx:Math.min(l.dx,l.dy);for(n(h,l.dx*l.dy/e.value),s.area=0;(c=h.length)>0;)s.push(o=h[c-1]),s.area+=o.area,"squarify"!==g||(a=r(s,v))<=p?(h.pop(),p=a):(s.area-=s.pop().area,u(s,v,l,!1),v=Math.min(l.dx,l.dy),s.length=s.area=0,p=1/0);s.length&&(u(s,v,l,!0),s.length=s.area=0),i.forEach(t)}}function e(t){var r=t.children;if(r&&r.length){var i,o=f(t),a=r.slice(),c=[];for(n(a,o.dx*o.dy/t.value),c.area=0;i=a.pop();)c.push(i),c.area+=i.area,null!=i.z&&(u(c,i.z?o.dx:o.dy,o,!a.length),c.length=c.area=0);r.forEach(e)}}function r(n,t){for(var e,r=n.area,u=0,i=1/0,o=-1,a=n.length;++oe&&(i=e),e>u&&(u=e));return r*=r,t*=t,r?Math.max(t*u*p/r,r/(t*i*p)):1/0}function u(n,t,e,r){var u,i=-1,o=n.length,a=e.x,l=e.y,s=t?c(n.area/t):0;if(t==e.dx){for((r||s>e.dy)&&(s=e.dy);++ie.dx)&&(s=e.dx);++ie&&(t=1),1>e&&(n=0),function(){var e,r,u;do e=2*Math.random()-1,r=2*Math.random()-1,u=e*e+r*r;while(!u||u>1);return n+t*e*Math.sqrt(-2*Math.log(u)/u)}},logNormal:function(){var n=ta.random.normal.apply(ta,arguments);return function(){return Math.exp(n())}},bates:function(n){var t=ta.random.irwinHall(n);return function(){return t()/n}},irwinHall:function(n){return function(){for(var t=0,e=0;n>e;e++)t+=Math.random();return t}}},ta.scale={};var ml={floor:y,ceil:y};ta.scale.linear=function(){return Ii([0,1],[0,1],mu,!1)};var yl={s:1,g:1,p:1,r:1,e:1};ta.scale.log=function(){return Ji(ta.scale.linear().domain([0,1]),10,!0,[1,10])};var Ml=ta.format(".0e"),xl={floor:function(n){return-Math.ceil(-n)},ceil:function(n){return-Math.floor(-n)}};ta.scale.pow=function(){return Gi(ta.scale.linear(),1,[0,1])},ta.scale.sqrt=function(){return ta.scale.pow().exponent(.5)},ta.scale.ordinal=function(){return Qi([],{t:"range",a:[[]]})},ta.scale.category10=function(){return ta.scale.ordinal().range(bl)},ta.scale.category20=function(){return ta.scale.ordinal().range(_l)},ta.scale.category20b=function(){return ta.scale.ordinal().range(wl)},ta.scale.category20c=function(){return ta.scale.ordinal().range(Sl)};var bl=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Mt),_l=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Mt),wl=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Mt),Sl=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Mt);ta.scale.quantile=function(){return no([],[])},ta.scale.quantize=function(){return to(0,1,[0,1])},ta.scale.threshold=function(){return eo([.5],[0,1])},ta.scale.identity=function(){return ro([0,1])},ta.svg={},ta.svg.arc=function(){function n(){var n=Math.max(0,+e.apply(this,arguments)),l=Math.max(0,+r.apply(this,arguments)),s=o.apply(this,arguments)-Ra,f=a.apply(this,arguments)-Ra,h=Math.abs(f-s),g=s>f?0:1;if(n>l&&(p=l,l=n,n=p),h>=Ta)return t(l,g)+(n?t(n,1-g):"")+"Z";var p,v,d,m,y,M,x,b,_,w,S,k,E=0,A=0,N=[];if((m=(+c.apply(this,arguments)||0)/2)&&(d=i===kl?Math.sqrt(n*n+l*l):+i.apply(this,arguments),g||(A*=-1),l&&(A=tt(d/l*Math.sin(m))),n&&(E=tt(d/n*Math.sin(m)))),l){y=l*Math.cos(s+A),M=l*Math.sin(s+A),x=l*Math.cos(f-A),b=l*Math.sin(f-A);var C=Math.abs(f-s-2*A)<=qa?0:1;if(A&&so(y,M,x,b)===g^C){var z=(s+f)/2;y=l*Math.cos(z),M=l*Math.sin(z),x=b=null}}else y=M=0;if(n){_=n*Math.cos(f-E),w=n*Math.sin(f-E),S=n*Math.cos(s+E),k=n*Math.sin(s+E);var q=Math.abs(s-f+2*E)<=qa?0:1;if(E&&so(_,w,S,k)===1-g^q){var L=(s+f)/2;_=n*Math.cos(L),w=n*Math.sin(L),S=k=null}}else _=w=0;if((p=Math.min(Math.abs(l-n)/2,+u.apply(this,arguments)))>.001){v=l>n^g?0:1;var T=null==S?[_,w]:null==x?[y,M]:Lr([y,M],[S,k],[x,b],[_,w]),R=y-T[0],D=M-T[1],P=x-T[0],U=b-T[1],j=1/Math.sin(Math.acos((R*P+D*U)/(Math.sqrt(R*R+D*D)*Math.sqrt(P*P+U*U)))/2),F=Math.sqrt(T[0]*T[0]+T[1]*T[1]);if(null!=x){var H=Math.min(p,(l-F)/(j+1)),O=fo(null==S?[_,w]:[S,k],[y,M],l,H,g),I=fo([x,b],[_,w],l,H,g);p===H?N.push("M",O[0],"A",H,",",H," 0 0,",v," ",O[1],"A",l,",",l," 0 ",1-g^so(O[1][0],O[1][1],I[1][0],I[1][1]),",",g," ",I[1],"A",H,",",H," 0 0,",v," ",I[0]):N.push("M",O[0],"A",H,",",H," 0 1,",v," ",I[0])}else N.push("M",y,",",M);if(null!=S){var Y=Math.min(p,(n-F)/(j-1)),Z=fo([y,M],[S,k],n,-Y,g),V=fo([_,w],null==x?[y,M]:[x,b],n,-Y,g);p===Y?N.push("L",V[0],"A",Y,",",Y," 0 0,",v," ",V[1],"A",n,",",n," 0 ",g^so(V[1][0],V[1][1],Z[1][0],Z[1][1]),",",1-g," ",Z[1],"A",Y,",",Y," 0 0,",v," ",Z[0]):N.push("L",V[0],"A",Y,",",Y," 0 0,",v," ",Z[0])}else N.push("L",_,",",w)}else N.push("M",y,",",M),null!=x&&N.push("A",l,",",l," 0 ",C,",",g," ",x,",",b),N.push("L",_,",",w),null!=S&&N.push("A",n,",",n," 0 ",q,",",1-g," ",S,",",k);return N.push("Z"),N.join("")}function t(n,t){return"M0,"+n+"A"+n+","+n+" 0 1,"+t+" 0,"+-n+"A"+n+","+n+" 0 1,"+t+" 0,"+n}var e=io,r=oo,u=uo,i=kl,o=ao,a=co,c=lo;return n.innerRadius=function(t){return arguments.length?(e=Et(t),n):e},n.outerRadius=function(t){return arguments.length?(r=Et(t),n):r},n.cornerRadius=function(t){return arguments.length?(u=Et(t),n):u},n.padRadius=function(t){return arguments.length?(i=t==kl?kl:Et(t),n):i},n.startAngle=function(t){return arguments.length?(o=Et(t),n):o},n.endAngle=function(t){return arguments.length?(a=Et(t),n):a},n.padAngle=function(t){return arguments.length?(c=Et(t),n):c},n.centroid=function(){var n=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-Ra;return[Math.cos(t)*n,Math.sin(t)*n]},n};var kl="auto";ta.svg.line=function(){return ho(y)};var El=ta.map({linear:go,"linear-closed":po,step:vo,"step-before":mo,"step-after":yo,basis:So,"basis-open":ko,"basis-closed":Eo,bundle:Ao,cardinal:bo,"cardinal-open":Mo,"cardinal-closed":xo,monotone:To});El.forEach(function(n,t){t.key=n,t.closed=/-closed$/.test(n)});var Al=[0,2/3,1/3,0],Nl=[0,1/3,2/3,0],Cl=[0,1/6,2/3,1/6];ta.svg.line.radial=function(){var n=ho(Ro);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},mo.reverse=yo,yo.reverse=mo,ta.svg.area=function(){return Do(y)},ta.svg.area.radial=function(){var n=Do(Ro);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},ta.svg.chord=function(){function n(n,a){var c=t(this,i,n,a),l=t(this,o,n,a);return"M"+c.p0+r(c.r,c.p1,c.a1-c.a0)+(e(c,l)?u(c.r,c.p1,c.r,c.p0):u(c.r,c.p1,l.r,l.p0)+r(l.r,l.p1,l.a1-l.a0)+u(l.r,l.p1,c.r,c.p0))+"Z"}function t(n,t,e,r){var u=t.call(n,e,r),i=a.call(n,u,r),o=c.call(n,u,r)-Ra,s=l.call(n,u,r)-Ra;return{r:i,a0:o,a1:s,p0:[i*Math.cos(o),i*Math.sin(o)],p1:[i*Math.cos(s),i*Math.sin(s)]}}function e(n,t){return n.a0==t.a0&&n.a1==t.a1}function r(n,t,e){return"A"+n+","+n+" 0 "+ +(e>qa)+",1 "+t}function u(n,t,e,r){return"Q 0,0 "+r}var i=mr,o=yr,a=Po,c=ao,l=co;return n.radius=function(t){return arguments.length?(a=Et(t),n):a},n.source=function(t){return arguments.length?(i=Et(t),n):i},n.target=function(t){return arguments.length?(o=Et(t),n):o},n.startAngle=function(t){return arguments.length?(c=Et(t),n):c},n.endAngle=function(t){return arguments.length?(l=Et(t),n):l},n},ta.svg.diagonal=function(){function n(n,u){var i=t.call(this,n,u),o=e.call(this,n,u),a=(i.y+o.y)/2,c=[i,{x:i.x,y:a},{x:o.x,y:a},o];return c=c.map(r),"M"+c[0]+"C"+c[1]+" "+c[2]+" "+c[3]}var t=mr,e=yr,r=Uo;return n.source=function(e){return arguments.length?(t=Et(e),n):t},n.target=function(t){return arguments.length?(e=Et(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},ta.svg.diagonal.radial=function(){var n=ta.svg.diagonal(),t=Uo,e=n.projection;return n.projection=function(n){return arguments.length?e(jo(t=n)):t},n},ta.svg.symbol=function(){function n(n,r){return(zl.get(t.call(this,n,r))||Oo)(e.call(this,n,r))}var t=Ho,e=Fo;return n.type=function(e){return arguments.length?(t=Et(e),n):t},n.size=function(t){return arguments.length?(e=Et(t),n):e},n};var zl=ta.map({circle:Oo,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*Ll)),e=t*Ll;return"M0,"+-t+"L"+e+",0 0,"+t+" "+-e+",0Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/ql),e=t*ql/2;return"M0,"+e+"L"+t+","+-e+" "+-t+","+-e+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/ql),e=t*ql/2;return"M0,"+-e+"L"+t+","+e+" "+-t+","+e+"Z"}});ta.svg.symbolTypes=zl.keys();var ql=Math.sqrt(3),Ll=Math.tan(30*Da);_a.transition=function(n){for(var t,e,r=Tl||++Ul,u=Xo(n),i=[],o=Rl||{time:Date.now(),ease:Su,delay:0,duration:250},a=-1,c=this.length;++ai;i++){u.push(t=[]);for(var e=this[i],a=0,c=e.length;c>a;a++)(r=e[a])&&n.call(r,r.__data__,a,i)&&t.push(r)}return Yo(u,this.namespace,this.id)},Pl.tween=function(n,t){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(n):Y(this,null==t?function(t){t[r][e].tween.remove(n)}:function(u){u[r][e].tween.set(n,t)})},Pl.attr=function(n,t){function e(){this.removeAttribute(a)}function r(){this.removeAttributeNS(a.space,a.local)}function u(n){return null==n?e:(n+="",function(){var t,e=this.getAttribute(a);return e!==n&&(t=o(e,n),function(n){this.setAttribute(a,t(n))})})}function i(n){return null==n?r:(n+="",function(){var t,e=this.getAttributeNS(a.space,a.local);return e!==n&&(t=o(e,n),function(n){this.setAttributeNS(a.space,a.local,t(n))})})}if(arguments.length<2){for(t in n)this.attr(t,n[t]);return this}var o="transform"==n?Hu:mu,a=ta.ns.qualify(n);return Zo(this,"attr."+n,t,a.local?i:u)},Pl.attrTween=function(n,t){function e(n,e){var r=t.call(this,n,e,this.getAttribute(u));return r&&function(n){this.setAttribute(u,r(n))}}function r(n,e){var r=t.call(this,n,e,this.getAttributeNS(u.space,u.local));return r&&function(n){this.setAttributeNS(u.space,u.local,r(n))}}var u=ta.ns.qualify(n);return this.tween("attr."+n,u.local?r:e)},Pl.style=function(n,e,r){function u(){this.style.removeProperty(n)}function i(e){return null==e?u:(e+="",function(){var u,i=t(this).getComputedStyle(this,null).getPropertyValue(n);return i!==e&&(u=mu(i,e),function(t){this.style.setProperty(n,u(t),r)})})}var o=arguments.length;if(3>o){if("string"!=typeof n){2>o&&(e="");for(r in n)this.style(r,n[r],e);return this}r=""}return Zo(this,"style."+n,e,i)},Pl.styleTween=function(n,e,r){function u(u,i){var o=e.call(this,u,i,t(this).getComputedStyle(this,null).getPropertyValue(n));return o&&function(t){this.style.setProperty(n,o(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+n,u)},Pl.text=function(n){return Zo(this,"text",n,Vo)},Pl.remove=function(){var n=this.namespace;return this.each("end.transition",function(){var t;this[n].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Pl.ease=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].ease:("function"!=typeof n&&(n=ta.ease.apply(ta,arguments)),Y(this,function(r){r[e][t].ease=n}))},Pl.delay=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].delay:Y(this,"function"==typeof n?function(r,u,i){r[e][t].delay=+n.call(r,r.__data__,u,i)}:(n=+n,function(r){r[e][t].delay=n}))},Pl.duration=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].duration:Y(this,"function"==typeof n?function(r,u,i){r[e][t].duration=Math.max(1,n.call(r,r.__data__,u,i))}:(n=Math.max(1,n),function(r){r[e][t].duration=n}))},Pl.each=function(n,t){var e=this.id,r=this.namespace;if(arguments.length<2){var u=Rl,i=Tl;try{Tl=e,Y(this,function(t,u,i){Rl=t[r][e],n.call(t,t.__data__,u,i)})}finally{Rl=u,Tl=i}}else Y(this,function(u){var i=u[r][e];(i.event||(i.event=ta.dispatch("start","end","interrupt"))).on(n,t)});return this},Pl.transition=function(){for(var n,t,e,r,u=this.id,i=++Ul,o=this.namespace,a=[],c=0,l=this.length;l>c;c++){a.push(n=[]);for(var t=this[c],s=0,f=t.length;f>s;s++)(e=t[s])&&(r=e[o][u],$o(e,s,o,i,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),n.push(e)}return Yo(a,o,i)},ta.svg.axis=function(){function n(n){n.each(function(){var n,l=ta.select(this),s=this.__chart__||e,f=this.__chart__=e.copy(),h=null==c?f.ticks?f.ticks.apply(f,a):f.domain():c,g=null==t?f.tickFormat?f.tickFormat.apply(f,a):y:t,p=l.selectAll(".tick").data(h,f),v=p.enter().insert("g",".domain").attr("class","tick").style("opacity",Ca),d=ta.transition(p.exit()).style("opacity",Ca).remove(),m=ta.transition(p.order()).style("opacity",1),M=Math.max(u,0)+o,x=Ui(f),b=l.selectAll(".domain").data([0]),_=(b.enter().append("path").attr("class","domain"),ta.transition(b));v.append("line"),v.append("text");var w,S,k,E,A=v.select("line"),N=m.select("line"),C=p.select("text").text(g),z=v.select("text"),q=m.select("text"),L="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(n=Bo,w="x",k="y",S="x2",E="y2",C.attr("dy",0>L?"0em":".71em").style("text-anchor","middle"),_.attr("d","M"+x[0]+","+L*i+"V0H"+x[1]+"V"+L*i)):(n=Wo,w="y",k="x",S="y2",E="x2",C.attr("dy",".32em").style("text-anchor",0>L?"end":"start"),_.attr("d","M"+L*i+","+x[0]+"H0V"+x[1]+"H"+L*i)),A.attr(E,L*u),z.attr(k,L*M),N.attr(S,0).attr(E,L*u),q.attr(w,0).attr(k,L*M),f.rangeBand){var T=f,R=T.rangeBand()/2;s=f=function(n){return T(n)+R}}else s.rangeBand?s=f:d.call(n,f,s);v.call(n,s,f),m.call(n,f,f)})}var t,e=ta.scale.linear(),r=jl,u=6,i=6,o=3,a=[10],c=null;return n.scale=function(t){return arguments.length?(e=t,n):e},n.orient=function(t){return arguments.length?(r=t in Fl?t+"":jl,n):r},n.ticks=function(){return arguments.length?(a=arguments,n):a},n.tickValues=function(t){return arguments.length?(c=t,n):c},n.tickFormat=function(e){return arguments.length?(t=e,n):t},n.tickSize=function(t){var e=arguments.length;return e?(u=+t,i=+arguments[e-1],n):u},n.innerTickSize=function(t){return arguments.length?(u=+t,n):u},n.outerTickSize=function(t){return arguments.length?(i=+t,n):i},n.tickPadding=function(t){return arguments.length?(o=+t,n):o},n.tickSubdivide=function(){return arguments.length&&n},n};var jl="bottom",Fl={top:1,right:1,bottom:1,left:1};ta.svg.brush=function(){function n(t){t.each(function(){var t=ta.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),o=t.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var a=t.selectAll(".resize").data(v,y);a.exit().remove(),a.enter().append("g").attr("class",function(n){return"resize "+n}).style("cursor",function(n){return Hl[n]}).append("rect").attr("x",function(n){return/[ew]$/.test(n)?-3:null}).attr("y",function(n){return/^[ns]/.test(n)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),a.style("display",n.empty()?"none":null);var c,f=ta.transition(t),h=ta.transition(o);l&&(c=Ui(l),h.attr("x",c[0]).attr("width",c[1]-c[0]),r(f)),s&&(c=Ui(s),h.attr("y",c[0]).attr("height",c[1]-c[0]),u(f)),e(f)})}function e(n){n.selectAll(".resize").attr("transform",function(n){return"translate("+f[+/e$/.test(n)]+","+h[+/^s/.test(n)]+")"})}function r(n){n.select(".extent").attr("x",f[0]),n.selectAll(".extent,.n>rect,.s>rect").attr("width",f[1]-f[0])}function u(n){n.select(".extent").attr("y",h[0]),n.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function i(){function i(){32==ta.event.keyCode&&(C||(M=null,q[0]-=f[1],q[1]-=h[1],C=2),S())}function v(){32==ta.event.keyCode&&2==C&&(q[0]+=f[1],q[1]+=h[1],C=0,S())}function d(){var n=ta.mouse(b),t=!1;x&&(n[0]+=x[0],n[1]+=x[1]),C||(ta.event.altKey?(M||(M=[(f[0]+f[1])/2,(h[0]+h[1])/2]),q[0]=f[+(n[0]s?(u=r,r=s):u=s),v[0]!=r||v[1]!=u?(e?a=null:o=null,v[0]=r,v[1]=u,!0):void 0}function y(){d(),k.style("pointer-events","all").selectAll(".resize").style("display",n.empty()?"none":null),ta.select("body").style("cursor",null),L.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),z(),w({type:"brushend"})}var M,x,b=this,_=ta.select(ta.event.target),w=c.of(b,arguments),k=ta.select(b),E=_.datum(),A=!/^(n|s)$/.test(E)&&l,N=!/^(e|w)$/.test(E)&&s,C=_.classed("extent"),z=W(b),q=ta.mouse(b),L=ta.select(t(b)).on("keydown.brush",i).on("keyup.brush",v);if(ta.event.changedTouches?L.on("touchmove.brush",d).on("touchend.brush",y):L.on("mousemove.brush",d).on("mouseup.brush",y),k.interrupt().selectAll("*").interrupt(),C)q[0]=f[0]-q[0],q[1]=h[0]-q[1];else if(E){var T=+/w$/.test(E),R=+/^n/.test(E);x=[f[1-T]-q[0],h[1-R]-q[1]],q[0]=f[T],q[1]=h[R]}else ta.event.altKey&&(M=q.slice());k.style("pointer-events","none").selectAll(".resize").style("display",null),ta.select("body").style("cursor",_.style("cursor")),w({type:"brushstart"}),d()}var o,a,c=E(n,"brushstart","brush","brushend"),l=null,s=null,f=[0,0],h=[0,0],g=!0,p=!0,v=Ol[0];return n.event=function(n){n.each(function(){var n=c.of(this,arguments),t={x:f,y:h,i:o,j:a},e=this.__chart__||t;this.__chart__=t,Tl?ta.select(this).transition().each("start.brush",function(){o=e.i,a=e.j,f=e.x,h=e.y,n({type:"brushstart"})}).tween("brush:brush",function(){var e=yu(f,t.x),r=yu(h,t.y);return o=a=null,function(u){f=t.x=e(u),h=t.y=r(u),n({type:"brush",mode:"resize"})}}).each("end.brush",function(){o=t.i,a=t.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})}):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))})},n.x=function(t){return arguments.length?(l=t,v=Ol[!l<<1|!s],n):l},n.y=function(t){return arguments.length?(s=t,v=Ol[!l<<1|!s],n):s},n.clamp=function(t){return arguments.length?(l&&s?(g=!!t[0],p=!!t[1]):l?g=!!t:s&&(p=!!t),n):l&&s?[g,p]:l?g:s?p:null},n.extent=function(t){var e,r,u,i,c;return arguments.length?(l&&(e=t[0],r=t[1],s&&(e=e[0],r=r[0]),o=[e,r],l.invert&&(e=l(e),r=l(r)),e>r&&(c=e,e=r,r=c),(e!=f[0]||r!=f[1])&&(f=[e,r])),s&&(u=t[0],i=t[1],l&&(u=u[1],i=i[1]),a=[u,i],s.invert&&(u=s(u),i=s(i)),u>i&&(c=u,u=i,i=c),(u!=h[0]||i!=h[1])&&(h=[u,i])),n):(l&&(o?(e=o[0],r=o[1]):(e=f[0],r=f[1],l.invert&&(e=l.invert(e),r=l.invert(r)),e>r&&(c=e,e=r,r=c))),s&&(a?(u=a[0],i=a[1]):(u=h[0],i=h[1],s.invert&&(u=s.invert(u),i=s.invert(i)),u>i&&(c=u,u=i,i=c))),l&&s?[[e,u],[r,i]]:l?[e,r]:s&&[u,i])},n.clear=function(){return n.empty()||(f=[0,0],h=[0,0],o=a=null),n},n.empty=function(){return!!l&&f[0]==f[1]||!!s&&h[0]==h[1]},ta.rebind(n,c,"on")};var Hl={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ol=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Il=ac.format=gc.timeFormat,Yl=Il.utc,Zl=Yl("%Y-%m-%dT%H:%M:%S.%LZ");Il.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Jo:Zl,Jo.parse=function(n){var t=new Date(n);return isNaN(t)?null:t},Jo.toString=Zl.toString,ac.second=Ft(function(n){return new cc(1e3*Math.floor(n/1e3))},function(n,t){n.setTime(n.getTime()+1e3*Math.floor(t))},function(n){return n.getSeconds()}),ac.seconds=ac.second.range,ac.seconds.utc=ac.second.utc.range,ac.minute=Ft(function(n){return new cc(6e4*Math.floor(n/6e4))},function(n,t){n.setTime(n.getTime()+6e4*Math.floor(t))},function(n){return n.getMinutes()}),ac.minutes=ac.minute.range,ac.minutes.utc=ac.minute.utc.range,ac.hour=Ft(function(n){var t=n.getTimezoneOffset()/60;return new cc(36e5*(Math.floor(n/36e5-t)+t))},function(n,t){n.setTime(n.getTime()+36e5*Math.floor(t))},function(n){return n.getHours()}),ac.hours=ac.hour.range,ac.hours.utc=ac.hour.utc.range,ac.month=Ft(function(n){return n=ac.day(n),n.setDate(1),n},function(n,t){n.setMonth(n.getMonth()+t)},function(n){return n.getMonth()}),ac.months=ac.month.range,ac.months.utc=ac.month.utc.range;var Vl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Xl=[[ac.second,1],[ac.second,5],[ac.second,15],[ac.second,30],[ac.minute,1],[ac.minute,5],[ac.minute,15],[ac.minute,30],[ac.hour,1],[ac.hour,3],[ac.hour,6],[ac.hour,12],[ac.day,1],[ac.day,2],[ac.week,1],[ac.month,1],[ac.month,3],[ac.year,1]],$l=Il.multi([[".%L",function(n){return n.getMilliseconds()}],[":%S",function(n){return n.getSeconds()}],["%I:%M",function(n){return n.getMinutes()}],["%I %p",function(n){return n.getHours()}],["%a %d",function(n){return n.getDay()&&1!=n.getDate()}],["%b %d",function(n){return 1!=n.getDate()}],["%B",function(n){return n.getMonth()}],["%Y",Ne]]),Bl={range:function(n,t,e){return ta.range(Math.ceil(n/e)*e,+t,e).map(Ko)},floor:y,ceil:y};Xl.year=ac.year,ac.scale=function(){return Go(ta.scale.linear(),Xl,$l)};var Wl=Xl.map(function(n){return[n[0].utc,n[1]]}),Jl=Yl.multi([[".%L",function(n){return n.getUTCMilliseconds()}],[":%S",function(n){return n.getUTCSeconds()}],["%I:%M",function(n){return n.getUTCMinutes()}],["%I %p",function(n){return n.getUTCHours()}],["%a %d",function(n){return n.getUTCDay()&&1!=n.getUTCDate()}],["%b %d",function(n){return 1!=n.getUTCDate()}],["%B",function(n){return n.getUTCMonth()}],["%Y",Ne]]);Wl.year=ac.year.utc,ac.scale.utc=function(){return Go(ta.scale.linear(),Wl,Jl)},ta.text=At(function(n){return n.responseText}),ta.json=function(n,t){return Nt(n,"application/json",Qo,t)},ta.html=function(n,t){return Nt(n,"text/html",na,t)},ta.xml=At(function(n){return n.responseXML}),"function"==typeof define&&define.amd?define(ta):"object"==typeof module&&module.exports&&(module.exports=ta),this.d3=ta}();/*! + ++$i; + } else { + if (\preg_match('/^(?:diff --git |index [\da-f\.]+|[+-]{3} [ab])/', $lines[$i])) { + continue; + } -Holder - client side image placeholders -Version 2.7.1+6hydf -© 2015 Ivan Malopinsky - http://imsky.co + $collected[] = $lines[$i]; + } + } -Site: http://holderjs.com -Issues: https://github.com/imsky/holder/issues -License: http://opensource.org/licenses/MIT + if ($diff !== null && \count($collected)) { + $this->parseFileDiff($diff, $collected); -*/ -!function(a){if(a.document){var b=a.document;b.querySelectorAll||(b.querySelectorAll=function(c){var d,e=b.createElement("style"),f=[];for(b.documentElement.firstChild.appendChild(e),b._qsa=[],e.styleSheet.cssText=c+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",a.scrollBy(0,0),e.parentNode.removeChild(e);b._qsa.length;)d=b._qsa.shift(),d.style.removeAttribute("x-qsa"),f.push(d);return b._qsa=null,f}),b.querySelector||(b.querySelector=function(a){var c=b.querySelectorAll(a);return c.length?c[0]:null}),b.getElementsByClassName||(b.getElementsByClassName=function(a){return a=String(a).replace(/^|\s+/g,"."),b.querySelectorAll(a)}),Object.keys||(Object.keys=function(a){if(a!==Object(a))throw TypeError("Object.keys called on non-object");var b,c=[];for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&c.push(b);return c}),function(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.atob=a.atob||function(a){a=String(a);var c,d=0,e=[],f=0,g=0;if(a=a.replace(/\s/g,""),a.length%4===0&&(a=a.replace(/=+$/,"")),a.length%4===1)throw Error("InvalidCharacterError");if(/[^+/0-9A-Za-z]/.test(a))throw Error("InvalidCharacterError");for(;d>16&255)),e.push(String.fromCharCode(f>>8&255)),e.push(String.fromCharCode(255&f)),g=0,f=0),d+=1;return 12===g?(f>>=4,e.push(String.fromCharCode(255&f))):18===g&&(f>>=2,e.push(String.fromCharCode(f>>8&255)),e.push(String.fromCharCode(255&f))),e.join("")},a.btoa=a.btoa||function(a){a=String(a);var c,d,e,f,g,h,i,j=0,k=[];if(/[^\x00-\xFF]/.test(a))throw Error("InvalidCharacterError");for(;j>2,g=(3&c)<<4|d>>4,h=(15&d)<<2|e>>6,i=63&e,j===a.length+2?(h=64,i=64):j===a.length+1&&(i=64),k.push(b.charAt(f),b.charAt(g),b.charAt(h),b.charAt(i));return k.join("")}}(a),Object.prototype.hasOwnProperty||(Object.prototype.hasOwnProperty=function(a){var b=this.__proto__||this.constructor.prototype;return a in this&&(!(a in b)||b[a]!==this[a])}),function(){if("performance"in a==!1&&(a.performance={}),Date.now=Date.now||function(){return(new Date).getTime()},"now"in a.performance==!1){var b=Date.now();performance.timing&&performance.timing.navigationStart&&(b=performance.timing.navigationStart),a.performance.now=function(){return Date.now()-b}}}(),a.requestAnimationFrame||(a.webkitRequestAnimationFrame?!function(a){a.requestAnimationFrame=function(b){return webkitRequestAnimationFrame(function(){b(a.performance.now())})},a.cancelAnimationFrame=webkitCancelAnimationFrame}(a):a.mozRequestAnimationFrame?!function(a){a.requestAnimationFrame=function(b){return mozRequestAnimationFrame(function(){b(a.performance.now())})},a.cancelAnimationFrame=mozCancelAnimationFrame}(a):!function(a){a.requestAnimationFrame=function(b){return a.setTimeout(b,1e3/60)},a.cancelAnimationFrame=a.clearTimeout}(a))}}(this),function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):"object"==typeof exports?exports.Holder=b():a.Holder=b()}(this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){(function(b){function d(a,b,c,d){var f=e(c.substr(c.lastIndexOf(a.domain)),a);f&&h({mode:null,el:d,flags:f,engineSettings:b})}function e(a,b){var c={theme:B(J.settings.themes.gray,null),stylesheets:b.stylesheets,instanceOptions:b};return a.match(/([\d]+p?)x([\d]+p?)(?:\?|$)/)?f(a,c):g(a,c)}function f(a,b){var c=a.split("?"),d=c[0].split("/");b.holderURL=a;var e=d[1],f=e.match(/([\d]+p?)x([\d]+p?)/);if(!f)return!1;if(b.fluid=-1!==e.indexOf("p"),b.dimensions={width:f[1].replace("p","%"),height:f[2].replace("p","%")},2===c.length){var g=A.parse(c[1]);if(g.bg&&(b.theme.background=(-1===g.bg.indexOf("#")?"#":"")+g.bg),g.fg&&(b.theme.foreground=(-1===g.fg.indexOf("#")?"#":"")+g.fg),g.theme&&b.instanceOptions.themes.hasOwnProperty(g.theme)&&(b.theme=B(b.instanceOptions.themes[g.theme],null)),g.text&&(b.text=g.text),g.textmode&&(b.textmode=g.textmode),g.size&&(b.size=g.size),g.font&&(b.font=g.font),g.align&&(b.align=g.align),b.nowrap=z.truthy(g.nowrap),b.auto=z.truthy(g.auto),z.truthy(g.random)){J.vars.cache.themeKeys=J.vars.cache.themeKeys||Object.keys(b.instanceOptions.themes);var h=J.vars.cache.themeKeys[0|Math.random()*J.vars.cache.themeKeys.length];b.theme=B(b.instanceOptions.themes[h],null)}}return b}function g(a,b){var c=!1,d=String.fromCharCode(11),e=a.replace(/([^\\])\//g,"$1"+d).split(d),f=/%[0-9a-f]{2}/gi,g=b.instanceOptions;b.holderURL=[];for(var h=e.length,i=0;h>i;i++){var j=e[i];if(j.match(f))try{j=decodeURIComponent(j)}catch(k){j=e[i]}var l=!1;if(J.flags.dimensions.match(j))c=!0,b.dimensions=J.flags.dimensions.output(j),l=!0;else if(J.flags.fluid.match(j))c=!0,b.dimensions=J.flags.fluid.output(j),b.fluid=!0,l=!0;else if(J.flags.textmode.match(j))b.textmode=J.flags.textmode.output(j),l=!0;else if(J.flags.colors.match(j)){var m=J.flags.colors.output(j);b.theme=B(b.theme,m),l=!0}else if(g.themes[j])g.themes.hasOwnProperty(j)&&(b.theme=B(g.themes[j],null)),l=!0;else if(J.flags.font.match(j))b.font=J.flags.font.output(j),l=!0;else if(J.flags.auto.match(j))b.auto=!0,l=!0;else if(J.flags.text.match(j))b.text=J.flags.text.output(j),l=!0;else if(J.flags.size.match(j))b.size=J.flags.size.output(j),l=!0;else if(J.flags.random.match(j)){null==J.vars.cache.themeKeys&&(J.vars.cache.themeKeys=Object.keys(g.themes));var n=J.vars.cache.themeKeys[0|Math.random()*J.vars.cache.themeKeys.length];b.theme=B(g.themes[n],null),l=!0}l&&b.holderURL.push(j)}return b.holderURL.unshift(g.domain),b.holderURL=b.holderURL.join("/"),c?b:!1}function h(a){var b=a.mode,c=a.el,d=a.flags,e=a.engineSettings,f=d.dimensions,g=d.theme,h=f.width+"x"+f.height;if(b=null==b?d.fluid?"fluid":"image":b,null!=d.text&&(g.text=d.text,"object"===c.nodeName.toLowerCase())){for(var j=g.text.split("\\n"),k=0;k1){var n,o=0,p=0,q=0;j=new e.Group("line"+q),("left"===a.align||"right"===a.align)&&(m=a.width*(1-2*(1-J.setup.lineWrapRatio)));for(var r=0;r=m||t===!0)&&(b(g,j,o,g.properties.leading),g.add(j),o=0,p+=g.properties.leading,q+=1,j=new e.Group("line"+q),j.y=p),t!==!0&&(i.moveTo(o,0),o+=h.spaceWidth+s.width,j.add(i))}if(b(g,j,o,g.properties.leading),g.add(j),"left"===a.align)g.moveTo(a.width-l,null,null);else if("right"===a.align){for(n in g.children)j=g.children[n],j.moveTo(a.width-j.width,null,null);g.moveTo(0-(a.width-l),null,null)}else{for(n in g.children)j=g.children[n],j.moveTo((g.width-j.width)/2,null,null);g.moveTo((a.width-g.width)/2,null,null)}g.moveTo(null,(a.height-g.height)/2,null),(a.height-g.height)/2<0&&g.moveTo(null,0,null)}else i=new e.Text(a.text),j=new e.Group("line0"),j.add(i),g.add(j),"left"===a.align?g.moveTo(a.width-l,null,null):"right"===a.align?g.moveTo(0-(a.width-l),null,null):g.moveTo((a.width-h.boundingBox.width)/2,null,null),g.moveTo(null,(a.height-h.boundingBox.height)/2,null);return d}function k(a,b,c){var d=parseInt(a,10),e=parseInt(b,10),f=Math.max(d,e),g=Math.min(d,e),h=.8*Math.min(g,f*J.defaults.scale);return Math.round(Math.max(c,h))}function l(a){var b;b=null==a||null==a.nodeType?J.vars.resizableImages:[a];for(var c=0,d=b.length;d>c;c++){var e=b[c];if(e.holderData){var f=e.holderData.flags,g=D(e);if(g){if(!e.holderData.resizeUpdate)continue;if(f.fluid&&f.auto){var h=e.holderData.fluidConfig;switch(h.mode){case"width":g.height=g.width/h.ratio;break;case"height":g.width=g.height*h.ratio}}var j={mode:"image",holderSettings:{dimensions:g,theme:f.theme,flags:f},el:e,engineSettings:e.holderData.engineSettings};"exact"==f.textmode&&(f.exactDimensions=g,j.holderSettings.dimensions=f.dimensions),i(j)}else p(e)}}}function m(a){if(a.holderData){var b=D(a);if(b){var c=a.holderData.flags,d={fluidHeight:"%"==c.dimensions.height.slice(-1),fluidWidth:"%"==c.dimensions.width.slice(-1),mode:null,initialDimensions:b};d.fluidWidth&&!d.fluidHeight?(d.mode="width",d.ratio=d.initialDimensions.width/parseFloat(c.dimensions.height)):!d.fluidWidth&&d.fluidHeight&&(d.mode="height",d.ratio=parseFloat(c.dimensions.width)/d.initialDimensions.height),a.holderData.fluidConfig=d}else p(a)}}function n(){for(var a,c=[],d=Object.keys(J.vars.invisibleImages),e=0,f=d.length;f>e;e++)a=J.vars.invisibleImages[d[e]],D(a)&&"img"==a.nodeName.toLowerCase()&&(c.push(a),delete J.vars.invisibleImages[d[e]]);c.length&&I.run({images:c}),b.requestAnimationFrame(n)}function o(){J.vars.visibilityCheckStarted||(b.requestAnimationFrame(n),J.vars.visibilityCheckStarted=!0)}function p(a){a.holderData.invisibleId||(J.vars.invisibleId+=1,J.vars.invisibleImages["i"+J.vars.invisibleId]=a,a.holderData.invisibleId=J.vars.invisibleId)}function q(a,b){return null==b?document.createElement(a):document.createElementNS(b,a)}function r(a,b){for(var c in b)a.setAttribute(c,b[c])}function s(a,b,c){var d,e;null==a?(a=q("svg",E),d=q("defs",E),e=q("style",E),r(e,{type:"text/css"}),d.appendChild(e),a.appendChild(d)):e=a.querySelector("style"),a.webkitMatchesSelector&&a.setAttribute("xmlns",E);for(var f=0;f=0;h--){var i=g.createProcessingInstruction("xml-stylesheet",'href="'+f[h]+'" rel="stylesheet"');g.insertBefore(i,g.firstChild)}g.removeChild(g.documentElement),e=d.serializeToString(g)}var j=d.serializeToString(a);return j=j.replace(/\&(\#[0-9]{2,}\;)/g,"&$1"),e+j}}function u(){return b.DOMParser?(new DOMParser).parseFromString("","application/xml"):void 0}function v(a){J.vars.debounceTimer||a.call(this),J.vars.debounceTimer&&b.clearTimeout(J.vars.debounceTimer),J.vars.debounceTimer=b.setTimeout(function(){J.vars.debounceTimer=null,a.call(this)},J.setup.debounce)}function w(){v(function(){l(null)})}var x=c(1),y=c(2),z=c(3),A=c(4),B=z.extend,C=z.getNodeArray,D=z.dimensionCheck,E="http://www.w3.org/2000/svg",F=8,G="2.7.1",H="\nCreated with Holder.js "+G+".\nLearn more at http://holderjs.com\n(c) 2012-2015 Ivan Malopinsky - http://imsky.co\n",I={version:G,addTheme:function(a,b){return null!=a&&null!=b&&(J.settings.themes[a]=b),delete J.vars.cache.themeKeys,this},addImage:function(a,b){var c=document.querySelectorAll(b);if(c.length)for(var d=0,e=c.length;e>d;d++){var f=q("img"),g={};g[J.vars.dataAttr]=a,r(f,g),c[d].appendChild(f)}return this},setResizeUpdate:function(a,b){a.holderData&&(a.holderData.resizeUpdate=!!b,a.holderData.resizeUpdate&&l(a))},run:function(a){a=a||{};var c={},f=B(J.settings,a);J.vars.preempted=!0,J.vars.dataAttr=f.dataAttr||J.vars.dataAttr,c.renderer=f.renderer?f.renderer:J.setup.renderer,-1===J.setup.renderers.join(",").indexOf(c.renderer)&&(c.renderer=J.setup.supportsSVG?"svg":J.setup.supportsCanvas?"canvas":"html");var g=C(f.images),i=C(f.bgnodes),j=C(f.stylenodes),k=C(f.objects);c.stylesheets=[],c.svgXMLStylesheet=!0,c.noFontFallback=f.noFontFallback?f.noFontFallback:!1;for(var l=0;l1){c.nodeValue="";for(var u=0;u=0?b:1)}function f(a){v?e(a):w.push(a)}null==document.readyState&&document.addEventListener&&(document.addEventListener("DOMContentLoaded",function y(){document.removeEventListener("DOMContentLoaded",y,!1),document.readyState="complete"},!1),document.readyState="loading");var g=a.document,h=g.documentElement,i="load",j=!1,k="on"+i,l="complete",m="readyState",n="attachEvent",o="detachEvent",p="addEventListener",q="DOMContentLoaded",r="onreadystatechange",s="removeEventListener",t=p in g,u=j,v=j,w=[];if(g[m]===l)e(b);else if(t)g[p](q,c,j),a[p](i,c,j);else{g[n](r,c),a[n](k,c);try{u=null==a.frameElement&&h}catch(x){}u&&u.doScroll&&!function z(){if(!v){try{u.doScroll("left")}catch(a){return e(z,50)}d(),b()}}()}return f.version="1.4.0",f.isReady=function(){return v},f}a.exports="undefined"!=typeof window&&b(window)},function(a,b,c){var d=c(5),e=function(a){function b(a,b){for(var c in b)a[c]=b[c];return a}var c=1,e=d.defclass({constructor:function(a){c++,this.parent=null,this.children={},this.id=c,this.name="n"+c,null!=a&&(this.name=a),this.x=0,this.y=0,this.z=0,this.width=0,this.height=0},resize:function(a,b){null!=a&&(this.width=a),null!=b&&(this.height=b)},moveTo:function(a,b,c){this.x=null!=a?a:this.x,this.y=null!=b?b:this.y,this.z=null!=c?c:this.z},add:function(a){var b=a.name;if(null!=this.children[b])throw"SceneGraph: child with that name already exists: "+b;this.children[b]=a,a.parent=this}}),f=d(e,function(b){this.constructor=function(){b.constructor.call(this,"root"),this.properties=a}}),g=d(e,function(a){function c(c,d){if(a.constructor.call(this,c),this.properties={fill:"#000"},null!=d)b(this.properties,d);else if(null!=c&&"string"!=typeof c)throw"SceneGraph: invalid node name"}this.Group=d.extend(this,{constructor:c,type:"group"}),this.Rect=d.extend(this,{constructor:c,type:"rect"}),this.Text=d.extend(this,{constructor:function(a){c.call(this),this.properties.text=a},type:"text"})}),h=new f;return this.Shape=g,this.root=h,this};a.exports=e},function(a,b){(function(a){b.extend=function(a,b){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);if(null!=b)for(var e in b)b.hasOwnProperty(e)&&(c[e]=b[e]);return c},b.cssProps=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c+":"+a[c]);return b.join(";")},b.encodeHtmlEntity=function(a){for(var b=[],c=0,d=a.length-1;d>=0;d--)c=a.charCodeAt(d),b.unshift(c>128?["&#",c,";"].join(""):a[d]);return b.join("")},b.getNodeArray=function(b){var c=null;return"string"==typeof b?c=document.querySelectorAll(b):a.NodeList&&b instanceof a.NodeList?c=b:a.Node&&b instanceof a.Node?c=[b]:a.HTMLCollection&&b instanceof a.HTMLCollection?c=b:b instanceof Array?c=b:null===b&&(c=[]),c},b.imageExists=function(a,b){var c=new Image;c.onerror=function(){b.call(this,!1)},c.onload=function(){b.call(this,!0)},c.src=a},b.decodeHtmlEntity=function(a){return a.replace(/&#(\d+);/g,function(a,b){return String.fromCharCode(b)})},b.dimensionCheck=function(a){var b={height:a.clientHeight,width:a.clientWidth};return b.height&&b.width?b:!1},b.truthy=function(a){return"string"==typeof a?"true"===a||"yes"===a||"1"===a||"on"===a||"✓"===a:!!a}}).call(b,function(){return this}())},function(a,b,c){var d=encodeURIComponent,e=decodeURIComponent,f=c(6),g=c(7),h=/(\w+)\[(\d+)\]/,i=/\w+\.\w+/;b.parse=function(a){if("string"!=typeof a)return{};if(a=f(a),""===a)return{};"?"===a.charAt(0)&&(a=a.slice(1));for(var b={},c=a.split("&"),d=0;d",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.2",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b)}(this,document);/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ -!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(ba,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+ra(o[l]);w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),p=!f(g),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ca,da),a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(ca,da).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:oa(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function sa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function ta(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ua(a,b,c){for(var d=0,e=b.length;e>d;d++)ga(a,b[d],c);return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sa(ta(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ja(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1; + $diffs[] = $diff; + } -return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML="
    a",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return!0}function ba(){return!1}function ca(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/\s*$/g,ra={option:[1,""],legend:[1,"
    ","
    "],area:[1,"",""],param:[1,"",""],thead:[1,"","
    "],tr:[2,"","
    "],col:[2,"","
    "],td:[3,"","
    "],_default:k.htmlSerialize?[0,"",""]:[1,"X
    ","
    "]},sa=da(y),ta=sa.appendChild(y.createElement("div"));ra.optgroup=ra.option,ra.tbody=ra.tfoot=ra.colgroup=ra.caption=ra.thead,ra.th=ra.td;function ua(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ua(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function va(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wa(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xa(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function ya(a){var b=pa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function za(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Aa(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Ba(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xa(b).text=a.text,ya(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!ga.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ta.innerHTML=a.outerHTML,ta.removeChild(f=ta.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ua(f),h=ua(a),g=0;null!=(e=h[g]);++g)d[g]&&Ba(e,d[g]);if(b)if(c)for(h=h||ua(a),d=d||ua(f),g=0;null!=(e=h[g]);g++)Aa(e,d[g]);else Aa(a,f);return d=ua(f,"script"),d.length>0&&za(d,!i&&ua(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=da(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(la.test(f)){h=h||o.appendChild(b.createElement("div")),i=(ja.exec(f)||["",""])[1].toLowerCase(),l=ra[i]||ra._default,h.innerHTML=l[1]+f.replace(ia,"<$1>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&ha.test(f)&&p.push(b.createTextNode(ha.exec(f)[0])),!k.tbody){f="table"!==i||ka.test(f)?""!==l[1]||ka.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ua(p,"input"),va),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ua(o.appendChild(f),"script"),g&&za(h),c)){e=0;while(f=h[e++])oa.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ua(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&za(ua(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ua(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fa,""):void 0;if(!("string"!=typeof a||ma.test(a)||!k.htmlSerialize&&ga.test(a)||!k.leadingWhitespace&&ha.test(a)||ra[(ja.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ia,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ua(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ua(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&na.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ua(i,"script"),xa),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ua(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,ya),j=0;f>j;j++)d=g[j],oa.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qa,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Ca,Da={};function Ea(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fa(a){var b=y,c=Da[a];return c||(c=Ea(a,b),"none"!==c&&c||(Ca=(Ca||m("